configure revision aa9e3350
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-savage 2.3.6.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='xf86-video-savage'
573PACKAGE_TARNAME='xf86-video-savage'
574PACKAGE_VERSION='2.3.6'
575PACKAGE_STRING='xf86-video-savage 2.3.6'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620DRIVER_NAME
621moduledir
622XSERVER_LIBPCIACCESS_FALSE
623XSERVER_LIBPCIACCESS_TRUE
624PCIACCESS_LIBS
625PCIACCESS_CFLAGS
626XAA_FALSE
627XAA_TRUE
628DRI_LIBS
629DRI_CFLAGS
630DRI_FALSE
631DRI_TRUE
632HAVE_XEXTPROTO_71_FALSE
633HAVE_XEXTPROTO_71_TRUE
634XEXT_LIBS
635XEXT_CFLAGS
636XORG_LIBS
637XORG_CFLAGS
638OTOOL64
639OTOOL
640LIPO
641NMEDIT
642DSYMUTIL
643MANIFEST_TOOL
644RANLIB
645ac_ct_AR
646AR
647DLLTOOL
648OBJDUMP
649LN_S
650NM
651ac_ct_DUMPBIN
652DUMPBIN
653LD
654FGREP
655LIBTOOL
656AM_BACKSLASH
657AM_DEFAULT_VERBOSITY
658AM_DEFAULT_V
659AM_V
660MAN_SUBSTS
661XORG_MAN_PAGE
662ADMIN_MAN_DIR
663DRIVER_MAN_DIR
664MISC_MAN_DIR
665FILE_MAN_DIR
666LIB_MAN_DIR
667APP_MAN_DIR
668ADMIN_MAN_SUFFIX
669DRIVER_MAN_SUFFIX
670MISC_MAN_SUFFIX
671FILE_MAN_SUFFIX
672LIB_MAN_SUFFIX
673APP_MAN_SUFFIX
674SED
675host_os
676host_vendor
677host_cpu
678host
679build_os
680build_vendor
681build_cpu
682build
683INSTALL_CMD
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
686PKG_CONFIG
687CHANGELOG_CMD
688STRICT_CFLAGS
689CWARNFLAGS
690BASE_CFLAGS
691EGREP
692GREP
693CPP
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__quote
702am__include
703DEPDIR
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711MAINT
712MAINTAINER_MODE_FALSE
713MAINTAINER_MODE_TRUE
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_maintainer_mode
779enable_dependency_tracking
780enable_selective_werror
781enable_strict_compilation
782enable_silent_rules
783enable_static
784enable_shared
785with_pic
786enable_fast_install
787with_gnu_ld
788with_sysroot
789enable_libtool_lock
790with_xorg_module_dir
791enable_dri
792enable_xaa
793'
794      ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CPP
803PKG_CONFIG
804PKG_CONFIG_PATH
805PKG_CONFIG_LIBDIR
806XORG_CFLAGS
807XORG_LIBS
808XEXT_CFLAGS
809XEXT_LIBS
810DRI_CFLAGS
811DRI_LIBS
812PCIACCESS_CFLAGS
813PCIACCESS_LIBS'
814
815
816# Initialize some variables set by options.
817ac_init_help=
818ac_init_version=false
819ac_unrecognized_opts=
820ac_unrecognized_sep=
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
843# (The list follows the same order as the GNU Coding Standards.)
844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
852includedir='${prefix}/include'
853oldincludedir='/usr/include'
854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
863
864ac_prev=
865ac_dashdash=
866for ac_option
867do
868  # If the previous option needs an argument, assign it.
869  if test -n "$ac_prev"; then
870    eval $ac_prev=\$ac_option
871    ac_prev=
872    continue
873  fi
874
875  case $ac_option in
876  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877  *=)   ac_optarg= ;;
878  *)    ac_optarg=yes ;;
879  esac
880
881  # Accept the important Cygnus configure options, so we can diagnose typos.
882
883  case $ac_dashdash$ac_option in
884  --)
885    ac_dashdash=yes ;;
886
887  -bindir | --bindir | --bindi | --bind | --bin | --bi)
888    ac_prev=bindir ;;
889  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890    bindir=$ac_optarg ;;
891
892  -build | --build | --buil | --bui | --bu)
893    ac_prev=build_alias ;;
894  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895    build_alias=$ac_optarg ;;
896
897  -cache-file | --cache-file | --cache-fil | --cache-fi \
898  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899    ac_prev=cache_file ;;
900  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902    cache_file=$ac_optarg ;;
903
904  --config-cache | -C)
905    cache_file=config.cache ;;
906
907  -datadir | --datadir | --datadi | --datad)
908    ac_prev=datadir ;;
909  -datadir=* | --datadir=* | --datadi=* | --datad=*)
910    datadir=$ac_optarg ;;
911
912  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913  | --dataroo | --dataro | --datar)
914    ac_prev=datarootdir ;;
915  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917    datarootdir=$ac_optarg ;;
918
919  -disable-* | --disable-*)
920    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921    # Reject names that are not valid shell variable names.
922    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923      as_fn_error $? "invalid feature name: $ac_useropt"
924    ac_useropt_orig=$ac_useropt
925    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926    case $ac_user_opts in
927      *"
928"enable_$ac_useropt"
929"*) ;;
930      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931	 ac_unrecognized_sep=', ';;
932    esac
933    eval enable_$ac_useropt=no ;;
934
935  -docdir | --docdir | --docdi | --doc | --do)
936    ac_prev=docdir ;;
937  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938    docdir=$ac_optarg ;;
939
940  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941    ac_prev=dvidir ;;
942  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943    dvidir=$ac_optarg ;;
944
945  -enable-* | --enable-*)
946    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947    # Reject names that are not valid shell variable names.
948    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949      as_fn_error $? "invalid feature name: $ac_useropt"
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=\$ac_optarg ;;
960
961  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963  | --exec | --exe | --ex)
964    ac_prev=exec_prefix ;;
965  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967  | --exec=* | --exe=* | --ex=*)
968    exec_prefix=$ac_optarg ;;
969
970  -gas | --gas | --ga | --g)
971    # Obsolete; use --with-gas.
972    with_gas=yes ;;
973
974  -help | --help | --hel | --he | -h)
975    ac_init_help=long ;;
976  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977    ac_init_help=recursive ;;
978  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979    ac_init_help=short ;;
980
981  -host | --host | --hos | --ho)
982    ac_prev=host_alias ;;
983  -host=* | --host=* | --hos=* | --ho=*)
984    host_alias=$ac_optarg ;;
985
986  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987    ac_prev=htmldir ;;
988  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989  | --ht=*)
990    htmldir=$ac_optarg ;;
991
992  -includedir | --includedir | --includedi | --included | --include \
993  | --includ | --inclu | --incl | --inc)
994    ac_prev=includedir ;;
995  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996  | --includ=* | --inclu=* | --incl=* | --inc=*)
997    includedir=$ac_optarg ;;
998
999  -infodir | --infodir | --infodi | --infod | --info | --inf)
1000    ac_prev=infodir ;;
1001  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002    infodir=$ac_optarg ;;
1003
1004  -libdir | --libdir | --libdi | --libd)
1005    ac_prev=libdir ;;
1006  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007    libdir=$ac_optarg ;;
1008
1009  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010  | --libexe | --libex | --libe)
1011    ac_prev=libexecdir ;;
1012  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013  | --libexe=* | --libex=* | --libe=*)
1014    libexecdir=$ac_optarg ;;
1015
1016  -localedir | --localedir | --localedi | --localed | --locale)
1017    ac_prev=localedir ;;
1018  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019    localedir=$ac_optarg ;;
1020
1021  -localstatedir | --localstatedir | --localstatedi | --localstated \
1022  | --localstate | --localstat | --localsta | --localst | --locals)
1023    ac_prev=localstatedir ;;
1024  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026    localstatedir=$ac_optarg ;;
1027
1028  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029    ac_prev=mandir ;;
1030  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031    mandir=$ac_optarg ;;
1032
1033  -nfp | --nfp | --nf)
1034    # Obsolete; use --without-fp.
1035    with_fp=no ;;
1036
1037  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038  | --no-cr | --no-c | -n)
1039    no_create=yes ;;
1040
1041  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043    no_recursion=yes ;;
1044
1045  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047  | --oldin | --oldi | --old | --ol | --o)
1048    ac_prev=oldincludedir ;;
1049  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052    oldincludedir=$ac_optarg ;;
1053
1054  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055    ac_prev=prefix ;;
1056  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057    prefix=$ac_optarg ;;
1058
1059  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060  | --program-pre | --program-pr | --program-p)
1061    ac_prev=program_prefix ;;
1062  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064    program_prefix=$ac_optarg ;;
1065
1066  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067  | --program-suf | --program-su | --program-s)
1068    ac_prev=program_suffix ;;
1069  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071    program_suffix=$ac_optarg ;;
1072
1073  -program-transform-name | --program-transform-name \
1074  | --program-transform-nam | --program-transform-na \
1075  | --program-transform-n | --program-transform- \
1076  | --program-transform | --program-transfor \
1077  | --program-transfo | --program-transf \
1078  | --program-trans | --program-tran \
1079  | --progr-tra | --program-tr | --program-t)
1080    ac_prev=program_transform_name ;;
1081  -program-transform-name=* | --program-transform-name=* \
1082  | --program-transform-nam=* | --program-transform-na=* \
1083  | --program-transform-n=* | --program-transform-=* \
1084  | --program-transform=* | --program-transfor=* \
1085  | --program-transfo=* | --program-transf=* \
1086  | --program-trans=* | --program-tran=* \
1087  | --progr-tra=* | --program-tr=* | --program-t=*)
1088    program_transform_name=$ac_optarg ;;
1089
1090  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091    ac_prev=pdfdir ;;
1092  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093    pdfdir=$ac_optarg ;;
1094
1095  -psdir | --psdir | --psdi | --psd | --ps)
1096    ac_prev=psdir ;;
1097  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098    psdir=$ac_optarg ;;
1099
1100  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101  | -silent | --silent | --silen | --sile | --sil)
1102    silent=yes ;;
1103
1104  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105    ac_prev=sbindir ;;
1106  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107  | --sbi=* | --sb=*)
1108    sbindir=$ac_optarg ;;
1109
1110  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112  | --sharedst | --shareds | --shared | --share | --shar \
1113  | --sha | --sh)
1114    ac_prev=sharedstatedir ;;
1115  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118  | --sha=* | --sh=*)
1119    sharedstatedir=$ac_optarg ;;
1120
1121  -site | --site | --sit)
1122    ac_prev=site ;;
1123  -site=* | --site=* | --sit=*)
1124    site=$ac_optarg ;;
1125
1126  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127    ac_prev=srcdir ;;
1128  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129    srcdir=$ac_optarg ;;
1130
1131  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132  | --syscon | --sysco | --sysc | --sys | --sy)
1133    ac_prev=sysconfdir ;;
1134  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136    sysconfdir=$ac_optarg ;;
1137
1138  -target | --target | --targe | --targ | --tar | --ta | --t)
1139    ac_prev=target_alias ;;
1140  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141    target_alias=$ac_optarg ;;
1142
1143  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144    verbose=yes ;;
1145
1146  -version | --version | --versio | --versi | --vers | -V)
1147    ac_init_version=: ;;
1148
1149  -with-* | --with-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: $ac_useropt"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=\$ac_optarg ;;
1164
1165  -without-* | --without-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=no ;;
1180
1181  --x)
1182    # Obsolete; use --with-x.
1183    with_x=yes ;;
1184
1185  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186  | --x-incl | --x-inc | --x-in | --x-i)
1187    ac_prev=x_includes ;;
1188  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190    x_includes=$ac_optarg ;;
1191
1192  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194    ac_prev=x_libraries ;;
1195  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197    x_libraries=$ac_optarg ;;
1198
1199  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information"
1201    ;;
1202
1203  *=*)
1204    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205    # Reject names that are not valid shell variable names.
1206    case $ac_envvar in #(
1207      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209    esac
1210    eval $ac_envvar=\$ac_optarg
1211    export $ac_envvar ;;
1212
1213  *)
1214    # FIXME: should be removed in autoconf 3.0.
1215    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219    ;;
1220
1221  esac
1222done
1223
1224if test -n "$ac_prev"; then
1225  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226  as_fn_error $? "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230  case $enable_option_checking in
1231    no) ;;
1232    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234  esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239		datadir sysconfdir sharedstatedir localstatedir includedir \
1240		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241		libdir localedir mandir
1242do
1243  eval ac_val=\$$ac_var
1244  # Remove trailing slashes.
1245  case $ac_val in
1246    */ )
1247      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248      eval $ac_var=\$ac_val;;
1249  esac
1250  # Be sure to have absolute directory names.
1251  case $ac_val in
1252    [\\/$]* | ?:[\\/]* )  continue;;
1253    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254  esac
1255  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267  if test "x$build_alias" = x; then
1268    cross_compiling=maybe
1269    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1270    If a cross compiler is detected then cross compile mode will be used" >&2
1271  elif test "x$build_alias" != "x$host_alias"; then
1272    cross_compiling=yes
1273  fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285  as_fn_error $? "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287  as_fn_error $? "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292  ac_srcdir_defaulted=yes
1293  # Try the directory containing this script, then the parent directory.
1294  ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296	 X"$as_myself" : 'X\(//\)[^/]' \| \
1297	 X"$as_myself" : 'X\(//\)$' \| \
1298	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301	    s//\1/
1302	    q
1303	  }
1304	  /^X\(\/\/\)[^/].*/{
1305	    s//\1/
1306	    q
1307	  }
1308	  /^X\(\/\/\)$/{
1309	    s//\1/
1310	    q
1311	  }
1312	  /^X\(\/\).*/{
1313	    s//\1/
1314	    q
1315	  }
1316	  s/.*/./; q'`
1317  srcdir=$ac_confdir
1318  if test ! -r "$srcdir/$ac_unique_file"; then
1319    srcdir=..
1320  fi
1321else
1322  ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1331	pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334  srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_env_${ac_var}_value=\$${ac_var}
1345  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353  # Omit some internal or obsolete options to make the list less imposing.
1354  # This message is too long to be a string in the A/UX 3.1 sh.
1355  cat <<_ACEOF
1356\`configure' configures xf86-video-savage 2.3.6 to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366  -h, --help              display this help and exit
1367      --help=short        display options specific to this package
1368      --help=recursive    display the short help of all the included packages
1369  -V, --version           display version information and exit
1370  -q, --quiet, --silent   do not print \`checking ...' messages
1371      --cache-file=FILE   cache test results in FILE [disabled]
1372  -C, --config-cache      alias for \`--cache-file=config.cache'
1373  -n, --no-create         do not create output files
1374      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377  --prefix=PREFIX         install architecture-independent files in PREFIX
1378                          [$ac_default_prefix]
1379  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                          [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390  --bindir=DIR            user executables [EPREFIX/bin]
1391  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392  --libexecdir=DIR        program executables [EPREFIX/libexec]
1393  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396  --libdir=DIR            object code libraries [EPREFIX/lib]
1397  --includedir=DIR        C header files [PREFIX/include]
1398  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401  --infodir=DIR           info documentation [DATAROOTDIR/info]
1402  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403  --mandir=DIR            man documentation [DATAROOTDIR/man]
1404  --docdir=DIR            documentation root
1405                          [DATAROOTDIR/doc/xf86-video-savage]
1406  --htmldir=DIR           html documentation [DOCDIR]
1407  --dvidir=DIR            dvi documentation [DOCDIR]
1408  --pdfdir=DIR            pdf documentation [DOCDIR]
1409  --psdir=DIR             ps documentation [DOCDIR]
1410_ACEOF
1411
1412  cat <<\_ACEOF
1413
1414Program names:
1415  --program-prefix=PREFIX            prepend PREFIX to installed program names
1416  --program-suffix=SUFFIX            append SUFFIX to installed program names
1417  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1418
1419System types:
1420  --build=BUILD     configure for building on BUILD [guessed]
1421  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426  case $ac_init_help in
1427     short | recursive ) echo "Configuration of xf86-video-savage 2.3.6:";;
1428   esac
1429  cat <<\_ACEOF
1430
1431Optional Features:
1432  --disable-option-checking  ignore unrecognized --enable/--with options
1433  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1434  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1435  --enable-maintainer-mode  enable make rules and dependencies not useful
1436			  (and sometimes confusing) to the casual installer
1437  --disable-dependency-tracking  speeds up one-time build
1438  --enable-dependency-tracking   do not reject slow dependency extractors
1439  --disable-selective-werror
1440                          Turn off selective compiler errors. (default:
1441                          enabled)
1442  --enable-strict-compilation
1443                          Enable all warnings from compiler and make them
1444                          errors (default: disabled)
1445  --enable-silent-rules          less verbose build output (undo: `make V=1')
1446  --disable-silent-rules         verbose build output (undo: `make V=0')
1447  --enable-static[=PKGS]  build static libraries [default=no]
1448  --enable-shared[=PKGS]  build shared libraries [default=yes]
1449  --enable-fast-install[=PKGS]
1450                          optimize for fast installation [default=yes]
1451  --disable-libtool-lock  avoid locking (might break parallel builds)
1452  --disable-dri           Disable DRI support [[default=auto]]
1453  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1454                          [default=auto]
1455
1456Optional Packages:
1457  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1458  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1459  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1460                          both]
1461  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1462  --with-sysroot=DIR Search for dependent libraries within DIR
1463                        (or the compiler's sysroot if not specified).
1464  --with-xorg-module-dir=DIR
1465                          Default xorg module directory
1466                          [[default=$libdir/xorg/modules]]
1467
1468Some influential environment variables:
1469  CC          C compiler command
1470  CFLAGS      C compiler flags
1471  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1472              nonstandard directory <lib dir>
1473  LIBS        libraries to pass to the linker, e.g. -l<library>
1474  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475              you have headers in a nonstandard directory <include dir>
1476  CPP         C preprocessor
1477  PKG_CONFIG  path to pkg-config utility
1478  PKG_CONFIG_PATH
1479              directories to add to pkg-config's search path
1480  PKG_CONFIG_LIBDIR
1481              path overriding pkg-config's built-in search path
1482  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1483  XORG_LIBS   linker flags for XORG, overriding pkg-config
1484  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1485  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1486  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1487  DRI_LIBS    linker flags for DRI, overriding pkg-config
1488  PCIACCESS_CFLAGS
1489              C compiler flags for PCIACCESS, overriding pkg-config
1490  PCIACCESS_LIBS
1491              linker flags for PCIACCESS, overriding pkg-config
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1497_ACEOF
1498ac_status=$?
1499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502  # If there are subdirs, report their specific --help.
1503  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504    test -d "$ac_dir" ||
1505      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506      continue
1507    ac_builddir=.
1508
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513  # A ".." for each directory in $ac_dir_suffix.
1514  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515  case $ac_top_builddir_sub in
1516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518  esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
1524
1525case $srcdir in
1526  .)  # We are building in place.
1527    ac_srcdir=.
1528    ac_top_srcdir=$ac_top_builddir_sub
1529    ac_abs_top_srcdir=$ac_pwd ;;
1530  [\\/]* | ?:[\\/]* )  # Absolute name.
1531    ac_srcdir=$srcdir$ac_dir_suffix;
1532    ac_top_srcdir=$srcdir
1533    ac_abs_top_srcdir=$srcdir ;;
1534  *) # Relative name.
1535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536    ac_top_srcdir=$ac_top_build_prefix$srcdir
1537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541    cd "$ac_dir" || { ac_status=$?; continue; }
1542    # Check for guested configure.
1543    if test -f "$ac_srcdir/configure.gnu"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546    elif test -f "$ac_srcdir/configure"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure" --help=recursive
1549    else
1550      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551    fi || ac_status=$?
1552    cd "$ac_pwd" || { ac_status=$?; break; }
1553  done
1554fi
1555
1556test -n "$ac_init_help" && exit $ac_status
1557if $ac_init_version; then
1558  cat <<\_ACEOF
1559xf86-video-savage configure 2.3.6
1560generated by GNU Autoconf 2.68
1561
1562Copyright (C) 2010 Free Software Foundation, Inc.
1563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
1566  exit
1567fi
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext
1580  if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_compile") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest.$ac_objext; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1612# ---------------------------------------------
1613# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1614# accordingly.
1615ac_fn_c_check_decl ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  as_decl_name=`echo $2|sed 's/ *(.*//'`
1619  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1621$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1622if eval \${$3+:} false; then :
1623  $as_echo_n "(cached) " >&6
1624else
1625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626/* end confdefs.h.  */
1627$4
1628int
1629main ()
1630{
1631#ifndef $as_decl_name
1632#ifdef __cplusplus
1633  (void) $as_decl_use;
1634#else
1635  (void) $as_decl_name;
1636#endif
1637#endif
1638
1639  ;
1640  return 0;
1641}
1642_ACEOF
1643if ac_fn_c_try_compile "$LINENO"; then :
1644  eval "$3=yes"
1645else
1646  eval "$3=no"
1647fi
1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649fi
1650eval ac_res=\$$3
1651	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655} # ac_fn_c_check_decl
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671  ac_status=$?
1672  if test -s conftest.err; then
1673    grep -v '^ *+' conftest.err >conftest.er1
1674    cat conftest.er1 >&5
1675    mv -f conftest.er1 conftest.err
1676  fi
1677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678  test $ac_status = 0; } > conftest.i && {
1679	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680	 test ! -s conftest.err
1681       }; then :
1682  ac_retval=0
1683else
1684  $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687    ac_retval=1
1688fi
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690  as_fn_set_status $ac_retval
1691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_try_run LINENO
1695# ----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697# that executables *can* be run.
1698ac_fn_c_try_run ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712  { { case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_try") 2>&5
1719  ac_status=$?
1720  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721  test $ac_status = 0; }; }; then :
1722  ac_retval=0
1723else
1724  $as_echo "$as_me: program exited with status $ac_status" >&5
1725       $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728       ac_retval=$ac_status
1729fi
1730  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_run
1735
1736# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737# -------------------------------------------------------
1738# Tests whether HEADER exists and can be compiled using the include files in
1739# INCLUDES, setting the cache variable VAR accordingly.
1740ac_fn_c_check_header_compile ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744$as_echo_n "checking for $2... " >&6; }
1745if eval \${$3+:} false; then :
1746  $as_echo_n "(cached) " >&6
1747else
1748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h.  */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754  eval "$3=yes"
1755else
1756  eval "$3=no"
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759fi
1760eval ac_res=\$$3
1761	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762$as_echo "$ac_res" >&6; }
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764
1765} # ac_fn_c_check_header_compile
1766
1767# ac_fn_c_try_link LINENO
1768# -----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_c_try_link ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  rm -f conftest.$ac_objext conftest$ac_exeext
1774  if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_link") 2>conftest.err
1782  ac_status=$?
1783  if test -s conftest.err; then
1784    grep -v '^ *+' conftest.err >conftest.er1
1785    cat conftest.er1 >&5
1786    mv -f conftest.er1 conftest.err
1787  fi
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; } && {
1790	 test -z "$ac_c_werror_flag" ||
1791	 test ! -s conftest.err
1792       } && test -s conftest$ac_exeext && {
1793	 test "$cross_compiling" = yes ||
1794	 $as_test_x conftest$ac_exeext
1795       }; then :
1796  ac_retval=0
1797else
1798  $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801	ac_retval=1
1802fi
1803  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805  # interfere with the next link command; also delete a directory that is
1806  # left behind by Apple's compiler.  We do this before executing the actions.
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_link
1812
1813# ac_fn_c_check_func LINENO FUNC VAR
1814# ----------------------------------
1815# Tests whether FUNC exists, setting the cache variable VAR accordingly
1816ac_fn_c_check_func ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831    which can conflict with char $2 (); below.
1832    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833    <limits.h> exists even on freestanding compilers.  */
1834
1835#ifdef __STDC__
1836# include <limits.h>
1837#else
1838# include <assert.h>
1839#endif
1840
1841#undef $2
1842
1843/* Override any GCC internal prototype to avoid an error.
1844   Use char because int might match the return type of a GCC
1845   builtin and then its argument prototype would still apply.  */
1846#ifdef __cplusplus
1847extern "C"
1848#endif
1849char $2 ();
1850/* The GNU C library defines this for functions which it implements
1851    to always fail with ENOSYS.  Some functions are actually named
1852    something starting with __ and the normal name is an alias.  */
1853#if defined __stub_$2 || defined __stub___$2
1854choke me
1855#endif
1856
1857int
1858main ()
1859{
1860return $2 ();
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_link "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext \
1871    conftest$ac_exeext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_func
1879
1880# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881# -------------------------------------------------------
1882# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883# the include files in INCLUDES and setting the cache variable VAR
1884# accordingly.
1885ac_fn_c_check_header_mongrel ()
1886{
1887  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888  if eval \${$3+:} false; then :
1889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890$as_echo_n "checking for $2... " >&6; }
1891if eval \${$3+:} false; then :
1892  $as_echo_n "(cached) " >&6
1893fi
1894eval ac_res=\$$3
1895	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897else
1898  # Is the header compilable?
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900$as_echo_n "checking $2 usability... " >&6; }
1901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h.  */
1903$4
1904#include <$2>
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907  ac_header_compiler=yes
1908else
1909  ac_header_compiler=no
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913$as_echo "$ac_header_compiler" >&6; }
1914
1915# Is the header present?
1916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917$as_echo_n "checking $2 presence... " >&6; }
1918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920#include <$2>
1921_ACEOF
1922if ac_fn_c_try_cpp "$LINENO"; then :
1923  ac_header_preproc=yes
1924else
1925  ac_header_preproc=no
1926fi
1927rm -f conftest.err conftest.i conftest.$ac_ext
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929$as_echo "$ac_header_preproc" >&6; }
1930
1931# So?  What about this header?
1932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933  yes:no: )
1934    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938    ;;
1939  no:yes:* )
1940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1943$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1947$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950( $as_echo "## ---------------------------------------------------------------------- ##
1951## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1952## ---------------------------------------------------------------------- ##"
1953     ) | sed "s/^/$as_me: WARNING:     /" >&2
1954    ;;
1955esac
1956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957$as_echo_n "checking for $2... " >&6; }
1958if eval \${$3+:} false; then :
1959  $as_echo_n "(cached) " >&6
1960else
1961  eval "$3=\$ac_header_compiler"
1962fi
1963eval ac_res=\$$3
1964	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965$as_echo "$ac_res" >&6; }
1966fi
1967  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969} # ac_fn_c_check_header_mongrel
1970cat >config.log <<_ACEOF
1971This file contains any messages produced by compilers while
1972running configure, to aid debugging if configure makes a mistake.
1973
1974It was created by xf86-video-savage $as_me 2.3.6, which was
1975generated by GNU Autoconf 2.68.  Invocation command line was
1976
1977  $ $0 $@
1978
1979_ACEOF
1980exec 5>>config.log
1981{
1982cat <<_ASUNAME
1983## --------- ##
1984## Platform. ##
1985## --------- ##
1986
1987hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991uname -v = `(uname -v) 2>/dev/null || echo unknown`
1992
1993/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1995
1996/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1997/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1998/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2000/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2001/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2002/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2003
2004_ASUNAME
2005
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009  IFS=$as_save_IFS
2010  test -z "$as_dir" && as_dir=.
2011    $as_echo "PATH: $as_dir"
2012  done
2013IFS=$as_save_IFS
2014
2015} >&5
2016
2017cat >&5 <<_ACEOF
2018
2019
2020## ----------- ##
2021## Core tests. ##
2022## ----------- ##
2023
2024_ACEOF
2025
2026
2027# Keep a trace of the command line.
2028# Strip out --no-create and --no-recursion so they do not pile up.
2029# Strip out --silent because we don't want to record it for future runs.
2030# Also quote any args containing shell meta-characters.
2031# Make two passes to allow for proper duplicate-argument suppression.
2032ac_configure_args=
2033ac_configure_args0=
2034ac_configure_args1=
2035ac_must_keep_next=false
2036for ac_pass in 1 2
2037do
2038  for ac_arg
2039  do
2040    case $ac_arg in
2041    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2042    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2043    | -silent | --silent | --silen | --sile | --sil)
2044      continue ;;
2045    *\'*)
2046      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047    esac
2048    case $ac_pass in
2049    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2050    2)
2051      as_fn_append ac_configure_args1 " '$ac_arg'"
2052      if test $ac_must_keep_next = true; then
2053	ac_must_keep_next=false # Got value, back to normal.
2054      else
2055	case $ac_arg in
2056	  *=* | --config-cache | -C | -disable-* | --disable-* \
2057	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2058	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2059	  | -with-* | --with-* | -without-* | --without-* | --x)
2060	    case "$ac_configure_args0 " in
2061	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062	    esac
2063	    ;;
2064	  -* ) ac_must_keep_next=true ;;
2065	esac
2066      fi
2067      as_fn_append ac_configure_args " '$ac_arg'"
2068      ;;
2069    esac
2070  done
2071done
2072{ ac_configure_args0=; unset ac_configure_args0;}
2073{ ac_configure_args1=; unset ac_configure_args1;}
2074
2075# When interrupted or exit'd, cleanup temporary files, and complete
2076# config.log.  We remove comments because anyway the quotes in there
2077# would cause problems or look ugly.
2078# WARNING: Use '\'' to represent an apostrophe within the trap.
2079# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080trap 'exit_status=$?
2081  # Save into config.log some information that might help in debugging.
2082  {
2083    echo
2084
2085    $as_echo "## ---------------- ##
2086## Cache variables. ##
2087## ---------------- ##"
2088    echo
2089    # The following way of writing the cache mishandles newlines in values,
2090(
2091  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092    eval ac_val=\$$ac_var
2093    case $ac_val in #(
2094    *${as_nl}*)
2095      case $ac_var in #(
2096      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098      esac
2099      case $ac_var in #(
2100      _ | IFS | as_nl) ;; #(
2101      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102      *) { eval $ac_var=; unset $ac_var;} ;;
2103      esac ;;
2104    esac
2105  done
2106  (set) 2>&1 |
2107    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108    *${as_nl}ac_space=\ *)
2109      sed -n \
2110	"s/'\''/'\''\\\\'\'''\''/g;
2111	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112      ;; #(
2113    *)
2114      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115      ;;
2116    esac |
2117    sort
2118)
2119    echo
2120
2121    $as_echo "## ----------------- ##
2122## Output variables. ##
2123## ----------------- ##"
2124    echo
2125    for ac_var in $ac_subst_vars
2126    do
2127      eval ac_val=\$$ac_var
2128      case $ac_val in
2129      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130      esac
2131      $as_echo "$ac_var='\''$ac_val'\''"
2132    done | sort
2133    echo
2134
2135    if test -n "$ac_subst_files"; then
2136      $as_echo "## ------------------- ##
2137## File substitutions. ##
2138## ------------------- ##"
2139      echo
2140      for ac_var in $ac_subst_files
2141      do
2142	eval ac_val=\$$ac_var
2143	case $ac_val in
2144	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145	esac
2146	$as_echo "$ac_var='\''$ac_val'\''"
2147      done | sort
2148      echo
2149    fi
2150
2151    if test -s confdefs.h; then
2152      $as_echo "## ----------- ##
2153## confdefs.h. ##
2154## ----------- ##"
2155      echo
2156      cat confdefs.h
2157      echo
2158    fi
2159    test "$ac_signal" != 0 &&
2160      $as_echo "$as_me: caught signal $ac_signal"
2161    $as_echo "$as_me: exit $exit_status"
2162  } >&5
2163  rm -f core *.core core.conftest.* &&
2164    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165    exit $exit_status
2166' 0
2167for ac_signal in 1 2 13 15; do
2168  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169done
2170ac_signal=0
2171
2172# confdefs.h avoids OS command line length limits that DEFS can exceed.
2173rm -f -r conftest* confdefs.h
2174
2175$as_echo "/* confdefs.h */" > confdefs.h
2176
2177# Predefined preprocessor variables.
2178
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_NAME "$PACKAGE_NAME"
2181_ACEOF
2182
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185_ACEOF
2186
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_VERSION "$PACKAGE_VERSION"
2189_ACEOF
2190
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_STRING "$PACKAGE_STRING"
2193_ACEOF
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_URL "$PACKAGE_URL"
2201_ACEOF
2202
2203
2204# Let the site file select an alternate cache file if it wants to.
2205# Prefer an explicitly selected file to automatically selected ones.
2206ac_site_file1=NONE
2207ac_site_file2=NONE
2208if test -n "$CONFIG_SITE"; then
2209  # We do not want a PATH search for config.site.
2210  case $CONFIG_SITE in #((
2211    -*)  ac_site_file1=./$CONFIG_SITE;;
2212    */*) ac_site_file1=$CONFIG_SITE;;
2213    *)   ac_site_file1=./$CONFIG_SITE;;
2214  esac
2215elif test "x$prefix" != xNONE; then
2216  ac_site_file1=$prefix/share/config.site
2217  ac_site_file2=$prefix/etc/config.site
2218else
2219  ac_site_file1=$ac_default_prefix/share/config.site
2220  ac_site_file2=$ac_default_prefix/etc/config.site
2221fi
2222for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2223do
2224  test "x$ac_site_file" = xNONE && continue
2225  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2226    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228    sed 's/^/| /' "$ac_site_file" >&5
2229    . "$ac_site_file" \
2230      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232as_fn_error $? "failed to load site script $ac_site_file
2233See \`config.log' for more details" "$LINENO" 5; }
2234  fi
2235done
2236
2237if test -r "$cache_file"; then
2238  # Some versions of bash will fail to source /dev/null (special files
2239  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2240  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2241    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242$as_echo "$as_me: loading cache $cache_file" >&6;}
2243    case $cache_file in
2244      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245      *)                      . "./$cache_file";;
2246    esac
2247  fi
2248else
2249  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250$as_echo "$as_me: creating cache $cache_file" >&6;}
2251  >$cache_file
2252fi
2253
2254# Check that the precious variables saved in the cache have kept the same
2255# value.
2256ac_cache_corrupted=false
2257for ac_var in $ac_precious_vars; do
2258  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259  eval ac_new_set=\$ac_env_${ac_var}_set
2260  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261  eval ac_new_val=\$ac_env_${ac_var}_value
2262  case $ac_old_set,$ac_new_set in
2263    set,)
2264      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266      ac_cache_corrupted=: ;;
2267    ,set)
2268      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270      ac_cache_corrupted=: ;;
2271    ,);;
2272    *)
2273      if test "x$ac_old_val" != "x$ac_new_val"; then
2274	# differences in whitespace do not lead to failure.
2275	ac_old_val_w=`echo x $ac_old_val`
2276	ac_new_val_w=`echo x $ac_new_val`
2277	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280	  ac_cache_corrupted=:
2281	else
2282	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284	  eval $ac_var=\$ac_old_val
2285	fi
2286	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2287$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2288	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2289$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2290      fi;;
2291  esac
2292  # Pass precious variables to config.status.
2293  if test "$ac_new_set" = set; then
2294    case $ac_new_val in
2295    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296    *) ac_arg=$ac_var=$ac_new_val ;;
2297    esac
2298    case " $ac_configure_args " in
2299      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2300      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2301    esac
2302  fi
2303done
2304if $ac_cache_corrupted; then
2305  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2310fi
2311## -------------------- ##
2312## Main body of script. ##
2313## -------------------- ##
2314
2315ac_ext=c
2316ac_cpp='$CPP $CPPFLAGS'
2317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320
2321
2322
2323ac_config_headers="$ac_config_headers config.h"
2324
2325ac_aux_dir=
2326for ac_dir in . "$srcdir"/.; do
2327  if test -f "$ac_dir/install-sh"; then
2328    ac_aux_dir=$ac_dir
2329    ac_install_sh="$ac_aux_dir/install-sh -c"
2330    break
2331  elif test -f "$ac_dir/install.sh"; then
2332    ac_aux_dir=$ac_dir
2333    ac_install_sh="$ac_aux_dir/install.sh -c"
2334    break
2335  elif test -f "$ac_dir/shtool"; then
2336    ac_aux_dir=$ac_dir
2337    ac_install_sh="$ac_aux_dir/shtool install -c"
2338    break
2339  fi
2340done
2341if test -z "$ac_aux_dir"; then
2342  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2343fi
2344
2345# These three variables are undocumented and unsupported,
2346# and are intended to be withdrawn in a future Autoconf release.
2347# They can cause serious problems if a builder's source tree is in a directory
2348# whose full name contains unusual characters.
2349ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2350ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2351ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2352
2353
2354
2355# Initialize Automake
2356am__api_version='1.11'
2357
2358# Find a good install program.  We prefer a C program (faster),
2359# so one script is as good as another.  But avoid the broken or
2360# incompatible versions:
2361# SysV /etc/install, /usr/sbin/install
2362# SunOS /usr/etc/install
2363# IRIX /sbin/install
2364# AIX /bin/install
2365# AmigaOS /C/install, which installs bootblocks on floppy discs
2366# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2367# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2368# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2369# OS/2's system install, which has a completely different semantic
2370# ./install, which can be erroneously created by make from ./install.sh.
2371# Reject install programs that cannot install multiple files.
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2373$as_echo_n "checking for a BSD-compatible install... " >&6; }
2374if test -z "$INSTALL"; then
2375if ${ac_cv_path_install+:} false; then :
2376  $as_echo_n "(cached) " >&6
2377else
2378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381  IFS=$as_save_IFS
2382  test -z "$as_dir" && as_dir=.
2383    # Account for people who put trailing slashes in PATH elements.
2384case $as_dir/ in #((
2385  ./ | .// | /[cC]/* | \
2386  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2387  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2388  /usr/ucb/* ) ;;
2389  *)
2390    # OSF1 and SCO ODT 3.0 have their own names for install.
2391    # Don't use installbsd from OSF since it installs stuff as root
2392    # by default.
2393    for ac_prog in ginstall scoinst install; do
2394      for ac_exec_ext in '' $ac_executable_extensions; do
2395	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2396	  if test $ac_prog = install &&
2397	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398	    # AIX install.  It has an incompatible calling convention.
2399	    :
2400	  elif test $ac_prog = install &&
2401	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402	    # program-specific install script used by HP pwplus--don't use.
2403	    :
2404	  else
2405	    rm -rf conftest.one conftest.two conftest.dir
2406	    echo one > conftest.one
2407	    echo two > conftest.two
2408	    mkdir conftest.dir
2409	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2410	      test -s conftest.one && test -s conftest.two &&
2411	      test -s conftest.dir/conftest.one &&
2412	      test -s conftest.dir/conftest.two
2413	    then
2414	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2415	      break 3
2416	    fi
2417	  fi
2418	fi
2419      done
2420    done
2421    ;;
2422esac
2423
2424  done
2425IFS=$as_save_IFS
2426
2427rm -rf conftest.one conftest.two conftest.dir
2428
2429fi
2430  if test "${ac_cv_path_install+set}" = set; then
2431    INSTALL=$ac_cv_path_install
2432  else
2433    # As a last resort, use the slow shell script.  Don't cache a
2434    # value for INSTALL within a source directory, because that will
2435    # break other packages using the cache if that directory is
2436    # removed, or if the value is a relative name.
2437    INSTALL=$ac_install_sh
2438  fi
2439fi
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2441$as_echo "$INSTALL" >&6; }
2442
2443# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2444# It thinks the first close brace ends the variable substitution.
2445test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2446
2447test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2448
2449test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2450
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2452$as_echo_n "checking whether build environment is sane... " >&6; }
2453# Just in case
2454sleep 1
2455echo timestamp > conftest.file
2456# Reject unsafe characters in $srcdir or the absolute working directory
2457# name.  Accept space and tab only in the latter.
2458am_lf='
2459'
2460case `pwd` in
2461  *[\\\"\#\$\&\'\`$am_lf]*)
2462    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2463esac
2464case $srcdir in
2465  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2466    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2467esac
2468
2469# Do `set' in a subshell so we don't clobber the current shell's
2470# arguments.  Must try -L first in case configure is actually a
2471# symlink; some systems play weird games with the mod time of symlinks
2472# (eg FreeBSD returns the mod time of the symlink's containing
2473# directory).
2474if (
2475   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2476   if test "$*" = "X"; then
2477      # -L didn't work.
2478      set X `ls -t "$srcdir/configure" conftest.file`
2479   fi
2480   rm -f conftest.file
2481   if test "$*" != "X $srcdir/configure conftest.file" \
2482      && test "$*" != "X conftest.file $srcdir/configure"; then
2483
2484      # If neither matched, then we have a broken ls.  This can happen
2485      # if, for instance, CONFIG_SHELL is bash and it inherits a
2486      # broken ls alias from the environment.  This has actually
2487      # happened.  Such a system could not be considered "sane".
2488      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2489alias in your environment" "$LINENO" 5
2490   fi
2491
2492   test "$2" = conftest.file
2493   )
2494then
2495   # Ok.
2496   :
2497else
2498   as_fn_error $? "newly created file is older than distributed files!
2499Check your system clock" "$LINENO" 5
2500fi
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2502$as_echo "yes" >&6; }
2503test "$program_prefix" != NONE &&
2504  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2505# Use a double $ so make ignores it.
2506test "$program_suffix" != NONE &&
2507  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2508# Double any \ or $.
2509# By default was `s,x,x', remove it if useless.
2510ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2511program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2512
2513# expand $ac_aux_dir to an absolute path
2514am_aux_dir=`cd $ac_aux_dir && pwd`
2515
2516if test x"${MISSING+set}" != xset; then
2517  case $am_aux_dir in
2518  *\ * | *\	*)
2519    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2520  *)
2521    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2522  esac
2523fi
2524# Use eval to expand $SHELL
2525if eval "$MISSING --run true"; then
2526  am_missing_run="$MISSING --run "
2527else
2528  am_missing_run=
2529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2530$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2531fi
2532
2533if test x"${install_sh}" != xset; then
2534  case $am_aux_dir in
2535  *\ * | *\	*)
2536    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2537  *)
2538    install_sh="\${SHELL} $am_aux_dir/install-sh"
2539  esac
2540fi
2541
2542# Installed binaries are usually stripped using `strip' when the user
2543# run `make install-strip'.  However `strip' might not be the right
2544# tool to use in cross-compilation environments, therefore Automake
2545# will honor the `STRIP' environment variable to overrule this program.
2546if test "$cross_compiling" != no; then
2547  if test -n "$ac_tool_prefix"; then
2548  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2549set dummy ${ac_tool_prefix}strip; ac_word=$2
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551$as_echo_n "checking for $ac_word... " >&6; }
2552if ${ac_cv_prog_STRIP+:} false; then :
2553  $as_echo_n "(cached) " >&6
2554else
2555  if test -n "$STRIP"; then
2556  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563    for ac_exec_ext in '' $ac_executable_extensions; do
2564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567    break 2
2568  fi
2569done
2570  done
2571IFS=$as_save_IFS
2572
2573fi
2574fi
2575STRIP=$ac_cv_prog_STRIP
2576if test -n "$STRIP"; then
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2578$as_echo "$STRIP" >&6; }
2579else
2580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581$as_echo "no" >&6; }
2582fi
2583
2584
2585fi
2586if test -z "$ac_cv_prog_STRIP"; then
2587  ac_ct_STRIP=$STRIP
2588  # Extract the first word of "strip", so it can be a program name with args.
2589set dummy strip; ac_word=$2
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  if test -n "$ac_ct_STRIP"; then
2596  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    for ac_exec_ext in '' $ac_executable_extensions; do
2604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605    ac_cv_prog_ac_ct_STRIP="strip"
2606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607    break 2
2608  fi
2609done
2610  done
2611IFS=$as_save_IFS
2612
2613fi
2614fi
2615ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2616if test -n "$ac_ct_STRIP"; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2618$as_echo "$ac_ct_STRIP" >&6; }
2619else
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622fi
2623
2624  if test "x$ac_ct_STRIP" = x; then
2625    STRIP=":"
2626  else
2627    case $cross_compiling:$ac_tool_warned in
2628yes:)
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2631ac_tool_warned=yes ;;
2632esac
2633    STRIP=$ac_ct_STRIP
2634  fi
2635else
2636  STRIP="$ac_cv_prog_STRIP"
2637fi
2638
2639fi
2640INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2641
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2643$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2644if test -z "$MKDIR_P"; then
2645  if ${ac_cv_path_mkdir+:} false; then :
2646  $as_echo_n "(cached) " >&6
2647else
2648  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2650do
2651  IFS=$as_save_IFS
2652  test -z "$as_dir" && as_dir=.
2653    for ac_prog in mkdir gmkdir; do
2654	 for ac_exec_ext in '' $ac_executable_extensions; do
2655	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2656	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2657	     'mkdir (GNU coreutils) '* | \
2658	     'mkdir (coreutils) '* | \
2659	     'mkdir (fileutils) '4.1*)
2660	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2661	       break 3;;
2662	   esac
2663	 done
2664       done
2665  done
2666IFS=$as_save_IFS
2667
2668fi
2669
2670  test -d ./--version && rmdir ./--version
2671  if test "${ac_cv_path_mkdir+set}" = set; then
2672    MKDIR_P="$ac_cv_path_mkdir -p"
2673  else
2674    # As a last resort, use the slow shell script.  Don't cache a
2675    # value for MKDIR_P within a source directory, because that will
2676    # break other packages using the cache if that directory is
2677    # removed, or if the value is a relative name.
2678    MKDIR_P="$ac_install_sh -d"
2679  fi
2680fi
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2682$as_echo "$MKDIR_P" >&6; }
2683
2684mkdir_p="$MKDIR_P"
2685case $mkdir_p in
2686  [\\/$]* | ?:[\\/]*) ;;
2687  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2688esac
2689
2690for ac_prog in gawk mawk nawk awk
2691do
2692  # Extract the first word of "$ac_prog", so it can be a program name with args.
2693set dummy $ac_prog; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if ${ac_cv_prog_AWK+:} false; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  if test -n "$AWK"; then
2700  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707    for ac_exec_ext in '' $ac_executable_extensions; do
2708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709    ac_cv_prog_AWK="$ac_prog"
2710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714  done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719AWK=$ac_cv_prog_AWK
2720if test -n "$AWK"; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722$as_echo "$AWK" >&6; }
2723else
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729  test -n "$AWK" && break
2730done
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2734set x ${MAKE-make}
2735ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2736if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  cat >conftest.make <<\_ACEOF
2740SHELL = /bin/sh
2741all:
2742	@echo '@@@%%%=$(MAKE)=@@@%%%'
2743_ACEOF
2744# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2745case `${MAKE-make} -f conftest.make 2>/dev/null` in
2746  *@@@%%%=?*=@@@%%%*)
2747    eval ac_cv_prog_make_${ac_make}_set=yes;;
2748  *)
2749    eval ac_cv_prog_make_${ac_make}_set=no;;
2750esac
2751rm -f conftest.make
2752fi
2753if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755$as_echo "yes" >&6; }
2756  SET_MAKE=
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760  SET_MAKE="MAKE=${MAKE-make}"
2761fi
2762
2763rm -rf .tst 2>/dev/null
2764mkdir .tst 2>/dev/null
2765if test -d .tst; then
2766  am__leading_dot=.
2767else
2768  am__leading_dot=_
2769fi
2770rmdir .tst 2>/dev/null
2771
2772if test "`cd $srcdir && pwd`" != "`pwd`"; then
2773  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2774  # is not polluted with repeated "-I."
2775  am__isrc=' -I$(srcdir)'
2776  # test to see if srcdir already configured
2777  if test -f $srcdir/config.status; then
2778    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2779  fi
2780fi
2781
2782# test whether we have cygpath
2783if test -z "$CYGPATH_W"; then
2784  if (cygpath --version) >/dev/null 2>/dev/null; then
2785    CYGPATH_W='cygpath -w'
2786  else
2787    CYGPATH_W=echo
2788  fi
2789fi
2790
2791
2792# Define the identity of the package.
2793 PACKAGE='xf86-video-savage'
2794 VERSION='2.3.6'
2795
2796
2797cat >>confdefs.h <<_ACEOF
2798#define PACKAGE "$PACKAGE"
2799_ACEOF
2800
2801
2802cat >>confdefs.h <<_ACEOF
2803#define VERSION "$VERSION"
2804_ACEOF
2805
2806# Some tools Automake needs.
2807
2808ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809
2810
2811AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812
2813
2814AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815
2816
2817AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818
2819
2820MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2821
2822# We need awk for the "check" target.  The system "awk" is bad on
2823# some platforms.
2824# Always define AMTAR for backward compatibility.  Yes, it's still used
2825# in the wild :-(  We should find a proper way to deprecate it ...
2826AMTAR='$${TAR-tar}'
2827
2828am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2829
2830
2831
2832
2833
2834
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2836$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2837    # Check whether --enable-maintainer-mode was given.
2838if test "${enable_maintainer_mode+set}" = set; then :
2839  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2840else
2841  USE_MAINTAINER_MODE=no
2842fi
2843
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2845$as_echo "$USE_MAINTAINER_MODE" >&6; }
2846   if test $USE_MAINTAINER_MODE = yes; then
2847  MAINTAINER_MODE_TRUE=
2848  MAINTAINER_MODE_FALSE='#'
2849else
2850  MAINTAINER_MODE_TRUE='#'
2851  MAINTAINER_MODE_FALSE=
2852fi
2853
2854  MAINT=$MAINTAINER_MODE_TRUE
2855
2856
2857
2858# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870DEPDIR="${am__leading_dot}deps"
2871
2872ac_config_commands="$ac_config_commands depfiles"
2873
2874
2875am_make=${MAKE-make}
2876cat > confinc << 'END'
2877am__doit:
2878	@echo this is the am__doit target
2879.PHONY: am__doit
2880END
2881# If we don't find an include directive, just comment out the code.
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2883$as_echo_n "checking for style of include used by $am_make... " >&6; }
2884am__include="#"
2885am__quote=
2886_am_result=none
2887# First try GNU make style include.
2888echo "include confinc" > confmf
2889# Ignore all kinds of additional output from `make'.
2890case `$am_make -s -f confmf 2> /dev/null` in #(
2891*the\ am__doit\ target*)
2892  am__include=include
2893  am__quote=
2894  _am_result=GNU
2895  ;;
2896esac
2897# Now try BSD make style include.
2898if test "$am__include" = "#"; then
2899   echo '.include "confinc"' > confmf
2900   case `$am_make -s -f confmf 2> /dev/null` in #(
2901   *the\ am__doit\ target*)
2902     am__include=.include
2903     am__quote="\""
2904     _am_result=BSD
2905     ;;
2906   esac
2907fi
2908
2909
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2911$as_echo "$_am_result" >&6; }
2912rm -f confinc confmf
2913
2914# Check whether --enable-dependency-tracking was given.
2915if test "${enable_dependency_tracking+set}" = set; then :
2916  enableval=$enable_dependency_tracking;
2917fi
2918
2919if test "x$enable_dependency_tracking" != xno; then
2920  am_depcomp="$ac_aux_dir/depcomp"
2921  AMDEPBACKSLASH='\'
2922  am__nodep='_no'
2923fi
2924 if test "x$enable_dependency_tracking" != xno; then
2925  AMDEP_TRUE=
2926  AMDEP_FALSE='#'
2927else
2928  AMDEP_TRUE='#'
2929  AMDEP_FALSE=
2930fi
2931
2932
2933ac_ext=c
2934ac_cpp='$CPP $CPPFLAGS'
2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938if test -n "$ac_tool_prefix"; then
2939  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942$as_echo_n "checking for $ac_word... " >&6; }
2943if ${ac_cv_prog_CC+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test -n "$CC"; then
2947  ac_cv_prog_CC="$CC" # Let the user override the test.
2948else
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954    for ac_exec_ext in '' $ac_executable_extensions; do
2955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964fi
2965fi
2966CC=$ac_cv_prog_CC
2967if test -n "$CC"; then
2968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969$as_echo "$CC" >&6; }
2970else
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972$as_echo "no" >&6; }
2973fi
2974
2975
2976fi
2977if test -z "$ac_cv_prog_CC"; then
2978  ac_ct_CC=$CC
2979  # Extract the first word of "gcc", so it can be a program name with args.
2980set dummy gcc; ac_word=$2
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982$as_echo_n "checking for $ac_word... " >&6; }
2983if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  if test -n "$ac_ct_CC"; then
2987  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992  IFS=$as_save_IFS
2993  test -z "$as_dir" && as_dir=.
2994    for ac_exec_ext in '' $ac_executable_extensions; do
2995  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996    ac_cv_prog_ac_ct_CC="gcc"
2997    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998    break 2
2999  fi
3000done
3001  done
3002IFS=$as_save_IFS
3003
3004fi
3005fi
3006ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007if test -n "$ac_ct_CC"; then
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009$as_echo "$ac_ct_CC" >&6; }
3010else
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015  if test "x$ac_ct_CC" = x; then
3016    CC=""
3017  else
3018    case $cross_compiling:$ac_tool_warned in
3019yes:)
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022ac_tool_warned=yes ;;
3023esac
3024    CC=$ac_ct_CC
3025  fi
3026else
3027  CC="$ac_cv_prog_CC"
3028fi
3029
3030if test -z "$CC"; then
3031          if test -n "$ac_tool_prefix"; then
3032    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033set dummy ${ac_tool_prefix}cc; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if ${ac_cv_prog_CC+:} false; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$CC"; then
3040  ac_cv_prog_CC="$CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047    for ac_exec_ext in '' $ac_executable_extensions; do
3048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049    ac_cv_prog_CC="${ac_tool_prefix}cc"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059CC=$ac_cv_prog_CC
3060if test -n "$CC"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062$as_echo "$CC" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069  fi
3070fi
3071if test -z "$CC"; then
3072  # Extract the first word of "cc", so it can be a program name with args.
3073set dummy cc; ac_word=$2
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if ${ac_cv_prog_CC+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  if test -n "$CC"; then
3080  ac_cv_prog_CC="$CC" # Let the user override the test.
3081else
3082  ac_prog_rejected=no
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088    for ac_exec_ext in '' $ac_executable_extensions; do
3089  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091       ac_prog_rejected=yes
3092       continue
3093     fi
3094    ac_cv_prog_CC="cc"
3095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096    break 2
3097  fi
3098done
3099  done
3100IFS=$as_save_IFS
3101
3102if test $ac_prog_rejected = yes; then
3103  # We found a bogon in the path, so make sure we never use it.
3104  set dummy $ac_cv_prog_CC
3105  shift
3106  if test $# != 0; then
3107    # We chose a different compiler from the bogus one.
3108    # However, it has the same basename, so the bogon will be chosen
3109    # first if we set CC to just the basename; use the full file name.
3110    shift
3111    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112  fi
3113fi
3114fi
3115fi
3116CC=$ac_cv_prog_CC
3117if test -n "$CC"; then
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119$as_echo "$CC" >&6; }
3120else
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122$as_echo "no" >&6; }
3123fi
3124
3125
3126fi
3127if test -z "$CC"; then
3128  if test -n "$ac_tool_prefix"; then
3129  for ac_prog in cl.exe
3130  do
3131    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134$as_echo_n "checking for $ac_word... " >&6; }
3135if ${ac_cv_prog_CC+:} false; then :
3136  $as_echo_n "(cached) " >&6
3137else
3138  if test -n "$CC"; then
3139  ac_cv_prog_CC="$CC" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144  IFS=$as_save_IFS
3145  test -z "$as_dir" && as_dir=.
3146    for ac_exec_ext in '' $ac_executable_extensions; do
3147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150    break 2
3151  fi
3152done
3153  done
3154IFS=$as_save_IFS
3155
3156fi
3157fi
3158CC=$ac_cv_prog_CC
3159if test -n "$CC"; then
3160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161$as_echo "$CC" >&6; }
3162else
3163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164$as_echo "no" >&6; }
3165fi
3166
3167
3168    test -n "$CC" && break
3169  done
3170fi
3171if test -z "$CC"; then
3172  ac_ct_CC=$CC
3173  for ac_prog in cl.exe
3174do
3175  # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178$as_echo_n "checking for $ac_word... " >&6; }
3179if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180  $as_echo_n "(cached) " >&6
3181else
3182  if test -n "$ac_ct_CC"; then
3183  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192    ac_cv_prog_ac_ct_CC="$ac_prog"
3193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197  done
3198IFS=$as_save_IFS
3199
3200fi
3201fi
3202ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203if test -n "$ac_ct_CC"; then
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205$as_echo "$ac_ct_CC" >&6; }
3206else
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208$as_echo "no" >&6; }
3209fi
3210
3211
3212  test -n "$ac_ct_CC" && break
3213done
3214
3215  if test "x$ac_ct_CC" = x; then
3216    CC=""
3217  else
3218    case $cross_compiling:$ac_tool_warned in
3219yes:)
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222ac_tool_warned=yes ;;
3223esac
3224    CC=$ac_ct_CC
3225  fi
3226fi
3227
3228fi
3229
3230
3231test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233as_fn_error $? "no acceptable C compiler found in \$PATH
3234See \`config.log' for more details" "$LINENO" 5; }
3235
3236# Provide some information about the compiler.
3237$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238set X $ac_compile
3239ac_compiler=$2
3240for ac_option in --version -v -V -qversion; do
3241  { { ac_try="$ac_compiler $ac_option >&5"
3242case "(($ac_try" in
3243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244  *) ac_try_echo=$ac_try;;
3245esac
3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247$as_echo "$ac_try_echo"; } >&5
3248  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249  ac_status=$?
3250  if test -s conftest.err; then
3251    sed '10a\
3252... rest of stderr output deleted ...
3253         10q' conftest.err >conftest.er1
3254    cat conftest.er1 >&5
3255  fi
3256  rm -f conftest.er1 conftest.err
3257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258  test $ac_status = 0; }
3259done
3260
3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263
3264int
3265main ()
3266{
3267
3268  ;
3269  return 0;
3270}
3271_ACEOF
3272ac_clean_files_save=$ac_clean_files
3273ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3274# Try to create an executable without -o first, disregard a.out.
3275# It will help us diagnose broken compilers, and finding out an intuition
3276# of exeext.
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3278$as_echo_n "checking whether the C compiler works... " >&6; }
3279ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3280
3281# The possible output files:
3282ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3283
3284ac_rmfiles=
3285for ac_file in $ac_files
3286do
3287  case $ac_file in
3288    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290  esac
3291done
3292rm -f $ac_rmfiles
3293
3294if { { ac_try="$ac_link_default"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301  (eval "$ac_link_default") 2>&5
3302  ac_status=$?
3303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304  test $ac_status = 0; }; then :
3305  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3306# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3307# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3308# so that the user can short-circuit this test for compilers unknown to
3309# Autoconf.
3310for ac_file in $ac_files ''
3311do
3312  test -f "$ac_file" || continue
3313  case $ac_file in
3314    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3315	;;
3316    [ab].out )
3317	# We found the default executable, but exeext='' is most
3318	# certainly right.
3319	break;;
3320    *.* )
3321	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3322	then :; else
3323	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324	fi
3325	# We set ac_cv_exeext here because the later test for it is not
3326	# safe: cross compilers may not add the suffix if given an `-o'
3327	# argument, so we may need to know it at that point already.
3328	# Even if this section looks crufty: it has the advantage of
3329	# actually working.
3330	break;;
3331    * )
3332	break;;
3333  esac
3334done
3335test "$ac_cv_exeext" = no && ac_cv_exeext=
3336
3337else
3338  ac_file=''
3339fi
3340if test -z "$ac_file"; then :
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342$as_echo "no" >&6; }
3343$as_echo "$as_me: failed program was:" >&5
3344sed 's/^/| /' conftest.$ac_ext >&5
3345
3346{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error 77 "C compiler cannot create executables
3349See \`config.log' for more details" "$LINENO" 5; }
3350else
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352$as_echo "yes" >&6; }
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355$as_echo_n "checking for C compiler default output file name... " >&6; }
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357$as_echo "$ac_file" >&6; }
3358ac_exeext=$ac_cv_exeext
3359
3360rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3361ac_clean_files=$ac_clean_files_save
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3363$as_echo_n "checking for suffix of executables... " >&6; }
3364if { { ac_try="$ac_link"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371  (eval "$ac_link") 2>&5
3372  ac_status=$?
3373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374  test $ac_status = 0; }; then :
3375  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3376# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3377# work properly (i.e., refer to `conftest.exe'), while it won't with
3378# `rm'.
3379for ac_file in conftest.exe conftest conftest.*; do
3380  test -f "$ac_file" || continue
3381  case $ac_file in
3382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384	  break;;
3385    * ) break;;
3386  esac
3387done
3388else
3389  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3392See \`config.log' for more details" "$LINENO" 5; }
3393fi
3394rm -f conftest conftest$ac_cv_exeext
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3396$as_echo "$ac_cv_exeext" >&6; }
3397
3398rm -f conftest.$ac_ext
3399EXEEXT=$ac_cv_exeext
3400ac_exeext=$EXEEXT
3401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h.  */
3403#include <stdio.h>
3404int
3405main ()
3406{
3407FILE *f = fopen ("conftest.out", "w");
3408 return ferror (f) || fclose (f) != 0;
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414ac_clean_files="$ac_clean_files conftest.out"
3415# Check that the compiler produces executables we can run.  If not, either
3416# the compiler is broken, or we cross compile.
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418$as_echo_n "checking whether we are cross compiling... " >&6; }
3419if test "$cross_compiling" != yes; then
3420  { { ac_try="$ac_link"
3421case "(($ac_try" in
3422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423  *) ac_try_echo=$ac_try;;
3424esac
3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426$as_echo "$ac_try_echo"; } >&5
3427  (eval "$ac_link") 2>&5
3428  ac_status=$?
3429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430  test $ac_status = 0; }
3431  if { ac_try='./conftest$ac_cv_exeext'
3432  { { case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437$as_echo "$ac_try_echo"; } >&5
3438  (eval "$ac_try") 2>&5
3439  ac_status=$?
3440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441  test $ac_status = 0; }; }; then
3442    cross_compiling=no
3443  else
3444    if test "$cross_compiling" = maybe; then
3445	cross_compiling=yes
3446    else
3447	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449as_fn_error $? "cannot run C compiled programs.
3450If you meant to cross compile, use \`--host'.
3451See \`config.log' for more details" "$LINENO" 5; }
3452    fi
3453  fi
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3456$as_echo "$cross_compiling" >&6; }
3457
3458rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3459ac_clean_files=$ac_clean_files_save
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3461$as_echo_n "checking for suffix of object files... " >&6; }
3462if ${ac_cv_objext+:} false; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467
3468int
3469main ()
3470{
3471
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.o conftest.obj
3477if { { ac_try="$ac_compile"
3478case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483$as_echo "$ac_try_echo"; } >&5
3484  (eval "$ac_compile") 2>&5
3485  ac_status=$?
3486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487  test $ac_status = 0; }; then :
3488  for ac_file in conftest.o conftest.obj conftest.*; do
3489  test -f "$ac_file" || continue;
3490  case $ac_file in
3491    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3492    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3493       break;;
3494  esac
3495done
3496else
3497  $as_echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502as_fn_error $? "cannot compute suffix of object files: cannot compile
3503See \`config.log' for more details" "$LINENO" 5; }
3504fi
3505rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506fi
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3508$as_echo "$ac_cv_objext" >&6; }
3509OBJEXT=$ac_cv_objext
3510ac_objext=$OBJEXT
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3512$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3513if ${ac_cv_c_compiler_gnu+:} false; then :
3514  $as_echo_n "(cached) " >&6
3515else
3516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518
3519int
3520main ()
3521{
3522#ifndef __GNUC__
3523       choke me
3524#endif
3525
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530if ac_fn_c_try_compile "$LINENO"; then :
3531  ac_compiler_gnu=yes
3532else
3533  ac_compiler_gnu=no
3534fi
3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3540$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3541if test $ac_compiler_gnu = yes; then
3542  GCC=yes
3543else
3544  GCC=
3545fi
3546ac_test_CFLAGS=${CFLAGS+set}
3547ac_save_CFLAGS=$CFLAGS
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3549$as_echo_n "checking whether $CC accepts -g... " >&6; }
3550if ${ac_cv_prog_cc_g+:} false; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  ac_save_c_werror_flag=$ac_c_werror_flag
3554   ac_c_werror_flag=yes
3555   ac_cv_prog_cc_g=no
3556   CFLAGS="-g"
3557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main ()
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"; then :
3569  ac_cv_prog_cc_g=yes
3570else
3571  CFLAGS=""
3572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573/* end confdefs.h.  */
3574
3575int
3576main ()
3577{
3578
3579  ;
3580  return 0;
3581}
3582_ACEOF
3583if ac_fn_c_try_compile "$LINENO"; then :
3584
3585else
3586  ac_c_werror_flag=$ac_save_c_werror_flag
3587	 CFLAGS="-g"
3588	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_compile "$LINENO"; then :
3600  ac_cv_prog_cc_g=yes
3601fi
3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605fi
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607   ac_c_werror_flag=$ac_save_c_werror_flag
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3610$as_echo "$ac_cv_prog_cc_g" >&6; }
3611if test "$ac_test_CFLAGS" = set; then
3612  CFLAGS=$ac_save_CFLAGS
3613elif test $ac_cv_prog_cc_g = yes; then
3614  if test "$GCC" = yes; then
3615    CFLAGS="-g -O2"
3616  else
3617    CFLAGS="-g"
3618  fi
3619else
3620  if test "$GCC" = yes; then
3621    CFLAGS="-O2"
3622  else
3623    CFLAGS=
3624  fi
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3627$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3628if ${ac_cv_prog_cc_c89+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  ac_cv_prog_cc_c89=no
3632ac_save_CC=$CC
3633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634/* end confdefs.h.  */
3635#include <stdarg.h>
3636#include <stdio.h>
3637#include <sys/types.h>
3638#include <sys/stat.h>
3639/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3640struct buf { int x; };
3641FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642static char *e (p, i)
3643     char **p;
3644     int i;
3645{
3646  return p[i];
3647}
3648static char *f (char * (*g) (char **, int), char **p, ...)
3649{
3650  char *s;
3651  va_list v;
3652  va_start (v,p);
3653  s = g (p, va_arg (v,int));
3654  va_end (v);
3655  return s;
3656}
3657
3658/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3659   function prototypes and stuff, but not '\xHH' hex character constants.
3660   These don't provoke an error unfortunately, instead are silently treated
3661   as 'x'.  The following induces an error, until -std is added to get
3662   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3663   array size at least.  It's necessary to write '\x00'==0 to get something
3664   that's true only with -std.  */
3665int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666
3667/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668   inside strings and character constants.  */
3669#define FOO(x) 'x'
3670int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671
3672int test (int i, double x);
3673struct s1 {int (*f) (int a);};
3674struct s2 {int (*f) (double a);};
3675int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676int argc;
3677char **argv;
3678int
3679main ()
3680{
3681return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3682  ;
3683  return 0;
3684}
3685_ACEOF
3686for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688do
3689  CC="$ac_save_CC $ac_arg"
3690  if ac_fn_c_try_compile "$LINENO"; then :
3691  ac_cv_prog_cc_c89=$ac_arg
3692fi
3693rm -f core conftest.err conftest.$ac_objext
3694  test "x$ac_cv_prog_cc_c89" != "xno" && break
3695done
3696rm -f conftest.$ac_ext
3697CC=$ac_save_CC
3698
3699fi
3700# AC_CACHE_VAL
3701case "x$ac_cv_prog_cc_c89" in
3702  x)
3703    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704$as_echo "none needed" >&6; } ;;
3705  xno)
3706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707$as_echo "unsupported" >&6; } ;;
3708  *)
3709    CC="$CC $ac_cv_prog_cc_c89"
3710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3712esac
3713if test "x$ac_cv_prog_cc_c89" != xno; then :
3714
3715fi
3716
3717ac_ext=c
3718ac_cpp='$CPP $CPPFLAGS'
3719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723depcc="$CC"   am_compiler_list=
3724
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3726$as_echo_n "checking dependency style of $depcc... " >&6; }
3727if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3728  $as_echo_n "(cached) " >&6
3729else
3730  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3731  # We make a subdir and do the tests there.  Otherwise we can end up
3732  # making bogus files that we don't know about and never remove.  For
3733  # instance it was reported that on HP-UX the gcc test will end up
3734  # making a dummy file named `D' -- because `-MD' means `put the output
3735  # in D'.
3736  rm -rf conftest.dir
3737  mkdir conftest.dir
3738  # Copy depcomp to subdir because otherwise we won't find it if we're
3739  # using a relative directory.
3740  cp "$am_depcomp" conftest.dir
3741  cd conftest.dir
3742  # We will build objects and dependencies in a subdirectory because
3743  # it helps to detect inapplicable dependency modes.  For instance
3744  # both Tru64's cc and ICC support -MD to output dependencies as a
3745  # side effect of compilation, but ICC will put the dependencies in
3746  # the current directory while Tru64 will put them in the object
3747  # directory.
3748  mkdir sub
3749
3750  am_cv_CC_dependencies_compiler_type=none
3751  if test "$am_compiler_list" = ""; then
3752     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3753  fi
3754  am__universal=false
3755  case " $depcc " in #(
3756     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3757     esac
3758
3759  for depmode in $am_compiler_list; do
3760    # Setup a source with many dependencies, because some compilers
3761    # like to wrap large dependency lists on column 80 (with \), and
3762    # we should not choose a depcomp mode which is confused by this.
3763    #
3764    # We need to recreate these files for each test, as the compiler may
3765    # overwrite some of them when testing with obscure command lines.
3766    # This happens at least with the AIX C compiler.
3767    : > sub/conftest.c
3768    for i in 1 2 3 4 5 6; do
3769      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771      # Solaris 8's {/usr,}/bin/sh.
3772      touch sub/conftst$i.h
3773    done
3774    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3775
3776    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3777    # mode.  It turns out that the SunPro C++ compiler does not properly
3778    # handle `-M -o', and we need to detect this.  Also, some Intel
3779    # versions had trouble with output in subdirs
3780    am__obj=sub/conftest.${OBJEXT-o}
3781    am__minus_obj="-o $am__obj"
3782    case $depmode in
3783    gcc)
3784      # This depmode causes a compiler race in universal mode.
3785      test "$am__universal" = false || continue
3786      ;;
3787    nosideeffect)
3788      # after this tag, mechanisms are not by side-effect, so they'll
3789      # only be used when explicitly requested
3790      if test "x$enable_dependency_tracking" = xyes; then
3791	continue
3792      else
3793	break
3794      fi
3795      ;;
3796    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3797      # This compiler won't grok `-c -o', but also, the minuso test has
3798      # not run yet.  These depmodes are late enough in the game, and
3799      # so weak that their functioning should not be impacted.
3800      am__obj=conftest.${OBJEXT-o}
3801      am__minus_obj=
3802      ;;
3803    none) break ;;
3804    esac
3805    if depmode=$depmode \
3806       source=sub/conftest.c object=$am__obj \
3807       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3808       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3809         >/dev/null 2>conftest.err &&
3810       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3811       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3812       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3813       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3814      # icc doesn't choke on unknown options, it will just issue warnings
3815      # or remarks (even with -Werror).  So we grep stderr for any message
3816      # that says an option was ignored or not supported.
3817      # When given -MP, icc 7.0 and 7.1 complain thusly:
3818      #   icc: Command line warning: ignoring option '-M'; no argument required
3819      # The diagnosis changed in icc 8.0:
3820      #   icc: Command line remark: option '-MP' not supported
3821      if (grep 'ignoring option' conftest.err ||
3822          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3823        am_cv_CC_dependencies_compiler_type=$depmode
3824        break
3825      fi
3826    fi
3827  done
3828
3829  cd ..
3830  rm -rf conftest.dir
3831else
3832  am_cv_CC_dependencies_compiler_type=none
3833fi
3834
3835fi
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3837$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3838CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3839
3840 if
3841  test "x$enable_dependency_tracking" != xno \
3842  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3843  am__fastdepCC_TRUE=
3844  am__fastdepCC_FALSE='#'
3845else
3846  am__fastdepCC_TRUE='#'
3847  am__fastdepCC_FALSE=
3848fi
3849
3850
3851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3852$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3853if ${ac_cv_prog_cc_c99+:} false; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856  ac_cv_prog_cc_c99=no
3857ac_save_CC=$CC
3858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h.  */
3860#include <stdarg.h>
3861#include <stdbool.h>
3862#include <stdlib.h>
3863#include <wchar.h>
3864#include <stdio.h>
3865
3866// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3867#define debug(...) fprintf (stderr, __VA_ARGS__)
3868#define showlist(...) puts (#__VA_ARGS__)
3869#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3870static void
3871test_varargs_macros (void)
3872{
3873  int x = 1234;
3874  int y = 5678;
3875  debug ("Flag");
3876  debug ("X = %d\n", x);
3877  showlist (The first, second, and third items.);
3878  report (x>y, "x is %d but y is %d", x, y);
3879}
3880
3881// Check long long types.
3882#define BIG64 18446744073709551615ull
3883#define BIG32 4294967295ul
3884#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3885#if !BIG_OK
3886  your preprocessor is broken;
3887#endif
3888#if BIG_OK
3889#else
3890  your preprocessor is broken;
3891#endif
3892static long long int bignum = -9223372036854775807LL;
3893static unsigned long long int ubignum = BIG64;
3894
3895struct incomplete_array
3896{
3897  int datasize;
3898  double data[];
3899};
3900
3901struct named_init {
3902  int number;
3903  const wchar_t *name;
3904  double average;
3905};
3906
3907typedef const char *ccp;
3908
3909static inline int
3910test_restrict (ccp restrict text)
3911{
3912  // See if C++-style comments work.
3913  // Iterate through items via the restricted pointer.
3914  // Also check for declarations in for loops.
3915  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3916    continue;
3917  return 0;
3918}
3919
3920// Check varargs and va_copy.
3921static void
3922test_varargs (const char *format, ...)
3923{
3924  va_list args;
3925  va_start (args, format);
3926  va_list args_copy;
3927  va_copy (args_copy, args);
3928
3929  const char *str;
3930  int number;
3931  float fnumber;
3932
3933  while (*format)
3934    {
3935      switch (*format++)
3936	{
3937	case 's': // string
3938	  str = va_arg (args_copy, const char *);
3939	  break;
3940	case 'd': // int
3941	  number = va_arg (args_copy, int);
3942	  break;
3943	case 'f': // float
3944	  fnumber = va_arg (args_copy, double);
3945	  break;
3946	default:
3947	  break;
3948	}
3949    }
3950  va_end (args_copy);
3951  va_end (args);
3952}
3953
3954int
3955main ()
3956{
3957
3958  // Check bool.
3959  _Bool success = false;
3960
3961  // Check restrict.
3962  if (test_restrict ("String literal") == 0)
3963    success = true;
3964  char *restrict newvar = "Another string";
3965
3966  // Check varargs.
3967  test_varargs ("s, d' f .", "string", 65, 34.234);
3968  test_varargs_macros ();
3969
3970  // Check flexible array members.
3971  struct incomplete_array *ia =
3972    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3973  ia->datasize = 10;
3974  for (int i = 0; i < ia->datasize; ++i)
3975    ia->data[i] = i * 1.234;
3976
3977  // Check named initializers.
3978  struct named_init ni = {
3979    .number = 34,
3980    .name = L"Test wide string",
3981    .average = 543.34343,
3982  };
3983
3984  ni.number = 58;
3985
3986  int dynamic_array[ni.number];
3987  dynamic_array[ni.number - 1] = 543;
3988
3989  // work around unused variable warnings
3990  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3991	  || dynamic_array[ni.number - 1] != 543);
3992
3993  ;
3994  return 0;
3995}
3996_ACEOF
3997for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3998do
3999  CC="$ac_save_CC $ac_arg"
4000  if ac_fn_c_try_compile "$LINENO"; then :
4001  ac_cv_prog_cc_c99=$ac_arg
4002fi
4003rm -f core conftest.err conftest.$ac_objext
4004  test "x$ac_cv_prog_cc_c99" != "xno" && break
4005done
4006rm -f conftest.$ac_ext
4007CC=$ac_save_CC
4008
4009fi
4010# AC_CACHE_VAL
4011case "x$ac_cv_prog_cc_c99" in
4012  x)
4013    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4014$as_echo "none needed" >&6; } ;;
4015  xno)
4016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4017$as_echo "unsupported" >&6; } ;;
4018  *)
4019    CC="$CC $ac_cv_prog_cc_c99"
4020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4021$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4022esac
4023if test "x$ac_cv_prog_cc_c99" != xno; then :
4024
4025fi
4026
4027
4028
4029ac_ext=c
4030ac_cpp='$CPP $CPPFLAGS'
4031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4035$as_echo_n "checking how to run the C preprocessor... " >&6; }
4036# On Suns, sometimes $CPP names a directory.
4037if test -n "$CPP" && test -d "$CPP"; then
4038  CPP=
4039fi
4040if test -z "$CPP"; then
4041  if ${ac_cv_prog_CPP+:} false; then :
4042  $as_echo_n "(cached) " >&6
4043else
4044      # Double quotes because CPP needs to be expanded
4045    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4046    do
4047      ac_preproc_ok=false
4048for ac_c_preproc_warn_flag in '' yes
4049do
4050  # Use a header file that comes with gcc, so configuring glibc
4051  # with a fresh cross-compiler works.
4052  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053  # <limits.h> exists even on freestanding compilers.
4054  # On the NeXT, cc -E runs the code through the compiler's parser,
4055  # not just through cpp. "Syntax error" is here to catch this case.
4056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057/* end confdefs.h.  */
4058#ifdef __STDC__
4059# include <limits.h>
4060#else
4061# include <assert.h>
4062#endif
4063		     Syntax error
4064_ACEOF
4065if ac_fn_c_try_cpp "$LINENO"; then :
4066
4067else
4068  # Broken: fails on valid input.
4069continue
4070fi
4071rm -f conftest.err conftest.i conftest.$ac_ext
4072
4073  # OK, works on sane cases.  Now check whether nonexistent headers
4074  # can be detected and how.
4075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h.  */
4077#include <ac_nonexistent.h>
4078_ACEOF
4079if ac_fn_c_try_cpp "$LINENO"; then :
4080  # Broken: success on invalid input.
4081continue
4082else
4083  # Passes both tests.
4084ac_preproc_ok=:
4085break
4086fi
4087rm -f conftest.err conftest.i conftest.$ac_ext
4088
4089done
4090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091rm -f conftest.i conftest.err conftest.$ac_ext
4092if $ac_preproc_ok; then :
4093  break
4094fi
4095
4096    done
4097    ac_cv_prog_CPP=$CPP
4098
4099fi
4100  CPP=$ac_cv_prog_CPP
4101else
4102  ac_cv_prog_CPP=$CPP
4103fi
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4105$as_echo "$CPP" >&6; }
4106ac_preproc_ok=false
4107for ac_c_preproc_warn_flag in '' yes
4108do
4109  # Use a header file that comes with gcc, so configuring glibc
4110  # with a fresh cross-compiler works.
4111  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112  # <limits.h> exists even on freestanding compilers.
4113  # On the NeXT, cc -E runs the code through the compiler's parser,
4114  # not just through cpp. "Syntax error" is here to catch this case.
4115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116/* end confdefs.h.  */
4117#ifdef __STDC__
4118# include <limits.h>
4119#else
4120# include <assert.h>
4121#endif
4122		     Syntax error
4123_ACEOF
4124if ac_fn_c_try_cpp "$LINENO"; then :
4125
4126else
4127  # Broken: fails on valid input.
4128continue
4129fi
4130rm -f conftest.err conftest.i conftest.$ac_ext
4131
4132  # OK, works on sane cases.  Now check whether nonexistent headers
4133  # can be detected and how.
4134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135/* end confdefs.h.  */
4136#include <ac_nonexistent.h>
4137_ACEOF
4138if ac_fn_c_try_cpp "$LINENO"; then :
4139  # Broken: success on invalid input.
4140continue
4141else
4142  # Passes both tests.
4143ac_preproc_ok=:
4144break
4145fi
4146rm -f conftest.err conftest.i conftest.$ac_ext
4147
4148done
4149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4150rm -f conftest.i conftest.err conftest.$ac_ext
4151if $ac_preproc_ok; then :
4152
4153else
4154  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4157See \`config.log' for more details" "$LINENO" 5; }
4158fi
4159
4160ac_ext=c
4161ac_cpp='$CPP $CPPFLAGS'
4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4168$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4169if ${ac_cv_path_GREP+:} false; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  if test -z "$GREP"; then
4173  ac_path_GREP_found=false
4174  # Loop through the user's path and test for each of PROGNAME-LIST
4175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177do
4178  IFS=$as_save_IFS
4179  test -z "$as_dir" && as_dir=.
4180    for ac_prog in grep ggrep; do
4181    for ac_exec_ext in '' $ac_executable_extensions; do
4182      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4183      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4184# Check for GNU ac_path_GREP and select it if it is found.
4185  # Check for GNU $ac_path_GREP
4186case `"$ac_path_GREP" --version 2>&1` in
4187*GNU*)
4188  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4189*)
4190  ac_count=0
4191  $as_echo_n 0123456789 >"conftest.in"
4192  while :
4193  do
4194    cat "conftest.in" "conftest.in" >"conftest.tmp"
4195    mv "conftest.tmp" "conftest.in"
4196    cp "conftest.in" "conftest.nl"
4197    $as_echo 'GREP' >> "conftest.nl"
4198    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200    as_fn_arith $ac_count + 1 && ac_count=$as_val
4201    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4202      # Best one so far, save it but keep looking for a better one
4203      ac_cv_path_GREP="$ac_path_GREP"
4204      ac_path_GREP_max=$ac_count
4205    fi
4206    # 10*(2^10) chars as input seems more than enough
4207    test $ac_count -gt 10 && break
4208  done
4209  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210esac
4211
4212      $ac_path_GREP_found && break 3
4213    done
4214  done
4215  done
4216IFS=$as_save_IFS
4217  if test -z "$ac_cv_path_GREP"; then
4218    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4219  fi
4220else
4221  ac_cv_path_GREP=$GREP
4222fi
4223
4224fi
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4226$as_echo "$ac_cv_path_GREP" >&6; }
4227 GREP="$ac_cv_path_GREP"
4228
4229
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4231$as_echo_n "checking for egrep... " >&6; }
4232if ${ac_cv_path_EGREP+:} false; then :
4233  $as_echo_n "(cached) " >&6
4234else
4235  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4236   then ac_cv_path_EGREP="$GREP -E"
4237   else
4238     if test -z "$EGREP"; then
4239  ac_path_EGREP_found=false
4240  # Loop through the user's path and test for each of PROGNAME-LIST
4241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243do
4244  IFS=$as_save_IFS
4245  test -z "$as_dir" && as_dir=.
4246    for ac_prog in egrep; do
4247    for ac_exec_ext in '' $ac_executable_extensions; do
4248      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4249      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4250# Check for GNU ac_path_EGREP and select it if it is found.
4251  # Check for GNU $ac_path_EGREP
4252case `"$ac_path_EGREP" --version 2>&1` in
4253*GNU*)
4254  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4255*)
4256  ac_count=0
4257  $as_echo_n 0123456789 >"conftest.in"
4258  while :
4259  do
4260    cat "conftest.in" "conftest.in" >"conftest.tmp"
4261    mv "conftest.tmp" "conftest.in"
4262    cp "conftest.in" "conftest.nl"
4263    $as_echo 'EGREP' >> "conftest.nl"
4264    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266    as_fn_arith $ac_count + 1 && ac_count=$as_val
4267    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4268      # Best one so far, save it but keep looking for a better one
4269      ac_cv_path_EGREP="$ac_path_EGREP"
4270      ac_path_EGREP_max=$ac_count
4271    fi
4272    # 10*(2^10) chars as input seems more than enough
4273    test $ac_count -gt 10 && break
4274  done
4275  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276esac
4277
4278      $ac_path_EGREP_found && break 3
4279    done
4280  done
4281  done
4282IFS=$as_save_IFS
4283  if test -z "$ac_cv_path_EGREP"; then
4284    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285  fi
4286else
4287  ac_cv_path_EGREP=$EGREP
4288fi
4289
4290   fi
4291fi
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4293$as_echo "$ac_cv_path_EGREP" >&6; }
4294 EGREP="$ac_cv_path_EGREP"
4295
4296
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4298$as_echo_n "checking for ANSI C header files... " >&6; }
4299if ${ac_cv_header_stdc+:} false; then :
4300  $as_echo_n "(cached) " >&6
4301else
4302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304#include <stdlib.h>
4305#include <stdarg.h>
4306#include <string.h>
4307#include <float.h>
4308
4309int
4310main ()
4311{
4312
4313  ;
4314  return 0;
4315}
4316_ACEOF
4317if ac_fn_c_try_compile "$LINENO"; then :
4318  ac_cv_header_stdc=yes
4319else
4320  ac_cv_header_stdc=no
4321fi
4322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323
4324if test $ac_cv_header_stdc = yes; then
4325  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h.  */
4328#include <string.h>
4329
4330_ACEOF
4331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332  $EGREP "memchr" >/dev/null 2>&1; then :
4333
4334else
4335  ac_cv_header_stdc=no
4336fi
4337rm -f conftest*
4338
4339fi
4340
4341if test $ac_cv_header_stdc = yes; then
4342  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h.  */
4345#include <stdlib.h>
4346
4347_ACEOF
4348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349  $EGREP "free" >/dev/null 2>&1; then :
4350
4351else
4352  ac_cv_header_stdc=no
4353fi
4354rm -f conftest*
4355
4356fi
4357
4358if test $ac_cv_header_stdc = yes; then
4359  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360  if test "$cross_compiling" = yes; then :
4361  :
4362else
4363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h.  */
4365#include <ctype.h>
4366#include <stdlib.h>
4367#if ((' ' & 0x0FF) == 0x020)
4368# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4369# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4370#else
4371# define ISLOWER(c) \
4372		   (('a' <= (c) && (c) <= 'i') \
4373		     || ('j' <= (c) && (c) <= 'r') \
4374		     || ('s' <= (c) && (c) <= 'z'))
4375# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376#endif
4377
4378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379int
4380main ()
4381{
4382  int i;
4383  for (i = 0; i < 256; i++)
4384    if (XOR (islower (i), ISLOWER (i))
4385	|| toupper (i) != TOUPPER (i))
4386      return 2;
4387  return 0;
4388}
4389_ACEOF
4390if ac_fn_c_try_run "$LINENO"; then :
4391
4392else
4393  ac_cv_header_stdc=no
4394fi
4395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4396  conftest.$ac_objext conftest.beam conftest.$ac_ext
4397fi
4398
4399fi
4400fi
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4402$as_echo "$ac_cv_header_stdc" >&6; }
4403if test $ac_cv_header_stdc = yes; then
4404
4405$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4406
4407fi
4408
4409# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4410for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4411		  inttypes.h stdint.h unistd.h
4412do :
4413  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4414ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4415"
4416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4417  cat >>confdefs.h <<_ACEOF
4418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4419_ACEOF
4420
4421fi
4422
4423done
4424
4425
4426
4427
4428
4429
4430ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4431if test "x$ac_cv_have_decl___clang__" = xyes; then :
4432  CLANGCC="yes"
4433else
4434  CLANGCC="no"
4435fi
4436
4437ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4438if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4439  INTELCC="yes"
4440else
4441  INTELCC="no"
4442fi
4443
4444ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4445if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4446  SUNCC="yes"
4447else
4448  SUNCC="no"
4449fi
4450
4451
4452
4453
4454
4455
4456
4457
4458if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4459	if test -n "$ac_tool_prefix"; then
4460  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4461set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463$as_echo_n "checking for $ac_word... " >&6; }
4464if ${ac_cv_path_PKG_CONFIG+:} false; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  case $PKG_CONFIG in
4468  [\\/]* | ?:[\\/]*)
4469  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4470  ;;
4471  *)
4472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475  IFS=$as_save_IFS
4476  test -z "$as_dir" && as_dir=.
4477    for ac_exec_ext in '' $ac_executable_extensions; do
4478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481    break 2
4482  fi
4483done
4484  done
4485IFS=$as_save_IFS
4486
4487  ;;
4488esac
4489fi
4490PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4491if test -n "$PKG_CONFIG"; then
4492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4493$as_echo "$PKG_CONFIG" >&6; }
4494else
4495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496$as_echo "no" >&6; }
4497fi
4498
4499
4500fi
4501if test -z "$ac_cv_path_PKG_CONFIG"; then
4502  ac_pt_PKG_CONFIG=$PKG_CONFIG
4503  # Extract the first word of "pkg-config", so it can be a program name with args.
4504set dummy pkg-config; ac_word=$2
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
4507if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  case $ac_pt_PKG_CONFIG in
4511  [\\/]* | ?:[\\/]*)
4512  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4513  ;;
4514  *)
4515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518  IFS=$as_save_IFS
4519  test -z "$as_dir" && as_dir=.
4520    for ac_exec_ext in '' $ac_executable_extensions; do
4521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524    break 2
4525  fi
4526done
4527  done
4528IFS=$as_save_IFS
4529
4530  ;;
4531esac
4532fi
4533ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4534if test -n "$ac_pt_PKG_CONFIG"; then
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4536$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4537else
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539$as_echo "no" >&6; }
4540fi
4541
4542  if test "x$ac_pt_PKG_CONFIG" = x; then
4543    PKG_CONFIG=""
4544  else
4545    case $cross_compiling:$ac_tool_warned in
4546yes:)
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4549ac_tool_warned=yes ;;
4550esac
4551    PKG_CONFIG=$ac_pt_PKG_CONFIG
4552  fi
4553else
4554  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4555fi
4556
4557fi
4558if test -n "$PKG_CONFIG"; then
4559	_pkg_min_version=0.9.0
4560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4561$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4562	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4563		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564$as_echo "yes" >&6; }
4565	else
4566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567$as_echo "no" >&6; }
4568		PKG_CONFIG=""
4569	fi
4570fi
4571# Make sure we can run config.sub.
4572$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4573  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4574
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4576$as_echo_n "checking build system type... " >&6; }
4577if ${ac_cv_build+:} false; then :
4578  $as_echo_n "(cached) " >&6
4579else
4580  ac_build_alias=$build_alias
4581test "x$ac_build_alias" = x &&
4582  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4583test "x$ac_build_alias" = x &&
4584  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4585ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4586  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4587
4588fi
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4590$as_echo "$ac_cv_build" >&6; }
4591case $ac_cv_build in
4592*-*-*) ;;
4593*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4594esac
4595build=$ac_cv_build
4596ac_save_IFS=$IFS; IFS='-'
4597set x $ac_cv_build
4598shift
4599build_cpu=$1
4600build_vendor=$2
4601shift; shift
4602# Remember, the first character of IFS is used to create $*,
4603# except with old shells:
4604build_os=$*
4605IFS=$ac_save_IFS
4606case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4607
4608
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4610$as_echo_n "checking host system type... " >&6; }
4611if ${ac_cv_host+:} false; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  if test "x$host_alias" = x; then
4615  ac_cv_host=$ac_cv_build
4616else
4617  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4618    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4619fi
4620
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4623$as_echo "$ac_cv_host" >&6; }
4624case $ac_cv_host in
4625*-*-*) ;;
4626*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4627esac
4628host=$ac_cv_host
4629ac_save_IFS=$IFS; IFS='-'
4630set x $ac_cv_host
4631shift
4632host_cpu=$1
4633host_vendor=$2
4634shift; shift
4635# Remember, the first character of IFS is used to create $*,
4636# except with old shells:
4637host_os=$*
4638IFS=$ac_save_IFS
4639case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4640
4641
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4643$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4644if ${ac_cv_path_SED+:} false; then :
4645  $as_echo_n "(cached) " >&6
4646else
4647            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4648     for ac_i in 1 2 3 4 5 6 7; do
4649       ac_script="$ac_script$as_nl$ac_script"
4650     done
4651     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4652     { ac_script=; unset ac_script;}
4653     if test -z "$SED"; then
4654  ac_path_SED_found=false
4655  # Loop through the user's path and test for each of PROGNAME-LIST
4656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659  IFS=$as_save_IFS
4660  test -z "$as_dir" && as_dir=.
4661    for ac_prog in sed gsed; do
4662    for ac_exec_ext in '' $ac_executable_extensions; do
4663      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4664      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4665# Check for GNU ac_path_SED and select it if it is found.
4666  # Check for GNU $ac_path_SED
4667case `"$ac_path_SED" --version 2>&1` in
4668*GNU*)
4669  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4670*)
4671  ac_count=0
4672  $as_echo_n 0123456789 >"conftest.in"
4673  while :
4674  do
4675    cat "conftest.in" "conftest.in" >"conftest.tmp"
4676    mv "conftest.tmp" "conftest.in"
4677    cp "conftest.in" "conftest.nl"
4678    $as_echo '' >> "conftest.nl"
4679    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681    as_fn_arith $ac_count + 1 && ac_count=$as_val
4682    if test $ac_count -gt ${ac_path_SED_max-0}; then
4683      # Best one so far, save it but keep looking for a better one
4684      ac_cv_path_SED="$ac_path_SED"
4685      ac_path_SED_max=$ac_count
4686    fi
4687    # 10*(2^10) chars as input seems more than enough
4688    test $ac_count -gt 10 && break
4689  done
4690  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691esac
4692
4693      $ac_path_SED_found && break 3
4694    done
4695  done
4696  done
4697IFS=$as_save_IFS
4698  if test -z "$ac_cv_path_SED"; then
4699    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4700  fi
4701else
4702  ac_cv_path_SED=$SED
4703fi
4704
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4707$as_echo "$ac_cv_path_SED" >&6; }
4708 SED="$ac_cv_path_SED"
4709  rm -f conftest.sed
4710
4711
4712
4713
4714
4715
4716# Check whether --enable-selective-werror was given.
4717if test "${enable_selective_werror+set}" = set; then :
4718  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4719else
4720  SELECTIVE_WERROR=yes
4721fi
4722
4723
4724
4725
4726
4727# -v is too short to test reliably with XORG_TESTSET_CFLAG
4728if test "x$SUNCC" = "xyes"; then
4729    BASE_CFLAGS="-v"
4730else
4731    BASE_CFLAGS=""
4732fi
4733
4734# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748xorg_testset_save_CFLAGS="$CFLAGS"
4749
4750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4753$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4754if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4755  $as_echo_n "(cached) " >&6
4756else
4757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h.  */
4759int i;
4760_ACEOF
4761if ac_fn_c_try_compile "$LINENO"; then :
4762  xorg_cv_cc_flag_unknown_warning_option=yes
4763else
4764  xorg_cv_cc_flag_unknown_warning_option=no
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767fi
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4769$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4771	CFLAGS="$xorg_testset_save_CFLAGS"
4772fi
4773
4774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4777	fi
4778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4780$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4781if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786int i;
4787_ACEOF
4788if ac_fn_c_try_compile "$LINENO"; then :
4789  xorg_cv_cc_flag_unused_command_line_argument=yes
4790else
4791  xorg_cv_cc_flag_unused_command_line_argument=no
4792fi
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4796$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4798	CFLAGS="$xorg_testset_save_CFLAGS"
4799fi
4800
4801found="no"
4802
4803	if test $found = "no" ; then
4804		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4806		fi
4807
4808		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4810		fi
4811
4812		CFLAGS="$CFLAGS -Wall"
4813
4814		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4815$as_echo_n "checking if $CC supports -Wall... " >&6; }
4816		cacheid=xorg_cv_cc_flag__Wall
4817		if eval \${$cacheid+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821/* end confdefs.h.  */
4822int i;
4823int
4824main ()
4825{
4826
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831if ac_fn_c_try_link "$LINENO"; then :
4832  eval $cacheid=yes
4833else
4834  eval $cacheid=no
4835fi
4836rm -f core conftest.err conftest.$ac_objext \
4837    conftest$ac_exeext conftest.$ac_ext
4838fi
4839
4840
4841		CFLAGS="$xorg_testset_save_CFLAGS"
4842
4843		eval supported=\$$cacheid
4844		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4845$as_echo "$supported" >&6; }
4846		if test "$supported" = "yes" ; then
4847			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4848			found="yes"
4849		fi
4850	fi
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866xorg_testset_save_CFLAGS="$CFLAGS"
4867
4868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4871$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4872if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4873  $as_echo_n "(cached) " >&6
4874else
4875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876/* end confdefs.h.  */
4877int i;
4878_ACEOF
4879if ac_fn_c_try_compile "$LINENO"; then :
4880  xorg_cv_cc_flag_unknown_warning_option=yes
4881else
4882  xorg_cv_cc_flag_unknown_warning_option=no
4883fi
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885fi
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4887$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4889	CFLAGS="$xorg_testset_save_CFLAGS"
4890fi
4891
4892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895	fi
4896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4898$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4899if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4900  $as_echo_n "(cached) " >&6
4901else
4902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903/* end confdefs.h.  */
4904int i;
4905_ACEOF
4906if ac_fn_c_try_compile "$LINENO"; then :
4907  xorg_cv_cc_flag_unused_command_line_argument=yes
4908else
4909  xorg_cv_cc_flag_unused_command_line_argument=no
4910fi
4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4914$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4915	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4916	CFLAGS="$xorg_testset_save_CFLAGS"
4917fi
4918
4919found="no"
4920
4921	if test $found = "no" ; then
4922		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4924		fi
4925
4926		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4928		fi
4929
4930		CFLAGS="$CFLAGS -Wpointer-arith"
4931
4932		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4933$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4934		cacheid=xorg_cv_cc_flag__Wpointer_arith
4935		if eval \${$cacheid+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940int i;
4941int
4942main ()
4943{
4944
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949if ac_fn_c_try_link "$LINENO"; then :
4950  eval $cacheid=yes
4951else
4952  eval $cacheid=no
4953fi
4954rm -f core conftest.err conftest.$ac_objext \
4955    conftest$ac_exeext conftest.$ac_ext
4956fi
4957
4958
4959		CFLAGS="$xorg_testset_save_CFLAGS"
4960
4961		eval supported=\$$cacheid
4962		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4963$as_echo "$supported" >&6; }
4964		if test "$supported" = "yes" ; then
4965			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4966			found="yes"
4967		fi
4968	fi
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984xorg_testset_save_CFLAGS="$CFLAGS"
4985
4986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4989$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4990if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h.  */
4995int i;
4996_ACEOF
4997if ac_fn_c_try_compile "$LINENO"; then :
4998  xorg_cv_cc_flag_unknown_warning_option=yes
4999else
5000  xorg_cv_cc_flag_unknown_warning_option=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5005$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5007	CFLAGS="$xorg_testset_save_CFLAGS"
5008fi
5009
5010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013	fi
5014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5016$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5017if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h.  */
5022int i;
5023_ACEOF
5024if ac_fn_c_try_compile "$LINENO"; then :
5025  xorg_cv_cc_flag_unused_command_line_argument=yes
5026else
5027  xorg_cv_cc_flag_unused_command_line_argument=no
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030fi
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5032$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5034	CFLAGS="$xorg_testset_save_CFLAGS"
5035fi
5036
5037found="no"
5038
5039	if test $found = "no" ; then
5040		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5042		fi
5043
5044		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5046		fi
5047
5048		CFLAGS="$CFLAGS -Wmissing-declarations"
5049
5050		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5051$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5052		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5053		if eval \${$cacheid+:} false; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058int i;
5059int
5060main ()
5061{
5062
5063  ;
5064  return 0;
5065}
5066_ACEOF
5067if ac_fn_c_try_link "$LINENO"; then :
5068  eval $cacheid=yes
5069else
5070  eval $cacheid=no
5071fi
5072rm -f core conftest.err conftest.$ac_objext \
5073    conftest$ac_exeext conftest.$ac_ext
5074fi
5075
5076
5077		CFLAGS="$xorg_testset_save_CFLAGS"
5078
5079		eval supported=\$$cacheid
5080		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5081$as_echo "$supported" >&6; }
5082		if test "$supported" = "yes" ; then
5083			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5084			found="yes"
5085		fi
5086	fi
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102xorg_testset_save_CFLAGS="$CFLAGS"
5103
5104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5109  $as_echo_n "(cached) " >&6
5110else
5111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113int i;
5114_ACEOF
5115if ac_fn_c_try_compile "$LINENO"; then :
5116  xorg_cv_cc_flag_unknown_warning_option=yes
5117else
5118  xorg_cv_cc_flag_unknown_warning_option=no
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5124	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5125	CFLAGS="$xorg_testset_save_CFLAGS"
5126fi
5127
5128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5129	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5131	fi
5132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140int i;
5141_ACEOF
5142if ac_fn_c_try_compile "$LINENO"; then :
5143  xorg_cv_cc_flag_unused_command_line_argument=yes
5144else
5145  xorg_cv_cc_flag_unused_command_line_argument=no
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5152	CFLAGS="$xorg_testset_save_CFLAGS"
5153fi
5154
5155found="no"
5156
5157	if test $found = "no" ; then
5158		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160		fi
5161
5162		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5164		fi
5165
5166		CFLAGS="$CFLAGS -Wformat=2"
5167
5168		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5169$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5170		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5171		if eval \${$cacheid+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h.  */
5176int i;
5177int
5178main ()
5179{
5180
5181  ;
5182  return 0;
5183}
5184_ACEOF
5185if ac_fn_c_try_link "$LINENO"; then :
5186  eval $cacheid=yes
5187else
5188  eval $cacheid=no
5189fi
5190rm -f core conftest.err conftest.$ac_objext \
5191    conftest$ac_exeext conftest.$ac_ext
5192fi
5193
5194
5195		CFLAGS="$xorg_testset_save_CFLAGS"
5196
5197		eval supported=\$$cacheid
5198		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5199$as_echo "$supported" >&6; }
5200		if test "$supported" = "yes" ; then
5201			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5202			found="yes"
5203		fi
5204	fi
5205
5206	if test $found = "no" ; then
5207		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209		fi
5210
5211		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5213		fi
5214
5215		CFLAGS="$CFLAGS -Wformat"
5216
5217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5218$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5219		cacheid=xorg_cv_cc_flag__Wformat
5220		if eval \${$cacheid+:} false; then :
5221  $as_echo_n "(cached) " >&6
5222else
5223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225int i;
5226int
5227main ()
5228{
5229
5230  ;
5231  return 0;
5232}
5233_ACEOF
5234if ac_fn_c_try_link "$LINENO"; then :
5235  eval $cacheid=yes
5236else
5237  eval $cacheid=no
5238fi
5239rm -f core conftest.err conftest.$ac_objext \
5240    conftest$ac_exeext conftest.$ac_ext
5241fi
5242
5243
5244		CFLAGS="$xorg_testset_save_CFLAGS"
5245
5246		eval supported=\$$cacheid
5247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5248$as_echo "$supported" >&6; }
5249		if test "$supported" = "yes" ; then
5250			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5251			found="yes"
5252		fi
5253	fi
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271xorg_testset_save_CFLAGS="$CFLAGS"
5272
5273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5278  $as_echo_n "(cached) " >&6
5279else
5280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h.  */
5282int i;
5283_ACEOF
5284if ac_fn_c_try_compile "$LINENO"; then :
5285  xorg_cv_cc_flag_unknown_warning_option=yes
5286else
5287  xorg_cv_cc_flag_unknown_warning_option=no
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290fi
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5294	CFLAGS="$xorg_testset_save_CFLAGS"
5295fi
5296
5297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300	fi
5301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309int i;
5310_ACEOF
5311if ac_fn_c_try_compile "$LINENO"; then :
5312  xorg_cv_cc_flag_unused_command_line_argument=yes
5313else
5314  xorg_cv_cc_flag_unused_command_line_argument=no
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5321	CFLAGS="$xorg_testset_save_CFLAGS"
5322fi
5323
5324found="no"
5325
5326	if test $found = "no" ; then
5327		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5329		fi
5330
5331		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5333		fi
5334
5335		CFLAGS="$CFLAGS -Wstrict-prototypes"
5336
5337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5338$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5339		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5340		if eval \${$cacheid+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h.  */
5345int i;
5346int
5347main ()
5348{
5349
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354if ac_fn_c_try_link "$LINENO"; then :
5355  eval $cacheid=yes
5356else
5357  eval $cacheid=no
5358fi
5359rm -f core conftest.err conftest.$ac_objext \
5360    conftest$ac_exeext conftest.$ac_ext
5361fi
5362
5363
5364		CFLAGS="$xorg_testset_save_CFLAGS"
5365
5366		eval supported=\$$cacheid
5367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5368$as_echo "$supported" >&6; }
5369		if test "$supported" = "yes" ; then
5370			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5371			found="yes"
5372		fi
5373	fi
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389xorg_testset_save_CFLAGS="$CFLAGS"
5390
5391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5396  $as_echo_n "(cached) " >&6
5397else
5398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399/* end confdefs.h.  */
5400int i;
5401_ACEOF
5402if ac_fn_c_try_compile "$LINENO"; then :
5403  xorg_cv_cc_flag_unknown_warning_option=yes
5404else
5405  xorg_cv_cc_flag_unknown_warning_option=no
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5412	CFLAGS="$xorg_testset_save_CFLAGS"
5413fi
5414
5415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418	fi
5419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5423  $as_echo_n "(cached) " >&6
5424else
5425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426/* end confdefs.h.  */
5427int i;
5428_ACEOF
5429if ac_fn_c_try_compile "$LINENO"; then :
5430  xorg_cv_cc_flag_unused_command_line_argument=yes
5431else
5432  xorg_cv_cc_flag_unused_command_line_argument=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5439	CFLAGS="$xorg_testset_save_CFLAGS"
5440fi
5441
5442found="no"
5443
5444	if test $found = "no" ; then
5445		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447		fi
5448
5449		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451		fi
5452
5453		CFLAGS="$CFLAGS -Wmissing-prototypes"
5454
5455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5456$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5457		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5458		if eval \${$cacheid+:} false; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463int i;
5464int
5465main ()
5466{
5467
5468  ;
5469  return 0;
5470}
5471_ACEOF
5472if ac_fn_c_try_link "$LINENO"; then :
5473  eval $cacheid=yes
5474else
5475  eval $cacheid=no
5476fi
5477rm -f core conftest.err conftest.$ac_objext \
5478    conftest$ac_exeext conftest.$ac_ext
5479fi
5480
5481
5482		CFLAGS="$xorg_testset_save_CFLAGS"
5483
5484		eval supported=\$$cacheid
5485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5486$as_echo "$supported" >&6; }
5487		if test "$supported" = "yes" ; then
5488			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5489			found="yes"
5490		fi
5491	fi
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507xorg_testset_save_CFLAGS="$CFLAGS"
5508
5509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5510	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h.  */
5518int i;
5519_ACEOF
5520if ac_fn_c_try_compile "$LINENO"; then :
5521  xorg_cv_cc_flag_unknown_warning_option=yes
5522else
5523  xorg_cv_cc_flag_unknown_warning_option=no
5524fi
5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526fi
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5530	CFLAGS="$xorg_testset_save_CFLAGS"
5531fi
5532
5533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536	fi
5537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5541  $as_echo_n "(cached) " >&6
5542else
5543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544/* end confdefs.h.  */
5545int i;
5546_ACEOF
5547if ac_fn_c_try_compile "$LINENO"; then :
5548  xorg_cv_cc_flag_unused_command_line_argument=yes
5549else
5550  xorg_cv_cc_flag_unused_command_line_argument=no
5551fi
5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553fi
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5556	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5557	CFLAGS="$xorg_testset_save_CFLAGS"
5558fi
5559
5560found="no"
5561
5562	if test $found = "no" ; then
5563		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5564			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5565		fi
5566
5567		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5568			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5569		fi
5570
5571		CFLAGS="$CFLAGS -Wnested-externs"
5572
5573		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5574$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5575		cacheid=xorg_cv_cc_flag__Wnested_externs
5576		if eval \${$cacheid+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h.  */
5581int i;
5582int
5583main ()
5584{
5585
5586  ;
5587  return 0;
5588}
5589_ACEOF
5590if ac_fn_c_try_link "$LINENO"; then :
5591  eval $cacheid=yes
5592else
5593  eval $cacheid=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext \
5596    conftest$ac_exeext conftest.$ac_ext
5597fi
5598
5599
5600		CFLAGS="$xorg_testset_save_CFLAGS"
5601
5602		eval supported=\$$cacheid
5603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5604$as_echo "$supported" >&6; }
5605		if test "$supported" = "yes" ; then
5606			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5607			found="yes"
5608		fi
5609	fi
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625xorg_testset_save_CFLAGS="$CFLAGS"
5626
5627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5631if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5632  $as_echo_n "(cached) " >&6
5633else
5634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636int i;
5637_ACEOF
5638if ac_fn_c_try_compile "$LINENO"; then :
5639  xorg_cv_cc_flag_unknown_warning_option=yes
5640else
5641  xorg_cv_cc_flag_unknown_warning_option=no
5642fi
5643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5646$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5648	CFLAGS="$xorg_testset_save_CFLAGS"
5649fi
5650
5651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654	fi
5655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5656	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5657$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5658if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5659  $as_echo_n "(cached) " >&6
5660else
5661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h.  */
5663int i;
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666  xorg_cv_cc_flag_unused_command_line_argument=yes
5667else
5668  xorg_cv_cc_flag_unused_command_line_argument=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671fi
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5673$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5675	CFLAGS="$xorg_testset_save_CFLAGS"
5676fi
5677
5678found="no"
5679
5680	if test $found = "no" ; then
5681		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5683		fi
5684
5685		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5687		fi
5688
5689		CFLAGS="$CFLAGS -Wbad-function-cast"
5690
5691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5692$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5693		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5694		if eval \${$cacheid+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699int i;
5700int
5701main ()
5702{
5703
5704  ;
5705  return 0;
5706}
5707_ACEOF
5708if ac_fn_c_try_link "$LINENO"; then :
5709  eval $cacheid=yes
5710else
5711  eval $cacheid=no
5712fi
5713rm -f core conftest.err conftest.$ac_objext \
5714    conftest$ac_exeext conftest.$ac_ext
5715fi
5716
5717
5718		CFLAGS="$xorg_testset_save_CFLAGS"
5719
5720		eval supported=\$$cacheid
5721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5722$as_echo "$supported" >&6; }
5723		if test "$supported" = "yes" ; then
5724			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5725			found="yes"
5726		fi
5727	fi
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743xorg_testset_save_CFLAGS="$CFLAGS"
5744
5745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5748$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5749if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5750  $as_echo_n "(cached) " >&6
5751else
5752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h.  */
5754int i;
5755_ACEOF
5756if ac_fn_c_try_compile "$LINENO"; then :
5757  xorg_cv_cc_flag_unknown_warning_option=yes
5758else
5759  xorg_cv_cc_flag_unknown_warning_option=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5764$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5766	CFLAGS="$xorg_testset_save_CFLAGS"
5767fi
5768
5769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772	fi
5773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5775$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5776if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h.  */
5781int i;
5782_ACEOF
5783if ac_fn_c_try_compile "$LINENO"; then :
5784  xorg_cv_cc_flag_unused_command_line_argument=yes
5785else
5786  xorg_cv_cc_flag_unused_command_line_argument=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789fi
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5791$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5793	CFLAGS="$xorg_testset_save_CFLAGS"
5794fi
5795
5796found="no"
5797
5798	if test $found = "no" ; then
5799		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5801		fi
5802
5803		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5805		fi
5806
5807		CFLAGS="$CFLAGS -Wold-style-definition"
5808
5809		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5810$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5811		cacheid=xorg_cv_cc_flag__Wold_style_definition
5812		if eval \${$cacheid+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h.  */
5817int i;
5818int
5819main ()
5820{
5821
5822  ;
5823  return 0;
5824}
5825_ACEOF
5826if ac_fn_c_try_link "$LINENO"; then :
5827  eval $cacheid=yes
5828else
5829  eval $cacheid=no
5830fi
5831rm -f core conftest.err conftest.$ac_objext \
5832    conftest$ac_exeext conftest.$ac_ext
5833fi
5834
5835
5836		CFLAGS="$xorg_testset_save_CFLAGS"
5837
5838		eval supported=\$$cacheid
5839		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5840$as_echo "$supported" >&6; }
5841		if test "$supported" = "yes" ; then
5842			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5843			found="yes"
5844		fi
5845	fi
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861xorg_testset_save_CFLAGS="$CFLAGS"
5862
5863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5866$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5867if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5868  $as_echo_n "(cached) " >&6
5869else
5870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h.  */
5872int i;
5873_ACEOF
5874if ac_fn_c_try_compile "$LINENO"; then :
5875  xorg_cv_cc_flag_unknown_warning_option=yes
5876else
5877  xorg_cv_cc_flag_unknown_warning_option=no
5878fi
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5882$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5883	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5884	CFLAGS="$xorg_testset_save_CFLAGS"
5885fi
5886
5887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5888	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5889		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890	fi
5891	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5892	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5893$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5894if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h.  */
5899int i;
5900_ACEOF
5901if ac_fn_c_try_compile "$LINENO"; then :
5902  xorg_cv_cc_flag_unused_command_line_argument=yes
5903else
5904  xorg_cv_cc_flag_unused_command_line_argument=no
5905fi
5906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907fi
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5909$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5911	CFLAGS="$xorg_testset_save_CFLAGS"
5912fi
5913
5914found="no"
5915
5916	if test $found = "no" ; then
5917		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919		fi
5920
5921		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5923		fi
5924
5925		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5926
5927		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5928$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5929		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5930		if eval \${$cacheid+:} false; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934/* end confdefs.h.  */
5935int i;
5936int
5937main ()
5938{
5939
5940  ;
5941  return 0;
5942}
5943_ACEOF
5944if ac_fn_c_try_link "$LINENO"; then :
5945  eval $cacheid=yes
5946else
5947  eval $cacheid=no
5948fi
5949rm -f core conftest.err conftest.$ac_objext \
5950    conftest$ac_exeext conftest.$ac_ext
5951fi
5952
5953
5954		CFLAGS="$xorg_testset_save_CFLAGS"
5955
5956		eval supported=\$$cacheid
5957		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5958$as_echo "$supported" >&6; }
5959		if test "$supported" = "yes" ; then
5960			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5961			found="yes"
5962		fi
5963	fi
5964
5965
5966
5967
5968
5969# This chunk adds additional warnings that could catch undesired effects.
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983xorg_testset_save_CFLAGS="$CFLAGS"
5984
5985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5986	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"; then :
5997  xorg_cv_cc_flag_unknown_warning_option=yes
5998else
5999  xorg_cv_cc_flag_unknown_warning_option=no
6000fi
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002fi
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6006	CFLAGS="$xorg_testset_save_CFLAGS"
6007fi
6008
6009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012	fi
6013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6017  $as_echo_n "(cached) " >&6
6018else
6019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020/* end confdefs.h.  */
6021int i;
6022_ACEOF
6023if ac_fn_c_try_compile "$LINENO"; then :
6024  xorg_cv_cc_flag_unused_command_line_argument=yes
6025else
6026  xorg_cv_cc_flag_unused_command_line_argument=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029fi
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6033	CFLAGS="$xorg_testset_save_CFLAGS"
6034fi
6035
6036found="no"
6037
6038	if test $found = "no" ; then
6039		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041		fi
6042
6043		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045		fi
6046
6047		CFLAGS="$CFLAGS -Wunused"
6048
6049		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6050$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6051		cacheid=xorg_cv_cc_flag__Wunused
6052		if eval \${$cacheid+:} false; then :
6053  $as_echo_n "(cached) " >&6
6054else
6055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h.  */
6057int i;
6058int
6059main ()
6060{
6061
6062  ;
6063  return 0;
6064}
6065_ACEOF
6066if ac_fn_c_try_link "$LINENO"; then :
6067  eval $cacheid=yes
6068else
6069  eval $cacheid=no
6070fi
6071rm -f core conftest.err conftest.$ac_objext \
6072    conftest$ac_exeext conftest.$ac_ext
6073fi
6074
6075
6076		CFLAGS="$xorg_testset_save_CFLAGS"
6077
6078		eval supported=\$$cacheid
6079		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6080$as_echo "$supported" >&6; }
6081		if test "$supported" = "yes" ; then
6082			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6083			found="yes"
6084		fi
6085	fi
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101xorg_testset_save_CFLAGS="$CFLAGS"
6102
6103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6108  $as_echo_n "(cached) " >&6
6109else
6110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111/* end confdefs.h.  */
6112int i;
6113_ACEOF
6114if ac_fn_c_try_compile "$LINENO"; then :
6115  xorg_cv_cc_flag_unknown_warning_option=yes
6116else
6117  xorg_cv_cc_flag_unknown_warning_option=no
6118fi
6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120fi
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6124	CFLAGS="$xorg_testset_save_CFLAGS"
6125fi
6126
6127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130	fi
6131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6132	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h.  */
6139int i;
6140_ACEOF
6141if ac_fn_c_try_compile "$LINENO"; then :
6142  xorg_cv_cc_flag_unused_command_line_argument=yes
6143else
6144  xorg_cv_cc_flag_unused_command_line_argument=no
6145fi
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147fi
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6151	CFLAGS="$xorg_testset_save_CFLAGS"
6152fi
6153
6154found="no"
6155
6156	if test $found = "no" ; then
6157		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159		fi
6160
6161		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163		fi
6164
6165		CFLAGS="$CFLAGS -Wuninitialized"
6166
6167		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6168$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6169		cacheid=xorg_cv_cc_flag__Wuninitialized
6170		if eval \${$cacheid+:} false; then :
6171  $as_echo_n "(cached) " >&6
6172else
6173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h.  */
6175int i;
6176int
6177main ()
6178{
6179
6180  ;
6181  return 0;
6182}
6183_ACEOF
6184if ac_fn_c_try_link "$LINENO"; then :
6185  eval $cacheid=yes
6186else
6187  eval $cacheid=no
6188fi
6189rm -f core conftest.err conftest.$ac_objext \
6190    conftest$ac_exeext conftest.$ac_ext
6191fi
6192
6193
6194		CFLAGS="$xorg_testset_save_CFLAGS"
6195
6196		eval supported=\$$cacheid
6197		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6198$as_echo "$supported" >&6; }
6199		if test "$supported" = "yes" ; then
6200			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6201			found="yes"
6202		fi
6203	fi
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219xorg_testset_save_CFLAGS="$CFLAGS"
6220
6221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6222	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h.  */
6230int i;
6231_ACEOF
6232if ac_fn_c_try_compile "$LINENO"; then :
6233  xorg_cv_cc_flag_unknown_warning_option=yes
6234else
6235  xorg_cv_cc_flag_unknown_warning_option=no
6236fi
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238fi
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6241	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6242	CFLAGS="$xorg_testset_save_CFLAGS"
6243fi
6244
6245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6246	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248	fi
6249	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6253  $as_echo_n "(cached) " >&6
6254else
6255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h.  */
6257int i;
6258_ACEOF
6259if ac_fn_c_try_compile "$LINENO"; then :
6260  xorg_cv_cc_flag_unused_command_line_argument=yes
6261else
6262  xorg_cv_cc_flag_unused_command_line_argument=no
6263fi
6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265fi
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6269	CFLAGS="$xorg_testset_save_CFLAGS"
6270fi
6271
6272found="no"
6273
6274	if test $found = "no" ; then
6275		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6277		fi
6278
6279		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6281		fi
6282
6283		CFLAGS="$CFLAGS -Wshadow"
6284
6285		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6286$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6287		cacheid=xorg_cv_cc_flag__Wshadow
6288		if eval \${$cacheid+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293int i;
6294int
6295main ()
6296{
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_c_try_link "$LINENO"; then :
6303  eval $cacheid=yes
6304else
6305  eval $cacheid=no
6306fi
6307rm -f core conftest.err conftest.$ac_objext \
6308    conftest$ac_exeext conftest.$ac_ext
6309fi
6310
6311
6312		CFLAGS="$xorg_testset_save_CFLAGS"
6313
6314		eval supported=\$$cacheid
6315		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6316$as_echo "$supported" >&6; }
6317		if test "$supported" = "yes" ; then
6318			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6319			found="yes"
6320		fi
6321	fi
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337xorg_testset_save_CFLAGS="$CFLAGS"
6338
6339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h.  */
6348int i;
6349_ACEOF
6350if ac_fn_c_try_compile "$LINENO"; then :
6351  xorg_cv_cc_flag_unknown_warning_option=yes
6352else
6353  xorg_cv_cc_flag_unknown_warning_option=no
6354fi
6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356fi
6357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6360	CFLAGS="$xorg_testset_save_CFLAGS"
6361fi
6362
6363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366	fi
6367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h.  */
6375int i;
6376_ACEOF
6377if ac_fn_c_try_compile "$LINENO"; then :
6378  xorg_cv_cc_flag_unused_command_line_argument=yes
6379else
6380  xorg_cv_cc_flag_unused_command_line_argument=no
6381fi
6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383fi
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6386	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6387	CFLAGS="$xorg_testset_save_CFLAGS"
6388fi
6389
6390found="no"
6391
6392	if test $found = "no" ; then
6393		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6395		fi
6396
6397		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6399		fi
6400
6401		CFLAGS="$CFLAGS -Wcast-qual"
6402
6403		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6404$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6405		cacheid=xorg_cv_cc_flag__Wcast_qual
6406		if eval \${$cacheid+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h.  */
6411int i;
6412int
6413main ()
6414{
6415
6416  ;
6417  return 0;
6418}
6419_ACEOF
6420if ac_fn_c_try_link "$LINENO"; then :
6421  eval $cacheid=yes
6422else
6423  eval $cacheid=no
6424fi
6425rm -f core conftest.err conftest.$ac_objext \
6426    conftest$ac_exeext conftest.$ac_ext
6427fi
6428
6429
6430		CFLAGS="$xorg_testset_save_CFLAGS"
6431
6432		eval supported=\$$cacheid
6433		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6434$as_echo "$supported" >&6; }
6435		if test "$supported" = "yes" ; then
6436			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6437			found="yes"
6438		fi
6439	fi
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455xorg_testset_save_CFLAGS="$CFLAGS"
6456
6457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6462  $as_echo_n "(cached) " >&6
6463else
6464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465/* end confdefs.h.  */
6466int i;
6467_ACEOF
6468if ac_fn_c_try_compile "$LINENO"; then :
6469  xorg_cv_cc_flag_unknown_warning_option=yes
6470else
6471  xorg_cv_cc_flag_unknown_warning_option=no
6472fi
6473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474fi
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6477	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6478	CFLAGS="$xorg_testset_save_CFLAGS"
6479fi
6480
6481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6482	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6483		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6484	fi
6485	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h.  */
6493int i;
6494_ACEOF
6495if ac_fn_c_try_compile "$LINENO"; then :
6496  xorg_cv_cc_flag_unused_command_line_argument=yes
6497else
6498  xorg_cv_cc_flag_unused_command_line_argument=no
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501fi
6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6505	CFLAGS="$xorg_testset_save_CFLAGS"
6506fi
6507
6508found="no"
6509
6510	if test $found = "no" ; then
6511		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6513		fi
6514
6515		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6517		fi
6518
6519		CFLAGS="$CFLAGS -Wmissing-noreturn"
6520
6521		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6522$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6523		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6524		if eval \${$cacheid+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529int i;
6530int
6531main ()
6532{
6533
6534  ;
6535  return 0;
6536}
6537_ACEOF
6538if ac_fn_c_try_link "$LINENO"; then :
6539  eval $cacheid=yes
6540else
6541  eval $cacheid=no
6542fi
6543rm -f core conftest.err conftest.$ac_objext \
6544    conftest$ac_exeext conftest.$ac_ext
6545fi
6546
6547
6548		CFLAGS="$xorg_testset_save_CFLAGS"
6549
6550		eval supported=\$$cacheid
6551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6552$as_echo "$supported" >&6; }
6553		if test "$supported" = "yes" ; then
6554			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6555			found="yes"
6556		fi
6557	fi
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573xorg_testset_save_CFLAGS="$CFLAGS"
6574
6575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6578$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6579if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6580  $as_echo_n "(cached) " >&6
6581else
6582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h.  */
6584int i;
6585_ACEOF
6586if ac_fn_c_try_compile "$LINENO"; then :
6587  xorg_cv_cc_flag_unknown_warning_option=yes
6588else
6589  xorg_cv_cc_flag_unknown_warning_option=no
6590fi
6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592fi
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6594$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6595	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6596	CFLAGS="$xorg_testset_save_CFLAGS"
6597fi
6598
6599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6600	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6601		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6602	fi
6603	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6604	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6605$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6606if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611int i;
6612_ACEOF
6613if ac_fn_c_try_compile "$LINENO"; then :
6614  xorg_cv_cc_flag_unused_command_line_argument=yes
6615else
6616  xorg_cv_cc_flag_unused_command_line_argument=no
6617fi
6618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619fi
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6621$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6623	CFLAGS="$xorg_testset_save_CFLAGS"
6624fi
6625
6626found="no"
6627
6628	if test $found = "no" ; then
6629		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6631		fi
6632
6633		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6635		fi
6636
6637		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6638
6639		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6640$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6641		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6642		if eval \${$cacheid+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647int i;
6648int
6649main ()
6650{
6651
6652  ;
6653  return 0;
6654}
6655_ACEOF
6656if ac_fn_c_try_link "$LINENO"; then :
6657  eval $cacheid=yes
6658else
6659  eval $cacheid=no
6660fi
6661rm -f core conftest.err conftest.$ac_objext \
6662    conftest$ac_exeext conftest.$ac_ext
6663fi
6664
6665
6666		CFLAGS="$xorg_testset_save_CFLAGS"
6667
6668		eval supported=\$$cacheid
6669		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6670$as_echo "$supported" >&6; }
6671		if test "$supported" = "yes" ; then
6672			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6673			found="yes"
6674		fi
6675	fi
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691xorg_testset_save_CFLAGS="$CFLAGS"
6692
6693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6698  $as_echo_n "(cached) " >&6
6699else
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702int i;
6703_ACEOF
6704if ac_fn_c_try_compile "$LINENO"; then :
6705  xorg_cv_cc_flag_unknown_warning_option=yes
6706else
6707  xorg_cv_cc_flag_unknown_warning_option=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6714	CFLAGS="$xorg_testset_save_CFLAGS"
6715fi
6716
6717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6720	fi
6721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729int i;
6730_ACEOF
6731if ac_fn_c_try_compile "$LINENO"; then :
6732  xorg_cv_cc_flag_unused_command_line_argument=yes
6733else
6734  xorg_cv_cc_flag_unused_command_line_argument=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6741	CFLAGS="$xorg_testset_save_CFLAGS"
6742fi
6743
6744found="no"
6745
6746	if test $found = "no" ; then
6747		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749		fi
6750
6751		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753		fi
6754
6755		CFLAGS="$CFLAGS -Wredundant-decls"
6756
6757		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6758$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6759		cacheid=xorg_cv_cc_flag__Wredundant_decls
6760		if eval \${$cacheid+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765int i;
6766int
6767main ()
6768{
6769
6770  ;
6771  return 0;
6772}
6773_ACEOF
6774if ac_fn_c_try_link "$LINENO"; then :
6775  eval $cacheid=yes
6776else
6777  eval $cacheid=no
6778fi
6779rm -f core conftest.err conftest.$ac_objext \
6780    conftest$ac_exeext conftest.$ac_ext
6781fi
6782
6783
6784		CFLAGS="$xorg_testset_save_CFLAGS"
6785
6786		eval supported=\$$cacheid
6787		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788$as_echo "$supported" >&6; }
6789		if test "$supported" = "yes" ; then
6790			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6791			found="yes"
6792		fi
6793	fi
6794
6795
6796
6797# These are currently disabled because they are noisy.  They will be enabled
6798# in the future once the codebase is sufficiently modernized to silence
6799# them.  For now, I don't want them to drown out the other warnings.
6800# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6801# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6802# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6803
6804# Turn some warnings into errors, so we don't accidently get successful builds
6805# when there are problems that should be fixed.
6806
6807if test "x$SELECTIVE_WERROR" = "xyes" ; then
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821xorg_testset_save_CFLAGS="$CFLAGS"
6822
6823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6828  $as_echo_n "(cached) " >&6
6829else
6830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831/* end confdefs.h.  */
6832int i;
6833_ACEOF
6834if ac_fn_c_try_compile "$LINENO"; then :
6835  xorg_cv_cc_flag_unknown_warning_option=yes
6836else
6837  xorg_cv_cc_flag_unknown_warning_option=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6844	CFLAGS="$xorg_testset_save_CFLAGS"
6845fi
6846
6847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850	fi
6851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859int i;
6860_ACEOF
6861if ac_fn_c_try_compile "$LINENO"; then :
6862  xorg_cv_cc_flag_unused_command_line_argument=yes
6863else
6864  xorg_cv_cc_flag_unused_command_line_argument=no
6865fi
6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6871	CFLAGS="$xorg_testset_save_CFLAGS"
6872fi
6873
6874found="no"
6875
6876	if test $found = "no" ; then
6877		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6879		fi
6880
6881		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6883		fi
6884
6885		CFLAGS="$CFLAGS -Werror=implicit"
6886
6887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6888$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6889		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6890		if eval \${$cacheid+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895int i;
6896int
6897main ()
6898{
6899
6900  ;
6901  return 0;
6902}
6903_ACEOF
6904if ac_fn_c_try_link "$LINENO"; then :
6905  eval $cacheid=yes
6906else
6907  eval $cacheid=no
6908fi
6909rm -f core conftest.err conftest.$ac_objext \
6910    conftest$ac_exeext conftest.$ac_ext
6911fi
6912
6913
6914		CFLAGS="$xorg_testset_save_CFLAGS"
6915
6916		eval supported=\$$cacheid
6917		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6918$as_echo "$supported" >&6; }
6919		if test "$supported" = "yes" ; then
6920			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6921			found="yes"
6922		fi
6923	fi
6924
6925	if test $found = "no" ; then
6926		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928		fi
6929
6930		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6932		fi
6933
6934		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6935
6936		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6937$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6938		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6939		if eval \${$cacheid+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h.  */
6944int i;
6945int
6946main ()
6947{
6948
6949  ;
6950  return 0;
6951}
6952_ACEOF
6953if ac_fn_c_try_link "$LINENO"; then :
6954  eval $cacheid=yes
6955else
6956  eval $cacheid=no
6957fi
6958rm -f core conftest.err conftest.$ac_objext \
6959    conftest$ac_exeext conftest.$ac_ext
6960fi
6961
6962
6963		CFLAGS="$xorg_testset_save_CFLAGS"
6964
6965		eval supported=\$$cacheid
6966		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6967$as_echo "$supported" >&6; }
6968		if test "$supported" = "yes" ; then
6969			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6970			found="yes"
6971		fi
6972	fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988xorg_testset_save_CFLAGS="$CFLAGS"
6989
6990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h.  */
6999int i;
7000_ACEOF
7001if ac_fn_c_try_compile "$LINENO"; then :
7002  xorg_cv_cc_flag_unknown_warning_option=yes
7003else
7004  xorg_cv_cc_flag_unknown_warning_option=no
7005fi
7006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7010	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7011	CFLAGS="$xorg_testset_save_CFLAGS"
7012fi
7013
7014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7015	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7016		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7017	fi
7018	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025/* end confdefs.h.  */
7026int i;
7027_ACEOF
7028if ac_fn_c_try_compile "$LINENO"; then :
7029  xorg_cv_cc_flag_unused_command_line_argument=yes
7030else
7031  xorg_cv_cc_flag_unused_command_line_argument=no
7032fi
7033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034fi
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7038	CFLAGS="$xorg_testset_save_CFLAGS"
7039fi
7040
7041found="no"
7042
7043	if test $found = "no" ; then
7044		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7046		fi
7047
7048		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7050		fi
7051
7052		CFLAGS="$CFLAGS -Werror=nonnull"
7053
7054		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7055$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7056		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7057		if eval \${$cacheid+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062int i;
7063int
7064main ()
7065{
7066
7067  ;
7068  return 0;
7069}
7070_ACEOF
7071if ac_fn_c_try_link "$LINENO"; then :
7072  eval $cacheid=yes
7073else
7074  eval $cacheid=no
7075fi
7076rm -f core conftest.err conftest.$ac_objext \
7077    conftest$ac_exeext conftest.$ac_ext
7078fi
7079
7080
7081		CFLAGS="$xorg_testset_save_CFLAGS"
7082
7083		eval supported=\$$cacheid
7084		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7085$as_echo "$supported" >&6; }
7086		if test "$supported" = "yes" ; then
7087			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7088			found="yes"
7089		fi
7090	fi
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106xorg_testset_save_CFLAGS="$CFLAGS"
7107
7108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7113  $as_echo_n "(cached) " >&6
7114else
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117int i;
7118_ACEOF
7119if ac_fn_c_try_compile "$LINENO"; then :
7120  xorg_cv_cc_flag_unknown_warning_option=yes
7121else
7122  xorg_cv_cc_flag_unknown_warning_option=no
7123fi
7124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125fi
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129	CFLAGS="$xorg_testset_save_CFLAGS"
7130fi
7131
7132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135	fi
7136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143/* end confdefs.h.  */
7144int i;
7145_ACEOF
7146if ac_fn_c_try_compile "$LINENO"; then :
7147  xorg_cv_cc_flag_unused_command_line_argument=yes
7148else
7149  xorg_cv_cc_flag_unused_command_line_argument=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152fi
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156	CFLAGS="$xorg_testset_save_CFLAGS"
7157fi
7158
7159found="no"
7160
7161	if test $found = "no" ; then
7162		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7163			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164		fi
7165
7166		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7167			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168		fi
7169
7170		CFLAGS="$CFLAGS -Werror=init-self"
7171
7172		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7173$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7174		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7175		if eval \${$cacheid+:} false; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180int i;
7181int
7182main ()
7183{
7184
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189if ac_fn_c_try_link "$LINENO"; then :
7190  eval $cacheid=yes
7191else
7192  eval $cacheid=no
7193fi
7194rm -f core conftest.err conftest.$ac_objext \
7195    conftest$ac_exeext conftest.$ac_ext
7196fi
7197
7198
7199		CFLAGS="$xorg_testset_save_CFLAGS"
7200
7201		eval supported=\$$cacheid
7202		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7203$as_echo "$supported" >&6; }
7204		if test "$supported" = "yes" ; then
7205			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7206			found="yes"
7207		fi
7208	fi
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224xorg_testset_save_CFLAGS="$CFLAGS"
7225
7226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235int i;
7236_ACEOF
7237if ac_fn_c_try_compile "$LINENO"; then :
7238  xorg_cv_cc_flag_unknown_warning_option=yes
7239else
7240  xorg_cv_cc_flag_unknown_warning_option=no
7241fi
7242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243fi
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7247	CFLAGS="$xorg_testset_save_CFLAGS"
7248fi
7249
7250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253	fi
7254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262int i;
7263_ACEOF
7264if ac_fn_c_try_compile "$LINENO"; then :
7265  xorg_cv_cc_flag_unused_command_line_argument=yes
7266else
7267  xorg_cv_cc_flag_unused_command_line_argument=no
7268fi
7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270fi
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7274	CFLAGS="$xorg_testset_save_CFLAGS"
7275fi
7276
7277found="no"
7278
7279	if test $found = "no" ; then
7280		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7282		fi
7283
7284		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7286		fi
7287
7288		CFLAGS="$CFLAGS -Werror=main"
7289
7290		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7291$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7292		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7293		if eval \${$cacheid+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298int i;
7299int
7300main ()
7301{
7302
7303  ;
7304  return 0;
7305}
7306_ACEOF
7307if ac_fn_c_try_link "$LINENO"; then :
7308  eval $cacheid=yes
7309else
7310  eval $cacheid=no
7311fi
7312rm -f core conftest.err conftest.$ac_objext \
7313    conftest$ac_exeext conftest.$ac_ext
7314fi
7315
7316
7317		CFLAGS="$xorg_testset_save_CFLAGS"
7318
7319		eval supported=\$$cacheid
7320		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7321$as_echo "$supported" >&6; }
7322		if test "$supported" = "yes" ; then
7323			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7324			found="yes"
7325		fi
7326	fi
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342xorg_testset_save_CFLAGS="$CFLAGS"
7343
7344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7347$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7348if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352/* end confdefs.h.  */
7353int i;
7354_ACEOF
7355if ac_fn_c_try_compile "$LINENO"; then :
7356  xorg_cv_cc_flag_unknown_warning_option=yes
7357else
7358  xorg_cv_cc_flag_unknown_warning_option=no
7359fi
7360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7363$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7364	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7365	CFLAGS="$xorg_testset_save_CFLAGS"
7366fi
7367
7368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7369	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7370		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371	fi
7372	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7374$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7375if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380int i;
7381_ACEOF
7382if ac_fn_c_try_compile "$LINENO"; then :
7383  xorg_cv_cc_flag_unused_command_line_argument=yes
7384else
7385  xorg_cv_cc_flag_unused_command_line_argument=no
7386fi
7387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388fi
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7390$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7391	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7392	CFLAGS="$xorg_testset_save_CFLAGS"
7393fi
7394
7395found="no"
7396
7397	if test $found = "no" ; then
7398		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400		fi
7401
7402		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7404		fi
7405
7406		CFLAGS="$CFLAGS -Werror=missing-braces"
7407
7408		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7409$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7410		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7411		if eval \${$cacheid+:} false; then :
7412  $as_echo_n "(cached) " >&6
7413else
7414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416int i;
7417int
7418main ()
7419{
7420
7421  ;
7422  return 0;
7423}
7424_ACEOF
7425if ac_fn_c_try_link "$LINENO"; then :
7426  eval $cacheid=yes
7427else
7428  eval $cacheid=no
7429fi
7430rm -f core conftest.err conftest.$ac_objext \
7431    conftest$ac_exeext conftest.$ac_ext
7432fi
7433
7434
7435		CFLAGS="$xorg_testset_save_CFLAGS"
7436
7437		eval supported=\$$cacheid
7438		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7439$as_echo "$supported" >&6; }
7440		if test "$supported" = "yes" ; then
7441			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7442			found="yes"
7443		fi
7444	fi
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460xorg_testset_save_CFLAGS="$CFLAGS"
7461
7462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7463	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7465$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7466if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7467  $as_echo_n "(cached) " >&6
7468else
7469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h.  */
7471int i;
7472_ACEOF
7473if ac_fn_c_try_compile "$LINENO"; then :
7474  xorg_cv_cc_flag_unknown_warning_option=yes
7475else
7476  xorg_cv_cc_flag_unknown_warning_option=no
7477fi
7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7481$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7483	CFLAGS="$xorg_testset_save_CFLAGS"
7484fi
7485
7486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489	fi
7490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7492$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7493if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7494  $as_echo_n "(cached) " >&6
7495else
7496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h.  */
7498int i;
7499_ACEOF
7500if ac_fn_c_try_compile "$LINENO"; then :
7501  xorg_cv_cc_flag_unused_command_line_argument=yes
7502else
7503  xorg_cv_cc_flag_unused_command_line_argument=no
7504fi
7505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506fi
7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7508$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7510	CFLAGS="$xorg_testset_save_CFLAGS"
7511fi
7512
7513found="no"
7514
7515	if test $found = "no" ; then
7516		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7518		fi
7519
7520		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7522		fi
7523
7524		CFLAGS="$CFLAGS -Werror=sequence-point"
7525
7526		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7527$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7528		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7529		if eval \${$cacheid+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534int i;
7535int
7536main ()
7537{
7538
7539  ;
7540  return 0;
7541}
7542_ACEOF
7543if ac_fn_c_try_link "$LINENO"; then :
7544  eval $cacheid=yes
7545else
7546  eval $cacheid=no
7547fi
7548rm -f core conftest.err conftest.$ac_objext \
7549    conftest$ac_exeext conftest.$ac_ext
7550fi
7551
7552
7553		CFLAGS="$xorg_testset_save_CFLAGS"
7554
7555		eval supported=\$$cacheid
7556		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7557$as_echo "$supported" >&6; }
7558		if test "$supported" = "yes" ; then
7559			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7560			found="yes"
7561		fi
7562	fi
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578xorg_testset_save_CFLAGS="$CFLAGS"
7579
7580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7585  $as_echo_n "(cached) " >&6
7586else
7587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588/* end confdefs.h.  */
7589int i;
7590_ACEOF
7591if ac_fn_c_try_compile "$LINENO"; then :
7592  xorg_cv_cc_flag_unknown_warning_option=yes
7593else
7594  xorg_cv_cc_flag_unknown_warning_option=no
7595fi
7596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597fi
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7601	CFLAGS="$xorg_testset_save_CFLAGS"
7602fi
7603
7604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607	fi
7608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7612  $as_echo_n "(cached) " >&6
7613else
7614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615/* end confdefs.h.  */
7616int i;
7617_ACEOF
7618if ac_fn_c_try_compile "$LINENO"; then :
7619  xorg_cv_cc_flag_unused_command_line_argument=yes
7620else
7621  xorg_cv_cc_flag_unused_command_line_argument=no
7622fi
7623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624fi
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7628	CFLAGS="$xorg_testset_save_CFLAGS"
7629fi
7630
7631found="no"
7632
7633	if test $found = "no" ; then
7634		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7636		fi
7637
7638		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7640		fi
7641
7642		CFLAGS="$CFLAGS -Werror=return-type"
7643
7644		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7645$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7646		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7647		if eval \${$cacheid+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651/* end confdefs.h.  */
7652int i;
7653int
7654main ()
7655{
7656
7657  ;
7658  return 0;
7659}
7660_ACEOF
7661if ac_fn_c_try_link "$LINENO"; then :
7662  eval $cacheid=yes
7663else
7664  eval $cacheid=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext \
7667    conftest$ac_exeext conftest.$ac_ext
7668fi
7669
7670
7671		CFLAGS="$xorg_testset_save_CFLAGS"
7672
7673		eval supported=\$$cacheid
7674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7675$as_echo "$supported" >&6; }
7676		if test "$supported" = "yes" ; then
7677			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7678			found="yes"
7679		fi
7680	fi
7681
7682	if test $found = "no" ; then
7683		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685		fi
7686
7687		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689		fi
7690
7691		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7692
7693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7694$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7695		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7696		if eval \${$cacheid+:} false; then :
7697  $as_echo_n "(cached) " >&6
7698else
7699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h.  */
7701int i;
7702int
7703main ()
7704{
7705
7706  ;
7707  return 0;
7708}
7709_ACEOF
7710if ac_fn_c_try_link "$LINENO"; then :
7711  eval $cacheid=yes
7712else
7713  eval $cacheid=no
7714fi
7715rm -f core conftest.err conftest.$ac_objext \
7716    conftest$ac_exeext conftest.$ac_ext
7717fi
7718
7719
7720		CFLAGS="$xorg_testset_save_CFLAGS"
7721
7722		eval supported=\$$cacheid
7723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7724$as_echo "$supported" >&6; }
7725		if test "$supported" = "yes" ; then
7726			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7727			found="yes"
7728		fi
7729	fi
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745xorg_testset_save_CFLAGS="$CFLAGS"
7746
7747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7752  $as_echo_n "(cached) " >&6
7753else
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756int i;
7757_ACEOF
7758if ac_fn_c_try_compile "$LINENO"; then :
7759  xorg_cv_cc_flag_unknown_warning_option=yes
7760else
7761  xorg_cv_cc_flag_unknown_warning_option=no
7762fi
7763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764fi
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7768	CFLAGS="$xorg_testset_save_CFLAGS"
7769fi
7770
7771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774	fi
7775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783int i;
7784_ACEOF
7785if ac_fn_c_try_compile "$LINENO"; then :
7786  xorg_cv_cc_flag_unused_command_line_argument=yes
7787else
7788  xorg_cv_cc_flag_unused_command_line_argument=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791fi
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7795	CFLAGS="$xorg_testset_save_CFLAGS"
7796fi
7797
7798found="no"
7799
7800	if test $found = "no" ; then
7801		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7803		fi
7804
7805		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7807		fi
7808
7809		CFLAGS="$CFLAGS -Werror=trigraphs"
7810
7811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7812$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7813		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7814		if eval \${$cacheid+:} false; then :
7815  $as_echo_n "(cached) " >&6
7816else
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819int i;
7820int
7821main ()
7822{
7823
7824  ;
7825  return 0;
7826}
7827_ACEOF
7828if ac_fn_c_try_link "$LINENO"; then :
7829  eval $cacheid=yes
7830else
7831  eval $cacheid=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext \
7834    conftest$ac_exeext conftest.$ac_ext
7835fi
7836
7837
7838		CFLAGS="$xorg_testset_save_CFLAGS"
7839
7840		eval supported=\$$cacheid
7841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7842$as_echo "$supported" >&6; }
7843		if test "$supported" = "yes" ; then
7844			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7845			found="yes"
7846		fi
7847	fi
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863xorg_testset_save_CFLAGS="$CFLAGS"
7864
7865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7870  $as_echo_n "(cached) " >&6
7871else
7872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h.  */
7874int i;
7875_ACEOF
7876if ac_fn_c_try_compile "$LINENO"; then :
7877  xorg_cv_cc_flag_unknown_warning_option=yes
7878else
7879  xorg_cv_cc_flag_unknown_warning_option=no
7880fi
7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882fi
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7886	CFLAGS="$xorg_testset_save_CFLAGS"
7887fi
7888
7889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7892	fi
7893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7897  $as_echo_n "(cached) " >&6
7898else
7899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900/* end confdefs.h.  */
7901int i;
7902_ACEOF
7903if ac_fn_c_try_compile "$LINENO"; then :
7904  xorg_cv_cc_flag_unused_command_line_argument=yes
7905else
7906  xorg_cv_cc_flag_unused_command_line_argument=no
7907fi
7908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909fi
7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7913	CFLAGS="$xorg_testset_save_CFLAGS"
7914fi
7915
7916found="no"
7917
7918	if test $found = "no" ; then
7919		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7921		fi
7922
7923		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7925		fi
7926
7927		CFLAGS="$CFLAGS -Werror=array-bounds"
7928
7929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7930$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7931		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7932		if eval \${$cacheid+:} false; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937int i;
7938int
7939main ()
7940{
7941
7942  ;
7943  return 0;
7944}
7945_ACEOF
7946if ac_fn_c_try_link "$LINENO"; then :
7947  eval $cacheid=yes
7948else
7949  eval $cacheid=no
7950fi
7951rm -f core conftest.err conftest.$ac_objext \
7952    conftest$ac_exeext conftest.$ac_ext
7953fi
7954
7955
7956		CFLAGS="$xorg_testset_save_CFLAGS"
7957
7958		eval supported=\$$cacheid
7959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7960$as_echo "$supported" >&6; }
7961		if test "$supported" = "yes" ; then
7962			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7963			found="yes"
7964		fi
7965	fi
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981xorg_testset_save_CFLAGS="$CFLAGS"
7982
7983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7988  $as_echo_n "(cached) " >&6
7989else
7990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991/* end confdefs.h.  */
7992int i;
7993_ACEOF
7994if ac_fn_c_try_compile "$LINENO"; then :
7995  xorg_cv_cc_flag_unknown_warning_option=yes
7996else
7997  xorg_cv_cc_flag_unknown_warning_option=no
7998fi
7999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000fi
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8004	CFLAGS="$xorg_testset_save_CFLAGS"
8005fi
8006
8007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8010	fi
8011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8015  $as_echo_n "(cached) " >&6
8016else
8017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019int i;
8020_ACEOF
8021if ac_fn_c_try_compile "$LINENO"; then :
8022  xorg_cv_cc_flag_unused_command_line_argument=yes
8023else
8024  xorg_cv_cc_flag_unused_command_line_argument=no
8025fi
8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8031	CFLAGS="$xorg_testset_save_CFLAGS"
8032fi
8033
8034found="no"
8035
8036	if test $found = "no" ; then
8037		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039		fi
8040
8041		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043		fi
8044
8045		CFLAGS="$CFLAGS -Werror=write-strings"
8046
8047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8048$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8049		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8050		if eval \${$cacheid+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055int i;
8056int
8057main ()
8058{
8059
8060  ;
8061  return 0;
8062}
8063_ACEOF
8064if ac_fn_c_try_link "$LINENO"; then :
8065  eval $cacheid=yes
8066else
8067  eval $cacheid=no
8068fi
8069rm -f core conftest.err conftest.$ac_objext \
8070    conftest$ac_exeext conftest.$ac_ext
8071fi
8072
8073
8074		CFLAGS="$xorg_testset_save_CFLAGS"
8075
8076		eval supported=\$$cacheid
8077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8078$as_echo "$supported" >&6; }
8079		if test "$supported" = "yes" ; then
8080			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8081			found="yes"
8082		fi
8083	fi
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099xorg_testset_save_CFLAGS="$CFLAGS"
8100
8101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8106  $as_echo_n "(cached) " >&6
8107else
8108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109/* end confdefs.h.  */
8110int i;
8111_ACEOF
8112if ac_fn_c_try_compile "$LINENO"; then :
8113  xorg_cv_cc_flag_unknown_warning_option=yes
8114else
8115  xorg_cv_cc_flag_unknown_warning_option=no
8116fi
8117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118fi
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8122	CFLAGS="$xorg_testset_save_CFLAGS"
8123fi
8124
8125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8128	fi
8129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h.  */
8137int i;
8138_ACEOF
8139if ac_fn_c_try_compile "$LINENO"; then :
8140  xorg_cv_cc_flag_unused_command_line_argument=yes
8141else
8142  xorg_cv_cc_flag_unused_command_line_argument=no
8143fi
8144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145fi
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8149	CFLAGS="$xorg_testset_save_CFLAGS"
8150fi
8151
8152found="no"
8153
8154	if test $found = "no" ; then
8155		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8157		fi
8158
8159		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8161		fi
8162
8163		CFLAGS="$CFLAGS -Werror=address"
8164
8165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8166$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8167		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8168		if eval \${$cacheid+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173int i;
8174int
8175main ()
8176{
8177
8178  ;
8179  return 0;
8180}
8181_ACEOF
8182if ac_fn_c_try_link "$LINENO"; then :
8183  eval $cacheid=yes
8184else
8185  eval $cacheid=no
8186fi
8187rm -f core conftest.err conftest.$ac_objext \
8188    conftest$ac_exeext conftest.$ac_ext
8189fi
8190
8191
8192		CFLAGS="$xorg_testset_save_CFLAGS"
8193
8194		eval supported=\$$cacheid
8195		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8196$as_echo "$supported" >&6; }
8197		if test "$supported" = "yes" ; then
8198			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8199			found="yes"
8200		fi
8201	fi
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217xorg_testset_save_CFLAGS="$CFLAGS"
8218
8219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8224  $as_echo_n "(cached) " >&6
8225else
8226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228int i;
8229_ACEOF
8230if ac_fn_c_try_compile "$LINENO"; then :
8231  xorg_cv_cc_flag_unknown_warning_option=yes
8232else
8233  xorg_cv_cc_flag_unknown_warning_option=no
8234fi
8235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236fi
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8240	CFLAGS="$xorg_testset_save_CFLAGS"
8241fi
8242
8243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246	fi
8247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8251  $as_echo_n "(cached) " >&6
8252else
8253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254/* end confdefs.h.  */
8255int i;
8256_ACEOF
8257if ac_fn_c_try_compile "$LINENO"; then :
8258  xorg_cv_cc_flag_unused_command_line_argument=yes
8259else
8260  xorg_cv_cc_flag_unused_command_line_argument=no
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263fi
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8267	CFLAGS="$xorg_testset_save_CFLAGS"
8268fi
8269
8270found="no"
8271
8272	if test $found = "no" ; then
8273		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275		fi
8276
8277		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279		fi
8280
8281		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8282
8283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8284$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8285		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8286		if eval \${$cacheid+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292int
8293main ()
8294{
8295
8296  ;
8297  return 0;
8298}
8299_ACEOF
8300if ac_fn_c_try_link "$LINENO"; then :
8301  eval $cacheid=yes
8302else
8303  eval $cacheid=no
8304fi
8305rm -f core conftest.err conftest.$ac_objext \
8306    conftest$ac_exeext conftest.$ac_ext
8307fi
8308
8309
8310		CFLAGS="$xorg_testset_save_CFLAGS"
8311
8312		eval supported=\$$cacheid
8313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8314$as_echo "$supported" >&6; }
8315		if test "$supported" = "yes" ; then
8316			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8317			found="yes"
8318		fi
8319	fi
8320
8321	if test $found = "no" ; then
8322		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8324		fi
8325
8326		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8328		fi
8329
8330		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8331
8332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8333$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8334		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8335		if eval \${$cacheid+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h.  */
8340int i;
8341int
8342main ()
8343{
8344
8345  ;
8346  return 0;
8347}
8348_ACEOF
8349if ac_fn_c_try_link "$LINENO"; then :
8350  eval $cacheid=yes
8351else
8352  eval $cacheid=no
8353fi
8354rm -f core conftest.err conftest.$ac_objext \
8355    conftest$ac_exeext conftest.$ac_ext
8356fi
8357
8358
8359		CFLAGS="$xorg_testset_save_CFLAGS"
8360
8361		eval supported=\$$cacheid
8362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8363$as_echo "$supported" >&6; }
8364		if test "$supported" = "yes" ; then
8365			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8366			found="yes"
8367		fi
8368	fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384xorg_testset_save_CFLAGS="$CFLAGS"
8385
8386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8391  $as_echo_n "(cached) " >&6
8392else
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395int i;
8396_ACEOF
8397if ac_fn_c_try_compile "$LINENO"; then :
8398  xorg_cv_cc_flag_unknown_warning_option=yes
8399else
8400  xorg_cv_cc_flag_unknown_warning_option=no
8401fi
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403fi
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8407	CFLAGS="$xorg_testset_save_CFLAGS"
8408fi
8409
8410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413	fi
8414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8418  $as_echo_n "(cached) " >&6
8419else
8420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422int i;
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"; then :
8425  xorg_cv_cc_flag_unused_command_line_argument=yes
8426else
8427  xorg_cv_cc_flag_unused_command_line_argument=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8434	CFLAGS="$xorg_testset_save_CFLAGS"
8435fi
8436
8437found="no"
8438
8439	if test $found = "no" ; then
8440		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8442		fi
8443
8444		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8446		fi
8447
8448		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8449
8450		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8451$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8452		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8453		if eval \${$cacheid+:} false; then :
8454  $as_echo_n "(cached) " >&6
8455else
8456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h.  */
8458int i;
8459int
8460main ()
8461{
8462
8463  ;
8464  return 0;
8465}
8466_ACEOF
8467if ac_fn_c_try_link "$LINENO"; then :
8468  eval $cacheid=yes
8469else
8470  eval $cacheid=no
8471fi
8472rm -f core conftest.err conftest.$ac_objext \
8473    conftest$ac_exeext conftest.$ac_ext
8474fi
8475
8476
8477		CFLAGS="$xorg_testset_save_CFLAGS"
8478
8479		eval supported=\$$cacheid
8480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8481$as_echo "$supported" >&6; }
8482		if test "$supported" = "yes" ; then
8483			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8484			found="yes"
8485		fi
8486	fi
8487
8488 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8489else
8490{ $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
8491$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;}
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505xorg_testset_save_CFLAGS="$CFLAGS"
8506
8507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516int i;
8517_ACEOF
8518if ac_fn_c_try_compile "$LINENO"; then :
8519  xorg_cv_cc_flag_unknown_warning_option=yes
8520else
8521  xorg_cv_cc_flag_unknown_warning_option=no
8522fi
8523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524fi
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8528	CFLAGS="$xorg_testset_save_CFLAGS"
8529fi
8530
8531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534	fi
8535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h.  */
8543int i;
8544_ACEOF
8545if ac_fn_c_try_compile "$LINENO"; then :
8546  xorg_cv_cc_flag_unused_command_line_argument=yes
8547else
8548  xorg_cv_cc_flag_unused_command_line_argument=no
8549fi
8550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551fi
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8555	CFLAGS="$xorg_testset_save_CFLAGS"
8556fi
8557
8558found="no"
8559
8560	if test $found = "no" ; then
8561		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563		fi
8564
8565		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8567		fi
8568
8569		CFLAGS="$CFLAGS -Wimplicit"
8570
8571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8572$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8573		cacheid=xorg_cv_cc_flag__Wimplicit
8574		if eval \${$cacheid+:} false; then :
8575  $as_echo_n "(cached) " >&6
8576else
8577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h.  */
8579int i;
8580int
8581main ()
8582{
8583
8584  ;
8585  return 0;
8586}
8587_ACEOF
8588if ac_fn_c_try_link "$LINENO"; then :
8589  eval $cacheid=yes
8590else
8591  eval $cacheid=no
8592fi
8593rm -f core conftest.err conftest.$ac_objext \
8594    conftest$ac_exeext conftest.$ac_ext
8595fi
8596
8597
8598		CFLAGS="$xorg_testset_save_CFLAGS"
8599
8600		eval supported=\$$cacheid
8601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8602$as_echo "$supported" >&6; }
8603		if test "$supported" = "yes" ; then
8604			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8605			found="yes"
8606		fi
8607	fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623xorg_testset_save_CFLAGS="$CFLAGS"
8624
8625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int i;
8635_ACEOF
8636if ac_fn_c_try_compile "$LINENO"; then :
8637  xorg_cv_cc_flag_unknown_warning_option=yes
8638else
8639  xorg_cv_cc_flag_unknown_warning_option=no
8640fi
8641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642fi
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8646	CFLAGS="$xorg_testset_save_CFLAGS"
8647fi
8648
8649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8652	fi
8653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8657  $as_echo_n "(cached) " >&6
8658else
8659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h.  */
8661int i;
8662_ACEOF
8663if ac_fn_c_try_compile "$LINENO"; then :
8664  xorg_cv_cc_flag_unused_command_line_argument=yes
8665else
8666  xorg_cv_cc_flag_unused_command_line_argument=no
8667fi
8668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669fi
8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8673	CFLAGS="$xorg_testset_save_CFLAGS"
8674fi
8675
8676found="no"
8677
8678	if test $found = "no" ; then
8679		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8681		fi
8682
8683		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8685		fi
8686
8687		CFLAGS="$CFLAGS -Wnonnull"
8688
8689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8690$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8691		cacheid=xorg_cv_cc_flag__Wnonnull
8692		if eval \${$cacheid+:} false; then :
8693  $as_echo_n "(cached) " >&6
8694else
8695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696/* end confdefs.h.  */
8697int i;
8698int
8699main ()
8700{
8701
8702  ;
8703  return 0;
8704}
8705_ACEOF
8706if ac_fn_c_try_link "$LINENO"; then :
8707  eval $cacheid=yes
8708else
8709  eval $cacheid=no
8710fi
8711rm -f core conftest.err conftest.$ac_objext \
8712    conftest$ac_exeext conftest.$ac_ext
8713fi
8714
8715
8716		CFLAGS="$xorg_testset_save_CFLAGS"
8717
8718		eval supported=\$$cacheid
8719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8720$as_echo "$supported" >&6; }
8721		if test "$supported" = "yes" ; then
8722			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8723			found="yes"
8724		fi
8725	fi
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741xorg_testset_save_CFLAGS="$CFLAGS"
8742
8743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8748  $as_echo_n "(cached) " >&6
8749else
8750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752int i;
8753_ACEOF
8754if ac_fn_c_try_compile "$LINENO"; then :
8755  xorg_cv_cc_flag_unknown_warning_option=yes
8756else
8757  xorg_cv_cc_flag_unknown_warning_option=no
8758fi
8759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8760fi
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8764	CFLAGS="$xorg_testset_save_CFLAGS"
8765fi
8766
8767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8770	fi
8771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h.  */
8779int i;
8780_ACEOF
8781if ac_fn_c_try_compile "$LINENO"; then :
8782  xorg_cv_cc_flag_unused_command_line_argument=yes
8783else
8784  xorg_cv_cc_flag_unused_command_line_argument=no
8785fi
8786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8791	CFLAGS="$xorg_testset_save_CFLAGS"
8792fi
8793
8794found="no"
8795
8796	if test $found = "no" ; then
8797		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8799		fi
8800
8801		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8803		fi
8804
8805		CFLAGS="$CFLAGS -Winit-self"
8806
8807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8808$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8809		cacheid=xorg_cv_cc_flag__Winit_self
8810		if eval \${$cacheid+:} false; then :
8811  $as_echo_n "(cached) " >&6
8812else
8813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h.  */
8815int i;
8816int
8817main ()
8818{
8819
8820  ;
8821  return 0;
8822}
8823_ACEOF
8824if ac_fn_c_try_link "$LINENO"; then :
8825  eval $cacheid=yes
8826else
8827  eval $cacheid=no
8828fi
8829rm -f core conftest.err conftest.$ac_objext \
8830    conftest$ac_exeext conftest.$ac_ext
8831fi
8832
8833
8834		CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836		eval supported=\$$cacheid
8837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8838$as_echo "$supported" >&6; }
8839		if test "$supported" = "yes" ; then
8840			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8841			found="yes"
8842		fi
8843	fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8866  $as_echo_n "(cached) " >&6
8867else
8868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869/* end confdefs.h.  */
8870int i;
8871_ACEOF
8872if ac_fn_c_try_compile "$LINENO"; then :
8873  xorg_cv_cc_flag_unknown_warning_option=yes
8874else
8875  xorg_cv_cc_flag_unknown_warning_option=no
8876fi
8877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878fi
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8882	CFLAGS="$xorg_testset_save_CFLAGS"
8883fi
8884
8885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888	fi
8889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897int i;
8898_ACEOF
8899if ac_fn_c_try_compile "$LINENO"; then :
8900  xorg_cv_cc_flag_unused_command_line_argument=yes
8901else
8902  xorg_cv_cc_flag_unused_command_line_argument=no
8903fi
8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905fi
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8909	CFLAGS="$xorg_testset_save_CFLAGS"
8910fi
8911
8912found="no"
8913
8914	if test $found = "no" ; then
8915		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917		fi
8918
8919		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921		fi
8922
8923		CFLAGS="$CFLAGS -Wmain"
8924
8925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8926$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8927		cacheid=xorg_cv_cc_flag__Wmain
8928		if eval \${$cacheid+:} false; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933int i;
8934int
8935main ()
8936{
8937
8938  ;
8939  return 0;
8940}
8941_ACEOF
8942if ac_fn_c_try_link "$LINENO"; then :
8943  eval $cacheid=yes
8944else
8945  eval $cacheid=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext \
8948    conftest$ac_exeext conftest.$ac_ext
8949fi
8950
8951
8952		CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954		eval supported=\$$cacheid
8955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956$as_echo "$supported" >&6; }
8957		if test "$supported" = "yes" ; then
8958			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8959			found="yes"
8960		fi
8961	fi
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977xorg_testset_save_CFLAGS="$CFLAGS"
8978
8979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h.  */
8988int i;
8989_ACEOF
8990if ac_fn_c_try_compile "$LINENO"; then :
8991  xorg_cv_cc_flag_unknown_warning_option=yes
8992else
8993  xorg_cv_cc_flag_unknown_warning_option=no
8994fi
8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996fi
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9000	CFLAGS="$xorg_testset_save_CFLAGS"
9001fi
9002
9003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9006	fi
9007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9011  $as_echo_n "(cached) " >&6
9012else
9013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h.  */
9015int i;
9016_ACEOF
9017if ac_fn_c_try_compile "$LINENO"; then :
9018  xorg_cv_cc_flag_unused_command_line_argument=yes
9019else
9020  xorg_cv_cc_flag_unused_command_line_argument=no
9021fi
9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9027	CFLAGS="$xorg_testset_save_CFLAGS"
9028fi
9029
9030found="no"
9031
9032	if test $found = "no" ; then
9033		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9035		fi
9036
9037		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9039		fi
9040
9041		CFLAGS="$CFLAGS -Wmissing-braces"
9042
9043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9044$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9045		cacheid=xorg_cv_cc_flag__Wmissing_braces
9046		if eval \${$cacheid+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051int i;
9052int
9053main ()
9054{
9055
9056  ;
9057  return 0;
9058}
9059_ACEOF
9060if ac_fn_c_try_link "$LINENO"; then :
9061  eval $cacheid=yes
9062else
9063  eval $cacheid=no
9064fi
9065rm -f core conftest.err conftest.$ac_objext \
9066    conftest$ac_exeext conftest.$ac_ext
9067fi
9068
9069
9070		CFLAGS="$xorg_testset_save_CFLAGS"
9071
9072		eval supported=\$$cacheid
9073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9074$as_echo "$supported" >&6; }
9075		if test "$supported" = "yes" ; then
9076			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9077			found="yes"
9078		fi
9079	fi
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095xorg_testset_save_CFLAGS="$CFLAGS"
9096
9097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9102  $as_echo_n "(cached) " >&6
9103else
9104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h.  */
9106int i;
9107_ACEOF
9108if ac_fn_c_try_compile "$LINENO"; then :
9109  xorg_cv_cc_flag_unknown_warning_option=yes
9110else
9111  xorg_cv_cc_flag_unknown_warning_option=no
9112fi
9113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114fi
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9118	CFLAGS="$xorg_testset_save_CFLAGS"
9119fi
9120
9121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9124	fi
9125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9129  $as_echo_n "(cached) " >&6
9130else
9131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132/* end confdefs.h.  */
9133int i;
9134_ACEOF
9135if ac_fn_c_try_compile "$LINENO"; then :
9136  xorg_cv_cc_flag_unused_command_line_argument=yes
9137else
9138  xorg_cv_cc_flag_unused_command_line_argument=no
9139fi
9140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9141fi
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9145	CFLAGS="$xorg_testset_save_CFLAGS"
9146fi
9147
9148found="no"
9149
9150	if test $found = "no" ; then
9151		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9153		fi
9154
9155		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9157		fi
9158
9159		CFLAGS="$CFLAGS -Wsequence-point"
9160
9161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9162$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9163		cacheid=xorg_cv_cc_flag__Wsequence_point
9164		if eval \${$cacheid+:} false; then :
9165  $as_echo_n "(cached) " >&6
9166else
9167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169int i;
9170int
9171main ()
9172{
9173
9174  ;
9175  return 0;
9176}
9177_ACEOF
9178if ac_fn_c_try_link "$LINENO"; then :
9179  eval $cacheid=yes
9180else
9181  eval $cacheid=no
9182fi
9183rm -f core conftest.err conftest.$ac_objext \
9184    conftest$ac_exeext conftest.$ac_ext
9185fi
9186
9187
9188		CFLAGS="$xorg_testset_save_CFLAGS"
9189
9190		eval supported=\$$cacheid
9191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9192$as_echo "$supported" >&6; }
9193		if test "$supported" = "yes" ; then
9194			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9195			found="yes"
9196		fi
9197	fi
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213xorg_testset_save_CFLAGS="$CFLAGS"
9214
9215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9220  $as_echo_n "(cached) " >&6
9221else
9222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h.  */
9224int i;
9225_ACEOF
9226if ac_fn_c_try_compile "$LINENO"; then :
9227  xorg_cv_cc_flag_unknown_warning_option=yes
9228else
9229  xorg_cv_cc_flag_unknown_warning_option=no
9230fi
9231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232fi
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9236	CFLAGS="$xorg_testset_save_CFLAGS"
9237fi
9238
9239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242	fi
9243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9247  $as_echo_n "(cached) " >&6
9248else
9249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252_ACEOF
9253if ac_fn_c_try_compile "$LINENO"; then :
9254  xorg_cv_cc_flag_unused_command_line_argument=yes
9255else
9256  xorg_cv_cc_flag_unused_command_line_argument=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9263	CFLAGS="$xorg_testset_save_CFLAGS"
9264fi
9265
9266found="no"
9267
9268	if test $found = "no" ; then
9269		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9271		fi
9272
9273		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9275		fi
9276
9277		CFLAGS="$CFLAGS -Wreturn-type"
9278
9279		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9280$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9281		cacheid=xorg_cv_cc_flag__Wreturn_type
9282		if eval \${$cacheid+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287int i;
9288int
9289main ()
9290{
9291
9292  ;
9293  return 0;
9294}
9295_ACEOF
9296if ac_fn_c_try_link "$LINENO"; then :
9297  eval $cacheid=yes
9298else
9299  eval $cacheid=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext \
9302    conftest$ac_exeext conftest.$ac_ext
9303fi
9304
9305
9306		CFLAGS="$xorg_testset_save_CFLAGS"
9307
9308		eval supported=\$$cacheid
9309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9310$as_echo "$supported" >&6; }
9311		if test "$supported" = "yes" ; then
9312			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9313			found="yes"
9314		fi
9315	fi
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331xorg_testset_save_CFLAGS="$CFLAGS"
9332
9333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9338  $as_echo_n "(cached) " >&6
9339else
9340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341/* end confdefs.h.  */
9342int i;
9343_ACEOF
9344if ac_fn_c_try_compile "$LINENO"; then :
9345  xorg_cv_cc_flag_unknown_warning_option=yes
9346else
9347  xorg_cv_cc_flag_unknown_warning_option=no
9348fi
9349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350fi
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9354	CFLAGS="$xorg_testset_save_CFLAGS"
9355fi
9356
9357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360	fi
9361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9365  $as_echo_n "(cached) " >&6
9366else
9367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h.  */
9369int i;
9370_ACEOF
9371if ac_fn_c_try_compile "$LINENO"; then :
9372  xorg_cv_cc_flag_unused_command_line_argument=yes
9373else
9374  xorg_cv_cc_flag_unused_command_line_argument=no
9375fi
9376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377fi
9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9381	CFLAGS="$xorg_testset_save_CFLAGS"
9382fi
9383
9384found="no"
9385
9386	if test $found = "no" ; then
9387		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389		fi
9390
9391		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9393		fi
9394
9395		CFLAGS="$CFLAGS -Wtrigraphs"
9396
9397		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9398$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9399		cacheid=xorg_cv_cc_flag__Wtrigraphs
9400		if eval \${$cacheid+:} false; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h.  */
9405int i;
9406int
9407main ()
9408{
9409
9410  ;
9411  return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"; then :
9415  eval $cacheid=yes
9416else
9417  eval $cacheid=no
9418fi
9419rm -f core conftest.err conftest.$ac_objext \
9420    conftest$ac_exeext conftest.$ac_ext
9421fi
9422
9423
9424		CFLAGS="$xorg_testset_save_CFLAGS"
9425
9426		eval supported=\$$cacheid
9427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9428$as_echo "$supported" >&6; }
9429		if test "$supported" = "yes" ; then
9430			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9431			found="yes"
9432		fi
9433	fi
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449xorg_testset_save_CFLAGS="$CFLAGS"
9450
9451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9456  $as_echo_n "(cached) " >&6
9457else
9458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459/* end confdefs.h.  */
9460int i;
9461_ACEOF
9462if ac_fn_c_try_compile "$LINENO"; then :
9463  xorg_cv_cc_flag_unknown_warning_option=yes
9464else
9465  xorg_cv_cc_flag_unknown_warning_option=no
9466fi
9467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468fi
9469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9471	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9472	CFLAGS="$xorg_testset_save_CFLAGS"
9473fi
9474
9475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9476	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9478	fi
9479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9483  $as_echo_n "(cached) " >&6
9484else
9485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h.  */
9487int i;
9488_ACEOF
9489if ac_fn_c_try_compile "$LINENO"; then :
9490  xorg_cv_cc_flag_unused_command_line_argument=yes
9491else
9492  xorg_cv_cc_flag_unused_command_line_argument=no
9493fi
9494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9495fi
9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9498	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9499	CFLAGS="$xorg_testset_save_CFLAGS"
9500fi
9501
9502found="no"
9503
9504	if test $found = "no" ; then
9505		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9507		fi
9508
9509		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9511		fi
9512
9513		CFLAGS="$CFLAGS -Warray-bounds"
9514
9515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9516$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9517		cacheid=xorg_cv_cc_flag__Warray_bounds
9518		if eval \${$cacheid+:} false; then :
9519  $as_echo_n "(cached) " >&6
9520else
9521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522/* end confdefs.h.  */
9523int i;
9524int
9525main ()
9526{
9527
9528  ;
9529  return 0;
9530}
9531_ACEOF
9532if ac_fn_c_try_link "$LINENO"; then :
9533  eval $cacheid=yes
9534else
9535  eval $cacheid=no
9536fi
9537rm -f core conftest.err conftest.$ac_objext \
9538    conftest$ac_exeext conftest.$ac_ext
9539fi
9540
9541
9542		CFLAGS="$xorg_testset_save_CFLAGS"
9543
9544		eval supported=\$$cacheid
9545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546$as_echo "$supported" >&6; }
9547		if test "$supported" = "yes" ; then
9548			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9549			found="yes"
9550		fi
9551	fi
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567xorg_testset_save_CFLAGS="$CFLAGS"
9568
9569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9574  $as_echo_n "(cached) " >&6
9575else
9576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577/* end confdefs.h.  */
9578int i;
9579_ACEOF
9580if ac_fn_c_try_compile "$LINENO"; then :
9581  xorg_cv_cc_flag_unknown_warning_option=yes
9582else
9583  xorg_cv_cc_flag_unknown_warning_option=no
9584fi
9585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9586fi
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9590	CFLAGS="$xorg_testset_save_CFLAGS"
9591fi
9592
9593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9596	fi
9597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9601  $as_echo_n "(cached) " >&6
9602else
9603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604/* end confdefs.h.  */
9605int i;
9606_ACEOF
9607if ac_fn_c_try_compile "$LINENO"; then :
9608  xorg_cv_cc_flag_unused_command_line_argument=yes
9609else
9610  xorg_cv_cc_flag_unused_command_line_argument=no
9611fi
9612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9613fi
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9617	CFLAGS="$xorg_testset_save_CFLAGS"
9618fi
9619
9620found="no"
9621
9622	if test $found = "no" ; then
9623		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9625		fi
9626
9627		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9629		fi
9630
9631		CFLAGS="$CFLAGS -Wwrite-strings"
9632
9633		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9634$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9635		cacheid=xorg_cv_cc_flag__Wwrite_strings
9636		if eval \${$cacheid+:} false; then :
9637  $as_echo_n "(cached) " >&6
9638else
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641int i;
9642int
9643main ()
9644{
9645
9646  ;
9647  return 0;
9648}
9649_ACEOF
9650if ac_fn_c_try_link "$LINENO"; then :
9651  eval $cacheid=yes
9652else
9653  eval $cacheid=no
9654fi
9655rm -f core conftest.err conftest.$ac_objext \
9656    conftest$ac_exeext conftest.$ac_ext
9657fi
9658
9659
9660		CFLAGS="$xorg_testset_save_CFLAGS"
9661
9662		eval supported=\$$cacheid
9663		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9664$as_echo "$supported" >&6; }
9665		if test "$supported" = "yes" ; then
9666			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9667			found="yes"
9668		fi
9669	fi
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685xorg_testset_save_CFLAGS="$CFLAGS"
9686
9687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9692  $as_echo_n "(cached) " >&6
9693else
9694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695/* end confdefs.h.  */
9696int i;
9697_ACEOF
9698if ac_fn_c_try_compile "$LINENO"; then :
9699  xorg_cv_cc_flag_unknown_warning_option=yes
9700else
9701  xorg_cv_cc_flag_unknown_warning_option=no
9702fi
9703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9708	CFLAGS="$xorg_testset_save_CFLAGS"
9709fi
9710
9711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9714	fi
9715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9719  $as_echo_n "(cached) " >&6
9720else
9721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722/* end confdefs.h.  */
9723int i;
9724_ACEOF
9725if ac_fn_c_try_compile "$LINENO"; then :
9726  xorg_cv_cc_flag_unused_command_line_argument=yes
9727else
9728  xorg_cv_cc_flag_unused_command_line_argument=no
9729fi
9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731fi
9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9734	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9735	CFLAGS="$xorg_testset_save_CFLAGS"
9736fi
9737
9738found="no"
9739
9740	if test $found = "no" ; then
9741		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9742			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9743		fi
9744
9745		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9746			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9747		fi
9748
9749		CFLAGS="$CFLAGS -Waddress"
9750
9751		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9752$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9753		cacheid=xorg_cv_cc_flag__Waddress
9754		if eval \${$cacheid+:} false; then :
9755  $as_echo_n "(cached) " >&6
9756else
9757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h.  */
9759int i;
9760int
9761main ()
9762{
9763
9764  ;
9765  return 0;
9766}
9767_ACEOF
9768if ac_fn_c_try_link "$LINENO"; then :
9769  eval $cacheid=yes
9770else
9771  eval $cacheid=no
9772fi
9773rm -f core conftest.err conftest.$ac_objext \
9774    conftest$ac_exeext conftest.$ac_ext
9775fi
9776
9777
9778		CFLAGS="$xorg_testset_save_CFLAGS"
9779
9780		eval supported=\$$cacheid
9781		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9782$as_echo "$supported" >&6; }
9783		if test "$supported" = "yes" ; then
9784			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9785			found="yes"
9786		fi
9787	fi
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803xorg_testset_save_CFLAGS="$CFLAGS"
9804
9805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9810  $as_echo_n "(cached) " >&6
9811else
9812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813/* end confdefs.h.  */
9814int i;
9815_ACEOF
9816if ac_fn_c_try_compile "$LINENO"; then :
9817  xorg_cv_cc_flag_unknown_warning_option=yes
9818else
9819  xorg_cv_cc_flag_unknown_warning_option=no
9820fi
9821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822fi
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9826	CFLAGS="$xorg_testset_save_CFLAGS"
9827fi
9828
9829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9832	fi
9833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9837  $as_echo_n "(cached) " >&6
9838else
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841int i;
9842_ACEOF
9843if ac_fn_c_try_compile "$LINENO"; then :
9844  xorg_cv_cc_flag_unused_command_line_argument=yes
9845else
9846  xorg_cv_cc_flag_unused_command_line_argument=no
9847fi
9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849fi
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9852	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9853	CFLAGS="$xorg_testset_save_CFLAGS"
9854fi
9855
9856found="no"
9857
9858	if test $found = "no" ; then
9859		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9861		fi
9862
9863		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9865		fi
9866
9867		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9868
9869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9870$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9871		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9872		if eval \${$cacheid+:} false; then :
9873  $as_echo_n "(cached) " >&6
9874else
9875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h.  */
9877int i;
9878int
9879main ()
9880{
9881
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886if ac_fn_c_try_link "$LINENO"; then :
9887  eval $cacheid=yes
9888else
9889  eval $cacheid=no
9890fi
9891rm -f core conftest.err conftest.$ac_objext \
9892    conftest$ac_exeext conftest.$ac_ext
9893fi
9894
9895
9896		CFLAGS="$xorg_testset_save_CFLAGS"
9897
9898		eval supported=\$$cacheid
9899		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9900$as_echo "$supported" >&6; }
9901		if test "$supported" = "yes" ; then
9902			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9903			found="yes"
9904		fi
9905	fi
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921xorg_testset_save_CFLAGS="$CFLAGS"
9922
9923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9928  $as_echo_n "(cached) " >&6
9929else
9930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931/* end confdefs.h.  */
9932int i;
9933_ACEOF
9934if ac_fn_c_try_compile "$LINENO"; then :
9935  xorg_cv_cc_flag_unknown_warning_option=yes
9936else
9937  xorg_cv_cc_flag_unknown_warning_option=no
9938fi
9939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940fi
9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9944	CFLAGS="$xorg_testset_save_CFLAGS"
9945fi
9946
9947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950	fi
9951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9955  $as_echo_n "(cached) " >&6
9956else
9957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958/* end confdefs.h.  */
9959int i;
9960_ACEOF
9961if ac_fn_c_try_compile "$LINENO"; then :
9962  xorg_cv_cc_flag_unused_command_line_argument=yes
9963else
9964  xorg_cv_cc_flag_unused_command_line_argument=no
9965fi
9966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967fi
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9971	CFLAGS="$xorg_testset_save_CFLAGS"
9972fi
9973
9974found="no"
9975
9976	if test $found = "no" ; then
9977		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9979		fi
9980
9981		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9983		fi
9984
9985		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9986
9987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9988$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9989		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9990		if eval \${$cacheid+:} false; then :
9991  $as_echo_n "(cached) " >&6
9992else
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996int
9997main ()
9998{
9999
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"; then :
10005  eval $cacheid=yes
10006else
10007  eval $cacheid=no
10008fi
10009rm -f core conftest.err conftest.$ac_objext \
10010    conftest$ac_exeext conftest.$ac_ext
10011fi
10012
10013
10014		CFLAGS="$xorg_testset_save_CFLAGS"
10015
10016		eval supported=\$$cacheid
10017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10018$as_echo "$supported" >&6; }
10019		if test "$supported" = "yes" ; then
10020			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10021			found="yes"
10022		fi
10023	fi
10024
10025
10026fi
10027
10028
10029
10030
10031
10032
10033
10034		CWARNFLAGS="$BASE_CFLAGS"
10035		if  test "x$GCC" = xyes ; then
10036		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10037		fi
10038
10039
10040
10041
10042
10043
10044
10045
10046# Check whether --enable-strict-compilation was given.
10047if test "${enable_strict_compilation+set}" = set; then :
10048  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10049else
10050  STRICT_COMPILE=no
10051fi
10052
10053
10054
10055
10056
10057
10058STRICT_CFLAGS=""
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072xorg_testset_save_CFLAGS="$CFLAGS"
10073
10074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10077$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10078if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10079  $as_echo_n "(cached) " >&6
10080else
10081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h.  */
10083int i;
10084_ACEOF
10085if ac_fn_c_try_compile "$LINENO"; then :
10086  xorg_cv_cc_flag_unknown_warning_option=yes
10087else
10088  xorg_cv_cc_flag_unknown_warning_option=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091fi
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10093$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10094	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10095	CFLAGS="$xorg_testset_save_CFLAGS"
10096fi
10097
10098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10099	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10100		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10101	fi
10102	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10104$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10105if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10106  $as_echo_n "(cached) " >&6
10107else
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110int i;
10111_ACEOF
10112if ac_fn_c_try_compile "$LINENO"; then :
10113  xorg_cv_cc_flag_unused_command_line_argument=yes
10114else
10115  xorg_cv_cc_flag_unused_command_line_argument=no
10116fi
10117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118fi
10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10120$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10121	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10122	CFLAGS="$xorg_testset_save_CFLAGS"
10123fi
10124
10125found="no"
10126
10127	if test $found = "no" ; then
10128		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130		fi
10131
10132		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10134		fi
10135
10136		CFLAGS="$CFLAGS -pedantic"
10137
10138		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10139$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10140		cacheid=xorg_cv_cc_flag__pedantic
10141		if eval \${$cacheid+:} false; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145/* end confdefs.h.  */
10146int i;
10147int
10148main ()
10149{
10150
10151  ;
10152  return 0;
10153}
10154_ACEOF
10155if ac_fn_c_try_link "$LINENO"; then :
10156  eval $cacheid=yes
10157else
10158  eval $cacheid=no
10159fi
10160rm -f core conftest.err conftest.$ac_objext \
10161    conftest$ac_exeext conftest.$ac_ext
10162fi
10163
10164
10165		CFLAGS="$xorg_testset_save_CFLAGS"
10166
10167		eval supported=\$$cacheid
10168		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10169$as_echo "$supported" >&6; }
10170		if test "$supported" = "yes" ; then
10171			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10172			found="yes"
10173		fi
10174	fi
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190xorg_testset_save_CFLAGS="$CFLAGS"
10191
10192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10197  $as_echo_n "(cached) " >&6
10198else
10199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200/* end confdefs.h.  */
10201int i;
10202_ACEOF
10203if ac_fn_c_try_compile "$LINENO"; then :
10204  xorg_cv_cc_flag_unknown_warning_option=yes
10205else
10206  xorg_cv_cc_flag_unknown_warning_option=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209fi
10210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10212	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10213	CFLAGS="$xorg_testset_save_CFLAGS"
10214fi
10215
10216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10217	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219	fi
10220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10224  $as_echo_n "(cached) " >&6
10225else
10226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227/* end confdefs.h.  */
10228int i;
10229_ACEOF
10230if ac_fn_c_try_compile "$LINENO"; then :
10231  xorg_cv_cc_flag_unused_command_line_argument=yes
10232else
10233  xorg_cv_cc_flag_unused_command_line_argument=no
10234fi
10235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236fi
10237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10240	CFLAGS="$xorg_testset_save_CFLAGS"
10241fi
10242
10243found="no"
10244
10245	if test $found = "no" ; then
10246		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248		fi
10249
10250		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10252		fi
10253
10254		CFLAGS="$CFLAGS -Werror"
10255
10256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10257$as_echo_n "checking if $CC supports -Werror... " >&6; }
10258		cacheid=xorg_cv_cc_flag__Werror
10259		if eval \${$cacheid+:} false; then :
10260  $as_echo_n "(cached) " >&6
10261else
10262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263/* end confdefs.h.  */
10264int i;
10265int
10266main ()
10267{
10268
10269  ;
10270  return 0;
10271}
10272_ACEOF
10273if ac_fn_c_try_link "$LINENO"; then :
10274  eval $cacheid=yes
10275else
10276  eval $cacheid=no
10277fi
10278rm -f core conftest.err conftest.$ac_objext \
10279    conftest$ac_exeext conftest.$ac_ext
10280fi
10281
10282
10283		CFLAGS="$xorg_testset_save_CFLAGS"
10284
10285		eval supported=\$$cacheid
10286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10287$as_echo "$supported" >&6; }
10288		if test "$supported" = "yes" ; then
10289			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10290			found="yes"
10291		fi
10292	fi
10293
10294	if test $found = "no" ; then
10295		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10297		fi
10298
10299		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301		fi
10302
10303		CFLAGS="$CFLAGS -errwarn"
10304
10305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10306$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10307		cacheid=xorg_cv_cc_flag__errwarn
10308		if eval \${$cacheid+:} false; then :
10309  $as_echo_n "(cached) " >&6
10310else
10311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312/* end confdefs.h.  */
10313int i;
10314int
10315main ()
10316{
10317
10318  ;
10319  return 0;
10320}
10321_ACEOF
10322if ac_fn_c_try_link "$LINENO"; then :
10323  eval $cacheid=yes
10324else
10325  eval $cacheid=no
10326fi
10327rm -f core conftest.err conftest.$ac_objext \
10328    conftest$ac_exeext conftest.$ac_ext
10329fi
10330
10331
10332		CFLAGS="$xorg_testset_save_CFLAGS"
10333
10334		eval supported=\$$cacheid
10335		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10336$as_echo "$supported" >&6; }
10337		if test "$supported" = "yes" ; then
10338			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10339			found="yes"
10340		fi
10341	fi
10342
10343
10344
10345# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10346# activate it with -Werror, so we add it here explicitly.
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360xorg_testset_save_CFLAGS="$CFLAGS"
10361
10362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10367  $as_echo_n "(cached) " >&6
10368else
10369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370/* end confdefs.h.  */
10371int i;
10372_ACEOF
10373if ac_fn_c_try_compile "$LINENO"; then :
10374  xorg_cv_cc_flag_unknown_warning_option=yes
10375else
10376  xorg_cv_cc_flag_unknown_warning_option=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10379fi
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10383	CFLAGS="$xorg_testset_save_CFLAGS"
10384fi
10385
10386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10389	fi
10390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10394  $as_echo_n "(cached) " >&6
10395else
10396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h.  */
10398int i;
10399_ACEOF
10400if ac_fn_c_try_compile "$LINENO"; then :
10401  xorg_cv_cc_flag_unused_command_line_argument=yes
10402else
10403  xorg_cv_cc_flag_unused_command_line_argument=no
10404fi
10405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406fi
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10410	CFLAGS="$xorg_testset_save_CFLAGS"
10411fi
10412
10413found="no"
10414
10415	if test $found = "no" ; then
10416		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418		fi
10419
10420		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422		fi
10423
10424		CFLAGS="$CFLAGS -Werror=attributes"
10425
10426		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10427$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10428		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10429		if eval \${$cacheid+:} false; then :
10430  $as_echo_n "(cached) " >&6
10431else
10432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h.  */
10434int i;
10435int
10436main ()
10437{
10438
10439  ;
10440  return 0;
10441}
10442_ACEOF
10443if ac_fn_c_try_link "$LINENO"; then :
10444  eval $cacheid=yes
10445else
10446  eval $cacheid=no
10447fi
10448rm -f core conftest.err conftest.$ac_objext \
10449    conftest$ac_exeext conftest.$ac_ext
10450fi
10451
10452
10453		CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455		eval supported=\$$cacheid
10456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457$as_echo "$supported" >&6; }
10458		if test "$supported" = "yes" ; then
10459			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10460			found="yes"
10461		fi
10462	fi
10463
10464
10465
10466if test "x$STRICT_COMPILE" = "xyes"; then
10467    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10468    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10469fi
10470
10471
10472
10473
10474
10475
10476cat >>confdefs.h <<_ACEOF
10477#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10478_ACEOF
10479
10480	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10481	if test "x$PVM" = "x"; then
10482		PVM="0"
10483	fi
10484
10485cat >>confdefs.h <<_ACEOF
10486#define PACKAGE_VERSION_MINOR $PVM
10487_ACEOF
10488
10489	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10490	if test "x$PVP" = "x"; then
10491		PVP="0"
10492	fi
10493
10494cat >>confdefs.h <<_ACEOF
10495#define PACKAGE_VERSION_PATCHLEVEL $PVP
10496_ACEOF
10497
10498
10499
10500CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10501mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10502|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10503echo 'git directory not found: installing possibly empty changelog.' >&2)"
10504
10505
10506
10507
10508macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10509INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10510mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10511|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10512echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10513
10514
10515
10516
10517
10518
10519if test x$APP_MAN_SUFFIX = x    ; then
10520    APP_MAN_SUFFIX=1
10521fi
10522if test x$APP_MAN_DIR = x    ; then
10523    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10524fi
10525
10526if test x$LIB_MAN_SUFFIX = x    ; then
10527    LIB_MAN_SUFFIX=3
10528fi
10529if test x$LIB_MAN_DIR = x    ; then
10530    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10531fi
10532
10533if test x$FILE_MAN_SUFFIX = x    ; then
10534    case $host_os in
10535	solaris*)	FILE_MAN_SUFFIX=4  ;;
10536	*)		FILE_MAN_SUFFIX=5  ;;
10537    esac
10538fi
10539if test x$FILE_MAN_DIR = x    ; then
10540    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10541fi
10542
10543if test x$MISC_MAN_SUFFIX = x    ; then
10544    case $host_os in
10545	solaris*)	MISC_MAN_SUFFIX=5  ;;
10546	*)		MISC_MAN_SUFFIX=7  ;;
10547    esac
10548fi
10549if test x$MISC_MAN_DIR = x    ; then
10550    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10551fi
10552
10553if test x$DRIVER_MAN_SUFFIX = x    ; then
10554    case $host_os in
10555	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10556	*)		DRIVER_MAN_SUFFIX=4  ;;
10557    esac
10558fi
10559if test x$DRIVER_MAN_DIR = x    ; then
10560    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10561fi
10562
10563if test x$ADMIN_MAN_SUFFIX = x    ; then
10564    case $host_os in
10565	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10566	*)		ADMIN_MAN_SUFFIX=8  ;;
10567    esac
10568fi
10569if test x$ADMIN_MAN_DIR = x    ; then
10570    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10571fi
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587XORG_MAN_PAGE="X Version 11"
10588
10589MAN_SUBSTS="\
10590	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10591	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10592	-e 's|__xservername__|Xorg|g' \
10593	-e 's|__xconfigfile__|xorg.conf|g' \
10594	-e 's|__projectroot__|\$(prefix)|g' \
10595	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10596	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10597	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10598	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10599	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10600	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10601	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10602
10603
10604
10605# Check whether --enable-silent-rules was given.
10606if test "${enable_silent_rules+set}" = set; then :
10607  enableval=$enable_silent_rules;
10608fi
10609
10610case $enable_silent_rules in
10611yes) AM_DEFAULT_VERBOSITY=0;;
10612no)  AM_DEFAULT_VERBOSITY=1;;
10613*)   AM_DEFAULT_VERBOSITY=0;;
10614esac
10615am_make=${MAKE-make}
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10617$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10618if ${am_cv_make_support_nested_variables+:} false; then :
10619  $as_echo_n "(cached) " >&6
10620else
10621  if $as_echo 'TRUE=$(BAR$(V))
10622BAR0=false
10623BAR1=true
10624V=1
10625am__doit:
10626	@$(TRUE)
10627.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10628  am_cv_make_support_nested_variables=yes
10629else
10630  am_cv_make_support_nested_variables=no
10631fi
10632fi
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10634$as_echo "$am_cv_make_support_nested_variables" >&6; }
10635if test $am_cv_make_support_nested_variables = yes; then
10636    AM_V='$(V)'
10637  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10638else
10639  AM_V=$AM_DEFAULT_VERBOSITY
10640  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10641fi
10642AM_BACKSLASH='\'
10643
10644
10645
10646# Initialize libtool
10647# Check whether --enable-static was given.
10648if test "${enable_static+set}" = set; then :
10649  enableval=$enable_static; p=${PACKAGE-default}
10650    case $enableval in
10651    yes) enable_static=yes ;;
10652    no) enable_static=no ;;
10653    *)
10654     enable_static=no
10655      # Look at the argument we got.  We use all the common list separators.
10656      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10657      for pkg in $enableval; do
10658	IFS="$lt_save_ifs"
10659	if test "X$pkg" = "X$p"; then
10660	  enable_static=yes
10661	fi
10662      done
10663      IFS="$lt_save_ifs"
10664      ;;
10665    esac
10666else
10667  enable_static=no
10668fi
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678case `pwd` in
10679  *\ * | *\	*)
10680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10681$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10682esac
10683
10684
10685
10686macro_version='2.4.2'
10687macro_revision='1.3337'
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701ltmain="$ac_aux_dir/ltmain.sh"
10702
10703# Backslashify metacharacters that are still active within
10704# double-quoted strings.
10705sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10706
10707# Same as above, but do not quote variable references.
10708double_quote_subst='s/\(["`\\]\)/\\\1/g'
10709
10710# Sed substitution to delay expansion of an escaped shell variable in a
10711# double_quote_subst'ed string.
10712delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10713
10714# Sed substitution to delay expansion of an escaped single quote.
10715delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10716
10717# Sed substitution to avoid accidental globbing in evaled expressions
10718no_glob_subst='s/\*/\\\*/g'
10719
10720ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10721ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10722ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10723
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10725$as_echo_n "checking how to print strings... " >&6; }
10726# Test print first, because it will be a builtin if present.
10727if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10728   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10729  ECHO='print -r --'
10730elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10731  ECHO='printf %s\n'
10732else
10733  # Use this function as a fallback that always works.
10734  func_fallback_echo ()
10735  {
10736    eval 'cat <<_LTECHO_EOF
10737$1
10738_LTECHO_EOF'
10739  }
10740  ECHO='func_fallback_echo'
10741fi
10742
10743# func_echo_all arg...
10744# Invoke $ECHO with all args, space-separated.
10745func_echo_all ()
10746{
10747    $ECHO ""
10748}
10749
10750case "$ECHO" in
10751  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10752$as_echo "printf" >&6; } ;;
10753  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10754$as_echo "print -r" >&6; } ;;
10755  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10756$as_echo "cat" >&6; } ;;
10757esac
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10773$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10774if ${ac_cv_path_SED+:} false; then :
10775  $as_echo_n "(cached) " >&6
10776else
10777            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10778     for ac_i in 1 2 3 4 5 6 7; do
10779       ac_script="$ac_script$as_nl$ac_script"
10780     done
10781     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10782     { ac_script=; unset ac_script;}
10783     if test -z "$SED"; then
10784  ac_path_SED_found=false
10785  # Loop through the user's path and test for each of PROGNAME-LIST
10786  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789  IFS=$as_save_IFS
10790  test -z "$as_dir" && as_dir=.
10791    for ac_prog in sed gsed; do
10792    for ac_exec_ext in '' $ac_executable_extensions; do
10793      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10794      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10795# Check for GNU ac_path_SED and select it if it is found.
10796  # Check for GNU $ac_path_SED
10797case `"$ac_path_SED" --version 2>&1` in
10798*GNU*)
10799  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10800*)
10801  ac_count=0
10802  $as_echo_n 0123456789 >"conftest.in"
10803  while :
10804  do
10805    cat "conftest.in" "conftest.in" >"conftest.tmp"
10806    mv "conftest.tmp" "conftest.in"
10807    cp "conftest.in" "conftest.nl"
10808    $as_echo '' >> "conftest.nl"
10809    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10810    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10811    as_fn_arith $ac_count + 1 && ac_count=$as_val
10812    if test $ac_count -gt ${ac_path_SED_max-0}; then
10813      # Best one so far, save it but keep looking for a better one
10814      ac_cv_path_SED="$ac_path_SED"
10815      ac_path_SED_max=$ac_count
10816    fi
10817    # 10*(2^10) chars as input seems more than enough
10818    test $ac_count -gt 10 && break
10819  done
10820  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10821esac
10822
10823      $ac_path_SED_found && break 3
10824    done
10825  done
10826  done
10827IFS=$as_save_IFS
10828  if test -z "$ac_cv_path_SED"; then
10829    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10830  fi
10831else
10832  ac_cv_path_SED=$SED
10833fi
10834
10835fi
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10837$as_echo "$ac_cv_path_SED" >&6; }
10838 SED="$ac_cv_path_SED"
10839  rm -f conftest.sed
10840
10841test -z "$SED" && SED=sed
10842Xsed="$SED -e 1s/^X//"
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10855$as_echo_n "checking for fgrep... " >&6; }
10856if ${ac_cv_path_FGREP+:} false; then :
10857  $as_echo_n "(cached) " >&6
10858else
10859  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10860   then ac_cv_path_FGREP="$GREP -F"
10861   else
10862     if test -z "$FGREP"; then
10863  ac_path_FGREP_found=false
10864  # Loop through the user's path and test for each of PROGNAME-LIST
10865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10867do
10868  IFS=$as_save_IFS
10869  test -z "$as_dir" && as_dir=.
10870    for ac_prog in fgrep; do
10871    for ac_exec_ext in '' $ac_executable_extensions; do
10872      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10873      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10874# Check for GNU ac_path_FGREP and select it if it is found.
10875  # Check for GNU $ac_path_FGREP
10876case `"$ac_path_FGREP" --version 2>&1` in
10877*GNU*)
10878  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10879*)
10880  ac_count=0
10881  $as_echo_n 0123456789 >"conftest.in"
10882  while :
10883  do
10884    cat "conftest.in" "conftest.in" >"conftest.tmp"
10885    mv "conftest.tmp" "conftest.in"
10886    cp "conftest.in" "conftest.nl"
10887    $as_echo 'FGREP' >> "conftest.nl"
10888    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10889    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10890    as_fn_arith $ac_count + 1 && ac_count=$as_val
10891    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10892      # Best one so far, save it but keep looking for a better one
10893      ac_cv_path_FGREP="$ac_path_FGREP"
10894      ac_path_FGREP_max=$ac_count
10895    fi
10896    # 10*(2^10) chars as input seems more than enough
10897    test $ac_count -gt 10 && break
10898  done
10899  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10900esac
10901
10902      $ac_path_FGREP_found && break 3
10903    done
10904  done
10905  done
10906IFS=$as_save_IFS
10907  if test -z "$ac_cv_path_FGREP"; then
10908    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10909  fi
10910else
10911  ac_cv_path_FGREP=$FGREP
10912fi
10913
10914   fi
10915fi
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10917$as_echo "$ac_cv_path_FGREP" >&6; }
10918 FGREP="$ac_cv_path_FGREP"
10919
10920
10921test -z "$GREP" && GREP=grep
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941# Check whether --with-gnu-ld was given.
10942if test "${with_gnu_ld+set}" = set; then :
10943  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10944else
10945  with_gnu_ld=no
10946fi
10947
10948ac_prog=ld
10949if test "$GCC" = yes; then
10950  # Check if gcc -print-prog-name=ld gives a path.
10951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10952$as_echo_n "checking for ld used by $CC... " >&6; }
10953  case $host in
10954  *-*-mingw*)
10955    # gcc leaves a trailing carriage return which upsets mingw
10956    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10957  *)
10958    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10959  esac
10960  case $ac_prog in
10961    # Accept absolute paths.
10962    [\\/]* | ?:[\\/]*)
10963      re_direlt='/[^/][^/]*/\.\./'
10964      # Canonicalize the pathname of ld
10965      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10966      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10967	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10968      done
10969      test -z "$LD" && LD="$ac_prog"
10970      ;;
10971  "")
10972    # If it fails, then pretend we aren't using GCC.
10973    ac_prog=ld
10974    ;;
10975  *)
10976    # If it is relative, then search for the first ld in PATH.
10977    with_gnu_ld=unknown
10978    ;;
10979  esac
10980elif test "$with_gnu_ld" = yes; then
10981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10982$as_echo_n "checking for GNU ld... " >&6; }
10983else
10984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10985$as_echo_n "checking for non-GNU ld... " >&6; }
10986fi
10987if ${lt_cv_path_LD+:} false; then :
10988  $as_echo_n "(cached) " >&6
10989else
10990  if test -z "$LD"; then
10991  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10992  for ac_dir in $PATH; do
10993    IFS="$lt_save_ifs"
10994    test -z "$ac_dir" && ac_dir=.
10995    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10996      lt_cv_path_LD="$ac_dir/$ac_prog"
10997      # Check to see if the program is GNU ld.  I'd rather use --version,
10998      # but apparently some variants of GNU ld only accept -v.
10999      # Break only if it was the GNU/non-GNU ld that we prefer.
11000      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11001      *GNU* | *'with BFD'*)
11002	test "$with_gnu_ld" != no && break
11003	;;
11004      *)
11005	test "$with_gnu_ld" != yes && break
11006	;;
11007      esac
11008    fi
11009  done
11010  IFS="$lt_save_ifs"
11011else
11012  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11013fi
11014fi
11015
11016LD="$lt_cv_path_LD"
11017if test -n "$LD"; then
11018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11019$as_echo "$LD" >&6; }
11020else
11021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
11023fi
11024test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11026$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11027if ${lt_cv_prog_gnu_ld+:} false; then :
11028  $as_echo_n "(cached) " >&6
11029else
11030  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11031case `$LD -v 2>&1 </dev/null` in
11032*GNU* | *'with BFD'*)
11033  lt_cv_prog_gnu_ld=yes
11034  ;;
11035*)
11036  lt_cv_prog_gnu_ld=no
11037  ;;
11038esac
11039fi
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11041$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11042with_gnu_ld=$lt_cv_prog_gnu_ld
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11053$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11054if ${lt_cv_path_NM+:} false; then :
11055  $as_echo_n "(cached) " >&6
11056else
11057  if test -n "$NM"; then
11058  # Let the user override the test.
11059  lt_cv_path_NM="$NM"
11060else
11061  lt_nm_to_check="${ac_tool_prefix}nm"
11062  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11063    lt_nm_to_check="$lt_nm_to_check nm"
11064  fi
11065  for lt_tmp_nm in $lt_nm_to_check; do
11066    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11067    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11068      IFS="$lt_save_ifs"
11069      test -z "$ac_dir" && ac_dir=.
11070      tmp_nm="$ac_dir/$lt_tmp_nm"
11071      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11072	# Check to see if the nm accepts a BSD-compat flag.
11073	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11074	#   nm: unknown option "B" ignored
11075	# Tru64's nm complains that /dev/null is an invalid object file
11076	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11077	*/dev/null* | *'Invalid file or object type'*)
11078	  lt_cv_path_NM="$tmp_nm -B"
11079	  break
11080	  ;;
11081	*)
11082	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11083	  */dev/null*)
11084	    lt_cv_path_NM="$tmp_nm -p"
11085	    break
11086	    ;;
11087	  *)
11088	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11089	    continue # so that we can try to find one that supports BSD flags
11090	    ;;
11091	  esac
11092	  ;;
11093	esac
11094      fi
11095    done
11096    IFS="$lt_save_ifs"
11097  done
11098  : ${lt_cv_path_NM=no}
11099fi
11100fi
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11102$as_echo "$lt_cv_path_NM" >&6; }
11103if test "$lt_cv_path_NM" != "no"; then
11104  NM="$lt_cv_path_NM"
11105else
11106  # Didn't find any BSD compatible name lister, look for dumpbin.
11107  if test -n "$DUMPBIN"; then :
11108    # Let the user override the test.
11109  else
11110    if test -n "$ac_tool_prefix"; then
11111  for ac_prog in dumpbin "link -dump"
11112  do
11113    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116$as_echo_n "checking for $ac_word... " >&6; }
11117if ${ac_cv_prog_DUMPBIN+:} false; then :
11118  $as_echo_n "(cached) " >&6
11119else
11120  if test -n "$DUMPBIN"; then
11121  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11122else
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH
11125do
11126  IFS=$as_save_IFS
11127  test -z "$as_dir" && as_dir=.
11128    for ac_exec_ext in '' $ac_executable_extensions; do
11129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132    break 2
11133  fi
11134done
11135  done
11136IFS=$as_save_IFS
11137
11138fi
11139fi
11140DUMPBIN=$ac_cv_prog_DUMPBIN
11141if test -n "$DUMPBIN"; then
11142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11143$as_echo "$DUMPBIN" >&6; }
11144else
11145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
11147fi
11148
11149
11150    test -n "$DUMPBIN" && break
11151  done
11152fi
11153if test -z "$DUMPBIN"; then
11154  ac_ct_DUMPBIN=$DUMPBIN
11155  for ac_prog in dumpbin "link -dump"
11156do
11157  # Extract the first word of "$ac_prog", so it can be a program name with args.
11158set dummy $ac_prog; ac_word=$2
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160$as_echo_n "checking for $ac_word... " >&6; }
11161if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11162  $as_echo_n "(cached) " >&6
11163else
11164  if test -n "$ac_ct_DUMPBIN"; then
11165  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170  IFS=$as_save_IFS
11171  test -z "$as_dir" && as_dir=.
11172    for ac_exec_ext in '' $ac_executable_extensions; do
11173  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176    break 2
11177  fi
11178done
11179  done
11180IFS=$as_save_IFS
11181
11182fi
11183fi
11184ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11185if test -n "$ac_ct_DUMPBIN"; then
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11187$as_echo "$ac_ct_DUMPBIN" >&6; }
11188else
11189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
11191fi
11192
11193
11194  test -n "$ac_ct_DUMPBIN" && break
11195done
11196
11197  if test "x$ac_ct_DUMPBIN" = x; then
11198    DUMPBIN=":"
11199  else
11200    case $cross_compiling:$ac_tool_warned in
11201yes:)
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11204ac_tool_warned=yes ;;
11205esac
11206    DUMPBIN=$ac_ct_DUMPBIN
11207  fi
11208fi
11209
11210    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11211    *COFF*)
11212      DUMPBIN="$DUMPBIN -symbols"
11213      ;;
11214    *)
11215      DUMPBIN=:
11216      ;;
11217    esac
11218  fi
11219
11220  if test "$DUMPBIN" != ":"; then
11221    NM="$DUMPBIN"
11222  fi
11223fi
11224test -z "$NM" && NM=nm
11225
11226
11227
11228
11229
11230
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11232$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11233if ${lt_cv_nm_interface+:} false; then :
11234  $as_echo_n "(cached) " >&6
11235else
11236  lt_cv_nm_interface="BSD nm"
11237  echo "int some_variable = 0;" > conftest.$ac_ext
11238  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11239  (eval "$ac_compile" 2>conftest.err)
11240  cat conftest.err >&5
11241  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11242  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11243  cat conftest.err >&5
11244  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11245  cat conftest.out >&5
11246  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11247    lt_cv_nm_interface="MS dumpbin"
11248  fi
11249  rm -f conftest*
11250fi
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11252$as_echo "$lt_cv_nm_interface" >&6; }
11253
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11255$as_echo_n "checking whether ln -s works... " >&6; }
11256LN_S=$as_ln_s
11257if test "$LN_S" = "ln -s"; then
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259$as_echo "yes" >&6; }
11260else
11261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11262$as_echo "no, using $LN_S" >&6; }
11263fi
11264
11265# find the maximum length of command line arguments
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11267$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11268if ${lt_cv_sys_max_cmd_len+:} false; then :
11269  $as_echo_n "(cached) " >&6
11270else
11271    i=0
11272  teststring="ABCD"
11273
11274  case $build_os in
11275  msdosdjgpp*)
11276    # On DJGPP, this test can blow up pretty badly due to problems in libc
11277    # (any single argument exceeding 2000 bytes causes a buffer overrun
11278    # during glob expansion).  Even if it were fixed, the result of this
11279    # check would be larger than it should be.
11280    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11281    ;;
11282
11283  gnu*)
11284    # Under GNU Hurd, this test is not required because there is
11285    # no limit to the length of command line arguments.
11286    # Libtool will interpret -1 as no limit whatsoever
11287    lt_cv_sys_max_cmd_len=-1;
11288    ;;
11289
11290  cygwin* | mingw* | cegcc*)
11291    # On Win9x/ME, this test blows up -- it succeeds, but takes
11292    # about 5 minutes as the teststring grows exponentially.
11293    # Worse, since 9x/ME are not pre-emptively multitasking,
11294    # you end up with a "frozen" computer, even though with patience
11295    # the test eventually succeeds (with a max line length of 256k).
11296    # Instead, let's just punt: use the minimum linelength reported by
11297    # all of the supported platforms: 8192 (on NT/2K/XP).
11298    lt_cv_sys_max_cmd_len=8192;
11299    ;;
11300
11301  mint*)
11302    # On MiNT this can take a long time and run out of memory.
11303    lt_cv_sys_max_cmd_len=8192;
11304    ;;
11305
11306  amigaos*)
11307    # On AmigaOS with pdksh, this test takes hours, literally.
11308    # So we just punt and use a minimum line length of 8192.
11309    lt_cv_sys_max_cmd_len=8192;
11310    ;;
11311
11312  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11313    # This has been around since 386BSD, at least.  Likely further.
11314    if test -x /sbin/sysctl; then
11315      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11316    elif test -x /usr/sbin/sysctl; then
11317      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11318    else
11319      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11320    fi
11321    # And add a safety zone
11322    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11323    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11324    ;;
11325
11326  interix*)
11327    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11328    lt_cv_sys_max_cmd_len=196608
11329    ;;
11330
11331  os2*)
11332    # The test takes a long time on OS/2.
11333    lt_cv_sys_max_cmd_len=8192
11334    ;;
11335
11336  osf*)
11337    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11338    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11339    # nice to cause kernel panics so lets avoid the loop below.
11340    # First set a reasonable default.
11341    lt_cv_sys_max_cmd_len=16384
11342    #
11343    if test -x /sbin/sysconfig; then
11344      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11345        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11346      esac
11347    fi
11348    ;;
11349  sco3.2v5*)
11350    lt_cv_sys_max_cmd_len=102400
11351    ;;
11352  sysv5* | sco5v6* | sysv4.2uw2*)
11353    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11354    if test -n "$kargmax"; then
11355      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11356    else
11357      lt_cv_sys_max_cmd_len=32768
11358    fi
11359    ;;
11360  *)
11361    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11362    if test -n "$lt_cv_sys_max_cmd_len"; then
11363      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11364      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11365    else
11366      # Make teststring a little bigger before we do anything with it.
11367      # a 1K string should be a reasonable start.
11368      for i in 1 2 3 4 5 6 7 8 ; do
11369        teststring=$teststring$teststring
11370      done
11371      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11372      # If test is not a shell built-in, we'll probably end up computing a
11373      # maximum length that is only half of the actual maximum length, but
11374      # we can't tell.
11375      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11376	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11377	      test $i != 17 # 1/2 MB should be enough
11378      do
11379        i=`expr $i + 1`
11380        teststring=$teststring$teststring
11381      done
11382      # Only check the string length outside the loop.
11383      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11384      teststring=
11385      # Add a significant safety factor because C++ compilers can tack on
11386      # massive amounts of additional arguments before passing them to the
11387      # linker.  It appears as though 1/2 is a usable value.
11388      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11389    fi
11390    ;;
11391  esac
11392
11393fi
11394
11395if test -n $lt_cv_sys_max_cmd_len ; then
11396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11397$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11398else
11399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11400$as_echo "none" >&6; }
11401fi
11402max_cmd_len=$lt_cv_sys_max_cmd_len
11403
11404
11405
11406
11407
11408
11409: ${CP="cp -f"}
11410: ${MV="mv -f"}
11411: ${RM="rm -f"}
11412
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11414$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11415# Try some XSI features
11416xsi_shell=no
11417( _lt_dummy="a/b/c"
11418  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11419      = c,a/b,b/c, \
11420    && eval 'test $(( 1 + 1 )) -eq 2 \
11421    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11422  && xsi_shell=yes
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11424$as_echo "$xsi_shell" >&6; }
11425
11426
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11428$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11429lt_shell_append=no
11430( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11431    >/dev/null 2>&1 \
11432  && lt_shell_append=yes
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11434$as_echo "$lt_shell_append" >&6; }
11435
11436
11437if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11438  lt_unset=unset
11439else
11440  lt_unset=false
11441fi
11442
11443
11444
11445
11446
11447# test EBCDIC or ASCII
11448case `echo X|tr X '\101'` in
11449 A) # ASCII based system
11450    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11451  lt_SP2NL='tr \040 \012'
11452  lt_NL2SP='tr \015\012 \040\040'
11453  ;;
11454 *) # EBCDIC based system
11455  lt_SP2NL='tr \100 \n'
11456  lt_NL2SP='tr \r\n \100\100'
11457  ;;
11458esac
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11469$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11470if ${lt_cv_to_host_file_cmd+:} false; then :
11471  $as_echo_n "(cached) " >&6
11472else
11473  case $host in
11474  *-*-mingw* )
11475    case $build in
11476      *-*-mingw* ) # actually msys
11477        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11478        ;;
11479      *-*-cygwin* )
11480        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11481        ;;
11482      * ) # otherwise, assume *nix
11483        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11484        ;;
11485    esac
11486    ;;
11487  *-*-cygwin* )
11488    case $build in
11489      *-*-mingw* ) # actually msys
11490        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11491        ;;
11492      *-*-cygwin* )
11493        lt_cv_to_host_file_cmd=func_convert_file_noop
11494        ;;
11495      * ) # otherwise, assume *nix
11496        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11497        ;;
11498    esac
11499    ;;
11500  * ) # unhandled hosts (and "normal" native builds)
11501    lt_cv_to_host_file_cmd=func_convert_file_noop
11502    ;;
11503esac
11504
11505fi
11506
11507to_host_file_cmd=$lt_cv_to_host_file_cmd
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11509$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11510
11511
11512
11513
11514
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11516$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11517if ${lt_cv_to_tool_file_cmd+:} false; then :
11518  $as_echo_n "(cached) " >&6
11519else
11520  #assume ordinary cross tools, or native build.
11521lt_cv_to_tool_file_cmd=func_convert_file_noop
11522case $host in
11523  *-*-mingw* )
11524    case $build in
11525      *-*-mingw* ) # actually msys
11526        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11527        ;;
11528    esac
11529    ;;
11530esac
11531
11532fi
11533
11534to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11536$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11537
11538
11539
11540
11541
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11543$as_echo_n "checking for $LD option to reload object files... " >&6; }
11544if ${lt_cv_ld_reload_flag+:} false; then :
11545  $as_echo_n "(cached) " >&6
11546else
11547  lt_cv_ld_reload_flag='-r'
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11550$as_echo "$lt_cv_ld_reload_flag" >&6; }
11551reload_flag=$lt_cv_ld_reload_flag
11552case $reload_flag in
11553"" | " "*) ;;
11554*) reload_flag=" $reload_flag" ;;
11555esac
11556reload_cmds='$LD$reload_flag -o $output$reload_objs'
11557case $host_os in
11558  cygwin* | mingw* | pw32* | cegcc*)
11559    if test "$GCC" != yes; then
11560      reload_cmds=false
11561    fi
11562    ;;
11563  darwin*)
11564    if test "$GCC" = yes; then
11565      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11566    else
11567      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11568    fi
11569    ;;
11570esac
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580if test -n "$ac_tool_prefix"; then
11581  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11582set dummy ${ac_tool_prefix}objdump; ac_word=$2
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584$as_echo_n "checking for $ac_word... " >&6; }
11585if ${ac_cv_prog_OBJDUMP+:} false; then :
11586  $as_echo_n "(cached) " >&6
11587else
11588  if test -n "$OBJDUMP"; then
11589  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11590else
11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594  IFS=$as_save_IFS
11595  test -z "$as_dir" && as_dir=.
11596    for ac_exec_ext in '' $ac_executable_extensions; do
11597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600    break 2
11601  fi
11602done
11603  done
11604IFS=$as_save_IFS
11605
11606fi
11607fi
11608OBJDUMP=$ac_cv_prog_OBJDUMP
11609if test -n "$OBJDUMP"; then
11610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11611$as_echo "$OBJDUMP" >&6; }
11612else
11613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
11615fi
11616
11617
11618fi
11619if test -z "$ac_cv_prog_OBJDUMP"; then
11620  ac_ct_OBJDUMP=$OBJDUMP
11621  # Extract the first word of "objdump", so it can be a program name with args.
11622set dummy objdump; ac_word=$2
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11626  $as_echo_n "(cached) " >&6
11627else
11628  if test -n "$ac_ct_OBJDUMP"; then
11629  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11630else
11631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632for as_dir in $PATH
11633do
11634  IFS=$as_save_IFS
11635  test -z "$as_dir" && as_dir=.
11636    for ac_exec_ext in '' $ac_executable_extensions; do
11637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640    break 2
11641  fi
11642done
11643  done
11644IFS=$as_save_IFS
11645
11646fi
11647fi
11648ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11649if test -n "$ac_ct_OBJDUMP"; then
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11651$as_echo "$ac_ct_OBJDUMP" >&6; }
11652else
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654$as_echo "no" >&6; }
11655fi
11656
11657  if test "x$ac_ct_OBJDUMP" = x; then
11658    OBJDUMP="false"
11659  else
11660    case $cross_compiling:$ac_tool_warned in
11661yes:)
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11664ac_tool_warned=yes ;;
11665esac
11666    OBJDUMP=$ac_ct_OBJDUMP
11667  fi
11668else
11669  OBJDUMP="$ac_cv_prog_OBJDUMP"
11670fi
11671
11672test -z "$OBJDUMP" && OBJDUMP=objdump
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11683$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11684if ${lt_cv_deplibs_check_method+:} false; then :
11685  $as_echo_n "(cached) " >&6
11686else
11687  lt_cv_file_magic_cmd='$MAGIC_CMD'
11688lt_cv_file_magic_test_file=
11689lt_cv_deplibs_check_method='unknown'
11690# Need to set the preceding variable on all platforms that support
11691# interlibrary dependencies.
11692# 'none' -- dependencies not supported.
11693# `unknown' -- same as none, but documents that we really don't know.
11694# 'pass_all' -- all dependencies passed with no checks.
11695# 'test_compile' -- check by making test program.
11696# 'file_magic [[regex]]' -- check by looking for files in library path
11697# which responds to the $file_magic_cmd with a given extended regex.
11698# If you have `file' or equivalent on your system and you're not sure
11699# whether `pass_all' will *always* work, you probably want this one.
11700
11701case $host_os in
11702aix[4-9]*)
11703  lt_cv_deplibs_check_method=pass_all
11704  ;;
11705
11706beos*)
11707  lt_cv_deplibs_check_method=pass_all
11708  ;;
11709
11710bsdi[45]*)
11711  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11712  lt_cv_file_magic_cmd='/usr/bin/file -L'
11713  lt_cv_file_magic_test_file=/shlib/libc.so
11714  ;;
11715
11716cygwin*)
11717  # func_win32_libid is a shell function defined in ltmain.sh
11718  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11719  lt_cv_file_magic_cmd='func_win32_libid'
11720  ;;
11721
11722mingw* | pw32*)
11723  # Base MSYS/MinGW do not provide the 'file' command needed by
11724  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11725  # unless we find 'file', for example because we are cross-compiling.
11726  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11727  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11728    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11729    lt_cv_file_magic_cmd='func_win32_libid'
11730  else
11731    # Keep this pattern in sync with the one in func_win32_libid.
11732    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11733    lt_cv_file_magic_cmd='$OBJDUMP -f'
11734  fi
11735  ;;
11736
11737cegcc*)
11738  # use the weaker test based on 'objdump'. See mingw*.
11739  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11740  lt_cv_file_magic_cmd='$OBJDUMP -f'
11741  ;;
11742
11743darwin* | rhapsody*)
11744  lt_cv_deplibs_check_method=pass_all
11745  ;;
11746
11747freebsd* | dragonfly*)
11748  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11749    case $host_cpu in
11750    i*86 )
11751      # Not sure whether the presence of OpenBSD here was a mistake.
11752      # Let's accept both of them until this is cleared up.
11753      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11754      lt_cv_file_magic_cmd=/usr/bin/file
11755      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11756      ;;
11757    esac
11758  else
11759    lt_cv_deplibs_check_method=pass_all
11760  fi
11761  ;;
11762
11763gnu*)
11764  lt_cv_deplibs_check_method=pass_all
11765  ;;
11766
11767haiku*)
11768  lt_cv_deplibs_check_method=pass_all
11769  ;;
11770
11771hpux10.20* | hpux11*)
11772  lt_cv_file_magic_cmd=/usr/bin/file
11773  case $host_cpu in
11774  ia64*)
11775    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11776    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11777    ;;
11778  hppa*64*)
11779    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]'
11780    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11781    ;;
11782  *)
11783    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11784    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11785    ;;
11786  esac
11787  ;;
11788
11789interix[3-9]*)
11790  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11791  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11792  ;;
11793
11794irix5* | irix6* | nonstopux*)
11795  case $LD in
11796  *-32|*"-32 ") libmagic=32-bit;;
11797  *-n32|*"-n32 ") libmagic=N32;;
11798  *-64|*"-64 ") libmagic=64-bit;;
11799  *) libmagic=never-match;;
11800  esac
11801  lt_cv_deplibs_check_method=pass_all
11802  ;;
11803
11804# This must be glibc/ELF.
11805linux* | k*bsd*-gnu | kopensolaris*-gnu)
11806  lt_cv_deplibs_check_method=pass_all
11807  ;;
11808
11809netbsd*)
11810  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11812  else
11813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11814  fi
11815  ;;
11816
11817newos6*)
11818  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11819  lt_cv_file_magic_cmd=/usr/bin/file
11820  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11821  ;;
11822
11823*nto* | *qnx*)
11824  lt_cv_deplibs_check_method=pass_all
11825  ;;
11826
11827openbsd*)
11828  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11829    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11830  else
11831    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11832  fi
11833  ;;
11834
11835osf3* | osf4* | osf5*)
11836  lt_cv_deplibs_check_method=pass_all
11837  ;;
11838
11839rdos*)
11840  lt_cv_deplibs_check_method=pass_all
11841  ;;
11842
11843solaris*)
11844  lt_cv_deplibs_check_method=pass_all
11845  ;;
11846
11847sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11848  lt_cv_deplibs_check_method=pass_all
11849  ;;
11850
11851sysv4 | sysv4.3*)
11852  case $host_vendor in
11853  motorola)
11854    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]'
11855    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11856    ;;
11857  ncr)
11858    lt_cv_deplibs_check_method=pass_all
11859    ;;
11860  sequent)
11861    lt_cv_file_magic_cmd='/bin/file'
11862    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11863    ;;
11864  sni)
11865    lt_cv_file_magic_cmd='/bin/file'
11866    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11867    lt_cv_file_magic_test_file=/lib/libc.so
11868    ;;
11869  siemens)
11870    lt_cv_deplibs_check_method=pass_all
11871    ;;
11872  pc)
11873    lt_cv_deplibs_check_method=pass_all
11874    ;;
11875  esac
11876  ;;
11877
11878tpf*)
11879  lt_cv_deplibs_check_method=pass_all
11880  ;;
11881esac
11882
11883fi
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11885$as_echo "$lt_cv_deplibs_check_method" >&6; }
11886
11887file_magic_glob=
11888want_nocaseglob=no
11889if test "$build" = "$host"; then
11890  case $host_os in
11891  mingw* | pw32*)
11892    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11893      want_nocaseglob=yes
11894    else
11895      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11896    fi
11897    ;;
11898  esac
11899fi
11900
11901file_magic_cmd=$lt_cv_file_magic_cmd
11902deplibs_check_method=$lt_cv_deplibs_check_method
11903test -z "$deplibs_check_method" && deplibs_check_method=unknown
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926if test -n "$ac_tool_prefix"; then
11927  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11928set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
11931if ${ac_cv_prog_DLLTOOL+:} false; then :
11932  $as_echo_n "(cached) " >&6
11933else
11934  if test -n "$DLLTOOL"; then
11935  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940  IFS=$as_save_IFS
11941  test -z "$as_dir" && as_dir=.
11942    for ac_exec_ext in '' $ac_executable_extensions; do
11943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11944    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11946    break 2
11947  fi
11948done
11949  done
11950IFS=$as_save_IFS
11951
11952fi
11953fi
11954DLLTOOL=$ac_cv_prog_DLLTOOL
11955if test -n "$DLLTOOL"; then
11956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11957$as_echo "$DLLTOOL" >&6; }
11958else
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961fi
11962
11963
11964fi
11965if test -z "$ac_cv_prog_DLLTOOL"; then
11966  ac_ct_DLLTOOL=$DLLTOOL
11967  # Extract the first word of "dlltool", so it can be a program name with args.
11968set dummy dlltool; ac_word=$2
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970$as_echo_n "checking for $ac_word... " >&6; }
11971if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11972  $as_echo_n "(cached) " >&6
11973else
11974  if test -n "$ac_ct_DLLTOOL"; then
11975  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11976else
11977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978for as_dir in $PATH
11979do
11980  IFS=$as_save_IFS
11981  test -z "$as_dir" && as_dir=.
11982    for ac_exec_ext in '' $ac_executable_extensions; do
11983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11984    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986    break 2
11987  fi
11988done
11989  done
11990IFS=$as_save_IFS
11991
11992fi
11993fi
11994ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11995if test -n "$ac_ct_DLLTOOL"; then
11996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11997$as_echo "$ac_ct_DLLTOOL" >&6; }
11998else
11999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000$as_echo "no" >&6; }
12001fi
12002
12003  if test "x$ac_ct_DLLTOOL" = x; then
12004    DLLTOOL="false"
12005  else
12006    case $cross_compiling:$ac_tool_warned in
12007yes:)
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12010ac_tool_warned=yes ;;
12011esac
12012    DLLTOOL=$ac_ct_DLLTOOL
12013  fi
12014else
12015  DLLTOOL="$ac_cv_prog_DLLTOOL"
12016fi
12017
12018test -z "$DLLTOOL" && DLLTOOL=dlltool
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12030$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12031if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12032  $as_echo_n "(cached) " >&6
12033else
12034  lt_cv_sharedlib_from_linklib_cmd='unknown'
12035
12036case $host_os in
12037cygwin* | mingw* | pw32* | cegcc*)
12038  # two different shell functions defined in ltmain.sh
12039  # decide which to use based on capabilities of $DLLTOOL
12040  case `$DLLTOOL --help 2>&1` in
12041  *--identify-strict*)
12042    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12043    ;;
12044  *)
12045    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12046    ;;
12047  esac
12048  ;;
12049*)
12050  # fallback: assume linklib IS sharedlib
12051  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12052  ;;
12053esac
12054
12055fi
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12057$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12058sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12059test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12060
12061
12062
12063
12064
12065
12066
12067if test -n "$ac_tool_prefix"; then
12068  for ac_prog in ar
12069  do
12070    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12071set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12073$as_echo_n "checking for $ac_word... " >&6; }
12074if ${ac_cv_prog_AR+:} false; then :
12075  $as_echo_n "(cached) " >&6
12076else
12077  if test -n "$AR"; then
12078  ac_cv_prog_AR="$AR" # Let the user override the test.
12079else
12080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081for as_dir in $PATH
12082do
12083  IFS=$as_save_IFS
12084  test -z "$as_dir" && as_dir=.
12085    for ac_exec_ext in '' $ac_executable_extensions; do
12086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12087    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089    break 2
12090  fi
12091done
12092  done
12093IFS=$as_save_IFS
12094
12095fi
12096fi
12097AR=$ac_cv_prog_AR
12098if test -n "$AR"; then
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12100$as_echo "$AR" >&6; }
12101else
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
12104fi
12105
12106
12107    test -n "$AR" && break
12108  done
12109fi
12110if test -z "$AR"; then
12111  ac_ct_AR=$AR
12112  for ac_prog in ar
12113do
12114  # Extract the first word of "$ac_prog", so it can be a program name with args.
12115set dummy $ac_prog; ac_word=$2
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if ${ac_cv_prog_ac_ct_AR+:} false; then :
12119  $as_echo_n "(cached) " >&6
12120else
12121  if test -n "$ac_ct_AR"; then
12122  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12123else
12124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $PATH
12126do
12127  IFS=$as_save_IFS
12128  test -z "$as_dir" && as_dir=.
12129    for ac_exec_ext in '' $ac_executable_extensions; do
12130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131    ac_cv_prog_ac_ct_AR="$ac_prog"
12132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133    break 2
12134  fi
12135done
12136  done
12137IFS=$as_save_IFS
12138
12139fi
12140fi
12141ac_ct_AR=$ac_cv_prog_ac_ct_AR
12142if test -n "$ac_ct_AR"; then
12143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12144$as_echo "$ac_ct_AR" >&6; }
12145else
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147$as_echo "no" >&6; }
12148fi
12149
12150
12151  test -n "$ac_ct_AR" && break
12152done
12153
12154  if test "x$ac_ct_AR" = x; then
12155    AR="false"
12156  else
12157    case $cross_compiling:$ac_tool_warned in
12158yes:)
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12161ac_tool_warned=yes ;;
12162esac
12163    AR=$ac_ct_AR
12164  fi
12165fi
12166
12167: ${AR=ar}
12168: ${AR_FLAGS=cru}
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12181$as_echo_n "checking for archiver @FILE support... " >&6; }
12182if ${lt_cv_ar_at_file+:} false; then :
12183  $as_echo_n "(cached) " >&6
12184else
12185  lt_cv_ar_at_file=no
12186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187/* end confdefs.h.  */
12188
12189int
12190main ()
12191{
12192
12193  ;
12194  return 0;
12195}
12196_ACEOF
12197if ac_fn_c_try_compile "$LINENO"; then :
12198  echo conftest.$ac_objext > conftest.lst
12199      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12200      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12201  (eval $lt_ar_try) 2>&5
12202  ac_status=$?
12203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204  test $ac_status = 0; }
12205      if test "$ac_status" -eq 0; then
12206	# Ensure the archiver fails upon bogus file names.
12207	rm -f conftest.$ac_objext libconftest.a
12208	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12209  (eval $lt_ar_try) 2>&5
12210  ac_status=$?
12211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212  test $ac_status = 0; }
12213	if test "$ac_status" -ne 0; then
12214          lt_cv_ar_at_file=@
12215        fi
12216      fi
12217      rm -f conftest.* libconftest.a
12218
12219fi
12220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221
12222fi
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12224$as_echo "$lt_cv_ar_at_file" >&6; }
12225
12226if test "x$lt_cv_ar_at_file" = xno; then
12227  archiver_list_spec=
12228else
12229  archiver_list_spec=$lt_cv_ar_at_file
12230fi
12231
12232
12233
12234
12235
12236
12237
12238if test -n "$ac_tool_prefix"; then
12239  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12240set dummy ${ac_tool_prefix}strip; ac_word=$2
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242$as_echo_n "checking for $ac_word... " >&6; }
12243if ${ac_cv_prog_STRIP+:} false; then :
12244  $as_echo_n "(cached) " >&6
12245else
12246  if test -n "$STRIP"; then
12247  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12248else
12249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250for as_dir in $PATH
12251do
12252  IFS=$as_save_IFS
12253  test -z "$as_dir" && as_dir=.
12254    for ac_exec_ext in '' $ac_executable_extensions; do
12255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12256    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258    break 2
12259  fi
12260done
12261  done
12262IFS=$as_save_IFS
12263
12264fi
12265fi
12266STRIP=$ac_cv_prog_STRIP
12267if test -n "$STRIP"; then
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12269$as_echo "$STRIP" >&6; }
12270else
12271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
12273fi
12274
12275
12276fi
12277if test -z "$ac_cv_prog_STRIP"; then
12278  ac_ct_STRIP=$STRIP
12279  # Extract the first word of "strip", so it can be a program name with args.
12280set dummy strip; ac_word=$2
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282$as_echo_n "checking for $ac_word... " >&6; }
12283if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  if test -n "$ac_ct_STRIP"; then
12287  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12288else
12289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290for as_dir in $PATH
12291do
12292  IFS=$as_save_IFS
12293  test -z "$as_dir" && as_dir=.
12294    for ac_exec_ext in '' $ac_executable_extensions; do
12295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296    ac_cv_prog_ac_ct_STRIP="strip"
12297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298    break 2
12299  fi
12300done
12301  done
12302IFS=$as_save_IFS
12303
12304fi
12305fi
12306ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12307if test -n "$ac_ct_STRIP"; then
12308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12309$as_echo "$ac_ct_STRIP" >&6; }
12310else
12311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312$as_echo "no" >&6; }
12313fi
12314
12315  if test "x$ac_ct_STRIP" = x; then
12316    STRIP=":"
12317  else
12318    case $cross_compiling:$ac_tool_warned in
12319yes:)
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12322ac_tool_warned=yes ;;
12323esac
12324    STRIP=$ac_ct_STRIP
12325  fi
12326else
12327  STRIP="$ac_cv_prog_STRIP"
12328fi
12329
12330test -z "$STRIP" && STRIP=:
12331
12332
12333
12334
12335
12336
12337if test -n "$ac_tool_prefix"; then
12338  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12339set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12341$as_echo_n "checking for $ac_word... " >&6; }
12342if ${ac_cv_prog_RANLIB+:} false; then :
12343  $as_echo_n "(cached) " >&6
12344else
12345  if test -n "$RANLIB"; then
12346  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12347else
12348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349for as_dir in $PATH
12350do
12351  IFS=$as_save_IFS
12352  test -z "$as_dir" && as_dir=.
12353    for ac_exec_ext in '' $ac_executable_extensions; do
12354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12355    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357    break 2
12358  fi
12359done
12360  done
12361IFS=$as_save_IFS
12362
12363fi
12364fi
12365RANLIB=$ac_cv_prog_RANLIB
12366if test -n "$RANLIB"; then
12367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12368$as_echo "$RANLIB" >&6; }
12369else
12370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372fi
12373
12374
12375fi
12376if test -z "$ac_cv_prog_RANLIB"; then
12377  ac_ct_RANLIB=$RANLIB
12378  # Extract the first word of "ranlib", so it can be a program name with args.
12379set dummy ranlib; ac_word=$2
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12381$as_echo_n "checking for $ac_word... " >&6; }
12382if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12383  $as_echo_n "(cached) " >&6
12384else
12385  if test -n "$ac_ct_RANLIB"; then
12386  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12387else
12388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389for as_dir in $PATH
12390do
12391  IFS=$as_save_IFS
12392  test -z "$as_dir" && as_dir=.
12393    for ac_exec_ext in '' $ac_executable_extensions; do
12394  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12395    ac_cv_prog_ac_ct_RANLIB="ranlib"
12396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12397    break 2
12398  fi
12399done
12400  done
12401IFS=$as_save_IFS
12402
12403fi
12404fi
12405ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12406if test -n "$ac_ct_RANLIB"; then
12407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12408$as_echo "$ac_ct_RANLIB" >&6; }
12409else
12410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411$as_echo "no" >&6; }
12412fi
12413
12414  if test "x$ac_ct_RANLIB" = x; then
12415    RANLIB=":"
12416  else
12417    case $cross_compiling:$ac_tool_warned in
12418yes:)
12419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12421ac_tool_warned=yes ;;
12422esac
12423    RANLIB=$ac_ct_RANLIB
12424  fi
12425else
12426  RANLIB="$ac_cv_prog_RANLIB"
12427fi
12428
12429test -z "$RANLIB" && RANLIB=:
12430
12431
12432
12433
12434
12435
12436# Determine commands to create old-style static archives.
12437old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12438old_postinstall_cmds='chmod 644 $oldlib'
12439old_postuninstall_cmds=
12440
12441if test -n "$RANLIB"; then
12442  case $host_os in
12443  openbsd*)
12444    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12445    ;;
12446  *)
12447    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12448    ;;
12449  esac
12450  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12451fi
12452
12453case $host_os in
12454  darwin*)
12455    lock_old_archive_extraction=yes ;;
12456  *)
12457    lock_old_archive_extraction=no ;;
12458esac
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498# If no C compiler was specified, use CC.
12499LTCC=${LTCC-"$CC"}
12500
12501# If no C compiler flags were specified, use CFLAGS.
12502LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12503
12504# Allow CC to be a program name with arguments.
12505compiler=$CC
12506
12507
12508# Check for command to grab the raw symbol name followed by C symbol from nm.
12509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12510$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12511if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12512  $as_echo_n "(cached) " >&6
12513else
12514
12515# These are sane defaults that work on at least a few old systems.
12516# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12517
12518# Character class describing NM global symbol codes.
12519symcode='[BCDEGRST]'
12520
12521# Regexp to match symbols that can be accessed directly from C.
12522sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12523
12524# Define system-specific variables.
12525case $host_os in
12526aix*)
12527  symcode='[BCDT]'
12528  ;;
12529cygwin* | mingw* | pw32* | cegcc*)
12530  symcode='[ABCDGISTW]'
12531  ;;
12532hpux*)
12533  if test "$host_cpu" = ia64; then
12534    symcode='[ABCDEGRST]'
12535  fi
12536  ;;
12537irix* | nonstopux*)
12538  symcode='[BCDEGRST]'
12539  ;;
12540osf*)
12541  symcode='[BCDEGQRST]'
12542  ;;
12543solaris*)
12544  symcode='[BDRT]'
12545  ;;
12546sco3.2v5*)
12547  symcode='[DT]'
12548  ;;
12549sysv4.2uw2*)
12550  symcode='[DT]'
12551  ;;
12552sysv5* | sco5v6* | unixware* | OpenUNIX*)
12553  symcode='[ABDT]'
12554  ;;
12555sysv4)
12556  symcode='[DFNSTU]'
12557  ;;
12558esac
12559
12560# If we're using GNU nm, then use its standard symbol codes.
12561case `$NM -V 2>&1` in
12562*GNU* | *'with BFD'*)
12563  symcode='[ABCDGIRSTW]' ;;
12564esac
12565
12566# Transform an extracted symbol line into a proper C declaration.
12567# Some systems (esp. on ia64) link data and code symbols differently,
12568# so use this general approach.
12569lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12570
12571# Transform an extracted symbol line into symbol name and symbol address
12572lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12573lt_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'"
12574
12575# Handle CRLF in mingw tool chain
12576opt_cr=
12577case $build_os in
12578mingw*)
12579  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12580  ;;
12581esac
12582
12583# Try without a prefix underscore, then with it.
12584for ac_symprfx in "" "_"; do
12585
12586  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12587  symxfrm="\\1 $ac_symprfx\\2 \\2"
12588
12589  # Write the raw and C identifiers.
12590  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12591    # Fake it for dumpbin and say T for any non-static function
12592    # and D for any global variable.
12593    # Also find C++ and __fastcall symbols from MSVC++,
12594    # which start with @ or ?.
12595    lt_cv_sys_global_symbol_pipe="$AWK '"\
12596"     {last_section=section; section=\$ 3};"\
12597"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12598"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12599"     \$ 0!~/External *\|/{next};"\
12600"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12601"     {if(hide[section]) next};"\
12602"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12603"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12604"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12605"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12606"     ' prfx=^$ac_symprfx"
12607  else
12608    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12609  fi
12610  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12611
12612  # Check to see that the pipe works correctly.
12613  pipe_works=no
12614
12615  rm -f conftest*
12616  cat > conftest.$ac_ext <<_LT_EOF
12617#ifdef __cplusplus
12618extern "C" {
12619#endif
12620char nm_test_var;
12621void nm_test_func(void);
12622void nm_test_func(void){}
12623#ifdef __cplusplus
12624}
12625#endif
12626int main(){nm_test_var='a';nm_test_func();return(0);}
12627_LT_EOF
12628
12629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12630  (eval $ac_compile) 2>&5
12631  ac_status=$?
12632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633  test $ac_status = 0; }; then
12634    # Now try to grab the symbols.
12635    nlist=conftest.nm
12636    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12637  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12638  ac_status=$?
12639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12640  test $ac_status = 0; } && test -s "$nlist"; then
12641      # Try sorting and uniquifying the output.
12642      if sort "$nlist" | uniq > "$nlist"T; then
12643	mv -f "$nlist"T "$nlist"
12644      else
12645	rm -f "$nlist"T
12646      fi
12647
12648      # Make sure that we snagged all the symbols we need.
12649      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12650	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12651	  cat <<_LT_EOF > conftest.$ac_ext
12652/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12653#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12654/* DATA imports from DLLs on WIN32 con't be const, because runtime
12655   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12656# define LT_DLSYM_CONST
12657#elif defined(__osf__)
12658/* This system does not cope well with relocations in const data.  */
12659# define LT_DLSYM_CONST
12660#else
12661# define LT_DLSYM_CONST const
12662#endif
12663
12664#ifdef __cplusplus
12665extern "C" {
12666#endif
12667
12668_LT_EOF
12669	  # Now generate the symbol file.
12670	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12671
12672	  cat <<_LT_EOF >> conftest.$ac_ext
12673
12674/* The mapping between symbol names and symbols.  */
12675LT_DLSYM_CONST struct {
12676  const char *name;
12677  void       *address;
12678}
12679lt__PROGRAM__LTX_preloaded_symbols[] =
12680{
12681  { "@PROGRAM@", (void *) 0 },
12682_LT_EOF
12683	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12684	  cat <<\_LT_EOF >> conftest.$ac_ext
12685  {0, (void *) 0}
12686};
12687
12688/* This works around a problem in FreeBSD linker */
12689#ifdef FREEBSD_WORKAROUND
12690static const void *lt_preloaded_setup() {
12691  return lt__PROGRAM__LTX_preloaded_symbols;
12692}
12693#endif
12694
12695#ifdef __cplusplus
12696}
12697#endif
12698_LT_EOF
12699	  # Now try linking the two files.
12700	  mv conftest.$ac_objext conftstm.$ac_objext
12701	  lt_globsym_save_LIBS=$LIBS
12702	  lt_globsym_save_CFLAGS=$CFLAGS
12703	  LIBS="conftstm.$ac_objext"
12704	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12705	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12706  (eval $ac_link) 2>&5
12707  ac_status=$?
12708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12710	    pipe_works=yes
12711	  fi
12712	  LIBS=$lt_globsym_save_LIBS
12713	  CFLAGS=$lt_globsym_save_CFLAGS
12714	else
12715	  echo "cannot find nm_test_func in $nlist" >&5
12716	fi
12717      else
12718	echo "cannot find nm_test_var in $nlist" >&5
12719      fi
12720    else
12721      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12722    fi
12723  else
12724    echo "$progname: failed program was:" >&5
12725    cat conftest.$ac_ext >&5
12726  fi
12727  rm -rf conftest* conftst*
12728
12729  # Do not use the global_symbol_pipe unless it works.
12730  if test "$pipe_works" = yes; then
12731    break
12732  else
12733    lt_cv_sys_global_symbol_pipe=
12734  fi
12735done
12736
12737fi
12738
12739if test -z "$lt_cv_sys_global_symbol_pipe"; then
12740  lt_cv_sys_global_symbol_to_cdecl=
12741fi
12742if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12744$as_echo "failed" >&6; }
12745else
12746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12747$as_echo "ok" >&6; }
12748fi
12749
12750# Response file support.
12751if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12752  nm_file_list_spec='@'
12753elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12754  nm_file_list_spec='@'
12755fi
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12784$as_echo_n "checking for sysroot... " >&6; }
12785
12786# Check whether --with-sysroot was given.
12787if test "${with_sysroot+set}" = set; then :
12788  withval=$with_sysroot;
12789else
12790  with_sysroot=no
12791fi
12792
12793
12794lt_sysroot=
12795case ${with_sysroot} in #(
12796 yes)
12797   if test "$GCC" = yes; then
12798     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12799   fi
12800   ;; #(
12801 /*)
12802   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12803   ;; #(
12804 no|'')
12805   ;; #(
12806 *)
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12808$as_echo "${with_sysroot}" >&6; }
12809   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12810   ;;
12811esac
12812
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12814$as_echo "${lt_sysroot:-no}" >&6; }
12815
12816
12817
12818
12819
12820# Check whether --enable-libtool-lock was given.
12821if test "${enable_libtool_lock+set}" = set; then :
12822  enableval=$enable_libtool_lock;
12823fi
12824
12825test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12826
12827# Some flags need to be propagated to the compiler or linker for good
12828# libtool support.
12829case $host in
12830ia64-*-hpux*)
12831  # Find out which ABI we are using.
12832  echo 'int i;' > conftest.$ac_ext
12833  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12834  (eval $ac_compile) 2>&5
12835  ac_status=$?
12836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837  test $ac_status = 0; }; then
12838    case `/usr/bin/file conftest.$ac_objext` in
12839      *ELF-32*)
12840	HPUX_IA64_MODE="32"
12841	;;
12842      *ELF-64*)
12843	HPUX_IA64_MODE="64"
12844	;;
12845    esac
12846  fi
12847  rm -rf conftest*
12848  ;;
12849*-*-irix6*)
12850  # Find out which ABI we are using.
12851  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12853  (eval $ac_compile) 2>&5
12854  ac_status=$?
12855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856  test $ac_status = 0; }; then
12857    if test "$lt_cv_prog_gnu_ld" = yes; then
12858      case `/usr/bin/file conftest.$ac_objext` in
12859	*32-bit*)
12860	  LD="${LD-ld} -melf32bsmip"
12861	  ;;
12862	*N32*)
12863	  LD="${LD-ld} -melf32bmipn32"
12864	  ;;
12865	*64-bit*)
12866	  LD="${LD-ld} -melf64bmip"
12867	;;
12868      esac
12869    else
12870      case `/usr/bin/file conftest.$ac_objext` in
12871	*32-bit*)
12872	  LD="${LD-ld} -32"
12873	  ;;
12874	*N32*)
12875	  LD="${LD-ld} -n32"
12876	  ;;
12877	*64-bit*)
12878	  LD="${LD-ld} -64"
12879	  ;;
12880      esac
12881    fi
12882  fi
12883  rm -rf conftest*
12884  ;;
12885
12886x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12887s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12888  # Find out which ABI we are using.
12889  echo 'int i;' > conftest.$ac_ext
12890  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12891  (eval $ac_compile) 2>&5
12892  ac_status=$?
12893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12894  test $ac_status = 0; }; then
12895    case `/usr/bin/file conftest.o` in
12896      *32-bit*)
12897	case $host in
12898	  x86_64-*kfreebsd*-gnu)
12899	    LD="${LD-ld} -m elf_i386_fbsd"
12900	    ;;
12901	  x86_64-*linux*)
12902	    LD="${LD-ld} -m elf_i386"
12903	    ;;
12904	  ppc64-*linux*|powerpc64-*linux*)
12905	    LD="${LD-ld} -m elf32ppclinux"
12906	    ;;
12907	  s390x-*linux*)
12908	    LD="${LD-ld} -m elf_s390"
12909	    ;;
12910	  sparc64-*linux*)
12911	    LD="${LD-ld} -m elf32_sparc"
12912	    ;;
12913	esac
12914	;;
12915      *64-bit*)
12916	case $host in
12917	  x86_64-*kfreebsd*-gnu)
12918	    LD="${LD-ld} -m elf_x86_64_fbsd"
12919	    ;;
12920	  x86_64-*linux*)
12921	    LD="${LD-ld} -m elf_x86_64"
12922	    ;;
12923	  ppc*-*linux*|powerpc*-*linux*)
12924	    LD="${LD-ld} -m elf64ppc"
12925	    ;;
12926	  s390*-*linux*|s390*-*tpf*)
12927	    LD="${LD-ld} -m elf64_s390"
12928	    ;;
12929	  sparc*-*linux*)
12930	    LD="${LD-ld} -m elf64_sparc"
12931	    ;;
12932	esac
12933	;;
12934    esac
12935  fi
12936  rm -rf conftest*
12937  ;;
12938
12939*-*-sco3.2v5*)
12940  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12941  SAVE_CFLAGS="$CFLAGS"
12942  CFLAGS="$CFLAGS -belf"
12943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12944$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12945if ${lt_cv_cc_needs_belf+:} false; then :
12946  $as_echo_n "(cached) " >&6
12947else
12948  ac_ext=c
12949ac_cpp='$CPP $CPPFLAGS'
12950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952ac_compiler_gnu=$ac_cv_c_compiler_gnu
12953
12954     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955/* end confdefs.h.  */
12956
12957int
12958main ()
12959{
12960
12961  ;
12962  return 0;
12963}
12964_ACEOF
12965if ac_fn_c_try_link "$LINENO"; then :
12966  lt_cv_cc_needs_belf=yes
12967else
12968  lt_cv_cc_needs_belf=no
12969fi
12970rm -f core conftest.err conftest.$ac_objext \
12971    conftest$ac_exeext conftest.$ac_ext
12972     ac_ext=c
12973ac_cpp='$CPP $CPPFLAGS'
12974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978fi
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12980$as_echo "$lt_cv_cc_needs_belf" >&6; }
12981  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12982    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12983    CFLAGS="$SAVE_CFLAGS"
12984  fi
12985  ;;
12986*-*solaris*)
12987  # Find out which ABI we are using.
12988  echo 'int i;' > conftest.$ac_ext
12989  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12990  (eval $ac_compile) 2>&5
12991  ac_status=$?
12992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12993  test $ac_status = 0; }; then
12994    case `/usr/bin/file conftest.o` in
12995    *64-bit*)
12996      case $lt_cv_prog_gnu_ld in
12997      yes*)
12998        case $host in
12999        i?86-*-solaris*)
13000          LD="${LD-ld} -m elf_x86_64"
13001          ;;
13002        sparc*-*-solaris*)
13003          LD="${LD-ld} -m elf64_sparc"
13004          ;;
13005        esac
13006        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13007        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13008          LD="${LD-ld}_sol2"
13009        fi
13010        ;;
13011      *)
13012	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13013	  LD="${LD-ld} -64"
13014	fi
13015	;;
13016      esac
13017      ;;
13018    esac
13019  fi
13020  rm -rf conftest*
13021  ;;
13022esac
13023
13024need_locks="$enable_libtool_lock"
13025
13026if test -n "$ac_tool_prefix"; then
13027  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13028set dummy ${ac_tool_prefix}mt; ac_word=$2
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030$as_echo_n "checking for $ac_word... " >&6; }
13031if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13032  $as_echo_n "(cached) " >&6
13033else
13034  if test -n "$MANIFEST_TOOL"; then
13035  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13036else
13037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038for as_dir in $PATH
13039do
13040  IFS=$as_save_IFS
13041  test -z "$as_dir" && as_dir=.
13042    for ac_exec_ext in '' $ac_executable_extensions; do
13043  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13044    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046    break 2
13047  fi
13048done
13049  done
13050IFS=$as_save_IFS
13051
13052fi
13053fi
13054MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13055if test -n "$MANIFEST_TOOL"; then
13056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13057$as_echo "$MANIFEST_TOOL" >&6; }
13058else
13059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060$as_echo "no" >&6; }
13061fi
13062
13063
13064fi
13065if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13066  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13067  # Extract the first word of "mt", so it can be a program name with args.
13068set dummy mt; ac_word=$2
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070$as_echo_n "checking for $ac_word... " >&6; }
13071if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13072  $as_echo_n "(cached) " >&6
13073else
13074  if test -n "$ac_ct_MANIFEST_TOOL"; then
13075  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13076else
13077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078for as_dir in $PATH
13079do
13080  IFS=$as_save_IFS
13081  test -z "$as_dir" && as_dir=.
13082    for ac_exec_ext in '' $ac_executable_extensions; do
13083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13084    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13086    break 2
13087  fi
13088done
13089  done
13090IFS=$as_save_IFS
13091
13092fi
13093fi
13094ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13095if test -n "$ac_ct_MANIFEST_TOOL"; then
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13097$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13098else
13099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100$as_echo "no" >&6; }
13101fi
13102
13103  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13104    MANIFEST_TOOL=":"
13105  else
13106    case $cross_compiling:$ac_tool_warned in
13107yes:)
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13110ac_tool_warned=yes ;;
13111esac
13112    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13113  fi
13114else
13115  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13116fi
13117
13118test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13120$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13121if ${lt_cv_path_mainfest_tool+:} false; then :
13122  $as_echo_n "(cached) " >&6
13123else
13124  lt_cv_path_mainfest_tool=no
13125  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13126  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13127  cat conftest.err >&5
13128  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13129    lt_cv_path_mainfest_tool=yes
13130  fi
13131  rm -f conftest*
13132fi
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13134$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13135if test "x$lt_cv_path_mainfest_tool" != xyes; then
13136  MANIFEST_TOOL=:
13137fi
13138
13139
13140
13141
13142
13143
13144  case $host_os in
13145    rhapsody* | darwin*)
13146    if test -n "$ac_tool_prefix"; then
13147  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13148set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13150$as_echo_n "checking for $ac_word... " >&6; }
13151if ${ac_cv_prog_DSYMUTIL+:} false; then :
13152  $as_echo_n "(cached) " >&6
13153else
13154  if test -n "$DSYMUTIL"; then
13155  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13156else
13157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158for as_dir in $PATH
13159do
13160  IFS=$as_save_IFS
13161  test -z "$as_dir" && as_dir=.
13162    for ac_exec_ext in '' $ac_executable_extensions; do
13163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13164    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166    break 2
13167  fi
13168done
13169  done
13170IFS=$as_save_IFS
13171
13172fi
13173fi
13174DSYMUTIL=$ac_cv_prog_DSYMUTIL
13175if test -n "$DSYMUTIL"; then
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13177$as_echo "$DSYMUTIL" >&6; }
13178else
13179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
13181fi
13182
13183
13184fi
13185if test -z "$ac_cv_prog_DSYMUTIL"; then
13186  ac_ct_DSYMUTIL=$DSYMUTIL
13187  # Extract the first word of "dsymutil", so it can be a program name with args.
13188set dummy dsymutil; ac_word=$2
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190$as_echo_n "checking for $ac_word... " >&6; }
13191if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194  if test -n "$ac_ct_DSYMUTIL"; then
13195  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13196else
13197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198for as_dir in $PATH
13199do
13200  IFS=$as_save_IFS
13201  test -z "$as_dir" && as_dir=.
13202    for ac_exec_ext in '' $ac_executable_extensions; do
13203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206    break 2
13207  fi
13208done
13209  done
13210IFS=$as_save_IFS
13211
13212fi
13213fi
13214ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13215if test -n "$ac_ct_DSYMUTIL"; then
13216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13217$as_echo "$ac_ct_DSYMUTIL" >&6; }
13218else
13219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
13221fi
13222
13223  if test "x$ac_ct_DSYMUTIL" = x; then
13224    DSYMUTIL=":"
13225  else
13226    case $cross_compiling:$ac_tool_warned in
13227yes:)
13228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13230ac_tool_warned=yes ;;
13231esac
13232    DSYMUTIL=$ac_ct_DSYMUTIL
13233  fi
13234else
13235  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13236fi
13237
13238    if test -n "$ac_tool_prefix"; then
13239  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13240set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242$as_echo_n "checking for $ac_word... " >&6; }
13243if ${ac_cv_prog_NMEDIT+:} false; then :
13244  $as_echo_n "(cached) " >&6
13245else
13246  if test -n "$NMEDIT"; then
13247  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13248else
13249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250for as_dir in $PATH
13251do
13252  IFS=$as_save_IFS
13253  test -z "$as_dir" && as_dir=.
13254    for ac_exec_ext in '' $ac_executable_extensions; do
13255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13256    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13258    break 2
13259  fi
13260done
13261  done
13262IFS=$as_save_IFS
13263
13264fi
13265fi
13266NMEDIT=$ac_cv_prog_NMEDIT
13267if test -n "$NMEDIT"; then
13268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13269$as_echo "$NMEDIT" >&6; }
13270else
13271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272$as_echo "no" >&6; }
13273fi
13274
13275
13276fi
13277if test -z "$ac_cv_prog_NMEDIT"; then
13278  ac_ct_NMEDIT=$NMEDIT
13279  # Extract the first word of "nmedit", so it can be a program name with args.
13280set dummy nmedit; ac_word=$2
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282$as_echo_n "checking for $ac_word... " >&6; }
13283if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13284  $as_echo_n "(cached) " >&6
13285else
13286  if test -n "$ac_ct_NMEDIT"; then
13287  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13288else
13289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13290for as_dir in $PATH
13291do
13292  IFS=$as_save_IFS
13293  test -z "$as_dir" && as_dir=.
13294    for ac_exec_ext in '' $ac_executable_extensions; do
13295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13296    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13298    break 2
13299  fi
13300done
13301  done
13302IFS=$as_save_IFS
13303
13304fi
13305fi
13306ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13307if test -n "$ac_ct_NMEDIT"; then
13308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13309$as_echo "$ac_ct_NMEDIT" >&6; }
13310else
13311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312$as_echo "no" >&6; }
13313fi
13314
13315  if test "x$ac_ct_NMEDIT" = x; then
13316    NMEDIT=":"
13317  else
13318    case $cross_compiling:$ac_tool_warned in
13319yes:)
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13322ac_tool_warned=yes ;;
13323esac
13324    NMEDIT=$ac_ct_NMEDIT
13325  fi
13326else
13327  NMEDIT="$ac_cv_prog_NMEDIT"
13328fi
13329
13330    if test -n "$ac_tool_prefix"; then
13331  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13332set dummy ${ac_tool_prefix}lipo; ac_word=$2
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334$as_echo_n "checking for $ac_word... " >&6; }
13335if ${ac_cv_prog_LIPO+:} false; then :
13336  $as_echo_n "(cached) " >&6
13337else
13338  if test -n "$LIPO"; then
13339  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13340else
13341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342for as_dir in $PATH
13343do
13344  IFS=$as_save_IFS
13345  test -z "$as_dir" && as_dir=.
13346    for ac_exec_ext in '' $ac_executable_extensions; do
13347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13350    break 2
13351  fi
13352done
13353  done
13354IFS=$as_save_IFS
13355
13356fi
13357fi
13358LIPO=$ac_cv_prog_LIPO
13359if test -n "$LIPO"; then
13360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13361$as_echo "$LIPO" >&6; }
13362else
13363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364$as_echo "no" >&6; }
13365fi
13366
13367
13368fi
13369if test -z "$ac_cv_prog_LIPO"; then
13370  ac_ct_LIPO=$LIPO
13371  # Extract the first word of "lipo", so it can be a program name with args.
13372set dummy lipo; ac_word=$2
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374$as_echo_n "checking for $ac_word... " >&6; }
13375if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13376  $as_echo_n "(cached) " >&6
13377else
13378  if test -n "$ac_ct_LIPO"; then
13379  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13380else
13381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382for as_dir in $PATH
13383do
13384  IFS=$as_save_IFS
13385  test -z "$as_dir" && as_dir=.
13386    for ac_exec_ext in '' $ac_executable_extensions; do
13387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13388    ac_cv_prog_ac_ct_LIPO="lipo"
13389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13390    break 2
13391  fi
13392done
13393  done
13394IFS=$as_save_IFS
13395
13396fi
13397fi
13398ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13399if test -n "$ac_ct_LIPO"; then
13400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13401$as_echo "$ac_ct_LIPO" >&6; }
13402else
13403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404$as_echo "no" >&6; }
13405fi
13406
13407  if test "x$ac_ct_LIPO" = x; then
13408    LIPO=":"
13409  else
13410    case $cross_compiling:$ac_tool_warned in
13411yes:)
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13414ac_tool_warned=yes ;;
13415esac
13416    LIPO=$ac_ct_LIPO
13417  fi
13418else
13419  LIPO="$ac_cv_prog_LIPO"
13420fi
13421
13422    if test -n "$ac_tool_prefix"; then
13423  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13424set dummy ${ac_tool_prefix}otool; ac_word=$2
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426$as_echo_n "checking for $ac_word... " >&6; }
13427if ${ac_cv_prog_OTOOL+:} false; then :
13428  $as_echo_n "(cached) " >&6
13429else
13430  if test -n "$OTOOL"; then
13431  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13432else
13433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434for as_dir in $PATH
13435do
13436  IFS=$as_save_IFS
13437  test -z "$as_dir" && as_dir=.
13438    for ac_exec_ext in '' $ac_executable_extensions; do
13439  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442    break 2
13443  fi
13444done
13445  done
13446IFS=$as_save_IFS
13447
13448fi
13449fi
13450OTOOL=$ac_cv_prog_OTOOL
13451if test -n "$OTOOL"; then
13452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13453$as_echo "$OTOOL" >&6; }
13454else
13455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456$as_echo "no" >&6; }
13457fi
13458
13459
13460fi
13461if test -z "$ac_cv_prog_OTOOL"; then
13462  ac_ct_OTOOL=$OTOOL
13463  # Extract the first word of "otool", so it can be a program name with args.
13464set dummy otool; ac_word=$2
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13466$as_echo_n "checking for $ac_word... " >&6; }
13467if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13468  $as_echo_n "(cached) " >&6
13469else
13470  if test -n "$ac_ct_OTOOL"; then
13471  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13472else
13473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474for as_dir in $PATH
13475do
13476  IFS=$as_save_IFS
13477  test -z "$as_dir" && as_dir=.
13478    for ac_exec_ext in '' $ac_executable_extensions; do
13479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13480    ac_cv_prog_ac_ct_OTOOL="otool"
13481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13482    break 2
13483  fi
13484done
13485  done
13486IFS=$as_save_IFS
13487
13488fi
13489fi
13490ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13491if test -n "$ac_ct_OTOOL"; then
13492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13493$as_echo "$ac_ct_OTOOL" >&6; }
13494else
13495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496$as_echo "no" >&6; }
13497fi
13498
13499  if test "x$ac_ct_OTOOL" = x; then
13500    OTOOL=":"
13501  else
13502    case $cross_compiling:$ac_tool_warned in
13503yes:)
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13506ac_tool_warned=yes ;;
13507esac
13508    OTOOL=$ac_ct_OTOOL
13509  fi
13510else
13511  OTOOL="$ac_cv_prog_OTOOL"
13512fi
13513
13514    if test -n "$ac_tool_prefix"; then
13515  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13516set dummy ${ac_tool_prefix}otool64; ac_word=$2
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518$as_echo_n "checking for $ac_word... " >&6; }
13519if ${ac_cv_prog_OTOOL64+:} false; then :
13520  $as_echo_n "(cached) " >&6
13521else
13522  if test -n "$OTOOL64"; then
13523  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13524else
13525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $PATH
13527do
13528  IFS=$as_save_IFS
13529  test -z "$as_dir" && as_dir=.
13530    for ac_exec_ext in '' $ac_executable_extensions; do
13531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534    break 2
13535  fi
13536done
13537  done
13538IFS=$as_save_IFS
13539
13540fi
13541fi
13542OTOOL64=$ac_cv_prog_OTOOL64
13543if test -n "$OTOOL64"; then
13544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13545$as_echo "$OTOOL64" >&6; }
13546else
13547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548$as_echo "no" >&6; }
13549fi
13550
13551
13552fi
13553if test -z "$ac_cv_prog_OTOOL64"; then
13554  ac_ct_OTOOL64=$OTOOL64
13555  # Extract the first word of "otool64", so it can be a program name with args.
13556set dummy otool64; ac_word=$2
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558$as_echo_n "checking for $ac_word... " >&6; }
13559if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13560  $as_echo_n "(cached) " >&6
13561else
13562  if test -n "$ac_ct_OTOOL64"; then
13563  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13564else
13565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566for as_dir in $PATH
13567do
13568  IFS=$as_save_IFS
13569  test -z "$as_dir" && as_dir=.
13570    for ac_exec_ext in '' $ac_executable_extensions; do
13571  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572    ac_cv_prog_ac_ct_OTOOL64="otool64"
13573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574    break 2
13575  fi
13576done
13577  done
13578IFS=$as_save_IFS
13579
13580fi
13581fi
13582ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13583if test -n "$ac_ct_OTOOL64"; then
13584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13585$as_echo "$ac_ct_OTOOL64" >&6; }
13586else
13587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588$as_echo "no" >&6; }
13589fi
13590
13591  if test "x$ac_ct_OTOOL64" = x; then
13592    OTOOL64=":"
13593  else
13594    case $cross_compiling:$ac_tool_warned in
13595yes:)
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13598ac_tool_warned=yes ;;
13599esac
13600    OTOOL64=$ac_ct_OTOOL64
13601  fi
13602else
13603  OTOOL64="$ac_cv_prog_OTOOL64"
13604fi
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13633$as_echo_n "checking for -single_module linker flag... " >&6; }
13634if ${lt_cv_apple_cc_single_mod+:} false; then :
13635  $as_echo_n "(cached) " >&6
13636else
13637  lt_cv_apple_cc_single_mod=no
13638      if test -z "${LT_MULTI_MODULE}"; then
13639	# By default we will add the -single_module flag. You can override
13640	# by either setting the environment variable LT_MULTI_MODULE
13641	# non-empty at configure time, or by adding -multi_module to the
13642	# link flags.
13643	rm -rf libconftest.dylib*
13644	echo "int foo(void){return 1;}" > conftest.c
13645	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13646-dynamiclib -Wl,-single_module conftest.c" >&5
13647	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13648	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13649        _lt_result=$?
13650	# If there is a non-empty error log, and "single_module"
13651	# appears in it, assume the flag caused a linker warning
13652        if test -s conftest.err && $GREP single_module conftest.err; then
13653	  cat conftest.err >&5
13654	# Otherwise, if the output was created with a 0 exit code from
13655	# the compiler, it worked.
13656	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13657	  lt_cv_apple_cc_single_mod=yes
13658	else
13659	  cat conftest.err >&5
13660	fi
13661	rm -rf libconftest.dylib*
13662	rm -f conftest.*
13663      fi
13664fi
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13666$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13667
13668    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13669$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13670if ${lt_cv_ld_exported_symbols_list+:} false; then :
13671  $as_echo_n "(cached) " >&6
13672else
13673  lt_cv_ld_exported_symbols_list=no
13674      save_LDFLAGS=$LDFLAGS
13675      echo "_main" > conftest.sym
13676      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13677      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678/* end confdefs.h.  */
13679
13680int
13681main ()
13682{
13683
13684  ;
13685  return 0;
13686}
13687_ACEOF
13688if ac_fn_c_try_link "$LINENO"; then :
13689  lt_cv_ld_exported_symbols_list=yes
13690else
13691  lt_cv_ld_exported_symbols_list=no
13692fi
13693rm -f core conftest.err conftest.$ac_objext \
13694    conftest$ac_exeext conftest.$ac_ext
13695	LDFLAGS="$save_LDFLAGS"
13696
13697fi
13698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13699$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13700
13701    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13702$as_echo_n "checking for -force_load linker flag... " >&6; }
13703if ${lt_cv_ld_force_load+:} false; then :
13704  $as_echo_n "(cached) " >&6
13705else
13706  lt_cv_ld_force_load=no
13707      cat > conftest.c << _LT_EOF
13708int forced_loaded() { return 2;}
13709_LT_EOF
13710      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13711      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13712      echo "$AR cru libconftest.a conftest.o" >&5
13713      $AR cru libconftest.a conftest.o 2>&5
13714      echo "$RANLIB libconftest.a" >&5
13715      $RANLIB libconftest.a 2>&5
13716      cat > conftest.c << _LT_EOF
13717int main() { return 0;}
13718_LT_EOF
13719      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13720      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13721      _lt_result=$?
13722      if test -s conftest.err && $GREP force_load conftest.err; then
13723	cat conftest.err >&5
13724      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13725	lt_cv_ld_force_load=yes
13726      else
13727	cat conftest.err >&5
13728      fi
13729        rm -f conftest.err libconftest.a conftest conftest.c
13730        rm -rf conftest.dSYM
13731
13732fi
13733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13734$as_echo "$lt_cv_ld_force_load" >&6; }
13735    case $host_os in
13736    rhapsody* | darwin1.[012])
13737      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13738    darwin1.*)
13739      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13740    darwin*) # darwin 5.x on
13741      # if running on 10.5 or later, the deployment target defaults
13742      # to the OS version, if on x86, and 10.4, the deployment
13743      # target defaults to 10.4. Don't you love it?
13744      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13745	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13746	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13747	10.[012]*)
13748	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13749	10.*)
13750	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13751      esac
13752    ;;
13753  esac
13754    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13755      _lt_dar_single_mod='$single_module'
13756    fi
13757    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13758      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13759    else
13760      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13761    fi
13762    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13763      _lt_dsymutil='~$DSYMUTIL $lib || :'
13764    else
13765      _lt_dsymutil=
13766    fi
13767    ;;
13768  esac
13769
13770for ac_header in dlfcn.h
13771do :
13772  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13773"
13774if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13775  cat >>confdefs.h <<_ACEOF
13776#define HAVE_DLFCN_H 1
13777_ACEOF
13778
13779fi
13780
13781done
13782
13783
13784
13785
13786
13787# Set options
13788
13789
13790
13791        enable_dlopen=no
13792
13793
13794  enable_win32_dll=no
13795
13796
13797            # Check whether --enable-shared was given.
13798if test "${enable_shared+set}" = set; then :
13799  enableval=$enable_shared; p=${PACKAGE-default}
13800    case $enableval in
13801    yes) enable_shared=yes ;;
13802    no) enable_shared=no ;;
13803    *)
13804      enable_shared=no
13805      # Look at the argument we got.  We use all the common list separators.
13806      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13807      for pkg in $enableval; do
13808	IFS="$lt_save_ifs"
13809	if test "X$pkg" = "X$p"; then
13810	  enable_shared=yes
13811	fi
13812      done
13813      IFS="$lt_save_ifs"
13814      ;;
13815    esac
13816else
13817  enable_shared=yes
13818fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830# Check whether --with-pic was given.
13831if test "${with_pic+set}" = set; then :
13832  withval=$with_pic; lt_p=${PACKAGE-default}
13833    case $withval in
13834    yes|no) pic_mode=$withval ;;
13835    *)
13836      pic_mode=default
13837      # Look at the argument we got.  We use all the common list separators.
13838      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13839      for lt_pkg in $withval; do
13840	IFS="$lt_save_ifs"
13841	if test "X$lt_pkg" = "X$lt_p"; then
13842	  pic_mode=yes
13843	fi
13844      done
13845      IFS="$lt_save_ifs"
13846      ;;
13847    esac
13848else
13849  pic_mode=default
13850fi
13851
13852
13853test -z "$pic_mode" && pic_mode=default
13854
13855
13856
13857
13858
13859
13860
13861  # Check whether --enable-fast-install was given.
13862if test "${enable_fast_install+set}" = set; then :
13863  enableval=$enable_fast_install; p=${PACKAGE-default}
13864    case $enableval in
13865    yes) enable_fast_install=yes ;;
13866    no) enable_fast_install=no ;;
13867    *)
13868      enable_fast_install=no
13869      # Look at the argument we got.  We use all the common list separators.
13870      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13871      for pkg in $enableval; do
13872	IFS="$lt_save_ifs"
13873	if test "X$pkg" = "X$p"; then
13874	  enable_fast_install=yes
13875	fi
13876      done
13877      IFS="$lt_save_ifs"
13878      ;;
13879    esac
13880else
13881  enable_fast_install=yes
13882fi
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894# This can be used to rebuild libtool when needed
13895LIBTOOL_DEPS="$ltmain"
13896
13897# Always use our own libtool.
13898LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929test -z "$LN_S" && LN_S="ln -s"
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944if test -n "${ZSH_VERSION+set}" ; then
13945   setopt NO_GLOB_SUBST
13946fi
13947
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13949$as_echo_n "checking for objdir... " >&6; }
13950if ${lt_cv_objdir+:} false; then :
13951  $as_echo_n "(cached) " >&6
13952else
13953  rm -f .libs 2>/dev/null
13954mkdir .libs 2>/dev/null
13955if test -d .libs; then
13956  lt_cv_objdir=.libs
13957else
13958  # MS-DOS does not allow filenames that begin with a dot.
13959  lt_cv_objdir=_libs
13960fi
13961rmdir .libs 2>/dev/null
13962fi
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13964$as_echo "$lt_cv_objdir" >&6; }
13965objdir=$lt_cv_objdir
13966
13967
13968
13969
13970
13971cat >>confdefs.h <<_ACEOF
13972#define LT_OBJDIR "$lt_cv_objdir/"
13973_ACEOF
13974
13975
13976
13977
13978case $host_os in
13979aix3*)
13980  # AIX sometimes has problems with the GCC collect2 program.  For some
13981  # reason, if we set the COLLECT_NAMES environment variable, the problems
13982  # vanish in a puff of smoke.
13983  if test "X${COLLECT_NAMES+set}" != Xset; then
13984    COLLECT_NAMES=
13985    export COLLECT_NAMES
13986  fi
13987  ;;
13988esac
13989
13990# Global variables:
13991ofile=libtool
13992can_build_shared=yes
13993
13994# All known linkers require a `.a' archive for static linking (except MSVC,
13995# which needs '.lib').
13996libext=a
13997
13998with_gnu_ld="$lt_cv_prog_gnu_ld"
13999
14000old_CC="$CC"
14001old_CFLAGS="$CFLAGS"
14002
14003# Set sane defaults for various variables
14004test -z "$CC" && CC=cc
14005test -z "$LTCC" && LTCC=$CC
14006test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14007test -z "$LD" && LD=ld
14008test -z "$ac_objext" && ac_objext=o
14009
14010for cc_temp in $compiler""; do
14011  case $cc_temp in
14012    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14013    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14014    \-*) ;;
14015    *) break;;
14016  esac
14017done
14018cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14019
14020
14021# Only perform the check for file, if the check method requires it
14022test -z "$MAGIC_CMD" && MAGIC_CMD=file
14023case $deplibs_check_method in
14024file_magic*)
14025  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14027$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14028if ${lt_cv_path_MAGIC_CMD+:} false; then :
14029  $as_echo_n "(cached) " >&6
14030else
14031  case $MAGIC_CMD in
14032[\\/*] |  ?:[\\/]*)
14033  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14034  ;;
14035*)
14036  lt_save_MAGIC_CMD="$MAGIC_CMD"
14037  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14038  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14039  for ac_dir in $ac_dummy; do
14040    IFS="$lt_save_ifs"
14041    test -z "$ac_dir" && ac_dir=.
14042    if test -f $ac_dir/${ac_tool_prefix}file; then
14043      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14044      if test -n "$file_magic_test_file"; then
14045	case $deplibs_check_method in
14046	"file_magic "*)
14047	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14048	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14049	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14050	    $EGREP "$file_magic_regex" > /dev/null; then
14051	    :
14052	  else
14053	    cat <<_LT_EOF 1>&2
14054
14055*** Warning: the command libtool uses to detect shared libraries,
14056*** $file_magic_cmd, produces output that libtool cannot recognize.
14057*** The result is that libtool may fail to recognize shared libraries
14058*** as such.  This will affect the creation of libtool libraries that
14059*** depend on shared libraries, but programs linked with such libtool
14060*** libraries will work regardless of this problem.  Nevertheless, you
14061*** may want to report the problem to your system manager and/or to
14062*** bug-libtool@gnu.org
14063
14064_LT_EOF
14065	  fi ;;
14066	esac
14067      fi
14068      break
14069    fi
14070  done
14071  IFS="$lt_save_ifs"
14072  MAGIC_CMD="$lt_save_MAGIC_CMD"
14073  ;;
14074esac
14075fi
14076
14077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14078if test -n "$MAGIC_CMD"; then
14079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14080$as_echo "$MAGIC_CMD" >&6; }
14081else
14082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083$as_echo "no" >&6; }
14084fi
14085
14086
14087
14088
14089
14090if test -z "$lt_cv_path_MAGIC_CMD"; then
14091  if test -n "$ac_tool_prefix"; then
14092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14093$as_echo_n "checking for file... " >&6; }
14094if ${lt_cv_path_MAGIC_CMD+:} false; then :
14095  $as_echo_n "(cached) " >&6
14096else
14097  case $MAGIC_CMD in
14098[\\/*] |  ?:[\\/]*)
14099  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14100  ;;
14101*)
14102  lt_save_MAGIC_CMD="$MAGIC_CMD"
14103  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14104  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14105  for ac_dir in $ac_dummy; do
14106    IFS="$lt_save_ifs"
14107    test -z "$ac_dir" && ac_dir=.
14108    if test -f $ac_dir/file; then
14109      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14110      if test -n "$file_magic_test_file"; then
14111	case $deplibs_check_method in
14112	"file_magic "*)
14113	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14114	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14115	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14116	    $EGREP "$file_magic_regex" > /dev/null; then
14117	    :
14118	  else
14119	    cat <<_LT_EOF 1>&2
14120
14121*** Warning: the command libtool uses to detect shared libraries,
14122*** $file_magic_cmd, produces output that libtool cannot recognize.
14123*** The result is that libtool may fail to recognize shared libraries
14124*** as such.  This will affect the creation of libtool libraries that
14125*** depend on shared libraries, but programs linked with such libtool
14126*** libraries will work regardless of this problem.  Nevertheless, you
14127*** may want to report the problem to your system manager and/or to
14128*** bug-libtool@gnu.org
14129
14130_LT_EOF
14131	  fi ;;
14132	esac
14133      fi
14134      break
14135    fi
14136  done
14137  IFS="$lt_save_ifs"
14138  MAGIC_CMD="$lt_save_MAGIC_CMD"
14139  ;;
14140esac
14141fi
14142
14143MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14144if test -n "$MAGIC_CMD"; then
14145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14146$as_echo "$MAGIC_CMD" >&6; }
14147else
14148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149$as_echo "no" >&6; }
14150fi
14151
14152
14153  else
14154    MAGIC_CMD=:
14155  fi
14156fi
14157
14158  fi
14159  ;;
14160esac
14161
14162# Use C for the default configuration in the libtool script
14163
14164lt_save_CC="$CC"
14165ac_ext=c
14166ac_cpp='$CPP $CPPFLAGS'
14167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14169ac_compiler_gnu=$ac_cv_c_compiler_gnu
14170
14171
14172# Source file extension for C test sources.
14173ac_ext=c
14174
14175# Object file extension for compiled C test sources.
14176objext=o
14177objext=$objext
14178
14179# Code to be used in simple compile tests
14180lt_simple_compile_test_code="int some_variable = 0;"
14181
14182# Code to be used in simple link tests
14183lt_simple_link_test_code='int main(){return(0);}'
14184
14185
14186
14187
14188
14189
14190
14191# If no C compiler was specified, use CC.
14192LTCC=${LTCC-"$CC"}
14193
14194# If no C compiler flags were specified, use CFLAGS.
14195LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14196
14197# Allow CC to be a program name with arguments.
14198compiler=$CC
14199
14200# Save the default compiler, since it gets overwritten when the other
14201# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14202compiler_DEFAULT=$CC
14203
14204# save warnings/boilerplate of simple test code
14205ac_outfile=conftest.$ac_objext
14206echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14207eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14208_lt_compiler_boilerplate=`cat conftest.err`
14209$RM conftest*
14210
14211ac_outfile=conftest.$ac_objext
14212echo "$lt_simple_link_test_code" >conftest.$ac_ext
14213eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14214_lt_linker_boilerplate=`cat conftest.err`
14215$RM -r conftest*
14216
14217
14218if test -n "$compiler"; then
14219
14220lt_prog_compiler_no_builtin_flag=
14221
14222if test "$GCC" = yes; then
14223  case $cc_basename in
14224  nvcc*)
14225    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14226  *)
14227    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14228  esac
14229
14230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14231$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14232if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14233  $as_echo_n "(cached) " >&6
14234else
14235  lt_cv_prog_compiler_rtti_exceptions=no
14236   ac_outfile=conftest.$ac_objext
14237   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14238   lt_compiler_flag="-fno-rtti -fno-exceptions"
14239   # Insert the option either (1) after the last *FLAGS variable, or
14240   # (2) before a word containing "conftest.", or (3) at the end.
14241   # Note that $ac_compile itself does not contain backslashes and begins
14242   # with a dollar sign (not a hyphen), so the echo should work correctly.
14243   # The option is referenced via a variable to avoid confusing sed.
14244   lt_compile=`echo "$ac_compile" | $SED \
14245   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14246   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14247   -e 's:$: $lt_compiler_flag:'`
14248   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14249   (eval "$lt_compile" 2>conftest.err)
14250   ac_status=$?
14251   cat conftest.err >&5
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   if (exit $ac_status) && test -s "$ac_outfile"; then
14254     # The compiler can only warn and ignore the option if not recognized
14255     # So say no if there are warnings other than the usual output.
14256     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14257     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14258     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14259       lt_cv_prog_compiler_rtti_exceptions=yes
14260     fi
14261   fi
14262   $RM conftest*
14263
14264fi
14265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14266$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14267
14268if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14269    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14270else
14271    :
14272fi
14273
14274fi
14275
14276
14277
14278
14279
14280
14281  lt_prog_compiler_wl=
14282lt_prog_compiler_pic=
14283lt_prog_compiler_static=
14284
14285
14286  if test "$GCC" = yes; then
14287    lt_prog_compiler_wl='-Wl,'
14288    lt_prog_compiler_static='-static'
14289
14290    case $host_os in
14291      aix*)
14292      # All AIX code is PIC.
14293      if test "$host_cpu" = ia64; then
14294	# AIX 5 now supports IA64 processor
14295	lt_prog_compiler_static='-Bstatic'
14296      fi
14297      ;;
14298
14299    amigaos*)
14300      case $host_cpu in
14301      powerpc)
14302            # see comment about AmigaOS4 .so support
14303            lt_prog_compiler_pic='-fPIC'
14304        ;;
14305      m68k)
14306            # FIXME: we need at least 68020 code to build shared libraries, but
14307            # adding the `-m68020' flag to GCC prevents building anything better,
14308            # like `-m68040'.
14309            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14310        ;;
14311      esac
14312      ;;
14313
14314    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14315      # PIC is the default for these OSes.
14316      ;;
14317
14318    mingw* | cygwin* | pw32* | os2* | cegcc*)
14319      # This hack is so that the source file can tell whether it is being
14320      # built for inclusion in a dll (and should export symbols for example).
14321      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14322      # (--disable-auto-import) libraries
14323      lt_prog_compiler_pic='-DDLL_EXPORT'
14324      ;;
14325
14326    darwin* | rhapsody*)
14327      # PIC is the default on this platform
14328      # Common symbols not allowed in MH_DYLIB files
14329      lt_prog_compiler_pic='-fno-common'
14330      ;;
14331
14332    haiku*)
14333      # PIC is the default for Haiku.
14334      # The "-static" flag exists, but is broken.
14335      lt_prog_compiler_static=
14336      ;;
14337
14338    hpux*)
14339      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14340      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14341      # sets the default TLS model and affects inlining.
14342      case $host_cpu in
14343      hppa*64*)
14344	# +Z the default
14345	;;
14346      *)
14347	lt_prog_compiler_pic='-fPIC'
14348	;;
14349      esac
14350      ;;
14351
14352    interix[3-9]*)
14353      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14354      # Instead, we relocate shared libraries at runtime.
14355      ;;
14356
14357    msdosdjgpp*)
14358      # Just because we use GCC doesn't mean we suddenly get shared libraries
14359      # on systems that don't support them.
14360      lt_prog_compiler_can_build_shared=no
14361      enable_shared=no
14362      ;;
14363
14364    *nto* | *qnx*)
14365      # QNX uses GNU C++, but need to define -shared option too, otherwise
14366      # it will coredump.
14367      lt_prog_compiler_pic='-fPIC -shared'
14368      ;;
14369
14370    sysv4*MP*)
14371      if test -d /usr/nec; then
14372	lt_prog_compiler_pic=-Kconform_pic
14373      fi
14374      ;;
14375
14376    *)
14377      lt_prog_compiler_pic='-fPIC'
14378      ;;
14379    esac
14380
14381    case $cc_basename in
14382    nvcc*) # Cuda Compiler Driver 2.2
14383      lt_prog_compiler_wl='-Xlinker '
14384      if test -n "$lt_prog_compiler_pic"; then
14385        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14386      fi
14387      ;;
14388    esac
14389  else
14390    # PORTME Check for flag to pass linker flags through the system compiler.
14391    case $host_os in
14392    aix*)
14393      lt_prog_compiler_wl='-Wl,'
14394      if test "$host_cpu" = ia64; then
14395	# AIX 5 now supports IA64 processor
14396	lt_prog_compiler_static='-Bstatic'
14397      else
14398	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14399      fi
14400      ;;
14401
14402    mingw* | cygwin* | pw32* | os2* | cegcc*)
14403      # This hack is so that the source file can tell whether it is being
14404      # built for inclusion in a dll (and should export symbols for example).
14405      lt_prog_compiler_pic='-DDLL_EXPORT'
14406      ;;
14407
14408    hpux9* | hpux10* | hpux11*)
14409      lt_prog_compiler_wl='-Wl,'
14410      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14411      # not for PA HP-UX.
14412      case $host_cpu in
14413      hppa*64*|ia64*)
14414	# +Z the default
14415	;;
14416      *)
14417	lt_prog_compiler_pic='+Z'
14418	;;
14419      esac
14420      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14421      lt_prog_compiler_static='${wl}-a ${wl}archive'
14422      ;;
14423
14424    irix5* | irix6* | nonstopux*)
14425      lt_prog_compiler_wl='-Wl,'
14426      # PIC (with -KPIC) is the default.
14427      lt_prog_compiler_static='-non_shared'
14428      ;;
14429
14430    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14431      case $cc_basename in
14432      # old Intel for x86_64 which still supported -KPIC.
14433      ecc*)
14434	lt_prog_compiler_wl='-Wl,'
14435	lt_prog_compiler_pic='-KPIC'
14436	lt_prog_compiler_static='-static'
14437        ;;
14438      # icc used to be incompatible with GCC.
14439      # ICC 10 doesn't accept -KPIC any more.
14440      icc* | ifort*)
14441	lt_prog_compiler_wl='-Wl,'
14442	lt_prog_compiler_pic='-fPIC'
14443	lt_prog_compiler_static='-static'
14444        ;;
14445      # Lahey Fortran 8.1.
14446      lf95*)
14447	lt_prog_compiler_wl='-Wl,'
14448	lt_prog_compiler_pic='--shared'
14449	lt_prog_compiler_static='--static'
14450	;;
14451      nagfor*)
14452	# NAG Fortran compiler
14453	lt_prog_compiler_wl='-Wl,-Wl,,'
14454	lt_prog_compiler_pic='-PIC'
14455	lt_prog_compiler_static='-Bstatic'
14456	;;
14457      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14458        # Portland Group compilers (*not* the Pentium gcc compiler,
14459	# which looks to be a dead project)
14460	lt_prog_compiler_wl='-Wl,'
14461	lt_prog_compiler_pic='-fpic'
14462	lt_prog_compiler_static='-Bstatic'
14463        ;;
14464      ccc*)
14465        lt_prog_compiler_wl='-Wl,'
14466        # All Alpha code is PIC.
14467        lt_prog_compiler_static='-non_shared'
14468        ;;
14469      xl* | bgxl* | bgf* | mpixl*)
14470	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14471	lt_prog_compiler_wl='-Wl,'
14472	lt_prog_compiler_pic='-qpic'
14473	lt_prog_compiler_static='-qstaticlink'
14474	;;
14475      *)
14476	case `$CC -V 2>&1 | sed 5q` in
14477	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14478	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14479	  lt_prog_compiler_pic='-KPIC'
14480	  lt_prog_compiler_static='-Bstatic'
14481	  lt_prog_compiler_wl=''
14482	  ;;
14483	*Sun\ F* | *Sun*Fortran*)
14484	  lt_prog_compiler_pic='-KPIC'
14485	  lt_prog_compiler_static='-Bstatic'
14486	  lt_prog_compiler_wl='-Qoption ld '
14487	  ;;
14488	*Sun\ C*)
14489	  # Sun C 5.9
14490	  lt_prog_compiler_pic='-KPIC'
14491	  lt_prog_compiler_static='-Bstatic'
14492	  lt_prog_compiler_wl='-Wl,'
14493	  ;;
14494        *Intel*\ [CF]*Compiler*)
14495	  lt_prog_compiler_wl='-Wl,'
14496	  lt_prog_compiler_pic='-fPIC'
14497	  lt_prog_compiler_static='-static'
14498	  ;;
14499	*Portland\ Group*)
14500	  lt_prog_compiler_wl='-Wl,'
14501	  lt_prog_compiler_pic='-fpic'
14502	  lt_prog_compiler_static='-Bstatic'
14503	  ;;
14504	esac
14505	;;
14506      esac
14507      ;;
14508
14509    newsos6)
14510      lt_prog_compiler_pic='-KPIC'
14511      lt_prog_compiler_static='-Bstatic'
14512      ;;
14513
14514    *nto* | *qnx*)
14515      # QNX uses GNU C++, but need to define -shared option too, otherwise
14516      # it will coredump.
14517      lt_prog_compiler_pic='-fPIC -shared'
14518      ;;
14519
14520    osf3* | osf4* | osf5*)
14521      lt_prog_compiler_wl='-Wl,'
14522      # All OSF/1 code is PIC.
14523      lt_prog_compiler_static='-non_shared'
14524      ;;
14525
14526    rdos*)
14527      lt_prog_compiler_static='-non_shared'
14528      ;;
14529
14530    solaris*)
14531      lt_prog_compiler_pic='-KPIC'
14532      lt_prog_compiler_static='-Bstatic'
14533      case $cc_basename in
14534      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14535	lt_prog_compiler_wl='-Qoption ld ';;
14536      *)
14537	lt_prog_compiler_wl='-Wl,';;
14538      esac
14539      ;;
14540
14541    sunos4*)
14542      lt_prog_compiler_wl='-Qoption ld '
14543      lt_prog_compiler_pic='-PIC'
14544      lt_prog_compiler_static='-Bstatic'
14545      ;;
14546
14547    sysv4 | sysv4.2uw2* | sysv4.3*)
14548      lt_prog_compiler_wl='-Wl,'
14549      lt_prog_compiler_pic='-KPIC'
14550      lt_prog_compiler_static='-Bstatic'
14551      ;;
14552
14553    sysv4*MP*)
14554      if test -d /usr/nec ;then
14555	lt_prog_compiler_pic='-Kconform_pic'
14556	lt_prog_compiler_static='-Bstatic'
14557      fi
14558      ;;
14559
14560    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14561      lt_prog_compiler_wl='-Wl,'
14562      lt_prog_compiler_pic='-KPIC'
14563      lt_prog_compiler_static='-Bstatic'
14564      ;;
14565
14566    unicos*)
14567      lt_prog_compiler_wl='-Wl,'
14568      lt_prog_compiler_can_build_shared=no
14569      ;;
14570
14571    uts4*)
14572      lt_prog_compiler_pic='-pic'
14573      lt_prog_compiler_static='-Bstatic'
14574      ;;
14575
14576    *)
14577      lt_prog_compiler_can_build_shared=no
14578      ;;
14579    esac
14580  fi
14581
14582case $host_os in
14583  # For platforms which do not support PIC, -DPIC is meaningless:
14584  *djgpp*)
14585    lt_prog_compiler_pic=
14586    ;;
14587  *)
14588    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14589    ;;
14590esac
14591
14592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14593$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14594if ${lt_cv_prog_compiler_pic+:} false; then :
14595  $as_echo_n "(cached) " >&6
14596else
14597  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14598fi
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14600$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14601lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14602
14603#
14604# Check to make sure the PIC flag actually works.
14605#
14606if test -n "$lt_prog_compiler_pic"; then
14607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14608$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14609if ${lt_cv_prog_compiler_pic_works+:} false; then :
14610  $as_echo_n "(cached) " >&6
14611else
14612  lt_cv_prog_compiler_pic_works=no
14613   ac_outfile=conftest.$ac_objext
14614   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14615   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14616   # Insert the option either (1) after the last *FLAGS variable, or
14617   # (2) before a word containing "conftest.", or (3) at the end.
14618   # Note that $ac_compile itself does not contain backslashes and begins
14619   # with a dollar sign (not a hyphen), so the echo should work correctly.
14620   # The option is referenced via a variable to avoid confusing sed.
14621   lt_compile=`echo "$ac_compile" | $SED \
14622   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14623   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14624   -e 's:$: $lt_compiler_flag:'`
14625   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14626   (eval "$lt_compile" 2>conftest.err)
14627   ac_status=$?
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   if (exit $ac_status) && test -s "$ac_outfile"; then
14631     # The compiler can only warn and ignore the option if not recognized
14632     # So say no if there are warnings other than the usual output.
14633     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14634     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14635     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14636       lt_cv_prog_compiler_pic_works=yes
14637     fi
14638   fi
14639   $RM conftest*
14640
14641fi
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14643$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14644
14645if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14646    case $lt_prog_compiler_pic in
14647     "" | " "*) ;;
14648     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14649     esac
14650else
14651    lt_prog_compiler_pic=
14652     lt_prog_compiler_can_build_shared=no
14653fi
14654
14655fi
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667#
14668# Check to make sure the static flag actually works.
14669#
14670wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14672$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14673if ${lt_cv_prog_compiler_static_works+:} false; then :
14674  $as_echo_n "(cached) " >&6
14675else
14676  lt_cv_prog_compiler_static_works=no
14677   save_LDFLAGS="$LDFLAGS"
14678   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14679   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14680   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14681     # The linker can only warn and ignore the option if not recognized
14682     # So say no if there are warnings
14683     if test -s conftest.err; then
14684       # Append any errors to the config.log.
14685       cat conftest.err 1>&5
14686       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14687       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688       if diff conftest.exp conftest.er2 >/dev/null; then
14689         lt_cv_prog_compiler_static_works=yes
14690       fi
14691     else
14692       lt_cv_prog_compiler_static_works=yes
14693     fi
14694   fi
14695   $RM -r conftest*
14696   LDFLAGS="$save_LDFLAGS"
14697
14698fi
14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14700$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14701
14702if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14703    :
14704else
14705    lt_prog_compiler_static=
14706fi
14707
14708
14709
14710
14711
14712
14713
14714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14716if ${lt_cv_prog_compiler_c_o+:} false; then :
14717  $as_echo_n "(cached) " >&6
14718else
14719  lt_cv_prog_compiler_c_o=no
14720   $RM -r conftest 2>/dev/null
14721   mkdir conftest
14722   cd conftest
14723   mkdir out
14724   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14725
14726   lt_compiler_flag="-o out/conftest2.$ac_objext"
14727   # Insert the option either (1) after the last *FLAGS variable, or
14728   # (2) before a word containing "conftest.", or (3) at the end.
14729   # Note that $ac_compile itself does not contain backslashes and begins
14730   # with a dollar sign (not a hyphen), so the echo should work correctly.
14731   lt_compile=`echo "$ac_compile" | $SED \
14732   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734   -e 's:$: $lt_compiler_flag:'`
14735   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14736   (eval "$lt_compile" 2>out/conftest.err)
14737   ac_status=$?
14738   cat out/conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14741   then
14742     # The compiler can only warn and ignore the option if not recognized
14743     # So say no if there are warnings
14744     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14745     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14746     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14747       lt_cv_prog_compiler_c_o=yes
14748     fi
14749   fi
14750   chmod u+w . 2>&5
14751   $RM conftest*
14752   # SGI C++ compiler will create directory out/ii_files/ for
14753   # template instantiation
14754   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14755   $RM out/* && rmdir out
14756   cd ..
14757   $RM -r conftest
14758   $RM conftest*
14759
14760fi
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14762$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14763
14764
14765
14766
14767
14768
14769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14770$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14771if ${lt_cv_prog_compiler_c_o+:} false; then :
14772  $as_echo_n "(cached) " >&6
14773else
14774  lt_cv_prog_compiler_c_o=no
14775   $RM -r conftest 2>/dev/null
14776   mkdir conftest
14777   cd conftest
14778   mkdir out
14779   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14780
14781   lt_compiler_flag="-o out/conftest2.$ac_objext"
14782   # Insert the option either (1) after the last *FLAGS variable, or
14783   # (2) before a word containing "conftest.", or (3) at the end.
14784   # Note that $ac_compile itself does not contain backslashes and begins
14785   # with a dollar sign (not a hyphen), so the echo should work correctly.
14786   lt_compile=`echo "$ac_compile" | $SED \
14787   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14789   -e 's:$: $lt_compiler_flag:'`
14790   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14791   (eval "$lt_compile" 2>out/conftest.err)
14792   ac_status=$?
14793   cat out/conftest.err >&5
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14796   then
14797     # The compiler can only warn and ignore the option if not recognized
14798     # So say no if there are warnings
14799     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14800     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14801     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14802       lt_cv_prog_compiler_c_o=yes
14803     fi
14804   fi
14805   chmod u+w . 2>&5
14806   $RM conftest*
14807   # SGI C++ compiler will create directory out/ii_files/ for
14808   # template instantiation
14809   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14810   $RM out/* && rmdir out
14811   cd ..
14812   $RM -r conftest
14813   $RM conftest*
14814
14815fi
14816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14817$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14818
14819
14820
14821
14822hard_links="nottested"
14823if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14824  # do not overwrite the value of need_locks provided by the user
14825  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14826$as_echo_n "checking if we can lock with hard links... " >&6; }
14827  hard_links=yes
14828  $RM conftest*
14829  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14830  touch conftest.a
14831  ln conftest.a conftest.b 2>&5 || hard_links=no
14832  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14834$as_echo "$hard_links" >&6; }
14835  if test "$hard_links" = no; then
14836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14837$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14838    need_locks=warn
14839  fi
14840else
14841  need_locks=no
14842fi
14843
14844
14845
14846
14847
14848
14849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14850$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14851
14852  runpath_var=
14853  allow_undefined_flag=
14854  always_export_symbols=no
14855  archive_cmds=
14856  archive_expsym_cmds=
14857  compiler_needs_object=no
14858  enable_shared_with_static_runtimes=no
14859  export_dynamic_flag_spec=
14860  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14861  hardcode_automatic=no
14862  hardcode_direct=no
14863  hardcode_direct_absolute=no
14864  hardcode_libdir_flag_spec=
14865  hardcode_libdir_separator=
14866  hardcode_minus_L=no
14867  hardcode_shlibpath_var=unsupported
14868  inherit_rpath=no
14869  link_all_deplibs=unknown
14870  module_cmds=
14871  module_expsym_cmds=
14872  old_archive_from_new_cmds=
14873  old_archive_from_expsyms_cmds=
14874  thread_safe_flag_spec=
14875  whole_archive_flag_spec=
14876  # include_expsyms should be a list of space-separated symbols to be *always*
14877  # included in the symbol list
14878  include_expsyms=
14879  # exclude_expsyms can be an extended regexp of symbols to exclude
14880  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14881  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14882  # as well as any symbol that contains `d'.
14883  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14884  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14885  # platforms (ab)use it in PIC code, but their linkers get confused if
14886  # the symbol is explicitly referenced.  Since portable code cannot
14887  # rely on this symbol name, it's probably fine to never include it in
14888  # preloaded symbol tables.
14889  # Exclude shared library initialization/finalization symbols.
14890  extract_expsyms_cmds=
14891
14892  case $host_os in
14893  cygwin* | mingw* | pw32* | cegcc*)
14894    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14895    # When not using gcc, we currently assume that we are using
14896    # Microsoft Visual C++.
14897    if test "$GCC" != yes; then
14898      with_gnu_ld=no
14899    fi
14900    ;;
14901  interix*)
14902    # we just hope/assume this is gcc and not c89 (= MSVC++)
14903    with_gnu_ld=yes
14904    ;;
14905  openbsd*)
14906    with_gnu_ld=no
14907    ;;
14908  esac
14909
14910  ld_shlibs=yes
14911
14912  # On some targets, GNU ld is compatible enough with the native linker
14913  # that we're better off using the native interface for both.
14914  lt_use_gnu_ld_interface=no
14915  if test "$with_gnu_ld" = yes; then
14916    case $host_os in
14917      aix*)
14918	# The AIX port of GNU ld has always aspired to compatibility
14919	# with the native linker.  However, as the warning in the GNU ld
14920	# block says, versions before 2.19.5* couldn't really create working
14921	# shared libraries, regardless of the interface used.
14922	case `$LD -v 2>&1` in
14923	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14924	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14925	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14926	  *)
14927	    lt_use_gnu_ld_interface=yes
14928	    ;;
14929	esac
14930	;;
14931      *)
14932	lt_use_gnu_ld_interface=yes
14933	;;
14934    esac
14935  fi
14936
14937  if test "$lt_use_gnu_ld_interface" = yes; then
14938    # If archive_cmds runs LD, not CC, wlarc should be empty
14939    wlarc='${wl}'
14940
14941    # Set some defaults for GNU ld with shared library support. These
14942    # are reset later if shared libraries are not supported. Putting them
14943    # here allows them to be overridden if necessary.
14944    runpath_var=LD_RUN_PATH
14945    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14946    export_dynamic_flag_spec='${wl}--export-dynamic'
14947    # ancient GNU ld didn't support --whole-archive et. al.
14948    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14949      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14950    else
14951      whole_archive_flag_spec=
14952    fi
14953    supports_anon_versioning=no
14954    case `$LD -v 2>&1` in
14955      *GNU\ gold*) supports_anon_versioning=yes ;;
14956      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14957      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14958      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14959      *\ 2.11.*) ;; # other 2.11 versions
14960      *) supports_anon_versioning=yes ;;
14961    esac
14962
14963    # See if GNU ld supports shared libraries.
14964    case $host_os in
14965    aix[3-9]*)
14966      # On AIX/PPC, the GNU linker is very broken
14967      if test "$host_cpu" != ia64; then
14968	ld_shlibs=no
14969	cat <<_LT_EOF 1>&2
14970
14971*** Warning: the GNU linker, at least up to release 2.19, is reported
14972*** to be unable to reliably create shared libraries on AIX.
14973*** Therefore, libtool is disabling shared libraries support.  If you
14974*** really care for shared libraries, you may want to install binutils
14975*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14976*** You will then need to restart the configuration process.
14977
14978_LT_EOF
14979      fi
14980      ;;
14981
14982    amigaos*)
14983      case $host_cpu in
14984      powerpc)
14985            # see comment about AmigaOS4 .so support
14986            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14987            archive_expsym_cmds=''
14988        ;;
14989      m68k)
14990            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)'
14991            hardcode_libdir_flag_spec='-L$libdir'
14992            hardcode_minus_L=yes
14993        ;;
14994      esac
14995      ;;
14996
14997    beos*)
14998      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14999	allow_undefined_flag=unsupported
15000	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15001	# support --undefined.  This deserves some investigation.  FIXME
15002	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15003      else
15004	ld_shlibs=no
15005      fi
15006      ;;
15007
15008    cygwin* | mingw* | pw32* | cegcc*)
15009      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15010      # as there is no search path for DLLs.
15011      hardcode_libdir_flag_spec='-L$libdir'
15012      export_dynamic_flag_spec='${wl}--export-all-symbols'
15013      allow_undefined_flag=unsupported
15014      always_export_symbols=no
15015      enable_shared_with_static_runtimes=yes
15016      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'
15017      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15018
15019      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15020        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15021	# If the export-symbols file already is a .def file (1st line
15022	# is EXPORTS), use it as is; otherwise, prepend...
15023	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15024	  cp $export_symbols $output_objdir/$soname.def;
15025	else
15026	  echo EXPORTS > $output_objdir/$soname.def;
15027	  cat $export_symbols >> $output_objdir/$soname.def;
15028	fi~
15029	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15030      else
15031	ld_shlibs=no
15032      fi
15033      ;;
15034
15035    haiku*)
15036      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037      link_all_deplibs=yes
15038      ;;
15039
15040    interix[3-9]*)
15041      hardcode_direct=no
15042      hardcode_shlibpath_var=no
15043      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15044      export_dynamic_flag_spec='${wl}-E'
15045      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15046      # Instead, shared libraries are loaded at an image base (0x10000000 by
15047      # default) and relocated if they conflict, which is a slow very memory
15048      # consuming and fragmenting process.  To avoid this, we pick a random,
15049      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15050      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15051      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15052      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'
15053      ;;
15054
15055    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15056      tmp_diet=no
15057      if test "$host_os" = linux-dietlibc; then
15058	case $cc_basename in
15059	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15060	esac
15061      fi
15062      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15063	 && test "$tmp_diet" = no
15064      then
15065	tmp_addflag=' $pic_flag'
15066	tmp_sharedflag='-shared'
15067	case $cc_basename,$host_cpu in
15068        pgcc*)				# Portland Group C compiler
15069	  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'
15070	  tmp_addflag=' $pic_flag'
15071	  ;;
15072	pgf77* | pgf90* | pgf95* | pgfortran*)
15073					# Portland Group f77 and f90 compilers
15074	  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'
15075	  tmp_addflag=' $pic_flag -Mnomain' ;;
15076	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15077	  tmp_addflag=' -i_dynamic' ;;
15078	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15079	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15080	ifc* | ifort*)			# Intel Fortran compiler
15081	  tmp_addflag=' -nofor_main' ;;
15082	lf95*)				# Lahey Fortran 8.1
15083	  whole_archive_flag_spec=
15084	  tmp_sharedflag='--shared' ;;
15085	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15086	  tmp_sharedflag='-qmkshrobj'
15087	  tmp_addflag= ;;
15088	nvcc*)	# Cuda Compiler Driver 2.2
15089	  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'
15090	  compiler_needs_object=yes
15091	  ;;
15092	esac
15093	case `$CC -V 2>&1 | sed 5q` in
15094	*Sun\ C*)			# Sun C 5.9
15095	  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'
15096	  compiler_needs_object=yes
15097	  tmp_sharedflag='-G' ;;
15098	*Sun\ F*)			# Sun Fortran 8.3
15099	  tmp_sharedflag='-G' ;;
15100	esac
15101	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102
15103        if test "x$supports_anon_versioning" = xyes; then
15104          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15105	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15106	    echo "local: *; };" >> $output_objdir/$libname.ver~
15107	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15108        fi
15109
15110	case $cc_basename in
15111	xlf* | bgf* | bgxlf* | mpixlf*)
15112	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15113	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15114	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15115	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15116	  if test "x$supports_anon_versioning" = xyes; then
15117	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15118	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15119	      echo "local: *; };" >> $output_objdir/$libname.ver~
15120	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15121	  fi
15122	  ;;
15123	esac
15124      else
15125        ld_shlibs=no
15126      fi
15127      ;;
15128
15129    netbsd*)
15130      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15131	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15132	wlarc=
15133      else
15134	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15136      fi
15137      ;;
15138
15139    solaris*)
15140      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15141	ld_shlibs=no
15142	cat <<_LT_EOF 1>&2
15143
15144*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15145*** create shared libraries on Solaris systems.  Therefore, libtool
15146*** is disabling shared libraries support.  We urge you to upgrade GNU
15147*** binutils to release 2.9.1 or newer.  Another option is to modify
15148*** your PATH or compiler configuration so that the native linker is
15149*** used, and then restart.
15150
15151_LT_EOF
15152      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15153	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15154	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15155      else
15156	ld_shlibs=no
15157      fi
15158      ;;
15159
15160    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15161      case `$LD -v 2>&1` in
15162        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15163	ld_shlibs=no
15164	cat <<_LT_EOF 1>&2
15165
15166*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15167*** reliably create shared libraries on SCO systems.  Therefore, libtool
15168*** is disabling shared libraries support.  We urge you to upgrade GNU
15169*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15170*** your PATH or compiler configuration so that the native linker is
15171*** used, and then restart.
15172
15173_LT_EOF
15174	;;
15175	*)
15176	  # For security reasons, it is highly recommended that you always
15177	  # use absolute paths for naming shared libraries, and exclude the
15178	  # DT_RUNPATH tag from executables and libraries.  But doing so
15179	  # requires that you compile everything twice, which is a pain.
15180	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15181	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15182	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184	  else
15185	    ld_shlibs=no
15186	  fi
15187	;;
15188      esac
15189      ;;
15190
15191    sunos4*)
15192      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15193      wlarc=
15194      hardcode_direct=yes
15195      hardcode_shlibpath_var=no
15196      ;;
15197
15198    *)
15199      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15200	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15201	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15202      else
15203	ld_shlibs=no
15204      fi
15205      ;;
15206    esac
15207
15208    if test "$ld_shlibs" = no; then
15209      runpath_var=
15210      hardcode_libdir_flag_spec=
15211      export_dynamic_flag_spec=
15212      whole_archive_flag_spec=
15213    fi
15214  else
15215    # PORTME fill in a description of your system's linker (not GNU ld)
15216    case $host_os in
15217    aix3*)
15218      allow_undefined_flag=unsupported
15219      always_export_symbols=yes
15220      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'
15221      # Note: this linker hardcodes the directories in LIBPATH if there
15222      # are no directories specified by -L.
15223      hardcode_minus_L=yes
15224      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15225	# Neither direct hardcoding nor static linking is supported with a
15226	# broken collect2.
15227	hardcode_direct=unsupported
15228      fi
15229      ;;
15230
15231    aix[4-9]*)
15232      if test "$host_cpu" = ia64; then
15233	# On IA64, the linker does run time linking by default, so we don't
15234	# have to do anything special.
15235	aix_use_runtimelinking=no
15236	exp_sym_flag='-Bexport'
15237	no_entry_flag=""
15238      else
15239	# If we're using GNU nm, then we don't want the "-C" option.
15240	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15241	# Also, AIX nm treats weak defined symbols like other global
15242	# defined symbols, whereas GNU nm marks them as "W".
15243	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15244	  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'
15245	else
15246	  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'
15247	fi
15248	aix_use_runtimelinking=no
15249
15250	# Test if we are trying to use run time linking or normal
15251	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15252	# need to do runtime linking.
15253	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15254	  for ld_flag in $LDFLAGS; do
15255	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15256	    aix_use_runtimelinking=yes
15257	    break
15258	  fi
15259	  done
15260	  ;;
15261	esac
15262
15263	exp_sym_flag='-bexport'
15264	no_entry_flag='-bnoentry'
15265      fi
15266
15267      # When large executables or shared objects are built, AIX ld can
15268      # have problems creating the table of contents.  If linking a library
15269      # or program results in "error TOC overflow" add -mminimal-toc to
15270      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15271      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15272
15273      archive_cmds=''
15274      hardcode_direct=yes
15275      hardcode_direct_absolute=yes
15276      hardcode_libdir_separator=':'
15277      link_all_deplibs=yes
15278      file_list_spec='${wl}-f,'
15279
15280      if test "$GCC" = yes; then
15281	case $host_os in aix4.[012]|aix4.[012].*)
15282	# We only want to do this on AIX 4.2 and lower, the check
15283	# below for broken collect2 doesn't work under 4.3+
15284	  collect2name=`${CC} -print-prog-name=collect2`
15285	  if test -f "$collect2name" &&
15286	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15287	  then
15288	  # We have reworked collect2
15289	  :
15290	  else
15291	  # We have old collect2
15292	  hardcode_direct=unsupported
15293	  # It fails to find uninstalled libraries when the uninstalled
15294	  # path is not listed in the libpath.  Setting hardcode_minus_L
15295	  # to unsupported forces relinking
15296	  hardcode_minus_L=yes
15297	  hardcode_libdir_flag_spec='-L$libdir'
15298	  hardcode_libdir_separator=
15299	  fi
15300	  ;;
15301	esac
15302	shared_flag='-shared'
15303	if test "$aix_use_runtimelinking" = yes; then
15304	  shared_flag="$shared_flag "'${wl}-G'
15305	fi
15306      else
15307	# not using gcc
15308	if test "$host_cpu" = ia64; then
15309	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15310	# chokes on -Wl,-G. The following line is correct:
15311	  shared_flag='-G'
15312	else
15313	  if test "$aix_use_runtimelinking" = yes; then
15314	    shared_flag='${wl}-G'
15315	  else
15316	    shared_flag='${wl}-bM:SRE'
15317	  fi
15318	fi
15319      fi
15320
15321      export_dynamic_flag_spec='${wl}-bexpall'
15322      # It seems that -bexpall does not export symbols beginning with
15323      # underscore (_), so it is better to generate a list of symbols to export.
15324      always_export_symbols=yes
15325      if test "$aix_use_runtimelinking" = yes; then
15326	# Warning - without using the other runtime loading flags (-brtl),
15327	# -berok will link without error, but may produce a broken library.
15328	allow_undefined_flag='-berok'
15329        # Determine the default libpath from the value encoded in an
15330        # empty executable.
15331        if test "${lt_cv_aix_libpath+set}" = set; then
15332  aix_libpath=$lt_cv_aix_libpath
15333else
15334  if ${lt_cv_aix_libpath_+:} false; then :
15335  $as_echo_n "(cached) " >&6
15336else
15337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338/* end confdefs.h.  */
15339
15340int
15341main ()
15342{
15343
15344  ;
15345  return 0;
15346}
15347_ACEOF
15348if ac_fn_c_try_link "$LINENO"; then :
15349
15350  lt_aix_libpath_sed='
15351      /Import File Strings/,/^$/ {
15352	  /^0/ {
15353	      s/^0  *\([^ ]*\) *$/\1/
15354	      p
15355	  }
15356      }'
15357  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15358  # Check for a 64-bit object if we didn't find anything.
15359  if test -z "$lt_cv_aix_libpath_"; then
15360    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15361  fi
15362fi
15363rm -f core conftest.err conftest.$ac_objext \
15364    conftest$ac_exeext conftest.$ac_ext
15365  if test -z "$lt_cv_aix_libpath_"; then
15366    lt_cv_aix_libpath_="/usr/lib:/lib"
15367  fi
15368
15369fi
15370
15371  aix_libpath=$lt_cv_aix_libpath_
15372fi
15373
15374        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15375        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"
15376      else
15377	if test "$host_cpu" = ia64; then
15378	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15379	  allow_undefined_flag="-z nodefs"
15380	  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"
15381	else
15382	 # Determine the default libpath from the value encoded in an
15383	 # empty executable.
15384	 if test "${lt_cv_aix_libpath+set}" = set; then
15385  aix_libpath=$lt_cv_aix_libpath
15386else
15387  if ${lt_cv_aix_libpath_+:} false; then :
15388  $as_echo_n "(cached) " >&6
15389else
15390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391/* end confdefs.h.  */
15392
15393int
15394main ()
15395{
15396
15397  ;
15398  return 0;
15399}
15400_ACEOF
15401if ac_fn_c_try_link "$LINENO"; then :
15402
15403  lt_aix_libpath_sed='
15404      /Import File Strings/,/^$/ {
15405	  /^0/ {
15406	      s/^0  *\([^ ]*\) *$/\1/
15407	      p
15408	  }
15409      }'
15410  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15411  # Check for a 64-bit object if we didn't find anything.
15412  if test -z "$lt_cv_aix_libpath_"; then
15413    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15414  fi
15415fi
15416rm -f core conftest.err conftest.$ac_objext \
15417    conftest$ac_exeext conftest.$ac_ext
15418  if test -z "$lt_cv_aix_libpath_"; then
15419    lt_cv_aix_libpath_="/usr/lib:/lib"
15420  fi
15421
15422fi
15423
15424  aix_libpath=$lt_cv_aix_libpath_
15425fi
15426
15427	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15428	  # Warning - without using the other run time loading flags,
15429	  # -berok will link without error, but may produce a broken library.
15430	  no_undefined_flag=' ${wl}-bernotok'
15431	  allow_undefined_flag=' ${wl}-berok'
15432	  if test "$with_gnu_ld" = yes; then
15433	    # We only use this code for GNU lds that support --whole-archive.
15434	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15435	  else
15436	    # Exported symbols can be pulled into shared objects from archives
15437	    whole_archive_flag_spec='$convenience'
15438	  fi
15439	  archive_cmds_need_lc=yes
15440	  # This is similar to how AIX traditionally builds its shared libraries.
15441	  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'
15442	fi
15443      fi
15444      ;;
15445
15446    amigaos*)
15447      case $host_cpu in
15448      powerpc)
15449            # see comment about AmigaOS4 .so support
15450            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15451            archive_expsym_cmds=''
15452        ;;
15453      m68k)
15454            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)'
15455            hardcode_libdir_flag_spec='-L$libdir'
15456            hardcode_minus_L=yes
15457        ;;
15458      esac
15459      ;;
15460
15461    bsdi[45]*)
15462      export_dynamic_flag_spec=-rdynamic
15463      ;;
15464
15465    cygwin* | mingw* | pw32* | cegcc*)
15466      # When not using gcc, we currently assume that we are using
15467      # Microsoft Visual C++.
15468      # hardcode_libdir_flag_spec is actually meaningless, as there is
15469      # no search path for DLLs.
15470      case $cc_basename in
15471      cl*)
15472	# Native MSVC
15473	hardcode_libdir_flag_spec=' '
15474	allow_undefined_flag=unsupported
15475	always_export_symbols=yes
15476	file_list_spec='@'
15477	# Tell ltmain to make .lib files, not .a files.
15478	libext=lib
15479	# Tell ltmain to make .dll files, not .so files.
15480	shrext_cmds=".dll"
15481	# FIXME: Setting linknames here is a bad hack.
15482	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15483	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15484	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15485	  else
15486	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15487	  fi~
15488	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15489	  linknames='
15490	# The linker will not automatically build a static lib if we build a DLL.
15491	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15492	enable_shared_with_static_runtimes=yes
15493	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15494	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15495	# Don't use ranlib
15496	old_postinstall_cmds='chmod 644 $oldlib'
15497	postlink_cmds='lt_outputfile="@OUTPUT@"~
15498	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15499	  case $lt_outputfile in
15500	    *.exe|*.EXE) ;;
15501	    *)
15502	      lt_outputfile="$lt_outputfile.exe"
15503	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15504	      ;;
15505	  esac~
15506	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15507	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15508	    $RM "$lt_outputfile.manifest";
15509	  fi'
15510	;;
15511      *)
15512	# Assume MSVC wrapper
15513	hardcode_libdir_flag_spec=' '
15514	allow_undefined_flag=unsupported
15515	# Tell ltmain to make .lib files, not .a files.
15516	libext=lib
15517	# Tell ltmain to make .dll files, not .so files.
15518	shrext_cmds=".dll"
15519	# FIXME: Setting linknames here is a bad hack.
15520	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15521	# The linker will automatically build a .lib file if we build a DLL.
15522	old_archive_from_new_cmds='true'
15523	# FIXME: Should let the user specify the lib program.
15524	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15525	enable_shared_with_static_runtimes=yes
15526	;;
15527      esac
15528      ;;
15529
15530    darwin* | rhapsody*)
15531
15532
15533  archive_cmds_need_lc=no
15534  hardcode_direct=no
15535  hardcode_automatic=yes
15536  hardcode_shlibpath_var=unsupported
15537  if test "$lt_cv_ld_force_load" = "yes"; then
15538    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\"`'
15539
15540  else
15541    whole_archive_flag_spec=''
15542  fi
15543  link_all_deplibs=yes
15544  allow_undefined_flag="$_lt_dar_allow_undefined"
15545  case $cc_basename in
15546     ifort*) _lt_dar_can_shared=yes ;;
15547     *) _lt_dar_can_shared=$GCC ;;
15548  esac
15549  if test "$_lt_dar_can_shared" = "yes"; then
15550    output_verbose_link_cmd=func_echo_all
15551    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15552    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15553    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}"
15554    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}"
15555
15556  else
15557  ld_shlibs=no
15558  fi
15559
15560      ;;
15561
15562    dgux*)
15563      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564      hardcode_libdir_flag_spec='-L$libdir'
15565      hardcode_shlibpath_var=no
15566      ;;
15567
15568    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15569    # support.  Future versions do this automatically, but an explicit c++rt0.o
15570    # does not break anything, and helps significantly (at the cost of a little
15571    # extra space).
15572    freebsd2.2*)
15573      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15574      hardcode_libdir_flag_spec='-R$libdir'
15575      hardcode_direct=yes
15576      hardcode_shlibpath_var=no
15577      ;;
15578
15579    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15580    freebsd2.*)
15581      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15582      hardcode_direct=yes
15583      hardcode_minus_L=yes
15584      hardcode_shlibpath_var=no
15585      ;;
15586
15587    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15588    freebsd* | dragonfly*)
15589      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15590      hardcode_libdir_flag_spec='-R$libdir'
15591      hardcode_direct=yes
15592      hardcode_shlibpath_var=no
15593      ;;
15594
15595    hpux9*)
15596      if test "$GCC" = yes; then
15597	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'
15598      else
15599	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'
15600      fi
15601      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15602      hardcode_libdir_separator=:
15603      hardcode_direct=yes
15604
15605      # hardcode_minus_L: Not really in the search PATH,
15606      # but as the default location of the library.
15607      hardcode_minus_L=yes
15608      export_dynamic_flag_spec='${wl}-E'
15609      ;;
15610
15611    hpux10*)
15612      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15613	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15614      else
15615	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15616      fi
15617      if test "$with_gnu_ld" = no; then
15618	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15619	hardcode_libdir_separator=:
15620	hardcode_direct=yes
15621	hardcode_direct_absolute=yes
15622	export_dynamic_flag_spec='${wl}-E'
15623	# hardcode_minus_L: Not really in the search PATH,
15624	# but as the default location of the library.
15625	hardcode_minus_L=yes
15626      fi
15627      ;;
15628
15629    hpux11*)
15630      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15631	case $host_cpu in
15632	hppa*64*)
15633	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634	  ;;
15635	ia64*)
15636	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15637	  ;;
15638	*)
15639	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15640	  ;;
15641	esac
15642      else
15643	case $host_cpu in
15644	hppa*64*)
15645	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15646	  ;;
15647	ia64*)
15648	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15649	  ;;
15650	*)
15651
15652	  # Older versions of the 11.00 compiler do not understand -b yet
15653	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15654	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15655$as_echo_n "checking if $CC understands -b... " >&6; }
15656if ${lt_cv_prog_compiler__b+:} false; then :
15657  $as_echo_n "(cached) " >&6
15658else
15659  lt_cv_prog_compiler__b=no
15660   save_LDFLAGS="$LDFLAGS"
15661   LDFLAGS="$LDFLAGS -b"
15662   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15663   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15664     # The linker can only warn and ignore the option if not recognized
15665     # So say no if there are warnings
15666     if test -s conftest.err; then
15667       # Append any errors to the config.log.
15668       cat conftest.err 1>&5
15669       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15670       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15671       if diff conftest.exp conftest.er2 >/dev/null; then
15672         lt_cv_prog_compiler__b=yes
15673       fi
15674     else
15675       lt_cv_prog_compiler__b=yes
15676     fi
15677   fi
15678   $RM -r conftest*
15679   LDFLAGS="$save_LDFLAGS"
15680
15681fi
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15683$as_echo "$lt_cv_prog_compiler__b" >&6; }
15684
15685if test x"$lt_cv_prog_compiler__b" = xyes; then
15686    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15687else
15688    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15689fi
15690
15691	  ;;
15692	esac
15693      fi
15694      if test "$with_gnu_ld" = no; then
15695	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15696	hardcode_libdir_separator=:
15697
15698	case $host_cpu in
15699	hppa*64*|ia64*)
15700	  hardcode_direct=no
15701	  hardcode_shlibpath_var=no
15702	  ;;
15703	*)
15704	  hardcode_direct=yes
15705	  hardcode_direct_absolute=yes
15706	  export_dynamic_flag_spec='${wl}-E'
15707
15708	  # hardcode_minus_L: Not really in the search PATH,
15709	  # but as the default location of the library.
15710	  hardcode_minus_L=yes
15711	  ;;
15712	esac
15713      fi
15714      ;;
15715
15716    irix5* | irix6* | nonstopux*)
15717      if test "$GCC" = yes; then
15718	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'
15719	# Try to use the -exported_symbol ld option, if it does not
15720	# work, assume that -exports_file does not work either and
15721	# implicitly export all symbols.
15722	# This should be the same for all languages, so no per-tag cache variable.
15723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15724$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15725if ${lt_cv_irix_exported_symbol+:} false; then :
15726  $as_echo_n "(cached) " >&6
15727else
15728  save_LDFLAGS="$LDFLAGS"
15729	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15730	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731/* end confdefs.h.  */
15732int foo (void) { return 0; }
15733_ACEOF
15734if ac_fn_c_try_link "$LINENO"; then :
15735  lt_cv_irix_exported_symbol=yes
15736else
15737  lt_cv_irix_exported_symbol=no
15738fi
15739rm -f core conftest.err conftest.$ac_objext \
15740    conftest$ac_exeext conftest.$ac_ext
15741           LDFLAGS="$save_LDFLAGS"
15742fi
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15744$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15745	if test "$lt_cv_irix_exported_symbol" = yes; then
15746          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'
15747	fi
15748      else
15749	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'
15750	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'
15751      fi
15752      archive_cmds_need_lc='no'
15753      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15754      hardcode_libdir_separator=:
15755      inherit_rpath=yes
15756      link_all_deplibs=yes
15757      ;;
15758
15759    netbsd*)
15760      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15761	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15762      else
15763	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15764      fi
15765      hardcode_libdir_flag_spec='-R$libdir'
15766      hardcode_direct=yes
15767      hardcode_shlibpath_var=no
15768      ;;
15769
15770    newsos6)
15771      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772      hardcode_direct=yes
15773      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15774      hardcode_libdir_separator=:
15775      hardcode_shlibpath_var=no
15776      ;;
15777
15778    *nto* | *qnx*)
15779      ;;
15780
15781    openbsd*)
15782      if test -f /usr/libexec/ld.so; then
15783	hardcode_direct=yes
15784	hardcode_shlibpath_var=no
15785	hardcode_direct_absolute=yes
15786	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15787	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15788	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15789	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15790	  export_dynamic_flag_spec='${wl}-E'
15791	else
15792	  case $host_os in
15793	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15794	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15795	     hardcode_libdir_flag_spec='-R$libdir'
15796	     ;;
15797	   *)
15798	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15799	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15800	     ;;
15801	  esac
15802	fi
15803      else
15804	ld_shlibs=no
15805      fi
15806      ;;
15807
15808    os2*)
15809      hardcode_libdir_flag_spec='-L$libdir'
15810      hardcode_minus_L=yes
15811      allow_undefined_flag=unsupported
15812      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'
15813      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15814      ;;
15815
15816    osf3*)
15817      if test "$GCC" = yes; then
15818	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15819	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'
15820      else
15821	allow_undefined_flag=' -expect_unresolved \*'
15822	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'
15823      fi
15824      archive_cmds_need_lc='no'
15825      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15826      hardcode_libdir_separator=:
15827      ;;
15828
15829    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15830      if test "$GCC" = yes; then
15831	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15832	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'
15833	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15834      else
15835	allow_undefined_flag=' -expect_unresolved \*'
15836	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'
15837	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~
15838	$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'
15839
15840	# Both c and cxx compiler support -rpath directly
15841	hardcode_libdir_flag_spec='-rpath $libdir'
15842      fi
15843      archive_cmds_need_lc='no'
15844      hardcode_libdir_separator=:
15845      ;;
15846
15847    solaris*)
15848      no_undefined_flag=' -z defs'
15849      if test "$GCC" = yes; then
15850	wlarc='${wl}'
15851	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15852	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15853	  $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'
15854      else
15855	case `$CC -V 2>&1` in
15856	*"Compilers 5.0"*)
15857	  wlarc=''
15858	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15860	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15861	  ;;
15862	*)
15863	  wlarc='${wl}'
15864	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15865	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15866	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15867	  ;;
15868	esac
15869      fi
15870      hardcode_libdir_flag_spec='-R$libdir'
15871      hardcode_shlibpath_var=no
15872      case $host_os in
15873      solaris2.[0-5] | solaris2.[0-5].*) ;;
15874      *)
15875	# The compiler driver will combine and reorder linker options,
15876	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15877	# but is careful enough not to reorder.
15878	# Supported since Solaris 2.6 (maybe 2.5.1?)
15879	if test "$GCC" = yes; then
15880	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15881	else
15882	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15883	fi
15884	;;
15885      esac
15886      link_all_deplibs=yes
15887      ;;
15888
15889    sunos4*)
15890      if test "x$host_vendor" = xsequent; then
15891	# Use $CC to link under sequent, because it throws in some extra .o
15892	# files that make .init and .fini sections work.
15893	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15894      else
15895	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15896      fi
15897      hardcode_libdir_flag_spec='-L$libdir'
15898      hardcode_direct=yes
15899      hardcode_minus_L=yes
15900      hardcode_shlibpath_var=no
15901      ;;
15902
15903    sysv4)
15904      case $host_vendor in
15905	sni)
15906	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907	  hardcode_direct=yes # is this really true???
15908	;;
15909	siemens)
15910	  ## LD is ld it makes a PLAMLIB
15911	  ## CC just makes a GrossModule.
15912	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15913	  reload_cmds='$CC -r -o $output$reload_objs'
15914	  hardcode_direct=no
15915        ;;
15916	motorola)
15917	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15919	;;
15920      esac
15921      runpath_var='LD_RUN_PATH'
15922      hardcode_shlibpath_var=no
15923      ;;
15924
15925    sysv4.3*)
15926      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927      hardcode_shlibpath_var=no
15928      export_dynamic_flag_spec='-Bexport'
15929      ;;
15930
15931    sysv4*MP*)
15932      if test -d /usr/nec; then
15933	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934	hardcode_shlibpath_var=no
15935	runpath_var=LD_RUN_PATH
15936	hardcode_runpath_var=yes
15937	ld_shlibs=yes
15938      fi
15939      ;;
15940
15941    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15942      no_undefined_flag='${wl}-z,text'
15943      archive_cmds_need_lc=no
15944      hardcode_shlibpath_var=no
15945      runpath_var='LD_RUN_PATH'
15946
15947      if test "$GCC" = yes; then
15948	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15949	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15950      else
15951	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15952	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15953      fi
15954      ;;
15955
15956    sysv5* | sco3.2v5* | sco5v6*)
15957      # Note: We can NOT use -z defs as we might desire, because we do not
15958      # link with -lc, and that would cause any symbols used from libc to
15959      # always be unresolved, which means just about no library would
15960      # ever link correctly.  If we're not using GNU ld we use -z text
15961      # though, which does catch some bad symbols but isn't as heavy-handed
15962      # as -z defs.
15963      no_undefined_flag='${wl}-z,text'
15964      allow_undefined_flag='${wl}-z,nodefs'
15965      archive_cmds_need_lc=no
15966      hardcode_shlibpath_var=no
15967      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15968      hardcode_libdir_separator=':'
15969      link_all_deplibs=yes
15970      export_dynamic_flag_spec='${wl}-Bexport'
15971      runpath_var='LD_RUN_PATH'
15972
15973      if test "$GCC" = yes; then
15974	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15975	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15976      else
15977	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15978	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15979      fi
15980      ;;
15981
15982    uts4*)
15983      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15984      hardcode_libdir_flag_spec='-L$libdir'
15985      hardcode_shlibpath_var=no
15986      ;;
15987
15988    *)
15989      ld_shlibs=no
15990      ;;
15991    esac
15992
15993    if test x$host_vendor = xsni; then
15994      case $host in
15995      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15996	export_dynamic_flag_spec='${wl}-Blargedynsym'
15997	;;
15998      esac
15999    fi
16000  fi
16001
16002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16003$as_echo "$ld_shlibs" >&6; }
16004test "$ld_shlibs" = no && can_build_shared=no
16005
16006with_gnu_ld=$with_gnu_ld
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022#
16023# Do we need to explicitly link libc?
16024#
16025case "x$archive_cmds_need_lc" in
16026x|xyes)
16027  # Assume -lc should be added
16028  archive_cmds_need_lc=yes
16029
16030  if test "$enable_shared" = yes && test "$GCC" = yes; then
16031    case $archive_cmds in
16032    *'~'*)
16033      # FIXME: we may have to deal with multi-command sequences.
16034      ;;
16035    '$CC '*)
16036      # Test whether the compiler implicitly links with -lc since on some
16037      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16038      # to ld, don't add -lc before -lgcc.
16039      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16040$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16041if ${lt_cv_archive_cmds_need_lc+:} false; then :
16042  $as_echo_n "(cached) " >&6
16043else
16044  $RM conftest*
16045	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16046
16047	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16048  (eval $ac_compile) 2>&5
16049  ac_status=$?
16050  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16051  test $ac_status = 0; } 2>conftest.err; then
16052	  soname=conftest
16053	  lib=conftest
16054	  libobjs=conftest.$ac_objext
16055	  deplibs=
16056	  wl=$lt_prog_compiler_wl
16057	  pic_flag=$lt_prog_compiler_pic
16058	  compiler_flags=-v
16059	  linker_flags=-v
16060	  verstring=
16061	  output_objdir=.
16062	  libname=conftest
16063	  lt_save_allow_undefined_flag=$allow_undefined_flag
16064	  allow_undefined_flag=
16065	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16066  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16067  ac_status=$?
16068  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16069  test $ac_status = 0; }
16070	  then
16071	    lt_cv_archive_cmds_need_lc=no
16072	  else
16073	    lt_cv_archive_cmds_need_lc=yes
16074	  fi
16075	  allow_undefined_flag=$lt_save_allow_undefined_flag
16076	else
16077	  cat conftest.err 1>&5
16078	fi
16079	$RM conftest*
16080
16081fi
16082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16083$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16084      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16085      ;;
16086    esac
16087  fi
16088  ;;
16089esac
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16243$as_echo_n "checking dynamic linker characteristics... " >&6; }
16244
16245if test "$GCC" = yes; then
16246  case $host_os in
16247    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16248    *) lt_awk_arg="/^libraries:/" ;;
16249  esac
16250  case $host_os in
16251    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16252    *) lt_sed_strip_eq="s,=/,/,g" ;;
16253  esac
16254  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16255  case $lt_search_path_spec in
16256  *\;*)
16257    # if the path contains ";" then we assume it to be the separator
16258    # otherwise default to the standard path separator (i.e. ":") - it is
16259    # assumed that no part of a normal pathname contains ";" but that should
16260    # okay in the real world where ";" in dirpaths is itself problematic.
16261    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16262    ;;
16263  *)
16264    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16265    ;;
16266  esac
16267  # Ok, now we have the path, separated by spaces, we can step through it
16268  # and add multilib dir if necessary.
16269  lt_tmp_lt_search_path_spec=
16270  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16271  for lt_sys_path in $lt_search_path_spec; do
16272    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16273      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16274    else
16275      test -d "$lt_sys_path" && \
16276	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16277    fi
16278  done
16279  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16280BEGIN {RS=" "; FS="/|\n";} {
16281  lt_foo="";
16282  lt_count=0;
16283  for (lt_i = NF; lt_i > 0; lt_i--) {
16284    if ($lt_i != "" && $lt_i != ".") {
16285      if ($lt_i == "..") {
16286        lt_count++;
16287      } else {
16288        if (lt_count == 0) {
16289          lt_foo="/" $lt_i lt_foo;
16290        } else {
16291          lt_count--;
16292        }
16293      }
16294    }
16295  }
16296  if (lt_foo != "") { lt_freq[lt_foo]++; }
16297  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16298}'`
16299  # AWK program above erroneously prepends '/' to C:/dos/paths
16300  # for these hosts.
16301  case $host_os in
16302    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16303      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16304  esac
16305  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16306else
16307  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16308fi
16309library_names_spec=
16310libname_spec='lib$name'
16311soname_spec=
16312shrext_cmds=".so"
16313postinstall_cmds=
16314postuninstall_cmds=
16315finish_cmds=
16316finish_eval=
16317shlibpath_var=
16318shlibpath_overrides_runpath=unknown
16319version_type=none
16320dynamic_linker="$host_os ld.so"
16321sys_lib_dlsearch_path_spec="/lib /usr/lib"
16322need_lib_prefix=unknown
16323hardcode_into_libs=no
16324
16325# when you set need_version to no, make sure it does not cause -set_version
16326# flags to be left without arguments
16327need_version=unknown
16328
16329case $host_os in
16330aix3*)
16331  version_type=linux # correct to gnu/linux during the next big refactor
16332  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16333  shlibpath_var=LIBPATH
16334
16335  # AIX 3 has no versioning support, so we append a major version to the name.
16336  soname_spec='${libname}${release}${shared_ext}$major'
16337  ;;
16338
16339aix[4-9]*)
16340  version_type=linux # correct to gnu/linux during the next big refactor
16341  need_lib_prefix=no
16342  need_version=no
16343  hardcode_into_libs=yes
16344  if test "$host_cpu" = ia64; then
16345    # AIX 5 supports IA64
16346    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16347    shlibpath_var=LD_LIBRARY_PATH
16348  else
16349    # With GCC up to 2.95.x, collect2 would create an import file
16350    # for dependence libraries.  The import file would start with
16351    # the line `#! .'.  This would cause the generated library to
16352    # depend on `.', always an invalid library.  This was fixed in
16353    # development snapshots of GCC prior to 3.0.
16354    case $host_os in
16355      aix4 | aix4.[01] | aix4.[01].*)
16356      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16357	   echo ' yes '
16358	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16359	:
16360      else
16361	can_build_shared=no
16362      fi
16363      ;;
16364    esac
16365    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16366    # soname into executable. Probably we can add versioning support to
16367    # collect2, so additional links can be useful in future.
16368    if test "$aix_use_runtimelinking" = yes; then
16369      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16370      # instead of lib<name>.a to let people know that these are not
16371      # typical AIX shared libraries.
16372      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373    else
16374      # We preserve .a as extension for shared libraries through AIX4.2
16375      # and later when we are not doing run time linking.
16376      library_names_spec='${libname}${release}.a $libname.a'
16377      soname_spec='${libname}${release}${shared_ext}$major'
16378    fi
16379    shlibpath_var=LIBPATH
16380  fi
16381  ;;
16382
16383amigaos*)
16384  case $host_cpu in
16385  powerpc)
16386    # Since July 2007 AmigaOS4 officially supports .so libraries.
16387    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16388    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389    ;;
16390  m68k)
16391    library_names_spec='$libname.ixlibrary $libname.a'
16392    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16393    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'
16394    ;;
16395  esac
16396  ;;
16397
16398beos*)
16399  library_names_spec='${libname}${shared_ext}'
16400  dynamic_linker="$host_os ld.so"
16401  shlibpath_var=LIBRARY_PATH
16402  ;;
16403
16404bsdi[45]*)
16405  version_type=linux # correct to gnu/linux during the next big refactor
16406  need_version=no
16407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408  soname_spec='${libname}${release}${shared_ext}$major'
16409  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16410  shlibpath_var=LD_LIBRARY_PATH
16411  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16412  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16413  # the default ld.so.conf also contains /usr/contrib/lib and
16414  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16415  # libtool to hard-code these into programs
16416  ;;
16417
16418cygwin* | mingw* | pw32* | cegcc*)
16419  version_type=windows
16420  shrext_cmds=".dll"
16421  need_version=no
16422  need_lib_prefix=no
16423
16424  case $GCC,$cc_basename in
16425  yes,*)
16426    # gcc
16427    library_names_spec='$libname.dll.a'
16428    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16429    postinstall_cmds='base_file=`basename \${file}`~
16430      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16431      dldir=$destdir/`dirname \$dlpath`~
16432      test -d \$dldir || mkdir -p \$dldir~
16433      $install_prog $dir/$dlname \$dldir/$dlname~
16434      chmod a+x \$dldir/$dlname~
16435      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16436        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16437      fi'
16438    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16439      dlpath=$dir/\$dldll~
16440       $RM \$dlpath'
16441    shlibpath_overrides_runpath=yes
16442
16443    case $host_os in
16444    cygwin*)
16445      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16446      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447
16448      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16449      ;;
16450    mingw* | cegcc*)
16451      # MinGW DLLs use traditional 'lib' prefix
16452      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16453      ;;
16454    pw32*)
16455      # pw32 DLLs use 'pw' prefix rather than 'lib'
16456      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16457      ;;
16458    esac
16459    dynamic_linker='Win32 ld.exe'
16460    ;;
16461
16462  *,cl*)
16463    # Native MSVC
16464    libname_spec='$name'
16465    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16466    library_names_spec='${libname}.dll.lib'
16467
16468    case $build_os in
16469    mingw*)
16470      sys_lib_search_path_spec=
16471      lt_save_ifs=$IFS
16472      IFS=';'
16473      for lt_path in $LIB
16474      do
16475        IFS=$lt_save_ifs
16476        # Let DOS variable expansion print the short 8.3 style file name.
16477        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16478        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16479      done
16480      IFS=$lt_save_ifs
16481      # Convert to MSYS style.
16482      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16483      ;;
16484    cygwin*)
16485      # Convert to unix form, then to dos form, then back to unix form
16486      # but this time dos style (no spaces!) so that the unix form looks
16487      # like /cygdrive/c/PROGRA~1:/cygdr...
16488      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16489      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16490      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16491      ;;
16492    *)
16493      sys_lib_search_path_spec="$LIB"
16494      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16495        # It is most probably a Windows format PATH.
16496        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16497      else
16498        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16499      fi
16500      # FIXME: find the short name or the path components, as spaces are
16501      # common. (e.g. "Program Files" -> "PROGRA~1")
16502      ;;
16503    esac
16504
16505    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16506    postinstall_cmds='base_file=`basename \${file}`~
16507      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16508      dldir=$destdir/`dirname \$dlpath`~
16509      test -d \$dldir || mkdir -p \$dldir~
16510      $install_prog $dir/$dlname \$dldir/$dlname'
16511    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16512      dlpath=$dir/\$dldll~
16513       $RM \$dlpath'
16514    shlibpath_overrides_runpath=yes
16515    dynamic_linker='Win32 link.exe'
16516    ;;
16517
16518  *)
16519    # Assume MSVC wrapper
16520    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16521    dynamic_linker='Win32 ld.exe'
16522    ;;
16523  esac
16524  # FIXME: first we should search . and the directory the executable is in
16525  shlibpath_var=PATH
16526  ;;
16527
16528darwin* | rhapsody*)
16529  dynamic_linker="$host_os dyld"
16530  version_type=darwin
16531  need_lib_prefix=no
16532  need_version=no
16533  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16534  soname_spec='${libname}${release}${major}$shared_ext'
16535  shlibpath_overrides_runpath=yes
16536  shlibpath_var=DYLD_LIBRARY_PATH
16537  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16538
16539  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16540  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16541  ;;
16542
16543dgux*)
16544  version_type=linux # correct to gnu/linux during the next big refactor
16545  need_lib_prefix=no
16546  need_version=no
16547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16548  soname_spec='${libname}${release}${shared_ext}$major'
16549  shlibpath_var=LD_LIBRARY_PATH
16550  ;;
16551
16552freebsd* | dragonfly*)
16553  # DragonFly does not have aout.  When/if they implement a new
16554  # versioning mechanism, adjust this.
16555  if test -x /usr/bin/objformat; then
16556    objformat=`/usr/bin/objformat`
16557  else
16558    case $host_os in
16559    freebsd[23].*) objformat=aout ;;
16560    *) objformat=elf ;;
16561    esac
16562  fi
16563  version_type=freebsd-$objformat
16564  case $version_type in
16565    freebsd-elf*)
16566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16567      need_version=no
16568      need_lib_prefix=no
16569      ;;
16570    freebsd-*)
16571      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16572      need_version=yes
16573      ;;
16574  esac
16575  shlibpath_var=LD_LIBRARY_PATH
16576  case $host_os in
16577  freebsd2.*)
16578    shlibpath_overrides_runpath=yes
16579    ;;
16580  freebsd3.[01]* | freebsdelf3.[01]*)
16581    shlibpath_overrides_runpath=yes
16582    hardcode_into_libs=yes
16583    ;;
16584  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16585  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16586    shlibpath_overrides_runpath=no
16587    hardcode_into_libs=yes
16588    ;;
16589  *) # from 4.6 on, and DragonFly
16590    shlibpath_overrides_runpath=yes
16591    hardcode_into_libs=yes
16592    ;;
16593  esac
16594  ;;
16595
16596gnu*)
16597  version_type=linux # correct to gnu/linux during the next big refactor
16598  need_lib_prefix=no
16599  need_version=no
16600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16601  soname_spec='${libname}${release}${shared_ext}$major'
16602  shlibpath_var=LD_LIBRARY_PATH
16603  shlibpath_overrides_runpath=no
16604  hardcode_into_libs=yes
16605  ;;
16606
16607haiku*)
16608  version_type=linux # correct to gnu/linux during the next big refactor
16609  need_lib_prefix=no
16610  need_version=no
16611  dynamic_linker="$host_os runtime_loader"
16612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16613  soname_spec='${libname}${release}${shared_ext}$major'
16614  shlibpath_var=LIBRARY_PATH
16615  shlibpath_overrides_runpath=yes
16616  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16617  hardcode_into_libs=yes
16618  ;;
16619
16620hpux9* | hpux10* | hpux11*)
16621  # Give a soname corresponding to the major version so that dld.sl refuses to
16622  # link against other versions.
16623  version_type=sunos
16624  need_lib_prefix=no
16625  need_version=no
16626  case $host_cpu in
16627  ia64*)
16628    shrext_cmds='.so'
16629    hardcode_into_libs=yes
16630    dynamic_linker="$host_os dld.so"
16631    shlibpath_var=LD_LIBRARY_PATH
16632    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16633    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634    soname_spec='${libname}${release}${shared_ext}$major'
16635    if test "X$HPUX_IA64_MODE" = X32; then
16636      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16637    else
16638      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16639    fi
16640    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641    ;;
16642  hppa*64*)
16643    shrext_cmds='.sl'
16644    hardcode_into_libs=yes
16645    dynamic_linker="$host_os dld.sl"
16646    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16647    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16648    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649    soname_spec='${libname}${release}${shared_ext}$major'
16650    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16651    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16652    ;;
16653  *)
16654    shrext_cmds='.sl'
16655    dynamic_linker="$host_os dld.sl"
16656    shlibpath_var=SHLIB_PATH
16657    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16658    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659    soname_spec='${libname}${release}${shared_ext}$major'
16660    ;;
16661  esac
16662  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16663  postinstall_cmds='chmod 555 $lib'
16664  # or fails outright, so override atomically:
16665  install_override_mode=555
16666  ;;
16667
16668interix[3-9]*)
16669  version_type=linux # correct to gnu/linux during the next big refactor
16670  need_lib_prefix=no
16671  need_version=no
16672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16673  soname_spec='${libname}${release}${shared_ext}$major'
16674  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16675  shlibpath_var=LD_LIBRARY_PATH
16676  shlibpath_overrides_runpath=no
16677  hardcode_into_libs=yes
16678  ;;
16679
16680irix5* | irix6* | nonstopux*)
16681  case $host_os in
16682    nonstopux*) version_type=nonstopux ;;
16683    *)
16684	if test "$lt_cv_prog_gnu_ld" = yes; then
16685		version_type=linux # correct to gnu/linux during the next big refactor
16686	else
16687		version_type=irix
16688	fi ;;
16689  esac
16690  need_lib_prefix=no
16691  need_version=no
16692  soname_spec='${libname}${release}${shared_ext}$major'
16693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16694  case $host_os in
16695  irix5* | nonstopux*)
16696    libsuff= shlibsuff=
16697    ;;
16698  *)
16699    case $LD in # libtool.m4 will add one of these switches to LD
16700    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16701      libsuff= shlibsuff= libmagic=32-bit;;
16702    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16703      libsuff=32 shlibsuff=N32 libmagic=N32;;
16704    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16705      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16706    *) libsuff= shlibsuff= libmagic=never-match;;
16707    esac
16708    ;;
16709  esac
16710  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16711  shlibpath_overrides_runpath=no
16712  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16713  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16714  hardcode_into_libs=yes
16715  ;;
16716
16717# No shared lib support for Linux oldld, aout, or coff.
16718linux*oldld* | linux*aout* | linux*coff*)
16719  dynamic_linker=no
16720  ;;
16721
16722# This must be glibc/ELF.
16723linux* | k*bsd*-gnu | kopensolaris*-gnu)
16724  version_type=linux # correct to gnu/linux during the next big refactor
16725  need_lib_prefix=no
16726  need_version=no
16727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728  soname_spec='${libname}${release}${shared_ext}$major'
16729  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16730  shlibpath_var=LD_LIBRARY_PATH
16731  shlibpath_overrides_runpath=no
16732
16733  # Some binutils ld are patched to set DT_RUNPATH
16734  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16735  $as_echo_n "(cached) " >&6
16736else
16737  lt_cv_shlibpath_overrides_runpath=no
16738    save_LDFLAGS=$LDFLAGS
16739    save_libdir=$libdir
16740    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16741	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16742    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16743/* end confdefs.h.  */
16744
16745int
16746main ()
16747{
16748
16749  ;
16750  return 0;
16751}
16752_ACEOF
16753if ac_fn_c_try_link "$LINENO"; then :
16754  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16755  lt_cv_shlibpath_overrides_runpath=yes
16756fi
16757fi
16758rm -f core conftest.err conftest.$ac_objext \
16759    conftest$ac_exeext conftest.$ac_ext
16760    LDFLAGS=$save_LDFLAGS
16761    libdir=$save_libdir
16762
16763fi
16764
16765  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16766
16767  # This implies no fast_install, which is unacceptable.
16768  # Some rework will be needed to allow for fast_install
16769  # before this can be enabled.
16770  hardcode_into_libs=yes
16771
16772  # Add ABI-specific directories to the system library path.
16773  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16774
16775  # Append ld.so.conf contents to the search path
16776  if test -f /etc/ld.so.conf; then
16777    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' ' '`
16778    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16779
16780  fi
16781
16782  # We used to test for /lib/ld.so.1 and disable shared libraries on
16783  # powerpc, because MkLinux only supported shared libraries with the
16784  # GNU dynamic linker.  Since this was broken with cross compilers,
16785  # most powerpc-linux boxes support dynamic linking these days and
16786  # people can always --disable-shared, the test was removed, and we
16787  # assume the GNU/Linux dynamic linker is in use.
16788  dynamic_linker='GNU/Linux ld.so'
16789  ;;
16790
16791netbsd*)
16792  version_type=sunos
16793  need_lib_prefix=no
16794  need_version=no
16795  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16796    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16797    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16798    dynamic_linker='NetBSD (a.out) ld.so'
16799  else
16800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16801    soname_spec='${libname}${release}${shared_ext}$major'
16802    dynamic_linker='NetBSD ld.elf_so'
16803  fi
16804  shlibpath_var=LD_LIBRARY_PATH
16805  shlibpath_overrides_runpath=yes
16806  hardcode_into_libs=yes
16807  ;;
16808
16809newsos6)
16810  version_type=linux # correct to gnu/linux during the next big refactor
16811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16812  shlibpath_var=LD_LIBRARY_PATH
16813  shlibpath_overrides_runpath=yes
16814  ;;
16815
16816*nto* | *qnx*)
16817  version_type=qnx
16818  need_lib_prefix=no
16819  need_version=no
16820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821  soname_spec='${libname}${release}${shared_ext}$major'
16822  shlibpath_var=LD_LIBRARY_PATH
16823  shlibpath_overrides_runpath=no
16824  hardcode_into_libs=yes
16825  dynamic_linker='ldqnx.so'
16826  ;;
16827
16828openbsd*)
16829  version_type=sunos
16830  sys_lib_dlsearch_path_spec="/usr/lib"
16831  need_lib_prefix=no
16832  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16833  case $host_os in
16834    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16835    *)				need_version=no  ;;
16836  esac
16837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839  shlibpath_var=LD_LIBRARY_PATH
16840  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16841    case $host_os in
16842      openbsd2.[89] | openbsd2.[89].*)
16843	shlibpath_overrides_runpath=no
16844	;;
16845      *)
16846	shlibpath_overrides_runpath=yes
16847	;;
16848      esac
16849  else
16850    shlibpath_overrides_runpath=yes
16851  fi
16852  ;;
16853
16854os2*)
16855  libname_spec='$name'
16856  shrext_cmds=".dll"
16857  need_lib_prefix=no
16858  library_names_spec='$libname${shared_ext} $libname.a'
16859  dynamic_linker='OS/2 ld.exe'
16860  shlibpath_var=LIBPATH
16861  ;;
16862
16863osf3* | osf4* | osf5*)
16864  version_type=osf
16865  need_lib_prefix=no
16866  need_version=no
16867  soname_spec='${libname}${release}${shared_ext}$major'
16868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869  shlibpath_var=LD_LIBRARY_PATH
16870  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16871  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16872  ;;
16873
16874rdos*)
16875  dynamic_linker=no
16876  ;;
16877
16878solaris*)
16879  version_type=linux # correct to gnu/linux during the next big refactor
16880  need_lib_prefix=no
16881  need_version=no
16882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883  soname_spec='${libname}${release}${shared_ext}$major'
16884  shlibpath_var=LD_LIBRARY_PATH
16885  shlibpath_overrides_runpath=yes
16886  hardcode_into_libs=yes
16887  # ldd complains unless libraries are executable
16888  postinstall_cmds='chmod +x $lib'
16889  ;;
16890
16891sunos4*)
16892  version_type=sunos
16893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16894  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16895  shlibpath_var=LD_LIBRARY_PATH
16896  shlibpath_overrides_runpath=yes
16897  if test "$with_gnu_ld" = yes; then
16898    need_lib_prefix=no
16899  fi
16900  need_version=yes
16901  ;;
16902
16903sysv4 | sysv4.3*)
16904  version_type=linux # correct to gnu/linux during the next big refactor
16905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16906  soname_spec='${libname}${release}${shared_ext}$major'
16907  shlibpath_var=LD_LIBRARY_PATH
16908  case $host_vendor in
16909    sni)
16910      shlibpath_overrides_runpath=no
16911      need_lib_prefix=no
16912      runpath_var=LD_RUN_PATH
16913      ;;
16914    siemens)
16915      need_lib_prefix=no
16916      ;;
16917    motorola)
16918      need_lib_prefix=no
16919      need_version=no
16920      shlibpath_overrides_runpath=no
16921      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16922      ;;
16923  esac
16924  ;;
16925
16926sysv4*MP*)
16927  if test -d /usr/nec ;then
16928    version_type=linux # correct to gnu/linux during the next big refactor
16929    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16930    soname_spec='$libname${shared_ext}.$major'
16931    shlibpath_var=LD_LIBRARY_PATH
16932  fi
16933  ;;
16934
16935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16936  version_type=freebsd-elf
16937  need_lib_prefix=no
16938  need_version=no
16939  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16940  soname_spec='${libname}${release}${shared_ext}$major'
16941  shlibpath_var=LD_LIBRARY_PATH
16942  shlibpath_overrides_runpath=yes
16943  hardcode_into_libs=yes
16944  if test "$with_gnu_ld" = yes; then
16945    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16946  else
16947    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16948    case $host_os in
16949      sco3.2v5*)
16950        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16951	;;
16952    esac
16953  fi
16954  sys_lib_dlsearch_path_spec='/usr/lib'
16955  ;;
16956
16957tpf*)
16958  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16959  version_type=linux # correct to gnu/linux during the next big refactor
16960  need_lib_prefix=no
16961  need_version=no
16962  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963  shlibpath_var=LD_LIBRARY_PATH
16964  shlibpath_overrides_runpath=no
16965  hardcode_into_libs=yes
16966  ;;
16967
16968uts4*)
16969  version_type=linux # correct to gnu/linux during the next big refactor
16970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971  soname_spec='${libname}${release}${shared_ext}$major'
16972  shlibpath_var=LD_LIBRARY_PATH
16973  ;;
16974
16975*)
16976  dynamic_linker=no
16977  ;;
16978esac
16979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16980$as_echo "$dynamic_linker" >&6; }
16981test "$dynamic_linker" = no && can_build_shared=no
16982
16983variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16984if test "$GCC" = yes; then
16985  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16986fi
16987
16988if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16989  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16990fi
16991if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16992  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16993fi
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17087$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17088hardcode_action=
17089if test -n "$hardcode_libdir_flag_spec" ||
17090   test -n "$runpath_var" ||
17091   test "X$hardcode_automatic" = "Xyes" ; then
17092
17093  # We can hardcode non-existent directories.
17094  if test "$hardcode_direct" != no &&
17095     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17096     # have to relink, otherwise we might link with an installed library
17097     # when we should be linking with a yet-to-be-installed one
17098     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17099     test "$hardcode_minus_L" != no; then
17100    # Linking always hardcodes the temporary library directory.
17101    hardcode_action=relink
17102  else
17103    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17104    hardcode_action=immediate
17105  fi
17106else
17107  # We cannot hardcode anything, or else we can only hardcode existing
17108  # directories.
17109  hardcode_action=unsupported
17110fi
17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17112$as_echo "$hardcode_action" >&6; }
17113
17114if test "$hardcode_action" = relink ||
17115   test "$inherit_rpath" = yes; then
17116  # Fast installation is not supported
17117  enable_fast_install=no
17118elif test "$shlibpath_overrides_runpath" = yes ||
17119     test "$enable_shared" = no; then
17120  # Fast installation is not necessary
17121  enable_fast_install=needless
17122fi
17123
17124
17125
17126
17127
17128
17129  if test "x$enable_dlopen" != xyes; then
17130  enable_dlopen=unknown
17131  enable_dlopen_self=unknown
17132  enable_dlopen_self_static=unknown
17133else
17134  lt_cv_dlopen=no
17135  lt_cv_dlopen_libs=
17136
17137  case $host_os in
17138  beos*)
17139    lt_cv_dlopen="load_add_on"
17140    lt_cv_dlopen_libs=
17141    lt_cv_dlopen_self=yes
17142    ;;
17143
17144  mingw* | pw32* | cegcc*)
17145    lt_cv_dlopen="LoadLibrary"
17146    lt_cv_dlopen_libs=
17147    ;;
17148
17149  cygwin*)
17150    lt_cv_dlopen="dlopen"
17151    lt_cv_dlopen_libs=
17152    ;;
17153
17154  darwin*)
17155  # if libdl is installed we need to link against it
17156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17157$as_echo_n "checking for dlopen in -ldl... " >&6; }
17158if ${ac_cv_lib_dl_dlopen+:} false; then :
17159  $as_echo_n "(cached) " >&6
17160else
17161  ac_check_lib_save_LIBS=$LIBS
17162LIBS="-ldl  $LIBS"
17163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164/* end confdefs.h.  */
17165
17166/* Override any GCC internal prototype to avoid an error.
17167   Use char because int might match the return type of a GCC
17168   builtin and then its argument prototype would still apply.  */
17169#ifdef __cplusplus
17170extern "C"
17171#endif
17172char dlopen ();
17173int
17174main ()
17175{
17176return dlopen ();
17177  ;
17178  return 0;
17179}
17180_ACEOF
17181if ac_fn_c_try_link "$LINENO"; then :
17182  ac_cv_lib_dl_dlopen=yes
17183else
17184  ac_cv_lib_dl_dlopen=no
17185fi
17186rm -f core conftest.err conftest.$ac_objext \
17187    conftest$ac_exeext conftest.$ac_ext
17188LIBS=$ac_check_lib_save_LIBS
17189fi
17190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17191$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17192if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17193  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17194else
17195
17196    lt_cv_dlopen="dyld"
17197    lt_cv_dlopen_libs=
17198    lt_cv_dlopen_self=yes
17199
17200fi
17201
17202    ;;
17203
17204  *)
17205    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17206if test "x$ac_cv_func_shl_load" = xyes; then :
17207  lt_cv_dlopen="shl_load"
17208else
17209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17210$as_echo_n "checking for shl_load in -ldld... " >&6; }
17211if ${ac_cv_lib_dld_shl_load+:} false; then :
17212  $as_echo_n "(cached) " >&6
17213else
17214  ac_check_lib_save_LIBS=$LIBS
17215LIBS="-ldld  $LIBS"
17216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217/* end confdefs.h.  */
17218
17219/* Override any GCC internal prototype to avoid an error.
17220   Use char because int might match the return type of a GCC
17221   builtin and then its argument prototype would still apply.  */
17222#ifdef __cplusplus
17223extern "C"
17224#endif
17225char shl_load ();
17226int
17227main ()
17228{
17229return shl_load ();
17230  ;
17231  return 0;
17232}
17233_ACEOF
17234if ac_fn_c_try_link "$LINENO"; then :
17235  ac_cv_lib_dld_shl_load=yes
17236else
17237  ac_cv_lib_dld_shl_load=no
17238fi
17239rm -f core conftest.err conftest.$ac_objext \
17240    conftest$ac_exeext conftest.$ac_ext
17241LIBS=$ac_check_lib_save_LIBS
17242fi
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17244$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17245if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17246  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17247else
17248  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17249if test "x$ac_cv_func_dlopen" = xyes; then :
17250  lt_cv_dlopen="dlopen"
17251else
17252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17253$as_echo_n "checking for dlopen in -ldl... " >&6; }
17254if ${ac_cv_lib_dl_dlopen+:} false; then :
17255  $as_echo_n "(cached) " >&6
17256else
17257  ac_check_lib_save_LIBS=$LIBS
17258LIBS="-ldl  $LIBS"
17259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260/* end confdefs.h.  */
17261
17262/* Override any GCC internal prototype to avoid an error.
17263   Use char because int might match the return type of a GCC
17264   builtin and then its argument prototype would still apply.  */
17265#ifdef __cplusplus
17266extern "C"
17267#endif
17268char dlopen ();
17269int
17270main ()
17271{
17272return dlopen ();
17273  ;
17274  return 0;
17275}
17276_ACEOF
17277if ac_fn_c_try_link "$LINENO"; then :
17278  ac_cv_lib_dl_dlopen=yes
17279else
17280  ac_cv_lib_dl_dlopen=no
17281fi
17282rm -f core conftest.err conftest.$ac_objext \
17283    conftest$ac_exeext conftest.$ac_ext
17284LIBS=$ac_check_lib_save_LIBS
17285fi
17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17287$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17288if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17289  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17290else
17291  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17292$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17293if ${ac_cv_lib_svld_dlopen+:} false; then :
17294  $as_echo_n "(cached) " >&6
17295else
17296  ac_check_lib_save_LIBS=$LIBS
17297LIBS="-lsvld  $LIBS"
17298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17299/* end confdefs.h.  */
17300
17301/* Override any GCC internal prototype to avoid an error.
17302   Use char because int might match the return type of a GCC
17303   builtin and then its argument prototype would still apply.  */
17304#ifdef __cplusplus
17305extern "C"
17306#endif
17307char dlopen ();
17308int
17309main ()
17310{
17311return dlopen ();
17312  ;
17313  return 0;
17314}
17315_ACEOF
17316if ac_fn_c_try_link "$LINENO"; then :
17317  ac_cv_lib_svld_dlopen=yes
17318else
17319  ac_cv_lib_svld_dlopen=no
17320fi
17321rm -f core conftest.err conftest.$ac_objext \
17322    conftest$ac_exeext conftest.$ac_ext
17323LIBS=$ac_check_lib_save_LIBS
17324fi
17325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17326$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17327if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17328  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17329else
17330  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17331$as_echo_n "checking for dld_link in -ldld... " >&6; }
17332if ${ac_cv_lib_dld_dld_link+:} false; then :
17333  $as_echo_n "(cached) " >&6
17334else
17335  ac_check_lib_save_LIBS=$LIBS
17336LIBS="-ldld  $LIBS"
17337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339
17340/* Override any GCC internal prototype to avoid an error.
17341   Use char because int might match the return type of a GCC
17342   builtin and then its argument prototype would still apply.  */
17343#ifdef __cplusplus
17344extern "C"
17345#endif
17346char dld_link ();
17347int
17348main ()
17349{
17350return dld_link ();
17351  ;
17352  return 0;
17353}
17354_ACEOF
17355if ac_fn_c_try_link "$LINENO"; then :
17356  ac_cv_lib_dld_dld_link=yes
17357else
17358  ac_cv_lib_dld_dld_link=no
17359fi
17360rm -f core conftest.err conftest.$ac_objext \
17361    conftest$ac_exeext conftest.$ac_ext
17362LIBS=$ac_check_lib_save_LIBS
17363fi
17364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17365$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17366if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17367  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17368fi
17369
17370
17371fi
17372
17373
17374fi
17375
17376
17377fi
17378
17379
17380fi
17381
17382
17383fi
17384
17385    ;;
17386  esac
17387
17388  if test "x$lt_cv_dlopen" != xno; then
17389    enable_dlopen=yes
17390  else
17391    enable_dlopen=no
17392  fi
17393
17394  case $lt_cv_dlopen in
17395  dlopen)
17396    save_CPPFLAGS="$CPPFLAGS"
17397    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17398
17399    save_LDFLAGS="$LDFLAGS"
17400    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17401
17402    save_LIBS="$LIBS"
17403    LIBS="$lt_cv_dlopen_libs $LIBS"
17404
17405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17406$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17407if ${lt_cv_dlopen_self+:} false; then :
17408  $as_echo_n "(cached) " >&6
17409else
17410  	  if test "$cross_compiling" = yes; then :
17411  lt_cv_dlopen_self=cross
17412else
17413  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17414  lt_status=$lt_dlunknown
17415  cat > conftest.$ac_ext <<_LT_EOF
17416#line $LINENO "configure"
17417#include "confdefs.h"
17418
17419#if HAVE_DLFCN_H
17420#include <dlfcn.h>
17421#endif
17422
17423#include <stdio.h>
17424
17425#ifdef RTLD_GLOBAL
17426#  define LT_DLGLOBAL		RTLD_GLOBAL
17427#else
17428#  ifdef DL_GLOBAL
17429#    define LT_DLGLOBAL		DL_GLOBAL
17430#  else
17431#    define LT_DLGLOBAL		0
17432#  endif
17433#endif
17434
17435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17436   find out it does not work in some platform. */
17437#ifndef LT_DLLAZY_OR_NOW
17438#  ifdef RTLD_LAZY
17439#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17440#  else
17441#    ifdef DL_LAZY
17442#      define LT_DLLAZY_OR_NOW		DL_LAZY
17443#    else
17444#      ifdef RTLD_NOW
17445#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17446#      else
17447#        ifdef DL_NOW
17448#          define LT_DLLAZY_OR_NOW	DL_NOW
17449#        else
17450#          define LT_DLLAZY_OR_NOW	0
17451#        endif
17452#      endif
17453#    endif
17454#  endif
17455#endif
17456
17457/* When -fvisbility=hidden is used, assume the code has been annotated
17458   correspondingly for the symbols needed.  */
17459#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17460int fnord () __attribute__((visibility("default")));
17461#endif
17462
17463int fnord () { return 42; }
17464int main ()
17465{
17466  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17467  int status = $lt_dlunknown;
17468
17469  if (self)
17470    {
17471      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17472      else
17473        {
17474	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17475          else puts (dlerror ());
17476	}
17477      /* dlclose (self); */
17478    }
17479  else
17480    puts (dlerror ());
17481
17482  return status;
17483}
17484_LT_EOF
17485  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17486  (eval $ac_link) 2>&5
17487  ac_status=$?
17488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17490    (./conftest; exit; ) >&5 2>/dev/null
17491    lt_status=$?
17492    case x$lt_status in
17493      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17494      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17495      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17496    esac
17497  else :
17498    # compilation failed
17499    lt_cv_dlopen_self=no
17500  fi
17501fi
17502rm -fr conftest*
17503
17504
17505fi
17506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17507$as_echo "$lt_cv_dlopen_self" >&6; }
17508
17509    if test "x$lt_cv_dlopen_self" = xyes; then
17510      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17511      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17512$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17513if ${lt_cv_dlopen_self_static+:} false; then :
17514  $as_echo_n "(cached) " >&6
17515else
17516  	  if test "$cross_compiling" = yes; then :
17517  lt_cv_dlopen_self_static=cross
17518else
17519  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17520  lt_status=$lt_dlunknown
17521  cat > conftest.$ac_ext <<_LT_EOF
17522#line $LINENO "configure"
17523#include "confdefs.h"
17524
17525#if HAVE_DLFCN_H
17526#include <dlfcn.h>
17527#endif
17528
17529#include <stdio.h>
17530
17531#ifdef RTLD_GLOBAL
17532#  define LT_DLGLOBAL		RTLD_GLOBAL
17533#else
17534#  ifdef DL_GLOBAL
17535#    define LT_DLGLOBAL		DL_GLOBAL
17536#  else
17537#    define LT_DLGLOBAL		0
17538#  endif
17539#endif
17540
17541/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17542   find out it does not work in some platform. */
17543#ifndef LT_DLLAZY_OR_NOW
17544#  ifdef RTLD_LAZY
17545#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17546#  else
17547#    ifdef DL_LAZY
17548#      define LT_DLLAZY_OR_NOW		DL_LAZY
17549#    else
17550#      ifdef RTLD_NOW
17551#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17552#      else
17553#        ifdef DL_NOW
17554#          define LT_DLLAZY_OR_NOW	DL_NOW
17555#        else
17556#          define LT_DLLAZY_OR_NOW	0
17557#        endif
17558#      endif
17559#    endif
17560#  endif
17561#endif
17562
17563/* When -fvisbility=hidden is used, assume the code has been annotated
17564   correspondingly for the symbols needed.  */
17565#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17566int fnord () __attribute__((visibility("default")));
17567#endif
17568
17569int fnord () { return 42; }
17570int main ()
17571{
17572  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17573  int status = $lt_dlunknown;
17574
17575  if (self)
17576    {
17577      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17578      else
17579        {
17580	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17581          else puts (dlerror ());
17582	}
17583      /* dlclose (self); */
17584    }
17585  else
17586    puts (dlerror ());
17587
17588  return status;
17589}
17590_LT_EOF
17591  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17592  (eval $ac_link) 2>&5
17593  ac_status=$?
17594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17595  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17596    (./conftest; exit; ) >&5 2>/dev/null
17597    lt_status=$?
17598    case x$lt_status in
17599      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17600      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17601      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17602    esac
17603  else :
17604    # compilation failed
17605    lt_cv_dlopen_self_static=no
17606  fi
17607fi
17608rm -fr conftest*
17609
17610
17611fi
17612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17613$as_echo "$lt_cv_dlopen_self_static" >&6; }
17614    fi
17615
17616    CPPFLAGS="$save_CPPFLAGS"
17617    LDFLAGS="$save_LDFLAGS"
17618    LIBS="$save_LIBS"
17619    ;;
17620  esac
17621
17622  case $lt_cv_dlopen_self in
17623  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17624  *) enable_dlopen_self=unknown ;;
17625  esac
17626
17627  case $lt_cv_dlopen_self_static in
17628  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17629  *) enable_dlopen_self_static=unknown ;;
17630  esac
17631fi
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649striplib=
17650old_striplib=
17651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17652$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17653if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17654  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17655  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17657$as_echo "yes" >&6; }
17658else
17659# FIXME - insert some real tests, host_os isn't really good enough
17660  case $host_os in
17661  darwin*)
17662    if test -n "$STRIP" ; then
17663      striplib="$STRIP -x"
17664      old_striplib="$STRIP -S"
17665      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17666$as_echo "yes" >&6; }
17667    else
17668      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669$as_echo "no" >&6; }
17670    fi
17671    ;;
17672  *)
17673    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17674$as_echo "no" >&6; }
17675    ;;
17676  esac
17677fi
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690  # Report which library types will actually be built
17691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17692$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17694$as_echo "$can_build_shared" >&6; }
17695
17696  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17697$as_echo_n "checking whether to build shared libraries... " >&6; }
17698  test "$can_build_shared" = "no" && enable_shared=no
17699
17700  # On AIX, shared libraries and static libraries use the same namespace, and
17701  # are all built from PIC.
17702  case $host_os in
17703  aix3*)
17704    test "$enable_shared" = yes && enable_static=no
17705    if test -n "$RANLIB"; then
17706      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17707      postinstall_cmds='$RANLIB $lib'
17708    fi
17709    ;;
17710
17711  aix[4-9]*)
17712    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17713      test "$enable_shared" = yes && enable_static=no
17714    fi
17715    ;;
17716  esac
17717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17718$as_echo "$enable_shared" >&6; }
17719
17720  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17721$as_echo_n "checking whether to build static libraries... " >&6; }
17722  # Make sure either enable_shared or enable_static is yes.
17723  test "$enable_shared" = yes || enable_static=yes
17724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17725$as_echo "$enable_static" >&6; }
17726
17727
17728
17729
17730fi
17731ac_ext=c
17732ac_cpp='$CPP $CPPFLAGS'
17733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17735ac_compiler_gnu=$ac_cv_c_compiler_gnu
17736
17737CC="$lt_save_CC"
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753        ac_config_commands="$ac_config_commands libtool"
17754
17755
17756
17757
17758# Only expand once:
17759
17760
17761
17762
17763
17764# Define a configure option for an alternate module directory
17765
17766# Check whether --with-xorg-module-dir was given.
17767if test "${with_xorg_module_dir+set}" = set; then :
17768  withval=$with_xorg_module_dir; moduledir="$withval"
17769else
17770  moduledir="$libdir/xorg/modules"
17771fi
17772
17773
17774# Check whether --enable-dri was given.
17775if test "${enable_dri+set}" = set; then :
17776  enableval=$enable_dri; DRI="$enableval"
17777else
17778  DRI=auto
17779fi
17780
17781
17782# Store the list of server defined optional extensions in REQUIRED_MODULES
17783
17784
17785	SAVE_CFLAGS="$CFLAGS"
17786	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17787	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788/* end confdefs.h.  */
17789
17790#include "xorg-server.h"
17791#if !defined RANDR
17792#error RANDR not defined
17793#endif
17794
17795int
17796main ()
17797{
17798
17799  ;
17800  return 0;
17801}
17802_ACEOF
17803if ac_fn_c_try_compile "$LINENO"; then :
17804  _EXT_CHECK=yes
17805else
17806  _EXT_CHECK=no
17807fi
17808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809	CFLAGS="$SAVE_CFLAGS"
17810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17811$as_echo_n "checking if RANDR is defined... " >&6; }
17812	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17813$as_echo "$_EXT_CHECK" >&6; }
17814	if test "$_EXT_CHECK" != no; then
17815		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17816	fi
17817
17818
17819
17820	SAVE_CFLAGS="$CFLAGS"
17821	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17822	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823/* end confdefs.h.  */
17824
17825#include "xorg-server.h"
17826#if !defined RENDER
17827#error RENDER not defined
17828#endif
17829
17830int
17831main ()
17832{
17833
17834  ;
17835  return 0;
17836}
17837_ACEOF
17838if ac_fn_c_try_compile "$LINENO"; then :
17839  _EXT_CHECK=yes
17840else
17841  _EXT_CHECK=no
17842fi
17843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844	CFLAGS="$SAVE_CFLAGS"
17845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17846$as_echo_n "checking if RENDER is defined... " >&6; }
17847	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17848$as_echo "$_EXT_CHECK" >&6; }
17849	if test "$_EXT_CHECK" != no; then
17850		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17851	fi
17852
17853
17854
17855	SAVE_CFLAGS="$CFLAGS"
17856	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17857	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858/* end confdefs.h.  */
17859
17860#include "xorg-server.h"
17861#if !defined XV
17862#error XV not defined
17863#endif
17864
17865int
17866main ()
17867{
17868
17869  ;
17870  return 0;
17871}
17872_ACEOF
17873if ac_fn_c_try_compile "$LINENO"; then :
17874  _EXT_CHECK=yes
17875else
17876  _EXT_CHECK=no
17877fi
17878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879	CFLAGS="$SAVE_CFLAGS"
17880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17881$as_echo_n "checking if XV is defined... " >&6; }
17882	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17883$as_echo "$_EXT_CHECK" >&6; }
17884	if test "$_EXT_CHECK" != no; then
17885		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17886	fi
17887
17888
17889
17890	SAVE_CFLAGS="$CFLAGS"
17891	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17892	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893/* end confdefs.h.  */
17894
17895#include "xorg-server.h"
17896#if !defined DPMSExtension
17897#error DPMSExtension not defined
17898#endif
17899
17900int
17901main ()
17902{
17903
17904  ;
17905  return 0;
17906}
17907_ACEOF
17908if ac_fn_c_try_compile "$LINENO"; then :
17909  _EXT_CHECK=yes
17910else
17911  _EXT_CHECK=no
17912fi
17913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17914	CFLAGS="$SAVE_CFLAGS"
17915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17916$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17917	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17918$as_echo "$_EXT_CHECK" >&6; }
17919	if test "$_EXT_CHECK" != no; then
17920		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17921	fi
17922
17923
17924# Obtain compiler/linker options for the driver dependencies
17925
17926pkg_failed=no
17927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17928$as_echo_n "checking for XORG... " >&6; }
17929
17930if test -n "$XORG_CFLAGS"; then
17931    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17932 elif test -n "$PKG_CONFIG"; then
17933    if test -n "$PKG_CONFIG" && \
17934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17935  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
17936  ac_status=$?
17937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17938  test $ac_status = 0; }; then
17939  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17940else
17941  pkg_failed=yes
17942fi
17943 else
17944    pkg_failed=untried
17945fi
17946if test -n "$XORG_LIBS"; then
17947    pkg_cv_XORG_LIBS="$XORG_LIBS"
17948 elif test -n "$PKG_CONFIG"; then
17949    if test -n "$PKG_CONFIG" && \
17950    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17951  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
17952  ac_status=$?
17953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17954  test $ac_status = 0; }; then
17955  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17956else
17957  pkg_failed=yes
17958fi
17959 else
17960    pkg_failed=untried
17961fi
17962
17963
17964
17965if test $pkg_failed = yes; then
17966   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17967$as_echo "no" >&6; }
17968
17969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17970        _pkg_short_errors_supported=yes
17971else
17972        _pkg_short_errors_supported=no
17973fi
17974        if test $_pkg_short_errors_supported = yes; then
17975	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17976        else
17977	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17978        fi
17979	# Put the nasty error message in config.log where it belongs
17980	echo "$XORG_PKG_ERRORS" >&5
17981
17982	as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
17983
17984$XORG_PKG_ERRORS
17985
17986Consider adjusting the PKG_CONFIG_PATH environment variable if you
17987installed software in a non-standard prefix.
17988
17989Alternatively, you may set the environment variables XORG_CFLAGS
17990and XORG_LIBS to avoid the need to call pkg-config.
17991See the pkg-config man page for more details." "$LINENO" 5
17992
17993elif test $pkg_failed = untried; then
17994     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995$as_echo "no" >&6; }
17996	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17998as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17999is in your PATH or set the PKG_CONFIG environment variable to the full
18000path to pkg-config.
18001
18002Alternatively, you may set the environment variables XORG_CFLAGS
18003and XORG_LIBS to avoid the need to call pkg-config.
18004See the pkg-config man page for more details.
18005
18006To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18007See \`config.log' for more details" "$LINENO" 5; }
18008
18009else
18010	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18011	XORG_LIBS=$pkg_cv_XORG_LIBS
18012        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18013$as_echo "yes" >&6; }
18014
18015fi
18016
18017pkg_failed=no
18018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18019$as_echo_n "checking for XEXT... " >&6; }
18020
18021if test -n "$XEXT_CFLAGS"; then
18022    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18023 elif test -n "$PKG_CONFIG"; then
18024    if test -n "$PKG_CONFIG" && \
18025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18026  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18027  ac_status=$?
18028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029  test $ac_status = 0; }; then
18030  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18031else
18032  pkg_failed=yes
18033fi
18034 else
18035    pkg_failed=untried
18036fi
18037if test -n "$XEXT_LIBS"; then
18038    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18039 elif test -n "$PKG_CONFIG"; then
18040    if test -n "$PKG_CONFIG" && \
18041    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18042  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18043  ac_status=$?
18044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18045  test $ac_status = 0; }; then
18046  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18047else
18048  pkg_failed=yes
18049fi
18050 else
18051    pkg_failed=untried
18052fi
18053
18054
18055
18056if test $pkg_failed = yes; then
18057   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18058$as_echo "no" >&6; }
18059
18060if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18061        _pkg_short_errors_supported=yes
18062else
18063        _pkg_short_errors_supported=no
18064fi
18065        if test $_pkg_short_errors_supported = yes; then
18066	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
18067        else
18068	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
18069        fi
18070	# Put the nasty error message in config.log where it belongs
18071	echo "$XEXT_PKG_ERRORS" >&5
18072
18073	HAVE_XEXTPROTO_71="no"
18074elif test $pkg_failed = untried; then
18075     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18076$as_echo "no" >&6; }
18077	HAVE_XEXTPROTO_71="no"
18078else
18079	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18080	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18081        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18082$as_echo "yes" >&6; }
18083	HAVE_XEXTPROTO_71="yes";
18084$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18085
18086fi
18087 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18088  HAVE_XEXTPROTO_71_TRUE=
18089  HAVE_XEXTPROTO_71_FALSE='#'
18090else
18091  HAVE_XEXTPROTO_71_TRUE='#'
18092  HAVE_XEXTPROTO_71_FALSE=
18093fi
18094
18095sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18096
18097# Checks for libraries.
18098
18099
18100if test "$DRI" != no; then
18101        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18103$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18104if eval \${$as_ac_File+:} false; then :
18105  $as_echo_n "(cached) " >&6
18106else
18107  test "$cross_compiling" = yes &&
18108  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18109if test -r "${sdkdir}/dri.h"; then
18110  eval "$as_ac_File=yes"
18111else
18112  eval "$as_ac_File=no"
18113fi
18114fi
18115eval ac_res=\$$as_ac_File
18116	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18117$as_echo "$ac_res" >&6; }
18118if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18119  have_dri_h="yes"
18120else
18121  have_dri_h="no"
18122fi
18123
18124        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18126$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18127if eval \${$as_ac_File+:} false; then :
18128  $as_echo_n "(cached) " >&6
18129else
18130  test "$cross_compiling" = yes &&
18131  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18132if test -r "${sdkdir}/sarea.h"; then
18133  eval "$as_ac_File=yes"
18134else
18135  eval "$as_ac_File=no"
18136fi
18137fi
18138eval ac_res=\$$as_ac_File
18139	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18140$as_echo "$ac_res" >&6; }
18141if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18142  have_sarea_h="yes"
18143else
18144  have_sarea_h="no"
18145fi
18146
18147        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18149$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18150if eval \${$as_ac_File+:} false; then :
18151  $as_echo_n "(cached) " >&6
18152else
18153  test "$cross_compiling" = yes &&
18154  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18155if test -r "${sdkdir}/dristruct.h"; then
18156  eval "$as_ac_File=yes"
18157else
18158  eval "$as_ac_File=no"
18159fi
18160fi
18161eval ac_res=\$$as_ac_File
18162	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18163$as_echo "$ac_res" >&6; }
18164if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18165  have_dristruct_h="yes"
18166else
18167  have_dristruct_h="no"
18168fi
18169
18170fi
18171
18172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18173$as_echo_n "checking whether to include DRI support... " >&6; }
18174if test x$DRI = xauto; then
18175        if test "$have_dri_h" = yes -a \
18176                "$have_sarea_h" = yes -a \
18177                "$have_dristruct_h" = yes; then
18178                DRI="yes"
18179        else
18180                DRI="no"
18181        fi
18182fi
18183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18184$as_echo "$DRI" >&6; }
18185
18186 if test x$DRI = xyes; then
18187  DRI_TRUE=
18188  DRI_FALSE='#'
18189else
18190  DRI_TRUE='#'
18191  DRI_FALSE=
18192fi
18193
18194if test "$DRI" = yes; then
18195
18196pkg_failed=no
18197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18198$as_echo_n "checking for DRI... " >&6; }
18199
18200if test -n "$DRI_CFLAGS"; then
18201    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18202 elif test -n "$PKG_CONFIG"; then
18203    if test -n "$PKG_CONFIG" && \
18204    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18205  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18206  ac_status=$?
18207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18208  test $ac_status = 0; }; then
18209  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18210else
18211  pkg_failed=yes
18212fi
18213 else
18214    pkg_failed=untried
18215fi
18216if test -n "$DRI_LIBS"; then
18217    pkg_cv_DRI_LIBS="$DRI_LIBS"
18218 elif test -n "$PKG_CONFIG"; then
18219    if test -n "$PKG_CONFIG" && \
18220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18221  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18222  ac_status=$?
18223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18224  test $ac_status = 0; }; then
18225  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18226else
18227  pkg_failed=yes
18228fi
18229 else
18230    pkg_failed=untried
18231fi
18232
18233
18234
18235if test $pkg_failed = yes; then
18236   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18237$as_echo "no" >&6; }
18238
18239if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18240        _pkg_short_errors_supported=yes
18241else
18242        _pkg_short_errors_supported=no
18243fi
18244        if test $_pkg_short_errors_supported = yes; then
18245	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
18246        else
18247	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
18248        fi
18249	# Put the nasty error message in config.log where it belongs
18250	echo "$DRI_PKG_ERRORS" >&5
18251
18252	as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18253
18254$DRI_PKG_ERRORS
18255
18256Consider adjusting the PKG_CONFIG_PATH environment variable if you
18257installed software in a non-standard prefix.
18258
18259Alternatively, you may set the environment variables DRI_CFLAGS
18260and DRI_LIBS to avoid the need to call pkg-config.
18261See the pkg-config man page for more details." "$LINENO" 5
18262
18263elif test $pkg_failed = untried; then
18264     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18265$as_echo "no" >&6; }
18266	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18268as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18269is in your PATH or set the PKG_CONFIG environment variable to the full
18270path to pkg-config.
18271
18272Alternatively, you may set the environment variables DRI_CFLAGS
18273and DRI_LIBS to avoid the need to call pkg-config.
18274See the pkg-config man page for more details.
18275
18276To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18277See \`config.log' for more details" "$LINENO" 5; }
18278
18279else
18280	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18281	DRI_LIBS=$pkg_cv_DRI_LIBS
18282        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18283$as_echo "yes" >&6; }
18284
18285fi
18286
18287$as_echo "#define SAVAGEDRI 1" >>confdefs.h
18288
18289
18290$as_echo "#define SAVAGEDRI_DEVEL 1" >>confdefs.h
18291
18292fi
18293
18294# Check whether --enable-xaa was given.
18295if test "${enable_xaa+set}" = set; then :
18296  enableval=$enable_xaa; XAA="$enableval"
18297else
18298  XAA=auto
18299fi
18300
18301if test "x$XAA" != xno; then
18302        save_CFLAGS=$CFLAGS
18303        save_CPPFLAGS=$CPPFLAGS
18304        CFLAGS=$XORG_CFLAGS
18305        CPPFLAGS="$XORG_CFLAGS"
18306        for ac_header in xaa.h
18307do :
18308  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18309if test "x$ac_cv_header_xaa_h" = xyes; then :
18310  cat >>confdefs.h <<_ACEOF
18311#define HAVE_XAA_H 1
18312_ACEOF
18313 XAA=yes
18314else
18315  XAA=no
18316fi
18317
18318done
18319
18320        CFLAGS=$save_CFLAGS
18321        CPPFLAGS=$save_CPPFLAGS
18322fi
18323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18324$as_echo_n "checking whether to include XAA support... " >&6; }
18325 if test "x$XAA" = xyes; then
18326  XAA_TRUE=
18327  XAA_FALSE='#'
18328else
18329  XAA_TRUE='#'
18330  XAA_FALSE=
18331fi
18332
18333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18334$as_echo "$XAA" >&6; }
18335
18336save_CFLAGS="$CFLAGS"
18337CFLAGS="$XORG_CFLAGS"
18338ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18339"
18340if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18341  XSERVER_LIBPCIACCESS=yes
18342else
18343  XSERVER_LIBPCIACCESS=no
18344fi
18345
18346ac_fn_c_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include \"xf86xv.h\"
18347"
18348if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = xyes; then :
18349
18350$as_echo "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h
18351
18352fi
18353
18354CFLAGS="$save_CFLAGS"
18355
18356if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18357
18358pkg_failed=no
18359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18360$as_echo_n "checking for PCIACCESS... " >&6; }
18361
18362if test -n "$PCIACCESS_CFLAGS"; then
18363    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18364 elif test -n "$PKG_CONFIG"; then
18365    if test -n "$PKG_CONFIG" && \
18366    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
18367  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
18368  ac_status=$?
18369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18370  test $ac_status = 0; }; then
18371  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
18372else
18373  pkg_failed=yes
18374fi
18375 else
18376    pkg_failed=untried
18377fi
18378if test -n "$PCIACCESS_LIBS"; then
18379    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18380 elif test -n "$PKG_CONFIG"; then
18381    if test -n "$PKG_CONFIG" && \
18382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
18383  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
18384  ac_status=$?
18385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18386  test $ac_status = 0; }; then
18387  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
18388else
18389  pkg_failed=yes
18390fi
18391 else
18392    pkg_failed=untried
18393fi
18394
18395
18396
18397if test $pkg_failed = yes; then
18398   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18399$as_echo "no" >&6; }
18400
18401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18402        _pkg_short_errors_supported=yes
18403else
18404        _pkg_short_errors_supported=no
18405fi
18406        if test $_pkg_short_errors_supported = yes; then
18407	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1`
18408        else
18409	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1`
18410        fi
18411	# Put the nasty error message in config.log where it belongs
18412	echo "$PCIACCESS_PKG_ERRORS" >&5
18413
18414	as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
18415
18416$PCIACCESS_PKG_ERRORS
18417
18418Consider adjusting the PKG_CONFIG_PATH environment variable if you
18419installed software in a non-standard prefix.
18420
18421Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18422and PCIACCESS_LIBS to avoid the need to call pkg-config.
18423See the pkg-config man page for more details." "$LINENO" 5
18424
18425elif test $pkg_failed = untried; then
18426     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18427$as_echo "no" >&6; }
18428	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18430as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18431is in your PATH or set the PKG_CONFIG environment variable to the full
18432path to pkg-config.
18433
18434Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18435and PCIACCESS_LIBS to avoid the need to call pkg-config.
18436See the pkg-config man page for more details.
18437
18438To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18439See \`config.log' for more details" "$LINENO" 5; }
18440
18441else
18442	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18443	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18444        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18445$as_echo "yes" >&6; }
18446
18447fi
18448fi
18449 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18450  XSERVER_LIBPCIACCESS_TRUE=
18451  XSERVER_LIBPCIACCESS_FALSE='#'
18452else
18453  XSERVER_LIBPCIACCESS_TRUE='#'
18454  XSERVER_LIBPCIACCESS_FALSE=
18455fi
18456
18457
18458
18459
18460DRIVER_NAME=savage
18461
18462
18463ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18464
18465cat >confcache <<\_ACEOF
18466# This file is a shell script that caches the results of configure
18467# tests run on this system so they can be shared between configure
18468# scripts and configure runs, see configure's option --config-cache.
18469# It is not useful on other systems.  If it contains results you don't
18470# want to keep, you may remove or edit it.
18471#
18472# config.status only pays attention to the cache file if you give it
18473# the --recheck option to rerun configure.
18474#
18475# `ac_cv_env_foo' variables (set or unset) will be overridden when
18476# loading this file, other *unset* `ac_cv_foo' will be assigned the
18477# following values.
18478
18479_ACEOF
18480
18481# The following way of writing the cache mishandles newlines in values,
18482# but we know of no workaround that is simple, portable, and efficient.
18483# So, we kill variables containing newlines.
18484# Ultrix sh set writes to stderr and can't be redirected directly,
18485# and sets the high bit in the cache file unless we assign to the vars.
18486(
18487  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18488    eval ac_val=\$$ac_var
18489    case $ac_val in #(
18490    *${as_nl}*)
18491      case $ac_var in #(
18492      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18493$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18494      esac
18495      case $ac_var in #(
18496      _ | IFS | as_nl) ;; #(
18497      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18498      *) { eval $ac_var=; unset $ac_var;} ;;
18499      esac ;;
18500    esac
18501  done
18502
18503  (set) 2>&1 |
18504    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18505    *${as_nl}ac_space=\ *)
18506      # `set' does not quote correctly, so add quotes: double-quote
18507      # substitution turns \\\\ into \\, and sed turns \\ into \.
18508      sed -n \
18509	"s/'/'\\\\''/g;
18510	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18511      ;; #(
18512    *)
18513      # `set' quotes correctly as required by POSIX, so do not add quotes.
18514      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18515      ;;
18516    esac |
18517    sort
18518) |
18519  sed '
18520     /^ac_cv_env_/b end
18521     t clear
18522     :clear
18523     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18524     t end
18525     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18526     :end' >>confcache
18527if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18528  if test -w "$cache_file"; then
18529    if test "x$cache_file" != "x/dev/null"; then
18530      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18531$as_echo "$as_me: updating cache $cache_file" >&6;}
18532      if test ! -f "$cache_file" || test -h "$cache_file"; then
18533	cat confcache >"$cache_file"
18534      else
18535        case $cache_file in #(
18536        */* | ?:*)
18537	  mv -f confcache "$cache_file"$$ &&
18538	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18539        *)
18540	  mv -f confcache "$cache_file" ;;
18541	esac
18542      fi
18543    fi
18544  else
18545    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18546$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18547  fi
18548fi
18549rm -f confcache
18550
18551test "x$prefix" = xNONE && prefix=$ac_default_prefix
18552# Let make expand exec_prefix.
18553test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18554
18555DEFS=-DHAVE_CONFIG_H
18556
18557ac_libobjs=
18558ac_ltlibobjs=
18559U=
18560for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18561  # 1. Remove the extension, and $U if already installed.
18562  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18563  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18564  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18565  #    will be set to the directory where LIBOBJS objects are built.
18566  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18567  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18568done
18569LIBOBJS=$ac_libobjs
18570
18571LTLIBOBJS=$ac_ltlibobjs
18572
18573
18574 if test -n "$EXEEXT"; then
18575  am__EXEEXT_TRUE=
18576  am__EXEEXT_FALSE='#'
18577else
18578  am__EXEEXT_TRUE='#'
18579  am__EXEEXT_FALSE=
18580fi
18581
18582if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18583  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18584Usually this means the macro was only invoked conditionally." "$LINENO" 5
18585fi
18586if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18587  as_fn_error $? "conditional \"AMDEP\" was never defined.
18588Usually this means the macro was only invoked conditionally." "$LINENO" 5
18589fi
18590if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18591  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18592Usually this means the macro was only invoked conditionally." "$LINENO" 5
18593fi
18594if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18595  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18596Usually this means the macro was only invoked conditionally." "$LINENO" 5
18597fi
18598if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18599  as_fn_error $? "conditional \"DRI\" was never defined.
18600Usually this means the macro was only invoked conditionally." "$LINENO" 5
18601fi
18602if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18603  as_fn_error $? "conditional \"XAA\" was never defined.
18604Usually this means the macro was only invoked conditionally." "$LINENO" 5
18605fi
18606if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18607  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18608Usually this means the macro was only invoked conditionally." "$LINENO" 5
18609fi
18610
18611: "${CONFIG_STATUS=./config.status}"
18612ac_write_fail=0
18613ac_clean_files_save=$ac_clean_files
18614ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18615{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18616$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18617as_write_fail=0
18618cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18619#! $SHELL
18620# Generated by $as_me.
18621# Run this file to recreate the current configuration.
18622# Compiler output produced by configure, useful for debugging
18623# configure, is in config.log if it exists.
18624
18625debug=false
18626ac_cs_recheck=false
18627ac_cs_silent=false
18628
18629SHELL=\${CONFIG_SHELL-$SHELL}
18630export SHELL
18631_ASEOF
18632cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18633## -------------------- ##
18634## M4sh Initialization. ##
18635## -------------------- ##
18636
18637# Be more Bourne compatible
18638DUALCASE=1; export DUALCASE # for MKS sh
18639if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18640  emulate sh
18641  NULLCMD=:
18642  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18643  # is contrary to our usage.  Disable this feature.
18644  alias -g '${1+"$@"}'='"$@"'
18645  setopt NO_GLOB_SUBST
18646else
18647  case `(set -o) 2>/dev/null` in #(
18648  *posix*) :
18649    set -o posix ;; #(
18650  *) :
18651     ;;
18652esac
18653fi
18654
18655
18656as_nl='
18657'
18658export as_nl
18659# Printing a long string crashes Solaris 7 /usr/bin/printf.
18660as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18661as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18662as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18663# Prefer a ksh shell builtin over an external printf program on Solaris,
18664# but without wasting forks for bash or zsh.
18665if test -z "$BASH_VERSION$ZSH_VERSION" \
18666    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18667  as_echo='print -r --'
18668  as_echo_n='print -rn --'
18669elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18670  as_echo='printf %s\n'
18671  as_echo_n='printf %s'
18672else
18673  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18674    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18675    as_echo_n='/usr/ucb/echo -n'
18676  else
18677    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18678    as_echo_n_body='eval
18679      arg=$1;
18680      case $arg in #(
18681      *"$as_nl"*)
18682	expr "X$arg" : "X\\(.*\\)$as_nl";
18683	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18684      esac;
18685      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18686    '
18687    export as_echo_n_body
18688    as_echo_n='sh -c $as_echo_n_body as_echo'
18689  fi
18690  export as_echo_body
18691  as_echo='sh -c $as_echo_body as_echo'
18692fi
18693
18694# The user is always right.
18695if test "${PATH_SEPARATOR+set}" != set; then
18696  PATH_SEPARATOR=:
18697  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18698    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18699      PATH_SEPARATOR=';'
18700  }
18701fi
18702
18703
18704# IFS
18705# We need space, tab and new line, in precisely that order.  Quoting is
18706# there to prevent editors from complaining about space-tab.
18707# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18708# splitting by setting IFS to empty value.)
18709IFS=" ""	$as_nl"
18710
18711# Find who we are.  Look in the path if we contain no directory separator.
18712as_myself=
18713case $0 in #((
18714  *[\\/]* ) as_myself=$0 ;;
18715  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18716for as_dir in $PATH
18717do
18718  IFS=$as_save_IFS
18719  test -z "$as_dir" && as_dir=.
18720    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18721  done
18722IFS=$as_save_IFS
18723
18724     ;;
18725esac
18726# We did not find ourselves, most probably we were run as `sh COMMAND'
18727# in which case we are not to be found in the path.
18728if test "x$as_myself" = x; then
18729  as_myself=$0
18730fi
18731if test ! -f "$as_myself"; then
18732  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18733  exit 1
18734fi
18735
18736# Unset variables that we do not need and which cause bugs (e.g. in
18737# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18738# suppresses any "Segmentation fault" message there.  '((' could
18739# trigger a bug in pdksh 5.2.14.
18740for as_var in BASH_ENV ENV MAIL MAILPATH
18741do eval test x\${$as_var+set} = xset \
18742  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18743done
18744PS1='$ '
18745PS2='> '
18746PS4='+ '
18747
18748# NLS nuisances.
18749LC_ALL=C
18750export LC_ALL
18751LANGUAGE=C
18752export LANGUAGE
18753
18754# CDPATH.
18755(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18756
18757
18758# as_fn_error STATUS ERROR [LINENO LOG_FD]
18759# ----------------------------------------
18760# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18761# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18762# script with STATUS, using 1 if that was 0.
18763as_fn_error ()
18764{
18765  as_status=$1; test $as_status -eq 0 && as_status=1
18766  if test "$4"; then
18767    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18768    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18769  fi
18770  $as_echo "$as_me: error: $2" >&2
18771  as_fn_exit $as_status
18772} # as_fn_error
18773
18774
18775# as_fn_set_status STATUS
18776# -----------------------
18777# Set $? to STATUS, without forking.
18778as_fn_set_status ()
18779{
18780  return $1
18781} # as_fn_set_status
18782
18783# as_fn_exit STATUS
18784# -----------------
18785# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18786as_fn_exit ()
18787{
18788  set +e
18789  as_fn_set_status $1
18790  exit $1
18791} # as_fn_exit
18792
18793# as_fn_unset VAR
18794# ---------------
18795# Portably unset VAR.
18796as_fn_unset ()
18797{
18798  { eval $1=; unset $1;}
18799}
18800as_unset=as_fn_unset
18801# as_fn_append VAR VALUE
18802# ----------------------
18803# Append the text in VALUE to the end of the definition contained in VAR. Take
18804# advantage of any shell optimizations that allow amortized linear growth over
18805# repeated appends, instead of the typical quadratic growth present in naive
18806# implementations.
18807if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18808  eval 'as_fn_append ()
18809  {
18810    eval $1+=\$2
18811  }'
18812else
18813  as_fn_append ()
18814  {
18815    eval $1=\$$1\$2
18816  }
18817fi # as_fn_append
18818
18819# as_fn_arith ARG...
18820# ------------------
18821# Perform arithmetic evaluation on the ARGs, and store the result in the
18822# global $as_val. Take advantage of shells that can avoid forks. The arguments
18823# must be portable across $(()) and expr.
18824if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18825  eval 'as_fn_arith ()
18826  {
18827    as_val=$(( $* ))
18828  }'
18829else
18830  as_fn_arith ()
18831  {
18832    as_val=`expr "$@" || test $? -eq 1`
18833  }
18834fi # as_fn_arith
18835
18836
18837if expr a : '\(a\)' >/dev/null 2>&1 &&
18838   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18839  as_expr=expr
18840else
18841  as_expr=false
18842fi
18843
18844if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18845  as_basename=basename
18846else
18847  as_basename=false
18848fi
18849
18850if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18851  as_dirname=dirname
18852else
18853  as_dirname=false
18854fi
18855
18856as_me=`$as_basename -- "$0" ||
18857$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18858	 X"$0" : 'X\(//\)$' \| \
18859	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18860$as_echo X/"$0" |
18861    sed '/^.*\/\([^/][^/]*\)\/*$/{
18862	    s//\1/
18863	    q
18864	  }
18865	  /^X\/\(\/\/\)$/{
18866	    s//\1/
18867	    q
18868	  }
18869	  /^X\/\(\/\).*/{
18870	    s//\1/
18871	    q
18872	  }
18873	  s/.*/./; q'`
18874
18875# Avoid depending upon Character Ranges.
18876as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18877as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18878as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18879as_cr_digits='0123456789'
18880as_cr_alnum=$as_cr_Letters$as_cr_digits
18881
18882ECHO_C= ECHO_N= ECHO_T=
18883case `echo -n x` in #(((((
18884-n*)
18885  case `echo 'xy\c'` in
18886  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18887  xy)  ECHO_C='\c';;
18888  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18889       ECHO_T='	';;
18890  esac;;
18891*)
18892  ECHO_N='-n';;
18893esac
18894
18895rm -f conf$$ conf$$.exe conf$$.file
18896if test -d conf$$.dir; then
18897  rm -f conf$$.dir/conf$$.file
18898else
18899  rm -f conf$$.dir
18900  mkdir conf$$.dir 2>/dev/null
18901fi
18902if (echo >conf$$.file) 2>/dev/null; then
18903  if ln -s conf$$.file conf$$ 2>/dev/null; then
18904    as_ln_s='ln -s'
18905    # ... but there are two gotchas:
18906    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18907    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18908    # In both cases, we have to default to `cp -p'.
18909    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18910      as_ln_s='cp -p'
18911  elif ln conf$$.file conf$$ 2>/dev/null; then
18912    as_ln_s=ln
18913  else
18914    as_ln_s='cp -p'
18915  fi
18916else
18917  as_ln_s='cp -p'
18918fi
18919rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18920rmdir conf$$.dir 2>/dev/null
18921
18922
18923# as_fn_mkdir_p
18924# -------------
18925# Create "$as_dir" as a directory, including parents if necessary.
18926as_fn_mkdir_p ()
18927{
18928
18929  case $as_dir in #(
18930  -*) as_dir=./$as_dir;;
18931  esac
18932  test -d "$as_dir" || eval $as_mkdir_p || {
18933    as_dirs=
18934    while :; do
18935      case $as_dir in #(
18936      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18937      *) as_qdir=$as_dir;;
18938      esac
18939      as_dirs="'$as_qdir' $as_dirs"
18940      as_dir=`$as_dirname -- "$as_dir" ||
18941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18942	 X"$as_dir" : 'X\(//\)[^/]' \| \
18943	 X"$as_dir" : 'X\(//\)$' \| \
18944	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18945$as_echo X"$as_dir" |
18946    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18947	    s//\1/
18948	    q
18949	  }
18950	  /^X\(\/\/\)[^/].*/{
18951	    s//\1/
18952	    q
18953	  }
18954	  /^X\(\/\/\)$/{
18955	    s//\1/
18956	    q
18957	  }
18958	  /^X\(\/\).*/{
18959	    s//\1/
18960	    q
18961	  }
18962	  s/.*/./; q'`
18963      test -d "$as_dir" && break
18964    done
18965    test -z "$as_dirs" || eval "mkdir $as_dirs"
18966  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18967
18968
18969} # as_fn_mkdir_p
18970if mkdir -p . 2>/dev/null; then
18971  as_mkdir_p='mkdir -p "$as_dir"'
18972else
18973  test -d ./-p && rmdir ./-p
18974  as_mkdir_p=false
18975fi
18976
18977if test -x / >/dev/null 2>&1; then
18978  as_test_x='test -x'
18979else
18980  if ls -dL / >/dev/null 2>&1; then
18981    as_ls_L_option=L
18982  else
18983    as_ls_L_option=
18984  fi
18985  as_test_x='
18986    eval sh -c '\''
18987      if test -d "$1"; then
18988	test -d "$1/.";
18989      else
18990	case $1 in #(
18991	-*)set "./$1";;
18992	esac;
18993	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18994	???[sx]*):;;*)false;;esac;fi
18995    '\'' sh
18996  '
18997fi
18998as_executable_p=$as_test_x
18999
19000# Sed expression to map a string onto a valid CPP name.
19001as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19002
19003# Sed expression to map a string onto a valid variable name.
19004as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19005
19006
19007exec 6>&1
19008## ----------------------------------- ##
19009## Main body of $CONFIG_STATUS script. ##
19010## ----------------------------------- ##
19011_ASEOF
19012test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19013
19014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19015# Save the log message, to keep $0 and so on meaningful, and to
19016# report actual input values of CONFIG_FILES etc. instead of their
19017# values after options handling.
19018ac_log="
19019This file was extended by xf86-video-savage $as_me 2.3.6, which was
19020generated by GNU Autoconf 2.68.  Invocation command line was
19021
19022  CONFIG_FILES    = $CONFIG_FILES
19023  CONFIG_HEADERS  = $CONFIG_HEADERS
19024  CONFIG_LINKS    = $CONFIG_LINKS
19025  CONFIG_COMMANDS = $CONFIG_COMMANDS
19026  $ $0 $@
19027
19028on `(hostname || uname -n) 2>/dev/null | sed 1q`
19029"
19030
19031_ACEOF
19032
19033case $ac_config_files in *"
19034"*) set x $ac_config_files; shift; ac_config_files=$*;;
19035esac
19036
19037case $ac_config_headers in *"
19038"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19039esac
19040
19041
19042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19043# Files that config.status was made for.
19044config_files="$ac_config_files"
19045config_headers="$ac_config_headers"
19046config_commands="$ac_config_commands"
19047
19048_ACEOF
19049
19050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19051ac_cs_usage="\
19052\`$as_me' instantiates files and other configuration actions
19053from templates according to the current configuration.  Unless the files
19054and actions are specified as TAGs, all are instantiated by default.
19055
19056Usage: $0 [OPTION]... [TAG]...
19057
19058  -h, --help       print this help, then exit
19059  -V, --version    print version number and configuration settings, then exit
19060      --config     print configuration, then exit
19061  -q, --quiet, --silent
19062                   do not print progress messages
19063  -d, --debug      don't remove temporary files
19064      --recheck    update $as_me by reconfiguring in the same conditions
19065      --file=FILE[:TEMPLATE]
19066                   instantiate the configuration file FILE
19067      --header=FILE[:TEMPLATE]
19068                   instantiate the configuration header FILE
19069
19070Configuration files:
19071$config_files
19072
19073Configuration headers:
19074$config_headers
19075
19076Configuration commands:
19077$config_commands
19078
19079Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19080
19081_ACEOF
19082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19083ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19084ac_cs_version="\\
19085xf86-video-savage config.status 2.3.6
19086configured by $0, generated by GNU Autoconf 2.68,
19087  with options \\"\$ac_cs_config\\"
19088
19089Copyright (C) 2010 Free Software Foundation, Inc.
19090This config.status script is free software; the Free Software Foundation
19091gives unlimited permission to copy, distribute and modify it."
19092
19093ac_pwd='$ac_pwd'
19094srcdir='$srcdir'
19095INSTALL='$INSTALL'
19096MKDIR_P='$MKDIR_P'
19097AWK='$AWK'
19098test -n "\$AWK" || AWK=awk
19099_ACEOF
19100
19101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19102# The default lists apply if the user does not specify any file.
19103ac_need_defaults=:
19104while test $# != 0
19105do
19106  case $1 in
19107  --*=?*)
19108    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19109    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19110    ac_shift=:
19111    ;;
19112  --*=)
19113    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19114    ac_optarg=
19115    ac_shift=:
19116    ;;
19117  *)
19118    ac_option=$1
19119    ac_optarg=$2
19120    ac_shift=shift
19121    ;;
19122  esac
19123
19124  case $ac_option in
19125  # Handling of the options.
19126  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19127    ac_cs_recheck=: ;;
19128  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19129    $as_echo "$ac_cs_version"; exit ;;
19130  --config | --confi | --conf | --con | --co | --c )
19131    $as_echo "$ac_cs_config"; exit ;;
19132  --debug | --debu | --deb | --de | --d | -d )
19133    debug=: ;;
19134  --file | --fil | --fi | --f )
19135    $ac_shift
19136    case $ac_optarg in
19137    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19138    '') as_fn_error $? "missing file argument" ;;
19139    esac
19140    as_fn_append CONFIG_FILES " '$ac_optarg'"
19141    ac_need_defaults=false;;
19142  --header | --heade | --head | --hea )
19143    $ac_shift
19144    case $ac_optarg in
19145    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19146    esac
19147    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19148    ac_need_defaults=false;;
19149  --he | --h)
19150    # Conflict between --help and --header
19151    as_fn_error $? "ambiguous option: \`$1'
19152Try \`$0 --help' for more information.";;
19153  --help | --hel | -h )
19154    $as_echo "$ac_cs_usage"; exit ;;
19155  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19156  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19157    ac_cs_silent=: ;;
19158
19159  # This is an error.
19160  -*) as_fn_error $? "unrecognized option: \`$1'
19161Try \`$0 --help' for more information." ;;
19162
19163  *) as_fn_append ac_config_targets " $1"
19164     ac_need_defaults=false ;;
19165
19166  esac
19167  shift
19168done
19169
19170ac_configure_extra_args=
19171
19172if $ac_cs_silent; then
19173  exec 6>/dev/null
19174  ac_configure_extra_args="$ac_configure_extra_args --silent"
19175fi
19176
19177_ACEOF
19178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19179if \$ac_cs_recheck; then
19180  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19181  shift
19182  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19183  CONFIG_SHELL='$SHELL'
19184  export CONFIG_SHELL
19185  exec "\$@"
19186fi
19187
19188_ACEOF
19189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19190exec 5>>config.log
19191{
19192  echo
19193  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19194## Running $as_me. ##
19195_ASBOX
19196  $as_echo "$ac_log"
19197} >&5
19198
19199_ACEOF
19200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19201#
19202# INIT-COMMANDS
19203#
19204AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19205
19206
19207# The HP-UX ksh and POSIX shell print the target directory to stdout
19208# if CDPATH is set.
19209(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19210
19211sed_quote_subst='$sed_quote_subst'
19212double_quote_subst='$double_quote_subst'
19213delay_variable_subst='$delay_variable_subst'
19214enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19215macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19216macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19217enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19218pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19219enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19220SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19221ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19222PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19223host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19224host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19225host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19226build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19227build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19228build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19229SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19230Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19231GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19232EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19233FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19234LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19235NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19236LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19237max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19238ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19239exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19240lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19241lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19242lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19243lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19244lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19245reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19246reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19247OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19248deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19249file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19250file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19251want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19252DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19253sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19254AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19255AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19256archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19257STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19258RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19259old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19260old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19261old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19262lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19263CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19264CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19265compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19266GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19267lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19268lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19269lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19270lt_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"`'
19271nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19272lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19273objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19274MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19275lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19276lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19277lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19278lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19279lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19280need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19281MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19282DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19283NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19284LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19285OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19286OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19287libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19288shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19289extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19290archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19291enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19292export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19293whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19294compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19295old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19296old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19297archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19298archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19299module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19300module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19301with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19302allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19303no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19304hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19305hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19306hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19307hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19308hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19309hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19310hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19311inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19312link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19313always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19314export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19315exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19316include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19317prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19318postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19319file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19320variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19321need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19322need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19323version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19324runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19325shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19326shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19327libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19328library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19329soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19330install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19331postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19332postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19333finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19334finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19335hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19336sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19337sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19338hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19339enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19340enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19341enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19342old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19343striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19344
19345LTCC='$LTCC'
19346LTCFLAGS='$LTCFLAGS'
19347compiler='$compiler_DEFAULT'
19348
19349# A function that is used when there is no print builtin or printf.
19350func_fallback_echo ()
19351{
19352  eval 'cat <<_LTECHO_EOF
19353\$1
19354_LTECHO_EOF'
19355}
19356
19357# Quote evaled strings.
19358for var in SHELL \
19359ECHO \
19360PATH_SEPARATOR \
19361SED \
19362GREP \
19363EGREP \
19364FGREP \
19365LD \
19366NM \
19367LN_S \
19368lt_SP2NL \
19369lt_NL2SP \
19370reload_flag \
19371OBJDUMP \
19372deplibs_check_method \
19373file_magic_cmd \
19374file_magic_glob \
19375want_nocaseglob \
19376DLLTOOL \
19377sharedlib_from_linklib_cmd \
19378AR \
19379AR_FLAGS \
19380archiver_list_spec \
19381STRIP \
19382RANLIB \
19383CC \
19384CFLAGS \
19385compiler \
19386lt_cv_sys_global_symbol_pipe \
19387lt_cv_sys_global_symbol_to_cdecl \
19388lt_cv_sys_global_symbol_to_c_name_address \
19389lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19390nm_file_list_spec \
19391lt_prog_compiler_no_builtin_flag \
19392lt_prog_compiler_pic \
19393lt_prog_compiler_wl \
19394lt_prog_compiler_static \
19395lt_cv_prog_compiler_c_o \
19396need_locks \
19397MANIFEST_TOOL \
19398DSYMUTIL \
19399NMEDIT \
19400LIPO \
19401OTOOL \
19402OTOOL64 \
19403shrext_cmds \
19404export_dynamic_flag_spec \
19405whole_archive_flag_spec \
19406compiler_needs_object \
19407with_gnu_ld \
19408allow_undefined_flag \
19409no_undefined_flag \
19410hardcode_libdir_flag_spec \
19411hardcode_libdir_separator \
19412exclude_expsyms \
19413include_expsyms \
19414file_list_spec \
19415variables_saved_for_relink \
19416libname_spec \
19417library_names_spec \
19418soname_spec \
19419install_override_mode \
19420finish_eval \
19421old_striplib \
19422striplib; do
19423    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19424    *[\\\\\\\`\\"\\\$]*)
19425      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19426      ;;
19427    *)
19428      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19429      ;;
19430    esac
19431done
19432
19433# Double-quote double-evaled strings.
19434for var in reload_cmds \
19435old_postinstall_cmds \
19436old_postuninstall_cmds \
19437old_archive_cmds \
19438extract_expsyms_cmds \
19439old_archive_from_new_cmds \
19440old_archive_from_expsyms_cmds \
19441archive_cmds \
19442archive_expsym_cmds \
19443module_cmds \
19444module_expsym_cmds \
19445export_symbols_cmds \
19446prelink_cmds \
19447postlink_cmds \
19448postinstall_cmds \
19449postuninstall_cmds \
19450finish_cmds \
19451sys_lib_search_path_spec \
19452sys_lib_dlsearch_path_spec; do
19453    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19454    *[\\\\\\\`\\"\\\$]*)
19455      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19456      ;;
19457    *)
19458      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19459      ;;
19460    esac
19461done
19462
19463ac_aux_dir='$ac_aux_dir'
19464xsi_shell='$xsi_shell'
19465lt_shell_append='$lt_shell_append'
19466
19467# See if we are running on zsh, and set the options which allow our
19468# commands through without removal of \ escapes INIT.
19469if test -n "\${ZSH_VERSION+set}" ; then
19470   setopt NO_GLOB_SUBST
19471fi
19472
19473
19474    PACKAGE='$PACKAGE'
19475    VERSION='$VERSION'
19476    TIMESTAMP='$TIMESTAMP'
19477    RM='$RM'
19478    ofile='$ofile'
19479
19480
19481
19482
19483_ACEOF
19484
19485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19486
19487# Handling of arguments.
19488for ac_config_target in $ac_config_targets
19489do
19490  case $ac_config_target in
19491    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19492    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19493    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19494    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19495    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19496    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19497
19498  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19499  esac
19500done
19501
19502
19503# If the user did not use the arguments to specify the items to instantiate,
19504# then the envvar interface is used.  Set only those that are not.
19505# We use the long form for the default assignment because of an extremely
19506# bizarre bug on SunOS 4.1.3.
19507if $ac_need_defaults; then
19508  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19509  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19510  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19511fi
19512
19513# Have a temporary directory for convenience.  Make it in the build tree
19514# simply because there is no reason against having it here, and in addition,
19515# creating and moving files from /tmp can sometimes cause problems.
19516# Hook for its removal unless debugging.
19517# Note that there is a small window in which the directory will not be cleaned:
19518# after its creation but before its name has been assigned to `$tmp'.
19519$debug ||
19520{
19521  tmp= ac_tmp=
19522  trap 'exit_status=$?
19523  : "${ac_tmp:=$tmp}"
19524  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19525' 0
19526  trap 'as_fn_exit 1' 1 2 13 15
19527}
19528# Create a (secure) tmp directory for tmp files.
19529
19530{
19531  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19532  test -d "$tmp"
19533}  ||
19534{
19535  tmp=./conf$$-$RANDOM
19536  (umask 077 && mkdir "$tmp")
19537} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19538ac_tmp=$tmp
19539
19540# Set up the scripts for CONFIG_FILES section.
19541# No need to generate them if there are no CONFIG_FILES.
19542# This happens for instance with `./config.status config.h'.
19543if test -n "$CONFIG_FILES"; then
19544
19545
19546ac_cr=`echo X | tr X '\015'`
19547# On cygwin, bash can eat \r inside `` if the user requested igncr.
19548# But we know of no other shell where ac_cr would be empty at this
19549# point, so we can use a bashism as a fallback.
19550if test "x$ac_cr" = x; then
19551  eval ac_cr=\$\'\\r\'
19552fi
19553ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19554if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19555  ac_cs_awk_cr='\\r'
19556else
19557  ac_cs_awk_cr=$ac_cr
19558fi
19559
19560echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19561_ACEOF
19562
19563
19564{
19565  echo "cat >conf$$subs.awk <<_ACEOF" &&
19566  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19567  echo "_ACEOF"
19568} >conf$$subs.sh ||
19569  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19570ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19571ac_delim='%!_!# '
19572for ac_last_try in false false false false false :; do
19573  . ./conf$$subs.sh ||
19574    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19575
19576  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19577  if test $ac_delim_n = $ac_delim_num; then
19578    break
19579  elif $ac_last_try; then
19580    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19581  else
19582    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19583  fi
19584done
19585rm -f conf$$subs.sh
19586
19587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19588cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19589_ACEOF
19590sed -n '
19591h
19592s/^/S["/; s/!.*/"]=/
19593p
19594g
19595s/^[^!]*!//
19596:repl
19597t repl
19598s/'"$ac_delim"'$//
19599t delim
19600:nl
19601h
19602s/\(.\{148\}\)..*/\1/
19603t more1
19604s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19605p
19606n
19607b repl
19608:more1
19609s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19610p
19611g
19612s/.\{148\}//
19613t nl
19614:delim
19615h
19616s/\(.\{148\}\)..*/\1/
19617t more2
19618s/["\\]/\\&/g; s/^/"/; s/$/"/
19619p
19620b
19621:more2
19622s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19623p
19624g
19625s/.\{148\}//
19626t delim
19627' <conf$$subs.awk | sed '
19628/^[^""]/{
19629  N
19630  s/\n//
19631}
19632' >>$CONFIG_STATUS || ac_write_fail=1
19633rm -f conf$$subs.awk
19634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19635_ACAWK
19636cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19637  for (key in S) S_is_set[key] = 1
19638  FS = ""
19639
19640}
19641{
19642  line = $ 0
19643  nfields = split(line, field, "@")
19644  substed = 0
19645  len = length(field[1])
19646  for (i = 2; i < nfields; i++) {
19647    key = field[i]
19648    keylen = length(key)
19649    if (S_is_set[key]) {
19650      value = S[key]
19651      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19652      len += length(value) + length(field[++i])
19653      substed = 1
19654    } else
19655      len += 1 + keylen
19656  }
19657
19658  print line
19659}
19660
19661_ACAWK
19662_ACEOF
19663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19664if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19665  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19666else
19667  cat
19668fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19669  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19670_ACEOF
19671
19672# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19673# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19674# trailing colons and then remove the whole line if VPATH becomes empty
19675# (actually we leave an empty line to preserve line numbers).
19676if test "x$srcdir" = x.; then
19677  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19678h
19679s///
19680s/^/:/
19681s/[	 ]*$/:/
19682s/:\$(srcdir):/:/g
19683s/:\${srcdir}:/:/g
19684s/:@srcdir@:/:/g
19685s/^:*//
19686s/:*$//
19687x
19688s/\(=[	 ]*\).*/\1/
19689G
19690s/\n//
19691s/^[^=]*=[	 ]*$//
19692}'
19693fi
19694
19695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19696fi # test -n "$CONFIG_FILES"
19697
19698# Set up the scripts for CONFIG_HEADERS section.
19699# No need to generate them if there are no CONFIG_HEADERS.
19700# This happens for instance with `./config.status Makefile'.
19701if test -n "$CONFIG_HEADERS"; then
19702cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19703BEGIN {
19704_ACEOF
19705
19706# Transform confdefs.h into an awk script `defines.awk', embedded as
19707# here-document in config.status, that substitutes the proper values into
19708# config.h.in to produce config.h.
19709
19710# Create a delimiter string that does not exist in confdefs.h, to ease
19711# handling of long lines.
19712ac_delim='%!_!# '
19713for ac_last_try in false false :; do
19714  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19715  if test -z "$ac_tt"; then
19716    break
19717  elif $ac_last_try; then
19718    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19719  else
19720    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19721  fi
19722done
19723
19724# For the awk script, D is an array of macro values keyed by name,
19725# likewise P contains macro parameters if any.  Preserve backslash
19726# newline sequences.
19727
19728ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19729sed -n '
19730s/.\{148\}/&'"$ac_delim"'/g
19731t rset
19732:rset
19733s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19734t def
19735d
19736:def
19737s/\\$//
19738t bsnl
19739s/["\\]/\\&/g
19740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19741D["\1"]=" \3"/p
19742s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19743d
19744:bsnl
19745s/["\\]/\\&/g
19746s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19747D["\1"]=" \3\\\\\\n"\\/p
19748t cont
19749s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19750t cont
19751d
19752:cont
19753n
19754s/.\{148\}/&'"$ac_delim"'/g
19755t clear
19756:clear
19757s/\\$//
19758t bsnlc
19759s/["\\]/\\&/g; s/^/"/; s/$/"/p
19760d
19761:bsnlc
19762s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19763b cont
19764' <confdefs.h | sed '
19765s/'"$ac_delim"'/"\\\
19766"/g' >>$CONFIG_STATUS || ac_write_fail=1
19767
19768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19769  for (key in D) D_is_set[key] = 1
19770  FS = ""
19771}
19772/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19773  line = \$ 0
19774  split(line, arg, " ")
19775  if (arg[1] == "#") {
19776    defundef = arg[2]
19777    mac1 = arg[3]
19778  } else {
19779    defundef = substr(arg[1], 2)
19780    mac1 = arg[2]
19781  }
19782  split(mac1, mac2, "(") #)
19783  macro = mac2[1]
19784  prefix = substr(line, 1, index(line, defundef) - 1)
19785  if (D_is_set[macro]) {
19786    # Preserve the white space surrounding the "#".
19787    print prefix "define", macro P[macro] D[macro]
19788    next
19789  } else {
19790    # Replace #undef with comments.  This is necessary, for example,
19791    # in the case of _POSIX_SOURCE, which is predefined and required
19792    # on some systems where configure will not decide to define it.
19793    if (defundef == "undef") {
19794      print "/*", prefix defundef, macro, "*/"
19795      next
19796    }
19797  }
19798}
19799{ print }
19800_ACAWK
19801_ACEOF
19802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19803  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19804fi # test -n "$CONFIG_HEADERS"
19805
19806
19807eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19808shift
19809for ac_tag
19810do
19811  case $ac_tag in
19812  :[FHLC]) ac_mode=$ac_tag; continue;;
19813  esac
19814  case $ac_mode$ac_tag in
19815  :[FHL]*:*);;
19816  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19817  :[FH]-) ac_tag=-:-;;
19818  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19819  esac
19820  ac_save_IFS=$IFS
19821  IFS=:
19822  set x $ac_tag
19823  IFS=$ac_save_IFS
19824  shift
19825  ac_file=$1
19826  shift
19827
19828  case $ac_mode in
19829  :L) ac_source=$1;;
19830  :[FH])
19831    ac_file_inputs=
19832    for ac_f
19833    do
19834      case $ac_f in
19835      -) ac_f="$ac_tmp/stdin";;
19836      *) # Look for the file first in the build tree, then in the source tree
19837	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19838	 # because $ac_f cannot contain `:'.
19839	 test -f "$ac_f" ||
19840	   case $ac_f in
19841	   [\\/$]*) false;;
19842	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19843	   esac ||
19844	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19845      esac
19846      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19847      as_fn_append ac_file_inputs " '$ac_f'"
19848    done
19849
19850    # Let's still pretend it is `configure' which instantiates (i.e., don't
19851    # use $as_me), people would be surprised to read:
19852    #    /* config.h.  Generated by config.status.  */
19853    configure_input='Generated from '`
19854	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19855	`' by configure.'
19856    if test x"$ac_file" != x-; then
19857      configure_input="$ac_file.  $configure_input"
19858      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19859$as_echo "$as_me: creating $ac_file" >&6;}
19860    fi
19861    # Neutralize special characters interpreted by sed in replacement strings.
19862    case $configure_input in #(
19863    *\&* | *\|* | *\\* )
19864       ac_sed_conf_input=`$as_echo "$configure_input" |
19865       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19866    *) ac_sed_conf_input=$configure_input;;
19867    esac
19868
19869    case $ac_tag in
19870    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19871      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19872    esac
19873    ;;
19874  esac
19875
19876  ac_dir=`$as_dirname -- "$ac_file" ||
19877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19878	 X"$ac_file" : 'X\(//\)[^/]' \| \
19879	 X"$ac_file" : 'X\(//\)$' \| \
19880	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19881$as_echo X"$ac_file" |
19882    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19883	    s//\1/
19884	    q
19885	  }
19886	  /^X\(\/\/\)[^/].*/{
19887	    s//\1/
19888	    q
19889	  }
19890	  /^X\(\/\/\)$/{
19891	    s//\1/
19892	    q
19893	  }
19894	  /^X\(\/\).*/{
19895	    s//\1/
19896	    q
19897	  }
19898	  s/.*/./; q'`
19899  as_dir="$ac_dir"; as_fn_mkdir_p
19900  ac_builddir=.
19901
19902case "$ac_dir" in
19903.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19904*)
19905  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19906  # A ".." for each directory in $ac_dir_suffix.
19907  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19908  case $ac_top_builddir_sub in
19909  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19910  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19911  esac ;;
19912esac
19913ac_abs_top_builddir=$ac_pwd
19914ac_abs_builddir=$ac_pwd$ac_dir_suffix
19915# for backward compatibility:
19916ac_top_builddir=$ac_top_build_prefix
19917
19918case $srcdir in
19919  .)  # We are building in place.
19920    ac_srcdir=.
19921    ac_top_srcdir=$ac_top_builddir_sub
19922    ac_abs_top_srcdir=$ac_pwd ;;
19923  [\\/]* | ?:[\\/]* )  # Absolute name.
19924    ac_srcdir=$srcdir$ac_dir_suffix;
19925    ac_top_srcdir=$srcdir
19926    ac_abs_top_srcdir=$srcdir ;;
19927  *) # Relative name.
19928    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19929    ac_top_srcdir=$ac_top_build_prefix$srcdir
19930    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19931esac
19932ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19933
19934
19935  case $ac_mode in
19936  :F)
19937  #
19938  # CONFIG_FILE
19939  #
19940
19941  case $INSTALL in
19942  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19943  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19944  esac
19945  ac_MKDIR_P=$MKDIR_P
19946  case $MKDIR_P in
19947  [\\/$]* | ?:[\\/]* ) ;;
19948  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19949  esac
19950_ACEOF
19951
19952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19953# If the template does not know about datarootdir, expand it.
19954# FIXME: This hack should be removed a few years after 2.60.
19955ac_datarootdir_hack=; ac_datarootdir_seen=
19956ac_sed_dataroot='
19957/datarootdir/ {
19958  p
19959  q
19960}
19961/@datadir@/p
19962/@docdir@/p
19963/@infodir@/p
19964/@localedir@/p
19965/@mandir@/p'
19966case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19967*datarootdir*) ac_datarootdir_seen=yes;;
19968*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19969  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19970$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19971_ACEOF
19972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19973  ac_datarootdir_hack='
19974  s&@datadir@&$datadir&g
19975  s&@docdir@&$docdir&g
19976  s&@infodir@&$infodir&g
19977  s&@localedir@&$localedir&g
19978  s&@mandir@&$mandir&g
19979  s&\\\${datarootdir}&$datarootdir&g' ;;
19980esac
19981_ACEOF
19982
19983# Neutralize VPATH when `$srcdir' = `.'.
19984# Shell code in configure.ac might set extrasub.
19985# FIXME: do we really want to maintain this feature?
19986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19987ac_sed_extra="$ac_vpsub
19988$extrasub
19989_ACEOF
19990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19991:t
19992/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19993s|@configure_input@|$ac_sed_conf_input|;t t
19994s&@top_builddir@&$ac_top_builddir_sub&;t t
19995s&@top_build_prefix@&$ac_top_build_prefix&;t t
19996s&@srcdir@&$ac_srcdir&;t t
19997s&@abs_srcdir@&$ac_abs_srcdir&;t t
19998s&@top_srcdir@&$ac_top_srcdir&;t t
19999s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20000s&@builddir@&$ac_builddir&;t t
20001s&@abs_builddir@&$ac_abs_builddir&;t t
20002s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20003s&@INSTALL@&$ac_INSTALL&;t t
20004s&@MKDIR_P@&$ac_MKDIR_P&;t t
20005$ac_datarootdir_hack
20006"
20007eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20008  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20009
20010test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20011  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20012  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20013      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20014  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20015which seems to be undefined.  Please make sure it is defined" >&5
20016$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20017which seems to be undefined.  Please make sure it is defined" >&2;}
20018
20019  rm -f "$ac_tmp/stdin"
20020  case $ac_file in
20021  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20022  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20023  esac \
20024  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20025 ;;
20026  :H)
20027  #
20028  # CONFIG_HEADER
20029  #
20030  if test x"$ac_file" != x-; then
20031    {
20032      $as_echo "/* $configure_input  */" \
20033      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20034    } >"$ac_tmp/config.h" \
20035      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20036    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20037      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20038$as_echo "$as_me: $ac_file is unchanged" >&6;}
20039    else
20040      rm -f "$ac_file"
20041      mv "$ac_tmp/config.h" "$ac_file" \
20042	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20043    fi
20044  else
20045    $as_echo "/* $configure_input  */" \
20046      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20047      || as_fn_error $? "could not create -" "$LINENO" 5
20048  fi
20049# Compute "$ac_file"'s index in $config_headers.
20050_am_arg="$ac_file"
20051_am_stamp_count=1
20052for _am_header in $config_headers :; do
20053  case $_am_header in
20054    $_am_arg | $_am_arg:* )
20055      break ;;
20056    * )
20057      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20058  esac
20059done
20060echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20061$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20062	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20063	 X"$_am_arg" : 'X\(//\)$' \| \
20064	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20065$as_echo X"$_am_arg" |
20066    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20067	    s//\1/
20068	    q
20069	  }
20070	  /^X\(\/\/\)[^/].*/{
20071	    s//\1/
20072	    q
20073	  }
20074	  /^X\(\/\/\)$/{
20075	    s//\1/
20076	    q
20077	  }
20078	  /^X\(\/\).*/{
20079	    s//\1/
20080	    q
20081	  }
20082	  s/.*/./; q'`/stamp-h$_am_stamp_count
20083 ;;
20084
20085  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20086$as_echo "$as_me: executing $ac_file commands" >&6;}
20087 ;;
20088  esac
20089
20090
20091  case $ac_file$ac_mode in
20092    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20093  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20094  # are listed without --file.  Let's play safe and only enable the eval
20095  # if we detect the quoting.
20096  case $CONFIG_FILES in
20097  *\'*) eval set x "$CONFIG_FILES" ;;
20098  *)   set x $CONFIG_FILES ;;
20099  esac
20100  shift
20101  for mf
20102  do
20103    # Strip MF so we end up with the name of the file.
20104    mf=`echo "$mf" | sed -e 's/:.*$//'`
20105    # Check whether this is an Automake generated Makefile or not.
20106    # We used to match only the files named `Makefile.in', but
20107    # some people rename them; so instead we look at the file content.
20108    # Grep'ing the first line is not enough: some people post-process
20109    # each Makefile.in and add a new line on top of each file to say so.
20110    # Grep'ing the whole file is not good either: AIX grep has a line
20111    # limit of 2048, but all sed's we know have understand at least 4000.
20112    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20113      dirpart=`$as_dirname -- "$mf" ||
20114$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20115	 X"$mf" : 'X\(//\)[^/]' \| \
20116	 X"$mf" : 'X\(//\)$' \| \
20117	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20118$as_echo X"$mf" |
20119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20120	    s//\1/
20121	    q
20122	  }
20123	  /^X\(\/\/\)[^/].*/{
20124	    s//\1/
20125	    q
20126	  }
20127	  /^X\(\/\/\)$/{
20128	    s//\1/
20129	    q
20130	  }
20131	  /^X\(\/\).*/{
20132	    s//\1/
20133	    q
20134	  }
20135	  s/.*/./; q'`
20136    else
20137      continue
20138    fi
20139    # Extract the definition of DEPDIR, am__include, and am__quote
20140    # from the Makefile without running `make'.
20141    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20142    test -z "$DEPDIR" && continue
20143    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20144    test -z "am__include" && continue
20145    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20146    # When using ansi2knr, U may be empty or an underscore; expand it
20147    U=`sed -n 's/^U = //p' < "$mf"`
20148    # Find all dependency output files, they are included files with
20149    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20150    # simplest approach to changing $(DEPDIR) to its actual value in the
20151    # expansion.
20152    for file in `sed -n "
20153      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20154	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20155      # Make sure the directory exists.
20156      test -f "$dirpart/$file" && continue
20157      fdir=`$as_dirname -- "$file" ||
20158$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20159	 X"$file" : 'X\(//\)[^/]' \| \
20160	 X"$file" : 'X\(//\)$' \| \
20161	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20162$as_echo X"$file" |
20163    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20164	    s//\1/
20165	    q
20166	  }
20167	  /^X\(\/\/\)[^/].*/{
20168	    s//\1/
20169	    q
20170	  }
20171	  /^X\(\/\/\)$/{
20172	    s//\1/
20173	    q
20174	  }
20175	  /^X\(\/\).*/{
20176	    s//\1/
20177	    q
20178	  }
20179	  s/.*/./; q'`
20180      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20181      # echo "creating $dirpart/$file"
20182      echo '# dummy' > "$dirpart/$file"
20183    done
20184  done
20185}
20186 ;;
20187    "libtool":C)
20188
20189    # See if we are running on zsh, and set the options which allow our
20190    # commands through without removal of \ escapes.
20191    if test -n "${ZSH_VERSION+set}" ; then
20192      setopt NO_GLOB_SUBST
20193    fi
20194
20195    cfgfile="${ofile}T"
20196    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20197    $RM "$cfgfile"
20198
20199    cat <<_LT_EOF >> "$cfgfile"
20200#! $SHELL
20201
20202# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20203# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20204# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20205# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20206#
20207#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20208#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20209#                 Foundation, Inc.
20210#   Written by Gordon Matzigkeit, 1996
20211#
20212#   This file is part of GNU Libtool.
20213#
20214# GNU Libtool is free software; you can redistribute it and/or
20215# modify it under the terms of the GNU General Public License as
20216# published by the Free Software Foundation; either version 2 of
20217# the License, or (at your option) any later version.
20218#
20219# As a special exception to the GNU General Public License,
20220# if you distribute this file as part of a program or library that
20221# is built using GNU Libtool, you may include this file under the
20222# same distribution terms that you use for the rest of that program.
20223#
20224# GNU Libtool is distributed in the hope that it will be useful,
20225# but WITHOUT ANY WARRANTY; without even the implied warranty of
20226# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20227# GNU General Public License for more details.
20228#
20229# You should have received a copy of the GNU General Public License
20230# along with GNU Libtool; see the file COPYING.  If not, a copy
20231# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20232# obtained by writing to the Free Software Foundation, Inc.,
20233# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20234
20235
20236# The names of the tagged configurations supported by this script.
20237available_tags=""
20238
20239# ### BEGIN LIBTOOL CONFIG
20240
20241# Whether or not to build static libraries.
20242build_old_libs=$enable_static
20243
20244# Which release of libtool.m4 was used?
20245macro_version=$macro_version
20246macro_revision=$macro_revision
20247
20248# Whether or not to build shared libraries.
20249build_libtool_libs=$enable_shared
20250
20251# What type of objects to build.
20252pic_mode=$pic_mode
20253
20254# Whether or not to optimize for fast installation.
20255fast_install=$enable_fast_install
20256
20257# Shell to use when invoking shell scripts.
20258SHELL=$lt_SHELL
20259
20260# An echo program that protects backslashes.
20261ECHO=$lt_ECHO
20262
20263# The PATH separator for the build system.
20264PATH_SEPARATOR=$lt_PATH_SEPARATOR
20265
20266# The host system.
20267host_alias=$host_alias
20268host=$host
20269host_os=$host_os
20270
20271# The build system.
20272build_alias=$build_alias
20273build=$build
20274build_os=$build_os
20275
20276# A sed program that does not truncate output.
20277SED=$lt_SED
20278
20279# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20280Xsed="\$SED -e 1s/^X//"
20281
20282# A grep program that handles long lines.
20283GREP=$lt_GREP
20284
20285# An ERE matcher.
20286EGREP=$lt_EGREP
20287
20288# A literal string matcher.
20289FGREP=$lt_FGREP
20290
20291# A BSD- or MS-compatible name lister.
20292NM=$lt_NM
20293
20294# Whether we need soft or hard links.
20295LN_S=$lt_LN_S
20296
20297# What is the maximum length of a command?
20298max_cmd_len=$max_cmd_len
20299
20300# Object file suffix (normally "o").
20301objext=$ac_objext
20302
20303# Executable file suffix (normally "").
20304exeext=$exeext
20305
20306# whether the shell understands "unset".
20307lt_unset=$lt_unset
20308
20309# turn spaces into newlines.
20310SP2NL=$lt_lt_SP2NL
20311
20312# turn newlines into spaces.
20313NL2SP=$lt_lt_NL2SP
20314
20315# convert \$build file names to \$host format.
20316to_host_file_cmd=$lt_cv_to_host_file_cmd
20317
20318# convert \$build files to toolchain format.
20319to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20320
20321# An object symbol dumper.
20322OBJDUMP=$lt_OBJDUMP
20323
20324# Method to check whether dependent libraries are shared objects.
20325deplibs_check_method=$lt_deplibs_check_method
20326
20327# Command to use when deplibs_check_method = "file_magic".
20328file_magic_cmd=$lt_file_magic_cmd
20329
20330# How to find potential files when deplibs_check_method = "file_magic".
20331file_magic_glob=$lt_file_magic_glob
20332
20333# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20334want_nocaseglob=$lt_want_nocaseglob
20335
20336# DLL creation program.
20337DLLTOOL=$lt_DLLTOOL
20338
20339# Command to associate shared and link libraries.
20340sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20341
20342# The archiver.
20343AR=$lt_AR
20344
20345# Flags to create an archive.
20346AR_FLAGS=$lt_AR_FLAGS
20347
20348# How to feed a file listing to the archiver.
20349archiver_list_spec=$lt_archiver_list_spec
20350
20351# A symbol stripping program.
20352STRIP=$lt_STRIP
20353
20354# Commands used to install an old-style archive.
20355RANLIB=$lt_RANLIB
20356old_postinstall_cmds=$lt_old_postinstall_cmds
20357old_postuninstall_cmds=$lt_old_postuninstall_cmds
20358
20359# Whether to use a lock for old archive extraction.
20360lock_old_archive_extraction=$lock_old_archive_extraction
20361
20362# A C compiler.
20363LTCC=$lt_CC
20364
20365# LTCC compiler flags.
20366LTCFLAGS=$lt_CFLAGS
20367
20368# Take the output of nm and produce a listing of raw symbols and C names.
20369global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20370
20371# Transform the output of nm in a proper C declaration.
20372global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20373
20374# Transform the output of nm in a C name address pair.
20375global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20376
20377# Transform the output of nm in a C name address pair when lib prefix is needed.
20378global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20379
20380# Specify filename containing input files for \$NM.
20381nm_file_list_spec=$lt_nm_file_list_spec
20382
20383# The root where to search for dependent libraries,and in which our libraries should be installed.
20384lt_sysroot=$lt_sysroot
20385
20386# The name of the directory that contains temporary libtool files.
20387objdir=$objdir
20388
20389# Used to examine libraries when file_magic_cmd begins with "file".
20390MAGIC_CMD=$MAGIC_CMD
20391
20392# Must we lock files when doing compilation?
20393need_locks=$lt_need_locks
20394
20395# Manifest tool.
20396MANIFEST_TOOL=$lt_MANIFEST_TOOL
20397
20398# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20399DSYMUTIL=$lt_DSYMUTIL
20400
20401# Tool to change global to local symbols on Mac OS X.
20402NMEDIT=$lt_NMEDIT
20403
20404# Tool to manipulate fat objects and archives on Mac OS X.
20405LIPO=$lt_LIPO
20406
20407# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20408OTOOL=$lt_OTOOL
20409
20410# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20411OTOOL64=$lt_OTOOL64
20412
20413# Old archive suffix (normally "a").
20414libext=$libext
20415
20416# Shared library suffix (normally ".so").
20417shrext_cmds=$lt_shrext_cmds
20418
20419# The commands to extract the exported symbol list from a shared archive.
20420extract_expsyms_cmds=$lt_extract_expsyms_cmds
20421
20422# Variables whose values should be saved in libtool wrapper scripts and
20423# restored at link time.
20424variables_saved_for_relink=$lt_variables_saved_for_relink
20425
20426# Do we need the "lib" prefix for modules?
20427need_lib_prefix=$need_lib_prefix
20428
20429# Do we need a version for libraries?
20430need_version=$need_version
20431
20432# Library versioning type.
20433version_type=$version_type
20434
20435# Shared library runtime path variable.
20436runpath_var=$runpath_var
20437
20438# Shared library path variable.
20439shlibpath_var=$shlibpath_var
20440
20441# Is shlibpath searched before the hard-coded library search path?
20442shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20443
20444# Format of library name prefix.
20445libname_spec=$lt_libname_spec
20446
20447# List of archive names.  First name is the real one, the rest are links.
20448# The last name is the one that the linker finds with -lNAME
20449library_names_spec=$lt_library_names_spec
20450
20451# The coded name of the library, if different from the real name.
20452soname_spec=$lt_soname_spec
20453
20454# Permission mode override for installation of shared libraries.
20455install_override_mode=$lt_install_override_mode
20456
20457# Command to use after installation of a shared archive.
20458postinstall_cmds=$lt_postinstall_cmds
20459
20460# Command to use after uninstallation of a shared archive.
20461postuninstall_cmds=$lt_postuninstall_cmds
20462
20463# Commands used to finish a libtool library installation in a directory.
20464finish_cmds=$lt_finish_cmds
20465
20466# As "finish_cmds", except a single script fragment to be evaled but
20467# not shown.
20468finish_eval=$lt_finish_eval
20469
20470# Whether we should hardcode library paths into libraries.
20471hardcode_into_libs=$hardcode_into_libs
20472
20473# Compile-time system search path for libraries.
20474sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20475
20476# Run-time system search path for libraries.
20477sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20478
20479# Whether dlopen is supported.
20480dlopen_support=$enable_dlopen
20481
20482# Whether dlopen of programs is supported.
20483dlopen_self=$enable_dlopen_self
20484
20485# Whether dlopen of statically linked programs is supported.
20486dlopen_self_static=$enable_dlopen_self_static
20487
20488# Commands to strip libraries.
20489old_striplib=$lt_old_striplib
20490striplib=$lt_striplib
20491
20492
20493# The linker used to build libraries.
20494LD=$lt_LD
20495
20496# How to create reloadable object files.
20497reload_flag=$lt_reload_flag
20498reload_cmds=$lt_reload_cmds
20499
20500# Commands used to build an old-style archive.
20501old_archive_cmds=$lt_old_archive_cmds
20502
20503# A language specific compiler.
20504CC=$lt_compiler
20505
20506# Is the compiler the GNU compiler?
20507with_gcc=$GCC
20508
20509# Compiler flag to turn off builtin functions.
20510no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20511
20512# Additional compiler flags for building library objects.
20513pic_flag=$lt_lt_prog_compiler_pic
20514
20515# How to pass a linker flag through the compiler.
20516wl=$lt_lt_prog_compiler_wl
20517
20518# Compiler flag to prevent dynamic linking.
20519link_static_flag=$lt_lt_prog_compiler_static
20520
20521# Does compiler simultaneously support -c and -o options?
20522compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20523
20524# Whether or not to add -lc for building shared libraries.
20525build_libtool_need_lc=$archive_cmds_need_lc
20526
20527# Whether or not to disallow shared libs when runtime libs are static.
20528allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20529
20530# Compiler flag to allow reflexive dlopens.
20531export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20532
20533# Compiler flag to generate shared objects directly from archives.
20534whole_archive_flag_spec=$lt_whole_archive_flag_spec
20535
20536# Whether the compiler copes with passing no objects directly.
20537compiler_needs_object=$lt_compiler_needs_object
20538
20539# Create an old-style archive from a shared archive.
20540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20541
20542# Create a temporary old-style archive to link instead of a shared archive.
20543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20544
20545# Commands used to build a shared archive.
20546archive_cmds=$lt_archive_cmds
20547archive_expsym_cmds=$lt_archive_expsym_cmds
20548
20549# Commands used to build a loadable module if different from building
20550# a shared archive.
20551module_cmds=$lt_module_cmds
20552module_expsym_cmds=$lt_module_expsym_cmds
20553
20554# Whether we are building with GNU ld or not.
20555with_gnu_ld=$lt_with_gnu_ld
20556
20557# Flag that allows shared libraries with undefined symbols to be built.
20558allow_undefined_flag=$lt_allow_undefined_flag
20559
20560# Flag that enforces no undefined symbols.
20561no_undefined_flag=$lt_no_undefined_flag
20562
20563# Flag to hardcode \$libdir into a binary during linking.
20564# This must work even if \$libdir does not exist
20565hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20566
20567# Whether we need a single "-rpath" flag with a separated argument.
20568hardcode_libdir_separator=$lt_hardcode_libdir_separator
20569
20570# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20571# DIR into the resulting binary.
20572hardcode_direct=$hardcode_direct
20573
20574# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20575# DIR into the resulting binary and the resulting library dependency is
20576# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20577# library is relocated.
20578hardcode_direct_absolute=$hardcode_direct_absolute
20579
20580# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20581# into the resulting binary.
20582hardcode_minus_L=$hardcode_minus_L
20583
20584# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20585# into the resulting binary.
20586hardcode_shlibpath_var=$hardcode_shlibpath_var
20587
20588# Set to "yes" if building a shared library automatically hardcodes DIR
20589# into the library and all subsequent libraries and executables linked
20590# against it.
20591hardcode_automatic=$hardcode_automatic
20592
20593# Set to yes if linker adds runtime paths of dependent libraries
20594# to runtime path list.
20595inherit_rpath=$inherit_rpath
20596
20597# Whether libtool must link a program against all its dependency libraries.
20598link_all_deplibs=$link_all_deplibs
20599
20600# Set to "yes" if exported symbols are required.
20601always_export_symbols=$always_export_symbols
20602
20603# The commands to list exported symbols.
20604export_symbols_cmds=$lt_export_symbols_cmds
20605
20606# Symbols that should not be listed in the preloaded symbols.
20607exclude_expsyms=$lt_exclude_expsyms
20608
20609# Symbols that must always be exported.
20610include_expsyms=$lt_include_expsyms
20611
20612# Commands necessary for linking programs (against libraries) with templates.
20613prelink_cmds=$lt_prelink_cmds
20614
20615# Commands necessary for finishing linking programs.
20616postlink_cmds=$lt_postlink_cmds
20617
20618# Specify filename containing input files.
20619file_list_spec=$lt_file_list_spec
20620
20621# How to hardcode a shared library path into an executable.
20622hardcode_action=$hardcode_action
20623
20624# ### END LIBTOOL CONFIG
20625
20626_LT_EOF
20627
20628  case $host_os in
20629  aix3*)
20630    cat <<\_LT_EOF >> "$cfgfile"
20631# AIX sometimes has problems with the GCC collect2 program.  For some
20632# reason, if we set the COLLECT_NAMES environment variable, the problems
20633# vanish in a puff of smoke.
20634if test "X${COLLECT_NAMES+set}" != Xset; then
20635  COLLECT_NAMES=
20636  export COLLECT_NAMES
20637fi
20638_LT_EOF
20639    ;;
20640  esac
20641
20642
20643ltmain="$ac_aux_dir/ltmain.sh"
20644
20645
20646  # We use sed instead of cat because bash on DJGPP gets confused if
20647  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20648  # text mode, it properly converts lines to CR/LF.  This bash problem
20649  # is reportedly fixed, but why not run on old versions too?
20650  sed '$q' "$ltmain" >> "$cfgfile" \
20651     || (rm -f "$cfgfile"; exit 1)
20652
20653  if test x"$xsi_shell" = xyes; then
20654  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20655func_dirname ()\
20656{\
20657\    case ${1} in\
20658\      */*) func_dirname_result="${1%/*}${2}" ;;\
20659\      *  ) func_dirname_result="${3}" ;;\
20660\    esac\
20661} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20662  && mv -f "$cfgfile.tmp" "$cfgfile" \
20663    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20664test 0 -eq $? || _lt_function_replace_fail=:
20665
20666
20667  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20668func_basename ()\
20669{\
20670\    func_basename_result="${1##*/}"\
20671} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20672  && mv -f "$cfgfile.tmp" "$cfgfile" \
20673    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20674test 0 -eq $? || _lt_function_replace_fail=:
20675
20676
20677  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20678func_dirname_and_basename ()\
20679{\
20680\    case ${1} in\
20681\      */*) func_dirname_result="${1%/*}${2}" ;;\
20682\      *  ) func_dirname_result="${3}" ;;\
20683\    esac\
20684\    func_basename_result="${1##*/}"\
20685} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20686  && mv -f "$cfgfile.tmp" "$cfgfile" \
20687    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20688test 0 -eq $? || _lt_function_replace_fail=:
20689
20690
20691  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20692func_stripname ()\
20693{\
20694\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20695\    # positional parameters, so assign one to ordinary parameter first.\
20696\    func_stripname_result=${3}\
20697\    func_stripname_result=${func_stripname_result#"${1}"}\
20698\    func_stripname_result=${func_stripname_result%"${2}"}\
20699} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20700  && mv -f "$cfgfile.tmp" "$cfgfile" \
20701    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20702test 0 -eq $? || _lt_function_replace_fail=:
20703
20704
20705  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20706func_split_long_opt ()\
20707{\
20708\    func_split_long_opt_name=${1%%=*}\
20709\    func_split_long_opt_arg=${1#*=}\
20710} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20711  && mv -f "$cfgfile.tmp" "$cfgfile" \
20712    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20713test 0 -eq $? || _lt_function_replace_fail=:
20714
20715
20716  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20717func_split_short_opt ()\
20718{\
20719\    func_split_short_opt_arg=${1#??}\
20720\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20721} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20722  && mv -f "$cfgfile.tmp" "$cfgfile" \
20723    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20724test 0 -eq $? || _lt_function_replace_fail=:
20725
20726
20727  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20728func_lo2o ()\
20729{\
20730\    case ${1} in\
20731\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20732\      *)    func_lo2o_result=${1} ;;\
20733\    esac\
20734} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20735  && mv -f "$cfgfile.tmp" "$cfgfile" \
20736    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20737test 0 -eq $? || _lt_function_replace_fail=:
20738
20739
20740  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20741func_xform ()\
20742{\
20743    func_xform_result=${1%.*}.lo\
20744} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20745  && mv -f "$cfgfile.tmp" "$cfgfile" \
20746    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20747test 0 -eq $? || _lt_function_replace_fail=:
20748
20749
20750  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20751func_arith ()\
20752{\
20753    func_arith_result=$(( $* ))\
20754} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20755  && mv -f "$cfgfile.tmp" "$cfgfile" \
20756    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20757test 0 -eq $? || _lt_function_replace_fail=:
20758
20759
20760  sed -e '/^func_len ()$/,/^} # func_len /c\
20761func_len ()\
20762{\
20763    func_len_result=${#1}\
20764} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20765  && mv -f "$cfgfile.tmp" "$cfgfile" \
20766    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20767test 0 -eq $? || _lt_function_replace_fail=:
20768
20769fi
20770
20771if test x"$lt_shell_append" = xyes; then
20772  sed -e '/^func_append ()$/,/^} # func_append /c\
20773func_append ()\
20774{\
20775    eval "${1}+=\\${2}"\
20776} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20777  && mv -f "$cfgfile.tmp" "$cfgfile" \
20778    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20779test 0 -eq $? || _lt_function_replace_fail=:
20780
20781
20782  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20783func_append_quoted ()\
20784{\
20785\    func_quote_for_eval "${2}"\
20786\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20787} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20788  && mv -f "$cfgfile.tmp" "$cfgfile" \
20789    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20790test 0 -eq $? || _lt_function_replace_fail=:
20791
20792
20793  # Save a `func_append' function call where possible by direct use of '+='
20794  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20795    && mv -f "$cfgfile.tmp" "$cfgfile" \
20796      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20797  test 0 -eq $? || _lt_function_replace_fail=:
20798else
20799  # Save a `func_append' function call even when '+=' is not available
20800  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20801    && mv -f "$cfgfile.tmp" "$cfgfile" \
20802      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20803  test 0 -eq $? || _lt_function_replace_fail=:
20804fi
20805
20806if test x"$_lt_function_replace_fail" = x":"; then
20807  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20808$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20809fi
20810
20811
20812   mv -f "$cfgfile" "$ofile" ||
20813    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20814  chmod +x "$ofile"
20815
20816 ;;
20817
20818  esac
20819done # for ac_tag
20820
20821
20822as_fn_exit 0
20823_ACEOF
20824ac_clean_files=$ac_clean_files_save
20825
20826test $ac_write_fail = 0 ||
20827  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20828
20829
20830# configure is writing to config.log, and then calls config.status.
20831# config.status does its own redirection, appending to config.log.
20832# Unfortunately, on DOS this fails, as config.log is still kept open
20833# by configure, so config.status won't be able to write to it; its
20834# output is simply discarded.  So we exec the FD to /dev/null,
20835# effectively closing config.log, so it can be properly (re)opened and
20836# appended to by config.status.  When coming back to configure, we
20837# need to make the FD available again.
20838if test "$no_create" != yes; then
20839  ac_cs_success=:
20840  ac_config_status_args=
20841  test "$silent" = yes &&
20842    ac_config_status_args="$ac_config_status_args --quiet"
20843  exec 5>/dev/null
20844  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20845  exec 5>>config.log
20846  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20847  # would make configure fail if this is the last instruction.
20848  $ac_cs_success || as_fn_exit 1
20849fi
20850if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20851  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20852$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20853fi
20854
20855