configure revision af9a7ee5
1caade7ccSmrg#! /bin/sh
2caade7ccSmrg# Guess values for system-dependent variables and create Makefiles.
3af9a7ee5Smrg# Generated by GNU Autoconf 2.68 for libXext 1.3.2.
4caade7ccSmrg#
5caade7ccSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6caade7ccSmrg#
7b9b4fd27Smrg#
8caade7ccSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9e8a5466aSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10e8a5466aSmrg# Foundation, Inc.
11b9b4fd27Smrg#
12b9b4fd27Smrg#
13caade7ccSmrg# This configure script is free software; the Free Software Foundation
14caade7ccSmrg# gives unlimited permission to copy, distribute and modify it.
15b9b4fd27Smrg## -------------------- ##
16b9b4fd27Smrg## M4sh Initialization. ##
17b9b4fd27Smrg## -------------------- ##
18caade7ccSmrg
19caade7ccSmrg# Be more Bourne compatible
20caade7ccSmrgDUALCASE=1; export DUALCASE # for MKS sh
21b9b4fd27Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22caade7ccSmrg  emulate sh
23caade7ccSmrg  NULLCMD=:
24485f0483Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25caade7ccSmrg  # is contrary to our usage.  Disable this feature.
26caade7ccSmrg  alias -g '${1+"$@"}'='"$@"'
27caade7ccSmrg  setopt NO_GLOB_SUBST
28caade7ccSmrgelse
29b9b4fd27Smrg  case `(set -o) 2>/dev/null` in #(
30b9b4fd27Smrg  *posix*) :
31b9b4fd27Smrg    set -o posix ;; #(
32b9b4fd27Smrg  *) :
33b9b4fd27Smrg     ;;
34caade7ccSmrgesac
35caade7ccSmrgfi
36caade7ccSmrg
37caade7ccSmrg
38485f0483Smrgas_nl='
39485f0483Smrg'
40485f0483Smrgexport as_nl
41485f0483Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
42485f0483Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43485f0483Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44485f0483Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45b9b4fd27Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
46b9b4fd27Smrg# but without wasting forks for bash or zsh.
47b9b4fd27Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
48b9b4fd27Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49b9b4fd27Smrg  as_echo='print -r --'
50b9b4fd27Smrg  as_echo_n='print -rn --'
51b9b4fd27Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52485f0483Smrg  as_echo='printf %s\n'
53485f0483Smrg  as_echo_n='printf %s'
54485f0483Smrgelse
55485f0483Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56485f0483Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57485f0483Smrg    as_echo_n='/usr/ucb/echo -n'
58caade7ccSmrg  else
59485f0483Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60485f0483Smrg    as_echo_n_body='eval
61485f0483Smrg      arg=$1;
62b9b4fd27Smrg      case $arg in #(
63485f0483Smrg      *"$as_nl"*)
64485f0483Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
65485f0483Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66485f0483Smrg      esac;
67485f0483Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68485f0483Smrg    '
69485f0483Smrg    export as_echo_n_body
70485f0483Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71caade7ccSmrg  fi
72485f0483Smrg  export as_echo_body
73485f0483Smrg  as_echo='sh -c $as_echo_body as_echo'
74485f0483Smrgfi
75485f0483Smrg
76485f0483Smrg# The user is always right.
77485f0483Smrgif test "${PATH_SEPARATOR+set}" != set; then
78485f0483Smrg  PATH_SEPARATOR=:
79485f0483Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80485f0483Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81485f0483Smrg      PATH_SEPARATOR=';'
82485f0483Smrg  }
83caade7ccSmrgfi
84caade7ccSmrg
85caade7ccSmrg
86caade7ccSmrg# IFS
87caade7ccSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88caade7ccSmrg# there to prevent editors from complaining about space-tab.
89caade7ccSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90caade7ccSmrg# splitting by setting IFS to empty value.)
91caade7ccSmrgIFS=" ""	$as_nl"
92caade7ccSmrg
93caade7ccSmrg# Find who we are.  Look in the path if we contain no directory separator.
94e8a5466aSmrgas_myself=
95b9b4fd27Smrgcase $0 in #((
96caade7ccSmrg  *[\\/]* ) as_myself=$0 ;;
97caade7ccSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98caade7ccSmrgfor as_dir in $PATH
99caade7ccSmrgdo
100caade7ccSmrg  IFS=$as_save_IFS
101caade7ccSmrg  test -z "$as_dir" && as_dir=.
102b9b4fd27Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103b9b4fd27Smrg  done
104caade7ccSmrgIFS=$as_save_IFS
105caade7ccSmrg
106caade7ccSmrg     ;;
107caade7ccSmrgesac
108caade7ccSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109caade7ccSmrg# in which case we are not to be found in the path.
110caade7ccSmrgif test "x$as_myself" = x; then
111caade7ccSmrg  as_myself=$0
112caade7ccSmrgfi
113caade7ccSmrgif test ! -f "$as_myself"; then
114485f0483Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115b9b4fd27Smrg  exit 1
116caade7ccSmrgfi
117caade7ccSmrg
118b9b4fd27Smrg# Unset variables that we do not need and which cause bugs (e.g. in
119b9b4fd27Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120b9b4fd27Smrg# suppresses any "Segmentation fault" message there.  '((' could
121b9b4fd27Smrg# trigger a bug in pdksh 5.2.14.
122b9b4fd27Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
123b9b4fd27Smrgdo eval test x\${$as_var+set} = xset \
124b9b4fd27Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125caade7ccSmrgdone
126caade7ccSmrgPS1='$ '
127caade7ccSmrgPS2='> '
128caade7ccSmrgPS4='+ '
129caade7ccSmrg
130caade7ccSmrg# NLS nuisances.
131485f0483SmrgLC_ALL=C
132485f0483Smrgexport LC_ALL
133485f0483SmrgLANGUAGE=C
134485f0483Smrgexport LANGUAGE
135caade7ccSmrg
136b9b4fd27Smrg# CDPATH.
137b9b4fd27Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138b9b4fd27Smrg
139b9b4fd27Smrgif test "x$CONFIG_SHELL" = x; then
140b9b4fd27Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141b9b4fd27Smrg  emulate sh
142b9b4fd27Smrg  NULLCMD=:
143b9b4fd27Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144b9b4fd27Smrg  # is contrary to our usage.  Disable this feature.
145b9b4fd27Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146b9b4fd27Smrg  setopt NO_GLOB_SUBST
147b9b4fd27Smrgelse
148b9b4fd27Smrg  case \`(set -o) 2>/dev/null\` in #(
149b9b4fd27Smrg  *posix*) :
150b9b4fd27Smrg    set -o posix ;; #(
151b9b4fd27Smrg  *) :
152b9b4fd27Smrg     ;;
153b9b4fd27Smrgesac
154b9b4fd27Smrgfi
155b9b4fd27Smrg"
156b9b4fd27Smrg  as_required="as_fn_return () { (exit \$1); }
157b9b4fd27Smrgas_fn_success () { as_fn_return 0; }
158b9b4fd27Smrgas_fn_failure () { as_fn_return 1; }
159b9b4fd27Smrgas_fn_ret_success () { return 0; }
160b9b4fd27Smrgas_fn_ret_failure () { return 1; }
161b9b4fd27Smrg
162b9b4fd27Smrgexitcode=0
163b9b4fd27Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
164b9b4fd27Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165b9b4fd27Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166b9b4fd27Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167b9b4fd27Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168b9b4fd27Smrg
169b9b4fd27Smrgelse
170b9b4fd27Smrg  exitcode=1; echo positional parameters were not saved.
171b9b4fd27Smrgfi
172b9b4fd27Smrgtest x\$exitcode = x0 || exit 1"
173b9b4fd27Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174b9b4fd27Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175b9b4fd27Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176b9b4fd27Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177e8a5466aSmrg
178e8a5466aSmrg  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179e8a5466aSmrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180e8a5466aSmrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181e8a5466aSmrg    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182e8a5466aSmrg    PATH=/empty FPATH=/empty; export PATH FPATH
183e8a5466aSmrg    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184a5602400Smrg      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185a5602400Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
186b9b4fd27Smrg  if (eval "$as_required") 2>/dev/null; then :
187b9b4fd27Smrg  as_have_required=yes
188b9b4fd27Smrgelse
189b9b4fd27Smrg  as_have_required=no
190b9b4fd27Smrgfi
191b9b4fd27Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192b9b4fd27Smrg
193b9b4fd27Smrgelse
194b9b4fd27Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195b9b4fd27Smrgas_found=false
196b9b4fd27Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197b9b4fd27Smrgdo
198b9b4fd27Smrg  IFS=$as_save_IFS
199b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
200b9b4fd27Smrg  as_found=:
201b9b4fd27Smrg  case $as_dir in #(
202b9b4fd27Smrg	 /*)
203b9b4fd27Smrg	   for as_base in sh bash ksh sh5; do
204b9b4fd27Smrg	     # Try only shells that exist, to save several forks.
205b9b4fd27Smrg	     as_shell=$as_dir/$as_base
206b9b4fd27Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207b9b4fd27Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208b9b4fd27Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
209b9b4fd27Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210b9b4fd27Smrg  break 2
211b9b4fd27Smrgfi
212b9b4fd27Smrgfi
213b9b4fd27Smrg	   done;;
214b9b4fd27Smrg       esac
215b9b4fd27Smrg  as_found=false
216b9b4fd27Smrgdone
217b9b4fd27Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218b9b4fd27Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219b9b4fd27Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
220b9b4fd27Smrgfi; }
221b9b4fd27SmrgIFS=$as_save_IFS
222b9b4fd27Smrg
223b9b4fd27Smrg
224b9b4fd27Smrg      if test "x$CONFIG_SHELL" != x; then :
225b9b4fd27Smrg  # We cannot yet assume a decent shell, so we have to provide a
226b9b4fd27Smrg	# neutralization value for shells without unset; and this also
227b9b4fd27Smrg	# works around shells that cannot unset nonexistent variables.
228e8a5466aSmrg	# Preserve -v and -x to the replacement shell.
229b9b4fd27Smrg	BASH_ENV=/dev/null
230b9b4fd27Smrg	ENV=/dev/null
231b9b4fd27Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232b9b4fd27Smrg	export CONFIG_SHELL
233e8a5466aSmrg	case $- in # ((((
234e8a5466aSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
235e8a5466aSmrg	  *v* ) as_opts=-v ;;
236e8a5466aSmrg	  *x* ) as_opts=-x ;;
237e8a5466aSmrg	  * ) as_opts= ;;
238e8a5466aSmrg	esac
239e8a5466aSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240b9b4fd27Smrgfi
241b9b4fd27Smrg
242b9b4fd27Smrg    if test x$as_have_required = xno; then :
243b9b4fd27Smrg  $as_echo "$0: This script requires a shell more modern than all"
244b9b4fd27Smrg  $as_echo "$0: the shells that I found on your system."
245b9b4fd27Smrg  if test x${ZSH_VERSION+set} = xset ; then
246b9b4fd27Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247b9b4fd27Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248b9b4fd27Smrg  else
249b9b4fd27Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250b9b4fd27Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251b9b4fd27Smrg$0: about your system, including any error possibly output
252b9b4fd27Smrg$0: before this message. Then install a modern shell, or
253b9b4fd27Smrg$0: manually run the script under such a shell if you do
254b9b4fd27Smrg$0: have one."
255b9b4fd27Smrg  fi
256b9b4fd27Smrg  exit 1
257b9b4fd27Smrgfi
258b9b4fd27Smrgfi
259b9b4fd27Smrgfi
260b9b4fd27SmrgSHELL=${CONFIG_SHELL-/bin/sh}
261b9b4fd27Smrgexport SHELL
262b9b4fd27Smrg# Unset more variables known to interfere with behavior of common tools.
263b9b4fd27SmrgCLICOLOR_FORCE= GREP_OPTIONS=
264b9b4fd27Smrgunset CLICOLOR_FORCE GREP_OPTIONS
265b9b4fd27Smrg
266b9b4fd27Smrg## --------------------- ##
267b9b4fd27Smrg## M4sh Shell Functions. ##
268b9b4fd27Smrg## --------------------- ##
269b9b4fd27Smrg# as_fn_unset VAR
270b9b4fd27Smrg# ---------------
271b9b4fd27Smrg# Portably unset VAR.
272b9b4fd27Smrgas_fn_unset ()
273b9b4fd27Smrg{
274b9b4fd27Smrg  { eval $1=; unset $1;}
275b9b4fd27Smrg}
276b9b4fd27Smrgas_unset=as_fn_unset
277b9b4fd27Smrg
278b9b4fd27Smrg# as_fn_set_status STATUS
279b9b4fd27Smrg# -----------------------
280b9b4fd27Smrg# Set $? to STATUS, without forking.
281b9b4fd27Smrgas_fn_set_status ()
282b9b4fd27Smrg{
283b9b4fd27Smrg  return $1
284b9b4fd27Smrg} # as_fn_set_status
285b9b4fd27Smrg
286b9b4fd27Smrg# as_fn_exit STATUS
287b9b4fd27Smrg# -----------------
288b9b4fd27Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289b9b4fd27Smrgas_fn_exit ()
290b9b4fd27Smrg{
291b9b4fd27Smrg  set +e
292b9b4fd27Smrg  as_fn_set_status $1
293b9b4fd27Smrg  exit $1
294b9b4fd27Smrg} # as_fn_exit
295b9b4fd27Smrg
296b9b4fd27Smrg# as_fn_mkdir_p
297b9b4fd27Smrg# -------------
298b9b4fd27Smrg# Create "$as_dir" as a directory, including parents if necessary.
299b9b4fd27Smrgas_fn_mkdir_p ()
300b9b4fd27Smrg{
301b9b4fd27Smrg
302b9b4fd27Smrg  case $as_dir in #(
303b9b4fd27Smrg  -*) as_dir=./$as_dir;;
304b9b4fd27Smrg  esac
305b9b4fd27Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
306b9b4fd27Smrg    as_dirs=
307b9b4fd27Smrg    while :; do
308b9b4fd27Smrg      case $as_dir in #(
309b9b4fd27Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310b9b4fd27Smrg      *) as_qdir=$as_dir;;
311b9b4fd27Smrg      esac
312b9b4fd27Smrg      as_dirs="'$as_qdir' $as_dirs"
313b9b4fd27Smrg      as_dir=`$as_dirname -- "$as_dir" ||
314b9b4fd27Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315b9b4fd27Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
316b9b4fd27Smrg	 X"$as_dir" : 'X\(//\)$' \| \
317b9b4fd27Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318b9b4fd27Smrg$as_echo X"$as_dir" |
319b9b4fd27Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320b9b4fd27Smrg	    s//\1/
321b9b4fd27Smrg	    q
322b9b4fd27Smrg	  }
323b9b4fd27Smrg	  /^X\(\/\/\)[^/].*/{
324b9b4fd27Smrg	    s//\1/
325b9b4fd27Smrg	    q
326b9b4fd27Smrg	  }
327b9b4fd27Smrg	  /^X\(\/\/\)$/{
328b9b4fd27Smrg	    s//\1/
329b9b4fd27Smrg	    q
330b9b4fd27Smrg	  }
331b9b4fd27Smrg	  /^X\(\/\).*/{
332b9b4fd27Smrg	    s//\1/
333b9b4fd27Smrg	    q
334b9b4fd27Smrg	  }
335b9b4fd27Smrg	  s/.*/./; q'`
336b9b4fd27Smrg      test -d "$as_dir" && break
337b9b4fd27Smrg    done
338b9b4fd27Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
339e8a5466aSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340b9b4fd27Smrg
341b9b4fd27Smrg
342b9b4fd27Smrg} # as_fn_mkdir_p
343b9b4fd27Smrg# as_fn_append VAR VALUE
344b9b4fd27Smrg# ----------------------
345b9b4fd27Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
346b9b4fd27Smrg# advantage of any shell optimizations that allow amortized linear growth over
347b9b4fd27Smrg# repeated appends, instead of the typical quadratic growth present in naive
348b9b4fd27Smrg# implementations.
349b9b4fd27Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350b9b4fd27Smrg  eval 'as_fn_append ()
351b9b4fd27Smrg  {
352b9b4fd27Smrg    eval $1+=\$2
353b9b4fd27Smrg  }'
354b9b4fd27Smrgelse
355b9b4fd27Smrg  as_fn_append ()
356b9b4fd27Smrg  {
357b9b4fd27Smrg    eval $1=\$$1\$2
358b9b4fd27Smrg  }
359b9b4fd27Smrgfi # as_fn_append
360b9b4fd27Smrg
361b9b4fd27Smrg# as_fn_arith ARG...
362b9b4fd27Smrg# ------------------
363b9b4fd27Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
364b9b4fd27Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
365b9b4fd27Smrg# must be portable across $(()) and expr.
366b9b4fd27Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367b9b4fd27Smrg  eval 'as_fn_arith ()
368b9b4fd27Smrg  {
369b9b4fd27Smrg    as_val=$(( $* ))
370b9b4fd27Smrg  }'
371b9b4fd27Smrgelse
372b9b4fd27Smrg  as_fn_arith ()
373b9b4fd27Smrg  {
374b9b4fd27Smrg    as_val=`expr "$@" || test $? -eq 1`
375b9b4fd27Smrg  }
376b9b4fd27Smrgfi # as_fn_arith
377b9b4fd27Smrg
378b9b4fd27Smrg
379e8a5466aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
380e8a5466aSmrg# ----------------------------------------
381b9b4fd27Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382b9b4fd27Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383e8a5466aSmrg# script with STATUS, using 1 if that was 0.
384b9b4fd27Smrgas_fn_error ()
385b9b4fd27Smrg{
386e8a5466aSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
387e8a5466aSmrg  if test "$4"; then
388e8a5466aSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389e8a5466aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390b9b4fd27Smrg  fi
391e8a5466aSmrg  $as_echo "$as_me: error: $2" >&2
392b9b4fd27Smrg  as_fn_exit $as_status
393b9b4fd27Smrg} # as_fn_error
394b9b4fd27Smrg
395caade7ccSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
396caade7ccSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397caade7ccSmrg  as_expr=expr
398caade7ccSmrgelse
399caade7ccSmrg  as_expr=false
400caade7ccSmrgfi
401caade7ccSmrg
402caade7ccSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403caade7ccSmrg  as_basename=basename
404caade7ccSmrgelse
405caade7ccSmrg  as_basename=false
406caade7ccSmrgfi
407caade7ccSmrg
408b9b4fd27Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409b9b4fd27Smrg  as_dirname=dirname
410b9b4fd27Smrgelse
411b9b4fd27Smrg  as_dirname=false
412b9b4fd27Smrgfi
413caade7ccSmrg
414caade7ccSmrgas_me=`$as_basename -- "$0" ||
415caade7ccSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416caade7ccSmrg	 X"$0" : 'X\(//\)$' \| \
417caade7ccSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418485f0483Smrg$as_echo X/"$0" |
419caade7ccSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
420caade7ccSmrg	    s//\1/
421caade7ccSmrg	    q
422caade7ccSmrg	  }
423caade7ccSmrg	  /^X\/\(\/\/\)$/{
424caade7ccSmrg	    s//\1/
425caade7ccSmrg	    q
426caade7ccSmrg	  }
427caade7ccSmrg	  /^X\/\(\/\).*/{
428caade7ccSmrg	    s//\1/
429caade7ccSmrg	    q
430caade7ccSmrg	  }
431caade7ccSmrg	  s/.*/./; q'`
432caade7ccSmrg
433b9b4fd27Smrg# Avoid depending upon Character Ranges.
434b9b4fd27Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
435b9b4fd27Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436b9b4fd27Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
437b9b4fd27Smrgas_cr_digits='0123456789'
438b9b4fd27Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
439caade7ccSmrg
440caade7ccSmrg
441b9b4fd27Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442b9b4fd27Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443b9b4fd27Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444b9b4fd27Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445b9b4fd27Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446b9b4fd27Smrg  sed -n '
447b9b4fd27Smrg    p
448b9b4fd27Smrg    /[$]LINENO/=
449b9b4fd27Smrg  ' <$as_myself |
450b9b4fd27Smrg    sed '
451b9b4fd27Smrg      s/[$]LINENO.*/&-/
452b9b4fd27Smrg      t lineno
453b9b4fd27Smrg      b
454b9b4fd27Smrg      :lineno
455b9b4fd27Smrg      N
456b9b4fd27Smrg      :loop
457b9b4fd27Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458b9b4fd27Smrg      t loop
459b9b4fd27Smrg      s/-\n.*//
460b9b4fd27Smrg    ' >$as_me.lineno &&
461b9b4fd27Smrg  chmod +x "$as_me.lineno" ||
462b9b4fd27Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463caade7ccSmrg
464b9b4fd27Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
465b9b4fd27Smrg  # (the dirname of $[0] is not the place where we might find the
466b9b4fd27Smrg  # original and so on.  Autoconf is especially sensitive to this).
467b9b4fd27Smrg  . "./$as_me.lineno"
468b9b4fd27Smrg  # Exit status is that of the last command.
469b9b4fd27Smrg  exit
470caade7ccSmrg}
471caade7ccSmrg
472b9b4fd27SmrgECHO_C= ECHO_N= ECHO_T=
473b9b4fd27Smrgcase `echo -n x` in #(((((
474b9b4fd27Smrg-n*)
475b9b4fd27Smrg  case `echo 'xy\c'` in
476b9b4fd27Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477b9b4fd27Smrg  xy)  ECHO_C='\c';;
478b9b4fd27Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479b9b4fd27Smrg       ECHO_T='	';;
480b9b4fd27Smrg  esac;;
481b9b4fd27Smrg*)
482b9b4fd27Smrg  ECHO_N='-n';;
483b9b4fd27Smrgesac
484caade7ccSmrg
485b9b4fd27Smrgrm -f conf$$ conf$$.exe conf$$.file
486b9b4fd27Smrgif test -d conf$$.dir; then
487b9b4fd27Smrg  rm -f conf$$.dir/conf$$.file
488b9b4fd27Smrgelse
489b9b4fd27Smrg  rm -f conf$$.dir
490b9b4fd27Smrg  mkdir conf$$.dir 2>/dev/null
491caade7ccSmrgfi
492b9b4fd27Smrgif (echo >conf$$.file) 2>/dev/null; then
493b9b4fd27Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
494b9b4fd27Smrg    as_ln_s='ln -s'
495b9b4fd27Smrg    # ... but there are two gotchas:
496b9b4fd27Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497b9b4fd27Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498b9b4fd27Smrg    # In both cases, we have to default to `cp -p'.
499b9b4fd27Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500b9b4fd27Smrg      as_ln_s='cp -p'
501b9b4fd27Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
502b9b4fd27Smrg    as_ln_s=ln
503b9b4fd27Smrg  else
504b9b4fd27Smrg    as_ln_s='cp -p'
505b9b4fd27Smrg  fi
506caade7ccSmrgelse
507b9b4fd27Smrg  as_ln_s='cp -p'
508caade7ccSmrgfi
509b9b4fd27Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510b9b4fd27Smrgrmdir conf$$.dir 2>/dev/null
511caade7ccSmrg
512b9b4fd27Smrgif mkdir -p . 2>/dev/null; then
513b9b4fd27Smrg  as_mkdir_p='mkdir -p "$as_dir"'
514b9b4fd27Smrgelse
515b9b4fd27Smrg  test -d ./-p && rmdir ./-p
516b9b4fd27Smrg  as_mkdir_p=false
517caade7ccSmrgfi
518caade7ccSmrg
519b9b4fd27Smrgif test -x / >/dev/null 2>&1; then
520b9b4fd27Smrg  as_test_x='test -x'
521caade7ccSmrgelse
522b9b4fd27Smrg  if ls -dL / >/dev/null 2>&1; then
523b9b4fd27Smrg    as_ls_L_option=L
524b9b4fd27Smrg  else
525b9b4fd27Smrg    as_ls_L_option=
526b9b4fd27Smrg  fi
527b9b4fd27Smrg  as_test_x='
528b9b4fd27Smrg    eval sh -c '\''
529b9b4fd27Smrg      if test -d "$1"; then
530b9b4fd27Smrg	test -d "$1/.";
531b9b4fd27Smrg      else
532b9b4fd27Smrg	case $1 in #(
533b9b4fd27Smrg	-*)set "./$1";;
534b9b4fd27Smrg	esac;
535b9b4fd27Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536b9b4fd27Smrg	???[sx]*):;;*)false;;esac;fi
537b9b4fd27Smrg    '\'' sh
538b9b4fd27Smrg  '
539caade7ccSmrgfi
540b9b4fd27Smrgas_executable_p=$as_test_x
541caade7ccSmrg
542b9b4fd27Smrg# Sed expression to map a string onto a valid CPP name.
543b9b4fd27Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544caade7ccSmrg
545b9b4fd27Smrg# Sed expression to map a string onto a valid variable name.
546b9b4fd27Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547caade7ccSmrg
548a5602400SmrgSHELL=${CONFIG_SHELL-/bin/sh}
549a5602400Smrg
550e8a5466aSmrgas_awk_strverscmp='
551e8a5466aSmrg  # Use only awk features that work with 7th edition Unix awk (1978).
552e8a5466aSmrg  # My, what an old awk you have, Mr. Solaris!
553e8a5466aSmrg  END {
554e8a5466aSmrg    while (length(v1) && length(v2)) {
555e8a5466aSmrg      # Set d1 to be the next thing to compare from v1, and likewise for d2.
556e8a5466aSmrg      # Normally this is a single character, but if v1 and v2 contain digits,
557e8a5466aSmrg      # compare them as integers and fractions as strverscmp does.
558e8a5466aSmrg      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559e8a5466aSmrg	# Split v1 and v2 into their leading digit string components d1 and d2,
560e8a5466aSmrg	# and advance v1 and v2 past the leading digit strings.
561e8a5466aSmrg	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562e8a5466aSmrg	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563e8a5466aSmrg	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564e8a5466aSmrg	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565e8a5466aSmrg	if (d1 ~ /^0/) {
566e8a5466aSmrg	  if (d2 ~ /^0/) {
567e8a5466aSmrg	    # Compare two fractions.
568e8a5466aSmrg	    while (d1 ~ /^0/ && d2 ~ /^0/) {
569e8a5466aSmrg	      d1 = substr(d1, 2); len1--
570e8a5466aSmrg	      d2 = substr(d2, 2); len2--
571e8a5466aSmrg	    }
572e8a5466aSmrg	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573e8a5466aSmrg	      # The two components differ in length, and the common prefix
574e8a5466aSmrg	      # contains only leading zeros.  Consider the longer to be less.
575e8a5466aSmrg	      d1 = -len1
576e8a5466aSmrg	      d2 = -len2
577e8a5466aSmrg	    } else {
578e8a5466aSmrg	      # Otherwise, compare as strings.
579e8a5466aSmrg	      d1 = "x" d1
580e8a5466aSmrg	      d2 = "x" d2
581e8a5466aSmrg	    }
582e8a5466aSmrg	  } else {
583e8a5466aSmrg	    # A fraction is less than an integer.
584e8a5466aSmrg	    exit 1
585e8a5466aSmrg	  }
586e8a5466aSmrg	} else {
587e8a5466aSmrg	  if (d2 ~ /^0/) {
588e8a5466aSmrg	    # An integer is greater than a fraction.
589e8a5466aSmrg	    exit 2
590e8a5466aSmrg	  } else {
591e8a5466aSmrg	    # Compare two integers.
592e8a5466aSmrg	    d1 += 0
593e8a5466aSmrg	    d2 += 0
594e8a5466aSmrg	  }
595e8a5466aSmrg	}
596e8a5466aSmrg      } else {
597e8a5466aSmrg	# The normal case, without worrying about digits.
598e8a5466aSmrg	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599e8a5466aSmrg	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600e8a5466aSmrg      }
601e8a5466aSmrg      if (d1 < d2) exit 1
602e8a5466aSmrg      if (d1 > d2) exit 2
603e8a5466aSmrg    }
604e8a5466aSmrg    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605e8a5466aSmrg    # which mishandles some comparisons of empty strings to integers.
606e8a5466aSmrg    if (length(v2)) exit 1
607e8a5466aSmrg    if (length(v1)) exit 2
608e8a5466aSmrg  }
609e8a5466aSmrg'
610caade7ccSmrg
611b9b4fd27Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
612b9b4fd27Smrgexec 6>&1
613caade7ccSmrg
614caade7ccSmrg# Name of the host.
615e8a5466aSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616caade7ccSmrg# so uname gets run too.
617caade7ccSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618caade7ccSmrg
619caade7ccSmrg#
620caade7ccSmrg# Initializations.
621caade7ccSmrg#
622caade7ccSmrgac_default_prefix=/usr/local
623caade7ccSmrgac_clean_files=
624caade7ccSmrgac_config_libobj_dir=.
625caade7ccSmrgLIBOBJS=
626caade7ccSmrgcross_compiling=no
627caade7ccSmrgsubdirs=
628caade7ccSmrgMFLAGS=
629caade7ccSmrgMAKEFLAGS=
630caade7ccSmrg
631caade7ccSmrg# Identity of this package.
632caade7ccSmrgPACKAGE_NAME='libXext'
633caade7ccSmrgPACKAGE_TARNAME='libXext'
634af9a7ee5SmrgPACKAGE_VERSION='1.3.2'
635af9a7ee5SmrgPACKAGE_STRING='libXext 1.3.2'
636caade7ccSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637b9b4fd27SmrgPACKAGE_URL=''
638caade7ccSmrg
639caade7ccSmrgac_unique_file="Makefile.am"
640caade7ccSmrg# Factoring default headers for most tests.
641caade7ccSmrgac_includes_default="\
642caade7ccSmrg#include <stdio.h>
643caade7ccSmrg#ifdef HAVE_SYS_TYPES_H
644caade7ccSmrg# include <sys/types.h>
645caade7ccSmrg#endif
646caade7ccSmrg#ifdef HAVE_SYS_STAT_H
647caade7ccSmrg# include <sys/stat.h>
648caade7ccSmrg#endif
649caade7ccSmrg#ifdef STDC_HEADERS
650caade7ccSmrg# include <stdlib.h>
651caade7ccSmrg# include <stddef.h>
652caade7ccSmrg#else
653caade7ccSmrg# ifdef HAVE_STDLIB_H
654caade7ccSmrg#  include <stdlib.h>
655caade7ccSmrg# endif
656caade7ccSmrg#endif
657caade7ccSmrg#ifdef HAVE_STRING_H
658caade7ccSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659caade7ccSmrg#  include <memory.h>
660caade7ccSmrg# endif
661caade7ccSmrg# include <string.h>
662caade7ccSmrg#endif
663caade7ccSmrg#ifdef HAVE_STRINGS_H
664caade7ccSmrg# include <strings.h>
665caade7ccSmrg#endif
666caade7ccSmrg#ifdef HAVE_INTTYPES_H
667caade7ccSmrg# include <inttypes.h>
668caade7ccSmrg#endif
669caade7ccSmrg#ifdef HAVE_STDINT_H
670caade7ccSmrg# include <stdint.h>
671caade7ccSmrg#endif
672caade7ccSmrg#ifdef HAVE_UNISTD_H
673caade7ccSmrg# include <unistd.h>
674caade7ccSmrg#endif"
675caade7ccSmrg
676485f0483Smrgac_subst_vars='am__EXEEXT_FALSE
677485f0483Smrgam__EXEEXT_TRUE
678485f0483SmrgLTLIBOBJS
679485f0483SmrgLIBOBJS
680485f0483SmrgMAKE_LINT_LIB_FALSE
681485f0483SmrgMAKE_LINT_LIB_TRUE
682485f0483SmrgLINTLIB
683485f0483SmrgLINT_FALSE
684485f0483SmrgLINT_TRUE
685485f0483SmrgLINT_FLAGS
686485f0483SmrgLINT
687485f0483SmrgXEXT_LIBS
688485f0483SmrgXEXT_CFLAGS
689b9b4fd27SmrgXEXT_SOREV
690a5602400SmrgXTMALLOC_ZERO_CFLAGS
691a5602400SmrgXMALLOC_ZERO_CFLAGS
692a5602400SmrgMALLOC_ZERO_CFLAGS
693e8a5466aSmrgHAVE_STYLESHEETS_FALSE
694e8a5466aSmrgHAVE_STYLESHEETS_TRUE
695e8a5466aSmrgXSL_STYLESHEET
696e8a5466aSmrgSTYLESHEET_SRCDIR
697e8a5466aSmrgXORG_SGML_PATH
698a5602400SmrgHAVE_XSLTPROC_FALSE
699a5602400SmrgHAVE_XSLTPROC_TRUE
700a5602400SmrgXSLTPROC
701e8a5466aSmrgHAVE_FOP_FALSE
702e8a5466aSmrgHAVE_FOP_TRUE
703e8a5466aSmrgFOP
704e8a5466aSmrgHAVE_XMLTO_FALSE
705e8a5466aSmrgHAVE_XMLTO_TRUE
706e8a5466aSmrgHAVE_XMLTO_TEXT_FALSE
707e8a5466aSmrgHAVE_XMLTO_TEXT_TRUE
708e8a5466aSmrgXMLTO
709e8a5466aSmrgENABLE_SPECS_FALSE
710e8a5466aSmrgENABLE_SPECS_TRUE
711b9b4fd27SmrgMAN_SUBSTS
712b9b4fd27SmrgXORG_MAN_PAGE
713b9b4fd27SmrgADMIN_MAN_DIR
714b9b4fd27SmrgDRIVER_MAN_DIR
715b9b4fd27SmrgMISC_MAN_DIR
716b9b4fd27SmrgFILE_MAN_DIR
717b9b4fd27SmrgLIB_MAN_DIR
718485f0483SmrgAPP_MAN_DIR
719485f0483SmrgADMIN_MAN_SUFFIX
720485f0483SmrgDRIVER_MAN_SUFFIX
721485f0483SmrgMISC_MAN_SUFFIX
722485f0483SmrgFILE_MAN_SUFFIX
723485f0483SmrgLIB_MAN_SUFFIX
724485f0483SmrgAPP_MAN_SUFFIX
725b9b4fd27SmrgINSTALL_CMD
726b9b4fd27SmrgPKG_CONFIG
727485f0483SmrgCHANGELOG_CMD
728a5602400SmrgSTRICT_CFLAGS
729485f0483SmrgCWARNFLAGS
730af9a7ee5SmrgBASE_CFLAGS
731a5602400SmrgCPP
732a5602400SmrgOTOOL64
733a5602400SmrgOTOOL
734a5602400SmrgLIPO
735a5602400SmrgNMEDIT
736a5602400SmrgDSYMUTIL
737a5602400SmrgMANIFEST_TOOL
738a5602400SmrgRANLIB
739a5602400Smrgac_ct_AR
740a5602400SmrgAR
741a5602400SmrgDLLTOOL
742a5602400SmrgOBJDUMP
743a5602400SmrgLN_S
744a5602400SmrgNM
745a5602400Smrgac_ct_DUMPBIN
746a5602400SmrgDUMPBIN
747a5602400SmrgLD
748a5602400SmrgFGREP
749485f0483SmrgEGREP
750485f0483SmrgGREP
751a5602400SmrgSED
752485f0483Smrgam__fastdepCC_FALSE
753485f0483Smrgam__fastdepCC_TRUE
754485f0483SmrgCCDEPMODE
755af9a7ee5Smrgam__nodep
756485f0483SmrgAMDEPBACKSLASH
757485f0483SmrgAMDEP_FALSE
758485f0483SmrgAMDEP_TRUE
759485f0483Smrgam__quote
760485f0483Smrgam__include
761485f0483SmrgDEPDIR
762485f0483SmrgOBJEXT
763485f0483SmrgEXEEXT
764485f0483Smrgac_ct_CC
765485f0483SmrgCPPFLAGS
766485f0483SmrgLDFLAGS
767485f0483SmrgCFLAGS
768485f0483SmrgCC
769a5602400Smrghost_os
770a5602400Smrghost_vendor
771a5602400Smrghost_cpu
772a5602400Smrghost
773a5602400Smrgbuild_os
774a5602400Smrgbuild_vendor
775a5602400Smrgbuild_cpu
776a5602400Smrgbuild
777a5602400SmrgLIBTOOL
778af9a7ee5SmrgAM_BACKSLASH
779af9a7ee5SmrgAM_DEFAULT_VERBOSITY
780af9a7ee5SmrgAM_DEFAULT_V
781af9a7ee5SmrgAM_V
782485f0483Smrgam__untar
783485f0483Smrgam__tar
784485f0483SmrgAMTAR
785485f0483Smrgam__leading_dot
786485f0483SmrgSET_MAKE
787485f0483SmrgAWK
788485f0483Smrgmkdir_p
789485f0483SmrgMKDIR_P
790485f0483SmrgINSTALL_STRIP_PROGRAM
791485f0483SmrgSTRIP
792485f0483Smrginstall_sh
793485f0483SmrgMAKEINFO
794485f0483SmrgAUTOHEADER
795485f0483SmrgAUTOMAKE
796485f0483SmrgAUTOCONF
797485f0483SmrgACLOCAL
798485f0483SmrgVERSION
799485f0483SmrgPACKAGE
800485f0483SmrgCYGPATH_W
801485f0483Smrgam__isrc
802485f0483SmrgINSTALL_DATA
803485f0483SmrgINSTALL_SCRIPT
804485f0483SmrgINSTALL_PROGRAM
805485f0483Smrgtarget_alias
806485f0483Smrghost_alias
807caade7ccSmrgbuild_alias
808485f0483SmrgLIBS
809485f0483SmrgECHO_T
810485f0483SmrgECHO_N
811485f0483SmrgECHO_C
812485f0483SmrgDEFS
813485f0483Smrgmandir
814485f0483Smrglocaledir
815485f0483Smrglibdir
816485f0483Smrgpsdir
817485f0483Smrgpdfdir
818485f0483Smrgdvidir
819485f0483Smrghtmldir
820485f0483Smrginfodir
821485f0483Smrgdocdir
822485f0483Smrgoldincludedir
823485f0483Smrgincludedir
824485f0483Smrglocalstatedir
825485f0483Smrgsharedstatedir
826485f0483Smrgsysconfdir
827485f0483Smrgdatadir
828485f0483Smrgdatarootdir
829485f0483Smrglibexecdir
830485f0483Smrgsbindir
831485f0483Smrgbindir
832485f0483Smrgprogram_transform_name
833485f0483Smrgprefix
834485f0483Smrgexec_prefix
835b9b4fd27SmrgPACKAGE_URL
836485f0483SmrgPACKAGE_BUGREPORT
837485f0483SmrgPACKAGE_STRING
838485f0483SmrgPACKAGE_VERSION
839485f0483SmrgPACKAGE_TARNAME
840485f0483SmrgPACKAGE_NAME
841485f0483SmrgPATH_SEPARATOR
842485f0483SmrgSHELL'
843485f0483Smrgac_subst_files=''
844485f0483Smrgac_user_opts='
845485f0483Smrgenable_option_checking
846af9a7ee5Smrgenable_silent_rules
847485f0483Smrgenable_shared
848485f0483Smrgenable_static
849b9b4fd27Smrgwith_pic
850485f0483Smrgenable_fast_install
851a5602400Smrgenable_dependency_tracking
852485f0483Smrgwith_gnu_ld
853a5602400Smrgwith_sysroot
854485f0483Smrgenable_libtool_lock
855af9a7ee5Smrgenable_selective_werror
856a5602400Smrgenable_strict_compilation
857a5602400Smrgenable_specs
858a5602400Smrgwith_xmlto
859a5602400Smrgwith_fop
860a5602400Smrgwith_xsltproc
861485f0483Smrgenable_malloc0returnsnull
862485f0483Smrgwith_lint
863485f0483Smrgenable_lint_library
864485f0483Smrg'
865485f0483Smrg      ac_precious_vars='build_alias
866caade7ccSmrghost_alias
867caade7ccSmrgtarget_alias
868caade7ccSmrgCC
869caade7ccSmrgCFLAGS
870caade7ccSmrgLDFLAGS
871485f0483SmrgLIBS
872caade7ccSmrgCPPFLAGS
873caade7ccSmrgCPP
874caade7ccSmrgPKG_CONFIG
875e8a5466aSmrgXMLTO
876e8a5466aSmrgFOP
877a5602400SmrgXSLTPROC
878caade7ccSmrgXEXT_CFLAGS
879e8a5466aSmrgXEXT_LIBS
880e8a5466aSmrgLINT
881e8a5466aSmrgLINT_FLAGS'
882caade7ccSmrg
883caade7ccSmrg
884caade7ccSmrg# Initialize some variables set by options.
885caade7ccSmrgac_init_help=
886caade7ccSmrgac_init_version=false
887485f0483Smrgac_unrecognized_opts=
888485f0483Smrgac_unrecognized_sep=
889caade7ccSmrg# The variables have the same names as the options, with
890caade7ccSmrg# dashes changed to underlines.
891caade7ccSmrgcache_file=/dev/null
892caade7ccSmrgexec_prefix=NONE
893caade7ccSmrgno_create=
894caade7ccSmrgno_recursion=
895caade7ccSmrgprefix=NONE
896caade7ccSmrgprogram_prefix=NONE
897caade7ccSmrgprogram_suffix=NONE
898caade7ccSmrgprogram_transform_name=s,x,x,
899caade7ccSmrgsilent=
900caade7ccSmrgsite=
901caade7ccSmrgsrcdir=
902caade7ccSmrgverbose=
903caade7ccSmrgx_includes=NONE
904caade7ccSmrgx_libraries=NONE
905caade7ccSmrg
906caade7ccSmrg# Installation directory options.
907caade7ccSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
908caade7ccSmrg# and all the variables that are supposed to be based on exec_prefix
909caade7ccSmrg# by default will actually change.
910caade7ccSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
911caade7ccSmrg# (The list follows the same order as the GNU Coding Standards.)
912caade7ccSmrgbindir='${exec_prefix}/bin'
913caade7ccSmrgsbindir='${exec_prefix}/sbin'
914caade7ccSmrglibexecdir='${exec_prefix}/libexec'
915caade7ccSmrgdatarootdir='${prefix}/share'
916caade7ccSmrgdatadir='${datarootdir}'
917caade7ccSmrgsysconfdir='${prefix}/etc'
918caade7ccSmrgsharedstatedir='${prefix}/com'
919caade7ccSmrglocalstatedir='${prefix}/var'
920caade7ccSmrgincludedir='${prefix}/include'
921caade7ccSmrgoldincludedir='/usr/include'
922caade7ccSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923caade7ccSmrginfodir='${datarootdir}/info'
924caade7ccSmrghtmldir='${docdir}'
925caade7ccSmrgdvidir='${docdir}'
926caade7ccSmrgpdfdir='${docdir}'
927caade7ccSmrgpsdir='${docdir}'
928caade7ccSmrglibdir='${exec_prefix}/lib'
929caade7ccSmrglocaledir='${datarootdir}/locale'
930caade7ccSmrgmandir='${datarootdir}/man'
931caade7ccSmrg
932caade7ccSmrgac_prev=
933caade7ccSmrgac_dashdash=
934caade7ccSmrgfor ac_option
935caade7ccSmrgdo
936caade7ccSmrg  # If the previous option needs an argument, assign it.
937caade7ccSmrg  if test -n "$ac_prev"; then
938caade7ccSmrg    eval $ac_prev=\$ac_option
939caade7ccSmrg    ac_prev=
940caade7ccSmrg    continue
941caade7ccSmrg  fi
942caade7ccSmrg
943caade7ccSmrg  case $ac_option in
944e8a5466aSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945e8a5466aSmrg  *=)   ac_optarg= ;;
946e8a5466aSmrg  *)    ac_optarg=yes ;;
947caade7ccSmrg  esac
948caade7ccSmrg
949caade7ccSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
950caade7ccSmrg
951caade7ccSmrg  case $ac_dashdash$ac_option in
952caade7ccSmrg  --)
953caade7ccSmrg    ac_dashdash=yes ;;
954caade7ccSmrg
955caade7ccSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
956caade7ccSmrg    ac_prev=bindir ;;
957caade7ccSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958caade7ccSmrg    bindir=$ac_optarg ;;
959caade7ccSmrg
960caade7ccSmrg  -build | --build | --buil | --bui | --bu)
961caade7ccSmrg    ac_prev=build_alias ;;
962caade7ccSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963caade7ccSmrg    build_alias=$ac_optarg ;;
964caade7ccSmrg
965caade7ccSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
966caade7ccSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967caade7ccSmrg    ac_prev=cache_file ;;
968caade7ccSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969caade7ccSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970caade7ccSmrg    cache_file=$ac_optarg ;;
971caade7ccSmrg
972caade7ccSmrg  --config-cache | -C)
973caade7ccSmrg    cache_file=config.cache ;;
974caade7ccSmrg
975caade7ccSmrg  -datadir | --datadir | --datadi | --datad)
976caade7ccSmrg    ac_prev=datadir ;;
977caade7ccSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
978caade7ccSmrg    datadir=$ac_optarg ;;
979caade7ccSmrg
980caade7ccSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981caade7ccSmrg  | --dataroo | --dataro | --datar)
982caade7ccSmrg    ac_prev=datarootdir ;;
983caade7ccSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984caade7ccSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985caade7ccSmrg    datarootdir=$ac_optarg ;;
986caade7ccSmrg
987caade7ccSmrg  -disable-* | --disable-*)
988485f0483Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989caade7ccSmrg    # Reject names that are not valid shell variable names.
990485f0483Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991e8a5466aSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
992485f0483Smrg    ac_useropt_orig=$ac_useropt
993485f0483Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994485f0483Smrg    case $ac_user_opts in
995485f0483Smrg      *"
996485f0483Smrg"enable_$ac_useropt"
997485f0483Smrg"*) ;;
998485f0483Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999485f0483Smrg	 ac_unrecognized_sep=', ';;
1000485f0483Smrg    esac
1001485f0483Smrg    eval enable_$ac_useropt=no ;;
1002caade7ccSmrg
1003caade7ccSmrg  -docdir | --docdir | --docdi | --doc | --do)
1004caade7ccSmrg    ac_prev=docdir ;;
1005caade7ccSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006caade7ccSmrg    docdir=$ac_optarg ;;
1007caade7ccSmrg
1008caade7ccSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009caade7ccSmrg    ac_prev=dvidir ;;
1010caade7ccSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011caade7ccSmrg    dvidir=$ac_optarg ;;
1012caade7ccSmrg
1013caade7ccSmrg  -enable-* | --enable-*)
1014485f0483Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015caade7ccSmrg    # Reject names that are not valid shell variable names.
1016485f0483Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017e8a5466aSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
1018485f0483Smrg    ac_useropt_orig=$ac_useropt
1019485f0483Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020485f0483Smrg    case $ac_user_opts in
1021485f0483Smrg      *"
1022485f0483Smrg"enable_$ac_useropt"
1023485f0483Smrg"*) ;;
1024485f0483Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025485f0483Smrg	 ac_unrecognized_sep=', ';;
1026485f0483Smrg    esac
1027485f0483Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
1028caade7ccSmrg
1029caade7ccSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030caade7ccSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031caade7ccSmrg  | --exec | --exe | --ex)
1032caade7ccSmrg    ac_prev=exec_prefix ;;
1033caade7ccSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034caade7ccSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035caade7ccSmrg  | --exec=* | --exe=* | --ex=*)
1036caade7ccSmrg    exec_prefix=$ac_optarg ;;
1037caade7ccSmrg
1038caade7ccSmrg  -gas | --gas | --ga | --g)
1039caade7ccSmrg    # Obsolete; use --with-gas.
1040caade7ccSmrg    with_gas=yes ;;
1041caade7ccSmrg
1042caade7ccSmrg  -help | --help | --hel | --he | -h)
1043caade7ccSmrg    ac_init_help=long ;;
1044caade7ccSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045caade7ccSmrg    ac_init_help=recursive ;;
1046caade7ccSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047caade7ccSmrg    ac_init_help=short ;;
1048caade7ccSmrg
1049caade7ccSmrg  -host | --host | --hos | --ho)
1050caade7ccSmrg    ac_prev=host_alias ;;
1051caade7ccSmrg  -host=* | --host=* | --hos=* | --ho=*)
1052caade7ccSmrg    host_alias=$ac_optarg ;;
1053caade7ccSmrg
1054caade7ccSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055caade7ccSmrg    ac_prev=htmldir ;;
1056caade7ccSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057caade7ccSmrg  | --ht=*)
1058caade7ccSmrg    htmldir=$ac_optarg ;;
1059caade7ccSmrg
1060caade7ccSmrg  -includedir | --includedir | --includedi | --included | --include \
1061caade7ccSmrg  | --includ | --inclu | --incl | --inc)
1062caade7ccSmrg    ac_prev=includedir ;;
1063caade7ccSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064caade7ccSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
1065caade7ccSmrg    includedir=$ac_optarg ;;
1066caade7ccSmrg
1067caade7ccSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
1068caade7ccSmrg    ac_prev=infodir ;;
1069caade7ccSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070caade7ccSmrg    infodir=$ac_optarg ;;
1071caade7ccSmrg
1072caade7ccSmrg  -libdir | --libdir | --libdi | --libd)
1073caade7ccSmrg    ac_prev=libdir ;;
1074caade7ccSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075caade7ccSmrg    libdir=$ac_optarg ;;
1076caade7ccSmrg
1077caade7ccSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078caade7ccSmrg  | --libexe | --libex | --libe)
1079caade7ccSmrg    ac_prev=libexecdir ;;
1080caade7ccSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081caade7ccSmrg  | --libexe=* | --libex=* | --libe=*)
1082caade7ccSmrg    libexecdir=$ac_optarg ;;
1083caade7ccSmrg
1084caade7ccSmrg  -localedir | --localedir | --localedi | --localed | --locale)
1085caade7ccSmrg    ac_prev=localedir ;;
1086caade7ccSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087caade7ccSmrg    localedir=$ac_optarg ;;
1088caade7ccSmrg
1089caade7ccSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1090caade7ccSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
1091caade7ccSmrg    ac_prev=localstatedir ;;
1092caade7ccSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093caade7ccSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094caade7ccSmrg    localstatedir=$ac_optarg ;;
1095caade7ccSmrg
1096caade7ccSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097caade7ccSmrg    ac_prev=mandir ;;
1098caade7ccSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099caade7ccSmrg    mandir=$ac_optarg ;;
1100caade7ccSmrg
1101caade7ccSmrg  -nfp | --nfp | --nf)
1102caade7ccSmrg    # Obsolete; use --without-fp.
1103caade7ccSmrg    with_fp=no ;;
1104caade7ccSmrg
1105caade7ccSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106caade7ccSmrg  | --no-cr | --no-c | -n)
1107caade7ccSmrg    no_create=yes ;;
1108caade7ccSmrg
1109caade7ccSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110caade7ccSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111caade7ccSmrg    no_recursion=yes ;;
1112caade7ccSmrg
1113caade7ccSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114caade7ccSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115caade7ccSmrg  | --oldin | --oldi | --old | --ol | --o)
1116caade7ccSmrg    ac_prev=oldincludedir ;;
1117caade7ccSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118caade7ccSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119caade7ccSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120caade7ccSmrg    oldincludedir=$ac_optarg ;;
1121caade7ccSmrg
1122caade7ccSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123caade7ccSmrg    ac_prev=prefix ;;
1124caade7ccSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125caade7ccSmrg    prefix=$ac_optarg ;;
1126caade7ccSmrg
1127caade7ccSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128caade7ccSmrg  | --program-pre | --program-pr | --program-p)
1129caade7ccSmrg    ac_prev=program_prefix ;;
1130caade7ccSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131caade7ccSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132caade7ccSmrg    program_prefix=$ac_optarg ;;
1133caade7ccSmrg
1134caade7ccSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135caade7ccSmrg  | --program-suf | --program-su | --program-s)
1136caade7ccSmrg    ac_prev=program_suffix ;;
1137caade7ccSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138caade7ccSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139caade7ccSmrg    program_suffix=$ac_optarg ;;
1140caade7ccSmrg
1141caade7ccSmrg  -program-transform-name | --program-transform-name \
1142caade7ccSmrg  | --program-transform-nam | --program-transform-na \
1143caade7ccSmrg  | --program-transform-n | --program-transform- \
1144caade7ccSmrg  | --program-transform | --program-transfor \
1145caade7ccSmrg  | --program-transfo | --program-transf \
1146caade7ccSmrg  | --program-trans | --program-tran \
1147caade7ccSmrg  | --progr-tra | --program-tr | --program-t)
1148caade7ccSmrg    ac_prev=program_transform_name ;;
1149caade7ccSmrg  -program-transform-name=* | --program-transform-name=* \
1150caade7ccSmrg  | --program-transform-nam=* | --program-transform-na=* \
1151caade7ccSmrg  | --program-transform-n=* | --program-transform-=* \
1152caade7ccSmrg  | --program-transform=* | --program-transfor=* \
1153caade7ccSmrg  | --program-transfo=* | --program-transf=* \
1154caade7ccSmrg  | --program-trans=* | --program-tran=* \
1155caade7ccSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1156caade7ccSmrg    program_transform_name=$ac_optarg ;;
1157caade7ccSmrg
1158caade7ccSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159caade7ccSmrg    ac_prev=pdfdir ;;
1160caade7ccSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161caade7ccSmrg    pdfdir=$ac_optarg ;;
1162caade7ccSmrg
1163caade7ccSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1164caade7ccSmrg    ac_prev=psdir ;;
1165caade7ccSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166caade7ccSmrg    psdir=$ac_optarg ;;
1167caade7ccSmrg
1168caade7ccSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169caade7ccSmrg  | -silent | --silent | --silen | --sile | --sil)
1170caade7ccSmrg    silent=yes ;;
1171caade7ccSmrg
1172caade7ccSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173caade7ccSmrg    ac_prev=sbindir ;;
1174caade7ccSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175caade7ccSmrg  | --sbi=* | --sb=*)
1176caade7ccSmrg    sbindir=$ac_optarg ;;
1177caade7ccSmrg
1178caade7ccSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179caade7ccSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180caade7ccSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1181caade7ccSmrg  | --sha | --sh)
1182caade7ccSmrg    ac_prev=sharedstatedir ;;
1183caade7ccSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184caade7ccSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185caade7ccSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186caade7ccSmrg  | --sha=* | --sh=*)
1187caade7ccSmrg    sharedstatedir=$ac_optarg ;;
1188caade7ccSmrg
1189caade7ccSmrg  -site | --site | --sit)
1190caade7ccSmrg    ac_prev=site ;;
1191caade7ccSmrg  -site=* | --site=* | --sit=*)
1192caade7ccSmrg    site=$ac_optarg ;;
1193caade7ccSmrg
1194caade7ccSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195caade7ccSmrg    ac_prev=srcdir ;;
1196caade7ccSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197caade7ccSmrg    srcdir=$ac_optarg ;;
1198caade7ccSmrg
1199caade7ccSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200caade7ccSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1201caade7ccSmrg    ac_prev=sysconfdir ;;
1202caade7ccSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203caade7ccSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204caade7ccSmrg    sysconfdir=$ac_optarg ;;
1205caade7ccSmrg
1206caade7ccSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1207caade7ccSmrg    ac_prev=target_alias ;;
1208caade7ccSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209caade7ccSmrg    target_alias=$ac_optarg ;;
1210caade7ccSmrg
1211caade7ccSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212caade7ccSmrg    verbose=yes ;;
1213caade7ccSmrg
1214caade7ccSmrg  -version | --version | --versio | --versi | --vers | -V)
1215caade7ccSmrg    ac_init_version=: ;;
1216caade7ccSmrg
1217caade7ccSmrg  -with-* | --with-*)
1218485f0483Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219caade7ccSmrg    # Reject names that are not valid shell variable names.
1220485f0483Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221e8a5466aSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1222485f0483Smrg    ac_useropt_orig=$ac_useropt
1223485f0483Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224485f0483Smrg    case $ac_user_opts in
1225485f0483Smrg      *"
1226485f0483Smrg"with_$ac_useropt"
1227485f0483Smrg"*) ;;
1228485f0483Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229485f0483Smrg	 ac_unrecognized_sep=', ';;
1230485f0483Smrg    esac
1231485f0483Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1232caade7ccSmrg
1233caade7ccSmrg  -without-* | --without-*)
1234485f0483Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235caade7ccSmrg    # Reject names that are not valid shell variable names.
1236485f0483Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237e8a5466aSmrg      as_fn_error $? "invalid package name: $ac_useropt"
1238485f0483Smrg    ac_useropt_orig=$ac_useropt
1239485f0483Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240485f0483Smrg    case $ac_user_opts in
1241485f0483Smrg      *"
1242485f0483Smrg"with_$ac_useropt"
1243485f0483Smrg"*) ;;
1244485f0483Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245485f0483Smrg	 ac_unrecognized_sep=', ';;
1246485f0483Smrg    esac
1247485f0483Smrg    eval with_$ac_useropt=no ;;
1248caade7ccSmrg
1249caade7ccSmrg  --x)
1250caade7ccSmrg    # Obsolete; use --with-x.
1251caade7ccSmrg    with_x=yes ;;
1252caade7ccSmrg
1253caade7ccSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254caade7ccSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1255caade7ccSmrg    ac_prev=x_includes ;;
1256caade7ccSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257caade7ccSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258caade7ccSmrg    x_includes=$ac_optarg ;;
1259caade7ccSmrg
1260caade7ccSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261caade7ccSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262caade7ccSmrg    ac_prev=x_libraries ;;
1263caade7ccSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264caade7ccSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265caade7ccSmrg    x_libraries=$ac_optarg ;;
1266caade7ccSmrg
1267e8a5466aSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268e8a5466aSmrgTry \`$0 --help' for more information"
1269caade7ccSmrg    ;;
1270caade7ccSmrg
1271caade7ccSmrg  *=*)
1272caade7ccSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273caade7ccSmrg    # Reject names that are not valid shell variable names.
1274b9b4fd27Smrg    case $ac_envvar in #(
1275b9b4fd27Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1276e8a5466aSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277b9b4fd27Smrg    esac
1278caade7ccSmrg    eval $ac_envvar=\$ac_optarg
1279caade7ccSmrg    export $ac_envvar ;;
1280caade7ccSmrg
1281caade7ccSmrg  *)
1282caade7ccSmrg    # FIXME: should be removed in autoconf 3.0.
1283485f0483Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284caade7ccSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285485f0483Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286e8a5466aSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1287caade7ccSmrg    ;;
1288caade7ccSmrg
1289caade7ccSmrg  esac
1290caade7ccSmrgdone
1291caade7ccSmrg
1292caade7ccSmrgif test -n "$ac_prev"; then
1293caade7ccSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294e8a5466aSmrg  as_fn_error $? "missing argument to $ac_option"
1295caade7ccSmrgfi
1296caade7ccSmrg
1297485f0483Smrgif test -n "$ac_unrecognized_opts"; then
1298485f0483Smrg  case $enable_option_checking in
1299485f0483Smrg    no) ;;
1300e8a5466aSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1301485f0483Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302485f0483Smrg  esac
1303485f0483Smrgfi
1304485f0483Smrg
1305485f0483Smrg# Check all directory arguments for consistency.
1306caade7ccSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307caade7ccSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1308caade7ccSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309caade7ccSmrg		libdir localedir mandir
1310caade7ccSmrgdo
1311caade7ccSmrg  eval ac_val=\$$ac_var
1312485f0483Smrg  # Remove trailing slashes.
1313485f0483Smrg  case $ac_val in
1314485f0483Smrg    */ )
1315485f0483Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316485f0483Smrg      eval $ac_var=\$ac_val;;
1317485f0483Smrg  esac
1318485f0483Smrg  # Be sure to have absolute directory names.
1319caade7ccSmrg  case $ac_val in
1320caade7ccSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1321caade7ccSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322caade7ccSmrg  esac
1323e8a5466aSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1324caade7ccSmrgdone
1325caade7ccSmrg
1326caade7ccSmrg# There might be people who depend on the old broken behavior: `$host'
1327caade7ccSmrg# used to hold the argument of --host etc.
1328caade7ccSmrg# FIXME: To remove some day.
1329caade7ccSmrgbuild=$build_alias
1330caade7ccSmrghost=$host_alias
1331caade7ccSmrgtarget=$target_alias
1332caade7ccSmrg
1333caade7ccSmrg# FIXME: To remove some day.
1334caade7ccSmrgif test "x$host_alias" != x; then
1335caade7ccSmrg  if test "x$build_alias" = x; then
1336caade7ccSmrg    cross_compiling=maybe
1337e8a5466aSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1338e8a5466aSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1339caade7ccSmrg  elif test "x$build_alias" != "x$host_alias"; then
1340caade7ccSmrg    cross_compiling=yes
1341caade7ccSmrg  fi
1342caade7ccSmrgfi
1343caade7ccSmrg
1344caade7ccSmrgac_tool_prefix=
1345caade7ccSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1346caade7ccSmrg
1347caade7ccSmrgtest "$silent" = yes && exec 6>/dev/null
1348caade7ccSmrg
1349caade7ccSmrg
1350caade7ccSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1351caade7ccSmrgac_ls_di=`ls -di .` &&
1352caade7ccSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353e8a5466aSmrg  as_fn_error $? "working directory cannot be determined"
1354caade7ccSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355e8a5466aSmrg  as_fn_error $? "pwd does not report name of working directory"
1356caade7ccSmrg
1357caade7ccSmrg
1358caade7ccSmrg# Find the source files, if location was not specified.
1359caade7ccSmrgif test -z "$srcdir"; then
1360caade7ccSmrg  ac_srcdir_defaulted=yes
1361caade7ccSmrg  # Try the directory containing this script, then the parent directory.
1362485f0483Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1363485f0483Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364485f0483Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1365485f0483Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1366485f0483Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367485f0483Smrg$as_echo X"$as_myself" |
1368caade7ccSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369caade7ccSmrg	    s//\1/
1370caade7ccSmrg	    q
1371caade7ccSmrg	  }
1372caade7ccSmrg	  /^X\(\/\/\)[^/].*/{
1373caade7ccSmrg	    s//\1/
1374caade7ccSmrg	    q
1375caade7ccSmrg	  }
1376caade7ccSmrg	  /^X\(\/\/\)$/{
1377caade7ccSmrg	    s//\1/
1378caade7ccSmrg	    q
1379caade7ccSmrg	  }
1380caade7ccSmrg	  /^X\(\/\).*/{
1381caade7ccSmrg	    s//\1/
1382caade7ccSmrg	    q
1383caade7ccSmrg	  }
1384caade7ccSmrg	  s/.*/./; q'`
1385caade7ccSmrg  srcdir=$ac_confdir
1386caade7ccSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1387caade7ccSmrg    srcdir=..
1388caade7ccSmrg  fi
1389caade7ccSmrgelse
1390caade7ccSmrg  ac_srcdir_defaulted=no
1391caade7ccSmrgfi
1392caade7ccSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1393caade7ccSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394e8a5466aSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395caade7ccSmrgfi
1396caade7ccSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397caade7ccSmrgac_abs_confdir=`(
1398e8a5466aSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399caade7ccSmrg	pwd)`
1400caade7ccSmrg# When building in place, set srcdir=.
1401caade7ccSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1402caade7ccSmrg  srcdir=.
1403caade7ccSmrgfi
1404caade7ccSmrg# Remove unnecessary trailing slashes from srcdir.
1405caade7ccSmrg# Double slashes in file names in object file debugging info
1406caade7ccSmrg# mess up M-x gdb in Emacs.
1407caade7ccSmrgcase $srcdir in
1408caade7ccSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409caade7ccSmrgesac
1410caade7ccSmrgfor ac_var in $ac_precious_vars; do
1411caade7ccSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412caade7ccSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1413caade7ccSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414caade7ccSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415caade7ccSmrgdone
1416caade7ccSmrg
1417caade7ccSmrg#
1418caade7ccSmrg# Report the --help message.
1419caade7ccSmrg#
1420caade7ccSmrgif test "$ac_init_help" = "long"; then
1421caade7ccSmrg  # Omit some internal or obsolete options to make the list less imposing.
1422caade7ccSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1423caade7ccSmrg  cat <<_ACEOF
1424af9a7ee5Smrg\`configure' configures libXext 1.3.2 to adapt to many kinds of systems.
1425caade7ccSmrg
1426caade7ccSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1427caade7ccSmrg
1428caade7ccSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1429caade7ccSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1430caade7ccSmrg
1431caade7ccSmrgDefaults for the options are specified in brackets.
1432caade7ccSmrg
1433caade7ccSmrgConfiguration:
1434caade7ccSmrg  -h, --help              display this help and exit
1435caade7ccSmrg      --help=short        display options specific to this package
1436caade7ccSmrg      --help=recursive    display the short help of all the included packages
1437caade7ccSmrg  -V, --version           display version information and exit
1438e8a5466aSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1439caade7ccSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1440caade7ccSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1441caade7ccSmrg  -n, --no-create         do not create output files
1442caade7ccSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443caade7ccSmrg
1444caade7ccSmrgInstallation directories:
1445caade7ccSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1446485f0483Smrg                          [$ac_default_prefix]
1447caade7ccSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448485f0483Smrg                          [PREFIX]
1449caade7ccSmrg
1450caade7ccSmrgBy default, \`make install' will install all the files in
1451caade7ccSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452caade7ccSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453caade7ccSmrgfor instance \`--prefix=\$HOME'.
1454caade7ccSmrg
1455caade7ccSmrgFor better control, use the options below.
1456caade7ccSmrg
1457caade7ccSmrgFine tuning of the installation directories:
1458485f0483Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1459485f0483Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1460485f0483Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1461485f0483Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1462485f0483Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1463485f0483Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1464485f0483Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1465485f0483Smrg  --includedir=DIR        C header files [PREFIX/include]
1466485f0483Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467485f0483Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468485f0483Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469485f0483Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1470485f0483Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471485f0483Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1472485f0483Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXext]
1473485f0483Smrg  --htmldir=DIR           html documentation [DOCDIR]
1474485f0483Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1475485f0483Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1476485f0483Smrg  --psdir=DIR             ps documentation [DOCDIR]
1477caade7ccSmrg_ACEOF
1478caade7ccSmrg
1479caade7ccSmrg  cat <<\_ACEOF
1480caade7ccSmrg
1481caade7ccSmrgProgram names:
1482caade7ccSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1483caade7ccSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1484caade7ccSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485caade7ccSmrg
1486caade7ccSmrgSystem types:
1487caade7ccSmrg  --build=BUILD     configure for building on BUILD [guessed]
1488caade7ccSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489caade7ccSmrg_ACEOF
1490caade7ccSmrgfi
1491caade7ccSmrg
1492caade7ccSmrgif test -n "$ac_init_help"; then
1493caade7ccSmrg  case $ac_init_help in
1494af9a7ee5Smrg     short | recursive ) echo "Configuration of libXext 1.3.2:";;
1495caade7ccSmrg   esac
1496caade7ccSmrg  cat <<\_ACEOF
1497caade7ccSmrg
1498caade7ccSmrgOptional Features:
1499485f0483Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1500caade7ccSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501caade7ccSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502af9a7ee5Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1503af9a7ee5Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1504a5602400Smrg  --enable-shared[=PKGS]  build shared libraries [default=yes]
1505a5602400Smrg  --enable-static[=PKGS]  build static libraries [default=yes]
1506a5602400Smrg  --enable-fast-install[=PKGS]
1507a5602400Smrg                          optimize for fast installation [default=yes]
1508af9a7ee5Smrg  --enable-dependency-tracking
1509af9a7ee5Smrg                          do not reject slow dependency extractors
1510af9a7ee5Smrg  --disable-dependency-tracking
1511af9a7ee5Smrg                          speeds up one-time build
1512a5602400Smrg  --disable-libtool-lock  avoid locking (might break parallel builds)
1513af9a7ee5Smrg  --disable-selective-werror
1514af9a7ee5Smrg                          Turn off selective compiler errors. (default:
1515af9a7ee5Smrg                          enabled)
1516485f0483Smrg  --enable-strict-compilation
1517485f0483Smrg                          Enable all warnings from compiler and make them
1518485f0483Smrg                          errors (default: disabled)
1519e8a5466aSmrg  --enable-specs          Enable building the specs (default: yes)
1520caade7ccSmrg  --enable-malloc0returnsnull
1521caade7ccSmrg                          malloc(0) returns NULL (default: auto)
1522caade7ccSmrg  --enable-lint-library   Create lint library (default: disabled)
1523caade7ccSmrg
1524caade7ccSmrgOptional Packages:
1525caade7ccSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526caade7ccSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527af9a7ee5Smrg  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1528b9b4fd27Smrg                          both]
1529b9b4fd27Smrg  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530a5602400Smrg  --with-sysroot=DIR Search for dependent libraries within DIR
1531a5602400Smrg                        (or the compiler's sysroot if not specified).
1532a5602400Smrg  --with-xmlto            Use xmlto to regenerate documentation (default:
1533a5602400Smrg                          auto)
1534a5602400Smrg  --with-fop              Use fop to regenerate documentation (default: auto)
1535a5602400Smrg  --with-xsltproc         Use xsltproc for the transformation of XML documents
1536a5602400Smrg                          (default: auto)
1537caade7ccSmrg  --with-lint             Use a lint-style source code checker (default:
1538caade7ccSmrg                          disabled)
1539caade7ccSmrg
1540caade7ccSmrgSome influential environment variables:
1541caade7ccSmrg  CC          C compiler command
1542caade7ccSmrg  CFLAGS      C compiler flags
1543caade7ccSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1544caade7ccSmrg              nonstandard directory <lib dir>
1545caade7ccSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1546b9b4fd27Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547caade7ccSmrg              you have headers in a nonstandard directory <include dir>
1548caade7ccSmrg  CPP         C preprocessor
1549caade7ccSmrg  PKG_CONFIG  path to pkg-config utility
1550e8a5466aSmrg  XMLTO       Path to xmlto command
1551e8a5466aSmrg  FOP         Path to fop command
1552a5602400Smrg  XSLTPROC    Path to xsltproc command
1553caade7ccSmrg  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1554caade7ccSmrg  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1555e8a5466aSmrg  LINT        Path to a lint-style command
1556e8a5466aSmrg  LINT_FLAGS  Flags for the lint-style command
1557caade7ccSmrg
1558caade7ccSmrgUse these variables to override the choices made by `configure' or to help
1559caade7ccSmrgit to find libraries and programs with nonstandard names/locations.
1560caade7ccSmrg
1561caade7ccSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1562caade7ccSmrg_ACEOF
1563caade7ccSmrgac_status=$?
1564caade7ccSmrgfi
1565caade7ccSmrg
1566caade7ccSmrgif test "$ac_init_help" = "recursive"; then
1567caade7ccSmrg  # If there are subdirs, report their specific --help.
1568caade7ccSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569485f0483Smrg    test -d "$ac_dir" ||
1570485f0483Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571485f0483Smrg      continue
1572caade7ccSmrg    ac_builddir=.
1573caade7ccSmrg
1574caade7ccSmrgcase "$ac_dir" in
1575caade7ccSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576caade7ccSmrg*)
1577485f0483Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578caade7ccSmrg  # A ".." for each directory in $ac_dir_suffix.
1579485f0483Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580caade7ccSmrg  case $ac_top_builddir_sub in
1581caade7ccSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582caade7ccSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583caade7ccSmrg  esac ;;
1584caade7ccSmrgesac
1585caade7ccSmrgac_abs_top_builddir=$ac_pwd
1586caade7ccSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1587caade7ccSmrg# for backward compatibility:
1588caade7ccSmrgac_top_builddir=$ac_top_build_prefix
1589caade7ccSmrg
1590caade7ccSmrgcase $srcdir in
1591caade7ccSmrg  .)  # We are building in place.
1592caade7ccSmrg    ac_srcdir=.
1593caade7ccSmrg    ac_top_srcdir=$ac_top_builddir_sub
1594caade7ccSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1595caade7ccSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1596caade7ccSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1597caade7ccSmrg    ac_top_srcdir=$srcdir
1598caade7ccSmrg    ac_abs_top_srcdir=$srcdir ;;
1599caade7ccSmrg  *) # Relative name.
1600caade7ccSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601caade7ccSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1602caade7ccSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603caade7ccSmrgesac
1604caade7ccSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605caade7ccSmrg
1606caade7ccSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1607caade7ccSmrg    # Check for guested configure.
1608caade7ccSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1609caade7ccSmrg      echo &&
1610caade7ccSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611caade7ccSmrg    elif test -f "$ac_srcdir/configure"; then
1612caade7ccSmrg      echo &&
1613caade7ccSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1614caade7ccSmrg    else
1615485f0483Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616caade7ccSmrg    fi || ac_status=$?
1617caade7ccSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1618caade7ccSmrg  done
1619caade7ccSmrgfi
1620caade7ccSmrg
1621caade7ccSmrgtest -n "$ac_init_help" && exit $ac_status
1622caade7ccSmrgif $ac_init_version; then
1623caade7ccSmrg  cat <<\_ACEOF
1624af9a7ee5SmrglibXext configure 1.3.2
1625e8a5466aSmrggenerated by GNU Autoconf 2.68
1626caade7ccSmrg
1627e8a5466aSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1628caade7ccSmrgThis configure script is free software; the Free Software Foundation
1629caade7ccSmrggives unlimited permission to copy, distribute and modify it.
1630caade7ccSmrg_ACEOF
1631caade7ccSmrg  exit
1632caade7ccSmrgfi
1633b9b4fd27Smrg
1634b9b4fd27Smrg## ------------------------ ##
1635b9b4fd27Smrg## Autoconf initialization. ##
1636b9b4fd27Smrg## ------------------------ ##
1637b9b4fd27Smrg
1638b9b4fd27Smrg# ac_fn_c_try_compile LINENO
1639b9b4fd27Smrg# --------------------------
1640b9b4fd27Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1641b9b4fd27Smrgac_fn_c_try_compile ()
1642b9b4fd27Smrg{
1643b9b4fd27Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644b9b4fd27Smrg  rm -f conftest.$ac_objext
1645b9b4fd27Smrg  if { { ac_try="$ac_compile"
1646b9b4fd27Smrgcase "(($ac_try" in
1647b9b4fd27Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648b9b4fd27Smrg  *) ac_try_echo=$ac_try;;
1649b9b4fd27Smrgesac
1650b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
1652b9b4fd27Smrg  (eval "$ac_compile") 2>conftest.err
1653b9b4fd27Smrg  ac_status=$?
1654b9b4fd27Smrg  if test -s conftest.err; then
1655b9b4fd27Smrg    grep -v '^ *+' conftest.err >conftest.er1
1656b9b4fd27Smrg    cat conftest.er1 >&5
1657b9b4fd27Smrg    mv -f conftest.er1 conftest.err
1658b9b4fd27Smrg  fi
1659b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660b9b4fd27Smrg  test $ac_status = 0; } && {
1661b9b4fd27Smrg	 test -z "$ac_c_werror_flag" ||
1662b9b4fd27Smrg	 test ! -s conftest.err
1663b9b4fd27Smrg       } && test -s conftest.$ac_objext; then :
1664b9b4fd27Smrg  ac_retval=0
1665b9b4fd27Smrgelse
1666b9b4fd27Smrg  $as_echo "$as_me: failed program was:" >&5
1667b9b4fd27Smrgsed 's/^/| /' conftest.$ac_ext >&5
1668b9b4fd27Smrg
1669b9b4fd27Smrg	ac_retval=1
1670b9b4fd27Smrgfi
1671e8a5466aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672b9b4fd27Smrg  as_fn_set_status $ac_retval
1673b9b4fd27Smrg
1674b9b4fd27Smrg} # ac_fn_c_try_compile
1675b9b4fd27Smrg
1676a5602400Smrg# ac_fn_c_try_link LINENO
1677a5602400Smrg# -----------------------
1678a5602400Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1679a5602400Smrgac_fn_c_try_link ()
1680b9b4fd27Smrg{
1681b9b4fd27Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682a5602400Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
1683a5602400Smrg  if { { ac_try="$ac_link"
1684a5602400Smrgcase "(($ac_try" in
1685a5602400Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686a5602400Smrg  *) ac_try_echo=$ac_try;;
1687a5602400Smrgesac
1688a5602400Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689a5602400Smrg$as_echo "$ac_try_echo"; } >&5
1690a5602400Smrg  (eval "$ac_link") 2>conftest.err
1691a5602400Smrg  ac_status=$?
1692a5602400Smrg  if test -s conftest.err; then
1693a5602400Smrg    grep -v '^ *+' conftest.err >conftest.er1
1694a5602400Smrg    cat conftest.er1 >&5
1695a5602400Smrg    mv -f conftest.er1 conftest.err
1696a5602400Smrg  fi
1697a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698a5602400Smrg  test $ac_status = 0; } && {
1699a5602400Smrg	 test -z "$ac_c_werror_flag" ||
1700a5602400Smrg	 test ! -s conftest.err
1701a5602400Smrg       } && test -s conftest$ac_exeext && {
1702a5602400Smrg	 test "$cross_compiling" = yes ||
1703a5602400Smrg	 $as_test_x conftest$ac_exeext
1704a5602400Smrg       }; then :
1705a5602400Smrg  ac_retval=0
1706a5602400Smrgelse
1707a5602400Smrg  $as_echo "$as_me: failed program was:" >&5
1708a5602400Smrgsed 's/^/| /' conftest.$ac_ext >&5
1709a5602400Smrg
1710a5602400Smrg	ac_retval=1
1711a5602400Smrgfi
1712a5602400Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713a5602400Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714a5602400Smrg  # interfere with the next link command; also delete a directory that is
1715a5602400Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
1716a5602400Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717a5602400Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718a5602400Smrg  as_fn_set_status $ac_retval
1719a5602400Smrg
1720a5602400Smrg} # ac_fn_c_try_link
1721a5602400Smrg
1722a5602400Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723a5602400Smrg# -------------------------------------------------------
1724a5602400Smrg# Tests whether HEADER exists and can be compiled using the include files in
1725a5602400Smrg# INCLUDES, setting the cache variable VAR accordingly.
1726a5602400Smrgac_fn_c_check_header_compile ()
1727a5602400Smrg{
1728a5602400Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730a5602400Smrg$as_echo_n "checking for $2... " >&6; }
1731e8a5466aSmrgif eval \${$3+:} false; then :
1732b9b4fd27Smrg  $as_echo_n "(cached) " >&6
1733b9b4fd27Smrgelse
1734b9b4fd27Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735b9b4fd27Smrg/* end confdefs.h.  */
1736b9b4fd27Smrg$4
1737a5602400Smrg#include <$2>
1738b9b4fd27Smrg_ACEOF
1739b9b4fd27Smrgif ac_fn_c_try_compile "$LINENO"; then :
1740b9b4fd27Smrg  eval "$3=yes"
1741b9b4fd27Smrgelse
1742b9b4fd27Smrg  eval "$3=no"
1743b9b4fd27Smrgfi
1744b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745b9b4fd27Smrgfi
1746b9b4fd27Smrgeval ac_res=\$$3
1747b9b4fd27Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748b9b4fd27Smrg$as_echo "$ac_res" >&6; }
1749e8a5466aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750b9b4fd27Smrg
1751a5602400Smrg} # ac_fn_c_check_header_compile
1752b9b4fd27Smrg
1753b9b4fd27Smrg# ac_fn_c_try_cpp LINENO
1754b9b4fd27Smrg# ----------------------
1755b9b4fd27Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756b9b4fd27Smrgac_fn_c_try_cpp ()
1757b9b4fd27Smrg{
1758b9b4fd27Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759b9b4fd27Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
1760b9b4fd27Smrgcase "(($ac_try" in
1761b9b4fd27Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762b9b4fd27Smrg  *) ac_try_echo=$ac_try;;
1763b9b4fd27Smrgesac
1764b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
1766b9b4fd27Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767b9b4fd27Smrg  ac_status=$?
1768b9b4fd27Smrg  if test -s conftest.err; then
1769b9b4fd27Smrg    grep -v '^ *+' conftest.err >conftest.er1
1770b9b4fd27Smrg    cat conftest.er1 >&5
1771b9b4fd27Smrg    mv -f conftest.er1 conftest.err
1772b9b4fd27Smrg  fi
1773b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774e8a5466aSmrg  test $ac_status = 0; } > conftest.i && {
1775b9b4fd27Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1776b9b4fd27Smrg	 test ! -s conftest.err
1777b9b4fd27Smrg       }; then :
1778b9b4fd27Smrg  ac_retval=0
1779b9b4fd27Smrgelse
1780b9b4fd27Smrg  $as_echo "$as_me: failed program was:" >&5
1781b9b4fd27Smrgsed 's/^/| /' conftest.$ac_ext >&5
1782b9b4fd27Smrg
1783b9b4fd27Smrg    ac_retval=1
1784b9b4fd27Smrgfi
1785e8a5466aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786b9b4fd27Smrg  as_fn_set_status $ac_retval
1787b9b4fd27Smrg
1788b9b4fd27Smrg} # ac_fn_c_try_cpp
1789b9b4fd27Smrg
1790b9b4fd27Smrg# ac_fn_c_try_run LINENO
1791b9b4fd27Smrg# ----------------------
1792b9b4fd27Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1793b9b4fd27Smrg# that executables *can* be run.
1794b9b4fd27Smrgac_fn_c_try_run ()
1795b9b4fd27Smrg{
1796b9b4fd27Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797b9b4fd27Smrg  if { { ac_try="$ac_link"
1798b9b4fd27Smrgcase "(($ac_try" in
1799b9b4fd27Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800b9b4fd27Smrg  *) ac_try_echo=$ac_try;;
1801b9b4fd27Smrgesac
1802b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
1804b9b4fd27Smrg  (eval "$ac_link") 2>&5
1805b9b4fd27Smrg  ac_status=$?
1806b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807b9b4fd27Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1808b9b4fd27Smrg  { { case "(($ac_try" in
1809b9b4fd27Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810b9b4fd27Smrg  *) ac_try_echo=$ac_try;;
1811b9b4fd27Smrgesac
1812b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
1814b9b4fd27Smrg  (eval "$ac_try") 2>&5
1815b9b4fd27Smrg  ac_status=$?
1816b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817b9b4fd27Smrg  test $ac_status = 0; }; }; then :
1818b9b4fd27Smrg  ac_retval=0
1819b9b4fd27Smrgelse
1820b9b4fd27Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
1821b9b4fd27Smrg       $as_echo "$as_me: failed program was:" >&5
1822b9b4fd27Smrgsed 's/^/| /' conftest.$ac_ext >&5
1823b9b4fd27Smrg
1824b9b4fd27Smrg       ac_retval=$ac_status
1825b9b4fd27Smrgfi
1826b9b4fd27Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827e8a5466aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828b9b4fd27Smrg  as_fn_set_status $ac_retval
1829b9b4fd27Smrg
1830b9b4fd27Smrg} # ac_fn_c_try_run
1831b9b4fd27Smrg
1832b9b4fd27Smrg# ac_fn_c_check_func LINENO FUNC VAR
1833b9b4fd27Smrg# ----------------------------------
1834b9b4fd27Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
1835b9b4fd27Smrgac_fn_c_check_func ()
1836b9b4fd27Smrg{
1837b9b4fd27Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839b9b4fd27Smrg$as_echo_n "checking for $2... " >&6; }
1840e8a5466aSmrgif eval \${$3+:} false; then :
1841b9b4fd27Smrg  $as_echo_n "(cached) " >&6
1842b9b4fd27Smrgelse
1843b9b4fd27Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844b9b4fd27Smrg/* end confdefs.h.  */
1845b9b4fd27Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846b9b4fd27Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1847b9b4fd27Smrg#define $2 innocuous_$2
1848b9b4fd27Smrg
1849b9b4fd27Smrg/* System header to define __stub macros and hopefully few prototypes,
1850b9b4fd27Smrg    which can conflict with char $2 (); below.
1851b9b4fd27Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852b9b4fd27Smrg    <limits.h> exists even on freestanding compilers.  */
1853b9b4fd27Smrg
1854b9b4fd27Smrg#ifdef __STDC__
1855b9b4fd27Smrg# include <limits.h>
1856b9b4fd27Smrg#else
1857b9b4fd27Smrg# include <assert.h>
1858b9b4fd27Smrg#endif
1859b9b4fd27Smrg
1860b9b4fd27Smrg#undef $2
1861b9b4fd27Smrg
1862b9b4fd27Smrg/* Override any GCC internal prototype to avoid an error.
1863b9b4fd27Smrg   Use char because int might match the return type of a GCC
1864b9b4fd27Smrg   builtin and then its argument prototype would still apply.  */
1865b9b4fd27Smrg#ifdef __cplusplus
1866b9b4fd27Smrgextern "C"
1867b9b4fd27Smrg#endif
1868b9b4fd27Smrgchar $2 ();
1869b9b4fd27Smrg/* The GNU C library defines this for functions which it implements
1870b9b4fd27Smrg    to always fail with ENOSYS.  Some functions are actually named
1871b9b4fd27Smrg    something starting with __ and the normal name is an alias.  */
1872b9b4fd27Smrg#if defined __stub_$2 || defined __stub___$2
1873b9b4fd27Smrgchoke me
1874b9b4fd27Smrg#endif
1875b9b4fd27Smrg
1876b9b4fd27Smrgint
1877b9b4fd27Smrgmain ()
1878b9b4fd27Smrg{
1879b9b4fd27Smrgreturn $2 ();
1880b9b4fd27Smrg  ;
1881b9b4fd27Smrg  return 0;
1882b9b4fd27Smrg}
1883b9b4fd27Smrg_ACEOF
1884b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
1885b9b4fd27Smrg  eval "$3=yes"
1886b9b4fd27Smrgelse
1887b9b4fd27Smrg  eval "$3=no"
1888b9b4fd27Smrgfi
1889b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
1890b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
1891b9b4fd27Smrgfi
1892b9b4fd27Smrgeval ac_res=\$$3
1893b9b4fd27Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894b9b4fd27Smrg$as_echo "$ac_res" >&6; }
1895e8a5466aSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896b9b4fd27Smrg
1897b9b4fd27Smrg} # ac_fn_c_check_func
1898caade7ccSmrg
1899a5602400Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1900a5602400Smrg# ---------------------------------------------
1901a5602400Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1902a5602400Smrg# accordingly.
1903a5602400Smrgac_fn_c_check_decl ()
1904caade7ccSmrg{
1905a5602400Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906a5602400Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1907a5602400Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1908a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1909a5602400Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1910a5602400Smrgif eval \${$3+:} false; then :
1911a5602400Smrg  $as_echo_n "(cached) " >&6
1912a5602400Smrgelse
1913a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914a5602400Smrg/* end confdefs.h.  */
1915a5602400Smrg$4
1916a5602400Smrgint
1917a5602400Smrgmain ()
1918a5602400Smrg{
1919a5602400Smrg#ifndef $as_decl_name
1920a5602400Smrg#ifdef __cplusplus
1921a5602400Smrg  (void) $as_decl_use;
1922a5602400Smrg#else
1923a5602400Smrg  (void) $as_decl_name;
1924a5602400Smrg#endif
1925a5602400Smrg#endif
1926a5602400Smrg
1927a5602400Smrg  ;
1928a5602400Smrg  return 0;
1929a5602400Smrg}
1930a5602400Smrg_ACEOF
1931a5602400Smrgif ac_fn_c_try_compile "$LINENO"; then :
1932a5602400Smrg  eval "$3=yes"
1933a5602400Smrgelse
1934a5602400Smrg  eval "$3=no"
1935a5602400Smrgfi
1936a5602400Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937a5602400Smrgfi
1938a5602400Smrgeval ac_res=\$$3
1939a5602400Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940a5602400Smrg$as_echo "$ac_res" >&6; }
1941a5602400Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942a5602400Smrg
1943a5602400Smrg} # ac_fn_c_check_decl
1944a5602400Smrgcat >config.log <<_ACEOF
1945a5602400SmrgThis file contains any messages produced by compilers while
1946a5602400Smrgrunning configure, to aid debugging if configure makes a mistake.
1947a5602400Smrg
1948af9a7ee5SmrgIt was created by libXext $as_me 1.3.2, which was
1949a5602400Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
1950a5602400Smrg
1951a5602400Smrg  $ $0 $@
1952a5602400Smrg
1953a5602400Smrg_ACEOF
1954a5602400Smrgexec 5>>config.log
1955a5602400Smrg{
1956a5602400Smrgcat <<_ASUNAME
1957a5602400Smrg## --------- ##
1958a5602400Smrg## Platform. ##
1959a5602400Smrg## --------- ##
1960caade7ccSmrg
1961caade7ccSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962caade7ccSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1963caade7ccSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1964caade7ccSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1965caade7ccSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1966caade7ccSmrg
1967caade7ccSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968caade7ccSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1969caade7ccSmrg
1970caade7ccSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1971caade7ccSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1972caade7ccSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973caade7ccSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1974caade7ccSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1975caade7ccSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1976caade7ccSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1977caade7ccSmrg
1978caade7ccSmrg_ASUNAME
1979caade7ccSmrg
1980caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981caade7ccSmrgfor as_dir in $PATH
1982caade7ccSmrgdo
1983caade7ccSmrg  IFS=$as_save_IFS
1984caade7ccSmrg  test -z "$as_dir" && as_dir=.
1985b9b4fd27Smrg    $as_echo "PATH: $as_dir"
1986b9b4fd27Smrg  done
1987caade7ccSmrgIFS=$as_save_IFS
1988caade7ccSmrg
1989caade7ccSmrg} >&5
1990caade7ccSmrg
1991caade7ccSmrgcat >&5 <<_ACEOF
1992caade7ccSmrg
1993caade7ccSmrg
1994caade7ccSmrg## ----------- ##
1995caade7ccSmrg## Core tests. ##
1996caade7ccSmrg## ----------- ##
1997caade7ccSmrg
1998caade7ccSmrg_ACEOF
1999caade7ccSmrg
2000caade7ccSmrg
2001caade7ccSmrg# Keep a trace of the command line.
2002caade7ccSmrg# Strip out --no-create and --no-recursion so they do not pile up.
2003caade7ccSmrg# Strip out --silent because we don't want to record it for future runs.
2004caade7ccSmrg# Also quote any args containing shell meta-characters.
2005caade7ccSmrg# Make two passes to allow for proper duplicate-argument suppression.
2006caade7ccSmrgac_configure_args=
2007caade7ccSmrgac_configure_args0=
2008caade7ccSmrgac_configure_args1=
2009caade7ccSmrgac_must_keep_next=false
2010caade7ccSmrgfor ac_pass in 1 2
2011caade7ccSmrgdo
2012caade7ccSmrg  for ac_arg
2013caade7ccSmrg  do
2014caade7ccSmrg    case $ac_arg in
2015caade7ccSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016caade7ccSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017caade7ccSmrg    | -silent | --silent | --silen | --sile | --sil)
2018caade7ccSmrg      continue ;;
2019caade7ccSmrg    *\'*)
2020485f0483Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2021caade7ccSmrg    esac
2022caade7ccSmrg    case $ac_pass in
2023b9b4fd27Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2024caade7ccSmrg    2)
2025b9b4fd27Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
2026caade7ccSmrg      if test $ac_must_keep_next = true; then
2027caade7ccSmrg	ac_must_keep_next=false # Got value, back to normal.
2028caade7ccSmrg      else
2029caade7ccSmrg	case $ac_arg in
2030caade7ccSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
2031caade7ccSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032caade7ccSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033caade7ccSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
2034caade7ccSmrg	    case "$ac_configure_args0 " in
2035caade7ccSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036caade7ccSmrg	    esac
2037caade7ccSmrg	    ;;
2038caade7ccSmrg	  -* ) ac_must_keep_next=true ;;
2039caade7ccSmrg	esac
2040caade7ccSmrg      fi
2041b9b4fd27Smrg      as_fn_append ac_configure_args " '$ac_arg'"
2042caade7ccSmrg      ;;
2043caade7ccSmrg    esac
2044caade7ccSmrg  done
2045caade7ccSmrgdone
2046b9b4fd27Smrg{ ac_configure_args0=; unset ac_configure_args0;}
2047b9b4fd27Smrg{ ac_configure_args1=; unset ac_configure_args1;}
2048caade7ccSmrg
2049caade7ccSmrg# When interrupted or exit'd, cleanup temporary files, and complete
2050caade7ccSmrg# config.log.  We remove comments because anyway the quotes in there
2051caade7ccSmrg# would cause problems or look ugly.
2052caade7ccSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
2053caade7ccSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054caade7ccSmrgtrap 'exit_status=$?
2055caade7ccSmrg  # Save into config.log some information that might help in debugging.
2056caade7ccSmrg  {
2057caade7ccSmrg    echo
2058caade7ccSmrg
2059e8a5466aSmrg    $as_echo "## ---------------- ##
2060caade7ccSmrg## Cache variables. ##
2061e8a5466aSmrg## ---------------- ##"
2062caade7ccSmrg    echo
2063caade7ccSmrg    # The following way of writing the cache mishandles newlines in values,
2064caade7ccSmrg(
2065caade7ccSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066caade7ccSmrg    eval ac_val=\$$ac_var
2067caade7ccSmrg    case $ac_val in #(
2068caade7ccSmrg    *${as_nl}*)
2069caade7ccSmrg      case $ac_var in #(
2070b9b4fd27Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071485f0483Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072caade7ccSmrg      esac
2073caade7ccSmrg      case $ac_var in #(
2074caade7ccSmrg      _ | IFS | as_nl) ;; #(
2075485f0483Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076b9b4fd27Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
2077caade7ccSmrg      esac ;;
2078caade7ccSmrg    esac
2079caade7ccSmrg  done
2080caade7ccSmrg  (set) 2>&1 |
2081caade7ccSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082caade7ccSmrg    *${as_nl}ac_space=\ *)
2083caade7ccSmrg      sed -n \
2084caade7ccSmrg	"s/'\''/'\''\\\\'\'''\''/g;
2085caade7ccSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086caade7ccSmrg      ;; #(
2087caade7ccSmrg    *)
2088caade7ccSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2089caade7ccSmrg      ;;
2090caade7ccSmrg    esac |
2091caade7ccSmrg    sort
2092caade7ccSmrg)
2093caade7ccSmrg    echo
2094caade7ccSmrg
2095e8a5466aSmrg    $as_echo "## ----------------- ##
2096caade7ccSmrg## Output variables. ##
2097e8a5466aSmrg## ----------------- ##"
2098caade7ccSmrg    echo
2099caade7ccSmrg    for ac_var in $ac_subst_vars
2100caade7ccSmrg    do
2101caade7ccSmrg      eval ac_val=\$$ac_var
2102caade7ccSmrg      case $ac_val in
2103485f0483Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104caade7ccSmrg      esac
2105485f0483Smrg      $as_echo "$ac_var='\''$ac_val'\''"
2106caade7ccSmrg    done | sort
2107caade7ccSmrg    echo
2108caade7ccSmrg
2109caade7ccSmrg    if test -n "$ac_subst_files"; then
2110e8a5466aSmrg      $as_echo "## ------------------- ##
2111caade7ccSmrg## File substitutions. ##
2112e8a5466aSmrg## ------------------- ##"
2113caade7ccSmrg      echo
2114caade7ccSmrg      for ac_var in $ac_subst_files
2115caade7ccSmrg      do
2116caade7ccSmrg	eval ac_val=\$$ac_var
2117caade7ccSmrg	case $ac_val in
2118485f0483Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119caade7ccSmrg	esac
2120485f0483Smrg	$as_echo "$ac_var='\''$ac_val'\''"
2121caade7ccSmrg      done | sort
2122caade7ccSmrg      echo
2123caade7ccSmrg    fi
2124caade7ccSmrg
2125caade7ccSmrg    if test -s confdefs.h; then
2126e8a5466aSmrg      $as_echo "## ----------- ##
2127caade7ccSmrg## confdefs.h. ##
2128e8a5466aSmrg## ----------- ##"
2129caade7ccSmrg      echo
2130caade7ccSmrg      cat confdefs.h
2131caade7ccSmrg      echo
2132caade7ccSmrg    fi
2133caade7ccSmrg    test "$ac_signal" != 0 &&
2134485f0483Smrg      $as_echo "$as_me: caught signal $ac_signal"
2135485f0483Smrg    $as_echo "$as_me: exit $exit_status"
2136caade7ccSmrg  } >&5
2137caade7ccSmrg  rm -f core *.core core.conftest.* &&
2138caade7ccSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139caade7ccSmrg    exit $exit_status
2140caade7ccSmrg' 0
2141caade7ccSmrgfor ac_signal in 1 2 13 15; do
2142b9b4fd27Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143caade7ccSmrgdone
2144caade7ccSmrgac_signal=0
2145caade7ccSmrg
2146caade7ccSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2147caade7ccSmrgrm -f -r conftest* confdefs.h
2148caade7ccSmrg
2149b9b4fd27Smrg$as_echo "/* confdefs.h */" > confdefs.h
2150b9b4fd27Smrg
2151caade7ccSmrg# Predefined preprocessor variables.
2152caade7ccSmrg
2153caade7ccSmrgcat >>confdefs.h <<_ACEOF
2154caade7ccSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2155caade7ccSmrg_ACEOF
2156caade7ccSmrg
2157caade7ccSmrgcat >>confdefs.h <<_ACEOF
2158caade7ccSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159caade7ccSmrg_ACEOF
2160caade7ccSmrg
2161caade7ccSmrgcat >>confdefs.h <<_ACEOF
2162caade7ccSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2163caade7ccSmrg_ACEOF
2164caade7ccSmrg
2165caade7ccSmrgcat >>confdefs.h <<_ACEOF
2166caade7ccSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2167caade7ccSmrg_ACEOF
2168caade7ccSmrg
2169caade7ccSmrgcat >>confdefs.h <<_ACEOF
2170caade7ccSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171caade7ccSmrg_ACEOF
2172caade7ccSmrg
2173b9b4fd27Smrgcat >>confdefs.h <<_ACEOF
2174b9b4fd27Smrg#define PACKAGE_URL "$PACKAGE_URL"
2175b9b4fd27Smrg_ACEOF
2176b9b4fd27Smrg
2177caade7ccSmrg
2178caade7ccSmrg# Let the site file select an alternate cache file if it wants to.
2179485f0483Smrg# Prefer an explicitly selected file to automatically selected ones.
2180485f0483Smrgac_site_file1=NONE
2181485f0483Smrgac_site_file2=NONE
2182caade7ccSmrgif test -n "$CONFIG_SITE"; then
2183e8a5466aSmrg  # We do not want a PATH search for config.site.
2184e8a5466aSmrg  case $CONFIG_SITE in #((
2185e8a5466aSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
2186e8a5466aSmrg    */*) ac_site_file1=$CONFIG_SITE;;
2187e8a5466aSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
2188e8a5466aSmrg  esac
2189caade7ccSmrgelif test "x$prefix" != xNONE; then
2190485f0483Smrg  ac_site_file1=$prefix/share/config.site
2191485f0483Smrg  ac_site_file2=$prefix/etc/config.site
2192caade7ccSmrgelse
2193485f0483Smrg  ac_site_file1=$ac_default_prefix/share/config.site
2194485f0483Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
2195caade7ccSmrgfi
2196485f0483Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197caade7ccSmrgdo
2198485f0483Smrg  test "x$ac_site_file" = xNONE && continue
2199b9b4fd27Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2200b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201485f0483Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202caade7ccSmrg    sed 's/^/| /' "$ac_site_file" >&5
2203e8a5466aSmrg    . "$ac_site_file" \
2204e8a5466aSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205e8a5466aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206e8a5466aSmrgas_fn_error $? "failed to load site script $ac_site_file
2207e8a5466aSmrgSee \`config.log' for more details" "$LINENO" 5; }
2208caade7ccSmrg  fi
2209caade7ccSmrgdone
2210caade7ccSmrg
2211caade7ccSmrgif test -r "$cache_file"; then
2212b9b4fd27Smrg  # Some versions of bash will fail to source /dev/null (special files
2213b9b4fd27Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2214b9b4fd27Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2215b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216485f0483Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2217caade7ccSmrg    case $cache_file in
2218caade7ccSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219caade7ccSmrg      *)                      . "./$cache_file";;
2220caade7ccSmrg    esac
2221caade7ccSmrg  fi
2222caade7ccSmrgelse
2223b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224485f0483Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2225caade7ccSmrg  >$cache_file
2226caade7ccSmrgfi
2227caade7ccSmrg
2228caade7ccSmrg# Check that the precious variables saved in the cache have kept the same
2229caade7ccSmrg# value.
2230caade7ccSmrgac_cache_corrupted=false
2231caade7ccSmrgfor ac_var in $ac_precious_vars; do
2232caade7ccSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233caade7ccSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2234caade7ccSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235caade7ccSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2236caade7ccSmrg  case $ac_old_set,$ac_new_set in
2237caade7ccSmrg    set,)
2238b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239485f0483Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240caade7ccSmrg      ac_cache_corrupted=: ;;
2241caade7ccSmrg    ,set)
2242b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243485f0483Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244caade7ccSmrg      ac_cache_corrupted=: ;;
2245caade7ccSmrg    ,);;
2246caade7ccSmrg    *)
2247caade7ccSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2248485f0483Smrg	# differences in whitespace do not lead to failure.
2249485f0483Smrg	ac_old_val_w=`echo x $ac_old_val`
2250485f0483Smrg	ac_new_val_w=`echo x $ac_new_val`
2251485f0483Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252b9b4fd27Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253485f0483Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254485f0483Smrg	  ac_cache_corrupted=:
2255485f0483Smrg	else
2256b9b4fd27Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257485f0483Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258485f0483Smrg	  eval $ac_var=\$ac_old_val
2259485f0483Smrg	fi
2260b9b4fd27Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2261485f0483Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2262b9b4fd27Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2263485f0483Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2264caade7ccSmrg      fi;;
2265caade7ccSmrg  esac
2266caade7ccSmrg  # Pass precious variables to config.status.
2267caade7ccSmrg  if test "$ac_new_set" = set; then
2268caade7ccSmrg    case $ac_new_val in
2269485f0483Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270caade7ccSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2271caade7ccSmrg    esac
2272caade7ccSmrg    case " $ac_configure_args " in
2273caade7ccSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2274b9b4fd27Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2275caade7ccSmrg    esac
2276caade7ccSmrg  fi
2277caade7ccSmrgdone
2278caade7ccSmrgif $ac_cache_corrupted; then
2279b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280485f0483Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282485f0483Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283e8a5466aSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2284caade7ccSmrgfi
2285b9b4fd27Smrg## -------------------- ##
2286b9b4fd27Smrg## Main body of script. ##
2287b9b4fd27Smrg## -------------------- ##
2288caade7ccSmrg
2289caade7ccSmrgac_ext=c
2290caade7ccSmrgac_cpp='$CPP $CPPFLAGS'
2291caade7ccSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292caade7ccSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293caade7ccSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2294caade7ccSmrg
2295caade7ccSmrg
2296caade7ccSmrg
2297a5602400Smrgac_config_headers="$ac_config_headers config.h"
2298a5602400Smrg
2299caade7ccSmrg
2300a5602400Smrg# Initialize Automake
2301af9a7ee5Smrgam__api_version='1.13'
2302caade7ccSmrg
2303caade7ccSmrgac_aux_dir=
2304caade7ccSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2305e8a5466aSmrg  if test -f "$ac_dir/install-sh"; then
2306e8a5466aSmrg    ac_aux_dir=$ac_dir
2307e8a5466aSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2308e8a5466aSmrg    break
2309e8a5466aSmrg  elif test -f "$ac_dir/install.sh"; then
2310e8a5466aSmrg    ac_aux_dir=$ac_dir
2311e8a5466aSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2312e8a5466aSmrg    break
2313e8a5466aSmrg  elif test -f "$ac_dir/shtool"; then
2314e8a5466aSmrg    ac_aux_dir=$ac_dir
2315e8a5466aSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2316e8a5466aSmrg    break
2317e8a5466aSmrg  fi
2318caade7ccSmrgdone
2319caade7ccSmrgif test -z "$ac_aux_dir"; then
2320e8a5466aSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2321caade7ccSmrgfi
2322caade7ccSmrg
2323caade7ccSmrg# These three variables are undocumented and unsupported,
2324caade7ccSmrg# and are intended to be withdrawn in a future Autoconf release.
2325caade7ccSmrg# They can cause serious problems if a builder's source tree is in a directory
2326caade7ccSmrg# whose full name contains unusual characters.
2327caade7ccSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2328caade7ccSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2329caade7ccSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2330caade7ccSmrg
2331caade7ccSmrg
2332caade7ccSmrg# Find a good install program.  We prefer a C program (faster),
2333caade7ccSmrg# so one script is as good as another.  But avoid the broken or
2334caade7ccSmrg# incompatible versions:
2335caade7ccSmrg# SysV /etc/install, /usr/sbin/install
2336caade7ccSmrg# SunOS /usr/etc/install
2337caade7ccSmrg# IRIX /sbin/install
2338caade7ccSmrg# AIX /bin/install
2339caade7ccSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2340caade7ccSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2341caade7ccSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2342caade7ccSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2343caade7ccSmrg# OS/2's system install, which has a completely different semantic
2344caade7ccSmrg# ./install, which can be erroneously created by make from ./install.sh.
2345485f0483Smrg# Reject install programs that cannot install multiple files.
2346b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2347485f0483Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2348caade7ccSmrgif test -z "$INSTALL"; then
2349e8a5466aSmrgif ${ac_cv_path_install+:} false; then :
2350485f0483Smrg  $as_echo_n "(cached) " >&6
2351caade7ccSmrgelse
2352caade7ccSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353caade7ccSmrgfor as_dir in $PATH
2354caade7ccSmrgdo
2355caade7ccSmrg  IFS=$as_save_IFS
2356caade7ccSmrg  test -z "$as_dir" && as_dir=.
2357b9b4fd27Smrg    # Account for people who put trailing slashes in PATH elements.
2358b9b4fd27Smrgcase $as_dir/ in #((
2359b9b4fd27Smrg  ./ | .// | /[cC]/* | \
2360caade7ccSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2361b9b4fd27Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2362caade7ccSmrg  /usr/ucb/* ) ;;
2363caade7ccSmrg  *)
2364caade7ccSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2365caade7ccSmrg    # Don't use installbsd from OSF since it installs stuff as root
2366caade7ccSmrg    # by default.
2367caade7ccSmrg    for ac_prog in ginstall scoinst install; do
2368caade7ccSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2369caade7ccSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2370caade7ccSmrg	  if test $ac_prog = install &&
2371caade7ccSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372caade7ccSmrg	    # AIX install.  It has an incompatible calling convention.
2373caade7ccSmrg	    :
2374caade7ccSmrg	  elif test $ac_prog = install &&
2375caade7ccSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2376caade7ccSmrg	    # program-specific install script used by HP pwplus--don't use.
2377caade7ccSmrg	    :
2378caade7ccSmrg	  else
2379485f0483Smrg	    rm -rf conftest.one conftest.two conftest.dir
2380485f0483Smrg	    echo one > conftest.one
2381485f0483Smrg	    echo two > conftest.two
2382485f0483Smrg	    mkdir conftest.dir
2383485f0483Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2384485f0483Smrg	      test -s conftest.one && test -s conftest.two &&
2385485f0483Smrg	      test -s conftest.dir/conftest.one &&
2386485f0483Smrg	      test -s conftest.dir/conftest.two
2387485f0483Smrg	    then
2388485f0483Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2389485f0483Smrg	      break 3
2390485f0483Smrg	    fi
2391caade7ccSmrg	  fi
2392caade7ccSmrg	fi
2393caade7ccSmrg      done
2394caade7ccSmrg    done
2395caade7ccSmrg    ;;
2396caade7ccSmrgesac
2397485f0483Smrg
2398b9b4fd27Smrg  done
2399caade7ccSmrgIFS=$as_save_IFS
2400caade7ccSmrg
2401485f0483Smrgrm -rf conftest.one conftest.two conftest.dir
2402caade7ccSmrg
2403caade7ccSmrgfi
2404caade7ccSmrg  if test "${ac_cv_path_install+set}" = set; then
2405caade7ccSmrg    INSTALL=$ac_cv_path_install
2406caade7ccSmrg  else
2407caade7ccSmrg    # As a last resort, use the slow shell script.  Don't cache a
2408caade7ccSmrg    # value for INSTALL within a source directory, because that will
2409caade7ccSmrg    # break other packages using the cache if that directory is
2410caade7ccSmrg    # removed, or if the value is a relative name.
2411caade7ccSmrg    INSTALL=$ac_install_sh
2412caade7ccSmrg  fi
2413caade7ccSmrgfi
2414b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2415485f0483Smrg$as_echo "$INSTALL" >&6; }
2416caade7ccSmrg
2417caade7ccSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2418caade7ccSmrg# It thinks the first close brace ends the variable substitution.
2419caade7ccSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2420caade7ccSmrg
2421caade7ccSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2422caade7ccSmrg
2423caade7ccSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2424caade7ccSmrg
2425b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2426485f0483Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2427485f0483Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2428485f0483Smrg# name.  Accept space and tab only in the latter.
2429485f0483Smrgam_lf='
2430485f0483Smrg'
2431485f0483Smrgcase `pwd` in
2432485f0483Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
2433e8a5466aSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2434485f0483Smrgesac
2435485f0483Smrgcase $srcdir in
2436485f0483Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2437af9a7ee5Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2438485f0483Smrgesac
2439485f0483Smrg
2440af9a7ee5Smrg# Do 'set' in a subshell so we don't clobber the current shell's
2441caade7ccSmrg# arguments.  Must try -L first in case configure is actually a
2442caade7ccSmrg# symlink; some systems play weird games with the mod time of symlinks
2443caade7ccSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2444caade7ccSmrg# directory).
2445caade7ccSmrgif (
2446af9a7ee5Smrg   am_has_slept=no
2447af9a7ee5Smrg   for am_try in 1 2; do
2448af9a7ee5Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2449af9a7ee5Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2450af9a7ee5Smrg     if test "$*" = "X"; then
2451af9a7ee5Smrg	# -L didn't work.
2452af9a7ee5Smrg	set X `ls -t "$srcdir/configure" conftest.file`
2453af9a7ee5Smrg     fi
2454af9a7ee5Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
2455af9a7ee5Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2456af9a7ee5Smrg
2457af9a7ee5Smrg	# If neither matched, then we have a broken ls.  This can happen
2458af9a7ee5Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2459af9a7ee5Smrg	# broken ls alias from the environment.  This has actually
2460af9a7ee5Smrg	# happened.  Such a system could not be considered "sane".
2461af9a7ee5Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2462af9a7ee5Smrg  alias in your environment" "$LINENO" 5
2463af9a7ee5Smrg     fi
2464af9a7ee5Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2465af9a7ee5Smrg       break
2466af9a7ee5Smrg     fi
2467af9a7ee5Smrg     # Just in case.
2468af9a7ee5Smrg     sleep 1
2469af9a7ee5Smrg     am_has_slept=yes
2470af9a7ee5Smrg   done
2471caade7ccSmrg   test "$2" = conftest.file
2472caade7ccSmrg   )
2473caade7ccSmrgthen
2474caade7ccSmrg   # Ok.
2475caade7ccSmrg   :
2476caade7ccSmrgelse
2477e8a5466aSmrg   as_fn_error $? "newly created file is older than distributed files!
2478b9b4fd27SmrgCheck your system clock" "$LINENO" 5
2479caade7ccSmrgfi
2480b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481485f0483Smrg$as_echo "yes" >&6; }
2482af9a7ee5Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2483af9a7ee5Smrg# generated files are strictly newer.
2484af9a7ee5Smrgam_sleep_pid=
2485af9a7ee5Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2486af9a7ee5Smrg  ( sleep 1 ) &
2487af9a7ee5Smrg  am_sleep_pid=$!
2488af9a7ee5Smrgfi
2489af9a7ee5Smrg
2490af9a7ee5Smrgrm -f conftest.file
2491af9a7ee5Smrg
2492caade7ccSmrgtest "$program_prefix" != NONE &&
2493caade7ccSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494caade7ccSmrg# Use a double $ so make ignores it.
2495caade7ccSmrgtest "$program_suffix" != NONE &&
2496caade7ccSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497485f0483Smrg# Double any \ or $.
2498caade7ccSmrg# By default was `s,x,x', remove it if useless.
2499485f0483Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500485f0483Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501caade7ccSmrg
2502caade7ccSmrg# expand $ac_aux_dir to an absolute path
2503caade7ccSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2504caade7ccSmrg
2505485f0483Smrgif test x"${MISSING+set}" != xset; then
2506485f0483Smrg  case $am_aux_dir in
2507485f0483Smrg  *\ * | *\	*)
2508485f0483Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2509485f0483Smrg  *)
2510485f0483Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2511485f0483Smrg  esac
2512485f0483Smrgfi
2513caade7ccSmrg# Use eval to expand $SHELL
2514af9a7ee5Smrgif eval "$MISSING --is-lightweight"; then
2515af9a7ee5Smrg  am_missing_run="$MISSING "
2516caade7ccSmrgelse
2517caade7ccSmrg  am_missing_run=
2518af9a7ee5Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2519af9a7ee5Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2520485f0483Smrgfi
2521485f0483Smrg
2522485f0483Smrgif test x"${install_sh}" != xset; then
2523485f0483Smrg  case $am_aux_dir in
2524485f0483Smrg  *\ * | *\	*)
2525485f0483Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2526485f0483Smrg  *)
2527485f0483Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2528485f0483Smrg  esac
2529485f0483Smrgfi
2530485f0483Smrg
2531af9a7ee5Smrg# Installed binaries are usually stripped using 'strip' when the user
2532af9a7ee5Smrg# run "make install-strip".  However 'strip' might not be the right
2533485f0483Smrg# tool to use in cross-compilation environments, therefore Automake
2534af9a7ee5Smrg# will honor the 'STRIP' environment variable to overrule this program.
2535485f0483Smrgif test "$cross_compiling" != no; then
2536485f0483Smrg  if test -n "$ac_tool_prefix"; then
2537485f0483Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2538485f0483Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2539b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
2541e8a5466aSmrgif ${ac_cv_prog_STRIP+:} false; then :
2542485f0483Smrg  $as_echo_n "(cached) " >&6
2543485f0483Smrgelse
2544485f0483Smrg  if test -n "$STRIP"; then
2545485f0483Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2546485f0483Smrgelse
2547485f0483Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548485f0483Smrgfor as_dir in $PATH
2549485f0483Smrgdo
2550485f0483Smrg  IFS=$as_save_IFS
2551485f0483Smrg  test -z "$as_dir" && as_dir=.
2552b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2553485f0483Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554485f0483Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2555b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556485f0483Smrg    break 2
2557485f0483Smrg  fi
2558485f0483Smrgdone
2559b9b4fd27Smrg  done
2560485f0483SmrgIFS=$as_save_IFS
2561485f0483Smrg
2562485f0483Smrgfi
2563485f0483Smrgfi
2564485f0483SmrgSTRIP=$ac_cv_prog_STRIP
2565485f0483Smrgif test -n "$STRIP"; then
2566b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2567485f0483Smrg$as_echo "$STRIP" >&6; }
2568485f0483Smrgelse
2569b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570485f0483Smrg$as_echo "no" >&6; }
2571485f0483Smrgfi
2572485f0483Smrg
2573485f0483Smrg
2574485f0483Smrgfi
2575485f0483Smrgif test -z "$ac_cv_prog_STRIP"; then
2576485f0483Smrg  ac_ct_STRIP=$STRIP
2577485f0483Smrg  # Extract the first word of "strip", so it can be a program name with args.
2578485f0483Smrgset dummy strip; ac_word=$2
2579b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
2581e8a5466aSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2582485f0483Smrg  $as_echo_n "(cached) " >&6
2583485f0483Smrgelse
2584485f0483Smrg  if test -n "$ac_ct_STRIP"; then
2585485f0483Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2586485f0483Smrgelse
2587485f0483Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588485f0483Smrgfor as_dir in $PATH
2589485f0483Smrgdo
2590485f0483Smrg  IFS=$as_save_IFS
2591485f0483Smrg  test -z "$as_dir" && as_dir=.
2592b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2593485f0483Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594485f0483Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2595b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596485f0483Smrg    break 2
2597485f0483Smrg  fi
2598485f0483Smrgdone
2599b9b4fd27Smrg  done
2600485f0483SmrgIFS=$as_save_IFS
2601485f0483Smrg
2602485f0483Smrgfi
2603caade7ccSmrgfi
2604485f0483Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2605485f0483Smrgif test -n "$ac_ct_STRIP"; then
2606b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2607485f0483Smrg$as_echo "$ac_ct_STRIP" >&6; }
2608485f0483Smrgelse
2609b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610485f0483Smrg$as_echo "no" >&6; }
2611485f0483Smrgfi
2612485f0483Smrg
2613485f0483Smrg  if test "x$ac_ct_STRIP" = x; then
2614485f0483Smrg    STRIP=":"
2615485f0483Smrg  else
2616485f0483Smrg    case $cross_compiling:$ac_tool_warned in
2617485f0483Smrgyes:)
2618b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2619485f0483Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2620485f0483Smrgac_tool_warned=yes ;;
2621485f0483Smrgesac
2622485f0483Smrg    STRIP=$ac_ct_STRIP
2623485f0483Smrg  fi
2624485f0483Smrgelse
2625485f0483Smrg  STRIP="$ac_cv_prog_STRIP"
2626485f0483Smrgfi
2627485f0483Smrg
2628485f0483Smrgfi
2629485f0483SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2630caade7ccSmrg
2631b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2632485f0483Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2633caade7ccSmrgif test -z "$MKDIR_P"; then
2634e8a5466aSmrg  if ${ac_cv_path_mkdir+:} false; then :
2635485f0483Smrg  $as_echo_n "(cached) " >&6
2636caade7ccSmrgelse
2637caade7ccSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638caade7ccSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2639caade7ccSmrgdo
2640caade7ccSmrg  IFS=$as_save_IFS
2641caade7ccSmrg  test -z "$as_dir" && as_dir=.
2642b9b4fd27Smrg    for ac_prog in mkdir gmkdir; do
2643caade7ccSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2644caade7ccSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2645caade7ccSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2646caade7ccSmrg	     'mkdir (GNU coreutils) '* | \
2647caade7ccSmrg	     'mkdir (coreutils) '* | \
2648caade7ccSmrg	     'mkdir (fileutils) '4.1*)
2649caade7ccSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2650caade7ccSmrg	       break 3;;
2651caade7ccSmrg	   esac
2652caade7ccSmrg	 done
2653caade7ccSmrg       done
2654b9b4fd27Smrg  done
2655caade7ccSmrgIFS=$as_save_IFS
2656caade7ccSmrg
2657caade7ccSmrgfi
2658caade7ccSmrg
2659b9b4fd27Smrg  test -d ./--version && rmdir ./--version
2660caade7ccSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2661caade7ccSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2662caade7ccSmrg  else
2663caade7ccSmrg    # As a last resort, use the slow shell script.  Don't cache a
2664caade7ccSmrg    # value for MKDIR_P within a source directory, because that will
2665caade7ccSmrg    # break other packages using the cache if that directory is
2666caade7ccSmrg    # removed, or if the value is a relative name.
2667caade7ccSmrg    MKDIR_P="$ac_install_sh -d"
2668caade7ccSmrg  fi
2669caade7ccSmrgfi
2670b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2671485f0483Smrg$as_echo "$MKDIR_P" >&6; }
2672caade7ccSmrg
2673caade7ccSmrgfor ac_prog in gawk mawk nawk awk
2674caade7ccSmrgdo
2675caade7ccSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2676caade7ccSmrgset dummy $ac_prog; ac_word=$2
2677b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
2679e8a5466aSmrgif ${ac_cv_prog_AWK+:} false; then :
2680485f0483Smrg  $as_echo_n "(cached) " >&6
2681caade7ccSmrgelse
2682caade7ccSmrg  if test -n "$AWK"; then
2683caade7ccSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2684caade7ccSmrgelse
2685caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686caade7ccSmrgfor as_dir in $PATH
2687caade7ccSmrgdo
2688caade7ccSmrg  IFS=$as_save_IFS
2689caade7ccSmrg  test -z "$as_dir" && as_dir=.
2690b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2691caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692caade7ccSmrg    ac_cv_prog_AWK="$ac_prog"
2693b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694caade7ccSmrg    break 2
2695caade7ccSmrg  fi
2696caade7ccSmrgdone
2697b9b4fd27Smrg  done
2698caade7ccSmrgIFS=$as_save_IFS
2699caade7ccSmrg
2700caade7ccSmrgfi
2701caade7ccSmrgfi
2702caade7ccSmrgAWK=$ac_cv_prog_AWK
2703caade7ccSmrgif test -n "$AWK"; then
2704b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2705485f0483Smrg$as_echo "$AWK" >&6; }
2706caade7ccSmrgelse
2707b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708485f0483Smrg$as_echo "no" >&6; }
2709caade7ccSmrgfi
2710caade7ccSmrg
2711caade7ccSmrg
2712caade7ccSmrg  test -n "$AWK" && break
2713caade7ccSmrgdone
2714caade7ccSmrg
2715b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716485f0483Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2717485f0483Smrgset x ${MAKE-make}
2718485f0483Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2719e8a5466aSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2720485f0483Smrg  $as_echo_n "(cached) " >&6
2721caade7ccSmrgelse
2722caade7ccSmrg  cat >conftest.make <<\_ACEOF
2723caade7ccSmrgSHELL = /bin/sh
2724caade7ccSmrgall:
2725caade7ccSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2726caade7ccSmrg_ACEOF
2727e8a5466aSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2728caade7ccSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2729caade7ccSmrg  *@@@%%%=?*=@@@%%%*)
2730caade7ccSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2731caade7ccSmrg  *)
2732caade7ccSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2733caade7ccSmrgesac
2734caade7ccSmrgrm -f conftest.make
2735caade7ccSmrgfi
2736caade7ccSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2737b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2738485f0483Smrg$as_echo "yes" >&6; }
2739caade7ccSmrg  SET_MAKE=
2740caade7ccSmrgelse
2741b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742485f0483Smrg$as_echo "no" >&6; }
2743caade7ccSmrg  SET_MAKE="MAKE=${MAKE-make}"
2744caade7ccSmrgfi
2745caade7ccSmrg
2746caade7ccSmrgrm -rf .tst 2>/dev/null
2747caade7ccSmrgmkdir .tst 2>/dev/null
2748caade7ccSmrgif test -d .tst; then
2749caade7ccSmrg  am__leading_dot=.
2750caade7ccSmrgelse
2751caade7ccSmrg  am__leading_dot=_
2752caade7ccSmrgfi
2753caade7ccSmrgrmdir .tst 2>/dev/null
2754caade7ccSmrg
2755af9a7ee5Smrg# Check whether --enable-silent-rules was given.
2756af9a7ee5Smrgif test "${enable_silent_rules+set}" = set; then :
2757af9a7ee5Smrg  enableval=$enable_silent_rules;
2758af9a7ee5Smrgfi
2759af9a7ee5Smrg
2760af9a7ee5Smrgcase $enable_silent_rules in # (((
2761af9a7ee5Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
2762af9a7ee5Smrg   no) AM_DEFAULT_VERBOSITY=1;;
2763af9a7ee5Smrg    *) AM_DEFAULT_VERBOSITY=1;;
2764af9a7ee5Smrgesac
2765af9a7ee5Smrgam_make=${MAKE-make}
2766af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2767af9a7ee5Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2768af9a7ee5Smrgif ${am_cv_make_support_nested_variables+:} false; then :
2769af9a7ee5Smrg  $as_echo_n "(cached) " >&6
2770af9a7ee5Smrgelse
2771af9a7ee5Smrg  if $as_echo 'TRUE=$(BAR$(V))
2772af9a7ee5SmrgBAR0=false
2773af9a7ee5SmrgBAR1=true
2774af9a7ee5SmrgV=1
2775af9a7ee5Smrgam__doit:
2776af9a7ee5Smrg	@$(TRUE)
2777af9a7ee5Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2778af9a7ee5Smrg  am_cv_make_support_nested_variables=yes
2779af9a7ee5Smrgelse
2780af9a7ee5Smrg  am_cv_make_support_nested_variables=no
2781af9a7ee5Smrgfi
2782af9a7ee5Smrgfi
2783af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2784af9a7ee5Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
2785af9a7ee5Smrgif test $am_cv_make_support_nested_variables = yes; then
2786af9a7ee5Smrg    AM_V='$(V)'
2787af9a7ee5Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2788af9a7ee5Smrgelse
2789af9a7ee5Smrg  AM_V=$AM_DEFAULT_VERBOSITY
2790af9a7ee5Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2791af9a7ee5Smrgfi
2792af9a7ee5SmrgAM_BACKSLASH='\'
2793af9a7ee5Smrg
2794caade7ccSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2795caade7ccSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2796caade7ccSmrg  # is not polluted with repeated "-I."
2797caade7ccSmrg  am__isrc=' -I$(srcdir)'
2798caade7ccSmrg  # test to see if srcdir already configured
2799caade7ccSmrg  if test -f $srcdir/config.status; then
2800e8a5466aSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2801caade7ccSmrg  fi
2802caade7ccSmrgfi
2803caade7ccSmrg
2804caade7ccSmrg# test whether we have cygpath
2805caade7ccSmrgif test -z "$CYGPATH_W"; then
2806caade7ccSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2807caade7ccSmrg    CYGPATH_W='cygpath -w'
2808caade7ccSmrg  else
2809caade7ccSmrg    CYGPATH_W=echo
2810caade7ccSmrg  fi
2811caade7ccSmrgfi
2812caade7ccSmrg
2813caade7ccSmrg
2814caade7ccSmrg# Define the identity of the package.
2815caade7ccSmrg PACKAGE='libXext'
2816af9a7ee5Smrg VERSION='1.3.2'
2817caade7ccSmrg
2818caade7ccSmrg
2819caade7ccSmrgcat >>confdefs.h <<_ACEOF
2820caade7ccSmrg#define PACKAGE "$PACKAGE"
2821caade7ccSmrg_ACEOF
2822caade7ccSmrg
2823caade7ccSmrg
2824caade7ccSmrgcat >>confdefs.h <<_ACEOF
2825caade7ccSmrg#define VERSION "$VERSION"
2826caade7ccSmrg_ACEOF
2827caade7ccSmrg
2828caade7ccSmrg# Some tools Automake needs.
2829caade7ccSmrg
2830caade7ccSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2831caade7ccSmrg
2832caade7ccSmrg
2833caade7ccSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2834caade7ccSmrg
2835caade7ccSmrg
2836caade7ccSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2837caade7ccSmrg
2838caade7ccSmrg
2839caade7ccSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2840caade7ccSmrg
2841caade7ccSmrg
2842caade7ccSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2843caade7ccSmrg
2844af9a7ee5Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
2845af9a7ee5Smrg# dies out for good.  For more background, see:
2846af9a7ee5Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2847af9a7ee5Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2848af9a7ee5Smrgmkdir_p='$(MKDIR_P)'
2849af9a7ee5Smrg
2850caade7ccSmrg# We need awk for the "check" target.  The system "awk" is bad on
2851caade7ccSmrg# some platforms.
2852af9a7ee5Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
2853af9a7ee5Smrg# in the wild :-(  We should find a proper way to deprecate it ...
2854af9a7ee5SmrgAMTAR='$${TAR-tar}'
2855caade7ccSmrg
2856caade7ccSmrg
2857af9a7ee5Smrg# We'll loop over all known methods to create a tar archive until one works.
2858af9a7ee5Smrg_am_tools='gnutar  pax cpio none'
2859caade7ccSmrg
2860af9a7ee5Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2861caade7ccSmrg
2862caade7ccSmrg
2863caade7ccSmrg
2864caade7ccSmrg
2865caade7ccSmrg
2866caade7ccSmrg
2867caade7ccSmrg
2868a5602400Smrg# Initialize libtool
2869a5602400Smrgcase `pwd` in
2870a5602400Smrg  *\ * | *\	*)
2871a5602400Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2872a5602400Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2873a5602400Smrgesac
2874a5602400Smrg
2875a5602400Smrg
2876a5602400Smrg
2877af9a7ee5Smrgmacro_version='2.4.2'
2878af9a7ee5Smrgmacro_revision='1.3337'
2879a5602400Smrg
2880a5602400Smrg
2881a5602400Smrg
2882a5602400Smrg
2883a5602400Smrg
2884a5602400Smrg
2885a5602400Smrg
2886a5602400Smrg
2887a5602400Smrg
2888a5602400Smrg
2889a5602400Smrg
2890a5602400Smrg
2891a5602400Smrg
2892a5602400Smrgltmain="$ac_aux_dir/ltmain.sh"
2893a5602400Smrg
2894a5602400Smrg# Make sure we can run config.sub.
2895a5602400Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2896a5602400Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2897a5602400Smrg
2898a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2899a5602400Smrg$as_echo_n "checking build system type... " >&6; }
2900a5602400Smrgif ${ac_cv_build+:} false; then :
2901a5602400Smrg  $as_echo_n "(cached) " >&6
2902a5602400Smrgelse
2903a5602400Smrg  ac_build_alias=$build_alias
2904a5602400Smrgtest "x$ac_build_alias" = x &&
2905a5602400Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2906a5602400Smrgtest "x$ac_build_alias" = x &&
2907a5602400Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2908a5602400Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2909a5602400Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2910a5602400Smrg
2911a5602400Smrgfi
2912a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2913a5602400Smrg$as_echo "$ac_cv_build" >&6; }
2914a5602400Smrgcase $ac_cv_build in
2915a5602400Smrg*-*-*) ;;
2916a5602400Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2917a5602400Smrgesac
2918a5602400Smrgbuild=$ac_cv_build
2919a5602400Smrgac_save_IFS=$IFS; IFS='-'
2920a5602400Smrgset x $ac_cv_build
2921a5602400Smrgshift
2922a5602400Smrgbuild_cpu=$1
2923a5602400Smrgbuild_vendor=$2
2924a5602400Smrgshift; shift
2925a5602400Smrg# Remember, the first character of IFS is used to create $*,
2926a5602400Smrg# except with old shells:
2927a5602400Smrgbuild_os=$*
2928a5602400SmrgIFS=$ac_save_IFS
2929a5602400Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2930a5602400Smrg
2931a5602400Smrg
2932a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2933a5602400Smrg$as_echo_n "checking host system type... " >&6; }
2934a5602400Smrgif ${ac_cv_host+:} false; then :
2935a5602400Smrg  $as_echo_n "(cached) " >&6
2936a5602400Smrgelse
2937a5602400Smrg  if test "x$host_alias" = x; then
2938a5602400Smrg  ac_cv_host=$ac_cv_build
2939a5602400Smrgelse
2940a5602400Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2941a5602400Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2942a5602400Smrgfi
2943a5602400Smrg
2944a5602400Smrgfi
2945a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2946a5602400Smrg$as_echo "$ac_cv_host" >&6; }
2947a5602400Smrgcase $ac_cv_host in
2948a5602400Smrg*-*-*) ;;
2949a5602400Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2950a5602400Smrgesac
2951a5602400Smrghost=$ac_cv_host
2952a5602400Smrgac_save_IFS=$IFS; IFS='-'
2953a5602400Smrgset x $ac_cv_host
2954a5602400Smrgshift
2955a5602400Smrghost_cpu=$1
2956a5602400Smrghost_vendor=$2
2957a5602400Smrgshift; shift
2958a5602400Smrg# Remember, the first character of IFS is used to create $*,
2959a5602400Smrg# except with old shells:
2960a5602400Smrghost_os=$*
2961a5602400SmrgIFS=$ac_save_IFS
2962a5602400Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2963a5602400Smrg
2964a5602400Smrg
2965a5602400Smrg# Backslashify metacharacters that are still active within
2966a5602400Smrg# double-quoted strings.
2967a5602400Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2968a5602400Smrg
2969a5602400Smrg# Same as above, but do not quote variable references.
2970a5602400Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g'
2971a5602400Smrg
2972a5602400Smrg# Sed substitution to delay expansion of an escaped shell variable in a
2973a5602400Smrg# double_quote_subst'ed string.
2974a5602400Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2975a5602400Smrg
2976a5602400Smrg# Sed substitution to delay expansion of an escaped single quote.
2977a5602400Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2978a5602400Smrg
2979a5602400Smrg# Sed substitution to avoid accidental globbing in evaled expressions
2980a5602400Smrgno_glob_subst='s/\*/\\\*/g'
2981a5602400Smrg
2982a5602400SmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2983a5602400SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2984a5602400SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2985a5602400Smrg
2986a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2987a5602400Smrg$as_echo_n "checking how to print strings... " >&6; }
2988a5602400Smrg# Test print first, because it will be a builtin if present.
2989a5602400Smrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2990a5602400Smrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2991a5602400Smrg  ECHO='print -r --'
2992a5602400Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2993a5602400Smrg  ECHO='printf %s\n'
2994a5602400Smrgelse
2995a5602400Smrg  # Use this function as a fallback that always works.
2996a5602400Smrg  func_fallback_echo ()
2997a5602400Smrg  {
2998a5602400Smrg    eval 'cat <<_LTECHO_EOF
2999a5602400Smrg$1
3000a5602400Smrg_LTECHO_EOF'
3001a5602400Smrg  }
3002a5602400Smrg  ECHO='func_fallback_echo'
3003a5602400Smrgfi
3004a5602400Smrg
3005a5602400Smrg# func_echo_all arg...
3006a5602400Smrg# Invoke $ECHO with all args, space-separated.
3007a5602400Smrgfunc_echo_all ()
3008a5602400Smrg{
3009a5602400Smrg    $ECHO ""
3010a5602400Smrg}
3011a5602400Smrg
3012a5602400Smrgcase "$ECHO" in
3013a5602400Smrg  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3014a5602400Smrg$as_echo "printf" >&6; } ;;
3015a5602400Smrg  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3016a5602400Smrg$as_echo "print -r" >&6; } ;;
3017a5602400Smrg  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3018a5602400Smrg$as_echo "cat" >&6; } ;;
3019a5602400Smrgesac
3020a5602400Smrg
3021a5602400Smrg
3022a5602400Smrg
3023caade7ccSmrg
3024caade7ccSmrg
3025caade7ccSmrg
3026caade7ccSmrg
3027caade7ccSmrg
3028caade7ccSmrg
3029caade7ccSmrg
3030caade7ccSmrg
3031caade7ccSmrg
3032caade7ccSmrg
3033caade7ccSmrg
3034caade7ccSmrgDEPDIR="${am__leading_dot}deps"
3035caade7ccSmrg
3036caade7ccSmrgac_config_commands="$ac_config_commands depfiles"
3037caade7ccSmrg
3038caade7ccSmrg
3039caade7ccSmrgam_make=${MAKE-make}
3040caade7ccSmrgcat > confinc << 'END'
3041caade7ccSmrgam__doit:
3042485f0483Smrg	@echo this is the am__doit target
3043caade7ccSmrg.PHONY: am__doit
3044caade7ccSmrgEND
3045caade7ccSmrg# If we don't find an include directive, just comment out the code.
3046b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3047485f0483Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
3048caade7ccSmrgam__include="#"
3049caade7ccSmrgam__quote=
3050caade7ccSmrg_am_result=none
3051caade7ccSmrg# First try GNU make style include.
3052caade7ccSmrgecho "include confinc" > confmf
3053af9a7ee5Smrg# Ignore all kinds of additional output from 'make'.
3054485f0483Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
3055485f0483Smrg*the\ am__doit\ target*)
3056485f0483Smrg  am__include=include
3057485f0483Smrg  am__quote=
3058485f0483Smrg  _am_result=GNU
3059485f0483Smrg  ;;
3060485f0483Smrgesac
3061caade7ccSmrg# Now try BSD make style include.
3062caade7ccSmrgif test "$am__include" = "#"; then
3063caade7ccSmrg   echo '.include "confinc"' > confmf
3064485f0483Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
3065485f0483Smrg   *the\ am__doit\ target*)
3066485f0483Smrg     am__include=.include
3067485f0483Smrg     am__quote="\""
3068485f0483Smrg     _am_result=BSD
3069485f0483Smrg     ;;
3070485f0483Smrg   esac
3071caade7ccSmrgfi
3072caade7ccSmrg
3073caade7ccSmrg
3074b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3075485f0483Smrg$as_echo "$_am_result" >&6; }
3076caade7ccSmrgrm -f confinc confmf
3077caade7ccSmrg
3078caade7ccSmrg# Check whether --enable-dependency-tracking was given.
3079b9b4fd27Smrgif test "${enable_dependency_tracking+set}" = set; then :
3080caade7ccSmrg  enableval=$enable_dependency_tracking;
3081caade7ccSmrgfi
3082caade7ccSmrg
3083caade7ccSmrgif test "x$enable_dependency_tracking" != xno; then
3084caade7ccSmrg  am_depcomp="$ac_aux_dir/depcomp"
3085caade7ccSmrg  AMDEPBACKSLASH='\'
3086af9a7ee5Smrg  am__nodep='_no'
3087caade7ccSmrgfi
3088caade7ccSmrg if test "x$enable_dependency_tracking" != xno; then
3089caade7ccSmrg  AMDEP_TRUE=
3090caade7ccSmrg  AMDEP_FALSE='#'
3091caade7ccSmrgelse
3092caade7ccSmrg  AMDEP_TRUE='#'
3093caade7ccSmrg  AMDEP_FALSE=
3094caade7ccSmrgfi
3095caade7ccSmrg
3096caade7ccSmrg
3097caade7ccSmrgac_ext=c
3098caade7ccSmrgac_cpp='$CPP $CPPFLAGS'
3099caade7ccSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100caade7ccSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101caade7ccSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3102caade7ccSmrgif test -n "$ac_tool_prefix"; then
3103caade7ccSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3104caade7ccSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3105b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
3107e8a5466aSmrgif ${ac_cv_prog_CC+:} false; then :
3108485f0483Smrg  $as_echo_n "(cached) " >&6
3109caade7ccSmrgelse
3110caade7ccSmrg  if test -n "$CC"; then
3111caade7ccSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3112caade7ccSmrgelse
3113caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114caade7ccSmrgfor as_dir in $PATH
3115caade7ccSmrgdo
3116caade7ccSmrg  IFS=$as_save_IFS
3117caade7ccSmrg  test -z "$as_dir" && as_dir=.
3118b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3119caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120caade7ccSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3121b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122caade7ccSmrg    break 2
3123caade7ccSmrg  fi
3124caade7ccSmrgdone
3125b9b4fd27Smrg  done
3126caade7ccSmrgIFS=$as_save_IFS
3127caade7ccSmrg
3128caade7ccSmrgfi
3129caade7ccSmrgfi
3130caade7ccSmrgCC=$ac_cv_prog_CC
3131caade7ccSmrgif test -n "$CC"; then
3132b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133485f0483Smrg$as_echo "$CC" >&6; }
3134caade7ccSmrgelse
3135b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136485f0483Smrg$as_echo "no" >&6; }
3137caade7ccSmrgfi
3138caade7ccSmrg
3139caade7ccSmrg
3140caade7ccSmrgfi
3141caade7ccSmrgif test -z "$ac_cv_prog_CC"; then
3142caade7ccSmrg  ac_ct_CC=$CC
3143caade7ccSmrg  # Extract the first word of "gcc", so it can be a program name with args.
3144caade7ccSmrgset dummy gcc; ac_word=$2
3145b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
3147e8a5466aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3148485f0483Smrg  $as_echo_n "(cached) " >&6
3149caade7ccSmrgelse
3150caade7ccSmrg  if test -n "$ac_ct_CC"; then
3151caade7ccSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152caade7ccSmrgelse
3153caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154caade7ccSmrgfor as_dir in $PATH
3155caade7ccSmrgdo
3156caade7ccSmrg  IFS=$as_save_IFS
3157caade7ccSmrg  test -z "$as_dir" && as_dir=.
3158b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3159caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160caade7ccSmrg    ac_cv_prog_ac_ct_CC="gcc"
3161b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162caade7ccSmrg    break 2
3163caade7ccSmrg  fi
3164caade7ccSmrgdone
3165b9b4fd27Smrg  done
3166caade7ccSmrgIFS=$as_save_IFS
3167caade7ccSmrg
3168caade7ccSmrgfi
3169caade7ccSmrgfi
3170caade7ccSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3171caade7ccSmrgif test -n "$ac_ct_CC"; then
3172b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3173485f0483Smrg$as_echo "$ac_ct_CC" >&6; }
3174caade7ccSmrgelse
3175b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176485f0483Smrg$as_echo "no" >&6; }
3177caade7ccSmrgfi
3178caade7ccSmrg
3179caade7ccSmrg  if test "x$ac_ct_CC" = x; then
3180caade7ccSmrg    CC=""
3181caade7ccSmrg  else
3182caade7ccSmrg    case $cross_compiling:$ac_tool_warned in
3183caade7ccSmrgyes:)
3184b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185485f0483Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186caade7ccSmrgac_tool_warned=yes ;;
3187caade7ccSmrgesac
3188caade7ccSmrg    CC=$ac_ct_CC
3189caade7ccSmrg  fi
3190caade7ccSmrgelse
3191caade7ccSmrg  CC="$ac_cv_prog_CC"
3192caade7ccSmrgfi
3193caade7ccSmrg
3194caade7ccSmrgif test -z "$CC"; then
3195caade7ccSmrg          if test -n "$ac_tool_prefix"; then
3196caade7ccSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3197caade7ccSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3198b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
3200e8a5466aSmrgif ${ac_cv_prog_CC+:} false; then :
3201485f0483Smrg  $as_echo_n "(cached) " >&6
3202caade7ccSmrgelse
3203caade7ccSmrg  if test -n "$CC"; then
3204caade7ccSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3205caade7ccSmrgelse
3206caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207caade7ccSmrgfor as_dir in $PATH
3208caade7ccSmrgdo
3209caade7ccSmrg  IFS=$as_save_IFS
3210caade7ccSmrg  test -z "$as_dir" && as_dir=.
3211b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3212caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213caade7ccSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3214b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215caade7ccSmrg    break 2
3216caade7ccSmrg  fi
3217caade7ccSmrgdone
3218b9b4fd27Smrg  done
3219caade7ccSmrgIFS=$as_save_IFS
3220caade7ccSmrg
3221caade7ccSmrgfi
3222caade7ccSmrgfi
3223caade7ccSmrgCC=$ac_cv_prog_CC
3224caade7ccSmrgif test -n "$CC"; then
3225b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226485f0483Smrg$as_echo "$CC" >&6; }
3227caade7ccSmrgelse
3228b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229485f0483Smrg$as_echo "no" >&6; }
3230caade7ccSmrgfi
3231caade7ccSmrg
3232caade7ccSmrg
3233caade7ccSmrg  fi
3234caade7ccSmrgfi
3235caade7ccSmrgif test -z "$CC"; then
3236caade7ccSmrg  # Extract the first word of "cc", so it can be a program name with args.
3237caade7ccSmrgset dummy cc; ac_word=$2
3238b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
3240e8a5466aSmrgif ${ac_cv_prog_CC+:} false; then :
3241485f0483Smrg  $as_echo_n "(cached) " >&6
3242caade7ccSmrgelse
3243caade7ccSmrg  if test -n "$CC"; then
3244caade7ccSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3245caade7ccSmrgelse
3246caade7ccSmrg  ac_prog_rejected=no
3247caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248caade7ccSmrgfor as_dir in $PATH
3249caade7ccSmrgdo
3250caade7ccSmrg  IFS=$as_save_IFS
3251caade7ccSmrg  test -z "$as_dir" && as_dir=.
3252b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3253caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254caade7ccSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3255caade7ccSmrg       ac_prog_rejected=yes
3256caade7ccSmrg       continue
3257caade7ccSmrg     fi
3258caade7ccSmrg    ac_cv_prog_CC="cc"
3259b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260caade7ccSmrg    break 2
3261caade7ccSmrg  fi
3262caade7ccSmrgdone
3263b9b4fd27Smrg  done
3264caade7ccSmrgIFS=$as_save_IFS
3265caade7ccSmrg
3266caade7ccSmrgif test $ac_prog_rejected = yes; then
3267caade7ccSmrg  # We found a bogon in the path, so make sure we never use it.
3268caade7ccSmrg  set dummy $ac_cv_prog_CC
3269caade7ccSmrg  shift
3270caade7ccSmrg  if test $# != 0; then
3271caade7ccSmrg    # We chose a different compiler from the bogus one.
3272caade7ccSmrg    # However, it has the same basename, so the bogon will be chosen
3273caade7ccSmrg    # first if we set CC to just the basename; use the full file name.
3274caade7ccSmrg    shift
3275caade7ccSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3276caade7ccSmrg  fi
3277caade7ccSmrgfi
3278caade7ccSmrgfi
3279caade7ccSmrgfi
3280caade7ccSmrgCC=$ac_cv_prog_CC
3281caade7ccSmrgif test -n "$CC"; then
3282b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283485f0483Smrg$as_echo "$CC" >&6; }
3284caade7ccSmrgelse
3285b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286485f0483Smrg$as_echo "no" >&6; }
3287caade7ccSmrgfi
3288caade7ccSmrg
3289caade7ccSmrg
3290caade7ccSmrgfi
3291caade7ccSmrgif test -z "$CC"; then
3292caade7ccSmrg  if test -n "$ac_tool_prefix"; then
3293caade7ccSmrg  for ac_prog in cl.exe
3294caade7ccSmrg  do
3295caade7ccSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3296caade7ccSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3297b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
3299e8a5466aSmrgif ${ac_cv_prog_CC+:} false; then :
3300485f0483Smrg  $as_echo_n "(cached) " >&6
3301caade7ccSmrgelse
3302caade7ccSmrg  if test -n "$CC"; then
3303caade7ccSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3304caade7ccSmrgelse
3305caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306caade7ccSmrgfor as_dir in $PATH
3307caade7ccSmrgdo
3308caade7ccSmrg  IFS=$as_save_IFS
3309caade7ccSmrg  test -z "$as_dir" && as_dir=.
3310b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3311caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312caade7ccSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3313b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314caade7ccSmrg    break 2
3315caade7ccSmrg  fi
3316caade7ccSmrgdone
3317b9b4fd27Smrg  done
3318caade7ccSmrgIFS=$as_save_IFS
3319caade7ccSmrg
3320caade7ccSmrgfi
3321caade7ccSmrgfi
3322caade7ccSmrgCC=$ac_cv_prog_CC
3323caade7ccSmrgif test -n "$CC"; then
3324b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325485f0483Smrg$as_echo "$CC" >&6; }
3326caade7ccSmrgelse
3327b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328485f0483Smrg$as_echo "no" >&6; }
3329caade7ccSmrgfi
3330caade7ccSmrg
3331caade7ccSmrg
3332caade7ccSmrg    test -n "$CC" && break
3333caade7ccSmrg  done
3334caade7ccSmrgfi
3335caade7ccSmrgif test -z "$CC"; then
3336caade7ccSmrg  ac_ct_CC=$CC
3337caade7ccSmrg  for ac_prog in cl.exe
3338caade7ccSmrgdo
3339caade7ccSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3340caade7ccSmrgset dummy $ac_prog; ac_word=$2
3341b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
3343e8a5466aSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
3344485f0483Smrg  $as_echo_n "(cached) " >&6
3345caade7ccSmrgelse
3346caade7ccSmrg  if test -n "$ac_ct_CC"; then
3347caade7ccSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348caade7ccSmrgelse
3349caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350caade7ccSmrgfor as_dir in $PATH
3351caade7ccSmrgdo
3352caade7ccSmrg  IFS=$as_save_IFS
3353caade7ccSmrg  test -z "$as_dir" && as_dir=.
3354b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3355caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356caade7ccSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3357b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358caade7ccSmrg    break 2
3359caade7ccSmrg  fi
3360caade7ccSmrgdone
3361b9b4fd27Smrg  done
3362caade7ccSmrgIFS=$as_save_IFS
3363caade7ccSmrg
3364caade7ccSmrgfi
3365caade7ccSmrgfi
3366caade7ccSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3367caade7ccSmrgif test -n "$ac_ct_CC"; then
3368b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369485f0483Smrg$as_echo "$ac_ct_CC" >&6; }
3370caade7ccSmrgelse
3371b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372485f0483Smrg$as_echo "no" >&6; }
3373caade7ccSmrgfi
3374caade7ccSmrg
3375caade7ccSmrg
3376caade7ccSmrg  test -n "$ac_ct_CC" && break
3377caade7ccSmrgdone
3378caade7ccSmrg
3379caade7ccSmrg  if test "x$ac_ct_CC" = x; then
3380caade7ccSmrg    CC=""
3381caade7ccSmrg  else
3382caade7ccSmrg    case $cross_compiling:$ac_tool_warned in
3383caade7ccSmrgyes:)
3384b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385485f0483Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386caade7ccSmrgac_tool_warned=yes ;;
3387caade7ccSmrgesac
3388caade7ccSmrg    CC=$ac_ct_CC
3389caade7ccSmrg  fi
3390caade7ccSmrgfi
3391caade7ccSmrg
3392caade7ccSmrgfi
3393caade7ccSmrg
3394caade7ccSmrg
3395b9b4fd27Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396485f0483Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397e8a5466aSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
3398e8a5466aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3399caade7ccSmrg
3400caade7ccSmrg# Provide some information about the compiler.
3401b9b4fd27Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3402485f0483Smrgset X $ac_compile
3403485f0483Smrgac_compiler=$2
3404b9b4fd27Smrgfor ac_option in --version -v -V -qversion; do
3405b9b4fd27Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3406caade7ccSmrgcase "(($ac_try" in
3407caade7ccSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408caade7ccSmrg  *) ac_try_echo=$ac_try;;
3409caade7ccSmrgesac
3410b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
3412b9b4fd27Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3413caade7ccSmrg  ac_status=$?
3414b9b4fd27Smrg  if test -s conftest.err; then
3415b9b4fd27Smrg    sed '10a\
3416b9b4fd27Smrg... rest of stderr output deleted ...
3417b9b4fd27Smrg         10q' conftest.err >conftest.er1
3418b9b4fd27Smrg    cat conftest.er1 >&5
3419b9b4fd27Smrg  fi
3420b9b4fd27Smrg  rm -f conftest.er1 conftest.err
3421b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422b9b4fd27Smrg  test $ac_status = 0; }
3423b9b4fd27Smrgdone
3424caade7ccSmrg
3425b9b4fd27Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426caade7ccSmrg/* end confdefs.h.  */
3427caade7ccSmrg
3428caade7ccSmrgint
3429caade7ccSmrgmain ()
3430caade7ccSmrg{
3431caade7ccSmrg
3432caade7ccSmrg  ;
3433caade7ccSmrg  return 0;
3434caade7ccSmrg}
3435caade7ccSmrg_ACEOF
3436caade7ccSmrgac_clean_files_save=$ac_clean_files
3437485f0483Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3438caade7ccSmrg# Try to create an executable without -o first, disregard a.out.
3439caade7ccSmrg# It will help us diagnose broken compilers, and finding out an intuition
3440caade7ccSmrg# of exeext.
3441b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3442b9b4fd27Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
3443485f0483Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3444485f0483Smrg
3445485f0483Smrg# The possible output files:
3446485f0483Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3447485f0483Smrg
3448485f0483Smrgac_rmfiles=
3449caade7ccSmrgfor ac_file in $ac_files
3450caade7ccSmrgdo
3451caade7ccSmrg  case $ac_file in
3452485f0483Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3453caade7ccSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3454caade7ccSmrg  esac
3455caade7ccSmrgdone
3456caade7ccSmrgrm -f $ac_rmfiles
3457caade7ccSmrg
3458b9b4fd27Smrgif { { ac_try="$ac_link_default"
3459caade7ccSmrgcase "(($ac_try" in
3460caade7ccSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461caade7ccSmrg  *) ac_try_echo=$ac_try;;
3462caade7ccSmrgesac
3463b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
3465caade7ccSmrg  (eval "$ac_link_default") 2>&5
3466caade7ccSmrg  ac_status=$?
3467b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468b9b4fd27Smrg  test $ac_status = 0; }; then :
3469caade7ccSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3470caade7ccSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3471caade7ccSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3472caade7ccSmrg# so that the user can short-circuit this test for compilers unknown to
3473caade7ccSmrg# Autoconf.
3474caade7ccSmrgfor ac_file in $ac_files ''
3475caade7ccSmrgdo
3476caade7ccSmrg  test -f "$ac_file" || continue
3477caade7ccSmrg  case $ac_file in
3478485f0483Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3479caade7ccSmrg	;;
3480caade7ccSmrg    [ab].out )
3481caade7ccSmrg	# We found the default executable, but exeext='' is most
3482caade7ccSmrg	# certainly right.
3483caade7ccSmrg	break;;
3484caade7ccSmrg    *.* )
3485b9b4fd27Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3486caade7ccSmrg	then :; else
3487caade7ccSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3488caade7ccSmrg	fi
3489caade7ccSmrg	# We set ac_cv_exeext here because the later test for it is not
3490caade7ccSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3491caade7ccSmrg	# argument, so we may need to know it at that point already.
3492caade7ccSmrg	# Even if this section looks crufty: it has the advantage of
3493caade7ccSmrg	# actually working.
3494caade7ccSmrg	break;;
3495caade7ccSmrg    * )
3496caade7ccSmrg	break;;
3497caade7ccSmrg  esac
3498caade7ccSmrgdone
3499caade7ccSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3500caade7ccSmrg
3501caade7ccSmrgelse
3502caade7ccSmrg  ac_file=''
3503caade7ccSmrgfi
3504b9b4fd27Smrgif test -z "$ac_file"; then :
3505b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506b9b4fd27Smrg$as_echo "no" >&6; }
3507b9b4fd27Smrg$as_echo "$as_me: failed program was:" >&5
3508caade7ccSmrgsed 's/^/| /' conftest.$ac_ext >&5
3509caade7ccSmrg
3510b9b4fd27Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511485f0483Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512e8a5466aSmrgas_fn_error 77 "C compiler cannot create executables
3513e8a5466aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3514b9b4fd27Smrgelse
3515b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516b9b4fd27Smrg$as_echo "yes" >&6; }
3517caade7ccSmrgfi
3518b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3519b9b4fd27Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
3520b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3521b9b4fd27Smrg$as_echo "$ac_file" >&6; }
3522caade7ccSmrgac_exeext=$ac_cv_exeext
3523caade7ccSmrg
3524485f0483Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3525caade7ccSmrgac_clean_files=$ac_clean_files_save
3526b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3527485f0483Smrg$as_echo_n "checking for suffix of executables... " >&6; }
3528b9b4fd27Smrgif { { ac_try="$ac_link"
3529caade7ccSmrgcase "(($ac_try" in
3530caade7ccSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531caade7ccSmrg  *) ac_try_echo=$ac_try;;
3532caade7ccSmrgesac
3533b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
3535caade7ccSmrg  (eval "$ac_link") 2>&5
3536caade7ccSmrg  ac_status=$?
3537b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538b9b4fd27Smrg  test $ac_status = 0; }; then :
3539caade7ccSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3540caade7ccSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3541caade7ccSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3542caade7ccSmrg# `rm'.
3543caade7ccSmrgfor ac_file in conftest.exe conftest conftest.*; do
3544caade7ccSmrg  test -f "$ac_file" || continue
3545caade7ccSmrg  case $ac_file in
3546485f0483Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3547caade7ccSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548caade7ccSmrg	  break;;
3549caade7ccSmrg    * ) break;;
3550caade7ccSmrg  esac
3551caade7ccSmrgdone
3552caade7ccSmrgelse
3553b9b4fd27Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554485f0483Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555e8a5466aSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3556e8a5466aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3557caade7ccSmrgfi
3558b9b4fd27Smrgrm -f conftest conftest$ac_cv_exeext
3559b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3560485f0483Smrg$as_echo "$ac_cv_exeext" >&6; }
3561caade7ccSmrg
3562caade7ccSmrgrm -f conftest.$ac_ext
3563caade7ccSmrgEXEEXT=$ac_cv_exeext
3564caade7ccSmrgac_exeext=$EXEEXT
3565b9b4fd27Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566caade7ccSmrg/* end confdefs.h.  */
3567b9b4fd27Smrg#include <stdio.h>
3568caade7ccSmrgint
3569caade7ccSmrgmain ()
3570caade7ccSmrg{
3571b9b4fd27SmrgFILE *f = fopen ("conftest.out", "w");
3572b9b4fd27Smrg return ferror (f) || fclose (f) != 0;
3573caade7ccSmrg
3574caade7ccSmrg  ;
3575caade7ccSmrg  return 0;
3576caade7ccSmrg}
3577caade7ccSmrg_ACEOF
3578b9b4fd27Smrgac_clean_files="$ac_clean_files conftest.out"
3579b9b4fd27Smrg# Check that the compiler produces executables we can run.  If not, either
3580b9b4fd27Smrg# the compiler is broken, or we cross compile.
3581b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3582b9b4fd27Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
3583b9b4fd27Smrgif test "$cross_compiling" != yes; then
3584b9b4fd27Smrg  { { ac_try="$ac_link"
3585caade7ccSmrgcase "(($ac_try" in
3586caade7ccSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587caade7ccSmrg  *) ac_try_echo=$ac_try;;
3588caade7ccSmrgesac
3589b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
3591b9b4fd27Smrg  (eval "$ac_link") 2>&5
3592caade7ccSmrg  ac_status=$?
3593b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594b9b4fd27Smrg  test $ac_status = 0; }
3595b9b4fd27Smrg  if { ac_try='./conftest$ac_cv_exeext'
3596b9b4fd27Smrg  { { case "(($ac_try" in
3597b9b4fd27Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598b9b4fd27Smrg  *) ac_try_echo=$ac_try;;
3599b9b4fd27Smrgesac
3600b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
3602b9b4fd27Smrg  (eval "$ac_try") 2>&5
3603b9b4fd27Smrg  ac_status=$?
3604b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605b9b4fd27Smrg  test $ac_status = 0; }; }; then
3606b9b4fd27Smrg    cross_compiling=no
3607b9b4fd27Smrg  else
3608b9b4fd27Smrg    if test "$cross_compiling" = maybe; then
3609b9b4fd27Smrg	cross_compiling=yes
3610b9b4fd27Smrg    else
3611b9b4fd27Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612b9b4fd27Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613e8a5466aSmrgas_fn_error $? "cannot run C compiled programs.
3614b9b4fd27SmrgIf you meant to cross compile, use \`--host'.
3615e8a5466aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3616b9b4fd27Smrg    fi
3617b9b4fd27Smrg  fi
3618b9b4fd27Smrgfi
3619b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3620b9b4fd27Smrg$as_echo "$cross_compiling" >&6; }
3621b9b4fd27Smrg
3622b9b4fd27Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3623b9b4fd27Smrgac_clean_files=$ac_clean_files_save
3624b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3625b9b4fd27Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3626e8a5466aSmrgif ${ac_cv_objext+:} false; then :
3627b9b4fd27Smrg  $as_echo_n "(cached) " >&6
3628b9b4fd27Smrgelse
3629b9b4fd27Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630b9b4fd27Smrg/* end confdefs.h.  */
3631b9b4fd27Smrg
3632b9b4fd27Smrgint
3633b9b4fd27Smrgmain ()
3634b9b4fd27Smrg{
3635b9b4fd27Smrg
3636b9b4fd27Smrg  ;
3637b9b4fd27Smrg  return 0;
3638b9b4fd27Smrg}
3639b9b4fd27Smrg_ACEOF
3640b9b4fd27Smrgrm -f conftest.o conftest.obj
3641b9b4fd27Smrgif { { ac_try="$ac_compile"
3642b9b4fd27Smrgcase "(($ac_try" in
3643b9b4fd27Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644b9b4fd27Smrg  *) ac_try_echo=$ac_try;;
3645b9b4fd27Smrgesac
3646b9b4fd27Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647b9b4fd27Smrg$as_echo "$ac_try_echo"; } >&5
3648b9b4fd27Smrg  (eval "$ac_compile") 2>&5
3649b9b4fd27Smrg  ac_status=$?
3650b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651b9b4fd27Smrg  test $ac_status = 0; }; then :
3652b9b4fd27Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3653b9b4fd27Smrg  test -f "$ac_file" || continue;
3654b9b4fd27Smrg  case $ac_file in
3655b9b4fd27Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3656b9b4fd27Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3657b9b4fd27Smrg       break;;
3658b9b4fd27Smrg  esac
3659b9b4fd27Smrgdone
3660b9b4fd27Smrgelse
3661b9b4fd27Smrg  $as_echo "$as_me: failed program was:" >&5
3662b9b4fd27Smrgsed 's/^/| /' conftest.$ac_ext >&5
3663caade7ccSmrg
3664b9b4fd27Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665b9b4fd27Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666e8a5466aSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3667e8a5466aSmrgSee \`config.log' for more details" "$LINENO" 5; }
3668b9b4fd27Smrgfi
3669caade7ccSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3670caade7ccSmrgfi
3671b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3672485f0483Smrg$as_echo "$ac_cv_objext" >&6; }
3673caade7ccSmrgOBJEXT=$ac_cv_objext
3674caade7ccSmrgac_objext=$OBJEXT
3675b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3676485f0483Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3677e8a5466aSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
3678485f0483Smrg  $as_echo_n "(cached) " >&6
3679caade7ccSmrgelse
3680b9b4fd27Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681caade7ccSmrg/* end confdefs.h.  */
3682caade7ccSmrg
3683caade7ccSmrgint
3684caade7ccSmrgmain ()
3685caade7ccSmrg{
3686caade7ccSmrg#ifndef __GNUC__
3687caade7ccSmrg       choke me
3688caade7ccSmrg#endif
3689caade7ccSmrg
3690caade7ccSmrg  ;
3691caade7ccSmrg  return 0;
3692caade7ccSmrg}
3693caade7ccSmrg_ACEOF
3694b9b4fd27Smrgif ac_fn_c_try_compile "$LINENO"; then :
3695caade7ccSmrg  ac_compiler_gnu=yes
3696caade7ccSmrgelse
3697b9b4fd27Smrg  ac_compiler_gnu=no
3698caade7ccSmrgfi
3699caade7ccSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700caade7ccSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3701caade7ccSmrg
3702caade7ccSmrgfi
3703b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3704485f0483Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3705485f0483Smrgif test $ac_compiler_gnu = yes; then
3706485f0483Smrg  GCC=yes
3707485f0483Smrgelse
3708485f0483Smrg  GCC=
3709485f0483Smrgfi
3710caade7ccSmrgac_test_CFLAGS=${CFLAGS+set}
3711caade7ccSmrgac_save_CFLAGS=$CFLAGS
3712b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3713485f0483Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3714e8a5466aSmrgif ${ac_cv_prog_cc_g+:} false; then :
3715485f0483Smrg  $as_echo_n "(cached) " >&6
3716caade7ccSmrgelse
3717caade7ccSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3718caade7ccSmrg   ac_c_werror_flag=yes
3719caade7ccSmrg   ac_cv_prog_cc_g=no
3720caade7ccSmrg   CFLAGS="-g"
3721b9b4fd27Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722caade7ccSmrg/* end confdefs.h.  */
3723caade7ccSmrg
3724caade7ccSmrgint
3725caade7ccSmrgmain ()
3726caade7ccSmrg{
3727caade7ccSmrg
3728caade7ccSmrg  ;
3729caade7ccSmrg  return 0;
3730caade7ccSmrg}
3731caade7ccSmrg_ACEOF
3732b9b4fd27Smrgif ac_fn_c_try_compile "$LINENO"; then :
3733caade7ccSmrg  ac_cv_prog_cc_g=yes
3734caade7ccSmrgelse
3735b9b4fd27Smrg  CFLAGS=""
3736b9b4fd27Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737caade7ccSmrg/* end confdefs.h.  */
3738caade7ccSmrg
3739caade7ccSmrgint
3740caade7ccSmrgmain ()
3741caade7ccSmrg{
3742caade7ccSmrg
3743caade7ccSmrg  ;
3744caade7ccSmrg  return 0;
3745caade7ccSmrg}
3746caade7ccSmrg_ACEOF
3747b9b4fd27Smrgif ac_fn_c_try_compile "$LINENO"; then :
3748caade7ccSmrg
3749b9b4fd27Smrgelse
3750b9b4fd27Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3751caade7ccSmrg	 CFLAGS="-g"
3752b9b4fd27Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753caade7ccSmrg/* end confdefs.h.  */
3754caade7ccSmrg
3755caade7ccSmrgint
3756caade7ccSmrgmain ()
3757caade7ccSmrg{
3758caade7ccSmrg
3759caade7ccSmrg  ;
3760caade7ccSmrg  return 0;
3761caade7ccSmrg}
3762caade7ccSmrg_ACEOF
3763b9b4fd27Smrgif ac_fn_c_try_compile "$LINENO"; then :
3764caade7ccSmrg  ac_cv_prog_cc_g=yes
3765caade7ccSmrgfi
3766caade7ccSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767caade7ccSmrgfi
3768caade7ccSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769caade7ccSmrgfi
3770caade7ccSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771caade7ccSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3772caade7ccSmrgfi
3773b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3774485f0483Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3775caade7ccSmrgif test "$ac_test_CFLAGS" = set; then
3776caade7ccSmrg  CFLAGS=$ac_save_CFLAGS
3777caade7ccSmrgelif test $ac_cv_prog_cc_g = yes; then
3778caade7ccSmrg  if test "$GCC" = yes; then
3779caade7ccSmrg    CFLAGS="-g -O2"
3780caade7ccSmrg  else
3781caade7ccSmrg    CFLAGS="-g"
3782caade7ccSmrg  fi
3783caade7ccSmrgelse
3784caade7ccSmrg  if test "$GCC" = yes; then
3785caade7ccSmrg    CFLAGS="-O2"
3786caade7ccSmrg  else
3787caade7ccSmrg    CFLAGS=
3788caade7ccSmrg  fi
3789caade7ccSmrgfi
3790b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3791485f0483Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3792e8a5466aSmrgif ${ac_cv_prog_cc_c89+:} false; then :
3793485f0483Smrg  $as_echo_n "(cached) " >&6
3794caade7ccSmrgelse
3795caade7ccSmrg  ac_cv_prog_cc_c89=no
3796caade7ccSmrgac_save_CC=$CC
3797b9b4fd27Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798caade7ccSmrg/* end confdefs.h.  */
3799caade7ccSmrg#include <stdarg.h>
3800caade7ccSmrg#include <stdio.h>
3801caade7ccSmrg#include <sys/types.h>
3802caade7ccSmrg#include <sys/stat.h>
3803caade7ccSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3804caade7ccSmrgstruct buf { int x; };
3805caade7ccSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3806caade7ccSmrgstatic char *e (p, i)
3807caade7ccSmrg     char **p;
3808caade7ccSmrg     int i;
3809caade7ccSmrg{
3810caade7ccSmrg  return p[i];
3811caade7ccSmrg}
3812caade7ccSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3813caade7ccSmrg{
3814caade7ccSmrg  char *s;
3815caade7ccSmrg  va_list v;
3816caade7ccSmrg  va_start (v,p);
3817caade7ccSmrg  s = g (p, va_arg (v,int));
3818caade7ccSmrg  va_end (v);
3819caade7ccSmrg  return s;
3820caade7ccSmrg}
3821caade7ccSmrg
3822caade7ccSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3823caade7ccSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3824caade7ccSmrg   These don't provoke an error unfortunately, instead are silently treated
3825caade7ccSmrg   as 'x'.  The following induces an error, until -std is added to get
3826caade7ccSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3827caade7ccSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3828caade7ccSmrg   that's true only with -std.  */
3829caade7ccSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3830caade7ccSmrg
3831caade7ccSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3832caade7ccSmrg   inside strings and character constants.  */
3833caade7ccSmrg#define FOO(x) 'x'
3834caade7ccSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3835caade7ccSmrg
3836caade7ccSmrgint test (int i, double x);
3837caade7ccSmrgstruct s1 {int (*f) (int a);};
3838caade7ccSmrgstruct s2 {int (*f) (double a);};
3839caade7ccSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3840caade7ccSmrgint argc;
3841caade7ccSmrgchar **argv;
3842caade7ccSmrgint
3843caade7ccSmrgmain ()
3844caade7ccSmrg{
3845caade7ccSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3846caade7ccSmrg  ;
3847caade7ccSmrg  return 0;
3848caade7ccSmrg}
3849caade7ccSmrg_ACEOF
3850caade7ccSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3851caade7ccSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3852caade7ccSmrgdo
3853caade7ccSmrg  CC="$ac_save_CC $ac_arg"
3854b9b4fd27Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3855caade7ccSmrg  ac_cv_prog_cc_c89=$ac_arg
3856caade7ccSmrgfi
3857caade7ccSmrgrm -f core conftest.err conftest.$ac_objext
3858caade7ccSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3859caade7ccSmrgdone
3860caade7ccSmrgrm -f conftest.$ac_ext
3861caade7ccSmrgCC=$ac_save_CC
3862caade7ccSmrg
3863caade7ccSmrgfi
3864caade7ccSmrg# AC_CACHE_VAL
3865caade7ccSmrgcase "x$ac_cv_prog_cc_c89" in
3866caade7ccSmrg  x)
3867b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3868485f0483Smrg$as_echo "none needed" >&6; } ;;
3869caade7ccSmrg  xno)
3870b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3871485f0483Smrg$as_echo "unsupported" >&6; } ;;
3872caade7ccSmrg  *)
3873caade7ccSmrg    CC="$CC $ac_cv_prog_cc_c89"
3874b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3875485f0483Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3876caade7ccSmrgesac
3877b9b4fd27Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3878caade7ccSmrg
3879b9b4fd27Smrgfi
3880caade7ccSmrg
3881caade7ccSmrgac_ext=c
3882caade7ccSmrgac_cpp='$CPP $CPPFLAGS'
3883caade7ccSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884caade7ccSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885caade7ccSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3886caade7ccSmrg
3887caade7ccSmrgdepcc="$CC"   am_compiler_list=
3888caade7ccSmrg
3889b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3890485f0483Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3891e8a5466aSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
3892485f0483Smrg  $as_echo_n "(cached) " >&6
3893caade7ccSmrgelse
3894caade7ccSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3895caade7ccSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3896caade7ccSmrg  # making bogus files that we don't know about and never remove.  For
3897caade7ccSmrg  # instance it was reported that on HP-UX the gcc test will end up
3898af9a7ee5Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
3899af9a7ee5Smrg  # in D".
3900af9a7ee5Smrg  rm -rf conftest.dir
3901caade7ccSmrg  mkdir conftest.dir
3902caade7ccSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3903caade7ccSmrg  # using a relative directory.
3904caade7ccSmrg  cp "$am_depcomp" conftest.dir
3905caade7ccSmrg  cd conftest.dir
3906caade7ccSmrg  # We will build objects and dependencies in a subdirectory because
3907caade7ccSmrg  # it helps to detect inapplicable dependency modes.  For instance
3908caade7ccSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3909caade7ccSmrg  # side effect of compilation, but ICC will put the dependencies in
3910caade7ccSmrg  # the current directory while Tru64 will put them in the object
3911caade7ccSmrg  # directory.
3912caade7ccSmrg  mkdir sub
3913caade7ccSmrg
3914caade7ccSmrg  am_cv_CC_dependencies_compiler_type=none
3915caade7ccSmrg  if test "$am_compiler_list" = ""; then
3916caade7ccSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3917caade7ccSmrg  fi
3918485f0483Smrg  am__universal=false
3919485f0483Smrg  case " $depcc " in #(
3920485f0483Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3921485f0483Smrg     esac
3922485f0483Smrg
3923caade7ccSmrg  for depmode in $am_compiler_list; do
3924caade7ccSmrg    # Setup a source with many dependencies, because some compilers
3925caade7ccSmrg    # like to wrap large dependency lists on column 80 (with \), and
3926caade7ccSmrg    # we should not choose a depcomp mode which is confused by this.
3927caade7ccSmrg    #
3928caade7ccSmrg    # We need to recreate these files for each test, as the compiler may
3929caade7ccSmrg    # overwrite some of them when testing with obscure command lines.
3930caade7ccSmrg    # This happens at least with the AIX C compiler.
3931caade7ccSmrg    : > sub/conftest.c
3932caade7ccSmrg    for i in 1 2 3 4 5 6; do
3933caade7ccSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3934af9a7ee5Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3935af9a7ee5Smrg      # Solaris 10 /bin/sh.
3936af9a7ee5Smrg      echo '/* dummy */' > sub/conftst$i.h
3937caade7ccSmrg    done
3938caade7ccSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3939caade7ccSmrg
3940af9a7ee5Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3941485f0483Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3942af9a7ee5Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
3943af9a7ee5Smrg    # versions had trouble with output in subdirs.
3944485f0483Smrg    am__obj=sub/conftest.${OBJEXT-o}
3945485f0483Smrg    am__minus_obj="-o $am__obj"
3946caade7ccSmrg    case $depmode in
3947485f0483Smrg    gcc)
3948485f0483Smrg      # This depmode causes a compiler race in universal mode.
3949485f0483Smrg      test "$am__universal" = false || continue
3950485f0483Smrg      ;;
3951caade7ccSmrg    nosideeffect)
3952af9a7ee5Smrg      # After this tag, mechanisms are not by side-effect, so they'll
3953af9a7ee5Smrg      # only be used when explicitly requested.
3954caade7ccSmrg      if test "x$enable_dependency_tracking" = xyes; then
3955caade7ccSmrg	continue
3956caade7ccSmrg      else
3957caade7ccSmrg	break
3958caade7ccSmrg      fi
3959caade7ccSmrg      ;;
3960af9a7ee5Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3961af9a7ee5Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
3962485f0483Smrg      # not run yet.  These depmodes are late enough in the game, and
3963485f0483Smrg      # so weak that their functioning should not be impacted.
3964485f0483Smrg      am__obj=conftest.${OBJEXT-o}
3965485f0483Smrg      am__minus_obj=
3966485f0483Smrg      ;;
3967caade7ccSmrg    none) break ;;
3968caade7ccSmrg    esac
3969caade7ccSmrg    if depmode=$depmode \
3970485f0483Smrg       source=sub/conftest.c object=$am__obj \
3971caade7ccSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3972485f0483Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3973caade7ccSmrg         >/dev/null 2>conftest.err &&
3974caade7ccSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3975caade7ccSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3976485f0483Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3977caade7ccSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3978caade7ccSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3979caade7ccSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3980caade7ccSmrg      # that says an option was ignored or not supported.
3981caade7ccSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3982caade7ccSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3983caade7ccSmrg      # The diagnosis changed in icc 8.0:
3984caade7ccSmrg      #   icc: Command line remark: option '-MP' not supported
3985caade7ccSmrg      if (grep 'ignoring option' conftest.err ||
3986caade7ccSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3987caade7ccSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3988caade7ccSmrg        break
3989caade7ccSmrg      fi
3990caade7ccSmrg    fi
3991caade7ccSmrg  done
3992caade7ccSmrg
3993caade7ccSmrg  cd ..
3994caade7ccSmrg  rm -rf conftest.dir
3995caade7ccSmrgelse
3996caade7ccSmrg  am_cv_CC_dependencies_compiler_type=none
3997caade7ccSmrgfi
3998caade7ccSmrg
3999caade7ccSmrgfi
4000b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4001485f0483Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4002caade7ccSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4003caade7ccSmrg
4004caade7ccSmrg if
4005caade7ccSmrg  test "x$enable_dependency_tracking" != xno \
4006caade7ccSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4007caade7ccSmrg  am__fastdepCC_TRUE=
4008caade7ccSmrg  am__fastdepCC_FALSE='#'
4009caade7ccSmrgelse
4010caade7ccSmrg  am__fastdepCC_TRUE='#'
4011caade7ccSmrg  am__fastdepCC_FALSE=
4012caade7ccSmrgfi
4013caade7ccSmrg
4014caade7ccSmrg
4015a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4016a5602400Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4017a5602400Smrgif ${ac_cv_path_SED+:} false; then :
4018485f0483Smrg  $as_echo_n "(cached) " >&6
4019caade7ccSmrgelse
4020a5602400Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4021a5602400Smrg     for ac_i in 1 2 3 4 5 6 7; do
4022a5602400Smrg       ac_script="$ac_script$as_nl$ac_script"
4023a5602400Smrg     done
4024a5602400Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4025a5602400Smrg     { ac_script=; unset ac_script;}
4026a5602400Smrg     if test -z "$SED"; then
4027a5602400Smrg  ac_path_SED_found=false
4028a5602400Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4029a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030a5602400Smrgfor as_dir in $PATH
4031a5602400Smrgdo
4032a5602400Smrg  IFS=$as_save_IFS
4033a5602400Smrg  test -z "$as_dir" && as_dir=.
4034a5602400Smrg    for ac_prog in sed gsed; do
4035a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4036a5602400Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4037a5602400Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4038a5602400Smrg# Check for GNU ac_path_SED and select it if it is found.
4039a5602400Smrg  # Check for GNU $ac_path_SED
4040a5602400Smrgcase `"$ac_path_SED" --version 2>&1` in
4041a5602400Smrg*GNU*)
4042a5602400Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4043a5602400Smrg*)
4044a5602400Smrg  ac_count=0
4045a5602400Smrg  $as_echo_n 0123456789 >"conftest.in"
4046a5602400Smrg  while :
4047a5602400Smrg  do
4048a5602400Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4049a5602400Smrg    mv "conftest.tmp" "conftest.in"
4050a5602400Smrg    cp "conftest.in" "conftest.nl"
4051a5602400Smrg    $as_echo '' >> "conftest.nl"
4052a5602400Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4053a5602400Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4054a5602400Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4055a5602400Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4056a5602400Smrg      # Best one so far, save it but keep looking for a better one
4057a5602400Smrg      ac_cv_path_SED="$ac_path_SED"
4058a5602400Smrg      ac_path_SED_max=$ac_count
4059a5602400Smrg    fi
4060a5602400Smrg    # 10*(2^10) chars as input seems more than enough
4061a5602400Smrg    test $ac_count -gt 10 && break
4062a5602400Smrg  done
4063a5602400Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4064a5602400Smrgesac
4065caade7ccSmrg
4066a5602400Smrg      $ac_path_SED_found && break 3
4067a5602400Smrg    done
4068a5602400Smrg  done
4069a5602400Smrg  done
4070a5602400SmrgIFS=$as_save_IFS
4071a5602400Smrg  if test -z "$ac_cv_path_SED"; then
4072a5602400Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4073a5602400Smrg  fi
4074a5602400Smrgelse
4075a5602400Smrg  ac_cv_path_SED=$SED
4076a5602400Smrgfi
4077caade7ccSmrg
4078a5602400Smrgfi
4079a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4080a5602400Smrg$as_echo "$ac_cv_path_SED" >&6; }
4081a5602400Smrg SED="$ac_cv_path_SED"
4082a5602400Smrg  rm -f conftest.sed
4083e8a5466aSmrg
4084a5602400Smrgtest -z "$SED" && SED=sed
4085a5602400SmrgXsed="$SED -e 1s/^X//"
4086e8a5466aSmrg
4087e8a5466aSmrg
4088e8a5466aSmrg
4089e8a5466aSmrg
4090e8a5466aSmrg
4091e8a5466aSmrg
4092e8a5466aSmrg
4093e8a5466aSmrg
4094e8a5466aSmrg
4095e8a5466aSmrg
4096e8a5466aSmrg
4097a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4098a5602400Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4099a5602400Smrgif ${ac_cv_path_GREP+:} false; then :
4100a5602400Smrg  $as_echo_n "(cached) " >&6
4101a5602400Smrgelse
4102a5602400Smrg  if test -z "$GREP"; then
4103a5602400Smrg  ac_path_GREP_found=false
4104a5602400Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4105a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106a5602400Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107e8a5466aSmrgdo
4108a5602400Smrg  IFS=$as_save_IFS
4109a5602400Smrg  test -z "$as_dir" && as_dir=.
4110a5602400Smrg    for ac_prog in grep ggrep; do
4111a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4112a5602400Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4113a5602400Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4114a5602400Smrg# Check for GNU ac_path_GREP and select it if it is found.
4115a5602400Smrg  # Check for GNU $ac_path_GREP
4116a5602400Smrgcase `"$ac_path_GREP" --version 2>&1` in
4117a5602400Smrg*GNU*)
4118a5602400Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4119a5602400Smrg*)
4120a5602400Smrg  ac_count=0
4121a5602400Smrg  $as_echo_n 0123456789 >"conftest.in"
4122a5602400Smrg  while :
4123a5602400Smrg  do
4124a5602400Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4125a5602400Smrg    mv "conftest.tmp" "conftest.in"
4126a5602400Smrg    cp "conftest.in" "conftest.nl"
4127a5602400Smrg    $as_echo 'GREP' >> "conftest.nl"
4128a5602400Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4129a5602400Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4130a5602400Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4131a5602400Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4132a5602400Smrg      # Best one so far, save it but keep looking for a better one
4133a5602400Smrg      ac_cv_path_GREP="$ac_path_GREP"
4134a5602400Smrg      ac_path_GREP_max=$ac_count
4135a5602400Smrg    fi
4136a5602400Smrg    # 10*(2^10) chars as input seems more than enough
4137a5602400Smrg    test $ac_count -gt 10 && break
4138a5602400Smrg  done
4139a5602400Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140e8a5466aSmrgesac
4141e8a5466aSmrg
4142a5602400Smrg      $ac_path_GREP_found && break 3
4143a5602400Smrg    done
4144a5602400Smrg  done
4145a5602400Smrg  done
4146a5602400SmrgIFS=$as_save_IFS
4147a5602400Smrg  if test -z "$ac_cv_path_GREP"; then
4148a5602400Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149a5602400Smrg  fi
4150a5602400Smrgelse
4151a5602400Smrg  ac_cv_path_GREP=$GREP
4152e8a5466aSmrgfi
4153e8a5466aSmrg
4154a5602400Smrgfi
4155a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4156a5602400Smrg$as_echo "$ac_cv_path_GREP" >&6; }
4157a5602400Smrg GREP="$ac_cv_path_GREP"
4158e8a5466aSmrg
4159e8a5466aSmrg
4160a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4161a5602400Smrg$as_echo_n "checking for egrep... " >&6; }
4162a5602400Smrgif ${ac_cv_path_EGREP+:} false; then :
4163e8a5466aSmrg  $as_echo_n "(cached) " >&6
4164e8a5466aSmrgelse
4165a5602400Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4166a5602400Smrg   then ac_cv_path_EGREP="$GREP -E"
4167a5602400Smrg   else
4168a5602400Smrg     if test -z "$EGREP"; then
4169a5602400Smrg  ac_path_EGREP_found=false
4170485f0483Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4171485f0483Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172caade7ccSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4173caade7ccSmrgdo
4174caade7ccSmrg  IFS=$as_save_IFS
4175caade7ccSmrg  test -z "$as_dir" && as_dir=.
4176a5602400Smrg    for ac_prog in egrep; do
4177485f0483Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4178a5602400Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4179a5602400Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4180a5602400Smrg# Check for GNU ac_path_EGREP and select it if it is found.
4181a5602400Smrg  # Check for GNU $ac_path_EGREP
4182a5602400Smrgcase `"$ac_path_EGREP" --version 2>&1` in
4183caade7ccSmrg*GNU*)
4184a5602400Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4185caade7ccSmrg*)
4186caade7ccSmrg  ac_count=0
4187485f0483Smrg  $as_echo_n 0123456789 >"conftest.in"
4188caade7ccSmrg  while :
4189caade7ccSmrg  do
4190caade7ccSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4191caade7ccSmrg    mv "conftest.tmp" "conftest.in"
4192caade7ccSmrg    cp "conftest.in" "conftest.nl"
4193a5602400Smrg    $as_echo 'EGREP' >> "conftest.nl"
4194a5602400Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4195caade7ccSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4196b9b4fd27Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4197a5602400Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4198caade7ccSmrg      # Best one so far, save it but keep looking for a better one
4199a5602400Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
4200a5602400Smrg      ac_path_EGREP_max=$ac_count
4201caade7ccSmrg    fi
4202caade7ccSmrg    # 10*(2^10) chars as input seems more than enough
4203caade7ccSmrg    test $ac_count -gt 10 && break
4204caade7ccSmrg  done
4205caade7ccSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206caade7ccSmrgesac
4207caade7ccSmrg
4208a5602400Smrg      $ac_path_EGREP_found && break 3
4209485f0483Smrg    done
4210caade7ccSmrg  done
4211b9b4fd27Smrg  done
4212caade7ccSmrgIFS=$as_save_IFS
4213a5602400Smrg  if test -z "$ac_cv_path_EGREP"; then
4214a5602400Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4215485f0483Smrg  fi
4216caade7ccSmrgelse
4217a5602400Smrg  ac_cv_path_EGREP=$EGREP
4218caade7ccSmrgfi
4219caade7ccSmrg
4220a5602400Smrg   fi
4221caade7ccSmrgfi
4222a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4223a5602400Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
4224a5602400Smrg EGREP="$ac_cv_path_EGREP"
4225caade7ccSmrg
4226caade7ccSmrg
4227a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4228a5602400Smrg$as_echo_n "checking for fgrep... " >&6; }
4229a5602400Smrgif ${ac_cv_path_FGREP+:} false; then :
4230485f0483Smrg  $as_echo_n "(cached) " >&6
4231caade7ccSmrgelse
4232a5602400Smrg  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4233a5602400Smrg   then ac_cv_path_FGREP="$GREP -F"
4234caade7ccSmrg   else
4235a5602400Smrg     if test -z "$FGREP"; then
4236a5602400Smrg  ac_path_FGREP_found=false
4237485f0483Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4238485f0483Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239caade7ccSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240caade7ccSmrgdo
4241caade7ccSmrg  IFS=$as_save_IFS
4242caade7ccSmrg  test -z "$as_dir" && as_dir=.
4243a5602400Smrg    for ac_prog in fgrep; do
4244485f0483Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4245a5602400Smrg      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4246a5602400Smrg      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4247a5602400Smrg# Check for GNU ac_path_FGREP and select it if it is found.
4248a5602400Smrg  # Check for GNU $ac_path_FGREP
4249a5602400Smrgcase `"$ac_path_FGREP" --version 2>&1` in
4250caade7ccSmrg*GNU*)
4251a5602400Smrg  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4252caade7ccSmrg*)
4253caade7ccSmrg  ac_count=0
4254485f0483Smrg  $as_echo_n 0123456789 >"conftest.in"
4255caade7ccSmrg  while :
4256caade7ccSmrg  do
4257caade7ccSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4258caade7ccSmrg    mv "conftest.tmp" "conftest.in"
4259caade7ccSmrg    cp "conftest.in" "conftest.nl"
4260a5602400Smrg    $as_echo 'FGREP' >> "conftest.nl"
4261a5602400Smrg    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262caade7ccSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263b9b4fd27Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4264a5602400Smrg    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4265caade7ccSmrg      # Best one so far, save it but keep looking for a better one
4266a5602400Smrg      ac_cv_path_FGREP="$ac_path_FGREP"
4267a5602400Smrg      ac_path_FGREP_max=$ac_count
4268caade7ccSmrg    fi
4269caade7ccSmrg    # 10*(2^10) chars as input seems more than enough
4270caade7ccSmrg    test $ac_count -gt 10 && break
4271caade7ccSmrg  done
4272caade7ccSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4273caade7ccSmrgesac
4274caade7ccSmrg
4275a5602400Smrg      $ac_path_FGREP_found && break 3
4276485f0483Smrg    done
4277caade7ccSmrg  done
4278b9b4fd27Smrg  done
4279caade7ccSmrgIFS=$as_save_IFS
4280a5602400Smrg  if test -z "$ac_cv_path_FGREP"; then
4281a5602400Smrg    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4282485f0483Smrg  fi
4283caade7ccSmrgelse
4284a5602400Smrg  ac_cv_path_FGREP=$FGREP
4285caade7ccSmrgfi
4286caade7ccSmrg
4287caade7ccSmrg   fi
4288caade7ccSmrgfi
4289a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4290a5602400Smrg$as_echo "$ac_cv_path_FGREP" >&6; }
4291a5602400Smrg FGREP="$ac_cv_path_FGREP"
4292a5602400Smrg
4293a5602400Smrg
4294a5602400Smrgtest -z "$GREP" && GREP=grep
4295a5602400Smrg
4296caade7ccSmrg
4297caade7ccSmrg
4298caade7ccSmrg
4299b9b4fd27Smrg
4300b9b4fd27Smrg
4301b9b4fd27Smrg
4302b9b4fd27Smrg
4303b9b4fd27Smrg
4304caade7ccSmrg
4305b9b4fd27Smrg
4306b9b4fd27Smrg
4307a5602400Smrg
4308a5602400Smrg
4309a5602400Smrg
4310a5602400Smrg
4311a5602400Smrg
4312a5602400Smrg
4313a5602400Smrg
4314a5602400Smrg# Check whether --with-gnu-ld was given.
4315a5602400Smrgif test "${with_gnu_ld+set}" = set; then :
4316a5602400Smrg  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4317caade7ccSmrgelse
4318a5602400Smrg  with_gnu_ld=no
4319caade7ccSmrgfi
4320b9b4fd27Smrg
4321a5602400Smrgac_prog=ld
4322a5602400Smrgif test "$GCC" = yes; then
4323a5602400Smrg  # Check if gcc -print-prog-name=ld gives a path.
4324a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4325a5602400Smrg$as_echo_n "checking for ld used by $CC... " >&6; }
4326a5602400Smrg  case $host in
4327a5602400Smrg  *-*-mingw*)
4328a5602400Smrg    # gcc leaves a trailing carriage return which upsets mingw
4329a5602400Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4330a5602400Smrg  *)
4331a5602400Smrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4332a5602400Smrg  esac
4333a5602400Smrg  case $ac_prog in
4334a5602400Smrg    # Accept absolute paths.
4335a5602400Smrg    [\\/]* | ?:[\\/]*)
4336a5602400Smrg      re_direlt='/[^/][^/]*/\.\./'
4337a5602400Smrg      # Canonicalize the pathname of ld
4338a5602400Smrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4339a5602400Smrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4340a5602400Smrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4341a5602400Smrg      done
4342a5602400Smrg      test -z "$LD" && LD="$ac_prog"
4343a5602400Smrg      ;;
4344a5602400Smrg  "")
4345a5602400Smrg    # If it fails, then pretend we aren't using GCC.
4346a5602400Smrg    ac_prog=ld
4347a5602400Smrg    ;;
4348a5602400Smrg  *)
4349a5602400Smrg    # If it is relative, then search for the first ld in PATH.
4350a5602400Smrg    with_gnu_ld=unknown
4351a5602400Smrg    ;;
4352a5602400Smrg  esac
4353a5602400Smrgelif test "$with_gnu_ld" = yes; then
4354a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4355a5602400Smrg$as_echo_n "checking for GNU ld... " >&6; }
4356a5602400Smrgelse
4357a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4358a5602400Smrg$as_echo_n "checking for non-GNU ld... " >&6; }
4359caade7ccSmrgfi
4360a5602400Smrgif ${lt_cv_path_LD+:} false; then :
4361a5602400Smrg  $as_echo_n "(cached) " >&6
4362b9b4fd27Smrgelse
4363a5602400Smrg  if test -z "$LD"; then
4364a5602400Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4365a5602400Smrg  for ac_dir in $PATH; do
4366a5602400Smrg    IFS="$lt_save_ifs"
4367a5602400Smrg    test -z "$ac_dir" && ac_dir=.
4368a5602400Smrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4369a5602400Smrg      lt_cv_path_LD="$ac_dir/$ac_prog"
4370a5602400Smrg      # Check to see if the program is GNU ld.  I'd rather use --version,
4371a5602400Smrg      # but apparently some variants of GNU ld only accept -v.
4372a5602400Smrg      # Break only if it was the GNU/non-GNU ld that we prefer.
4373a5602400Smrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4374a5602400Smrg      *GNU* | *'with BFD'*)
4375a5602400Smrg	test "$with_gnu_ld" != no && break
4376a5602400Smrg	;;
4377a5602400Smrg      *)
4378a5602400Smrg	test "$with_gnu_ld" != yes && break
4379a5602400Smrg	;;
4380a5602400Smrg      esac
4381a5602400Smrg    fi
4382a5602400Smrg  done
4383a5602400Smrg  IFS="$lt_save_ifs"
4384caade7ccSmrgelse
4385a5602400Smrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4386b9b4fd27Smrgfi
4387caade7ccSmrgfi
4388caade7ccSmrg
4389a5602400SmrgLD="$lt_cv_path_LD"
4390a5602400Smrgif test -n "$LD"; then
4391a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4392a5602400Smrg$as_echo "$LD" >&6; }
4393a5602400Smrgelse
4394a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395a5602400Smrg$as_echo "no" >&6; }
4396caade7ccSmrgfi
4397a5602400Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4398a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4399a5602400Smrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4400a5602400Smrgif ${lt_cv_prog_gnu_ld+:} false; then :
4401a5602400Smrg  $as_echo_n "(cached) " >&6
4402a5602400Smrgelse
4403a5602400Smrg  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4404a5602400Smrgcase `$LD -v 2>&1 </dev/null` in
4405a5602400Smrg*GNU* | *'with BFD'*)
4406a5602400Smrg  lt_cv_prog_gnu_ld=yes
4407a5602400Smrg  ;;
4408a5602400Smrg*)
4409a5602400Smrg  lt_cv_prog_gnu_ld=no
4410a5602400Smrg  ;;
4411a5602400Smrgesac
4412caade7ccSmrgfi
4413a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4414a5602400Smrg$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4415a5602400Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld
4416b9b4fd27Smrg
4417caade7ccSmrg
4418caade7ccSmrg
4419caade7ccSmrg
4420caade7ccSmrg
4421caade7ccSmrg
4422caade7ccSmrg
4423e8a5466aSmrg
4424e8a5466aSmrg
4425a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4426a5602400Smrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4427a5602400Smrgif ${lt_cv_path_NM+:} false; then :
4428a5602400Smrg  $as_echo_n "(cached) " >&6
4429a5602400Smrgelse
4430a5602400Smrg  if test -n "$NM"; then
4431a5602400Smrg  # Let the user override the test.
4432a5602400Smrg  lt_cv_path_NM="$NM"
4433a5602400Smrgelse
4434a5602400Smrg  lt_nm_to_check="${ac_tool_prefix}nm"
4435a5602400Smrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4436a5602400Smrg    lt_nm_to_check="$lt_nm_to_check nm"
4437a5602400Smrg  fi
4438a5602400Smrg  for lt_tmp_nm in $lt_nm_to_check; do
4439a5602400Smrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4440a5602400Smrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4441a5602400Smrg      IFS="$lt_save_ifs"
4442a5602400Smrg      test -z "$ac_dir" && ac_dir=.
4443a5602400Smrg      tmp_nm="$ac_dir/$lt_tmp_nm"
4444a5602400Smrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4445a5602400Smrg	# Check to see if the nm accepts a BSD-compat flag.
4446a5602400Smrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4447a5602400Smrg	#   nm: unknown option "B" ignored
4448a5602400Smrg	# Tru64's nm complains that /dev/null is an invalid object file
4449a5602400Smrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4450a5602400Smrg	*/dev/null* | *'Invalid file or object type'*)
4451a5602400Smrg	  lt_cv_path_NM="$tmp_nm -B"
4452a5602400Smrg	  break
4453a5602400Smrg	  ;;
4454a5602400Smrg	*)
4455a5602400Smrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4456a5602400Smrg	  */dev/null*)
4457a5602400Smrg	    lt_cv_path_NM="$tmp_nm -p"
4458a5602400Smrg	    break
4459a5602400Smrg	    ;;
4460a5602400Smrg	  *)
4461a5602400Smrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4462a5602400Smrg	    continue # so that we can try to find one that supports BSD flags
4463a5602400Smrg	    ;;
4464a5602400Smrg	  esac
4465a5602400Smrg	  ;;
4466a5602400Smrg	esac
4467a5602400Smrg      fi
4468a5602400Smrg    done
4469a5602400Smrg    IFS="$lt_save_ifs"
4470a5602400Smrg  done
4471a5602400Smrg  : ${lt_cv_path_NM=no}
4472a5602400Smrgfi
4473a5602400Smrgfi
4474a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4475a5602400Smrg$as_echo "$lt_cv_path_NM" >&6; }
4476a5602400Smrgif test "$lt_cv_path_NM" != "no"; then
4477a5602400Smrg  NM="$lt_cv_path_NM"
4478a5602400Smrgelse
4479a5602400Smrg  # Didn't find any BSD compatible name lister, look for dumpbin.
4480a5602400Smrg  if test -n "$DUMPBIN"; then :
4481a5602400Smrg    # Let the user override the test.
4482a5602400Smrg  else
4483a5602400Smrg    if test -n "$ac_tool_prefix"; then
4484a5602400Smrg  for ac_prog in dumpbin "link -dump"
4485a5602400Smrg  do
4486a5602400Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4487a5602400Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
4488e8a5466aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489e8a5466aSmrg$as_echo_n "checking for $ac_word... " >&6; }
4490a5602400Smrgif ${ac_cv_prog_DUMPBIN+:} false; then :
4491485f0483Smrg  $as_echo_n "(cached) " >&6
4492caade7ccSmrgelse
4493a5602400Smrg  if test -n "$DUMPBIN"; then
4494a5602400Smrg  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4495a5602400Smrgelse
4496a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497b9b4fd27Smrgfor as_dir in $PATH
4498b9b4fd27Smrgdo
4499b9b4fd27Smrg  IFS=$as_save_IFS
4500b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
4501b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4502b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503a5602400Smrg    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4504b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505b9b4fd27Smrg    break 2
4506b9b4fd27Smrg  fi
4507b9b4fd27Smrgdone
4508b9b4fd27Smrg  done
4509b9b4fd27SmrgIFS=$as_save_IFS
4510caade7ccSmrg
4511b9b4fd27Smrgfi
4512a5602400Smrgfi
4513a5602400SmrgDUMPBIN=$ac_cv_prog_DUMPBIN
4514a5602400Smrgif test -n "$DUMPBIN"; then
4515a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4516a5602400Smrg$as_echo "$DUMPBIN" >&6; }
4517caade7ccSmrgelse
4518b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519b9b4fd27Smrg$as_echo "no" >&6; }
4520caade7ccSmrgfi
4521caade7ccSmrg
4522caade7ccSmrg
4523a5602400Smrg    test -n "$DUMPBIN" && break
4524a5602400Smrg  done
4525a5602400Smrgfi
4526a5602400Smrgif test -z "$DUMPBIN"; then
4527a5602400Smrg  ac_ct_DUMPBIN=$DUMPBIN
4528a5602400Smrg  for ac_prog in dumpbin "link -dump"
4529a5602400Smrgdo
4530a5602400Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
4531a5602400Smrgset dummy $ac_prog; ac_word=$2
4532b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
4534a5602400Smrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4535b9b4fd27Smrg  $as_echo_n "(cached) " >&6
4536b9b4fd27Smrgelse
4537a5602400Smrg  if test -n "$ac_ct_DUMPBIN"; then
4538a5602400Smrg  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4539a5602400Smrgelse
4540a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541b9b4fd27Smrgfor as_dir in $PATH
4542b9b4fd27Smrgdo
4543b9b4fd27Smrg  IFS=$as_save_IFS
4544b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
4545b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4546b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547a5602400Smrg    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4548b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549b9b4fd27Smrg    break 2
4550caade7ccSmrg  fi
4551b9b4fd27Smrgdone
4552b9b4fd27Smrg  done
4553b9b4fd27SmrgIFS=$as_save_IFS
4554caade7ccSmrg
4555b9b4fd27Smrgfi
4556a5602400Smrgfi
4557a5602400Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4558a5602400Smrgif test -n "$ac_ct_DUMPBIN"; then
4559a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4560a5602400Smrg$as_echo "$ac_ct_DUMPBIN" >&6; }
4561b9b4fd27Smrgelse
4562b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563b9b4fd27Smrg$as_echo "no" >&6; }
4564b9b4fd27Smrgfi
4565caade7ccSmrg
4566a5602400Smrg
4567a5602400Smrg  test -n "$ac_ct_DUMPBIN" && break
4568a5602400Smrgdone
4569a5602400Smrg
4570a5602400Smrg  if test "x$ac_ct_DUMPBIN" = x; then
4571a5602400Smrg    DUMPBIN=":"
4572b9b4fd27Smrg  else
4573b9b4fd27Smrg    case $cross_compiling:$ac_tool_warned in
4574b9b4fd27Smrgyes:)
4575b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4576b9b4fd27Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4577b9b4fd27Smrgac_tool_warned=yes ;;
4578b9b4fd27Smrgesac
4579a5602400Smrg    DUMPBIN=$ac_ct_DUMPBIN
4580b9b4fd27Smrg  fi
4581b9b4fd27Smrgfi
4582caade7ccSmrg
4583a5602400Smrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4584a5602400Smrg    *COFF*)
4585a5602400Smrg      DUMPBIN="$DUMPBIN -symbols"
4586a5602400Smrg      ;;
4587a5602400Smrg    *)
4588a5602400Smrg      DUMPBIN=:
4589a5602400Smrg      ;;
4590a5602400Smrg    esac
4591a5602400Smrg  fi
4592caade7ccSmrg
4593a5602400Smrg  if test "$DUMPBIN" != ":"; then
4594a5602400Smrg    NM="$DUMPBIN"
4595a5602400Smrg  fi
4596caade7ccSmrgfi
4597a5602400Smrgtest -z "$NM" && NM=nm
4598caade7ccSmrg
4599caade7ccSmrg
4600caade7ccSmrg
4601caade7ccSmrg
4602caade7ccSmrg
4603caade7ccSmrg
4604a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4605a5602400Smrg$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4606a5602400Smrgif ${lt_cv_nm_interface+:} false; then :
4607e8a5466aSmrg  $as_echo_n "(cached) " >&6
4608e8a5466aSmrgelse
4609a5602400Smrg  lt_cv_nm_interface="BSD nm"
4610a5602400Smrg  echo "int some_variable = 0;" > conftest.$ac_ext
4611a5602400Smrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4612a5602400Smrg  (eval "$ac_compile" 2>conftest.err)
4613a5602400Smrg  cat conftest.err >&5
4614a5602400Smrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4615a5602400Smrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4616a5602400Smrg  cat conftest.err >&5
4617a5602400Smrg  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4618a5602400Smrg  cat conftest.out >&5
4619a5602400Smrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4620a5602400Smrg    lt_cv_nm_interface="MS dumpbin"
4621e8a5466aSmrg  fi
4622a5602400Smrg  rm -f conftest*
4623e8a5466aSmrgfi
4624a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4625a5602400Smrg$as_echo "$lt_cv_nm_interface" >&6; }
4626e8a5466aSmrg
4627a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4628a5602400Smrg$as_echo_n "checking whether ln -s works... " >&6; }
4629a5602400SmrgLN_S=$as_ln_s
4630a5602400Smrgif test "$LN_S" = "ln -s"; then
4631a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4632a5602400Smrg$as_echo "yes" >&6; }
4633a5602400Smrgelse
4634a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4635a5602400Smrg$as_echo "no, using $LN_S" >&6; }
4636e8a5466aSmrgfi
4637e8a5466aSmrg
4638a5602400Smrg# find the maximum length of command line arguments
4639a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4640a5602400Smrg$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4641a5602400Smrgif ${lt_cv_sys_max_cmd_len+:} false; then :
4642a5602400Smrg  $as_echo_n "(cached) " >&6
4643a5602400Smrgelse
4644a5602400Smrg    i=0
4645a5602400Smrg  teststring="ABCD"
4646caade7ccSmrg
4647a5602400Smrg  case $build_os in
4648a5602400Smrg  msdosdjgpp*)
4649a5602400Smrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
4650a5602400Smrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
4651a5602400Smrg    # during glob expansion).  Even if it were fixed, the result of this
4652a5602400Smrg    # check would be larger than it should be.
4653a5602400Smrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4654a5602400Smrg    ;;
4655caade7ccSmrg
4656a5602400Smrg  gnu*)
4657a5602400Smrg    # Under GNU Hurd, this test is not required because there is
4658a5602400Smrg    # no limit to the length of command line arguments.
4659a5602400Smrg    # Libtool will interpret -1 as no limit whatsoever
4660a5602400Smrg    lt_cv_sys_max_cmd_len=-1;
4661a5602400Smrg    ;;
4662b9b4fd27Smrg
4663a5602400Smrg  cygwin* | mingw* | cegcc*)
4664a5602400Smrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
4665a5602400Smrg    # about 5 minutes as the teststring grows exponentially.
4666a5602400Smrg    # Worse, since 9x/ME are not pre-emptively multitasking,
4667a5602400Smrg    # you end up with a "frozen" computer, even though with patience
4668a5602400Smrg    # the test eventually succeeds (with a max line length of 256k).
4669a5602400Smrg    # Instead, let's just punt: use the minimum linelength reported by
4670a5602400Smrg    # all of the supported platforms: 8192 (on NT/2K/XP).
4671a5602400Smrg    lt_cv_sys_max_cmd_len=8192;
4672a5602400Smrg    ;;
4673caade7ccSmrg
4674a5602400Smrg  mint*)
4675a5602400Smrg    # On MiNT this can take a long time and run out of memory.
4676a5602400Smrg    lt_cv_sys_max_cmd_len=8192;
4677a5602400Smrg    ;;
4678caade7ccSmrg
4679a5602400Smrg  amigaos*)
4680a5602400Smrg    # On AmigaOS with pdksh, this test takes hours, literally.
4681a5602400Smrg    # So we just punt and use a minimum line length of 8192.
4682a5602400Smrg    lt_cv_sys_max_cmd_len=8192;
4683a5602400Smrg    ;;
4684caade7ccSmrg
4685a5602400Smrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4686a5602400Smrg    # This has been around since 386BSD, at least.  Likely further.
4687a5602400Smrg    if test -x /sbin/sysctl; then
4688a5602400Smrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4689a5602400Smrg    elif test -x /usr/sbin/sysctl; then
4690a5602400Smrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4691a5602400Smrg    else
4692a5602400Smrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4693a5602400Smrg    fi
4694a5602400Smrg    # And add a safety zone
4695a5602400Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4696a5602400Smrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4697a5602400Smrg    ;;
4698caade7ccSmrg
4699a5602400Smrg  interix*)
4700a5602400Smrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4701a5602400Smrg    lt_cv_sys_max_cmd_len=196608
4702a5602400Smrg    ;;
4703caade7ccSmrg
4704af9a7ee5Smrg  os2*)
4705af9a7ee5Smrg    # The test takes a long time on OS/2.
4706af9a7ee5Smrg    lt_cv_sys_max_cmd_len=8192
4707af9a7ee5Smrg    ;;
4708af9a7ee5Smrg
4709a5602400Smrg  osf*)
4710a5602400Smrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4711a5602400Smrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4712a5602400Smrg    # nice to cause kernel panics so lets avoid the loop below.
4713a5602400Smrg    # First set a reasonable default.
4714a5602400Smrg    lt_cv_sys_max_cmd_len=16384
4715a5602400Smrg    #
4716a5602400Smrg    if test -x /sbin/sysconfig; then
4717a5602400Smrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4718a5602400Smrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4719a5602400Smrg      esac
4720a5602400Smrg    fi
4721a5602400Smrg    ;;
4722a5602400Smrg  sco3.2v5*)
4723a5602400Smrg    lt_cv_sys_max_cmd_len=102400
4724a5602400Smrg    ;;
4725a5602400Smrg  sysv5* | sco5v6* | sysv4.2uw2*)
4726a5602400Smrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4727a5602400Smrg    if test -n "$kargmax"; then
4728a5602400Smrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4729a5602400Smrg    else
4730a5602400Smrg      lt_cv_sys_max_cmd_len=32768
4731a5602400Smrg    fi
4732a5602400Smrg    ;;
4733a5602400Smrg  *)
4734a5602400Smrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4735a5602400Smrg    if test -n "$lt_cv_sys_max_cmd_len"; then
4736a5602400Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4737a5602400Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4738a5602400Smrg    else
4739a5602400Smrg      # Make teststring a little bigger before we do anything with it.
4740a5602400Smrg      # a 1K string should be a reasonable start.
4741a5602400Smrg      for i in 1 2 3 4 5 6 7 8 ; do
4742a5602400Smrg        teststring=$teststring$teststring
4743a5602400Smrg      done
4744a5602400Smrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4745a5602400Smrg      # If test is not a shell built-in, we'll probably end up computing a
4746a5602400Smrg      # maximum length that is only half of the actual maximum length, but
4747a5602400Smrg      # we can't tell.
4748af9a7ee5Smrg      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4749a5602400Smrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4750a5602400Smrg	      test $i != 17 # 1/2 MB should be enough
4751a5602400Smrg      do
4752a5602400Smrg        i=`expr $i + 1`
4753a5602400Smrg        teststring=$teststring$teststring
4754a5602400Smrg      done
4755a5602400Smrg      # Only check the string length outside the loop.
4756a5602400Smrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4757a5602400Smrg      teststring=
4758a5602400Smrg      # Add a significant safety factor because C++ compilers can tack on
4759a5602400Smrg      # massive amounts of additional arguments before passing them to the
4760a5602400Smrg      # linker.  It appears as though 1/2 is a usable value.
4761a5602400Smrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4762a5602400Smrg    fi
4763a5602400Smrg    ;;
4764a5602400Smrg  esac
4765caade7ccSmrg
4766b9b4fd27Smrgfi
4767caade7ccSmrg
4768a5602400Smrgif test -n $lt_cv_sys_max_cmd_len ; then
4769a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4770a5602400Smrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4771caade7ccSmrgelse
4772a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4773a5602400Smrg$as_echo "none" >&6; }
4774b9b4fd27Smrgfi
4775a5602400Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len
4776caade7ccSmrg
4777caade7ccSmrg
4778caade7ccSmrg
4779caade7ccSmrg
4780b9b4fd27Smrg
4781caade7ccSmrg
4782a5602400Smrg: ${CP="cp -f"}
4783a5602400Smrg: ${MV="mv -f"}
4784a5602400Smrg: ${RM="rm -f"}
4785b9b4fd27Smrg
4786a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4787a5602400Smrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4788a5602400Smrg# Try some XSI features
4789a5602400Smrgxsi_shell=no
4790a5602400Smrg( _lt_dummy="a/b/c"
4791a5602400Smrg  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4792a5602400Smrg      = c,a/b,b/c, \
4793a5602400Smrg    && eval 'test $(( 1 + 1 )) -eq 2 \
4794a5602400Smrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4795a5602400Smrg  && xsi_shell=yes
4796a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4797a5602400Smrg$as_echo "$xsi_shell" >&6; }
4798caade7ccSmrg
4799caade7ccSmrg
4800a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4801a5602400Smrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4802a5602400Smrglt_shell_append=no
4803a5602400Smrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4804a5602400Smrg    >/dev/null 2>&1 \
4805a5602400Smrg  && lt_shell_append=yes
4806a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4807a5602400Smrg$as_echo "$lt_shell_append" >&6; }
4808caade7ccSmrg
4809caade7ccSmrg
4810a5602400Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4811a5602400Smrg  lt_unset=unset
4812a5602400Smrgelse
4813a5602400Smrg  lt_unset=false
4814a5602400Smrgfi
4815b9b4fd27Smrg
4816e8a5466aSmrg
4817e8a5466aSmrg
4818e8a5466aSmrg
4819e8a5466aSmrg
4820a5602400Smrg# test EBCDIC or ASCII
4821a5602400Smrgcase `echo X|tr X '\101'` in
4822a5602400Smrg A) # ASCII based system
4823a5602400Smrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4824a5602400Smrg  lt_SP2NL='tr \040 \012'
4825a5602400Smrg  lt_NL2SP='tr \015\012 \040\040'
4826a5602400Smrg  ;;
4827a5602400Smrg *) # EBCDIC based system
4828a5602400Smrg  lt_SP2NL='tr \100 \n'
4829a5602400Smrg  lt_NL2SP='tr \r\n \100\100'
4830a5602400Smrg  ;;
4831a5602400Smrgesac
4832e8a5466aSmrg
4833e8a5466aSmrg
4834e8a5466aSmrg
4835e8a5466aSmrg
4836e8a5466aSmrg
4837e8a5466aSmrg
4838e8a5466aSmrg
4839e8a5466aSmrg
4840e8a5466aSmrg
4841a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4842a5602400Smrg$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4843a5602400Smrgif ${lt_cv_to_host_file_cmd+:} false; then :
4844a5602400Smrg  $as_echo_n "(cached) " >&6
4845a5602400Smrgelse
4846a5602400Smrg  case $host in
4847a5602400Smrg  *-*-mingw* )
4848a5602400Smrg    case $build in
4849a5602400Smrg      *-*-mingw* ) # actually msys
4850a5602400Smrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4851a5602400Smrg        ;;
4852a5602400Smrg      *-*-cygwin* )
4853a5602400Smrg        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4854a5602400Smrg        ;;
4855a5602400Smrg      * ) # otherwise, assume *nix
4856a5602400Smrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4857a5602400Smrg        ;;
4858e8a5466aSmrg    esac
4859a5602400Smrg    ;;
4860a5602400Smrg  *-*-cygwin* )
4861a5602400Smrg    case $build in
4862a5602400Smrg      *-*-mingw* ) # actually msys
4863a5602400Smrg        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4864a5602400Smrg        ;;
4865a5602400Smrg      *-*-cygwin* )
4866a5602400Smrg        lt_cv_to_host_file_cmd=func_convert_file_noop
4867a5602400Smrg        ;;
4868a5602400Smrg      * ) # otherwise, assume *nix
4869a5602400Smrg        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4870a5602400Smrg        ;;
4871e8a5466aSmrg    esac
4872a5602400Smrg    ;;
4873a5602400Smrg  * ) # unhandled hosts (and "normal" native builds)
4874a5602400Smrg    lt_cv_to_host_file_cmd=func_convert_file_noop
4875a5602400Smrg    ;;
4876a5602400Smrgesac
4877e8a5466aSmrg
4878e8a5466aSmrgfi
4879e8a5466aSmrg
4880a5602400Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd
4881a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4882a5602400Smrg$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4883e8a5466aSmrg
4884e8a5466aSmrg
4885e8a5466aSmrg
4886e8a5466aSmrg
4887e8a5466aSmrg
4888a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4889a5602400Smrg$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4890a5602400Smrgif ${lt_cv_to_tool_file_cmd+:} false; then :
4891a5602400Smrg  $as_echo_n "(cached) " >&6
4892a5602400Smrgelse
4893a5602400Smrg  #assume ordinary cross tools, or native build.
4894a5602400Smrglt_cv_to_tool_file_cmd=func_convert_file_noop
4895a5602400Smrgcase $host in
4896a5602400Smrg  *-*-mingw* )
4897a5602400Smrg    case $build in
4898a5602400Smrg      *-*-mingw* ) # actually msys
4899a5602400Smrg        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4900a5602400Smrg        ;;
4901a5602400Smrg    esac
4902a5602400Smrg    ;;
4903a5602400Smrgesac
4904e8a5466aSmrg
4905a5602400Smrgfi
4906e8a5466aSmrg
4907a5602400Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
4908a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4909a5602400Smrg$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4910e8a5466aSmrg
4911e8a5466aSmrg
4912e8a5466aSmrg
4913e8a5466aSmrg
4914e8a5466aSmrg
4915a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4916a5602400Smrg$as_echo_n "checking for $LD option to reload object files... " >&6; }
4917a5602400Smrgif ${lt_cv_ld_reload_flag+:} false; then :
4918a5602400Smrg  $as_echo_n "(cached) " >&6
4919a5602400Smrgelse
4920a5602400Smrg  lt_cv_ld_reload_flag='-r'
4921e8a5466aSmrgfi
4922a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4923a5602400Smrg$as_echo "$lt_cv_ld_reload_flag" >&6; }
4924a5602400Smrgreload_flag=$lt_cv_ld_reload_flag
4925a5602400Smrgcase $reload_flag in
4926a5602400Smrg"" | " "*) ;;
4927a5602400Smrg*) reload_flag=" $reload_flag" ;;
4928a5602400Smrgesac
4929a5602400Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
4930a5602400Smrgcase $host_os in
4931a5602400Smrg  cygwin* | mingw* | pw32* | cegcc*)
4932a5602400Smrg    if test "$GCC" != yes; then
4933a5602400Smrg      reload_cmds=false
4934a5602400Smrg    fi
4935a5602400Smrg    ;;
4936a5602400Smrg  darwin*)
4937a5602400Smrg    if test "$GCC" = yes; then
4938a5602400Smrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4939a5602400Smrg    else
4940a5602400Smrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4941a5602400Smrg    fi
4942a5602400Smrg    ;;
4943e8a5466aSmrgesac
4944e8a5466aSmrg
4945e8a5466aSmrg
4946e8a5466aSmrg
4947e8a5466aSmrg
4948e8a5466aSmrg
4949e8a5466aSmrg
4950e8a5466aSmrg
4951e8a5466aSmrg
4952e8a5466aSmrg
4953a5602400Smrgif test -n "$ac_tool_prefix"; then
4954a5602400Smrg  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4955a5602400Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2
4956e8a5466aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957e8a5466aSmrg$as_echo_n "checking for $ac_word... " >&6; }
4958a5602400Smrgif ${ac_cv_prog_OBJDUMP+:} false; then :
4959e8a5466aSmrg  $as_echo_n "(cached) " >&6
4960e8a5466aSmrgelse
4961a5602400Smrg  if test -n "$OBJDUMP"; then
4962a5602400Smrg  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4963a5602400Smrgelse
4964a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965e8a5466aSmrgfor as_dir in $PATH
4966e8a5466aSmrgdo
4967e8a5466aSmrg  IFS=$as_save_IFS
4968e8a5466aSmrg  test -z "$as_dir" && as_dir=.
4969e8a5466aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4970e8a5466aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971a5602400Smrg    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4972e8a5466aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973e8a5466aSmrg    break 2
4974e8a5466aSmrg  fi
4975e8a5466aSmrgdone
4976e8a5466aSmrg  done
4977e8a5466aSmrgIFS=$as_save_IFS
4978e8a5466aSmrg
4979e8a5466aSmrgfi
4980a5602400Smrgfi
4981a5602400SmrgOBJDUMP=$ac_cv_prog_OBJDUMP
4982a5602400Smrgif test -n "$OBJDUMP"; then
4983a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4984a5602400Smrg$as_echo "$OBJDUMP" >&6; }
4985e8a5466aSmrgelse
4986e8a5466aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987e8a5466aSmrg$as_echo "no" >&6; }
4988e8a5466aSmrgfi
4989e8a5466aSmrg
4990e8a5466aSmrg
4991a5602400Smrgfi
4992a5602400Smrgif test -z "$ac_cv_prog_OBJDUMP"; then
4993a5602400Smrg  ac_ct_OBJDUMP=$OBJDUMP
4994a5602400Smrg  # Extract the first word of "objdump", so it can be a program name with args.
4995a5602400Smrgset dummy objdump; ac_word=$2
4996e8a5466aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997e8a5466aSmrg$as_echo_n "checking for $ac_word... " >&6; }
4998a5602400Smrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4999e8a5466aSmrg  $as_echo_n "(cached) " >&6
5000e8a5466aSmrgelse
5001a5602400Smrg  if test -n "$ac_ct_OBJDUMP"; then
5002a5602400Smrg  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5003a5602400Smrgelse
5004a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005e8a5466aSmrgfor as_dir in $PATH
5006e8a5466aSmrgdo
5007e8a5466aSmrg  IFS=$as_save_IFS
5008e8a5466aSmrg  test -z "$as_dir" && as_dir=.
5009e8a5466aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
5010e8a5466aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011a5602400Smrg    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5012e8a5466aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013e8a5466aSmrg    break 2
5014e8a5466aSmrg  fi
5015e8a5466aSmrgdone
5016e8a5466aSmrg  done
5017e8a5466aSmrgIFS=$as_save_IFS
5018e8a5466aSmrg
5019e8a5466aSmrgfi
5020a5602400Smrgfi
5021a5602400Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5022a5602400Smrgif test -n "$ac_ct_OBJDUMP"; then
5023a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5024a5602400Smrg$as_echo "$ac_ct_OBJDUMP" >&6; }
5025e8a5466aSmrgelse
5026e8a5466aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027e8a5466aSmrg$as_echo "no" >&6; }
5028e8a5466aSmrgfi
5029e8a5466aSmrg
5030a5602400Smrg  if test "x$ac_ct_OBJDUMP" = x; then
5031a5602400Smrg    OBJDUMP="false"
5032a5602400Smrg  else
5033a5602400Smrg    case $cross_compiling:$ac_tool_warned in
5034a5602400Smrgyes:)
5035a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5036a5602400Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5037a5602400Smrgac_tool_warned=yes ;;
5038a5602400Smrgesac
5039a5602400Smrg    OBJDUMP=$ac_ct_OBJDUMP
5040a5602400Smrg  fi
5041e8a5466aSmrgelse
5042a5602400Smrg  OBJDUMP="$ac_cv_prog_OBJDUMP"
5043e8a5466aSmrgfi
5044e8a5466aSmrg
5045a5602400Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump
5046e8a5466aSmrg
5047b9b4fd27Smrg
5048b9b4fd27Smrg
5049b9b4fd27Smrg
5050b9b4fd27Smrg
5051b9b4fd27Smrg
5052b9b4fd27Smrg
5053b9b4fd27Smrg
5054b9b4fd27Smrg
5055a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5056a5602400Smrg$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5057a5602400Smrgif ${lt_cv_deplibs_check_method+:} false; then :
5058e8a5466aSmrg  $as_echo_n "(cached) " >&6
5059e8a5466aSmrgelse
5060a5602400Smrg  lt_cv_file_magic_cmd='$MAGIC_CMD'
5061a5602400Smrglt_cv_file_magic_test_file=
5062a5602400Smrglt_cv_deplibs_check_method='unknown'
5063a5602400Smrg# Need to set the preceding variable on all platforms that support
5064a5602400Smrg# interlibrary dependencies.
5065a5602400Smrg# 'none' -- dependencies not supported.
5066a5602400Smrg# `unknown' -- same as none, but documents that we really don't know.
5067a5602400Smrg# 'pass_all' -- all dependencies passed with no checks.
5068a5602400Smrg# 'test_compile' -- check by making test program.
5069a5602400Smrg# 'file_magic [[regex]]' -- check by looking for files in library path
5070a5602400Smrg# which responds to the $file_magic_cmd with a given extended regex.
5071a5602400Smrg# If you have `file' or equivalent on your system and you're not sure
5072a5602400Smrg# whether `pass_all' will *always* work, you probably want this one.
5073b9b4fd27Smrg
5074a5602400Smrgcase $host_os in
5075a5602400Smrgaix[4-9]*)
5076a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5077e8a5466aSmrg  ;;
5078caade7ccSmrg
5079a5602400Smrgbeos*)
5080a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5081e8a5466aSmrg  ;;
5082caade7ccSmrg
5083a5602400Smrgbsdi[45]*)
5084a5602400Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5085a5602400Smrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
5086a5602400Smrg  lt_cv_file_magic_test_file=/shlib/libc.so
5087e8a5466aSmrg  ;;
5088caade7ccSmrg
5089a5602400Smrgcygwin*)
5090a5602400Smrg  # func_win32_libid is a shell function defined in ltmain.sh
5091a5602400Smrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5092a5602400Smrg  lt_cv_file_magic_cmd='func_win32_libid'
5093a5602400Smrg  ;;
5094caade7ccSmrg
5095a5602400Smrgmingw* | pw32*)
5096a5602400Smrg  # Base MSYS/MinGW do not provide the 'file' command needed by
5097a5602400Smrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5098a5602400Smrg  # unless we find 'file', for example because we are cross-compiling.
5099a5602400Smrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5100a5602400Smrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5101a5602400Smrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5102a5602400Smrg    lt_cv_file_magic_cmd='func_win32_libid'
5103a5602400Smrg  else
5104a5602400Smrg    # Keep this pattern in sync with the one in func_win32_libid.
5105a5602400Smrg    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5106a5602400Smrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
5107a5602400Smrg  fi
5108a5602400Smrg  ;;
5109caade7ccSmrg
5110a5602400Smrgcegcc*)
5111a5602400Smrg  # use the weaker test based on 'objdump'. See mingw*.
5112a5602400Smrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5113a5602400Smrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
5114a5602400Smrg  ;;
5115caade7ccSmrg
5116a5602400Smrgdarwin* | rhapsody*)
5117a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5118a5602400Smrg  ;;
5119caade7ccSmrg
5120a5602400Smrgfreebsd* | dragonfly*)
5121a5602400Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5122a5602400Smrg    case $host_cpu in
5123a5602400Smrg    i*86 )
5124a5602400Smrg      # Not sure whether the presence of OpenBSD here was a mistake.
5125a5602400Smrg      # Let's accept both of them until this is cleared up.
5126a5602400Smrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5127a5602400Smrg      lt_cv_file_magic_cmd=/usr/bin/file
5128a5602400Smrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5129a5602400Smrg      ;;
5130a5602400Smrg    esac
5131a5602400Smrg  else
5132a5602400Smrg    lt_cv_deplibs_check_method=pass_all
5133a5602400Smrg  fi
5134a5602400Smrg  ;;
5135caade7ccSmrg
5136a5602400Smrggnu*)
5137a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5138a5602400Smrg  ;;
5139caade7ccSmrg
5140a5602400Smrghaiku*)
5141a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5142a5602400Smrg  ;;
5143caade7ccSmrg
5144a5602400Smrghpux10.20* | hpux11*)
5145a5602400Smrg  lt_cv_file_magic_cmd=/usr/bin/file
5146a5602400Smrg  case $host_cpu in
5147a5602400Smrg  ia64*)
5148a5602400Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5149a5602400Smrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5150a5602400Smrg    ;;
5151a5602400Smrg  hppa*64*)
5152a5602400Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5153a5602400Smrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5154a5602400Smrg    ;;
5155a5602400Smrg  *)
5156a5602400Smrg    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5157a5602400Smrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5158a5602400Smrg    ;;
5159a5602400Smrg  esac
5160a5602400Smrg  ;;
5161caade7ccSmrg
5162a5602400Smrginterix[3-9]*)
5163a5602400Smrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5164a5602400Smrg  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5165a5602400Smrg  ;;
5166caade7ccSmrg
5167a5602400Smrgirix5* | irix6* | nonstopux*)
5168a5602400Smrg  case $LD in
5169a5602400Smrg  *-32|*"-32 ") libmagic=32-bit;;
5170a5602400Smrg  *-n32|*"-n32 ") libmagic=N32;;
5171a5602400Smrg  *-64|*"-64 ") libmagic=64-bit;;
5172a5602400Smrg  *) libmagic=never-match;;
5173a5602400Smrg  esac
5174a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5175a5602400Smrg  ;;
5176caade7ccSmrg
5177af9a7ee5Smrg# This must be glibc/ELF.
5178a5602400Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
5179a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5180a5602400Smrg  ;;
5181caade7ccSmrg
5182a5602400Smrgnetbsd*)
5183a5602400Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5184a5602400Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5185a5602400Smrg  else
5186a5602400Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5187a5602400Smrg  fi
5188a5602400Smrg  ;;
5189caade7ccSmrg
5190a5602400Smrgnewos6*)
5191a5602400Smrg  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5192a5602400Smrg  lt_cv_file_magic_cmd=/usr/bin/file
5193a5602400Smrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5194a5602400Smrg  ;;
5195b9b4fd27Smrg
5196a5602400Smrg*nto* | *qnx*)
5197a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5198a5602400Smrg  ;;
5199b9b4fd27Smrg
5200a5602400Smrgopenbsd*)
5201a5602400Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5202a5602400Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5203a5602400Smrg  else
5204a5602400Smrg    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5205a5602400Smrg  fi
5206a5602400Smrg  ;;
5207b9b4fd27Smrg
5208a5602400Smrgosf3* | osf4* | osf5*)
5209a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5210a5602400Smrg  ;;
5211b9b4fd27Smrg
5212a5602400Smrgrdos*)
5213a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5214a5602400Smrg  ;;
5215b9b4fd27Smrg
5216a5602400Smrgsolaris*)
5217a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5218a5602400Smrg  ;;
5219b9b4fd27Smrg
5220a5602400Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5221a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5222a5602400Smrg  ;;
5223b9b4fd27Smrg
5224a5602400Smrgsysv4 | sysv4.3*)
5225a5602400Smrg  case $host_vendor in
5226a5602400Smrg  motorola)
5227a5602400Smrg    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]'
5228a5602400Smrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5229a5602400Smrg    ;;
5230a5602400Smrg  ncr)
5231a5602400Smrg    lt_cv_deplibs_check_method=pass_all
5232a5602400Smrg    ;;
5233a5602400Smrg  sequent)
5234a5602400Smrg    lt_cv_file_magic_cmd='/bin/file'
5235a5602400Smrg    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5236a5602400Smrg    ;;
5237a5602400Smrg  sni)
5238a5602400Smrg    lt_cv_file_magic_cmd='/bin/file'
5239a5602400Smrg    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5240a5602400Smrg    lt_cv_file_magic_test_file=/lib/libc.so
5241a5602400Smrg    ;;
5242a5602400Smrg  siemens)
5243a5602400Smrg    lt_cv_deplibs_check_method=pass_all
5244a5602400Smrg    ;;
5245a5602400Smrg  pc)
5246a5602400Smrg    lt_cv_deplibs_check_method=pass_all
5247a5602400Smrg    ;;
5248a5602400Smrg  esac
5249a5602400Smrg  ;;
5250b9b4fd27Smrg
5251a5602400Smrgtpf*)
5252a5602400Smrg  lt_cv_deplibs_check_method=pass_all
5253a5602400Smrg  ;;
5254a5602400Smrgesac
5255b9b4fd27Smrg
5256a5602400Smrgfi
5257a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5258a5602400Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; }
5259b9b4fd27Smrg
5260a5602400Smrgfile_magic_glob=
5261a5602400Smrgwant_nocaseglob=no
5262a5602400Smrgif test "$build" = "$host"; then
5263a5602400Smrg  case $host_os in
5264a5602400Smrg  mingw* | pw32*)
5265a5602400Smrg    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5266a5602400Smrg      want_nocaseglob=yes
5267a5602400Smrg    else
5268a5602400Smrg      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5269a5602400Smrg    fi
5270a5602400Smrg    ;;
5271a5602400Smrg  esac
5272a5602400Smrgfi
5273b9b4fd27Smrg
5274a5602400Smrgfile_magic_cmd=$lt_cv_file_magic_cmd
5275a5602400Smrgdeplibs_check_method=$lt_cv_deplibs_check_method
5276a5602400Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
5277b9b4fd27Smrg
5278b9b4fd27Smrg
5279b9b4fd27Smrg
5280e8a5466aSmrg
5281e8a5466aSmrg
5282e8a5466aSmrg
5283e8a5466aSmrg
5284e8a5466aSmrg
5285e8a5466aSmrg
5286e8a5466aSmrg
5287e8a5466aSmrg
5288e8a5466aSmrg
5289e8a5466aSmrg
5290e8a5466aSmrg
5291e8a5466aSmrg
5292e8a5466aSmrg
5293e8a5466aSmrg
5294e8a5466aSmrg
5295e8a5466aSmrg
5296e8a5466aSmrg
5297e8a5466aSmrg
5298e8a5466aSmrg
5299a5602400Smrgif test -n "$ac_tool_prefix"; then
5300a5602400Smrg  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5301a5602400Smrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2
5302a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
5304a5602400Smrgif ${ac_cv_prog_DLLTOOL+:} false; then :
5305a5602400Smrg  $as_echo_n "(cached) " >&6
5306a5602400Smrgelse
5307a5602400Smrg  if test -n "$DLLTOOL"; then
5308a5602400Smrg  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5309a5602400Smrgelse
5310a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311a5602400Smrgfor as_dir in $PATH
5312a5602400Smrgdo
5313a5602400Smrg  IFS=$as_save_IFS
5314a5602400Smrg  test -z "$as_dir" && as_dir=.
5315a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5316a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317a5602400Smrg    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5318a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319a5602400Smrg    break 2
5320a5602400Smrg  fi
5321a5602400Smrgdone
5322a5602400Smrg  done
5323a5602400SmrgIFS=$as_save_IFS
5324e8a5466aSmrg
5325a5602400Smrgfi
5326a5602400Smrgfi
5327a5602400SmrgDLLTOOL=$ac_cv_prog_DLLTOOL
5328a5602400Smrgif test -n "$DLLTOOL"; then
5329a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5330a5602400Smrg$as_echo "$DLLTOOL" >&6; }
5331a5602400Smrgelse
5332a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333a5602400Smrg$as_echo "no" >&6; }
5334a5602400Smrgfi
5335e8a5466aSmrg
5336e8a5466aSmrg
5337a5602400Smrgfi
5338a5602400Smrgif test -z "$ac_cv_prog_DLLTOOL"; then
5339a5602400Smrg  ac_ct_DLLTOOL=$DLLTOOL
5340a5602400Smrg  # Extract the first word of "dlltool", so it can be a program name with args.
5341a5602400Smrgset dummy dlltool; ac_word=$2
5342a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
5344a5602400Smrgif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5345485f0483Smrg  $as_echo_n "(cached) " >&6
5346caade7ccSmrgelse
5347a5602400Smrg  if test -n "$ac_ct_DLLTOOL"; then
5348a5602400Smrg  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5349a5602400Smrgelse
5350a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351caade7ccSmrgfor as_dir in $PATH
5352caade7ccSmrgdo
5353caade7ccSmrg  IFS=$as_save_IFS
5354caade7ccSmrg  test -z "$as_dir" && as_dir=.
5355b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5356a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357a5602400Smrg    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5358a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359a5602400Smrg    break 2
5360a5602400Smrg  fi
5361a5602400Smrgdone
5362b9b4fd27Smrg  done
5363b9b4fd27SmrgIFS=$as_save_IFS
5364a5602400Smrg
5365a5602400Smrgfi
5366a5602400Smrgfi
5367a5602400Smrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5368a5602400Smrgif test -n "$ac_ct_DLLTOOL"; then
5369a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5370a5602400Smrg$as_echo "$ac_ct_DLLTOOL" >&6; }
5371caade7ccSmrgelse
5372a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373a5602400Smrg$as_echo "no" >&6; }
5374caade7ccSmrgfi
5375caade7ccSmrg
5376a5602400Smrg  if test "x$ac_ct_DLLTOOL" = x; then
5377a5602400Smrg    DLLTOOL="false"
5378a5602400Smrg  else
5379a5602400Smrg    case $cross_compiling:$ac_tool_warned in
5380a5602400Smrgyes:)
5381a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382a5602400Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383a5602400Smrgac_tool_warned=yes ;;
5384a5602400Smrgesac
5385a5602400Smrg    DLLTOOL=$ac_ct_DLLTOOL
5386a5602400Smrg  fi
5387a5602400Smrgelse
5388a5602400Smrg  DLLTOOL="$ac_cv_prog_DLLTOOL"
5389b9b4fd27Smrgfi
5390caade7ccSmrg
5391a5602400Smrgtest -z "$DLLTOOL" && DLLTOOL=dlltool
5392caade7ccSmrg
5393b9b4fd27Smrg
5394b9b4fd27Smrg
5395b9b4fd27Smrg
5396b9b4fd27Smrg
5397b9b4fd27Smrg
5398b9b4fd27Smrg
5399b9b4fd27Smrg
5400b9b4fd27Smrg
5401b9b4fd27Smrg
5402a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5403a5602400Smrg$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5404a5602400Smrgif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5405b9b4fd27Smrg  $as_echo_n "(cached) " >&6
5406b9b4fd27Smrgelse
5407a5602400Smrg  lt_cv_sharedlib_from_linklib_cmd='unknown'
5408a5602400Smrg
5409a5602400Smrgcase $host_os in
5410a5602400Smrgcygwin* | mingw* | pw32* | cegcc*)
5411a5602400Smrg  # two different shell functions defined in ltmain.sh
5412a5602400Smrg  # decide which to use based on capabilities of $DLLTOOL
5413a5602400Smrg  case `$DLLTOOL --help 2>&1` in
5414a5602400Smrg  *--identify-strict*)
5415a5602400Smrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5416a5602400Smrg    ;;
5417a5602400Smrg  *)
5418a5602400Smrg    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5419a5602400Smrg    ;;
5420a5602400Smrg  esac
5421a5602400Smrg  ;;
5422b9b4fd27Smrg*)
5423a5602400Smrg  # fallback: assume linklib IS sharedlib
5424a5602400Smrg  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5425b9b4fd27Smrg  ;;
5426caade7ccSmrgesac
5427caade7ccSmrg
5428a5602400Smrgfi
5429a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5430a5602400Smrg$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5431a5602400Smrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5432a5602400Smrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5433caade7ccSmrg
5434caade7ccSmrg
5435caade7ccSmrg
5436caade7ccSmrg
5437caade7ccSmrg
5438caade7ccSmrg
5439caade7ccSmrg
5440caade7ccSmrg
5441a5602400Smrgif test -n "$ac_tool_prefix"; then
5442a5602400Smrg  for ac_prog in ar
5443caade7ccSmrg  do
5444caade7ccSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5445caade7ccSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
5446b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
5448a5602400Smrgif ${ac_cv_prog_AR+:} false; then :
5449485f0483Smrg  $as_echo_n "(cached) " >&6
5450caade7ccSmrgelse
5451a5602400Smrg  if test -n "$AR"; then
5452a5602400Smrg  ac_cv_prog_AR="$AR" # Let the user override the test.
5453caade7ccSmrgelse
5454caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455caade7ccSmrgfor as_dir in $PATH
5456caade7ccSmrgdo
5457caade7ccSmrg  IFS=$as_save_IFS
5458caade7ccSmrg  test -z "$as_dir" && as_dir=.
5459b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5460caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461a5602400Smrg    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5462b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463caade7ccSmrg    break 2
5464caade7ccSmrg  fi
5465caade7ccSmrgdone
5466b9b4fd27Smrg  done
5467caade7ccSmrgIFS=$as_save_IFS
5468caade7ccSmrg
5469caade7ccSmrgfi
5470caade7ccSmrgfi
5471a5602400SmrgAR=$ac_cv_prog_AR
5472a5602400Smrgif test -n "$AR"; then
5473a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5474a5602400Smrg$as_echo "$AR" >&6; }
5475caade7ccSmrgelse
5476b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477485f0483Smrg$as_echo "no" >&6; }
5478caade7ccSmrgfi
5479caade7ccSmrg
5480caade7ccSmrg
5481a5602400Smrg    test -n "$AR" && break
5482caade7ccSmrg  done
5483caade7ccSmrgfi
5484a5602400Smrgif test -z "$AR"; then
5485a5602400Smrg  ac_ct_AR=$AR
5486a5602400Smrg  for ac_prog in ar
5487caade7ccSmrgdo
5488caade7ccSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
5489caade7ccSmrgset dummy $ac_prog; ac_word=$2
5490b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
5492a5602400Smrgif ${ac_cv_prog_ac_ct_AR+:} false; then :
5493485f0483Smrg  $as_echo_n "(cached) " >&6
5494caade7ccSmrgelse
5495a5602400Smrg  if test -n "$ac_ct_AR"; then
5496a5602400Smrg  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5497caade7ccSmrgelse
5498caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499caade7ccSmrgfor as_dir in $PATH
5500caade7ccSmrgdo
5501caade7ccSmrg  IFS=$as_save_IFS
5502caade7ccSmrg  test -z "$as_dir" && as_dir=.
5503b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5504caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505a5602400Smrg    ac_cv_prog_ac_ct_AR="$ac_prog"
5506b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507caade7ccSmrg    break 2
5508caade7ccSmrg  fi
5509caade7ccSmrgdone
5510b9b4fd27Smrg  done
5511caade7ccSmrgIFS=$as_save_IFS
5512caade7ccSmrg
5513caade7ccSmrgfi
5514caade7ccSmrgfi
5515a5602400Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR
5516a5602400Smrgif test -n "$ac_ct_AR"; then
5517a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5518a5602400Smrg$as_echo "$ac_ct_AR" >&6; }
5519caade7ccSmrgelse
5520b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521485f0483Smrg$as_echo "no" >&6; }
5522caade7ccSmrgfi
5523caade7ccSmrg
5524caade7ccSmrg
5525a5602400Smrg  test -n "$ac_ct_AR" && break
5526caade7ccSmrgdone
5527caade7ccSmrg
5528a5602400Smrg  if test "x$ac_ct_AR" = x; then
5529a5602400Smrg    AR="false"
5530caade7ccSmrg  else
5531caade7ccSmrg    case $cross_compiling:$ac_tool_warned in
5532caade7ccSmrgyes:)
5533b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534485f0483Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535caade7ccSmrgac_tool_warned=yes ;;
5536caade7ccSmrgesac
5537a5602400Smrg    AR=$ac_ct_AR
5538caade7ccSmrg  fi
5539caade7ccSmrgfi
5540caade7ccSmrg
5541a5602400Smrg: ${AR=ar}
5542a5602400Smrg: ${AR_FLAGS=cru}
5543caade7ccSmrg
5544caade7ccSmrg
5545caade7ccSmrg
5546b9b4fd27Smrg
5547caade7ccSmrg
5548caade7ccSmrg
5549caade7ccSmrg
5550caade7ccSmrg
5551caade7ccSmrg
5552caade7ccSmrg
5553e8a5466aSmrg
5554a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5555a5602400Smrg$as_echo_n "checking for archiver @FILE support... " >&6; }
5556a5602400Smrgif ${lt_cv_ar_at_file+:} false; then :
5557a5602400Smrg  $as_echo_n "(cached) " >&6
5558a5602400Smrgelse
5559a5602400Smrg  lt_cv_ar_at_file=no
5560a5602400Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561a5602400Smrg/* end confdefs.h.  */
5562caade7ccSmrg
5563a5602400Smrgint
5564a5602400Smrgmain ()
5565a5602400Smrg{
5566caade7ccSmrg
5567a5602400Smrg  ;
5568a5602400Smrg  return 0;
5569a5602400Smrg}
5570a5602400Smrg_ACEOF
5571a5602400Smrgif ac_fn_c_try_compile "$LINENO"; then :
5572a5602400Smrg  echo conftest.$ac_objext > conftest.lst
5573a5602400Smrg      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5574a5602400Smrg      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5575a5602400Smrg  (eval $lt_ar_try) 2>&5
5576a5602400Smrg  ac_status=$?
5577a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578a5602400Smrg  test $ac_status = 0; }
5579a5602400Smrg      if test "$ac_status" -eq 0; then
5580a5602400Smrg	# Ensure the archiver fails upon bogus file names.
5581a5602400Smrg	rm -f conftest.$ac_objext libconftest.a
5582a5602400Smrg	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5583a5602400Smrg  (eval $lt_ar_try) 2>&5
5584a5602400Smrg  ac_status=$?
5585a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5586a5602400Smrg  test $ac_status = 0; }
5587a5602400Smrg	if test "$ac_status" -ne 0; then
5588a5602400Smrg          lt_cv_ar_at_file=@
5589a5602400Smrg        fi
5590a5602400Smrg      fi
5591a5602400Smrg      rm -f conftest.* libconftest.a
5592caade7ccSmrg
5593a5602400Smrgfi
5594a5602400Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595caade7ccSmrg
5596caade7ccSmrgfi
5597a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5598a5602400Smrg$as_echo "$lt_cv_ar_at_file" >&6; }
5599caade7ccSmrg
5600a5602400Smrgif test "x$lt_cv_ar_at_file" = xno; then
5601a5602400Smrg  archiver_list_spec=
5602caade7ccSmrgelse
5603a5602400Smrg  archiver_list_spec=$lt_cv_ar_at_file
5604caade7ccSmrgfi
5605caade7ccSmrg
5606caade7ccSmrg
5607485f0483Smrg
5608caade7ccSmrg
5609caade7ccSmrg
5610caade7ccSmrg
5611caade7ccSmrg
5612a5602400Smrgif test -n "$ac_tool_prefix"; then
5613a5602400Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5614a5602400Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
5615a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
5617a5602400Smrgif ${ac_cv_prog_STRIP+:} false; then :
5618a5602400Smrg  $as_echo_n "(cached) " >&6
5619a5602400Smrgelse
5620a5602400Smrg  if test -n "$STRIP"; then
5621a5602400Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5622a5602400Smrgelse
5623a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624a5602400Smrgfor as_dir in $PATH
5625a5602400Smrgdo
5626a5602400Smrg  IFS=$as_save_IFS
5627a5602400Smrg  test -z "$as_dir" && as_dir=.
5628a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5629a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630a5602400Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5631a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632a5602400Smrg    break 2
5633a5602400Smrg  fi
5634a5602400Smrgdone
5635a5602400Smrg  done
5636a5602400SmrgIFS=$as_save_IFS
5637caade7ccSmrg
5638a5602400Smrgfi
5639a5602400Smrgfi
5640a5602400SmrgSTRIP=$ac_cv_prog_STRIP
5641a5602400Smrgif test -n "$STRIP"; then
5642a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5643a5602400Smrg$as_echo "$STRIP" >&6; }
5644b9b4fd27Smrgelse
5645a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646a5602400Smrg$as_echo "no" >&6; }
5647b9b4fd27Smrgfi
5648b9b4fd27Smrg
5649b9b4fd27Smrg
5650a5602400Smrgfi
5651a5602400Smrgif test -z "$ac_cv_prog_STRIP"; then
5652a5602400Smrg  ac_ct_STRIP=$STRIP
5653a5602400Smrg  # Extract the first word of "strip", so it can be a program name with args.
5654a5602400Smrgset dummy strip; ac_word=$2
5655a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
5657a5602400Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5658485f0483Smrg  $as_echo_n "(cached) " >&6
5659caade7ccSmrgelse
5660a5602400Smrg  if test -n "$ac_ct_STRIP"; then
5661a5602400Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5662a5602400Smrgelse
5663a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664a5602400Smrgfor as_dir in $PATH
5665a5602400Smrgdo
5666a5602400Smrg  IFS=$as_save_IFS
5667a5602400Smrg  test -z "$as_dir" && as_dir=.
5668a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5669a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670a5602400Smrg    ac_cv_prog_ac_ct_STRIP="strip"
5671a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672a5602400Smrg    break 2
5673a5602400Smrg  fi
5674a5602400Smrgdone
5675a5602400Smrg  done
5676a5602400SmrgIFS=$as_save_IFS
5677caade7ccSmrg
5678a5602400Smrgfi
5679a5602400Smrgfi
5680a5602400Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5681a5602400Smrgif test -n "$ac_ct_STRIP"; then
5682a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5683a5602400Smrg$as_echo "$ac_ct_STRIP" >&6; }
5684a5602400Smrgelse
5685a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686a5602400Smrg$as_echo "no" >&6; }
5687a5602400Smrgfi
5688caade7ccSmrg
5689a5602400Smrg  if test "x$ac_ct_STRIP" = x; then
5690a5602400Smrg    STRIP=":"
5691a5602400Smrg  else
5692a5602400Smrg    case $cross_compiling:$ac_tool_warned in
5693a5602400Smrgyes:)
5694a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695a5602400Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696a5602400Smrgac_tool_warned=yes ;;
5697a5602400Smrgesac
5698a5602400Smrg    STRIP=$ac_ct_STRIP
5699a5602400Smrg  fi
5700a5602400Smrgelse
5701a5602400Smrg  STRIP="$ac_cv_prog_STRIP"
5702a5602400Smrgfi
5703caade7ccSmrg
5704a5602400Smrgtest -z "$STRIP" && STRIP=:
5705caade7ccSmrg
5706caade7ccSmrg
5707caade7ccSmrg
5708caade7ccSmrg
5709b9b4fd27Smrg
5710caade7ccSmrg
5711caade7ccSmrgif test -n "$ac_tool_prefix"; then
5712a5602400Smrg  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5713a5602400Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2
5714b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
5716a5602400Smrgif ${ac_cv_prog_RANLIB+:} false; then :
5717485f0483Smrg  $as_echo_n "(cached) " >&6
5718caade7ccSmrgelse
5719a5602400Smrg  if test -n "$RANLIB"; then
5720a5602400Smrg  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5721caade7ccSmrgelse
5722caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723caade7ccSmrgfor as_dir in $PATH
5724caade7ccSmrgdo
5725caade7ccSmrg  IFS=$as_save_IFS
5726caade7ccSmrg  test -z "$as_dir" && as_dir=.
5727b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5728caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729a5602400Smrg    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5730b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731caade7ccSmrg    break 2
5732caade7ccSmrg  fi
5733caade7ccSmrgdone
5734b9b4fd27Smrg  done
5735caade7ccSmrgIFS=$as_save_IFS
5736caade7ccSmrg
5737caade7ccSmrgfi
5738caade7ccSmrgfi
5739a5602400SmrgRANLIB=$ac_cv_prog_RANLIB
5740a5602400Smrgif test -n "$RANLIB"; then
5741a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5742a5602400Smrg$as_echo "$RANLIB" >&6; }
5743caade7ccSmrgelse
5744b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745485f0483Smrg$as_echo "no" >&6; }
5746caade7ccSmrgfi
5747caade7ccSmrg
5748caade7ccSmrg
5749caade7ccSmrgfi
5750a5602400Smrgif test -z "$ac_cv_prog_RANLIB"; then
5751a5602400Smrg  ac_ct_RANLIB=$RANLIB
5752a5602400Smrg  # Extract the first word of "ranlib", so it can be a program name with args.
5753a5602400Smrgset dummy ranlib; ac_word=$2
5754b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755485f0483Smrg$as_echo_n "checking for $ac_word... " >&6; }
5756a5602400Smrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5757485f0483Smrg  $as_echo_n "(cached) " >&6
5758caade7ccSmrgelse
5759a5602400Smrg  if test -n "$ac_ct_RANLIB"; then
5760a5602400Smrg  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5761caade7ccSmrgelse
5762caade7ccSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763caade7ccSmrgfor as_dir in $PATH
5764caade7ccSmrgdo
5765caade7ccSmrg  IFS=$as_save_IFS
5766caade7ccSmrg  test -z "$as_dir" && as_dir=.
5767b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
5768caade7ccSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769a5602400Smrg    ac_cv_prog_ac_ct_RANLIB="ranlib"
5770b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771caade7ccSmrg    break 2
5772caade7ccSmrg  fi
5773caade7ccSmrgdone
5774b9b4fd27Smrg  done
5775caade7ccSmrgIFS=$as_save_IFS
5776caade7ccSmrg
5777caade7ccSmrgfi
5778caade7ccSmrgfi
5779a5602400Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5780a5602400Smrgif test -n "$ac_ct_RANLIB"; then
5781a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5782a5602400Smrg$as_echo "$ac_ct_RANLIB" >&6; }
5783caade7ccSmrgelse
5784b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785485f0483Smrg$as_echo "no" >&6; }
5786caade7ccSmrgfi
5787caade7ccSmrg
5788a5602400Smrg  if test "x$ac_ct_RANLIB" = x; then
5789a5602400Smrg    RANLIB=":"
5790caade7ccSmrg  else
5791caade7ccSmrg    case $cross_compiling:$ac_tool_warned in
5792caade7ccSmrgyes:)
5793b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794485f0483Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795caade7ccSmrgac_tool_warned=yes ;;
5796caade7ccSmrgesac
5797a5602400Smrg    RANLIB=$ac_ct_RANLIB
5798caade7ccSmrg  fi
5799caade7ccSmrgelse
5800a5602400Smrg  RANLIB="$ac_cv_prog_RANLIB"
5801caade7ccSmrgfi
5802caade7ccSmrg
5803a5602400Smrgtest -z "$RANLIB" && RANLIB=:
5804caade7ccSmrg
5805caade7ccSmrg
5806caade7ccSmrg
5807caade7ccSmrg
5808caade7ccSmrg
5809caade7ccSmrg
5810a5602400Smrg# Determine commands to create old-style static archives.
5811a5602400Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5812a5602400Smrgold_postinstall_cmds='chmod 644 $oldlib'
5813a5602400Smrgold_postuninstall_cmds=
5814caade7ccSmrg
5815a5602400Smrgif test -n "$RANLIB"; then
5816a5602400Smrg  case $host_os in
5817a5602400Smrg  openbsd*)
5818af9a7ee5Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5819a5602400Smrg    ;;
5820a5602400Smrg  *)
5821af9a7ee5Smrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5822a5602400Smrg    ;;
5823a5602400Smrg  esac
5824af9a7ee5Smrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5825a5602400Smrgfi
5826caade7ccSmrg
5827a5602400Smrgcase $host_os in
5828a5602400Smrg  darwin*)
5829a5602400Smrg    lock_old_archive_extraction=yes ;;
5830a5602400Smrg  *)
5831a5602400Smrg    lock_old_archive_extraction=no ;;
5832a5602400Smrgesac
5833caade7ccSmrg
5834caade7ccSmrg
5835caade7ccSmrg
5836b9b4fd27Smrg
5837b9b4fd27Smrg
5838b9b4fd27Smrg
5839caade7ccSmrg
5840caade7ccSmrg
5841caade7ccSmrg
5842caade7ccSmrg
5843caade7ccSmrg
5844e8a5466aSmrg
5845caade7ccSmrg
5846b9b4fd27Smrg
5847caade7ccSmrg
5848caade7ccSmrg
5849caade7ccSmrg
5850caade7ccSmrg
5851caade7ccSmrg
5852caade7ccSmrg
5853caade7ccSmrg
5854caade7ccSmrg
5855caade7ccSmrg
5856caade7ccSmrg
5857caade7ccSmrg
5858caade7ccSmrg
5859caade7ccSmrg
5860b9b4fd27Smrg
5861b9b4fd27Smrg
5862b9b4fd27Smrg
5863b9b4fd27Smrg
5864b9b4fd27Smrg
5865b9b4fd27Smrg
5866b9b4fd27Smrg
5867b9b4fd27Smrg
5868b9b4fd27Smrg
5869b9b4fd27Smrg
5870b9b4fd27Smrg
5871485f0483Smrg
5872a5602400Smrg# If no C compiler was specified, use CC.
5873a5602400SmrgLTCC=${LTCC-"$CC"}
5874caade7ccSmrg
5875a5602400Smrg# If no C compiler flags were specified, use CFLAGS.
5876a5602400SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5877caade7ccSmrg
5878a5602400Smrg# Allow CC to be a program name with arguments.
5879a5602400Smrgcompiler=$CC
5880caade7ccSmrg
5881caade7ccSmrg
5882a5602400Smrg# Check for command to grab the raw symbol name followed by C symbol from nm.
5883a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5884a5602400Smrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5885a5602400Smrgif ${lt_cv_sys_global_symbol_pipe+:} false; then :
5886a5602400Smrg  $as_echo_n "(cached) " >&6
5887485f0483Smrgelse
5888b9b4fd27Smrg
5889a5602400Smrg# These are sane defaults that work on at least a few old systems.
5890a5602400Smrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5891b9b4fd27Smrg
5892a5602400Smrg# Character class describing NM global symbol codes.
5893a5602400Smrgsymcode='[BCDEGRST]'
5894b9b4fd27Smrg
5895a5602400Smrg# Regexp to match symbols that can be accessed directly from C.
5896a5602400Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5897b9b4fd27Smrg
5898a5602400Smrg# Define system-specific variables.
5899a5602400Smrgcase $host_os in
5900a5602400Smrgaix*)
5901a5602400Smrg  symcode='[BCDT]'
5902a5602400Smrg  ;;
5903a5602400Smrgcygwin* | mingw* | pw32* | cegcc*)
5904a5602400Smrg  symcode='[ABCDGISTW]'
5905a5602400Smrg  ;;
5906a5602400Smrghpux*)
5907a5602400Smrg  if test "$host_cpu" = ia64; then
5908a5602400Smrg    symcode='[ABCDEGRST]'
5909a5602400Smrg  fi
5910a5602400Smrg  ;;
5911a5602400Smrgirix* | nonstopux*)
5912a5602400Smrg  symcode='[BCDEGRST]'
5913a5602400Smrg  ;;
5914a5602400Smrgosf*)
5915a5602400Smrg  symcode='[BCDEGQRST]'
5916a5602400Smrg  ;;
5917a5602400Smrgsolaris*)
5918a5602400Smrg  symcode='[BDRT]'
5919a5602400Smrg  ;;
5920a5602400Smrgsco3.2v5*)
5921a5602400Smrg  symcode='[DT]'
5922a5602400Smrg  ;;
5923a5602400Smrgsysv4.2uw2*)
5924a5602400Smrg  symcode='[DT]'
5925a5602400Smrg  ;;
5926a5602400Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
5927a5602400Smrg  symcode='[ABDT]'
5928a5602400Smrg  ;;
5929a5602400Smrgsysv4)
5930a5602400Smrg  symcode='[DFNSTU]'
5931a5602400Smrg  ;;
5932a5602400Smrgesac
5933b9b4fd27Smrg
5934a5602400Smrg# If we're using GNU nm, then use its standard symbol codes.
5935a5602400Smrgcase `$NM -V 2>&1` in
5936a5602400Smrg*GNU* | *'with BFD'*)
5937a5602400Smrg  symcode='[ABCDGIRSTW]' ;;
5938a5602400Smrgesac
5939b9b4fd27Smrg
5940a5602400Smrg# Transform an extracted symbol line into a proper C declaration.
5941a5602400Smrg# Some systems (esp. on ia64) link data and code symbols differently,
5942a5602400Smrg# so use this general approach.
5943a5602400Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5944b9b4fd27Smrg
5945a5602400Smrg# Transform an extracted symbol line into symbol name and symbol address
5946a5602400Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5947a5602400Smrglt_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'"
5948b9b4fd27Smrg
5949a5602400Smrg# Handle CRLF in mingw tool chain
5950a5602400Smrgopt_cr=
5951a5602400Smrgcase $build_os in
5952a5602400Smrgmingw*)
5953a5602400Smrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5954a5602400Smrg  ;;
5955a5602400Smrgesac
5956b9b4fd27Smrg
5957a5602400Smrg# Try without a prefix underscore, then with it.
5958a5602400Smrgfor ac_symprfx in "" "_"; do
5959b9b4fd27Smrg
5960a5602400Smrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5961a5602400Smrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
5962b9b4fd27Smrg
5963a5602400Smrg  # Write the raw and C identifiers.
5964a5602400Smrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5965a5602400Smrg    # Fake it for dumpbin and say T for any non-static function
5966a5602400Smrg    # and D for any global variable.
5967a5602400Smrg    # Also find C++ and __fastcall symbols from MSVC++,
5968a5602400Smrg    # which start with @ or ?.
5969a5602400Smrg    lt_cv_sys_global_symbol_pipe="$AWK '"\
5970a5602400Smrg"     {last_section=section; section=\$ 3};"\
5971af9a7ee5Smrg"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5972a5602400Smrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5973a5602400Smrg"     \$ 0!~/External *\|/{next};"\
5974a5602400Smrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5975a5602400Smrg"     {if(hide[section]) next};"\
5976a5602400Smrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5977a5602400Smrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5978a5602400Smrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5979a5602400Smrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5980a5602400Smrg"     ' prfx=^$ac_symprfx"
5981a5602400Smrg  else
5982a5602400Smrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5983485f0483Smrg  fi
5984a5602400Smrg  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5985caade7ccSmrg
5986a5602400Smrg  # Check to see that the pipe works correctly.
5987a5602400Smrg  pipe_works=no
5988caade7ccSmrg
5989a5602400Smrg  rm -f conftest*
5990a5602400Smrg  cat > conftest.$ac_ext <<_LT_EOF
5991a5602400Smrg#ifdef __cplusplus
5992a5602400Smrgextern "C" {
5993a5602400Smrg#endif
5994a5602400Smrgchar nm_test_var;
5995a5602400Smrgvoid nm_test_func(void);
5996a5602400Smrgvoid nm_test_func(void){}
5997a5602400Smrg#ifdef __cplusplus
5998a5602400Smrg}
5999a5602400Smrg#endif
6000a5602400Smrgint main(){nm_test_var='a';nm_test_func();return(0);}
6001a5602400Smrg_LT_EOF
6002caade7ccSmrg
6003a5602400Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6004a5602400Smrg  (eval $ac_compile) 2>&5
6005a5602400Smrg  ac_status=$?
6006a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007a5602400Smrg  test $ac_status = 0; }; then
6008a5602400Smrg    # Now try to grab the symbols.
6009a5602400Smrg    nlist=conftest.nm
6010a5602400Smrg    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6011a5602400Smrg  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6012a5602400Smrg  ac_status=$?
6013a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6014a5602400Smrg  test $ac_status = 0; } && test -s "$nlist"; then
6015a5602400Smrg      # Try sorting and uniquifying the output.
6016a5602400Smrg      if sort "$nlist" | uniq > "$nlist"T; then
6017a5602400Smrg	mv -f "$nlist"T "$nlist"
6018a5602400Smrg      else
6019a5602400Smrg	rm -f "$nlist"T
6020a5602400Smrg      fi
6021a5602400Smrg
6022a5602400Smrg      # Make sure that we snagged all the symbols we need.
6023a5602400Smrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6024a5602400Smrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6025a5602400Smrg	  cat <<_LT_EOF > conftest.$ac_ext
6026a5602400Smrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6027a5602400Smrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6028a5602400Smrg/* DATA imports from DLLs on WIN32 con't be const, because runtime
6029a5602400Smrg   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6030a5602400Smrg# define LT_DLSYM_CONST
6031a5602400Smrg#elif defined(__osf__)
6032a5602400Smrg/* This system does not cope well with relocations in const data.  */
6033a5602400Smrg# define LT_DLSYM_CONST
6034a5602400Smrg#else
6035a5602400Smrg# define LT_DLSYM_CONST const
6036a5602400Smrg#endif
6037a5602400Smrg
6038a5602400Smrg#ifdef __cplusplus
6039a5602400Smrgextern "C" {
6040a5602400Smrg#endif
6041a5602400Smrg
6042a5602400Smrg_LT_EOF
6043a5602400Smrg	  # Now generate the symbol file.
6044a5602400Smrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6045a5602400Smrg
6046a5602400Smrg	  cat <<_LT_EOF >> conftest.$ac_ext
6047a5602400Smrg
6048a5602400Smrg/* The mapping between symbol names and symbols.  */
6049a5602400SmrgLT_DLSYM_CONST struct {
6050a5602400Smrg  const char *name;
6051a5602400Smrg  void       *address;
6052a5602400Smrg}
6053a5602400Smrglt__PROGRAM__LTX_preloaded_symbols[] =
6054a5602400Smrg{
6055a5602400Smrg  { "@PROGRAM@", (void *) 0 },
6056a5602400Smrg_LT_EOF
6057a5602400Smrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6058a5602400Smrg	  cat <<\_LT_EOF >> conftest.$ac_ext
6059a5602400Smrg  {0, (void *) 0}
6060a5602400Smrg};
6061a5602400Smrg
6062a5602400Smrg/* This works around a problem in FreeBSD linker */
6063a5602400Smrg#ifdef FREEBSD_WORKAROUND
6064a5602400Smrgstatic const void *lt_preloaded_setup() {
6065a5602400Smrg  return lt__PROGRAM__LTX_preloaded_symbols;
6066a5602400Smrg}
6067a5602400Smrg#endif
6068a5602400Smrg
6069a5602400Smrg#ifdef __cplusplus
6070a5602400Smrg}
6071a5602400Smrg#endif
6072a5602400Smrg_LT_EOF
6073a5602400Smrg	  # Now try linking the two files.
6074a5602400Smrg	  mv conftest.$ac_objext conftstm.$ac_objext
6075a5602400Smrg	  lt_globsym_save_LIBS=$LIBS
6076a5602400Smrg	  lt_globsym_save_CFLAGS=$CFLAGS
6077a5602400Smrg	  LIBS="conftstm.$ac_objext"
6078a5602400Smrg	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6079a5602400Smrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6080a5602400Smrg  (eval $ac_link) 2>&5
6081a5602400Smrg  ac_status=$?
6082a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083a5602400Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6084a5602400Smrg	    pipe_works=yes
6085a5602400Smrg	  fi
6086a5602400Smrg	  LIBS=$lt_globsym_save_LIBS
6087a5602400Smrg	  CFLAGS=$lt_globsym_save_CFLAGS
6088a5602400Smrg	else
6089a5602400Smrg	  echo "cannot find nm_test_func in $nlist" >&5
6090a5602400Smrg	fi
6091a5602400Smrg      else
6092a5602400Smrg	echo "cannot find nm_test_var in $nlist" >&5
6093a5602400Smrg      fi
6094a5602400Smrg    else
6095a5602400Smrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6096a5602400Smrg    fi
6097a5602400Smrg  else
6098a5602400Smrg    echo "$progname: failed program was:" >&5
6099a5602400Smrg    cat conftest.$ac_ext >&5
6100a5602400Smrg  fi
6101a5602400Smrg  rm -rf conftest* conftst*
6102a5602400Smrg
6103a5602400Smrg  # Do not use the global_symbol_pipe unless it works.
6104a5602400Smrg  if test "$pipe_works" = yes; then
6105a5602400Smrg    break
6106a5602400Smrg  else
6107a5602400Smrg    lt_cv_sys_global_symbol_pipe=
6108485f0483Smrg  fi
6109485f0483Smrgdone
6110caade7ccSmrg
6111485f0483Smrgfi
6112a5602400Smrg
6113a5602400Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
6114a5602400Smrg  lt_cv_sys_global_symbol_to_cdecl=
6115485f0483Smrgfi
6116a5602400Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6117a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6118a5602400Smrg$as_echo "failed" >&6; }
6119485f0483Smrgelse
6120a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6121a5602400Smrg$as_echo "ok" >&6; }
6122485f0483Smrgfi
6123caade7ccSmrg
6124a5602400Smrg# Response file support.
6125a5602400Smrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then
6126a5602400Smrg  nm_file_list_spec='@'
6127a5602400Smrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6128a5602400Smrg  nm_file_list_spec='@'
6129485f0483Smrgfi
6130caade7ccSmrg
6131caade7ccSmrg
6132caade7ccSmrg
6133caade7ccSmrg
6134caade7ccSmrg
6135caade7ccSmrg
6136485f0483Smrg
6137485f0483Smrg
6138a5602400Smrg
6139a5602400Smrg
6140a5602400Smrg
6141a5602400Smrg
6142a5602400Smrg
6143a5602400Smrg
6144a5602400Smrg
6145a5602400Smrg
6146a5602400Smrg
6147a5602400Smrg
6148a5602400Smrg
6149a5602400Smrg
6150a5602400Smrg
6151a5602400Smrg
6152a5602400Smrg
6153a5602400Smrg
6154a5602400Smrg
6155a5602400Smrg
6156a5602400Smrg
6157a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6158a5602400Smrg$as_echo_n "checking for sysroot... " >&6; }
6159a5602400Smrg
6160a5602400Smrg# Check whether --with-sysroot was given.
6161a5602400Smrgif test "${with_sysroot+set}" = set; then :
6162a5602400Smrg  withval=$with_sysroot;
6163b9b4fd27Smrgelse
6164a5602400Smrg  with_sysroot=no
6165b9b4fd27Smrgfi
6166485f0483Smrg
6167485f0483Smrg
6168a5602400Smrglt_sysroot=
6169a5602400Smrgcase ${with_sysroot} in #(
6170a5602400Smrg yes)
6171a5602400Smrg   if test "$GCC" = yes; then
6172a5602400Smrg     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6173a5602400Smrg   fi
6174a5602400Smrg   ;; #(
6175a5602400Smrg /*)
6176a5602400Smrg   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6177a5602400Smrg   ;; #(
6178a5602400Smrg no|'')
6179a5602400Smrg   ;; #(
6180a5602400Smrg *)
6181a5602400Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6182a5602400Smrg$as_echo "${with_sysroot}" >&6; }
6183a5602400Smrg   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6184a5602400Smrg   ;;
6185a5602400Smrgesac
6186a5602400Smrg
6187a5602400Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6188a5602400Smrg$as_echo "${lt_sysroot:-no}" >&6; }
6189a5602400Smrg
6190a5602400Smrg
6191a5602400Smrg
6192a5602400Smrg
6193a5602400Smrg
6194a5602400Smrg# Check whether --enable-libtool-lock was given.
6195a5602400Smrgif test "${enable_libtool_lock+set}" = set; then :
6196a5602400Smrg  enableval=$enable_libtool_lock;
6197a5602400Smrgfi
6198a5602400Smrg
6199a5602400Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6200a5602400Smrg
6201a5602400Smrg# Some flags need to be propagated to the compiler or linker for good
6202a5602400Smrg# libtool support.
6203a5602400Smrgcase $host in
6204a5602400Smrgia64-*-hpux*)
6205a5602400Smrg  # Find out which ABI we are using.
6206a5602400Smrg  echo 'int i;' > conftest.$ac_ext
6207a5602400Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6208a5602400Smrg  (eval $ac_compile) 2>&5
6209a5602400Smrg  ac_status=$?
6210a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211a5602400Smrg  test $ac_status = 0; }; then
6212a5602400Smrg    case `/usr/bin/file conftest.$ac_objext` in
6213a5602400Smrg      *ELF-32*)
6214a5602400Smrg	HPUX_IA64_MODE="32"
6215a5602400Smrg	;;
6216a5602400Smrg      *ELF-64*)
6217a5602400Smrg	HPUX_IA64_MODE="64"
6218a5602400Smrg	;;
6219a5602400Smrg    esac
6220a5602400Smrg  fi
6221a5602400Smrg  rm -rf conftest*
6222a5602400Smrg  ;;
6223a5602400Smrg*-*-irix6*)
6224a5602400Smrg  # Find out which ABI we are using.
6225a5602400Smrg  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6226a5602400Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6227a5602400Smrg  (eval $ac_compile) 2>&5
6228a5602400Smrg  ac_status=$?
6229a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230a5602400Smrg  test $ac_status = 0; }; then
6231a5602400Smrg    if test "$lt_cv_prog_gnu_ld" = yes; then
6232a5602400Smrg      case `/usr/bin/file conftest.$ac_objext` in
6233a5602400Smrg	*32-bit*)
6234a5602400Smrg	  LD="${LD-ld} -melf32bsmip"
6235a5602400Smrg	  ;;
6236a5602400Smrg	*N32*)
6237a5602400Smrg	  LD="${LD-ld} -melf32bmipn32"
6238a5602400Smrg	  ;;
6239a5602400Smrg	*64-bit*)
6240a5602400Smrg	  LD="${LD-ld} -melf64bmip"
6241a5602400Smrg	;;
6242a5602400Smrg      esac
6243a5602400Smrg    else
6244a5602400Smrg      case `/usr/bin/file conftest.$ac_objext` in
6245a5602400Smrg	*32-bit*)
6246a5602400Smrg	  LD="${LD-ld} -32"
6247a5602400Smrg	  ;;
6248a5602400Smrg	*N32*)
6249a5602400Smrg	  LD="${LD-ld} -n32"
6250a5602400Smrg	  ;;
6251a5602400Smrg	*64-bit*)
6252a5602400Smrg	  LD="${LD-ld} -64"
6253a5602400Smrg	  ;;
6254a5602400Smrg      esac
6255a5602400Smrg    fi
6256a5602400Smrg  fi
6257a5602400Smrg  rm -rf conftest*
6258a5602400Smrg  ;;
6259a5602400Smrg
6260a5602400Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6261a5602400Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6262a5602400Smrg  # Find out which ABI we are using.
6263a5602400Smrg  echo 'int i;' > conftest.$ac_ext
6264a5602400Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6265a5602400Smrg  (eval $ac_compile) 2>&5
6266a5602400Smrg  ac_status=$?
6267a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268a5602400Smrg  test $ac_status = 0; }; then
6269a5602400Smrg    case `/usr/bin/file conftest.o` in
6270a5602400Smrg      *32-bit*)
6271a5602400Smrg	case $host in
6272a5602400Smrg	  x86_64-*kfreebsd*-gnu)
6273a5602400Smrg	    LD="${LD-ld} -m elf_i386_fbsd"
6274a5602400Smrg	    ;;
6275a5602400Smrg	  x86_64-*linux*)
6276a5602400Smrg	    LD="${LD-ld} -m elf_i386"
6277a5602400Smrg	    ;;
6278a5602400Smrg	  ppc64-*linux*|powerpc64-*linux*)
6279a5602400Smrg	    LD="${LD-ld} -m elf32ppclinux"
6280a5602400Smrg	    ;;
6281a5602400Smrg	  s390x-*linux*)
6282a5602400Smrg	    LD="${LD-ld} -m elf_s390"
6283a5602400Smrg	    ;;
6284a5602400Smrg	  sparc64-*linux*)
6285a5602400Smrg	    LD="${LD-ld} -m elf32_sparc"
6286a5602400Smrg	    ;;
6287a5602400Smrg	esac
6288a5602400Smrg	;;
6289a5602400Smrg      *64-bit*)
6290a5602400Smrg	case $host in
6291a5602400Smrg	  x86_64-*kfreebsd*-gnu)
6292a5602400Smrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
6293a5602400Smrg	    ;;
6294a5602400Smrg	  x86_64-*linux*)
6295a5602400Smrg	    LD="${LD-ld} -m elf_x86_64"
6296a5602400Smrg	    ;;
6297a5602400Smrg	  ppc*-*linux*|powerpc*-*linux*)
6298a5602400Smrg	    LD="${LD-ld} -m elf64ppc"
6299a5602400Smrg	    ;;
6300a5602400Smrg	  s390*-*linux*|s390*-*tpf*)
6301a5602400Smrg	    LD="${LD-ld} -m elf64_s390"
6302a5602400Smrg	    ;;
6303a5602400Smrg	  sparc*-*linux*)
6304a5602400Smrg	    LD="${LD-ld} -m elf64_sparc"
6305a5602400Smrg	    ;;
6306a5602400Smrg	esac
6307a5602400Smrg	;;
6308a5602400Smrg    esac
6309a5602400Smrg  fi
6310a5602400Smrg  rm -rf conftest*
6311a5602400Smrg  ;;
6312a5602400Smrg
6313a5602400Smrg*-*-sco3.2v5*)
6314a5602400Smrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6315a5602400Smrg  SAVE_CFLAGS="$CFLAGS"
6316a5602400Smrg  CFLAGS="$CFLAGS -belf"
6317a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6318a5602400Smrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6319a5602400Smrgif ${lt_cv_cc_needs_belf+:} false; then :
6320a5602400Smrg  $as_echo_n "(cached) " >&6
6321a5602400Smrgelse
6322a5602400Smrg  ac_ext=c
6323a5602400Smrgac_cpp='$CPP $CPPFLAGS'
6324a5602400Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325a5602400Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326a5602400Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
6327a5602400Smrg
6328a5602400Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329a5602400Smrg/* end confdefs.h.  */
6330a5602400Smrg
6331a5602400Smrgint
6332a5602400Smrgmain ()
6333a5602400Smrg{
6334a5602400Smrg
6335a5602400Smrg  ;
6336a5602400Smrg  return 0;
6337a5602400Smrg}
6338a5602400Smrg_ACEOF
6339a5602400Smrgif ac_fn_c_try_link "$LINENO"; then :
6340a5602400Smrg  lt_cv_cc_needs_belf=yes
6341a5602400Smrgelse
6342a5602400Smrg  lt_cv_cc_needs_belf=no
6343a5602400Smrgfi
6344a5602400Smrgrm -f core conftest.err conftest.$ac_objext \
6345a5602400Smrg    conftest$ac_exeext conftest.$ac_ext
6346a5602400Smrg     ac_ext=c
6347a5602400Smrgac_cpp='$CPP $CPPFLAGS'
6348a5602400Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349a5602400Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350a5602400Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
6351a5602400Smrg
6352a5602400Smrgfi
6353a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6354a5602400Smrg$as_echo "$lt_cv_cc_needs_belf" >&6; }
6355a5602400Smrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6356a5602400Smrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6357a5602400Smrg    CFLAGS="$SAVE_CFLAGS"
6358a5602400Smrg  fi
6359a5602400Smrg  ;;
6360af9a7ee5Smrg*-*solaris*)
6361a5602400Smrg  # Find out which ABI we are using.
6362a5602400Smrg  echo 'int i;' > conftest.$ac_ext
6363a5602400Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6364a5602400Smrg  (eval $ac_compile) 2>&5
6365a5602400Smrg  ac_status=$?
6366a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6367a5602400Smrg  test $ac_status = 0; }; then
6368a5602400Smrg    case `/usr/bin/file conftest.o` in
6369a5602400Smrg    *64-bit*)
6370a5602400Smrg      case $lt_cv_prog_gnu_ld in
6371af9a7ee5Smrg      yes*)
6372af9a7ee5Smrg        case $host in
6373af9a7ee5Smrg        i?86-*-solaris*)
6374af9a7ee5Smrg          LD="${LD-ld} -m elf_x86_64"
6375af9a7ee5Smrg          ;;
6376af9a7ee5Smrg        sparc*-*-solaris*)
6377af9a7ee5Smrg          LD="${LD-ld} -m elf64_sparc"
6378af9a7ee5Smrg          ;;
6379af9a7ee5Smrg        esac
6380af9a7ee5Smrg        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6381af9a7ee5Smrg        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6382af9a7ee5Smrg          LD="${LD-ld}_sol2"
6383af9a7ee5Smrg        fi
6384af9a7ee5Smrg        ;;
6385a5602400Smrg      *)
6386a5602400Smrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6387a5602400Smrg	  LD="${LD-ld} -64"
6388a5602400Smrg	fi
6389a5602400Smrg	;;
6390a5602400Smrg      esac
6391a5602400Smrg      ;;
6392a5602400Smrg    esac
6393a5602400Smrg  fi
6394a5602400Smrg  rm -rf conftest*
6395a5602400Smrg  ;;
6396a5602400Smrgesac
6397a5602400Smrg
6398a5602400Smrgneed_locks="$enable_libtool_lock"
6399a5602400Smrg
6400a5602400Smrgif test -n "$ac_tool_prefix"; then
6401a5602400Smrg  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6402a5602400Smrgset dummy ${ac_tool_prefix}mt; ac_word=$2
6403b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6405a5602400Smrgif ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6406b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6407b9b4fd27Smrgelse
6408a5602400Smrg  if test -n "$MANIFEST_TOOL"; then
6409a5602400Smrg  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6410b9b4fd27Smrgelse
6411b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412b9b4fd27Smrgfor as_dir in $PATH
6413b9b4fd27Smrgdo
6414b9b4fd27Smrg  IFS=$as_save_IFS
6415b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6416b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6417b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418a5602400Smrg    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6419b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420b9b4fd27Smrg    break 2
6421b9b4fd27Smrg  fi
6422b9b4fd27Smrgdone
6423b9b4fd27Smrg  done
6424b9b4fd27SmrgIFS=$as_save_IFS
6425485f0483Smrg
6426b9b4fd27Smrgfi
6427b9b4fd27Smrgfi
6428a5602400SmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6429a5602400Smrgif test -n "$MANIFEST_TOOL"; then
6430a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6431a5602400Smrg$as_echo "$MANIFEST_TOOL" >&6; }
6432b9b4fd27Smrgelse
6433b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434b9b4fd27Smrg$as_echo "no" >&6; }
6435b9b4fd27Smrgfi
6436485f0483Smrg
6437a5602400Smrg
6438a5602400Smrgfi
6439a5602400Smrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6440a5602400Smrg  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6441a5602400Smrg  # Extract the first word of "mt", so it can be a program name with args.
6442a5602400Smrgset dummy mt; ac_word=$2
6443a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
6445a5602400Smrgif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6446a5602400Smrg  $as_echo_n "(cached) " >&6
6447a5602400Smrgelse
6448a5602400Smrg  if test -n "$ac_ct_MANIFEST_TOOL"; then
6449a5602400Smrg  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6450a5602400Smrgelse
6451a5602400Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452a5602400Smrgfor as_dir in $PATH
6453a5602400Smrgdo
6454a5602400Smrg  IFS=$as_save_IFS
6455a5602400Smrg  test -z "$as_dir" && as_dir=.
6456a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6457a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458a5602400Smrg    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6459a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460a5602400Smrg    break 2
6461a5602400Smrg  fi
6462a5602400Smrgdone
6463a5602400Smrg  done
6464a5602400SmrgIFS=$as_save_IFS
6465a5602400Smrg
6466a5602400Smrgfi
6467a5602400Smrgfi
6468a5602400Smrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6469a5602400Smrgif test -n "$ac_ct_MANIFEST_TOOL"; then
6470a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6471a5602400Smrg$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6472a5602400Smrgelse
6473a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474a5602400Smrg$as_echo "no" >&6; }
6475a5602400Smrgfi
6476a5602400Smrg
6477a5602400Smrg  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6478a5602400Smrg    MANIFEST_TOOL=":"
6479b9b4fd27Smrg  else
6480b9b4fd27Smrg    case $cross_compiling:$ac_tool_warned in
6481b9b4fd27Smrgyes:)
6482b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483b9b4fd27Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484b9b4fd27Smrgac_tool_warned=yes ;;
6485b9b4fd27Smrgesac
6486a5602400Smrg    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6487b9b4fd27Smrg  fi
6488485f0483Smrgelse
6489a5602400Smrg  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6490485f0483Smrgfi
6491485f0483Smrg
6492a5602400Smrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6493a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6494a5602400Smrg$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6495a5602400Smrgif ${lt_cv_path_mainfest_tool+:} false; then :
6496a5602400Smrg  $as_echo_n "(cached) " >&6
6497a5602400Smrgelse
6498a5602400Smrg  lt_cv_path_mainfest_tool=no
6499a5602400Smrg  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6500a5602400Smrg  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6501a5602400Smrg  cat conftest.err >&5
6502a5602400Smrg  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6503a5602400Smrg    lt_cv_path_mainfest_tool=yes
6504a5602400Smrg  fi
6505a5602400Smrg  rm -f conftest*
6506a5602400Smrgfi
6507a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6508a5602400Smrg$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6509a5602400Smrgif test "x$lt_cv_path_mainfest_tool" != xyes; then
6510a5602400Smrg  MANIFEST_TOOL=:
6511a5602400Smrgfi
6512485f0483Smrg
6513485f0483Smrg
6514485f0483Smrg
6515485f0483Smrg
6516485f0483Smrg
6517caade7ccSmrg
6518b9b4fd27Smrg  case $host_os in
6519b9b4fd27Smrg    rhapsody* | darwin*)
6520b9b4fd27Smrg    if test -n "$ac_tool_prefix"; then
6521b9b4fd27Smrg  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6522b9b4fd27Smrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6523b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6525e8a5466aSmrgif ${ac_cv_prog_DSYMUTIL+:} false; then :
6526b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6527b9b4fd27Smrgelse
6528b9b4fd27Smrg  if test -n "$DSYMUTIL"; then
6529b9b4fd27Smrg  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6530b9b4fd27Smrgelse
6531b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532b9b4fd27Smrgfor as_dir in $PATH
6533b9b4fd27Smrgdo
6534b9b4fd27Smrg  IFS=$as_save_IFS
6535b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6536b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6537b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538b9b4fd27Smrg    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6539b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540b9b4fd27Smrg    break 2
6541b9b4fd27Smrg  fi
6542b9b4fd27Smrgdone
6543b9b4fd27Smrg  done
6544b9b4fd27SmrgIFS=$as_save_IFS
6545caade7ccSmrg
6546485f0483Smrgfi
6547b9b4fd27Smrgfi
6548b9b4fd27SmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL
6549b9b4fd27Smrgif test -n "$DSYMUTIL"; then
6550b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6551b9b4fd27Smrg$as_echo "$DSYMUTIL" >&6; }
6552caade7ccSmrgelse
6553b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554b9b4fd27Smrg$as_echo "no" >&6; }
6555b9b4fd27Smrgfi
6556caade7ccSmrg
6557caade7ccSmrg
6558caade7ccSmrgfi
6559b9b4fd27Smrgif test -z "$ac_cv_prog_DSYMUTIL"; then
6560b9b4fd27Smrg  ac_ct_DSYMUTIL=$DSYMUTIL
6561b9b4fd27Smrg  # Extract the first word of "dsymutil", so it can be a program name with args.
6562b9b4fd27Smrgset dummy dsymutil; ac_word=$2
6563b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6565e8a5466aSmrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6566b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6567b9b4fd27Smrgelse
6568b9b4fd27Smrg  if test -n "$ac_ct_DSYMUTIL"; then
6569b9b4fd27Smrg  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6570b9b4fd27Smrgelse
6571b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572b9b4fd27Smrgfor as_dir in $PATH
6573b9b4fd27Smrgdo
6574b9b4fd27Smrg  IFS=$as_save_IFS
6575b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6576b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6577b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578b9b4fd27Smrg    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6579b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580b9b4fd27Smrg    break 2
6581b9b4fd27Smrg  fi
6582b9b4fd27Smrgdone
6583b9b4fd27Smrg  done
6584b9b4fd27SmrgIFS=$as_save_IFS
6585caade7ccSmrg
6586b9b4fd27Smrgfi
6587b9b4fd27Smrgfi
6588b9b4fd27Smrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6589b9b4fd27Smrgif test -n "$ac_ct_DSYMUTIL"; then
6590b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6591b9b4fd27Smrg$as_echo "$ac_ct_DSYMUTIL" >&6; }
6592b9b4fd27Smrgelse
6593b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594b9b4fd27Smrg$as_echo "no" >&6; }
6595b9b4fd27Smrgfi
6596caade7ccSmrg
6597b9b4fd27Smrg  if test "x$ac_ct_DSYMUTIL" = x; then
6598b9b4fd27Smrg    DSYMUTIL=":"
6599b9b4fd27Smrg  else
6600b9b4fd27Smrg    case $cross_compiling:$ac_tool_warned in
6601b9b4fd27Smrgyes:)
6602b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6603b9b4fd27Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604b9b4fd27Smrgac_tool_warned=yes ;;
6605b9b4fd27Smrgesac
6606b9b4fd27Smrg    DSYMUTIL=$ac_ct_DSYMUTIL
6607b9b4fd27Smrg  fi
6608b9b4fd27Smrgelse
6609b9b4fd27Smrg  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6610b9b4fd27Smrgfi
6611caade7ccSmrg
6612b9b4fd27Smrg    if test -n "$ac_tool_prefix"; then
6613b9b4fd27Smrg  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6614b9b4fd27Smrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2
6615b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6617e8a5466aSmrgif ${ac_cv_prog_NMEDIT+:} false; then :
6618b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6619b9b4fd27Smrgelse
6620b9b4fd27Smrg  if test -n "$NMEDIT"; then
6621b9b4fd27Smrg  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6622b9b4fd27Smrgelse
6623b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624b9b4fd27Smrgfor as_dir in $PATH
6625b9b4fd27Smrgdo
6626b9b4fd27Smrg  IFS=$as_save_IFS
6627b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6628b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6629b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630b9b4fd27Smrg    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6631b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632b9b4fd27Smrg    break 2
6633b9b4fd27Smrg  fi
6634b9b4fd27Smrgdone
6635b9b4fd27Smrg  done
6636b9b4fd27SmrgIFS=$as_save_IFS
6637caade7ccSmrg
6638b9b4fd27Smrgfi
6639b9b4fd27Smrgfi
6640b9b4fd27SmrgNMEDIT=$ac_cv_prog_NMEDIT
6641b9b4fd27Smrgif test -n "$NMEDIT"; then
6642b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6643b9b4fd27Smrg$as_echo "$NMEDIT" >&6; }
6644b9b4fd27Smrgelse
6645b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646b9b4fd27Smrg$as_echo "no" >&6; }
6647b9b4fd27Smrgfi
6648caade7ccSmrg
6649caade7ccSmrg
6650b9b4fd27Smrgfi
6651b9b4fd27Smrgif test -z "$ac_cv_prog_NMEDIT"; then
6652b9b4fd27Smrg  ac_ct_NMEDIT=$NMEDIT
6653b9b4fd27Smrg  # Extract the first word of "nmedit", so it can be a program name with args.
6654b9b4fd27Smrgset dummy nmedit; ac_word=$2
6655b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6657e8a5466aSmrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6658b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6659b9b4fd27Smrgelse
6660b9b4fd27Smrg  if test -n "$ac_ct_NMEDIT"; then
6661b9b4fd27Smrg  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6662b9b4fd27Smrgelse
6663b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664b9b4fd27Smrgfor as_dir in $PATH
6665b9b4fd27Smrgdo
6666b9b4fd27Smrg  IFS=$as_save_IFS
6667b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6668b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6669b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670b9b4fd27Smrg    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6671b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672b9b4fd27Smrg    break 2
6673b9b4fd27Smrg  fi
6674b9b4fd27Smrgdone
6675b9b4fd27Smrg  done
6676b9b4fd27SmrgIFS=$as_save_IFS
6677caade7ccSmrg
6678b9b4fd27Smrgfi
6679b9b4fd27Smrgfi
6680b9b4fd27Smrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6681b9b4fd27Smrgif test -n "$ac_ct_NMEDIT"; then
6682b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6683b9b4fd27Smrg$as_echo "$ac_ct_NMEDIT" >&6; }
6684b9b4fd27Smrgelse
6685b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686b9b4fd27Smrg$as_echo "no" >&6; }
6687b9b4fd27Smrgfi
6688caade7ccSmrg
6689b9b4fd27Smrg  if test "x$ac_ct_NMEDIT" = x; then
6690b9b4fd27Smrg    NMEDIT=":"
6691b9b4fd27Smrg  else
6692b9b4fd27Smrg    case $cross_compiling:$ac_tool_warned in
6693b9b4fd27Smrgyes:)
6694b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695b9b4fd27Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696b9b4fd27Smrgac_tool_warned=yes ;;
6697b9b4fd27Smrgesac
6698b9b4fd27Smrg    NMEDIT=$ac_ct_NMEDIT
6699b9b4fd27Smrg  fi
6700b9b4fd27Smrgelse
6701b9b4fd27Smrg  NMEDIT="$ac_cv_prog_NMEDIT"
6702b9b4fd27Smrgfi
6703caade7ccSmrg
6704b9b4fd27Smrg    if test -n "$ac_tool_prefix"; then
6705b9b4fd27Smrg  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6706b9b4fd27Smrgset dummy ${ac_tool_prefix}lipo; ac_word=$2
6707b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6709e8a5466aSmrgif ${ac_cv_prog_LIPO+:} false; then :
6710b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6711b9b4fd27Smrgelse
6712b9b4fd27Smrg  if test -n "$LIPO"; then
6713b9b4fd27Smrg  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6714b9b4fd27Smrgelse
6715b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716b9b4fd27Smrgfor as_dir in $PATH
6717b9b4fd27Smrgdo
6718b9b4fd27Smrg  IFS=$as_save_IFS
6719b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6720b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6721b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722b9b4fd27Smrg    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6723b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724b9b4fd27Smrg    break 2
6725b9b4fd27Smrg  fi
6726b9b4fd27Smrgdone
6727b9b4fd27Smrg  done
6728b9b4fd27SmrgIFS=$as_save_IFS
6729caade7ccSmrg
6730b9b4fd27Smrgfi
6731b9b4fd27Smrgfi
6732b9b4fd27SmrgLIPO=$ac_cv_prog_LIPO
6733b9b4fd27Smrgif test -n "$LIPO"; then
6734b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6735b9b4fd27Smrg$as_echo "$LIPO" >&6; }
6736b9b4fd27Smrgelse
6737b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738b9b4fd27Smrg$as_echo "no" >&6; }
6739b9b4fd27Smrgfi
6740caade7ccSmrg
6741caade7ccSmrg
6742b9b4fd27Smrgfi
6743b9b4fd27Smrgif test -z "$ac_cv_prog_LIPO"; then
6744b9b4fd27Smrg  ac_ct_LIPO=$LIPO
6745b9b4fd27Smrg  # Extract the first word of "lipo", so it can be a program name with args.
6746b9b4fd27Smrgset dummy lipo; ac_word=$2
6747b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6749e8a5466aSmrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6750b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6751b9b4fd27Smrgelse
6752b9b4fd27Smrg  if test -n "$ac_ct_LIPO"; then
6753b9b4fd27Smrg  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6754b9b4fd27Smrgelse
6755b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756b9b4fd27Smrgfor as_dir in $PATH
6757b9b4fd27Smrgdo
6758b9b4fd27Smrg  IFS=$as_save_IFS
6759b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6760b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6761b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762b9b4fd27Smrg    ac_cv_prog_ac_ct_LIPO="lipo"
6763b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764b9b4fd27Smrg    break 2
6765b9b4fd27Smrg  fi
6766b9b4fd27Smrgdone
6767b9b4fd27Smrg  done
6768b9b4fd27SmrgIFS=$as_save_IFS
6769caade7ccSmrg
6770b9b4fd27Smrgfi
6771b9b4fd27Smrgfi
6772b9b4fd27Smrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6773b9b4fd27Smrgif test -n "$ac_ct_LIPO"; then
6774b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6775b9b4fd27Smrg$as_echo "$ac_ct_LIPO" >&6; }
6776b9b4fd27Smrgelse
6777b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778b9b4fd27Smrg$as_echo "no" >&6; }
6779b9b4fd27Smrgfi
6780caade7ccSmrg
6781b9b4fd27Smrg  if test "x$ac_ct_LIPO" = x; then
6782b9b4fd27Smrg    LIPO=":"
6783b9b4fd27Smrg  else
6784b9b4fd27Smrg    case $cross_compiling:$ac_tool_warned in
6785b9b4fd27Smrgyes:)
6786b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787b9b4fd27Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788b9b4fd27Smrgac_tool_warned=yes ;;
6789b9b4fd27Smrgesac
6790b9b4fd27Smrg    LIPO=$ac_ct_LIPO
6791b9b4fd27Smrg  fi
6792b9b4fd27Smrgelse
6793b9b4fd27Smrg  LIPO="$ac_cv_prog_LIPO"
6794b9b4fd27Smrgfi
6795caade7ccSmrg
6796b9b4fd27Smrg    if test -n "$ac_tool_prefix"; then
6797b9b4fd27Smrg  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6798b9b4fd27Smrgset dummy ${ac_tool_prefix}otool; ac_word=$2
6799b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6801e8a5466aSmrgif ${ac_cv_prog_OTOOL+:} false; then :
6802b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6803b9b4fd27Smrgelse
6804b9b4fd27Smrg  if test -n "$OTOOL"; then
6805b9b4fd27Smrg  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6806b9b4fd27Smrgelse
6807b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808b9b4fd27Smrgfor as_dir in $PATH
6809b9b4fd27Smrgdo
6810b9b4fd27Smrg  IFS=$as_save_IFS
6811b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6812b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6813b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814b9b4fd27Smrg    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6815b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816b9b4fd27Smrg    break 2
6817b9b4fd27Smrg  fi
6818b9b4fd27Smrgdone
6819b9b4fd27Smrg  done
6820b9b4fd27SmrgIFS=$as_save_IFS
6821caade7ccSmrg
6822b9b4fd27Smrgfi
6823b9b4fd27Smrgfi
6824b9b4fd27SmrgOTOOL=$ac_cv_prog_OTOOL
6825b9b4fd27Smrgif test -n "$OTOOL"; then
6826b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6827b9b4fd27Smrg$as_echo "$OTOOL" >&6; }
6828b9b4fd27Smrgelse
6829b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830b9b4fd27Smrg$as_echo "no" >&6; }
6831b9b4fd27Smrgfi
6832caade7ccSmrg
6833caade7ccSmrg
6834b9b4fd27Smrgfi
6835b9b4fd27Smrgif test -z "$ac_cv_prog_OTOOL"; then
6836b9b4fd27Smrg  ac_ct_OTOOL=$OTOOL
6837b9b4fd27Smrg  # Extract the first word of "otool", so it can be a program name with args.
6838b9b4fd27Smrgset dummy otool; ac_word=$2
6839b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6841e8a5466aSmrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6842b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6843b9b4fd27Smrgelse
6844b9b4fd27Smrg  if test -n "$ac_ct_OTOOL"; then
6845b9b4fd27Smrg  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6846b9b4fd27Smrgelse
6847b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848b9b4fd27Smrgfor as_dir in $PATH
6849b9b4fd27Smrgdo
6850b9b4fd27Smrg  IFS=$as_save_IFS
6851b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6852b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6853b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854b9b4fd27Smrg    ac_cv_prog_ac_ct_OTOOL="otool"
6855b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856b9b4fd27Smrg    break 2
6857b9b4fd27Smrg  fi
6858b9b4fd27Smrgdone
6859b9b4fd27Smrg  done
6860b9b4fd27SmrgIFS=$as_save_IFS
6861caade7ccSmrg
6862b9b4fd27Smrgfi
6863b9b4fd27Smrgfi
6864b9b4fd27Smrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6865b9b4fd27Smrgif test -n "$ac_ct_OTOOL"; then
6866b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6867b9b4fd27Smrg$as_echo "$ac_ct_OTOOL" >&6; }
6868b9b4fd27Smrgelse
6869b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870b9b4fd27Smrg$as_echo "no" >&6; }
6871b9b4fd27Smrgfi
6872caade7ccSmrg
6873b9b4fd27Smrg  if test "x$ac_ct_OTOOL" = x; then
6874b9b4fd27Smrg    OTOOL=":"
6875b9b4fd27Smrg  else
6876b9b4fd27Smrg    case $cross_compiling:$ac_tool_warned in
6877b9b4fd27Smrgyes:)
6878b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879b9b4fd27Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880b9b4fd27Smrgac_tool_warned=yes ;;
6881b9b4fd27Smrgesac
6882b9b4fd27Smrg    OTOOL=$ac_ct_OTOOL
6883b9b4fd27Smrg  fi
6884b9b4fd27Smrgelse
6885b9b4fd27Smrg  OTOOL="$ac_cv_prog_OTOOL"
6886b9b4fd27Smrgfi
6887caade7ccSmrg
6888b9b4fd27Smrg    if test -n "$ac_tool_prefix"; then
6889b9b4fd27Smrg  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6890b9b4fd27Smrgset dummy ${ac_tool_prefix}otool64; ac_word=$2
6891b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6893e8a5466aSmrgif ${ac_cv_prog_OTOOL64+:} false; then :
6894b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6895b9b4fd27Smrgelse
6896b9b4fd27Smrg  if test -n "$OTOOL64"; then
6897b9b4fd27Smrg  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6898b9b4fd27Smrgelse
6899b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900b9b4fd27Smrgfor as_dir in $PATH
6901b9b4fd27Smrgdo
6902b9b4fd27Smrg  IFS=$as_save_IFS
6903b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6904b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6905b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906b9b4fd27Smrg    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6907b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908b9b4fd27Smrg    break 2
6909b9b4fd27Smrg  fi
6910b9b4fd27Smrgdone
6911b9b4fd27Smrg  done
6912b9b4fd27SmrgIFS=$as_save_IFS
6913caade7ccSmrg
6914b9b4fd27Smrgfi
6915b9b4fd27Smrgfi
6916b9b4fd27SmrgOTOOL64=$ac_cv_prog_OTOOL64
6917b9b4fd27Smrgif test -n "$OTOOL64"; then
6918b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6919b9b4fd27Smrg$as_echo "$OTOOL64" >&6; }
6920b9b4fd27Smrgelse
6921b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922b9b4fd27Smrg$as_echo "no" >&6; }
6923b9b4fd27Smrgfi
6924caade7ccSmrg
6925caade7ccSmrg
6926b9b4fd27Smrgfi
6927b9b4fd27Smrgif test -z "$ac_cv_prog_OTOOL64"; then
6928b9b4fd27Smrg  ac_ct_OTOOL64=$OTOOL64
6929b9b4fd27Smrg  # Extract the first word of "otool64", so it can be a program name with args.
6930b9b4fd27Smrgset dummy otool64; ac_word=$2
6931b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
6933e8a5466aSmrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6934b9b4fd27Smrg  $as_echo_n "(cached) " >&6
6935b9b4fd27Smrgelse
6936b9b4fd27Smrg  if test -n "$ac_ct_OTOOL64"; then
6937b9b4fd27Smrg  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6938b9b4fd27Smrgelse
6939b9b4fd27Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940b9b4fd27Smrgfor as_dir in $PATH
6941b9b4fd27Smrgdo
6942b9b4fd27Smrg  IFS=$as_save_IFS
6943b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
6944b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
6945b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946b9b4fd27Smrg    ac_cv_prog_ac_ct_OTOOL64="otool64"
6947b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948b9b4fd27Smrg    break 2
6949b9b4fd27Smrg  fi
6950b9b4fd27Smrgdone
6951b9b4fd27Smrg  done
6952b9b4fd27SmrgIFS=$as_save_IFS
6953caade7ccSmrg
6954b9b4fd27Smrgfi
6955b9b4fd27Smrgfi
6956b9b4fd27Smrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6957b9b4fd27Smrgif test -n "$ac_ct_OTOOL64"; then
6958b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6959b9b4fd27Smrg$as_echo "$ac_ct_OTOOL64" >&6; }
6960b9b4fd27Smrgelse
6961b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962b9b4fd27Smrg$as_echo "no" >&6; }
6963b9b4fd27Smrgfi
6964caade7ccSmrg
6965b9b4fd27Smrg  if test "x$ac_ct_OTOOL64" = x; then
6966b9b4fd27Smrg    OTOOL64=":"
6967b9b4fd27Smrg  else
6968b9b4fd27Smrg    case $cross_compiling:$ac_tool_warned in
6969b9b4fd27Smrgyes:)
6970b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971b9b4fd27Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972b9b4fd27Smrgac_tool_warned=yes ;;
6973b9b4fd27Smrgesac
6974b9b4fd27Smrg    OTOOL64=$ac_ct_OTOOL64
6975b9b4fd27Smrg  fi
6976b9b4fd27Smrgelse
6977b9b4fd27Smrg  OTOOL64="$ac_cv_prog_OTOOL64"
6978b9b4fd27Smrgfi
6979caade7ccSmrg
6980caade7ccSmrg
6981caade7ccSmrg
6982caade7ccSmrg
6983caade7ccSmrg
6984caade7ccSmrg
6985caade7ccSmrg
6986caade7ccSmrg
6987caade7ccSmrg
6988caade7ccSmrg
6989caade7ccSmrg
6990caade7ccSmrg
6991caade7ccSmrg
6992caade7ccSmrg
6993caade7ccSmrg
6994caade7ccSmrg
6995b9b4fd27Smrg
6996b9b4fd27Smrg
6997b9b4fd27Smrg
6998b9b4fd27Smrg
6999b9b4fd27Smrg
7000b9b4fd27Smrg
7001b9b4fd27Smrg
7002b9b4fd27Smrg
7003b9b4fd27Smrg
7004b9b4fd27Smrg
7005b9b4fd27Smrg
7006b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7007b9b4fd27Smrg$as_echo_n "checking for -single_module linker flag... " >&6; }
7008e8a5466aSmrgif ${lt_cv_apple_cc_single_mod+:} false; then :
7009b9b4fd27Smrg  $as_echo_n "(cached) " >&6
7010b9b4fd27Smrgelse
7011b9b4fd27Smrg  lt_cv_apple_cc_single_mod=no
7012b9b4fd27Smrg      if test -z "${LT_MULTI_MODULE}"; then
7013b9b4fd27Smrg	# By default we will add the -single_module flag. You can override
7014b9b4fd27Smrg	# by either setting the environment variable LT_MULTI_MODULE
7015b9b4fd27Smrg	# non-empty at configure time, or by adding -multi_module to the
7016b9b4fd27Smrg	# link flags.
7017b9b4fd27Smrg	rm -rf libconftest.dylib*
7018b9b4fd27Smrg	echo "int foo(void){return 1;}" > conftest.c
7019b9b4fd27Smrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7020b9b4fd27Smrg-dynamiclib -Wl,-single_module conftest.c" >&5
7021b9b4fd27Smrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7022b9b4fd27Smrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7023b9b4fd27Smrg        _lt_result=$?
7024af9a7ee5Smrg	# If there is a non-empty error log, and "single_module"
7025af9a7ee5Smrg	# appears in it, assume the flag caused a linker warning
7026af9a7ee5Smrg        if test -s conftest.err && $GREP single_module conftest.err; then
7027af9a7ee5Smrg	  cat conftest.err >&5
7028af9a7ee5Smrg	# Otherwise, if the output was created with a 0 exit code from
7029af9a7ee5Smrg	# the compiler, it worked.
7030af9a7ee5Smrg	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7031b9b4fd27Smrg	  lt_cv_apple_cc_single_mod=yes
7032b9b4fd27Smrg	else
7033b9b4fd27Smrg	  cat conftest.err >&5
7034b9b4fd27Smrg	fi
7035b9b4fd27Smrg	rm -rf libconftest.dylib*
7036b9b4fd27Smrg	rm -f conftest.*
7037caade7ccSmrg      fi
7038b9b4fd27Smrgfi
7039b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7040b9b4fd27Smrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7041af9a7ee5Smrg
7042b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7043b9b4fd27Smrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7044e8a5466aSmrgif ${lt_cv_ld_exported_symbols_list+:} false; then :
7045b9b4fd27Smrg  $as_echo_n "(cached) " >&6
7046b9b4fd27Smrgelse
7047b9b4fd27Smrg  lt_cv_ld_exported_symbols_list=no
7048b9b4fd27Smrg      save_LDFLAGS=$LDFLAGS
7049b9b4fd27Smrg      echo "_main" > conftest.sym
7050b9b4fd27Smrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7051b9b4fd27Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052b9b4fd27Smrg/* end confdefs.h.  */
7053caade7ccSmrg
7054b9b4fd27Smrgint
7055b9b4fd27Smrgmain ()
7056b9b4fd27Smrg{
7057485f0483Smrg
7058b9b4fd27Smrg  ;
7059b9b4fd27Smrg  return 0;
7060b9b4fd27Smrg}
7061b9b4fd27Smrg_ACEOF
7062b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
7063b9b4fd27Smrg  lt_cv_ld_exported_symbols_list=yes
7064b9b4fd27Smrgelse
7065b9b4fd27Smrg  lt_cv_ld_exported_symbols_list=no
7066b9b4fd27Smrgfi
7067b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
7068b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
7069b9b4fd27Smrg	LDFLAGS="$save_LDFLAGS"
7070b9b4fd27Smrg
7071b9b4fd27Smrgfi
7072b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7073b9b4fd27Smrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7074af9a7ee5Smrg
7075e8a5466aSmrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7076e8a5466aSmrg$as_echo_n "checking for -force_load linker flag... " >&6; }
7077e8a5466aSmrgif ${lt_cv_ld_force_load+:} false; then :
7078e8a5466aSmrg  $as_echo_n "(cached) " >&6
7079e8a5466aSmrgelse
7080e8a5466aSmrg  lt_cv_ld_force_load=no
7081e8a5466aSmrg      cat > conftest.c << _LT_EOF
7082e8a5466aSmrgint forced_loaded() { return 2;}
7083e8a5466aSmrg_LT_EOF
7084e8a5466aSmrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7085e8a5466aSmrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7086e8a5466aSmrg      echo "$AR cru libconftest.a conftest.o" >&5
7087e8a5466aSmrg      $AR cru libconftest.a conftest.o 2>&5
7088e8a5466aSmrg      echo "$RANLIB libconftest.a" >&5
7089e8a5466aSmrg      $RANLIB libconftest.a 2>&5
7090e8a5466aSmrg      cat > conftest.c << _LT_EOF
7091e8a5466aSmrgint main() { return 0;}
7092e8a5466aSmrg_LT_EOF
7093e8a5466aSmrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7094e8a5466aSmrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7095e8a5466aSmrg      _lt_result=$?
7096af9a7ee5Smrg      if test -s conftest.err && $GREP force_load conftest.err; then
7097af9a7ee5Smrg	cat conftest.err >&5
7098af9a7ee5Smrg      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7099e8a5466aSmrg	lt_cv_ld_force_load=yes
7100e8a5466aSmrg      else
7101e8a5466aSmrg	cat conftest.err >&5
7102e8a5466aSmrg      fi
7103e8a5466aSmrg        rm -f conftest.err libconftest.a conftest conftest.c
7104e8a5466aSmrg        rm -rf conftest.dSYM
7105e8a5466aSmrg
7106e8a5466aSmrgfi
7107e8a5466aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7108e8a5466aSmrg$as_echo "$lt_cv_ld_force_load" >&6; }
7109b9b4fd27Smrg    case $host_os in
7110b9b4fd27Smrg    rhapsody* | darwin1.[012])
7111b9b4fd27Smrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7112b9b4fd27Smrg    darwin1.*)
7113b9b4fd27Smrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7114b9b4fd27Smrg    darwin*) # darwin 5.x on
7115b9b4fd27Smrg      # if running on 10.5 or later, the deployment target defaults
7116b9b4fd27Smrg      # to the OS version, if on x86, and 10.4, the deployment
7117b9b4fd27Smrg      # target defaults to 10.4. Don't you love it?
7118b9b4fd27Smrg      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7119b9b4fd27Smrg	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7120b9b4fd27Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7121b9b4fd27Smrg	10.[012]*)
7122b9b4fd27Smrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7123b9b4fd27Smrg	10.*)
7124b9b4fd27Smrg	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7125b9b4fd27Smrg      esac
7126b9b4fd27Smrg    ;;
7127485f0483Smrg  esac
7128b9b4fd27Smrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7129b9b4fd27Smrg      _lt_dar_single_mod='$single_module'
7130b9b4fd27Smrg    fi
7131b9b4fd27Smrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7132b9b4fd27Smrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7133485f0483Smrg    else
7134b9b4fd27Smrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7135485f0483Smrg    fi
7136e8a5466aSmrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7137b9b4fd27Smrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
7138b9b4fd27Smrg    else
7139b9b4fd27Smrg      _lt_dsymutil=
7140b9b4fd27Smrg    fi
7141b9b4fd27Smrg    ;;
7142b9b4fd27Smrg  esac
7143b9b4fd27Smrg
7144a5602400Smrgac_ext=c
7145a5602400Smrgac_cpp='$CPP $CPPFLAGS'
7146a5602400Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147a5602400Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148a5602400Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
7149a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7150a5602400Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
7151a5602400Smrg# On Suns, sometimes $CPP names a directory.
7152a5602400Smrgif test -n "$CPP" && test -d "$CPP"; then
7153a5602400Smrg  CPP=
7154a5602400Smrgfi
7155a5602400Smrgif test -z "$CPP"; then
7156a5602400Smrg  if ${ac_cv_prog_CPP+:} false; then :
7157a5602400Smrg  $as_echo_n "(cached) " >&6
7158a5602400Smrgelse
7159a5602400Smrg      # Double quotes because CPP needs to be expanded
7160a5602400Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7161a5602400Smrg    do
7162a5602400Smrg      ac_preproc_ok=false
7163a5602400Smrgfor ac_c_preproc_warn_flag in '' yes
7164a5602400Smrgdo
7165a5602400Smrg  # Use a header file that comes with gcc, so configuring glibc
7166a5602400Smrg  # with a fresh cross-compiler works.
7167a5602400Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168a5602400Smrg  # <limits.h> exists even on freestanding compilers.
7169a5602400Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
7170a5602400Smrg  # not just through cpp. "Syntax error" is here to catch this case.
7171a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172a5602400Smrg/* end confdefs.h.  */
7173a5602400Smrg#ifdef __STDC__
7174a5602400Smrg# include <limits.h>
7175a5602400Smrg#else
7176a5602400Smrg# include <assert.h>
7177a5602400Smrg#endif
7178a5602400Smrg		     Syntax error
7179a5602400Smrg_ACEOF
7180a5602400Smrgif ac_fn_c_try_cpp "$LINENO"; then :
7181a5602400Smrg
7182a5602400Smrgelse
7183a5602400Smrg  # Broken: fails on valid input.
7184a5602400Smrgcontinue
7185a5602400Smrgfi
7186a5602400Smrgrm -f conftest.err conftest.i conftest.$ac_ext
7187a5602400Smrg
7188a5602400Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
7189a5602400Smrg  # can be detected and how.
7190a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191a5602400Smrg/* end confdefs.h.  */
7192a5602400Smrg#include <ac_nonexistent.h>
7193a5602400Smrg_ACEOF
7194a5602400Smrgif ac_fn_c_try_cpp "$LINENO"; then :
7195a5602400Smrg  # Broken: success on invalid input.
7196a5602400Smrgcontinue
7197a5602400Smrgelse
7198a5602400Smrg  # Passes both tests.
7199a5602400Smrgac_preproc_ok=:
7200a5602400Smrgbreak
7201a5602400Smrgfi
7202a5602400Smrgrm -f conftest.err conftest.i conftest.$ac_ext
7203a5602400Smrg
7204a5602400Smrgdone
7205a5602400Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7206a5602400Smrgrm -f conftest.i conftest.err conftest.$ac_ext
7207a5602400Smrgif $ac_preproc_ok; then :
7208a5602400Smrg  break
7209a5602400Smrgfi
7210a5602400Smrg
7211a5602400Smrg    done
7212a5602400Smrg    ac_cv_prog_CPP=$CPP
7213a5602400Smrg
7214a5602400Smrgfi
7215a5602400Smrg  CPP=$ac_cv_prog_CPP
7216a5602400Smrgelse
7217a5602400Smrg  ac_cv_prog_CPP=$CPP
7218a5602400Smrgfi
7219a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7220a5602400Smrg$as_echo "$CPP" >&6; }
7221a5602400Smrgac_preproc_ok=false
7222a5602400Smrgfor ac_c_preproc_warn_flag in '' yes
7223a5602400Smrgdo
7224a5602400Smrg  # Use a header file that comes with gcc, so configuring glibc
7225a5602400Smrg  # with a fresh cross-compiler works.
7226a5602400Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227a5602400Smrg  # <limits.h> exists even on freestanding compilers.
7228a5602400Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
7229a5602400Smrg  # not just through cpp. "Syntax error" is here to catch this case.
7230a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231a5602400Smrg/* end confdefs.h.  */
7232a5602400Smrg#ifdef __STDC__
7233a5602400Smrg# include <limits.h>
7234a5602400Smrg#else
7235a5602400Smrg# include <assert.h>
7236a5602400Smrg#endif
7237a5602400Smrg		     Syntax error
7238a5602400Smrg_ACEOF
7239a5602400Smrgif ac_fn_c_try_cpp "$LINENO"; then :
7240a5602400Smrg
7241a5602400Smrgelse
7242a5602400Smrg  # Broken: fails on valid input.
7243a5602400Smrgcontinue
7244a5602400Smrgfi
7245a5602400Smrgrm -f conftest.err conftest.i conftest.$ac_ext
7246a5602400Smrg
7247a5602400Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
7248a5602400Smrg  # can be detected and how.
7249a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250a5602400Smrg/* end confdefs.h.  */
7251a5602400Smrg#include <ac_nonexistent.h>
7252a5602400Smrg_ACEOF
7253a5602400Smrgif ac_fn_c_try_cpp "$LINENO"; then :
7254a5602400Smrg  # Broken: success on invalid input.
7255a5602400Smrgcontinue
7256a5602400Smrgelse
7257a5602400Smrg  # Passes both tests.
7258a5602400Smrgac_preproc_ok=:
7259a5602400Smrgbreak
7260a5602400Smrgfi
7261a5602400Smrgrm -f conftest.err conftest.i conftest.$ac_ext
7262a5602400Smrg
7263a5602400Smrgdone
7264a5602400Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265a5602400Smrgrm -f conftest.i conftest.err conftest.$ac_ext
7266a5602400Smrgif $ac_preproc_ok; then :
7267a5602400Smrg
7268a5602400Smrgelse
7269a5602400Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7270a5602400Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7271a5602400Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7272a5602400SmrgSee \`config.log' for more details" "$LINENO" 5; }
7273a5602400Smrgfi
7274a5602400Smrg
7275a5602400Smrgac_ext=c
7276a5602400Smrgac_cpp='$CPP $CPPFLAGS'
7277a5602400Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278a5602400Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279a5602400Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
7280a5602400Smrg
7281a5602400Smrg
7282a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7283a5602400Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
7284a5602400Smrgif ${ac_cv_header_stdc+:} false; then :
7285a5602400Smrg  $as_echo_n "(cached) " >&6
7286a5602400Smrgelse
7287a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288a5602400Smrg/* end confdefs.h.  */
7289a5602400Smrg#include <stdlib.h>
7290a5602400Smrg#include <stdarg.h>
7291a5602400Smrg#include <string.h>
7292a5602400Smrg#include <float.h>
7293a5602400Smrg
7294a5602400Smrgint
7295a5602400Smrgmain ()
7296a5602400Smrg{
7297a5602400Smrg
7298a5602400Smrg  ;
7299a5602400Smrg  return 0;
7300a5602400Smrg}
7301a5602400Smrg_ACEOF
7302a5602400Smrgif ac_fn_c_try_compile "$LINENO"; then :
7303a5602400Smrg  ac_cv_header_stdc=yes
7304a5602400Smrgelse
7305a5602400Smrg  ac_cv_header_stdc=no
7306a5602400Smrgfi
7307a5602400Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308a5602400Smrg
7309a5602400Smrgif test $ac_cv_header_stdc = yes; then
7310a5602400Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7311a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312a5602400Smrg/* end confdefs.h.  */
7313a5602400Smrg#include <string.h>
7314a5602400Smrg
7315a5602400Smrg_ACEOF
7316a5602400Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317a5602400Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
7318a5602400Smrg
7319a5602400Smrgelse
7320a5602400Smrg  ac_cv_header_stdc=no
7321a5602400Smrgfi
7322a5602400Smrgrm -f conftest*
7323a5602400Smrg
7324a5602400Smrgfi
7325a5602400Smrg
7326a5602400Smrgif test $ac_cv_header_stdc = yes; then
7327a5602400Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7328a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329a5602400Smrg/* end confdefs.h.  */
7330a5602400Smrg#include <stdlib.h>
7331a5602400Smrg
7332a5602400Smrg_ACEOF
7333a5602400Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7334a5602400Smrg  $EGREP "free" >/dev/null 2>&1; then :
7335a5602400Smrg
7336a5602400Smrgelse
7337a5602400Smrg  ac_cv_header_stdc=no
7338a5602400Smrgfi
7339a5602400Smrgrm -f conftest*
7340a5602400Smrg
7341a5602400Smrgfi
7342a5602400Smrg
7343a5602400Smrgif test $ac_cv_header_stdc = yes; then
7344a5602400Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7345a5602400Smrg  if test "$cross_compiling" = yes; then :
7346a5602400Smrg  :
7347a5602400Smrgelse
7348a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349a5602400Smrg/* end confdefs.h.  */
7350a5602400Smrg#include <ctype.h>
7351a5602400Smrg#include <stdlib.h>
7352a5602400Smrg#if ((' ' & 0x0FF) == 0x020)
7353a5602400Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7354a5602400Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7355a5602400Smrg#else
7356a5602400Smrg# define ISLOWER(c) \
7357a5602400Smrg		   (('a' <= (c) && (c) <= 'i') \
7358a5602400Smrg		     || ('j' <= (c) && (c) <= 'r') \
7359a5602400Smrg		     || ('s' <= (c) && (c) <= 'z'))
7360a5602400Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7361a5602400Smrg#endif
7362a5602400Smrg
7363a5602400Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7364a5602400Smrgint
7365a5602400Smrgmain ()
7366a5602400Smrg{
7367a5602400Smrg  int i;
7368a5602400Smrg  for (i = 0; i < 256; i++)
7369a5602400Smrg    if (XOR (islower (i), ISLOWER (i))
7370a5602400Smrg	|| toupper (i) != TOUPPER (i))
7371a5602400Smrg      return 2;
7372a5602400Smrg  return 0;
7373a5602400Smrg}
7374a5602400Smrg_ACEOF
7375a5602400Smrgif ac_fn_c_try_run "$LINENO"; then :
7376a5602400Smrg
7377a5602400Smrgelse
7378a5602400Smrg  ac_cv_header_stdc=no
7379a5602400Smrgfi
7380a5602400Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7381a5602400Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
7382a5602400Smrgfi
7383a5602400Smrg
7384a5602400Smrgfi
7385a5602400Smrgfi
7386a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7387a5602400Smrg$as_echo "$ac_cv_header_stdc" >&6; }
7388a5602400Smrgif test $ac_cv_header_stdc = yes; then
7389a5602400Smrg
7390a5602400Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7391a5602400Smrg
7392a5602400Smrgfi
7393a5602400Smrg
7394a5602400Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7395a5602400Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7396a5602400Smrg		  inttypes.h stdint.h unistd.h
7397a5602400Smrgdo :
7398a5602400Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7399a5602400Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7400a5602400Smrg"
7401a5602400Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7402a5602400Smrg  cat >>confdefs.h <<_ACEOF
7403a5602400Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7404a5602400Smrg_ACEOF
7405a5602400Smrg
7406a5602400Smrgfi
7407a5602400Smrg
7408a5602400Smrgdone
7409a5602400Smrg
7410a5602400Smrg
7411b9b4fd27Smrgfor ac_header in dlfcn.h
7412b9b4fd27Smrgdo :
7413b9b4fd27Smrg  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7414b9b4fd27Smrg"
7415e8a5466aSmrgif test "x$ac_cv_header_dlfcn_h" = xyes; then :
7416b9b4fd27Smrg  cat >>confdefs.h <<_ACEOF
7417b9b4fd27Smrg#define HAVE_DLFCN_H 1
7418b9b4fd27Smrg_ACEOF
7419b9b4fd27Smrg
7420caade7ccSmrgfi
7421caade7ccSmrg
7422b9b4fd27Smrgdone
7423caade7ccSmrg
7424caade7ccSmrg
7425caade7ccSmrg
7426e8a5466aSmrg
7427e8a5466aSmrg
7428b9b4fd27Smrg# Set options
7429caade7ccSmrg
7430caade7ccSmrg
7431caade7ccSmrg
7432b9b4fd27Smrg        enable_dlopen=no
7433caade7ccSmrg
7434caade7ccSmrg
7435b9b4fd27Smrg  enable_win32_dll=no
7436caade7ccSmrg
7437b9b4fd27Smrg
7438b9b4fd27Smrg            # Check whether --enable-shared was given.
7439b9b4fd27Smrgif test "${enable_shared+set}" = set; then :
7440b9b4fd27Smrg  enableval=$enable_shared; p=${PACKAGE-default}
7441b9b4fd27Smrg    case $enableval in
7442b9b4fd27Smrg    yes) enable_shared=yes ;;
7443b9b4fd27Smrg    no) enable_shared=no ;;
7444b9b4fd27Smrg    *)
7445b9b4fd27Smrg      enable_shared=no
7446b9b4fd27Smrg      # Look at the argument we got.  We use all the common list separators.
7447b9b4fd27Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448b9b4fd27Smrg      for pkg in $enableval; do
7449b9b4fd27Smrg	IFS="$lt_save_ifs"
7450b9b4fd27Smrg	if test "X$pkg" = "X$p"; then
7451b9b4fd27Smrg	  enable_shared=yes
7452b9b4fd27Smrg	fi
7453b9b4fd27Smrg      done
7454b9b4fd27Smrg      IFS="$lt_save_ifs"
7455caade7ccSmrg      ;;
7456caade7ccSmrg    esac
7457b9b4fd27Smrgelse
7458b9b4fd27Smrg  enable_shared=yes
7459b9b4fd27Smrgfi
7460caade7ccSmrg
7461485f0483Smrg
7462caade7ccSmrg
7463caade7ccSmrg
7464caade7ccSmrg
7465caade7ccSmrg
7466caade7ccSmrg
7467caade7ccSmrg
7468caade7ccSmrg
7469b9b4fd27Smrg  # Check whether --enable-static was given.
7470b9b4fd27Smrgif test "${enable_static+set}" = set; then :
7471b9b4fd27Smrg  enableval=$enable_static; p=${PACKAGE-default}
7472b9b4fd27Smrg    case $enableval in
7473b9b4fd27Smrg    yes) enable_static=yes ;;
7474b9b4fd27Smrg    no) enable_static=no ;;
7475caade7ccSmrg    *)
7476b9b4fd27Smrg     enable_static=no
7477b9b4fd27Smrg      # Look at the argument we got.  We use all the common list separators.
7478b9b4fd27Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7479b9b4fd27Smrg      for pkg in $enableval; do
7480b9b4fd27Smrg	IFS="$lt_save_ifs"
7481b9b4fd27Smrg	if test "X$pkg" = "X$p"; then
7482b9b4fd27Smrg	  enable_static=yes
7483b9b4fd27Smrg	fi
7484b9b4fd27Smrg      done
7485b9b4fd27Smrg      IFS="$lt_save_ifs"
7486b9b4fd27Smrg      ;;
7487caade7ccSmrg    esac
7488b9b4fd27Smrgelse
7489b9b4fd27Smrg  enable_static=yes
7490b9b4fd27Smrgfi
7491caade7ccSmrg
7492caade7ccSmrg
7493caade7ccSmrg
7494caade7ccSmrg
7495caade7ccSmrg
7496caade7ccSmrg
7497caade7ccSmrg
7498caade7ccSmrg
7499caade7ccSmrg
7500caade7ccSmrg
7501b9b4fd27Smrg# Check whether --with-pic was given.
7502b9b4fd27Smrgif test "${with_pic+set}" = set; then :
7503af9a7ee5Smrg  withval=$with_pic; lt_p=${PACKAGE-default}
7504af9a7ee5Smrg    case $withval in
7505af9a7ee5Smrg    yes|no) pic_mode=$withval ;;
7506af9a7ee5Smrg    *)
7507af9a7ee5Smrg      pic_mode=default
7508af9a7ee5Smrg      # Look at the argument we got.  We use all the common list separators.
7509af9a7ee5Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7510af9a7ee5Smrg      for lt_pkg in $withval; do
7511af9a7ee5Smrg	IFS="$lt_save_ifs"
7512af9a7ee5Smrg	if test "X$lt_pkg" = "X$lt_p"; then
7513af9a7ee5Smrg	  pic_mode=yes
7514af9a7ee5Smrg	fi
7515af9a7ee5Smrg      done
7516af9a7ee5Smrg      IFS="$lt_save_ifs"
7517af9a7ee5Smrg      ;;
7518af9a7ee5Smrg    esac
7519b9b4fd27Smrgelse
7520b9b4fd27Smrg  pic_mode=default
7521b9b4fd27Smrgfi
7522caade7ccSmrg
7523485f0483Smrg
7524b9b4fd27Smrgtest -z "$pic_mode" && pic_mode=default
7525caade7ccSmrg
7526caade7ccSmrg
7527caade7ccSmrg
7528caade7ccSmrg
7529caade7ccSmrg
7530caade7ccSmrg
7531caade7ccSmrg
7532b9b4fd27Smrg  # Check whether --enable-fast-install was given.
7533b9b4fd27Smrgif test "${enable_fast_install+set}" = set; then :
7534b9b4fd27Smrg  enableval=$enable_fast_install; p=${PACKAGE-default}
7535b9b4fd27Smrg    case $enableval in
7536b9b4fd27Smrg    yes) enable_fast_install=yes ;;
7537b9b4fd27Smrg    no) enable_fast_install=no ;;
7538b9b4fd27Smrg    *)
7539b9b4fd27Smrg      enable_fast_install=no
7540b9b4fd27Smrg      # Look at the argument we got.  We use all the common list separators.
7541b9b4fd27Smrg      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7542b9b4fd27Smrg      for pkg in $enableval; do
7543b9b4fd27Smrg	IFS="$lt_save_ifs"
7544b9b4fd27Smrg	if test "X$pkg" = "X$p"; then
7545b9b4fd27Smrg	  enable_fast_install=yes
7546b9b4fd27Smrg	fi
7547b9b4fd27Smrg      done
7548b9b4fd27Smrg      IFS="$lt_save_ifs"
7549b9b4fd27Smrg      ;;
7550b9b4fd27Smrg    esac
7551485f0483Smrgelse
7552b9b4fd27Smrg  enable_fast_install=yes
7553485f0483Smrgfi
7554485f0483Smrg
7555485f0483Smrg
7556485f0483Smrg
7557caade7ccSmrg
7558caade7ccSmrg
7559caade7ccSmrg
7560caade7ccSmrg
7561caade7ccSmrg
7562caade7ccSmrg
7563caade7ccSmrg
7564caade7ccSmrg
7565b9b4fd27Smrg# This can be used to rebuild libtool when needed
7566b9b4fd27SmrgLIBTOOL_DEPS="$ltmain"
7567caade7ccSmrg
7568b9b4fd27Smrg# Always use our own libtool.
7569b9b4fd27SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
7570caade7ccSmrg
7571caade7ccSmrg
7572caade7ccSmrg
7573caade7ccSmrg
7574caade7ccSmrg
7575caade7ccSmrg
7576caade7ccSmrg
7577caade7ccSmrg
7578caade7ccSmrg
7579caade7ccSmrg
7580caade7ccSmrg
7581caade7ccSmrg
7582caade7ccSmrg
7583caade7ccSmrg
7584caade7ccSmrg
7585caade7ccSmrg
7586caade7ccSmrg
7587caade7ccSmrg
7588caade7ccSmrg
7589caade7ccSmrg
7590caade7ccSmrg
7591af9a7ee5Smrg
7592af9a7ee5Smrg
7593af9a7ee5Smrg
7594af9a7ee5Smrg
7595caade7ccSmrg
7596caade7ccSmrg
7597e8a5466aSmrg
7598caade7ccSmrg
7599b9b4fd27Smrg
7600b9b4fd27Smrgtest -z "$LN_S" && LN_S="ln -s"
7601b9b4fd27Smrg
7602b9b4fd27Smrg
7603b9b4fd27Smrg
7604b9b4fd27Smrg
7605b9b4fd27Smrg
7606b9b4fd27Smrg
7607b9b4fd27Smrg
7608b9b4fd27Smrg
7609b9b4fd27Smrg
7610b9b4fd27Smrg
7611b9b4fd27Smrg
7612b9b4fd27Smrg
7613b9b4fd27Smrg
7614b9b4fd27Smrg
7615b9b4fd27Smrgif test -n "${ZSH_VERSION+set}" ; then
7616b9b4fd27Smrg   setopt NO_GLOB_SUBST
7617caade7ccSmrgfi
7618b9b4fd27Smrg
7619b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7620b9b4fd27Smrg$as_echo_n "checking for objdir... " >&6; }
7621e8a5466aSmrgif ${lt_cv_objdir+:} false; then :
7622485f0483Smrg  $as_echo_n "(cached) " >&6
7623caade7ccSmrgelse
7624b9b4fd27Smrg  rm -f .libs 2>/dev/null
7625b9b4fd27Smrgmkdir .libs 2>/dev/null
7626b9b4fd27Smrgif test -d .libs; then
7627b9b4fd27Smrg  lt_cv_objdir=.libs
7628b9b4fd27Smrgelse
7629b9b4fd27Smrg  # MS-DOS does not allow filenames that begin with a dot.
7630b9b4fd27Smrg  lt_cv_objdir=_libs
7631b9b4fd27Smrgfi
7632b9b4fd27Smrgrmdir .libs 2>/dev/null
7633b9b4fd27Smrgfi
7634b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7635b9b4fd27Smrg$as_echo "$lt_cv_objdir" >&6; }
7636b9b4fd27Smrgobjdir=$lt_cv_objdir
7637caade7ccSmrg
7638b9b4fd27Smrg
7639b9b4fd27Smrg
7640b9b4fd27Smrg
7641b9b4fd27Smrg
7642b9b4fd27Smrgcat >>confdefs.h <<_ACEOF
7643b9b4fd27Smrg#define LT_OBJDIR "$lt_cv_objdir/"
7644e8a5466aSmrg_ACEOF
7645caade7ccSmrg
7646caade7ccSmrg
7647caade7ccSmrg
7648caade7ccSmrg
7649b9b4fd27Smrgcase $host_os in
7650b9b4fd27Smrgaix3*)
7651b9b4fd27Smrg  # AIX sometimes has problems with the GCC collect2 program.  For some
7652b9b4fd27Smrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
7653b9b4fd27Smrg  # vanish in a puff of smoke.
7654b9b4fd27Smrg  if test "X${COLLECT_NAMES+set}" != Xset; then
7655b9b4fd27Smrg    COLLECT_NAMES=
7656b9b4fd27Smrg    export COLLECT_NAMES
7657caade7ccSmrg  fi
7658b9b4fd27Smrg  ;;
7659b9b4fd27Smrgesac
7660caade7ccSmrg
7661b9b4fd27Smrg# Global variables:
7662b9b4fd27Smrgofile=libtool
7663b9b4fd27Smrgcan_build_shared=yes
7664caade7ccSmrg
7665b9b4fd27Smrg# All known linkers require a `.a' archive for static linking (except MSVC,
7666b9b4fd27Smrg# which needs '.lib').
7667b9b4fd27Smrglibext=a
7668caade7ccSmrg
7669b9b4fd27Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
7670caade7ccSmrg
7671b9b4fd27Smrgold_CC="$CC"
7672b9b4fd27Smrgold_CFLAGS="$CFLAGS"
7673caade7ccSmrg
7674b9b4fd27Smrg# Set sane defaults for various variables
7675b9b4fd27Smrgtest -z "$CC" && CC=cc
7676b9b4fd27Smrgtest -z "$LTCC" && LTCC=$CC
7677b9b4fd27Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7678b9b4fd27Smrgtest -z "$LD" && LD=ld
7679b9b4fd27Smrgtest -z "$ac_objext" && ac_objext=o
7680caade7ccSmrg
7681b9b4fd27Smrgfor cc_temp in $compiler""; do
7682b9b4fd27Smrg  case $cc_temp in
7683b9b4fd27Smrg    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7684b9b4fd27Smrg    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7685b9b4fd27Smrg    \-*) ;;
7686b9b4fd27Smrg    *) break;;
7687b9b4fd27Smrg  esac
7688b9b4fd27Smrgdone
7689e8a5466aSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7690caade7ccSmrg
7691caade7ccSmrg
7692b9b4fd27Smrg# Only perform the check for file, if the check method requires it
7693b9b4fd27Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
7694b9b4fd27Smrgcase $deplibs_check_method in
7695b9b4fd27Smrgfile_magic*)
7696b9b4fd27Smrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7697b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7698b9b4fd27Smrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7699e8a5466aSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
7700485f0483Smrg  $as_echo_n "(cached) " >&6
7701caade7ccSmrgelse
7702b9b4fd27Smrg  case $MAGIC_CMD in
7703b9b4fd27Smrg[\\/*] |  ?:[\\/]*)
7704b9b4fd27Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7705b9b4fd27Smrg  ;;
7706b9b4fd27Smrg*)
7707b9b4fd27Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
7708b9b4fd27Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7709b9b4fd27Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7710b9b4fd27Smrg  for ac_dir in $ac_dummy; do
7711b9b4fd27Smrg    IFS="$lt_save_ifs"
7712b9b4fd27Smrg    test -z "$ac_dir" && ac_dir=.
7713b9b4fd27Smrg    if test -f $ac_dir/${ac_tool_prefix}file; then
7714b9b4fd27Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7715b9b4fd27Smrg      if test -n "$file_magic_test_file"; then
7716b9b4fd27Smrg	case $deplibs_check_method in
7717b9b4fd27Smrg	"file_magic "*)
7718b9b4fd27Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7719b9b4fd27Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720b9b4fd27Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7721b9b4fd27Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
7722b9b4fd27Smrg	    :
7723b9b4fd27Smrg	  else
7724b9b4fd27Smrg	    cat <<_LT_EOF 1>&2
7725caade7ccSmrg
7726b9b4fd27Smrg*** Warning: the command libtool uses to detect shared libraries,
7727b9b4fd27Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
7728b9b4fd27Smrg*** The result is that libtool may fail to recognize shared libraries
7729b9b4fd27Smrg*** as such.  This will affect the creation of libtool libraries that
7730b9b4fd27Smrg*** depend on shared libraries, but programs linked with such libtool
7731b9b4fd27Smrg*** libraries will work regardless of this problem.  Nevertheless, you
7732b9b4fd27Smrg*** may want to report the problem to your system manager and/or to
7733b9b4fd27Smrg*** bug-libtool@gnu.org
7734caade7ccSmrg
7735b9b4fd27Smrg_LT_EOF
7736b9b4fd27Smrg	  fi ;;
7737b9b4fd27Smrg	esac
7738b9b4fd27Smrg      fi
7739b9b4fd27Smrg      break
7740b9b4fd27Smrg    fi
7741b9b4fd27Smrg  done
7742b9b4fd27Smrg  IFS="$lt_save_ifs"
7743b9b4fd27Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
7744b9b4fd27Smrg  ;;
7745b9b4fd27Smrgesac
7746b9b4fd27Smrgfi
7747caade7ccSmrg
7748b9b4fd27SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7749b9b4fd27Smrgif test -n "$MAGIC_CMD"; then
7750b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7751b9b4fd27Smrg$as_echo "$MAGIC_CMD" >&6; }
7752b9b4fd27Smrgelse
7753b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754b9b4fd27Smrg$as_echo "no" >&6; }
7755b9b4fd27Smrgfi
7756caade7ccSmrg
7757caade7ccSmrg
7758caade7ccSmrg
7759caade7ccSmrg
7760caade7ccSmrg
7761b9b4fd27Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then
7762b9b4fd27Smrg  if test -n "$ac_tool_prefix"; then
7763b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7764b9b4fd27Smrg$as_echo_n "checking for file... " >&6; }
7765e8a5466aSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then :
7766b9b4fd27Smrg  $as_echo_n "(cached) " >&6
7767b9b4fd27Smrgelse
7768b9b4fd27Smrg  case $MAGIC_CMD in
7769b9b4fd27Smrg[\\/*] |  ?:[\\/]*)
7770b9b4fd27Smrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7771b9b4fd27Smrg  ;;
7772b9b4fd27Smrg*)
7773b9b4fd27Smrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
7774b9b4fd27Smrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7775b9b4fd27Smrg  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7776b9b4fd27Smrg  for ac_dir in $ac_dummy; do
7777b9b4fd27Smrg    IFS="$lt_save_ifs"
7778b9b4fd27Smrg    test -z "$ac_dir" && ac_dir=.
7779b9b4fd27Smrg    if test -f $ac_dir/file; then
7780b9b4fd27Smrg      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7781b9b4fd27Smrg      if test -n "$file_magic_test_file"; then
7782b9b4fd27Smrg	case $deplibs_check_method in
7783b9b4fd27Smrg	"file_magic "*)
7784b9b4fd27Smrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7785b9b4fd27Smrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7786b9b4fd27Smrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7787b9b4fd27Smrg	    $EGREP "$file_magic_regex" > /dev/null; then
7788b9b4fd27Smrg	    :
7789b9b4fd27Smrg	  else
7790b9b4fd27Smrg	    cat <<_LT_EOF 1>&2
7791caade7ccSmrg
7792b9b4fd27Smrg*** Warning: the command libtool uses to detect shared libraries,
7793b9b4fd27Smrg*** $file_magic_cmd, produces output that libtool cannot recognize.
7794b9b4fd27Smrg*** The result is that libtool may fail to recognize shared libraries
7795b9b4fd27Smrg*** as such.  This will affect the creation of libtool libraries that
7796b9b4fd27Smrg*** depend on shared libraries, but programs linked with such libtool
7797b9b4fd27Smrg*** libraries will work regardless of this problem.  Nevertheless, you
7798b9b4fd27Smrg*** may want to report the problem to your system manager and/or to
7799b9b4fd27Smrg*** bug-libtool@gnu.org
7800caade7ccSmrg
7801b9b4fd27Smrg_LT_EOF
7802b9b4fd27Smrg	  fi ;;
7803b9b4fd27Smrg	esac
7804b9b4fd27Smrg      fi
7805b9b4fd27Smrg      break
7806caade7ccSmrg    fi
7807b9b4fd27Smrg  done
7808b9b4fd27Smrg  IFS="$lt_save_ifs"
7809b9b4fd27Smrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
7810b9b4fd27Smrg  ;;
7811b9b4fd27Smrgesac
7812caade7ccSmrgfi
7813caade7ccSmrg
7814b9b4fd27SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7815b9b4fd27Smrgif test -n "$MAGIC_CMD"; then
7816b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7817b9b4fd27Smrg$as_echo "$MAGIC_CMD" >&6; }
7818b9b4fd27Smrgelse
7819b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820b9b4fd27Smrg$as_echo "no" >&6; }
7821b9b4fd27Smrgfi
7822caade7ccSmrg
7823caade7ccSmrg
7824b9b4fd27Smrg  else
7825b9b4fd27Smrg    MAGIC_CMD=:
7826caade7ccSmrg  fi
7827b9b4fd27Smrgfi
7828caade7ccSmrg
7829caade7ccSmrg  fi
7830b9b4fd27Smrg  ;;
7831caade7ccSmrgesac
7832caade7ccSmrg
7833b9b4fd27Smrg# Use C for the default configuration in the libtool script
7834caade7ccSmrg
7835b9b4fd27Smrglt_save_CC="$CC"
7836b9b4fd27Smrgac_ext=c
7837b9b4fd27Smrgac_cpp='$CPP $CPPFLAGS'
7838b9b4fd27Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839b9b4fd27Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840b9b4fd27Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
7841caade7ccSmrg
7842caade7ccSmrg
7843b9b4fd27Smrg# Source file extension for C test sources.
7844b9b4fd27Smrgac_ext=c
7845caade7ccSmrg
7846b9b4fd27Smrg# Object file extension for compiled C test sources.
7847b9b4fd27Smrgobjext=o
7848b9b4fd27Smrgobjext=$objext
7849caade7ccSmrg
7850b9b4fd27Smrg# Code to be used in simple compile tests
7851b9b4fd27Smrglt_simple_compile_test_code="int some_variable = 0;"
7852caade7ccSmrg
7853b9b4fd27Smrg# Code to be used in simple link tests
7854b9b4fd27Smrglt_simple_link_test_code='int main(){return(0);}'
7855caade7ccSmrg
7856caade7ccSmrg
7857caade7ccSmrg
7858caade7ccSmrg
7859caade7ccSmrg
7860caade7ccSmrg
7861caade7ccSmrg
7862b9b4fd27Smrg# If no C compiler was specified, use CC.
7863b9b4fd27SmrgLTCC=${LTCC-"$CC"}
7864caade7ccSmrg
7865b9b4fd27Smrg# If no C compiler flags were specified, use CFLAGS.
7866b9b4fd27SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7867caade7ccSmrg
7868b9b4fd27Smrg# Allow CC to be a program name with arguments.
7869b9b4fd27Smrgcompiler=$CC
7870caade7ccSmrg
7871b9b4fd27Smrg# Save the default compiler, since it gets overwritten when the other
7872b9b4fd27Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7873b9b4fd27Smrgcompiler_DEFAULT=$CC
7874caade7ccSmrg
7875b9b4fd27Smrg# save warnings/boilerplate of simple test code
7876b9b4fd27Smrgac_outfile=conftest.$ac_objext
7877b9b4fd27Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
7878b9b4fd27Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7879b9b4fd27Smrg_lt_compiler_boilerplate=`cat conftest.err`
7880b9b4fd27Smrg$RM conftest*
7881caade7ccSmrg
7882b9b4fd27Smrgac_outfile=conftest.$ac_objext
7883b9b4fd27Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
7884b9b4fd27Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7885b9b4fd27Smrg_lt_linker_boilerplate=`cat conftest.err`
7886b9b4fd27Smrg$RM -r conftest*
7887caade7ccSmrg
7888caade7ccSmrg
7889b9b4fd27Smrgif test -n "$compiler"; then
7890caade7ccSmrg
7891b9b4fd27Smrglt_prog_compiler_no_builtin_flag=
7892caade7ccSmrg
7893b9b4fd27Smrgif test "$GCC" = yes; then
7894e8a5466aSmrg  case $cc_basename in
7895e8a5466aSmrg  nvcc*)
7896e8a5466aSmrg    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7897e8a5466aSmrg  *)
7898e8a5466aSmrg    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7899e8a5466aSmrg  esac
7900caade7ccSmrg
7901b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7902b9b4fd27Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7903e8a5466aSmrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7904b9b4fd27Smrg  $as_echo_n "(cached) " >&6
7905b9b4fd27Smrgelse
7906b9b4fd27Smrg  lt_cv_prog_compiler_rtti_exceptions=no
7907b9b4fd27Smrg   ac_outfile=conftest.$ac_objext
7908b9b4fd27Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7909b9b4fd27Smrg   lt_compiler_flag="-fno-rtti -fno-exceptions"
7910b9b4fd27Smrg   # Insert the option either (1) after the last *FLAGS variable, or
7911b9b4fd27Smrg   # (2) before a word containing "conftest.", or (3) at the end.
7912b9b4fd27Smrg   # Note that $ac_compile itself does not contain backslashes and begins
7913b9b4fd27Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
7914b9b4fd27Smrg   # The option is referenced via a variable to avoid confusing sed.
7915b9b4fd27Smrg   lt_compile=`echo "$ac_compile" | $SED \
7916b9b4fd27Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917b9b4fd27Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918b9b4fd27Smrg   -e 's:$: $lt_compiler_flag:'`
7919e8a5466aSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7920b9b4fd27Smrg   (eval "$lt_compile" 2>conftest.err)
7921b9b4fd27Smrg   ac_status=$?
7922b9b4fd27Smrg   cat conftest.err >&5
7923e8a5466aSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924b9b4fd27Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
7925b9b4fd27Smrg     # The compiler can only warn and ignore the option if not recognized
7926b9b4fd27Smrg     # So say no if there are warnings other than the usual output.
7927e8a5466aSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7928b9b4fd27Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7929b9b4fd27Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7930b9b4fd27Smrg       lt_cv_prog_compiler_rtti_exceptions=yes
7931b9b4fd27Smrg     fi
7932b9b4fd27Smrg   fi
7933b9b4fd27Smrg   $RM conftest*
7934caade7ccSmrg
7935b9b4fd27Smrgfi
7936b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7937b9b4fd27Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7938caade7ccSmrg
7939b9b4fd27Smrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7940b9b4fd27Smrg    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7941b9b4fd27Smrgelse
7942b9b4fd27Smrg    :
7943b9b4fd27Smrgfi
7944caade7ccSmrg
7945b9b4fd27Smrgfi
7946caade7ccSmrg
7947caade7ccSmrg
7948caade7ccSmrg
7949caade7ccSmrg
7950caade7ccSmrg
7951caade7ccSmrg
7952b9b4fd27Smrg  lt_prog_compiler_wl=
7953b9b4fd27Smrglt_prog_compiler_pic=
7954b9b4fd27Smrglt_prog_compiler_static=
7955caade7ccSmrg
7956caade7ccSmrg
7957b9b4fd27Smrg  if test "$GCC" = yes; then
7958b9b4fd27Smrg    lt_prog_compiler_wl='-Wl,'
7959b9b4fd27Smrg    lt_prog_compiler_static='-static'
7960caade7ccSmrg
7961b9b4fd27Smrg    case $host_os in
7962b9b4fd27Smrg      aix*)
7963b9b4fd27Smrg      # All AIX code is PIC.
7964b9b4fd27Smrg      if test "$host_cpu" = ia64; then
7965b9b4fd27Smrg	# AIX 5 now supports IA64 processor
7966b9b4fd27Smrg	lt_prog_compiler_static='-Bstatic'
7967b9b4fd27Smrg      fi
7968b9b4fd27Smrg      ;;
7969caade7ccSmrg
7970b9b4fd27Smrg    amigaos*)
7971b9b4fd27Smrg      case $host_cpu in
7972b9b4fd27Smrg      powerpc)
7973b9b4fd27Smrg            # see comment about AmigaOS4 .so support
7974b9b4fd27Smrg            lt_prog_compiler_pic='-fPIC'
7975b9b4fd27Smrg        ;;
7976b9b4fd27Smrg      m68k)
7977b9b4fd27Smrg            # FIXME: we need at least 68020 code to build shared libraries, but
7978b9b4fd27Smrg            # adding the `-m68020' flag to GCC prevents building anything better,
7979b9b4fd27Smrg            # like `-m68040'.
7980b9b4fd27Smrg            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7981b9b4fd27Smrg        ;;
7982b9b4fd27Smrg      esac
7983b9b4fd27Smrg      ;;
7984caade7ccSmrg
7985b9b4fd27Smrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7986b9b4fd27Smrg      # PIC is the default for these OSes.
7987b9b4fd27Smrg      ;;
7988caade7ccSmrg
7989b9b4fd27Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
7990b9b4fd27Smrg      # This hack is so that the source file can tell whether it is being
7991b9b4fd27Smrg      # built for inclusion in a dll (and should export symbols for example).
7992b9b4fd27Smrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7993b9b4fd27Smrg      # (--disable-auto-import) libraries
7994b9b4fd27Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
7995b9b4fd27Smrg      ;;
7996caade7ccSmrg
7997b9b4fd27Smrg    darwin* | rhapsody*)
7998b9b4fd27Smrg      # PIC is the default on this platform
7999b9b4fd27Smrg      # Common symbols not allowed in MH_DYLIB files
8000b9b4fd27Smrg      lt_prog_compiler_pic='-fno-common'
8001b9b4fd27Smrg      ;;
8002caade7ccSmrg
8003e8a5466aSmrg    haiku*)
8004e8a5466aSmrg      # PIC is the default for Haiku.
8005e8a5466aSmrg      # The "-static" flag exists, but is broken.
8006e8a5466aSmrg      lt_prog_compiler_static=
8007e8a5466aSmrg      ;;
8008e8a5466aSmrg
8009b9b4fd27Smrg    hpux*)
8010b9b4fd27Smrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8011b9b4fd27Smrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8012b9b4fd27Smrg      # sets the default TLS model and affects inlining.
8013b9b4fd27Smrg      case $host_cpu in
8014b9b4fd27Smrg      hppa*64*)
8015b9b4fd27Smrg	# +Z the default
8016b9b4fd27Smrg	;;
8017b9b4fd27Smrg      *)
8018b9b4fd27Smrg	lt_prog_compiler_pic='-fPIC'
8019b9b4fd27Smrg	;;
8020b9b4fd27Smrg      esac
8021b9b4fd27Smrg      ;;
8022caade7ccSmrg
8023b9b4fd27Smrg    interix[3-9]*)
8024b9b4fd27Smrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8025b9b4fd27Smrg      # Instead, we relocate shared libraries at runtime.
8026b9b4fd27Smrg      ;;
8027caade7ccSmrg
8028b9b4fd27Smrg    msdosdjgpp*)
8029b9b4fd27Smrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
8030b9b4fd27Smrg      # on systems that don't support them.
8031b9b4fd27Smrg      lt_prog_compiler_can_build_shared=no
8032b9b4fd27Smrg      enable_shared=no
8033b9b4fd27Smrg      ;;
8034caade7ccSmrg
8035b9b4fd27Smrg    *nto* | *qnx*)
8036b9b4fd27Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
8037b9b4fd27Smrg      # it will coredump.
8038b9b4fd27Smrg      lt_prog_compiler_pic='-fPIC -shared'
8039b9b4fd27Smrg      ;;
8040caade7ccSmrg
8041b9b4fd27Smrg    sysv4*MP*)
8042b9b4fd27Smrg      if test -d /usr/nec; then
8043b9b4fd27Smrg	lt_prog_compiler_pic=-Kconform_pic
8044b9b4fd27Smrg      fi
8045b9b4fd27Smrg      ;;
8046caade7ccSmrg
8047b9b4fd27Smrg    *)
8048b9b4fd27Smrg      lt_prog_compiler_pic='-fPIC'
8049b9b4fd27Smrg      ;;
8050b9b4fd27Smrg    esac
8051e8a5466aSmrg
8052e8a5466aSmrg    case $cc_basename in
8053e8a5466aSmrg    nvcc*) # Cuda Compiler Driver 2.2
8054e8a5466aSmrg      lt_prog_compiler_wl='-Xlinker '
8055af9a7ee5Smrg      if test -n "$lt_prog_compiler_pic"; then
8056af9a7ee5Smrg        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8057af9a7ee5Smrg      fi
8058e8a5466aSmrg      ;;
8059e8a5466aSmrg    esac
8060b9b4fd27Smrg  else
8061b9b4fd27Smrg    # PORTME Check for flag to pass linker flags through the system compiler.
8062b9b4fd27Smrg    case $host_os in
8063b9b4fd27Smrg    aix*)
8064b9b4fd27Smrg      lt_prog_compiler_wl='-Wl,'
8065b9b4fd27Smrg      if test "$host_cpu" = ia64; then
8066b9b4fd27Smrg	# AIX 5 now supports IA64 processor
8067b9b4fd27Smrg	lt_prog_compiler_static='-Bstatic'
8068b9b4fd27Smrg      else
8069b9b4fd27Smrg	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8070b9b4fd27Smrg      fi
8071b9b4fd27Smrg      ;;
8072caade7ccSmrg
8073b9b4fd27Smrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
8074b9b4fd27Smrg      # This hack is so that the source file can tell whether it is being
8075b9b4fd27Smrg      # built for inclusion in a dll (and should export symbols for example).
8076b9b4fd27Smrg      lt_prog_compiler_pic='-DDLL_EXPORT'
8077b9b4fd27Smrg      ;;
8078caade7ccSmrg
8079b9b4fd27Smrg    hpux9* | hpux10* | hpux11*)
8080b9b4fd27Smrg      lt_prog_compiler_wl='-Wl,'
8081b9b4fd27Smrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8082b9b4fd27Smrg      # not for PA HP-UX.
8083b9b4fd27Smrg      case $host_cpu in
8084b9b4fd27Smrg      hppa*64*|ia64*)
8085b9b4fd27Smrg	# +Z the default
8086b9b4fd27Smrg	;;
8087b9b4fd27Smrg      *)
8088b9b4fd27Smrg	lt_prog_compiler_pic='+Z'
8089b9b4fd27Smrg	;;
8090b9b4fd27Smrg      esac
8091b9b4fd27Smrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8092b9b4fd27Smrg      lt_prog_compiler_static='${wl}-a ${wl}archive'
8093b9b4fd27Smrg      ;;
8094caade7ccSmrg
8095b9b4fd27Smrg    irix5* | irix6* | nonstopux*)
8096b9b4fd27Smrg      lt_prog_compiler_wl='-Wl,'
8097b9b4fd27Smrg      # PIC (with -KPIC) is the default.
8098b9b4fd27Smrg      lt_prog_compiler_static='-non_shared'
8099b9b4fd27Smrg      ;;
8100caade7ccSmrg
8101e8a5466aSmrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8102b9b4fd27Smrg      case $cc_basename in
8103b9b4fd27Smrg      # old Intel for x86_64 which still supported -KPIC.
8104b9b4fd27Smrg      ecc*)
8105b9b4fd27Smrg	lt_prog_compiler_wl='-Wl,'
8106b9b4fd27Smrg	lt_prog_compiler_pic='-KPIC'
8107b9b4fd27Smrg	lt_prog_compiler_static='-static'
8108b9b4fd27Smrg        ;;
8109b9b4fd27Smrg      # icc used to be incompatible with GCC.
8110b9b4fd27Smrg      # ICC 10 doesn't accept -KPIC any more.
8111b9b4fd27Smrg      icc* | ifort*)
8112b9b4fd27Smrg	lt_prog_compiler_wl='-Wl,'
8113b9b4fd27Smrg	lt_prog_compiler_pic='-fPIC'
8114b9b4fd27Smrg	lt_prog_compiler_static='-static'
8115b9b4fd27Smrg        ;;
8116b9b4fd27Smrg      # Lahey Fortran 8.1.
8117b9b4fd27Smrg      lf95*)
8118b9b4fd27Smrg	lt_prog_compiler_wl='-Wl,'
8119b9b4fd27Smrg	lt_prog_compiler_pic='--shared'
8120b9b4fd27Smrg	lt_prog_compiler_static='--static'
8121b9b4fd27Smrg	;;
8122a5602400Smrg      nagfor*)
8123a5602400Smrg	# NAG Fortran compiler
8124a5602400Smrg	lt_prog_compiler_wl='-Wl,-Wl,,'
8125a5602400Smrg	lt_prog_compiler_pic='-PIC'
8126a5602400Smrg	lt_prog_compiler_static='-Bstatic'
8127a5602400Smrg	;;
8128e8a5466aSmrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8129b9b4fd27Smrg        # Portland Group compilers (*not* the Pentium gcc compiler,
8130b9b4fd27Smrg	# which looks to be a dead project)
8131b9b4fd27Smrg	lt_prog_compiler_wl='-Wl,'
8132b9b4fd27Smrg	lt_prog_compiler_pic='-fpic'
8133b9b4fd27Smrg	lt_prog_compiler_static='-Bstatic'
8134b9b4fd27Smrg        ;;
8135b9b4fd27Smrg      ccc*)
8136b9b4fd27Smrg        lt_prog_compiler_wl='-Wl,'
8137b9b4fd27Smrg        # All Alpha code is PIC.
8138b9b4fd27Smrg        lt_prog_compiler_static='-non_shared'
8139b9b4fd27Smrg        ;;
8140e8a5466aSmrg      xl* | bgxl* | bgf* | mpixl*)
8141e8a5466aSmrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8142b9b4fd27Smrg	lt_prog_compiler_wl='-Wl,'
8143b9b4fd27Smrg	lt_prog_compiler_pic='-qpic'
8144b9b4fd27Smrg	lt_prog_compiler_static='-qstaticlink'
8145b9b4fd27Smrg	;;
8146b9b4fd27Smrg      *)
8147b9b4fd27Smrg	case `$CC -V 2>&1 | sed 5q` in
8148af9a7ee5Smrg	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8149e8a5466aSmrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8150b9b4fd27Smrg	  lt_prog_compiler_pic='-KPIC'
8151b9b4fd27Smrg	  lt_prog_compiler_static='-Bstatic'
8152e8a5466aSmrg	  lt_prog_compiler_wl=''
8153b9b4fd27Smrg	  ;;
8154af9a7ee5Smrg	*Sun\ F* | *Sun*Fortran*)
8155af9a7ee5Smrg	  lt_prog_compiler_pic='-KPIC'
8156af9a7ee5Smrg	  lt_prog_compiler_static='-Bstatic'
8157af9a7ee5Smrg	  lt_prog_compiler_wl='-Qoption ld '
8158af9a7ee5Smrg	  ;;
8159e8a5466aSmrg	*Sun\ C*)
8160e8a5466aSmrg	  # Sun C 5.9
8161b9b4fd27Smrg	  lt_prog_compiler_pic='-KPIC'
8162b9b4fd27Smrg	  lt_prog_compiler_static='-Bstatic'
8163e8a5466aSmrg	  lt_prog_compiler_wl='-Wl,'
8164b9b4fd27Smrg	  ;;
8165af9a7ee5Smrg        *Intel*\ [CF]*Compiler*)
8166af9a7ee5Smrg	  lt_prog_compiler_wl='-Wl,'
8167af9a7ee5Smrg	  lt_prog_compiler_pic='-fPIC'
8168af9a7ee5Smrg	  lt_prog_compiler_static='-static'
8169af9a7ee5Smrg	  ;;
8170af9a7ee5Smrg	*Portland\ Group*)
8171af9a7ee5Smrg	  lt_prog_compiler_wl='-Wl,'
8172af9a7ee5Smrg	  lt_prog_compiler_pic='-fpic'
8173af9a7ee5Smrg	  lt_prog_compiler_static='-Bstatic'
8174af9a7ee5Smrg	  ;;
8175b9b4fd27Smrg	esac
8176b9b4fd27Smrg	;;
8177b9b4fd27Smrg      esac
8178b9b4fd27Smrg      ;;
8179caade7ccSmrg
8180b9b4fd27Smrg    newsos6)
8181b9b4fd27Smrg      lt_prog_compiler_pic='-KPIC'
8182b9b4fd27Smrg      lt_prog_compiler_static='-Bstatic'
8183b9b4fd27Smrg      ;;
8184caade7ccSmrg
8185b9b4fd27Smrg    *nto* | *qnx*)
8186b9b4fd27Smrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
8187b9b4fd27Smrg      # it will coredump.
8188b9b4fd27Smrg      lt_prog_compiler_pic='-fPIC -shared'
8189b9b4fd27Smrg      ;;
8190caade7ccSmrg
8191b9b4fd27Smrg    osf3* | osf4* | osf5*)
8192b9b4fd27Smrg      lt_prog_compiler_wl='-Wl,'
8193b9b4fd27Smrg      # All OSF/1 code is PIC.
8194b9b4fd27Smrg      lt_prog_compiler_static='-non_shared'
8195b9b4fd27Smrg      ;;
8196caade7ccSmrg
8197b9b4fd27Smrg    rdos*)
8198b9b4fd27Smrg      lt_prog_compiler_static='-non_shared'
8199b9b4fd27Smrg      ;;
8200caade7ccSmrg
8201b9b4fd27Smrg    solaris*)
8202b9b4fd27Smrg      lt_prog_compiler_pic='-KPIC'
8203b9b4fd27Smrg      lt_prog_compiler_static='-Bstatic'
8204b9b4fd27Smrg      case $cc_basename in
8205e8a5466aSmrg      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8206b9b4fd27Smrg	lt_prog_compiler_wl='-Qoption ld ';;
8207b9b4fd27Smrg      *)
8208b9b4fd27Smrg	lt_prog_compiler_wl='-Wl,';;
8209b9b4fd27Smrg      esac
8210b9b4fd27Smrg      ;;
8211caade7ccSmrg
8212b9b4fd27Smrg    sunos4*)
8213b9b4fd27Smrg      lt_prog_compiler_wl='-Qoption ld '
8214b9b4fd27Smrg      lt_prog_compiler_pic='-PIC'
8215b9b4fd27Smrg      lt_prog_compiler_static='-Bstatic'
8216b9b4fd27Smrg      ;;
8217caade7ccSmrg
8218b9b4fd27Smrg    sysv4 | sysv4.2uw2* | sysv4.3*)
8219b9b4fd27Smrg      lt_prog_compiler_wl='-Wl,'
8220b9b4fd27Smrg      lt_prog_compiler_pic='-KPIC'
8221b9b4fd27Smrg      lt_prog_compiler_static='-Bstatic'
8222b9b4fd27Smrg      ;;
8223caade7ccSmrg
8224b9b4fd27Smrg    sysv4*MP*)
8225b9b4fd27Smrg      if test -d /usr/nec ;then
8226b9b4fd27Smrg	lt_prog_compiler_pic='-Kconform_pic'
8227b9b4fd27Smrg	lt_prog_compiler_static='-Bstatic'
8228b9b4fd27Smrg      fi
8229b9b4fd27Smrg      ;;
8230caade7ccSmrg
8231b9b4fd27Smrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8232b9b4fd27Smrg      lt_prog_compiler_wl='-Wl,'
8233b9b4fd27Smrg      lt_prog_compiler_pic='-KPIC'
8234b9b4fd27Smrg      lt_prog_compiler_static='-Bstatic'
8235b9b4fd27Smrg      ;;
8236caade7ccSmrg
8237b9b4fd27Smrg    unicos*)
8238b9b4fd27Smrg      lt_prog_compiler_wl='-Wl,'
8239b9b4fd27Smrg      lt_prog_compiler_can_build_shared=no
8240b9b4fd27Smrg      ;;
8241caade7ccSmrg
8242b9b4fd27Smrg    uts4*)
8243b9b4fd27Smrg      lt_prog_compiler_pic='-pic'
8244b9b4fd27Smrg      lt_prog_compiler_static='-Bstatic'
8245b9b4fd27Smrg      ;;
8246caade7ccSmrg
8247b9b4fd27Smrg    *)
8248b9b4fd27Smrg      lt_prog_compiler_can_build_shared=no
8249b9b4fd27Smrg      ;;
8250b9b4fd27Smrg    esac
8251b9b4fd27Smrg  fi
8252caade7ccSmrg
8253b9b4fd27Smrgcase $host_os in
8254b9b4fd27Smrg  # For platforms which do not support PIC, -DPIC is meaningless:
8255b9b4fd27Smrg  *djgpp*)
8256b9b4fd27Smrg    lt_prog_compiler_pic=
8257b9b4fd27Smrg    ;;
8258b9b4fd27Smrg  *)
8259b9b4fd27Smrg    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8260b9b4fd27Smrg    ;;
8261b9b4fd27Smrgesac
8262caade7ccSmrg
8263a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8264a5602400Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8265a5602400Smrgif ${lt_cv_prog_compiler_pic+:} false; then :
8266a5602400Smrg  $as_echo_n "(cached) " >&6
8267a5602400Smrgelse
8268a5602400Smrg  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8269a5602400Smrgfi
8270a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8271a5602400Smrg$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8272a5602400Smrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8273caade7ccSmrg
8274b9b4fd27Smrg#
8275b9b4fd27Smrg# Check to make sure the PIC flag actually works.
8276b9b4fd27Smrg#
8277b9b4fd27Smrgif test -n "$lt_prog_compiler_pic"; then
8278b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8279b9b4fd27Smrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8280e8a5466aSmrgif ${lt_cv_prog_compiler_pic_works+:} false; then :
8281b9b4fd27Smrg  $as_echo_n "(cached) " >&6
8282b9b4fd27Smrgelse
8283b9b4fd27Smrg  lt_cv_prog_compiler_pic_works=no
8284b9b4fd27Smrg   ac_outfile=conftest.$ac_objext
8285b9b4fd27Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8286b9b4fd27Smrg   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8287b9b4fd27Smrg   # Insert the option either (1) after the last *FLAGS variable, or
8288b9b4fd27Smrg   # (2) before a word containing "conftest.", or (3) at the end.
8289b9b4fd27Smrg   # Note that $ac_compile itself does not contain backslashes and begins
8290b9b4fd27Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
8291b9b4fd27Smrg   # The option is referenced via a variable to avoid confusing sed.
8292b9b4fd27Smrg   lt_compile=`echo "$ac_compile" | $SED \
8293b9b4fd27Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8294b9b4fd27Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8295b9b4fd27Smrg   -e 's:$: $lt_compiler_flag:'`
8296e8a5466aSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8297b9b4fd27Smrg   (eval "$lt_compile" 2>conftest.err)
8298b9b4fd27Smrg   ac_status=$?
8299b9b4fd27Smrg   cat conftest.err >&5
8300e8a5466aSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301b9b4fd27Smrg   if (exit $ac_status) && test -s "$ac_outfile"; then
8302b9b4fd27Smrg     # The compiler can only warn and ignore the option if not recognized
8303b9b4fd27Smrg     # So say no if there are warnings other than the usual output.
8304e8a5466aSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8305b9b4fd27Smrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8306b9b4fd27Smrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8307b9b4fd27Smrg       lt_cv_prog_compiler_pic_works=yes
8308b9b4fd27Smrg     fi
8309b9b4fd27Smrg   fi
8310b9b4fd27Smrg   $RM conftest*
8311caade7ccSmrg
8312b9b4fd27Smrgfi
8313b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8314b9b4fd27Smrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8315caade7ccSmrg
8316b9b4fd27Smrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8317b9b4fd27Smrg    case $lt_prog_compiler_pic in
8318b9b4fd27Smrg     "" | " "*) ;;
8319b9b4fd27Smrg     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8320b9b4fd27Smrg     esac
8321b9b4fd27Smrgelse
8322b9b4fd27Smrg    lt_prog_compiler_pic=
8323b9b4fd27Smrg     lt_prog_compiler_can_build_shared=no
8324b9b4fd27Smrgfi
8325caade7ccSmrg
8326b9b4fd27Smrgfi
8327caade7ccSmrg
8328caade7ccSmrg
8329caade7ccSmrg
8330caade7ccSmrg
8331caade7ccSmrg
8332caade7ccSmrg
8333a5602400Smrg
8334a5602400Smrg
8335a5602400Smrg
8336a5602400Smrg
8337a5602400Smrg
8338b9b4fd27Smrg#
8339b9b4fd27Smrg# Check to make sure the static flag actually works.
8340b9b4fd27Smrg#
8341b9b4fd27Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8342b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8343b9b4fd27Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8344e8a5466aSmrgif ${lt_cv_prog_compiler_static_works+:} false; then :
8345b9b4fd27Smrg  $as_echo_n "(cached) " >&6
8346b9b4fd27Smrgelse
8347b9b4fd27Smrg  lt_cv_prog_compiler_static_works=no
8348b9b4fd27Smrg   save_LDFLAGS="$LDFLAGS"
8349b9b4fd27Smrg   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8350b9b4fd27Smrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8351b9b4fd27Smrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8352b9b4fd27Smrg     # The linker can only warn and ignore the option if not recognized
8353b9b4fd27Smrg     # So say no if there are warnings
8354b9b4fd27Smrg     if test -s conftest.err; then
8355b9b4fd27Smrg       # Append any errors to the config.log.
8356b9b4fd27Smrg       cat conftest.err 1>&5
8357e8a5466aSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8358b9b4fd27Smrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8359b9b4fd27Smrg       if diff conftest.exp conftest.er2 >/dev/null; then
8360b9b4fd27Smrg         lt_cv_prog_compiler_static_works=yes
8361b9b4fd27Smrg       fi
8362b9b4fd27Smrg     else
8363b9b4fd27Smrg       lt_cv_prog_compiler_static_works=yes
8364b9b4fd27Smrg     fi
8365b9b4fd27Smrg   fi
8366b9b4fd27Smrg   $RM -r conftest*
8367b9b4fd27Smrg   LDFLAGS="$save_LDFLAGS"
8368caade7ccSmrg
8369b9b4fd27Smrgfi
8370b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8371b9b4fd27Smrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8372caade7ccSmrg
8373b9b4fd27Smrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then
8374b9b4fd27Smrg    :
8375b9b4fd27Smrgelse
8376b9b4fd27Smrg    lt_prog_compiler_static=
8377b9b4fd27Smrgfi
8378caade7ccSmrg
8379caade7ccSmrg
8380caade7ccSmrg
8381caade7ccSmrg
8382caade7ccSmrg
8383caade7ccSmrg
8384caade7ccSmrg
8385b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8386b9b4fd27Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8387e8a5466aSmrgif ${lt_cv_prog_compiler_c_o+:} false; then :
8388b9b4fd27Smrg  $as_echo_n "(cached) " >&6
8389b9b4fd27Smrgelse
8390b9b4fd27Smrg  lt_cv_prog_compiler_c_o=no
8391b9b4fd27Smrg   $RM -r conftest 2>/dev/null
8392b9b4fd27Smrg   mkdir conftest
8393b9b4fd27Smrg   cd conftest
8394b9b4fd27Smrg   mkdir out
8395b9b4fd27Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8396caade7ccSmrg
8397b9b4fd27Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
8398b9b4fd27Smrg   # Insert the option either (1) after the last *FLAGS variable, or
8399b9b4fd27Smrg   # (2) before a word containing "conftest.", or (3) at the end.
8400b9b4fd27Smrg   # Note that $ac_compile itself does not contain backslashes and begins
8401b9b4fd27Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
8402b9b4fd27Smrg   lt_compile=`echo "$ac_compile" | $SED \
8403b9b4fd27Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8404b9b4fd27Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8405b9b4fd27Smrg   -e 's:$: $lt_compiler_flag:'`
8406e8a5466aSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8407b9b4fd27Smrg   (eval "$lt_compile" 2>out/conftest.err)
8408b9b4fd27Smrg   ac_status=$?
8409b9b4fd27Smrg   cat out/conftest.err >&5
8410e8a5466aSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411b9b4fd27Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8412b9b4fd27Smrg   then
8413b9b4fd27Smrg     # The compiler can only warn and ignore the option if not recognized
8414b9b4fd27Smrg     # So say no if there are warnings
8415e8a5466aSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8416b9b4fd27Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8417b9b4fd27Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8418b9b4fd27Smrg       lt_cv_prog_compiler_c_o=yes
8419b9b4fd27Smrg     fi
8420b9b4fd27Smrg   fi
8421b9b4fd27Smrg   chmod u+w . 2>&5
8422b9b4fd27Smrg   $RM conftest*
8423b9b4fd27Smrg   # SGI C++ compiler will create directory out/ii_files/ for
8424b9b4fd27Smrg   # template instantiation
8425b9b4fd27Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8426b9b4fd27Smrg   $RM out/* && rmdir out
8427b9b4fd27Smrg   cd ..
8428b9b4fd27Smrg   $RM -r conftest
8429b9b4fd27Smrg   $RM conftest*
8430caade7ccSmrg
8431b9b4fd27Smrgfi
8432b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8433b9b4fd27Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8434caade7ccSmrg
8435caade7ccSmrg
8436caade7ccSmrg
8437caade7ccSmrg
8438caade7ccSmrg
8439caade7ccSmrg
8440b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8441b9b4fd27Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8442e8a5466aSmrgif ${lt_cv_prog_compiler_c_o+:} false; then :
8443b9b4fd27Smrg  $as_echo_n "(cached) " >&6
8444b9b4fd27Smrgelse
8445b9b4fd27Smrg  lt_cv_prog_compiler_c_o=no
8446b9b4fd27Smrg   $RM -r conftest 2>/dev/null
8447b9b4fd27Smrg   mkdir conftest
8448b9b4fd27Smrg   cd conftest
8449b9b4fd27Smrg   mkdir out
8450b9b4fd27Smrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8451caade7ccSmrg
8452b9b4fd27Smrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
8453b9b4fd27Smrg   # Insert the option either (1) after the last *FLAGS variable, or
8454b9b4fd27Smrg   # (2) before a word containing "conftest.", or (3) at the end.
8455b9b4fd27Smrg   # Note that $ac_compile itself does not contain backslashes and begins
8456b9b4fd27Smrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
8457b9b4fd27Smrg   lt_compile=`echo "$ac_compile" | $SED \
8458b9b4fd27Smrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8459b9b4fd27Smrg   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8460b9b4fd27Smrg   -e 's:$: $lt_compiler_flag:'`
8461e8a5466aSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8462b9b4fd27Smrg   (eval "$lt_compile" 2>out/conftest.err)
8463b9b4fd27Smrg   ac_status=$?
8464b9b4fd27Smrg   cat out/conftest.err >&5
8465e8a5466aSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466b9b4fd27Smrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8467b9b4fd27Smrg   then
8468b9b4fd27Smrg     # The compiler can only warn and ignore the option if not recognized
8469b9b4fd27Smrg     # So say no if there are warnings
8470e8a5466aSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8471b9b4fd27Smrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8472b9b4fd27Smrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8473b9b4fd27Smrg       lt_cv_prog_compiler_c_o=yes
8474b9b4fd27Smrg     fi
8475b9b4fd27Smrg   fi
8476b9b4fd27Smrg   chmod u+w . 2>&5
8477b9b4fd27Smrg   $RM conftest*
8478b9b4fd27Smrg   # SGI C++ compiler will create directory out/ii_files/ for
8479b9b4fd27Smrg   # template instantiation
8480b9b4fd27Smrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8481b9b4fd27Smrg   $RM out/* && rmdir out
8482b9b4fd27Smrg   cd ..
8483b9b4fd27Smrg   $RM -r conftest
8484b9b4fd27Smrg   $RM conftest*
8485caade7ccSmrg
8486caade7ccSmrgfi
8487b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8488b9b4fd27Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8489caade7ccSmrg
8490caade7ccSmrg
8491caade7ccSmrg
8492b9b4fd27Smrg
8493b9b4fd27Smrghard_links="nottested"
8494b9b4fd27Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8495b9b4fd27Smrg  # do not overwrite the value of need_locks provided by the user
8496b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8497b9b4fd27Smrg$as_echo_n "checking if we can lock with hard links... " >&6; }
8498b9b4fd27Smrg  hard_links=yes
8499b9b4fd27Smrg  $RM conftest*
8500b9b4fd27Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8501b9b4fd27Smrg  touch conftest.a
8502b9b4fd27Smrg  ln conftest.a conftest.b 2>&5 || hard_links=no
8503b9b4fd27Smrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8504b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8505b9b4fd27Smrg$as_echo "$hard_links" >&6; }
8506b9b4fd27Smrg  if test "$hard_links" = no; then
8507b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8508b9b4fd27Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8509b9b4fd27Smrg    need_locks=warn
8510caade7ccSmrg  fi
8511b9b4fd27Smrgelse
8512b9b4fd27Smrg  need_locks=no
8513caade7ccSmrgfi
8514caade7ccSmrg
8515caade7ccSmrg
8516caade7ccSmrg
8517caade7ccSmrg
8518caade7ccSmrg
8519caade7ccSmrg
8520b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8521b9b4fd27Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8522caade7ccSmrg
8523b9b4fd27Smrg  runpath_var=
8524b9b4fd27Smrg  allow_undefined_flag=
8525b9b4fd27Smrg  always_export_symbols=no
8526b9b4fd27Smrg  archive_cmds=
8527b9b4fd27Smrg  archive_expsym_cmds=
8528b9b4fd27Smrg  compiler_needs_object=no
8529b9b4fd27Smrg  enable_shared_with_static_runtimes=no
8530b9b4fd27Smrg  export_dynamic_flag_spec=
8531b9b4fd27Smrg  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8532b9b4fd27Smrg  hardcode_automatic=no
8533b9b4fd27Smrg  hardcode_direct=no
8534b9b4fd27Smrg  hardcode_direct_absolute=no
8535b9b4fd27Smrg  hardcode_libdir_flag_spec=
8536b9b4fd27Smrg  hardcode_libdir_separator=
8537b9b4fd27Smrg  hardcode_minus_L=no
8538b9b4fd27Smrg  hardcode_shlibpath_var=unsupported
8539b9b4fd27Smrg  inherit_rpath=no
8540b9b4fd27Smrg  link_all_deplibs=unknown
8541b9b4fd27Smrg  module_cmds=
8542b9b4fd27Smrg  module_expsym_cmds=
8543b9b4fd27Smrg  old_archive_from_new_cmds=
8544b9b4fd27Smrg  old_archive_from_expsyms_cmds=
8545b9b4fd27Smrg  thread_safe_flag_spec=
8546b9b4fd27Smrg  whole_archive_flag_spec=
8547b9b4fd27Smrg  # include_expsyms should be a list of space-separated symbols to be *always*
8548b9b4fd27Smrg  # included in the symbol list
8549b9b4fd27Smrg  include_expsyms=
8550b9b4fd27Smrg  # exclude_expsyms can be an extended regexp of symbols to exclude
8551b9b4fd27Smrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8552b9b4fd27Smrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8553b9b4fd27Smrg  # as well as any symbol that contains `d'.
8554b9b4fd27Smrg  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8555b9b4fd27Smrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8556b9b4fd27Smrg  # platforms (ab)use it in PIC code, but their linkers get confused if
8557b9b4fd27Smrg  # the symbol is explicitly referenced.  Since portable code cannot
8558b9b4fd27Smrg  # rely on this symbol name, it's probably fine to never include it in
8559b9b4fd27Smrg  # preloaded symbol tables.
8560b9b4fd27Smrg  # Exclude shared library initialization/finalization symbols.
8561b9b4fd27Smrg  extract_expsyms_cmds=
8562caade7ccSmrg
8563b9b4fd27Smrg  case $host_os in
8564b9b4fd27Smrg  cygwin* | mingw* | pw32* | cegcc*)
8565b9b4fd27Smrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8566b9b4fd27Smrg    # When not using gcc, we currently assume that we are using
8567b9b4fd27Smrg    # Microsoft Visual C++.
8568b9b4fd27Smrg    if test "$GCC" != yes; then
8569b9b4fd27Smrg      with_gnu_ld=no
8570caade7ccSmrg    fi
8571b9b4fd27Smrg    ;;
8572b9b4fd27Smrg  interix*)
8573b9b4fd27Smrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
8574b9b4fd27Smrg    with_gnu_ld=yes
8575b9b4fd27Smrg    ;;
8576b9b4fd27Smrg  openbsd*)
8577b9b4fd27Smrg    with_gnu_ld=no
8578b9b4fd27Smrg    ;;
8579b9b4fd27Smrg  esac
8580caade7ccSmrg
8581b9b4fd27Smrg  ld_shlibs=yes
8582e8a5466aSmrg
8583e8a5466aSmrg  # On some targets, GNU ld is compatible enough with the native linker
8584e8a5466aSmrg  # that we're better off using the native interface for both.
8585e8a5466aSmrg  lt_use_gnu_ld_interface=no
8586b9b4fd27Smrg  if test "$with_gnu_ld" = yes; then
8587e8a5466aSmrg    case $host_os in
8588e8a5466aSmrg      aix*)
8589e8a5466aSmrg	# The AIX port of GNU ld has always aspired to compatibility
8590e8a5466aSmrg	# with the native linker.  However, as the warning in the GNU ld
8591e8a5466aSmrg	# block says, versions before 2.19.5* couldn't really create working
8592e8a5466aSmrg	# shared libraries, regardless of the interface used.
8593e8a5466aSmrg	case `$LD -v 2>&1` in
8594e8a5466aSmrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8595e8a5466aSmrg	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8596e8a5466aSmrg	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8597e8a5466aSmrg	  *)
8598e8a5466aSmrg	    lt_use_gnu_ld_interface=yes
8599e8a5466aSmrg	    ;;
8600e8a5466aSmrg	esac
8601e8a5466aSmrg	;;
8602e8a5466aSmrg      *)
8603e8a5466aSmrg	lt_use_gnu_ld_interface=yes
8604e8a5466aSmrg	;;
8605e8a5466aSmrg    esac
8606e8a5466aSmrg  fi
8607e8a5466aSmrg
8608e8a5466aSmrg  if test "$lt_use_gnu_ld_interface" = yes; then
8609b9b4fd27Smrg    # If archive_cmds runs LD, not CC, wlarc should be empty
8610b9b4fd27Smrg    wlarc='${wl}'
8611caade7ccSmrg
8612b9b4fd27Smrg    # Set some defaults for GNU ld with shared library support. These
8613b9b4fd27Smrg    # are reset later if shared libraries are not supported. Putting them
8614b9b4fd27Smrg    # here allows them to be overridden if necessary.
8615b9b4fd27Smrg    runpath_var=LD_RUN_PATH
8616b9b4fd27Smrg    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617b9b4fd27Smrg    export_dynamic_flag_spec='${wl}--export-dynamic'
8618b9b4fd27Smrg    # ancient GNU ld didn't support --whole-archive et. al.
8619b9b4fd27Smrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8620b9b4fd27Smrg      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8621b9b4fd27Smrg    else
8622b9b4fd27Smrg      whole_archive_flag_spec=
8623b9b4fd27Smrg    fi
8624b9b4fd27Smrg    supports_anon_versioning=no
8625b9b4fd27Smrg    case `$LD -v 2>&1` in
8626e8a5466aSmrg      *GNU\ gold*) supports_anon_versioning=yes ;;
8627b9b4fd27Smrg      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8628b9b4fd27Smrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8629b9b4fd27Smrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8630b9b4fd27Smrg      *\ 2.11.*) ;; # other 2.11 versions
8631b9b4fd27Smrg      *) supports_anon_versioning=yes ;;
8632caade7ccSmrg    esac
8633caade7ccSmrg
8634b9b4fd27Smrg    # See if GNU ld supports shared libraries.
8635b9b4fd27Smrg    case $host_os in
8636b9b4fd27Smrg    aix[3-9]*)
8637b9b4fd27Smrg      # On AIX/PPC, the GNU linker is very broken
8638b9b4fd27Smrg      if test "$host_cpu" != ia64; then
8639b9b4fd27Smrg	ld_shlibs=no
8640b9b4fd27Smrg	cat <<_LT_EOF 1>&2
8641caade7ccSmrg
8642e8a5466aSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported
8643b9b4fd27Smrg*** to be unable to reliably create shared libraries on AIX.
8644b9b4fd27Smrg*** Therefore, libtool is disabling shared libraries support.  If you
8645e8a5466aSmrg*** really care for shared libraries, you may want to install binutils
8646e8a5466aSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8647e8a5466aSmrg*** You will then need to restart the configuration process.
8648caade7ccSmrg
8649b9b4fd27Smrg_LT_EOF
8650b9b4fd27Smrg      fi
8651b9b4fd27Smrg      ;;
8652caade7ccSmrg
8653b9b4fd27Smrg    amigaos*)
8654b9b4fd27Smrg      case $host_cpu in
8655b9b4fd27Smrg      powerpc)
8656b9b4fd27Smrg            # see comment about AmigaOS4 .so support
8657b9b4fd27Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658b9b4fd27Smrg            archive_expsym_cmds=''
8659b9b4fd27Smrg        ;;
8660b9b4fd27Smrg      m68k)
8661b9b4fd27Smrg            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)'
8662b9b4fd27Smrg            hardcode_libdir_flag_spec='-L$libdir'
8663b9b4fd27Smrg            hardcode_minus_L=yes
8664b9b4fd27Smrg        ;;
8665b9b4fd27Smrg      esac
8666b9b4fd27Smrg      ;;
8667caade7ccSmrg
8668b9b4fd27Smrg    beos*)
8669b9b4fd27Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670b9b4fd27Smrg	allow_undefined_flag=unsupported
8671b9b4fd27Smrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8672b9b4fd27Smrg	# support --undefined.  This deserves some investigation.  FIXME
8673b9b4fd27Smrg	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674b9b4fd27Smrg      else
8675b9b4fd27Smrg	ld_shlibs=no
8676b9b4fd27Smrg      fi
8677b9b4fd27Smrg      ;;
8678caade7ccSmrg
8679b9b4fd27Smrg    cygwin* | mingw* | pw32* | cegcc*)
8680b9b4fd27Smrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8681b9b4fd27Smrg      # as there is no search path for DLLs.
8682b9b4fd27Smrg      hardcode_libdir_flag_spec='-L$libdir'
8683e8a5466aSmrg      export_dynamic_flag_spec='${wl}--export-all-symbols'
8684b9b4fd27Smrg      allow_undefined_flag=unsupported
8685b9b4fd27Smrg      always_export_symbols=no
8686b9b4fd27Smrg      enable_shared_with_static_runtimes=yes
8687a5602400Smrg      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8688a5602400Smrg      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8689caade7ccSmrg
8690b9b4fd27Smrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8691b9b4fd27Smrg        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8692b9b4fd27Smrg	# If the export-symbols file already is a .def file (1st line
8693b9b4fd27Smrg	# is EXPORTS), use it as is; otherwise, prepend...
8694b9b4fd27Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8695b9b4fd27Smrg	  cp $export_symbols $output_objdir/$soname.def;
8696b9b4fd27Smrg	else
8697b9b4fd27Smrg	  echo EXPORTS > $output_objdir/$soname.def;
8698b9b4fd27Smrg	  cat $export_symbols >> $output_objdir/$soname.def;
8699b9b4fd27Smrg	fi~
8700b9b4fd27Smrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8701b9b4fd27Smrg      else
8702b9b4fd27Smrg	ld_shlibs=no
8703b9b4fd27Smrg      fi
8704b9b4fd27Smrg      ;;
8705caade7ccSmrg
8706e8a5466aSmrg    haiku*)
8707e8a5466aSmrg      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708e8a5466aSmrg      link_all_deplibs=yes
8709e8a5466aSmrg      ;;
8710e8a5466aSmrg
8711b9b4fd27Smrg    interix[3-9]*)
8712b9b4fd27Smrg      hardcode_direct=no
8713b9b4fd27Smrg      hardcode_shlibpath_var=no
8714b9b4fd27Smrg      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8715b9b4fd27Smrg      export_dynamic_flag_spec='${wl}-E'
8716b9b4fd27Smrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8717b9b4fd27Smrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
8718b9b4fd27Smrg      # default) and relocated if they conflict, which is a slow very memory
8719b9b4fd27Smrg      # consuming and fragmenting process.  To avoid this, we pick a random,
8720b9b4fd27Smrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8721b9b4fd27Smrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8722b9b4fd27Smrg      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8723b9b4fd27Smrg      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'
8724b9b4fd27Smrg      ;;
8725caade7ccSmrg
8726e8a5466aSmrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8727b9b4fd27Smrg      tmp_diet=no
8728b9b4fd27Smrg      if test "$host_os" = linux-dietlibc; then
8729b9b4fd27Smrg	case $cc_basename in
8730b9b4fd27Smrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8731b9b4fd27Smrg	esac
8732b9b4fd27Smrg      fi
8733b9b4fd27Smrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8734b9b4fd27Smrg	 && test "$tmp_diet" = no
8735b9b4fd27Smrg      then
8736a5602400Smrg	tmp_addflag=' $pic_flag'
8737b9b4fd27Smrg	tmp_sharedflag='-shared'
8738b9b4fd27Smrg	case $cc_basename,$host_cpu in
8739b9b4fd27Smrg        pgcc*)				# Portland Group C compiler
8740e8a5466aSmrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8741b9b4fd27Smrg	  tmp_addflag=' $pic_flag'
8742b9b4fd27Smrg	  ;;
8743e8a5466aSmrg	pgf77* | pgf90* | pgf95* | pgfortran*)
8744e8a5466aSmrg					# Portland Group f77 and f90 compilers
8745e8a5466aSmrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8746b9b4fd27Smrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
8747b9b4fd27Smrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8748b9b4fd27Smrg	  tmp_addflag=' -i_dynamic' ;;
8749b9b4fd27Smrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8750b9b4fd27Smrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8751b9b4fd27Smrg	ifc* | ifort*)			# Intel Fortran compiler
8752b9b4fd27Smrg	  tmp_addflag=' -nofor_main' ;;
8753b9b4fd27Smrg	lf95*)				# Lahey Fortran 8.1
8754b9b4fd27Smrg	  whole_archive_flag_spec=
8755b9b4fd27Smrg	  tmp_sharedflag='--shared' ;;
8756e8a5466aSmrg	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8757b9b4fd27Smrg	  tmp_sharedflag='-qmkshrobj'
8758b9b4fd27Smrg	  tmp_addflag= ;;
8759e8a5466aSmrg	nvcc*)	# Cuda Compiler Driver 2.2
8760e8a5466aSmrg	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8761e8a5466aSmrg	  compiler_needs_object=yes
8762e8a5466aSmrg	  ;;
8763b9b4fd27Smrg	esac
8764b9b4fd27Smrg	case `$CC -V 2>&1 | sed 5q` in
8765b9b4fd27Smrg	*Sun\ C*)			# Sun C 5.9
8766e8a5466aSmrg	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8767b9b4fd27Smrg	  compiler_needs_object=yes
8768b9b4fd27Smrg	  tmp_sharedflag='-G' ;;
8769b9b4fd27Smrg	*Sun\ F*)			# Sun Fortran 8.3
8770b9b4fd27Smrg	  tmp_sharedflag='-G' ;;
8771b9b4fd27Smrg	esac
8772b9b4fd27Smrg	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773caade7ccSmrg
8774b9b4fd27Smrg        if test "x$supports_anon_versioning" = xyes; then
8775b9b4fd27Smrg          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8776b9b4fd27Smrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8777b9b4fd27Smrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
8778b9b4fd27Smrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8779b9b4fd27Smrg        fi
8780caade7ccSmrg
8781b9b4fd27Smrg	case $cc_basename in
8782e8a5466aSmrg	xlf* | bgf* | bgxlf* | mpixlf*)
8783b9b4fd27Smrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8784b9b4fd27Smrg	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8785af9a7ee5Smrg	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786e8a5466aSmrg	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8787b9b4fd27Smrg	  if test "x$supports_anon_versioning" = xyes; then
8788b9b4fd27Smrg	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8789b9b4fd27Smrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8790b9b4fd27Smrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
8791e8a5466aSmrg	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8792b9b4fd27Smrg	  fi
8793b9b4fd27Smrg	  ;;
8794b9b4fd27Smrg	esac
8795b9b4fd27Smrg      else
8796b9b4fd27Smrg        ld_shlibs=no
8797b9b4fd27Smrg      fi
8798b9b4fd27Smrg      ;;
8799caade7ccSmrg
8800b9b4fd27Smrg    netbsd*)
8801b9b4fd27Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8802b9b4fd27Smrg	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8803b9b4fd27Smrg	wlarc=
8804b9b4fd27Smrg      else
8805a5602400Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8806a5602400Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8807b9b4fd27Smrg      fi
8808b9b4fd27Smrg      ;;
8809caade7ccSmrg
8810b9b4fd27Smrg    solaris*)
8811b9b4fd27Smrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8812b9b4fd27Smrg	ld_shlibs=no
8813b9b4fd27Smrg	cat <<_LT_EOF 1>&2
8814caade7ccSmrg
8815b9b4fd27Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8816b9b4fd27Smrg*** create shared libraries on Solaris systems.  Therefore, libtool
8817b9b4fd27Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
8818b9b4fd27Smrg*** binutils to release 2.9.1 or newer.  Another option is to modify
8819b9b4fd27Smrg*** your PATH or compiler configuration so that the native linker is
8820b9b4fd27Smrg*** used, and then restart.
8821caade7ccSmrg
8822b9b4fd27Smrg_LT_EOF
8823b9b4fd27Smrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824a5602400Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8825a5602400Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8826b9b4fd27Smrg      else
8827b9b4fd27Smrg	ld_shlibs=no
8828b9b4fd27Smrg      fi
8829b9b4fd27Smrg      ;;
8830caade7ccSmrg
8831b9b4fd27Smrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8832b9b4fd27Smrg      case `$LD -v 2>&1` in
8833b9b4fd27Smrg        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8834b9b4fd27Smrg	ld_shlibs=no
8835b9b4fd27Smrg	cat <<_LT_EOF 1>&2
8836caade7ccSmrg
8837b9b4fd27Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8838b9b4fd27Smrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
8839b9b4fd27Smrg*** is disabling shared libraries support.  We urge you to upgrade GNU
8840b9b4fd27Smrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8841b9b4fd27Smrg*** your PATH or compiler configuration so that the native linker is
8842b9b4fd27Smrg*** used, and then restart.
8843caade7ccSmrg
8844b9b4fd27Smrg_LT_EOF
8845caade7ccSmrg	;;
8846b9b4fd27Smrg	*)
8847b9b4fd27Smrg	  # For security reasons, it is highly recommended that you always
8848b9b4fd27Smrg	  # use absolute paths for naming shared libraries, and exclude the
8849b9b4fd27Smrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
8850b9b4fd27Smrg	  # requires that you compile everything twice, which is a pain.
8851b9b4fd27Smrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8852b9b4fd27Smrg	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853b9b4fd27Smrg	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854b9b4fd27Smrg	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8855b9b4fd27Smrg	  else
8856b9b4fd27Smrg	    ld_shlibs=no
8857b9b4fd27Smrg	  fi
8858caade7ccSmrg	;;
8859caade7ccSmrg      esac
8860b9b4fd27Smrg      ;;
8861caade7ccSmrg
8862b9b4fd27Smrg    sunos4*)
8863b9b4fd27Smrg      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8864b9b4fd27Smrg      wlarc=
8865b9b4fd27Smrg      hardcode_direct=yes
8866b9b4fd27Smrg      hardcode_shlibpath_var=no
8867b9b4fd27Smrg      ;;
8868caade7ccSmrg
8869b9b4fd27Smrg    *)
8870b9b4fd27Smrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8871a5602400Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872a5602400Smrg	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8873b9b4fd27Smrg      else
8874b9b4fd27Smrg	ld_shlibs=no
8875b9b4fd27Smrg      fi
8876b9b4fd27Smrg      ;;
8877b9b4fd27Smrg    esac
8878caade7ccSmrg
8879b9b4fd27Smrg    if test "$ld_shlibs" = no; then
8880b9b4fd27Smrg      runpath_var=
8881b9b4fd27Smrg      hardcode_libdir_flag_spec=
8882b9b4fd27Smrg      export_dynamic_flag_spec=
8883b9b4fd27Smrg      whole_archive_flag_spec=
8884caade7ccSmrg    fi
8885caade7ccSmrg  else
8886b9b4fd27Smrg    # PORTME fill in a description of your system's linker (not GNU ld)
8887b9b4fd27Smrg    case $host_os in
8888b9b4fd27Smrg    aix3*)
8889b9b4fd27Smrg      allow_undefined_flag=unsupported
8890b9b4fd27Smrg      always_export_symbols=yes
8891b9b4fd27Smrg      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'
8892b9b4fd27Smrg      # Note: this linker hardcodes the directories in LIBPATH if there
8893b9b4fd27Smrg      # are no directories specified by -L.
8894b9b4fd27Smrg      hardcode_minus_L=yes
8895b9b4fd27Smrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8896b9b4fd27Smrg	# Neither direct hardcoding nor static linking is supported with a
8897b9b4fd27Smrg	# broken collect2.
8898b9b4fd27Smrg	hardcode_direct=unsupported
8899b9b4fd27Smrg      fi
8900b9b4fd27Smrg      ;;
8901caade7ccSmrg
8902b9b4fd27Smrg    aix[4-9]*)
8903b9b4fd27Smrg      if test "$host_cpu" = ia64; then
8904b9b4fd27Smrg	# On IA64, the linker does run time linking by default, so we don't
8905b9b4fd27Smrg	# have to do anything special.
8906b9b4fd27Smrg	aix_use_runtimelinking=no
8907b9b4fd27Smrg	exp_sym_flag='-Bexport'
8908b9b4fd27Smrg	no_entry_flag=""
8909b9b4fd27Smrg      else
8910b9b4fd27Smrg	# If we're using GNU nm, then we don't want the "-C" option.
8911b9b4fd27Smrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8912e8a5466aSmrg	# Also, AIX nm treats weak defined symbols like other global
8913e8a5466aSmrg	# defined symbols, whereas GNU nm marks them as "W".
8914b9b4fd27Smrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8915e8a5466aSmrg	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8916b9b4fd27Smrg	else
8917b9b4fd27Smrg	  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'
8918b9b4fd27Smrg	fi
8919b9b4fd27Smrg	aix_use_runtimelinking=no
8920caade7ccSmrg
8921b9b4fd27Smrg	# Test if we are trying to use run time linking or normal
8922b9b4fd27Smrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8923b9b4fd27Smrg	# need to do runtime linking.
8924b9b4fd27Smrg	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8925b9b4fd27Smrg	  for ld_flag in $LDFLAGS; do
8926b9b4fd27Smrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8927caade7ccSmrg	    aix_use_runtimelinking=yes
8928caade7ccSmrg	    break
8929b9b4fd27Smrg	  fi
8930b9b4fd27Smrg	  done
8931b9b4fd27Smrg	  ;;
8932b9b4fd27Smrg	esac
8933caade7ccSmrg
8934b9b4fd27Smrg	exp_sym_flag='-bexport'
8935b9b4fd27Smrg	no_entry_flag='-bnoentry'
8936b9b4fd27Smrg      fi
8937b9b4fd27Smrg
8938b9b4fd27Smrg      # When large executables or shared objects are built, AIX ld can
8939b9b4fd27Smrg      # have problems creating the table of contents.  If linking a library
8940b9b4fd27Smrg      # or program results in "error TOC overflow" add -mminimal-toc to
8941b9b4fd27Smrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8942b9b4fd27Smrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8943b9b4fd27Smrg
8944b9b4fd27Smrg      archive_cmds=''
8945b9b4fd27Smrg      hardcode_direct=yes
8946b9b4fd27Smrg      hardcode_direct_absolute=yes
8947b9b4fd27Smrg      hardcode_libdir_separator=':'
8948b9b4fd27Smrg      link_all_deplibs=yes
8949b9b4fd27Smrg      file_list_spec='${wl}-f,'
8950caade7ccSmrg
8951b9b4fd27Smrg      if test "$GCC" = yes; then
8952b9b4fd27Smrg	case $host_os in aix4.[012]|aix4.[012].*)
8953b9b4fd27Smrg	# We only want to do this on AIX 4.2 and lower, the check
8954b9b4fd27Smrg	# below for broken collect2 doesn't work under 4.3+
8955b9b4fd27Smrg	  collect2name=`${CC} -print-prog-name=collect2`
8956b9b4fd27Smrg	  if test -f "$collect2name" &&
8957b9b4fd27Smrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8958b9b4fd27Smrg	  then
8959caade7ccSmrg	  # We have reworked collect2
8960485f0483Smrg	  :
8961b9b4fd27Smrg	  else
8962caade7ccSmrg	  # We have old collect2
8963b9b4fd27Smrg	  hardcode_direct=unsupported
8964caade7ccSmrg	  # It fails to find uninstalled libraries when the uninstalled
8965caade7ccSmrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
8966caade7ccSmrg	  # to unsupported forces relinking
8967b9b4fd27Smrg	  hardcode_minus_L=yes
8968b9b4fd27Smrg	  hardcode_libdir_flag_spec='-L$libdir'
8969b9b4fd27Smrg	  hardcode_libdir_separator=
8970b9b4fd27Smrg	  fi
8971b9b4fd27Smrg	  ;;
8972b9b4fd27Smrg	esac
8973b9b4fd27Smrg	shared_flag='-shared'
8974b9b4fd27Smrg	if test "$aix_use_runtimelinking" = yes; then
8975b9b4fd27Smrg	  shared_flag="$shared_flag "'${wl}-G'
8976caade7ccSmrg	fi
8977b9b4fd27Smrg      else
8978b9b4fd27Smrg	# not using gcc
8979b9b4fd27Smrg	if test "$host_cpu" = ia64; then
8980caade7ccSmrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8981caade7ccSmrg	# chokes on -Wl,-G. The following line is correct:
8982b9b4fd27Smrg	  shared_flag='-G'
8983caade7ccSmrg	else
8984b9b4fd27Smrg	  if test "$aix_use_runtimelinking" = yes; then
8985b9b4fd27Smrg	    shared_flag='${wl}-G'
8986b9b4fd27Smrg	  else
8987b9b4fd27Smrg	    shared_flag='${wl}-bM:SRE'
8988b9b4fd27Smrg	  fi
8989caade7ccSmrg	fi
8990caade7ccSmrg      fi
8991caade7ccSmrg
8992b9b4fd27Smrg      export_dynamic_flag_spec='${wl}-bexpall'
8993b9b4fd27Smrg      # It seems that -bexpall does not export symbols beginning with
8994b9b4fd27Smrg      # underscore (_), so it is better to generate a list of symbols to export.
8995b9b4fd27Smrg      always_export_symbols=yes
8996b9b4fd27Smrg      if test "$aix_use_runtimelinking" = yes; then
8997b9b4fd27Smrg	# Warning - without using the other runtime loading flags (-brtl),
8998b9b4fd27Smrg	# -berok will link without error, but may produce a broken library.
8999b9b4fd27Smrg	allow_undefined_flag='-berok'
9000b9b4fd27Smrg        # Determine the default libpath from the value encoded in an
9001b9b4fd27Smrg        # empty executable.
9002a5602400Smrg        if test "${lt_cv_aix_libpath+set}" = set; then
9003a5602400Smrg  aix_libpath=$lt_cv_aix_libpath
9004a5602400Smrgelse
9005a5602400Smrg  if ${lt_cv_aix_libpath_+:} false; then :
9006a5602400Smrg  $as_echo_n "(cached) " >&6
9007a5602400Smrgelse
9008a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9009caade7ccSmrg/* end confdefs.h.  */
9010caade7ccSmrg
9011caade7ccSmrgint
9012caade7ccSmrgmain ()
9013caade7ccSmrg{
9014caade7ccSmrg
9015caade7ccSmrg  ;
9016caade7ccSmrg  return 0;
9017caade7ccSmrg}
9018caade7ccSmrg_ACEOF
9019b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
9020caade7ccSmrg
9021a5602400Smrg  lt_aix_libpath_sed='
9022a5602400Smrg      /Import File Strings/,/^$/ {
9023a5602400Smrg	  /^0/ {
9024a5602400Smrg	      s/^0  *\([^ ]*\) *$/\1/
9025a5602400Smrg	      p
9026a5602400Smrg	  }
9027a5602400Smrg      }'
9028a5602400Smrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9029a5602400Smrg  # Check for a 64-bit object if we didn't find anything.
9030a5602400Smrg  if test -z "$lt_cv_aix_libpath_"; then
9031a5602400Smrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9032a5602400Smrg  fi
9033caade7ccSmrgfi
9034b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
9035b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
9036a5602400Smrg  if test -z "$lt_cv_aix_libpath_"; then
9037a5602400Smrg    lt_cv_aix_libpath_="/usr/lib:/lib"
9038a5602400Smrg  fi
9039a5602400Smrg
9040a5602400Smrgfi
9041a5602400Smrg
9042a5602400Smrg  aix_libpath=$lt_cv_aix_libpath_
9043a5602400Smrgfi
9044caade7ccSmrg
9045b9b4fd27Smrg        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9046e8a5466aSmrg        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9047caade7ccSmrg      else
9048b9b4fd27Smrg	if test "$host_cpu" = ia64; then
9049b9b4fd27Smrg	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9050b9b4fd27Smrg	  allow_undefined_flag="-z nodefs"
9051b9b4fd27Smrg	  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"
9052b9b4fd27Smrg	else
9053b9b4fd27Smrg	 # Determine the default libpath from the value encoded in an
9054b9b4fd27Smrg	 # empty executable.
9055a5602400Smrg	 if test "${lt_cv_aix_libpath+set}" = set; then
9056a5602400Smrg  aix_libpath=$lt_cv_aix_libpath
9057a5602400Smrgelse
9058a5602400Smrg  if ${lt_cv_aix_libpath_+:} false; then :
9059a5602400Smrg  $as_echo_n "(cached) " >&6
9060a5602400Smrgelse
9061a5602400Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062caade7ccSmrg/* end confdefs.h.  */
9063caade7ccSmrg
9064caade7ccSmrgint
9065caade7ccSmrgmain ()
9066caade7ccSmrg{
9067caade7ccSmrg
9068caade7ccSmrg  ;
9069caade7ccSmrg  return 0;
9070caade7ccSmrg}
9071caade7ccSmrg_ACEOF
9072b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
9073caade7ccSmrg
9074a5602400Smrg  lt_aix_libpath_sed='
9075a5602400Smrg      /Import File Strings/,/^$/ {
9076a5602400Smrg	  /^0/ {
9077a5602400Smrg	      s/^0  *\([^ ]*\) *$/\1/
9078a5602400Smrg	      p
9079a5602400Smrg	  }
9080a5602400Smrg      }'
9081a5602400Smrg  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9082a5602400Smrg  # Check for a 64-bit object if we didn't find anything.
9083a5602400Smrg  if test -z "$lt_cv_aix_libpath_"; then
9084a5602400Smrg    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9085a5602400Smrg  fi
9086caade7ccSmrgfi
9087b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
9088b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
9089a5602400Smrg  if test -z "$lt_cv_aix_libpath_"; then
9090a5602400Smrg    lt_cv_aix_libpath_="/usr/lib:/lib"
9091a5602400Smrg  fi
9092a5602400Smrg
9093a5602400Smrgfi
9094a5602400Smrg
9095a5602400Smrg  aix_libpath=$lt_cv_aix_libpath_
9096a5602400Smrgfi
9097caade7ccSmrg
9098b9b4fd27Smrg	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9099b9b4fd27Smrg	  # Warning - without using the other run time loading flags,
9100b9b4fd27Smrg	  # -berok will link without error, but may produce a broken library.
9101b9b4fd27Smrg	  no_undefined_flag=' ${wl}-bernotok'
9102b9b4fd27Smrg	  allow_undefined_flag=' ${wl}-berok'
9103e8a5466aSmrg	  if test "$with_gnu_ld" = yes; then
9104e8a5466aSmrg	    # We only use this code for GNU lds that support --whole-archive.
9105e8a5466aSmrg	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9106e8a5466aSmrg	  else
9107e8a5466aSmrg	    # Exported symbols can be pulled into shared objects from archives
9108e8a5466aSmrg	    whole_archive_flag_spec='$convenience'
9109e8a5466aSmrg	  fi
9110b9b4fd27Smrg	  archive_cmds_need_lc=yes
9111b9b4fd27Smrg	  # This is similar to how AIX traditionally builds its shared libraries.
9112b9b4fd27Smrg	  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'
9113b9b4fd27Smrg	fi
9114caade7ccSmrg      fi
9115b9b4fd27Smrg      ;;
9116caade7ccSmrg
9117b9b4fd27Smrg    amigaos*)
9118b9b4fd27Smrg      case $host_cpu in
9119b9b4fd27Smrg      powerpc)
9120b9b4fd27Smrg            # see comment about AmigaOS4 .so support
9121b9b4fd27Smrg            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122b9b4fd27Smrg            archive_expsym_cmds=''
9123b9b4fd27Smrg        ;;
9124b9b4fd27Smrg      m68k)
9125b9b4fd27Smrg            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)'
9126b9b4fd27Smrg            hardcode_libdir_flag_spec='-L$libdir'
9127b9b4fd27Smrg            hardcode_minus_L=yes
9128b9b4fd27Smrg        ;;
9129b9b4fd27Smrg      esac
9130b9b4fd27Smrg      ;;
9131caade7ccSmrg
9132b9b4fd27Smrg    bsdi[45]*)
9133b9b4fd27Smrg      export_dynamic_flag_spec=-rdynamic
9134b9b4fd27Smrg      ;;
9135caade7ccSmrg
9136b9b4fd27Smrg    cygwin* | mingw* | pw32* | cegcc*)
9137b9b4fd27Smrg      # When not using gcc, we currently assume that we are using
9138b9b4fd27Smrg      # Microsoft Visual C++.
9139b9b4fd27Smrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
9140b9b4fd27Smrg      # no search path for DLLs.
9141a5602400Smrg      case $cc_basename in
9142a5602400Smrg      cl*)
9143a5602400Smrg	# Native MSVC
9144a5602400Smrg	hardcode_libdir_flag_spec=' '
9145a5602400Smrg	allow_undefined_flag=unsupported
9146a5602400Smrg	always_export_symbols=yes
9147a5602400Smrg	file_list_spec='@'
9148a5602400Smrg	# Tell ltmain to make .lib files, not .a files.
9149a5602400Smrg	libext=lib
9150a5602400Smrg	# Tell ltmain to make .dll files, not .so files.
9151a5602400Smrg	shrext_cmds=".dll"
9152a5602400Smrg	# FIXME: Setting linknames here is a bad hack.
9153a5602400Smrg	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9154a5602400Smrg	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9155a5602400Smrg	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9156a5602400Smrg	  else
9157a5602400Smrg	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9158a5602400Smrg	  fi~
9159a5602400Smrg	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9160a5602400Smrg	  linknames='
9161a5602400Smrg	# The linker will not automatically build a static lib if we build a DLL.
9162a5602400Smrg	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9163a5602400Smrg	enable_shared_with_static_runtimes=yes
9164af9a7ee5Smrg	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9165a5602400Smrg	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9166a5602400Smrg	# Don't use ranlib
9167a5602400Smrg	old_postinstall_cmds='chmod 644 $oldlib'
9168a5602400Smrg	postlink_cmds='lt_outputfile="@OUTPUT@"~
9169a5602400Smrg	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9170a5602400Smrg	  case $lt_outputfile in
9171a5602400Smrg	    *.exe|*.EXE) ;;
9172a5602400Smrg	    *)
9173a5602400Smrg	      lt_outputfile="$lt_outputfile.exe"
9174a5602400Smrg	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9175a5602400Smrg	      ;;
9176a5602400Smrg	  esac~
9177a5602400Smrg	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9178a5602400Smrg	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9179a5602400Smrg	    $RM "$lt_outputfile.manifest";
9180a5602400Smrg	  fi'
9181a5602400Smrg	;;
9182a5602400Smrg      *)
9183a5602400Smrg	# Assume MSVC wrapper
9184a5602400Smrg	hardcode_libdir_flag_spec=' '
9185a5602400Smrg	allow_undefined_flag=unsupported
9186a5602400Smrg	# Tell ltmain to make .lib files, not .a files.
9187a5602400Smrg	libext=lib
9188a5602400Smrg	# Tell ltmain to make .dll files, not .so files.
9189a5602400Smrg	shrext_cmds=".dll"
9190a5602400Smrg	# FIXME: Setting linknames here is a bad hack.
9191a5602400Smrg	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9192a5602400Smrg	# The linker will automatically build a .lib file if we build a DLL.
9193a5602400Smrg	old_archive_from_new_cmds='true'
9194a5602400Smrg	# FIXME: Should let the user specify the lib program.
9195a5602400Smrg	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9196a5602400Smrg	enable_shared_with_static_runtimes=yes
9197a5602400Smrg	;;
9198a5602400Smrg      esac
9199b9b4fd27Smrg      ;;
9200caade7ccSmrg
9201b9b4fd27Smrg    darwin* | rhapsody*)
9202b9b4fd27Smrg
9203b9b4fd27Smrg
9204b9b4fd27Smrg  archive_cmds_need_lc=no
9205b9b4fd27Smrg  hardcode_direct=no
9206b9b4fd27Smrg  hardcode_automatic=yes
9207b9b4fd27Smrg  hardcode_shlibpath_var=unsupported
9208e8a5466aSmrg  if test "$lt_cv_ld_force_load" = "yes"; then
9209e8a5466aSmrg    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9210af9a7ee5Smrg
9211e8a5466aSmrg  else
9212e8a5466aSmrg    whole_archive_flag_spec=''
9213e8a5466aSmrg  fi
9214b9b4fd27Smrg  link_all_deplibs=yes
9215b9b4fd27Smrg  allow_undefined_flag="$_lt_dar_allow_undefined"
9216b9b4fd27Smrg  case $cc_basename in
9217b9b4fd27Smrg     ifort*) _lt_dar_can_shared=yes ;;
9218b9b4fd27Smrg     *) _lt_dar_can_shared=$GCC ;;
9219b9b4fd27Smrg  esac
9220b9b4fd27Smrg  if test "$_lt_dar_can_shared" = "yes"; then
9221e8a5466aSmrg    output_verbose_link_cmd=func_echo_all
9222b9b4fd27Smrg    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9223b9b4fd27Smrg    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9224b9b4fd27Smrg    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}"
9225b9b4fd27Smrg    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}"
9226b9b4fd27Smrg
9227b9b4fd27Smrg  else
9228b9b4fd27Smrg  ld_shlibs=no
9229b9b4fd27Smrg  fi
9230b9b4fd27Smrg
9231b9b4fd27Smrg      ;;
9232b9b4fd27Smrg
9233b9b4fd27Smrg    dgux*)
9234b9b4fd27Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235b9b4fd27Smrg      hardcode_libdir_flag_spec='-L$libdir'
9236b9b4fd27Smrg      hardcode_shlibpath_var=no
9237caade7ccSmrg      ;;
9238b9b4fd27Smrg
9239b9b4fd27Smrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9240b9b4fd27Smrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
9241b9b4fd27Smrg    # does not break anything, and helps significantly (at the cost of a little
9242b9b4fd27Smrg    # extra space).
9243b9b4fd27Smrg    freebsd2.2*)
9244b9b4fd27Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9245b9b4fd27Smrg      hardcode_libdir_flag_spec='-R$libdir'
9246b9b4fd27Smrg      hardcode_direct=yes
9247b9b4fd27Smrg      hardcode_shlibpath_var=no
9248b9b4fd27Smrg      ;;
9249b9b4fd27Smrg
9250b9b4fd27Smrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9251af9a7ee5Smrg    freebsd2.*)
9252b9b4fd27Smrg      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9253b9b4fd27Smrg      hardcode_direct=yes
9254b9b4fd27Smrg      hardcode_minus_L=yes
9255b9b4fd27Smrg      hardcode_shlibpath_var=no
9256b9b4fd27Smrg      ;;
9257b9b4fd27Smrg
9258b9b4fd27Smrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9259b9b4fd27Smrg    freebsd* | dragonfly*)
9260a5602400Smrg      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261b9b4fd27Smrg      hardcode_libdir_flag_spec='-R$libdir'
9262b9b4fd27Smrg      hardcode_direct=yes
9263b9b4fd27Smrg      hardcode_shlibpath_var=no
9264b9b4fd27Smrg      ;;
9265b9b4fd27Smrg
9266b9b4fd27Smrg    hpux9*)
9267b9b4fd27Smrg      if test "$GCC" = yes; then
9268a5602400Smrg	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9269caade7ccSmrg      else
9270b9b4fd27Smrg	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'
9271caade7ccSmrg      fi
9272b9b4fd27Smrg      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9273b9b4fd27Smrg      hardcode_libdir_separator=:
9274b9b4fd27Smrg      hardcode_direct=yes
9275caade7ccSmrg
9276b9b4fd27Smrg      # hardcode_minus_L: Not really in the search PATH,
9277b9b4fd27Smrg      # but as the default location of the library.
9278b9b4fd27Smrg      hardcode_minus_L=yes
9279b9b4fd27Smrg      export_dynamic_flag_spec='${wl}-E'
9280caade7ccSmrg      ;;
9281b9b4fd27Smrg
9282b9b4fd27Smrg    hpux10*)
9283e8a5466aSmrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9284a5602400Smrg	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9285b9b4fd27Smrg      else
9286b9b4fd27Smrg	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9287b9b4fd27Smrg      fi
9288b9b4fd27Smrg      if test "$with_gnu_ld" = no; then
9289b9b4fd27Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9290b9b4fd27Smrg	hardcode_libdir_separator=:
9291b9b4fd27Smrg	hardcode_direct=yes
9292b9b4fd27Smrg	hardcode_direct_absolute=yes
9293b9b4fd27Smrg	export_dynamic_flag_spec='${wl}-E'
9294b9b4fd27Smrg	# hardcode_minus_L: Not really in the search PATH,
9295b9b4fd27Smrg	# but as the default location of the library.
9296b9b4fd27Smrg	hardcode_minus_L=yes
9297b9b4fd27Smrg      fi
9298caade7ccSmrg      ;;
9299caade7ccSmrg
9300b9b4fd27Smrg    hpux11*)
9301e8a5466aSmrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9302caade7ccSmrg	case $host_cpu in
9303caade7ccSmrg	hppa*64*)
9304b9b4fd27Smrg	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9305caade7ccSmrg	  ;;
9306caade7ccSmrg	ia64*)
9307a5602400Smrg	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9308caade7ccSmrg	  ;;
9309caade7ccSmrg	*)
9310a5602400Smrg	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9311caade7ccSmrg	  ;;
9312caade7ccSmrg	esac
9313b9b4fd27Smrg      else
9314b9b4fd27Smrg	case $host_cpu in
9315b9b4fd27Smrg	hppa*64*)
9316b9b4fd27Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317caade7ccSmrg	  ;;
9318b9b4fd27Smrg	ia64*)
9319b9b4fd27Smrg	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9320b9b4fd27Smrg	  ;;
9321b9b4fd27Smrg	*)
9322e8a5466aSmrg
9323e8a5466aSmrg	  # Older versions of the 11.00 compiler do not understand -b yet
9324e8a5466aSmrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9325e8a5466aSmrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9326e8a5466aSmrg$as_echo_n "checking if $CC understands -b... " >&6; }
9327e8a5466aSmrgif ${lt_cv_prog_compiler__b+:} false; then :
9328e8a5466aSmrg  $as_echo_n "(cached) " >&6
9329e8a5466aSmrgelse
9330e8a5466aSmrg  lt_cv_prog_compiler__b=no
9331e8a5466aSmrg   save_LDFLAGS="$LDFLAGS"
9332e8a5466aSmrg   LDFLAGS="$LDFLAGS -b"
9333e8a5466aSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9334e8a5466aSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9335e8a5466aSmrg     # The linker can only warn and ignore the option if not recognized
9336e8a5466aSmrg     # So say no if there are warnings
9337e8a5466aSmrg     if test -s conftest.err; then
9338e8a5466aSmrg       # Append any errors to the config.log.
9339e8a5466aSmrg       cat conftest.err 1>&5
9340e8a5466aSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9341e8a5466aSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9342e8a5466aSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
9343e8a5466aSmrg         lt_cv_prog_compiler__b=yes
9344e8a5466aSmrg       fi
9345e8a5466aSmrg     else
9346e8a5466aSmrg       lt_cv_prog_compiler__b=yes
9347e8a5466aSmrg     fi
9348e8a5466aSmrg   fi
9349e8a5466aSmrg   $RM -r conftest*
9350e8a5466aSmrg   LDFLAGS="$save_LDFLAGS"
9351e8a5466aSmrg
9352e8a5466aSmrgfi
9353e8a5466aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9354e8a5466aSmrg$as_echo "$lt_cv_prog_compiler__b" >&6; }
9355e8a5466aSmrg
9356e8a5466aSmrgif test x"$lt_cv_prog_compiler__b" = xyes; then
9357e8a5466aSmrg    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9358e8a5466aSmrgelse
9359e8a5466aSmrg    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9360e8a5466aSmrgfi
9361e8a5466aSmrg
9362caade7ccSmrg	  ;;
9363caade7ccSmrg	esac
9364b9b4fd27Smrg      fi
9365b9b4fd27Smrg      if test "$with_gnu_ld" = no; then
9366b9b4fd27Smrg	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9367b9b4fd27Smrg	hardcode_libdir_separator=:
9368caade7ccSmrg
9369b9b4fd27Smrg	case $host_cpu in
9370b9b4fd27Smrg	hppa*64*|ia64*)
9371b9b4fd27Smrg	  hardcode_direct=no
9372b9b4fd27Smrg	  hardcode_shlibpath_var=no
9373b9b4fd27Smrg	  ;;
9374b9b4fd27Smrg	*)
9375b9b4fd27Smrg	  hardcode_direct=yes
9376b9b4fd27Smrg	  hardcode_direct_absolute=yes
9377b9b4fd27Smrg	  export_dynamic_flag_spec='${wl}-E'
9378b9b4fd27Smrg
9379b9b4fd27Smrg	  # hardcode_minus_L: Not really in the search PATH,
9380b9b4fd27Smrg	  # but as the default location of the library.
9381b9b4fd27Smrg	  hardcode_minus_L=yes
9382485f0483Smrg	  ;;
9383485f0483Smrg	esac
9384485f0483Smrg      fi
9385b9b4fd27Smrg      ;;
9386caade7ccSmrg
9387b9b4fd27Smrg    irix5* | irix6* | nonstopux*)
9388b9b4fd27Smrg      if test "$GCC" = yes; then
9389a5602400Smrg	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9390b9b4fd27Smrg	# Try to use the -exported_symbol ld option, if it does not
9391b9b4fd27Smrg	# work, assume that -exports_file does not work either and
9392b9b4fd27Smrg	# implicitly export all symbols.
9393a5602400Smrg	# This should be the same for all languages, so no per-tag cache variable.
9394a5602400Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9395a5602400Smrg$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9396a5602400Smrgif ${lt_cv_irix_exported_symbol+:} false; then :
9397a5602400Smrg  $as_echo_n "(cached) " >&6
9398a5602400Smrgelse
9399a5602400Smrg  save_LDFLAGS="$LDFLAGS"
9400a5602400Smrg	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9401a5602400Smrg	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402b9b4fd27Smrg/* end confdefs.h.  */
9403a5602400Smrgint foo (void) { return 0; }
9404b9b4fd27Smrg_ACEOF
9405b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
9406a5602400Smrg  lt_cv_irix_exported_symbol=yes
9407a5602400Smrgelse
9408a5602400Smrg  lt_cv_irix_exported_symbol=no
9409b9b4fd27Smrgfi
9410b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
9411b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
9412a5602400Smrg           LDFLAGS="$save_LDFLAGS"
9413a5602400Smrgfi
9414a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9415a5602400Smrg$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9416a5602400Smrg	if test "$lt_cv_irix_exported_symbol" = yes; then
9417a5602400Smrg          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9418a5602400Smrg	fi
9419b9b4fd27Smrg      else
9420e8a5466aSmrg	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9421e8a5466aSmrg	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9422b9b4fd27Smrg      fi
9423b9b4fd27Smrg      archive_cmds_need_lc='no'
9424b9b4fd27Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425b9b4fd27Smrg      hardcode_libdir_separator=:
9426b9b4fd27Smrg      inherit_rpath=yes
9427b9b4fd27Smrg      link_all_deplibs=yes
9428b9b4fd27Smrg      ;;
9429caade7ccSmrg
9430b9b4fd27Smrg    netbsd*)
9431b9b4fd27Smrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9432b9b4fd27Smrg	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9433b9b4fd27Smrg      else
9434b9b4fd27Smrg	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9435b9b4fd27Smrg      fi
9436b9b4fd27Smrg      hardcode_libdir_flag_spec='-R$libdir'
9437b9b4fd27Smrg      hardcode_direct=yes
9438b9b4fd27Smrg      hardcode_shlibpath_var=no
9439b9b4fd27Smrg      ;;
9440caade7ccSmrg
9441b9b4fd27Smrg    newsos6)
9442b9b4fd27Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9443b9b4fd27Smrg      hardcode_direct=yes
9444b9b4fd27Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445b9b4fd27Smrg      hardcode_libdir_separator=:
9446b9b4fd27Smrg      hardcode_shlibpath_var=no
9447b9b4fd27Smrg      ;;
9448caade7ccSmrg
9449b9b4fd27Smrg    *nto* | *qnx*)
9450b9b4fd27Smrg      ;;
9451caade7ccSmrg
9452b9b4fd27Smrg    openbsd*)
9453b9b4fd27Smrg      if test -f /usr/libexec/ld.so; then
9454b9b4fd27Smrg	hardcode_direct=yes
9455b9b4fd27Smrg	hardcode_shlibpath_var=no
9456b9b4fd27Smrg	hardcode_direct_absolute=yes
9457b9b4fd27Smrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9458b9b4fd27Smrg	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9459b9b4fd27Smrg	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9460b9b4fd27Smrg	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9461b9b4fd27Smrg	  export_dynamic_flag_spec='${wl}-E'
9462caade7ccSmrg	else
9463b9b4fd27Smrg	  case $host_os in
9464b9b4fd27Smrg	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9465b9b4fd27Smrg	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9466b9b4fd27Smrg	     hardcode_libdir_flag_spec='-R$libdir'
9467b9b4fd27Smrg	     ;;
9468b9b4fd27Smrg	   *)
9469b9b4fd27Smrg	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9470b9b4fd27Smrg	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9471b9b4fd27Smrg	     ;;
9472b9b4fd27Smrg	  esac
9473caade7ccSmrg	fi
9474b9b4fd27Smrg      else
9475b9b4fd27Smrg	ld_shlibs=no
9476b9b4fd27Smrg      fi
9477b9b4fd27Smrg      ;;
9478b9b4fd27Smrg
9479b9b4fd27Smrg    os2*)
9480b9b4fd27Smrg      hardcode_libdir_flag_spec='-L$libdir'
9481b9b4fd27Smrg      hardcode_minus_L=yes
9482b9b4fd27Smrg      allow_undefined_flag=unsupported
9483e8a5466aSmrg      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'
9484b9b4fd27Smrg      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9485b9b4fd27Smrg      ;;
9486b9b4fd27Smrg
9487b9b4fd27Smrg    osf3*)
9488b9b4fd27Smrg      if test "$GCC" = yes; then
9489b9b4fd27Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9490e8a5466aSmrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9491b9b4fd27Smrg      else
9492b9b4fd27Smrg	allow_undefined_flag=' -expect_unresolved \*'
9493e8a5466aSmrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9494b9b4fd27Smrg      fi
9495b9b4fd27Smrg      archive_cmds_need_lc='no'
9496b9b4fd27Smrg      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9497b9b4fd27Smrg      hardcode_libdir_separator=:
9498b9b4fd27Smrg      ;;
9499caade7ccSmrg
9500b9b4fd27Smrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9501b9b4fd27Smrg      if test "$GCC" = yes; then
9502b9b4fd27Smrg	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9503a5602400Smrg	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9504b9b4fd27Smrg	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505b9b4fd27Smrg      else
9506b9b4fd27Smrg	allow_undefined_flag=' -expect_unresolved \*'
9507e8a5466aSmrg	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9508b9b4fd27Smrg	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~
9509e8a5466aSmrg	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9510caade7ccSmrg
9511b9b4fd27Smrg	# Both c and cxx compiler support -rpath directly
9512b9b4fd27Smrg	hardcode_libdir_flag_spec='-rpath $libdir'
9513b9b4fd27Smrg      fi
9514b9b4fd27Smrg      archive_cmds_need_lc='no'
9515b9b4fd27Smrg      hardcode_libdir_separator=:
9516b9b4fd27Smrg      ;;
9517caade7ccSmrg
9518b9b4fd27Smrg    solaris*)
9519b9b4fd27Smrg      no_undefined_flag=' -z defs'
9520b9b4fd27Smrg      if test "$GCC" = yes; then
9521b9b4fd27Smrg	wlarc='${wl}'
9522a5602400Smrg	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9523b9b4fd27Smrg	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9524a5602400Smrg	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9525b9b4fd27Smrg      else
9526b9b4fd27Smrg	case `$CC -V 2>&1` in
9527b9b4fd27Smrg	*"Compilers 5.0"*)
9528b9b4fd27Smrg	  wlarc=''
9529b9b4fd27Smrg	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530b9b4fd27Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9531b9b4fd27Smrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9532b9b4fd27Smrg	  ;;
9533b9b4fd27Smrg	*)
9534b9b4fd27Smrg	  wlarc='${wl}'
9535b9b4fd27Smrg	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9536b9b4fd27Smrg	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9537b9b4fd27Smrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9538b9b4fd27Smrg	  ;;
9539b9b4fd27Smrg	esac
9540b9b4fd27Smrg      fi
9541b9b4fd27Smrg      hardcode_libdir_flag_spec='-R$libdir'
9542b9b4fd27Smrg      hardcode_shlibpath_var=no
9543b9b4fd27Smrg      case $host_os in
9544b9b4fd27Smrg      solaris2.[0-5] | solaris2.[0-5].*) ;;
9545b9b4fd27Smrg      *)
9546b9b4fd27Smrg	# The compiler driver will combine and reorder linker options,
9547b9b4fd27Smrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9548b9b4fd27Smrg	# but is careful enough not to reorder.
9549b9b4fd27Smrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
9550b9b4fd27Smrg	if test "$GCC" = yes; then
9551b9b4fd27Smrg	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9552caade7ccSmrg	else
9553b9b4fd27Smrg	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9554caade7ccSmrg	fi
9555caade7ccSmrg	;;
9556b9b4fd27Smrg      esac
9557b9b4fd27Smrg      link_all_deplibs=yes
9558b9b4fd27Smrg      ;;
9559caade7ccSmrg
9560b9b4fd27Smrg    sunos4*)
9561b9b4fd27Smrg      if test "x$host_vendor" = xsequent; then
9562b9b4fd27Smrg	# Use $CC to link under sequent, because it throws in some extra .o
9563b9b4fd27Smrg	# files that make .init and .fini sections work.
9564b9b4fd27Smrg	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9565b9b4fd27Smrg      else
9566b9b4fd27Smrg	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9567b9b4fd27Smrg      fi
9568b9b4fd27Smrg      hardcode_libdir_flag_spec='-L$libdir'
9569b9b4fd27Smrg      hardcode_direct=yes
9570b9b4fd27Smrg      hardcode_minus_L=yes
9571b9b4fd27Smrg      hardcode_shlibpath_var=no
9572b9b4fd27Smrg      ;;
9573caade7ccSmrg
9574b9b4fd27Smrg    sysv4)
9575b9b4fd27Smrg      case $host_vendor in
9576b9b4fd27Smrg	sni)
9577b9b4fd27Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578b9b4fd27Smrg	  hardcode_direct=yes # is this really true???
9579caade7ccSmrg	;;
9580b9b4fd27Smrg	siemens)
9581b9b4fd27Smrg	  ## LD is ld it makes a PLAMLIB
9582b9b4fd27Smrg	  ## CC just makes a GrossModule.
9583b9b4fd27Smrg	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9584b9b4fd27Smrg	  reload_cmds='$CC -r -o $output$reload_objs'
9585b9b4fd27Smrg	  hardcode_direct=no
9586b9b4fd27Smrg        ;;
9587b9b4fd27Smrg	motorola)
9588b9b4fd27Smrg	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589b9b4fd27Smrg	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9590caade7ccSmrg	;;
9591b9b4fd27Smrg      esac
9592b9b4fd27Smrg      runpath_var='LD_RUN_PATH'
9593b9b4fd27Smrg      hardcode_shlibpath_var=no
9594b9b4fd27Smrg      ;;
9595caade7ccSmrg
9596b9b4fd27Smrg    sysv4.3*)
9597b9b4fd27Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598b9b4fd27Smrg      hardcode_shlibpath_var=no
9599b9b4fd27Smrg      export_dynamic_flag_spec='-Bexport'
9600b9b4fd27Smrg      ;;
9601caade7ccSmrg
9602b9b4fd27Smrg    sysv4*MP*)
9603b9b4fd27Smrg      if test -d /usr/nec; then
9604b9b4fd27Smrg	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605b9b4fd27Smrg	hardcode_shlibpath_var=no
9606b9b4fd27Smrg	runpath_var=LD_RUN_PATH
9607b9b4fd27Smrg	hardcode_runpath_var=yes
9608b9b4fd27Smrg	ld_shlibs=yes
9609b9b4fd27Smrg      fi
9610b9b4fd27Smrg      ;;
9611caade7ccSmrg
9612b9b4fd27Smrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9613b9b4fd27Smrg      no_undefined_flag='${wl}-z,text'
9614b9b4fd27Smrg      archive_cmds_need_lc=no
9615b9b4fd27Smrg      hardcode_shlibpath_var=no
9616b9b4fd27Smrg      runpath_var='LD_RUN_PATH'
9617caade7ccSmrg
9618b9b4fd27Smrg      if test "$GCC" = yes; then
9619b9b4fd27Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9620b9b4fd27Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9621b9b4fd27Smrg      else
9622b9b4fd27Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9623b9b4fd27Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9624b9b4fd27Smrg      fi
9625b9b4fd27Smrg      ;;
9626caade7ccSmrg
9627b9b4fd27Smrg    sysv5* | sco3.2v5* | sco5v6*)
9628b9b4fd27Smrg      # Note: We can NOT use -z defs as we might desire, because we do not
9629b9b4fd27Smrg      # link with -lc, and that would cause any symbols used from libc to
9630b9b4fd27Smrg      # always be unresolved, which means just about no library would
9631b9b4fd27Smrg      # ever link correctly.  If we're not using GNU ld we use -z text
9632b9b4fd27Smrg      # though, which does catch some bad symbols but isn't as heavy-handed
9633b9b4fd27Smrg      # as -z defs.
9634b9b4fd27Smrg      no_undefined_flag='${wl}-z,text'
9635b9b4fd27Smrg      allow_undefined_flag='${wl}-z,nodefs'
9636b9b4fd27Smrg      archive_cmds_need_lc=no
9637b9b4fd27Smrg      hardcode_shlibpath_var=no
9638b9b4fd27Smrg      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9639b9b4fd27Smrg      hardcode_libdir_separator=':'
9640b9b4fd27Smrg      link_all_deplibs=yes
9641b9b4fd27Smrg      export_dynamic_flag_spec='${wl}-Bexport'
9642b9b4fd27Smrg      runpath_var='LD_RUN_PATH'
9643caade7ccSmrg
9644b9b4fd27Smrg      if test "$GCC" = yes; then
9645b9b4fd27Smrg	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646b9b4fd27Smrg	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647b9b4fd27Smrg      else
9648b9b4fd27Smrg	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9649b9b4fd27Smrg	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9650b9b4fd27Smrg      fi
9651b9b4fd27Smrg      ;;
9652caade7ccSmrg
9653b9b4fd27Smrg    uts4*)
9654b9b4fd27Smrg      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655b9b4fd27Smrg      hardcode_libdir_flag_spec='-L$libdir'
9656b9b4fd27Smrg      hardcode_shlibpath_var=no
9657b9b4fd27Smrg      ;;
9658caade7ccSmrg
9659b9b4fd27Smrg    *)
9660b9b4fd27Smrg      ld_shlibs=no
9661b9b4fd27Smrg      ;;
9662caade7ccSmrg    esac
9663caade7ccSmrg
9664b9b4fd27Smrg    if test x$host_vendor = xsni; then
9665b9b4fd27Smrg      case $host in
9666b9b4fd27Smrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9667b9b4fd27Smrg	export_dynamic_flag_spec='${wl}-Blargedynsym'
9668b9b4fd27Smrg	;;
9669b9b4fd27Smrg      esac
9670b9b4fd27Smrg    fi
9671b9b4fd27Smrg  fi
9672caade7ccSmrg
9673b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9674b9b4fd27Smrg$as_echo "$ld_shlibs" >&6; }
9675b9b4fd27Smrgtest "$ld_shlibs" = no && can_build_shared=no
9676485f0483Smrg
9677b9b4fd27Smrgwith_gnu_ld=$with_gnu_ld
9678caade7ccSmrg
9679485f0483Smrg
9680485f0483Smrg
9681caade7ccSmrg
9682caade7ccSmrg
9683caade7ccSmrg
9684caade7ccSmrg
9685caade7ccSmrg
9686caade7ccSmrg
9687caade7ccSmrg
9688caade7ccSmrg
9689caade7ccSmrg
9690caade7ccSmrg
9691caade7ccSmrg
9692caade7ccSmrg
9693caade7ccSmrg#
9694caade7ccSmrg# Do we need to explicitly link libc?
9695caade7ccSmrg#
9696b9b4fd27Smrgcase "x$archive_cmds_need_lc" in
9697caade7ccSmrgx|xyes)
9698caade7ccSmrg  # Assume -lc should be added
9699b9b4fd27Smrg  archive_cmds_need_lc=yes
9700caade7ccSmrg
9701caade7ccSmrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
9702b9b4fd27Smrg    case $archive_cmds in
9703caade7ccSmrg    *'~'*)
9704caade7ccSmrg      # FIXME: we may have to deal with multi-command sequences.
9705caade7ccSmrg      ;;
9706caade7ccSmrg    '$CC '*)
9707caade7ccSmrg      # Test whether the compiler implicitly links with -lc since on some
9708caade7ccSmrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9709caade7ccSmrg      # to ld, don't add -lc before -lgcc.
9710b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9711485f0483Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9712e8a5466aSmrgif ${lt_cv_archive_cmds_need_lc+:} false; then :
9713e8a5466aSmrg  $as_echo_n "(cached) " >&6
9714e8a5466aSmrgelse
9715e8a5466aSmrg  $RM conftest*
9716e8a5466aSmrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9717caade7ccSmrg
9718e8a5466aSmrg	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9719caade7ccSmrg  (eval $ac_compile) 2>&5
9720caade7ccSmrg  ac_status=$?
9721b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9722b9b4fd27Smrg  test $ac_status = 0; } 2>conftest.err; then
9723e8a5466aSmrg	  soname=conftest
9724e8a5466aSmrg	  lib=conftest
9725e8a5466aSmrg	  libobjs=conftest.$ac_objext
9726e8a5466aSmrg	  deplibs=
9727e8a5466aSmrg	  wl=$lt_prog_compiler_wl
9728e8a5466aSmrg	  pic_flag=$lt_prog_compiler_pic
9729e8a5466aSmrg	  compiler_flags=-v
9730e8a5466aSmrg	  linker_flags=-v
9731e8a5466aSmrg	  verstring=
9732e8a5466aSmrg	  output_objdir=.
9733e8a5466aSmrg	  libname=conftest
9734e8a5466aSmrg	  lt_save_allow_undefined_flag=$allow_undefined_flag
9735e8a5466aSmrg	  allow_undefined_flag=
9736e8a5466aSmrg	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9737b9b4fd27Smrg  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9738caade7ccSmrg  ac_status=$?
9739b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9740b9b4fd27Smrg  test $ac_status = 0; }
9741e8a5466aSmrg	  then
9742e8a5466aSmrg	    lt_cv_archive_cmds_need_lc=no
9743e8a5466aSmrg	  else
9744e8a5466aSmrg	    lt_cv_archive_cmds_need_lc=yes
9745e8a5466aSmrg	  fi
9746e8a5466aSmrg	  allow_undefined_flag=$lt_save_allow_undefined_flag
9747e8a5466aSmrg	else
9748e8a5466aSmrg	  cat conftest.err 1>&5
9749e8a5466aSmrg	fi
9750e8a5466aSmrg	$RM conftest*
9751e8a5466aSmrg
9752e8a5466aSmrgfi
9753e8a5466aSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9754e8a5466aSmrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9755e8a5466aSmrg      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9756caade7ccSmrg      ;;
9757caade7ccSmrg    esac
9758caade7ccSmrg  fi
9759caade7ccSmrg  ;;
9760caade7ccSmrgesac
9761caade7ccSmrg
9762485f0483Smrg
9763caade7ccSmrg
9764caade7ccSmrg
9765caade7ccSmrg
9766caade7ccSmrg
9767caade7ccSmrg
9768caade7ccSmrg
9769caade7ccSmrg
9770caade7ccSmrg
9771caade7ccSmrg
9772caade7ccSmrg
9773caade7ccSmrg
9774caade7ccSmrg
9775485f0483Smrg
9776caade7ccSmrg
9777caade7ccSmrg
9778caade7ccSmrg
9779caade7ccSmrg
9780caade7ccSmrg
9781caade7ccSmrg
9782caade7ccSmrg
9783caade7ccSmrg
9784caade7ccSmrg
9785caade7ccSmrg
9786caade7ccSmrg
9787caade7ccSmrg
9788caade7ccSmrg
9789caade7ccSmrg
9790caade7ccSmrg
9791caade7ccSmrg
9792caade7ccSmrg
9793caade7ccSmrg
9794485f0483Smrg
9795caade7ccSmrg
9796caade7ccSmrg
9797caade7ccSmrg
9798485f0483Smrg
9799485f0483Smrg
9800485f0483Smrg
9801caade7ccSmrg
9802caade7ccSmrg
9803caade7ccSmrg
9804caade7ccSmrg
9805caade7ccSmrg
9806caade7ccSmrg
9807caade7ccSmrg
9808caade7ccSmrg
9809caade7ccSmrg
9810caade7ccSmrg
9811caade7ccSmrg
9812caade7ccSmrg
9813caade7ccSmrg
9814caade7ccSmrg
9815caade7ccSmrg
9816caade7ccSmrg
9817caade7ccSmrg
9818caade7ccSmrg
9819caade7ccSmrg
9820caade7ccSmrg
9821caade7ccSmrg
9822caade7ccSmrg
9823caade7ccSmrg
9824caade7ccSmrg
9825caade7ccSmrg
9826caade7ccSmrg
9827caade7ccSmrg
9828caade7ccSmrg
9829caade7ccSmrg
9830caade7ccSmrg
9831caade7ccSmrg
9832caade7ccSmrg
9833caade7ccSmrg
9834caade7ccSmrg
9835caade7ccSmrg
9836caade7ccSmrg
9837caade7ccSmrg
9838caade7ccSmrg
9839caade7ccSmrg
9840caade7ccSmrg
9841caade7ccSmrg
9842caade7ccSmrg
9843caade7ccSmrg
9844caade7ccSmrg
9845caade7ccSmrg
9846caade7ccSmrg
9847caade7ccSmrg
9848caade7ccSmrg
9849caade7ccSmrg
9850caade7ccSmrg
9851caade7ccSmrg
9852caade7ccSmrg
9853caade7ccSmrg
9854caade7ccSmrg
9855caade7ccSmrg
9856caade7ccSmrg
9857caade7ccSmrg
9858caade7ccSmrg
9859caade7ccSmrg
9860caade7ccSmrg
9861caade7ccSmrg
9862caade7ccSmrg
9863caade7ccSmrg
9864caade7ccSmrg
9865caade7ccSmrg
9866caade7ccSmrg
9867caade7ccSmrg
9868caade7ccSmrg
9869485f0483Smrg
9870caade7ccSmrg
9871caade7ccSmrg
9872caade7ccSmrg
9873caade7ccSmrg
9874caade7ccSmrg
9875caade7ccSmrg
9876caade7ccSmrg
9877caade7ccSmrg
9878caade7ccSmrg
9879caade7ccSmrg
9880caade7ccSmrg
9881caade7ccSmrg
9882caade7ccSmrg
9883caade7ccSmrg
9884caade7ccSmrg
9885caade7ccSmrg
9886caade7ccSmrg
9887caade7ccSmrg
9888caade7ccSmrg
9889caade7ccSmrg
9890caade7ccSmrg
9891caade7ccSmrg
9892caade7ccSmrg
9893caade7ccSmrg
9894caade7ccSmrg
9895caade7ccSmrg
9896caade7ccSmrg
9897caade7ccSmrg
9898caade7ccSmrg
9899caade7ccSmrg
9900caade7ccSmrg
9901caade7ccSmrg
9902caade7ccSmrg
9903caade7ccSmrg
9904caade7ccSmrg
9905caade7ccSmrg
9906caade7ccSmrg
9907caade7ccSmrg
9908caade7ccSmrg
9909caade7ccSmrg
9910caade7ccSmrg
9911caade7ccSmrg
9912caade7ccSmrg
9913b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9914b9b4fd27Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; }
9915caade7ccSmrg
9916b9b4fd27Smrgif test "$GCC" = yes; then
9917b9b4fd27Smrg  case $host_os in
9918b9b4fd27Smrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9919b9b4fd27Smrg    *) lt_awk_arg="/^libraries:/" ;;
9920caade7ccSmrg  esac
9921e8a5466aSmrg  case $host_os in
9922e8a5466aSmrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9923e8a5466aSmrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
9924e8a5466aSmrg  esac
9925e8a5466aSmrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9926e8a5466aSmrg  case $lt_search_path_spec in
9927e8a5466aSmrg  *\;*)
9928b9b4fd27Smrg    # if the path contains ";" then we assume it to be the separator
9929b9b4fd27Smrg    # otherwise default to the standard path separator (i.e. ":") - it is
9930b9b4fd27Smrg    # assumed that no part of a normal pathname contains ";" but that should
9931b9b4fd27Smrg    # okay in the real world where ";" in dirpaths is itself problematic.
9932e8a5466aSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9933e8a5466aSmrg    ;;
9934e8a5466aSmrg  *)
9935e8a5466aSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9936e8a5466aSmrg    ;;
9937e8a5466aSmrg  esac
9938b9b4fd27Smrg  # Ok, now we have the path, separated by spaces, we can step through it
9939b9b4fd27Smrg  # and add multilib dir if necessary.
9940b9b4fd27Smrg  lt_tmp_lt_search_path_spec=
9941b9b4fd27Smrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9942b9b4fd27Smrg  for lt_sys_path in $lt_search_path_spec; do
9943b9b4fd27Smrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9944b9b4fd27Smrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9945b9b4fd27Smrg    else
9946b9b4fd27Smrg      test -d "$lt_sys_path" && \
9947b9b4fd27Smrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9948b9b4fd27Smrg    fi
9949b9b4fd27Smrg  done
9950e8a5466aSmrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9951b9b4fd27SmrgBEGIN {RS=" "; FS="/|\n";} {
9952b9b4fd27Smrg  lt_foo="";
9953b9b4fd27Smrg  lt_count=0;
9954b9b4fd27Smrg  for (lt_i = NF; lt_i > 0; lt_i--) {
9955b9b4fd27Smrg    if ($lt_i != "" && $lt_i != ".") {
9956b9b4fd27Smrg      if ($lt_i == "..") {
9957b9b4fd27Smrg        lt_count++;
9958b9b4fd27Smrg      } else {
9959b9b4fd27Smrg        if (lt_count == 0) {
9960b9b4fd27Smrg          lt_foo="/" $lt_i lt_foo;
9961b9b4fd27Smrg        } else {
9962b9b4fd27Smrg          lt_count--;
9963b9b4fd27Smrg        }
9964b9b4fd27Smrg      }
9965b9b4fd27Smrg    }
9966b9b4fd27Smrg  }
9967b9b4fd27Smrg  if (lt_foo != "") { lt_freq[lt_foo]++; }
9968b9b4fd27Smrg  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9969b9b4fd27Smrg}'`
9970e8a5466aSmrg  # AWK program above erroneously prepends '/' to C:/dos/paths
9971e8a5466aSmrg  # for these hosts.
9972e8a5466aSmrg  case $host_os in
9973e8a5466aSmrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9974e8a5466aSmrg      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9975e8a5466aSmrg  esac
9976e8a5466aSmrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9977b9b4fd27Smrgelse
9978b9b4fd27Smrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9979b9b4fd27Smrgfi
9980b9b4fd27Smrglibrary_names_spec=
9981b9b4fd27Smrglibname_spec='lib$name'
9982b9b4fd27Smrgsoname_spec=
9983b9b4fd27Smrgshrext_cmds=".so"
9984b9b4fd27Smrgpostinstall_cmds=
9985b9b4fd27Smrgpostuninstall_cmds=
9986b9b4fd27Smrgfinish_cmds=
9987b9b4fd27Smrgfinish_eval=
9988b9b4fd27Smrgshlibpath_var=
9989b9b4fd27Smrgshlibpath_overrides_runpath=unknown
9990b9b4fd27Smrgversion_type=none
9991b9b4fd27Smrgdynamic_linker="$host_os ld.so"
9992b9b4fd27Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
9993b9b4fd27Smrgneed_lib_prefix=unknown
9994b9b4fd27Smrghardcode_into_libs=no
9995caade7ccSmrg
9996b9b4fd27Smrg# when you set need_version to no, make sure it does not cause -set_version
9997b9b4fd27Smrg# flags to be left without arguments
9998b9b4fd27Smrgneed_version=unknown
9999caade7ccSmrg
10000caade7ccSmrgcase $host_os in
10001caade7ccSmrgaix3*)
10002af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10003b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10004b9b4fd27Smrg  shlibpath_var=LIBPATH
10005b9b4fd27Smrg
10006b9b4fd27Smrg  # AIX 3 has no versioning support, so we append a major version to the name.
10007b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10008caade7ccSmrg  ;;
10009b9b4fd27Smrg
10010485f0483Smrgaix[4-9]*)
10011af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10012b9b4fd27Smrg  need_lib_prefix=no
10013b9b4fd27Smrg  need_version=no
10014b9b4fd27Smrg  hardcode_into_libs=yes
10015b9b4fd27Smrg  if test "$host_cpu" = ia64; then
10016b9b4fd27Smrg    # AIX 5 supports IA64
10017b9b4fd27Smrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10018b9b4fd27Smrg    shlibpath_var=LD_LIBRARY_PATH
10019b9b4fd27Smrg  else
10020b9b4fd27Smrg    # With GCC up to 2.95.x, collect2 would create an import file
10021b9b4fd27Smrg    # for dependence libraries.  The import file would start with
10022b9b4fd27Smrg    # the line `#! .'.  This would cause the generated library to
10023b9b4fd27Smrg    # depend on `.', always an invalid library.  This was fixed in
10024b9b4fd27Smrg    # development snapshots of GCC prior to 3.0.
10025b9b4fd27Smrg    case $host_os in
10026b9b4fd27Smrg      aix4 | aix4.[01] | aix4.[01].*)
10027b9b4fd27Smrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10028b9b4fd27Smrg	   echo ' yes '
10029b9b4fd27Smrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10030b9b4fd27Smrg	:
10031b9b4fd27Smrg      else
10032b9b4fd27Smrg	can_build_shared=no
10033b9b4fd27Smrg      fi
10034b9b4fd27Smrg      ;;
10035b9b4fd27Smrg    esac
10036b9b4fd27Smrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10037b9b4fd27Smrg    # soname into executable. Probably we can add versioning support to
10038b9b4fd27Smrg    # collect2, so additional links can be useful in future.
10039b9b4fd27Smrg    if test "$aix_use_runtimelinking" = yes; then
10040b9b4fd27Smrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10041b9b4fd27Smrg      # instead of lib<name>.a to let people know that these are not
10042b9b4fd27Smrg      # typical AIX shared libraries.
10043b9b4fd27Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044b9b4fd27Smrg    else
10045b9b4fd27Smrg      # We preserve .a as extension for shared libraries through AIX4.2
10046b9b4fd27Smrg      # and later when we are not doing run time linking.
10047b9b4fd27Smrg      library_names_spec='${libname}${release}.a $libname.a'
10048b9b4fd27Smrg      soname_spec='${libname}${release}${shared_ext}$major'
10049b9b4fd27Smrg    fi
10050b9b4fd27Smrg    shlibpath_var=LIBPATH
10051caade7ccSmrg  fi
10052caade7ccSmrg  ;;
10053caade7ccSmrg
10054b9b4fd27Smrgamigaos*)
10055b9b4fd27Smrg  case $host_cpu in
10056b9b4fd27Smrg  powerpc)
10057b9b4fd27Smrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
10058b9b4fd27Smrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10059b9b4fd27Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060b9b4fd27Smrg    ;;
10061b9b4fd27Smrg  m68k)
10062b9b4fd27Smrg    library_names_spec='$libname.ixlibrary $libname.a'
10063b9b4fd27Smrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10064e8a5466aSmrg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10065b9b4fd27Smrg    ;;
10066b9b4fd27Smrg  esac
10067b9b4fd27Smrg  ;;
10068caade7ccSmrg
10069b9b4fd27Smrgbeos*)
10070b9b4fd27Smrg  library_names_spec='${libname}${shared_ext}'
10071b9b4fd27Smrg  dynamic_linker="$host_os ld.so"
10072b9b4fd27Smrg  shlibpath_var=LIBRARY_PATH
10073b9b4fd27Smrg  ;;
10074caade7ccSmrg
10075b9b4fd27Smrgbsdi[45]*)
10076af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10077b9b4fd27Smrg  need_version=no
10078b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10080b9b4fd27Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10081b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10082b9b4fd27Smrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10083b9b4fd27Smrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10084b9b4fd27Smrg  # the default ld.so.conf also contains /usr/contrib/lib and
10085b9b4fd27Smrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10086b9b4fd27Smrg  # libtool to hard-code these into programs
10087b9b4fd27Smrg  ;;
10088caade7ccSmrg
10089b9b4fd27Smrgcygwin* | mingw* | pw32* | cegcc*)
10090b9b4fd27Smrg  version_type=windows
10091b9b4fd27Smrg  shrext_cmds=".dll"
10092b9b4fd27Smrg  need_version=no
10093b9b4fd27Smrg  need_lib_prefix=no
10094caade7ccSmrg
10095a5602400Smrg  case $GCC,$cc_basename in
10096a5602400Smrg  yes,*)
10097a5602400Smrg    # gcc
10098b9b4fd27Smrg    library_names_spec='$libname.dll.a'
10099b9b4fd27Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10100b9b4fd27Smrg    postinstall_cmds='base_file=`basename \${file}`~
10101b9b4fd27Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10102b9b4fd27Smrg      dldir=$destdir/`dirname \$dlpath`~
10103b9b4fd27Smrg      test -d \$dldir || mkdir -p \$dldir~
10104b9b4fd27Smrg      $install_prog $dir/$dlname \$dldir/$dlname~
10105b9b4fd27Smrg      chmod a+x \$dldir/$dlname~
10106b9b4fd27Smrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10107b9b4fd27Smrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10108b9b4fd27Smrg      fi'
10109b9b4fd27Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10110b9b4fd27Smrg      dlpath=$dir/\$dldll~
10111b9b4fd27Smrg       $RM \$dlpath'
10112b9b4fd27Smrg    shlibpath_overrides_runpath=yes
10113caade7ccSmrg
10114caade7ccSmrg    case $host_os in
10115b9b4fd27Smrg    cygwin*)
10116b9b4fd27Smrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10117b9b4fd27Smrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10118e8a5466aSmrg
10119e8a5466aSmrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10120b9b4fd27Smrg      ;;
10121b9b4fd27Smrg    mingw* | cegcc*)
10122b9b4fd27Smrg      # MinGW DLLs use traditional 'lib' prefix
10123b9b4fd27Smrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10124caade7ccSmrg      ;;
10125b9b4fd27Smrg    pw32*)
10126b9b4fd27Smrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
10127b9b4fd27Smrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10128caade7ccSmrg      ;;
10129b9b4fd27Smrg    esac
10130a5602400Smrg    dynamic_linker='Win32 ld.exe'
10131a5602400Smrg    ;;
10132a5602400Smrg
10133a5602400Smrg  *,cl*)
10134a5602400Smrg    # Native MSVC
10135a5602400Smrg    libname_spec='$name'
10136a5602400Smrg    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10137a5602400Smrg    library_names_spec='${libname}.dll.lib'
10138a5602400Smrg
10139a5602400Smrg    case $build_os in
10140a5602400Smrg    mingw*)
10141a5602400Smrg      sys_lib_search_path_spec=
10142a5602400Smrg      lt_save_ifs=$IFS
10143a5602400Smrg      IFS=';'
10144a5602400Smrg      for lt_path in $LIB
10145a5602400Smrg      do
10146a5602400Smrg        IFS=$lt_save_ifs
10147a5602400Smrg        # Let DOS variable expansion print the short 8.3 style file name.
10148a5602400Smrg        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10149a5602400Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10150a5602400Smrg      done
10151a5602400Smrg      IFS=$lt_save_ifs
10152a5602400Smrg      # Convert to MSYS style.
10153a5602400Smrg      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10154a5602400Smrg      ;;
10155a5602400Smrg    cygwin*)
10156a5602400Smrg      # Convert to unix form, then to dos form, then back to unix form
10157a5602400Smrg      # but this time dos style (no spaces!) so that the unix form looks
10158a5602400Smrg      # like /cygdrive/c/PROGRA~1:/cygdr...
10159a5602400Smrg      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10160a5602400Smrg      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10161a5602400Smrg      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10162a5602400Smrg      ;;
10163a5602400Smrg    *)
10164a5602400Smrg      sys_lib_search_path_spec="$LIB"
10165a5602400Smrg      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10166a5602400Smrg        # It is most probably a Windows format PATH.
10167a5602400Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10168a5602400Smrg      else
10169a5602400Smrg        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10170a5602400Smrg      fi
10171a5602400Smrg      # FIXME: find the short name or the path components, as spaces are
10172a5602400Smrg      # common. (e.g. "Program Files" -> "PROGRA~1")
10173a5602400Smrg      ;;
10174a5602400Smrg    esac
10175a5602400Smrg
10176a5602400Smrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10177a5602400Smrg    postinstall_cmds='base_file=`basename \${file}`~
10178a5602400Smrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10179a5602400Smrg      dldir=$destdir/`dirname \$dlpath`~
10180a5602400Smrg      test -d \$dldir || mkdir -p \$dldir~
10181a5602400Smrg      $install_prog $dir/$dlname \$dldir/$dlname'
10182a5602400Smrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10183a5602400Smrg      dlpath=$dir/\$dldll~
10184a5602400Smrg       $RM \$dlpath'
10185a5602400Smrg    shlibpath_overrides_runpath=yes
10186a5602400Smrg    dynamic_linker='Win32 link.exe'
10187b9b4fd27Smrg    ;;
10188caade7ccSmrg
10189b9b4fd27Smrg  *)
10190a5602400Smrg    # Assume MSVC wrapper
10191b9b4fd27Smrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10192a5602400Smrg    dynamic_linker='Win32 ld.exe'
10193b9b4fd27Smrg    ;;
10194b9b4fd27Smrg  esac
10195b9b4fd27Smrg  # FIXME: first we should search . and the directory the executable is in
10196b9b4fd27Smrg  shlibpath_var=PATH
10197b9b4fd27Smrg  ;;
10198caade7ccSmrg
10199b9b4fd27Smrgdarwin* | rhapsody*)
10200b9b4fd27Smrg  dynamic_linker="$host_os dyld"
10201b9b4fd27Smrg  version_type=darwin
10202b9b4fd27Smrg  need_lib_prefix=no
10203b9b4fd27Smrg  need_version=no
10204b9b4fd27Smrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10205b9b4fd27Smrg  soname_spec='${libname}${release}${major}$shared_ext'
10206b9b4fd27Smrg  shlibpath_overrides_runpath=yes
10207b9b4fd27Smrg  shlibpath_var=DYLD_LIBRARY_PATH
10208b9b4fd27Smrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10209caade7ccSmrg
10210b9b4fd27Smrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10211b9b4fd27Smrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10212b9b4fd27Smrg  ;;
10213caade7ccSmrg
10214b9b4fd27Smrgdgux*)
10215af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10216b9b4fd27Smrg  need_lib_prefix=no
10217b9b4fd27Smrg  need_version=no
10218b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10219b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10220b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10221b9b4fd27Smrg  ;;
10222caade7ccSmrg
10223b9b4fd27Smrgfreebsd* | dragonfly*)
10224b9b4fd27Smrg  # DragonFly does not have aout.  When/if they implement a new
10225b9b4fd27Smrg  # versioning mechanism, adjust this.
10226b9b4fd27Smrg  if test -x /usr/bin/objformat; then
10227b9b4fd27Smrg    objformat=`/usr/bin/objformat`
10228caade7ccSmrg  else
10229caade7ccSmrg    case $host_os in
10230af9a7ee5Smrg    freebsd[23].*) objformat=aout ;;
10231b9b4fd27Smrg    *) objformat=elf ;;
10232b9b4fd27Smrg    esac
10233b9b4fd27Smrg  fi
10234b9b4fd27Smrg  version_type=freebsd-$objformat
10235b9b4fd27Smrg  case $version_type in
10236b9b4fd27Smrg    freebsd-elf*)
10237b9b4fd27Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10238b9b4fd27Smrg      need_version=no
10239b9b4fd27Smrg      need_lib_prefix=no
10240caade7ccSmrg      ;;
10241b9b4fd27Smrg    freebsd-*)
10242b9b4fd27Smrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10243b9b4fd27Smrg      need_version=yes
10244caade7ccSmrg      ;;
10245b9b4fd27Smrg  esac
10246b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10247b9b4fd27Smrg  case $host_os in
10248af9a7ee5Smrg  freebsd2.*)
10249b9b4fd27Smrg    shlibpath_overrides_runpath=yes
10250b9b4fd27Smrg    ;;
10251b9b4fd27Smrg  freebsd3.[01]* | freebsdelf3.[01]*)
10252b9b4fd27Smrg    shlibpath_overrides_runpath=yes
10253b9b4fd27Smrg    hardcode_into_libs=yes
10254b9b4fd27Smrg    ;;
10255b9b4fd27Smrg  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10256b9b4fd27Smrg  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10257b9b4fd27Smrg    shlibpath_overrides_runpath=no
10258b9b4fd27Smrg    hardcode_into_libs=yes
10259b9b4fd27Smrg    ;;
10260b9b4fd27Smrg  *) # from 4.6 on, and DragonFly
10261b9b4fd27Smrg    shlibpath_overrides_runpath=yes
10262b9b4fd27Smrg    hardcode_into_libs=yes
10263b9b4fd27Smrg    ;;
10264b9b4fd27Smrg  esac
10265b9b4fd27Smrg  ;;
10266caade7ccSmrg
10267b9b4fd27Smrggnu*)
10268af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10269b9b4fd27Smrg  need_lib_prefix=no
10270b9b4fd27Smrg  need_version=no
10271b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10272b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10273b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10274af9a7ee5Smrg  shlibpath_overrides_runpath=no
10275b9b4fd27Smrg  hardcode_into_libs=yes
10276b9b4fd27Smrg  ;;
10277caade7ccSmrg
10278e8a5466aSmrghaiku*)
10279af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10280e8a5466aSmrg  need_lib_prefix=no
10281e8a5466aSmrg  need_version=no
10282e8a5466aSmrg  dynamic_linker="$host_os runtime_loader"
10283e8a5466aSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10284e8a5466aSmrg  soname_spec='${libname}${release}${shared_ext}$major'
10285e8a5466aSmrg  shlibpath_var=LIBRARY_PATH
10286e8a5466aSmrg  shlibpath_overrides_runpath=yes
10287e8a5466aSmrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10288e8a5466aSmrg  hardcode_into_libs=yes
10289e8a5466aSmrg  ;;
10290e8a5466aSmrg
10291b9b4fd27Smrghpux9* | hpux10* | hpux11*)
10292b9b4fd27Smrg  # Give a soname corresponding to the major version so that dld.sl refuses to
10293b9b4fd27Smrg  # link against other versions.
10294b9b4fd27Smrg  version_type=sunos
10295b9b4fd27Smrg  need_lib_prefix=no
10296b9b4fd27Smrg  need_version=no
10297b9b4fd27Smrg  case $host_cpu in
10298b9b4fd27Smrg  ia64*)
10299b9b4fd27Smrg    shrext_cmds='.so'
10300b9b4fd27Smrg    hardcode_into_libs=yes
10301b9b4fd27Smrg    dynamic_linker="$host_os dld.so"
10302b9b4fd27Smrg    shlibpath_var=LD_LIBRARY_PATH
10303b9b4fd27Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10304b9b4fd27Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305b9b4fd27Smrg    soname_spec='${libname}${release}${shared_ext}$major'
10306b9b4fd27Smrg    if test "X$HPUX_IA64_MODE" = X32; then
10307b9b4fd27Smrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10308b9b4fd27Smrg    else
10309b9b4fd27Smrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10310b9b4fd27Smrg    fi
10311b9b4fd27Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10312b9b4fd27Smrg    ;;
10313b9b4fd27Smrg  hppa*64*)
10314b9b4fd27Smrg    shrext_cmds='.sl'
10315b9b4fd27Smrg    hardcode_into_libs=yes
10316b9b4fd27Smrg    dynamic_linker="$host_os dld.sl"
10317b9b4fd27Smrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10318b9b4fd27Smrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10319b9b4fd27Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320b9b4fd27Smrg    soname_spec='${libname}${release}${shared_ext}$major'
10321b9b4fd27Smrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10322b9b4fd27Smrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10323b9b4fd27Smrg    ;;
10324b9b4fd27Smrg  *)
10325b9b4fd27Smrg    shrext_cmds='.sl'
10326b9b4fd27Smrg    dynamic_linker="$host_os dld.sl"
10327b9b4fd27Smrg    shlibpath_var=SHLIB_PATH
10328b9b4fd27Smrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10329b9b4fd27Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330b9b4fd27Smrg    soname_spec='${libname}${release}${shared_ext}$major'
10331b9b4fd27Smrg    ;;
10332b9b4fd27Smrg  esac
10333e8a5466aSmrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10334b9b4fd27Smrg  postinstall_cmds='chmod 555 $lib'
10335e8a5466aSmrg  # or fails outright, so override atomically:
10336e8a5466aSmrg  install_override_mode=555
10337b9b4fd27Smrg  ;;
10338caade7ccSmrg
10339b9b4fd27Smrginterix[3-9]*)
10340af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10341b9b4fd27Smrg  need_lib_prefix=no
10342b9b4fd27Smrg  need_version=no
10343b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10344b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10345b9b4fd27Smrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10346b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10347b9b4fd27Smrg  shlibpath_overrides_runpath=no
10348b9b4fd27Smrg  hardcode_into_libs=yes
10349b9b4fd27Smrg  ;;
10350caade7ccSmrg
10351b9b4fd27Smrgirix5* | irix6* | nonstopux*)
10352b9b4fd27Smrg  case $host_os in
10353b9b4fd27Smrg    nonstopux*) version_type=nonstopux ;;
10354b9b4fd27Smrg    *)
10355b9b4fd27Smrg	if test "$lt_cv_prog_gnu_ld" = yes; then
10356af9a7ee5Smrg		version_type=linux # correct to gnu/linux during the next big refactor
10357b9b4fd27Smrg	else
10358b9b4fd27Smrg		version_type=irix
10359b9b4fd27Smrg	fi ;;
10360b9b4fd27Smrg  esac
10361b9b4fd27Smrg  need_lib_prefix=no
10362b9b4fd27Smrg  need_version=no
10363b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10364b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10365b9b4fd27Smrg  case $host_os in
10366b9b4fd27Smrg  irix5* | nonstopux*)
10367b9b4fd27Smrg    libsuff= shlibsuff=
10368b9b4fd27Smrg    ;;
10369b9b4fd27Smrg  *)
10370b9b4fd27Smrg    case $LD in # libtool.m4 will add one of these switches to LD
10371b9b4fd27Smrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10372b9b4fd27Smrg      libsuff= shlibsuff= libmagic=32-bit;;
10373b9b4fd27Smrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10374b9b4fd27Smrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
10375b9b4fd27Smrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10376b9b4fd27Smrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10377b9b4fd27Smrg    *) libsuff= shlibsuff= libmagic=never-match;;
10378b9b4fd27Smrg    esac
10379b9b4fd27Smrg    ;;
10380b9b4fd27Smrg  esac
10381b9b4fd27Smrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10382b9b4fd27Smrg  shlibpath_overrides_runpath=no
10383b9b4fd27Smrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10384b9b4fd27Smrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10385b9b4fd27Smrg  hardcode_into_libs=yes
10386b9b4fd27Smrg  ;;
10387caade7ccSmrg
10388b9b4fd27Smrg# No shared lib support for Linux oldld, aout, or coff.
10389b9b4fd27Smrglinux*oldld* | linux*aout* | linux*coff*)
10390b9b4fd27Smrg  dynamic_linker=no
10391b9b4fd27Smrg  ;;
10392caade7ccSmrg
10393af9a7ee5Smrg# This must be glibc/ELF.
10394e8a5466aSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu)
10395af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10396b9b4fd27Smrg  need_lib_prefix=no
10397b9b4fd27Smrg  need_version=no
10398b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10400b9b4fd27Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10401b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10402b9b4fd27Smrg  shlibpath_overrides_runpath=no
10403e8a5466aSmrg
10404b9b4fd27Smrg  # Some binutils ld are patched to set DT_RUNPATH
10405e8a5466aSmrg  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10406e8a5466aSmrg  $as_echo_n "(cached) " >&6
10407e8a5466aSmrgelse
10408e8a5466aSmrg  lt_cv_shlibpath_overrides_runpath=no
10409e8a5466aSmrg    save_LDFLAGS=$LDFLAGS
10410e8a5466aSmrg    save_libdir=$libdir
10411e8a5466aSmrg    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10412e8a5466aSmrg	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10413e8a5466aSmrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414b9b4fd27Smrg/* end confdefs.h.  */
10415485f0483Smrg
10416b9b4fd27Smrgint
10417b9b4fd27Smrgmain ()
10418b9b4fd27Smrg{
10419caade7ccSmrg
10420b9b4fd27Smrg  ;
10421b9b4fd27Smrg  return 0;
10422b9b4fd27Smrg}
10423b9b4fd27Smrg_ACEOF
10424b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
10425b9b4fd27Smrg  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10426e8a5466aSmrg  lt_cv_shlibpath_overrides_runpath=yes
10427b9b4fd27Smrgfi
10428b9b4fd27Smrgfi
10429b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
10430b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
10431e8a5466aSmrg    LDFLAGS=$save_LDFLAGS
10432e8a5466aSmrg    libdir=$save_libdir
10433e8a5466aSmrg
10434e8a5466aSmrgfi
10435e8a5466aSmrg
10436e8a5466aSmrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10437caade7ccSmrg
10438b9b4fd27Smrg  # This implies no fast_install, which is unacceptable.
10439b9b4fd27Smrg  # Some rework will be needed to allow for fast_install
10440b9b4fd27Smrg  # before this can be enabled.
10441b9b4fd27Smrg  hardcode_into_libs=yes
10442caade7ccSmrg
10443b9b4fd27Smrg  # Append ld.so.conf contents to the search path
10444b9b4fd27Smrg  if test -f /etc/ld.so.conf; then
10445e8a5466aSmrg    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10446b9b4fd27Smrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10447b9b4fd27Smrg  fi
10448caade7ccSmrg
10449b9b4fd27Smrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
10450b9b4fd27Smrg  # powerpc, because MkLinux only supported shared libraries with the
10451b9b4fd27Smrg  # GNU dynamic linker.  Since this was broken with cross compilers,
10452b9b4fd27Smrg  # most powerpc-linux boxes support dynamic linking these days and
10453b9b4fd27Smrg  # people can always --disable-shared, the test was removed, and we
10454b9b4fd27Smrg  # assume the GNU/Linux dynamic linker is in use.
10455b9b4fd27Smrg  dynamic_linker='GNU/Linux ld.so'
10456b9b4fd27Smrg  ;;
10457caade7ccSmrg
10458b9b4fd27Smrgnetbsd*)
10459b9b4fd27Smrg  version_type=sunos
10460b9b4fd27Smrg  need_lib_prefix=no
10461b9b4fd27Smrg  need_version=no
10462b9b4fd27Smrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10463b9b4fd27Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10464b9b4fd27Smrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10465b9b4fd27Smrg    dynamic_linker='NetBSD (a.out) ld.so'
10466b9b4fd27Smrg  else
10467b9b4fd27Smrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10468b9b4fd27Smrg    soname_spec='${libname}${release}${shared_ext}$major'
10469b9b4fd27Smrg    dynamic_linker='NetBSD ld.elf_so'
10470b9b4fd27Smrg  fi
10471b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10472b9b4fd27Smrg  shlibpath_overrides_runpath=yes
10473b9b4fd27Smrg  hardcode_into_libs=yes
10474b9b4fd27Smrg  ;;
10475caade7ccSmrg
10476b9b4fd27Smrgnewsos6)
10477af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10478b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10480b9b4fd27Smrg  shlibpath_overrides_runpath=yes
10481b9b4fd27Smrg  ;;
10482caade7ccSmrg
10483b9b4fd27Smrg*nto* | *qnx*)
10484b9b4fd27Smrg  version_type=qnx
10485b9b4fd27Smrg  need_lib_prefix=no
10486b9b4fd27Smrg  need_version=no
10487b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10489b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10490b9b4fd27Smrg  shlibpath_overrides_runpath=no
10491b9b4fd27Smrg  hardcode_into_libs=yes
10492b9b4fd27Smrg  dynamic_linker='ldqnx.so'
10493b9b4fd27Smrg  ;;
10494b9b4fd27Smrg
10495b9b4fd27Smrgopenbsd*)
10496b9b4fd27Smrg  version_type=sunos
10497b9b4fd27Smrg  sys_lib_dlsearch_path_spec="/usr/lib"
10498b9b4fd27Smrg  need_lib_prefix=no
10499b9b4fd27Smrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10500b9b4fd27Smrg  case $host_os in
10501b9b4fd27Smrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10502b9b4fd27Smrg    *)				need_version=no  ;;
10503b9b4fd27Smrg  esac
10504b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10505b9b4fd27Smrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10506b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10507b9b4fd27Smrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10508b9b4fd27Smrg    case $host_os in
10509b9b4fd27Smrg      openbsd2.[89] | openbsd2.[89].*)
10510b9b4fd27Smrg	shlibpath_overrides_runpath=no
10511b9b4fd27Smrg	;;
10512b9b4fd27Smrg      *)
10513b9b4fd27Smrg	shlibpath_overrides_runpath=yes
10514b9b4fd27Smrg	;;
10515b9b4fd27Smrg      esac
10516b9b4fd27Smrg  else
10517b9b4fd27Smrg    shlibpath_overrides_runpath=yes
10518b9b4fd27Smrg  fi
10519b9b4fd27Smrg  ;;
10520b9b4fd27Smrg
10521b9b4fd27Smrgos2*)
10522b9b4fd27Smrg  libname_spec='$name'
10523b9b4fd27Smrg  shrext_cmds=".dll"
10524b9b4fd27Smrg  need_lib_prefix=no
10525b9b4fd27Smrg  library_names_spec='$libname${shared_ext} $libname.a'
10526b9b4fd27Smrg  dynamic_linker='OS/2 ld.exe'
10527b9b4fd27Smrg  shlibpath_var=LIBPATH
10528b9b4fd27Smrg  ;;
10529b9b4fd27Smrg
10530b9b4fd27Smrgosf3* | osf4* | osf5*)
10531b9b4fd27Smrg  version_type=osf
10532b9b4fd27Smrg  need_lib_prefix=no
10533b9b4fd27Smrg  need_version=no
10534b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10535b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10537b9b4fd27Smrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10538b9b4fd27Smrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10539b9b4fd27Smrg  ;;
10540b9b4fd27Smrg
10541b9b4fd27Smrgrdos*)
10542b9b4fd27Smrg  dynamic_linker=no
10543b9b4fd27Smrg  ;;
10544b9b4fd27Smrg
10545b9b4fd27Smrgsolaris*)
10546af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10547b9b4fd27Smrg  need_lib_prefix=no
10548b9b4fd27Smrg  need_version=no
10549b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10551b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10552b9b4fd27Smrg  shlibpath_overrides_runpath=yes
10553b9b4fd27Smrg  hardcode_into_libs=yes
10554b9b4fd27Smrg  # ldd complains unless libraries are executable
10555b9b4fd27Smrg  postinstall_cmds='chmod +x $lib'
10556b9b4fd27Smrg  ;;
10557b9b4fd27Smrg
10558b9b4fd27Smrgsunos4*)
10559b9b4fd27Smrg  version_type=sunos
10560b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561b9b4fd27Smrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10562b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10563b9b4fd27Smrg  shlibpath_overrides_runpath=yes
10564b9b4fd27Smrg  if test "$with_gnu_ld" = yes; then
10565b9b4fd27Smrg    need_lib_prefix=no
10566b9b4fd27Smrg  fi
10567b9b4fd27Smrg  need_version=yes
10568b9b4fd27Smrg  ;;
10569b9b4fd27Smrg
10570b9b4fd27Smrgsysv4 | sysv4.3*)
10571af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10572b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10574b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10575b9b4fd27Smrg  case $host_vendor in
10576b9b4fd27Smrg    sni)
10577b9b4fd27Smrg      shlibpath_overrides_runpath=no
10578b9b4fd27Smrg      need_lib_prefix=no
10579b9b4fd27Smrg      runpath_var=LD_RUN_PATH
10580caade7ccSmrg      ;;
10581b9b4fd27Smrg    siemens)
10582b9b4fd27Smrg      need_lib_prefix=no
10583b9b4fd27Smrg      ;;
10584b9b4fd27Smrg    motorola)
10585b9b4fd27Smrg      need_lib_prefix=no
10586b9b4fd27Smrg      need_version=no
10587b9b4fd27Smrg      shlibpath_overrides_runpath=no
10588b9b4fd27Smrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10589b9b4fd27Smrg      ;;
10590b9b4fd27Smrg  esac
10591b9b4fd27Smrg  ;;
10592b9b4fd27Smrg
10593b9b4fd27Smrgsysv4*MP*)
10594b9b4fd27Smrg  if test -d /usr/nec ;then
10595af9a7ee5Smrg    version_type=linux # correct to gnu/linux during the next big refactor
10596b9b4fd27Smrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10597b9b4fd27Smrg    soname_spec='$libname${shared_ext}.$major'
10598b9b4fd27Smrg    shlibpath_var=LD_LIBRARY_PATH
10599b9b4fd27Smrg  fi
10600b9b4fd27Smrg  ;;
10601b9b4fd27Smrg
10602b9b4fd27Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10603b9b4fd27Smrg  version_type=freebsd-elf
10604b9b4fd27Smrg  need_lib_prefix=no
10605b9b4fd27Smrg  need_version=no
10606b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10607b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10608b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10609b9b4fd27Smrg  shlibpath_overrides_runpath=yes
10610b9b4fd27Smrg  hardcode_into_libs=yes
10611b9b4fd27Smrg  if test "$with_gnu_ld" = yes; then
10612b9b4fd27Smrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10613b9b4fd27Smrg  else
10614b9b4fd27Smrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10615b9b4fd27Smrg    case $host_os in
10616b9b4fd27Smrg      sco3.2v5*)
10617b9b4fd27Smrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10618b9b4fd27Smrg	;;
10619caade7ccSmrg    esac
10620caade7ccSmrg  fi
10621b9b4fd27Smrg  sys_lib_dlsearch_path_spec='/usr/lib'
10622b9b4fd27Smrg  ;;
10623caade7ccSmrg
10624b9b4fd27Smrgtpf*)
10625b9b4fd27Smrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10626af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10627b9b4fd27Smrg  need_lib_prefix=no
10628b9b4fd27Smrg  need_version=no
10629b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10631b9b4fd27Smrg  shlibpath_overrides_runpath=no
10632b9b4fd27Smrg  hardcode_into_libs=yes
10633b9b4fd27Smrg  ;;
10634caade7ccSmrg
10635b9b4fd27Smrguts4*)
10636af9a7ee5Smrg  version_type=linux # correct to gnu/linux during the next big refactor
10637b9b4fd27Smrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638b9b4fd27Smrg  soname_spec='${libname}${release}${shared_ext}$major'
10639b9b4fd27Smrg  shlibpath_var=LD_LIBRARY_PATH
10640b9b4fd27Smrg  ;;
10641caade7ccSmrg
10642b9b4fd27Smrg*)
10643b9b4fd27Smrg  dynamic_linker=no
10644b9b4fd27Smrg  ;;
10645b9b4fd27Smrgesac
10646b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10647b9b4fd27Smrg$as_echo "$dynamic_linker" >&6; }
10648b9b4fd27Smrgtest "$dynamic_linker" = no && can_build_shared=no
10649caade7ccSmrg
10650b9b4fd27Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10651b9b4fd27Smrgif test "$GCC" = yes; then
10652b9b4fd27Smrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10653caade7ccSmrgfi
10654caade7ccSmrg
10655b9b4fd27Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10656b9b4fd27Smrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10657caade7ccSmrgfi
10658b9b4fd27Smrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10659b9b4fd27Smrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10660caade7ccSmrgfi
10661caade7ccSmrg
10662caade7ccSmrg
10663caade7ccSmrg
10664caade7ccSmrg
10665caade7ccSmrg
10666caade7ccSmrg
10667caade7ccSmrg
10668caade7ccSmrg
10669caade7ccSmrg
10670caade7ccSmrg
10671caade7ccSmrg
10672caade7ccSmrg
10673caade7ccSmrg
10674caade7ccSmrg
10675caade7ccSmrg
10676caade7ccSmrg
10677caade7ccSmrg
10678caade7ccSmrg
10679caade7ccSmrg
10680caade7ccSmrg
10681caade7ccSmrg
10682caade7ccSmrg
10683caade7ccSmrg
10684caade7ccSmrg
10685caade7ccSmrg
10686caade7ccSmrg
10687caade7ccSmrg
10688caade7ccSmrg
10689caade7ccSmrg
10690caade7ccSmrg
10691caade7ccSmrg
10692caade7ccSmrg
10693caade7ccSmrg
10694caade7ccSmrg
10695caade7ccSmrg
10696caade7ccSmrg
10697caade7ccSmrg
10698caade7ccSmrg
10699caade7ccSmrg
10700caade7ccSmrg
10701caade7ccSmrg
10702caade7ccSmrg
10703caade7ccSmrg
10704caade7ccSmrg
10705caade7ccSmrg
10706caade7ccSmrg
10707caade7ccSmrg
10708caade7ccSmrg
10709caade7ccSmrg
10710caade7ccSmrg
10711caade7ccSmrg
10712caade7ccSmrg
10713caade7ccSmrg
10714caade7ccSmrg
10715caade7ccSmrg
10716caade7ccSmrg
10717caade7ccSmrg
10718caade7ccSmrg
10719caade7ccSmrg
10720caade7ccSmrg
10721caade7ccSmrg
10722caade7ccSmrg
10723caade7ccSmrg
10724caade7ccSmrg
10725caade7ccSmrg
10726caade7ccSmrg
10727caade7ccSmrg
10728caade7ccSmrg
10729caade7ccSmrg
10730caade7ccSmrg
10731caade7ccSmrg
10732caade7ccSmrg
10733caade7ccSmrg
10734caade7ccSmrg
10735caade7ccSmrg
10736caade7ccSmrg
10737caade7ccSmrg
10738caade7ccSmrg
10739caade7ccSmrg
10740caade7ccSmrg
10741caade7ccSmrg
10742e8a5466aSmrg
10743e8a5466aSmrg
10744e8a5466aSmrg
10745e8a5466aSmrg
10746e8a5466aSmrg
10747caade7ccSmrg
10748caade7ccSmrg
10749caade7ccSmrg
10750caade7ccSmrg
10751caade7ccSmrg
10752caade7ccSmrg
10753b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10754b9b4fd27Smrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10755b9b4fd27Smrghardcode_action=
10756b9b4fd27Smrgif test -n "$hardcode_libdir_flag_spec" ||
10757b9b4fd27Smrg   test -n "$runpath_var" ||
10758b9b4fd27Smrg   test "X$hardcode_automatic" = "Xyes" ; then
10759caade7ccSmrg
10760b9b4fd27Smrg  # We can hardcode non-existent directories.
10761b9b4fd27Smrg  if test "$hardcode_direct" != no &&
10762b9b4fd27Smrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10763b9b4fd27Smrg     # have to relink, otherwise we might link with an installed library
10764b9b4fd27Smrg     # when we should be linking with a yet-to-be-installed one
10765b9b4fd27Smrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10766b9b4fd27Smrg     test "$hardcode_minus_L" != no; then
10767b9b4fd27Smrg    # Linking always hardcodes the temporary library directory.
10768b9b4fd27Smrg    hardcode_action=relink
10769b9b4fd27Smrg  else
10770b9b4fd27Smrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10771b9b4fd27Smrg    hardcode_action=immediate
10772caade7ccSmrg  fi
10773b9b4fd27Smrgelse
10774b9b4fd27Smrg  # We cannot hardcode anything, or else we can only hardcode existing
10775b9b4fd27Smrg  # directories.
10776b9b4fd27Smrg  hardcode_action=unsupported
10777b9b4fd27Smrgfi
10778b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10779b9b4fd27Smrg$as_echo "$hardcode_action" >&6; }
10780caade7ccSmrg
10781b9b4fd27Smrgif test "$hardcode_action" = relink ||
10782b9b4fd27Smrg   test "$inherit_rpath" = yes; then
10783b9b4fd27Smrg  # Fast installation is not supported
10784b9b4fd27Smrg  enable_fast_install=no
10785b9b4fd27Smrgelif test "$shlibpath_overrides_runpath" = yes ||
10786b9b4fd27Smrg     test "$enable_shared" = no; then
10787b9b4fd27Smrg  # Fast installation is not necessary
10788b9b4fd27Smrg  enable_fast_install=needless
10789b9b4fd27Smrgfi
10790caade7ccSmrg
10791caade7ccSmrg
10792caade7ccSmrg
10793caade7ccSmrg
10794485f0483Smrg
10795caade7ccSmrg
10796b9b4fd27Smrg  if test "x$enable_dlopen" != xyes; then
10797b9b4fd27Smrg  enable_dlopen=unknown
10798b9b4fd27Smrg  enable_dlopen_self=unknown
10799b9b4fd27Smrg  enable_dlopen_self_static=unknown
10800b9b4fd27Smrgelse
10801b9b4fd27Smrg  lt_cv_dlopen=no
10802b9b4fd27Smrg  lt_cv_dlopen_libs=
10803caade7ccSmrg
10804b9b4fd27Smrg  case $host_os in
10805b9b4fd27Smrg  beos*)
10806b9b4fd27Smrg    lt_cv_dlopen="load_add_on"
10807b9b4fd27Smrg    lt_cv_dlopen_libs=
10808b9b4fd27Smrg    lt_cv_dlopen_self=yes
10809b9b4fd27Smrg    ;;
10810caade7ccSmrg
10811b9b4fd27Smrg  mingw* | pw32* | cegcc*)
10812b9b4fd27Smrg    lt_cv_dlopen="LoadLibrary"
10813b9b4fd27Smrg    lt_cv_dlopen_libs=
10814b9b4fd27Smrg    ;;
10815caade7ccSmrg
10816b9b4fd27Smrg  cygwin*)
10817b9b4fd27Smrg    lt_cv_dlopen="dlopen"
10818b9b4fd27Smrg    lt_cv_dlopen_libs=
10819b9b4fd27Smrg    ;;
10820caade7ccSmrg
10821b9b4fd27Smrg  darwin*)
10822b9b4fd27Smrg  # if libdl is installed we need to link against it
10823b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10824b9b4fd27Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
10825e8a5466aSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
10826b9b4fd27Smrg  $as_echo_n "(cached) " >&6
10827b9b4fd27Smrgelse
10828b9b4fd27Smrg  ac_check_lib_save_LIBS=$LIBS
10829b9b4fd27SmrgLIBS="-ldl  $LIBS"
10830b9b4fd27Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831b9b4fd27Smrg/* end confdefs.h.  */
10832caade7ccSmrg
10833b9b4fd27Smrg/* Override any GCC internal prototype to avoid an error.
10834b9b4fd27Smrg   Use char because int might match the return type of a GCC
10835b9b4fd27Smrg   builtin and then its argument prototype would still apply.  */
10836b9b4fd27Smrg#ifdef __cplusplus
10837b9b4fd27Smrgextern "C"
10838b9b4fd27Smrg#endif
10839b9b4fd27Smrgchar dlopen ();
10840b9b4fd27Smrgint
10841b9b4fd27Smrgmain ()
10842b9b4fd27Smrg{
10843b9b4fd27Smrgreturn dlopen ();
10844b9b4fd27Smrg  ;
10845b9b4fd27Smrg  return 0;
10846b9b4fd27Smrg}
10847b9b4fd27Smrg_ACEOF
10848b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
10849b9b4fd27Smrg  ac_cv_lib_dl_dlopen=yes
10850b9b4fd27Smrgelse
10851b9b4fd27Smrg  ac_cv_lib_dl_dlopen=no
10852b9b4fd27Smrgfi
10853b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
10854b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
10855b9b4fd27SmrgLIBS=$ac_check_lib_save_LIBS
10856b9b4fd27Smrgfi
10857b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10858b9b4fd27Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10859e8a5466aSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10860b9b4fd27Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10861b9b4fd27Smrgelse
10862caade7ccSmrg
10863b9b4fd27Smrg    lt_cv_dlopen="dyld"
10864b9b4fd27Smrg    lt_cv_dlopen_libs=
10865b9b4fd27Smrg    lt_cv_dlopen_self=yes
10866caade7ccSmrg
10867b9b4fd27Smrgfi
10868caade7ccSmrg
10869b9b4fd27Smrg    ;;
10870caade7ccSmrg
10871caade7ccSmrg  *)
10872b9b4fd27Smrg    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10873e8a5466aSmrgif test "x$ac_cv_func_shl_load" = xyes; then :
10874b9b4fd27Smrg  lt_cv_dlopen="shl_load"
10875b9b4fd27Smrgelse
10876b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10877b9b4fd27Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; }
10878e8a5466aSmrgif ${ac_cv_lib_dld_shl_load+:} false; then :
10879b9b4fd27Smrg  $as_echo_n "(cached) " >&6
10880b9b4fd27Smrgelse
10881b9b4fd27Smrg  ac_check_lib_save_LIBS=$LIBS
10882b9b4fd27SmrgLIBS="-ldld  $LIBS"
10883b9b4fd27Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884b9b4fd27Smrg/* end confdefs.h.  */
10885caade7ccSmrg
10886b9b4fd27Smrg/* Override any GCC internal prototype to avoid an error.
10887b9b4fd27Smrg   Use char because int might match the return type of a GCC
10888b9b4fd27Smrg   builtin and then its argument prototype would still apply.  */
10889b9b4fd27Smrg#ifdef __cplusplus
10890b9b4fd27Smrgextern "C"
10891b9b4fd27Smrg#endif
10892b9b4fd27Smrgchar shl_load ();
10893b9b4fd27Smrgint
10894b9b4fd27Smrgmain ()
10895b9b4fd27Smrg{
10896b9b4fd27Smrgreturn shl_load ();
10897b9b4fd27Smrg  ;
10898b9b4fd27Smrg  return 0;
10899b9b4fd27Smrg}
10900b9b4fd27Smrg_ACEOF
10901b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
10902b9b4fd27Smrg  ac_cv_lib_dld_shl_load=yes
10903b9b4fd27Smrgelse
10904b9b4fd27Smrg  ac_cv_lib_dld_shl_load=no
10905b9b4fd27Smrgfi
10906b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
10907b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
10908b9b4fd27SmrgLIBS=$ac_check_lib_save_LIBS
10909b9b4fd27Smrgfi
10910b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10911b9b4fd27Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10912e8a5466aSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10913b9b4fd27Smrg  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10914b9b4fd27Smrgelse
10915b9b4fd27Smrg  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10916e8a5466aSmrgif test "x$ac_cv_func_dlopen" = xyes; then :
10917b9b4fd27Smrg  lt_cv_dlopen="dlopen"
10918b9b4fd27Smrgelse
10919b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10920b9b4fd27Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; }
10921e8a5466aSmrgif ${ac_cv_lib_dl_dlopen+:} false; then :
10922b9b4fd27Smrg  $as_echo_n "(cached) " >&6
10923b9b4fd27Smrgelse
10924b9b4fd27Smrg  ac_check_lib_save_LIBS=$LIBS
10925b9b4fd27SmrgLIBS="-ldl  $LIBS"
10926b9b4fd27Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927b9b4fd27Smrg/* end confdefs.h.  */
10928485f0483Smrg
10929b9b4fd27Smrg/* Override any GCC internal prototype to avoid an error.
10930b9b4fd27Smrg   Use char because int might match the return type of a GCC
10931b9b4fd27Smrg   builtin and then its argument prototype would still apply.  */
10932b9b4fd27Smrg#ifdef __cplusplus
10933b9b4fd27Smrgextern "C"
10934b9b4fd27Smrg#endif
10935b9b4fd27Smrgchar dlopen ();
10936b9b4fd27Smrgint
10937b9b4fd27Smrgmain ()
10938b9b4fd27Smrg{
10939b9b4fd27Smrgreturn dlopen ();
10940b9b4fd27Smrg  ;
10941b9b4fd27Smrg  return 0;
10942b9b4fd27Smrg}
10943b9b4fd27Smrg_ACEOF
10944b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
10945b9b4fd27Smrg  ac_cv_lib_dl_dlopen=yes
10946b9b4fd27Smrgelse
10947b9b4fd27Smrg  ac_cv_lib_dl_dlopen=no
10948b9b4fd27Smrgfi
10949b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
10950b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
10951b9b4fd27SmrgLIBS=$ac_check_lib_save_LIBS
10952b9b4fd27Smrgfi
10953b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10954b9b4fd27Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10955e8a5466aSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10956b9b4fd27Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10957b9b4fd27Smrgelse
10958b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10959b9b4fd27Smrg$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10960e8a5466aSmrgif ${ac_cv_lib_svld_dlopen+:} false; then :
10961b9b4fd27Smrg  $as_echo_n "(cached) " >&6
10962b9b4fd27Smrgelse
10963b9b4fd27Smrg  ac_check_lib_save_LIBS=$LIBS
10964b9b4fd27SmrgLIBS="-lsvld  $LIBS"
10965b9b4fd27Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966b9b4fd27Smrg/* end confdefs.h.  */
10967caade7ccSmrg
10968b9b4fd27Smrg/* Override any GCC internal prototype to avoid an error.
10969b9b4fd27Smrg   Use char because int might match the return type of a GCC
10970b9b4fd27Smrg   builtin and then its argument prototype would still apply.  */
10971b9b4fd27Smrg#ifdef __cplusplus
10972b9b4fd27Smrgextern "C"
10973b9b4fd27Smrg#endif
10974b9b4fd27Smrgchar dlopen ();
10975b9b4fd27Smrgint
10976b9b4fd27Smrgmain ()
10977b9b4fd27Smrg{
10978b9b4fd27Smrgreturn dlopen ();
10979b9b4fd27Smrg  ;
10980b9b4fd27Smrg  return 0;
10981b9b4fd27Smrg}
10982b9b4fd27Smrg_ACEOF
10983b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
10984b9b4fd27Smrg  ac_cv_lib_svld_dlopen=yes
10985b9b4fd27Smrgelse
10986b9b4fd27Smrg  ac_cv_lib_svld_dlopen=no
10987b9b4fd27Smrgfi
10988b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
10989b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
10990b9b4fd27SmrgLIBS=$ac_check_lib_save_LIBS
10991b9b4fd27Smrgfi
10992b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10993b9b4fd27Smrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10994e8a5466aSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10995b9b4fd27Smrg  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10996b9b4fd27Smrgelse
10997b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10998b9b4fd27Smrg$as_echo_n "checking for dld_link in -ldld... " >&6; }
10999e8a5466aSmrgif ${ac_cv_lib_dld_dld_link+:} false; then :
11000b9b4fd27Smrg  $as_echo_n "(cached) " >&6
11001b9b4fd27Smrgelse
11002b9b4fd27Smrg  ac_check_lib_save_LIBS=$LIBS
11003b9b4fd27SmrgLIBS="-ldld  $LIBS"
11004b9b4fd27Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005b9b4fd27Smrg/* end confdefs.h.  */
11006caade7ccSmrg
11007b9b4fd27Smrg/* Override any GCC internal prototype to avoid an error.
11008b9b4fd27Smrg   Use char because int might match the return type of a GCC
11009b9b4fd27Smrg   builtin and then its argument prototype would still apply.  */
11010b9b4fd27Smrg#ifdef __cplusplus
11011b9b4fd27Smrgextern "C"
11012b9b4fd27Smrg#endif
11013b9b4fd27Smrgchar dld_link ();
11014b9b4fd27Smrgint
11015b9b4fd27Smrgmain ()
11016b9b4fd27Smrg{
11017b9b4fd27Smrgreturn dld_link ();
11018b9b4fd27Smrg  ;
11019b9b4fd27Smrg  return 0;
11020b9b4fd27Smrg}
11021b9b4fd27Smrg_ACEOF
11022b9b4fd27Smrgif ac_fn_c_try_link "$LINENO"; then :
11023b9b4fd27Smrg  ac_cv_lib_dld_dld_link=yes
11024b9b4fd27Smrgelse
11025b9b4fd27Smrg  ac_cv_lib_dld_dld_link=no
11026b9b4fd27Smrgfi
11027b9b4fd27Smrgrm -f core conftest.err conftest.$ac_objext \
11028b9b4fd27Smrg    conftest$ac_exeext conftest.$ac_ext
11029b9b4fd27SmrgLIBS=$ac_check_lib_save_LIBS
11030b9b4fd27Smrgfi
11031b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11032b9b4fd27Smrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11033e8a5466aSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11034b9b4fd27Smrg  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11035b9b4fd27Smrgfi
11036b9b4fd27Smrg
11037b9b4fd27Smrg
11038b9b4fd27Smrgfi
11039b9b4fd27Smrg
11040b9b4fd27Smrg
11041b9b4fd27Smrgfi
11042b9b4fd27Smrg
11043b9b4fd27Smrg
11044b9b4fd27Smrgfi
11045b9b4fd27Smrg
11046b9b4fd27Smrg
11047b9b4fd27Smrgfi
11048b9b4fd27Smrg
11049b9b4fd27Smrg
11050b9b4fd27Smrgfi
11051caade7ccSmrg
11052caade7ccSmrg    ;;
11053caade7ccSmrg  esac
11054caade7ccSmrg
11055b9b4fd27Smrg  if test "x$lt_cv_dlopen" != xno; then
11056b9b4fd27Smrg    enable_dlopen=yes
11057b9b4fd27Smrg  else
11058b9b4fd27Smrg    enable_dlopen=no
11059b9b4fd27Smrg  fi
11060caade7ccSmrg
11061b9b4fd27Smrg  case $lt_cv_dlopen in
11062b9b4fd27Smrg  dlopen)
11063b9b4fd27Smrg    save_CPPFLAGS="$CPPFLAGS"
11064b9b4fd27Smrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11065caade7ccSmrg
11066b9b4fd27Smrg    save_LDFLAGS="$LDFLAGS"
11067b9b4fd27Smrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11068caade7ccSmrg
11069b9b4fd27Smrg    save_LIBS="$LIBS"
11070b9b4fd27Smrg    LIBS="$lt_cv_dlopen_libs $LIBS"
11071caade7ccSmrg
11072b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11073b9b4fd27Smrg$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11074e8a5466aSmrgif ${lt_cv_dlopen_self+:} false; then :
11075b9b4fd27Smrg  $as_echo_n "(cached) " >&6
11076b9b4fd27Smrgelse
11077b9b4fd27Smrg  	  if test "$cross_compiling" = yes; then :
11078b9b4fd27Smrg  lt_cv_dlopen_self=cross
11079b9b4fd27Smrgelse
11080b9b4fd27Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11081b9b4fd27Smrg  lt_status=$lt_dlunknown
11082b9b4fd27Smrg  cat > conftest.$ac_ext <<_LT_EOF
11083e8a5466aSmrg#line $LINENO "configure"
11084b9b4fd27Smrg#include "confdefs.h"
11085caade7ccSmrg
11086b9b4fd27Smrg#if HAVE_DLFCN_H
11087b9b4fd27Smrg#include <dlfcn.h>
11088b9b4fd27Smrg#endif
11089caade7ccSmrg
11090b9b4fd27Smrg#include <stdio.h>
11091caade7ccSmrg
11092b9b4fd27Smrg#ifdef RTLD_GLOBAL
11093b9b4fd27Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
11094b9b4fd27Smrg#else
11095b9b4fd27Smrg#  ifdef DL_GLOBAL
11096b9b4fd27Smrg#    define LT_DLGLOBAL		DL_GLOBAL
11097b9b4fd27Smrg#  else
11098b9b4fd27Smrg#    define LT_DLGLOBAL		0
11099b9b4fd27Smrg#  endif
11100b9b4fd27Smrg#endif
11101caade7ccSmrg
11102b9b4fd27Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11103b9b4fd27Smrg   find out it does not work in some platform. */
11104b9b4fd27Smrg#ifndef LT_DLLAZY_OR_NOW
11105b9b4fd27Smrg#  ifdef RTLD_LAZY
11106b9b4fd27Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11107b9b4fd27Smrg#  else
11108b9b4fd27Smrg#    ifdef DL_LAZY
11109b9b4fd27Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
11110b9b4fd27Smrg#    else
11111b9b4fd27Smrg#      ifdef RTLD_NOW
11112b9b4fd27Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11113b9b4fd27Smrg#      else
11114b9b4fd27Smrg#        ifdef DL_NOW
11115b9b4fd27Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
11116b9b4fd27Smrg#        else
11117b9b4fd27Smrg#          define LT_DLLAZY_OR_NOW	0
11118b9b4fd27Smrg#        endif
11119b9b4fd27Smrg#      endif
11120b9b4fd27Smrg#    endif
11121b9b4fd27Smrg#  endif
11122b9b4fd27Smrg#endif
11123caade7ccSmrg
11124e8a5466aSmrg/* When -fvisbility=hidden is used, assume the code has been annotated
11125e8a5466aSmrg   correspondingly for the symbols needed.  */
11126e8a5466aSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11127a5602400Smrgint fnord () __attribute__((visibility("default")));
11128e8a5466aSmrg#endif
11129e8a5466aSmrg
11130a5602400Smrgint fnord () { return 42; }
11131b9b4fd27Smrgint main ()
11132b9b4fd27Smrg{
11133b9b4fd27Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11134b9b4fd27Smrg  int status = $lt_dlunknown;
11135caade7ccSmrg
11136b9b4fd27Smrg  if (self)
11137b9b4fd27Smrg    {
11138b9b4fd27Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11139e8a5466aSmrg      else
11140e8a5466aSmrg        {
11141e8a5466aSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11142e8a5466aSmrg          else puts (dlerror ());
11143e8a5466aSmrg	}
11144b9b4fd27Smrg      /* dlclose (self); */
11145b9b4fd27Smrg    }
11146caade7ccSmrg  else
11147b9b4fd27Smrg    puts (dlerror ());
11148b9b4fd27Smrg
11149b9b4fd27Smrg  return status;
11150b9b4fd27Smrg}
11151b9b4fd27Smrg_LT_EOF
11152b9b4fd27Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11153b9b4fd27Smrg  (eval $ac_link) 2>&5
11154b9b4fd27Smrg  ac_status=$?
11155b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11156b9b4fd27Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11157b9b4fd27Smrg    (./conftest; exit; ) >&5 2>/dev/null
11158b9b4fd27Smrg    lt_status=$?
11159b9b4fd27Smrg    case x$lt_status in
11160b9b4fd27Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11161b9b4fd27Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11162b9b4fd27Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11163b9b4fd27Smrg    esac
11164b9b4fd27Smrg  else :
11165b9b4fd27Smrg    # compilation failed
11166b9b4fd27Smrg    lt_cv_dlopen_self=no
11167caade7ccSmrg  fi
11168b9b4fd27Smrgfi
11169b9b4fd27Smrgrm -fr conftest*
11170caade7ccSmrg
11171caade7ccSmrg
11172b9b4fd27Smrgfi
11173b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11174b9b4fd27Smrg$as_echo "$lt_cv_dlopen_self" >&6; }
11175caade7ccSmrg
11176b9b4fd27Smrg    if test "x$lt_cv_dlopen_self" = xyes; then
11177b9b4fd27Smrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11178b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11179b9b4fd27Smrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11180e8a5466aSmrgif ${lt_cv_dlopen_self_static+:} false; then :
11181b9b4fd27Smrg  $as_echo_n "(cached) " >&6
11182b9b4fd27Smrgelse
11183b9b4fd27Smrg  	  if test "$cross_compiling" = yes; then :
11184b9b4fd27Smrg  lt_cv_dlopen_self_static=cross
11185b9b4fd27Smrgelse
11186b9b4fd27Smrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11187b9b4fd27Smrg  lt_status=$lt_dlunknown
11188b9b4fd27Smrg  cat > conftest.$ac_ext <<_LT_EOF
11189e8a5466aSmrg#line $LINENO "configure"
11190b9b4fd27Smrg#include "confdefs.h"
11191485f0483Smrg
11192b9b4fd27Smrg#if HAVE_DLFCN_H
11193b9b4fd27Smrg#include <dlfcn.h>
11194b9b4fd27Smrg#endif
11195caade7ccSmrg
11196b9b4fd27Smrg#include <stdio.h>
11197caade7ccSmrg
11198b9b4fd27Smrg#ifdef RTLD_GLOBAL
11199b9b4fd27Smrg#  define LT_DLGLOBAL		RTLD_GLOBAL
11200b9b4fd27Smrg#else
11201b9b4fd27Smrg#  ifdef DL_GLOBAL
11202b9b4fd27Smrg#    define LT_DLGLOBAL		DL_GLOBAL
11203b9b4fd27Smrg#  else
11204b9b4fd27Smrg#    define LT_DLGLOBAL		0
11205b9b4fd27Smrg#  endif
11206b9b4fd27Smrg#endif
11207caade7ccSmrg
11208b9b4fd27Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11209b9b4fd27Smrg   find out it does not work in some platform. */
11210b9b4fd27Smrg#ifndef LT_DLLAZY_OR_NOW
11211b9b4fd27Smrg#  ifdef RTLD_LAZY
11212b9b4fd27Smrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11213b9b4fd27Smrg#  else
11214b9b4fd27Smrg#    ifdef DL_LAZY
11215b9b4fd27Smrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
11216b9b4fd27Smrg#    else
11217b9b4fd27Smrg#      ifdef RTLD_NOW
11218b9b4fd27Smrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11219b9b4fd27Smrg#      else
11220b9b4fd27Smrg#        ifdef DL_NOW
11221b9b4fd27Smrg#          define LT_DLLAZY_OR_NOW	DL_NOW
11222b9b4fd27Smrg#        else
11223b9b4fd27Smrg#          define LT_DLLAZY_OR_NOW	0
11224b9b4fd27Smrg#        endif
11225b9b4fd27Smrg#      endif
11226b9b4fd27Smrg#    endif
11227b9b4fd27Smrg#  endif
11228b9b4fd27Smrg#endif
11229caade7ccSmrg
11230e8a5466aSmrg/* When -fvisbility=hidden is used, assume the code has been annotated
11231e8a5466aSmrg   correspondingly for the symbols needed.  */
11232e8a5466aSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11233a5602400Smrgint fnord () __attribute__((visibility("default")));
11234e8a5466aSmrg#endif
11235e8a5466aSmrg
11236a5602400Smrgint fnord () { return 42; }
11237b9b4fd27Smrgint main ()
11238b9b4fd27Smrg{
11239b9b4fd27Smrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11240b9b4fd27Smrg  int status = $lt_dlunknown;
11241b9b4fd27Smrg
11242b9b4fd27Smrg  if (self)
11243b9b4fd27Smrg    {
11244b9b4fd27Smrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11245e8a5466aSmrg      else
11246e8a5466aSmrg        {
11247e8a5466aSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11248e8a5466aSmrg          else puts (dlerror ());
11249e8a5466aSmrg	}
11250b9b4fd27Smrg      /* dlclose (self); */
11251b9b4fd27Smrg    }
11252caade7ccSmrg  else
11253b9b4fd27Smrg    puts (dlerror ());
11254b9b4fd27Smrg
11255b9b4fd27Smrg  return status;
11256b9b4fd27Smrg}
11257b9b4fd27Smrg_LT_EOF
11258b9b4fd27Smrg  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11259b9b4fd27Smrg  (eval $ac_link) 2>&5
11260b9b4fd27Smrg  ac_status=$?
11261b9b4fd27Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262b9b4fd27Smrg  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11263b9b4fd27Smrg    (./conftest; exit; ) >&5 2>/dev/null
11264b9b4fd27Smrg    lt_status=$?
11265b9b4fd27Smrg    case x$lt_status in
11266b9b4fd27Smrg      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11267b9b4fd27Smrg      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11268b9b4fd27Smrg      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11269caade7ccSmrg    esac
11270b9b4fd27Smrg  else :
11271b9b4fd27Smrg    # compilation failed
11272b9b4fd27Smrg    lt_cv_dlopen_self_static=no
11273caade7ccSmrg  fi
11274485f0483Smrgfi
11275b9b4fd27Smrgrm -fr conftest*
11276485f0483Smrg
11277485f0483Smrg
11278caade7ccSmrgfi
11279b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11280b9b4fd27Smrg$as_echo "$lt_cv_dlopen_self_static" >&6; }
11281b9b4fd27Smrg    fi
11282caade7ccSmrg
11283b9b4fd27Smrg    CPPFLAGS="$save_CPPFLAGS"
11284b9b4fd27Smrg    LDFLAGS="$save_LDFLAGS"
11285b9b4fd27Smrg    LIBS="$save_LIBS"
11286b9b4fd27Smrg    ;;
11287b9b4fd27Smrg  esac
11288caade7ccSmrg
11289b9b4fd27Smrg  case $lt_cv_dlopen_self in
11290b9b4fd27Smrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11291b9b4fd27Smrg  *) enable_dlopen_self=unknown ;;
11292b9b4fd27Smrg  esac
11293caade7ccSmrg
11294b9b4fd27Smrg  case $lt_cv_dlopen_self_static in
11295b9b4fd27Smrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11296b9b4fd27Smrg  *) enable_dlopen_self_static=unknown ;;
11297b9b4fd27Smrg  esac
11298caade7ccSmrgfi
11299caade7ccSmrg
11300caade7ccSmrg
11301caade7ccSmrg
11302caade7ccSmrg
11303caade7ccSmrg
11304caade7ccSmrg
11305caade7ccSmrg
11306caade7ccSmrg
11307caade7ccSmrg
11308caade7ccSmrg
11309caade7ccSmrg
11310caade7ccSmrg
11311caade7ccSmrg
11312caade7ccSmrg
11313caade7ccSmrg
11314caade7ccSmrg
11315caade7ccSmrg
11316b9b4fd27Smrgstriplib=
11317b9b4fd27Smrgold_striplib=
11318b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11319b9b4fd27Smrg$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11320b9b4fd27Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11321b9b4fd27Smrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11322b9b4fd27Smrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11323b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324b9b4fd27Smrg$as_echo "yes" >&6; }
11325b9b4fd27Smrgelse
11326b9b4fd27Smrg# FIXME - insert some real tests, host_os isn't really good enough
11327b9b4fd27Smrg  case $host_os in
11328b9b4fd27Smrg  darwin*)
11329b9b4fd27Smrg    if test -n "$STRIP" ; then
11330b9b4fd27Smrg      striplib="$STRIP -x"
11331b9b4fd27Smrg      old_striplib="$STRIP -S"
11332b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333b9b4fd27Smrg$as_echo "yes" >&6; }
11334b9b4fd27Smrg    else
11335b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336b9b4fd27Smrg$as_echo "no" >&6; }
11337b9b4fd27Smrg    fi
11338b9b4fd27Smrg    ;;
11339b9b4fd27Smrg  *)
11340b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341b9b4fd27Smrg$as_echo "no" >&6; }
11342b9b4fd27Smrg    ;;
11343b9b4fd27Smrg  esac
11344b9b4fd27Smrgfi
11345caade7ccSmrg
11346caade7ccSmrg
11347caade7ccSmrg
11348caade7ccSmrg
11349caade7ccSmrg
11350caade7ccSmrg
11351caade7ccSmrg
11352caade7ccSmrg
11353caade7ccSmrg
11354caade7ccSmrg
11355caade7ccSmrg
11356caade7ccSmrg
11357b9b4fd27Smrg  # Report which library types will actually be built
11358b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11359b9b4fd27Smrg$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11360b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11361b9b4fd27Smrg$as_echo "$can_build_shared" >&6; }
11362caade7ccSmrg
11363b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11364b9b4fd27Smrg$as_echo_n "checking whether to build shared libraries... " >&6; }
11365b9b4fd27Smrg  test "$can_build_shared" = "no" && enable_shared=no
11366caade7ccSmrg
11367b9b4fd27Smrg  # On AIX, shared libraries and static libraries use the same namespace, and
11368b9b4fd27Smrg  # are all built from PIC.
11369b9b4fd27Smrg  case $host_os in
11370b9b4fd27Smrg  aix3*)
11371b9b4fd27Smrg    test "$enable_shared" = yes && enable_static=no
11372b9b4fd27Smrg    if test -n "$RANLIB"; then
11373b9b4fd27Smrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11374b9b4fd27Smrg      postinstall_cmds='$RANLIB $lib'
11375b9b4fd27Smrg    fi
11376b9b4fd27Smrg    ;;
11377caade7ccSmrg
11378b9b4fd27Smrg  aix[4-9]*)
11379b9b4fd27Smrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11380b9b4fd27Smrg      test "$enable_shared" = yes && enable_static=no
11381b9b4fd27Smrg    fi
11382b9b4fd27Smrg    ;;
11383b9b4fd27Smrg  esac
11384b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11385b9b4fd27Smrg$as_echo "$enable_shared" >&6; }
11386caade7ccSmrg
11387b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11388b9b4fd27Smrg$as_echo_n "checking whether to build static libraries... " >&6; }
11389b9b4fd27Smrg  # Make sure either enable_shared or enable_static is yes.
11390b9b4fd27Smrg  test "$enable_shared" = yes || enable_static=yes
11391b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11392b9b4fd27Smrg$as_echo "$enable_static" >&6; }
11393caade7ccSmrg
11394caade7ccSmrg
11395caade7ccSmrg
11396caade7ccSmrg
11397caade7ccSmrgfi
11398caade7ccSmrgac_ext=c
11399caade7ccSmrgac_cpp='$CPP $CPPFLAGS'
11400caade7ccSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401caade7ccSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402caade7ccSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
11403caade7ccSmrg
11404caade7ccSmrgCC="$lt_save_CC"
11405caade7ccSmrg
11406caade7ccSmrg
11407caade7ccSmrg
11408caade7ccSmrg
11409caade7ccSmrg
11410caade7ccSmrg
11411caade7ccSmrg
11412caade7ccSmrg
11413caade7ccSmrg
11414caade7ccSmrg
11415caade7ccSmrg
11416caade7ccSmrg
11417caade7ccSmrg
11418af9a7ee5Smrg
11419af9a7ee5Smrg
11420b9b4fd27Smrg        ac_config_commands="$ac_config_commands libtool"
11421caade7ccSmrg
11422caade7ccSmrg
11423caade7ccSmrg
11424caade7ccSmrg
11425b9b4fd27Smrg# Only expand once:
11426caade7ccSmrg
11427caade7ccSmrg
11428a5602400Smrg
11429a5602400Smrg# Require xorg-macros minimum of 1.12 for DocBook external references
11430a5602400Smrg
11431a5602400Smrg
11432a5602400Smrg
11433a5602400Smrg
11434a5602400Smrg
11435a5602400Smrg
11436a5602400Smrg
11437a5602400Smrg
11438a5602400Smrg
11439a5602400Smrg
11440a5602400Smrg
11441a5602400Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11442a5602400Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11443a5602400Smrgif ${ac_cv_prog_cc_c99+:} false; then :
11444a5602400Smrg  $as_echo_n "(cached) " >&6
11445a5602400Smrgelse
11446a5602400Smrg  ac_cv_prog_cc_c99=no
11447a5602400Smrgac_save_CC=$CC
11448a5602400Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449a5602400Smrg/* end confdefs.h.  */
11450a5602400Smrg#include <stdarg.h>
11451a5602400Smrg#include <stdbool.h>
11452a5602400Smrg#include <stdlib.h>
11453a5602400Smrg#include <wchar.h>
11454a5602400Smrg#include <stdio.h>
11455a5602400Smrg
11456a5602400Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11457a5602400Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
11458a5602400Smrg#define showlist(...) puts (#__VA_ARGS__)
11459a5602400Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11460a5602400Smrgstatic void
11461a5602400Smrgtest_varargs_macros (void)
11462a5602400Smrg{
11463a5602400Smrg  int x = 1234;
11464a5602400Smrg  int y = 5678;
11465a5602400Smrg  debug ("Flag");
11466a5602400Smrg  debug ("X = %d\n", x);
11467a5602400Smrg  showlist (The first, second, and third items.);
11468a5602400Smrg  report (x>y, "x is %d but y is %d", x, y);
11469a5602400Smrg}
11470a5602400Smrg
11471a5602400Smrg// Check long long types.
11472a5602400Smrg#define BIG64 18446744073709551615ull
11473a5602400Smrg#define BIG32 4294967295ul
11474a5602400Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11475a5602400Smrg#if !BIG_OK
11476a5602400Smrg  your preprocessor is broken;
11477a5602400Smrg#endif
11478a5602400Smrg#if BIG_OK
11479a5602400Smrg#else
11480a5602400Smrg  your preprocessor is broken;
11481a5602400Smrg#endif
11482a5602400Smrgstatic long long int bignum = -9223372036854775807LL;
11483a5602400Smrgstatic unsigned long long int ubignum = BIG64;
11484a5602400Smrg
11485a5602400Smrgstruct incomplete_array
11486a5602400Smrg{
11487a5602400Smrg  int datasize;
11488a5602400Smrg  double data[];
11489a5602400Smrg};
11490a5602400Smrg
11491a5602400Smrgstruct named_init {
11492a5602400Smrg  int number;
11493a5602400Smrg  const wchar_t *name;
11494a5602400Smrg  double average;
11495a5602400Smrg};
11496a5602400Smrg
11497a5602400Smrgtypedef const char *ccp;
11498a5602400Smrg
11499a5602400Smrgstatic inline int
11500a5602400Smrgtest_restrict (ccp restrict text)
11501a5602400Smrg{
11502a5602400Smrg  // See if C++-style comments work.
11503a5602400Smrg  // Iterate through items via the restricted pointer.
11504a5602400Smrg  // Also check for declarations in for loops.
11505a5602400Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11506a5602400Smrg    continue;
11507a5602400Smrg  return 0;
11508a5602400Smrg}
11509a5602400Smrg
11510a5602400Smrg// Check varargs and va_copy.
11511a5602400Smrgstatic void
11512a5602400Smrgtest_varargs (const char *format, ...)
11513a5602400Smrg{
11514a5602400Smrg  va_list args;
11515a5602400Smrg  va_start (args, format);
11516a5602400Smrg  va_list args_copy;
11517a5602400Smrg  va_copy (args_copy, args);
11518a5602400Smrg
11519a5602400Smrg  const char *str;
11520a5602400Smrg  int number;
11521a5602400Smrg  float fnumber;
11522a5602400Smrg
11523a5602400Smrg  while (*format)
11524a5602400Smrg    {
11525a5602400Smrg      switch (*format++)
11526a5602400Smrg	{
11527a5602400Smrg	case 's': // string
11528a5602400Smrg	  str = va_arg (args_copy, const char *);
11529a5602400Smrg	  break;
11530a5602400Smrg	case 'd': // int
11531a5602400Smrg	  number = va_arg (args_copy, int);
11532a5602400Smrg	  break;
11533a5602400Smrg	case 'f': // float
11534a5602400Smrg	  fnumber = va_arg (args_copy, double);
11535a5602400Smrg	  break;
11536a5602400Smrg	default:
11537a5602400Smrg	  break;
11538a5602400Smrg	}
11539a5602400Smrg    }
11540a5602400Smrg  va_end (args_copy);
11541a5602400Smrg  va_end (args);
11542a5602400Smrg}
11543a5602400Smrg
11544a5602400Smrgint
11545a5602400Smrgmain ()
11546a5602400Smrg{
11547a5602400Smrg
11548a5602400Smrg  // Check bool.
11549a5602400Smrg  _Bool success = false;
11550a5602400Smrg
11551a5602400Smrg  // Check restrict.
11552a5602400Smrg  if (test_restrict ("String literal") == 0)
11553a5602400Smrg    success = true;
11554a5602400Smrg  char *restrict newvar = "Another string";
11555a5602400Smrg
11556a5602400Smrg  // Check varargs.
11557a5602400Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
11558a5602400Smrg  test_varargs_macros ();
11559a5602400Smrg
11560a5602400Smrg  // Check flexible array members.
11561a5602400Smrg  struct incomplete_array *ia =
11562a5602400Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11563a5602400Smrg  ia->datasize = 10;
11564a5602400Smrg  for (int i = 0; i < ia->datasize; ++i)
11565a5602400Smrg    ia->data[i] = i * 1.234;
11566a5602400Smrg
11567a5602400Smrg  // Check named initializers.
11568a5602400Smrg  struct named_init ni = {
11569a5602400Smrg    .number = 34,
11570a5602400Smrg    .name = L"Test wide string",
11571a5602400Smrg    .average = 543.34343,
11572a5602400Smrg  };
11573a5602400Smrg
11574a5602400Smrg  ni.number = 58;
11575a5602400Smrg
11576a5602400Smrg  int dynamic_array[ni.number];
11577a5602400Smrg  dynamic_array[ni.number - 1] = 543;
11578a5602400Smrg
11579a5602400Smrg  // work around unused variable warnings
11580a5602400Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11581a5602400Smrg	  || dynamic_array[ni.number - 1] != 543);
11582a5602400Smrg
11583a5602400Smrg  ;
11584a5602400Smrg  return 0;
11585a5602400Smrg}
11586a5602400Smrg_ACEOF
11587a5602400Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11588b9b4fd27Smrgdo
11589a5602400Smrg  CC="$ac_save_CC $ac_arg"
11590a5602400Smrg  if ac_fn_c_try_compile "$LINENO"; then :
11591a5602400Smrg  ac_cv_prog_cc_c99=$ac_arg
11592a5602400Smrgfi
11593a5602400Smrgrm -f core conftest.err conftest.$ac_objext
11594a5602400Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
11595b9b4fd27Smrgdone
11596a5602400Smrgrm -f conftest.$ac_ext
11597a5602400SmrgCC=$ac_save_CC
11598caade7ccSmrg
11599caade7ccSmrgfi
11600a5602400Smrg# AC_CACHE_VAL
11601a5602400Smrgcase "x$ac_cv_prog_cc_c99" in
11602a5602400Smrg  x)
11603a5602400Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11604a5602400Smrg$as_echo "none needed" >&6; } ;;
11605a5602400Smrg  xno)
11606a5602400Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11607a5602400Smrg$as_echo "unsupported" >&6; } ;;
11608a5602400Smrg  *)
11609a5602400Smrg    CC="$CC $ac_cv_prog_cc_c99"
11610a5602400Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11611a5602400Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11612a5602400Smrgesac
11613a5602400Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
11614a5602400Smrg
11615caade7ccSmrgfi
11616caade7ccSmrg
11617caade7ccSmrg
11618caade7ccSmrg
11619caade7ccSmrg
11620af9a7ee5Smrg
11621af9a7ee5Smrg
11622a5602400Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11623a5602400Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
11624a5602400Smrg  CLANGCC="yes"
11625b9b4fd27Smrgelse
11626a5602400Smrg  CLANGCC="no"
11627b9b4fd27Smrgfi
11628caade7ccSmrg
11629a5602400Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11630a5602400Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11631a5602400Smrg  INTELCC="yes"
11632b9b4fd27Smrgelse
11633a5602400Smrg  INTELCC="no"
11634b9b4fd27Smrgfi
11635a5602400Smrg
11636a5602400Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11637a5602400Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11638a5602400Smrg  SUNCC="yes"
11639caade7ccSmrgelse
11640a5602400Smrg  SUNCC="no"
11641caade7ccSmrgfi
11642caade7ccSmrg
11643caade7ccSmrg
11644caade7ccSmrg
11645caade7ccSmrg
11646a5602400Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11647a5602400Smrg	if test -n "$ac_tool_prefix"; then
11648a5602400Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11649a5602400Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11650b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
11652a5602400Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
11653485f0483Smrg  $as_echo_n "(cached) " >&6
11654caade7ccSmrgelse
11655a5602400Smrg  case $PKG_CONFIG in
11656a5602400Smrg  [\\/]* | ?:[\\/]*)
11657a5602400Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11658a5602400Smrg  ;;
11659a5602400Smrg  *)
11660a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661b9b4fd27Smrgfor as_dir in $PATH
11662b9b4fd27Smrgdo
11663b9b4fd27Smrg  IFS=$as_save_IFS
11664b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
11665b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11666b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667a5602400Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11668b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669b9b4fd27Smrg    break 2
11670b9b4fd27Smrg  fi
11671b9b4fd27Smrgdone
11672b9b4fd27Smrg  done
11673b9b4fd27SmrgIFS=$as_save_IFS
11674caade7ccSmrg
11675a5602400Smrg  ;;
11676a5602400Smrgesac
11677caade7ccSmrgfi
11678a5602400SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
11679a5602400Smrgif test -n "$PKG_CONFIG"; then
11680a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11681a5602400Smrg$as_echo "$PKG_CONFIG" >&6; }
11682caade7ccSmrgelse
11683b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684b9b4fd27Smrg$as_echo "no" >&6; }
11685caade7ccSmrgfi
11686caade7ccSmrg
11687caade7ccSmrg
11688b9b4fd27Smrgfi
11689a5602400Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
11690a5602400Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
11691a5602400Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
11692a5602400Smrgset dummy pkg-config; ac_word=$2
11693b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
11695a5602400Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11696b9b4fd27Smrg  $as_echo_n "(cached) " >&6
11697b9b4fd27Smrgelse
11698a5602400Smrg  case $ac_pt_PKG_CONFIG in
11699a5602400Smrg  [\\/]* | ?:[\\/]*)
11700a5602400Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11701a5602400Smrg  ;;
11702a5602400Smrg  *)
11703a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704b9b4fd27Smrgfor as_dir in $PATH
11705b9b4fd27Smrgdo
11706b9b4fd27Smrg  IFS=$as_save_IFS
11707b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
11708b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
11709b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11710a5602400Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11711b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712b9b4fd27Smrg    break 2
11713b9b4fd27Smrg  fi
11714caade7ccSmrgdone
11715b9b4fd27Smrg  done
11716b9b4fd27SmrgIFS=$as_save_IFS
11717caade7ccSmrg
11718a5602400Smrg  ;;
11719a5602400Smrgesac
11720b9b4fd27Smrgfi
11721a5602400Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11722a5602400Smrgif test -n "$ac_pt_PKG_CONFIG"; then
11723a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11724a5602400Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11725b9b4fd27Smrgelse
11726b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727b9b4fd27Smrg$as_echo "no" >&6; }
11728b9b4fd27Smrgfi
11729caade7ccSmrg
11730a5602400Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
11731a5602400Smrg    PKG_CONFIG=""
11732b9b4fd27Smrg  else
11733b9b4fd27Smrg    case $cross_compiling:$ac_tool_warned in
11734b9b4fd27Smrgyes:)
11735b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11736b9b4fd27Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11737b9b4fd27Smrgac_tool_warned=yes ;;
11738b9b4fd27Smrgesac
11739a5602400Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
11740b9b4fd27Smrg  fi
11741a5602400Smrgelse
11742a5602400Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11743b9b4fd27Smrgfi
11744caade7ccSmrg
11745b9b4fd27Smrgfi
11746a5602400Smrgif test -n "$PKG_CONFIG"; then
11747a5602400Smrg	_pkg_min_version=0.9.0
11748a5602400Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11749a5602400Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11750a5602400Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11751a5602400Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752a5602400Smrg$as_echo "yes" >&6; }
11753a5602400Smrg	else
11754a5602400Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755a5602400Smrg$as_echo "no" >&6; }
11756a5602400Smrg		PKG_CONFIG=""
11757a5602400Smrg	fi
11758caade7ccSmrg
11759a5602400Smrgfi
11760caade7ccSmrg
11761caade7ccSmrg
11762caade7ccSmrg
11763caade7ccSmrg
11764caade7ccSmrg
11765af9a7ee5Smrg# Check whether --enable-selective-werror was given.
11766af9a7ee5Smrgif test "${enable_selective_werror+set}" = set; then :
11767af9a7ee5Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11768a5602400Smrgelse
11769af9a7ee5Smrg  SELECTIVE_WERROR=yes
11770af9a7ee5Smrgfi
11771af9a7ee5Smrg
11772af9a7ee5Smrg
11773af9a7ee5Smrg
11774af9a7ee5Smrg
11775af9a7ee5Smrg
11776af9a7ee5Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
11777af9a7ee5Smrgif test "x$SUNCC" = "xyes"; then
11778af9a7ee5Smrg    BASE_CFLAGS="-v"
11779af9a7ee5Smrgelse
11780af9a7ee5Smrg    BASE_CFLAGS=""
11781a5602400Smrgfi
11782a5602400Smrg
11783af9a7ee5Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11784a5602400Smrg
11785a5602400Smrg
11786a5602400Smrg
11787a5602400Smrg
11788a5602400Smrg
11789a5602400Smrg
11790af9a7ee5Smrg
11791af9a7ee5Smrg
11792af9a7ee5Smrg
11793af9a7ee5Smrg
11794af9a7ee5Smrg
11795af9a7ee5Smrg
11796af9a7ee5Smrg
11797af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
11798af9a7ee5Smrg
11799af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11800af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11801af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11802af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11803af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11804af9a7ee5Smrg  $as_echo_n "(cached) " >&6
11805a5602400Smrgelse
11806af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807af9a7ee5Smrg/* end confdefs.h.  */
11808af9a7ee5Smrgint i;
11809af9a7ee5Smrg_ACEOF
11810af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
11811af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11812af9a7ee5Smrgelse
11813af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
11814af9a7ee5Smrgfi
11815af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816af9a7ee5Smrgfi
11817af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11818af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11819af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11820af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
11821a5602400Smrgfi
11822a5602400Smrg
11823af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11824af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11825af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11826af9a7ee5Smrg	fi
11827af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11828af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11829af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11830af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11831af9a7ee5Smrg  $as_echo_n "(cached) " >&6
11832af9a7ee5Smrgelse
11833af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834a5602400Smrg/* end confdefs.h.  */
11835af9a7ee5Smrgint i;
11836a5602400Smrg_ACEOF
11837a5602400Smrgif ac_fn_c_try_compile "$LINENO"; then :
11838af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11839a5602400Smrgelse
11840af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
11841a5602400Smrgfi
11842a5602400Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11843a5602400Smrgfi
11844af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11845af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11846af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11847af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
11848a5602400Smrgfi
11849a5602400Smrg
11850af9a7ee5Smrgfound="no"
11851a5602400Smrg
11852af9a7ee5Smrg	if test $found = "no" ; then
11853af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11854af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11855af9a7ee5Smrg		fi
11856a5602400Smrg
11857af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11858af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11859af9a7ee5Smrg		fi
11860a5602400Smrg
11861af9a7ee5Smrg		CFLAGS="$CFLAGS -Wall"
11862a5602400Smrg
11863af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11864af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
11865af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wall
11866af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
11867af9a7ee5Smrg  $as_echo_n "(cached) " >&6
11868af9a7ee5Smrgelse
11869af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870af9a7ee5Smrg/* end confdefs.h.  */
11871af9a7ee5Smrgint i;
11872af9a7ee5Smrgint
11873af9a7ee5Smrgmain ()
11874af9a7ee5Smrg{
11875af9a7ee5Smrg
11876af9a7ee5Smrg  ;
11877af9a7ee5Smrg  return 0;
11878af9a7ee5Smrg}
11879a5602400Smrg_ACEOF
11880af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
11881af9a7ee5Smrg  eval $cacheid=yes
11882af9a7ee5Smrgelse
11883af9a7ee5Smrg  eval $cacheid=no
11884af9a7ee5Smrgfi
11885af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
11886af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
11887af9a7ee5Smrgfi
11888a5602400Smrg
11889a5602400Smrg
11890af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
11891a5602400Smrg
11892af9a7ee5Smrg		eval supported=\$$cacheid
11893af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11894af9a7ee5Smrg$as_echo "$supported" >&6; }
11895af9a7ee5Smrg		if test "$supported" = "yes" ; then
11896af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11897af9a7ee5Smrg			found="yes"
11898af9a7ee5Smrg		fi
11899a5602400Smrg	fi
11900a5602400Smrg
11901a5602400Smrg
11902a5602400Smrg
11903a5602400Smrg
11904a5602400Smrg
11905a5602400Smrg
11906a5602400Smrg
11907a5602400Smrg
11908a5602400Smrg
11909a5602400Smrg
11910a5602400Smrg
11911a5602400Smrg
11912a5602400Smrg
11913a5602400Smrg
11914a5602400Smrg
11915af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
11916a5602400Smrg
11917af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11918af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11919af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11920af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11921af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11922af9a7ee5Smrg  $as_echo_n "(cached) " >&6
11923af9a7ee5Smrgelse
11924af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925af9a7ee5Smrg/* end confdefs.h.  */
11926af9a7ee5Smrgint i;
11927af9a7ee5Smrg_ACEOF
11928af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
11929af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
11930af9a7ee5Smrgelse
11931af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
11932a5602400Smrgfi
11933af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934a5602400Smrgfi
11935af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11936af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11937af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11938af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
11939a5602400Smrgfi
11940a5602400Smrg
11941af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11942af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11943af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11944af9a7ee5Smrg	fi
11945af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11946af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11947af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11948af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11949af9a7ee5Smrg  $as_echo_n "(cached) " >&6
11950af9a7ee5Smrgelse
11951af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952af9a7ee5Smrg/* end confdefs.h.  */
11953af9a7ee5Smrgint i;
11954af9a7ee5Smrg_ACEOF
11955af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
11956af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
11957af9a7ee5Smrgelse
11958af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
11959a5602400Smrgfi
11960af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961af9a7ee5Smrgfi
11962af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11963af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11964af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11965af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
11966a5602400Smrgfi
11967a5602400Smrg
11968af9a7ee5Smrgfound="no"
11969af9a7ee5Smrg
11970af9a7ee5Smrg	if test $found = "no" ; then
11971af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11972af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11973af9a7ee5Smrg		fi
11974af9a7ee5Smrg
11975af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11976af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11977af9a7ee5Smrg		fi
11978af9a7ee5Smrg
11979af9a7ee5Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
11980af9a7ee5Smrg
11981af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11982af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11983af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
11984af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
11985af9a7ee5Smrg  $as_echo_n "(cached) " >&6
11986af9a7ee5Smrgelse
11987af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988af9a7ee5Smrg/* end confdefs.h.  */
11989af9a7ee5Smrgint i;
11990af9a7ee5Smrgint
11991af9a7ee5Smrgmain ()
11992af9a7ee5Smrg{
11993af9a7ee5Smrg
11994af9a7ee5Smrg  ;
11995af9a7ee5Smrg  return 0;
11996af9a7ee5Smrg}
11997af9a7ee5Smrg_ACEOF
11998af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
11999af9a7ee5Smrg  eval $cacheid=yes
12000af9a7ee5Smrgelse
12001af9a7ee5Smrg  eval $cacheid=no
12002a5602400Smrgfi
12003af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12004af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12005af9a7ee5Smrgfi
12006af9a7ee5Smrg
12007af9a7ee5Smrg
12008af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12009af9a7ee5Smrg
12010af9a7ee5Smrg		eval supported=\$$cacheid
12011af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12012af9a7ee5Smrg$as_echo "$supported" >&6; }
12013af9a7ee5Smrg		if test "$supported" = "yes" ; then
12014af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12015af9a7ee5Smrg			found="yes"
12016af9a7ee5Smrg		fi
12017af9a7ee5Smrg	fi
12018af9a7ee5Smrg
12019af9a7ee5Smrg
12020af9a7ee5Smrg
12021af9a7ee5Smrg
12022af9a7ee5Smrg
12023af9a7ee5Smrg
12024af9a7ee5Smrg
12025af9a7ee5Smrg
12026af9a7ee5Smrg
12027af9a7ee5Smrg
12028af9a7ee5Smrg
12029af9a7ee5Smrg
12030af9a7ee5Smrg
12031af9a7ee5Smrg
12032af9a7ee5Smrg
12033af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
12034af9a7ee5Smrg
12035af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12036af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12037af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12038af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12039af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12040af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12041af9a7ee5Smrgelse
12042af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043af9a7ee5Smrg/* end confdefs.h.  */
12044af9a7ee5Smrgint i;
12045af9a7ee5Smrg_ACEOF
12046af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12047af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
12048af9a7ee5Smrgelse
12049af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
12050af9a7ee5Smrgfi
12051af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052af9a7ee5Smrgfi
12053af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12054af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12055af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12056af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12057af9a7ee5Smrgfi
12058af9a7ee5Smrg
12059af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12060af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12061af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12062af9a7ee5Smrg	fi
12063af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12064af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12065af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12066af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12067af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12068af9a7ee5Smrgelse
12069af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070af9a7ee5Smrg/* end confdefs.h.  */
12071af9a7ee5Smrgint i;
12072af9a7ee5Smrg_ACEOF
12073af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12074af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
12075af9a7ee5Smrgelse
12076af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
12077af9a7ee5Smrgfi
12078af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079af9a7ee5Smrgfi
12080af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12081af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12082af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12083af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12084af9a7ee5Smrgfi
12085af9a7ee5Smrg
12086af9a7ee5Smrgfound="no"
12087af9a7ee5Smrg
12088af9a7ee5Smrg	if test $found = "no" ; then
12089af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12090af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12091af9a7ee5Smrg		fi
12092af9a7ee5Smrg
12093af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12094af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12095af9a7ee5Smrg		fi
12096af9a7ee5Smrg
12097af9a7ee5Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
12098af9a7ee5Smrg
12099af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12100af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12101af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12102af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12103af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12104af9a7ee5Smrgelse
12105af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106af9a7ee5Smrg/* end confdefs.h.  */
12107af9a7ee5Smrgint i;
12108af9a7ee5Smrgint
12109af9a7ee5Smrgmain ()
12110af9a7ee5Smrg{
12111af9a7ee5Smrg
12112af9a7ee5Smrg  ;
12113af9a7ee5Smrg  return 0;
12114af9a7ee5Smrg}
12115af9a7ee5Smrg_ACEOF
12116af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12117af9a7ee5Smrg  eval $cacheid=yes
12118af9a7ee5Smrgelse
12119af9a7ee5Smrg  eval $cacheid=no
12120af9a7ee5Smrgfi
12121af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12122af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12123af9a7ee5Smrgfi
12124af9a7ee5Smrg
12125af9a7ee5Smrg
12126af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12127af9a7ee5Smrg
12128af9a7ee5Smrg		eval supported=\$$cacheid
12129af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12130af9a7ee5Smrg$as_echo "$supported" >&6; }
12131af9a7ee5Smrg		if test "$supported" = "yes" ; then
12132af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12133af9a7ee5Smrg			found="yes"
12134af9a7ee5Smrg		fi
12135af9a7ee5Smrg	fi
12136af9a7ee5Smrg
12137af9a7ee5Smrg
12138af9a7ee5Smrg
12139af9a7ee5Smrg
12140af9a7ee5Smrg
12141af9a7ee5Smrg
12142af9a7ee5Smrg
12143af9a7ee5Smrg
12144af9a7ee5Smrg
12145af9a7ee5Smrg
12146af9a7ee5Smrg
12147af9a7ee5Smrg
12148af9a7ee5Smrg
12149af9a7ee5Smrg
12150af9a7ee5Smrg
12151af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
12152af9a7ee5Smrg
12153af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12154af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12155af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12156af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12157af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12158af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12159af9a7ee5Smrgelse
12160af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161af9a7ee5Smrg/* end confdefs.h.  */
12162af9a7ee5Smrgint i;
12163af9a7ee5Smrg_ACEOF
12164af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12165af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
12166af9a7ee5Smrgelse
12167af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
12168af9a7ee5Smrgfi
12169af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170af9a7ee5Smrgfi
12171af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12172af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12173af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12174af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12175af9a7ee5Smrgfi
12176af9a7ee5Smrg
12177af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12178af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12179af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12180af9a7ee5Smrg	fi
12181af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12182af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12183af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12184af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12185af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12186af9a7ee5Smrgelse
12187af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188af9a7ee5Smrg/* end confdefs.h.  */
12189af9a7ee5Smrgint i;
12190af9a7ee5Smrg_ACEOF
12191af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12192af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
12193af9a7ee5Smrgelse
12194af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
12195af9a7ee5Smrgfi
12196af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197af9a7ee5Smrgfi
12198af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12199af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12200af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12201af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12202af9a7ee5Smrgfi
12203af9a7ee5Smrg
12204af9a7ee5Smrgfound="no"
12205af9a7ee5Smrg
12206af9a7ee5Smrg	if test $found = "no" ; then
12207af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12208af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12209af9a7ee5Smrg		fi
12210af9a7ee5Smrg
12211af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12212af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12213af9a7ee5Smrg		fi
12214af9a7ee5Smrg
12215af9a7ee5Smrg		CFLAGS="$CFLAGS -Wformat=2"
12216af9a7ee5Smrg
12217af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12218af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12219af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12220af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12221af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12222af9a7ee5Smrgelse
12223af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224af9a7ee5Smrg/* end confdefs.h.  */
12225af9a7ee5Smrgint i;
12226af9a7ee5Smrgint
12227af9a7ee5Smrgmain ()
12228af9a7ee5Smrg{
12229af9a7ee5Smrg
12230af9a7ee5Smrg  ;
12231af9a7ee5Smrg  return 0;
12232af9a7ee5Smrg}
12233af9a7ee5Smrg_ACEOF
12234af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12235af9a7ee5Smrg  eval $cacheid=yes
12236af9a7ee5Smrgelse
12237af9a7ee5Smrg  eval $cacheid=no
12238af9a7ee5Smrgfi
12239af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12240af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12241af9a7ee5Smrgfi
12242af9a7ee5Smrg
12243af9a7ee5Smrg
12244af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12245af9a7ee5Smrg
12246af9a7ee5Smrg		eval supported=\$$cacheid
12247af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12248af9a7ee5Smrg$as_echo "$supported" >&6; }
12249af9a7ee5Smrg		if test "$supported" = "yes" ; then
12250af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12251af9a7ee5Smrg			found="yes"
12252af9a7ee5Smrg		fi
12253af9a7ee5Smrg	fi
12254af9a7ee5Smrg
12255af9a7ee5Smrg	if test $found = "no" ; then
12256af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12257af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12258af9a7ee5Smrg		fi
12259af9a7ee5Smrg
12260af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12261af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12262af9a7ee5Smrg		fi
12263af9a7ee5Smrg
12264af9a7ee5Smrg		CFLAGS="$CFLAGS -Wformat"
12265af9a7ee5Smrg
12266af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12267af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12268af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wformat
12269af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12270af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12271af9a7ee5Smrgelse
12272af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273af9a7ee5Smrg/* end confdefs.h.  */
12274af9a7ee5Smrgint i;
12275af9a7ee5Smrgint
12276af9a7ee5Smrgmain ()
12277af9a7ee5Smrg{
12278af9a7ee5Smrg
12279af9a7ee5Smrg  ;
12280af9a7ee5Smrg  return 0;
12281af9a7ee5Smrg}
12282af9a7ee5Smrg_ACEOF
12283af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12284af9a7ee5Smrg  eval $cacheid=yes
12285af9a7ee5Smrgelse
12286af9a7ee5Smrg  eval $cacheid=no
12287af9a7ee5Smrgfi
12288af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12289af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12290af9a7ee5Smrgfi
12291af9a7ee5Smrg
12292af9a7ee5Smrg
12293af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12294af9a7ee5Smrg
12295af9a7ee5Smrg		eval supported=\$$cacheid
12296af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12297af9a7ee5Smrg$as_echo "$supported" >&6; }
12298af9a7ee5Smrg		if test "$supported" = "yes" ; then
12299af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12300af9a7ee5Smrg			found="yes"
12301af9a7ee5Smrg		fi
12302af9a7ee5Smrg	fi
12303af9a7ee5Smrg
12304af9a7ee5Smrg
12305af9a7ee5Smrg
12306af9a7ee5Smrg
12307af9a7ee5Smrg
12308af9a7ee5Smrg
12309af9a7ee5Smrg
12310af9a7ee5Smrg
12311af9a7ee5Smrg
12312af9a7ee5Smrg
12313af9a7ee5Smrg
12314af9a7ee5Smrg
12315af9a7ee5Smrg
12316af9a7ee5Smrg
12317af9a7ee5Smrg
12318af9a7ee5Smrg
12319af9a7ee5Smrg
12320af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
12321af9a7ee5Smrg
12322af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12323af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12324af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12325af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12326af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12327af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12328af9a7ee5Smrgelse
12329af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330af9a7ee5Smrg/* end confdefs.h.  */
12331af9a7ee5Smrgint i;
12332af9a7ee5Smrg_ACEOF
12333af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12334af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
12335af9a7ee5Smrgelse
12336af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
12337af9a7ee5Smrgfi
12338af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12339af9a7ee5Smrgfi
12340af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12341af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12342af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12343af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12344af9a7ee5Smrgfi
12345af9a7ee5Smrg
12346af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12347af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12348af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12349af9a7ee5Smrg	fi
12350af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12351af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12352af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12353af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12354af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12355af9a7ee5Smrgelse
12356af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357af9a7ee5Smrg/* end confdefs.h.  */
12358af9a7ee5Smrgint i;
12359af9a7ee5Smrg_ACEOF
12360af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12361af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
12362af9a7ee5Smrgelse
12363af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
12364af9a7ee5Smrgfi
12365af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366af9a7ee5Smrgfi
12367af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12368af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12369af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12370af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12371af9a7ee5Smrgfi
12372af9a7ee5Smrg
12373af9a7ee5Smrgfound="no"
12374af9a7ee5Smrg
12375af9a7ee5Smrg	if test $found = "no" ; then
12376af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12377af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12378af9a7ee5Smrg		fi
12379af9a7ee5Smrg
12380af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12381af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12382af9a7ee5Smrg		fi
12383af9a7ee5Smrg
12384af9a7ee5Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
12385af9a7ee5Smrg
12386af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12387af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12388af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12389af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12390af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12391af9a7ee5Smrgelse
12392af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393af9a7ee5Smrg/* end confdefs.h.  */
12394af9a7ee5Smrgint i;
12395af9a7ee5Smrgint
12396af9a7ee5Smrgmain ()
12397af9a7ee5Smrg{
12398af9a7ee5Smrg
12399af9a7ee5Smrg  ;
12400af9a7ee5Smrg  return 0;
12401af9a7ee5Smrg}
12402af9a7ee5Smrg_ACEOF
12403af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12404af9a7ee5Smrg  eval $cacheid=yes
12405af9a7ee5Smrgelse
12406af9a7ee5Smrg  eval $cacheid=no
12407af9a7ee5Smrgfi
12408af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12409af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12410af9a7ee5Smrgfi
12411af9a7ee5Smrg
12412af9a7ee5Smrg
12413af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12414af9a7ee5Smrg
12415af9a7ee5Smrg		eval supported=\$$cacheid
12416af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12417af9a7ee5Smrg$as_echo "$supported" >&6; }
12418af9a7ee5Smrg		if test "$supported" = "yes" ; then
12419af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12420af9a7ee5Smrg			found="yes"
12421af9a7ee5Smrg		fi
12422af9a7ee5Smrg	fi
12423af9a7ee5Smrg
12424af9a7ee5Smrg
12425af9a7ee5Smrg
12426af9a7ee5Smrg
12427af9a7ee5Smrg
12428af9a7ee5Smrg
12429af9a7ee5Smrg
12430af9a7ee5Smrg
12431af9a7ee5Smrg
12432af9a7ee5Smrg
12433af9a7ee5Smrg
12434af9a7ee5Smrg
12435af9a7ee5Smrg
12436af9a7ee5Smrg
12437af9a7ee5Smrg
12438af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
12439af9a7ee5Smrg
12440af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12441af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12442af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12443af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12444af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12445af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12446af9a7ee5Smrgelse
12447af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448af9a7ee5Smrg/* end confdefs.h.  */
12449af9a7ee5Smrgint i;
12450af9a7ee5Smrg_ACEOF
12451af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12452af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
12453af9a7ee5Smrgelse
12454af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
12455af9a7ee5Smrgfi
12456af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457af9a7ee5Smrgfi
12458af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12459af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12460af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12461af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12462af9a7ee5Smrgfi
12463af9a7ee5Smrg
12464af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12465af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12466af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12467af9a7ee5Smrg	fi
12468af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12469af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12470af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12471af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12472af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12473af9a7ee5Smrgelse
12474af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475af9a7ee5Smrg/* end confdefs.h.  */
12476af9a7ee5Smrgint i;
12477af9a7ee5Smrg_ACEOF
12478af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12479af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
12480af9a7ee5Smrgelse
12481af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
12482af9a7ee5Smrgfi
12483af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484af9a7ee5Smrgfi
12485af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12486af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12487af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12488af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12489af9a7ee5Smrgfi
12490af9a7ee5Smrg
12491af9a7ee5Smrgfound="no"
12492af9a7ee5Smrg
12493af9a7ee5Smrg	if test $found = "no" ; then
12494af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12495af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12496af9a7ee5Smrg		fi
12497af9a7ee5Smrg
12498af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12499af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12500af9a7ee5Smrg		fi
12501af9a7ee5Smrg
12502af9a7ee5Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
12503af9a7ee5Smrg
12504af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12505af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12506af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12507af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12508af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12509af9a7ee5Smrgelse
12510af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511af9a7ee5Smrg/* end confdefs.h.  */
12512af9a7ee5Smrgint i;
12513af9a7ee5Smrgint
12514af9a7ee5Smrgmain ()
12515af9a7ee5Smrg{
12516af9a7ee5Smrg
12517af9a7ee5Smrg  ;
12518af9a7ee5Smrg  return 0;
12519af9a7ee5Smrg}
12520af9a7ee5Smrg_ACEOF
12521af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12522af9a7ee5Smrg  eval $cacheid=yes
12523af9a7ee5Smrgelse
12524af9a7ee5Smrg  eval $cacheid=no
12525af9a7ee5Smrgfi
12526af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12527af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12528af9a7ee5Smrgfi
12529af9a7ee5Smrg
12530af9a7ee5Smrg
12531af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12532af9a7ee5Smrg
12533af9a7ee5Smrg		eval supported=\$$cacheid
12534af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12535af9a7ee5Smrg$as_echo "$supported" >&6; }
12536af9a7ee5Smrg		if test "$supported" = "yes" ; then
12537af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12538af9a7ee5Smrg			found="yes"
12539af9a7ee5Smrg		fi
12540af9a7ee5Smrg	fi
12541af9a7ee5Smrg
12542af9a7ee5Smrg
12543af9a7ee5Smrg
12544af9a7ee5Smrg
12545af9a7ee5Smrg
12546af9a7ee5Smrg
12547af9a7ee5Smrg
12548af9a7ee5Smrg
12549af9a7ee5Smrg
12550af9a7ee5Smrg
12551af9a7ee5Smrg
12552af9a7ee5Smrg
12553af9a7ee5Smrg
12554af9a7ee5Smrg
12555af9a7ee5Smrg
12556af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
12557af9a7ee5Smrg
12558af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12559af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12560af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12561af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12562af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12563af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12564af9a7ee5Smrgelse
12565af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566af9a7ee5Smrg/* end confdefs.h.  */
12567af9a7ee5Smrgint i;
12568af9a7ee5Smrg_ACEOF
12569af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12570af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
12571af9a7ee5Smrgelse
12572af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
12573af9a7ee5Smrgfi
12574af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575af9a7ee5Smrgfi
12576af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12577af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12578af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12579af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12580af9a7ee5Smrgfi
12581af9a7ee5Smrg
12582af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12583af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12584af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12585af9a7ee5Smrg	fi
12586af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12587af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12588af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12589af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12590af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12591af9a7ee5Smrgelse
12592af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593af9a7ee5Smrg/* end confdefs.h.  */
12594af9a7ee5Smrgint i;
12595af9a7ee5Smrg_ACEOF
12596af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12597af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
12598af9a7ee5Smrgelse
12599af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
12600af9a7ee5Smrgfi
12601af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602af9a7ee5Smrgfi
12603af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12604af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12605af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12606af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12607af9a7ee5Smrgfi
12608af9a7ee5Smrg
12609af9a7ee5Smrgfound="no"
12610af9a7ee5Smrg
12611af9a7ee5Smrg	if test $found = "no" ; then
12612af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12613af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12614af9a7ee5Smrg		fi
12615af9a7ee5Smrg
12616af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12617af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12618af9a7ee5Smrg		fi
12619af9a7ee5Smrg
12620af9a7ee5Smrg		CFLAGS="$CFLAGS -Wnested-externs"
12621af9a7ee5Smrg
12622af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12623af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12624af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
12625af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12626af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12627af9a7ee5Smrgelse
12628af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629af9a7ee5Smrg/* end confdefs.h.  */
12630af9a7ee5Smrgint i;
12631af9a7ee5Smrgint
12632af9a7ee5Smrgmain ()
12633af9a7ee5Smrg{
12634af9a7ee5Smrg
12635af9a7ee5Smrg  ;
12636af9a7ee5Smrg  return 0;
12637af9a7ee5Smrg}
12638af9a7ee5Smrg_ACEOF
12639af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12640af9a7ee5Smrg  eval $cacheid=yes
12641af9a7ee5Smrgelse
12642af9a7ee5Smrg  eval $cacheid=no
12643af9a7ee5Smrgfi
12644af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12645af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12646af9a7ee5Smrgfi
12647af9a7ee5Smrg
12648af9a7ee5Smrg
12649af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12650af9a7ee5Smrg
12651af9a7ee5Smrg		eval supported=\$$cacheid
12652af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12653af9a7ee5Smrg$as_echo "$supported" >&6; }
12654af9a7ee5Smrg		if test "$supported" = "yes" ; then
12655af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12656af9a7ee5Smrg			found="yes"
12657af9a7ee5Smrg		fi
12658af9a7ee5Smrg	fi
12659af9a7ee5Smrg
12660af9a7ee5Smrg
12661af9a7ee5Smrg
12662af9a7ee5Smrg
12663af9a7ee5Smrg
12664af9a7ee5Smrg
12665af9a7ee5Smrg
12666af9a7ee5Smrg
12667af9a7ee5Smrg
12668af9a7ee5Smrg
12669af9a7ee5Smrg
12670af9a7ee5Smrg
12671af9a7ee5Smrg
12672af9a7ee5Smrg
12673af9a7ee5Smrg
12674af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
12675af9a7ee5Smrg
12676af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12677af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12678af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12679af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12680af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12681af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12682af9a7ee5Smrgelse
12683af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684af9a7ee5Smrg/* end confdefs.h.  */
12685af9a7ee5Smrgint i;
12686af9a7ee5Smrg_ACEOF
12687af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12688af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
12689af9a7ee5Smrgelse
12690af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
12691af9a7ee5Smrgfi
12692af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693af9a7ee5Smrgfi
12694af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12695af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12696af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12697af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12698af9a7ee5Smrgfi
12699af9a7ee5Smrg
12700af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12701af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12702af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12703af9a7ee5Smrg	fi
12704af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12705af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12706af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12707af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12708af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12709af9a7ee5Smrgelse
12710af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711af9a7ee5Smrg/* end confdefs.h.  */
12712af9a7ee5Smrgint i;
12713af9a7ee5Smrg_ACEOF
12714af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12715af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
12716af9a7ee5Smrgelse
12717af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
12718af9a7ee5Smrgfi
12719af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720af9a7ee5Smrgfi
12721af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12722af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12723af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12724af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12725af9a7ee5Smrgfi
12726af9a7ee5Smrg
12727af9a7ee5Smrgfound="no"
12728af9a7ee5Smrg
12729af9a7ee5Smrg	if test $found = "no" ; then
12730af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12731af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12732af9a7ee5Smrg		fi
12733af9a7ee5Smrg
12734af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12735af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12736af9a7ee5Smrg		fi
12737af9a7ee5Smrg
12738af9a7ee5Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
12739af9a7ee5Smrg
12740af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12741af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12742af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12743af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12744af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12745af9a7ee5Smrgelse
12746af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747af9a7ee5Smrg/* end confdefs.h.  */
12748af9a7ee5Smrgint i;
12749af9a7ee5Smrgint
12750af9a7ee5Smrgmain ()
12751af9a7ee5Smrg{
12752af9a7ee5Smrg
12753af9a7ee5Smrg  ;
12754af9a7ee5Smrg  return 0;
12755af9a7ee5Smrg}
12756af9a7ee5Smrg_ACEOF
12757af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12758af9a7ee5Smrg  eval $cacheid=yes
12759af9a7ee5Smrgelse
12760af9a7ee5Smrg  eval $cacheid=no
12761af9a7ee5Smrgfi
12762af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12763af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12764af9a7ee5Smrgfi
12765af9a7ee5Smrg
12766af9a7ee5Smrg
12767af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12768af9a7ee5Smrg
12769af9a7ee5Smrg		eval supported=\$$cacheid
12770af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12771af9a7ee5Smrg$as_echo "$supported" >&6; }
12772af9a7ee5Smrg		if test "$supported" = "yes" ; then
12773af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12774af9a7ee5Smrg			found="yes"
12775af9a7ee5Smrg		fi
12776af9a7ee5Smrg	fi
12777af9a7ee5Smrg
12778af9a7ee5Smrg
12779af9a7ee5Smrg
12780af9a7ee5Smrg
12781af9a7ee5Smrg
12782af9a7ee5Smrg
12783af9a7ee5Smrg
12784af9a7ee5Smrg
12785af9a7ee5Smrg
12786af9a7ee5Smrg
12787af9a7ee5Smrg
12788af9a7ee5Smrg
12789af9a7ee5Smrg
12790af9a7ee5Smrg
12791af9a7ee5Smrg
12792af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
12793af9a7ee5Smrg
12794af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12795af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12796af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12797af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12798af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12799af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12800af9a7ee5Smrgelse
12801af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802af9a7ee5Smrg/* end confdefs.h.  */
12803af9a7ee5Smrgint i;
12804af9a7ee5Smrg_ACEOF
12805af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12806af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
12807af9a7ee5Smrgelse
12808af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
12809af9a7ee5Smrgfi
12810af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811af9a7ee5Smrgfi
12812af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12813af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12814af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12815af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12816af9a7ee5Smrgfi
12817af9a7ee5Smrg
12818af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12819af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12820af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12821af9a7ee5Smrg	fi
12822af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12823af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12824af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12825af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12826af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12827af9a7ee5Smrgelse
12828af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829af9a7ee5Smrg/* end confdefs.h.  */
12830af9a7ee5Smrgint i;
12831af9a7ee5Smrg_ACEOF
12832af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12833af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
12834af9a7ee5Smrgelse
12835af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
12836af9a7ee5Smrgfi
12837af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838af9a7ee5Smrgfi
12839af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12840af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12841af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12842af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12843af9a7ee5Smrgfi
12844af9a7ee5Smrg
12845af9a7ee5Smrgfound="no"
12846af9a7ee5Smrg
12847af9a7ee5Smrg	if test $found = "no" ; then
12848af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12849af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12850af9a7ee5Smrg		fi
12851af9a7ee5Smrg
12852af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12853af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12854af9a7ee5Smrg		fi
12855af9a7ee5Smrg
12856af9a7ee5Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
12857af9a7ee5Smrg
12858af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12859af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12860af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
12861af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12862af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12863af9a7ee5Smrgelse
12864af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865af9a7ee5Smrg/* end confdefs.h.  */
12866af9a7ee5Smrgint i;
12867af9a7ee5Smrgint
12868af9a7ee5Smrgmain ()
12869af9a7ee5Smrg{
12870af9a7ee5Smrg
12871af9a7ee5Smrg  ;
12872af9a7ee5Smrg  return 0;
12873af9a7ee5Smrg}
12874af9a7ee5Smrg_ACEOF
12875af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12876af9a7ee5Smrg  eval $cacheid=yes
12877af9a7ee5Smrgelse
12878af9a7ee5Smrg  eval $cacheid=no
12879af9a7ee5Smrgfi
12880af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12881af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
12882af9a7ee5Smrgfi
12883af9a7ee5Smrg
12884af9a7ee5Smrg
12885af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
12886af9a7ee5Smrg
12887af9a7ee5Smrg		eval supported=\$$cacheid
12888af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12889af9a7ee5Smrg$as_echo "$supported" >&6; }
12890af9a7ee5Smrg		if test "$supported" = "yes" ; then
12891af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12892af9a7ee5Smrg			found="yes"
12893af9a7ee5Smrg		fi
12894af9a7ee5Smrg	fi
12895af9a7ee5Smrg
12896af9a7ee5Smrg
12897af9a7ee5Smrg
12898af9a7ee5Smrg
12899af9a7ee5Smrg
12900af9a7ee5Smrg
12901af9a7ee5Smrg
12902af9a7ee5Smrg
12903af9a7ee5Smrg
12904af9a7ee5Smrg
12905af9a7ee5Smrg
12906af9a7ee5Smrg
12907af9a7ee5Smrg
12908af9a7ee5Smrg
12909af9a7ee5Smrg
12910af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
12911af9a7ee5Smrg
12912af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12913af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12914af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12915af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12916af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12917af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12918af9a7ee5Smrgelse
12919af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920af9a7ee5Smrg/* end confdefs.h.  */
12921af9a7ee5Smrgint i;
12922af9a7ee5Smrg_ACEOF
12923af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12924af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
12925af9a7ee5Smrgelse
12926af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
12927af9a7ee5Smrgfi
12928af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929af9a7ee5Smrgfi
12930af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12931af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12932af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12933af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12934af9a7ee5Smrgfi
12935af9a7ee5Smrg
12936af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12937af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12938af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12939af9a7ee5Smrg	fi
12940af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12941af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12942af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12943af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12944af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12945af9a7ee5Smrgelse
12946af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947af9a7ee5Smrg/* end confdefs.h.  */
12948af9a7ee5Smrgint i;
12949af9a7ee5Smrg_ACEOF
12950af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
12951af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
12952af9a7ee5Smrgelse
12953af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
12954af9a7ee5Smrgfi
12955af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956af9a7ee5Smrgfi
12957af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12958af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12959af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12960af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
12961af9a7ee5Smrgfi
12962af9a7ee5Smrg
12963af9a7ee5Smrgfound="no"
12964af9a7ee5Smrg
12965af9a7ee5Smrg	if test $found = "no" ; then
12966af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12967af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12968af9a7ee5Smrg		fi
12969af9a7ee5Smrg
12970af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12971af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12972af9a7ee5Smrg		fi
12973af9a7ee5Smrg
12974af9a7ee5Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12975af9a7ee5Smrg
12976af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12977af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12978af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12979af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
12980af9a7ee5Smrg  $as_echo_n "(cached) " >&6
12981af9a7ee5Smrgelse
12982af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983af9a7ee5Smrg/* end confdefs.h.  */
12984af9a7ee5Smrgint i;
12985af9a7ee5Smrgint
12986af9a7ee5Smrgmain ()
12987af9a7ee5Smrg{
12988af9a7ee5Smrg
12989af9a7ee5Smrg  ;
12990af9a7ee5Smrg  return 0;
12991af9a7ee5Smrg}
12992af9a7ee5Smrg_ACEOF
12993af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
12994af9a7ee5Smrg  eval $cacheid=yes
12995af9a7ee5Smrgelse
12996af9a7ee5Smrg  eval $cacheid=no
12997af9a7ee5Smrgfi
12998af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
12999af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13000af9a7ee5Smrgfi
13001af9a7ee5Smrg
13002af9a7ee5Smrg
13003af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13004af9a7ee5Smrg
13005af9a7ee5Smrg		eval supported=\$$cacheid
13006af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13007af9a7ee5Smrg$as_echo "$supported" >&6; }
13008af9a7ee5Smrg		if test "$supported" = "yes" ; then
13009af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13010af9a7ee5Smrg			found="yes"
13011af9a7ee5Smrg		fi
13012af9a7ee5Smrg	fi
13013af9a7ee5Smrg
13014af9a7ee5Smrg
13015af9a7ee5Smrg
13016af9a7ee5Smrg
13017af9a7ee5Smrg
13018af9a7ee5Smrg# This chunk adds additional warnings that could catch undesired effects.
13019af9a7ee5Smrg
13020af9a7ee5Smrg
13021af9a7ee5Smrg
13022af9a7ee5Smrg
13023af9a7ee5Smrg
13024af9a7ee5Smrg
13025af9a7ee5Smrg
13026af9a7ee5Smrg
13027af9a7ee5Smrg
13028af9a7ee5Smrg
13029af9a7ee5Smrg
13030af9a7ee5Smrg
13031af9a7ee5Smrg
13032af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
13033af9a7ee5Smrg
13034af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13035af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13036af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13037af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13038af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13039af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13040af9a7ee5Smrgelse
13041af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13042af9a7ee5Smrg/* end confdefs.h.  */
13043af9a7ee5Smrgint i;
13044af9a7ee5Smrg_ACEOF
13045af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13046af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
13047af9a7ee5Smrgelse
13048af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
13049af9a7ee5Smrgfi
13050af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051af9a7ee5Smrgfi
13052af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13053af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13054af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13055af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13056af9a7ee5Smrgfi
13057af9a7ee5Smrg
13058af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13059af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13060af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13061af9a7ee5Smrg	fi
13062af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13063af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13064af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13065af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13066af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13067af9a7ee5Smrgelse
13068af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069af9a7ee5Smrg/* end confdefs.h.  */
13070af9a7ee5Smrgint i;
13071af9a7ee5Smrg_ACEOF
13072af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13073af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
13074af9a7ee5Smrgelse
13075af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
13076af9a7ee5Smrgfi
13077af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078af9a7ee5Smrgfi
13079af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13080af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13081af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13082af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13083af9a7ee5Smrgfi
13084af9a7ee5Smrg
13085af9a7ee5Smrgfound="no"
13086af9a7ee5Smrg
13087af9a7ee5Smrg	if test $found = "no" ; then
13088af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13089af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13090af9a7ee5Smrg		fi
13091af9a7ee5Smrg
13092af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13093af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13094af9a7ee5Smrg		fi
13095af9a7ee5Smrg
13096af9a7ee5Smrg		CFLAGS="$CFLAGS -Wunused"
13097af9a7ee5Smrg
13098af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13099af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13100af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wunused
13101af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13102af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13103af9a7ee5Smrgelse
13104af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105af9a7ee5Smrg/* end confdefs.h.  */
13106af9a7ee5Smrgint i;
13107af9a7ee5Smrgint
13108af9a7ee5Smrgmain ()
13109af9a7ee5Smrg{
13110af9a7ee5Smrg
13111af9a7ee5Smrg  ;
13112af9a7ee5Smrg  return 0;
13113af9a7ee5Smrg}
13114af9a7ee5Smrg_ACEOF
13115af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
13116af9a7ee5Smrg  eval $cacheid=yes
13117af9a7ee5Smrgelse
13118af9a7ee5Smrg  eval $cacheid=no
13119af9a7ee5Smrgfi
13120af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
13121af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13122af9a7ee5Smrgfi
13123af9a7ee5Smrg
13124af9a7ee5Smrg
13125af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13126af9a7ee5Smrg
13127af9a7ee5Smrg		eval supported=\$$cacheid
13128af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13129af9a7ee5Smrg$as_echo "$supported" >&6; }
13130af9a7ee5Smrg		if test "$supported" = "yes" ; then
13131af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13132af9a7ee5Smrg			found="yes"
13133af9a7ee5Smrg		fi
13134af9a7ee5Smrg	fi
13135af9a7ee5Smrg
13136af9a7ee5Smrg
13137af9a7ee5Smrg
13138af9a7ee5Smrg
13139af9a7ee5Smrg
13140af9a7ee5Smrg
13141af9a7ee5Smrg
13142af9a7ee5Smrg
13143af9a7ee5Smrg
13144af9a7ee5Smrg
13145af9a7ee5Smrg
13146af9a7ee5Smrg
13147af9a7ee5Smrg
13148af9a7ee5Smrg
13149af9a7ee5Smrg
13150af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
13151af9a7ee5Smrg
13152af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13153af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13154af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13155af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13156af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13157af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13158af9a7ee5Smrgelse
13159af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160af9a7ee5Smrg/* end confdefs.h.  */
13161af9a7ee5Smrgint i;
13162af9a7ee5Smrg_ACEOF
13163af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13164af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
13165af9a7ee5Smrgelse
13166af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
13167af9a7ee5Smrgfi
13168af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169af9a7ee5Smrgfi
13170af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13171af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13172af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13173af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13174af9a7ee5Smrgfi
13175af9a7ee5Smrg
13176af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13177af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13178af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13179af9a7ee5Smrg	fi
13180af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13181af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13182af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13183af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13184af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13185af9a7ee5Smrgelse
13186af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187af9a7ee5Smrg/* end confdefs.h.  */
13188af9a7ee5Smrgint i;
13189af9a7ee5Smrg_ACEOF
13190af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13191af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
13192af9a7ee5Smrgelse
13193af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
13194af9a7ee5Smrgfi
13195af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196af9a7ee5Smrgfi
13197af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13198af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13199af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13200af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13201af9a7ee5Smrgfi
13202af9a7ee5Smrg
13203af9a7ee5Smrgfound="no"
13204af9a7ee5Smrg
13205af9a7ee5Smrg	if test $found = "no" ; then
13206af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13207af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13208af9a7ee5Smrg		fi
13209af9a7ee5Smrg
13210af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13211af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13212af9a7ee5Smrg		fi
13213af9a7ee5Smrg
13214af9a7ee5Smrg		CFLAGS="$CFLAGS -Wuninitialized"
13215af9a7ee5Smrg
13216af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13217af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13218af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
13219af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13220af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13221af9a7ee5Smrgelse
13222af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223af9a7ee5Smrg/* end confdefs.h.  */
13224af9a7ee5Smrgint i;
13225af9a7ee5Smrgint
13226af9a7ee5Smrgmain ()
13227af9a7ee5Smrg{
13228af9a7ee5Smrg
13229af9a7ee5Smrg  ;
13230af9a7ee5Smrg  return 0;
13231af9a7ee5Smrg}
13232af9a7ee5Smrg_ACEOF
13233af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
13234af9a7ee5Smrg  eval $cacheid=yes
13235af9a7ee5Smrgelse
13236af9a7ee5Smrg  eval $cacheid=no
13237af9a7ee5Smrgfi
13238af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
13239af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13240af9a7ee5Smrgfi
13241af9a7ee5Smrg
13242af9a7ee5Smrg
13243af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13244af9a7ee5Smrg
13245af9a7ee5Smrg		eval supported=\$$cacheid
13246af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13247af9a7ee5Smrg$as_echo "$supported" >&6; }
13248af9a7ee5Smrg		if test "$supported" = "yes" ; then
13249af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13250af9a7ee5Smrg			found="yes"
13251af9a7ee5Smrg		fi
13252af9a7ee5Smrg	fi
13253af9a7ee5Smrg
13254af9a7ee5Smrg
13255af9a7ee5Smrg
13256af9a7ee5Smrg
13257af9a7ee5Smrg
13258af9a7ee5Smrg
13259af9a7ee5Smrg
13260af9a7ee5Smrg
13261af9a7ee5Smrg
13262af9a7ee5Smrg
13263af9a7ee5Smrg
13264af9a7ee5Smrg
13265af9a7ee5Smrg
13266af9a7ee5Smrg
13267af9a7ee5Smrg
13268af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
13269af9a7ee5Smrg
13270af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13271af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13273af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13274af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13275af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13276af9a7ee5Smrgelse
13277af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278af9a7ee5Smrg/* end confdefs.h.  */
13279af9a7ee5Smrgint i;
13280af9a7ee5Smrg_ACEOF
13281af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13282af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
13283af9a7ee5Smrgelse
13284af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
13285af9a7ee5Smrgfi
13286af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13287af9a7ee5Smrgfi
13288af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13289af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13290af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13291af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13292af9a7ee5Smrgfi
13293af9a7ee5Smrg
13294af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13295af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13296af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13297af9a7ee5Smrg	fi
13298af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13299af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13300af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13301af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13302af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13303af9a7ee5Smrgelse
13304af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305af9a7ee5Smrg/* end confdefs.h.  */
13306af9a7ee5Smrgint i;
13307af9a7ee5Smrg_ACEOF
13308af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13309af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
13310af9a7ee5Smrgelse
13311af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
13312af9a7ee5Smrgfi
13313af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314af9a7ee5Smrgfi
13315af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13316af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13317af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13318af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13319af9a7ee5Smrgfi
13320af9a7ee5Smrg
13321af9a7ee5Smrgfound="no"
13322af9a7ee5Smrg
13323af9a7ee5Smrg	if test $found = "no" ; then
13324af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13325af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13326af9a7ee5Smrg		fi
13327af9a7ee5Smrg
13328af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13329af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13330af9a7ee5Smrg		fi
13331af9a7ee5Smrg
13332af9a7ee5Smrg		CFLAGS="$CFLAGS -Wshadow"
13333af9a7ee5Smrg
13334af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13335af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13336af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wshadow
13337af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13338af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13339af9a7ee5Smrgelse
13340af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341af9a7ee5Smrg/* end confdefs.h.  */
13342af9a7ee5Smrgint i;
13343af9a7ee5Smrgint
13344af9a7ee5Smrgmain ()
13345af9a7ee5Smrg{
13346af9a7ee5Smrg
13347af9a7ee5Smrg  ;
13348af9a7ee5Smrg  return 0;
13349af9a7ee5Smrg}
13350af9a7ee5Smrg_ACEOF
13351af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
13352af9a7ee5Smrg  eval $cacheid=yes
13353af9a7ee5Smrgelse
13354af9a7ee5Smrg  eval $cacheid=no
13355af9a7ee5Smrgfi
13356af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
13357af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13358af9a7ee5Smrgfi
13359af9a7ee5Smrg
13360af9a7ee5Smrg
13361af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13362af9a7ee5Smrg
13363af9a7ee5Smrg		eval supported=\$$cacheid
13364af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13365af9a7ee5Smrg$as_echo "$supported" >&6; }
13366af9a7ee5Smrg		if test "$supported" = "yes" ; then
13367af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13368af9a7ee5Smrg			found="yes"
13369af9a7ee5Smrg		fi
13370af9a7ee5Smrg	fi
13371af9a7ee5Smrg
13372af9a7ee5Smrg
13373af9a7ee5Smrg
13374af9a7ee5Smrg
13375af9a7ee5Smrg
13376af9a7ee5Smrg
13377af9a7ee5Smrg
13378af9a7ee5Smrg
13379af9a7ee5Smrg
13380af9a7ee5Smrg
13381af9a7ee5Smrg
13382af9a7ee5Smrg
13383af9a7ee5Smrg
13384af9a7ee5Smrg
13385af9a7ee5Smrg
13386af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
13387af9a7ee5Smrg
13388af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13389af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13390af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13391af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13392af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13393af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13394af9a7ee5Smrgelse
13395af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396af9a7ee5Smrg/* end confdefs.h.  */
13397af9a7ee5Smrgint i;
13398af9a7ee5Smrg_ACEOF
13399af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13400af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
13401af9a7ee5Smrgelse
13402af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
13403af9a7ee5Smrgfi
13404af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405af9a7ee5Smrgfi
13406af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13407af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13408af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13409af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13410af9a7ee5Smrgfi
13411af9a7ee5Smrg
13412af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13413af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13414af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13415af9a7ee5Smrg	fi
13416af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13417af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13418af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13419af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13420af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13421af9a7ee5Smrgelse
13422af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13423af9a7ee5Smrg/* end confdefs.h.  */
13424af9a7ee5Smrgint i;
13425af9a7ee5Smrg_ACEOF
13426af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13427af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
13428af9a7ee5Smrgelse
13429af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
13430af9a7ee5Smrgfi
13431af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432af9a7ee5Smrgfi
13433af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13434af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13435af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13436af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13437af9a7ee5Smrgfi
13438af9a7ee5Smrg
13439af9a7ee5Smrgfound="no"
13440af9a7ee5Smrg
13441af9a7ee5Smrg	if test $found = "no" ; then
13442af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13443af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13444af9a7ee5Smrg		fi
13445af9a7ee5Smrg
13446af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13447af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13448af9a7ee5Smrg		fi
13449af9a7ee5Smrg
13450af9a7ee5Smrg		CFLAGS="$CFLAGS -Wcast-qual"
13451af9a7ee5Smrg
13452af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13453af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13454af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wcast_qual
13455af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13456af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13457af9a7ee5Smrgelse
13458af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459af9a7ee5Smrg/* end confdefs.h.  */
13460af9a7ee5Smrgint i;
13461af9a7ee5Smrgint
13462af9a7ee5Smrgmain ()
13463af9a7ee5Smrg{
13464af9a7ee5Smrg
13465af9a7ee5Smrg  ;
13466af9a7ee5Smrg  return 0;
13467af9a7ee5Smrg}
13468af9a7ee5Smrg_ACEOF
13469af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
13470af9a7ee5Smrg  eval $cacheid=yes
13471af9a7ee5Smrgelse
13472af9a7ee5Smrg  eval $cacheid=no
13473af9a7ee5Smrgfi
13474af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
13475af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13476af9a7ee5Smrgfi
13477af9a7ee5Smrg
13478af9a7ee5Smrg
13479af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13480af9a7ee5Smrg
13481af9a7ee5Smrg		eval supported=\$$cacheid
13482af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13483af9a7ee5Smrg$as_echo "$supported" >&6; }
13484af9a7ee5Smrg		if test "$supported" = "yes" ; then
13485af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13486af9a7ee5Smrg			found="yes"
13487af9a7ee5Smrg		fi
13488af9a7ee5Smrg	fi
13489af9a7ee5Smrg
13490af9a7ee5Smrg
13491af9a7ee5Smrg
13492af9a7ee5Smrg
13493af9a7ee5Smrg
13494af9a7ee5Smrg
13495af9a7ee5Smrg
13496af9a7ee5Smrg
13497af9a7ee5Smrg
13498af9a7ee5Smrg
13499af9a7ee5Smrg
13500af9a7ee5Smrg
13501af9a7ee5Smrg
13502af9a7ee5Smrg
13503af9a7ee5Smrg
13504af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
13505af9a7ee5Smrg
13506af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13507af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13508af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13509af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13510af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13511af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13512af9a7ee5Smrgelse
13513af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514af9a7ee5Smrg/* end confdefs.h.  */
13515af9a7ee5Smrgint i;
13516af9a7ee5Smrg_ACEOF
13517af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13518af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
13519af9a7ee5Smrgelse
13520af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
13521af9a7ee5Smrgfi
13522af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523af9a7ee5Smrgfi
13524af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13525af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13526af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13527af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13528af9a7ee5Smrgfi
13529af9a7ee5Smrg
13530af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13531af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13532af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13533af9a7ee5Smrg	fi
13534af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13535af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13536af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13537af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13538af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13539af9a7ee5Smrgelse
13540af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541af9a7ee5Smrg/* end confdefs.h.  */
13542af9a7ee5Smrgint i;
13543af9a7ee5Smrg_ACEOF
13544af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13545af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
13546af9a7ee5Smrgelse
13547af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
13548af9a7ee5Smrgfi
13549af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550af9a7ee5Smrgfi
13551af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13552af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13553af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13554af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13555af9a7ee5Smrgfi
13556af9a7ee5Smrg
13557af9a7ee5Smrgfound="no"
13558af9a7ee5Smrg
13559af9a7ee5Smrg	if test $found = "no" ; then
13560af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13561af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13562af9a7ee5Smrg		fi
13563af9a7ee5Smrg
13564af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13565af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13566af9a7ee5Smrg		fi
13567af9a7ee5Smrg
13568af9a7ee5Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
13569af9a7ee5Smrg
13570af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13571af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13572af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13573af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13574af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13575af9a7ee5Smrgelse
13576af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577af9a7ee5Smrg/* end confdefs.h.  */
13578af9a7ee5Smrgint i;
13579af9a7ee5Smrgint
13580af9a7ee5Smrgmain ()
13581af9a7ee5Smrg{
13582af9a7ee5Smrg
13583af9a7ee5Smrg  ;
13584af9a7ee5Smrg  return 0;
13585af9a7ee5Smrg}
13586af9a7ee5Smrg_ACEOF
13587af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
13588af9a7ee5Smrg  eval $cacheid=yes
13589af9a7ee5Smrgelse
13590af9a7ee5Smrg  eval $cacheid=no
13591af9a7ee5Smrgfi
13592af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
13593af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13594af9a7ee5Smrgfi
13595af9a7ee5Smrg
13596af9a7ee5Smrg
13597af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13598af9a7ee5Smrg
13599af9a7ee5Smrg		eval supported=\$$cacheid
13600af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13601af9a7ee5Smrg$as_echo "$supported" >&6; }
13602af9a7ee5Smrg		if test "$supported" = "yes" ; then
13603af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13604af9a7ee5Smrg			found="yes"
13605af9a7ee5Smrg		fi
13606af9a7ee5Smrg	fi
13607af9a7ee5Smrg
13608af9a7ee5Smrg
13609af9a7ee5Smrg
13610af9a7ee5Smrg
13611af9a7ee5Smrg
13612af9a7ee5Smrg
13613af9a7ee5Smrg
13614af9a7ee5Smrg
13615af9a7ee5Smrg
13616af9a7ee5Smrg
13617af9a7ee5Smrg
13618af9a7ee5Smrg
13619af9a7ee5Smrg
13620af9a7ee5Smrg
13621af9a7ee5Smrg
13622af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
13623af9a7ee5Smrg
13624af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13625af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13626af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13627af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13628af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13629af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13630af9a7ee5Smrgelse
13631af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632af9a7ee5Smrg/* end confdefs.h.  */
13633af9a7ee5Smrgint i;
13634af9a7ee5Smrg_ACEOF
13635af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13636af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
13637af9a7ee5Smrgelse
13638af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
13639af9a7ee5Smrgfi
13640af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641af9a7ee5Smrgfi
13642af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13643af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13644af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13645af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13646af9a7ee5Smrgfi
13647af9a7ee5Smrg
13648af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13649af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13650af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13651af9a7ee5Smrg	fi
13652af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13653af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13654af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13655af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13656af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13657af9a7ee5Smrgelse
13658af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659af9a7ee5Smrg/* end confdefs.h.  */
13660af9a7ee5Smrgint i;
13661af9a7ee5Smrg_ACEOF
13662af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13663af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
13664af9a7ee5Smrgelse
13665af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
13666af9a7ee5Smrgfi
13667af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668af9a7ee5Smrgfi
13669af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13670af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13671af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13672af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13673af9a7ee5Smrgfi
13674af9a7ee5Smrg
13675af9a7ee5Smrgfound="no"
13676af9a7ee5Smrg
13677af9a7ee5Smrg	if test $found = "no" ; then
13678af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13679af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13680af9a7ee5Smrg		fi
13681af9a7ee5Smrg
13682af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13683af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13684af9a7ee5Smrg		fi
13685af9a7ee5Smrg
13686af9a7ee5Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13687af9a7ee5Smrg
13688af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13689af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13690af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13691af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13692af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13693af9a7ee5Smrgelse
13694af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695af9a7ee5Smrg/* end confdefs.h.  */
13696af9a7ee5Smrgint i;
13697af9a7ee5Smrgint
13698af9a7ee5Smrgmain ()
13699af9a7ee5Smrg{
13700af9a7ee5Smrg
13701af9a7ee5Smrg  ;
13702af9a7ee5Smrg  return 0;
13703af9a7ee5Smrg}
13704af9a7ee5Smrg_ACEOF
13705af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
13706af9a7ee5Smrg  eval $cacheid=yes
13707af9a7ee5Smrgelse
13708af9a7ee5Smrg  eval $cacheid=no
13709af9a7ee5Smrgfi
13710af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
13711af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13712af9a7ee5Smrgfi
13713af9a7ee5Smrg
13714af9a7ee5Smrg
13715af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13716af9a7ee5Smrg
13717af9a7ee5Smrg		eval supported=\$$cacheid
13718af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13719af9a7ee5Smrg$as_echo "$supported" >&6; }
13720af9a7ee5Smrg		if test "$supported" = "yes" ; then
13721af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13722af9a7ee5Smrg			found="yes"
13723af9a7ee5Smrg		fi
13724af9a7ee5Smrg	fi
13725af9a7ee5Smrg
13726af9a7ee5Smrg
13727af9a7ee5Smrg
13728af9a7ee5Smrg
13729af9a7ee5Smrg
13730af9a7ee5Smrg
13731af9a7ee5Smrg
13732af9a7ee5Smrg
13733af9a7ee5Smrg
13734af9a7ee5Smrg
13735af9a7ee5Smrg
13736af9a7ee5Smrg
13737af9a7ee5Smrg
13738af9a7ee5Smrg
13739af9a7ee5Smrg
13740af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
13741af9a7ee5Smrg
13742af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13743af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13744af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13745af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13746af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13747af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13748af9a7ee5Smrgelse
13749af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750af9a7ee5Smrg/* end confdefs.h.  */
13751af9a7ee5Smrgint i;
13752af9a7ee5Smrg_ACEOF
13753af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13754af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
13755af9a7ee5Smrgelse
13756af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
13757af9a7ee5Smrgfi
13758af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759af9a7ee5Smrgfi
13760af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13761af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13762af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13763af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13764af9a7ee5Smrgfi
13765af9a7ee5Smrg
13766af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13767af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13768af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13769af9a7ee5Smrg	fi
13770af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13771af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13772af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13773af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13774af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13775af9a7ee5Smrgelse
13776af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777af9a7ee5Smrg/* end confdefs.h.  */
13778af9a7ee5Smrgint i;
13779af9a7ee5Smrg_ACEOF
13780af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13781af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
13782af9a7ee5Smrgelse
13783af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
13784af9a7ee5Smrgfi
13785af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786af9a7ee5Smrgfi
13787af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13788af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13789af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13790af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13791af9a7ee5Smrgfi
13792af9a7ee5Smrg
13793af9a7ee5Smrgfound="no"
13794af9a7ee5Smrg
13795af9a7ee5Smrg	if test $found = "no" ; then
13796af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13797af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13798af9a7ee5Smrg		fi
13799af9a7ee5Smrg
13800af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13801af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13802af9a7ee5Smrg		fi
13803af9a7ee5Smrg
13804af9a7ee5Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
13805af9a7ee5Smrg
13806af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13807af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13808af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
13809af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13810af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13811af9a7ee5Smrgelse
13812af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813af9a7ee5Smrg/* end confdefs.h.  */
13814af9a7ee5Smrgint i;
13815af9a7ee5Smrgint
13816af9a7ee5Smrgmain ()
13817af9a7ee5Smrg{
13818af9a7ee5Smrg
13819af9a7ee5Smrg  ;
13820af9a7ee5Smrg  return 0;
13821af9a7ee5Smrg}
13822af9a7ee5Smrg_ACEOF
13823af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
13824af9a7ee5Smrg  eval $cacheid=yes
13825af9a7ee5Smrgelse
13826af9a7ee5Smrg  eval $cacheid=no
13827af9a7ee5Smrgfi
13828af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
13829af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13830af9a7ee5Smrgfi
13831af9a7ee5Smrg
13832af9a7ee5Smrg
13833af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13834af9a7ee5Smrg
13835af9a7ee5Smrg		eval supported=\$$cacheid
13836af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13837af9a7ee5Smrg$as_echo "$supported" >&6; }
13838af9a7ee5Smrg		if test "$supported" = "yes" ; then
13839af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13840af9a7ee5Smrg			found="yes"
13841af9a7ee5Smrg		fi
13842af9a7ee5Smrg	fi
13843af9a7ee5Smrg
13844af9a7ee5Smrg
13845af9a7ee5Smrg
13846af9a7ee5Smrg# These are currently disabled because they are noisy.  They will be enabled
13847af9a7ee5Smrg# in the future once the codebase is sufficiently modernized to silence
13848af9a7ee5Smrg# them.  For now, I don't want them to drown out the other warnings.
13849af9a7ee5Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13850af9a7ee5Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13851af9a7ee5Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13852af9a7ee5Smrg
13853af9a7ee5Smrg# Turn some warnings into errors, so we don't accidently get successful builds
13854af9a7ee5Smrg# when there are problems that should be fixed.
13855af9a7ee5Smrg
13856af9a7ee5Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
13857af9a7ee5Smrg
13858af9a7ee5Smrg
13859af9a7ee5Smrg
13860af9a7ee5Smrg
13861af9a7ee5Smrg
13862af9a7ee5Smrg
13863af9a7ee5Smrg
13864af9a7ee5Smrg
13865af9a7ee5Smrg
13866af9a7ee5Smrg
13867af9a7ee5Smrg
13868af9a7ee5Smrg
13869af9a7ee5Smrg
13870af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
13871af9a7ee5Smrg
13872af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13873af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13874af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13875af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13876af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13877af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13878af9a7ee5Smrgelse
13879af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880af9a7ee5Smrg/* end confdefs.h.  */
13881af9a7ee5Smrgint i;
13882af9a7ee5Smrg_ACEOF
13883af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13884af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
13885af9a7ee5Smrgelse
13886af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
13887af9a7ee5Smrgfi
13888af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889af9a7ee5Smrgfi
13890af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13891af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13892af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13893af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13894af9a7ee5Smrgfi
13895af9a7ee5Smrg
13896af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13897af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13898af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13899af9a7ee5Smrg	fi
13900af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13901af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13902af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13903af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13904af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13905af9a7ee5Smrgelse
13906af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907af9a7ee5Smrg/* end confdefs.h.  */
13908af9a7ee5Smrgint i;
13909af9a7ee5Smrg_ACEOF
13910af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
13911af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
13912af9a7ee5Smrgelse
13913af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
13914af9a7ee5Smrgfi
13915af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13916af9a7ee5Smrgfi
13917af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13918af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13919af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13920af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
13921af9a7ee5Smrgfi
13922af9a7ee5Smrg
13923af9a7ee5Smrgfound="no"
13924af9a7ee5Smrg
13925af9a7ee5Smrg	if test $found = "no" ; then
13926af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13927af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13928af9a7ee5Smrg		fi
13929af9a7ee5Smrg
13930af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13931af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13932af9a7ee5Smrg		fi
13933af9a7ee5Smrg
13934af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=implicit"
13935af9a7ee5Smrg
13936af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13937af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13938af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13939af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13940af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13941af9a7ee5Smrgelse
13942af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943af9a7ee5Smrg/* end confdefs.h.  */
13944af9a7ee5Smrgint i;
13945af9a7ee5Smrgint
13946af9a7ee5Smrgmain ()
13947af9a7ee5Smrg{
13948af9a7ee5Smrg
13949af9a7ee5Smrg  ;
13950af9a7ee5Smrg  return 0;
13951af9a7ee5Smrg}
13952af9a7ee5Smrg_ACEOF
13953af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
13954af9a7ee5Smrg  eval $cacheid=yes
13955af9a7ee5Smrgelse
13956af9a7ee5Smrg  eval $cacheid=no
13957af9a7ee5Smrgfi
13958af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
13959af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
13960af9a7ee5Smrgfi
13961af9a7ee5Smrg
13962af9a7ee5Smrg
13963af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
13964af9a7ee5Smrg
13965af9a7ee5Smrg		eval supported=\$$cacheid
13966af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13967af9a7ee5Smrg$as_echo "$supported" >&6; }
13968af9a7ee5Smrg		if test "$supported" = "yes" ; then
13969af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13970af9a7ee5Smrg			found="yes"
13971af9a7ee5Smrg		fi
13972af9a7ee5Smrg	fi
13973af9a7ee5Smrg
13974af9a7ee5Smrg	if test $found = "no" ; then
13975af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13976af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13977af9a7ee5Smrg		fi
13978af9a7ee5Smrg
13979af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13980af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13981af9a7ee5Smrg		fi
13982af9a7ee5Smrg
13983af9a7ee5Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13984af9a7ee5Smrg
13985af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13986af9a7ee5Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13987af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13988af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
13989af9a7ee5Smrg  $as_echo_n "(cached) " >&6
13990af9a7ee5Smrgelse
13991af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992af9a7ee5Smrg/* end confdefs.h.  */
13993af9a7ee5Smrgint i;
13994af9a7ee5Smrgint
13995af9a7ee5Smrgmain ()
13996af9a7ee5Smrg{
13997af9a7ee5Smrg
13998af9a7ee5Smrg  ;
13999af9a7ee5Smrg  return 0;
14000af9a7ee5Smrg}
14001af9a7ee5Smrg_ACEOF
14002af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14003af9a7ee5Smrg  eval $cacheid=yes
14004af9a7ee5Smrgelse
14005af9a7ee5Smrg  eval $cacheid=no
14006af9a7ee5Smrgfi
14007af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14008af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14009af9a7ee5Smrgfi
14010af9a7ee5Smrg
14011af9a7ee5Smrg
14012af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14013af9a7ee5Smrg
14014af9a7ee5Smrg		eval supported=\$$cacheid
14015af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14016af9a7ee5Smrg$as_echo "$supported" >&6; }
14017af9a7ee5Smrg		if test "$supported" = "yes" ; then
14018af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14019af9a7ee5Smrg			found="yes"
14020af9a7ee5Smrg		fi
14021af9a7ee5Smrg	fi
14022af9a7ee5Smrg
14023af9a7ee5Smrg
14024af9a7ee5Smrg
14025af9a7ee5Smrg
14026af9a7ee5Smrg
14027af9a7ee5Smrg
14028af9a7ee5Smrg
14029af9a7ee5Smrg
14030af9a7ee5Smrg
14031af9a7ee5Smrg
14032af9a7ee5Smrg
14033af9a7ee5Smrg
14034af9a7ee5Smrg
14035af9a7ee5Smrg
14036af9a7ee5Smrg
14037af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14038af9a7ee5Smrg
14039af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14040af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14041af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14042af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14043af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14044af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14045af9a7ee5Smrgelse
14046af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047af9a7ee5Smrg/* end confdefs.h.  */
14048af9a7ee5Smrgint i;
14049af9a7ee5Smrg_ACEOF
14050af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14051af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
14052af9a7ee5Smrgelse
14053af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14054af9a7ee5Smrgfi
14055af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14056af9a7ee5Smrgfi
14057af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14058af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14059af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14060af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14061af9a7ee5Smrgfi
14062af9a7ee5Smrg
14063af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14064af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14065af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14066af9a7ee5Smrg	fi
14067af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14068af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14069af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14070af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14071af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14072af9a7ee5Smrgelse
14073af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074af9a7ee5Smrg/* end confdefs.h.  */
14075af9a7ee5Smrgint i;
14076af9a7ee5Smrg_ACEOF
14077af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14078af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
14079af9a7ee5Smrgelse
14080af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
14081af9a7ee5Smrgfi
14082af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14083af9a7ee5Smrgfi
14084af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14085af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14086af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14087af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14088af9a7ee5Smrgfi
14089af9a7ee5Smrg
14090af9a7ee5Smrgfound="no"
14091af9a7ee5Smrg
14092af9a7ee5Smrg	if test $found = "no" ; then
14093af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14094af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14095af9a7ee5Smrg		fi
14096af9a7ee5Smrg
14097af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14098af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14099af9a7ee5Smrg		fi
14100af9a7ee5Smrg
14101af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
14102af9a7ee5Smrg
14103af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14104af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14105af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14106af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14107af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14108af9a7ee5Smrgelse
14109af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110af9a7ee5Smrg/* end confdefs.h.  */
14111af9a7ee5Smrgint i;
14112af9a7ee5Smrgint
14113af9a7ee5Smrgmain ()
14114af9a7ee5Smrg{
14115af9a7ee5Smrg
14116af9a7ee5Smrg  ;
14117af9a7ee5Smrg  return 0;
14118af9a7ee5Smrg}
14119af9a7ee5Smrg_ACEOF
14120af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14121af9a7ee5Smrg  eval $cacheid=yes
14122af9a7ee5Smrgelse
14123af9a7ee5Smrg  eval $cacheid=no
14124af9a7ee5Smrgfi
14125af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14126af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14127af9a7ee5Smrgfi
14128af9a7ee5Smrg
14129af9a7ee5Smrg
14130af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14131af9a7ee5Smrg
14132af9a7ee5Smrg		eval supported=\$$cacheid
14133af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14134af9a7ee5Smrg$as_echo "$supported" >&6; }
14135af9a7ee5Smrg		if test "$supported" = "yes" ; then
14136af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14137af9a7ee5Smrg			found="yes"
14138af9a7ee5Smrg		fi
14139af9a7ee5Smrg	fi
14140af9a7ee5Smrg
14141af9a7ee5Smrg
14142af9a7ee5Smrg
14143af9a7ee5Smrg
14144af9a7ee5Smrg
14145af9a7ee5Smrg
14146af9a7ee5Smrg
14147af9a7ee5Smrg
14148af9a7ee5Smrg
14149af9a7ee5Smrg
14150af9a7ee5Smrg
14151af9a7ee5Smrg
14152af9a7ee5Smrg
14153af9a7ee5Smrg
14154af9a7ee5Smrg
14155af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14156af9a7ee5Smrg
14157af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14158af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14159af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14160af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14161af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14162af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14163af9a7ee5Smrgelse
14164af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165af9a7ee5Smrg/* end confdefs.h.  */
14166af9a7ee5Smrgint i;
14167af9a7ee5Smrg_ACEOF
14168af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14169af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
14170af9a7ee5Smrgelse
14171af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14172af9a7ee5Smrgfi
14173af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174af9a7ee5Smrgfi
14175af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14176af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14177af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14178af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14179af9a7ee5Smrgfi
14180af9a7ee5Smrg
14181af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14182af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14183af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14184af9a7ee5Smrg	fi
14185af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14186af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14187af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14188af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14189af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14190af9a7ee5Smrgelse
14191af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192af9a7ee5Smrg/* end confdefs.h.  */
14193af9a7ee5Smrgint i;
14194af9a7ee5Smrg_ACEOF
14195af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14196af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
14197af9a7ee5Smrgelse
14198af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
14199af9a7ee5Smrgfi
14200af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201af9a7ee5Smrgfi
14202af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14203af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14204af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14205af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14206af9a7ee5Smrgfi
14207af9a7ee5Smrg
14208af9a7ee5Smrgfound="no"
14209af9a7ee5Smrg
14210af9a7ee5Smrg	if test $found = "no" ; then
14211af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14212af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14213af9a7ee5Smrg		fi
14214af9a7ee5Smrg
14215af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14216af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14217af9a7ee5Smrg		fi
14218af9a7ee5Smrg
14219af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=init-self"
14220af9a7ee5Smrg
14221af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14222af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14223af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14224af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14225af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14226af9a7ee5Smrgelse
14227af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228af9a7ee5Smrg/* end confdefs.h.  */
14229af9a7ee5Smrgint i;
14230af9a7ee5Smrgint
14231af9a7ee5Smrgmain ()
14232af9a7ee5Smrg{
14233af9a7ee5Smrg
14234af9a7ee5Smrg  ;
14235af9a7ee5Smrg  return 0;
14236af9a7ee5Smrg}
14237af9a7ee5Smrg_ACEOF
14238af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14239af9a7ee5Smrg  eval $cacheid=yes
14240af9a7ee5Smrgelse
14241af9a7ee5Smrg  eval $cacheid=no
14242af9a7ee5Smrgfi
14243af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14244af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14245af9a7ee5Smrgfi
14246af9a7ee5Smrg
14247af9a7ee5Smrg
14248af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14249af9a7ee5Smrg
14250af9a7ee5Smrg		eval supported=\$$cacheid
14251af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14252af9a7ee5Smrg$as_echo "$supported" >&6; }
14253af9a7ee5Smrg		if test "$supported" = "yes" ; then
14254af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14255af9a7ee5Smrg			found="yes"
14256af9a7ee5Smrg		fi
14257af9a7ee5Smrg	fi
14258af9a7ee5Smrg
14259af9a7ee5Smrg
14260af9a7ee5Smrg
14261af9a7ee5Smrg
14262af9a7ee5Smrg
14263af9a7ee5Smrg
14264af9a7ee5Smrg
14265af9a7ee5Smrg
14266af9a7ee5Smrg
14267af9a7ee5Smrg
14268af9a7ee5Smrg
14269af9a7ee5Smrg
14270af9a7ee5Smrg
14271af9a7ee5Smrg
14272af9a7ee5Smrg
14273af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14274af9a7ee5Smrg
14275af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14276af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14277af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14278af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14279af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14280af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14281af9a7ee5Smrgelse
14282af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283af9a7ee5Smrg/* end confdefs.h.  */
14284af9a7ee5Smrgint i;
14285af9a7ee5Smrg_ACEOF
14286af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14287af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
14288af9a7ee5Smrgelse
14289af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14290af9a7ee5Smrgfi
14291af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292af9a7ee5Smrgfi
14293af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14294af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14295af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14296af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14297af9a7ee5Smrgfi
14298af9a7ee5Smrg
14299af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14300af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14301af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14302af9a7ee5Smrg	fi
14303af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14304af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14305af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14306af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14307af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14308af9a7ee5Smrgelse
14309af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310af9a7ee5Smrg/* end confdefs.h.  */
14311af9a7ee5Smrgint i;
14312af9a7ee5Smrg_ACEOF
14313af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14314af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
14315af9a7ee5Smrgelse
14316af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
14317af9a7ee5Smrgfi
14318af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319af9a7ee5Smrgfi
14320af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14321af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14322af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14323af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14324af9a7ee5Smrgfi
14325af9a7ee5Smrg
14326af9a7ee5Smrgfound="no"
14327af9a7ee5Smrg
14328af9a7ee5Smrg	if test $found = "no" ; then
14329af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14330af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14331af9a7ee5Smrg		fi
14332af9a7ee5Smrg
14333af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14334af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14335af9a7ee5Smrg		fi
14336af9a7ee5Smrg
14337af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=main"
14338af9a7ee5Smrg
14339af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14340af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14341af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14342af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14343af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14344af9a7ee5Smrgelse
14345af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346af9a7ee5Smrg/* end confdefs.h.  */
14347af9a7ee5Smrgint i;
14348af9a7ee5Smrgint
14349af9a7ee5Smrgmain ()
14350af9a7ee5Smrg{
14351af9a7ee5Smrg
14352af9a7ee5Smrg  ;
14353af9a7ee5Smrg  return 0;
14354af9a7ee5Smrg}
14355af9a7ee5Smrg_ACEOF
14356af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14357af9a7ee5Smrg  eval $cacheid=yes
14358af9a7ee5Smrgelse
14359af9a7ee5Smrg  eval $cacheid=no
14360af9a7ee5Smrgfi
14361af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14362af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14363af9a7ee5Smrgfi
14364af9a7ee5Smrg
14365af9a7ee5Smrg
14366af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14367af9a7ee5Smrg
14368af9a7ee5Smrg		eval supported=\$$cacheid
14369af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14370af9a7ee5Smrg$as_echo "$supported" >&6; }
14371af9a7ee5Smrg		if test "$supported" = "yes" ; then
14372af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14373af9a7ee5Smrg			found="yes"
14374af9a7ee5Smrg		fi
14375af9a7ee5Smrg	fi
14376af9a7ee5Smrg
14377af9a7ee5Smrg
14378af9a7ee5Smrg
14379af9a7ee5Smrg
14380af9a7ee5Smrg
14381af9a7ee5Smrg
14382af9a7ee5Smrg
14383af9a7ee5Smrg
14384af9a7ee5Smrg
14385af9a7ee5Smrg
14386af9a7ee5Smrg
14387af9a7ee5Smrg
14388af9a7ee5Smrg
14389af9a7ee5Smrg
14390af9a7ee5Smrg
14391af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14392af9a7ee5Smrg
14393af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14394af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14395af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14396af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14397af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14398af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14399af9a7ee5Smrgelse
14400af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401af9a7ee5Smrg/* end confdefs.h.  */
14402af9a7ee5Smrgint i;
14403af9a7ee5Smrg_ACEOF
14404af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14405af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
14406af9a7ee5Smrgelse
14407af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14408af9a7ee5Smrgfi
14409af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410af9a7ee5Smrgfi
14411af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14412af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14413af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14414af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14415af9a7ee5Smrgfi
14416af9a7ee5Smrg
14417af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14418af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14419af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14420af9a7ee5Smrg	fi
14421af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14422af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14423af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14424af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14425af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14426af9a7ee5Smrgelse
14427af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428af9a7ee5Smrg/* end confdefs.h.  */
14429af9a7ee5Smrgint i;
14430af9a7ee5Smrg_ACEOF
14431af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14432af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
14433af9a7ee5Smrgelse
14434af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
14435af9a7ee5Smrgfi
14436af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14437af9a7ee5Smrgfi
14438af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14439af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14440af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14441af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14442af9a7ee5Smrgfi
14443af9a7ee5Smrg
14444af9a7ee5Smrgfound="no"
14445af9a7ee5Smrg
14446af9a7ee5Smrg	if test $found = "no" ; then
14447af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14448af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14449af9a7ee5Smrg		fi
14450af9a7ee5Smrg
14451af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14452af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14453af9a7ee5Smrg		fi
14454af9a7ee5Smrg
14455af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
14456af9a7ee5Smrg
14457af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14458af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14459af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14460af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14461af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14462af9a7ee5Smrgelse
14463af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464af9a7ee5Smrg/* end confdefs.h.  */
14465af9a7ee5Smrgint i;
14466af9a7ee5Smrgint
14467af9a7ee5Smrgmain ()
14468af9a7ee5Smrg{
14469af9a7ee5Smrg
14470af9a7ee5Smrg  ;
14471af9a7ee5Smrg  return 0;
14472af9a7ee5Smrg}
14473af9a7ee5Smrg_ACEOF
14474af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14475af9a7ee5Smrg  eval $cacheid=yes
14476af9a7ee5Smrgelse
14477af9a7ee5Smrg  eval $cacheid=no
14478af9a7ee5Smrgfi
14479af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14480af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14481af9a7ee5Smrgfi
14482af9a7ee5Smrg
14483af9a7ee5Smrg
14484af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14485af9a7ee5Smrg
14486af9a7ee5Smrg		eval supported=\$$cacheid
14487af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14488af9a7ee5Smrg$as_echo "$supported" >&6; }
14489af9a7ee5Smrg		if test "$supported" = "yes" ; then
14490af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14491af9a7ee5Smrg			found="yes"
14492af9a7ee5Smrg		fi
14493af9a7ee5Smrg	fi
14494af9a7ee5Smrg
14495af9a7ee5Smrg
14496af9a7ee5Smrg
14497af9a7ee5Smrg
14498af9a7ee5Smrg
14499af9a7ee5Smrg
14500af9a7ee5Smrg
14501af9a7ee5Smrg
14502af9a7ee5Smrg
14503af9a7ee5Smrg
14504af9a7ee5Smrg
14505af9a7ee5Smrg
14506af9a7ee5Smrg
14507af9a7ee5Smrg
14508af9a7ee5Smrg
14509af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14510af9a7ee5Smrg
14511af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14512af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14513af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14514af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14515af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14516af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14517af9a7ee5Smrgelse
14518af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519af9a7ee5Smrg/* end confdefs.h.  */
14520af9a7ee5Smrgint i;
14521af9a7ee5Smrg_ACEOF
14522af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14523af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
14524af9a7ee5Smrgelse
14525af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14526af9a7ee5Smrgfi
14527af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528af9a7ee5Smrgfi
14529af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14530af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14531af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14532af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14533af9a7ee5Smrgfi
14534af9a7ee5Smrg
14535af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14536af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14537af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14538af9a7ee5Smrg	fi
14539af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14540af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14541af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14542af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14543af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14544af9a7ee5Smrgelse
14545af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546af9a7ee5Smrg/* end confdefs.h.  */
14547af9a7ee5Smrgint i;
14548af9a7ee5Smrg_ACEOF
14549af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14550af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
14551af9a7ee5Smrgelse
14552af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
14553af9a7ee5Smrgfi
14554af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555af9a7ee5Smrgfi
14556af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14557af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14558af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14559af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14560af9a7ee5Smrgfi
14561af9a7ee5Smrg
14562af9a7ee5Smrgfound="no"
14563af9a7ee5Smrg
14564af9a7ee5Smrg	if test $found = "no" ; then
14565af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14566af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14567af9a7ee5Smrg		fi
14568af9a7ee5Smrg
14569af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14570af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14571af9a7ee5Smrg		fi
14572af9a7ee5Smrg
14573af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
14574af9a7ee5Smrg
14575af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14576af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14577af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14578af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14579af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14580af9a7ee5Smrgelse
14581af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582af9a7ee5Smrg/* end confdefs.h.  */
14583af9a7ee5Smrgint i;
14584af9a7ee5Smrgint
14585af9a7ee5Smrgmain ()
14586af9a7ee5Smrg{
14587af9a7ee5Smrg
14588af9a7ee5Smrg  ;
14589af9a7ee5Smrg  return 0;
14590af9a7ee5Smrg}
14591af9a7ee5Smrg_ACEOF
14592af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14593af9a7ee5Smrg  eval $cacheid=yes
14594af9a7ee5Smrgelse
14595af9a7ee5Smrg  eval $cacheid=no
14596af9a7ee5Smrgfi
14597af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14598af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14599af9a7ee5Smrgfi
14600af9a7ee5Smrg
14601af9a7ee5Smrg
14602af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14603af9a7ee5Smrg
14604af9a7ee5Smrg		eval supported=\$$cacheid
14605af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14606af9a7ee5Smrg$as_echo "$supported" >&6; }
14607af9a7ee5Smrg		if test "$supported" = "yes" ; then
14608af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14609af9a7ee5Smrg			found="yes"
14610af9a7ee5Smrg		fi
14611af9a7ee5Smrg	fi
14612af9a7ee5Smrg
14613af9a7ee5Smrg
14614af9a7ee5Smrg
14615af9a7ee5Smrg
14616af9a7ee5Smrg
14617af9a7ee5Smrg
14618af9a7ee5Smrg
14619af9a7ee5Smrg
14620af9a7ee5Smrg
14621af9a7ee5Smrg
14622af9a7ee5Smrg
14623af9a7ee5Smrg
14624af9a7ee5Smrg
14625af9a7ee5Smrg
14626af9a7ee5Smrg
14627af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14628af9a7ee5Smrg
14629af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14630af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14631af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14632af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14633af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14634af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14635af9a7ee5Smrgelse
14636af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637af9a7ee5Smrg/* end confdefs.h.  */
14638af9a7ee5Smrgint i;
14639af9a7ee5Smrg_ACEOF
14640af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14641af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
14642af9a7ee5Smrgelse
14643af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14644af9a7ee5Smrgfi
14645af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14646af9a7ee5Smrgfi
14647af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14648af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14649af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14650af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14651af9a7ee5Smrgfi
14652af9a7ee5Smrg
14653af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14654af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14655af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14656af9a7ee5Smrg	fi
14657af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14658af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14659af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14660af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14661af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14662af9a7ee5Smrgelse
14663af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664af9a7ee5Smrg/* end confdefs.h.  */
14665af9a7ee5Smrgint i;
14666af9a7ee5Smrg_ACEOF
14667af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14668af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
14669af9a7ee5Smrgelse
14670af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
14671af9a7ee5Smrgfi
14672af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673af9a7ee5Smrgfi
14674af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14675af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14676af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14677af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14678af9a7ee5Smrgfi
14679af9a7ee5Smrg
14680af9a7ee5Smrgfound="no"
14681af9a7ee5Smrg
14682af9a7ee5Smrg	if test $found = "no" ; then
14683af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14684af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14685af9a7ee5Smrg		fi
14686af9a7ee5Smrg
14687af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14688af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14689af9a7ee5Smrg		fi
14690af9a7ee5Smrg
14691af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=return-type"
14692af9a7ee5Smrg
14693af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14694af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14695af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14696af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14697af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14698af9a7ee5Smrgelse
14699af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700af9a7ee5Smrg/* end confdefs.h.  */
14701af9a7ee5Smrgint i;
14702af9a7ee5Smrgint
14703af9a7ee5Smrgmain ()
14704af9a7ee5Smrg{
14705af9a7ee5Smrg
14706af9a7ee5Smrg  ;
14707af9a7ee5Smrg  return 0;
14708af9a7ee5Smrg}
14709af9a7ee5Smrg_ACEOF
14710af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14711af9a7ee5Smrg  eval $cacheid=yes
14712af9a7ee5Smrgelse
14713af9a7ee5Smrg  eval $cacheid=no
14714af9a7ee5Smrgfi
14715af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14716af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14717af9a7ee5Smrgfi
14718af9a7ee5Smrg
14719af9a7ee5Smrg
14720af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14721af9a7ee5Smrg
14722af9a7ee5Smrg		eval supported=\$$cacheid
14723af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14724af9a7ee5Smrg$as_echo "$supported" >&6; }
14725af9a7ee5Smrg		if test "$supported" = "yes" ; then
14726af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14727af9a7ee5Smrg			found="yes"
14728af9a7ee5Smrg		fi
14729af9a7ee5Smrg	fi
14730af9a7ee5Smrg
14731af9a7ee5Smrg	if test $found = "no" ; then
14732af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14733af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14734af9a7ee5Smrg		fi
14735af9a7ee5Smrg
14736af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14737af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14738af9a7ee5Smrg		fi
14739af9a7ee5Smrg
14740af9a7ee5Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14741af9a7ee5Smrg
14742af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14743af9a7ee5Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14744af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14745af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14746af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14747af9a7ee5Smrgelse
14748af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749af9a7ee5Smrg/* end confdefs.h.  */
14750af9a7ee5Smrgint i;
14751af9a7ee5Smrgint
14752af9a7ee5Smrgmain ()
14753af9a7ee5Smrg{
14754af9a7ee5Smrg
14755af9a7ee5Smrg  ;
14756af9a7ee5Smrg  return 0;
14757af9a7ee5Smrg}
14758af9a7ee5Smrg_ACEOF
14759af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14760af9a7ee5Smrg  eval $cacheid=yes
14761af9a7ee5Smrgelse
14762af9a7ee5Smrg  eval $cacheid=no
14763af9a7ee5Smrgfi
14764af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14765af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14766af9a7ee5Smrgfi
14767af9a7ee5Smrg
14768af9a7ee5Smrg
14769af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14770af9a7ee5Smrg
14771af9a7ee5Smrg		eval supported=\$$cacheid
14772af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14773af9a7ee5Smrg$as_echo "$supported" >&6; }
14774af9a7ee5Smrg		if test "$supported" = "yes" ; then
14775af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14776af9a7ee5Smrg			found="yes"
14777af9a7ee5Smrg		fi
14778af9a7ee5Smrg	fi
14779af9a7ee5Smrg
14780af9a7ee5Smrg
14781af9a7ee5Smrg
14782af9a7ee5Smrg
14783af9a7ee5Smrg
14784af9a7ee5Smrg
14785af9a7ee5Smrg
14786af9a7ee5Smrg
14787af9a7ee5Smrg
14788af9a7ee5Smrg
14789af9a7ee5Smrg
14790af9a7ee5Smrg
14791af9a7ee5Smrg
14792af9a7ee5Smrg
14793af9a7ee5Smrg
14794af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14795af9a7ee5Smrg
14796af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14797af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14798af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14799af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14800af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14801af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14802af9a7ee5Smrgelse
14803af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804af9a7ee5Smrg/* end confdefs.h.  */
14805af9a7ee5Smrgint i;
14806af9a7ee5Smrg_ACEOF
14807af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14808af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
14809af9a7ee5Smrgelse
14810af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14811af9a7ee5Smrgfi
14812af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813af9a7ee5Smrgfi
14814af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14815af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14816af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14817af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14818af9a7ee5Smrgfi
14819af9a7ee5Smrg
14820af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14821af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14822af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14823af9a7ee5Smrg	fi
14824af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14825af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14826af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14827af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14828af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14829af9a7ee5Smrgelse
14830af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831af9a7ee5Smrg/* end confdefs.h.  */
14832af9a7ee5Smrgint i;
14833af9a7ee5Smrg_ACEOF
14834af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14835af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
14836af9a7ee5Smrgelse
14837af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
14838af9a7ee5Smrgfi
14839af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840af9a7ee5Smrgfi
14841af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14842af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14843af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14844af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14845af9a7ee5Smrgfi
14846af9a7ee5Smrg
14847af9a7ee5Smrgfound="no"
14848af9a7ee5Smrg
14849af9a7ee5Smrg	if test $found = "no" ; then
14850af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14851af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852af9a7ee5Smrg		fi
14853af9a7ee5Smrg
14854af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14855af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14856af9a7ee5Smrg		fi
14857af9a7ee5Smrg
14858af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
14859af9a7ee5Smrg
14860af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14861af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14862af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14863af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14864af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14865af9a7ee5Smrgelse
14866af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867af9a7ee5Smrg/* end confdefs.h.  */
14868af9a7ee5Smrgint i;
14869af9a7ee5Smrgint
14870af9a7ee5Smrgmain ()
14871af9a7ee5Smrg{
14872af9a7ee5Smrg
14873af9a7ee5Smrg  ;
14874af9a7ee5Smrg  return 0;
14875af9a7ee5Smrg}
14876af9a7ee5Smrg_ACEOF
14877af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14878af9a7ee5Smrg  eval $cacheid=yes
14879af9a7ee5Smrgelse
14880af9a7ee5Smrg  eval $cacheid=no
14881af9a7ee5Smrgfi
14882af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
14883af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
14884af9a7ee5Smrgfi
14885af9a7ee5Smrg
14886af9a7ee5Smrg
14887af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
14888af9a7ee5Smrg
14889af9a7ee5Smrg		eval supported=\$$cacheid
14890af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14891af9a7ee5Smrg$as_echo "$supported" >&6; }
14892af9a7ee5Smrg		if test "$supported" = "yes" ; then
14893af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14894af9a7ee5Smrg			found="yes"
14895af9a7ee5Smrg		fi
14896af9a7ee5Smrg	fi
14897af9a7ee5Smrg
14898af9a7ee5Smrg
14899af9a7ee5Smrg
14900af9a7ee5Smrg
14901af9a7ee5Smrg
14902af9a7ee5Smrg
14903af9a7ee5Smrg
14904af9a7ee5Smrg
14905af9a7ee5Smrg
14906af9a7ee5Smrg
14907af9a7ee5Smrg
14908af9a7ee5Smrg
14909af9a7ee5Smrg
14910af9a7ee5Smrg
14911af9a7ee5Smrg
14912af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
14913af9a7ee5Smrg
14914af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14915af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14916af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14917af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14918af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14919af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14920af9a7ee5Smrgelse
14921af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14922af9a7ee5Smrg/* end confdefs.h.  */
14923af9a7ee5Smrgint i;
14924af9a7ee5Smrg_ACEOF
14925af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14926af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
14927af9a7ee5Smrgelse
14928af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
14929af9a7ee5Smrgfi
14930af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931af9a7ee5Smrgfi
14932af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14933af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14934af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14935af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14936af9a7ee5Smrgfi
14937af9a7ee5Smrg
14938af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14939af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14940af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941af9a7ee5Smrg	fi
14942af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14943af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14944af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14945af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14946af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14947af9a7ee5Smrgelse
14948af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949af9a7ee5Smrg/* end confdefs.h.  */
14950af9a7ee5Smrgint i;
14951af9a7ee5Smrg_ACEOF
14952af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
14953af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
14954af9a7ee5Smrgelse
14955af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
14956af9a7ee5Smrgfi
14957af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958af9a7ee5Smrgfi
14959af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14960af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14961af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14962af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
14963af9a7ee5Smrgfi
14964af9a7ee5Smrg
14965af9a7ee5Smrgfound="no"
14966af9a7ee5Smrg
14967af9a7ee5Smrg	if test $found = "no" ; then
14968af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14969af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970af9a7ee5Smrg		fi
14971af9a7ee5Smrg
14972af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14973af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14974af9a7ee5Smrg		fi
14975af9a7ee5Smrg
14976af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
14977af9a7ee5Smrg
14978af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14979af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14980af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14981af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
14982af9a7ee5Smrg  $as_echo_n "(cached) " >&6
14983af9a7ee5Smrgelse
14984af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985af9a7ee5Smrg/* end confdefs.h.  */
14986af9a7ee5Smrgint i;
14987af9a7ee5Smrgint
14988af9a7ee5Smrgmain ()
14989af9a7ee5Smrg{
14990af9a7ee5Smrg
14991af9a7ee5Smrg  ;
14992af9a7ee5Smrg  return 0;
14993af9a7ee5Smrg}
14994af9a7ee5Smrg_ACEOF
14995af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
14996af9a7ee5Smrg  eval $cacheid=yes
14997af9a7ee5Smrgelse
14998af9a7ee5Smrg  eval $cacheid=no
14999af9a7ee5Smrgfi
15000af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15001af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15002af9a7ee5Smrgfi
15003af9a7ee5Smrg
15004af9a7ee5Smrg
15005af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15006af9a7ee5Smrg
15007af9a7ee5Smrg		eval supported=\$$cacheid
15008af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15009af9a7ee5Smrg$as_echo "$supported" >&6; }
15010af9a7ee5Smrg		if test "$supported" = "yes" ; then
15011af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15012af9a7ee5Smrg			found="yes"
15013af9a7ee5Smrg		fi
15014af9a7ee5Smrg	fi
15015af9a7ee5Smrg
15016af9a7ee5Smrg
15017af9a7ee5Smrg
15018af9a7ee5Smrg
15019af9a7ee5Smrg
15020af9a7ee5Smrg
15021af9a7ee5Smrg
15022af9a7ee5Smrg
15023af9a7ee5Smrg
15024af9a7ee5Smrg
15025af9a7ee5Smrg
15026af9a7ee5Smrg
15027af9a7ee5Smrg
15028af9a7ee5Smrg
15029af9a7ee5Smrg
15030af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15031af9a7ee5Smrg
15032af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15033af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15034af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15035af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15036af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15037af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15038af9a7ee5Smrgelse
15039af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040af9a7ee5Smrg/* end confdefs.h.  */
15041af9a7ee5Smrgint i;
15042af9a7ee5Smrg_ACEOF
15043af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15044af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
15045af9a7ee5Smrgelse
15046af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
15047af9a7ee5Smrgfi
15048af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049af9a7ee5Smrgfi
15050af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15051af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15052af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15053af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15054af9a7ee5Smrgfi
15055af9a7ee5Smrg
15056af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15057af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15058af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15059af9a7ee5Smrg	fi
15060af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15061af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15062af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15063af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15064af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15065af9a7ee5Smrgelse
15066af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067af9a7ee5Smrg/* end confdefs.h.  */
15068af9a7ee5Smrgint i;
15069af9a7ee5Smrg_ACEOF
15070af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15071af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
15072af9a7ee5Smrgelse
15073af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
15074af9a7ee5Smrgfi
15075af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076af9a7ee5Smrgfi
15077af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15078af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15079af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15080af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15081af9a7ee5Smrgfi
15082af9a7ee5Smrg
15083af9a7ee5Smrgfound="no"
15084af9a7ee5Smrg
15085af9a7ee5Smrg	if test $found = "no" ; then
15086af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15087af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088af9a7ee5Smrg		fi
15089af9a7ee5Smrg
15090af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15091af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15092af9a7ee5Smrg		fi
15093af9a7ee5Smrg
15094af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
15095af9a7ee5Smrg
15096af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15097af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15098af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15099af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15100af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15101af9a7ee5Smrgelse
15102af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103af9a7ee5Smrg/* end confdefs.h.  */
15104af9a7ee5Smrgint i;
15105af9a7ee5Smrgint
15106af9a7ee5Smrgmain ()
15107af9a7ee5Smrg{
15108af9a7ee5Smrg
15109af9a7ee5Smrg  ;
15110af9a7ee5Smrg  return 0;
15111af9a7ee5Smrg}
15112af9a7ee5Smrg_ACEOF
15113af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15114af9a7ee5Smrg  eval $cacheid=yes
15115af9a7ee5Smrgelse
15116af9a7ee5Smrg  eval $cacheid=no
15117af9a7ee5Smrgfi
15118af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15119af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15120af9a7ee5Smrgfi
15121af9a7ee5Smrg
15122af9a7ee5Smrg
15123af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15124af9a7ee5Smrg
15125af9a7ee5Smrg		eval supported=\$$cacheid
15126af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15127af9a7ee5Smrg$as_echo "$supported" >&6; }
15128af9a7ee5Smrg		if test "$supported" = "yes" ; then
15129af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15130af9a7ee5Smrg			found="yes"
15131af9a7ee5Smrg		fi
15132af9a7ee5Smrg	fi
15133af9a7ee5Smrg
15134af9a7ee5Smrg
15135af9a7ee5Smrg
15136af9a7ee5Smrg
15137af9a7ee5Smrg
15138af9a7ee5Smrg
15139af9a7ee5Smrg
15140af9a7ee5Smrg
15141af9a7ee5Smrg
15142af9a7ee5Smrg
15143af9a7ee5Smrg
15144af9a7ee5Smrg
15145af9a7ee5Smrg
15146af9a7ee5Smrg
15147af9a7ee5Smrg
15148af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15149af9a7ee5Smrg
15150af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15151af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15152af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15153af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15154af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15155af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15156af9a7ee5Smrgelse
15157af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158af9a7ee5Smrg/* end confdefs.h.  */
15159af9a7ee5Smrgint i;
15160af9a7ee5Smrg_ACEOF
15161af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15162af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
15163af9a7ee5Smrgelse
15164af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
15165af9a7ee5Smrgfi
15166af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167af9a7ee5Smrgfi
15168af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15169af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15170af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15171af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15172af9a7ee5Smrgfi
15173af9a7ee5Smrg
15174af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15175af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15176af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177af9a7ee5Smrg	fi
15178af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15179af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15180af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15181af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15182af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15183af9a7ee5Smrgelse
15184af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185af9a7ee5Smrg/* end confdefs.h.  */
15186af9a7ee5Smrgint i;
15187af9a7ee5Smrg_ACEOF
15188af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15189af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
15190af9a7ee5Smrgelse
15191af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
15192af9a7ee5Smrgfi
15193af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15194af9a7ee5Smrgfi
15195af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15196af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15197af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15198af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15199af9a7ee5Smrgfi
15200af9a7ee5Smrg
15201af9a7ee5Smrgfound="no"
15202af9a7ee5Smrg
15203af9a7ee5Smrg	if test $found = "no" ; then
15204af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15205af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206af9a7ee5Smrg		fi
15207af9a7ee5Smrg
15208af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15209af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15210af9a7ee5Smrg		fi
15211af9a7ee5Smrg
15212af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=address"
15213af9a7ee5Smrg
15214af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15215af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15216af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15217af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15218af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15219af9a7ee5Smrgelse
15220af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221af9a7ee5Smrg/* end confdefs.h.  */
15222af9a7ee5Smrgint i;
15223af9a7ee5Smrgint
15224af9a7ee5Smrgmain ()
15225af9a7ee5Smrg{
15226af9a7ee5Smrg
15227af9a7ee5Smrg  ;
15228af9a7ee5Smrg  return 0;
15229af9a7ee5Smrg}
15230af9a7ee5Smrg_ACEOF
15231af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15232af9a7ee5Smrg  eval $cacheid=yes
15233af9a7ee5Smrgelse
15234af9a7ee5Smrg  eval $cacheid=no
15235af9a7ee5Smrgfi
15236af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15237af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15238af9a7ee5Smrgfi
15239af9a7ee5Smrg
15240af9a7ee5Smrg
15241af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15242af9a7ee5Smrg
15243af9a7ee5Smrg		eval supported=\$$cacheid
15244af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15245af9a7ee5Smrg$as_echo "$supported" >&6; }
15246af9a7ee5Smrg		if test "$supported" = "yes" ; then
15247af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15248af9a7ee5Smrg			found="yes"
15249af9a7ee5Smrg		fi
15250af9a7ee5Smrg	fi
15251af9a7ee5Smrg
15252af9a7ee5Smrg
15253af9a7ee5Smrg
15254af9a7ee5Smrg
15255af9a7ee5Smrg
15256af9a7ee5Smrg
15257af9a7ee5Smrg
15258af9a7ee5Smrg
15259af9a7ee5Smrg
15260af9a7ee5Smrg
15261af9a7ee5Smrg
15262af9a7ee5Smrg
15263af9a7ee5Smrg
15264af9a7ee5Smrg
15265af9a7ee5Smrg
15266af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15267af9a7ee5Smrg
15268af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15269af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15270af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15271af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15272af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15273af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15274af9a7ee5Smrgelse
15275af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276af9a7ee5Smrg/* end confdefs.h.  */
15277af9a7ee5Smrgint i;
15278af9a7ee5Smrg_ACEOF
15279af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15280af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
15281af9a7ee5Smrgelse
15282af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
15283af9a7ee5Smrgfi
15284af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285af9a7ee5Smrgfi
15286af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15287af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15288af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15289af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15290af9a7ee5Smrgfi
15291af9a7ee5Smrg
15292af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15293af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15294af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15295af9a7ee5Smrg	fi
15296af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15297af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15298af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15299af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15300af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15301af9a7ee5Smrgelse
15302af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303af9a7ee5Smrg/* end confdefs.h.  */
15304af9a7ee5Smrgint i;
15305af9a7ee5Smrg_ACEOF
15306af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15307af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
15308af9a7ee5Smrgelse
15309af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
15310af9a7ee5Smrgfi
15311af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312af9a7ee5Smrgfi
15313af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15314af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15315af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15316af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15317af9a7ee5Smrgfi
15318af9a7ee5Smrg
15319af9a7ee5Smrgfound="no"
15320af9a7ee5Smrg
15321af9a7ee5Smrg	if test $found = "no" ; then
15322af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15323af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15324af9a7ee5Smrg		fi
15325af9a7ee5Smrg
15326af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15327af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15328af9a7ee5Smrg		fi
15329af9a7ee5Smrg
15330af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15331af9a7ee5Smrg
15332af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15333af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15334af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15335af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15336af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15337af9a7ee5Smrgelse
15338af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339af9a7ee5Smrg/* end confdefs.h.  */
15340af9a7ee5Smrgint i;
15341af9a7ee5Smrgint
15342af9a7ee5Smrgmain ()
15343af9a7ee5Smrg{
15344af9a7ee5Smrg
15345af9a7ee5Smrg  ;
15346af9a7ee5Smrg  return 0;
15347af9a7ee5Smrg}
15348af9a7ee5Smrg_ACEOF
15349af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15350af9a7ee5Smrg  eval $cacheid=yes
15351af9a7ee5Smrgelse
15352af9a7ee5Smrg  eval $cacheid=no
15353af9a7ee5Smrgfi
15354af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15355af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15356af9a7ee5Smrgfi
15357af9a7ee5Smrg
15358af9a7ee5Smrg
15359af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15360af9a7ee5Smrg
15361af9a7ee5Smrg		eval supported=\$$cacheid
15362af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15363af9a7ee5Smrg$as_echo "$supported" >&6; }
15364af9a7ee5Smrg		if test "$supported" = "yes" ; then
15365af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15366af9a7ee5Smrg			found="yes"
15367af9a7ee5Smrg		fi
15368af9a7ee5Smrg	fi
15369af9a7ee5Smrg
15370af9a7ee5Smrg	if test $found = "no" ; then
15371af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15372af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15373af9a7ee5Smrg		fi
15374af9a7ee5Smrg
15375af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15376af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15377af9a7ee5Smrg		fi
15378af9a7ee5Smrg
15379af9a7ee5Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15380af9a7ee5Smrg
15381af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15382af9a7ee5Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15383af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15384af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15385af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15386af9a7ee5Smrgelse
15387af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388af9a7ee5Smrg/* end confdefs.h.  */
15389af9a7ee5Smrgint i;
15390af9a7ee5Smrgint
15391af9a7ee5Smrgmain ()
15392af9a7ee5Smrg{
15393af9a7ee5Smrg
15394af9a7ee5Smrg  ;
15395af9a7ee5Smrg  return 0;
15396af9a7ee5Smrg}
15397af9a7ee5Smrg_ACEOF
15398af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15399af9a7ee5Smrg  eval $cacheid=yes
15400af9a7ee5Smrgelse
15401af9a7ee5Smrg  eval $cacheid=no
15402af9a7ee5Smrgfi
15403af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15404af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15405af9a7ee5Smrgfi
15406af9a7ee5Smrg
15407af9a7ee5Smrg
15408af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15409af9a7ee5Smrg
15410af9a7ee5Smrg		eval supported=\$$cacheid
15411af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15412af9a7ee5Smrg$as_echo "$supported" >&6; }
15413af9a7ee5Smrg		if test "$supported" = "yes" ; then
15414af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15415af9a7ee5Smrg			found="yes"
15416af9a7ee5Smrg		fi
15417af9a7ee5Smrg	fi
15418af9a7ee5Smrg
15419af9a7ee5Smrg
15420af9a7ee5Smrg
15421af9a7ee5Smrg
15422af9a7ee5Smrg
15423af9a7ee5Smrg
15424af9a7ee5Smrg
15425af9a7ee5Smrg
15426af9a7ee5Smrg
15427af9a7ee5Smrg
15428af9a7ee5Smrg
15429af9a7ee5Smrg
15430af9a7ee5Smrg
15431af9a7ee5Smrg
15432af9a7ee5Smrg
15433af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15434af9a7ee5Smrg
15435af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15436af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15437af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15438af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15439af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15440af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15441af9a7ee5Smrgelse
15442af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443af9a7ee5Smrg/* end confdefs.h.  */
15444af9a7ee5Smrgint i;
15445af9a7ee5Smrg_ACEOF
15446af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15447af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
15448af9a7ee5Smrgelse
15449af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
15450af9a7ee5Smrgfi
15451af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452af9a7ee5Smrgfi
15453af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15454af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15455af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15456af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15457af9a7ee5Smrgfi
15458af9a7ee5Smrg
15459af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15460af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15461af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15462af9a7ee5Smrg	fi
15463af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15464af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15465af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15466af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15467af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15468af9a7ee5Smrgelse
15469af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470af9a7ee5Smrg/* end confdefs.h.  */
15471af9a7ee5Smrgint i;
15472af9a7ee5Smrg_ACEOF
15473af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15474af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
15475af9a7ee5Smrgelse
15476af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
15477af9a7ee5Smrgfi
15478af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15479af9a7ee5Smrgfi
15480af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15481af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15482af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15483af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15484af9a7ee5Smrgfi
15485af9a7ee5Smrg
15486af9a7ee5Smrgfound="no"
15487af9a7ee5Smrg
15488af9a7ee5Smrg	if test $found = "no" ; then
15489af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15490af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15491af9a7ee5Smrg		fi
15492af9a7ee5Smrg
15493af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15494af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15495af9a7ee5Smrg		fi
15496af9a7ee5Smrg
15497af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15498af9a7ee5Smrg
15499af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15500af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15501af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15502af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15503af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15504af9a7ee5Smrgelse
15505af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506af9a7ee5Smrg/* end confdefs.h.  */
15507af9a7ee5Smrgint i;
15508af9a7ee5Smrgint
15509af9a7ee5Smrgmain ()
15510af9a7ee5Smrg{
15511af9a7ee5Smrg
15512af9a7ee5Smrg  ;
15513af9a7ee5Smrg  return 0;
15514af9a7ee5Smrg}
15515af9a7ee5Smrg_ACEOF
15516af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15517af9a7ee5Smrg  eval $cacheid=yes
15518af9a7ee5Smrgelse
15519af9a7ee5Smrg  eval $cacheid=no
15520af9a7ee5Smrgfi
15521af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15522af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15523af9a7ee5Smrgfi
15524af9a7ee5Smrg
15525af9a7ee5Smrg
15526af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15527af9a7ee5Smrg
15528af9a7ee5Smrg		eval supported=\$$cacheid
15529af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15530af9a7ee5Smrg$as_echo "$supported" >&6; }
15531af9a7ee5Smrg		if test "$supported" = "yes" ; then
15532af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15533af9a7ee5Smrg			found="yes"
15534af9a7ee5Smrg		fi
15535af9a7ee5Smrg	fi
15536af9a7ee5Smrg
15537af9a7ee5Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15538af9a7ee5Smrgelse
15539af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
15540af9a7ee5Smrg$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
15541af9a7ee5Smrg
15542af9a7ee5Smrg
15543af9a7ee5Smrg
15544af9a7ee5Smrg
15545af9a7ee5Smrg
15546af9a7ee5Smrg
15547af9a7ee5Smrg
15548af9a7ee5Smrg
15549af9a7ee5Smrg
15550af9a7ee5Smrg
15551af9a7ee5Smrg
15552af9a7ee5Smrg
15553af9a7ee5Smrg
15554af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15555af9a7ee5Smrg
15556af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15557af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15558af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15559af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15560af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15561af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15562af9a7ee5Smrgelse
15563af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15564af9a7ee5Smrg/* end confdefs.h.  */
15565af9a7ee5Smrgint i;
15566af9a7ee5Smrg_ACEOF
15567af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15568af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
15569af9a7ee5Smrgelse
15570af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
15571af9a7ee5Smrgfi
15572af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573af9a7ee5Smrgfi
15574af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15575af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15576af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15577af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15578af9a7ee5Smrgfi
15579af9a7ee5Smrg
15580af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15581af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15582af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15583af9a7ee5Smrg	fi
15584af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15585af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15586af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15587af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15588af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15589af9a7ee5Smrgelse
15590af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591af9a7ee5Smrg/* end confdefs.h.  */
15592af9a7ee5Smrgint i;
15593af9a7ee5Smrg_ACEOF
15594af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15595af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
15596af9a7ee5Smrgelse
15597af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
15598af9a7ee5Smrgfi
15599af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600af9a7ee5Smrgfi
15601af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15602af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15603af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15604af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15605af9a7ee5Smrgfi
15606af9a7ee5Smrg
15607af9a7ee5Smrgfound="no"
15608af9a7ee5Smrg
15609af9a7ee5Smrg	if test $found = "no" ; then
15610af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15611af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15612af9a7ee5Smrg		fi
15613af9a7ee5Smrg
15614af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15615af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15616af9a7ee5Smrg		fi
15617af9a7ee5Smrg
15618af9a7ee5Smrg		CFLAGS="$CFLAGS -Wimplicit"
15619af9a7ee5Smrg
15620af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15621af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15622af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
15623af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15624af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15625af9a7ee5Smrgelse
15626af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627af9a7ee5Smrg/* end confdefs.h.  */
15628af9a7ee5Smrgint i;
15629af9a7ee5Smrgint
15630af9a7ee5Smrgmain ()
15631af9a7ee5Smrg{
15632af9a7ee5Smrg
15633af9a7ee5Smrg  ;
15634af9a7ee5Smrg  return 0;
15635af9a7ee5Smrg}
15636af9a7ee5Smrg_ACEOF
15637af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15638af9a7ee5Smrg  eval $cacheid=yes
15639af9a7ee5Smrgelse
15640af9a7ee5Smrg  eval $cacheid=no
15641af9a7ee5Smrgfi
15642af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15643af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15644af9a7ee5Smrgfi
15645af9a7ee5Smrg
15646af9a7ee5Smrg
15647af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15648af9a7ee5Smrg
15649af9a7ee5Smrg		eval supported=\$$cacheid
15650af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15651af9a7ee5Smrg$as_echo "$supported" >&6; }
15652af9a7ee5Smrg		if test "$supported" = "yes" ; then
15653af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15654af9a7ee5Smrg			found="yes"
15655af9a7ee5Smrg		fi
15656af9a7ee5Smrg	fi
15657af9a7ee5Smrg
15658af9a7ee5Smrg
15659af9a7ee5Smrg
15660af9a7ee5Smrg
15661af9a7ee5Smrg
15662af9a7ee5Smrg
15663af9a7ee5Smrg
15664af9a7ee5Smrg
15665af9a7ee5Smrg
15666af9a7ee5Smrg
15667af9a7ee5Smrg
15668af9a7ee5Smrg
15669af9a7ee5Smrg
15670af9a7ee5Smrg
15671af9a7ee5Smrg
15672af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15673af9a7ee5Smrg
15674af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15675af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15676af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15677af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15678af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15679af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15680af9a7ee5Smrgelse
15681af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682af9a7ee5Smrg/* end confdefs.h.  */
15683af9a7ee5Smrgint i;
15684af9a7ee5Smrg_ACEOF
15685af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15686af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
15687af9a7ee5Smrgelse
15688af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
15689af9a7ee5Smrgfi
15690af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15691af9a7ee5Smrgfi
15692af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15693af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15694af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15695af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15696af9a7ee5Smrgfi
15697af9a7ee5Smrg
15698af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15699af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15700af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15701af9a7ee5Smrg	fi
15702af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15703af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15704af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15705af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15706af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15707af9a7ee5Smrgelse
15708af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709af9a7ee5Smrg/* end confdefs.h.  */
15710af9a7ee5Smrgint i;
15711af9a7ee5Smrg_ACEOF
15712af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15713af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
15714af9a7ee5Smrgelse
15715af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
15716af9a7ee5Smrgfi
15717af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718af9a7ee5Smrgfi
15719af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15720af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15721af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15722af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15723af9a7ee5Smrgfi
15724af9a7ee5Smrg
15725af9a7ee5Smrgfound="no"
15726af9a7ee5Smrg
15727af9a7ee5Smrg	if test $found = "no" ; then
15728af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15729af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15730af9a7ee5Smrg		fi
15731af9a7ee5Smrg
15732af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15733af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15734af9a7ee5Smrg		fi
15735af9a7ee5Smrg
15736af9a7ee5Smrg		CFLAGS="$CFLAGS -Wnonnull"
15737af9a7ee5Smrg
15738af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15739af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15740af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
15741af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15742af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15743af9a7ee5Smrgelse
15744af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745af9a7ee5Smrg/* end confdefs.h.  */
15746af9a7ee5Smrgint i;
15747af9a7ee5Smrgint
15748af9a7ee5Smrgmain ()
15749af9a7ee5Smrg{
15750af9a7ee5Smrg
15751af9a7ee5Smrg  ;
15752af9a7ee5Smrg  return 0;
15753af9a7ee5Smrg}
15754af9a7ee5Smrg_ACEOF
15755af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15756af9a7ee5Smrg  eval $cacheid=yes
15757af9a7ee5Smrgelse
15758af9a7ee5Smrg  eval $cacheid=no
15759af9a7ee5Smrgfi
15760af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15761af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15762af9a7ee5Smrgfi
15763af9a7ee5Smrg
15764af9a7ee5Smrg
15765af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15766af9a7ee5Smrg
15767af9a7ee5Smrg		eval supported=\$$cacheid
15768af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15769af9a7ee5Smrg$as_echo "$supported" >&6; }
15770af9a7ee5Smrg		if test "$supported" = "yes" ; then
15771af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15772af9a7ee5Smrg			found="yes"
15773af9a7ee5Smrg		fi
15774af9a7ee5Smrg	fi
15775af9a7ee5Smrg
15776af9a7ee5Smrg
15777af9a7ee5Smrg
15778af9a7ee5Smrg
15779af9a7ee5Smrg
15780af9a7ee5Smrg
15781af9a7ee5Smrg
15782af9a7ee5Smrg
15783af9a7ee5Smrg
15784af9a7ee5Smrg
15785af9a7ee5Smrg
15786af9a7ee5Smrg
15787af9a7ee5Smrg
15788af9a7ee5Smrg
15789af9a7ee5Smrg
15790af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15791af9a7ee5Smrg
15792af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15793af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15794af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15795af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15796af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15797af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15798af9a7ee5Smrgelse
15799af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800af9a7ee5Smrg/* end confdefs.h.  */
15801af9a7ee5Smrgint i;
15802af9a7ee5Smrg_ACEOF
15803af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15804af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
15805af9a7ee5Smrgelse
15806af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
15807af9a7ee5Smrgfi
15808af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809af9a7ee5Smrgfi
15810af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15811af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15812af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15813af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15814af9a7ee5Smrgfi
15815af9a7ee5Smrg
15816af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15817af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15818af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15819af9a7ee5Smrg	fi
15820af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15821af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15822af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15823af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15824af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15825af9a7ee5Smrgelse
15826af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827af9a7ee5Smrg/* end confdefs.h.  */
15828af9a7ee5Smrgint i;
15829af9a7ee5Smrg_ACEOF
15830af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15831af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
15832af9a7ee5Smrgelse
15833af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
15834af9a7ee5Smrgfi
15835af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836af9a7ee5Smrgfi
15837af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15838af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15839af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15840af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15841af9a7ee5Smrgfi
15842af9a7ee5Smrg
15843af9a7ee5Smrgfound="no"
15844af9a7ee5Smrg
15845af9a7ee5Smrg	if test $found = "no" ; then
15846af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15847af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15848af9a7ee5Smrg		fi
15849af9a7ee5Smrg
15850af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15851af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15852af9a7ee5Smrg		fi
15853af9a7ee5Smrg
15854af9a7ee5Smrg		CFLAGS="$CFLAGS -Winit-self"
15855af9a7ee5Smrg
15856af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15857af9a7ee5Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15858af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Winit_self
15859af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15860af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15861af9a7ee5Smrgelse
15862af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863af9a7ee5Smrg/* end confdefs.h.  */
15864af9a7ee5Smrgint i;
15865af9a7ee5Smrgint
15866af9a7ee5Smrgmain ()
15867af9a7ee5Smrg{
15868af9a7ee5Smrg
15869af9a7ee5Smrg  ;
15870af9a7ee5Smrg  return 0;
15871af9a7ee5Smrg}
15872af9a7ee5Smrg_ACEOF
15873af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15874af9a7ee5Smrg  eval $cacheid=yes
15875af9a7ee5Smrgelse
15876af9a7ee5Smrg  eval $cacheid=no
15877af9a7ee5Smrgfi
15878af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15879af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15880af9a7ee5Smrgfi
15881af9a7ee5Smrg
15882af9a7ee5Smrg
15883af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
15884af9a7ee5Smrg
15885af9a7ee5Smrg		eval supported=\$$cacheid
15886af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15887af9a7ee5Smrg$as_echo "$supported" >&6; }
15888af9a7ee5Smrg		if test "$supported" = "yes" ; then
15889af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15890af9a7ee5Smrg			found="yes"
15891af9a7ee5Smrg		fi
15892af9a7ee5Smrg	fi
15893af9a7ee5Smrg
15894af9a7ee5Smrg
15895af9a7ee5Smrg
15896af9a7ee5Smrg
15897af9a7ee5Smrg
15898af9a7ee5Smrg
15899af9a7ee5Smrg
15900af9a7ee5Smrg
15901af9a7ee5Smrg
15902af9a7ee5Smrg
15903af9a7ee5Smrg
15904af9a7ee5Smrg
15905af9a7ee5Smrg
15906af9a7ee5Smrg
15907af9a7ee5Smrg
15908af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
15909af9a7ee5Smrg
15910af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15911af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15912af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15913af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15914af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15915af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15916af9a7ee5Smrgelse
15917af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918af9a7ee5Smrg/* end confdefs.h.  */
15919af9a7ee5Smrgint i;
15920af9a7ee5Smrg_ACEOF
15921af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15922af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
15923af9a7ee5Smrgelse
15924af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
15925af9a7ee5Smrgfi
15926af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15927af9a7ee5Smrgfi
15928af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15929af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15930af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15931af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15932af9a7ee5Smrgfi
15933af9a7ee5Smrg
15934af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15935af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15936af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15937af9a7ee5Smrg	fi
15938af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15939af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15940af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15941af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15942af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15943af9a7ee5Smrgelse
15944af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945af9a7ee5Smrg/* end confdefs.h.  */
15946af9a7ee5Smrgint i;
15947af9a7ee5Smrg_ACEOF
15948af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
15949af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
15950af9a7ee5Smrgelse
15951af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
15952af9a7ee5Smrgfi
15953af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954af9a7ee5Smrgfi
15955af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15956af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15957af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15958af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
15959af9a7ee5Smrgfi
15960af9a7ee5Smrg
15961af9a7ee5Smrgfound="no"
15962af9a7ee5Smrg
15963af9a7ee5Smrg	if test $found = "no" ; then
15964af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15965af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15966af9a7ee5Smrg		fi
15967af9a7ee5Smrg
15968af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15969af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15970af9a7ee5Smrg		fi
15971af9a7ee5Smrg
15972af9a7ee5Smrg		CFLAGS="$CFLAGS -Wmain"
15973af9a7ee5Smrg
15974af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15975af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15976af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wmain
15977af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
15978af9a7ee5Smrg  $as_echo_n "(cached) " >&6
15979af9a7ee5Smrgelse
15980af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981af9a7ee5Smrg/* end confdefs.h.  */
15982af9a7ee5Smrgint i;
15983af9a7ee5Smrgint
15984af9a7ee5Smrgmain ()
15985af9a7ee5Smrg{
15986af9a7ee5Smrg
15987af9a7ee5Smrg  ;
15988af9a7ee5Smrg  return 0;
15989af9a7ee5Smrg}
15990af9a7ee5Smrg_ACEOF
15991af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
15992af9a7ee5Smrg  eval $cacheid=yes
15993af9a7ee5Smrgelse
15994af9a7ee5Smrg  eval $cacheid=no
15995af9a7ee5Smrgfi
15996af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
15997af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
15998af9a7ee5Smrgfi
15999af9a7ee5Smrg
16000af9a7ee5Smrg
16001af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16002af9a7ee5Smrg
16003af9a7ee5Smrg		eval supported=\$$cacheid
16004af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16005af9a7ee5Smrg$as_echo "$supported" >&6; }
16006af9a7ee5Smrg		if test "$supported" = "yes" ; then
16007af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16008af9a7ee5Smrg			found="yes"
16009af9a7ee5Smrg		fi
16010af9a7ee5Smrg	fi
16011af9a7ee5Smrg
16012af9a7ee5Smrg
16013af9a7ee5Smrg
16014af9a7ee5Smrg
16015af9a7ee5Smrg
16016af9a7ee5Smrg
16017af9a7ee5Smrg
16018af9a7ee5Smrg
16019af9a7ee5Smrg
16020af9a7ee5Smrg
16021af9a7ee5Smrg
16022af9a7ee5Smrg
16023af9a7ee5Smrg
16024af9a7ee5Smrg
16025af9a7ee5Smrg
16026af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16027af9a7ee5Smrg
16028af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16029af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16030af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16031af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16032af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16033af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16034af9a7ee5Smrgelse
16035af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036af9a7ee5Smrg/* end confdefs.h.  */
16037af9a7ee5Smrgint i;
16038af9a7ee5Smrg_ACEOF
16039af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16040af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16041af9a7ee5Smrgelse
16042af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16043af9a7ee5Smrgfi
16044af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16045af9a7ee5Smrgfi
16046af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16047af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16048af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16049af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16050af9a7ee5Smrgfi
16051af9a7ee5Smrg
16052af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16053af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16054af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16055af9a7ee5Smrg	fi
16056af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16057af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16058af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16059af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16060af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16061af9a7ee5Smrgelse
16062af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063af9a7ee5Smrg/* end confdefs.h.  */
16064af9a7ee5Smrgint i;
16065af9a7ee5Smrg_ACEOF
16066af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16067af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16068af9a7ee5Smrgelse
16069af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16070af9a7ee5Smrgfi
16071af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072af9a7ee5Smrgfi
16073af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16074af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16075af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16076af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16077af9a7ee5Smrgfi
16078af9a7ee5Smrg
16079af9a7ee5Smrgfound="no"
16080af9a7ee5Smrg
16081af9a7ee5Smrg	if test $found = "no" ; then
16082af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16083af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16084af9a7ee5Smrg		fi
16085af9a7ee5Smrg
16086af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16087af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16088af9a7ee5Smrg		fi
16089af9a7ee5Smrg
16090af9a7ee5Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
16091af9a7ee5Smrg
16092af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16093af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16094af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
16095af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
16096af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16097af9a7ee5Smrgelse
16098af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099af9a7ee5Smrg/* end confdefs.h.  */
16100af9a7ee5Smrgint i;
16101af9a7ee5Smrgint
16102af9a7ee5Smrgmain ()
16103af9a7ee5Smrg{
16104af9a7ee5Smrg
16105af9a7ee5Smrg  ;
16106af9a7ee5Smrg  return 0;
16107af9a7ee5Smrg}
16108af9a7ee5Smrg_ACEOF
16109af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
16110af9a7ee5Smrg  eval $cacheid=yes
16111af9a7ee5Smrgelse
16112af9a7ee5Smrg  eval $cacheid=no
16113af9a7ee5Smrgfi
16114af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
16115af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
16116af9a7ee5Smrgfi
16117af9a7ee5Smrg
16118af9a7ee5Smrg
16119af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16120af9a7ee5Smrg
16121af9a7ee5Smrg		eval supported=\$$cacheid
16122af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16123af9a7ee5Smrg$as_echo "$supported" >&6; }
16124af9a7ee5Smrg		if test "$supported" = "yes" ; then
16125af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16126af9a7ee5Smrg			found="yes"
16127af9a7ee5Smrg		fi
16128af9a7ee5Smrg	fi
16129af9a7ee5Smrg
16130af9a7ee5Smrg
16131af9a7ee5Smrg
16132af9a7ee5Smrg
16133af9a7ee5Smrg
16134af9a7ee5Smrg
16135af9a7ee5Smrg
16136af9a7ee5Smrg
16137af9a7ee5Smrg
16138af9a7ee5Smrg
16139af9a7ee5Smrg
16140af9a7ee5Smrg
16141af9a7ee5Smrg
16142af9a7ee5Smrg
16143af9a7ee5Smrg
16144af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16145af9a7ee5Smrg
16146af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16147af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16148af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16149af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16150af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16151af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16152af9a7ee5Smrgelse
16153af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154af9a7ee5Smrg/* end confdefs.h.  */
16155af9a7ee5Smrgint i;
16156af9a7ee5Smrg_ACEOF
16157af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16158af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16159af9a7ee5Smrgelse
16160af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16161af9a7ee5Smrgfi
16162af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163af9a7ee5Smrgfi
16164af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16165af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16166af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16167af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16168af9a7ee5Smrgfi
16169af9a7ee5Smrg
16170af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16171af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16172af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16173af9a7ee5Smrg	fi
16174af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16175af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16176af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16177af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16178af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16179af9a7ee5Smrgelse
16180af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181af9a7ee5Smrg/* end confdefs.h.  */
16182af9a7ee5Smrgint i;
16183af9a7ee5Smrg_ACEOF
16184af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16185af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16186af9a7ee5Smrgelse
16187af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16188af9a7ee5Smrgfi
16189af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16190af9a7ee5Smrgfi
16191af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16192af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16193af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16194af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16195af9a7ee5Smrgfi
16196af9a7ee5Smrg
16197af9a7ee5Smrgfound="no"
16198af9a7ee5Smrg
16199af9a7ee5Smrg	if test $found = "no" ; then
16200af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16201af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16202af9a7ee5Smrg		fi
16203af9a7ee5Smrg
16204af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16205af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16206af9a7ee5Smrg		fi
16207af9a7ee5Smrg
16208af9a7ee5Smrg		CFLAGS="$CFLAGS -Wsequence-point"
16209af9a7ee5Smrg
16210af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16211af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16212af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
16213af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
16214af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16215af9a7ee5Smrgelse
16216af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217af9a7ee5Smrg/* end confdefs.h.  */
16218af9a7ee5Smrgint i;
16219af9a7ee5Smrgint
16220af9a7ee5Smrgmain ()
16221af9a7ee5Smrg{
16222af9a7ee5Smrg
16223af9a7ee5Smrg  ;
16224af9a7ee5Smrg  return 0;
16225af9a7ee5Smrg}
16226af9a7ee5Smrg_ACEOF
16227af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
16228af9a7ee5Smrg  eval $cacheid=yes
16229af9a7ee5Smrgelse
16230af9a7ee5Smrg  eval $cacheid=no
16231af9a7ee5Smrgfi
16232af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
16233af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
16234af9a7ee5Smrgfi
16235af9a7ee5Smrg
16236af9a7ee5Smrg
16237af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16238af9a7ee5Smrg
16239af9a7ee5Smrg		eval supported=\$$cacheid
16240af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16241af9a7ee5Smrg$as_echo "$supported" >&6; }
16242af9a7ee5Smrg		if test "$supported" = "yes" ; then
16243af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16244af9a7ee5Smrg			found="yes"
16245af9a7ee5Smrg		fi
16246af9a7ee5Smrg	fi
16247af9a7ee5Smrg
16248af9a7ee5Smrg
16249af9a7ee5Smrg
16250af9a7ee5Smrg
16251af9a7ee5Smrg
16252af9a7ee5Smrg
16253af9a7ee5Smrg
16254af9a7ee5Smrg
16255af9a7ee5Smrg
16256af9a7ee5Smrg
16257af9a7ee5Smrg
16258af9a7ee5Smrg
16259af9a7ee5Smrg
16260af9a7ee5Smrg
16261af9a7ee5Smrg
16262af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16263af9a7ee5Smrg
16264af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16265af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16266af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16267af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16268af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16269af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16270af9a7ee5Smrgelse
16271af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272af9a7ee5Smrg/* end confdefs.h.  */
16273af9a7ee5Smrgint i;
16274af9a7ee5Smrg_ACEOF
16275af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16276af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16277af9a7ee5Smrgelse
16278af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16279af9a7ee5Smrgfi
16280af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281af9a7ee5Smrgfi
16282af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16283af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16284af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16285af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16286af9a7ee5Smrgfi
16287af9a7ee5Smrg
16288af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16289af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16290af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16291af9a7ee5Smrg	fi
16292af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16293af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16294af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16295af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16296af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16297af9a7ee5Smrgelse
16298af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299af9a7ee5Smrg/* end confdefs.h.  */
16300af9a7ee5Smrgint i;
16301af9a7ee5Smrg_ACEOF
16302af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16303af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16304af9a7ee5Smrgelse
16305af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16306af9a7ee5Smrgfi
16307af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308af9a7ee5Smrgfi
16309af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16310af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16311af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16312af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16313af9a7ee5Smrgfi
16314af9a7ee5Smrg
16315af9a7ee5Smrgfound="no"
16316af9a7ee5Smrg
16317af9a7ee5Smrg	if test $found = "no" ; then
16318af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16319af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16320af9a7ee5Smrg		fi
16321af9a7ee5Smrg
16322af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16323af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16324af9a7ee5Smrg		fi
16325af9a7ee5Smrg
16326af9a7ee5Smrg		CFLAGS="$CFLAGS -Wreturn-type"
16327af9a7ee5Smrg
16328af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16329af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16330af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
16331af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
16332af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16333af9a7ee5Smrgelse
16334af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335af9a7ee5Smrg/* end confdefs.h.  */
16336af9a7ee5Smrgint i;
16337af9a7ee5Smrgint
16338af9a7ee5Smrgmain ()
16339af9a7ee5Smrg{
16340af9a7ee5Smrg
16341af9a7ee5Smrg  ;
16342af9a7ee5Smrg  return 0;
16343af9a7ee5Smrg}
16344af9a7ee5Smrg_ACEOF
16345af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
16346af9a7ee5Smrg  eval $cacheid=yes
16347af9a7ee5Smrgelse
16348af9a7ee5Smrg  eval $cacheid=no
16349af9a7ee5Smrgfi
16350af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
16351af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
16352af9a7ee5Smrgfi
16353af9a7ee5Smrg
16354af9a7ee5Smrg
16355af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16356af9a7ee5Smrg
16357af9a7ee5Smrg		eval supported=\$$cacheid
16358af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16359af9a7ee5Smrg$as_echo "$supported" >&6; }
16360af9a7ee5Smrg		if test "$supported" = "yes" ; then
16361af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16362af9a7ee5Smrg			found="yes"
16363af9a7ee5Smrg		fi
16364af9a7ee5Smrg	fi
16365af9a7ee5Smrg
16366af9a7ee5Smrg
16367af9a7ee5Smrg
16368af9a7ee5Smrg
16369af9a7ee5Smrg
16370af9a7ee5Smrg
16371af9a7ee5Smrg
16372af9a7ee5Smrg
16373af9a7ee5Smrg
16374af9a7ee5Smrg
16375af9a7ee5Smrg
16376af9a7ee5Smrg
16377af9a7ee5Smrg
16378af9a7ee5Smrg
16379af9a7ee5Smrg
16380af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16381af9a7ee5Smrg
16382af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16383af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16384af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16385af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16386af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16387af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16388af9a7ee5Smrgelse
16389af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390af9a7ee5Smrg/* end confdefs.h.  */
16391af9a7ee5Smrgint i;
16392af9a7ee5Smrg_ACEOF
16393af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16394af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16395af9a7ee5Smrgelse
16396af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16397af9a7ee5Smrgfi
16398af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399af9a7ee5Smrgfi
16400af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16401af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16402af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16403af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16404af9a7ee5Smrgfi
16405af9a7ee5Smrg
16406af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16407af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16408af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16409af9a7ee5Smrg	fi
16410af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16411af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16412af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16413af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16414af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16415af9a7ee5Smrgelse
16416af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417af9a7ee5Smrg/* end confdefs.h.  */
16418af9a7ee5Smrgint i;
16419af9a7ee5Smrg_ACEOF
16420af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16421af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16422af9a7ee5Smrgelse
16423af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16424af9a7ee5Smrgfi
16425af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426af9a7ee5Smrgfi
16427af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16428af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16429af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16430af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16431af9a7ee5Smrgfi
16432af9a7ee5Smrg
16433af9a7ee5Smrgfound="no"
16434af9a7ee5Smrg
16435af9a7ee5Smrg	if test $found = "no" ; then
16436af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16437af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16438af9a7ee5Smrg		fi
16439af9a7ee5Smrg
16440af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16441af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16442af9a7ee5Smrg		fi
16443af9a7ee5Smrg
16444af9a7ee5Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
16445af9a7ee5Smrg
16446af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16447af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16448af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
16449af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
16450af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16451af9a7ee5Smrgelse
16452af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453af9a7ee5Smrg/* end confdefs.h.  */
16454af9a7ee5Smrgint i;
16455af9a7ee5Smrgint
16456af9a7ee5Smrgmain ()
16457af9a7ee5Smrg{
16458af9a7ee5Smrg
16459af9a7ee5Smrg  ;
16460af9a7ee5Smrg  return 0;
16461af9a7ee5Smrg}
16462af9a7ee5Smrg_ACEOF
16463af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
16464af9a7ee5Smrg  eval $cacheid=yes
16465af9a7ee5Smrgelse
16466af9a7ee5Smrg  eval $cacheid=no
16467af9a7ee5Smrgfi
16468af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
16469af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
16470af9a7ee5Smrgfi
16471af9a7ee5Smrg
16472af9a7ee5Smrg
16473af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16474af9a7ee5Smrg
16475af9a7ee5Smrg		eval supported=\$$cacheid
16476af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16477af9a7ee5Smrg$as_echo "$supported" >&6; }
16478af9a7ee5Smrg		if test "$supported" = "yes" ; then
16479af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16480af9a7ee5Smrg			found="yes"
16481af9a7ee5Smrg		fi
16482af9a7ee5Smrg	fi
16483af9a7ee5Smrg
16484af9a7ee5Smrg
16485af9a7ee5Smrg
16486af9a7ee5Smrg
16487af9a7ee5Smrg
16488af9a7ee5Smrg
16489af9a7ee5Smrg
16490af9a7ee5Smrg
16491af9a7ee5Smrg
16492af9a7ee5Smrg
16493af9a7ee5Smrg
16494af9a7ee5Smrg
16495af9a7ee5Smrg
16496af9a7ee5Smrg
16497af9a7ee5Smrg
16498af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16499af9a7ee5Smrg
16500af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16501af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16503af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16504af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16505af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16506af9a7ee5Smrgelse
16507af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508af9a7ee5Smrg/* end confdefs.h.  */
16509af9a7ee5Smrgint i;
16510af9a7ee5Smrg_ACEOF
16511af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16512af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16513af9a7ee5Smrgelse
16514af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16515af9a7ee5Smrgfi
16516af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517af9a7ee5Smrgfi
16518af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16519af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16520af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16521af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16522af9a7ee5Smrgfi
16523af9a7ee5Smrg
16524af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16525af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16526af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16527af9a7ee5Smrg	fi
16528af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16529af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16530af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16531af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16532af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16533af9a7ee5Smrgelse
16534af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535af9a7ee5Smrg/* end confdefs.h.  */
16536af9a7ee5Smrgint i;
16537af9a7ee5Smrg_ACEOF
16538af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16539af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16540af9a7ee5Smrgelse
16541af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16542af9a7ee5Smrgfi
16543af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544af9a7ee5Smrgfi
16545af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16546af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16547af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16548af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16549af9a7ee5Smrgfi
16550af9a7ee5Smrg
16551af9a7ee5Smrgfound="no"
16552af9a7ee5Smrg
16553af9a7ee5Smrg	if test $found = "no" ; then
16554af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16555af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16556af9a7ee5Smrg		fi
16557af9a7ee5Smrg
16558af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16559af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16560af9a7ee5Smrg		fi
16561af9a7ee5Smrg
16562af9a7ee5Smrg		CFLAGS="$CFLAGS -Warray-bounds"
16563af9a7ee5Smrg
16564af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16565af9a7ee5Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16566af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
16567af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
16568af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16569af9a7ee5Smrgelse
16570af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571af9a7ee5Smrg/* end confdefs.h.  */
16572af9a7ee5Smrgint i;
16573af9a7ee5Smrgint
16574af9a7ee5Smrgmain ()
16575af9a7ee5Smrg{
16576af9a7ee5Smrg
16577af9a7ee5Smrg  ;
16578af9a7ee5Smrg  return 0;
16579af9a7ee5Smrg}
16580af9a7ee5Smrg_ACEOF
16581af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
16582af9a7ee5Smrg  eval $cacheid=yes
16583af9a7ee5Smrgelse
16584af9a7ee5Smrg  eval $cacheid=no
16585af9a7ee5Smrgfi
16586af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
16587af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
16588af9a7ee5Smrgfi
16589af9a7ee5Smrg
16590af9a7ee5Smrg
16591af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16592af9a7ee5Smrg
16593af9a7ee5Smrg		eval supported=\$$cacheid
16594af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16595af9a7ee5Smrg$as_echo "$supported" >&6; }
16596af9a7ee5Smrg		if test "$supported" = "yes" ; then
16597af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16598af9a7ee5Smrg			found="yes"
16599af9a7ee5Smrg		fi
16600af9a7ee5Smrg	fi
16601af9a7ee5Smrg
16602af9a7ee5Smrg
16603af9a7ee5Smrg
16604af9a7ee5Smrg
16605af9a7ee5Smrg
16606af9a7ee5Smrg
16607af9a7ee5Smrg
16608af9a7ee5Smrg
16609af9a7ee5Smrg
16610af9a7ee5Smrg
16611af9a7ee5Smrg
16612af9a7ee5Smrg
16613af9a7ee5Smrg
16614af9a7ee5Smrg
16615af9a7ee5Smrg
16616af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16617af9a7ee5Smrg
16618af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16619af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16620af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16621af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16622af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16623af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16624af9a7ee5Smrgelse
16625af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626af9a7ee5Smrg/* end confdefs.h.  */
16627af9a7ee5Smrgint i;
16628af9a7ee5Smrg_ACEOF
16629af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16630af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16631af9a7ee5Smrgelse
16632af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16633af9a7ee5Smrgfi
16634af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635af9a7ee5Smrgfi
16636af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16637af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16638af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16639af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16640af9a7ee5Smrgfi
16641af9a7ee5Smrg
16642af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16643af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16644af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16645af9a7ee5Smrg	fi
16646af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16647af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16648af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16649af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16650af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16651af9a7ee5Smrgelse
16652af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653af9a7ee5Smrg/* end confdefs.h.  */
16654af9a7ee5Smrgint i;
16655af9a7ee5Smrg_ACEOF
16656af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16657af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16658af9a7ee5Smrgelse
16659af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16660af9a7ee5Smrgfi
16661af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662af9a7ee5Smrgfi
16663af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16664af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16665af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16666af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16667af9a7ee5Smrgfi
16668af9a7ee5Smrg
16669af9a7ee5Smrgfound="no"
16670af9a7ee5Smrg
16671af9a7ee5Smrg	if test $found = "no" ; then
16672af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16673af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16674af9a7ee5Smrg		fi
16675af9a7ee5Smrg
16676af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16677af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16678af9a7ee5Smrg		fi
16679af9a7ee5Smrg
16680af9a7ee5Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
16681af9a7ee5Smrg
16682af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16683af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16684af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
16685af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
16686af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16687af9a7ee5Smrgelse
16688af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16689af9a7ee5Smrg/* end confdefs.h.  */
16690af9a7ee5Smrgint i;
16691af9a7ee5Smrgint
16692af9a7ee5Smrgmain ()
16693af9a7ee5Smrg{
16694af9a7ee5Smrg
16695af9a7ee5Smrg  ;
16696af9a7ee5Smrg  return 0;
16697af9a7ee5Smrg}
16698af9a7ee5Smrg_ACEOF
16699af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
16700af9a7ee5Smrg  eval $cacheid=yes
16701af9a7ee5Smrgelse
16702af9a7ee5Smrg  eval $cacheid=no
16703af9a7ee5Smrgfi
16704af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
16705af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
16706af9a7ee5Smrgfi
16707af9a7ee5Smrg
16708af9a7ee5Smrg
16709af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16710af9a7ee5Smrg
16711af9a7ee5Smrg		eval supported=\$$cacheid
16712af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16713af9a7ee5Smrg$as_echo "$supported" >&6; }
16714af9a7ee5Smrg		if test "$supported" = "yes" ; then
16715af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16716af9a7ee5Smrg			found="yes"
16717af9a7ee5Smrg		fi
16718af9a7ee5Smrg	fi
16719af9a7ee5Smrg
16720af9a7ee5Smrg
16721af9a7ee5Smrg
16722af9a7ee5Smrg
16723af9a7ee5Smrg
16724af9a7ee5Smrg
16725af9a7ee5Smrg
16726af9a7ee5Smrg
16727af9a7ee5Smrg
16728af9a7ee5Smrg
16729af9a7ee5Smrg
16730af9a7ee5Smrg
16731af9a7ee5Smrg
16732af9a7ee5Smrg
16733af9a7ee5Smrg
16734af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16735af9a7ee5Smrg
16736af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16737af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16739af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16740af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16741af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16742af9a7ee5Smrgelse
16743af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744af9a7ee5Smrg/* end confdefs.h.  */
16745af9a7ee5Smrgint i;
16746af9a7ee5Smrg_ACEOF
16747af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16748af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16749af9a7ee5Smrgelse
16750af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16751af9a7ee5Smrgfi
16752af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753af9a7ee5Smrgfi
16754af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16755af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16756af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16757af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16758af9a7ee5Smrgfi
16759af9a7ee5Smrg
16760af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16761af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16762af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16763af9a7ee5Smrg	fi
16764af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16765af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16766af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16767af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16768af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16769af9a7ee5Smrgelse
16770af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771af9a7ee5Smrg/* end confdefs.h.  */
16772af9a7ee5Smrgint i;
16773af9a7ee5Smrg_ACEOF
16774af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16775af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16776af9a7ee5Smrgelse
16777af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16778af9a7ee5Smrgfi
16779af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780af9a7ee5Smrgfi
16781af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16782af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16783af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16784af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16785af9a7ee5Smrgfi
16786af9a7ee5Smrg
16787af9a7ee5Smrgfound="no"
16788af9a7ee5Smrg
16789af9a7ee5Smrg	if test $found = "no" ; then
16790af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16791af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16792af9a7ee5Smrg		fi
16793af9a7ee5Smrg
16794af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16795af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16796af9a7ee5Smrg		fi
16797af9a7ee5Smrg
16798af9a7ee5Smrg		CFLAGS="$CFLAGS -Waddress"
16799af9a7ee5Smrg
16800af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16801af9a7ee5Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16802af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Waddress
16803af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
16804af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16805af9a7ee5Smrgelse
16806af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807af9a7ee5Smrg/* end confdefs.h.  */
16808af9a7ee5Smrgint i;
16809af9a7ee5Smrgint
16810af9a7ee5Smrgmain ()
16811af9a7ee5Smrg{
16812af9a7ee5Smrg
16813af9a7ee5Smrg  ;
16814af9a7ee5Smrg  return 0;
16815af9a7ee5Smrg}
16816af9a7ee5Smrg_ACEOF
16817af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
16818af9a7ee5Smrg  eval $cacheid=yes
16819af9a7ee5Smrgelse
16820af9a7ee5Smrg  eval $cacheid=no
16821af9a7ee5Smrgfi
16822af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
16823af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
16824af9a7ee5Smrgfi
16825af9a7ee5Smrg
16826af9a7ee5Smrg
16827af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16828af9a7ee5Smrg
16829af9a7ee5Smrg		eval supported=\$$cacheid
16830af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16831af9a7ee5Smrg$as_echo "$supported" >&6; }
16832af9a7ee5Smrg		if test "$supported" = "yes" ; then
16833af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16834af9a7ee5Smrg			found="yes"
16835af9a7ee5Smrg		fi
16836af9a7ee5Smrg	fi
16837af9a7ee5Smrg
16838af9a7ee5Smrg
16839af9a7ee5Smrg
16840af9a7ee5Smrg
16841af9a7ee5Smrg
16842af9a7ee5Smrg
16843af9a7ee5Smrg
16844af9a7ee5Smrg
16845af9a7ee5Smrg
16846af9a7ee5Smrg
16847af9a7ee5Smrg
16848af9a7ee5Smrg
16849af9a7ee5Smrg
16850af9a7ee5Smrg
16851af9a7ee5Smrg
16852af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16853af9a7ee5Smrg
16854af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16855af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16856af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16857af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16858af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16859af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16860af9a7ee5Smrgelse
16861af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862af9a7ee5Smrg/* end confdefs.h.  */
16863af9a7ee5Smrgint i;
16864af9a7ee5Smrg_ACEOF
16865af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16866af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16867af9a7ee5Smrgelse
16868af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16869af9a7ee5Smrgfi
16870af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871af9a7ee5Smrgfi
16872af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16873af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16874af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16875af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16876af9a7ee5Smrgfi
16877af9a7ee5Smrg
16878af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16879af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16880af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16881af9a7ee5Smrg	fi
16882af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16883af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16884af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16885af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16886af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16887af9a7ee5Smrgelse
16888af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889af9a7ee5Smrg/* end confdefs.h.  */
16890af9a7ee5Smrgint i;
16891af9a7ee5Smrg_ACEOF
16892af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16893af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
16894af9a7ee5Smrgelse
16895af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
16896af9a7ee5Smrgfi
16897af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16898af9a7ee5Smrgfi
16899af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16900af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16901af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16902af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16903af9a7ee5Smrgfi
16904af9a7ee5Smrg
16905af9a7ee5Smrgfound="no"
16906af9a7ee5Smrg
16907af9a7ee5Smrg	if test $found = "no" ; then
16908af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16909af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16910af9a7ee5Smrg		fi
16911af9a7ee5Smrg
16912af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16913af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16914af9a7ee5Smrg		fi
16915af9a7ee5Smrg
16916af9a7ee5Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16917af9a7ee5Smrg
16918af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16919af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16920af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16921af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
16922af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16923af9a7ee5Smrgelse
16924af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925af9a7ee5Smrg/* end confdefs.h.  */
16926af9a7ee5Smrgint i;
16927af9a7ee5Smrgint
16928af9a7ee5Smrgmain ()
16929af9a7ee5Smrg{
16930af9a7ee5Smrg
16931af9a7ee5Smrg  ;
16932af9a7ee5Smrg  return 0;
16933af9a7ee5Smrg}
16934af9a7ee5Smrg_ACEOF
16935af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
16936af9a7ee5Smrg  eval $cacheid=yes
16937af9a7ee5Smrgelse
16938af9a7ee5Smrg  eval $cacheid=no
16939af9a7ee5Smrgfi
16940af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
16941af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
16942af9a7ee5Smrgfi
16943af9a7ee5Smrg
16944af9a7ee5Smrg
16945af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
16946af9a7ee5Smrg
16947af9a7ee5Smrg		eval supported=\$$cacheid
16948af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16949af9a7ee5Smrg$as_echo "$supported" >&6; }
16950af9a7ee5Smrg		if test "$supported" = "yes" ; then
16951af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16952af9a7ee5Smrg			found="yes"
16953af9a7ee5Smrg		fi
16954af9a7ee5Smrg	fi
16955af9a7ee5Smrg
16956af9a7ee5Smrg
16957af9a7ee5Smrg
16958af9a7ee5Smrg
16959af9a7ee5Smrg
16960af9a7ee5Smrg
16961af9a7ee5Smrg
16962af9a7ee5Smrg
16963af9a7ee5Smrg
16964af9a7ee5Smrg
16965af9a7ee5Smrg
16966af9a7ee5Smrg
16967af9a7ee5Smrg
16968af9a7ee5Smrg
16969af9a7ee5Smrg
16970af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
16971af9a7ee5Smrg
16972af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16973af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16974af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16975af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16976af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16977af9a7ee5Smrg  $as_echo_n "(cached) " >&6
16978af9a7ee5Smrgelse
16979af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980af9a7ee5Smrg/* end confdefs.h.  */
16981af9a7ee5Smrgint i;
16982af9a7ee5Smrg_ACEOF
16983af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
16984af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
16985af9a7ee5Smrgelse
16986af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
16987af9a7ee5Smrgfi
16988af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16989af9a7ee5Smrgfi
16990af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16991af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16992af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16993af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
16994af9a7ee5Smrgfi
16995af9a7ee5Smrg
16996af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16997af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16998af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16999af9a7ee5Smrg	fi
17000af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17001af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17002af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17003af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17004af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17005af9a7ee5Smrgelse
17006af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007af9a7ee5Smrg/* end confdefs.h.  */
17008af9a7ee5Smrgint i;
17009af9a7ee5Smrg_ACEOF
17010af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
17011af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
17012af9a7ee5Smrgelse
17013af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
17014af9a7ee5Smrgfi
17015af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016af9a7ee5Smrgfi
17017af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17018af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17019af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17020af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17021af9a7ee5Smrgfi
17022af9a7ee5Smrg
17023af9a7ee5Smrgfound="no"
17024af9a7ee5Smrg
17025af9a7ee5Smrg	if test $found = "no" ; then
17026af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17027af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17028af9a7ee5Smrg		fi
17029af9a7ee5Smrg
17030af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17031af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17032af9a7ee5Smrg		fi
17033af9a7ee5Smrg
17034af9a7ee5Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17035af9a7ee5Smrg
17036af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17037af9a7ee5Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17038af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17039af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
17040af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17041af9a7ee5Smrgelse
17042af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043af9a7ee5Smrg/* end confdefs.h.  */
17044af9a7ee5Smrgint i;
17045af9a7ee5Smrgint
17046af9a7ee5Smrgmain ()
17047af9a7ee5Smrg{
17048af9a7ee5Smrg
17049af9a7ee5Smrg  ;
17050af9a7ee5Smrg  return 0;
17051af9a7ee5Smrg}
17052af9a7ee5Smrg_ACEOF
17053af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
17054af9a7ee5Smrg  eval $cacheid=yes
17055af9a7ee5Smrgelse
17056af9a7ee5Smrg  eval $cacheid=no
17057af9a7ee5Smrgfi
17058af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
17059af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
17060af9a7ee5Smrgfi
17061af9a7ee5Smrg
17062af9a7ee5Smrg
17063af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
17064af9a7ee5Smrg
17065af9a7ee5Smrg		eval supported=\$$cacheid
17066af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17067af9a7ee5Smrg$as_echo "$supported" >&6; }
17068af9a7ee5Smrg		if test "$supported" = "yes" ; then
17069af9a7ee5Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17070af9a7ee5Smrg			found="yes"
17071af9a7ee5Smrg		fi
17072af9a7ee5Smrg	fi
17073af9a7ee5Smrg
17074af9a7ee5Smrg
17075af9a7ee5Smrgfi
17076af9a7ee5Smrg
17077af9a7ee5Smrg
17078af9a7ee5Smrg
17079af9a7ee5Smrg
17080af9a7ee5Smrg
17081af9a7ee5Smrg
17082af9a7ee5Smrg
17083af9a7ee5Smrg		CWARNFLAGS="$BASE_CFLAGS"
17084af9a7ee5Smrg		if  test "x$GCC" = xyes ; then
17085af9a7ee5Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17086af9a7ee5Smrg		fi
17087af9a7ee5Smrg
17088af9a7ee5Smrg
17089af9a7ee5Smrg
17090af9a7ee5Smrg
17091af9a7ee5Smrg
17092af9a7ee5Smrg
17093af9a7ee5Smrg
17094af9a7ee5Smrg
17095af9a7ee5Smrg# Check whether --enable-strict-compilation was given.
17096af9a7ee5Smrgif test "${enable_strict_compilation+set}" = set; then :
17097af9a7ee5Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17098af9a7ee5Smrgelse
17099af9a7ee5Smrg  STRICT_COMPILE=no
17100af9a7ee5Smrgfi
17101af9a7ee5Smrg
17102af9a7ee5Smrg
17103af9a7ee5Smrg
17104af9a7ee5Smrg
17105af9a7ee5Smrg
17106af9a7ee5Smrg
17107af9a7ee5SmrgSTRICT_CFLAGS=""
17108af9a7ee5Smrg
17109af9a7ee5Smrg
17110af9a7ee5Smrg
17111af9a7ee5Smrg
17112af9a7ee5Smrg
17113af9a7ee5Smrg
17114af9a7ee5Smrg
17115af9a7ee5Smrg
17116af9a7ee5Smrg
17117af9a7ee5Smrg
17118af9a7ee5Smrg
17119af9a7ee5Smrg
17120af9a7ee5Smrg
17121af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
17122af9a7ee5Smrg
17123af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17124af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17125af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17126af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17127af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17128af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17129af9a7ee5Smrgelse
17130af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131af9a7ee5Smrg/* end confdefs.h.  */
17132af9a7ee5Smrgint i;
17133af9a7ee5Smrg_ACEOF
17134af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
17135af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
17136af9a7ee5Smrgelse
17137af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
17138af9a7ee5Smrgfi
17139af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140af9a7ee5Smrgfi
17141af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17142af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17143af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17144af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17145af9a7ee5Smrgfi
17146af9a7ee5Smrg
17147af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17148af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17149af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17150af9a7ee5Smrg	fi
17151af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17152af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17153af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17154af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17155af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17156af9a7ee5Smrgelse
17157af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158af9a7ee5Smrg/* end confdefs.h.  */
17159af9a7ee5Smrgint i;
17160af9a7ee5Smrg_ACEOF
17161af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
17162af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
17163af9a7ee5Smrgelse
17164af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
17165af9a7ee5Smrgfi
17166af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17167af9a7ee5Smrgfi
17168af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17169af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17170af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17171af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17172af9a7ee5Smrgfi
17173af9a7ee5Smrg
17174af9a7ee5Smrgfound="no"
17175af9a7ee5Smrg
17176af9a7ee5Smrg	if test $found = "no" ; then
17177af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17178af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17179af9a7ee5Smrg		fi
17180af9a7ee5Smrg
17181af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17182af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17183af9a7ee5Smrg		fi
17184af9a7ee5Smrg
17185af9a7ee5Smrg		CFLAGS="$CFLAGS -pedantic"
17186af9a7ee5Smrg
17187af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17188af9a7ee5Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17189af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__pedantic
17190af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
17191af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17192af9a7ee5Smrgelse
17193af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194af9a7ee5Smrg/* end confdefs.h.  */
17195af9a7ee5Smrgint i;
17196af9a7ee5Smrgint
17197af9a7ee5Smrgmain ()
17198af9a7ee5Smrg{
17199af9a7ee5Smrg
17200af9a7ee5Smrg  ;
17201af9a7ee5Smrg  return 0;
17202af9a7ee5Smrg}
17203af9a7ee5Smrg_ACEOF
17204af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
17205af9a7ee5Smrg  eval $cacheid=yes
17206af9a7ee5Smrgelse
17207af9a7ee5Smrg  eval $cacheid=no
17208af9a7ee5Smrgfi
17209af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
17210af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
17211af9a7ee5Smrgfi
17212af9a7ee5Smrg
17213af9a7ee5Smrg
17214af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
17215af9a7ee5Smrg
17216af9a7ee5Smrg		eval supported=\$$cacheid
17217af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17218af9a7ee5Smrg$as_echo "$supported" >&6; }
17219af9a7ee5Smrg		if test "$supported" = "yes" ; then
17220af9a7ee5Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17221af9a7ee5Smrg			found="yes"
17222af9a7ee5Smrg		fi
17223af9a7ee5Smrg	fi
17224af9a7ee5Smrg
17225af9a7ee5Smrg
17226af9a7ee5Smrg
17227af9a7ee5Smrg
17228af9a7ee5Smrg
17229af9a7ee5Smrg
17230af9a7ee5Smrg
17231af9a7ee5Smrg
17232af9a7ee5Smrg
17233af9a7ee5Smrg
17234af9a7ee5Smrg
17235af9a7ee5Smrg
17236af9a7ee5Smrg
17237af9a7ee5Smrg
17238af9a7ee5Smrg
17239af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
17240af9a7ee5Smrg
17241af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17242af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17244af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17245af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17246af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17247af9a7ee5Smrgelse
17248af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249af9a7ee5Smrg/* end confdefs.h.  */
17250af9a7ee5Smrgint i;
17251af9a7ee5Smrg_ACEOF
17252af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
17253af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
17254af9a7ee5Smrgelse
17255af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
17256af9a7ee5Smrgfi
17257af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258af9a7ee5Smrgfi
17259af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17260af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17261af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17262af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17263af9a7ee5Smrgfi
17264af9a7ee5Smrg
17265af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17266af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17267af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17268af9a7ee5Smrg	fi
17269af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17270af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17271af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17272af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17273af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17274af9a7ee5Smrgelse
17275af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276af9a7ee5Smrg/* end confdefs.h.  */
17277af9a7ee5Smrgint i;
17278af9a7ee5Smrg_ACEOF
17279af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
17280af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
17281af9a7ee5Smrgelse
17282af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
17283af9a7ee5Smrgfi
17284af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17285af9a7ee5Smrgfi
17286af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17287af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17288af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17289af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17290af9a7ee5Smrgfi
17291af9a7ee5Smrg
17292af9a7ee5Smrgfound="no"
17293af9a7ee5Smrg
17294af9a7ee5Smrg	if test $found = "no" ; then
17295af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17296af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17297af9a7ee5Smrg		fi
17298af9a7ee5Smrg
17299af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17300af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17301af9a7ee5Smrg		fi
17302af9a7ee5Smrg
17303af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror"
17304af9a7ee5Smrg
17305af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17306af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
17307af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__Werror
17308af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
17309af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17310af9a7ee5Smrgelse
17311af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312af9a7ee5Smrg/* end confdefs.h.  */
17313af9a7ee5Smrgint i;
17314af9a7ee5Smrgint
17315af9a7ee5Smrgmain ()
17316af9a7ee5Smrg{
17317af9a7ee5Smrg
17318af9a7ee5Smrg  ;
17319af9a7ee5Smrg  return 0;
17320af9a7ee5Smrg}
17321af9a7ee5Smrg_ACEOF
17322af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
17323af9a7ee5Smrg  eval $cacheid=yes
17324af9a7ee5Smrgelse
17325af9a7ee5Smrg  eval $cacheid=no
17326af9a7ee5Smrgfi
17327af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
17328af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
17329af9a7ee5Smrgfi
17330af9a7ee5Smrg
17331af9a7ee5Smrg
17332af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
17333af9a7ee5Smrg
17334af9a7ee5Smrg		eval supported=\$$cacheid
17335af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17336af9a7ee5Smrg$as_echo "$supported" >&6; }
17337af9a7ee5Smrg		if test "$supported" = "yes" ; then
17338af9a7ee5Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17339af9a7ee5Smrg			found="yes"
17340af9a7ee5Smrg		fi
17341af9a7ee5Smrg	fi
17342af9a7ee5Smrg
17343af9a7ee5Smrg	if test $found = "no" ; then
17344af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17345af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17346af9a7ee5Smrg		fi
17347af9a7ee5Smrg
17348af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17349af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17350af9a7ee5Smrg		fi
17351af9a7ee5Smrg
17352af9a7ee5Smrg		CFLAGS="$CFLAGS -errwarn"
17353af9a7ee5Smrg
17354af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17355af9a7ee5Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17356af9a7ee5Smrg		cacheid=xorg_cv_cc_flag__errwarn
17357af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
17358af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17359af9a7ee5Smrgelse
17360af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361af9a7ee5Smrg/* end confdefs.h.  */
17362af9a7ee5Smrgint i;
17363af9a7ee5Smrgint
17364af9a7ee5Smrgmain ()
17365af9a7ee5Smrg{
17366af9a7ee5Smrg
17367af9a7ee5Smrg  ;
17368af9a7ee5Smrg  return 0;
17369af9a7ee5Smrg}
17370af9a7ee5Smrg_ACEOF
17371af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
17372af9a7ee5Smrg  eval $cacheid=yes
17373af9a7ee5Smrgelse
17374af9a7ee5Smrg  eval $cacheid=no
17375af9a7ee5Smrgfi
17376af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
17377af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
17378af9a7ee5Smrgfi
17379af9a7ee5Smrg
17380af9a7ee5Smrg
17381af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
17382af9a7ee5Smrg
17383af9a7ee5Smrg		eval supported=\$$cacheid
17384af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17385af9a7ee5Smrg$as_echo "$supported" >&6; }
17386af9a7ee5Smrg		if test "$supported" = "yes" ; then
17387af9a7ee5Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17388af9a7ee5Smrg			found="yes"
17389af9a7ee5Smrg		fi
17390af9a7ee5Smrg	fi
17391af9a7ee5Smrg
17392af9a7ee5Smrg
17393af9a7ee5Smrg
17394af9a7ee5Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17395af9a7ee5Smrg# activate it with -Werror, so we add it here explicitly.
17396af9a7ee5Smrg
17397af9a7ee5Smrg
17398af9a7ee5Smrg
17399af9a7ee5Smrg
17400af9a7ee5Smrg
17401af9a7ee5Smrg
17402af9a7ee5Smrg
17403af9a7ee5Smrg
17404af9a7ee5Smrg
17405af9a7ee5Smrg
17406af9a7ee5Smrg
17407af9a7ee5Smrg
17408af9a7ee5Smrg
17409af9a7ee5Smrgxorg_testset_save_CFLAGS="$CFLAGS"
17410af9a7ee5Smrg
17411af9a7ee5Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17412af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17413af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17414af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17415af9a7ee5Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17416af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17417af9a7ee5Smrgelse
17418af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419af9a7ee5Smrg/* end confdefs.h.  */
17420af9a7ee5Smrgint i;
17421af9a7ee5Smrg_ACEOF
17422af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
17423af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
17424af9a7ee5Smrgelse
17425af9a7ee5Smrg  xorg_cv_cc_flag_unknown_warning_option=no
17426af9a7ee5Smrgfi
17427af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428af9a7ee5Smrgfi
17429af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17430af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17431af9a7ee5Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17432af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17433af9a7ee5Smrgfi
17434af9a7ee5Smrg
17435af9a7ee5Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17436af9a7ee5Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17437af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17438af9a7ee5Smrg	fi
17439af9a7ee5Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17440af9a7ee5Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17441af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17442af9a7ee5Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17443af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17444af9a7ee5Smrgelse
17445af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446af9a7ee5Smrg/* end confdefs.h.  */
17447af9a7ee5Smrgint i;
17448af9a7ee5Smrg_ACEOF
17449af9a7ee5Smrgif ac_fn_c_try_compile "$LINENO"; then :
17450af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
17451af9a7ee5Smrgelse
17452af9a7ee5Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
17453af9a7ee5Smrgfi
17454af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17455af9a7ee5Smrgfi
17456af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17457af9a7ee5Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17458af9a7ee5Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17459af9a7ee5Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
17460af9a7ee5Smrgfi
17461af9a7ee5Smrg
17462af9a7ee5Smrgfound="no"
17463af9a7ee5Smrg
17464af9a7ee5Smrg	if test $found = "no" ; then
17465af9a7ee5Smrg		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17466af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17467af9a7ee5Smrg		fi
17468af9a7ee5Smrg
17469af9a7ee5Smrg		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17470af9a7ee5Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17471af9a7ee5Smrg		fi
17472af9a7ee5Smrg
17473af9a7ee5Smrg		CFLAGS="$CFLAGS -Werror=attributes"
17474af9a7ee5Smrg
17475af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17476af9a7ee5Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17477af9a7ee5Smrg		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17478af9a7ee5Smrg		if eval \${$cacheid+:} false; then :
17479af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17480af9a7ee5Smrgelse
17481af9a7ee5Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482af9a7ee5Smrg/* end confdefs.h.  */
17483af9a7ee5Smrgint i;
17484af9a7ee5Smrgint
17485af9a7ee5Smrgmain ()
17486af9a7ee5Smrg{
17487af9a7ee5Smrg
17488af9a7ee5Smrg  ;
17489af9a7ee5Smrg  return 0;
17490af9a7ee5Smrg}
17491af9a7ee5Smrg_ACEOF
17492af9a7ee5Smrgif ac_fn_c_try_link "$LINENO"; then :
17493af9a7ee5Smrg  eval $cacheid=yes
17494af9a7ee5Smrgelse
17495af9a7ee5Smrg  eval $cacheid=no
17496af9a7ee5Smrgfi
17497af9a7ee5Smrgrm -f core conftest.err conftest.$ac_objext \
17498af9a7ee5Smrg    conftest$ac_exeext conftest.$ac_ext
17499af9a7ee5Smrgfi
17500af9a7ee5Smrg
17501af9a7ee5Smrg
17502af9a7ee5Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
17503af9a7ee5Smrg
17504af9a7ee5Smrg		eval supported=\$$cacheid
17505af9a7ee5Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17506af9a7ee5Smrg$as_echo "$supported" >&6; }
17507af9a7ee5Smrg		if test "$supported" = "yes" ; then
17508af9a7ee5Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17509af9a7ee5Smrg			found="yes"
17510af9a7ee5Smrg		fi
17511af9a7ee5Smrg	fi
17512af9a7ee5Smrg
17513af9a7ee5Smrg
17514af9a7ee5Smrg
17515af9a7ee5Smrgif test "x$STRICT_COMPILE" = "xyes"; then
17516af9a7ee5Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17517af9a7ee5Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17518af9a7ee5Smrgfi
17519af9a7ee5Smrg
17520af9a7ee5Smrg
17521af9a7ee5Smrg
17522af9a7ee5Smrg
17523af9a7ee5Smrg
17524af9a7ee5Smrg
17525af9a7ee5Smrgcat >>confdefs.h <<_ACEOF
17526af9a7ee5Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17527af9a7ee5Smrg_ACEOF
17528af9a7ee5Smrg
17529af9a7ee5Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17530af9a7ee5Smrg	if test "x$PVM" = "x"; then
17531af9a7ee5Smrg		PVM="0"
17532af9a7ee5Smrg	fi
17533af9a7ee5Smrg
17534af9a7ee5Smrgcat >>confdefs.h <<_ACEOF
17535af9a7ee5Smrg#define PACKAGE_VERSION_MINOR $PVM
17536af9a7ee5Smrg_ACEOF
17537af9a7ee5Smrg
17538af9a7ee5Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17539af9a7ee5Smrg	if test "x$PVP" = "x"; then
17540af9a7ee5Smrg		PVP="0"
17541af9a7ee5Smrg	fi
17542af9a7ee5Smrg
17543af9a7ee5Smrgcat >>confdefs.h <<_ACEOF
17544af9a7ee5Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
17545af9a7ee5Smrg_ACEOF
17546af9a7ee5Smrg
17547af9a7ee5Smrg
17548af9a7ee5Smrg
17549af9a7ee5SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17550af9a7ee5Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17551af9a7ee5Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17552af9a7ee5Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
17553af9a7ee5Smrg
17554af9a7ee5Smrg
17555af9a7ee5Smrg
17556af9a7ee5Smrg
17557af9a7ee5Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17558af9a7ee5SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17559af9a7ee5Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17560af9a7ee5Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17561af9a7ee5Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17562af9a7ee5Smrg
17563af9a7ee5Smrg
17564af9a7ee5Smrg
17565af9a7ee5Smrg
17566af9a7ee5Smrg
17567af9a7ee5Smrg
17568af9a7ee5Smrgif test x$APP_MAN_SUFFIX = x    ; then
17569af9a7ee5Smrg    APP_MAN_SUFFIX=1
17570af9a7ee5Smrgfi
17571af9a7ee5Smrgif test x$APP_MAN_DIR = x    ; then
17572af9a7ee5Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17573af9a7ee5Smrgfi
17574af9a7ee5Smrg
17575af9a7ee5Smrgif test x$LIB_MAN_SUFFIX = x    ; then
17576af9a7ee5Smrg    LIB_MAN_SUFFIX=3
17577af9a7ee5Smrgfi
17578af9a7ee5Smrgif test x$LIB_MAN_DIR = x    ; then
17579af9a7ee5Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17580af9a7ee5Smrgfi
17581af9a7ee5Smrg
17582af9a7ee5Smrgif test x$FILE_MAN_SUFFIX = x    ; then
17583af9a7ee5Smrg    case $host_os in
17584af9a7ee5Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
17585af9a7ee5Smrg	*)		FILE_MAN_SUFFIX=5  ;;
17586af9a7ee5Smrg    esac
17587af9a7ee5Smrgfi
17588af9a7ee5Smrgif test x$FILE_MAN_DIR = x    ; then
17589af9a7ee5Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17590af9a7ee5Smrgfi
17591af9a7ee5Smrg
17592af9a7ee5Smrgif test x$MISC_MAN_SUFFIX = x    ; then
17593af9a7ee5Smrg    case $host_os in
17594af9a7ee5Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
17595af9a7ee5Smrg	*)		MISC_MAN_SUFFIX=7  ;;
17596af9a7ee5Smrg    esac
17597af9a7ee5Smrgfi
17598af9a7ee5Smrgif test x$MISC_MAN_DIR = x    ; then
17599af9a7ee5Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17600af9a7ee5Smrgfi
17601af9a7ee5Smrg
17602af9a7ee5Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
17603af9a7ee5Smrg    case $host_os in
17604af9a7ee5Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17605af9a7ee5Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
17606af9a7ee5Smrg    esac
17607af9a7ee5Smrgfi
17608af9a7ee5Smrgif test x$DRIVER_MAN_DIR = x    ; then
17609af9a7ee5Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17610af9a7ee5Smrgfi
17611af9a7ee5Smrg
17612af9a7ee5Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
17613af9a7ee5Smrg    case $host_os in
17614af9a7ee5Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17615af9a7ee5Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
17616af9a7ee5Smrg    esac
17617af9a7ee5Smrgfi
17618af9a7ee5Smrgif test x$ADMIN_MAN_DIR = x    ; then
17619af9a7ee5Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17620a5602400Smrgfi
17621a5602400Smrg
17622a5602400Smrg
17623a5602400Smrg
17624a5602400Smrg
17625a5602400Smrg
17626a5602400Smrg
17627a5602400Smrg
17628a5602400Smrg
17629a5602400Smrg
17630a5602400Smrg
17631a5602400Smrg
17632a5602400Smrg
17633a5602400Smrg
17634a5602400Smrg
17635a5602400Smrg
17636a5602400SmrgXORG_MAN_PAGE="X Version 11"
17637a5602400Smrg
17638a5602400SmrgMAN_SUBSTS="\
17639a5602400Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17640a5602400Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17641a5602400Smrg	-e 's|__xservername__|Xorg|g' \
17642a5602400Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
17643a5602400Smrg	-e 's|__projectroot__|\$(prefix)|g' \
17644a5602400Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17645a5602400Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17646a5602400Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17647a5602400Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17648a5602400Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17649a5602400Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17650a5602400Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17651a5602400Smrg
17652a5602400Smrg
17653a5602400Smrg
17654a5602400Smrg# Check whether --enable-silent-rules was given.
17655a5602400Smrgif test "${enable_silent_rules+set}" = set; then :
17656a5602400Smrg  enableval=$enable_silent_rules;
17657b9b4fd27Smrgfi
17658caade7ccSmrg
17659af9a7ee5Smrgcase $enable_silent_rules in # (((
17660af9a7ee5Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
17661af9a7ee5Smrg   no) AM_DEFAULT_VERBOSITY=1;;
17662af9a7ee5Smrg    *) AM_DEFAULT_VERBOSITY=0;;
17663a5602400Smrgesac
17664af9a7ee5Smrgam_make=${MAKE-make}
17665af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17666af9a7ee5Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17667af9a7ee5Smrgif ${am_cv_make_support_nested_variables+:} false; then :
17668af9a7ee5Smrg  $as_echo_n "(cached) " >&6
17669af9a7ee5Smrgelse
17670af9a7ee5Smrg  if $as_echo 'TRUE=$(BAR$(V))
17671af9a7ee5SmrgBAR0=false
17672af9a7ee5SmrgBAR1=true
17673af9a7ee5SmrgV=1
17674af9a7ee5Smrgam__doit:
17675af9a7ee5Smrg	@$(TRUE)
17676af9a7ee5Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17677af9a7ee5Smrg  am_cv_make_support_nested_variables=yes
17678af9a7ee5Smrgelse
17679af9a7ee5Smrg  am_cv_make_support_nested_variables=no
17680af9a7ee5Smrgfi
17681af9a7ee5Smrgfi
17682af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17683af9a7ee5Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
17684af9a7ee5Smrgif test $am_cv_make_support_nested_variables = yes; then
17685af9a7ee5Smrg    AM_V='$(V)'
17686af9a7ee5Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17687af9a7ee5Smrgelse
17688af9a7ee5Smrg  AM_V=$AM_DEFAULT_VERBOSITY
17689af9a7ee5Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17690af9a7ee5Smrgfi
17691a5602400SmrgAM_BACKSLASH='\'
17692a5602400Smrg
17693a5602400Smrg
17694a5602400Smrg
17695a5602400Smrg
17696a5602400Smrg# Check whether --enable-specs was given.
17697a5602400Smrgif test "${enable_specs+set}" = set; then :
17698a5602400Smrg  enableval=$enable_specs; build_specs=$enableval
17699caade7ccSmrgelse
17700a5602400Smrg  build_specs=yes
17701caade7ccSmrgfi
17702caade7ccSmrg
17703caade7ccSmrg
17704a5602400Smrg if test x$build_specs = xyes; then
17705a5602400Smrg  ENABLE_SPECS_TRUE=
17706a5602400Smrg  ENABLE_SPECS_FALSE='#'
17707b9b4fd27Smrgelse
17708a5602400Smrg  ENABLE_SPECS_TRUE='#'
17709a5602400Smrg  ENABLE_SPECS_FALSE=
17710a5602400Smrgfi
17711caade7ccSmrg
17712a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
17713a5602400Smrg$as_echo_n "checking whether to build functional specifications... " >&6; }
17714a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
17715a5602400Smrg$as_echo "$build_specs" >&6; }
17716caade7ccSmrg
17717caade7ccSmrg
17718caade7ccSmrg
17719caade7ccSmrg
17720a5602400Smrg
17721a5602400Smrg# Check whether --with-xmlto was given.
17722a5602400Smrgif test "${with_xmlto+set}" = set; then :
17723a5602400Smrg  withval=$with_xmlto; use_xmlto=$withval
17724b9b4fd27Smrgelse
17725a5602400Smrg  use_xmlto=auto
17726caade7ccSmrgfi
17727a5602400Smrg
17728a5602400Smrg
17729a5602400Smrg
17730a5602400Smrgif test "x$use_xmlto" = x"auto"; then
17731a5602400Smrg   # Extract the first word of "xmlto", so it can be a program name with args.
17732a5602400Smrgset dummy xmlto; ac_word=$2
17733a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17734a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
17735a5602400Smrgif ${ac_cv_path_XMLTO+:} false; then :
17736b9b4fd27Smrg  $as_echo_n "(cached) " >&6
17737b9b4fd27Smrgelse
17738a5602400Smrg  case $XMLTO in
17739a5602400Smrg  [\\/]* | ?:[\\/]*)
17740a5602400Smrg  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17741a5602400Smrg  ;;
17742a5602400Smrg  *)
17743a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17744a5602400Smrgfor as_dir in $PATH
17745a5602400Smrgdo
17746a5602400Smrg  IFS=$as_save_IFS
17747a5602400Smrg  test -z "$as_dir" && as_dir=.
17748a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
17749a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17750a5602400Smrg    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17751a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17752a5602400Smrg    break 2
17753a5602400Smrg  fi
17754a5602400Smrgdone
17755a5602400Smrg  done
17756a5602400SmrgIFS=$as_save_IFS
17757caade7ccSmrg
17758a5602400Smrg  ;;
17759a5602400Smrgesac
17760a5602400Smrgfi
17761a5602400SmrgXMLTO=$ac_cv_path_XMLTO
17762a5602400Smrgif test -n "$XMLTO"; then
17763a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17764a5602400Smrg$as_echo "$XMLTO" >&6; }
17765a5602400Smrgelse
17766a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17767a5602400Smrg$as_echo "no" >&6; }
17768a5602400Smrgfi
17769caade7ccSmrg
17770caade7ccSmrg
17771a5602400Smrg   if test "x$XMLTO" = "x"; then
17772a5602400Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
17773a5602400Smrg$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
17774a5602400Smrg	have_xmlto=no
17775a5602400Smrg   else
17776a5602400Smrg        have_xmlto=yes
17777a5602400Smrg   fi
17778a5602400Smrgelif test "x$use_xmlto" = x"yes" ; then
17779a5602400Smrg   # Extract the first word of "xmlto", so it can be a program name with args.
17780a5602400Smrgset dummy xmlto; ac_word=$2
17781a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17782a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
17783a5602400Smrgif ${ac_cv_path_XMLTO+:} false; then :
17784a5602400Smrg  $as_echo_n "(cached) " >&6
17785a5602400Smrgelse
17786a5602400Smrg  case $XMLTO in
17787a5602400Smrg  [\\/]* | ?:[\\/]*)
17788a5602400Smrg  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
17789a5602400Smrg  ;;
17790a5602400Smrg  *)
17791a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792a5602400Smrgfor as_dir in $PATH
17793b9b4fd27Smrgdo
17794a5602400Smrg  IFS=$as_save_IFS
17795a5602400Smrg  test -z "$as_dir" && as_dir=.
17796a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
17797a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17798a5602400Smrg    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
17799a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17800a5602400Smrg    break 2
17801a5602400Smrg  fi
17802b9b4fd27Smrgdone
17803a5602400Smrg  done
17804a5602400SmrgIFS=$as_save_IFS
17805caade7ccSmrg
17806a5602400Smrg  ;;
17807b9b4fd27Smrgesac
17808a5602400Smrgfi
17809a5602400SmrgXMLTO=$ac_cv_path_XMLTO
17810a5602400Smrgif test -n "$XMLTO"; then
17811a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
17812a5602400Smrg$as_echo "$XMLTO" >&6; }
17813a5602400Smrgelse
17814a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17815a5602400Smrg$as_echo "no" >&6; }
17816a5602400Smrgfi
17817caade7ccSmrg
17818a5602400Smrg
17819a5602400Smrg   if test "x$XMLTO" = "x"; then
17820a5602400Smrg        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
17821a5602400Smrg   fi
17822a5602400Smrg   have_xmlto=yes
17823a5602400Smrgelif test "x$use_xmlto" = x"no" ; then
17824a5602400Smrg   if test "x$XMLTO" != "x"; then
17825a5602400Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
17826a5602400Smrg$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
17827a5602400Smrg   fi
17828a5602400Smrg   have_xmlto=no
17829a5602400Smrgelse
17830a5602400Smrg   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
17831b9b4fd27Smrgfi
17832caade7ccSmrg
17833a5602400Smrg# Test for a minimum version of xmlto, if provided.
17834a5602400Smrgif test "$have_xmlto" = yes; then
17835a5602400Smrg    # scrape the xmlto version
17836a5602400Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
17837a5602400Smrg$as_echo_n "checking the xmlto version... " >&6; }
17838a5602400Smrg    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
17839a5602400Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
17840a5602400Smrg$as_echo "$xmlto_version" >&6; }
17841a5602400Smrg    as_arg_v1=$xmlto_version
17842a5602400Smrgas_arg_v2=0.0.22
17843a5602400Smrgawk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17844a5602400Smrgcase $? in #(
17845a5602400Smrg  1) :
17846a5602400Smrg    if test "x$use_xmlto" = xauto; then
17847a5602400Smrg            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
17848a5602400Smrg$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
17849a5602400Smrg            have_xmlto=no
17850a5602400Smrg        else
17851a5602400Smrg            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
17852a5602400Smrg        fi ;; #(
17853a5602400Smrg  0) :
17854a5602400Smrg     ;; #(
17855a5602400Smrg  2) :
17856a5602400Smrg     ;; #(
17857a5602400Smrg  *) :
17858a5602400Smrg     ;;
17859a5602400Smrgesac
17860a5602400Smrgfi
17861caade7ccSmrg
17862a5602400Smrg# Test for the ability of xmlto to generate a text target
17863a5602400Smrghave_xmlto_text=no
17864a5602400Smrgcat > conftest.xml << "EOF"
17865a5602400SmrgEOF
17866a5602400Smrgif test "$have_xmlto" = yes; then :
17867a5602400Smrg  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
17868a5602400Smrg  have_xmlto_text=yes
17869a5602400Smrgelse
17870a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
17871a5602400Smrg$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
17872a5602400Smrgfi
17873a5602400Smrgfi
17874a5602400Smrgrm -f conftest.xml
17875a5602400Smrg if test $have_xmlto_text = yes; then
17876a5602400Smrg  HAVE_XMLTO_TEXT_TRUE=
17877a5602400Smrg  HAVE_XMLTO_TEXT_FALSE='#'
17878a5602400Smrgelse
17879a5602400Smrg  HAVE_XMLTO_TEXT_TRUE='#'
17880a5602400Smrg  HAVE_XMLTO_TEXT_FALSE=
17881a5602400Smrgfi
17882caade7ccSmrg
17883a5602400Smrg if test "$have_xmlto" = yes; then
17884a5602400Smrg  HAVE_XMLTO_TRUE=
17885a5602400Smrg  HAVE_XMLTO_FALSE='#'
17886b9b4fd27Smrgelse
17887a5602400Smrg  HAVE_XMLTO_TRUE='#'
17888a5602400Smrg  HAVE_XMLTO_FALSE=
17889a5602400Smrgfi
17890caade7ccSmrg
17891caade7ccSmrg
17892caade7ccSmrg
17893caade7ccSmrg
17894a5602400Smrg
17895a5602400Smrg
17896a5602400Smrg# Check whether --with-fop was given.
17897a5602400Smrgif test "${with_fop+set}" = set; then :
17898a5602400Smrg  withval=$with_fop; use_fop=$withval
17899b9b4fd27Smrgelse
17900a5602400Smrg  use_fop=auto
17901b9b4fd27Smrgfi
17902caade7ccSmrg
17903caade7ccSmrg
17904a5602400Smrg
17905a5602400Smrgif test "x$use_fop" = x"auto"; then
17906a5602400Smrg   # Extract the first word of "fop", so it can be a program name with args.
17907a5602400Smrgset dummy fop; ac_word=$2
17908a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17909a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
17910a5602400Smrgif ${ac_cv_path_FOP+:} false; then :
17911a5602400Smrg  $as_echo_n "(cached) " >&6
17912b9b4fd27Smrgelse
17913a5602400Smrg  case $FOP in
17914a5602400Smrg  [\\/]* | ?:[\\/]*)
17915a5602400Smrg  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17916a5602400Smrg  ;;
17917a5602400Smrg  *)
17918a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17919a5602400Smrgfor as_dir in $PATH
17920a5602400Smrgdo
17921a5602400Smrg  IFS=$as_save_IFS
17922a5602400Smrg  test -z "$as_dir" && as_dir=.
17923a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
17924a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17925a5602400Smrg    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17926a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17927a5602400Smrg    break 2
17928a5602400Smrg  fi
17929a5602400Smrgdone
17930a5602400Smrg  done
17931a5602400SmrgIFS=$as_save_IFS
17932a5602400Smrg
17933a5602400Smrg  ;;
17934a5602400Smrgesac
17935a5602400Smrgfi
17936a5602400SmrgFOP=$ac_cv_path_FOP
17937a5602400Smrgif test -n "$FOP"; then
17938a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17939a5602400Smrg$as_echo "$FOP" >&6; }
17940a5602400Smrgelse
17941a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17942a5602400Smrg$as_echo "no" >&6; }
17943b9b4fd27Smrgfi
17944caade7ccSmrg
17945caade7ccSmrg
17946a5602400Smrg   if test "x$FOP" = "x"; then
17947a5602400Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
17948a5602400Smrg$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
17949a5602400Smrg	have_fop=no
17950a5602400Smrg   else
17951a5602400Smrg        have_fop=yes
17952a5602400Smrg   fi
17953a5602400Smrgelif test "x$use_fop" = x"yes" ; then
17954a5602400Smrg   # Extract the first word of "fop", so it can be a program name with args.
17955a5602400Smrgset dummy fop; ac_word=$2
17956a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17957a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
17958a5602400Smrgif ${ac_cv_path_FOP+:} false; then :
17959a5602400Smrg  $as_echo_n "(cached) " >&6
17960b9b4fd27Smrgelse
17961a5602400Smrg  case $FOP in
17962a5602400Smrg  [\\/]* | ?:[\\/]*)
17963a5602400Smrg  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
17964a5602400Smrg  ;;
17965a5602400Smrg  *)
17966a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17967a5602400Smrgfor as_dir in $PATH
17968a5602400Smrgdo
17969a5602400Smrg  IFS=$as_save_IFS
17970a5602400Smrg  test -z "$as_dir" && as_dir=.
17971a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
17972a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17973a5602400Smrg    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
17974a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17975a5602400Smrg    break 2
17976a5602400Smrg  fi
17977a5602400Smrgdone
17978a5602400Smrg  done
17979a5602400SmrgIFS=$as_save_IFS
17980a5602400Smrg
17981a5602400Smrg  ;;
17982a5602400Smrgesac
17983b9b4fd27Smrgfi
17984a5602400SmrgFOP=$ac_cv_path_FOP
17985a5602400Smrgif test -n "$FOP"; then
17986a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
17987a5602400Smrg$as_echo "$FOP" >&6; }
17988b9b4fd27Smrgelse
17989a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17990a5602400Smrg$as_echo "no" >&6; }
17991b9b4fd27Smrgfi
17992caade7ccSmrg
17993caade7ccSmrg
17994a5602400Smrg   if test "x$FOP" = "x"; then
17995a5602400Smrg        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
17996a5602400Smrg   fi
17997a5602400Smrg   have_fop=yes
17998a5602400Smrgelif test "x$use_fop" = x"no" ; then
17999a5602400Smrg   if test "x$FOP" != "x"; then
18000a5602400Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18001a5602400Smrg$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18002a5602400Smrg   fi
18003a5602400Smrg   have_fop=no
18004b9b4fd27Smrgelse
18005a5602400Smrg   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18006a5602400Smrgfi
18007af9a7ee5Smrg
18008af9a7ee5Smrg# Test for a minimum version of fop, if provided.
18009af9a7ee5Smrg
18010a5602400Smrg if test "$have_fop" = yes; then
18011a5602400Smrg  HAVE_FOP_TRUE=
18012a5602400Smrg  HAVE_FOP_FALSE='#'
18013a5602400Smrgelse
18014a5602400Smrg  HAVE_FOP_TRUE='#'
18015a5602400Smrg  HAVE_FOP_FALSE=
18016b9b4fd27Smrgfi
18017caade7ccSmrg
18018caade7ccSmrg
18019caade7ccSmrg
18020caade7ccSmrg
18021af9a7ee5Smrg# Preserves the interface, should it be implemented later
18022af9a7ee5Smrg
18023caade7ccSmrg
18024caade7ccSmrg
18025a5602400Smrg# Check whether --with-xsltproc was given.
18026a5602400Smrgif test "${with_xsltproc+set}" = set; then :
18027a5602400Smrg  withval=$with_xsltproc; use_xsltproc=$withval
18028b9b4fd27Smrgelse
18029a5602400Smrg  use_xsltproc=auto
18030b9b4fd27Smrgfi
18031caade7ccSmrg
18032caade7ccSmrg
18033caade7ccSmrg
18034a5602400Smrgif test "x$use_xsltproc" = x"auto"; then
18035a5602400Smrg   # Extract the first word of "xsltproc", so it can be a program name with args.
18036a5602400Smrgset dummy xsltproc; ac_word=$2
18037a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18038a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
18039a5602400Smrgif ${ac_cv_path_XSLTPROC+:} false; then :
18040b9b4fd27Smrg  $as_echo_n "(cached) " >&6
18041b9b4fd27Smrgelse
18042a5602400Smrg  case $XSLTPROC in
18043a5602400Smrg  [\\/]* | ?:[\\/]*)
18044a5602400Smrg  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18045a5602400Smrg  ;;
18046a5602400Smrg  *)
18047a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18048a5602400Smrgfor as_dir in $PATH
18049a5602400Smrgdo
18050a5602400Smrg  IFS=$as_save_IFS
18051a5602400Smrg  test -z "$as_dir" && as_dir=.
18052a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
18053a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18054a5602400Smrg    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18055a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18056a5602400Smrg    break 2
18057a5602400Smrg  fi
18058a5602400Smrgdone
18059a5602400Smrg  done
18060a5602400SmrgIFS=$as_save_IFS
18061caade7ccSmrg
18062a5602400Smrg  ;;
18063a5602400Smrgesac
18064b9b4fd27Smrgfi
18065a5602400SmrgXSLTPROC=$ac_cv_path_XSLTPROC
18066a5602400Smrgif test -n "$XSLTPROC"; then
18067a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18068a5602400Smrg$as_echo "$XSLTPROC" >&6; }
18069b9b4fd27Smrgelse
18070a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18071a5602400Smrg$as_echo "no" >&6; }
18072b9b4fd27Smrgfi
18073caade7ccSmrg
18074caade7ccSmrg
18075a5602400Smrg   if test "x$XSLTPROC" = "x"; then
18076a5602400Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18077a5602400Smrg$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18078a5602400Smrg	have_xsltproc=no
18079a5602400Smrg   else
18080a5602400Smrg        have_xsltproc=yes
18081a5602400Smrg   fi
18082a5602400Smrgelif test "x$use_xsltproc" = x"yes" ; then
18083a5602400Smrg   # Extract the first word of "xsltproc", so it can be a program name with args.
18084a5602400Smrgset dummy xsltproc; ac_word=$2
18085a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18086a5602400Smrg$as_echo_n "checking for $ac_word... " >&6; }
18087a5602400Smrgif ${ac_cv_path_XSLTPROC+:} false; then :
18088a5602400Smrg  $as_echo_n "(cached) " >&6
18089b9b4fd27Smrgelse
18090a5602400Smrg  case $XSLTPROC in
18091a5602400Smrg  [\\/]* | ?:[\\/]*)
18092a5602400Smrg  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18093a5602400Smrg  ;;
18094a5602400Smrg  *)
18095a5602400Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18096a5602400Smrgfor as_dir in $PATH
18097a5602400Smrgdo
18098a5602400Smrg  IFS=$as_save_IFS
18099a5602400Smrg  test -z "$as_dir" && as_dir=.
18100a5602400Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
18101a5602400Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18102a5602400Smrg    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18103a5602400Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18104a5602400Smrg    break 2
18105a5602400Smrg  fi
18106a5602400Smrgdone
18107a5602400Smrg  done
18108a5602400SmrgIFS=$as_save_IFS
18109caade7ccSmrg
18110a5602400Smrg  ;;
18111a5602400Smrgesac
18112b9b4fd27Smrgfi
18113a5602400SmrgXSLTPROC=$ac_cv_path_XSLTPROC
18114a5602400Smrgif test -n "$XSLTPROC"; then
18115a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18116a5602400Smrg$as_echo "$XSLTPROC" >&6; }
18117b9b4fd27Smrgelse
18118a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119a5602400Smrg$as_echo "no" >&6; }
18120a5602400Smrgfi
18121caade7ccSmrg
18122a5602400Smrg
18123a5602400Smrg   if test "x$XSLTPROC" = "x"; then
18124a5602400Smrg        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18125a5602400Smrg   fi
18126a5602400Smrg   have_xsltproc=yes
18127a5602400Smrgelif test "x$use_xsltproc" = x"no" ; then
18128a5602400Smrg   if test "x$XSLTPROC" != "x"; then
18129a5602400Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18130a5602400Smrg$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18131a5602400Smrg   fi
18132a5602400Smrg   have_xsltproc=no
18133b9b4fd27Smrgelse
18134a5602400Smrg   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18135b9b4fd27Smrgfi
18136a5602400Smrg
18137a5602400Smrg if test "$have_xsltproc" = yes; then
18138a5602400Smrg  HAVE_XSLTPROC_TRUE=
18139a5602400Smrg  HAVE_XSLTPROC_FALSE='#'
18140a5602400Smrgelse
18141a5602400Smrg  HAVE_XSLTPROC_TRUE='#'
18142a5602400Smrg  HAVE_XSLTPROC_FALSE=
18143b9b4fd27Smrgfi
18144caade7ccSmrg
18145a5602400Smrg
18146a5602400Smrg
18147af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18148af9a7ee5Smrg$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18149a5602400SmrgXORG_SGML_PATH=
18150a5602400Smrgif test -n "$PKG_CONFIG" && \
18151af9a7ee5Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18152af9a7ee5Smrg  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18153a5602400Smrg  ac_status=$?
18154a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18155a5602400Smrg  test $ac_status = 0; }; then
18156a5602400Smrg  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18157a5602400Smrgelse
18158a5602400Smrg  :
18159a5602400Smrg
18160b9b4fd27Smrgfi
18161a5602400Smrg
18162a5602400Smrg# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18163a5602400Smrg# the path and the name of the doc stylesheet
18164a5602400Smrgif test "x$XORG_SGML_PATH" != "x" ; then
18165a5602400Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18166a5602400Smrg$as_echo "$XORG_SGML_PATH" >&6; }
18167a5602400Smrg   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18168a5602400Smrg   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18169a5602400Smrgelse
18170a5602400Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18171a5602400Smrg$as_echo "no" >&6; }
18172b9b4fd27Smrgfi
18173caade7ccSmrg
18174caade7ccSmrg
18175a5602400Smrg
18176a5602400Smrg
18177a5602400Smrg if test "x$XSL_STYLESHEET" != "x"; then
18178a5602400Smrg  HAVE_STYLESHEETS_TRUE=
18179a5602400Smrg  HAVE_STYLESHEETS_FALSE='#'
18180a5602400Smrgelse
18181a5602400Smrg  HAVE_STYLESHEETS_TRUE='#'
18182a5602400Smrg  HAVE_STYLESHEETS_FALSE=
18183b9b4fd27Smrgfi
18184caade7ccSmrg
18185caade7ccSmrg
18186caade7ccSmrg
18187b9b4fd27Smrg# Check whether --enable-malloc0returnsnull was given.
18188b9b4fd27Smrgif test "${enable_malloc0returnsnull+set}" = set; then :
18189b9b4fd27Smrg  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
18190b9b4fd27Smrgelse
18191b9b4fd27Smrg  MALLOC_ZERO_RETURNS_NULL=auto
18192b9b4fd27Smrgfi
18193caade7ccSmrg
18194caade7ccSmrg
18195b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
18196b9b4fd27Smrg$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
18197b9b4fd27Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18198b9b4fd27Smrg	if test "$cross_compiling" = yes; then :
18199b9b4fd27Smrg  MALLOC_ZERO_RETURNS_NULL=yes
18200b9b4fd27Smrgelse
18201b9b4fd27Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202b9b4fd27Smrg/* end confdefs.h.  */
18203caade7ccSmrg
18204a5602400Smrg#include <stdlib.h>
18205a5602400Smrg
18206a5602400Smrgint
18207a5602400Smrgmain ()
18208a5602400Smrg{
18209a5602400Smrg
18210b9b4fd27Smrg    char *m0, *r0, *c0, *p;
18211b9b4fd27Smrg    m0 = malloc(0);
18212b9b4fd27Smrg    p = malloc(10);
18213b9b4fd27Smrg    r0 = realloc(p,0);
18214a5602400Smrg    c0 = calloc(0,10);
18215a5602400Smrg    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
18216a5602400Smrg
18217a5602400Smrg  ;
18218a5602400Smrg  return 0;
18219b9b4fd27Smrg}
18220b9b4fd27Smrg_ACEOF
18221b9b4fd27Smrgif ac_fn_c_try_run "$LINENO"; then :
18222b9b4fd27Smrg  MALLOC_ZERO_RETURNS_NULL=yes
18223b9b4fd27Smrgelse
18224b9b4fd27Smrg  MALLOC_ZERO_RETURNS_NULL=no
18225b9b4fd27Smrgfi
18226b9b4fd27Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18227b9b4fd27Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
18228b9b4fd27Smrgfi
18229caade7ccSmrg
18230b9b4fd27Smrgfi
18231b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18232b9b4fd27Smrg$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
18233caade7ccSmrg
18234b9b4fd27Smrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18235b9b4fd27Smrg	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18236b9b4fd27Smrg	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18237b9b4fd27Smrg	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18238b9b4fd27Smrgelse
18239b9b4fd27Smrg	MALLOC_ZERO_CFLAGS=""
18240b9b4fd27Smrg	XMALLOC_ZERO_CFLAGS=""
18241b9b4fd27Smrg	XTMALLOC_ZERO_CFLAGS=""
18242b9b4fd27Smrgfi
18243caade7ccSmrg
18244caade7ccSmrg
18245caade7ccSmrg
18246caade7ccSmrg
18247caade7ccSmrg
18248caade7ccSmrg
18249a5602400Smrg# Determine .so library version per platform
18250a5602400Smrg# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
18251a5602400Smrgif test "x$XEXT_SOREV" = "x" ; then
18252a5602400Smrg    case $host_os in
18253a5602400Smrg	openbsd*)	XEXT_SOREV=8:0 		;;
18254a5602400Smrg	solaris*)       XEXT_SOREV=0 		;;
18255a5602400Smrg	*)              XEXT_SOREV=6:4:0 	;;
18256a5602400Smrg    esac
18257a5602400Smrgfi
18258a5602400Smrg
18259a5602400Smrg
18260a5602400Smrg# Obtain compiler/linker options for depedencies
18261a5602400Smrg
18262a5602400Smrgpkg_failed=no
18263a5602400Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18264a5602400Smrg$as_echo_n "checking for XEXT... " >&6; }
18265a5602400Smrg
18266a5602400Smrgif test -n "$XEXT_CFLAGS"; then
18267a5602400Smrg    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18268a5602400Smrg elif test -n "$PKG_CONFIG"; then
18269a5602400Smrg    if test -n "$PKG_CONFIG" && \
18270a5602400Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99\""; } >&5
18271a5602400Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99") 2>&5
18272a5602400Smrg  ac_status=$?
18273a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18274a5602400Smrg  test $ac_status = 0; }; then
18275a5602400Smrg  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>/dev/null`
18276a5602400Smrgelse
18277a5602400Smrg  pkg_failed=yes
18278a5602400Smrgfi
18279a5602400Smrg else
18280a5602400Smrg    pkg_failed=untried
18281a5602400Smrgfi
18282a5602400Smrgif test -n "$XEXT_LIBS"; then
18283a5602400Smrg    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18284a5602400Smrg elif test -n "$PKG_CONFIG"; then
18285a5602400Smrg    if test -n "$PKG_CONFIG" && \
18286a5602400Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99\""; } >&5
18287a5602400Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99") 2>&5
18288a5602400Smrg  ac_status=$?
18289a5602400Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18290a5602400Smrg  test $ac_status = 0; }; then
18291a5602400Smrg  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>/dev/null`
18292a5602400Smrgelse
18293a5602400Smrg  pkg_failed=yes
18294a5602400Smrgfi
18295a5602400Smrg else
18296a5602400Smrg    pkg_failed=untried
18297a5602400Smrgfi
18298a5602400Smrg
18299a5602400Smrg
18300a5602400Smrg
18301a5602400Smrgif test $pkg_failed = yes; then
18302a5602400Smrg
18303a5602400Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18304a5602400Smrg        _pkg_short_errors_supported=yes
18305a5602400Smrgelse
18306a5602400Smrg        _pkg_short_errors_supported=no
18307a5602400Smrgfi
18308a5602400Smrg        if test $_pkg_short_errors_supported = yes; then
18309a5602400Smrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>&1`
18310a5602400Smrg        else
18311a5602400Smrg	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99" 2>&1`
18312a5602400Smrg        fi
18313a5602400Smrg	# Put the nasty error message in config.log where it belongs
18314a5602400Smrg	echo "$XEXT_PKG_ERRORS" >&5
18315a5602400Smrg
18316a5602400Smrg	as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99) were not met:
18317a5602400Smrg
18318a5602400Smrg$XEXT_PKG_ERRORS
18319a5602400Smrg
18320a5602400SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
18321a5602400Smrginstalled software in a non-standard prefix.
18322a5602400Smrg
18323a5602400SmrgAlternatively, you may set the environment variables XEXT_CFLAGS
18324a5602400Smrgand XEXT_LIBS to avoid the need to call pkg-config.
18325a5602400SmrgSee the pkg-config man page for more details.
18326a5602400Smrg" "$LINENO" 5
18327a5602400Smrgelif test $pkg_failed = untried; then
18328a5602400Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18329a5602400Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18330a5602400Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18331a5602400Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
18332a5602400Smrgpath to pkg-config.
18333a5602400Smrg
18334a5602400SmrgAlternatively, you may set the environment variables XEXT_CFLAGS
18335a5602400Smrgand XEXT_LIBS to avoid the need to call pkg-config.
18336a5602400SmrgSee the pkg-config man page for more details.
18337a5602400Smrg
18338a5602400SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
18339a5602400SmrgSee \`config.log' for more details" "$LINENO" 5; }
18340a5602400Smrgelse
18341a5602400Smrg	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18342a5602400Smrg	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18343a5602400Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18344a5602400Smrg$as_echo "yes" >&6; }
18345a5602400Smrg	:
18346a5602400Smrgfi
18347a5602400Smrg
18348af9a7ee5Smrg# Check for _XEatDataWords function that may be patched into older Xlib releases
18349af9a7ee5SmrgSAVE_LIBS="$LIBS"
18350af9a7ee5SmrgLIBS="$XEXT_LIBS"
18351af9a7ee5Smrgfor ac_func in _XEatDataWords
18352af9a7ee5Smrgdo :
18353af9a7ee5Smrg  ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords"
18354af9a7ee5Smrgif test "x$ac_cv_func__XEatDataWords" = xyes; then :
18355af9a7ee5Smrg  cat >>confdefs.h <<_ACEOF
18356af9a7ee5Smrg#define HAVE__XEATDATAWORDS 1
18357af9a7ee5Smrg_ACEOF
18358af9a7ee5Smrg
18359af9a7ee5Smrgfi
18360af9a7ee5Smrgdone
18361af9a7ee5Smrg
18362af9a7ee5SmrgLIBS="$SAVE_LIBS"
18363af9a7ee5Smrg
18364a5602400Smrg# Allow checking code with lint, sparse, etc.
18365caade7ccSmrg
18366caade7ccSmrg
18367e8a5466aSmrg
18368e8a5466aSmrg
18369e8a5466aSmrg
18370e8a5466aSmrg# Check whether --with-lint was given.
18371e8a5466aSmrgif test "${with_lint+set}" = set; then :
18372e8a5466aSmrg  withval=$with_lint; use_lint=$withval
18373e8a5466aSmrgelse
18374e8a5466aSmrg  use_lint=no
18375e8a5466aSmrgfi
18376e8a5466aSmrg
18377e8a5466aSmrg
18378e8a5466aSmrg# Obtain platform specific info like program name and options
18379e8a5466aSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
18380e8a5466aSmrgcase $host_os in
18381e8a5466aSmrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
18382e8a5466aSmrg	lint_name=splint
18383e8a5466aSmrg	lint_options="-badflag"
18384e8a5466aSmrg	;;
18385e8a5466aSmrg  *freebsd* | *netbsd*)
18386e8a5466aSmrg	lint_name=lint
18387e8a5466aSmrg	lint_options="-u -b"
18388e8a5466aSmrg	;;
18389e8a5466aSmrg  *solaris*)
18390e8a5466aSmrg	lint_name=lint
18391e8a5466aSmrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
18392e8a5466aSmrg	;;
18393e8a5466aSmrgesac
18394e8a5466aSmrg
18395e8a5466aSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
18396e8a5466aSmrgif test "x$use_lint" = x"yes" ; then
18397e8a5466aSmrg   # Extract the first word of "$lint_name", so it can be a program name with args.
18398e8a5466aSmrgset dummy $lint_name; ac_word=$2
18399b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18400b9b4fd27Smrg$as_echo_n "checking for $ac_word... " >&6; }
18401e8a5466aSmrgif ${ac_cv_path_LINT+:} false; then :
18402b9b4fd27Smrg  $as_echo_n "(cached) " >&6
18403b9b4fd27Smrgelse
18404e8a5466aSmrg  case $LINT in
18405b9b4fd27Smrg  [\\/]* | ?:[\\/]*)
18406e8a5466aSmrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
18407caade7ccSmrg  ;;
18408b9b4fd27Smrg  *)
18409b9b4fd27Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18410e8a5466aSmrgfor as_dir in $PATH
18411b9b4fd27Smrgdo
18412b9b4fd27Smrg  IFS=$as_save_IFS
18413b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
18414b9b4fd27Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
18415b9b4fd27Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18416e8a5466aSmrg    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
18417b9b4fd27Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18418b9b4fd27Smrg    break 2
18419caade7ccSmrg  fi
18420b9b4fd27Smrgdone
18421b9b4fd27Smrg  done
18422b9b4fd27SmrgIFS=$as_save_IFS
18423caade7ccSmrg
18424caade7ccSmrg  ;;
18425b9b4fd27Smrgesac
18426b9b4fd27Smrgfi
18427e8a5466aSmrgLINT=$ac_cv_path_LINT
18428e8a5466aSmrgif test -n "$LINT"; then
18429e8a5466aSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
18430e8a5466aSmrg$as_echo "$LINT" >&6; }
18431b9b4fd27Smrgelse
18432b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433b9b4fd27Smrg$as_echo "no" >&6; }
18434b9b4fd27Smrgfi
18435caade7ccSmrg
18436caade7ccSmrg
18437e8a5466aSmrg   if test "x$LINT" = "x"; then
18438e8a5466aSmrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
18439e8a5466aSmrg   fi
18440e8a5466aSmrgelif test "x$use_lint" = x"no" ; then
18441e8a5466aSmrg   if test "x$LINT" != "x"; then
18442e8a5466aSmrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
18443e8a5466aSmrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
18444e8a5466aSmrg   fi
18445caade7ccSmrgelse
18446e8a5466aSmrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
18447caade7ccSmrgfi
18448caade7ccSmrg
18449e8a5466aSmrg# User supplied flags override default flags
18450e8a5466aSmrgif test "x$LINT_FLAGS" != "x"; then
18451e8a5466aSmrg   lint_options=$LINT_FLAGS
18452caade7ccSmrgfi
18453caade7ccSmrg
18454e8a5466aSmrgLINT_FLAGS=$lint_options
18455caade7ccSmrg
18456e8a5466aSmrg if test "x$LINT" != x; then
18457b9b4fd27Smrg  LINT_TRUE=
18458b9b4fd27Smrg  LINT_FALSE='#'
18459b9b4fd27Smrgelse
18460b9b4fd27Smrg  LINT_TRUE='#'
18461b9b4fd27Smrg  LINT_FALSE=
18462b9b4fd27Smrgfi
18463caade7ccSmrg
18464caade7ccSmrg
18465caade7ccSmrg
18466caade7ccSmrg
18467caade7ccSmrg
18468b9b4fd27Smrg# Check whether --enable-lint-library was given.
18469b9b4fd27Smrgif test "${enable_lint_library+set}" = set; then :
18470b9b4fd27Smrg  enableval=$enable_lint_library; make_lint_lib=$enableval
18471b9b4fd27Smrgelse
18472b9b4fd27Smrg  make_lint_lib=no
18473b9b4fd27Smrgfi
18474caade7ccSmrg
18475e8a5466aSmrg
18476e8a5466aSmrgif test "x$make_lint_lib" = x"yes" ; then
18477e8a5466aSmrg   LINTLIB=llib-lXext.ln
18478e8a5466aSmrg   if test "x$LINT" = "x"; then
18479e8a5466aSmrg        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
18480e8a5466aSmrg   fi
18481e8a5466aSmrgelif test "x$make_lint_lib" != x"no" ; then
18482e8a5466aSmrg   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
18483b9b4fd27Smrgfi
18484caade7ccSmrg
18485e8a5466aSmrg
18486b9b4fd27Smrg if test x$make_lint_lib != xno; then
18487b9b4fd27Smrg  MAKE_LINT_LIB_TRUE=
18488b9b4fd27Smrg  MAKE_LINT_LIB_FALSE='#'
18489b9b4fd27Smrgelse
18490b9b4fd27Smrg  MAKE_LINT_LIB_TRUE='#'
18491b9b4fd27Smrg  MAKE_LINT_LIB_FALSE=
18492b9b4fd27Smrgfi
18493caade7ccSmrg
18494caade7ccSmrg
18495caade7ccSmrg
18496caade7ccSmrg
18497e8a5466aSmrgac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xext.pc"
18498caade7ccSmrg
18499b9b4fd27Smrgcat >confcache <<\_ACEOF
18500b9b4fd27Smrg# This file is a shell script that caches the results of configure
18501b9b4fd27Smrg# tests run on this system so they can be shared between configure
18502b9b4fd27Smrg# scripts and configure runs, see configure's option --config-cache.
18503b9b4fd27Smrg# It is not useful on other systems.  If it contains results you don't
18504b9b4fd27Smrg# want to keep, you may remove or edit it.
18505b9b4fd27Smrg#
18506b9b4fd27Smrg# config.status only pays attention to the cache file if you give it
18507b9b4fd27Smrg# the --recheck option to rerun configure.
18508b9b4fd27Smrg#
18509b9b4fd27Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
18510b9b4fd27Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
18511b9b4fd27Smrg# following values.
18512caade7ccSmrg
18513b9b4fd27Smrg_ACEOF
18514caade7ccSmrg
18515b9b4fd27Smrg# The following way of writing the cache mishandles newlines in values,
18516b9b4fd27Smrg# but we know of no workaround that is simple, portable, and efficient.
18517b9b4fd27Smrg# So, we kill variables containing newlines.
18518b9b4fd27Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
18519b9b4fd27Smrg# and sets the high bit in the cache file unless we assign to the vars.
18520b9b4fd27Smrg(
18521b9b4fd27Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18522b9b4fd27Smrg    eval ac_val=\$$ac_var
18523b9b4fd27Smrg    case $ac_val in #(
18524b9b4fd27Smrg    *${as_nl}*)
18525b9b4fd27Smrg      case $ac_var in #(
18526b9b4fd27Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18527b9b4fd27Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18528b9b4fd27Smrg      esac
18529b9b4fd27Smrg      case $ac_var in #(
18530b9b4fd27Smrg      _ | IFS | as_nl) ;; #(
18531b9b4fd27Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18532b9b4fd27Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
18533b9b4fd27Smrg      esac ;;
18534b9b4fd27Smrg    esac
18535b9b4fd27Smrg  done
18536caade7ccSmrg
18537b9b4fd27Smrg  (set) 2>&1 |
18538b9b4fd27Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18539b9b4fd27Smrg    *${as_nl}ac_space=\ *)
18540b9b4fd27Smrg      # `set' does not quote correctly, so add quotes: double-quote
18541b9b4fd27Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
18542b9b4fd27Smrg      sed -n \
18543b9b4fd27Smrg	"s/'/'\\\\''/g;
18544b9b4fd27Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18545b9b4fd27Smrg      ;; #(
18546b9b4fd27Smrg    *)
18547b9b4fd27Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
18548b9b4fd27Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18549b9b4fd27Smrg      ;;
18550b9b4fd27Smrg    esac |
18551b9b4fd27Smrg    sort
18552b9b4fd27Smrg) |
18553b9b4fd27Smrg  sed '
18554b9b4fd27Smrg     /^ac_cv_env_/b end
18555b9b4fd27Smrg     t clear
18556b9b4fd27Smrg     :clear
18557b9b4fd27Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18558b9b4fd27Smrg     t end
18559b9b4fd27Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18560b9b4fd27Smrg     :end' >>confcache
18561b9b4fd27Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18562b9b4fd27Smrg  if test -w "$cache_file"; then
18563e8a5466aSmrg    if test "x$cache_file" != "x/dev/null"; then
18564b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18565b9b4fd27Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
18566e8a5466aSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
18567e8a5466aSmrg	cat confcache >"$cache_file"
18568e8a5466aSmrg      else
18569e8a5466aSmrg        case $cache_file in #(
18570e8a5466aSmrg        */* | ?:*)
18571e8a5466aSmrg	  mv -f confcache "$cache_file"$$ &&
18572e8a5466aSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18573e8a5466aSmrg        *)
18574e8a5466aSmrg	  mv -f confcache "$cache_file" ;;
18575e8a5466aSmrg	esac
18576e8a5466aSmrg      fi
18577e8a5466aSmrg    fi
18578b9b4fd27Smrg  else
18579b9b4fd27Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18580b9b4fd27Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18581b9b4fd27Smrg  fi
18582b9b4fd27Smrgfi
18583b9b4fd27Smrgrm -f confcache
18584caade7ccSmrg
18585b9b4fd27Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
18586b9b4fd27Smrg# Let make expand exec_prefix.
18587b9b4fd27Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18588caade7ccSmrg
18589b9b4fd27SmrgDEFS=-DHAVE_CONFIG_H
18590caade7ccSmrg
18591b9b4fd27Smrgac_libobjs=
18592b9b4fd27Smrgac_ltlibobjs=
18593e8a5466aSmrgU=
18594b9b4fd27Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18595b9b4fd27Smrg  # 1. Remove the extension, and $U if already installed.
18596b9b4fd27Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18597b9b4fd27Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18598b9b4fd27Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18599b9b4fd27Smrg  #    will be set to the directory where LIBOBJS objects are built.
18600b9b4fd27Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18601b9b4fd27Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18602b9b4fd27Smrgdone
18603b9b4fd27SmrgLIBOBJS=$ac_libobjs
18604caade7ccSmrg
18605b9b4fd27SmrgLTLIBOBJS=$ac_ltlibobjs
18606caade7ccSmrg
18607caade7ccSmrg
18608af9a7ee5Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18609af9a7ee5Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
18610af9a7ee5Smrg   if test -n "$am_sleep_pid"; then
18611af9a7ee5Smrg     # Hide warnings about reused PIDs.
18612af9a7ee5Smrg     wait $am_sleep_pid 2>/dev/null
18613af9a7ee5Smrg   fi
18614af9a7ee5Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18615af9a7ee5Smrg$as_echo "done" >&6; }
18616b9b4fd27Smrg if test -n "$EXEEXT"; then
18617b9b4fd27Smrg  am__EXEEXT_TRUE=
18618b9b4fd27Smrg  am__EXEEXT_FALSE='#'
18619b9b4fd27Smrgelse
18620b9b4fd27Smrg  am__EXEEXT_TRUE='#'
18621b9b4fd27Smrg  am__EXEEXT_FALSE=
18622b9b4fd27Smrgfi
18623caade7ccSmrg
18624b9b4fd27Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18625e8a5466aSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
18626b9b4fd27SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18627b9b4fd27Smrgfi
18628b9b4fd27Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18629e8a5466aSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18630e8a5466aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18631e8a5466aSmrgfi
18632e8a5466aSmrgif test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
18633e8a5466aSmrg  as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
18634e8a5466aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18635e8a5466aSmrgfi
18636e8a5466aSmrgif test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
18637e8a5466aSmrg  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
18638e8a5466aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18639e8a5466aSmrgfi
18640e8a5466aSmrgif test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
18641e8a5466aSmrg  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
18642e8a5466aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18643e8a5466aSmrgfi
18644e8a5466aSmrgif test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
18645e8a5466aSmrg  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
18646e8a5466aSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18647e8a5466aSmrgfi
18648a5602400Smrgif test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
18649a5602400Smrg  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
18650b9b4fd27SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18651b9b4fd27Smrgfi
18652a5602400Smrgif test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
18653a5602400Smrg  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
18654b9b4fd27SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18655b9b4fd27Smrgfi
18656b9b4fd27Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18657e8a5466aSmrg  as_fn_error $? "conditional \"LINT\" was never defined.
18658b9b4fd27SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18659b9b4fd27Smrgfi
18660b9b4fd27Smrgif test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
18661e8a5466aSmrg  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
18662b9b4fd27SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
18663b9b4fd27Smrgfi
18664caade7ccSmrg
18665e8a5466aSmrg: "${CONFIG_STATUS=./config.status}"
18666b9b4fd27Smrgac_write_fail=0
18667b9b4fd27Smrgac_clean_files_save=$ac_clean_files
18668b9b4fd27Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
18669b9b4fd27Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18670b9b4fd27Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18671b9b4fd27Smrgas_write_fail=0
18672b9b4fd27Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18673b9b4fd27Smrg#! $SHELL
18674b9b4fd27Smrg# Generated by $as_me.
18675b9b4fd27Smrg# Run this file to recreate the current configuration.
18676b9b4fd27Smrg# Compiler output produced by configure, useful for debugging
18677b9b4fd27Smrg# configure, is in config.log if it exists.
18678caade7ccSmrg
18679b9b4fd27Smrgdebug=false
18680b9b4fd27Smrgac_cs_recheck=false
18681b9b4fd27Smrgac_cs_silent=false
18682caade7ccSmrg
18683b9b4fd27SmrgSHELL=\${CONFIG_SHELL-$SHELL}
18684b9b4fd27Smrgexport SHELL
18685b9b4fd27Smrg_ASEOF
18686b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18687b9b4fd27Smrg## -------------------- ##
18688b9b4fd27Smrg## M4sh Initialization. ##
18689b9b4fd27Smrg## -------------------- ##
18690caade7ccSmrg
18691b9b4fd27Smrg# Be more Bourne compatible
18692b9b4fd27SmrgDUALCASE=1; export DUALCASE # for MKS sh
18693b9b4fd27Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18694b9b4fd27Smrg  emulate sh
18695b9b4fd27Smrg  NULLCMD=:
18696b9b4fd27Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18697b9b4fd27Smrg  # is contrary to our usage.  Disable this feature.
18698b9b4fd27Smrg  alias -g '${1+"$@"}'='"$@"'
18699b9b4fd27Smrg  setopt NO_GLOB_SUBST
18700b9b4fd27Smrgelse
18701b9b4fd27Smrg  case `(set -o) 2>/dev/null` in #(
18702b9b4fd27Smrg  *posix*) :
18703b9b4fd27Smrg    set -o posix ;; #(
18704b9b4fd27Smrg  *) :
18705b9b4fd27Smrg     ;;
18706b9b4fd27Smrgesac
18707b9b4fd27Smrgfi
18708caade7ccSmrg
18709caade7ccSmrg
18710b9b4fd27Smrgas_nl='
18711b9b4fd27Smrg'
18712b9b4fd27Smrgexport as_nl
18713b9b4fd27Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
18714b9b4fd27Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18715b9b4fd27Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18716b9b4fd27Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18717b9b4fd27Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
18718b9b4fd27Smrg# but without wasting forks for bash or zsh.
18719b9b4fd27Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
18720b9b4fd27Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18721b9b4fd27Smrg  as_echo='print -r --'
18722b9b4fd27Smrg  as_echo_n='print -rn --'
18723b9b4fd27Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18724b9b4fd27Smrg  as_echo='printf %s\n'
18725b9b4fd27Smrg  as_echo_n='printf %s'
18726b9b4fd27Smrgelse
18727b9b4fd27Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18728b9b4fd27Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18729b9b4fd27Smrg    as_echo_n='/usr/ucb/echo -n'
18730b9b4fd27Smrg  else
18731b9b4fd27Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18732b9b4fd27Smrg    as_echo_n_body='eval
18733b9b4fd27Smrg      arg=$1;
18734b9b4fd27Smrg      case $arg in #(
18735b9b4fd27Smrg      *"$as_nl"*)
18736b9b4fd27Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
18737b9b4fd27Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18738b9b4fd27Smrg      esac;
18739b9b4fd27Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18740b9b4fd27Smrg    '
18741b9b4fd27Smrg    export as_echo_n_body
18742b9b4fd27Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
18743b9b4fd27Smrg  fi
18744b9b4fd27Smrg  export as_echo_body
18745b9b4fd27Smrg  as_echo='sh -c $as_echo_body as_echo'
18746b9b4fd27Smrgfi
18747caade7ccSmrg
18748b9b4fd27Smrg# The user is always right.
18749b9b4fd27Smrgif test "${PATH_SEPARATOR+set}" != set; then
18750b9b4fd27Smrg  PATH_SEPARATOR=:
18751b9b4fd27Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18752b9b4fd27Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18753b9b4fd27Smrg      PATH_SEPARATOR=';'
18754b9b4fd27Smrg  }
18755b9b4fd27Smrgfi
18756caade7ccSmrg
18757caade7ccSmrg
18758b9b4fd27Smrg# IFS
18759b9b4fd27Smrg# We need space, tab and new line, in precisely that order.  Quoting is
18760b9b4fd27Smrg# there to prevent editors from complaining about space-tab.
18761b9b4fd27Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18762b9b4fd27Smrg# splitting by setting IFS to empty value.)
18763b9b4fd27SmrgIFS=" ""	$as_nl"
18764caade7ccSmrg
18765b9b4fd27Smrg# Find who we are.  Look in the path if we contain no directory separator.
18766e8a5466aSmrgas_myself=
18767b9b4fd27Smrgcase $0 in #((
18768b9b4fd27Smrg  *[\\/]* ) as_myself=$0 ;;
18769b9b4fd27Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770b9b4fd27Smrgfor as_dir in $PATH
18771b9b4fd27Smrgdo
18772b9b4fd27Smrg  IFS=$as_save_IFS
18773b9b4fd27Smrg  test -z "$as_dir" && as_dir=.
18774b9b4fd27Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18775b9b4fd27Smrg  done
18776b9b4fd27SmrgIFS=$as_save_IFS
18777caade7ccSmrg
18778b9b4fd27Smrg     ;;
18779b9b4fd27Smrgesac
18780b9b4fd27Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
18781b9b4fd27Smrg# in which case we are not to be found in the path.
18782b9b4fd27Smrgif test "x$as_myself" = x; then
18783b9b4fd27Smrg  as_myself=$0
18784b9b4fd27Smrgfi
18785b9b4fd27Smrgif test ! -f "$as_myself"; then
18786b9b4fd27Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18787b9b4fd27Smrg  exit 1
18788b9b4fd27Smrgfi
18789caade7ccSmrg
18790b9b4fd27Smrg# Unset variables that we do not need and which cause bugs (e.g. in
18791b9b4fd27Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18792b9b4fd27Smrg# suppresses any "Segmentation fault" message there.  '((' could
18793b9b4fd27Smrg# trigger a bug in pdksh 5.2.14.
18794b9b4fd27Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
18795b9b4fd27Smrgdo eval test x\${$as_var+set} = xset \
18796b9b4fd27Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18797b9b4fd27Smrgdone
18798b9b4fd27SmrgPS1='$ '
18799b9b4fd27SmrgPS2='> '
18800b9b4fd27SmrgPS4='+ '
18801caade7ccSmrg
18802b9b4fd27Smrg# NLS nuisances.
18803b9b4fd27SmrgLC_ALL=C
18804b9b4fd27Smrgexport LC_ALL
18805b9b4fd27SmrgLANGUAGE=C
18806b9b4fd27Smrgexport LANGUAGE
18807caade7ccSmrg
18808b9b4fd27Smrg# CDPATH.
18809b9b4fd27Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18810caade7ccSmrg
18811caade7ccSmrg
18812e8a5466aSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
18813e8a5466aSmrg# ----------------------------------------
18814b9b4fd27Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18815b9b4fd27Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18816e8a5466aSmrg# script with STATUS, using 1 if that was 0.
18817b9b4fd27Smrgas_fn_error ()
18818b9b4fd27Smrg{
18819e8a5466aSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
18820e8a5466aSmrg  if test "$4"; then
18821e8a5466aSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18822e8a5466aSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18823b9b4fd27Smrg  fi
18824e8a5466aSmrg  $as_echo "$as_me: error: $2" >&2
18825b9b4fd27Smrg  as_fn_exit $as_status
18826b9b4fd27Smrg} # as_fn_error
18827caade7ccSmrg
18828caade7ccSmrg
18829b9b4fd27Smrg# as_fn_set_status STATUS
18830b9b4fd27Smrg# -----------------------
18831b9b4fd27Smrg# Set $? to STATUS, without forking.
18832b9b4fd27Smrgas_fn_set_status ()
18833b9b4fd27Smrg{
18834b9b4fd27Smrg  return $1
18835b9b4fd27Smrg} # as_fn_set_status
18836caade7ccSmrg
18837b9b4fd27Smrg# as_fn_exit STATUS
18838b9b4fd27Smrg# -----------------
18839b9b4fd27Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18840b9b4fd27Smrgas_fn_exit ()
18841b9b4fd27Smrg{
18842b9b4fd27Smrg  set +e
18843b9b4fd27Smrg  as_fn_set_status $1
18844b9b4fd27Smrg  exit $1
18845b9b4fd27Smrg} # as_fn_exit
18846b9b4fd27Smrg
18847b9b4fd27Smrg# as_fn_unset VAR
18848b9b4fd27Smrg# ---------------
18849b9b4fd27Smrg# Portably unset VAR.
18850b9b4fd27Smrgas_fn_unset ()
18851b9b4fd27Smrg{
18852b9b4fd27Smrg  { eval $1=; unset $1;}
18853b9b4fd27Smrg}
18854b9b4fd27Smrgas_unset=as_fn_unset
18855b9b4fd27Smrg# as_fn_append VAR VALUE
18856b9b4fd27Smrg# ----------------------
18857b9b4fd27Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
18858b9b4fd27Smrg# advantage of any shell optimizations that allow amortized linear growth over
18859b9b4fd27Smrg# repeated appends, instead of the typical quadratic growth present in naive
18860b9b4fd27Smrg# implementations.
18861b9b4fd27Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18862b9b4fd27Smrg  eval 'as_fn_append ()
18863b9b4fd27Smrg  {
18864b9b4fd27Smrg    eval $1+=\$2
18865b9b4fd27Smrg  }'
18866b9b4fd27Smrgelse
18867b9b4fd27Smrg  as_fn_append ()
18868b9b4fd27Smrg  {
18869b9b4fd27Smrg    eval $1=\$$1\$2
18870b9b4fd27Smrg  }
18871b9b4fd27Smrgfi # as_fn_append
18872b9b4fd27Smrg
18873b9b4fd27Smrg# as_fn_arith ARG...
18874b9b4fd27Smrg# ------------------
18875b9b4fd27Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
18876b9b4fd27Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
18877b9b4fd27Smrg# must be portable across $(()) and expr.
18878b9b4fd27Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18879b9b4fd27Smrg  eval 'as_fn_arith ()
18880b9b4fd27Smrg  {
18881b9b4fd27Smrg    as_val=$(( $* ))
18882b9b4fd27Smrg  }'
18883b9b4fd27Smrgelse
18884b9b4fd27Smrg  as_fn_arith ()
18885b9b4fd27Smrg  {
18886b9b4fd27Smrg    as_val=`expr "$@" || test $? -eq 1`
18887b9b4fd27Smrg  }
18888b9b4fd27Smrgfi # as_fn_arith
18889caade7ccSmrg
18890caade7ccSmrg
18891b9b4fd27Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
18892b9b4fd27Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18893b9b4fd27Smrg  as_expr=expr
18894b9b4fd27Smrgelse
18895b9b4fd27Smrg  as_expr=false
18896b9b4fd27Smrgfi
18897caade7ccSmrg
18898b9b4fd27Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18899b9b4fd27Smrg  as_basename=basename
18900b9b4fd27Smrgelse
18901b9b4fd27Smrg  as_basename=false
18902b9b4fd27Smrgfi
18903caade7ccSmrg
18904b9b4fd27Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18905b9b4fd27Smrg  as_dirname=dirname
18906b9b4fd27Smrgelse
18907b9b4fd27Smrg  as_dirname=false
18908b9b4fd27Smrgfi
18909caade7ccSmrg
18910b9b4fd27Smrgas_me=`$as_basename -- "$0" ||
18911b9b4fd27Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18912b9b4fd27Smrg	 X"$0" : 'X\(//\)$' \| \
18913b9b4fd27Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18914b9b4fd27Smrg$as_echo X/"$0" |
18915b9b4fd27Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
18916b9b4fd27Smrg	    s//\1/
18917b9b4fd27Smrg	    q
18918b9b4fd27Smrg	  }
18919b9b4fd27Smrg	  /^X\/\(\/\/\)$/{
18920b9b4fd27Smrg	    s//\1/
18921b9b4fd27Smrg	    q
18922b9b4fd27Smrg	  }
18923b9b4fd27Smrg	  /^X\/\(\/\).*/{
18924b9b4fd27Smrg	    s//\1/
18925b9b4fd27Smrg	    q
18926b9b4fd27Smrg	  }
18927b9b4fd27Smrg	  s/.*/./; q'`
18928caade7ccSmrg
18929b9b4fd27Smrg# Avoid depending upon Character Ranges.
18930b9b4fd27Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
18931b9b4fd27Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18932b9b4fd27Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
18933b9b4fd27Smrgas_cr_digits='0123456789'
18934b9b4fd27Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
18935caade7ccSmrg
18936b9b4fd27SmrgECHO_C= ECHO_N= ECHO_T=
18937b9b4fd27Smrgcase `echo -n x` in #(((((
18938b9b4fd27Smrg-n*)
18939b9b4fd27Smrg  case `echo 'xy\c'` in
18940b9b4fd27Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18941b9b4fd27Smrg  xy)  ECHO_C='\c';;
18942b9b4fd27Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18943b9b4fd27Smrg       ECHO_T='	';;
18944b9b4fd27Smrg  esac;;
18945b9b4fd27Smrg*)
18946b9b4fd27Smrg  ECHO_N='-n';;
18947b9b4fd27Smrgesac
18948caade7ccSmrg
18949b9b4fd27Smrgrm -f conf$$ conf$$.exe conf$$.file
18950b9b4fd27Smrgif test -d conf$$.dir; then
18951b9b4fd27Smrg  rm -f conf$$.dir/conf$$.file
18952b9b4fd27Smrgelse
18953b9b4fd27Smrg  rm -f conf$$.dir
18954b9b4fd27Smrg  mkdir conf$$.dir 2>/dev/null
18955b9b4fd27Smrgfi
18956b9b4fd27Smrgif (echo >conf$$.file) 2>/dev/null; then
18957b9b4fd27Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
18958b9b4fd27Smrg    as_ln_s='ln -s'
18959b9b4fd27Smrg    # ... but there are two gotchas:
18960b9b4fd27Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18961b9b4fd27Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18962b9b4fd27Smrg    # In both cases, we have to default to `cp -p'.
18963b9b4fd27Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18964b9b4fd27Smrg      as_ln_s='cp -p'
18965b9b4fd27Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
18966b9b4fd27Smrg    as_ln_s=ln
18967b9b4fd27Smrg  else
18968b9b4fd27Smrg    as_ln_s='cp -p'
18969b9b4fd27Smrg  fi
18970b9b4fd27Smrgelse
18971b9b4fd27Smrg  as_ln_s='cp -p'
18972b9b4fd27Smrgfi
18973b9b4fd27Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18974b9b4fd27Smrgrmdir conf$$.dir 2>/dev/null
18975caade7ccSmrg
18976caade7ccSmrg
18977b9b4fd27Smrg# as_fn_mkdir_p
18978b9b4fd27Smrg# -------------
18979b9b4fd27Smrg# Create "$as_dir" as a directory, including parents if necessary.
18980b9b4fd27Smrgas_fn_mkdir_p ()
18981b9b4fd27Smrg{
18982caade7ccSmrg
18983b9b4fd27Smrg  case $as_dir in #(
18984b9b4fd27Smrg  -*) as_dir=./$as_dir;;
18985b9b4fd27Smrg  esac
18986b9b4fd27Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
18987b9b4fd27Smrg    as_dirs=
18988b9b4fd27Smrg    while :; do
18989b9b4fd27Smrg      case $as_dir in #(
18990b9b4fd27Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18991b9b4fd27Smrg      *) as_qdir=$as_dir;;
18992b9b4fd27Smrg      esac
18993b9b4fd27Smrg      as_dirs="'$as_qdir' $as_dirs"
18994b9b4fd27Smrg      as_dir=`$as_dirname -- "$as_dir" ||
18995b9b4fd27Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18996b9b4fd27Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
18997b9b4fd27Smrg	 X"$as_dir" : 'X\(//\)$' \| \
18998b9b4fd27Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18999b9b4fd27Smrg$as_echo X"$as_dir" |
19000b9b4fd27Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19001b9b4fd27Smrg	    s//\1/
19002b9b4fd27Smrg	    q
19003b9b4fd27Smrg	  }
19004b9b4fd27Smrg	  /^X\(\/\/\)[^/].*/{
19005b9b4fd27Smrg	    s//\1/
19006b9b4fd27Smrg	    q
19007b9b4fd27Smrg	  }
19008b9b4fd27Smrg	  /^X\(\/\/\)$/{
19009b9b4fd27Smrg	    s//\1/
19010b9b4fd27Smrg	    q
19011b9b4fd27Smrg	  }
19012b9b4fd27Smrg	  /^X\(\/\).*/{
19013b9b4fd27Smrg	    s//\1/
19014b9b4fd27Smrg	    q
19015b9b4fd27Smrg	  }
19016b9b4fd27Smrg	  s/.*/./; q'`
19017b9b4fd27Smrg      test -d "$as_dir" && break
19018b9b4fd27Smrg    done
19019b9b4fd27Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
19020e8a5466aSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19021caade7ccSmrg
19022caade7ccSmrg
19023b9b4fd27Smrg} # as_fn_mkdir_p
19024b9b4fd27Smrgif mkdir -p . 2>/dev/null; then
19025b9b4fd27Smrg  as_mkdir_p='mkdir -p "$as_dir"'
19026b9b4fd27Smrgelse
19027b9b4fd27Smrg  test -d ./-p && rmdir ./-p
19028b9b4fd27Smrg  as_mkdir_p=false
19029b9b4fd27Smrgfi
19030caade7ccSmrg
19031b9b4fd27Smrgif test -x / >/dev/null 2>&1; then
19032b9b4fd27Smrg  as_test_x='test -x'
19033b9b4fd27Smrgelse
19034b9b4fd27Smrg  if ls -dL / >/dev/null 2>&1; then
19035b9b4fd27Smrg    as_ls_L_option=L
19036b9b4fd27Smrg  else
19037b9b4fd27Smrg    as_ls_L_option=
19038b9b4fd27Smrg  fi
19039b9b4fd27Smrg  as_test_x='
19040b9b4fd27Smrg    eval sh -c '\''
19041b9b4fd27Smrg      if test -d "$1"; then
19042b9b4fd27Smrg	test -d "$1/.";
19043b9b4fd27Smrg      else
19044b9b4fd27Smrg	case $1 in #(
19045b9b4fd27Smrg	-*)set "./$1";;
19046b9b4fd27Smrg	esac;
19047b9b4fd27Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19048b9b4fd27Smrg	???[sx]*):;;*)false;;esac;fi
19049b9b4fd27Smrg    '\'' sh
19050b9b4fd27Smrg  '
19051b9b4fd27Smrgfi
19052b9b4fd27Smrgas_executable_p=$as_test_x
19053caade7ccSmrg
19054b9b4fd27Smrg# Sed expression to map a string onto a valid CPP name.
19055b9b4fd27Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19056caade7ccSmrg
19057b9b4fd27Smrg# Sed expression to map a string onto a valid variable name.
19058b9b4fd27Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19059caade7ccSmrg
19060caade7ccSmrg
19061b9b4fd27Smrgexec 6>&1
19062b9b4fd27Smrg## ----------------------------------- ##
19063b9b4fd27Smrg## Main body of $CONFIG_STATUS script. ##
19064b9b4fd27Smrg## ----------------------------------- ##
19065b9b4fd27Smrg_ASEOF
19066b9b4fd27Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19067caade7ccSmrg
19068b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19069b9b4fd27Smrg# Save the log message, to keep $0 and so on meaningful, and to
19070b9b4fd27Smrg# report actual input values of CONFIG_FILES etc. instead of their
19071b9b4fd27Smrg# values after options handling.
19072b9b4fd27Smrgac_log="
19073af9a7ee5SmrgThis file was extended by libXext $as_me 1.3.2, which was
19074e8a5466aSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
19075caade7ccSmrg
19076b9b4fd27Smrg  CONFIG_FILES    = $CONFIG_FILES
19077b9b4fd27Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
19078b9b4fd27Smrg  CONFIG_LINKS    = $CONFIG_LINKS
19079b9b4fd27Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
19080b9b4fd27Smrg  $ $0 $@
19081caade7ccSmrg
19082b9b4fd27Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
19083b9b4fd27Smrg"
19084485f0483Smrg
19085b9b4fd27Smrg_ACEOF
19086caade7ccSmrg
19087b9b4fd27Smrgcase $ac_config_files in *"
19088b9b4fd27Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
19089b9b4fd27Smrgesac
19090caade7ccSmrg
19091b9b4fd27Smrgcase $ac_config_headers in *"
19092b9b4fd27Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19093b9b4fd27Smrgesac
19094caade7ccSmrg
19095caade7ccSmrg
19096b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19097b9b4fd27Smrg# Files that config.status was made for.
19098b9b4fd27Smrgconfig_files="$ac_config_files"
19099b9b4fd27Smrgconfig_headers="$ac_config_headers"
19100b9b4fd27Smrgconfig_commands="$ac_config_commands"
19101caade7ccSmrg
19102b9b4fd27Smrg_ACEOF
19103caade7ccSmrg
19104b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19105b9b4fd27Smrgac_cs_usage="\
19106b9b4fd27Smrg\`$as_me' instantiates files and other configuration actions
19107b9b4fd27Smrgfrom templates according to the current configuration.  Unless the files
19108b9b4fd27Smrgand actions are specified as TAGs, all are instantiated by default.
19109caade7ccSmrg
19110b9b4fd27SmrgUsage: $0 [OPTION]... [TAG]...
19111caade7ccSmrg
19112b9b4fd27Smrg  -h, --help       print this help, then exit
19113b9b4fd27Smrg  -V, --version    print version number and configuration settings, then exit
19114b9b4fd27Smrg      --config     print configuration, then exit
19115b9b4fd27Smrg  -q, --quiet, --silent
19116b9b4fd27Smrg                   do not print progress messages
19117b9b4fd27Smrg  -d, --debug      don't remove temporary files
19118b9b4fd27Smrg      --recheck    update $as_me by reconfiguring in the same conditions
19119b9b4fd27Smrg      --file=FILE[:TEMPLATE]
19120b9b4fd27Smrg                   instantiate the configuration file FILE
19121b9b4fd27Smrg      --header=FILE[:TEMPLATE]
19122b9b4fd27Smrg                   instantiate the configuration header FILE
19123caade7ccSmrg
19124b9b4fd27SmrgConfiguration files:
19125b9b4fd27Smrg$config_files
19126caade7ccSmrg
19127b9b4fd27SmrgConfiguration headers:
19128b9b4fd27Smrg$config_headers
19129caade7ccSmrg
19130b9b4fd27SmrgConfiguration commands:
19131b9b4fd27Smrg$config_commands
19132caade7ccSmrg
19133b9b4fd27SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19134caade7ccSmrg
19135b9b4fd27Smrg_ACEOF
19136b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19137b9b4fd27Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19138b9b4fd27Smrgac_cs_version="\\
19139af9a7ee5SmrglibXext config.status 1.3.2
19140e8a5466aSmrgconfigured by $0, generated by GNU Autoconf 2.68,
19141b9b4fd27Smrg  with options \\"\$ac_cs_config\\"
19142caade7ccSmrg
19143e8a5466aSmrgCopyright (C) 2010 Free Software Foundation, Inc.
19144b9b4fd27SmrgThis config.status script is free software; the Free Software Foundation
19145b9b4fd27Smrggives unlimited permission to copy, distribute and modify it."
19146caade7ccSmrg
19147b9b4fd27Smrgac_pwd='$ac_pwd'
19148b9b4fd27Smrgsrcdir='$srcdir'
19149b9b4fd27SmrgINSTALL='$INSTALL'
19150b9b4fd27SmrgMKDIR_P='$MKDIR_P'
19151b9b4fd27SmrgAWK='$AWK'
19152b9b4fd27Smrgtest -n "\$AWK" || AWK=awk
19153b9b4fd27Smrg_ACEOF
19154caade7ccSmrg
19155b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19156b9b4fd27Smrg# The default lists apply if the user does not specify any file.
19157b9b4fd27Smrgac_need_defaults=:
19158b9b4fd27Smrgwhile test $# != 0
19159b9b4fd27Smrgdo
19160b9b4fd27Smrg  case $1 in
19161e8a5466aSmrg  --*=?*)
19162b9b4fd27Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19163b9b4fd27Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19164b9b4fd27Smrg    ac_shift=:
19165b9b4fd27Smrg    ;;
19166e8a5466aSmrg  --*=)
19167e8a5466aSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19168e8a5466aSmrg    ac_optarg=
19169e8a5466aSmrg    ac_shift=:
19170e8a5466aSmrg    ;;
19171b9b4fd27Smrg  *)
19172b9b4fd27Smrg    ac_option=$1
19173b9b4fd27Smrg    ac_optarg=$2
19174b9b4fd27Smrg    ac_shift=shift
19175b9b4fd27Smrg    ;;
19176b9b4fd27Smrg  esac
19177caade7ccSmrg
19178b9b4fd27Smrg  case $ac_option in
19179b9b4fd27Smrg  # Handling of the options.
19180b9b4fd27Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19181b9b4fd27Smrg    ac_cs_recheck=: ;;
19182b9b4fd27Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19183b9b4fd27Smrg    $as_echo "$ac_cs_version"; exit ;;
19184b9b4fd27Smrg  --config | --confi | --conf | --con | --co | --c )
19185b9b4fd27Smrg    $as_echo "$ac_cs_config"; exit ;;
19186b9b4fd27Smrg  --debug | --debu | --deb | --de | --d | -d )
19187b9b4fd27Smrg    debug=: ;;
19188b9b4fd27Smrg  --file | --fil | --fi | --f )
19189b9b4fd27Smrg    $ac_shift
19190b9b4fd27Smrg    case $ac_optarg in
19191b9b4fd27Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19192e8a5466aSmrg    '') as_fn_error $? "missing file argument" ;;
19193b9b4fd27Smrg    esac
19194b9b4fd27Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
19195b9b4fd27Smrg    ac_need_defaults=false;;
19196b9b4fd27Smrg  --header | --heade | --head | --hea )
19197b9b4fd27Smrg    $ac_shift
19198b9b4fd27Smrg    case $ac_optarg in
19199b9b4fd27Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19200b9b4fd27Smrg    esac
19201b9b4fd27Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19202b9b4fd27Smrg    ac_need_defaults=false;;
19203b9b4fd27Smrg  --he | --h)
19204b9b4fd27Smrg    # Conflict between --help and --header
19205e8a5466aSmrg    as_fn_error $? "ambiguous option: \`$1'
19206b9b4fd27SmrgTry \`$0 --help' for more information.";;
19207b9b4fd27Smrg  --help | --hel | -h )
19208b9b4fd27Smrg    $as_echo "$ac_cs_usage"; exit ;;
19209b9b4fd27Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19210b9b4fd27Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19211b9b4fd27Smrg    ac_cs_silent=: ;;
19212caade7ccSmrg
19213b9b4fd27Smrg  # This is an error.
19214e8a5466aSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
19215b9b4fd27SmrgTry \`$0 --help' for more information." ;;
19216caade7ccSmrg
19217b9b4fd27Smrg  *) as_fn_append ac_config_targets " $1"
19218b9b4fd27Smrg     ac_need_defaults=false ;;
19219caade7ccSmrg
19220b9b4fd27Smrg  esac
19221b9b4fd27Smrg  shift
19222b9b4fd27Smrgdone
19223caade7ccSmrg
19224b9b4fd27Smrgac_configure_extra_args=
19225caade7ccSmrg
19226b9b4fd27Smrgif $ac_cs_silent; then
19227b9b4fd27Smrg  exec 6>/dev/null
19228b9b4fd27Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
19229caade7ccSmrgfi
19230caade7ccSmrg
19231b9b4fd27Smrg_ACEOF
19232b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19233b9b4fd27Smrgif \$ac_cs_recheck; then
19234b9b4fd27Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19235b9b4fd27Smrg  shift
19236b9b4fd27Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19237b9b4fd27Smrg  CONFIG_SHELL='$SHELL'
19238b9b4fd27Smrg  export CONFIG_SHELL
19239b9b4fd27Smrg  exec "\$@"
19240b9b4fd27Smrgfi
19241caade7ccSmrg
19242b9b4fd27Smrg_ACEOF
19243b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19244b9b4fd27Smrgexec 5>>config.log
19245b9b4fd27Smrg{
19246b9b4fd27Smrg  echo
19247b9b4fd27Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19248b9b4fd27Smrg## Running $as_me. ##
19249b9b4fd27Smrg_ASBOX
19250b9b4fd27Smrg  $as_echo "$ac_log"
19251b9b4fd27Smrg} >&5
19252caade7ccSmrg
19253b9b4fd27Smrg_ACEOF
19254b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19255b9b4fd27Smrg#
19256b9b4fd27Smrg# INIT-COMMANDS
19257b9b4fd27Smrg#
19258b9b4fd27SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19259caade7ccSmrg
19260caade7ccSmrg
19261b9b4fd27Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout
19262b9b4fd27Smrg# if CDPATH is set.
19263b9b4fd27Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19264caade7ccSmrg
19265b9b4fd27Smrgsed_quote_subst='$sed_quote_subst'
19266b9b4fd27Smrgdouble_quote_subst='$double_quote_subst'
19267b9b4fd27Smrgdelay_variable_subst='$delay_variable_subst'
19268e8a5466aSmrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19269e8a5466aSmrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19270e8a5466aSmrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19271e8a5466aSmrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19272e8a5466aSmrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19273e8a5466aSmrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19274e8a5466aSmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19275e8a5466aSmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19276af9a7ee5SmrgPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19277e8a5466aSmrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19278e8a5466aSmrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19279e8a5466aSmrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19280e8a5466aSmrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19281e8a5466aSmrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19282e8a5466aSmrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19283e8a5466aSmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19284e8a5466aSmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19285e8a5466aSmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19286e8a5466aSmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19287e8a5466aSmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19288e8a5466aSmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19289e8a5466aSmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19290e8a5466aSmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19291e8a5466aSmrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19292e8a5466aSmrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19293e8a5466aSmrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19294e8a5466aSmrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19295e8a5466aSmrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19296e8a5466aSmrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19297a5602400Smrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19298a5602400Smrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19299e8a5466aSmrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19300e8a5466aSmrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19301e8a5466aSmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19302e8a5466aSmrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19303e8a5466aSmrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19304a5602400Smrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19305a5602400Smrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19306a5602400SmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19307a5602400Smrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19308e8a5466aSmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19309e8a5466aSmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19310a5602400Smrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19311e8a5466aSmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19312e8a5466aSmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19313e8a5466aSmrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19314e8a5466aSmrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19315e8a5466aSmrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19316e8a5466aSmrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19317e8a5466aSmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19318e8a5466aSmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19319e8a5466aSmrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19320e8a5466aSmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19321e8a5466aSmrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19322e8a5466aSmrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19323e8a5466aSmrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19324e8a5466aSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19325a5602400Smrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19326a5602400Smrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19327e8a5466aSmrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19328e8a5466aSmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19329e8a5466aSmrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19330e8a5466aSmrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19331a5602400Smrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19332e8a5466aSmrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19333e8a5466aSmrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19334e8a5466aSmrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19335a5602400SmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19336e8a5466aSmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19337e8a5466aSmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19338e8a5466aSmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19339e8a5466aSmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19340e8a5466aSmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19341e8a5466aSmrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19342e8a5466aSmrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19343e8a5466aSmrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19344e8a5466aSmrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19345e8a5466aSmrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19346e8a5466aSmrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19347e8a5466aSmrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19348e8a5466aSmrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19349e8a5466aSmrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19350e8a5466aSmrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19351e8a5466aSmrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19352e8a5466aSmrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19353e8a5466aSmrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19354e8a5466aSmrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19355e8a5466aSmrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19356e8a5466aSmrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19357e8a5466aSmrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19358e8a5466aSmrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19359e8a5466aSmrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19360e8a5466aSmrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19361e8a5466aSmrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19362e8a5466aSmrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19363e8a5466aSmrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19364e8a5466aSmrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19365e8a5466aSmrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19366e8a5466aSmrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19367e8a5466aSmrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19368e8a5466aSmrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19369e8a5466aSmrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19370e8a5466aSmrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19371e8a5466aSmrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19372a5602400Smrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19373e8a5466aSmrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19374e8a5466aSmrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19375e8a5466aSmrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19376e8a5466aSmrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19377e8a5466aSmrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19378e8a5466aSmrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19379e8a5466aSmrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19380e8a5466aSmrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19381e8a5466aSmrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19382e8a5466aSmrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19383e8a5466aSmrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19384e8a5466aSmrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19385e8a5466aSmrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19386e8a5466aSmrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19387e8a5466aSmrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19388e8a5466aSmrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19389e8a5466aSmrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19390e8a5466aSmrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19391e8a5466aSmrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19392e8a5466aSmrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19393e8a5466aSmrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19394e8a5466aSmrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19395e8a5466aSmrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19396e8a5466aSmrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19397e8a5466aSmrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19398b9b4fd27Smrg
19399b9b4fd27SmrgLTCC='$LTCC'
19400b9b4fd27SmrgLTCFLAGS='$LTCFLAGS'
19401b9b4fd27Smrgcompiler='$compiler_DEFAULT'
19402b9b4fd27Smrg
19403e8a5466aSmrg# A function that is used when there is no print builtin or printf.
19404e8a5466aSmrgfunc_fallback_echo ()
19405e8a5466aSmrg{
19406e8a5466aSmrg  eval 'cat <<_LTECHO_EOF
19407e8a5466aSmrg\$1
19408e8a5466aSmrg_LTECHO_EOF'
19409e8a5466aSmrg}
19410e8a5466aSmrg
19411b9b4fd27Smrg# Quote evaled strings.
19412e8a5466aSmrgfor var in SHELL \
19413e8a5466aSmrgECHO \
19414af9a7ee5SmrgPATH_SEPARATOR \
19415e8a5466aSmrgSED \
19416b9b4fd27SmrgGREP \
19417b9b4fd27SmrgEGREP \
19418b9b4fd27SmrgFGREP \
19419b9b4fd27SmrgLD \
19420b9b4fd27SmrgNM \
19421b9b4fd27SmrgLN_S \
19422b9b4fd27Smrglt_SP2NL \
19423b9b4fd27Smrglt_NL2SP \
19424b9b4fd27Smrgreload_flag \
19425b9b4fd27SmrgOBJDUMP \
19426b9b4fd27Smrgdeplibs_check_method \
19427b9b4fd27Smrgfile_magic_cmd \
19428a5602400Smrgfile_magic_glob \
19429a5602400Smrgwant_nocaseglob \
19430a5602400SmrgDLLTOOL \
19431a5602400Smrgsharedlib_from_linklib_cmd \
19432b9b4fd27SmrgAR \
19433b9b4fd27SmrgAR_FLAGS \
19434a5602400Smrgarchiver_list_spec \
19435b9b4fd27SmrgSTRIP \
19436b9b4fd27SmrgRANLIB \
19437b9b4fd27SmrgCC \
19438b9b4fd27SmrgCFLAGS \
19439b9b4fd27Smrgcompiler \
19440b9b4fd27Smrglt_cv_sys_global_symbol_pipe \
19441b9b4fd27Smrglt_cv_sys_global_symbol_to_cdecl \
19442b9b4fd27Smrglt_cv_sys_global_symbol_to_c_name_address \
19443b9b4fd27Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19444a5602400Smrgnm_file_list_spec \
19445b9b4fd27Smrglt_prog_compiler_no_builtin_flag \
19446b9b4fd27Smrglt_prog_compiler_pic \
19447a5602400Smrglt_prog_compiler_wl \
19448b9b4fd27Smrglt_prog_compiler_static \
19449b9b4fd27Smrglt_cv_prog_compiler_c_o \
19450b9b4fd27Smrgneed_locks \
19451a5602400SmrgMANIFEST_TOOL \
19452b9b4fd27SmrgDSYMUTIL \
19453b9b4fd27SmrgNMEDIT \
19454b9b4fd27SmrgLIPO \
19455b9b4fd27SmrgOTOOL \
19456b9b4fd27SmrgOTOOL64 \
19457b9b4fd27Smrgshrext_cmds \
19458b9b4fd27Smrgexport_dynamic_flag_spec \
19459b9b4fd27Smrgwhole_archive_flag_spec \
19460b9b4fd27Smrgcompiler_needs_object \
19461b9b4fd27Smrgwith_gnu_ld \
19462b9b4fd27Smrgallow_undefined_flag \
19463b9b4fd27Smrgno_undefined_flag \
19464b9b4fd27Smrghardcode_libdir_flag_spec \
19465b9b4fd27Smrghardcode_libdir_separator \
19466b9b4fd27Smrgexclude_expsyms \
19467b9b4fd27Smrginclude_expsyms \
19468b9b4fd27Smrgfile_list_spec \
19469b9b4fd27Smrgvariables_saved_for_relink \
19470b9b4fd27Smrglibname_spec \
19471b9b4fd27Smrglibrary_names_spec \
19472b9b4fd27Smrgsoname_spec \
19473e8a5466aSmrginstall_override_mode \
19474b9b4fd27Smrgfinish_eval \
19475b9b4fd27Smrgold_striplib \
19476b9b4fd27Smrgstriplib; do
19477e8a5466aSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19478b9b4fd27Smrg    *[\\\\\\\`\\"\\\$]*)
19479e8a5466aSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19480b9b4fd27Smrg      ;;
19481b9b4fd27Smrg    *)
19482b9b4fd27Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19483b9b4fd27Smrg      ;;
19484b9b4fd27Smrg    esac
19485b9b4fd27Smrgdone
19486caade7ccSmrg
19487b9b4fd27Smrg# Double-quote double-evaled strings.
19488b9b4fd27Smrgfor var in reload_cmds \
19489b9b4fd27Smrgold_postinstall_cmds \
19490b9b4fd27Smrgold_postuninstall_cmds \
19491b9b4fd27Smrgold_archive_cmds \
19492b9b4fd27Smrgextract_expsyms_cmds \
19493b9b4fd27Smrgold_archive_from_new_cmds \
19494b9b4fd27Smrgold_archive_from_expsyms_cmds \
19495b9b4fd27Smrgarchive_cmds \
19496b9b4fd27Smrgarchive_expsym_cmds \
19497b9b4fd27Smrgmodule_cmds \
19498b9b4fd27Smrgmodule_expsym_cmds \
19499b9b4fd27Smrgexport_symbols_cmds \
19500b9b4fd27Smrgprelink_cmds \
19501a5602400Smrgpostlink_cmds \
19502b9b4fd27Smrgpostinstall_cmds \
19503b9b4fd27Smrgpostuninstall_cmds \
19504b9b4fd27Smrgfinish_cmds \
19505b9b4fd27Smrgsys_lib_search_path_spec \
19506b9b4fd27Smrgsys_lib_dlsearch_path_spec; do
19507e8a5466aSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19508b9b4fd27Smrg    *[\\\\\\\`\\"\\\$]*)
19509e8a5466aSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19510b9b4fd27Smrg      ;;
19511b9b4fd27Smrg    *)
19512b9b4fd27Smrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19513b9b4fd27Smrg      ;;
19514b9b4fd27Smrg    esac
19515b9b4fd27Smrgdone
19516caade7ccSmrg
19517b9b4fd27Smrgac_aux_dir='$ac_aux_dir'
19518b9b4fd27Smrgxsi_shell='$xsi_shell'
19519b9b4fd27Smrglt_shell_append='$lt_shell_append'
19520caade7ccSmrg
19521b9b4fd27Smrg# See if we are running on zsh, and set the options which allow our
19522b9b4fd27Smrg# commands through without removal of \ escapes INIT.
19523b9b4fd27Smrgif test -n "\${ZSH_VERSION+set}" ; then
19524b9b4fd27Smrg   setopt NO_GLOB_SUBST
19525b9b4fd27Smrgfi
19526caade7ccSmrg
19527caade7ccSmrg
19528b9b4fd27Smrg    PACKAGE='$PACKAGE'
19529b9b4fd27Smrg    VERSION='$VERSION'
19530b9b4fd27Smrg    TIMESTAMP='$TIMESTAMP'
19531b9b4fd27Smrg    RM='$RM'
19532b9b4fd27Smrg    ofile='$ofile'
19533caade7ccSmrg
19534caade7ccSmrg
19535caade7ccSmrg
19536caade7ccSmrg
19537b9b4fd27Smrg_ACEOF
19538caade7ccSmrg
19539b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19540caade7ccSmrg
19541b9b4fd27Smrg# Handling of arguments.
19542b9b4fd27Smrgfor ac_config_target in $ac_config_targets
19543b9b4fd27Smrgdo
19544b9b4fd27Smrg  case $ac_config_target in
19545b9b4fd27Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19546a5602400Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19547b9b4fd27Smrg    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19548b9b4fd27Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19549b9b4fd27Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19550b9b4fd27Smrg    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19551e8a5466aSmrg    "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
19552b9b4fd27Smrg    "xext.pc") CONFIG_FILES="$CONFIG_FILES xext.pc" ;;
19553caade7ccSmrg
19554e8a5466aSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19555caade7ccSmrg  esac
19556caade7ccSmrgdone
19557caade7ccSmrg
19558caade7ccSmrg
19559b9b4fd27Smrg# If the user did not use the arguments to specify the items to instantiate,
19560b9b4fd27Smrg# then the envvar interface is used.  Set only those that are not.
19561b9b4fd27Smrg# We use the long form for the default assignment because of an extremely
19562b9b4fd27Smrg# bizarre bug on SunOS 4.1.3.
19563b9b4fd27Smrgif $ac_need_defaults; then
19564b9b4fd27Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19565b9b4fd27Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19566b9b4fd27Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19567b9b4fd27Smrgfi
19568caade7ccSmrg
19569b9b4fd27Smrg# Have a temporary directory for convenience.  Make it in the build tree
19570b9b4fd27Smrg# simply because there is no reason against having it here, and in addition,
19571b9b4fd27Smrg# creating and moving files from /tmp can sometimes cause problems.
19572b9b4fd27Smrg# Hook for its removal unless debugging.
19573b9b4fd27Smrg# Note that there is a small window in which the directory will not be cleaned:
19574b9b4fd27Smrg# after its creation but before its name has been assigned to `$tmp'.
19575b9b4fd27Smrg$debug ||
19576b9b4fd27Smrg{
19577e8a5466aSmrg  tmp= ac_tmp=
19578b9b4fd27Smrg  trap 'exit_status=$?
19579e8a5466aSmrg  : "${ac_tmp:=$tmp}"
19580e8a5466aSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19581b9b4fd27Smrg' 0
19582b9b4fd27Smrg  trap 'as_fn_exit 1' 1 2 13 15
19583b9b4fd27Smrg}
19584b9b4fd27Smrg# Create a (secure) tmp directory for tmp files.
19585caade7ccSmrg
19586b9b4fd27Smrg{
19587b9b4fd27Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19588e8a5466aSmrg  test -d "$tmp"
19589b9b4fd27Smrg}  ||
19590b9b4fd27Smrg{
19591b9b4fd27Smrg  tmp=./conf$$-$RANDOM
19592b9b4fd27Smrg  (umask 077 && mkdir "$tmp")
19593e8a5466aSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19594e8a5466aSmrgac_tmp=$tmp
19595caade7ccSmrg
19596b9b4fd27Smrg# Set up the scripts for CONFIG_FILES section.
19597b9b4fd27Smrg# No need to generate them if there are no CONFIG_FILES.
19598b9b4fd27Smrg# This happens for instance with `./config.status config.h'.
19599b9b4fd27Smrgif test -n "$CONFIG_FILES"; then
19600caade7ccSmrg
19601caade7ccSmrg
19602b9b4fd27Smrgac_cr=`echo X | tr X '\015'`
19603b9b4fd27Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
19604b9b4fd27Smrg# But we know of no other shell where ac_cr would be empty at this
19605b9b4fd27Smrg# point, so we can use a bashism as a fallback.
19606b9b4fd27Smrgif test "x$ac_cr" = x; then
19607b9b4fd27Smrg  eval ac_cr=\$\'\\r\'
19608b9b4fd27Smrgfi
19609b9b4fd27Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19610b9b4fd27Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19611e8a5466aSmrg  ac_cs_awk_cr='\\r'
19612b9b4fd27Smrgelse
19613b9b4fd27Smrg  ac_cs_awk_cr=$ac_cr
19614b9b4fd27Smrgfi
19615caade7ccSmrg
19616e8a5466aSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19617b9b4fd27Smrg_ACEOF
19618caade7ccSmrg
19619caade7ccSmrg
19620b9b4fd27Smrg{
19621b9b4fd27Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
19622b9b4fd27Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19623b9b4fd27Smrg  echo "_ACEOF"
19624b9b4fd27Smrg} >conf$$subs.sh ||
19625e8a5466aSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19626e8a5466aSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19627b9b4fd27Smrgac_delim='%!_!# '
19628b9b4fd27Smrgfor ac_last_try in false false false false false :; do
19629b9b4fd27Smrg  . ./conf$$subs.sh ||
19630e8a5466aSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19631caade7ccSmrg
19632b9b4fd27Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19633b9b4fd27Smrg  if test $ac_delim_n = $ac_delim_num; then
19634b9b4fd27Smrg    break
19635b9b4fd27Smrg  elif $ac_last_try; then
19636e8a5466aSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19637b9b4fd27Smrg  else
19638b9b4fd27Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19639b9b4fd27Smrg  fi
19640b9b4fd27Smrgdone
19641b9b4fd27Smrgrm -f conf$$subs.sh
19642caade7ccSmrg
19643b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19644e8a5466aSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19645b9b4fd27Smrg_ACEOF
19646b9b4fd27Smrgsed -n '
19647b9b4fd27Smrgh
19648b9b4fd27Smrgs/^/S["/; s/!.*/"]=/
19649b9b4fd27Smrgp
19650b9b4fd27Smrgg
19651b9b4fd27Smrgs/^[^!]*!//
19652b9b4fd27Smrg:repl
19653b9b4fd27Smrgt repl
19654b9b4fd27Smrgs/'"$ac_delim"'$//
19655b9b4fd27Smrgt delim
19656b9b4fd27Smrg:nl
19657b9b4fd27Smrgh
19658b9b4fd27Smrgs/\(.\{148\}\)..*/\1/
19659b9b4fd27Smrgt more1
19660b9b4fd27Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19661b9b4fd27Smrgp
19662b9b4fd27Smrgn
19663b9b4fd27Smrgb repl
19664b9b4fd27Smrg:more1
19665b9b4fd27Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
19666b9b4fd27Smrgp
19667b9b4fd27Smrgg
19668b9b4fd27Smrgs/.\{148\}//
19669b9b4fd27Smrgt nl
19670b9b4fd27Smrg:delim
19671b9b4fd27Smrgh
19672b9b4fd27Smrgs/\(.\{148\}\)..*/\1/
19673b9b4fd27Smrgt more2
19674b9b4fd27Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
19675b9b4fd27Smrgp
19676b9b4fd27Smrgb
19677b9b4fd27Smrg:more2
19678b9b4fd27Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
19679b9b4fd27Smrgp
19680b9b4fd27Smrgg
19681b9b4fd27Smrgs/.\{148\}//
19682b9b4fd27Smrgt delim
19683b9b4fd27Smrg' <conf$$subs.awk | sed '
19684b9b4fd27Smrg/^[^""]/{
19685b9b4fd27Smrg  N
19686b9b4fd27Smrg  s/\n//
19687b9b4fd27Smrg}
19688b9b4fd27Smrg' >>$CONFIG_STATUS || ac_write_fail=1
19689b9b4fd27Smrgrm -f conf$$subs.awk
19690b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19691b9b4fd27Smrg_ACAWK
19692e8a5466aSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19693b9b4fd27Smrg  for (key in S) S_is_set[key] = 1
19694b9b4fd27Smrg  FS = ""
19695caade7ccSmrg
19696b9b4fd27Smrg}
19697b9b4fd27Smrg{
19698b9b4fd27Smrg  line = $ 0
19699b9b4fd27Smrg  nfields = split(line, field, "@")
19700b9b4fd27Smrg  substed = 0
19701b9b4fd27Smrg  len = length(field[1])
19702b9b4fd27Smrg  for (i = 2; i < nfields; i++) {
19703b9b4fd27Smrg    key = field[i]
19704b9b4fd27Smrg    keylen = length(key)
19705b9b4fd27Smrg    if (S_is_set[key]) {
19706b9b4fd27Smrg      value = S[key]
19707b9b4fd27Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19708b9b4fd27Smrg      len += length(value) + length(field[++i])
19709b9b4fd27Smrg      substed = 1
19710b9b4fd27Smrg    } else
19711b9b4fd27Smrg      len += 1 + keylen
19712b9b4fd27Smrg  }
19713caade7ccSmrg
19714b9b4fd27Smrg  print line
19715b9b4fd27Smrg}
19716caade7ccSmrg
19717b9b4fd27Smrg_ACAWK
19718b9b4fd27Smrg_ACEOF
19719b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19720b9b4fd27Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19721b9b4fd27Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19722b9b4fd27Smrgelse
19723b9b4fd27Smrg  cat
19724e8a5466aSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19725e8a5466aSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19726b9b4fd27Smrg_ACEOF
19727caade7ccSmrg
19728e8a5466aSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19729e8a5466aSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19730b9b4fd27Smrg# trailing colons and then remove the whole line if VPATH becomes empty
19731b9b4fd27Smrg# (actually we leave an empty line to preserve line numbers).
19732b9b4fd27Smrgif test "x$srcdir" = x.; then
19733e8a5466aSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19734e8a5466aSmrgh
19735e8a5466aSmrgs///
19736e8a5466aSmrgs/^/:/
19737e8a5466aSmrgs/[	 ]*$/:/
19738e8a5466aSmrgs/:\$(srcdir):/:/g
19739e8a5466aSmrgs/:\${srcdir}:/:/g
19740e8a5466aSmrgs/:@srcdir@:/:/g
19741e8a5466aSmrgs/^:*//
19742b9b4fd27Smrgs/:*$//
19743e8a5466aSmrgx
19744e8a5466aSmrgs/\(=[	 ]*\).*/\1/
19745e8a5466aSmrgG
19746e8a5466aSmrgs/\n//
19747b9b4fd27Smrgs/^[^=]*=[	 ]*$//
19748b9b4fd27Smrg}'
19749b9b4fd27Smrgfi
19750caade7ccSmrg
19751b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19752b9b4fd27Smrgfi # test -n "$CONFIG_FILES"
19753caade7ccSmrg
19754b9b4fd27Smrg# Set up the scripts for CONFIG_HEADERS section.
19755b9b4fd27Smrg# No need to generate them if there are no CONFIG_HEADERS.
19756b9b4fd27Smrg# This happens for instance with `./config.status Makefile'.
19757b9b4fd27Smrgif test -n "$CONFIG_HEADERS"; then
19758e8a5466aSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19759b9b4fd27SmrgBEGIN {
19760b9b4fd27Smrg_ACEOF
19761caade7ccSmrg
19762b9b4fd27Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
19763b9b4fd27Smrg# here-document in config.status, that substitutes the proper values into
19764b9b4fd27Smrg# config.h.in to produce config.h.
19765caade7ccSmrg
19766b9b4fd27Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
19767b9b4fd27Smrg# handling of long lines.
19768b9b4fd27Smrgac_delim='%!_!# '
19769b9b4fd27Smrgfor ac_last_try in false false :; do
19770e8a5466aSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19771e8a5466aSmrg  if test -z "$ac_tt"; then
19772b9b4fd27Smrg    break
19773b9b4fd27Smrg  elif $ac_last_try; then
19774e8a5466aSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19775b9b4fd27Smrg  else
19776b9b4fd27Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19777b9b4fd27Smrg  fi
19778b9b4fd27Smrgdone
19779caade7ccSmrg
19780b9b4fd27Smrg# For the awk script, D is an array of macro values keyed by name,
19781b9b4fd27Smrg# likewise P contains macro parameters if any.  Preserve backslash
19782b9b4fd27Smrg# newline sequences.
19783caade7ccSmrg
19784b9b4fd27Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19785b9b4fd27Smrgsed -n '
19786b9b4fd27Smrgs/.\{148\}/&'"$ac_delim"'/g
19787b9b4fd27Smrgt rset
19788b9b4fd27Smrg:rset
19789b9b4fd27Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19790b9b4fd27Smrgt def
19791b9b4fd27Smrgd
19792b9b4fd27Smrg:def
19793b9b4fd27Smrgs/\\$//
19794b9b4fd27Smrgt bsnl
19795b9b4fd27Smrgs/["\\]/\\&/g
19796b9b4fd27Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19797b9b4fd27SmrgD["\1"]=" \3"/p
19798b9b4fd27Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19799b9b4fd27Smrgd
19800b9b4fd27Smrg:bsnl
19801b9b4fd27Smrgs/["\\]/\\&/g
19802b9b4fd27Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19803b9b4fd27SmrgD["\1"]=" \3\\\\\\n"\\/p
19804b9b4fd27Smrgt cont
19805b9b4fd27Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19806b9b4fd27Smrgt cont
19807b9b4fd27Smrgd
19808b9b4fd27Smrg:cont
19809b9b4fd27Smrgn
19810b9b4fd27Smrgs/.\{148\}/&'"$ac_delim"'/g
19811b9b4fd27Smrgt clear
19812b9b4fd27Smrg:clear
19813b9b4fd27Smrgs/\\$//
19814b9b4fd27Smrgt bsnlc
19815b9b4fd27Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
19816b9b4fd27Smrgd
19817b9b4fd27Smrg:bsnlc
19818b9b4fd27Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19819b9b4fd27Smrgb cont
19820b9b4fd27Smrg' <confdefs.h | sed '
19821b9b4fd27Smrgs/'"$ac_delim"'/"\\\
19822b9b4fd27Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
19823caade7ccSmrg
19824b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19825b9b4fd27Smrg  for (key in D) D_is_set[key] = 1
19826b9b4fd27Smrg  FS = ""
19827b9b4fd27Smrg}
19828b9b4fd27Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19829b9b4fd27Smrg  line = \$ 0
19830b9b4fd27Smrg  split(line, arg, " ")
19831b9b4fd27Smrg  if (arg[1] == "#") {
19832b9b4fd27Smrg    defundef = arg[2]
19833b9b4fd27Smrg    mac1 = arg[3]
19834b9b4fd27Smrg  } else {
19835b9b4fd27Smrg    defundef = substr(arg[1], 2)
19836b9b4fd27Smrg    mac1 = arg[2]
19837b9b4fd27Smrg  }
19838b9b4fd27Smrg  split(mac1, mac2, "(") #)
19839b9b4fd27Smrg  macro = mac2[1]
19840b9b4fd27Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
19841b9b4fd27Smrg  if (D_is_set[macro]) {
19842b9b4fd27Smrg    # Preserve the white space surrounding the "#".
19843b9b4fd27Smrg    print prefix "define", macro P[macro] D[macro]
19844b9b4fd27Smrg    next
19845b9b4fd27Smrg  } else {
19846b9b4fd27Smrg    # Replace #undef with comments.  This is necessary, for example,
19847b9b4fd27Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
19848b9b4fd27Smrg    # on some systems where configure will not decide to define it.
19849b9b4fd27Smrg    if (defundef == "undef") {
19850b9b4fd27Smrg      print "/*", prefix defundef, macro, "*/"
19851b9b4fd27Smrg      next
19852b9b4fd27Smrg    }
19853b9b4fd27Smrg  }
19854b9b4fd27Smrg}
19855b9b4fd27Smrg{ print }
19856b9b4fd27Smrg_ACAWK
19857b9b4fd27Smrg_ACEOF
19858b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19859e8a5466aSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19860b9b4fd27Smrgfi # test -n "$CONFIG_HEADERS"
19861caade7ccSmrg
19862caade7ccSmrg
19863b9b4fd27Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19864b9b4fd27Smrgshift
19865b9b4fd27Smrgfor ac_tag
19866b9b4fd27Smrgdo
19867b9b4fd27Smrg  case $ac_tag in
19868b9b4fd27Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
19869b9b4fd27Smrg  esac
19870b9b4fd27Smrg  case $ac_mode$ac_tag in
19871b9b4fd27Smrg  :[FHL]*:*);;
19872e8a5466aSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19873b9b4fd27Smrg  :[FH]-) ac_tag=-:-;;
19874b9b4fd27Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19875b9b4fd27Smrg  esac
19876b9b4fd27Smrg  ac_save_IFS=$IFS
19877b9b4fd27Smrg  IFS=:
19878b9b4fd27Smrg  set x $ac_tag
19879b9b4fd27Smrg  IFS=$ac_save_IFS
19880b9b4fd27Smrg  shift
19881b9b4fd27Smrg  ac_file=$1
19882b9b4fd27Smrg  shift
19883caade7ccSmrg
19884b9b4fd27Smrg  case $ac_mode in
19885b9b4fd27Smrg  :L) ac_source=$1;;
19886b9b4fd27Smrg  :[FH])
19887b9b4fd27Smrg    ac_file_inputs=
19888b9b4fd27Smrg    for ac_f
19889b9b4fd27Smrg    do
19890b9b4fd27Smrg      case $ac_f in
19891e8a5466aSmrg      -) ac_f="$ac_tmp/stdin";;
19892b9b4fd27Smrg      *) # Look for the file first in the build tree, then in the source tree
19893b9b4fd27Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19894b9b4fd27Smrg	 # because $ac_f cannot contain `:'.
19895b9b4fd27Smrg	 test -f "$ac_f" ||
19896b9b4fd27Smrg	   case $ac_f in
19897b9b4fd27Smrg	   [\\/$]*) false;;
19898b9b4fd27Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19899b9b4fd27Smrg	   esac ||
19900e8a5466aSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19901b9b4fd27Smrg      esac
19902b9b4fd27Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19903b9b4fd27Smrg      as_fn_append ac_file_inputs " '$ac_f'"
19904b9b4fd27Smrg    done
19905caade7ccSmrg
19906b9b4fd27Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
19907b9b4fd27Smrg    # use $as_me), people would be surprised to read:
19908b9b4fd27Smrg    #    /* config.h.  Generated by config.status.  */
19909b9b4fd27Smrg    configure_input='Generated from '`
19910b9b4fd27Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19911b9b4fd27Smrg	`' by configure.'
19912b9b4fd27Smrg    if test x"$ac_file" != x-; then
19913b9b4fd27Smrg      configure_input="$ac_file.  $configure_input"
19914b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19915b9b4fd27Smrg$as_echo "$as_me: creating $ac_file" >&6;}
19916b9b4fd27Smrg    fi
19917b9b4fd27Smrg    # Neutralize special characters interpreted by sed in replacement strings.
19918b9b4fd27Smrg    case $configure_input in #(
19919b9b4fd27Smrg    *\&* | *\|* | *\\* )
19920b9b4fd27Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
19921b9b4fd27Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19922b9b4fd27Smrg    *) ac_sed_conf_input=$configure_input;;
19923b9b4fd27Smrg    esac
19924caade7ccSmrg
19925b9b4fd27Smrg    case $ac_tag in
19926e8a5466aSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19927e8a5466aSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19928b9b4fd27Smrg    esac
19929b9b4fd27Smrg    ;;
19930b9b4fd27Smrg  esac
19931caade7ccSmrg
19932b9b4fd27Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
19933b9b4fd27Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19934b9b4fd27Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
19935b9b4fd27Smrg	 X"$ac_file" : 'X\(//\)$' \| \
19936b9b4fd27Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19937b9b4fd27Smrg$as_echo X"$ac_file" |
19938b9b4fd27Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19939b9b4fd27Smrg	    s//\1/
19940b9b4fd27Smrg	    q
19941b9b4fd27Smrg	  }
19942b9b4fd27Smrg	  /^X\(\/\/\)[^/].*/{
19943b9b4fd27Smrg	    s//\1/
19944b9b4fd27Smrg	    q
19945b9b4fd27Smrg	  }
19946b9b4fd27Smrg	  /^X\(\/\/\)$/{
19947b9b4fd27Smrg	    s//\1/
19948b9b4fd27Smrg	    q
19949b9b4fd27Smrg	  }
19950b9b4fd27Smrg	  /^X\(\/\).*/{
19951b9b4fd27Smrg	    s//\1/
19952b9b4fd27Smrg	    q
19953b9b4fd27Smrg	  }
19954b9b4fd27Smrg	  s/.*/./; q'`
19955b9b4fd27Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
19956b9b4fd27Smrg  ac_builddir=.
19957caade7ccSmrg
19958b9b4fd27Smrgcase "$ac_dir" in
19959b9b4fd27Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19960b9b4fd27Smrg*)
19961b9b4fd27Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19962b9b4fd27Smrg  # A ".." for each directory in $ac_dir_suffix.
19963b9b4fd27Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19964b9b4fd27Smrg  case $ac_top_builddir_sub in
19965b9b4fd27Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19966b9b4fd27Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19967b9b4fd27Smrg  esac ;;
19968b9b4fd27Smrgesac
19969b9b4fd27Smrgac_abs_top_builddir=$ac_pwd
19970b9b4fd27Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
19971b9b4fd27Smrg# for backward compatibility:
19972b9b4fd27Smrgac_top_builddir=$ac_top_build_prefix
19973caade7ccSmrg
19974b9b4fd27Smrgcase $srcdir in
19975b9b4fd27Smrg  .)  # We are building in place.
19976b9b4fd27Smrg    ac_srcdir=.
19977b9b4fd27Smrg    ac_top_srcdir=$ac_top_builddir_sub
19978b9b4fd27Smrg    ac_abs_top_srcdir=$ac_pwd ;;
19979b9b4fd27Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
19980b9b4fd27Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
19981b9b4fd27Smrg    ac_top_srcdir=$srcdir
19982b9b4fd27Smrg    ac_abs_top_srcdir=$srcdir ;;
19983b9b4fd27Smrg  *) # Relative name.
19984b9b4fd27Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19985b9b4fd27Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
19986b9b4fd27Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19987b9b4fd27Smrgesac
19988b9b4fd27Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19989caade7ccSmrg
19990caade7ccSmrg
19991b9b4fd27Smrg  case $ac_mode in
19992b9b4fd27Smrg  :F)
19993b9b4fd27Smrg  #
19994b9b4fd27Smrg  # CONFIG_FILE
19995b9b4fd27Smrg  #
19996caade7ccSmrg
19997b9b4fd27Smrg  case $INSTALL in
19998b9b4fd27Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19999b9b4fd27Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20000b9b4fd27Smrg  esac
20001b9b4fd27Smrg  ac_MKDIR_P=$MKDIR_P
20002b9b4fd27Smrg  case $MKDIR_P in
20003b9b4fd27Smrg  [\\/$]* | ?:[\\/]* ) ;;
20004b9b4fd27Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20005b9b4fd27Smrg  esac
20006b9b4fd27Smrg_ACEOF
20007caade7ccSmrg
20008b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20009b9b4fd27Smrg# If the template does not know about datarootdir, expand it.
20010b9b4fd27Smrg# FIXME: This hack should be removed a few years after 2.60.
20011b9b4fd27Smrgac_datarootdir_hack=; ac_datarootdir_seen=
20012b9b4fd27Smrgac_sed_dataroot='
20013b9b4fd27Smrg/datarootdir/ {
20014b9b4fd27Smrg  p
20015b9b4fd27Smrg  q
20016b9b4fd27Smrg}
20017b9b4fd27Smrg/@datadir@/p
20018b9b4fd27Smrg/@docdir@/p
20019b9b4fd27Smrg/@infodir@/p
20020b9b4fd27Smrg/@localedir@/p
20021b9b4fd27Smrg/@mandir@/p'
20022b9b4fd27Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20023b9b4fd27Smrg*datarootdir*) ac_datarootdir_seen=yes;;
20024b9b4fd27Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20025b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20026b9b4fd27Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20027b9b4fd27Smrg_ACEOF
20028b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20029b9b4fd27Smrg  ac_datarootdir_hack='
20030b9b4fd27Smrg  s&@datadir@&$datadir&g
20031b9b4fd27Smrg  s&@docdir@&$docdir&g
20032b9b4fd27Smrg  s&@infodir@&$infodir&g
20033b9b4fd27Smrg  s&@localedir@&$localedir&g
20034b9b4fd27Smrg  s&@mandir@&$mandir&g
20035b9b4fd27Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
20036b9b4fd27Smrgesac
20037b9b4fd27Smrg_ACEOF
20038caade7ccSmrg
20039b9b4fd27Smrg# Neutralize VPATH when `$srcdir' = `.'.
20040b9b4fd27Smrg# Shell code in configure.ac might set extrasub.
20041b9b4fd27Smrg# FIXME: do we really want to maintain this feature?
20042b9b4fd27Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20043b9b4fd27Smrgac_sed_extra="$ac_vpsub
20044b9b4fd27Smrg$extrasub
20045b9b4fd27Smrg_ACEOF
20046b9b4fd27Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20047b9b4fd27Smrg:t
20048b9b4fd27Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20049b9b4fd27Smrgs|@configure_input@|$ac_sed_conf_input|;t t
20050b9b4fd27Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
20051b9b4fd27Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
20052b9b4fd27Smrgs&@srcdir@&$ac_srcdir&;t t
20053b9b4fd27Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
20054b9b4fd27Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
20055b9b4fd27Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20056b9b4fd27Smrgs&@builddir@&$ac_builddir&;t t
20057b9b4fd27Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
20058b9b4fd27Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20059b9b4fd27Smrgs&@INSTALL@&$ac_INSTALL&;t t
20060b9b4fd27Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
20061b9b4fd27Smrg$ac_datarootdir_hack
20062b9b4fd27Smrg"
20063e8a5466aSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20064e8a5466aSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20065caade7ccSmrg
20066b9b4fd27Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20067e8a5466aSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20068e8a5466aSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20069e8a5466aSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20070b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20071e8a5466aSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
20072b9b4fd27Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20073e8a5466aSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
20074caade7ccSmrg
20075e8a5466aSmrg  rm -f "$ac_tmp/stdin"
20076b9b4fd27Smrg  case $ac_file in
20077e8a5466aSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20078e8a5466aSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20079b9b4fd27Smrg  esac \
20080e8a5466aSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20081b9b4fd27Smrg ;;
20082b9b4fd27Smrg  :H)
20083b9b4fd27Smrg  #
20084b9b4fd27Smrg  # CONFIG_HEADER
20085b9b4fd27Smrg  #
20086b9b4fd27Smrg  if test x"$ac_file" != x-; then
20087b9b4fd27Smrg    {
20088b9b4fd27Smrg      $as_echo "/* $configure_input  */" \
20089e8a5466aSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20090e8a5466aSmrg    } >"$ac_tmp/config.h" \
20091e8a5466aSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20092e8a5466aSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20093b9b4fd27Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20094b9b4fd27Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
20095b9b4fd27Smrg    else
20096b9b4fd27Smrg      rm -f "$ac_file"
20097e8a5466aSmrg      mv "$ac_tmp/config.h" "$ac_file" \
20098e8a5466aSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20099b9b4fd27Smrg    fi
20100b9b4fd27Smrg  else
20101b9b4fd27Smrg    $as_echo "/* $configure_input  */" \
20102e8a5466aSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20103e8a5466aSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
20104b9b4fd27Smrg  fi
20105b9b4fd27Smrg# Compute "$ac_file"'s index in $config_headers.
20106b9b4fd27Smrg_am_arg="$ac_file"
20107b9b4fd27Smrg_am_stamp_count=1
20108b9b4fd27Smrgfor _am_header in $config_headers :; do
20109b9b4fd27Smrg  case $_am_header in
20110b9b4fd27Smrg    $_am_arg | $_am_arg:* )
20111b9b4fd27Smrg      break ;;
20112b9b4fd27Smrg    * )
20113b9b4fd27Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20114b9b4fd27Smrg  esac
20115b9b4fd27Smrgdone
20116b9b4fd27Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20117b9b4fd27Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20118b9b4fd27Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20119b9b4fd27Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
20120b9b4fd27Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20121b9b4fd27Smrg$as_echo X"$_am_arg" |
20122b9b4fd27Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20123b9b4fd27Smrg	    s//\1/
20124b9b4fd27Smrg	    q
20125b9b4fd27Smrg	  }
20126b9b4fd27Smrg	  /^X\(\/\/\)[^/].*/{
20127b9b4fd27Smrg	    s//\1/
20128b9b4fd27Smrg	    q
20129b9b4fd27Smrg	  }
20130b9b4fd27Smrg	  /^X\(\/\/\)$/{
20131b9b4fd27Smrg	    s//\1/
20132b9b4fd27Smrg	    q
20133b9b4fd27Smrg	  }
20134b9b4fd27Smrg	  /^X\(\/\).*/{
20135b9b4fd27Smrg	    s//\1/
20136b9b4fd27Smrg	    q
20137b9b4fd27Smrg	  }
20138b9b4fd27Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
20139b9b4fd27Smrg ;;
20140caade7ccSmrg
20141b9b4fd27Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20142b9b4fd27Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
20143b9b4fd27Smrg ;;
20144b9b4fd27Smrg  esac
20145caade7ccSmrg
20146caade7ccSmrg
20147b9b4fd27Smrg  case $ac_file$ac_mode in
20148b9b4fd27Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20149af9a7ee5Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
20150b9b4fd27Smrg  # are listed without --file.  Let's play safe and only enable the eval
20151b9b4fd27Smrg  # if we detect the quoting.
20152b9b4fd27Smrg  case $CONFIG_FILES in
20153b9b4fd27Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
20154b9b4fd27Smrg  *)   set x $CONFIG_FILES ;;
20155b9b4fd27Smrg  esac
20156b9b4fd27Smrg  shift
20157b9b4fd27Smrg  for mf
20158b9b4fd27Smrg  do
20159b9b4fd27Smrg    # Strip MF so we end up with the name of the file.
20160b9b4fd27Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
20161b9b4fd27Smrg    # Check whether this is an Automake generated Makefile or not.
20162af9a7ee5Smrg    # We used to match only the files named 'Makefile.in', but
20163b9b4fd27Smrg    # some people rename them; so instead we look at the file content.
20164b9b4fd27Smrg    # Grep'ing the first line is not enough: some people post-process
20165b9b4fd27Smrg    # each Makefile.in and add a new line on top of each file to say so.
20166b9b4fd27Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
20167b9b4fd27Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
20168b9b4fd27Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20169b9b4fd27Smrg      dirpart=`$as_dirname -- "$mf" ||
20170b9b4fd27Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20171b9b4fd27Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
20172b9b4fd27Smrg	 X"$mf" : 'X\(//\)$' \| \
20173b9b4fd27Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20174b9b4fd27Smrg$as_echo X"$mf" |
20175b9b4fd27Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20176b9b4fd27Smrg	    s//\1/
20177b9b4fd27Smrg	    q
20178b9b4fd27Smrg	  }
20179b9b4fd27Smrg	  /^X\(\/\/\)[^/].*/{
20180b9b4fd27Smrg	    s//\1/
20181b9b4fd27Smrg	    q
20182b9b4fd27Smrg	  }
20183b9b4fd27Smrg	  /^X\(\/\/\)$/{
20184b9b4fd27Smrg	    s//\1/
20185b9b4fd27Smrg	    q
20186b9b4fd27Smrg	  }
20187b9b4fd27Smrg	  /^X\(\/\).*/{
20188b9b4fd27Smrg	    s//\1/
20189b9b4fd27Smrg	    q
20190b9b4fd27Smrg	  }
20191b9b4fd27Smrg	  s/.*/./; q'`
20192b9b4fd27Smrg    else
20193b9b4fd27Smrg      continue
20194b9b4fd27Smrg    fi
20195b9b4fd27Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
20196af9a7ee5Smrg    # from the Makefile without running 'make'.
20197b9b4fd27Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20198b9b4fd27Smrg    test -z "$DEPDIR" && continue
20199b9b4fd27Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20200af9a7ee5Smrg    test -z "$am__include" && continue
20201b9b4fd27Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20202b9b4fd27Smrg    # Find all dependency output files, they are included files with
20203b9b4fd27Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20204b9b4fd27Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
20205b9b4fd27Smrg    # expansion.
20206b9b4fd27Smrg    for file in `sed -n "
20207b9b4fd27Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20208af9a7ee5Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20209b9b4fd27Smrg      # Make sure the directory exists.
20210b9b4fd27Smrg      test -f "$dirpart/$file" && continue
20211b9b4fd27Smrg      fdir=`$as_dirname -- "$file" ||
20212b9b4fd27Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20213b9b4fd27Smrg	 X"$file" : 'X\(//\)[^/]' \| \
20214b9b4fd27Smrg	 X"$file" : 'X\(//\)$' \| \
20215b9b4fd27Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20216b9b4fd27Smrg$as_echo X"$file" |
20217b9b4fd27Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20218b9b4fd27Smrg	    s//\1/
20219b9b4fd27Smrg	    q
20220b9b4fd27Smrg	  }
20221b9b4fd27Smrg	  /^X\(\/\/\)[^/].*/{
20222b9b4fd27Smrg	    s//\1/
20223b9b4fd27Smrg	    q
20224b9b4fd27Smrg	  }
20225b9b4fd27Smrg	  /^X\(\/\/\)$/{
20226b9b4fd27Smrg	    s//\1/
20227b9b4fd27Smrg	    q
20228b9b4fd27Smrg	  }
20229b9b4fd27Smrg	  /^X\(\/\).*/{
20230b9b4fd27Smrg	    s//\1/
20231b9b4fd27Smrg	    q
20232b9b4fd27Smrg	  }
20233b9b4fd27Smrg	  s/.*/./; q'`
20234b9b4fd27Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20235b9b4fd27Smrg      # echo "creating $dirpart/$file"
20236b9b4fd27Smrg      echo '# dummy' > "$dirpart/$file"
20237b9b4fd27Smrg    done
20238b9b4fd27Smrg  done
20239b9b4fd27Smrg}
20240b9b4fd27Smrg ;;
20241b9b4fd27Smrg    "libtool":C)
20242caade7ccSmrg
20243b9b4fd27Smrg    # See if we are running on zsh, and set the options which allow our
20244b9b4fd27Smrg    # commands through without removal of \ escapes.
20245b9b4fd27Smrg    if test -n "${ZSH_VERSION+set}" ; then
20246b9b4fd27Smrg      setopt NO_GLOB_SUBST
20247b9b4fd27Smrg    fi
20248caade7ccSmrg
20249b9b4fd27Smrg    cfgfile="${ofile}T"
20250b9b4fd27Smrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20251b9b4fd27Smrg    $RM "$cfgfile"
20252caade7ccSmrg
20253b9b4fd27Smrg    cat <<_LT_EOF >> "$cfgfile"
20254b9b4fd27Smrg#! $SHELL
20255caade7ccSmrg
20256b9b4fd27Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20257b9b4fd27Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20258b9b4fd27Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20259b9b4fd27Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20260b9b4fd27Smrg#
20261b9b4fd27Smrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20262af9a7ee5Smrg#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20263af9a7ee5Smrg#                 Foundation, Inc.
20264b9b4fd27Smrg#   Written by Gordon Matzigkeit, 1996
20265b9b4fd27Smrg#
20266b9b4fd27Smrg#   This file is part of GNU Libtool.
20267b9b4fd27Smrg#
20268b9b4fd27Smrg# GNU Libtool is free software; you can redistribute it and/or
20269b9b4fd27Smrg# modify it under the terms of the GNU General Public License as
20270b9b4fd27Smrg# published by the Free Software Foundation; either version 2 of
20271b9b4fd27Smrg# the License, or (at your option) any later version.
20272b9b4fd27Smrg#
20273b9b4fd27Smrg# As a special exception to the GNU General Public License,
20274b9b4fd27Smrg# if you distribute this file as part of a program or library that
20275b9b4fd27Smrg# is built using GNU Libtool, you may include this file under the
20276b9b4fd27Smrg# same distribution terms that you use for the rest of that program.
20277b9b4fd27Smrg#
20278b9b4fd27Smrg# GNU Libtool is distributed in the hope that it will be useful,
20279b9b4fd27Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
20280b9b4fd27Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20281b9b4fd27Smrg# GNU General Public License for more details.
20282b9b4fd27Smrg#
20283b9b4fd27Smrg# You should have received a copy of the GNU General Public License
20284b9b4fd27Smrg# along with GNU Libtool; see the file COPYING.  If not, a copy
20285b9b4fd27Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20286b9b4fd27Smrg# obtained by writing to the Free Software Foundation, Inc.,
20287b9b4fd27Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20288caade7ccSmrg
20289caade7ccSmrg
20290b9b4fd27Smrg# The names of the tagged configurations supported by this script.
20291b9b4fd27Smrgavailable_tags=""
20292caade7ccSmrg
20293b9b4fd27Smrg# ### BEGIN LIBTOOL CONFIG
20294caade7ccSmrg
20295b9b4fd27Smrg# Which release of libtool.m4 was used?
20296b9b4fd27Smrgmacro_version=$macro_version
20297b9b4fd27Smrgmacro_revision=$macro_revision
20298caade7ccSmrg
20299b9b4fd27Smrg# Whether or not to build shared libraries.
20300b9b4fd27Smrgbuild_libtool_libs=$enable_shared
20301caade7ccSmrg
20302b9b4fd27Smrg# Whether or not to build static libraries.
20303b9b4fd27Smrgbuild_old_libs=$enable_static
20304caade7ccSmrg
20305b9b4fd27Smrg# What type of objects to build.
20306b9b4fd27Smrgpic_mode=$pic_mode
20307caade7ccSmrg
20308b9b4fd27Smrg# Whether or not to optimize for fast installation.
20309b9b4fd27Smrgfast_install=$enable_fast_install
20310caade7ccSmrg
20311e8a5466aSmrg# Shell to use when invoking shell scripts.
20312e8a5466aSmrgSHELL=$lt_SHELL
20313e8a5466aSmrg
20314e8a5466aSmrg# An echo program that protects backslashes.
20315e8a5466aSmrgECHO=$lt_ECHO
20316e8a5466aSmrg
20317af9a7ee5Smrg# The PATH separator for the build system.
20318af9a7ee5SmrgPATH_SEPARATOR=$lt_PATH_SEPARATOR
20319af9a7ee5Smrg
20320b9b4fd27Smrg# The host system.
20321b9b4fd27Smrghost_alias=$host_alias
20322b9b4fd27Smrghost=$host
20323b9b4fd27Smrghost_os=$host_os
20324485f0483Smrg
20325b9b4fd27Smrg# The build system.
20326b9b4fd27Smrgbuild_alias=$build_alias
20327b9b4fd27Smrgbuild=$build
20328b9b4fd27Smrgbuild_os=$build_os
20329caade7ccSmrg
20330b9b4fd27Smrg# A sed program that does not truncate output.
20331b9b4fd27SmrgSED=$lt_SED
20332caade7ccSmrg
20333b9b4fd27Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20334b9b4fd27SmrgXsed="\$SED -e 1s/^X//"
20335caade7ccSmrg
20336b9b4fd27Smrg# A grep program that handles long lines.
20337b9b4fd27SmrgGREP=$lt_GREP
20338caade7ccSmrg
20339b9b4fd27Smrg# An ERE matcher.
20340b9b4fd27SmrgEGREP=$lt_EGREP
20341caade7ccSmrg
20342b9b4fd27Smrg# A literal string matcher.
20343b9b4fd27SmrgFGREP=$lt_FGREP
20344caade7ccSmrg
20345b9b4fd27Smrg# A BSD- or MS-compatible name lister.
20346b9b4fd27SmrgNM=$lt_NM
20347caade7ccSmrg
20348b9b4fd27Smrg# Whether we need soft or hard links.
20349b9b4fd27SmrgLN_S=$lt_LN_S
20350caade7ccSmrg
20351b9b4fd27Smrg# What is the maximum length of a command?
20352b9b4fd27Smrgmax_cmd_len=$max_cmd_len
20353caade7ccSmrg
20354b9b4fd27Smrg# Object file suffix (normally "o").
20355b9b4fd27Smrgobjext=$ac_objext
20356caade7ccSmrg
20357b9b4fd27Smrg# Executable file suffix (normally "").
20358b9b4fd27Smrgexeext=$exeext
20359caade7ccSmrg
20360b9b4fd27Smrg# whether the shell understands "unset".
20361b9b4fd27Smrglt_unset=$lt_unset
20362caade7ccSmrg
20363b9b4fd27Smrg# turn spaces into newlines.
20364b9b4fd27SmrgSP2NL=$lt_lt_SP2NL
20365caade7ccSmrg
20366b9b4fd27Smrg# turn newlines into spaces.
20367b9b4fd27SmrgNL2SP=$lt_lt_NL2SP
20368caade7ccSmrg
20369a5602400Smrg# convert \$build file names to \$host format.
20370a5602400Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd
20371a5602400Smrg
20372a5602400Smrg# convert \$build files to toolchain format.
20373a5602400Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd
20374a5602400Smrg
20375b9b4fd27Smrg# An object symbol dumper.
20376b9b4fd27SmrgOBJDUMP=$lt_OBJDUMP
20377caade7ccSmrg
20378b9b4fd27Smrg# Method to check whether dependent libraries are shared objects.
20379b9b4fd27Smrgdeplibs_check_method=$lt_deplibs_check_method
20380caade7ccSmrg
20381a5602400Smrg# Command to use when deplibs_check_method = "file_magic".
20382b9b4fd27Smrgfile_magic_cmd=$lt_file_magic_cmd
20383caade7ccSmrg
20384a5602400Smrg# How to find potential files when deplibs_check_method = "file_magic".
20385a5602400Smrgfile_magic_glob=$lt_file_magic_glob
20386a5602400Smrg
20387a5602400Smrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20388a5602400Smrgwant_nocaseglob=$lt_want_nocaseglob
20389a5602400Smrg
20390a5602400Smrg# DLL creation program.
20391a5602400SmrgDLLTOOL=$lt_DLLTOOL
20392a5602400Smrg
20393a5602400Smrg# Command to associate shared and link libraries.
20394a5602400Smrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20395a5602400Smrg
20396b9b4fd27Smrg# The archiver.
20397b9b4fd27SmrgAR=$lt_AR
20398a5602400Smrg
20399a5602400Smrg# Flags to create an archive.
20400b9b4fd27SmrgAR_FLAGS=$lt_AR_FLAGS
20401caade7ccSmrg
20402a5602400Smrg# How to feed a file listing to the archiver.
20403a5602400Smrgarchiver_list_spec=$lt_archiver_list_spec
20404a5602400Smrg
20405b9b4fd27Smrg# A symbol stripping program.
20406b9b4fd27SmrgSTRIP=$lt_STRIP
20407caade7ccSmrg
20408b9b4fd27Smrg# Commands used to install an old-style archive.
20409b9b4fd27SmrgRANLIB=$lt_RANLIB
20410b9b4fd27Smrgold_postinstall_cmds=$lt_old_postinstall_cmds
20411b9b4fd27Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds
20412caade7ccSmrg
20413e8a5466aSmrg# Whether to use a lock for old archive extraction.
20414e8a5466aSmrglock_old_archive_extraction=$lock_old_archive_extraction
20415e8a5466aSmrg
20416b9b4fd27Smrg# A C compiler.
20417b9b4fd27SmrgLTCC=$lt_CC
20418caade7ccSmrg
20419b9b4fd27Smrg# LTCC compiler flags.
20420b9b4fd27SmrgLTCFLAGS=$lt_CFLAGS
20421caade7ccSmrg
20422b9b4fd27Smrg# Take the output of nm and produce a listing of raw symbols and C names.
20423b9b4fd27Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20424caade7ccSmrg
20425b9b4fd27Smrg# Transform the output of nm in a proper C declaration.
20426b9b4fd27Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20427caade7ccSmrg
20428b9b4fd27Smrg# Transform the output of nm in a C name address pair.
20429b9b4fd27Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20430caade7ccSmrg
20431b9b4fd27Smrg# Transform the output of nm in a C name address pair when lib prefix is needed.
20432b9b4fd27Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20433caade7ccSmrg
20434a5602400Smrg# Specify filename containing input files for \$NM.
20435a5602400Smrgnm_file_list_spec=$lt_nm_file_list_spec
20436a5602400Smrg
20437a5602400Smrg# The root where to search for dependent libraries,and in which our libraries should be installed.
20438a5602400Smrglt_sysroot=$lt_sysroot
20439a5602400Smrg
20440b9b4fd27Smrg# The name of the directory that contains temporary libtool files.
20441b9b4fd27Smrgobjdir=$objdir
20442caade7ccSmrg
20443b9b4fd27Smrg# Used to examine libraries when file_magic_cmd begins with "file".
20444b9b4fd27SmrgMAGIC_CMD=$MAGIC_CMD
20445caade7ccSmrg
20446b9b4fd27Smrg# Must we lock files when doing compilation?
20447b9b4fd27Smrgneed_locks=$lt_need_locks
20448caade7ccSmrg
20449a5602400Smrg# Manifest tool.
20450a5602400SmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL
20451a5602400Smrg
20452b9b4fd27Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20453b9b4fd27SmrgDSYMUTIL=$lt_DSYMUTIL
20454caade7ccSmrg
20455b9b4fd27Smrg# Tool to change global to local symbols on Mac OS X.
20456b9b4fd27SmrgNMEDIT=$lt_NMEDIT
20457caade7ccSmrg
20458b9b4fd27Smrg# Tool to manipulate fat objects and archives on Mac OS X.
20459b9b4fd27SmrgLIPO=$lt_LIPO
20460caade7ccSmrg
20461b9b4fd27Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20462b9b4fd27SmrgOTOOL=$lt_OTOOL
20463caade7ccSmrg
20464b9b4fd27Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20465b9b4fd27SmrgOTOOL64=$lt_OTOOL64
20466caade7ccSmrg
20467b9b4fd27Smrg# Old archive suffix (normally "a").
20468b9b4fd27Smrglibext=$libext
20469caade7ccSmrg
20470b9b4fd27Smrg# Shared library suffix (normally ".so").
20471b9b4fd27Smrgshrext_cmds=$lt_shrext_cmds
20472caade7ccSmrg
20473b9b4fd27Smrg# The commands to extract the exported symbol list from a shared archive.
20474b9b4fd27Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds
20475caade7ccSmrg
20476b9b4fd27Smrg# Variables whose values should be saved in libtool wrapper scripts and
20477b9b4fd27Smrg# restored at link time.
20478b9b4fd27Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink
20479caade7ccSmrg
20480b9b4fd27Smrg# Do we need the "lib" prefix for modules?
20481b9b4fd27Smrgneed_lib_prefix=$need_lib_prefix
20482caade7ccSmrg
20483b9b4fd27Smrg# Do we need a version for libraries?
20484b9b4fd27Smrgneed_version=$need_version
20485caade7ccSmrg
20486b9b4fd27Smrg# Library versioning type.
20487b9b4fd27Smrgversion_type=$version_type
20488caade7ccSmrg
20489b9b4fd27Smrg# Shared library runtime path variable.
20490b9b4fd27Smrgrunpath_var=$runpath_var
20491caade7ccSmrg
20492b9b4fd27Smrg# Shared library path variable.
20493b9b4fd27Smrgshlibpath_var=$shlibpath_var
20494caade7ccSmrg
20495b9b4fd27Smrg# Is shlibpath searched before the hard-coded library search path?
20496b9b4fd27Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath
20497caade7ccSmrg
20498b9b4fd27Smrg# Format of library name prefix.
20499b9b4fd27Smrglibname_spec=$lt_libname_spec
20500caade7ccSmrg
20501b9b4fd27Smrg# List of archive names.  First name is the real one, the rest are links.
20502b9b4fd27Smrg# The last name is the one that the linker finds with -lNAME
20503b9b4fd27Smrglibrary_names_spec=$lt_library_names_spec
20504caade7ccSmrg
20505b9b4fd27Smrg# The coded name of the library, if different from the real name.
20506b9b4fd27Smrgsoname_spec=$lt_soname_spec
20507caade7ccSmrg
20508e8a5466aSmrg# Permission mode override for installation of shared libraries.
20509e8a5466aSmrginstall_override_mode=$lt_install_override_mode
20510e8a5466aSmrg
20511b9b4fd27Smrg# Command to use after installation of a shared archive.
20512b9b4fd27Smrgpostinstall_cmds=$lt_postinstall_cmds
20513caade7ccSmrg
20514b9b4fd27Smrg# Command to use after uninstallation of a shared archive.
20515b9b4fd27Smrgpostuninstall_cmds=$lt_postuninstall_cmds
20516caade7ccSmrg
20517b9b4fd27Smrg# Commands used to finish a libtool library installation in a directory.
20518b9b4fd27Smrgfinish_cmds=$lt_finish_cmds
20519caade7ccSmrg
20520b9b4fd27Smrg# As "finish_cmds", except a single script fragment to be evaled but
20521b9b4fd27Smrg# not shown.
20522b9b4fd27Smrgfinish_eval=$lt_finish_eval
20523caade7ccSmrg
20524b9b4fd27Smrg# Whether we should hardcode library paths into libraries.
20525b9b4fd27Smrghardcode_into_libs=$hardcode_into_libs
20526caade7ccSmrg
20527b9b4fd27Smrg# Compile-time system search path for libraries.
20528b9b4fd27Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20529caade7ccSmrg
20530b9b4fd27Smrg# Run-time system search path for libraries.
20531b9b4fd27Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20532caade7ccSmrg
20533b9b4fd27Smrg# Whether dlopen is supported.
20534b9b4fd27Smrgdlopen_support=$enable_dlopen
20535caade7ccSmrg
20536b9b4fd27Smrg# Whether dlopen of programs is supported.
20537b9b4fd27Smrgdlopen_self=$enable_dlopen_self
20538caade7ccSmrg
20539b9b4fd27Smrg# Whether dlopen of statically linked programs is supported.
20540b9b4fd27Smrgdlopen_self_static=$enable_dlopen_self_static
20541caade7ccSmrg
20542b9b4fd27Smrg# Commands to strip libraries.
20543b9b4fd27Smrgold_striplib=$lt_old_striplib
20544b9b4fd27Smrgstriplib=$lt_striplib
20545caade7ccSmrg
20546caade7ccSmrg
20547b9b4fd27Smrg# The linker used to build libraries.
20548b9b4fd27SmrgLD=$lt_LD
20549caade7ccSmrg
20550e8a5466aSmrg# How to create reloadable object files.
20551e8a5466aSmrgreload_flag=$lt_reload_flag
20552e8a5466aSmrgreload_cmds=$lt_reload_cmds
20553e8a5466aSmrg
20554b9b4fd27Smrg# Commands used to build an old-style archive.
20555b9b4fd27Smrgold_archive_cmds=$lt_old_archive_cmds
20556caade7ccSmrg
20557b9b4fd27Smrg# A language specific compiler.
20558b9b4fd27SmrgCC=$lt_compiler
20559caade7ccSmrg
20560b9b4fd27Smrg# Is the compiler the GNU compiler?
20561b9b4fd27Smrgwith_gcc=$GCC
20562caade7ccSmrg
20563b9b4fd27Smrg# Compiler flag to turn off builtin functions.
20564b9b4fd27Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20565caade7ccSmrg
20566b9b4fd27Smrg# Additional compiler flags for building library objects.
20567b9b4fd27Smrgpic_flag=$lt_lt_prog_compiler_pic
20568caade7ccSmrg
20569a5602400Smrg# How to pass a linker flag through the compiler.
20570a5602400Smrgwl=$lt_lt_prog_compiler_wl
20571a5602400Smrg
20572b9b4fd27Smrg# Compiler flag to prevent dynamic linking.
20573b9b4fd27Smrglink_static_flag=$lt_lt_prog_compiler_static
20574caade7ccSmrg
20575b9b4fd27Smrg# Does compiler simultaneously support -c and -o options?
20576b9b4fd27Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o
20577caade7ccSmrg
20578b9b4fd27Smrg# Whether or not to add -lc for building shared libraries.
20579b9b4fd27Smrgbuild_libtool_need_lc=$archive_cmds_need_lc
20580caade7ccSmrg
20581b9b4fd27Smrg# Whether or not to disallow shared libs when runtime libs are static.
20582b9b4fd27Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20583caade7ccSmrg
20584b9b4fd27Smrg# Compiler flag to allow reflexive dlopens.
20585b9b4fd27Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20586caade7ccSmrg
20587b9b4fd27Smrg# Compiler flag to generate shared objects directly from archives.
20588b9b4fd27Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec
20589caade7ccSmrg
20590b9b4fd27Smrg# Whether the compiler copes with passing no objects directly.
20591b9b4fd27Smrgcompiler_needs_object=$lt_compiler_needs_object
20592caade7ccSmrg
20593b9b4fd27Smrg# Create an old-style archive from a shared archive.
20594b9b4fd27Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20595caade7ccSmrg
20596b9b4fd27Smrg# Create a temporary old-style archive to link instead of a shared archive.
20597b9b4fd27Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20598caade7ccSmrg
20599b9b4fd27Smrg# Commands used to build a shared archive.
20600b9b4fd27Smrgarchive_cmds=$lt_archive_cmds
20601b9b4fd27Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds
20602caade7ccSmrg
20603b9b4fd27Smrg# Commands used to build a loadable module if different from building
20604b9b4fd27Smrg# a shared archive.
20605b9b4fd27Smrgmodule_cmds=$lt_module_cmds
20606b9b4fd27Smrgmodule_expsym_cmds=$lt_module_expsym_cmds
20607caade7ccSmrg
20608b9b4fd27Smrg# Whether we are building with GNU ld or not.
20609b9b4fd27Smrgwith_gnu_ld=$lt_with_gnu_ld
20610caade7ccSmrg
20611b9b4fd27Smrg# Flag that allows shared libraries with undefined symbols to be built.
20612b9b4fd27Smrgallow_undefined_flag=$lt_allow_undefined_flag
20613caade7ccSmrg
20614b9b4fd27Smrg# Flag that enforces no undefined symbols.
20615b9b4fd27Smrgno_undefined_flag=$lt_no_undefined_flag
20616caade7ccSmrg
20617b9b4fd27Smrg# Flag to hardcode \$libdir into a binary during linking.
20618b9b4fd27Smrg# This must work even if \$libdir does not exist
20619b9b4fd27Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20620caade7ccSmrg
20621b9b4fd27Smrg# Whether we need a single "-rpath" flag with a separated argument.
20622b9b4fd27Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator
20623caade7ccSmrg
20624b9b4fd27Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20625b9b4fd27Smrg# DIR into the resulting binary.
20626b9b4fd27Smrghardcode_direct=$hardcode_direct
20627b9b4fd27Smrg
20628b9b4fd27Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20629b9b4fd27Smrg# DIR into the resulting binary and the resulting library dependency is
20630b9b4fd27Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20631b9b4fd27Smrg# library is relocated.
20632b9b4fd27Smrghardcode_direct_absolute=$hardcode_direct_absolute
20633b9b4fd27Smrg
20634b9b4fd27Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20635b9b4fd27Smrg# into the resulting binary.
20636b9b4fd27Smrghardcode_minus_L=$hardcode_minus_L
20637b9b4fd27Smrg
20638b9b4fd27Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20639b9b4fd27Smrg# into the resulting binary.
20640b9b4fd27Smrghardcode_shlibpath_var=$hardcode_shlibpath_var
20641b9b4fd27Smrg
20642b9b4fd27Smrg# Set to "yes" if building a shared library automatically hardcodes DIR
20643b9b4fd27Smrg# into the library and all subsequent libraries and executables linked
20644b9b4fd27Smrg# against it.
20645b9b4fd27Smrghardcode_automatic=$hardcode_automatic
20646b9b4fd27Smrg
20647b9b4fd27Smrg# Set to yes if linker adds runtime paths of dependent libraries
20648b9b4fd27Smrg# to runtime path list.
20649b9b4fd27Smrginherit_rpath=$inherit_rpath
20650b9b4fd27Smrg
20651b9b4fd27Smrg# Whether libtool must link a program against all its dependency libraries.
20652b9b4fd27Smrglink_all_deplibs=$link_all_deplibs
20653b9b4fd27Smrg
20654b9b4fd27Smrg# Set to "yes" if exported symbols are required.
20655b9b4fd27Smrgalways_export_symbols=$always_export_symbols
20656b9b4fd27Smrg
20657b9b4fd27Smrg# The commands to list exported symbols.
20658b9b4fd27Smrgexport_symbols_cmds=$lt_export_symbols_cmds
20659b9b4fd27Smrg
20660b9b4fd27Smrg# Symbols that should not be listed in the preloaded symbols.
20661b9b4fd27Smrgexclude_expsyms=$lt_exclude_expsyms
20662b9b4fd27Smrg
20663b9b4fd27Smrg# Symbols that must always be exported.
20664b9b4fd27Smrginclude_expsyms=$lt_include_expsyms
20665b9b4fd27Smrg
20666b9b4fd27Smrg# Commands necessary for linking programs (against libraries) with templates.
20667b9b4fd27Smrgprelink_cmds=$lt_prelink_cmds
20668b9b4fd27Smrg
20669a5602400Smrg# Commands necessary for finishing linking programs.
20670a5602400Smrgpostlink_cmds=$lt_postlink_cmds
20671a5602400Smrg
20672b9b4fd27Smrg# Specify filename containing input files.
20673b9b4fd27Smrgfile_list_spec=$lt_file_list_spec
20674b9b4fd27Smrg
20675b9b4fd27Smrg# How to hardcode a shared library path into an executable.
20676b9b4fd27Smrghardcode_action=$hardcode_action
20677b9b4fd27Smrg
20678b9b4fd27Smrg# ### END LIBTOOL CONFIG
20679b9b4fd27Smrg
20680b9b4fd27Smrg_LT_EOF
20681caade7ccSmrg
20682b9b4fd27Smrg  case $host_os in
20683b9b4fd27Smrg  aix3*)
20684b9b4fd27Smrg    cat <<\_LT_EOF >> "$cfgfile"
20685b9b4fd27Smrg# AIX sometimes has problems with the GCC collect2 program.  For some
20686b9b4fd27Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems
20687b9b4fd27Smrg# vanish in a puff of smoke.
20688b9b4fd27Smrgif test "X${COLLECT_NAMES+set}" != Xset; then
20689b9b4fd27Smrg  COLLECT_NAMES=
20690b9b4fd27Smrg  export COLLECT_NAMES
20691caade7ccSmrgfi
20692b9b4fd27Smrg_LT_EOF
20693b9b4fd27Smrg    ;;
20694b9b4fd27Smrg  esac
20695caade7ccSmrg
20696caade7ccSmrg
20697b9b4fd27Smrgltmain="$ac_aux_dir/ltmain.sh"
20698caade7ccSmrg
20699caade7ccSmrg
20700b9b4fd27Smrg  # We use sed instead of cat because bash on DJGPP gets confused if
20701b9b4fd27Smrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20702b9b4fd27Smrg  # text mode, it properly converts lines to CR/LF.  This bash problem
20703b9b4fd27Smrg  # is reportedly fixed, but why not run on old versions too?
20704a5602400Smrg  sed '$q' "$ltmain" >> "$cfgfile" \
20705a5602400Smrg     || (rm -f "$cfgfile"; exit 1)
20706a5602400Smrg
20707a5602400Smrg  if test x"$xsi_shell" = xyes; then
20708a5602400Smrg  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20709a5602400Smrgfunc_dirname ()\
20710a5602400Smrg{\
20711a5602400Smrg\    case ${1} in\
20712a5602400Smrg\      */*) func_dirname_result="${1%/*}${2}" ;;\
20713a5602400Smrg\      *  ) func_dirname_result="${3}" ;;\
20714a5602400Smrg\    esac\
20715a5602400Smrg} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20716a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20717a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20718a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20719a5602400Smrg
20720a5602400Smrg
20721a5602400Smrg  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20722a5602400Smrgfunc_basename ()\
20723a5602400Smrg{\
20724a5602400Smrg\    func_basename_result="${1##*/}"\
20725a5602400Smrg} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20726a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20727a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20728a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20729a5602400Smrg
20730a5602400Smrg
20731a5602400Smrg  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20732a5602400Smrgfunc_dirname_and_basename ()\
20733a5602400Smrg{\
20734a5602400Smrg\    case ${1} in\
20735a5602400Smrg\      */*) func_dirname_result="${1%/*}${2}" ;;\
20736a5602400Smrg\      *  ) func_dirname_result="${3}" ;;\
20737a5602400Smrg\    esac\
20738a5602400Smrg\    func_basename_result="${1##*/}"\
20739a5602400Smrg} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20740a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20741a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20742a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20743a5602400Smrg
20744a5602400Smrg
20745a5602400Smrg  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20746a5602400Smrgfunc_stripname ()\
20747a5602400Smrg{\
20748a5602400Smrg\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20749a5602400Smrg\    # positional parameters, so assign one to ordinary parameter first.\
20750a5602400Smrg\    func_stripname_result=${3}\
20751a5602400Smrg\    func_stripname_result=${func_stripname_result#"${1}"}\
20752a5602400Smrg\    func_stripname_result=${func_stripname_result%"${2}"}\
20753a5602400Smrg} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20754a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20755a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20756a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20757a5602400Smrg
20758a5602400Smrg
20759a5602400Smrg  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20760a5602400Smrgfunc_split_long_opt ()\
20761a5602400Smrg{\
20762a5602400Smrg\    func_split_long_opt_name=${1%%=*}\
20763a5602400Smrg\    func_split_long_opt_arg=${1#*=}\
20764a5602400Smrg} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20765a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20766a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20767a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20768a5602400Smrg
20769a5602400Smrg
20770a5602400Smrg  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20771a5602400Smrgfunc_split_short_opt ()\
20772a5602400Smrg{\
20773a5602400Smrg\    func_split_short_opt_arg=${1#??}\
20774a5602400Smrg\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20775a5602400Smrg} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20776a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20777a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20778a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20779a5602400Smrg
20780a5602400Smrg
20781a5602400Smrg  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20782a5602400Smrgfunc_lo2o ()\
20783a5602400Smrg{\
20784a5602400Smrg\    case ${1} in\
20785a5602400Smrg\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20786a5602400Smrg\      *)    func_lo2o_result=${1} ;;\
20787a5602400Smrg\    esac\
20788a5602400Smrg} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20789a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20790a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20791a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20792a5602400Smrg
20793a5602400Smrg
20794a5602400Smrg  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20795a5602400Smrgfunc_xform ()\
20796a5602400Smrg{\
20797a5602400Smrg    func_xform_result=${1%.*}.lo\
20798a5602400Smrg} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20799a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20800a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20801a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20802a5602400Smrg
20803a5602400Smrg
20804a5602400Smrg  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20805a5602400Smrgfunc_arith ()\
20806a5602400Smrg{\
20807a5602400Smrg    func_arith_result=$(( $* ))\
20808a5602400Smrg} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20809a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20810a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20811a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20812a5602400Smrg
20813a5602400Smrg
20814a5602400Smrg  sed -e '/^func_len ()$/,/^} # func_len /c\
20815a5602400Smrgfunc_len ()\
20816a5602400Smrg{\
20817a5602400Smrg    func_len_result=${#1}\
20818a5602400Smrg} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20819a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20820a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20821a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20822a5602400Smrg
20823a5602400Smrgfi
20824a5602400Smrg
20825a5602400Smrgif test x"$lt_shell_append" = xyes; then
20826a5602400Smrg  sed -e '/^func_append ()$/,/^} # func_append /c\
20827a5602400Smrgfunc_append ()\
20828a5602400Smrg{\
20829a5602400Smrg    eval "${1}+=\\${2}"\
20830a5602400Smrg} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20831a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20832a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20833a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20834a5602400Smrg
20835a5602400Smrg
20836a5602400Smrg  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20837a5602400Smrgfunc_append_quoted ()\
20838a5602400Smrg{\
20839a5602400Smrg\    func_quote_for_eval "${2}"\
20840a5602400Smrg\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20841a5602400Smrg} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20842a5602400Smrg  && mv -f "$cfgfile.tmp" "$cfgfile" \
20843a5602400Smrg    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20844a5602400Smrgtest 0 -eq $? || _lt_function_replace_fail=:
20845a5602400Smrg
20846a5602400Smrg
20847a5602400Smrg  # Save a `func_append' function call where possible by direct use of '+='
20848a5602400Smrg  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20849a5602400Smrg    && mv -f "$cfgfile.tmp" "$cfgfile" \
20850a5602400Smrg      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20851a5602400Smrg  test 0 -eq $? || _lt_function_replace_fail=:
20852a5602400Smrgelse
20853a5602400Smrg  # Save a `func_append' function call even when '+=' is not available
20854a5602400Smrg  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20855a5602400Smrg    && mv -f "$cfgfile.tmp" "$cfgfile" \
20856a5602400Smrg      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20857a5602400Smrg  test 0 -eq $? || _lt_function_replace_fail=:
20858a5602400Smrgfi
20859a5602400Smrg
20860a5602400Smrgif test x"$_lt_function_replace_fail" = x":"; then
20861a5602400Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20862a5602400Smrg$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20863a5602400Smrgfi
20864a5602400Smrg
20865a5602400Smrg
20866a5602400Smrg   mv -f "$cfgfile" "$ofile" ||
20867b9b4fd27Smrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20868b9b4fd27Smrg  chmod +x "$ofile"
20869485f0483Smrg
20870caade7ccSmrg ;;
20871caade7ccSmrg
20872caade7ccSmrg  esac
20873caade7ccSmrgdone # for ac_tag
20874caade7ccSmrg
20875caade7ccSmrg
20876b9b4fd27Smrgas_fn_exit 0
20877caade7ccSmrg_ACEOF
20878caade7ccSmrgac_clean_files=$ac_clean_files_save
20879caade7ccSmrg
20880485f0483Smrgtest $ac_write_fail = 0 ||
20881e8a5466aSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20882485f0483Smrg
20883caade7ccSmrg
20884caade7ccSmrg# configure is writing to config.log, and then calls config.status.
20885caade7ccSmrg# config.status does its own redirection, appending to config.log.
20886caade7ccSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
20887caade7ccSmrg# by configure, so config.status won't be able to write to it; its
20888caade7ccSmrg# output is simply discarded.  So we exec the FD to /dev/null,
20889caade7ccSmrg# effectively closing config.log, so it can be properly (re)opened and
20890caade7ccSmrg# appended to by config.status.  When coming back to configure, we
20891caade7ccSmrg# need to make the FD available again.
20892caade7ccSmrgif test "$no_create" != yes; then
20893caade7ccSmrg  ac_cs_success=:
20894caade7ccSmrg  ac_config_status_args=
20895caade7ccSmrg  test "$silent" = yes &&
20896caade7ccSmrg    ac_config_status_args="$ac_config_status_args --quiet"
20897caade7ccSmrg  exec 5>/dev/null
20898caade7ccSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20899caade7ccSmrg  exec 5>>config.log
20900caade7ccSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20901caade7ccSmrg  # would make configure fail if this is the last instruction.
20902e8a5466aSmrg  $ac_cs_success || as_fn_exit 1
20903caade7ccSmrgfi
20904485f0483Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20905b9b4fd27Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20906485f0483Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20907485f0483Smrgfi
20908caade7ccSmrg
20909