configure revision 7fe5393c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-ast 0.98.0.
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-ast'
573PACKAGE_TARNAME='xf86-video-ast'
574PACKAGE_VERSION='0.98.0'
575PACKAGE_STRING='xf86-video-ast 0.98.0'
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
622XAA_FALSE
623XAA_TRUE
624XSERVER_LIBPCIACCESS_FALSE
625XSERVER_LIBPCIACCESS_TRUE
626PCIACCESS_LIBS
627PCIACCESS_CFLAGS
628XORG_LIBS
629XORG_CFLAGS
630OTOOL64
631OTOOL
632LIPO
633NMEDIT
634DSYMUTIL
635MANIFEST_TOOL
636RANLIB
637ac_ct_AR
638AR
639DLLTOOL
640OBJDUMP
641LN_S
642NM
643ac_ct_DUMPBIN
644DUMPBIN
645LD
646FGREP
647LIBTOOL
648AM_BACKSLASH
649AM_DEFAULT_VERBOSITY
650MAN_SUBSTS
651XORG_MAN_PAGE
652ADMIN_MAN_DIR
653DRIVER_MAN_DIR
654MISC_MAN_DIR
655FILE_MAN_DIR
656LIB_MAN_DIR
657APP_MAN_DIR
658ADMIN_MAN_SUFFIX
659DRIVER_MAN_SUFFIX
660MISC_MAN_SUFFIX
661FILE_MAN_SUFFIX
662LIB_MAN_SUFFIX
663APP_MAN_SUFFIX
664SED
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673INSTALL_CMD
674PKG_CONFIG_LIBDIR
675PKG_CONFIG_PATH
676PKG_CONFIG
677CHANGELOG_CMD
678STRICT_CFLAGS
679CWARNFLAGS
680BASE_CFLAGS
681EGREP
682GREP
683CPP
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687AMDEPBACKSLASH
688AMDEP_FALSE
689AMDEP_TRUE
690am__quote
691am__include
692DEPDIR
693OBJEXT
694EXEEXT
695ac_ct_CC
696CPPFLAGS
697LDFLAGS
698CFLAGS
699CC
700MAINT
701MAINTAINER_MODE_FALSE
702MAINTAINER_MODE_TRUE
703am__untar
704am__tar
705AMTAR
706am__leading_dot
707SET_MAKE
708AWK
709mkdir_p
710MKDIR_P
711INSTALL_STRIP_PROGRAM
712STRIP
713install_sh
714MAKEINFO
715AUTOHEADER
716AUTOMAKE
717AUTOCONF
718ACLOCAL
719VERSION
720PACKAGE
721CYGPATH_W
722am__isrc
723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_URL
757PACKAGE_BUGREPORT
758PACKAGE_STRING
759PACKAGE_VERSION
760PACKAGE_TARNAME
761PACKAGE_NAME
762PATH_SEPARATOR
763SHELL'
764ac_subst_files=''
765ac_user_opts='
766enable_option_checking
767enable_maintainer_mode
768enable_dependency_tracking
769enable_selective_werror
770enable_strict_compilation
771enable_silent_rules
772enable_static
773enable_shared
774with_pic
775enable_fast_install
776with_gnu_ld
777with_sysroot
778enable_libtool_lock
779with_xorg_module_dir
780enable_xaa
781'
782      ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790CPP
791PKG_CONFIG
792PKG_CONFIG_PATH
793PKG_CONFIG_LIBDIR
794XORG_CFLAGS
795XORG_LIBS
796PCIACCESS_CFLAGS
797PCIACCESS_LIBS'
798
799
800# Initialize some variables set by options.
801ac_init_help=
802ac_init_version=false
803ac_unrecognized_opts=
804ac_unrecognized_sep=
805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
827# (The list follows the same order as the GNU Coding Standards.)
828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
836includedir='${prefix}/include'
837oldincludedir='/usr/include'
838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
847
848ac_prev=
849ac_dashdash=
850for ac_option
851do
852  # If the previous option needs an argument, assign it.
853  if test -n "$ac_prev"; then
854    eval $ac_prev=\$ac_option
855    ac_prev=
856    continue
857  fi
858
859  case $ac_option in
860  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861  *=)   ac_optarg= ;;
862  *)    ac_optarg=yes ;;
863  esac
864
865  # Accept the important Cygnus configure options, so we can diagnose typos.
866
867  case $ac_dashdash$ac_option in
868  --)
869    ac_dashdash=yes ;;
870
871  -bindir | --bindir | --bindi | --bind | --bin | --bi)
872    ac_prev=bindir ;;
873  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874    bindir=$ac_optarg ;;
875
876  -build | --build | --buil | --bui | --bu)
877    ac_prev=build_alias ;;
878  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879    build_alias=$ac_optarg ;;
880
881  -cache-file | --cache-file | --cache-fil | --cache-fi \
882  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883    ac_prev=cache_file ;;
884  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886    cache_file=$ac_optarg ;;
887
888  --config-cache | -C)
889    cache_file=config.cache ;;
890
891  -datadir | --datadir | --datadi | --datad)
892    ac_prev=datadir ;;
893  -datadir=* | --datadir=* | --datadi=* | --datad=*)
894    datadir=$ac_optarg ;;
895
896  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897  | --dataroo | --dataro | --datar)
898    ac_prev=datarootdir ;;
899  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901    datarootdir=$ac_optarg ;;
902
903  -disable-* | --disable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: $ac_useropt"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=no ;;
918
919  -docdir | --docdir | --docdi | --doc | --do)
920    ac_prev=docdir ;;
921  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922    docdir=$ac_optarg ;;
923
924  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925    ac_prev=dvidir ;;
926  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927    dvidir=$ac_optarg ;;
928
929  -enable-* | --enable-*)
930    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931    # Reject names that are not valid shell variable names.
932    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933      as_fn_error $? "invalid feature name: $ac_useropt"
934    ac_useropt_orig=$ac_useropt
935    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936    case $ac_user_opts in
937      *"
938"enable_$ac_useropt"
939"*) ;;
940      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941	 ac_unrecognized_sep=', ';;
942    esac
943    eval enable_$ac_useropt=\$ac_optarg ;;
944
945  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947  | --exec | --exe | --ex)
948    ac_prev=exec_prefix ;;
949  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951  | --exec=* | --exe=* | --ex=*)
952    exec_prefix=$ac_optarg ;;
953
954  -gas | --gas | --ga | --g)
955    # Obsolete; use --with-gas.
956    with_gas=yes ;;
957
958  -help | --help | --hel | --he | -h)
959    ac_init_help=long ;;
960  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961    ac_init_help=recursive ;;
962  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963    ac_init_help=short ;;
964
965  -host | --host | --hos | --ho)
966    ac_prev=host_alias ;;
967  -host=* | --host=* | --hos=* | --ho=*)
968    host_alias=$ac_optarg ;;
969
970  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971    ac_prev=htmldir ;;
972  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973  | --ht=*)
974    htmldir=$ac_optarg ;;
975
976  -includedir | --includedir | --includedi | --included | --include \
977  | --includ | --inclu | --incl | --inc)
978    ac_prev=includedir ;;
979  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980  | --includ=* | --inclu=* | --incl=* | --inc=*)
981    includedir=$ac_optarg ;;
982
983  -infodir | --infodir | --infodi | --infod | --info | --inf)
984    ac_prev=infodir ;;
985  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986    infodir=$ac_optarg ;;
987
988  -libdir | --libdir | --libdi | --libd)
989    ac_prev=libdir ;;
990  -libdir=* | --libdir=* | --libdi=* | --libd=*)
991    libdir=$ac_optarg ;;
992
993  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994  | --libexe | --libex | --libe)
995    ac_prev=libexecdir ;;
996  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997  | --libexe=* | --libex=* | --libe=*)
998    libexecdir=$ac_optarg ;;
999
1000  -localedir | --localedir | --localedi | --localed | --locale)
1001    ac_prev=localedir ;;
1002  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003    localedir=$ac_optarg ;;
1004
1005  -localstatedir | --localstatedir | --localstatedi | --localstated \
1006  | --localstate | --localstat | --localsta | --localst | --locals)
1007    ac_prev=localstatedir ;;
1008  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010    localstatedir=$ac_optarg ;;
1011
1012  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013    ac_prev=mandir ;;
1014  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015    mandir=$ac_optarg ;;
1016
1017  -nfp | --nfp | --nf)
1018    # Obsolete; use --without-fp.
1019    with_fp=no ;;
1020
1021  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022  | --no-cr | --no-c | -n)
1023    no_create=yes ;;
1024
1025  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027    no_recursion=yes ;;
1028
1029  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031  | --oldin | --oldi | --old | --ol | --o)
1032    ac_prev=oldincludedir ;;
1033  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036    oldincludedir=$ac_optarg ;;
1037
1038  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039    ac_prev=prefix ;;
1040  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041    prefix=$ac_optarg ;;
1042
1043  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044  | --program-pre | --program-pr | --program-p)
1045    ac_prev=program_prefix ;;
1046  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048    program_prefix=$ac_optarg ;;
1049
1050  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051  | --program-suf | --program-su | --program-s)
1052    ac_prev=program_suffix ;;
1053  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055    program_suffix=$ac_optarg ;;
1056
1057  -program-transform-name | --program-transform-name \
1058  | --program-transform-nam | --program-transform-na \
1059  | --program-transform-n | --program-transform- \
1060  | --program-transform | --program-transfor \
1061  | --program-transfo | --program-transf \
1062  | --program-trans | --program-tran \
1063  | --progr-tra | --program-tr | --program-t)
1064    ac_prev=program_transform_name ;;
1065  -program-transform-name=* | --program-transform-name=* \
1066  | --program-transform-nam=* | --program-transform-na=* \
1067  | --program-transform-n=* | --program-transform-=* \
1068  | --program-transform=* | --program-transfor=* \
1069  | --program-transfo=* | --program-transf=* \
1070  | --program-trans=* | --program-tran=* \
1071  | --progr-tra=* | --program-tr=* | --program-t=*)
1072    program_transform_name=$ac_optarg ;;
1073
1074  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075    ac_prev=pdfdir ;;
1076  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077    pdfdir=$ac_optarg ;;
1078
1079  -psdir | --psdir | --psdi | --psd | --ps)
1080    ac_prev=psdir ;;
1081  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082    psdir=$ac_optarg ;;
1083
1084  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085  | -silent | --silent | --silen | --sile | --sil)
1086    silent=yes ;;
1087
1088  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089    ac_prev=sbindir ;;
1090  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091  | --sbi=* | --sb=*)
1092    sbindir=$ac_optarg ;;
1093
1094  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096  | --sharedst | --shareds | --shared | --share | --shar \
1097  | --sha | --sh)
1098    ac_prev=sharedstatedir ;;
1099  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102  | --sha=* | --sh=*)
1103    sharedstatedir=$ac_optarg ;;
1104
1105  -site | --site | --sit)
1106    ac_prev=site ;;
1107  -site=* | --site=* | --sit=*)
1108    site=$ac_optarg ;;
1109
1110  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111    ac_prev=srcdir ;;
1112  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113    srcdir=$ac_optarg ;;
1114
1115  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116  | --syscon | --sysco | --sysc | --sys | --sy)
1117    ac_prev=sysconfdir ;;
1118  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120    sysconfdir=$ac_optarg ;;
1121
1122  -target | --target | --targe | --targ | --tar | --ta | --t)
1123    ac_prev=target_alias ;;
1124  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125    target_alias=$ac_optarg ;;
1126
1127  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128    verbose=yes ;;
1129
1130  -version | --version | --versio | --versi | --vers | -V)
1131    ac_init_version=: ;;
1132
1133  -with-* | --with-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error $? "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=\$ac_optarg ;;
1148
1149  -without-* | --without-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=no ;;
1164
1165  --x)
1166    # Obsolete; use --with-x.
1167    with_x=yes ;;
1168
1169  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170  | --x-incl | --x-inc | --x-in | --x-i)
1171    ac_prev=x_includes ;;
1172  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174    x_includes=$ac_optarg ;;
1175
1176  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178    ac_prev=x_libraries ;;
1179  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181    x_libraries=$ac_optarg ;;
1182
1183  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184Try \`$0 --help' for more information"
1185    ;;
1186
1187  *=*)
1188    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189    # Reject names that are not valid shell variable names.
1190    case $ac_envvar in #(
1191      '' | [0-9]* | *[!_$as_cr_alnum]* )
1192      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193    esac
1194    eval $ac_envvar=\$ac_optarg
1195    export $ac_envvar ;;
1196
1197  *)
1198    # FIXME: should be removed in autoconf 3.0.
1199    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203    ;;
1204
1205  esac
1206done
1207
1208if test -n "$ac_prev"; then
1209  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210  as_fn_error $? "missing argument to $ac_option"
1211fi
1212
1213if test -n "$ac_unrecognized_opts"; then
1214  case $enable_option_checking in
1215    no) ;;
1216    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218  esac
1219fi
1220
1221# Check all directory arguments for consistency.
1222for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223		datadir sysconfdir sharedstatedir localstatedir includedir \
1224		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225		libdir localedir mandir
1226do
1227  eval ac_val=\$$ac_var
1228  # Remove trailing slashes.
1229  case $ac_val in
1230    */ )
1231      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232      eval $ac_var=\$ac_val;;
1233  esac
1234  # Be sure to have absolute directory names.
1235  case $ac_val in
1236    [\\/$]* | ?:[\\/]* )  continue;;
1237    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238  esac
1239  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240done
1241
1242# There might be people who depend on the old broken behavior: `$host'
1243# used to hold the argument of --host etc.
1244# FIXME: To remove some day.
1245build=$build_alias
1246host=$host_alias
1247target=$target_alias
1248
1249# FIXME: To remove some day.
1250if test "x$host_alias" != x; then
1251  if test "x$build_alias" = x; then
1252    cross_compiling=maybe
1253    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1254    If a cross compiler is detected then cross compile mode will be used" >&2
1255  elif test "x$build_alias" != "x$host_alias"; then
1256    cross_compiling=yes
1257  fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
1265
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269  as_fn_error $? "working directory cannot be determined"
1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271  as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276  ac_srcdir_defaulted=yes
1277  # Try the directory containing this script, then the parent directory.
1278  ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280	 X"$as_myself" : 'X\(//\)[^/]' \| \
1281	 X"$as_myself" : 'X\(//\)$' \| \
1282	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283$as_echo X"$as_myself" |
1284    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)[^/].*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\/\)$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\).*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  s/.*/./; q'`
1301  srcdir=$ac_confdir
1302  if test ! -r "$srcdir/$ac_unique_file"; then
1303    srcdir=..
1304  fi
1305else
1306  ac_srcdir_defaulted=no
1307fi
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311fi
1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
1314	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315	pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318  srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_env_${ac_var}_value=\$${ac_var}
1329  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
1332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337  # Omit some internal or obsolete options to make the list less imposing.
1338  # This message is too long to be a string in the A/UX 3.1 sh.
1339  cat <<_ACEOF
1340\`configure' configures xf86-video-ast 0.98.0 to adapt to many kinds of systems.
1341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE.  See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350  -h, --help              display this help and exit
1351      --help=short        display options specific to this package
1352      --help=recursive    display the short help of all the included packages
1353  -V, --version           display version information and exit
1354  -q, --quiet, --silent   do not print \`checking ...' messages
1355      --cache-file=FILE   cache test results in FILE [disabled]
1356  -C, --config-cache      alias for \`--cache-file=config.cache'
1357  -n, --no-create         do not create output files
1358      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1359
1360Installation directories:
1361  --prefix=PREFIX         install architecture-independent files in PREFIX
1362                          [$ac_default_prefix]
1363  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1364                          [PREFIX]
1365
1366By default, \`make install' will install all the files in
1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1368an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369for instance \`--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
1374  --bindir=DIR            user executables [EPREFIX/bin]
1375  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1376  --libexecdir=DIR        program executables [EPREFIX/libexec]
1377  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1378  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1379  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1380  --libdir=DIR            object code libraries [EPREFIX/lib]
1381  --includedir=DIR        C header files [PREFIX/include]
1382  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1383  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1384  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1385  --infodir=DIR           info documentation [DATAROOTDIR/info]
1386  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1387  --mandir=DIR            man documentation [DATAROOTDIR/man]
1388  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ast]
1389  --htmldir=DIR           html documentation [DOCDIR]
1390  --dvidir=DIR            dvi documentation [DOCDIR]
1391  --pdfdir=DIR            pdf documentation [DOCDIR]
1392  --psdir=DIR             ps documentation [DOCDIR]
1393_ACEOF
1394
1395  cat <<\_ACEOF
1396
1397Program names:
1398  --program-prefix=PREFIX            prepend PREFIX to installed program names
1399  --program-suffix=SUFFIX            append SUFFIX to installed program names
1400  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1401
1402System types:
1403  --build=BUILD     configure for building on BUILD [guessed]
1404  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1405_ACEOF
1406fi
1407
1408if test -n "$ac_init_help"; then
1409  case $ac_init_help in
1410     short | recursive ) echo "Configuration of xf86-video-ast 0.98.0:";;
1411   esac
1412  cat <<\_ACEOF
1413
1414Optional Features:
1415  --disable-option-checking  ignore unrecognized --enable/--with options
1416  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1417  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1418  --enable-maintainer-mode  enable make rules and dependencies not useful
1419			  (and sometimes confusing) to the casual installer
1420  --disable-dependency-tracking  speeds up one-time build
1421  --enable-dependency-tracking   do not reject slow dependency extractors
1422  --disable-selective-werror
1423                          Turn off selective compiler errors. (default:
1424                          enabled)
1425  --enable-strict-compilation
1426                          Enable all warnings from compiler and make them
1427                          errors (default: disabled)
1428  --enable-silent-rules          less verbose build output (undo: `make V=1')
1429  --disable-silent-rules         verbose build output (undo: `make V=0')
1430  --enable-static[=PKGS]  build static libraries [default=no]
1431  --enable-shared[=PKGS]  build shared libraries [default=yes]
1432  --enable-fast-install[=PKGS]
1433                          optimize for fast installation [default=yes]
1434  --disable-libtool-lock  avoid locking (might break parallel builds)
1435  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1436                          [default=auto]
1437
1438Optional Packages:
1439  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441  --with-pic              try to use only PIC/non-PIC objects [default=use
1442                          both]
1443  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1444  --with-sysroot=DIR Search for dependent libraries within DIR
1445                        (or the compiler's sysroot if not specified).
1446  --with-xorg-module-dir=DIR
1447                          Default xorg module directory
1448                          [[default=$libdir/xorg/modules]]
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  CPP         C preprocessor
1459  PKG_CONFIG  path to pkg-config utility
1460  PKG_CONFIG_PATH
1461              directories to add to pkg-config's search path
1462  PKG_CONFIG_LIBDIR
1463              path overriding pkg-config's built-in search path
1464  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1465  XORG_LIBS   linker flags for XORG, overriding pkg-config
1466  PCIACCESS_CFLAGS
1467              C compiler flags for PCIACCESS, overriding pkg-config
1468  PCIACCESS_LIBS
1469              linker flags for PCIACCESS, overriding pkg-config
1470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
1474Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1475_ACEOF
1476ac_status=$?
1477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480  # If there are subdirs, report their specific --help.
1481  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482    test -d "$ac_dir" ||
1483      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484      continue
1485    ac_builddir=.
1486
1487case "$ac_dir" in
1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489*)
1490  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491  # A ".." for each directory in $ac_dir_suffix.
1492  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493  case $ac_top_builddir_sub in
1494  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496  esac ;;
1497esac
1498ac_abs_top_builddir=$ac_pwd
1499ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500# for backward compatibility:
1501ac_top_builddir=$ac_top_build_prefix
1502
1503case $srcdir in
1504  .)  # We are building in place.
1505    ac_srcdir=.
1506    ac_top_srcdir=$ac_top_builddir_sub
1507    ac_abs_top_srcdir=$ac_pwd ;;
1508  [\\/]* | ?:[\\/]* )  # Absolute name.
1509    ac_srcdir=$srcdir$ac_dir_suffix;
1510    ac_top_srcdir=$srcdir
1511    ac_abs_top_srcdir=$srcdir ;;
1512  *) # Relative name.
1513    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514    ac_top_srcdir=$ac_top_build_prefix$srcdir
1515    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516esac
1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519    cd "$ac_dir" || { ac_status=$?; continue; }
1520    # Check for guested configure.
1521    if test -f "$ac_srcdir/configure.gnu"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524    elif test -f "$ac_srcdir/configure"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure" --help=recursive
1527    else
1528      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529    fi || ac_status=$?
1530    cd "$ac_pwd" || { ac_status=$?; break; }
1531  done
1532fi
1533
1534test -n "$ac_init_help" && exit $ac_status
1535if $ac_init_version; then
1536  cat <<\_ACEOF
1537xf86-video-ast configure 0.98.0
1538generated by GNU Autoconf 2.68
1539
1540Copyright (C) 2010 Free Software Foundation, Inc.
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
1544  exit
1545fi
1546
1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
1550
1551# ac_fn_c_try_compile LINENO
1552# --------------------------
1553# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_compile ()
1555{
1556  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557  rm -f conftest.$ac_objext
1558  if { { ac_try="$ac_compile"
1559case "(($ac_try" in
1560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561  *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564$as_echo "$ac_try_echo"; } >&5
1565  (eval "$ac_compile") 2>conftest.err
1566  ac_status=$?
1567  if test -s conftest.err; then
1568    grep -v '^ *+' conftest.err >conftest.er1
1569    cat conftest.er1 >&5
1570    mv -f conftest.er1 conftest.err
1571  fi
1572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573  test $ac_status = 0; } && {
1574	 test -z "$ac_c_werror_flag" ||
1575	 test ! -s conftest.err
1576       } && test -s conftest.$ac_objext; then :
1577  ac_retval=0
1578else
1579  $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582	ac_retval=1
1583fi
1584  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585  as_fn_set_status $ac_retval
1586
1587} # ac_fn_c_try_compile
1588
1589# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1590# ---------------------------------------------
1591# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1592# accordingly.
1593ac_fn_c_check_decl ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  as_decl_name=`echo $2|sed 's/ *(.*//'`
1597  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1599$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1600if eval \${$3+:} false; then :
1601  $as_echo_n "(cached) " >&6
1602else
1603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604/* end confdefs.h.  */
1605$4
1606int
1607main ()
1608{
1609#ifndef $as_decl_name
1610#ifdef __cplusplus
1611  (void) $as_decl_use;
1612#else
1613  (void) $as_decl_name;
1614#endif
1615#endif
1616
1617  ;
1618  return 0;
1619}
1620_ACEOF
1621if ac_fn_c_try_compile "$LINENO"; then :
1622  eval "$3=yes"
1623else
1624  eval "$3=no"
1625fi
1626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627fi
1628eval ac_res=\$$3
1629	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630$as_echo "$ac_res" >&6; }
1631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632
1633} # ac_fn_c_check_decl
1634
1635# ac_fn_c_try_cpp LINENO
1636# ----------------------
1637# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_cpp ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  if { { ac_try="$ac_cpp conftest.$ac_ext"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1649  ac_status=$?
1650  if test -s conftest.err; then
1651    grep -v '^ *+' conftest.err >conftest.er1
1652    cat conftest.er1 >&5
1653    mv -f conftest.er1 conftest.err
1654  fi
1655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } > conftest.i && {
1657	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1658	 test ! -s conftest.err
1659       }; then :
1660  ac_retval=0
1661else
1662  $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665    ac_retval=1
1666fi
1667  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668  as_fn_set_status $ac_retval
1669
1670} # ac_fn_c_try_cpp
1671
1672# ac_fn_c_try_run LINENO
1673# ----------------------
1674# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1675# that executables *can* be run.
1676ac_fn_c_try_run ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  if { { ac_try="$ac_link"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_link") 2>&5
1687  ac_status=$?
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690  { { case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_try") 2>&5
1697  ac_status=$?
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; }; }; then :
1700  ac_retval=0
1701else
1702  $as_echo "$as_me: program exited with status $ac_status" >&5
1703       $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706       ac_retval=$ac_status
1707fi
1708  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710  as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_run
1713
1714# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715# -------------------------------------------------------
1716# Tests whether HEADER exists and can be compiled using the include files in
1717# INCLUDES, setting the cache variable VAR accordingly.
1718ac_fn_c_check_header_compile ()
1719{
1720  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
1723if eval \${$3+:} false; then :
1724  $as_echo_n "(cached) " >&6
1725else
1726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727/* end confdefs.h.  */
1728$4
1729#include <$2>
1730_ACEOF
1731if ac_fn_c_try_compile "$LINENO"; then :
1732  eval "$3=yes"
1733else
1734  eval "$3=no"
1735fi
1736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737fi
1738eval ac_res=\$$3
1739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743} # ac_fn_c_check_header_compile
1744
1745# ac_fn_c_try_link LINENO
1746# -----------------------
1747# Try to link conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_link ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  rm -f conftest.$ac_objext conftest$ac_exeext
1752  if { { ac_try="$ac_link"
1753case "(($ac_try" in
1754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755  *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759  (eval "$ac_link") 2>conftest.err
1760  ac_status=$?
1761  if test -s conftest.err; then
1762    grep -v '^ *+' conftest.err >conftest.er1
1763    cat conftest.er1 >&5
1764    mv -f conftest.er1 conftest.err
1765  fi
1766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767  test $ac_status = 0; } && {
1768	 test -z "$ac_c_werror_flag" ||
1769	 test ! -s conftest.err
1770       } && test -s conftest$ac_exeext && {
1771	 test "$cross_compiling" = yes ||
1772	 $as_test_x conftest$ac_exeext
1773       }; then :
1774  ac_retval=0
1775else
1776  $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
1779	ac_retval=1
1780fi
1781  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783  # interfere with the next link command; also delete a directory that is
1784  # left behind by Apple's compiler.  We do this before executing the actions.
1785  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787  as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_link
1790
1791# ac_fn_c_check_func LINENO FUNC VAR
1792# ----------------------------------
1793# Tests whether FUNC exists, setting the cache variable VAR accordingly
1794ac_fn_c_check_func ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if eval \${$3+:} false; then :
1800  $as_echo_n "(cached) " >&6
1801else
1802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h.  */
1804/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1805   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1806#define $2 innocuous_$2
1807
1808/* System header to define __stub macros and hopefully few prototypes,
1809    which can conflict with char $2 (); below.
1810    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1811    <limits.h> exists even on freestanding compilers.  */
1812
1813#ifdef __STDC__
1814# include <limits.h>
1815#else
1816# include <assert.h>
1817#endif
1818
1819#undef $2
1820
1821/* Override any GCC internal prototype to avoid an error.
1822   Use char because int might match the return type of a GCC
1823   builtin and then its argument prototype would still apply.  */
1824#ifdef __cplusplus
1825extern "C"
1826#endif
1827char $2 ();
1828/* The GNU C library defines this for functions which it implements
1829    to always fail with ENOSYS.  Some functions are actually named
1830    something starting with __ and the normal name is an alias.  */
1831#if defined __stub_$2 || defined __stub___$2
1832choke me
1833#endif
1834
1835int
1836main ()
1837{
1838return $2 ();
1839  ;
1840  return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_link "$LINENO"; then :
1844  eval "$3=yes"
1845else
1846  eval "$3=no"
1847fi
1848rm -f core conftest.err conftest.$ac_objext \
1849    conftest$ac_exeext conftest.$ac_ext
1850fi
1851eval ac_res=\$$3
1852	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856} # ac_fn_c_check_func
1857
1858# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1859# -------------------------------------------------------
1860# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1861# the include files in INCLUDES and setting the cache variable VAR
1862# accordingly.
1863ac_fn_c_check_header_mongrel ()
1864{
1865  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866  if eval \${$3+:} false; then :
1867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870  $as_echo_n "(cached) " >&6
1871fi
1872eval ac_res=\$$3
1873	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874$as_echo "$ac_res" >&6; }
1875else
1876  # Is the header compilable?
1877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1878$as_echo_n "checking $2 usability... " >&6; }
1879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h.  */
1881$4
1882#include <$2>
1883_ACEOF
1884if ac_fn_c_try_compile "$LINENO"; then :
1885  ac_header_compiler=yes
1886else
1887  ac_header_compiler=no
1888fi
1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1891$as_echo "$ac_header_compiler" >&6; }
1892
1893# Is the header present?
1894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1895$as_echo_n "checking $2 presence... " >&6; }
1896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h.  */
1898#include <$2>
1899_ACEOF
1900if ac_fn_c_try_cpp "$LINENO"; then :
1901  ac_header_preproc=yes
1902else
1903  ac_header_preproc=no
1904fi
1905rm -f conftest.err conftest.i conftest.$ac_ext
1906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1907$as_echo "$ac_header_preproc" >&6; }
1908
1909# So?  What about this header?
1910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1911  yes:no: )
1912    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1913$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1914    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916    ;;
1917  no:yes:* )
1918    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1919$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1920    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1921$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1922    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1923$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1924    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1925$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1926    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928( $as_echo "## ---------------------------------------------------------------------- ##
1929## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1930## ---------------------------------------------------------------------- ##"
1931     ) | sed "s/^/$as_me: WARNING:     /" >&2
1932    ;;
1933esac
1934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
1936if eval \${$3+:} false; then :
1937  $as_echo_n "(cached) " >&6
1938else
1939  eval "$3=\$ac_header_compiler"
1940fi
1941eval ac_res=\$$3
1942	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944fi
1945  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947} # ac_fn_c_check_header_mongrel
1948cat >config.log <<_ACEOF
1949This file contains any messages produced by compilers while
1950running configure, to aid debugging if configure makes a mistake.
1951
1952It was created by xf86-video-ast $as_me 0.98.0, which was
1953generated by GNU Autoconf 2.68.  Invocation command line was
1954
1955  $ $0 $@
1956
1957_ACEOF
1958exec 5>>config.log
1959{
1960cat <<_ASUNAME
1961## --------- ##
1962## Platform. ##
1963## --------- ##
1964
1965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970
1971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1973
1974/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1975/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1978/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1979/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1980/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1981
1982_ASUNAME
1983
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987  IFS=$as_save_IFS
1988  test -z "$as_dir" && as_dir=.
1989    $as_echo "PATH: $as_dir"
1990  done
1991IFS=$as_save_IFS
1992
1993} >&5
1994
1995cat >&5 <<_ACEOF
1996
1997
1998## ----------- ##
1999## Core tests. ##
2000## ----------- ##
2001
2002_ACEOF
2003
2004
2005# Keep a trace of the command line.
2006# Strip out --no-create and --no-recursion so they do not pile up.
2007# Strip out --silent because we don't want to record it for future runs.
2008# Also quote any args containing shell meta-characters.
2009# Make two passes to allow for proper duplicate-argument suppression.
2010ac_configure_args=
2011ac_configure_args0=
2012ac_configure_args1=
2013ac_must_keep_next=false
2014for ac_pass in 1 2
2015do
2016  for ac_arg
2017  do
2018    case $ac_arg in
2019    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021    | -silent | --silent | --silen | --sile | --sil)
2022      continue ;;
2023    *\'*)
2024      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025    esac
2026    case $ac_pass in
2027    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028    2)
2029      as_fn_append ac_configure_args1 " '$ac_arg'"
2030      if test $ac_must_keep_next = true; then
2031	ac_must_keep_next=false # Got value, back to normal.
2032      else
2033	case $ac_arg in
2034	  *=* | --config-cache | -C | -disable-* | --disable-* \
2035	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037	  | -with-* | --with-* | -without-* | --without-* | --x)
2038	    case "$ac_configure_args0 " in
2039	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040	    esac
2041	    ;;
2042	  -* ) ac_must_keep_next=true ;;
2043	esac
2044      fi
2045      as_fn_append ac_configure_args " '$ac_arg'"
2046      ;;
2047    esac
2048  done
2049done
2050{ ac_configure_args0=; unset ac_configure_args0;}
2051{ ac_configure_args1=; unset ac_configure_args1;}
2052
2053# When interrupted or exit'd, cleanup temporary files, and complete
2054# config.log.  We remove comments because anyway the quotes in there
2055# would cause problems or look ugly.
2056# WARNING: Use '\'' to represent an apostrophe within the trap.
2057# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058trap 'exit_status=$?
2059  # Save into config.log some information that might help in debugging.
2060  {
2061    echo
2062
2063    $as_echo "## ---------------- ##
2064## Cache variables. ##
2065## ---------------- ##"
2066    echo
2067    # The following way of writing the cache mishandles newlines in values,
2068(
2069  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070    eval ac_val=\$$ac_var
2071    case $ac_val in #(
2072    *${as_nl}*)
2073      case $ac_var in #(
2074      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076      esac
2077      case $ac_var in #(
2078      _ | IFS | as_nl) ;; #(
2079      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080      *) { eval $ac_var=; unset $ac_var;} ;;
2081      esac ;;
2082    esac
2083  done
2084  (set) 2>&1 |
2085    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086    *${as_nl}ac_space=\ *)
2087      sed -n \
2088	"s/'\''/'\''\\\\'\'''\''/g;
2089	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090      ;; #(
2091    *)
2092      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093      ;;
2094    esac |
2095    sort
2096)
2097    echo
2098
2099    $as_echo "## ----------------- ##
2100## Output variables. ##
2101## ----------------- ##"
2102    echo
2103    for ac_var in $ac_subst_vars
2104    do
2105      eval ac_val=\$$ac_var
2106      case $ac_val in
2107      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108      esac
2109      $as_echo "$ac_var='\''$ac_val'\''"
2110    done | sort
2111    echo
2112
2113    if test -n "$ac_subst_files"; then
2114      $as_echo "## ------------------- ##
2115## File substitutions. ##
2116## ------------------- ##"
2117      echo
2118      for ac_var in $ac_subst_files
2119      do
2120	eval ac_val=\$$ac_var
2121	case $ac_val in
2122	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123	esac
2124	$as_echo "$ac_var='\''$ac_val'\''"
2125      done | sort
2126      echo
2127    fi
2128
2129    if test -s confdefs.h; then
2130      $as_echo "## ----------- ##
2131## confdefs.h. ##
2132## ----------- ##"
2133      echo
2134      cat confdefs.h
2135      echo
2136    fi
2137    test "$ac_signal" != 0 &&
2138      $as_echo "$as_me: caught signal $ac_signal"
2139    $as_echo "$as_me: exit $exit_status"
2140  } >&5
2141  rm -f core *.core core.conftest.* &&
2142    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143    exit $exit_status
2144' 0
2145for ac_signal in 1 2 13 15; do
2146  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2147done
2148ac_signal=0
2149
2150# confdefs.h avoids OS command line length limits that DEFS can exceed.
2151rm -f -r conftest* confdefs.h
2152
2153$as_echo "/* confdefs.h */" > confdefs.h
2154
2155# Predefined preprocessor variables.
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_NAME "$PACKAGE_NAME"
2159_ACEOF
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163_ACEOF
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_VERSION "$PACKAGE_VERSION"
2167_ACEOF
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_STRING "$PACKAGE_STRING"
2171_ACEOF
2172
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175_ACEOF
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_URL "$PACKAGE_URL"
2179_ACEOF
2180
2181
2182# Let the site file select an alternate cache file if it wants to.
2183# Prefer an explicitly selected file to automatically selected ones.
2184ac_site_file1=NONE
2185ac_site_file2=NONE
2186if test -n "$CONFIG_SITE"; then
2187  # We do not want a PATH search for config.site.
2188  case $CONFIG_SITE in #((
2189    -*)  ac_site_file1=./$CONFIG_SITE;;
2190    */*) ac_site_file1=$CONFIG_SITE;;
2191    *)   ac_site_file1=./$CONFIG_SITE;;
2192  esac
2193elif test "x$prefix" != xNONE; then
2194  ac_site_file1=$prefix/share/config.site
2195  ac_site_file2=$prefix/etc/config.site
2196else
2197  ac_site_file1=$ac_default_prefix/share/config.site
2198  ac_site_file2=$ac_default_prefix/etc/config.site
2199fi
2200for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201do
2202  test "x$ac_site_file" = xNONE && continue
2203  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206    sed 's/^/| /' "$ac_site_file" >&5
2207    . "$ac_site_file" \
2208      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210as_fn_error $? "failed to load site script $ac_site_file
2211See \`config.log' for more details" "$LINENO" 5; }
2212  fi
2213done
2214
2215if test -r "$cache_file"; then
2216  # Some versions of bash will fail to source /dev/null (special files
2217  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2218  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220$as_echo "$as_me: loading cache $cache_file" >&6;}
2221    case $cache_file in
2222      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223      *)                      . "./$cache_file";;
2224    esac
2225  fi
2226else
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228$as_echo "$as_me: creating cache $cache_file" >&6;}
2229  >$cache_file
2230fi
2231
2232# Check that the precious variables saved in the cache have kept the same
2233# value.
2234ac_cache_corrupted=false
2235for ac_var in $ac_precious_vars; do
2236  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237  eval ac_new_set=\$ac_env_${ac_var}_set
2238  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239  eval ac_new_val=\$ac_env_${ac_var}_value
2240  case $ac_old_set,$ac_new_set in
2241    set,)
2242      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244      ac_cache_corrupted=: ;;
2245    ,set)
2246      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248      ac_cache_corrupted=: ;;
2249    ,);;
2250    *)
2251      if test "x$ac_old_val" != "x$ac_new_val"; then
2252	# differences in whitespace do not lead to failure.
2253	ac_old_val_w=`echo x $ac_old_val`
2254	ac_new_val_w=`echo x $ac_new_val`
2255	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258	  ac_cache_corrupted=:
2259	else
2260	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262	  eval $ac_var=\$ac_old_val
2263	fi
2264	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2265$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2266	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2267$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2268      fi;;
2269  esac
2270  # Pass precious variables to config.status.
2271  if test "$ac_new_set" = set; then
2272    case $ac_new_val in
2273    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274    *) ac_arg=$ac_var=$ac_new_val ;;
2275    esac
2276    case " $ac_configure_args " in
2277      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2278      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279    esac
2280  fi
2281done
2282if $ac_cache_corrupted; then
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288fi
2289## -------------------- ##
2290## Main body of script. ##
2291## -------------------- ##
2292
2293ac_ext=c
2294ac_cpp='$CPP $CPPFLAGS'
2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299
2300
2301ac_config_headers="$ac_config_headers config.h"
2302
2303ac_aux_dir=
2304for ac_dir in . "$srcdir"/.; do
2305  if test -f "$ac_dir/install-sh"; then
2306    ac_aux_dir=$ac_dir
2307    ac_install_sh="$ac_aux_dir/install-sh -c"
2308    break
2309  elif test -f "$ac_dir/install.sh"; then
2310    ac_aux_dir=$ac_dir
2311    ac_install_sh="$ac_aux_dir/install.sh -c"
2312    break
2313  elif test -f "$ac_dir/shtool"; then
2314    ac_aux_dir=$ac_dir
2315    ac_install_sh="$ac_aux_dir/shtool install -c"
2316    break
2317  fi
2318done
2319if test -z "$ac_aux_dir"; then
2320  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2321fi
2322
2323# These three variables are undocumented and unsupported,
2324# and are intended to be withdrawn in a future Autoconf release.
2325# They can cause serious problems if a builder's source tree is in a directory
2326# whose full name contains unusual characters.
2327ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2328ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2329ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2330
2331
2332
2333# Initialize Automake
2334am__api_version='1.11'
2335
2336# Find a good install program.  We prefer a C program (faster),
2337# so one script is as good as another.  But avoid the broken or
2338# incompatible versions:
2339# SysV /etc/install, /usr/sbin/install
2340# SunOS /usr/etc/install
2341# IRIX /sbin/install
2342# AIX /bin/install
2343# AmigaOS /C/install, which installs bootblocks on floppy discs
2344# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2345# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2346# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2347# OS/2's system install, which has a completely different semantic
2348# ./install, which can be erroneously created by make from ./install.sh.
2349# Reject install programs that cannot install multiple files.
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2351$as_echo_n "checking for a BSD-compatible install... " >&6; }
2352if test -z "$INSTALL"; then
2353if ${ac_cv_path_install+:} false; then :
2354  $as_echo_n "(cached) " >&6
2355else
2356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357for as_dir in $PATH
2358do
2359  IFS=$as_save_IFS
2360  test -z "$as_dir" && as_dir=.
2361    # Account for people who put trailing slashes in PATH elements.
2362case $as_dir/ in #((
2363  ./ | .// | /[cC]/* | \
2364  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2365  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2366  /usr/ucb/* ) ;;
2367  *)
2368    # OSF1 and SCO ODT 3.0 have their own names for install.
2369    # Don't use installbsd from OSF since it installs stuff as root
2370    # by default.
2371    for ac_prog in ginstall scoinst install; do
2372      for ac_exec_ext in '' $ac_executable_extensions; do
2373	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2374	  if test $ac_prog = install &&
2375	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2376	    # AIX install.  It has an incompatible calling convention.
2377	    :
2378	  elif test $ac_prog = install &&
2379	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380	    # program-specific install script used by HP pwplus--don't use.
2381	    :
2382	  else
2383	    rm -rf conftest.one conftest.two conftest.dir
2384	    echo one > conftest.one
2385	    echo two > conftest.two
2386	    mkdir conftest.dir
2387	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2388	      test -s conftest.one && test -s conftest.two &&
2389	      test -s conftest.dir/conftest.one &&
2390	      test -s conftest.dir/conftest.two
2391	    then
2392	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2393	      break 3
2394	    fi
2395	  fi
2396	fi
2397      done
2398    done
2399    ;;
2400esac
2401
2402  done
2403IFS=$as_save_IFS
2404
2405rm -rf conftest.one conftest.two conftest.dir
2406
2407fi
2408  if test "${ac_cv_path_install+set}" = set; then
2409    INSTALL=$ac_cv_path_install
2410  else
2411    # As a last resort, use the slow shell script.  Don't cache a
2412    # value for INSTALL within a source directory, because that will
2413    # break other packages using the cache if that directory is
2414    # removed, or if the value is a relative name.
2415    INSTALL=$ac_install_sh
2416  fi
2417fi
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2419$as_echo "$INSTALL" >&6; }
2420
2421# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2422# It thinks the first close brace ends the variable substitution.
2423test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2424
2425test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2426
2427test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2428
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2430$as_echo_n "checking whether build environment is sane... " >&6; }
2431# Just in case
2432sleep 1
2433echo timestamp > conftest.file
2434# Reject unsafe characters in $srcdir or the absolute working directory
2435# name.  Accept space and tab only in the latter.
2436am_lf='
2437'
2438case `pwd` in
2439  *[\\\"\#\$\&\'\`$am_lf]*)
2440    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2441esac
2442case $srcdir in
2443  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2444    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2445esac
2446
2447# Do `set' in a subshell so we don't clobber the current shell's
2448# arguments.  Must try -L first in case configure is actually a
2449# symlink; some systems play weird games with the mod time of symlinks
2450# (eg FreeBSD returns the mod time of the symlink's containing
2451# directory).
2452if (
2453   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2454   if test "$*" = "X"; then
2455      # -L didn't work.
2456      set X `ls -t "$srcdir/configure" conftest.file`
2457   fi
2458   rm -f conftest.file
2459   if test "$*" != "X $srcdir/configure conftest.file" \
2460      && test "$*" != "X conftest.file $srcdir/configure"; then
2461
2462      # If neither matched, then we have a broken ls.  This can happen
2463      # if, for instance, CONFIG_SHELL is bash and it inherits a
2464      # broken ls alias from the environment.  This has actually
2465      # happened.  Such a system could not be considered "sane".
2466      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2467alias in your environment" "$LINENO" 5
2468   fi
2469
2470   test "$2" = conftest.file
2471   )
2472then
2473   # Ok.
2474   :
2475else
2476   as_fn_error $? "newly created file is older than distributed files!
2477Check your system clock" "$LINENO" 5
2478fi
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2480$as_echo "yes" >&6; }
2481test "$program_prefix" != NONE &&
2482  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2483# Use a double $ so make ignores it.
2484test "$program_suffix" != NONE &&
2485  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2486# Double any \ or $.
2487# By default was `s,x,x', remove it if useless.
2488ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2489program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2490
2491# expand $ac_aux_dir to an absolute path
2492am_aux_dir=`cd $ac_aux_dir && pwd`
2493
2494if test x"${MISSING+set}" != xset; then
2495  case $am_aux_dir in
2496  *\ * | *\	*)
2497    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2498  *)
2499    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2500  esac
2501fi
2502# Use eval to expand $SHELL
2503if eval "$MISSING --run true"; then
2504  am_missing_run="$MISSING --run "
2505else
2506  am_missing_run=
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2508$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2509fi
2510
2511if test x"${install_sh}" != xset; then
2512  case $am_aux_dir in
2513  *\ * | *\	*)
2514    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2515  *)
2516    install_sh="\${SHELL} $am_aux_dir/install-sh"
2517  esac
2518fi
2519
2520# Installed binaries are usually stripped using `strip' when the user
2521# run `make install-strip'.  However `strip' might not be the right
2522# tool to use in cross-compilation environments, therefore Automake
2523# will honor the `STRIP' environment variable to overrule this program.
2524if test "$cross_compiling" != no; then
2525  if test -n "$ac_tool_prefix"; then
2526  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527set dummy ${ac_tool_prefix}strip; ac_word=$2
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529$as_echo_n "checking for $ac_word... " >&6; }
2530if ${ac_cv_prog_STRIP+:} false; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  if test -n "$STRIP"; then
2534  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539  IFS=$as_save_IFS
2540  test -z "$as_dir" && as_dir=.
2541    for ac_exec_ext in '' $ac_executable_extensions; do
2542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545    break 2
2546  fi
2547done
2548  done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553STRIP=$ac_cv_prog_STRIP
2554if test -n "$STRIP"; then
2555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2556$as_echo "$STRIP" >&6; }
2557else
2558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559$as_echo "no" >&6; }
2560fi
2561
2562
2563fi
2564if test -z "$ac_cv_prog_STRIP"; then
2565  ac_ct_STRIP=$STRIP
2566  # Extract the first word of "strip", so it can be a program name with args.
2567set dummy strip; ac_word=$2
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  if test -n "$ac_ct_STRIP"; then
2574  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579  IFS=$as_save_IFS
2580  test -z "$as_dir" && as_dir=.
2581    for ac_exec_ext in '' $ac_executable_extensions; do
2582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583    ac_cv_prog_ac_ct_STRIP="strip"
2584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585    break 2
2586  fi
2587done
2588  done
2589IFS=$as_save_IFS
2590
2591fi
2592fi
2593ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594if test -n "$ac_ct_STRIP"; then
2595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2596$as_echo "$ac_ct_STRIP" >&6; }
2597else
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
2600fi
2601
2602  if test "x$ac_ct_STRIP" = x; then
2603    STRIP=":"
2604  else
2605    case $cross_compiling:$ac_tool_warned in
2606yes:)
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2609ac_tool_warned=yes ;;
2610esac
2611    STRIP=$ac_ct_STRIP
2612  fi
2613else
2614  STRIP="$ac_cv_prog_STRIP"
2615fi
2616
2617fi
2618INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2619
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2621$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2622if test -z "$MKDIR_P"; then
2623  if ${ac_cv_path_mkdir+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2628do
2629  IFS=$as_save_IFS
2630  test -z "$as_dir" && as_dir=.
2631    for ac_prog in mkdir gmkdir; do
2632	 for ac_exec_ext in '' $ac_executable_extensions; do
2633	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2634	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2635	     'mkdir (GNU coreutils) '* | \
2636	     'mkdir (coreutils) '* | \
2637	     'mkdir (fileutils) '4.1*)
2638	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2639	       break 3;;
2640	   esac
2641	 done
2642       done
2643  done
2644IFS=$as_save_IFS
2645
2646fi
2647
2648  test -d ./--version && rmdir ./--version
2649  if test "${ac_cv_path_mkdir+set}" = set; then
2650    MKDIR_P="$ac_cv_path_mkdir -p"
2651  else
2652    # As a last resort, use the slow shell script.  Don't cache a
2653    # value for MKDIR_P within a source directory, because that will
2654    # break other packages using the cache if that directory is
2655    # removed, or if the value is a relative name.
2656    MKDIR_P="$ac_install_sh -d"
2657  fi
2658fi
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2660$as_echo "$MKDIR_P" >&6; }
2661
2662mkdir_p="$MKDIR_P"
2663case $mkdir_p in
2664  [\\/$]* | ?:[\\/]*) ;;
2665  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2666esac
2667
2668for ac_prog in gawk mawk nawk awk
2669do
2670  # Extract the first word of "$ac_prog", so it can be a program name with args.
2671set dummy $ac_prog; ac_word=$2
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673$as_echo_n "checking for $ac_word... " >&6; }
2674if ${ac_cv_prog_AWK+:} false; then :
2675  $as_echo_n "(cached) " >&6
2676else
2677  if test -n "$AWK"; then
2678  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683  IFS=$as_save_IFS
2684  test -z "$as_dir" && as_dir=.
2685    for ac_exec_ext in '' $ac_executable_extensions; do
2686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687    ac_cv_prog_AWK="$ac_prog"
2688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689    break 2
2690  fi
2691done
2692  done
2693IFS=$as_save_IFS
2694
2695fi
2696fi
2697AWK=$ac_cv_prog_AWK
2698if test -n "$AWK"; then
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2700$as_echo "$AWK" >&6; }
2701else
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704fi
2705
2706
2707  test -n "$AWK" && break
2708done
2709
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2711$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2712set x ${MAKE-make}
2713ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2714if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  cat >conftest.make <<\_ACEOF
2718SHELL = /bin/sh
2719all:
2720	@echo '@@@%%%=$(MAKE)=@@@%%%'
2721_ACEOF
2722# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2723case `${MAKE-make} -f conftest.make 2>/dev/null` in
2724  *@@@%%%=?*=@@@%%%*)
2725    eval ac_cv_prog_make_${ac_make}_set=yes;;
2726  *)
2727    eval ac_cv_prog_make_${ac_make}_set=no;;
2728esac
2729rm -f conftest.make
2730fi
2731if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2733$as_echo "yes" >&6; }
2734  SET_MAKE=
2735else
2736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737$as_echo "no" >&6; }
2738  SET_MAKE="MAKE=${MAKE-make}"
2739fi
2740
2741rm -rf .tst 2>/dev/null
2742mkdir .tst 2>/dev/null
2743if test -d .tst; then
2744  am__leading_dot=.
2745else
2746  am__leading_dot=_
2747fi
2748rmdir .tst 2>/dev/null
2749
2750if test "`cd $srcdir && pwd`" != "`pwd`"; then
2751  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2752  # is not polluted with repeated "-I."
2753  am__isrc=' -I$(srcdir)'
2754  # test to see if srcdir already configured
2755  if test -f $srcdir/config.status; then
2756    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2757  fi
2758fi
2759
2760# test whether we have cygpath
2761if test -z "$CYGPATH_W"; then
2762  if (cygpath --version) >/dev/null 2>/dev/null; then
2763    CYGPATH_W='cygpath -w'
2764  else
2765    CYGPATH_W=echo
2766  fi
2767fi
2768
2769
2770# Define the identity of the package.
2771 PACKAGE='xf86-video-ast'
2772 VERSION='0.98.0'
2773
2774
2775cat >>confdefs.h <<_ACEOF
2776#define PACKAGE "$PACKAGE"
2777_ACEOF
2778
2779
2780cat >>confdefs.h <<_ACEOF
2781#define VERSION "$VERSION"
2782_ACEOF
2783
2784# Some tools Automake needs.
2785
2786ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2787
2788
2789AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2790
2791
2792AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2793
2794
2795AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2796
2797
2798MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2799
2800# We need awk for the "check" target.  The system "awk" is bad on
2801# some platforms.
2802# Always define AMTAR for backward compatibility.
2803
2804AMTAR=${AMTAR-"${am_missing_run}tar"}
2805
2806am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2807
2808
2809
2810
2811
2812
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2814$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2815    # Check whether --enable-maintainer-mode was given.
2816if test "${enable_maintainer_mode+set}" = set; then :
2817  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2818else
2819  USE_MAINTAINER_MODE=no
2820fi
2821
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2823$as_echo "$USE_MAINTAINER_MODE" >&6; }
2824   if test $USE_MAINTAINER_MODE = yes; then
2825  MAINTAINER_MODE_TRUE=
2826  MAINTAINER_MODE_FALSE='#'
2827else
2828  MAINTAINER_MODE_TRUE='#'
2829  MAINTAINER_MODE_FALSE=
2830fi
2831
2832  MAINT=$MAINTAINER_MODE_TRUE
2833
2834
2835
2836# Require xorg-macros: XORG_DEFAULT_OPTIONS
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848DEPDIR="${am__leading_dot}deps"
2849
2850ac_config_commands="$ac_config_commands depfiles"
2851
2852
2853am_make=${MAKE-make}
2854cat > confinc << 'END'
2855am__doit:
2856	@echo this is the am__doit target
2857.PHONY: am__doit
2858END
2859# If we don't find an include directive, just comment out the code.
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2861$as_echo_n "checking for style of include used by $am_make... " >&6; }
2862am__include="#"
2863am__quote=
2864_am_result=none
2865# First try GNU make style include.
2866echo "include confinc" > confmf
2867# Ignore all kinds of additional output from `make'.
2868case `$am_make -s -f confmf 2> /dev/null` in #(
2869*the\ am__doit\ target*)
2870  am__include=include
2871  am__quote=
2872  _am_result=GNU
2873  ;;
2874esac
2875# Now try BSD make style include.
2876if test "$am__include" = "#"; then
2877   echo '.include "confinc"' > confmf
2878   case `$am_make -s -f confmf 2> /dev/null` in #(
2879   *the\ am__doit\ target*)
2880     am__include=.include
2881     am__quote="\""
2882     _am_result=BSD
2883     ;;
2884   esac
2885fi
2886
2887
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2889$as_echo "$_am_result" >&6; }
2890rm -f confinc confmf
2891
2892# Check whether --enable-dependency-tracking was given.
2893if test "${enable_dependency_tracking+set}" = set; then :
2894  enableval=$enable_dependency_tracking;
2895fi
2896
2897if test "x$enable_dependency_tracking" != xno; then
2898  am_depcomp="$ac_aux_dir/depcomp"
2899  AMDEPBACKSLASH='\'
2900fi
2901 if test "x$enable_dependency_tracking" != xno; then
2902  AMDEP_TRUE=
2903  AMDEP_FALSE='#'
2904else
2905  AMDEP_TRUE='#'
2906  AMDEP_FALSE=
2907fi
2908
2909
2910ac_ext=c
2911ac_cpp='$CPP $CPPFLAGS'
2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914ac_compiler_gnu=$ac_cv_c_compiler_gnu
2915if test -n "$ac_tool_prefix"; then
2916  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2917set dummy ${ac_tool_prefix}gcc; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
2920if ${ac_cv_prog_CC+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  if test -n "$CC"; then
2924  ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929  IFS=$as_save_IFS
2930  test -z "$as_dir" && as_dir=.
2931    for ac_exec_ext in '' $ac_executable_extensions; do
2932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935    break 2
2936  fi
2937done
2938  done
2939IFS=$as_save_IFS
2940
2941fi
2942fi
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946$as_echo "$CC" >&6; }
2947else
2948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
2951
2952
2953fi
2954if test -z "$ac_cv_prog_CC"; then
2955  ac_ct_CC=$CC
2956  # Extract the first word of "gcc", so it can be a program name with args.
2957set dummy gcc; ac_word=$2
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959$as_echo_n "checking for $ac_word... " >&6; }
2960if ${ac_cv_prog_ac_ct_CC+:} false; then :
2961  $as_echo_n "(cached) " >&6
2962else
2963  if test -n "$ac_ct_CC"; then
2964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  test -z "$as_dir" && as_dir=.
2971    for ac_exec_ext in '' $ac_executable_extensions; do
2972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973    ac_cv_prog_ac_ct_CC="gcc"
2974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975    break 2
2976  fi
2977done
2978  done
2979IFS=$as_save_IFS
2980
2981fi
2982fi
2983ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984if test -n "$ac_ct_CC"; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986$as_echo "$ac_ct_CC" >&6; }
2987else
2988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989$as_echo "no" >&6; }
2990fi
2991
2992  if test "x$ac_ct_CC" = x; then
2993    CC=""
2994  else
2995    case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
3000esac
3001    CC=$ac_ct_CC
3002  fi
3003else
3004  CC="$ac_cv_prog_CC"
3005fi
3006
3007if test -z "$CC"; then
3008          if test -n "$ac_tool_prefix"; then
3009    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010set dummy ${ac_tool_prefix}cc; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_CC+:} false; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  if test -n "$CC"; then
3017  ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026    ac_cv_prog_CC="${ac_tool_prefix}cc"
3027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039$as_echo "$CC" >&6; }
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046  fi
3047fi
3048if test -z "$CC"; then
3049  # Extract the first word of "cc", so it can be a program name with args.
3050set dummy cc; ac_word=$2
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052$as_echo_n "checking for $ac_word... " >&6; }
3053if ${ac_cv_prog_CC+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  if test -n "$CC"; then
3057  ac_cv_prog_CC="$CC" # Let the user override the test.
3058else
3059  ac_prog_rejected=no
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  test -z "$as_dir" && as_dir=.
3065    for ac_exec_ext in '' $ac_executable_extensions; do
3066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068       ac_prog_rejected=yes
3069       continue
3070     fi
3071    ac_cv_prog_CC="cc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079if test $ac_prog_rejected = yes; then
3080  # We found a bogon in the path, so make sure we never use it.
3081  set dummy $ac_cv_prog_CC
3082  shift
3083  if test $# != 0; then
3084    # We chose a different compiler from the bogus one.
3085    # However, it has the same basename, so the bogon will be chosen
3086    # first if we set CC to just the basename; use the full file name.
3087    shift
3088    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089  fi
3090fi
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096$as_echo "$CC" >&6; }
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103fi
3104if test -z "$CC"; then
3105  if test -n "$ac_tool_prefix"; then
3106  for ac_prog in cl.exe
3107  do
3108    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
3112if ${ac_cv_prog_CC+:} false; then :
3113  $as_echo_n "(cached) " >&6
3114else
3115  if test -n "$CC"; then
3116  ac_cv_prog_CC="$CC" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121  IFS=$as_save_IFS
3122  test -z "$as_dir" && as_dir=.
3123    for ac_exec_ext in '' $ac_executable_extensions; do
3124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145    test -n "$CC" && break
3146  done
3147fi
3148if test -z "$CC"; then
3149  ac_ct_CC=$CC
3150  for ac_prog in cl.exe
3151do
3152  # Extract the first word of "$ac_prog", so it can be a program name with args.
3153set dummy $ac_prog; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$ac_ct_CC"; then
3160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169    ac_cv_prog_ac_ct_CC="$ac_prog"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182$as_echo "$ac_ct_CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188
3189  test -n "$ac_ct_CC" && break
3190done
3191
3192  if test "x$ac_ct_CC" = x; then
3193    CC=""
3194  else
3195    case $cross_compiling:$ac_tool_warned in
3196yes:)
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199ac_tool_warned=yes ;;
3200esac
3201    CC=$ac_ct_CC
3202  fi
3203fi
3204
3205fi
3206
3207
3208test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error $? "no acceptable C compiler found in \$PATH
3211See \`config.log' for more details" "$LINENO" 5; }
3212
3213# Provide some information about the compiler.
3214$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3215set X $ac_compile
3216ac_compiler=$2
3217for ac_option in --version -v -V -qversion; do
3218  { { ac_try="$ac_compiler $ac_option >&5"
3219case "(($ac_try" in
3220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221  *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3226  ac_status=$?
3227  if test -s conftest.err; then
3228    sed '10a\
3229... rest of stderr output deleted ...
3230         10q' conftest.err >conftest.er1
3231    cat conftest.er1 >&5
3232  fi
3233  rm -f conftest.er1 conftest.err
3234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235  test $ac_status = 0; }
3236done
3237
3238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240
3241int
3242main ()
3243{
3244
3245  ;
3246  return 0;
3247}
3248_ACEOF
3249ac_clean_files_save=$ac_clean_files
3250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3251# Try to create an executable without -o first, disregard a.out.
3252# It will help us diagnose broken compilers, and finding out an intuition
3253# of exeext.
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255$as_echo_n "checking whether the C compiler works... " >&6; }
3256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257
3258# The possible output files:
3259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3260
3261ac_rmfiles=
3262for ac_file in $ac_files
3263do
3264  case $ac_file in
3265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3267  esac
3268done
3269rm -f $ac_rmfiles
3270
3271if { { ac_try="$ac_link_default"
3272case "(($ac_try" in
3273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274  *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
3278  (eval "$ac_link_default") 2>&5
3279  ac_status=$?
3280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281  test $ac_status = 0; }; then :
3282  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3284# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3285# so that the user can short-circuit this test for compilers unknown to
3286# Autoconf.
3287for ac_file in $ac_files ''
3288do
3289  test -f "$ac_file" || continue
3290  case $ac_file in
3291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3292	;;
3293    [ab].out )
3294	# We found the default executable, but exeext='' is most
3295	# certainly right.
3296	break;;
3297    *.* )
3298	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3299	then :; else
3300	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301	fi
3302	# We set ac_cv_exeext here because the later test for it is not
3303	# safe: cross compilers may not add the suffix if given an `-o'
3304	# argument, so we may need to know it at that point already.
3305	# Even if this section looks crufty: it has the advantage of
3306	# actually working.
3307	break;;
3308    * )
3309	break;;
3310  esac
3311done
3312test "$ac_cv_exeext" = no && ac_cv_exeext=
3313
3314else
3315  ac_file=''
3316fi
3317if test -z "$ac_file"; then :
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320$as_echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325as_fn_error 77 "C compiler cannot create executables
3326See \`config.log' for more details" "$LINENO" 5; }
3327else
3328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329$as_echo "yes" >&6; }
3330fi
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3332$as_echo_n "checking for C compiler default output file name... " >&6; }
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3334$as_echo "$ac_file" >&6; }
3335ac_exeext=$ac_cv_exeext
3336
3337rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3338ac_clean_files=$ac_clean_files_save
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3340$as_echo_n "checking for suffix of executables... " >&6; }
3341if { { ac_try="$ac_link"
3342case "(($ac_try" in
3343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344  *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348  (eval "$ac_link") 2>&5
3349  ac_status=$?
3350  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351  test $ac_status = 0; }; then :
3352  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3353# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3354# work properly (i.e., refer to `conftest.exe'), while it won't with
3355# `rm'.
3356for ac_file in conftest.exe conftest conftest.*; do
3357  test -f "$ac_file" || continue
3358  case $ac_file in
3359    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3360    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361	  break;;
3362    * ) break;;
3363  esac
3364done
3365else
3366  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3369See \`config.log' for more details" "$LINENO" 5; }
3370fi
3371rm -f conftest conftest$ac_cv_exeext
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3373$as_echo "$ac_cv_exeext" >&6; }
3374
3375rm -f conftest.$ac_ext
3376EXEEXT=$ac_cv_exeext
3377ac_exeext=$EXEEXT
3378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h.  */
3380#include <stdio.h>
3381int
3382main ()
3383{
3384FILE *f = fopen ("conftest.out", "w");
3385 return ferror (f) || fclose (f) != 0;
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391ac_clean_files="$ac_clean_files conftest.out"
3392# Check that the compiler produces executables we can run.  If not, either
3393# the compiler is broken, or we cross compile.
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3395$as_echo_n "checking whether we are cross compiling... " >&6; }
3396if test "$cross_compiling" != yes; then
3397  { { ac_try="$ac_link"
3398case "(($ac_try" in
3399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400  *) ac_try_echo=$ac_try;;
3401esac
3402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403$as_echo "$ac_try_echo"; } >&5
3404  (eval "$ac_link") 2>&5
3405  ac_status=$?
3406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407  test $ac_status = 0; }
3408  if { ac_try='./conftest$ac_cv_exeext'
3409  { { case "(($ac_try" in
3410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411  *) ac_try_echo=$ac_try;;
3412esac
3413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414$as_echo "$ac_try_echo"; } >&5
3415  (eval "$ac_try") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; }; then
3419    cross_compiling=no
3420  else
3421    if test "$cross_compiling" = maybe; then
3422	cross_compiling=yes
3423    else
3424	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426as_fn_error $? "cannot run C compiled programs.
3427If you meant to cross compile, use \`--host'.
3428See \`config.log' for more details" "$LINENO" 5; }
3429    fi
3430  fi
3431fi
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3433$as_echo "$cross_compiling" >&6; }
3434
3435rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3436ac_clean_files=$ac_clean_files_save
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3438$as_echo_n "checking for suffix of object files... " >&6; }
3439if ${ac_cv_objext+:} false; then :
3440  $as_echo_n "(cached) " >&6
3441else
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.o conftest.obj
3454if { { ac_try="$ac_compile"
3455case "(($ac_try" in
3456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457  *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461  (eval "$ac_compile") 2>&5
3462  ac_status=$?
3463  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464  test $ac_status = 0; }; then :
3465  for ac_file in conftest.o conftest.obj conftest.*; do
3466  test -f "$ac_file" || continue;
3467  case $ac_file in
3468    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3469    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3470       break;;
3471  esac
3472done
3473else
3474  $as_echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479as_fn_error $? "cannot compute suffix of object files: cannot compile
3480See \`config.log' for more details" "$LINENO" 5; }
3481fi
3482rm -f conftest.$ac_cv_objext conftest.$ac_ext
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3485$as_echo "$ac_cv_objext" >&6; }
3486OBJEXT=$ac_cv_objext
3487ac_objext=$OBJEXT
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3489$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3490if ${ac_cv_c_compiler_gnu+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495
3496int
3497main ()
3498{
3499#ifndef __GNUC__
3500       choke me
3501#endif
3502
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507if ac_fn_c_try_compile "$LINENO"; then :
3508  ac_compiler_gnu=yes
3509else
3510  ac_compiler_gnu=no
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513ac_cv_c_compiler_gnu=$ac_compiler_gnu
3514
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3517$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3518if test $ac_compiler_gnu = yes; then
3519  GCC=yes
3520else
3521  GCC=
3522fi
3523ac_test_CFLAGS=${CFLAGS+set}
3524ac_save_CFLAGS=$CFLAGS
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3526$as_echo_n "checking whether $CC accepts -g... " >&6; }
3527if ${ac_cv_prog_cc_g+:} false; then :
3528  $as_echo_n "(cached) " >&6
3529else
3530  ac_save_c_werror_flag=$ac_c_werror_flag
3531   ac_c_werror_flag=yes
3532   ac_cv_prog_cc_g=no
3533   CFLAGS="-g"
3534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h.  */
3536
3537int
3538main ()
3539{
3540
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545if ac_fn_c_try_compile "$LINENO"; then :
3546  ac_cv_prog_cc_g=yes
3547else
3548  CFLAGS=""
3549      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551
3552int
3553main ()
3554{
3555
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560if ac_fn_c_try_compile "$LINENO"; then :
3561
3562else
3563  ac_c_werror_flag=$ac_save_c_werror_flag
3564	 CFLAGS="-g"
3565	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h.  */
3567
3568int
3569main ()
3570{
3571
3572  ;
3573  return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577  ac_cv_prog_cc_g=yes
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584   ac_c_werror_flag=$ac_save_c_werror_flag
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3587$as_echo "$ac_cv_prog_cc_g" >&6; }
3588if test "$ac_test_CFLAGS" = set; then
3589  CFLAGS=$ac_save_CFLAGS
3590elif test $ac_cv_prog_cc_g = yes; then
3591  if test "$GCC" = yes; then
3592    CFLAGS="-g -O2"
3593  else
3594    CFLAGS="-g"
3595  fi
3596else
3597  if test "$GCC" = yes; then
3598    CFLAGS="-O2"
3599  else
3600    CFLAGS=
3601  fi
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3604$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3605if ${ac_cv_prog_cc_c89+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608  ac_cv_prog_cc_c89=no
3609ac_save_CC=$CC
3610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611/* end confdefs.h.  */
3612#include <stdarg.h>
3613#include <stdio.h>
3614#include <sys/types.h>
3615#include <sys/stat.h>
3616/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3617struct buf { int x; };
3618FILE * (*rcsopen) (struct buf *, struct stat *, int);
3619static char *e (p, i)
3620     char **p;
3621     int i;
3622{
3623  return p[i];
3624}
3625static char *f (char * (*g) (char **, int), char **p, ...)
3626{
3627  char *s;
3628  va_list v;
3629  va_start (v,p);
3630  s = g (p, va_arg (v,int));
3631  va_end (v);
3632  return s;
3633}
3634
3635/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3636   function prototypes and stuff, but not '\xHH' hex character constants.
3637   These don't provoke an error unfortunately, instead are silently treated
3638   as 'x'.  The following induces an error, until -std is added to get
3639   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3640   array size at least.  It's necessary to write '\x00'==0 to get something
3641   that's true only with -std.  */
3642int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3643
3644/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3645   inside strings and character constants.  */
3646#define FOO(x) 'x'
3647int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3648
3649int test (int i, double x);
3650struct s1 {int (*f) (int a);};
3651struct s2 {int (*f) (double a);};
3652int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3653int argc;
3654char **argv;
3655int
3656main ()
3657{
3658return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3659  ;
3660  return 0;
3661}
3662_ACEOF
3663for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3664	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3665do
3666  CC="$ac_save_CC $ac_arg"
3667  if ac_fn_c_try_compile "$LINENO"; then :
3668  ac_cv_prog_cc_c89=$ac_arg
3669fi
3670rm -f core conftest.err conftest.$ac_objext
3671  test "x$ac_cv_prog_cc_c89" != "xno" && break
3672done
3673rm -f conftest.$ac_ext
3674CC=$ac_save_CC
3675
3676fi
3677# AC_CACHE_VAL
3678case "x$ac_cv_prog_cc_c89" in
3679  x)
3680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3681$as_echo "none needed" >&6; } ;;
3682  xno)
3683    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3684$as_echo "unsupported" >&6; } ;;
3685  *)
3686    CC="$CC $ac_cv_prog_cc_c89"
3687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3688$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3689esac
3690if test "x$ac_cv_prog_cc_c89" != xno; then :
3691
3692fi
3693
3694ac_ext=c
3695ac_cpp='$CPP $CPPFLAGS'
3696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699
3700depcc="$CC"   am_compiler_list=
3701
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3703$as_echo_n "checking dependency style of $depcc... " >&6; }
3704if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3705  $as_echo_n "(cached) " >&6
3706else
3707  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3708  # We make a subdir and do the tests there.  Otherwise we can end up
3709  # making bogus files that we don't know about and never remove.  For
3710  # instance it was reported that on HP-UX the gcc test will end up
3711  # making a dummy file named `D' -- because `-MD' means `put the output
3712  # in D'.
3713  mkdir conftest.dir
3714  # Copy depcomp to subdir because otherwise we won't find it if we're
3715  # using a relative directory.
3716  cp "$am_depcomp" conftest.dir
3717  cd conftest.dir
3718  # We will build objects and dependencies in a subdirectory because
3719  # it helps to detect inapplicable dependency modes.  For instance
3720  # both Tru64's cc and ICC support -MD to output dependencies as a
3721  # side effect of compilation, but ICC will put the dependencies in
3722  # the current directory while Tru64 will put them in the object
3723  # directory.
3724  mkdir sub
3725
3726  am_cv_CC_dependencies_compiler_type=none
3727  if test "$am_compiler_list" = ""; then
3728     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3729  fi
3730  am__universal=false
3731  case " $depcc " in #(
3732     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3733     esac
3734
3735  for depmode in $am_compiler_list; do
3736    # Setup a source with many dependencies, because some compilers
3737    # like to wrap large dependency lists on column 80 (with \), and
3738    # we should not choose a depcomp mode which is confused by this.
3739    #
3740    # We need to recreate these files for each test, as the compiler may
3741    # overwrite some of them when testing with obscure command lines.
3742    # This happens at least with the AIX C compiler.
3743    : > sub/conftest.c
3744    for i in 1 2 3 4 5 6; do
3745      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3746      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3747      # Solaris 8's {/usr,}/bin/sh.
3748      touch sub/conftst$i.h
3749    done
3750    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3751
3752    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3753    # mode.  It turns out that the SunPro C++ compiler does not properly
3754    # handle `-M -o', and we need to detect this.  Also, some Intel
3755    # versions had trouble with output in subdirs
3756    am__obj=sub/conftest.${OBJEXT-o}
3757    am__minus_obj="-o $am__obj"
3758    case $depmode in
3759    gcc)
3760      # This depmode causes a compiler race in universal mode.
3761      test "$am__universal" = false || continue
3762      ;;
3763    nosideeffect)
3764      # after this tag, mechanisms are not by side-effect, so they'll
3765      # only be used when explicitly requested
3766      if test "x$enable_dependency_tracking" = xyes; then
3767	continue
3768      else
3769	break
3770      fi
3771      ;;
3772    msvisualcpp | msvcmsys)
3773      # This compiler won't grok `-c -o', but also, the minuso test has
3774      # not run yet.  These depmodes are late enough in the game, and
3775      # so weak that their functioning should not be impacted.
3776      am__obj=conftest.${OBJEXT-o}
3777      am__minus_obj=
3778      ;;
3779    none) break ;;
3780    esac
3781    if depmode=$depmode \
3782       source=sub/conftest.c object=$am__obj \
3783       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3784       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3785         >/dev/null 2>conftest.err &&
3786       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3787       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3788       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3789       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3790      # icc doesn't choke on unknown options, it will just issue warnings
3791      # or remarks (even with -Werror).  So we grep stderr for any message
3792      # that says an option was ignored or not supported.
3793      # When given -MP, icc 7.0 and 7.1 complain thusly:
3794      #   icc: Command line warning: ignoring option '-M'; no argument required
3795      # The diagnosis changed in icc 8.0:
3796      #   icc: Command line remark: option '-MP' not supported
3797      if (grep 'ignoring option' conftest.err ||
3798          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3799        am_cv_CC_dependencies_compiler_type=$depmode
3800        break
3801      fi
3802    fi
3803  done
3804
3805  cd ..
3806  rm -rf conftest.dir
3807else
3808  am_cv_CC_dependencies_compiler_type=none
3809fi
3810
3811fi
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3813$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3814CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3815
3816 if
3817  test "x$enable_dependency_tracking" != xno \
3818  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3819  am__fastdepCC_TRUE=
3820  am__fastdepCC_FALSE='#'
3821else
3822  am__fastdepCC_TRUE='#'
3823  am__fastdepCC_FALSE=
3824fi
3825
3826
3827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3828$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3829if ${ac_cv_prog_cc_c99+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  ac_cv_prog_cc_c99=no
3833ac_save_CC=$CC
3834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836#include <stdarg.h>
3837#include <stdbool.h>
3838#include <stdlib.h>
3839#include <wchar.h>
3840#include <stdio.h>
3841
3842// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3843#define debug(...) fprintf (stderr, __VA_ARGS__)
3844#define showlist(...) puts (#__VA_ARGS__)
3845#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3846static void
3847test_varargs_macros (void)
3848{
3849  int x = 1234;
3850  int y = 5678;
3851  debug ("Flag");
3852  debug ("X = %d\n", x);
3853  showlist (The first, second, and third items.);
3854  report (x>y, "x is %d but y is %d", x, y);
3855}
3856
3857// Check long long types.
3858#define BIG64 18446744073709551615ull
3859#define BIG32 4294967295ul
3860#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3861#if !BIG_OK
3862  your preprocessor is broken;
3863#endif
3864#if BIG_OK
3865#else
3866  your preprocessor is broken;
3867#endif
3868static long long int bignum = -9223372036854775807LL;
3869static unsigned long long int ubignum = BIG64;
3870
3871struct incomplete_array
3872{
3873  int datasize;
3874  double data[];
3875};
3876
3877struct named_init {
3878  int number;
3879  const wchar_t *name;
3880  double average;
3881};
3882
3883typedef const char *ccp;
3884
3885static inline int
3886test_restrict (ccp restrict text)
3887{
3888  // See if C++-style comments work.
3889  // Iterate through items via the restricted pointer.
3890  // Also check for declarations in for loops.
3891  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3892    continue;
3893  return 0;
3894}
3895
3896// Check varargs and va_copy.
3897static void
3898test_varargs (const char *format, ...)
3899{
3900  va_list args;
3901  va_start (args, format);
3902  va_list args_copy;
3903  va_copy (args_copy, args);
3904
3905  const char *str;
3906  int number;
3907  float fnumber;
3908
3909  while (*format)
3910    {
3911      switch (*format++)
3912	{
3913	case 's': // string
3914	  str = va_arg (args_copy, const char *);
3915	  break;
3916	case 'd': // int
3917	  number = va_arg (args_copy, int);
3918	  break;
3919	case 'f': // float
3920	  fnumber = va_arg (args_copy, double);
3921	  break;
3922	default:
3923	  break;
3924	}
3925    }
3926  va_end (args_copy);
3927  va_end (args);
3928}
3929
3930int
3931main ()
3932{
3933
3934  // Check bool.
3935  _Bool success = false;
3936
3937  // Check restrict.
3938  if (test_restrict ("String literal") == 0)
3939    success = true;
3940  char *restrict newvar = "Another string";
3941
3942  // Check varargs.
3943  test_varargs ("s, d' f .", "string", 65, 34.234);
3944  test_varargs_macros ();
3945
3946  // Check flexible array members.
3947  struct incomplete_array *ia =
3948    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3949  ia->datasize = 10;
3950  for (int i = 0; i < ia->datasize; ++i)
3951    ia->data[i] = i * 1.234;
3952
3953  // Check named initializers.
3954  struct named_init ni = {
3955    .number = 34,
3956    .name = L"Test wide string",
3957    .average = 543.34343,
3958  };
3959
3960  ni.number = 58;
3961
3962  int dynamic_array[ni.number];
3963  dynamic_array[ni.number - 1] = 543;
3964
3965  // work around unused variable warnings
3966  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3967	  || dynamic_array[ni.number - 1] != 543);
3968
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3974do
3975  CC="$ac_save_CC $ac_arg"
3976  if ac_fn_c_try_compile "$LINENO"; then :
3977  ac_cv_prog_cc_c99=$ac_arg
3978fi
3979rm -f core conftest.err conftest.$ac_objext
3980  test "x$ac_cv_prog_cc_c99" != "xno" && break
3981done
3982rm -f conftest.$ac_ext
3983CC=$ac_save_CC
3984
3985fi
3986# AC_CACHE_VAL
3987case "x$ac_cv_prog_cc_c99" in
3988  x)
3989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990$as_echo "none needed" >&6; } ;;
3991  xno)
3992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3993$as_echo "unsupported" >&6; } ;;
3994  *)
3995    CC="$CC $ac_cv_prog_cc_c99"
3996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3997$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3998esac
3999if test "x$ac_cv_prog_cc_c99" != xno; then :
4000
4001fi
4002
4003
4004
4005ac_ext=c
4006ac_cpp='$CPP $CPPFLAGS'
4007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4011$as_echo_n "checking how to run the C preprocessor... " >&6; }
4012# On Suns, sometimes $CPP names a directory.
4013if test -n "$CPP" && test -d "$CPP"; then
4014  CPP=
4015fi
4016if test -z "$CPP"; then
4017  if ${ac_cv_prog_CPP+:} false; then :
4018  $as_echo_n "(cached) " >&6
4019else
4020      # Double quotes because CPP needs to be expanded
4021    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4022    do
4023      ac_preproc_ok=false
4024for ac_c_preproc_warn_flag in '' yes
4025do
4026  # Use a header file that comes with gcc, so configuring glibc
4027  # with a fresh cross-compiler works.
4028  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4029  # <limits.h> exists even on freestanding compilers.
4030  # On the NeXT, cc -E runs the code through the compiler's parser,
4031  # not just through cpp. "Syntax error" is here to catch this case.
4032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h.  */
4034#ifdef __STDC__
4035# include <limits.h>
4036#else
4037# include <assert.h>
4038#endif
4039		     Syntax error
4040_ACEOF
4041if ac_fn_c_try_cpp "$LINENO"; then :
4042
4043else
4044  # Broken: fails on valid input.
4045continue
4046fi
4047rm -f conftest.err conftest.i conftest.$ac_ext
4048
4049  # OK, works on sane cases.  Now check whether nonexistent headers
4050  # can be detected and how.
4051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052/* end confdefs.h.  */
4053#include <ac_nonexistent.h>
4054_ACEOF
4055if ac_fn_c_try_cpp "$LINENO"; then :
4056  # Broken: success on invalid input.
4057continue
4058else
4059  # Passes both tests.
4060ac_preproc_ok=:
4061break
4062fi
4063rm -f conftest.err conftest.i conftest.$ac_ext
4064
4065done
4066# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4067rm -f conftest.i conftest.err conftest.$ac_ext
4068if $ac_preproc_ok; then :
4069  break
4070fi
4071
4072    done
4073    ac_cv_prog_CPP=$CPP
4074
4075fi
4076  CPP=$ac_cv_prog_CPP
4077else
4078  ac_cv_prog_CPP=$CPP
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4081$as_echo "$CPP" >&6; }
4082ac_preproc_ok=false
4083for ac_c_preproc_warn_flag in '' yes
4084do
4085  # Use a header file that comes with gcc, so configuring glibc
4086  # with a fresh cross-compiler works.
4087  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088  # <limits.h> exists even on freestanding compilers.
4089  # On the NeXT, cc -E runs the code through the compiler's parser,
4090  # not just through cpp. "Syntax error" is here to catch this case.
4091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092/* end confdefs.h.  */
4093#ifdef __STDC__
4094# include <limits.h>
4095#else
4096# include <assert.h>
4097#endif
4098		     Syntax error
4099_ACEOF
4100if ac_fn_c_try_cpp "$LINENO"; then :
4101
4102else
4103  # Broken: fails on valid input.
4104continue
4105fi
4106rm -f conftest.err conftest.i conftest.$ac_ext
4107
4108  # OK, works on sane cases.  Now check whether nonexistent headers
4109  # can be detected and how.
4110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111/* end confdefs.h.  */
4112#include <ac_nonexistent.h>
4113_ACEOF
4114if ac_fn_c_try_cpp "$LINENO"; then :
4115  # Broken: success on invalid input.
4116continue
4117else
4118  # Passes both tests.
4119ac_preproc_ok=:
4120break
4121fi
4122rm -f conftest.err conftest.i conftest.$ac_ext
4123
4124done
4125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126rm -f conftest.i conftest.err conftest.$ac_ext
4127if $ac_preproc_ok; then :
4128
4129else
4130  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4132as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4133See \`config.log' for more details" "$LINENO" 5; }
4134fi
4135
4136ac_ext=c
4137ac_cpp='$CPP $CPPFLAGS'
4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4144$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4145if ${ac_cv_path_GREP+:} false; then :
4146  $as_echo_n "(cached) " >&6
4147else
4148  if test -z "$GREP"; then
4149  ac_path_GREP_found=false
4150  # Loop through the user's path and test for each of PROGNAME-LIST
4151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153do
4154  IFS=$as_save_IFS
4155  test -z "$as_dir" && as_dir=.
4156    for ac_prog in grep ggrep; do
4157    for ac_exec_ext in '' $ac_executable_extensions; do
4158      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4159      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4160# Check for GNU ac_path_GREP and select it if it is found.
4161  # Check for GNU $ac_path_GREP
4162case `"$ac_path_GREP" --version 2>&1` in
4163*GNU*)
4164  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4165*)
4166  ac_count=0
4167  $as_echo_n 0123456789 >"conftest.in"
4168  while :
4169  do
4170    cat "conftest.in" "conftest.in" >"conftest.tmp"
4171    mv "conftest.tmp" "conftest.in"
4172    cp "conftest.in" "conftest.nl"
4173    $as_echo 'GREP' >> "conftest.nl"
4174    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176    as_fn_arith $ac_count + 1 && ac_count=$as_val
4177    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4178      # Best one so far, save it but keep looking for a better one
4179      ac_cv_path_GREP="$ac_path_GREP"
4180      ac_path_GREP_max=$ac_count
4181    fi
4182    # 10*(2^10) chars as input seems more than enough
4183    test $ac_count -gt 10 && break
4184  done
4185  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186esac
4187
4188      $ac_path_GREP_found && break 3
4189    done
4190  done
4191  done
4192IFS=$as_save_IFS
4193  if test -z "$ac_cv_path_GREP"; then
4194    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195  fi
4196else
4197  ac_cv_path_GREP=$GREP
4198fi
4199
4200fi
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4202$as_echo "$ac_cv_path_GREP" >&6; }
4203 GREP="$ac_cv_path_GREP"
4204
4205
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4207$as_echo_n "checking for egrep... " >&6; }
4208if ${ac_cv_path_EGREP+:} false; then :
4209  $as_echo_n "(cached) " >&6
4210else
4211  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4212   then ac_cv_path_EGREP="$GREP -E"
4213   else
4214     if test -z "$EGREP"; then
4215  ac_path_EGREP_found=false
4216  # Loop through the user's path and test for each of PROGNAME-LIST
4217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219do
4220  IFS=$as_save_IFS
4221  test -z "$as_dir" && as_dir=.
4222    for ac_prog in egrep; do
4223    for ac_exec_ext in '' $ac_executable_extensions; do
4224      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4225      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4226# Check for GNU ac_path_EGREP and select it if it is found.
4227  # Check for GNU $ac_path_EGREP
4228case `"$ac_path_EGREP" --version 2>&1` in
4229*GNU*)
4230  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4231*)
4232  ac_count=0
4233  $as_echo_n 0123456789 >"conftest.in"
4234  while :
4235  do
4236    cat "conftest.in" "conftest.in" >"conftest.tmp"
4237    mv "conftest.tmp" "conftest.in"
4238    cp "conftest.in" "conftest.nl"
4239    $as_echo 'EGREP' >> "conftest.nl"
4240    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242    as_fn_arith $ac_count + 1 && ac_count=$as_val
4243    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4244      # Best one so far, save it but keep looking for a better one
4245      ac_cv_path_EGREP="$ac_path_EGREP"
4246      ac_path_EGREP_max=$ac_count
4247    fi
4248    # 10*(2^10) chars as input seems more than enough
4249    test $ac_count -gt 10 && break
4250  done
4251  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252esac
4253
4254      $ac_path_EGREP_found && break 3
4255    done
4256  done
4257  done
4258IFS=$as_save_IFS
4259  if test -z "$ac_cv_path_EGREP"; then
4260    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261  fi
4262else
4263  ac_cv_path_EGREP=$EGREP
4264fi
4265
4266   fi
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4269$as_echo "$ac_cv_path_EGREP" >&6; }
4270 EGREP="$ac_cv_path_EGREP"
4271
4272
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4274$as_echo_n "checking for ANSI C header files... " >&6; }
4275if ${ac_cv_header_stdc+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h.  */
4280#include <stdlib.h>
4281#include <stdarg.h>
4282#include <string.h>
4283#include <float.h>
4284
4285int
4286main ()
4287{
4288
4289  ;
4290  return 0;
4291}
4292_ACEOF
4293if ac_fn_c_try_compile "$LINENO"; then :
4294  ac_cv_header_stdc=yes
4295else
4296  ac_cv_header_stdc=no
4297fi
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299
4300if test $ac_cv_header_stdc = yes; then
4301  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304#include <string.h>
4305
4306_ACEOF
4307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308  $EGREP "memchr" >/dev/null 2>&1; then :
4309
4310else
4311  ac_cv_header_stdc=no
4312fi
4313rm -f conftest*
4314
4315fi
4316
4317if test $ac_cv_header_stdc = yes; then
4318  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320/* end confdefs.h.  */
4321#include <stdlib.h>
4322
4323_ACEOF
4324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325  $EGREP "free" >/dev/null 2>&1; then :
4326
4327else
4328  ac_cv_header_stdc=no
4329fi
4330rm -f conftest*
4331
4332fi
4333
4334if test $ac_cv_header_stdc = yes; then
4335  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4336  if test "$cross_compiling" = yes; then :
4337  :
4338else
4339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340/* end confdefs.h.  */
4341#include <ctype.h>
4342#include <stdlib.h>
4343#if ((' ' & 0x0FF) == 0x020)
4344# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4345# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346#else
4347# define ISLOWER(c) \
4348		   (('a' <= (c) && (c) <= 'i') \
4349		     || ('j' <= (c) && (c) <= 'r') \
4350		     || ('s' <= (c) && (c) <= 'z'))
4351# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4352#endif
4353
4354#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4355int
4356main ()
4357{
4358  int i;
4359  for (i = 0; i < 256; i++)
4360    if (XOR (islower (i), ISLOWER (i))
4361	|| toupper (i) != TOUPPER (i))
4362      return 2;
4363  return 0;
4364}
4365_ACEOF
4366if ac_fn_c_try_run "$LINENO"; then :
4367
4368else
4369  ac_cv_header_stdc=no
4370fi
4371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4372  conftest.$ac_objext conftest.beam conftest.$ac_ext
4373fi
4374
4375fi
4376fi
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4378$as_echo "$ac_cv_header_stdc" >&6; }
4379if test $ac_cv_header_stdc = yes; then
4380
4381$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4382
4383fi
4384
4385# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4386for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4387		  inttypes.h stdint.h unistd.h
4388do :
4389  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4390ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4391"
4392if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4393  cat >>confdefs.h <<_ACEOF
4394#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4395_ACEOF
4396
4397fi
4398
4399done
4400
4401
4402
4403
4404
4405
4406ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4407if test "x$ac_cv_have_decl___clang__" = xyes; then :
4408  CLANGCC="yes"
4409else
4410  CLANGCC="no"
4411fi
4412
4413ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4414if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4415  INTELCC="yes"
4416else
4417  INTELCC="no"
4418fi
4419
4420ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4421if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4422  SUNCC="yes"
4423else
4424  SUNCC="no"
4425fi
4426
4427
4428
4429
4430
4431
4432
4433
4434if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4435	if test -n "$ac_tool_prefix"; then
4436  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4437set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439$as_echo_n "checking for $ac_word... " >&6; }
4440if ${ac_cv_path_PKG_CONFIG+:} false; then :
4441  $as_echo_n "(cached) " >&6
4442else
4443  case $PKG_CONFIG in
4444  [\\/]* | ?:[\\/]*)
4445  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4446  ;;
4447  *)
4448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451  IFS=$as_save_IFS
4452  test -z "$as_dir" && as_dir=.
4453    for ac_exec_ext in '' $ac_executable_extensions; do
4454  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457    break 2
4458  fi
4459done
4460  done
4461IFS=$as_save_IFS
4462
4463  ;;
4464esac
4465fi
4466PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4467if test -n "$PKG_CONFIG"; then
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4469$as_echo "$PKG_CONFIG" >&6; }
4470else
4471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472$as_echo "no" >&6; }
4473fi
4474
4475
4476fi
4477if test -z "$ac_cv_path_PKG_CONFIG"; then
4478  ac_pt_PKG_CONFIG=$PKG_CONFIG
4479  # Extract the first word of "pkg-config", so it can be a program name with args.
4480set dummy pkg-config; ac_word=$2
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482$as_echo_n "checking for $ac_word... " >&6; }
4483if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  case $ac_pt_PKG_CONFIG in
4487  [\\/]* | ?:[\\/]*)
4488  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4489  ;;
4490  *)
4491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494  IFS=$as_save_IFS
4495  test -z "$as_dir" && as_dir=.
4496    for ac_exec_ext in '' $ac_executable_extensions; do
4497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500    break 2
4501  fi
4502done
4503  done
4504IFS=$as_save_IFS
4505
4506  ;;
4507esac
4508fi
4509ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4510if test -n "$ac_pt_PKG_CONFIG"; then
4511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4512$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4513else
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515$as_echo "no" >&6; }
4516fi
4517
4518  if test "x$ac_pt_PKG_CONFIG" = x; then
4519    PKG_CONFIG=""
4520  else
4521    case $cross_compiling:$ac_tool_warned in
4522yes:)
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525ac_tool_warned=yes ;;
4526esac
4527    PKG_CONFIG=$ac_pt_PKG_CONFIG
4528  fi
4529else
4530  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4531fi
4532
4533fi
4534if test -n "$PKG_CONFIG"; then
4535	_pkg_min_version=0.9.0
4536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4537$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4538	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4539		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540$as_echo "yes" >&6; }
4541	else
4542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543$as_echo "no" >&6; }
4544		PKG_CONFIG=""
4545	fi
4546fi
4547# Make sure we can run config.sub.
4548$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4549  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4550
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4552$as_echo_n "checking build system type... " >&6; }
4553if ${ac_cv_build+:} false; then :
4554  $as_echo_n "(cached) " >&6
4555else
4556  ac_build_alias=$build_alias
4557test "x$ac_build_alias" = x &&
4558  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4559test "x$ac_build_alias" = x &&
4560  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4561ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4562  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4563
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4566$as_echo "$ac_cv_build" >&6; }
4567case $ac_cv_build in
4568*-*-*) ;;
4569*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4570esac
4571build=$ac_cv_build
4572ac_save_IFS=$IFS; IFS='-'
4573set x $ac_cv_build
4574shift
4575build_cpu=$1
4576build_vendor=$2
4577shift; shift
4578# Remember, the first character of IFS is used to create $*,
4579# except with old shells:
4580build_os=$*
4581IFS=$ac_save_IFS
4582case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4583
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4586$as_echo_n "checking host system type... " >&6; }
4587if ${ac_cv_host+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  if test "x$host_alias" = x; then
4591  ac_cv_host=$ac_cv_build
4592else
4593  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4594    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4595fi
4596
4597fi
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4599$as_echo "$ac_cv_host" >&6; }
4600case $ac_cv_host in
4601*-*-*) ;;
4602*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4603esac
4604host=$ac_cv_host
4605ac_save_IFS=$IFS; IFS='-'
4606set x $ac_cv_host
4607shift
4608host_cpu=$1
4609host_vendor=$2
4610shift; shift
4611# Remember, the first character of IFS is used to create $*,
4612# except with old shells:
4613host_os=$*
4614IFS=$ac_save_IFS
4615case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4616
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4619$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4620if ${ac_cv_path_SED+:} false; then :
4621  $as_echo_n "(cached) " >&6
4622else
4623            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4624     for ac_i in 1 2 3 4 5 6 7; do
4625       ac_script="$ac_script$as_nl$ac_script"
4626     done
4627     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4628     { ac_script=; unset ac_script;}
4629     if test -z "$SED"; then
4630  ac_path_SED_found=false
4631  # Loop through the user's path and test for each of PROGNAME-LIST
4632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635  IFS=$as_save_IFS
4636  test -z "$as_dir" && as_dir=.
4637    for ac_prog in sed gsed; do
4638    for ac_exec_ext in '' $ac_executable_extensions; do
4639      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4640      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4641# Check for GNU ac_path_SED and select it if it is found.
4642  # Check for GNU $ac_path_SED
4643case `"$ac_path_SED" --version 2>&1` in
4644*GNU*)
4645  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4646*)
4647  ac_count=0
4648  $as_echo_n 0123456789 >"conftest.in"
4649  while :
4650  do
4651    cat "conftest.in" "conftest.in" >"conftest.tmp"
4652    mv "conftest.tmp" "conftest.in"
4653    cp "conftest.in" "conftest.nl"
4654    $as_echo '' >> "conftest.nl"
4655    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657    as_fn_arith $ac_count + 1 && ac_count=$as_val
4658    if test $ac_count -gt ${ac_path_SED_max-0}; then
4659      # Best one so far, save it but keep looking for a better one
4660      ac_cv_path_SED="$ac_path_SED"
4661      ac_path_SED_max=$ac_count
4662    fi
4663    # 10*(2^10) chars as input seems more than enough
4664    test $ac_count -gt 10 && break
4665  done
4666  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667esac
4668
4669      $ac_path_SED_found && break 3
4670    done
4671  done
4672  done
4673IFS=$as_save_IFS
4674  if test -z "$ac_cv_path_SED"; then
4675    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4676  fi
4677else
4678  ac_cv_path_SED=$SED
4679fi
4680
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4683$as_echo "$ac_cv_path_SED" >&6; }
4684 SED="$ac_cv_path_SED"
4685  rm -f conftest.sed
4686
4687
4688
4689
4690
4691
4692# Check whether --enable-selective-werror was given.
4693if test "${enable_selective_werror+set}" = set; then :
4694  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4695else
4696  SELECTIVE_WERROR=yes
4697fi
4698
4699
4700
4701
4702
4703# -v is too short to test reliably with XORG_TESTSET_CFLAG
4704if test "x$SUNCC" = "xyes"; then
4705    BASE_CFLAGS="-v"
4706else
4707    BASE_CFLAGS=""
4708fi
4709
4710# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724xorg_testset_save_CFLAGS="$CFLAGS"
4725
4726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4731  $as_echo_n "(cached) " >&6
4732else
4733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734/* end confdefs.h.  */
4735int i;
4736_ACEOF
4737if ac_fn_c_try_compile "$LINENO"; then :
4738  xorg_cv_cc_flag_unknown_warning_option=yes
4739else
4740  xorg_cv_cc_flag_unknown_warning_option=no
4741fi
4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4747	CFLAGS="$xorg_testset_save_CFLAGS"
4748fi
4749
4750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4753	fi
4754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h.  */
4762int i;
4763_ACEOF
4764if ac_fn_c_try_compile "$LINENO"; then :
4765  xorg_cv_cc_flag_unused_command_line_argument=yes
4766else
4767  xorg_cv_cc_flag_unused_command_line_argument=no
4768fi
4769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4774	CFLAGS="$xorg_testset_save_CFLAGS"
4775fi
4776
4777found="no"
4778
4779	if test $found = "no" ; then
4780		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4782		fi
4783
4784		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4786		fi
4787
4788		CFLAGS="$CFLAGS -Wall"
4789
4790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4791$as_echo_n "checking if $CC supports -Wall... " >&6; }
4792		cacheid=xorg_cv_cc_flag__Wall
4793		if eval \${$cacheid+:} false; then :
4794  $as_echo_n "(cached) " >&6
4795else
4796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h.  */
4798int i;
4799int
4800main ()
4801{
4802
4803  ;
4804  return 0;
4805}
4806_ACEOF
4807if ac_fn_c_try_link "$LINENO"; then :
4808  eval $cacheid=yes
4809else
4810  eval $cacheid=no
4811fi
4812rm -f core conftest.err conftest.$ac_objext \
4813    conftest$ac_exeext conftest.$ac_ext
4814fi
4815
4816
4817		CFLAGS="$xorg_testset_save_CFLAGS"
4818
4819		eval supported=\$$cacheid
4820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4821$as_echo "$supported" >&6; }
4822		if test "$supported" = "yes" ; then
4823			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4824			found="yes"
4825		fi
4826	fi
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842xorg_testset_save_CFLAGS="$CFLAGS"
4843
4844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4849  $as_echo_n "(cached) " >&6
4850else
4851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h.  */
4853int i;
4854_ACEOF
4855if ac_fn_c_try_compile "$LINENO"; then :
4856  xorg_cv_cc_flag_unknown_warning_option=yes
4857else
4858  xorg_cv_cc_flag_unknown_warning_option=no
4859fi
4860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861fi
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4865	CFLAGS="$xorg_testset_save_CFLAGS"
4866fi
4867
4868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4871	fi
4872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4876  $as_echo_n "(cached) " >&6
4877else
4878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h.  */
4880int i;
4881_ACEOF
4882if ac_fn_c_try_compile "$LINENO"; then :
4883  xorg_cv_cc_flag_unused_command_line_argument=yes
4884else
4885  xorg_cv_cc_flag_unused_command_line_argument=no
4886fi
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888fi
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4892	CFLAGS="$xorg_testset_save_CFLAGS"
4893fi
4894
4895found="no"
4896
4897	if test $found = "no" ; then
4898		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900		fi
4901
4902		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904		fi
4905
4906		CFLAGS="$CFLAGS -Wpointer-arith"
4907
4908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4909$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4910		cacheid=xorg_cv_cc_flag__Wpointer_arith
4911		if eval \${$cacheid+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915/* end confdefs.h.  */
4916int i;
4917int
4918main ()
4919{
4920
4921  ;
4922  return 0;
4923}
4924_ACEOF
4925if ac_fn_c_try_link "$LINENO"; then :
4926  eval $cacheid=yes
4927else
4928  eval $cacheid=no
4929fi
4930rm -f core conftest.err conftest.$ac_objext \
4931    conftest$ac_exeext conftest.$ac_ext
4932fi
4933
4934
4935		CFLAGS="$xorg_testset_save_CFLAGS"
4936
4937		eval supported=\$$cacheid
4938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4939$as_echo "$supported" >&6; }
4940		if test "$supported" = "yes" ; then
4941			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4942			found="yes"
4943		fi
4944	fi
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960xorg_testset_save_CFLAGS="$CFLAGS"
4961
4962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4967  $as_echo_n "(cached) " >&6
4968else
4969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h.  */
4971int i;
4972_ACEOF
4973if ac_fn_c_try_compile "$LINENO"; then :
4974  xorg_cv_cc_flag_unknown_warning_option=yes
4975else
4976  xorg_cv_cc_flag_unknown_warning_option=no
4977fi
4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979fi
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4983	CFLAGS="$xorg_testset_save_CFLAGS"
4984fi
4985
4986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4989	fi
4990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997/* end confdefs.h.  */
4998int i;
4999_ACEOF
5000if ac_fn_c_try_compile "$LINENO"; then :
5001  xorg_cv_cc_flag_unused_command_line_argument=yes
5002else
5003  xorg_cv_cc_flag_unused_command_line_argument=no
5004fi
5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006fi
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5010	CFLAGS="$xorg_testset_save_CFLAGS"
5011fi
5012
5013found="no"
5014
5015	if test $found = "no" ; then
5016		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018		fi
5019
5020		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5022		fi
5023
5024		CFLAGS="$CFLAGS -Wmissing-declarations"
5025
5026		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5027$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5028		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5029		if eval \${$cacheid+:} false; then :
5030  $as_echo_n "(cached) " >&6
5031else
5032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h.  */
5034int i;
5035int
5036main ()
5037{
5038
5039  ;
5040  return 0;
5041}
5042_ACEOF
5043if ac_fn_c_try_link "$LINENO"; then :
5044  eval $cacheid=yes
5045else
5046  eval $cacheid=no
5047fi
5048rm -f core conftest.err conftest.$ac_objext \
5049    conftest$ac_exeext conftest.$ac_ext
5050fi
5051
5052
5053		CFLAGS="$xorg_testset_save_CFLAGS"
5054
5055		eval supported=\$$cacheid
5056		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5057$as_echo "$supported" >&6; }
5058		if test "$supported" = "yes" ; then
5059			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5060			found="yes"
5061		fi
5062	fi
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078xorg_testset_save_CFLAGS="$CFLAGS"
5079
5080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5085  $as_echo_n "(cached) " >&6
5086else
5087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h.  */
5089int i;
5090_ACEOF
5091if ac_fn_c_try_compile "$LINENO"; then :
5092  xorg_cv_cc_flag_unknown_warning_option=yes
5093else
5094  xorg_cv_cc_flag_unknown_warning_option=no
5095fi
5096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097fi
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5101	CFLAGS="$xorg_testset_save_CFLAGS"
5102fi
5103
5104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5107	fi
5108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5112  $as_echo_n "(cached) " >&6
5113else
5114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h.  */
5116int i;
5117_ACEOF
5118if ac_fn_c_try_compile "$LINENO"; then :
5119  xorg_cv_cc_flag_unused_command_line_argument=yes
5120else
5121  xorg_cv_cc_flag_unused_command_line_argument=no
5122fi
5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5128	CFLAGS="$xorg_testset_save_CFLAGS"
5129fi
5130
5131found="no"
5132
5133	if test $found = "no" ; then
5134		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5136		fi
5137
5138		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140		fi
5141
5142		CFLAGS="$CFLAGS -Wformat=2"
5143
5144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5145$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5146		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5147		if eval \${$cacheid+:} false; then :
5148  $as_echo_n "(cached) " >&6
5149else
5150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h.  */
5152int i;
5153int
5154main ()
5155{
5156
5157  ;
5158  return 0;
5159}
5160_ACEOF
5161if ac_fn_c_try_link "$LINENO"; then :
5162  eval $cacheid=yes
5163else
5164  eval $cacheid=no
5165fi
5166rm -f core conftest.err conftest.$ac_objext \
5167    conftest$ac_exeext conftest.$ac_ext
5168fi
5169
5170
5171		CFLAGS="$xorg_testset_save_CFLAGS"
5172
5173		eval supported=\$$cacheid
5174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5175$as_echo "$supported" >&6; }
5176		if test "$supported" = "yes" ; then
5177			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5178			found="yes"
5179		fi
5180	fi
5181
5182	if test $found = "no" ; then
5183		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185		fi
5186
5187		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189		fi
5190
5191		CFLAGS="$CFLAGS -Wformat"
5192
5193		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5194$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5195		cacheid=xorg_cv_cc_flag__Wformat
5196		if eval \${$cacheid+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201int i;
5202int
5203main ()
5204{
5205
5206  ;
5207  return 0;
5208}
5209_ACEOF
5210if ac_fn_c_try_link "$LINENO"; then :
5211  eval $cacheid=yes
5212else
5213  eval $cacheid=no
5214fi
5215rm -f core conftest.err conftest.$ac_objext \
5216    conftest$ac_exeext conftest.$ac_ext
5217fi
5218
5219
5220		CFLAGS="$xorg_testset_save_CFLAGS"
5221
5222		eval supported=\$$cacheid
5223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5224$as_echo "$supported" >&6; }
5225		if test "$supported" = "yes" ; then
5226			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5227			found="yes"
5228		fi
5229	fi
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247xorg_testset_save_CFLAGS="$CFLAGS"
5248
5249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258int i;
5259_ACEOF
5260if ac_fn_c_try_compile "$LINENO"; then :
5261  xorg_cv_cc_flag_unknown_warning_option=yes
5262else
5263  xorg_cv_cc_flag_unknown_warning_option=no
5264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266fi
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5270	CFLAGS="$xorg_testset_save_CFLAGS"
5271fi
5272
5273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276	fi
5277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h.  */
5285int i;
5286_ACEOF
5287if ac_fn_c_try_compile "$LINENO"; then :
5288  xorg_cv_cc_flag_unused_command_line_argument=yes
5289else
5290  xorg_cv_cc_flag_unused_command_line_argument=no
5291fi
5292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5297	CFLAGS="$xorg_testset_save_CFLAGS"
5298fi
5299
5300found="no"
5301
5302	if test $found = "no" ; then
5303		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305		fi
5306
5307		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5309		fi
5310
5311		CFLAGS="$CFLAGS -Wstrict-prototypes"
5312
5313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5314$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5315		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5316		if eval \${$cacheid+:} false; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322int
5323main ()
5324{
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"; then :
5331  eval $cacheid=yes
5332else
5333  eval $cacheid=no
5334fi
5335rm -f core conftest.err conftest.$ac_objext \
5336    conftest$ac_exeext conftest.$ac_ext
5337fi
5338
5339
5340		CFLAGS="$xorg_testset_save_CFLAGS"
5341
5342		eval supported=\$$cacheid
5343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5344$as_echo "$supported" >&6; }
5345		if test "$supported" = "yes" ; then
5346			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5347			found="yes"
5348		fi
5349	fi
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365xorg_testset_save_CFLAGS="$CFLAGS"
5366
5367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5372  $as_echo_n "(cached) " >&6
5373else
5374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h.  */
5376int i;
5377_ACEOF
5378if ac_fn_c_try_compile "$LINENO"; then :
5379  xorg_cv_cc_flag_unknown_warning_option=yes
5380else
5381  xorg_cv_cc_flag_unknown_warning_option=no
5382fi
5383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5388	CFLAGS="$xorg_testset_save_CFLAGS"
5389fi
5390
5391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5394	fi
5395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5399  $as_echo_n "(cached) " >&6
5400else
5401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h.  */
5403int i;
5404_ACEOF
5405if ac_fn_c_try_compile "$LINENO"; then :
5406  xorg_cv_cc_flag_unused_command_line_argument=yes
5407else
5408  xorg_cv_cc_flag_unused_command_line_argument=no
5409fi
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5415	CFLAGS="$xorg_testset_save_CFLAGS"
5416fi
5417
5418found="no"
5419
5420	if test $found = "no" ; then
5421		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5423		fi
5424
5425		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5427		fi
5428
5429		CFLAGS="$CFLAGS -Wmissing-prototypes"
5430
5431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5432$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5433		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5434		if eval \${$cacheid+:} false; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h.  */
5439int i;
5440int
5441main ()
5442{
5443
5444  ;
5445  return 0;
5446}
5447_ACEOF
5448if ac_fn_c_try_link "$LINENO"; then :
5449  eval $cacheid=yes
5450else
5451  eval $cacheid=no
5452fi
5453rm -f core conftest.err conftest.$ac_objext \
5454    conftest$ac_exeext conftest.$ac_ext
5455fi
5456
5457
5458		CFLAGS="$xorg_testset_save_CFLAGS"
5459
5460		eval supported=\$$cacheid
5461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5462$as_echo "$supported" >&6; }
5463		if test "$supported" = "yes" ; then
5464			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5465			found="yes"
5466		fi
5467	fi
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483xorg_testset_save_CFLAGS="$CFLAGS"
5484
5485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5490  $as_echo_n "(cached) " >&6
5491else
5492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493/* end confdefs.h.  */
5494int i;
5495_ACEOF
5496if ac_fn_c_try_compile "$LINENO"; then :
5497  xorg_cv_cc_flag_unknown_warning_option=yes
5498else
5499  xorg_cv_cc_flag_unknown_warning_option=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502fi
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5506	CFLAGS="$xorg_testset_save_CFLAGS"
5507fi
5508
5509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5512	fi
5513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5517  $as_echo_n "(cached) " >&6
5518else
5519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520/* end confdefs.h.  */
5521int i;
5522_ACEOF
5523if ac_fn_c_try_compile "$LINENO"; then :
5524  xorg_cv_cc_flag_unused_command_line_argument=yes
5525else
5526  xorg_cv_cc_flag_unused_command_line_argument=no
5527fi
5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529fi
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5533	CFLAGS="$xorg_testset_save_CFLAGS"
5534fi
5535
5536found="no"
5537
5538	if test $found = "no" ; then
5539		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541		fi
5542
5543		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545		fi
5546
5547		CFLAGS="$CFLAGS -Wnested-externs"
5548
5549		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5550$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5551		cacheid=xorg_cv_cc_flag__Wnested_externs
5552		if eval \${$cacheid+:} false; then :
5553  $as_echo_n "(cached) " >&6
5554else
5555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h.  */
5557int i;
5558int
5559main ()
5560{
5561
5562  ;
5563  return 0;
5564}
5565_ACEOF
5566if ac_fn_c_try_link "$LINENO"; then :
5567  eval $cacheid=yes
5568else
5569  eval $cacheid=no
5570fi
5571rm -f core conftest.err conftest.$ac_objext \
5572    conftest$ac_exeext conftest.$ac_ext
5573fi
5574
5575
5576		CFLAGS="$xorg_testset_save_CFLAGS"
5577
5578		eval supported=\$$cacheid
5579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5580$as_echo "$supported" >&6; }
5581		if test "$supported" = "yes" ; then
5582			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5583			found="yes"
5584		fi
5585	fi
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601xorg_testset_save_CFLAGS="$CFLAGS"
5602
5603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5608  $as_echo_n "(cached) " >&6
5609else
5610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h.  */
5612int i;
5613_ACEOF
5614if ac_fn_c_try_compile "$LINENO"; then :
5615  xorg_cv_cc_flag_unknown_warning_option=yes
5616else
5617  xorg_cv_cc_flag_unknown_warning_option=no
5618fi
5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620fi
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5624	CFLAGS="$xorg_testset_save_CFLAGS"
5625fi
5626
5627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5630	fi
5631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5635  $as_echo_n "(cached) " >&6
5636else
5637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638/* end confdefs.h.  */
5639int i;
5640_ACEOF
5641if ac_fn_c_try_compile "$LINENO"; then :
5642  xorg_cv_cc_flag_unused_command_line_argument=yes
5643else
5644  xorg_cv_cc_flag_unused_command_line_argument=no
5645fi
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647fi
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5651	CFLAGS="$xorg_testset_save_CFLAGS"
5652fi
5653
5654found="no"
5655
5656	if test $found = "no" ; then
5657		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659		fi
5660
5661		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663		fi
5664
5665		CFLAGS="$CFLAGS -Wbad-function-cast"
5666
5667		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5668$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5669		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5670		if eval \${$cacheid+:} false; then :
5671  $as_echo_n "(cached) " >&6
5672else
5673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674/* end confdefs.h.  */
5675int i;
5676int
5677main ()
5678{
5679
5680  ;
5681  return 0;
5682}
5683_ACEOF
5684if ac_fn_c_try_link "$LINENO"; then :
5685  eval $cacheid=yes
5686else
5687  eval $cacheid=no
5688fi
5689rm -f core conftest.err conftest.$ac_objext \
5690    conftest$ac_exeext conftest.$ac_ext
5691fi
5692
5693
5694		CFLAGS="$xorg_testset_save_CFLAGS"
5695
5696		eval supported=\$$cacheid
5697		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5698$as_echo "$supported" >&6; }
5699		if test "$supported" = "yes" ; then
5700			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5701			found="yes"
5702		fi
5703	fi
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719xorg_testset_save_CFLAGS="$CFLAGS"
5720
5721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5726  $as_echo_n "(cached) " >&6
5727else
5728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729/* end confdefs.h.  */
5730int i;
5731_ACEOF
5732if ac_fn_c_try_compile "$LINENO"; then :
5733  xorg_cv_cc_flag_unknown_warning_option=yes
5734else
5735  xorg_cv_cc_flag_unknown_warning_option=no
5736fi
5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738fi
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5742	CFLAGS="$xorg_testset_save_CFLAGS"
5743fi
5744
5745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748	fi
5749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5753  $as_echo_n "(cached) " >&6
5754else
5755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756/* end confdefs.h.  */
5757int i;
5758_ACEOF
5759if ac_fn_c_try_compile "$LINENO"; then :
5760  xorg_cv_cc_flag_unused_command_line_argument=yes
5761else
5762  xorg_cv_cc_flag_unused_command_line_argument=no
5763fi
5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5769	CFLAGS="$xorg_testset_save_CFLAGS"
5770fi
5771
5772found="no"
5773
5774	if test $found = "no" ; then
5775		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5777		fi
5778
5779		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781		fi
5782
5783		CFLAGS="$CFLAGS -Wold-style-definition"
5784
5785		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5786$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5787		cacheid=xorg_cv_cc_flag__Wold_style_definition
5788		if eval \${$cacheid+:} false; then :
5789  $as_echo_n "(cached) " >&6
5790else
5791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792/* end confdefs.h.  */
5793int i;
5794int
5795main ()
5796{
5797
5798  ;
5799  return 0;
5800}
5801_ACEOF
5802if ac_fn_c_try_link "$LINENO"; then :
5803  eval $cacheid=yes
5804else
5805  eval $cacheid=no
5806fi
5807rm -f core conftest.err conftest.$ac_objext \
5808    conftest$ac_exeext conftest.$ac_ext
5809fi
5810
5811
5812		CFLAGS="$xorg_testset_save_CFLAGS"
5813
5814		eval supported=\$$cacheid
5815		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5816$as_echo "$supported" >&6; }
5817		if test "$supported" = "yes" ; then
5818			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5819			found="yes"
5820		fi
5821	fi
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837xorg_testset_save_CFLAGS="$CFLAGS"
5838
5839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5844  $as_echo_n "(cached) " >&6
5845else
5846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h.  */
5848int i;
5849_ACEOF
5850if ac_fn_c_try_compile "$LINENO"; then :
5851  xorg_cv_cc_flag_unknown_warning_option=yes
5852else
5853  xorg_cv_cc_flag_unknown_warning_option=no
5854fi
5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856fi
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860	CFLAGS="$xorg_testset_save_CFLAGS"
5861fi
5862
5863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866	fi
5867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5871  $as_echo_n "(cached) " >&6
5872else
5873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h.  */
5875int i;
5876_ACEOF
5877if ac_fn_c_try_compile "$LINENO"; then :
5878  xorg_cv_cc_flag_unused_command_line_argument=yes
5879else
5880  xorg_cv_cc_flag_unused_command_line_argument=no
5881fi
5882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883fi
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5887	CFLAGS="$xorg_testset_save_CFLAGS"
5888fi
5889
5890found="no"
5891
5892	if test $found = "no" ; then
5893		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895		fi
5896
5897		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899		fi
5900
5901		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5902
5903		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5904$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5905		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5906		if eval \${$cacheid+:} false; then :
5907  $as_echo_n "(cached) " >&6
5908else
5909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911int i;
5912int
5913main ()
5914{
5915
5916  ;
5917  return 0;
5918}
5919_ACEOF
5920if ac_fn_c_try_link "$LINENO"; then :
5921  eval $cacheid=yes
5922else
5923  eval $cacheid=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext \
5926    conftest$ac_exeext conftest.$ac_ext
5927fi
5928
5929
5930		CFLAGS="$xorg_testset_save_CFLAGS"
5931
5932		eval supported=\$$cacheid
5933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934$as_echo "$supported" >&6; }
5935		if test "$supported" = "yes" ; then
5936			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5937			found="yes"
5938		fi
5939	fi
5940
5941
5942
5943
5944
5945# This chunk adds additional warnings that could catch undesired effects.
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959xorg_testset_save_CFLAGS="$CFLAGS"
5960
5961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h.  */
5970int i;
5971_ACEOF
5972if ac_fn_c_try_compile "$LINENO"; then :
5973  xorg_cv_cc_flag_unknown_warning_option=yes
5974else
5975  xorg_cv_cc_flag_unknown_warning_option=no
5976fi
5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978fi
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5982	CFLAGS="$xorg_testset_save_CFLAGS"
5983fi
5984
5985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988	fi
5989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997int i;
5998_ACEOF
5999if ac_fn_c_try_compile "$LINENO"; then :
6000  xorg_cv_cc_flag_unused_command_line_argument=yes
6001else
6002  xorg_cv_cc_flag_unused_command_line_argument=no
6003fi
6004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005fi
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6009	CFLAGS="$xorg_testset_save_CFLAGS"
6010fi
6011
6012found="no"
6013
6014	if test $found = "no" ; then
6015		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017		fi
6018
6019		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6021		fi
6022
6023		CFLAGS="$CFLAGS -Wunused"
6024
6025		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6026$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6027		cacheid=xorg_cv_cc_flag__Wunused
6028		if eval \${$cacheid+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h.  */
6033int i;
6034int
6035main ()
6036{
6037
6038  ;
6039  return 0;
6040}
6041_ACEOF
6042if ac_fn_c_try_link "$LINENO"; then :
6043  eval $cacheid=yes
6044else
6045  eval $cacheid=no
6046fi
6047rm -f core conftest.err conftest.$ac_objext \
6048    conftest$ac_exeext conftest.$ac_ext
6049fi
6050
6051
6052		CFLAGS="$xorg_testset_save_CFLAGS"
6053
6054		eval supported=\$$cacheid
6055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6056$as_echo "$supported" >&6; }
6057		if test "$supported" = "yes" ; then
6058			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6059			found="yes"
6060		fi
6061	fi
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077xorg_testset_save_CFLAGS="$CFLAGS"
6078
6079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h.  */
6088int i;
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091  xorg_cv_cc_flag_unknown_warning_option=yes
6092else
6093  xorg_cv_cc_flag_unknown_warning_option=no
6094fi
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6100	CFLAGS="$xorg_testset_save_CFLAGS"
6101fi
6102
6103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106	fi
6107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115int i;
6116_ACEOF
6117if ac_fn_c_try_compile "$LINENO"; then :
6118  xorg_cv_cc_flag_unused_command_line_argument=yes
6119else
6120  xorg_cv_cc_flag_unused_command_line_argument=no
6121fi
6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123fi
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6127	CFLAGS="$xorg_testset_save_CFLAGS"
6128fi
6129
6130found="no"
6131
6132	if test $found = "no" ; then
6133		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135		fi
6136
6137		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6139		fi
6140
6141		CFLAGS="$CFLAGS -Wuninitialized"
6142
6143		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6144$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6145		cacheid=xorg_cv_cc_flag__Wuninitialized
6146		if eval \${$cacheid+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h.  */
6151int i;
6152int
6153main ()
6154{
6155
6156  ;
6157  return 0;
6158}
6159_ACEOF
6160if ac_fn_c_try_link "$LINENO"; then :
6161  eval $cacheid=yes
6162else
6163  eval $cacheid=no
6164fi
6165rm -f core conftest.err conftest.$ac_objext \
6166    conftest$ac_exeext conftest.$ac_ext
6167fi
6168
6169
6170		CFLAGS="$xorg_testset_save_CFLAGS"
6171
6172		eval supported=\$$cacheid
6173		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6174$as_echo "$supported" >&6; }
6175		if test "$supported" = "yes" ; then
6176			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6177			found="yes"
6178		fi
6179	fi
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195xorg_testset_save_CFLAGS="$CFLAGS"
6196
6197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6202  $as_echo_n "(cached) " >&6
6203else
6204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h.  */
6206int i;
6207_ACEOF
6208if ac_fn_c_try_compile "$LINENO"; then :
6209  xorg_cv_cc_flag_unknown_warning_option=yes
6210else
6211  xorg_cv_cc_flag_unknown_warning_option=no
6212fi
6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6218	CFLAGS="$xorg_testset_save_CFLAGS"
6219fi
6220
6221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224	fi
6225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6229  $as_echo_n "(cached) " >&6
6230else
6231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h.  */
6233int i;
6234_ACEOF
6235if ac_fn_c_try_compile "$LINENO"; then :
6236  xorg_cv_cc_flag_unused_command_line_argument=yes
6237else
6238  xorg_cv_cc_flag_unused_command_line_argument=no
6239fi
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241fi
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6245	CFLAGS="$xorg_testset_save_CFLAGS"
6246fi
6247
6248found="no"
6249
6250	if test $found = "no" ; then
6251		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6253		fi
6254
6255		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6257		fi
6258
6259		CFLAGS="$CFLAGS -Wshadow"
6260
6261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6262$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6263		cacheid=xorg_cv_cc_flag__Wshadow
6264		if eval \${$cacheid+:} false; then :
6265  $as_echo_n "(cached) " >&6
6266else
6267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268/* end confdefs.h.  */
6269int i;
6270int
6271main ()
6272{
6273
6274  ;
6275  return 0;
6276}
6277_ACEOF
6278if ac_fn_c_try_link "$LINENO"; then :
6279  eval $cacheid=yes
6280else
6281  eval $cacheid=no
6282fi
6283rm -f core conftest.err conftest.$ac_objext \
6284    conftest$ac_exeext conftest.$ac_ext
6285fi
6286
6287
6288		CFLAGS="$xorg_testset_save_CFLAGS"
6289
6290		eval supported=\$$cacheid
6291		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6292$as_echo "$supported" >&6; }
6293		if test "$supported" = "yes" ; then
6294			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6295			found="yes"
6296		fi
6297	fi
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313xorg_testset_save_CFLAGS="$CFLAGS"
6314
6315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6320  $as_echo_n "(cached) " >&6
6321else
6322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323/* end confdefs.h.  */
6324int i;
6325_ACEOF
6326if ac_fn_c_try_compile "$LINENO"; then :
6327  xorg_cv_cc_flag_unknown_warning_option=yes
6328else
6329  xorg_cv_cc_flag_unknown_warning_option=no
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332fi
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6336	CFLAGS="$xorg_testset_save_CFLAGS"
6337fi
6338
6339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6342	fi
6343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6347  $as_echo_n "(cached) " >&6
6348else
6349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350/* end confdefs.h.  */
6351int i;
6352_ACEOF
6353if ac_fn_c_try_compile "$LINENO"; then :
6354  xorg_cv_cc_flag_unused_command_line_argument=yes
6355else
6356  xorg_cv_cc_flag_unused_command_line_argument=no
6357fi
6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359fi
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6363	CFLAGS="$xorg_testset_save_CFLAGS"
6364fi
6365
6366found="no"
6367
6368	if test $found = "no" ; then
6369		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371		fi
6372
6373		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375		fi
6376
6377		CFLAGS="$CFLAGS -Wcast-qual"
6378
6379		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6380$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6381		cacheid=xorg_cv_cc_flag__Wcast_qual
6382		if eval \${$cacheid+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387int i;
6388int
6389main ()
6390{
6391
6392  ;
6393  return 0;
6394}
6395_ACEOF
6396if ac_fn_c_try_link "$LINENO"; then :
6397  eval $cacheid=yes
6398else
6399  eval $cacheid=no
6400fi
6401rm -f core conftest.err conftest.$ac_objext \
6402    conftest$ac_exeext conftest.$ac_ext
6403fi
6404
6405
6406		CFLAGS="$xorg_testset_save_CFLAGS"
6407
6408		eval supported=\$$cacheid
6409		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6410$as_echo "$supported" >&6; }
6411		if test "$supported" = "yes" ; then
6412			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6413			found="yes"
6414		fi
6415	fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431xorg_testset_save_CFLAGS="$CFLAGS"
6432
6433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h.  */
6442int i;
6443_ACEOF
6444if ac_fn_c_try_compile "$LINENO"; then :
6445  xorg_cv_cc_flag_unknown_warning_option=yes
6446else
6447  xorg_cv_cc_flag_unknown_warning_option=no
6448fi
6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450fi
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6454	CFLAGS="$xorg_testset_save_CFLAGS"
6455fi
6456
6457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460	fi
6461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6465  $as_echo_n "(cached) " >&6
6466else
6467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468/* end confdefs.h.  */
6469int i;
6470_ACEOF
6471if ac_fn_c_try_compile "$LINENO"; then :
6472  xorg_cv_cc_flag_unused_command_line_argument=yes
6473else
6474  xorg_cv_cc_flag_unused_command_line_argument=no
6475fi
6476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6477fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6481	CFLAGS="$xorg_testset_save_CFLAGS"
6482fi
6483
6484found="no"
6485
6486	if test $found = "no" ; then
6487		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489		fi
6490
6491		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6493		fi
6494
6495		CFLAGS="$CFLAGS -Wmissing-noreturn"
6496
6497		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6498$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6499		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6500		if eval \${$cacheid+:} false; then :
6501  $as_echo_n "(cached) " >&6
6502else
6503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h.  */
6505int i;
6506int
6507main ()
6508{
6509
6510  ;
6511  return 0;
6512}
6513_ACEOF
6514if ac_fn_c_try_link "$LINENO"; then :
6515  eval $cacheid=yes
6516else
6517  eval $cacheid=no
6518fi
6519rm -f core conftest.err conftest.$ac_objext \
6520    conftest$ac_exeext conftest.$ac_ext
6521fi
6522
6523
6524		CFLAGS="$xorg_testset_save_CFLAGS"
6525
6526		eval supported=\$$cacheid
6527		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6528$as_echo "$supported" >&6; }
6529		if test "$supported" = "yes" ; then
6530			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6531			found="yes"
6532		fi
6533	fi
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549xorg_testset_save_CFLAGS="$CFLAGS"
6550
6551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6556  $as_echo_n "(cached) " >&6
6557else
6558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h.  */
6560int i;
6561_ACEOF
6562if ac_fn_c_try_compile "$LINENO"; then :
6563  xorg_cv_cc_flag_unknown_warning_option=yes
6564else
6565  xorg_cv_cc_flag_unknown_warning_option=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568fi
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6572	CFLAGS="$xorg_testset_save_CFLAGS"
6573fi
6574
6575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578	fi
6579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6583  $as_echo_n "(cached) " >&6
6584else
6585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h.  */
6587int i;
6588_ACEOF
6589if ac_fn_c_try_compile "$LINENO"; then :
6590  xorg_cv_cc_flag_unused_command_line_argument=yes
6591else
6592  xorg_cv_cc_flag_unused_command_line_argument=no
6593fi
6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595fi
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6599	CFLAGS="$xorg_testset_save_CFLAGS"
6600fi
6601
6602found="no"
6603
6604	if test $found = "no" ; then
6605		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607		fi
6608
6609		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6611		fi
6612
6613		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6614
6615		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6616$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6617		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6618		if eval \${$cacheid+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h.  */
6623int i;
6624int
6625main ()
6626{
6627
6628  ;
6629  return 0;
6630}
6631_ACEOF
6632if ac_fn_c_try_link "$LINENO"; then :
6633  eval $cacheid=yes
6634else
6635  eval $cacheid=no
6636fi
6637rm -f core conftest.err conftest.$ac_objext \
6638    conftest$ac_exeext conftest.$ac_ext
6639fi
6640
6641
6642		CFLAGS="$xorg_testset_save_CFLAGS"
6643
6644		eval supported=\$$cacheid
6645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6646$as_echo "$supported" >&6; }
6647		if test "$supported" = "yes" ; then
6648			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6649			found="yes"
6650		fi
6651	fi
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667xorg_testset_save_CFLAGS="$CFLAGS"
6668
6669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h.  */
6678int i;
6679_ACEOF
6680if ac_fn_c_try_compile "$LINENO"; then :
6681  xorg_cv_cc_flag_unknown_warning_option=yes
6682else
6683  xorg_cv_cc_flag_unknown_warning_option=no
6684fi
6685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686fi
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6690	CFLAGS="$xorg_testset_save_CFLAGS"
6691fi
6692
6693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696	fi
6697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6701  $as_echo_n "(cached) " >&6
6702else
6703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704/* end confdefs.h.  */
6705int i;
6706_ACEOF
6707if ac_fn_c_try_compile "$LINENO"; then :
6708  xorg_cv_cc_flag_unused_command_line_argument=yes
6709else
6710  xorg_cv_cc_flag_unused_command_line_argument=no
6711fi
6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713fi
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6717	CFLAGS="$xorg_testset_save_CFLAGS"
6718fi
6719
6720found="no"
6721
6722	if test $found = "no" ; then
6723		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725		fi
6726
6727		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6729		fi
6730
6731		CFLAGS="$CFLAGS -Wredundant-decls"
6732
6733		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6734$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6735		cacheid=xorg_cv_cc_flag__Wredundant_decls
6736		if eval \${$cacheid+:} false; then :
6737  $as_echo_n "(cached) " >&6
6738else
6739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740/* end confdefs.h.  */
6741int i;
6742int
6743main ()
6744{
6745
6746  ;
6747  return 0;
6748}
6749_ACEOF
6750if ac_fn_c_try_link "$LINENO"; then :
6751  eval $cacheid=yes
6752else
6753  eval $cacheid=no
6754fi
6755rm -f core conftest.err conftest.$ac_objext \
6756    conftest$ac_exeext conftest.$ac_ext
6757fi
6758
6759
6760		CFLAGS="$xorg_testset_save_CFLAGS"
6761
6762		eval supported=\$$cacheid
6763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6764$as_echo "$supported" >&6; }
6765		if test "$supported" = "yes" ; then
6766			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6767			found="yes"
6768		fi
6769	fi
6770
6771
6772
6773# These are currently disabled because they are noisy.  They will be enabled
6774# in the future once the codebase is sufficiently modernized to silence
6775# them.  For now, I don't want them to drown out the other warnings.
6776# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6777# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6778# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6779
6780# Turn some warnings into errors, so we don't accidently get successful builds
6781# when there are problems that should be fixed.
6782
6783if test "x$SELECTIVE_WERROR" = "xyes" ; then
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797xorg_testset_save_CFLAGS="$CFLAGS"
6798
6799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6804  $as_echo_n "(cached) " >&6
6805else
6806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h.  */
6808int i;
6809_ACEOF
6810if ac_fn_c_try_compile "$LINENO"; then :
6811  xorg_cv_cc_flag_unknown_warning_option=yes
6812else
6813  xorg_cv_cc_flag_unknown_warning_option=no
6814fi
6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6816fi
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6820	CFLAGS="$xorg_testset_save_CFLAGS"
6821fi
6822
6823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826	fi
6827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6831  $as_echo_n "(cached) " >&6
6832else
6833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834/* end confdefs.h.  */
6835int i;
6836_ACEOF
6837if ac_fn_c_try_compile "$LINENO"; then :
6838  xorg_cv_cc_flag_unused_command_line_argument=yes
6839else
6840  xorg_cv_cc_flag_unused_command_line_argument=no
6841fi
6842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843fi
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6846	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6847	CFLAGS="$xorg_testset_save_CFLAGS"
6848fi
6849
6850found="no"
6851
6852	if test $found = "no" ; then
6853		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6855		fi
6856
6857		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6859		fi
6860
6861		CFLAGS="$CFLAGS -Werror=implicit"
6862
6863		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6864$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6865		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6866		if eval \${$cacheid+:} false; then :
6867  $as_echo_n "(cached) " >&6
6868else
6869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870/* end confdefs.h.  */
6871int i;
6872int
6873main ()
6874{
6875
6876  ;
6877  return 0;
6878}
6879_ACEOF
6880if ac_fn_c_try_link "$LINENO"; then :
6881  eval $cacheid=yes
6882else
6883  eval $cacheid=no
6884fi
6885rm -f core conftest.err conftest.$ac_objext \
6886    conftest$ac_exeext conftest.$ac_ext
6887fi
6888
6889
6890		CFLAGS="$xorg_testset_save_CFLAGS"
6891
6892		eval supported=\$$cacheid
6893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6894$as_echo "$supported" >&6; }
6895		if test "$supported" = "yes" ; then
6896			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6897			found="yes"
6898		fi
6899	fi
6900
6901	if test $found = "no" ; then
6902		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904		fi
6905
6906		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908		fi
6909
6910		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6911
6912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6913$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6914		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6915		if eval \${$cacheid+:} false; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920int i;
6921int
6922main ()
6923{
6924
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929if ac_fn_c_try_link "$LINENO"; then :
6930  eval $cacheid=yes
6931else
6932  eval $cacheid=no
6933fi
6934rm -f core conftest.err conftest.$ac_objext \
6935    conftest$ac_exeext conftest.$ac_ext
6936fi
6937
6938
6939		CFLAGS="$xorg_testset_save_CFLAGS"
6940
6941		eval supported=\$$cacheid
6942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6943$as_echo "$supported" >&6; }
6944		if test "$supported" = "yes" ; then
6945			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6946			found="yes"
6947		fi
6948	fi
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964xorg_testset_save_CFLAGS="$CFLAGS"
6965
6966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975int i;
6976_ACEOF
6977if ac_fn_c_try_compile "$LINENO"; then :
6978  xorg_cv_cc_flag_unknown_warning_option=yes
6979else
6980  xorg_cv_cc_flag_unknown_warning_option=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987	CFLAGS="$xorg_testset_save_CFLAGS"
6988fi
6989
6990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993	fi
6994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002int i;
7003_ACEOF
7004if ac_fn_c_try_compile "$LINENO"; then :
7005  xorg_cv_cc_flag_unused_command_line_argument=yes
7006else
7007  xorg_cv_cc_flag_unused_command_line_argument=no
7008fi
7009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7014	CFLAGS="$xorg_testset_save_CFLAGS"
7015fi
7016
7017found="no"
7018
7019	if test $found = "no" ; then
7020		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7022		fi
7023
7024		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026		fi
7027
7028		CFLAGS="$CFLAGS -Werror=nonnull"
7029
7030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7031$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7032		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7033		if eval \${$cacheid+:} false; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h.  */
7038int i;
7039int
7040main ()
7041{
7042
7043  ;
7044  return 0;
7045}
7046_ACEOF
7047if ac_fn_c_try_link "$LINENO"; then :
7048  eval $cacheid=yes
7049else
7050  eval $cacheid=no
7051fi
7052rm -f core conftest.err conftest.$ac_objext \
7053    conftest$ac_exeext conftest.$ac_ext
7054fi
7055
7056
7057		CFLAGS="$xorg_testset_save_CFLAGS"
7058
7059		eval supported=\$$cacheid
7060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7061$as_echo "$supported" >&6; }
7062		if test "$supported" = "yes" ; then
7063			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7064			found="yes"
7065		fi
7066	fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082xorg_testset_save_CFLAGS="$CFLAGS"
7083
7084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092/* end confdefs.h.  */
7093int i;
7094_ACEOF
7095if ac_fn_c_try_compile "$LINENO"; then :
7096  xorg_cv_cc_flag_unknown_warning_option=yes
7097else
7098  xorg_cv_cc_flag_unknown_warning_option=no
7099fi
7100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101fi
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7105	CFLAGS="$xorg_testset_save_CFLAGS"
7106fi
7107
7108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7111	fi
7112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7116  $as_echo_n "(cached) " >&6
7117else
7118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119/* end confdefs.h.  */
7120int i;
7121_ACEOF
7122if ac_fn_c_try_compile "$LINENO"; then :
7123  xorg_cv_cc_flag_unused_command_line_argument=yes
7124else
7125  xorg_cv_cc_flag_unused_command_line_argument=no
7126fi
7127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128fi
7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7132	CFLAGS="$xorg_testset_save_CFLAGS"
7133fi
7134
7135found="no"
7136
7137	if test $found = "no" ; then
7138		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140		fi
7141
7142		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7144		fi
7145
7146		CFLAGS="$CFLAGS -Werror=init-self"
7147
7148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7149$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7150		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7151		if eval \${$cacheid+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h.  */
7156int i;
7157int
7158main ()
7159{
7160
7161  ;
7162  return 0;
7163}
7164_ACEOF
7165if ac_fn_c_try_link "$LINENO"; then :
7166  eval $cacheid=yes
7167else
7168  eval $cacheid=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext \
7171    conftest$ac_exeext conftest.$ac_ext
7172fi
7173
7174
7175		CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177		eval supported=\$$cacheid
7178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179$as_echo "$supported" >&6; }
7180		if test "$supported" = "yes" ; then
7181			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7182			found="yes"
7183		fi
7184	fi
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200xorg_testset_save_CFLAGS="$CFLAGS"
7201
7202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7207  $as_echo_n "(cached) " >&6
7208else
7209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h.  */
7211int i;
7212_ACEOF
7213if ac_fn_c_try_compile "$LINENO"; then :
7214  xorg_cv_cc_flag_unknown_warning_option=yes
7215else
7216  xorg_cv_cc_flag_unknown_warning_option=no
7217fi
7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219fi
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7223	CFLAGS="$xorg_testset_save_CFLAGS"
7224fi
7225
7226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7229	fi
7230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237/* end confdefs.h.  */
7238int i;
7239_ACEOF
7240if ac_fn_c_try_compile "$LINENO"; then :
7241  xorg_cv_cc_flag_unused_command_line_argument=yes
7242else
7243  xorg_cv_cc_flag_unused_command_line_argument=no
7244fi
7245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246fi
7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7250	CFLAGS="$xorg_testset_save_CFLAGS"
7251fi
7252
7253found="no"
7254
7255	if test $found = "no" ; then
7256		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258		fi
7259
7260		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7262		fi
7263
7264		CFLAGS="$CFLAGS -Werror=main"
7265
7266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7267$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7268		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7269		if eval \${$cacheid+:} false; then :
7270  $as_echo_n "(cached) " >&6
7271else
7272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273/* end confdefs.h.  */
7274int i;
7275int
7276main ()
7277{
7278
7279  ;
7280  return 0;
7281}
7282_ACEOF
7283if ac_fn_c_try_link "$LINENO"; then :
7284  eval $cacheid=yes
7285else
7286  eval $cacheid=no
7287fi
7288rm -f core conftest.err conftest.$ac_objext \
7289    conftest$ac_exeext conftest.$ac_ext
7290fi
7291
7292
7293		CFLAGS="$xorg_testset_save_CFLAGS"
7294
7295		eval supported=\$$cacheid
7296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7297$as_echo "$supported" >&6; }
7298		if test "$supported" = "yes" ; then
7299			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7300			found="yes"
7301		fi
7302	fi
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318xorg_testset_save_CFLAGS="$CFLAGS"
7319
7320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7325  $as_echo_n "(cached) " >&6
7326else
7327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328/* end confdefs.h.  */
7329int i;
7330_ACEOF
7331if ac_fn_c_try_compile "$LINENO"; then :
7332  xorg_cv_cc_flag_unknown_warning_option=yes
7333else
7334  xorg_cv_cc_flag_unknown_warning_option=no
7335fi
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337fi
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7341	CFLAGS="$xorg_testset_save_CFLAGS"
7342fi
7343
7344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7347	fi
7348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h.  */
7356int i;
7357_ACEOF
7358if ac_fn_c_try_compile "$LINENO"; then :
7359  xorg_cv_cc_flag_unused_command_line_argument=yes
7360else
7361  xorg_cv_cc_flag_unused_command_line_argument=no
7362fi
7363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364fi
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7368	CFLAGS="$xorg_testset_save_CFLAGS"
7369fi
7370
7371found="no"
7372
7373	if test $found = "no" ; then
7374		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7376		fi
7377
7378		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7380		fi
7381
7382		CFLAGS="$CFLAGS -Werror=missing-braces"
7383
7384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7385$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7386		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7387		if eval \${$cacheid+:} false; then :
7388  $as_echo_n "(cached) " >&6
7389else
7390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391/* end confdefs.h.  */
7392int i;
7393int
7394main ()
7395{
7396
7397  ;
7398  return 0;
7399}
7400_ACEOF
7401if ac_fn_c_try_link "$LINENO"; then :
7402  eval $cacheid=yes
7403else
7404  eval $cacheid=no
7405fi
7406rm -f core conftest.err conftest.$ac_objext \
7407    conftest$ac_exeext conftest.$ac_ext
7408fi
7409
7410
7411		CFLAGS="$xorg_testset_save_CFLAGS"
7412
7413		eval supported=\$$cacheid
7414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7415$as_echo "$supported" >&6; }
7416		if test "$supported" = "yes" ; then
7417			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7418			found="yes"
7419		fi
7420	fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436xorg_testset_save_CFLAGS="$CFLAGS"
7437
7438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7443  $as_echo_n "(cached) " >&6
7444else
7445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446/* end confdefs.h.  */
7447int i;
7448_ACEOF
7449if ac_fn_c_try_compile "$LINENO"; then :
7450  xorg_cv_cc_flag_unknown_warning_option=yes
7451else
7452  xorg_cv_cc_flag_unknown_warning_option=no
7453fi
7454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455fi
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7459	CFLAGS="$xorg_testset_save_CFLAGS"
7460fi
7461
7462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7465	fi
7466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7470  $as_echo_n "(cached) " >&6
7471else
7472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h.  */
7474int i;
7475_ACEOF
7476if ac_fn_c_try_compile "$LINENO"; then :
7477  xorg_cv_cc_flag_unused_command_line_argument=yes
7478else
7479  xorg_cv_cc_flag_unused_command_line_argument=no
7480fi
7481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482fi
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7486	CFLAGS="$xorg_testset_save_CFLAGS"
7487fi
7488
7489found="no"
7490
7491	if test $found = "no" ; then
7492		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494		fi
7495
7496		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7498		fi
7499
7500		CFLAGS="$CFLAGS -Werror=sequence-point"
7501
7502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7503$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7504		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7505		if eval \${$cacheid+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h.  */
7510int i;
7511int
7512main ()
7513{
7514
7515  ;
7516  return 0;
7517}
7518_ACEOF
7519if ac_fn_c_try_link "$LINENO"; then :
7520  eval $cacheid=yes
7521else
7522  eval $cacheid=no
7523fi
7524rm -f core conftest.err conftest.$ac_objext \
7525    conftest$ac_exeext conftest.$ac_ext
7526fi
7527
7528
7529		CFLAGS="$xorg_testset_save_CFLAGS"
7530
7531		eval supported=\$$cacheid
7532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7533$as_echo "$supported" >&6; }
7534		if test "$supported" = "yes" ; then
7535			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7536			found="yes"
7537		fi
7538	fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554xorg_testset_save_CFLAGS="$CFLAGS"
7555
7556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7561  $as_echo_n "(cached) " >&6
7562else
7563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h.  */
7565int i;
7566_ACEOF
7567if ac_fn_c_try_compile "$LINENO"; then :
7568  xorg_cv_cc_flag_unknown_warning_option=yes
7569else
7570  xorg_cv_cc_flag_unknown_warning_option=no
7571fi
7572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573fi
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7577	CFLAGS="$xorg_testset_save_CFLAGS"
7578fi
7579
7580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583	fi
7584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7588  $as_echo_n "(cached) " >&6
7589else
7590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591/* end confdefs.h.  */
7592int i;
7593_ACEOF
7594if ac_fn_c_try_compile "$LINENO"; then :
7595  xorg_cv_cc_flag_unused_command_line_argument=yes
7596else
7597  xorg_cv_cc_flag_unused_command_line_argument=no
7598fi
7599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600fi
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7604	CFLAGS="$xorg_testset_save_CFLAGS"
7605fi
7606
7607found="no"
7608
7609	if test $found = "no" ; then
7610		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612		fi
7613
7614		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7616		fi
7617
7618		CFLAGS="$CFLAGS -Werror=return-type"
7619
7620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7621$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7622		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7623		if eval \${$cacheid+:} false; then :
7624  $as_echo_n "(cached) " >&6
7625else
7626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h.  */
7628int i;
7629int
7630main ()
7631{
7632
7633  ;
7634  return 0;
7635}
7636_ACEOF
7637if ac_fn_c_try_link "$LINENO"; then :
7638  eval $cacheid=yes
7639else
7640  eval $cacheid=no
7641fi
7642rm -f core conftest.err conftest.$ac_objext \
7643    conftest$ac_exeext conftest.$ac_ext
7644fi
7645
7646
7647		CFLAGS="$xorg_testset_save_CFLAGS"
7648
7649		eval supported=\$$cacheid
7650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7651$as_echo "$supported" >&6; }
7652		if test "$supported" = "yes" ; then
7653			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7654			found="yes"
7655		fi
7656	fi
7657
7658	if test $found = "no" ; then
7659		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661		fi
7662
7663		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665		fi
7666
7667		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7668
7669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7670$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7671		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7672		if eval \${$cacheid+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h.  */
7677int i;
7678int
7679main ()
7680{
7681
7682  ;
7683  return 0;
7684}
7685_ACEOF
7686if ac_fn_c_try_link "$LINENO"; then :
7687  eval $cacheid=yes
7688else
7689  eval $cacheid=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext \
7692    conftest$ac_exeext conftest.$ac_ext
7693fi
7694
7695
7696		CFLAGS="$xorg_testset_save_CFLAGS"
7697
7698		eval supported=\$$cacheid
7699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7700$as_echo "$supported" >&6; }
7701		if test "$supported" = "yes" ; then
7702			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7703			found="yes"
7704		fi
7705	fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721xorg_testset_save_CFLAGS="$CFLAGS"
7722
7723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7724	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7728  $as_echo_n "(cached) " >&6
7729else
7730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731/* end confdefs.h.  */
7732int i;
7733_ACEOF
7734if ac_fn_c_try_compile "$LINENO"; then :
7735  xorg_cv_cc_flag_unknown_warning_option=yes
7736else
7737  xorg_cv_cc_flag_unknown_warning_option=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740fi
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7744	CFLAGS="$xorg_testset_save_CFLAGS"
7745fi
7746
7747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7750	fi
7751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h.  */
7759int i;
7760_ACEOF
7761if ac_fn_c_try_compile "$LINENO"; then :
7762  xorg_cv_cc_flag_unused_command_line_argument=yes
7763else
7764  xorg_cv_cc_flag_unused_command_line_argument=no
7765fi
7766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767fi
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7771	CFLAGS="$xorg_testset_save_CFLAGS"
7772fi
7773
7774found="no"
7775
7776	if test $found = "no" ; then
7777		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7779		fi
7780
7781		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783		fi
7784
7785		CFLAGS="$CFLAGS -Werror=trigraphs"
7786
7787		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7788$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7789		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7790		if eval \${$cacheid+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h.  */
7795int i;
7796int
7797main ()
7798{
7799
7800  ;
7801  return 0;
7802}
7803_ACEOF
7804if ac_fn_c_try_link "$LINENO"; then :
7805  eval $cacheid=yes
7806else
7807  eval $cacheid=no
7808fi
7809rm -f core conftest.err conftest.$ac_objext \
7810    conftest$ac_exeext conftest.$ac_ext
7811fi
7812
7813
7814		CFLAGS="$xorg_testset_save_CFLAGS"
7815
7816		eval supported=\$$cacheid
7817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7818$as_echo "$supported" >&6; }
7819		if test "$supported" = "yes" ; then
7820			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7821			found="yes"
7822		fi
7823	fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839xorg_testset_save_CFLAGS="$CFLAGS"
7840
7841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7846  $as_echo_n "(cached) " >&6
7847else
7848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h.  */
7850int i;
7851_ACEOF
7852if ac_fn_c_try_compile "$LINENO"; then :
7853  xorg_cv_cc_flag_unknown_warning_option=yes
7854else
7855  xorg_cv_cc_flag_unknown_warning_option=no
7856fi
7857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858fi
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7861	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7862	CFLAGS="$xorg_testset_save_CFLAGS"
7863fi
7864
7865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7866	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7867		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868	fi
7869	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876/* end confdefs.h.  */
7877int i;
7878_ACEOF
7879if ac_fn_c_try_compile "$LINENO"; then :
7880  xorg_cv_cc_flag_unused_command_line_argument=yes
7881else
7882  xorg_cv_cc_flag_unused_command_line_argument=no
7883fi
7884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885fi
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7888	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7889	CFLAGS="$xorg_testset_save_CFLAGS"
7890fi
7891
7892found="no"
7893
7894	if test $found = "no" ; then
7895		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897		fi
7898
7899		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7901		fi
7902
7903		CFLAGS="$CFLAGS -Werror=array-bounds"
7904
7905		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7906$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7907		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7908		if eval \${$cacheid+:} false; then :
7909  $as_echo_n "(cached) " >&6
7910else
7911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912/* end confdefs.h.  */
7913int i;
7914int
7915main ()
7916{
7917
7918  ;
7919  return 0;
7920}
7921_ACEOF
7922if ac_fn_c_try_link "$LINENO"; then :
7923  eval $cacheid=yes
7924else
7925  eval $cacheid=no
7926fi
7927rm -f core conftest.err conftest.$ac_objext \
7928    conftest$ac_exeext conftest.$ac_ext
7929fi
7930
7931
7932		CFLAGS="$xorg_testset_save_CFLAGS"
7933
7934		eval supported=\$$cacheid
7935		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7936$as_echo "$supported" >&6; }
7937		if test "$supported" = "yes" ; then
7938			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7939			found="yes"
7940		fi
7941	fi
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957xorg_testset_save_CFLAGS="$CFLAGS"
7958
7959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7964  $as_echo_n "(cached) " >&6
7965else
7966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967/* end confdefs.h.  */
7968int i;
7969_ACEOF
7970if ac_fn_c_try_compile "$LINENO"; then :
7971  xorg_cv_cc_flag_unknown_warning_option=yes
7972else
7973  xorg_cv_cc_flag_unknown_warning_option=no
7974fi
7975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976fi
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7979	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7980	CFLAGS="$xorg_testset_save_CFLAGS"
7981fi
7982
7983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7984	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986	fi
7987	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994/* end confdefs.h.  */
7995int i;
7996_ACEOF
7997if ac_fn_c_try_compile "$LINENO"; then :
7998  xorg_cv_cc_flag_unused_command_line_argument=yes
7999else
8000  xorg_cv_cc_flag_unused_command_line_argument=no
8001fi
8002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003fi
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8006	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8007	CFLAGS="$xorg_testset_save_CFLAGS"
8008fi
8009
8010found="no"
8011
8012	if test $found = "no" ; then
8013		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8015		fi
8016
8017		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8019		fi
8020
8021		CFLAGS="$CFLAGS -Werror=write-strings"
8022
8023		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8024$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8025		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8026		if eval \${$cacheid+:} false; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h.  */
8031int i;
8032int
8033main ()
8034{
8035
8036  ;
8037  return 0;
8038}
8039_ACEOF
8040if ac_fn_c_try_link "$LINENO"; then :
8041  eval $cacheid=yes
8042else
8043  eval $cacheid=no
8044fi
8045rm -f core conftest.err conftest.$ac_objext \
8046    conftest$ac_exeext conftest.$ac_ext
8047fi
8048
8049
8050		CFLAGS="$xorg_testset_save_CFLAGS"
8051
8052		eval supported=\$$cacheid
8053		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8054$as_echo "$supported" >&6; }
8055		if test "$supported" = "yes" ; then
8056			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8057			found="yes"
8058		fi
8059	fi
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075xorg_testset_save_CFLAGS="$CFLAGS"
8076
8077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8082  $as_echo_n "(cached) " >&6
8083else
8084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085/* end confdefs.h.  */
8086int i;
8087_ACEOF
8088if ac_fn_c_try_compile "$LINENO"; then :
8089  xorg_cv_cc_flag_unknown_warning_option=yes
8090else
8091  xorg_cv_cc_flag_unknown_warning_option=no
8092fi
8093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094fi
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8097	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8098	CFLAGS="$xorg_testset_save_CFLAGS"
8099fi
8100
8101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8102	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8103		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104	fi
8105	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8109  $as_echo_n "(cached) " >&6
8110else
8111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112/* end confdefs.h.  */
8113int i;
8114_ACEOF
8115if ac_fn_c_try_compile "$LINENO"; then :
8116  xorg_cv_cc_flag_unused_command_line_argument=yes
8117else
8118  xorg_cv_cc_flag_unused_command_line_argument=no
8119fi
8120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121fi
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8124	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8125	CFLAGS="$xorg_testset_save_CFLAGS"
8126fi
8127
8128found="no"
8129
8130	if test $found = "no" ; then
8131		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8132			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133		fi
8134
8135		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8136			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8137		fi
8138
8139		CFLAGS="$CFLAGS -Werror=address"
8140
8141		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8142$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8143		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8144		if eval \${$cacheid+:} false; then :
8145  $as_echo_n "(cached) " >&6
8146else
8147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148/* end confdefs.h.  */
8149int i;
8150int
8151main ()
8152{
8153
8154  ;
8155  return 0;
8156}
8157_ACEOF
8158if ac_fn_c_try_link "$LINENO"; then :
8159  eval $cacheid=yes
8160else
8161  eval $cacheid=no
8162fi
8163rm -f core conftest.err conftest.$ac_objext \
8164    conftest$ac_exeext conftest.$ac_ext
8165fi
8166
8167
8168		CFLAGS="$xorg_testset_save_CFLAGS"
8169
8170		eval supported=\$$cacheid
8171		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8172$as_echo "$supported" >&6; }
8173		if test "$supported" = "yes" ; then
8174			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8175			found="yes"
8176		fi
8177	fi
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193xorg_testset_save_CFLAGS="$CFLAGS"
8194
8195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8200  $as_echo_n "(cached) " >&6
8201else
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204int i;
8205_ACEOF
8206if ac_fn_c_try_compile "$LINENO"; then :
8207  xorg_cv_cc_flag_unknown_warning_option=yes
8208else
8209  xorg_cv_cc_flag_unknown_warning_option=no
8210fi
8211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212fi
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8216	CFLAGS="$xorg_testset_save_CFLAGS"
8217fi
8218
8219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222	fi
8223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230/* end confdefs.h.  */
8231int i;
8232_ACEOF
8233if ac_fn_c_try_compile "$LINENO"; then :
8234  xorg_cv_cc_flag_unused_command_line_argument=yes
8235else
8236  xorg_cv_cc_flag_unused_command_line_argument=no
8237fi
8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239fi
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8242	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8243	CFLAGS="$xorg_testset_save_CFLAGS"
8244fi
8245
8246found="no"
8247
8248	if test $found = "no" ; then
8249		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8251		fi
8252
8253		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8255		fi
8256
8257		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8258
8259		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8260$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8261		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8262		if eval \${$cacheid+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h.  */
8267int i;
8268int
8269main ()
8270{
8271
8272  ;
8273  return 0;
8274}
8275_ACEOF
8276if ac_fn_c_try_link "$LINENO"; then :
8277  eval $cacheid=yes
8278else
8279  eval $cacheid=no
8280fi
8281rm -f core conftest.err conftest.$ac_objext \
8282    conftest$ac_exeext conftest.$ac_ext
8283fi
8284
8285
8286		CFLAGS="$xorg_testset_save_CFLAGS"
8287
8288		eval supported=\$$cacheid
8289		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8290$as_echo "$supported" >&6; }
8291		if test "$supported" = "yes" ; then
8292			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8293			found="yes"
8294		fi
8295	fi
8296
8297	if test $found = "no" ; then
8298		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300		fi
8301
8302		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8304		fi
8305
8306		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8307
8308		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8309$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8310		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8311		if eval \${$cacheid+:} false; then :
8312  $as_echo_n "(cached) " >&6
8313else
8314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h.  */
8316int i;
8317int
8318main ()
8319{
8320
8321  ;
8322  return 0;
8323}
8324_ACEOF
8325if ac_fn_c_try_link "$LINENO"; then :
8326  eval $cacheid=yes
8327else
8328  eval $cacheid=no
8329fi
8330rm -f core conftest.err conftest.$ac_objext \
8331    conftest$ac_exeext conftest.$ac_ext
8332fi
8333
8334
8335		CFLAGS="$xorg_testset_save_CFLAGS"
8336
8337		eval supported=\$$cacheid
8338		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8339$as_echo "$supported" >&6; }
8340		if test "$supported" = "yes" ; then
8341			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8342			found="yes"
8343		fi
8344	fi
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360xorg_testset_save_CFLAGS="$CFLAGS"
8361
8362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8367  $as_echo_n "(cached) " >&6
8368else
8369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h.  */
8371int i;
8372_ACEOF
8373if ac_fn_c_try_compile "$LINENO"; then :
8374  xorg_cv_cc_flag_unknown_warning_option=yes
8375else
8376  xorg_cv_cc_flag_unknown_warning_option=no
8377fi
8378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379fi
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8383	CFLAGS="$xorg_testset_save_CFLAGS"
8384fi
8385
8386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8389	fi
8390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8394  $as_echo_n "(cached) " >&6
8395else
8396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h.  */
8398int i;
8399_ACEOF
8400if ac_fn_c_try_compile "$LINENO"; then :
8401  xorg_cv_cc_flag_unused_command_line_argument=yes
8402else
8403  xorg_cv_cc_flag_unused_command_line_argument=no
8404fi
8405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406fi
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8410	CFLAGS="$xorg_testset_save_CFLAGS"
8411fi
8412
8413found="no"
8414
8415	if test $found = "no" ; then
8416		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8418		fi
8419
8420		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8422		fi
8423
8424		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8425
8426		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8427$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8428		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8429		if eval \${$cacheid+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433/* end confdefs.h.  */
8434int i;
8435int
8436main ()
8437{
8438
8439  ;
8440  return 0;
8441}
8442_ACEOF
8443if ac_fn_c_try_link "$LINENO"; then :
8444  eval $cacheid=yes
8445else
8446  eval $cacheid=no
8447fi
8448rm -f core conftest.err conftest.$ac_objext \
8449    conftest$ac_exeext conftest.$ac_ext
8450fi
8451
8452
8453		CFLAGS="$xorg_testset_save_CFLAGS"
8454
8455		eval supported=\$$cacheid
8456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8457$as_echo "$supported" >&6; }
8458		if test "$supported" = "yes" ; then
8459			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8460			found="yes"
8461		fi
8462	fi
8463
8464 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8465else
8466{ $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
8467$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;}
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481xorg_testset_save_CFLAGS="$CFLAGS"
8482
8483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8488  $as_echo_n "(cached) " >&6
8489else
8490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h.  */
8492int i;
8493_ACEOF
8494if ac_fn_c_try_compile "$LINENO"; then :
8495  xorg_cv_cc_flag_unknown_warning_option=yes
8496else
8497  xorg_cv_cc_flag_unknown_warning_option=no
8498fi
8499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8504	CFLAGS="$xorg_testset_save_CFLAGS"
8505fi
8506
8507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510	fi
8511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520_ACEOF
8521if ac_fn_c_try_compile "$LINENO"; then :
8522  xorg_cv_cc_flag_unused_command_line_argument=yes
8523else
8524  xorg_cv_cc_flag_unused_command_line_argument=no
8525fi
8526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527fi
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8531	CFLAGS="$xorg_testset_save_CFLAGS"
8532fi
8533
8534found="no"
8535
8536	if test $found = "no" ; then
8537		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539		fi
8540
8541		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8543		fi
8544
8545		CFLAGS="$CFLAGS -Wimplicit"
8546
8547		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8548$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8549		cacheid=xorg_cv_cc_flag__Wimplicit
8550		if eval \${$cacheid+:} false; then :
8551  $as_echo_n "(cached) " >&6
8552else
8553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h.  */
8555int i;
8556int
8557main ()
8558{
8559
8560  ;
8561  return 0;
8562}
8563_ACEOF
8564if ac_fn_c_try_link "$LINENO"; then :
8565  eval $cacheid=yes
8566else
8567  eval $cacheid=no
8568fi
8569rm -f core conftest.err conftest.$ac_objext \
8570    conftest$ac_exeext conftest.$ac_ext
8571fi
8572
8573
8574		CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576		eval supported=\$$cacheid
8577		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578$as_echo "$supported" >&6; }
8579		if test "$supported" = "yes" ; then
8580			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8581			found="yes"
8582		fi
8583	fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609/* end confdefs.h.  */
8610int i;
8611_ACEOF
8612if ac_fn_c_try_compile "$LINENO"; then :
8613  xorg_cv_cc_flag_unknown_warning_option=yes
8614else
8615  xorg_cv_cc_flag_unknown_warning_option=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618fi
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622	CFLAGS="$xorg_testset_save_CFLAGS"
8623fi
8624
8625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628	fi
8629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8633  $as_echo_n "(cached) " >&6
8634else
8635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h.  */
8637int i;
8638_ACEOF
8639if ac_fn_c_try_compile "$LINENO"; then :
8640  xorg_cv_cc_flag_unused_command_line_argument=yes
8641else
8642  xorg_cv_cc_flag_unused_command_line_argument=no
8643fi
8644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645fi
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8649	CFLAGS="$xorg_testset_save_CFLAGS"
8650fi
8651
8652found="no"
8653
8654	if test $found = "no" ; then
8655		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657		fi
8658
8659		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8661		fi
8662
8663		CFLAGS="$CFLAGS -Wnonnull"
8664
8665		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8666$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8667		cacheid=xorg_cv_cc_flag__Wnonnull
8668		if eval \${$cacheid+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674int
8675main ()
8676{
8677
8678  ;
8679  return 0;
8680}
8681_ACEOF
8682if ac_fn_c_try_link "$LINENO"; then :
8683  eval $cacheid=yes
8684else
8685  eval $cacheid=no
8686fi
8687rm -f core conftest.err conftest.$ac_objext \
8688    conftest$ac_exeext conftest.$ac_ext
8689fi
8690
8691
8692		CFLAGS="$xorg_testset_save_CFLAGS"
8693
8694		eval supported=\$$cacheid
8695		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8696$as_echo "$supported" >&6; }
8697		if test "$supported" = "yes" ; then
8698			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8699			found="yes"
8700		fi
8701	fi
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717xorg_testset_save_CFLAGS="$CFLAGS"
8718
8719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8724  $as_echo_n "(cached) " >&6
8725else
8726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728int i;
8729_ACEOF
8730if ac_fn_c_try_compile "$LINENO"; then :
8731  xorg_cv_cc_flag_unknown_warning_option=yes
8732else
8733  xorg_cv_cc_flag_unknown_warning_option=no
8734fi
8735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8740	CFLAGS="$xorg_testset_save_CFLAGS"
8741fi
8742
8743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746	fi
8747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8751  $as_echo_n "(cached) " >&6
8752else
8753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h.  */
8755int i;
8756_ACEOF
8757if ac_fn_c_try_compile "$LINENO"; then :
8758  xorg_cv_cc_flag_unused_command_line_argument=yes
8759else
8760  xorg_cv_cc_flag_unused_command_line_argument=no
8761fi
8762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763fi
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8767	CFLAGS="$xorg_testset_save_CFLAGS"
8768fi
8769
8770found="no"
8771
8772	if test $found = "no" ; then
8773		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775		fi
8776
8777		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779		fi
8780
8781		CFLAGS="$CFLAGS -Winit-self"
8782
8783		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8784$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8785		cacheid=xorg_cv_cc_flag__Winit_self
8786		if eval \${$cacheid+:} false; then :
8787  $as_echo_n "(cached) " >&6
8788else
8789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791int i;
8792int
8793main ()
8794{
8795
8796  ;
8797  return 0;
8798}
8799_ACEOF
8800if ac_fn_c_try_link "$LINENO"; then :
8801  eval $cacheid=yes
8802else
8803  eval $cacheid=no
8804fi
8805rm -f core conftest.err conftest.$ac_objext \
8806    conftest$ac_exeext conftest.$ac_ext
8807fi
8808
8809
8810		CFLAGS="$xorg_testset_save_CFLAGS"
8811
8812		eval supported=\$$cacheid
8813		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8814$as_echo "$supported" >&6; }
8815		if test "$supported" = "yes" ; then
8816			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8817			found="yes"
8818		fi
8819	fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835xorg_testset_save_CFLAGS="$CFLAGS"
8836
8837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8842  $as_echo_n "(cached) " >&6
8843else
8844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845/* end confdefs.h.  */
8846int i;
8847_ACEOF
8848if ac_fn_c_try_compile "$LINENO"; then :
8849  xorg_cv_cc_flag_unknown_warning_option=yes
8850else
8851  xorg_cv_cc_flag_unknown_warning_option=no
8852fi
8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854fi
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8858	CFLAGS="$xorg_testset_save_CFLAGS"
8859fi
8860
8861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8864	fi
8865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h.  */
8873int i;
8874_ACEOF
8875if ac_fn_c_try_compile "$LINENO"; then :
8876  xorg_cv_cc_flag_unused_command_line_argument=yes
8877else
8878  xorg_cv_cc_flag_unused_command_line_argument=no
8879fi
8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881fi
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8885	CFLAGS="$xorg_testset_save_CFLAGS"
8886fi
8887
8888found="no"
8889
8890	if test $found = "no" ; then
8891		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893		fi
8894
8895		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897		fi
8898
8899		CFLAGS="$CFLAGS -Wmain"
8900
8901		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8902$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8903		cacheid=xorg_cv_cc_flag__Wmain
8904		if eval \${$cacheid+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909int i;
8910int
8911main ()
8912{
8913
8914  ;
8915  return 0;
8916}
8917_ACEOF
8918if ac_fn_c_try_link "$LINENO"; then :
8919  eval $cacheid=yes
8920else
8921  eval $cacheid=no
8922fi
8923rm -f core conftest.err conftest.$ac_objext \
8924    conftest$ac_exeext conftest.$ac_ext
8925fi
8926
8927
8928		CFLAGS="$xorg_testset_save_CFLAGS"
8929
8930		eval supported=\$$cacheid
8931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8932$as_echo "$supported" >&6; }
8933		if test "$supported" = "yes" ; then
8934			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8935			found="yes"
8936		fi
8937	fi
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953xorg_testset_save_CFLAGS="$CFLAGS"
8954
8955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8960  $as_echo_n "(cached) " >&6
8961else
8962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963/* end confdefs.h.  */
8964int i;
8965_ACEOF
8966if ac_fn_c_try_compile "$LINENO"; then :
8967  xorg_cv_cc_flag_unknown_warning_option=yes
8968else
8969  xorg_cv_cc_flag_unknown_warning_option=no
8970fi
8971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972fi
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8976	CFLAGS="$xorg_testset_save_CFLAGS"
8977fi
8978
8979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8982	fi
8983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990/* end confdefs.h.  */
8991int i;
8992_ACEOF
8993if ac_fn_c_try_compile "$LINENO"; then :
8994  xorg_cv_cc_flag_unused_command_line_argument=yes
8995else
8996  xorg_cv_cc_flag_unused_command_line_argument=no
8997fi
8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999fi
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9002	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9003	CFLAGS="$xorg_testset_save_CFLAGS"
9004fi
9005
9006found="no"
9007
9008	if test $found = "no" ; then
9009		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011		fi
9012
9013		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9015		fi
9016
9017		CFLAGS="$CFLAGS -Wmissing-braces"
9018
9019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9020$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9021		cacheid=xorg_cv_cc_flag__Wmissing_braces
9022		if eval \${$cacheid+:} false; then :
9023  $as_echo_n "(cached) " >&6
9024else
9025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h.  */
9027int i;
9028int
9029main ()
9030{
9031
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036if ac_fn_c_try_link "$LINENO"; then :
9037  eval $cacheid=yes
9038else
9039  eval $cacheid=no
9040fi
9041rm -f core conftest.err conftest.$ac_objext \
9042    conftest$ac_exeext conftest.$ac_ext
9043fi
9044
9045
9046		CFLAGS="$xorg_testset_save_CFLAGS"
9047
9048		eval supported=\$$cacheid
9049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9050$as_echo "$supported" >&6; }
9051		if test "$supported" = "yes" ; then
9052			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9053			found="yes"
9054		fi
9055	fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071xorg_testset_save_CFLAGS="$CFLAGS"
9072
9073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9078  $as_echo_n "(cached) " >&6
9079else
9080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081/* end confdefs.h.  */
9082int i;
9083_ACEOF
9084if ac_fn_c_try_compile "$LINENO"; then :
9085  xorg_cv_cc_flag_unknown_warning_option=yes
9086else
9087  xorg_cv_cc_flag_unknown_warning_option=no
9088fi
9089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090fi
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9094	CFLAGS="$xorg_testset_save_CFLAGS"
9095fi
9096
9097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100	fi
9101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9105  $as_echo_n "(cached) " >&6
9106else
9107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108/* end confdefs.h.  */
9109int i;
9110_ACEOF
9111if ac_fn_c_try_compile "$LINENO"; then :
9112  xorg_cv_cc_flag_unused_command_line_argument=yes
9113else
9114  xorg_cv_cc_flag_unused_command_line_argument=no
9115fi
9116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117fi
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9121	CFLAGS="$xorg_testset_save_CFLAGS"
9122fi
9123
9124found="no"
9125
9126	if test $found = "no" ; then
9127		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129		fi
9130
9131		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133		fi
9134
9135		CFLAGS="$CFLAGS -Wsequence-point"
9136
9137		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9138$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9139		cacheid=xorg_cv_cc_flag__Wsequence_point
9140		if eval \${$cacheid+:} false; then :
9141  $as_echo_n "(cached) " >&6
9142else
9143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145int i;
9146int
9147main ()
9148{
9149
9150  ;
9151  return 0;
9152}
9153_ACEOF
9154if ac_fn_c_try_link "$LINENO"; then :
9155  eval $cacheid=yes
9156else
9157  eval $cacheid=no
9158fi
9159rm -f core conftest.err conftest.$ac_objext \
9160    conftest$ac_exeext conftest.$ac_ext
9161fi
9162
9163
9164		CFLAGS="$xorg_testset_save_CFLAGS"
9165
9166		eval supported=\$$cacheid
9167		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9168$as_echo "$supported" >&6; }
9169		if test "$supported" = "yes" ; then
9170			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9171			found="yes"
9172		fi
9173	fi
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189xorg_testset_save_CFLAGS="$CFLAGS"
9190
9191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9196  $as_echo_n "(cached) " >&6
9197else
9198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h.  */
9200int i;
9201_ACEOF
9202if ac_fn_c_try_compile "$LINENO"; then :
9203  xorg_cv_cc_flag_unknown_warning_option=yes
9204else
9205  xorg_cv_cc_flag_unknown_warning_option=no
9206fi
9207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208fi
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212	CFLAGS="$xorg_testset_save_CFLAGS"
9213fi
9214
9215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218	fi
9219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h.  */
9227int i;
9228_ACEOF
9229if ac_fn_c_try_compile "$LINENO"; then :
9230  xorg_cv_cc_flag_unused_command_line_argument=yes
9231else
9232  xorg_cv_cc_flag_unused_command_line_argument=no
9233fi
9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235fi
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239	CFLAGS="$xorg_testset_save_CFLAGS"
9240fi
9241
9242found="no"
9243
9244	if test $found = "no" ; then
9245		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247		fi
9248
9249		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251		fi
9252
9253		CFLAGS="$CFLAGS -Wreturn-type"
9254
9255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9256$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9257		cacheid=xorg_cv_cc_flag__Wreturn_type
9258		if eval \${$cacheid+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h.  */
9263int i;
9264int
9265main ()
9266{
9267
9268  ;
9269  return 0;
9270}
9271_ACEOF
9272if ac_fn_c_try_link "$LINENO"; then :
9273  eval $cacheid=yes
9274else
9275  eval $cacheid=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext \
9278    conftest$ac_exeext conftest.$ac_ext
9279fi
9280
9281
9282		CFLAGS="$xorg_testset_save_CFLAGS"
9283
9284		eval supported=\$$cacheid
9285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286$as_echo "$supported" >&6; }
9287		if test "$supported" = "yes" ; then
9288			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9289			found="yes"
9290		fi
9291	fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307xorg_testset_save_CFLAGS="$CFLAGS"
9308
9309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9314  $as_echo_n "(cached) " >&6
9315else
9316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317/* end confdefs.h.  */
9318int i;
9319_ACEOF
9320if ac_fn_c_try_compile "$LINENO"; then :
9321  xorg_cv_cc_flag_unknown_warning_option=yes
9322else
9323  xorg_cv_cc_flag_unknown_warning_option=no
9324fi
9325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326fi
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9330	CFLAGS="$xorg_testset_save_CFLAGS"
9331fi
9332
9333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336	fi
9337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9341  $as_echo_n "(cached) " >&6
9342else
9343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h.  */
9345int i;
9346_ACEOF
9347if ac_fn_c_try_compile "$LINENO"; then :
9348  xorg_cv_cc_flag_unused_command_line_argument=yes
9349else
9350  xorg_cv_cc_flag_unused_command_line_argument=no
9351fi
9352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353fi
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9357	CFLAGS="$xorg_testset_save_CFLAGS"
9358fi
9359
9360found="no"
9361
9362	if test $found = "no" ; then
9363		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365		fi
9366
9367		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9369		fi
9370
9371		CFLAGS="$CFLAGS -Wtrigraphs"
9372
9373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9374$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9375		cacheid=xorg_cv_cc_flag__Wtrigraphs
9376		if eval \${$cacheid+:} false; then :
9377  $as_echo_n "(cached) " >&6
9378else
9379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380/* end confdefs.h.  */
9381int i;
9382int
9383main ()
9384{
9385
9386  ;
9387  return 0;
9388}
9389_ACEOF
9390if ac_fn_c_try_link "$LINENO"; then :
9391  eval $cacheid=yes
9392else
9393  eval $cacheid=no
9394fi
9395rm -f core conftest.err conftest.$ac_objext \
9396    conftest$ac_exeext conftest.$ac_ext
9397fi
9398
9399
9400		CFLAGS="$xorg_testset_save_CFLAGS"
9401
9402		eval supported=\$$cacheid
9403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9404$as_echo "$supported" >&6; }
9405		if test "$supported" = "yes" ; then
9406			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9407			found="yes"
9408		fi
9409	fi
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425xorg_testset_save_CFLAGS="$CFLAGS"
9426
9427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9432  $as_echo_n "(cached) " >&6
9433else
9434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435/* end confdefs.h.  */
9436int i;
9437_ACEOF
9438if ac_fn_c_try_compile "$LINENO"; then :
9439  xorg_cv_cc_flag_unknown_warning_option=yes
9440else
9441  xorg_cv_cc_flag_unknown_warning_option=no
9442fi
9443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444fi
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9448	CFLAGS="$xorg_testset_save_CFLAGS"
9449fi
9450
9451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9454	fi
9455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9459  $as_echo_n "(cached) " >&6
9460else
9461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462/* end confdefs.h.  */
9463int i;
9464_ACEOF
9465if ac_fn_c_try_compile "$LINENO"; then :
9466  xorg_cv_cc_flag_unused_command_line_argument=yes
9467else
9468  xorg_cv_cc_flag_unused_command_line_argument=no
9469fi
9470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471fi
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9475	CFLAGS="$xorg_testset_save_CFLAGS"
9476fi
9477
9478found="no"
9479
9480	if test $found = "no" ; then
9481		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483		fi
9484
9485		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9487		fi
9488
9489		CFLAGS="$CFLAGS -Warray-bounds"
9490
9491		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9492$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9493		cacheid=xorg_cv_cc_flag__Warray_bounds
9494		if eval \${$cacheid+:} false; then :
9495  $as_echo_n "(cached) " >&6
9496else
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499int i;
9500int
9501main ()
9502{
9503
9504  ;
9505  return 0;
9506}
9507_ACEOF
9508if ac_fn_c_try_link "$LINENO"; then :
9509  eval $cacheid=yes
9510else
9511  eval $cacheid=no
9512fi
9513rm -f core conftest.err conftest.$ac_objext \
9514    conftest$ac_exeext conftest.$ac_ext
9515fi
9516
9517
9518		CFLAGS="$xorg_testset_save_CFLAGS"
9519
9520		eval supported=\$$cacheid
9521		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9522$as_echo "$supported" >&6; }
9523		if test "$supported" = "yes" ; then
9524			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9525			found="yes"
9526		fi
9527	fi
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543xorg_testset_save_CFLAGS="$CFLAGS"
9544
9545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9550  $as_echo_n "(cached) " >&6
9551else
9552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553/* end confdefs.h.  */
9554int i;
9555_ACEOF
9556if ac_fn_c_try_compile "$LINENO"; then :
9557  xorg_cv_cc_flag_unknown_warning_option=yes
9558else
9559  xorg_cv_cc_flag_unknown_warning_option=no
9560fi
9561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9566	CFLAGS="$xorg_testset_save_CFLAGS"
9567fi
9568
9569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572	fi
9573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9577  $as_echo_n "(cached) " >&6
9578else
9579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580/* end confdefs.h.  */
9581int i;
9582_ACEOF
9583if ac_fn_c_try_compile "$LINENO"; then :
9584  xorg_cv_cc_flag_unused_command_line_argument=yes
9585else
9586  xorg_cv_cc_flag_unused_command_line_argument=no
9587fi
9588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589fi
9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9593	CFLAGS="$xorg_testset_save_CFLAGS"
9594fi
9595
9596found="no"
9597
9598	if test $found = "no" ; then
9599		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9601		fi
9602
9603		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9605		fi
9606
9607		CFLAGS="$CFLAGS -Wwrite-strings"
9608
9609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9610$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9611		cacheid=xorg_cv_cc_flag__Wwrite_strings
9612		if eval \${$cacheid+:} false; then :
9613  $as_echo_n "(cached) " >&6
9614else
9615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616/* end confdefs.h.  */
9617int i;
9618int
9619main ()
9620{
9621
9622  ;
9623  return 0;
9624}
9625_ACEOF
9626if ac_fn_c_try_link "$LINENO"; then :
9627  eval $cacheid=yes
9628else
9629  eval $cacheid=no
9630fi
9631rm -f core conftest.err conftest.$ac_objext \
9632    conftest$ac_exeext conftest.$ac_ext
9633fi
9634
9635
9636		CFLAGS="$xorg_testset_save_CFLAGS"
9637
9638		eval supported=\$$cacheid
9639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9640$as_echo "$supported" >&6; }
9641		if test "$supported" = "yes" ; then
9642			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9643			found="yes"
9644		fi
9645	fi
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661xorg_testset_save_CFLAGS="$CFLAGS"
9662
9663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9668  $as_echo_n "(cached) " >&6
9669else
9670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671/* end confdefs.h.  */
9672int i;
9673_ACEOF
9674if ac_fn_c_try_compile "$LINENO"; then :
9675  xorg_cv_cc_flag_unknown_warning_option=yes
9676else
9677  xorg_cv_cc_flag_unknown_warning_option=no
9678fi
9679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680fi
9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9684	CFLAGS="$xorg_testset_save_CFLAGS"
9685fi
9686
9687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9690	fi
9691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9695  $as_echo_n "(cached) " >&6
9696else
9697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h.  */
9699int i;
9700_ACEOF
9701if ac_fn_c_try_compile "$LINENO"; then :
9702  xorg_cv_cc_flag_unused_command_line_argument=yes
9703else
9704  xorg_cv_cc_flag_unused_command_line_argument=no
9705fi
9706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707fi
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9711	CFLAGS="$xorg_testset_save_CFLAGS"
9712fi
9713
9714found="no"
9715
9716	if test $found = "no" ; then
9717		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9719		fi
9720
9721		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9723		fi
9724
9725		CFLAGS="$CFLAGS -Waddress"
9726
9727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9728$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9729		cacheid=xorg_cv_cc_flag__Waddress
9730		if eval \${$cacheid+:} false; then :
9731  $as_echo_n "(cached) " >&6
9732else
9733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734/* end confdefs.h.  */
9735int i;
9736int
9737main ()
9738{
9739
9740  ;
9741  return 0;
9742}
9743_ACEOF
9744if ac_fn_c_try_link "$LINENO"; then :
9745  eval $cacheid=yes
9746else
9747  eval $cacheid=no
9748fi
9749rm -f core conftest.err conftest.$ac_objext \
9750    conftest$ac_exeext conftest.$ac_ext
9751fi
9752
9753
9754		CFLAGS="$xorg_testset_save_CFLAGS"
9755
9756		eval supported=\$$cacheid
9757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9758$as_echo "$supported" >&6; }
9759		if test "$supported" = "yes" ; then
9760			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9761			found="yes"
9762		fi
9763	fi
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779xorg_testset_save_CFLAGS="$CFLAGS"
9780
9781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9786  $as_echo_n "(cached) " >&6
9787else
9788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789/* end confdefs.h.  */
9790int i;
9791_ACEOF
9792if ac_fn_c_try_compile "$LINENO"; then :
9793  xorg_cv_cc_flag_unknown_warning_option=yes
9794else
9795  xorg_cv_cc_flag_unknown_warning_option=no
9796fi
9797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798fi
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9802	CFLAGS="$xorg_testset_save_CFLAGS"
9803fi
9804
9805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9808	fi
9809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9813  $as_echo_n "(cached) " >&6
9814else
9815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816/* end confdefs.h.  */
9817int i;
9818_ACEOF
9819if ac_fn_c_try_compile "$LINENO"; then :
9820  xorg_cv_cc_flag_unused_command_line_argument=yes
9821else
9822  xorg_cv_cc_flag_unused_command_line_argument=no
9823fi
9824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825fi
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9829	CFLAGS="$xorg_testset_save_CFLAGS"
9830fi
9831
9832found="no"
9833
9834	if test $found = "no" ; then
9835		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9837		fi
9838
9839		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9841		fi
9842
9843		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9844
9845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9846$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9847		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9848		if eval \${$cacheid+:} false; then :
9849  $as_echo_n "(cached) " >&6
9850else
9851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852/* end confdefs.h.  */
9853int i;
9854int
9855main ()
9856{
9857
9858  ;
9859  return 0;
9860}
9861_ACEOF
9862if ac_fn_c_try_link "$LINENO"; then :
9863  eval $cacheid=yes
9864else
9865  eval $cacheid=no
9866fi
9867rm -f core conftest.err conftest.$ac_objext \
9868    conftest$ac_exeext conftest.$ac_ext
9869fi
9870
9871
9872		CFLAGS="$xorg_testset_save_CFLAGS"
9873
9874		eval supported=\$$cacheid
9875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9876$as_echo "$supported" >&6; }
9877		if test "$supported" = "yes" ; then
9878			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9879			found="yes"
9880		fi
9881	fi
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897xorg_testset_save_CFLAGS="$CFLAGS"
9898
9899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9904  $as_echo_n "(cached) " >&6
9905else
9906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907/* end confdefs.h.  */
9908int i;
9909_ACEOF
9910if ac_fn_c_try_compile "$LINENO"; then :
9911  xorg_cv_cc_flag_unknown_warning_option=yes
9912else
9913  xorg_cv_cc_flag_unknown_warning_option=no
9914fi
9915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9916fi
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9920	CFLAGS="$xorg_testset_save_CFLAGS"
9921fi
9922
9923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9926	fi
9927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9931  $as_echo_n "(cached) " >&6
9932else
9933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934/* end confdefs.h.  */
9935int i;
9936_ACEOF
9937if ac_fn_c_try_compile "$LINENO"; then :
9938  xorg_cv_cc_flag_unused_command_line_argument=yes
9939else
9940  xorg_cv_cc_flag_unused_command_line_argument=no
9941fi
9942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943fi
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9947	CFLAGS="$xorg_testset_save_CFLAGS"
9948fi
9949
9950found="no"
9951
9952	if test $found = "no" ; then
9953		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955		fi
9956
9957		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9959		fi
9960
9961		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9962
9963		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9964$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9965		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9966		if eval \${$cacheid+:} false; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970/* end confdefs.h.  */
9971int i;
9972int
9973main ()
9974{
9975
9976  ;
9977  return 0;
9978}
9979_ACEOF
9980if ac_fn_c_try_link "$LINENO"; then :
9981  eval $cacheid=yes
9982else
9983  eval $cacheid=no
9984fi
9985rm -f core conftest.err conftest.$ac_objext \
9986    conftest$ac_exeext conftest.$ac_ext
9987fi
9988
9989
9990		CFLAGS="$xorg_testset_save_CFLAGS"
9991
9992		eval supported=\$$cacheid
9993		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9994$as_echo "$supported" >&6; }
9995		if test "$supported" = "yes" ; then
9996			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9997			found="yes"
9998		fi
9999	fi
10000
10001
10002fi
10003
10004
10005
10006
10007
10008
10009
10010		CWARNFLAGS="$BASE_CFLAGS"
10011		if  test "x$GCC" = xyes ; then
10012		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10013		fi
10014
10015
10016
10017
10018
10019
10020
10021
10022# Check whether --enable-strict-compilation was given.
10023if test "${enable_strict_compilation+set}" = set; then :
10024  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10025else
10026  STRICT_COMPILE=no
10027fi
10028
10029
10030
10031
10032
10033
10034STRICT_CFLAGS=""
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048xorg_testset_save_CFLAGS="$CFLAGS"
10049
10050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10053$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10054if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10055  $as_echo_n "(cached) " >&6
10056else
10057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058/* end confdefs.h.  */
10059int i;
10060_ACEOF
10061if ac_fn_c_try_compile "$LINENO"; then :
10062  xorg_cv_cc_flag_unknown_warning_option=yes
10063else
10064  xorg_cv_cc_flag_unknown_warning_option=no
10065fi
10066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067fi
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10069$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10070	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10071	CFLAGS="$xorg_testset_save_CFLAGS"
10072fi
10073
10074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10075	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10076		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077	fi
10078	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10080$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10081if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10082  $as_echo_n "(cached) " >&6
10083else
10084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086int i;
10087_ACEOF
10088if ac_fn_c_try_compile "$LINENO"; then :
10089  xorg_cv_cc_flag_unused_command_line_argument=yes
10090else
10091  xorg_cv_cc_flag_unused_command_line_argument=no
10092fi
10093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094fi
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10096$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10098	CFLAGS="$xorg_testset_save_CFLAGS"
10099fi
10100
10101found="no"
10102
10103	if test $found = "no" ; then
10104		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10106		fi
10107
10108		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10110		fi
10111
10112		CFLAGS="$CFLAGS -pedantic"
10113
10114		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10115$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10116		cacheid=xorg_cv_cc_flag__pedantic
10117		if eval \${$cacheid+:} false; then :
10118  $as_echo_n "(cached) " >&6
10119else
10120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121/* end confdefs.h.  */
10122int i;
10123int
10124main ()
10125{
10126
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131if ac_fn_c_try_link "$LINENO"; then :
10132  eval $cacheid=yes
10133else
10134  eval $cacheid=no
10135fi
10136rm -f core conftest.err conftest.$ac_objext \
10137    conftest$ac_exeext conftest.$ac_ext
10138fi
10139
10140
10141		CFLAGS="$xorg_testset_save_CFLAGS"
10142
10143		eval supported=\$$cacheid
10144		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10145$as_echo "$supported" >&6; }
10146		if test "$supported" = "yes" ; then
10147			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10148			found="yes"
10149		fi
10150	fi
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166xorg_testset_save_CFLAGS="$CFLAGS"
10167
10168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10169	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10171$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10172if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10173  $as_echo_n "(cached) " >&6
10174else
10175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h.  */
10177int i;
10178_ACEOF
10179if ac_fn_c_try_compile "$LINENO"; then :
10180  xorg_cv_cc_flag_unknown_warning_option=yes
10181else
10182  xorg_cv_cc_flag_unknown_warning_option=no
10183fi
10184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185fi
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10187$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10189	CFLAGS="$xorg_testset_save_CFLAGS"
10190fi
10191
10192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10195	fi
10196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10198$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10199if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10200  $as_echo_n "(cached) " >&6
10201else
10202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h.  */
10204int i;
10205_ACEOF
10206if ac_fn_c_try_compile "$LINENO"; then :
10207  xorg_cv_cc_flag_unused_command_line_argument=yes
10208else
10209  xorg_cv_cc_flag_unused_command_line_argument=no
10210fi
10211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212fi
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10214$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10215	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10216	CFLAGS="$xorg_testset_save_CFLAGS"
10217fi
10218
10219found="no"
10220
10221	if test $found = "no" ; then
10222		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10223			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224		fi
10225
10226		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10227			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10228		fi
10229
10230		CFLAGS="$CFLAGS -Werror"
10231
10232		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10233$as_echo_n "checking if $CC supports -Werror... " >&6; }
10234		cacheid=xorg_cv_cc_flag__Werror
10235		if eval \${$cacheid+:} false; then :
10236  $as_echo_n "(cached) " >&6
10237else
10238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239/* end confdefs.h.  */
10240int i;
10241int
10242main ()
10243{
10244
10245  ;
10246  return 0;
10247}
10248_ACEOF
10249if ac_fn_c_try_link "$LINENO"; then :
10250  eval $cacheid=yes
10251else
10252  eval $cacheid=no
10253fi
10254rm -f core conftest.err conftest.$ac_objext \
10255    conftest$ac_exeext conftest.$ac_ext
10256fi
10257
10258
10259		CFLAGS="$xorg_testset_save_CFLAGS"
10260
10261		eval supported=\$$cacheid
10262		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10263$as_echo "$supported" >&6; }
10264		if test "$supported" = "yes" ; then
10265			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10266			found="yes"
10267		fi
10268	fi
10269
10270	if test $found = "no" ; then
10271		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10273		fi
10274
10275		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10277		fi
10278
10279		CFLAGS="$CFLAGS -errwarn"
10280
10281		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10282$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10283		cacheid=xorg_cv_cc_flag__errwarn
10284		if eval \${$cacheid+:} false; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289int i;
10290int
10291main ()
10292{
10293
10294  ;
10295  return 0;
10296}
10297_ACEOF
10298if ac_fn_c_try_link "$LINENO"; then :
10299  eval $cacheid=yes
10300else
10301  eval $cacheid=no
10302fi
10303rm -f core conftest.err conftest.$ac_objext \
10304    conftest$ac_exeext conftest.$ac_ext
10305fi
10306
10307
10308		CFLAGS="$xorg_testset_save_CFLAGS"
10309
10310		eval supported=\$$cacheid
10311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10312$as_echo "$supported" >&6; }
10313		if test "$supported" = "yes" ; then
10314			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10315			found="yes"
10316		fi
10317	fi
10318
10319
10320
10321# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10322# activate it with -Werror, so we add it here explicitly.
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336xorg_testset_save_CFLAGS="$CFLAGS"
10337
10338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10343  $as_echo_n "(cached) " >&6
10344else
10345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346/* end confdefs.h.  */
10347int i;
10348_ACEOF
10349if ac_fn_c_try_compile "$LINENO"; then :
10350  xorg_cv_cc_flag_unknown_warning_option=yes
10351else
10352  xorg_cv_cc_flag_unknown_warning_option=no
10353fi
10354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10355fi
10356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10359	CFLAGS="$xorg_testset_save_CFLAGS"
10360fi
10361
10362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10365	fi
10366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10370  $as_echo_n "(cached) " >&6
10371else
10372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373/* end confdefs.h.  */
10374int i;
10375_ACEOF
10376if ac_fn_c_try_compile "$LINENO"; then :
10377  xorg_cv_cc_flag_unused_command_line_argument=yes
10378else
10379  xorg_cv_cc_flag_unused_command_line_argument=no
10380fi
10381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382fi
10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10386	CFLAGS="$xorg_testset_save_CFLAGS"
10387fi
10388
10389found="no"
10390
10391	if test $found = "no" ; then
10392		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10394		fi
10395
10396		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10398		fi
10399
10400		CFLAGS="$CFLAGS -Werror=attributes"
10401
10402		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10403$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10404		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10405		if eval \${$cacheid+:} false; then :
10406  $as_echo_n "(cached) " >&6
10407else
10408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h.  */
10410int i;
10411int
10412main ()
10413{
10414
10415  ;
10416  return 0;
10417}
10418_ACEOF
10419if ac_fn_c_try_link "$LINENO"; then :
10420  eval $cacheid=yes
10421else
10422  eval $cacheid=no
10423fi
10424rm -f core conftest.err conftest.$ac_objext \
10425    conftest$ac_exeext conftest.$ac_ext
10426fi
10427
10428
10429		CFLAGS="$xorg_testset_save_CFLAGS"
10430
10431		eval supported=\$$cacheid
10432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10433$as_echo "$supported" >&6; }
10434		if test "$supported" = "yes" ; then
10435			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10436			found="yes"
10437		fi
10438	fi
10439
10440
10441
10442if test "x$STRICT_COMPILE" = "xyes"; then
10443    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10444    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10445fi
10446
10447
10448
10449
10450
10451
10452cat >>confdefs.h <<_ACEOF
10453#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10454_ACEOF
10455
10456	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10457	if test "x$PVM" = "x"; then
10458		PVM="0"
10459	fi
10460
10461cat >>confdefs.h <<_ACEOF
10462#define PACKAGE_VERSION_MINOR $PVM
10463_ACEOF
10464
10465	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10466	if test "x$PVP" = "x"; then
10467		PVP="0"
10468	fi
10469
10470cat >>confdefs.h <<_ACEOF
10471#define PACKAGE_VERSION_PATCHLEVEL $PVP
10472_ACEOF
10473
10474
10475
10476CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10477mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10478|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10479echo 'git directory not found: installing possibly empty changelog.' >&2)"
10480
10481
10482
10483
10484macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10485INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10486mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10487|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10488echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10489
10490
10491
10492
10493
10494
10495if test x$APP_MAN_SUFFIX = x    ; then
10496    APP_MAN_SUFFIX=1
10497fi
10498if test x$APP_MAN_DIR = x    ; then
10499    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10500fi
10501
10502if test x$LIB_MAN_SUFFIX = x    ; then
10503    LIB_MAN_SUFFIX=3
10504fi
10505if test x$LIB_MAN_DIR = x    ; then
10506    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10507fi
10508
10509if test x$FILE_MAN_SUFFIX = x    ; then
10510    case $host_os in
10511	solaris*)	FILE_MAN_SUFFIX=4  ;;
10512	*)		FILE_MAN_SUFFIX=5  ;;
10513    esac
10514fi
10515if test x$FILE_MAN_DIR = x    ; then
10516    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10517fi
10518
10519if test x$MISC_MAN_SUFFIX = x    ; then
10520    case $host_os in
10521	solaris*)	MISC_MAN_SUFFIX=5  ;;
10522	*)		MISC_MAN_SUFFIX=7  ;;
10523    esac
10524fi
10525if test x$MISC_MAN_DIR = x    ; then
10526    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10527fi
10528
10529if test x$DRIVER_MAN_SUFFIX = x    ; then
10530    case $host_os in
10531	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10532	*)		DRIVER_MAN_SUFFIX=4  ;;
10533    esac
10534fi
10535if test x$DRIVER_MAN_DIR = x    ; then
10536    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10537fi
10538
10539if test x$ADMIN_MAN_SUFFIX = x    ; then
10540    case $host_os in
10541	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10542	*)		ADMIN_MAN_SUFFIX=8  ;;
10543    esac
10544fi
10545if test x$ADMIN_MAN_DIR = x    ; then
10546    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10547fi
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563XORG_MAN_PAGE="X Version 11"
10564
10565MAN_SUBSTS="\
10566	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10567	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10568	-e 's|__xservername__|Xorg|g' \
10569	-e 's|__xconfigfile__|xorg.conf|g' \
10570	-e 's|__projectroot__|\$(prefix)|g' \
10571	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10572	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10573	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10574	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10575	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10576	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10577	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10578
10579
10580
10581# Check whether --enable-silent-rules was given.
10582if test "${enable_silent_rules+set}" = set; then :
10583  enableval=$enable_silent_rules;
10584fi
10585
10586case $enable_silent_rules in
10587yes) AM_DEFAULT_VERBOSITY=0;;
10588no)  AM_DEFAULT_VERBOSITY=1;;
10589*)   AM_DEFAULT_VERBOSITY=0;;
10590esac
10591AM_BACKSLASH='\'
10592
10593
10594
10595# Initialize libtool
10596# Check whether --enable-static was given.
10597if test "${enable_static+set}" = set; then :
10598  enableval=$enable_static; p=${PACKAGE-default}
10599    case $enableval in
10600    yes) enable_static=yes ;;
10601    no) enable_static=no ;;
10602    *)
10603     enable_static=no
10604      # Look at the argument we got.  We use all the common list separators.
10605      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10606      for pkg in $enableval; do
10607	IFS="$lt_save_ifs"
10608	if test "X$pkg" = "X$p"; then
10609	  enable_static=yes
10610	fi
10611      done
10612      IFS="$lt_save_ifs"
10613      ;;
10614    esac
10615else
10616  enable_static=no
10617fi
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627case `pwd` in
10628  *\ * | *\	*)
10629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10630$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10631esac
10632
10633
10634
10635macro_version='2.4'
10636macro_revision='1.3293'
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650ltmain="$ac_aux_dir/ltmain.sh"
10651
10652# Backslashify metacharacters that are still active within
10653# double-quoted strings.
10654sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10655
10656# Same as above, but do not quote variable references.
10657double_quote_subst='s/\(["`\\]\)/\\\1/g'
10658
10659# Sed substitution to delay expansion of an escaped shell variable in a
10660# double_quote_subst'ed string.
10661delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10662
10663# Sed substitution to delay expansion of an escaped single quote.
10664delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10665
10666# Sed substitution to avoid accidental globbing in evaled expressions
10667no_glob_subst='s/\*/\\\*/g'
10668
10669ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10670ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10671ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10672
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10674$as_echo_n "checking how to print strings... " >&6; }
10675# Test print first, because it will be a builtin if present.
10676if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10677   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10678  ECHO='print -r --'
10679elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10680  ECHO='printf %s\n'
10681else
10682  # Use this function as a fallback that always works.
10683  func_fallback_echo ()
10684  {
10685    eval 'cat <<_LTECHO_EOF
10686$1
10687_LTECHO_EOF'
10688  }
10689  ECHO='func_fallback_echo'
10690fi
10691
10692# func_echo_all arg...
10693# Invoke $ECHO with all args, space-separated.
10694func_echo_all ()
10695{
10696    $ECHO ""
10697}
10698
10699case "$ECHO" in
10700  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10701$as_echo "printf" >&6; } ;;
10702  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10703$as_echo "print -r" >&6; } ;;
10704  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10705$as_echo "cat" >&6; } ;;
10706esac
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10722$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10723if ${ac_cv_path_SED+:} false; then :
10724  $as_echo_n "(cached) " >&6
10725else
10726            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10727     for ac_i in 1 2 3 4 5 6 7; do
10728       ac_script="$ac_script$as_nl$ac_script"
10729     done
10730     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10731     { ac_script=; unset ac_script;}
10732     if test -z "$SED"; then
10733  ac_path_SED_found=false
10734  # Loop through the user's path and test for each of PROGNAME-LIST
10735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736for as_dir in $PATH
10737do
10738  IFS=$as_save_IFS
10739  test -z "$as_dir" && as_dir=.
10740    for ac_prog in sed gsed; do
10741    for ac_exec_ext in '' $ac_executable_extensions; do
10742      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10743      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10744# Check for GNU ac_path_SED and select it if it is found.
10745  # Check for GNU $ac_path_SED
10746case `"$ac_path_SED" --version 2>&1` in
10747*GNU*)
10748  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10749*)
10750  ac_count=0
10751  $as_echo_n 0123456789 >"conftest.in"
10752  while :
10753  do
10754    cat "conftest.in" "conftest.in" >"conftest.tmp"
10755    mv "conftest.tmp" "conftest.in"
10756    cp "conftest.in" "conftest.nl"
10757    $as_echo '' >> "conftest.nl"
10758    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10759    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10760    as_fn_arith $ac_count + 1 && ac_count=$as_val
10761    if test $ac_count -gt ${ac_path_SED_max-0}; then
10762      # Best one so far, save it but keep looking for a better one
10763      ac_cv_path_SED="$ac_path_SED"
10764      ac_path_SED_max=$ac_count
10765    fi
10766    # 10*(2^10) chars as input seems more than enough
10767    test $ac_count -gt 10 && break
10768  done
10769  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10770esac
10771
10772      $ac_path_SED_found && break 3
10773    done
10774  done
10775  done
10776IFS=$as_save_IFS
10777  if test -z "$ac_cv_path_SED"; then
10778    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10779  fi
10780else
10781  ac_cv_path_SED=$SED
10782fi
10783
10784fi
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10786$as_echo "$ac_cv_path_SED" >&6; }
10787 SED="$ac_cv_path_SED"
10788  rm -f conftest.sed
10789
10790test -z "$SED" && SED=sed
10791Xsed="$SED -e 1s/^X//"
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10804$as_echo_n "checking for fgrep... " >&6; }
10805if ${ac_cv_path_FGREP+:} false; then :
10806  $as_echo_n "(cached) " >&6
10807else
10808  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10809   then ac_cv_path_FGREP="$GREP -F"
10810   else
10811     if test -z "$FGREP"; then
10812  ac_path_FGREP_found=false
10813  # Loop through the user's path and test for each of PROGNAME-LIST
10814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10816do
10817  IFS=$as_save_IFS
10818  test -z "$as_dir" && as_dir=.
10819    for ac_prog in fgrep; do
10820    for ac_exec_ext in '' $ac_executable_extensions; do
10821      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10822      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10823# Check for GNU ac_path_FGREP and select it if it is found.
10824  # Check for GNU $ac_path_FGREP
10825case `"$ac_path_FGREP" --version 2>&1` in
10826*GNU*)
10827  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10828*)
10829  ac_count=0
10830  $as_echo_n 0123456789 >"conftest.in"
10831  while :
10832  do
10833    cat "conftest.in" "conftest.in" >"conftest.tmp"
10834    mv "conftest.tmp" "conftest.in"
10835    cp "conftest.in" "conftest.nl"
10836    $as_echo 'FGREP' >> "conftest.nl"
10837    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10838    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10839    as_fn_arith $ac_count + 1 && ac_count=$as_val
10840    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10841      # Best one so far, save it but keep looking for a better one
10842      ac_cv_path_FGREP="$ac_path_FGREP"
10843      ac_path_FGREP_max=$ac_count
10844    fi
10845    # 10*(2^10) chars as input seems more than enough
10846    test $ac_count -gt 10 && break
10847  done
10848  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10849esac
10850
10851      $ac_path_FGREP_found && break 3
10852    done
10853  done
10854  done
10855IFS=$as_save_IFS
10856  if test -z "$ac_cv_path_FGREP"; then
10857    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10858  fi
10859else
10860  ac_cv_path_FGREP=$FGREP
10861fi
10862
10863   fi
10864fi
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10866$as_echo "$ac_cv_path_FGREP" >&6; }
10867 FGREP="$ac_cv_path_FGREP"
10868
10869
10870test -z "$GREP" && GREP=grep
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890# Check whether --with-gnu-ld was given.
10891if test "${with_gnu_ld+set}" = set; then :
10892  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10893else
10894  with_gnu_ld=no
10895fi
10896
10897ac_prog=ld
10898if test "$GCC" = yes; then
10899  # Check if gcc -print-prog-name=ld gives a path.
10900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10901$as_echo_n "checking for ld used by $CC... " >&6; }
10902  case $host in
10903  *-*-mingw*)
10904    # gcc leaves a trailing carriage return which upsets mingw
10905    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10906  *)
10907    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10908  esac
10909  case $ac_prog in
10910    # Accept absolute paths.
10911    [\\/]* | ?:[\\/]*)
10912      re_direlt='/[^/][^/]*/\.\./'
10913      # Canonicalize the pathname of ld
10914      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10915      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10916	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10917      done
10918      test -z "$LD" && LD="$ac_prog"
10919      ;;
10920  "")
10921    # If it fails, then pretend we aren't using GCC.
10922    ac_prog=ld
10923    ;;
10924  *)
10925    # If it is relative, then search for the first ld in PATH.
10926    with_gnu_ld=unknown
10927    ;;
10928  esac
10929elif test "$with_gnu_ld" = yes; then
10930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10931$as_echo_n "checking for GNU ld... " >&6; }
10932else
10933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10934$as_echo_n "checking for non-GNU ld... " >&6; }
10935fi
10936if ${lt_cv_path_LD+:} false; then :
10937  $as_echo_n "(cached) " >&6
10938else
10939  if test -z "$LD"; then
10940  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10941  for ac_dir in $PATH; do
10942    IFS="$lt_save_ifs"
10943    test -z "$ac_dir" && ac_dir=.
10944    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10945      lt_cv_path_LD="$ac_dir/$ac_prog"
10946      # Check to see if the program is GNU ld.  I'd rather use --version,
10947      # but apparently some variants of GNU ld only accept -v.
10948      # Break only if it was the GNU/non-GNU ld that we prefer.
10949      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10950      *GNU* | *'with BFD'*)
10951	test "$with_gnu_ld" != no && break
10952	;;
10953      *)
10954	test "$with_gnu_ld" != yes && break
10955	;;
10956      esac
10957    fi
10958  done
10959  IFS="$lt_save_ifs"
10960else
10961  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10962fi
10963fi
10964
10965LD="$lt_cv_path_LD"
10966if test -n "$LD"; then
10967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10968$as_echo "$LD" >&6; }
10969else
10970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972fi
10973test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10975$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10976if ${lt_cv_prog_gnu_ld+:} false; then :
10977  $as_echo_n "(cached) " >&6
10978else
10979  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10980case `$LD -v 2>&1 </dev/null` in
10981*GNU* | *'with BFD'*)
10982  lt_cv_prog_gnu_ld=yes
10983  ;;
10984*)
10985  lt_cv_prog_gnu_ld=no
10986  ;;
10987esac
10988fi
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10990$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10991with_gnu_ld=$lt_cv_prog_gnu_ld
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11002$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11003if ${lt_cv_path_NM+:} false; then :
11004  $as_echo_n "(cached) " >&6
11005else
11006  if test -n "$NM"; then
11007  # Let the user override the test.
11008  lt_cv_path_NM="$NM"
11009else
11010  lt_nm_to_check="${ac_tool_prefix}nm"
11011  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11012    lt_nm_to_check="$lt_nm_to_check nm"
11013  fi
11014  for lt_tmp_nm in $lt_nm_to_check; do
11015    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11016    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11017      IFS="$lt_save_ifs"
11018      test -z "$ac_dir" && ac_dir=.
11019      tmp_nm="$ac_dir/$lt_tmp_nm"
11020      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11021	# Check to see if the nm accepts a BSD-compat flag.
11022	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11023	#   nm: unknown option "B" ignored
11024	# Tru64's nm complains that /dev/null is an invalid object file
11025	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11026	*/dev/null* | *'Invalid file or object type'*)
11027	  lt_cv_path_NM="$tmp_nm -B"
11028	  break
11029	  ;;
11030	*)
11031	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11032	  */dev/null*)
11033	    lt_cv_path_NM="$tmp_nm -p"
11034	    break
11035	    ;;
11036	  *)
11037	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11038	    continue # so that we can try to find one that supports BSD flags
11039	    ;;
11040	  esac
11041	  ;;
11042	esac
11043      fi
11044    done
11045    IFS="$lt_save_ifs"
11046  done
11047  : ${lt_cv_path_NM=no}
11048fi
11049fi
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11051$as_echo "$lt_cv_path_NM" >&6; }
11052if test "$lt_cv_path_NM" != "no"; then
11053  NM="$lt_cv_path_NM"
11054else
11055  # Didn't find any BSD compatible name lister, look for dumpbin.
11056  if test -n "$DUMPBIN"; then :
11057    # Let the user override the test.
11058  else
11059    if test -n "$ac_tool_prefix"; then
11060  for ac_prog in dumpbin "link -dump"
11061  do
11062    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065$as_echo_n "checking for $ac_word... " >&6; }
11066if ${ac_cv_prog_DUMPBIN+:} false; then :
11067  $as_echo_n "(cached) " >&6
11068else
11069  if test -n "$DUMPBIN"; then
11070  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11071else
11072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073for as_dir in $PATH
11074do
11075  IFS=$as_save_IFS
11076  test -z "$as_dir" && as_dir=.
11077    for ac_exec_ext in '' $ac_executable_extensions; do
11078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11079    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081    break 2
11082  fi
11083done
11084  done
11085IFS=$as_save_IFS
11086
11087fi
11088fi
11089DUMPBIN=$ac_cv_prog_DUMPBIN
11090if test -n "$DUMPBIN"; then
11091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11092$as_echo "$DUMPBIN" >&6; }
11093else
11094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095$as_echo "no" >&6; }
11096fi
11097
11098
11099    test -n "$DUMPBIN" && break
11100  done
11101fi
11102if test -z "$DUMPBIN"; then
11103  ac_ct_DUMPBIN=$DUMPBIN
11104  for ac_prog in dumpbin "link -dump"
11105do
11106  # Extract the first word of "$ac_prog", so it can be a program name with args.
11107set dummy $ac_prog; ac_word=$2
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109$as_echo_n "checking for $ac_word... " >&6; }
11110if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11111  $as_echo_n "(cached) " >&6
11112else
11113  if test -n "$ac_ct_DUMPBIN"; then
11114  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11115else
11116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119  IFS=$as_save_IFS
11120  test -z "$as_dir" && as_dir=.
11121    for ac_exec_ext in '' $ac_executable_extensions; do
11122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125    break 2
11126  fi
11127done
11128  done
11129IFS=$as_save_IFS
11130
11131fi
11132fi
11133ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11134if test -n "$ac_ct_DUMPBIN"; then
11135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11136$as_echo "$ac_ct_DUMPBIN" >&6; }
11137else
11138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
11140fi
11141
11142
11143  test -n "$ac_ct_DUMPBIN" && break
11144done
11145
11146  if test "x$ac_ct_DUMPBIN" = x; then
11147    DUMPBIN=":"
11148  else
11149    case $cross_compiling:$ac_tool_warned in
11150yes:)
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11153ac_tool_warned=yes ;;
11154esac
11155    DUMPBIN=$ac_ct_DUMPBIN
11156  fi
11157fi
11158
11159    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11160    *COFF*)
11161      DUMPBIN="$DUMPBIN -symbols"
11162      ;;
11163    *)
11164      DUMPBIN=:
11165      ;;
11166    esac
11167  fi
11168
11169  if test "$DUMPBIN" != ":"; then
11170    NM="$DUMPBIN"
11171  fi
11172fi
11173test -z "$NM" && NM=nm
11174
11175
11176
11177
11178
11179
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11181$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11182if ${lt_cv_nm_interface+:} false; then :
11183  $as_echo_n "(cached) " >&6
11184else
11185  lt_cv_nm_interface="BSD nm"
11186  echo "int some_variable = 0;" > conftest.$ac_ext
11187  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11188  (eval "$ac_compile" 2>conftest.err)
11189  cat conftest.err >&5
11190  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11191  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11192  cat conftest.err >&5
11193  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11194  cat conftest.out >&5
11195  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11196    lt_cv_nm_interface="MS dumpbin"
11197  fi
11198  rm -f conftest*
11199fi
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11201$as_echo "$lt_cv_nm_interface" >&6; }
11202
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11204$as_echo_n "checking whether ln -s works... " >&6; }
11205LN_S=$as_ln_s
11206if test "$LN_S" = "ln -s"; then
11207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11208$as_echo "yes" >&6; }
11209else
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11211$as_echo "no, using $LN_S" >&6; }
11212fi
11213
11214# find the maximum length of command line arguments
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11216$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11217if ${lt_cv_sys_max_cmd_len+:} false; then :
11218  $as_echo_n "(cached) " >&6
11219else
11220    i=0
11221  teststring="ABCD"
11222
11223  case $build_os in
11224  msdosdjgpp*)
11225    # On DJGPP, this test can blow up pretty badly due to problems in libc
11226    # (any single argument exceeding 2000 bytes causes a buffer overrun
11227    # during glob expansion).  Even if it were fixed, the result of this
11228    # check would be larger than it should be.
11229    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11230    ;;
11231
11232  gnu*)
11233    # Under GNU Hurd, this test is not required because there is
11234    # no limit to the length of command line arguments.
11235    # Libtool will interpret -1 as no limit whatsoever
11236    lt_cv_sys_max_cmd_len=-1;
11237    ;;
11238
11239  cygwin* | mingw* | cegcc*)
11240    # On Win9x/ME, this test blows up -- it succeeds, but takes
11241    # about 5 minutes as the teststring grows exponentially.
11242    # Worse, since 9x/ME are not pre-emptively multitasking,
11243    # you end up with a "frozen" computer, even though with patience
11244    # the test eventually succeeds (with a max line length of 256k).
11245    # Instead, let's just punt: use the minimum linelength reported by
11246    # all of the supported platforms: 8192 (on NT/2K/XP).
11247    lt_cv_sys_max_cmd_len=8192;
11248    ;;
11249
11250  mint*)
11251    # On MiNT this can take a long time and run out of memory.
11252    lt_cv_sys_max_cmd_len=8192;
11253    ;;
11254
11255  amigaos*)
11256    # On AmigaOS with pdksh, this test takes hours, literally.
11257    # So we just punt and use a minimum line length of 8192.
11258    lt_cv_sys_max_cmd_len=8192;
11259    ;;
11260
11261  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11262    # This has been around since 386BSD, at least.  Likely further.
11263    if test -x /sbin/sysctl; then
11264      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11265    elif test -x /usr/sbin/sysctl; then
11266      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11267    else
11268      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11269    fi
11270    # And add a safety zone
11271    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11272    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11273    ;;
11274
11275  interix*)
11276    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11277    lt_cv_sys_max_cmd_len=196608
11278    ;;
11279
11280  osf*)
11281    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11282    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11283    # nice to cause kernel panics so lets avoid the loop below.
11284    # First set a reasonable default.
11285    lt_cv_sys_max_cmd_len=16384
11286    #
11287    if test -x /sbin/sysconfig; then
11288      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11289        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11290      esac
11291    fi
11292    ;;
11293  sco3.2v5*)
11294    lt_cv_sys_max_cmd_len=102400
11295    ;;
11296  sysv5* | sco5v6* | sysv4.2uw2*)
11297    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11298    if test -n "$kargmax"; then
11299      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11300    else
11301      lt_cv_sys_max_cmd_len=32768
11302    fi
11303    ;;
11304  *)
11305    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11306    if test -n "$lt_cv_sys_max_cmd_len"; then
11307      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11308      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11309    else
11310      # Make teststring a little bigger before we do anything with it.
11311      # a 1K string should be a reasonable start.
11312      for i in 1 2 3 4 5 6 7 8 ; do
11313        teststring=$teststring$teststring
11314      done
11315      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11316      # If test is not a shell built-in, we'll probably end up computing a
11317      # maximum length that is only half of the actual maximum length, but
11318      # we can't tell.
11319      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11320	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11321	      test $i != 17 # 1/2 MB should be enough
11322      do
11323        i=`expr $i + 1`
11324        teststring=$teststring$teststring
11325      done
11326      # Only check the string length outside the loop.
11327      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11328      teststring=
11329      # Add a significant safety factor because C++ compilers can tack on
11330      # massive amounts of additional arguments before passing them to the
11331      # linker.  It appears as though 1/2 is a usable value.
11332      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11333    fi
11334    ;;
11335  esac
11336
11337fi
11338
11339if test -n $lt_cv_sys_max_cmd_len ; then
11340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11341$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11342else
11343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11344$as_echo "none" >&6; }
11345fi
11346max_cmd_len=$lt_cv_sys_max_cmd_len
11347
11348
11349
11350
11351
11352
11353: ${CP="cp -f"}
11354: ${MV="mv -f"}
11355: ${RM="rm -f"}
11356
11357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11358$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11359# Try some XSI features
11360xsi_shell=no
11361( _lt_dummy="a/b/c"
11362  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11363      = c,a/b,b/c, \
11364    && eval 'test $(( 1 + 1 )) -eq 2 \
11365    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11366  && xsi_shell=yes
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11368$as_echo "$xsi_shell" >&6; }
11369
11370
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11372$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11373lt_shell_append=no
11374( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11375    >/dev/null 2>&1 \
11376  && lt_shell_append=yes
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11378$as_echo "$lt_shell_append" >&6; }
11379
11380
11381if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11382  lt_unset=unset
11383else
11384  lt_unset=false
11385fi
11386
11387
11388
11389
11390
11391# test EBCDIC or ASCII
11392case `echo X|tr X '\101'` in
11393 A) # ASCII based system
11394    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11395  lt_SP2NL='tr \040 \012'
11396  lt_NL2SP='tr \015\012 \040\040'
11397  ;;
11398 *) # EBCDIC based system
11399  lt_SP2NL='tr \100 \n'
11400  lt_NL2SP='tr \r\n \100\100'
11401  ;;
11402esac
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11413$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11414if ${lt_cv_to_host_file_cmd+:} false; then :
11415  $as_echo_n "(cached) " >&6
11416else
11417  case $host in
11418  *-*-mingw* )
11419    case $build in
11420      *-*-mingw* ) # actually msys
11421        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11422        ;;
11423      *-*-cygwin* )
11424        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11425        ;;
11426      * ) # otherwise, assume *nix
11427        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11428        ;;
11429    esac
11430    ;;
11431  *-*-cygwin* )
11432    case $build in
11433      *-*-mingw* ) # actually msys
11434        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11435        ;;
11436      *-*-cygwin* )
11437        lt_cv_to_host_file_cmd=func_convert_file_noop
11438        ;;
11439      * ) # otherwise, assume *nix
11440        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11441        ;;
11442    esac
11443    ;;
11444  * ) # unhandled hosts (and "normal" native builds)
11445    lt_cv_to_host_file_cmd=func_convert_file_noop
11446    ;;
11447esac
11448
11449fi
11450
11451to_host_file_cmd=$lt_cv_to_host_file_cmd
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11453$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11454
11455
11456
11457
11458
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11460$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11461if ${lt_cv_to_tool_file_cmd+:} false; then :
11462  $as_echo_n "(cached) " >&6
11463else
11464  #assume ordinary cross tools, or native build.
11465lt_cv_to_tool_file_cmd=func_convert_file_noop
11466case $host in
11467  *-*-mingw* )
11468    case $build in
11469      *-*-mingw* ) # actually msys
11470        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11471        ;;
11472    esac
11473    ;;
11474esac
11475
11476fi
11477
11478to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11480$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11481
11482
11483
11484
11485
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11487$as_echo_n "checking for $LD option to reload object files... " >&6; }
11488if ${lt_cv_ld_reload_flag+:} false; then :
11489  $as_echo_n "(cached) " >&6
11490else
11491  lt_cv_ld_reload_flag='-r'
11492fi
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11494$as_echo "$lt_cv_ld_reload_flag" >&6; }
11495reload_flag=$lt_cv_ld_reload_flag
11496case $reload_flag in
11497"" | " "*) ;;
11498*) reload_flag=" $reload_flag" ;;
11499esac
11500reload_cmds='$LD$reload_flag -o $output$reload_objs'
11501case $host_os in
11502  cygwin* | mingw* | pw32* | cegcc*)
11503    if test "$GCC" != yes; then
11504      reload_cmds=false
11505    fi
11506    ;;
11507  darwin*)
11508    if test "$GCC" = yes; then
11509      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11510    else
11511      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11512    fi
11513    ;;
11514esac
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524if test -n "$ac_tool_prefix"; then
11525  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11526set dummy ${ac_tool_prefix}objdump; ac_word=$2
11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11528$as_echo_n "checking for $ac_word... " >&6; }
11529if ${ac_cv_prog_OBJDUMP+:} false; then :
11530  $as_echo_n "(cached) " >&6
11531else
11532  if test -n "$OBJDUMP"; then
11533  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11534else
11535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536for as_dir in $PATH
11537do
11538  IFS=$as_save_IFS
11539  test -z "$as_dir" && as_dir=.
11540    for ac_exec_ext in '' $ac_executable_extensions; do
11541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544    break 2
11545  fi
11546done
11547  done
11548IFS=$as_save_IFS
11549
11550fi
11551fi
11552OBJDUMP=$ac_cv_prog_OBJDUMP
11553if test -n "$OBJDUMP"; then
11554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11555$as_echo "$OBJDUMP" >&6; }
11556else
11557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558$as_echo "no" >&6; }
11559fi
11560
11561
11562fi
11563if test -z "$ac_cv_prog_OBJDUMP"; then
11564  ac_ct_OBJDUMP=$OBJDUMP
11565  # Extract the first word of "objdump", so it can be a program name with args.
11566set dummy objdump; ac_word=$2
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568$as_echo_n "checking for $ac_word... " >&6; }
11569if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11570  $as_echo_n "(cached) " >&6
11571else
11572  if test -n "$ac_ct_OBJDUMP"; then
11573  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11574else
11575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $PATH
11577do
11578  IFS=$as_save_IFS
11579  test -z "$as_dir" && as_dir=.
11580    for ac_exec_ext in '' $ac_executable_extensions; do
11581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11582    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11584    break 2
11585  fi
11586done
11587  done
11588IFS=$as_save_IFS
11589
11590fi
11591fi
11592ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11593if test -n "$ac_ct_OBJDUMP"; then
11594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11595$as_echo "$ac_ct_OBJDUMP" >&6; }
11596else
11597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598$as_echo "no" >&6; }
11599fi
11600
11601  if test "x$ac_ct_OBJDUMP" = x; then
11602    OBJDUMP="false"
11603  else
11604    case $cross_compiling:$ac_tool_warned in
11605yes:)
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11608ac_tool_warned=yes ;;
11609esac
11610    OBJDUMP=$ac_ct_OBJDUMP
11611  fi
11612else
11613  OBJDUMP="$ac_cv_prog_OBJDUMP"
11614fi
11615
11616test -z "$OBJDUMP" && OBJDUMP=objdump
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11627$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11628if ${lt_cv_deplibs_check_method+:} false; then :
11629  $as_echo_n "(cached) " >&6
11630else
11631  lt_cv_file_magic_cmd='$MAGIC_CMD'
11632lt_cv_file_magic_test_file=
11633lt_cv_deplibs_check_method='unknown'
11634# Need to set the preceding variable on all platforms that support
11635# interlibrary dependencies.
11636# 'none' -- dependencies not supported.
11637# `unknown' -- same as none, but documents that we really don't know.
11638# 'pass_all' -- all dependencies passed with no checks.
11639# 'test_compile' -- check by making test program.
11640# 'file_magic [[regex]]' -- check by looking for files in library path
11641# which responds to the $file_magic_cmd with a given extended regex.
11642# If you have `file' or equivalent on your system and you're not sure
11643# whether `pass_all' will *always* work, you probably want this one.
11644
11645case $host_os in
11646aix[4-9]*)
11647  lt_cv_deplibs_check_method=pass_all
11648  ;;
11649
11650beos*)
11651  lt_cv_deplibs_check_method=pass_all
11652  ;;
11653
11654bsdi[45]*)
11655  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11656  lt_cv_file_magic_cmd='/usr/bin/file -L'
11657  lt_cv_file_magic_test_file=/shlib/libc.so
11658  ;;
11659
11660cygwin*)
11661  # func_win32_libid is a shell function defined in ltmain.sh
11662  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11663  lt_cv_file_magic_cmd='func_win32_libid'
11664  ;;
11665
11666mingw* | pw32*)
11667  # Base MSYS/MinGW do not provide the 'file' command needed by
11668  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11669  # unless we find 'file', for example because we are cross-compiling.
11670  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11671  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11672    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11673    lt_cv_file_magic_cmd='func_win32_libid'
11674  else
11675    # Keep this pattern in sync with the one in func_win32_libid.
11676    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11677    lt_cv_file_magic_cmd='$OBJDUMP -f'
11678  fi
11679  ;;
11680
11681cegcc*)
11682  # use the weaker test based on 'objdump'. See mingw*.
11683  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11684  lt_cv_file_magic_cmd='$OBJDUMP -f'
11685  ;;
11686
11687darwin* | rhapsody*)
11688  lt_cv_deplibs_check_method=pass_all
11689  ;;
11690
11691freebsd* | dragonfly*)
11692  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11693    case $host_cpu in
11694    i*86 )
11695      # Not sure whether the presence of OpenBSD here was a mistake.
11696      # Let's accept both of them until this is cleared up.
11697      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11698      lt_cv_file_magic_cmd=/usr/bin/file
11699      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11700      ;;
11701    esac
11702  else
11703    lt_cv_deplibs_check_method=pass_all
11704  fi
11705  ;;
11706
11707gnu*)
11708  lt_cv_deplibs_check_method=pass_all
11709  ;;
11710
11711haiku*)
11712  lt_cv_deplibs_check_method=pass_all
11713  ;;
11714
11715hpux10.20* | hpux11*)
11716  lt_cv_file_magic_cmd=/usr/bin/file
11717  case $host_cpu in
11718  ia64*)
11719    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11720    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11721    ;;
11722  hppa*64*)
11723    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]'
11724    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11725    ;;
11726  *)
11727    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11728    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11729    ;;
11730  esac
11731  ;;
11732
11733interix[3-9]*)
11734  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11735  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11736  ;;
11737
11738irix5* | irix6* | nonstopux*)
11739  case $LD in
11740  *-32|*"-32 ") libmagic=32-bit;;
11741  *-n32|*"-n32 ") libmagic=N32;;
11742  *-64|*"-64 ") libmagic=64-bit;;
11743  *) libmagic=never-match;;
11744  esac
11745  lt_cv_deplibs_check_method=pass_all
11746  ;;
11747
11748# This must be Linux ELF.
11749linux* | k*bsd*-gnu | kopensolaris*-gnu)
11750  lt_cv_deplibs_check_method=pass_all
11751  ;;
11752
11753netbsd*)
11754  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11755    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11756  else
11757    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11758  fi
11759  ;;
11760
11761newos6*)
11762  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11763  lt_cv_file_magic_cmd=/usr/bin/file
11764  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11765  ;;
11766
11767*nto* | *qnx*)
11768  lt_cv_deplibs_check_method=pass_all
11769  ;;
11770
11771openbsd*)
11772  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11773    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11774  else
11775    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11776  fi
11777  ;;
11778
11779osf3* | osf4* | osf5*)
11780  lt_cv_deplibs_check_method=pass_all
11781  ;;
11782
11783rdos*)
11784  lt_cv_deplibs_check_method=pass_all
11785  ;;
11786
11787solaris*)
11788  lt_cv_deplibs_check_method=pass_all
11789  ;;
11790
11791sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11792  lt_cv_deplibs_check_method=pass_all
11793  ;;
11794
11795sysv4 | sysv4.3*)
11796  case $host_vendor in
11797  motorola)
11798    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]'
11799    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11800    ;;
11801  ncr)
11802    lt_cv_deplibs_check_method=pass_all
11803    ;;
11804  sequent)
11805    lt_cv_file_magic_cmd='/bin/file'
11806    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11807    ;;
11808  sni)
11809    lt_cv_file_magic_cmd='/bin/file'
11810    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11811    lt_cv_file_magic_test_file=/lib/libc.so
11812    ;;
11813  siemens)
11814    lt_cv_deplibs_check_method=pass_all
11815    ;;
11816  pc)
11817    lt_cv_deplibs_check_method=pass_all
11818    ;;
11819  esac
11820  ;;
11821
11822tpf*)
11823  lt_cv_deplibs_check_method=pass_all
11824  ;;
11825esac
11826
11827fi
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11829$as_echo "$lt_cv_deplibs_check_method" >&6; }
11830
11831file_magic_glob=
11832want_nocaseglob=no
11833if test "$build" = "$host"; then
11834  case $host_os in
11835  mingw* | pw32*)
11836    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11837      want_nocaseglob=yes
11838    else
11839      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11840    fi
11841    ;;
11842  esac
11843fi
11844
11845file_magic_cmd=$lt_cv_file_magic_cmd
11846deplibs_check_method=$lt_cv_deplibs_check_method
11847test -z "$deplibs_check_method" && deplibs_check_method=unknown
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870if test -n "$ac_tool_prefix"; then
11871  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11872set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11874$as_echo_n "checking for $ac_word... " >&6; }
11875if ${ac_cv_prog_DLLTOOL+:} false; then :
11876  $as_echo_n "(cached) " >&6
11877else
11878  if test -n "$DLLTOOL"; then
11879  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11880else
11881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882for as_dir in $PATH
11883do
11884  IFS=$as_save_IFS
11885  test -z "$as_dir" && as_dir=.
11886    for ac_exec_ext in '' $ac_executable_extensions; do
11887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11888    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11890    break 2
11891  fi
11892done
11893  done
11894IFS=$as_save_IFS
11895
11896fi
11897fi
11898DLLTOOL=$ac_cv_prog_DLLTOOL
11899if test -n "$DLLTOOL"; then
11900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11901$as_echo "$DLLTOOL" >&6; }
11902else
11903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904$as_echo "no" >&6; }
11905fi
11906
11907
11908fi
11909if test -z "$ac_cv_prog_DLLTOOL"; then
11910  ac_ct_DLLTOOL=$DLLTOOL
11911  # Extract the first word of "dlltool", so it can be a program name with args.
11912set dummy dlltool; ac_word=$2
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
11915if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11916  $as_echo_n "(cached) " >&6
11917else
11918  if test -n "$ac_ct_DLLTOOL"; then
11919  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11920else
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924  IFS=$as_save_IFS
11925  test -z "$as_dir" && as_dir=.
11926    for ac_exec_ext in '' $ac_executable_extensions; do
11927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930    break 2
11931  fi
11932done
11933  done
11934IFS=$as_save_IFS
11935
11936fi
11937fi
11938ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11939if test -n "$ac_ct_DLLTOOL"; then
11940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11941$as_echo "$ac_ct_DLLTOOL" >&6; }
11942else
11943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
11945fi
11946
11947  if test "x$ac_ct_DLLTOOL" = x; then
11948    DLLTOOL="false"
11949  else
11950    case $cross_compiling:$ac_tool_warned in
11951yes:)
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11954ac_tool_warned=yes ;;
11955esac
11956    DLLTOOL=$ac_ct_DLLTOOL
11957  fi
11958else
11959  DLLTOOL="$ac_cv_prog_DLLTOOL"
11960fi
11961
11962test -z "$DLLTOOL" && DLLTOOL=dlltool
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11974$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11975if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11976  $as_echo_n "(cached) " >&6
11977else
11978  lt_cv_sharedlib_from_linklib_cmd='unknown'
11979
11980case $host_os in
11981cygwin* | mingw* | pw32* | cegcc*)
11982  # two different shell functions defined in ltmain.sh
11983  # decide which to use based on capabilities of $DLLTOOL
11984  case `$DLLTOOL --help 2>&1` in
11985  *--identify-strict*)
11986    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11987    ;;
11988  *)
11989    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11990    ;;
11991  esac
11992  ;;
11993*)
11994  # fallback: assume linklib IS sharedlib
11995  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11996  ;;
11997esac
11998
11999fi
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12001$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12002sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12003test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12004
12005
12006
12007
12008
12009
12010
12011if test -n "$ac_tool_prefix"; then
12012  for ac_prog in ar
12013  do
12014    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017$as_echo_n "checking for $ac_word... " >&6; }
12018if ${ac_cv_prog_AR+:} false; then :
12019  $as_echo_n "(cached) " >&6
12020else
12021  if test -n "$AR"; then
12022  ac_cv_prog_AR="$AR" # Let the user override the test.
12023else
12024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025for as_dir in $PATH
12026do
12027  IFS=$as_save_IFS
12028  test -z "$as_dir" && as_dir=.
12029    for ac_exec_ext in '' $ac_executable_extensions; do
12030  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12031    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033    break 2
12034  fi
12035done
12036  done
12037IFS=$as_save_IFS
12038
12039fi
12040fi
12041AR=$ac_cv_prog_AR
12042if test -n "$AR"; then
12043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12044$as_echo "$AR" >&6; }
12045else
12046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047$as_echo "no" >&6; }
12048fi
12049
12050
12051    test -n "$AR" && break
12052  done
12053fi
12054if test -z "$AR"; then
12055  ac_ct_AR=$AR
12056  for ac_prog in ar
12057do
12058  # Extract the first word of "$ac_prog", so it can be a program name with args.
12059set dummy $ac_prog; ac_word=$2
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12061$as_echo_n "checking for $ac_word... " >&6; }
12062if ${ac_cv_prog_ac_ct_AR+:} false; then :
12063  $as_echo_n "(cached) " >&6
12064else
12065  if test -n "$ac_ct_AR"; then
12066  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12067else
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071  IFS=$as_save_IFS
12072  test -z "$as_dir" && as_dir=.
12073    for ac_exec_ext in '' $ac_executable_extensions; do
12074  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12075    ac_cv_prog_ac_ct_AR="$ac_prog"
12076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077    break 2
12078  fi
12079done
12080  done
12081IFS=$as_save_IFS
12082
12083fi
12084fi
12085ac_ct_AR=$ac_cv_prog_ac_ct_AR
12086if test -n "$ac_ct_AR"; then
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12088$as_echo "$ac_ct_AR" >&6; }
12089else
12090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
12092fi
12093
12094
12095  test -n "$ac_ct_AR" && break
12096done
12097
12098  if test "x$ac_ct_AR" = x; then
12099    AR="false"
12100  else
12101    case $cross_compiling:$ac_tool_warned in
12102yes:)
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12105ac_tool_warned=yes ;;
12106esac
12107    AR=$ac_ct_AR
12108  fi
12109fi
12110
12111: ${AR=ar}
12112: ${AR_FLAGS=cru}
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12125$as_echo_n "checking for archiver @FILE support... " >&6; }
12126if ${lt_cv_ar_at_file+:} false; then :
12127  $as_echo_n "(cached) " >&6
12128else
12129  lt_cv_ar_at_file=no
12130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131/* end confdefs.h.  */
12132
12133int
12134main ()
12135{
12136
12137  ;
12138  return 0;
12139}
12140_ACEOF
12141if ac_fn_c_try_compile "$LINENO"; then :
12142  echo conftest.$ac_objext > conftest.lst
12143      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12144      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12145  (eval $lt_ar_try) 2>&5
12146  ac_status=$?
12147  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12148  test $ac_status = 0; }
12149      if test "$ac_status" -eq 0; then
12150	# Ensure the archiver fails upon bogus file names.
12151	rm -f conftest.$ac_objext libconftest.a
12152	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12153  (eval $lt_ar_try) 2>&5
12154  ac_status=$?
12155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156  test $ac_status = 0; }
12157	if test "$ac_status" -ne 0; then
12158          lt_cv_ar_at_file=@
12159        fi
12160      fi
12161      rm -f conftest.* libconftest.a
12162
12163fi
12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165
12166fi
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12168$as_echo "$lt_cv_ar_at_file" >&6; }
12169
12170if test "x$lt_cv_ar_at_file" = xno; then
12171  archiver_list_spec=
12172else
12173  archiver_list_spec=$lt_cv_ar_at_file
12174fi
12175
12176
12177
12178
12179
12180
12181
12182if test -n "$ac_tool_prefix"; then
12183  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12184set dummy ${ac_tool_prefix}strip; ac_word=$2
12185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186$as_echo_n "checking for $ac_word... " >&6; }
12187if ${ac_cv_prog_STRIP+:} false; then :
12188  $as_echo_n "(cached) " >&6
12189else
12190  if test -n "$STRIP"; then
12191  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12192else
12193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194for as_dir in $PATH
12195do
12196  IFS=$as_save_IFS
12197  test -z "$as_dir" && as_dir=.
12198    for ac_exec_ext in '' $ac_executable_extensions; do
12199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12200    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12202    break 2
12203  fi
12204done
12205  done
12206IFS=$as_save_IFS
12207
12208fi
12209fi
12210STRIP=$ac_cv_prog_STRIP
12211if test -n "$STRIP"; then
12212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12213$as_echo "$STRIP" >&6; }
12214else
12215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216$as_echo "no" >&6; }
12217fi
12218
12219
12220fi
12221if test -z "$ac_cv_prog_STRIP"; then
12222  ac_ct_STRIP=$STRIP
12223  # Extract the first word of "strip", so it can be a program name with args.
12224set dummy strip; ac_word=$2
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226$as_echo_n "checking for $ac_word... " >&6; }
12227if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12228  $as_echo_n "(cached) " >&6
12229else
12230  if test -n "$ac_ct_STRIP"; then
12231  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12232else
12233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $PATH
12235do
12236  IFS=$as_save_IFS
12237  test -z "$as_dir" && as_dir=.
12238    for ac_exec_ext in '' $ac_executable_extensions; do
12239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240    ac_cv_prog_ac_ct_STRIP="strip"
12241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242    break 2
12243  fi
12244done
12245  done
12246IFS=$as_save_IFS
12247
12248fi
12249fi
12250ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12251if test -n "$ac_ct_STRIP"; then
12252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12253$as_echo "$ac_ct_STRIP" >&6; }
12254else
12255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
12257fi
12258
12259  if test "x$ac_ct_STRIP" = x; then
12260    STRIP=":"
12261  else
12262    case $cross_compiling:$ac_tool_warned in
12263yes:)
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12266ac_tool_warned=yes ;;
12267esac
12268    STRIP=$ac_ct_STRIP
12269  fi
12270else
12271  STRIP="$ac_cv_prog_STRIP"
12272fi
12273
12274test -z "$STRIP" && STRIP=:
12275
12276
12277
12278
12279
12280
12281if test -n "$ac_tool_prefix"; then
12282  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12283set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285$as_echo_n "checking for $ac_word... " >&6; }
12286if ${ac_cv_prog_RANLIB+:} false; then :
12287  $as_echo_n "(cached) " >&6
12288else
12289  if test -n "$RANLIB"; then
12290  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12291else
12292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293for as_dir in $PATH
12294do
12295  IFS=$as_save_IFS
12296  test -z "$as_dir" && as_dir=.
12297    for ac_exec_ext in '' $ac_executable_extensions; do
12298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301    break 2
12302  fi
12303done
12304  done
12305IFS=$as_save_IFS
12306
12307fi
12308fi
12309RANLIB=$ac_cv_prog_RANLIB
12310if test -n "$RANLIB"; then
12311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12312$as_echo "$RANLIB" >&6; }
12313else
12314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315$as_echo "no" >&6; }
12316fi
12317
12318
12319fi
12320if test -z "$ac_cv_prog_RANLIB"; then
12321  ac_ct_RANLIB=$RANLIB
12322  # Extract the first word of "ranlib", so it can be a program name with args.
12323set dummy ranlib; ac_word=$2
12324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12325$as_echo_n "checking for $ac_word... " >&6; }
12326if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12327  $as_echo_n "(cached) " >&6
12328else
12329  if test -n "$ac_ct_RANLIB"; then
12330  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12331else
12332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333for as_dir in $PATH
12334do
12335  IFS=$as_save_IFS
12336  test -z "$as_dir" && as_dir=.
12337    for ac_exec_ext in '' $ac_executable_extensions; do
12338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339    ac_cv_prog_ac_ct_RANLIB="ranlib"
12340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341    break 2
12342  fi
12343done
12344  done
12345IFS=$as_save_IFS
12346
12347fi
12348fi
12349ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12350if test -n "$ac_ct_RANLIB"; then
12351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12352$as_echo "$ac_ct_RANLIB" >&6; }
12353else
12354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355$as_echo "no" >&6; }
12356fi
12357
12358  if test "x$ac_ct_RANLIB" = x; then
12359    RANLIB=":"
12360  else
12361    case $cross_compiling:$ac_tool_warned in
12362yes:)
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12365ac_tool_warned=yes ;;
12366esac
12367    RANLIB=$ac_ct_RANLIB
12368  fi
12369else
12370  RANLIB="$ac_cv_prog_RANLIB"
12371fi
12372
12373test -z "$RANLIB" && RANLIB=:
12374
12375
12376
12377
12378
12379
12380# Determine commands to create old-style static archives.
12381old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12382old_postinstall_cmds='chmod 644 $oldlib'
12383old_postuninstall_cmds=
12384
12385if test -n "$RANLIB"; then
12386  case $host_os in
12387  openbsd*)
12388    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12389    ;;
12390  *)
12391    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12392    ;;
12393  esac
12394  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12395fi
12396
12397case $host_os in
12398  darwin*)
12399    lock_old_archive_extraction=yes ;;
12400  *)
12401    lock_old_archive_extraction=no ;;
12402esac
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442# If no C compiler was specified, use CC.
12443LTCC=${LTCC-"$CC"}
12444
12445# If no C compiler flags were specified, use CFLAGS.
12446LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12447
12448# Allow CC to be a program name with arguments.
12449compiler=$CC
12450
12451
12452# Check for command to grab the raw symbol name followed by C symbol from nm.
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12454$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12455if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12456  $as_echo_n "(cached) " >&6
12457else
12458
12459# These are sane defaults that work on at least a few old systems.
12460# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12461
12462# Character class describing NM global symbol codes.
12463symcode='[BCDEGRST]'
12464
12465# Regexp to match symbols that can be accessed directly from C.
12466sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12467
12468# Define system-specific variables.
12469case $host_os in
12470aix*)
12471  symcode='[BCDT]'
12472  ;;
12473cygwin* | mingw* | pw32* | cegcc*)
12474  symcode='[ABCDGISTW]'
12475  ;;
12476hpux*)
12477  if test "$host_cpu" = ia64; then
12478    symcode='[ABCDEGRST]'
12479  fi
12480  ;;
12481irix* | nonstopux*)
12482  symcode='[BCDEGRST]'
12483  ;;
12484osf*)
12485  symcode='[BCDEGQRST]'
12486  ;;
12487solaris*)
12488  symcode='[BDRT]'
12489  ;;
12490sco3.2v5*)
12491  symcode='[DT]'
12492  ;;
12493sysv4.2uw2*)
12494  symcode='[DT]'
12495  ;;
12496sysv5* | sco5v6* | unixware* | OpenUNIX*)
12497  symcode='[ABDT]'
12498  ;;
12499sysv4)
12500  symcode='[DFNSTU]'
12501  ;;
12502esac
12503
12504# If we're using GNU nm, then use its standard symbol codes.
12505case `$NM -V 2>&1` in
12506*GNU* | *'with BFD'*)
12507  symcode='[ABCDGIRSTW]' ;;
12508esac
12509
12510# Transform an extracted symbol line into a proper C declaration.
12511# Some systems (esp. on ia64) link data and code symbols differently,
12512# so use this general approach.
12513lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12514
12515# Transform an extracted symbol line into symbol name and symbol address
12516lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12517lt_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'"
12518
12519# Handle CRLF in mingw tool chain
12520opt_cr=
12521case $build_os in
12522mingw*)
12523  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12524  ;;
12525esac
12526
12527# Try without a prefix underscore, then with it.
12528for ac_symprfx in "" "_"; do
12529
12530  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12531  symxfrm="\\1 $ac_symprfx\\2 \\2"
12532
12533  # Write the raw and C identifiers.
12534  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12535    # Fake it for dumpbin and say T for any non-static function
12536    # and D for any global variable.
12537    # Also find C++ and __fastcall symbols from MSVC++,
12538    # which start with @ or ?.
12539    lt_cv_sys_global_symbol_pipe="$AWK '"\
12540"     {last_section=section; section=\$ 3};"\
12541"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12542"     \$ 0!~/External *\|/{next};"\
12543"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12544"     {if(hide[section]) next};"\
12545"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12546"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12547"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12548"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12549"     ' prfx=^$ac_symprfx"
12550  else
12551    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12552  fi
12553  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12554
12555  # Check to see that the pipe works correctly.
12556  pipe_works=no
12557
12558  rm -f conftest*
12559  cat > conftest.$ac_ext <<_LT_EOF
12560#ifdef __cplusplus
12561extern "C" {
12562#endif
12563char nm_test_var;
12564void nm_test_func(void);
12565void nm_test_func(void){}
12566#ifdef __cplusplus
12567}
12568#endif
12569int main(){nm_test_var='a';nm_test_func();return(0);}
12570_LT_EOF
12571
12572  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12573  (eval $ac_compile) 2>&5
12574  ac_status=$?
12575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576  test $ac_status = 0; }; then
12577    # Now try to grab the symbols.
12578    nlist=conftest.nm
12579    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12580  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12581  ac_status=$?
12582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12583  test $ac_status = 0; } && test -s "$nlist"; then
12584      # Try sorting and uniquifying the output.
12585      if sort "$nlist" | uniq > "$nlist"T; then
12586	mv -f "$nlist"T "$nlist"
12587      else
12588	rm -f "$nlist"T
12589      fi
12590
12591      # Make sure that we snagged all the symbols we need.
12592      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12593	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12594	  cat <<_LT_EOF > conftest.$ac_ext
12595/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12596#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12597/* DATA imports from DLLs on WIN32 con't be const, because runtime
12598   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12599# define LT_DLSYM_CONST
12600#elif defined(__osf__)
12601/* This system does not cope well with relocations in const data.  */
12602# define LT_DLSYM_CONST
12603#else
12604# define LT_DLSYM_CONST const
12605#endif
12606
12607#ifdef __cplusplus
12608extern "C" {
12609#endif
12610
12611_LT_EOF
12612	  # Now generate the symbol file.
12613	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12614
12615	  cat <<_LT_EOF >> conftest.$ac_ext
12616
12617/* The mapping between symbol names and symbols.  */
12618LT_DLSYM_CONST struct {
12619  const char *name;
12620  void       *address;
12621}
12622lt__PROGRAM__LTX_preloaded_symbols[] =
12623{
12624  { "@PROGRAM@", (void *) 0 },
12625_LT_EOF
12626	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12627	  cat <<\_LT_EOF >> conftest.$ac_ext
12628  {0, (void *) 0}
12629};
12630
12631/* This works around a problem in FreeBSD linker */
12632#ifdef FREEBSD_WORKAROUND
12633static const void *lt_preloaded_setup() {
12634  return lt__PROGRAM__LTX_preloaded_symbols;
12635}
12636#endif
12637
12638#ifdef __cplusplus
12639}
12640#endif
12641_LT_EOF
12642	  # Now try linking the two files.
12643	  mv conftest.$ac_objext conftstm.$ac_objext
12644	  lt_globsym_save_LIBS=$LIBS
12645	  lt_globsym_save_CFLAGS=$CFLAGS
12646	  LIBS="conftstm.$ac_objext"
12647	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12648	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12649  (eval $ac_link) 2>&5
12650  ac_status=$?
12651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12652  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12653	    pipe_works=yes
12654	  fi
12655	  LIBS=$lt_globsym_save_LIBS
12656	  CFLAGS=$lt_globsym_save_CFLAGS
12657	else
12658	  echo "cannot find nm_test_func in $nlist" >&5
12659	fi
12660      else
12661	echo "cannot find nm_test_var in $nlist" >&5
12662      fi
12663    else
12664      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12665    fi
12666  else
12667    echo "$progname: failed program was:" >&5
12668    cat conftest.$ac_ext >&5
12669  fi
12670  rm -rf conftest* conftst*
12671
12672  # Do not use the global_symbol_pipe unless it works.
12673  if test "$pipe_works" = yes; then
12674    break
12675  else
12676    lt_cv_sys_global_symbol_pipe=
12677  fi
12678done
12679
12680fi
12681
12682if test -z "$lt_cv_sys_global_symbol_pipe"; then
12683  lt_cv_sys_global_symbol_to_cdecl=
12684fi
12685if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12687$as_echo "failed" >&6; }
12688else
12689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12690$as_echo "ok" >&6; }
12691fi
12692
12693# Response file support.
12694if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12695  nm_file_list_spec='@'
12696elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12697  nm_file_list_spec='@'
12698fi
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12727$as_echo_n "checking for sysroot... " >&6; }
12728
12729# Check whether --with-sysroot was given.
12730if test "${with_sysroot+set}" = set; then :
12731  withval=$with_sysroot;
12732else
12733  with_sysroot=no
12734fi
12735
12736
12737lt_sysroot=
12738case ${with_sysroot} in #(
12739 yes)
12740   if test "$GCC" = yes; then
12741     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12742   fi
12743   ;; #(
12744 /*)
12745   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12746   ;; #(
12747 no|'')
12748   ;; #(
12749 *)
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12751$as_echo "${with_sysroot}" >&6; }
12752   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12753   ;;
12754esac
12755
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12757$as_echo "${lt_sysroot:-no}" >&6; }
12758
12759
12760
12761
12762
12763# Check whether --enable-libtool-lock was given.
12764if test "${enable_libtool_lock+set}" = set; then :
12765  enableval=$enable_libtool_lock;
12766fi
12767
12768test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12769
12770# Some flags need to be propagated to the compiler or linker for good
12771# libtool support.
12772case $host in
12773ia64-*-hpux*)
12774  # Find out which ABI we are using.
12775  echo 'int i;' > conftest.$ac_ext
12776  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12777  (eval $ac_compile) 2>&5
12778  ac_status=$?
12779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780  test $ac_status = 0; }; then
12781    case `/usr/bin/file conftest.$ac_objext` in
12782      *ELF-32*)
12783	HPUX_IA64_MODE="32"
12784	;;
12785      *ELF-64*)
12786	HPUX_IA64_MODE="64"
12787	;;
12788    esac
12789  fi
12790  rm -rf conftest*
12791  ;;
12792*-*-irix6*)
12793  # Find out which ABI we are using.
12794  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12795  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12796  (eval $ac_compile) 2>&5
12797  ac_status=$?
12798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12799  test $ac_status = 0; }; then
12800    if test "$lt_cv_prog_gnu_ld" = yes; then
12801      case `/usr/bin/file conftest.$ac_objext` in
12802	*32-bit*)
12803	  LD="${LD-ld} -melf32bsmip"
12804	  ;;
12805	*N32*)
12806	  LD="${LD-ld} -melf32bmipn32"
12807	  ;;
12808	*64-bit*)
12809	  LD="${LD-ld} -melf64bmip"
12810	;;
12811      esac
12812    else
12813      case `/usr/bin/file conftest.$ac_objext` in
12814	*32-bit*)
12815	  LD="${LD-ld} -32"
12816	  ;;
12817	*N32*)
12818	  LD="${LD-ld} -n32"
12819	  ;;
12820	*64-bit*)
12821	  LD="${LD-ld} -64"
12822	  ;;
12823      esac
12824    fi
12825  fi
12826  rm -rf conftest*
12827  ;;
12828
12829x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12830s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
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.o` in
12839      *32-bit*)
12840	case $host in
12841	  x86_64-*kfreebsd*-gnu)
12842	    LD="${LD-ld} -m elf_i386_fbsd"
12843	    ;;
12844	  x86_64-*linux*)
12845	    LD="${LD-ld} -m elf_i386"
12846	    ;;
12847	  ppc64-*linux*|powerpc64-*linux*)
12848	    LD="${LD-ld} -m elf32ppclinux"
12849	    ;;
12850	  s390x-*linux*)
12851	    LD="${LD-ld} -m elf_s390"
12852	    ;;
12853	  sparc64-*linux*)
12854	    LD="${LD-ld} -m elf32_sparc"
12855	    ;;
12856	esac
12857	;;
12858      *64-bit*)
12859	case $host in
12860	  x86_64-*kfreebsd*-gnu)
12861	    LD="${LD-ld} -m elf_x86_64_fbsd"
12862	    ;;
12863	  x86_64-*linux*)
12864	    LD="${LD-ld} -m elf_x86_64"
12865	    ;;
12866	  ppc*-*linux*|powerpc*-*linux*)
12867	    LD="${LD-ld} -m elf64ppc"
12868	    ;;
12869	  s390*-*linux*|s390*-*tpf*)
12870	    LD="${LD-ld} -m elf64_s390"
12871	    ;;
12872	  sparc*-*linux*)
12873	    LD="${LD-ld} -m elf64_sparc"
12874	    ;;
12875	esac
12876	;;
12877    esac
12878  fi
12879  rm -rf conftest*
12880  ;;
12881
12882*-*-sco3.2v5*)
12883  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12884  SAVE_CFLAGS="$CFLAGS"
12885  CFLAGS="$CFLAGS -belf"
12886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12887$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12888if ${lt_cv_cc_needs_belf+:} false; then :
12889  $as_echo_n "(cached) " >&6
12890else
12891  ac_ext=c
12892ac_cpp='$CPP $CPPFLAGS'
12893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896
12897     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898/* end confdefs.h.  */
12899
12900int
12901main ()
12902{
12903
12904  ;
12905  return 0;
12906}
12907_ACEOF
12908if ac_fn_c_try_link "$LINENO"; then :
12909  lt_cv_cc_needs_belf=yes
12910else
12911  lt_cv_cc_needs_belf=no
12912fi
12913rm -f core conftest.err conftest.$ac_objext \
12914    conftest$ac_exeext conftest.$ac_ext
12915     ac_ext=c
12916ac_cpp='$CPP $CPPFLAGS'
12917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921fi
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12923$as_echo "$lt_cv_cc_needs_belf" >&6; }
12924  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12925    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12926    CFLAGS="$SAVE_CFLAGS"
12927  fi
12928  ;;
12929sparc*-*solaris*)
12930  # Find out which ABI we are using.
12931  echo 'int i;' > conftest.$ac_ext
12932  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12933  (eval $ac_compile) 2>&5
12934  ac_status=$?
12935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936  test $ac_status = 0; }; then
12937    case `/usr/bin/file conftest.o` in
12938    *64-bit*)
12939      case $lt_cv_prog_gnu_ld in
12940      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12941      *)
12942	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12943	  LD="${LD-ld} -64"
12944	fi
12945	;;
12946      esac
12947      ;;
12948    esac
12949  fi
12950  rm -rf conftest*
12951  ;;
12952esac
12953
12954need_locks="$enable_libtool_lock"
12955
12956if test -n "$ac_tool_prefix"; then
12957  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12958set dummy ${ac_tool_prefix}mt; ac_word=$2
12959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960$as_echo_n "checking for $ac_word... " >&6; }
12961if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12962  $as_echo_n "(cached) " >&6
12963else
12964  if test -n "$MANIFEST_TOOL"; then
12965  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12966else
12967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968for as_dir in $PATH
12969do
12970  IFS=$as_save_IFS
12971  test -z "$as_dir" && as_dir=.
12972    for ac_exec_ext in '' $ac_executable_extensions; do
12973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12976    break 2
12977  fi
12978done
12979  done
12980IFS=$as_save_IFS
12981
12982fi
12983fi
12984MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12985if test -n "$MANIFEST_TOOL"; then
12986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12987$as_echo "$MANIFEST_TOOL" >&6; }
12988else
12989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990$as_echo "no" >&6; }
12991fi
12992
12993
12994fi
12995if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12996  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12997  # Extract the first word of "mt", so it can be a program name with args.
12998set dummy mt; ac_word=$2
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000$as_echo_n "checking for $ac_word... " >&6; }
13001if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13002  $as_echo_n "(cached) " >&6
13003else
13004  if test -n "$ac_ct_MANIFEST_TOOL"; then
13005  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13006else
13007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $PATH
13009do
13010  IFS=$as_save_IFS
13011  test -z "$as_dir" && as_dir=.
13012    for ac_exec_ext in '' $ac_executable_extensions; do
13013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016    break 2
13017  fi
13018done
13019  done
13020IFS=$as_save_IFS
13021
13022fi
13023fi
13024ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13025if test -n "$ac_ct_MANIFEST_TOOL"; then
13026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13027$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13028else
13029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030$as_echo "no" >&6; }
13031fi
13032
13033  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13034    MANIFEST_TOOL=":"
13035  else
13036    case $cross_compiling:$ac_tool_warned in
13037yes:)
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13040ac_tool_warned=yes ;;
13041esac
13042    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13043  fi
13044else
13045  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13046fi
13047
13048test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13050$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13051if ${lt_cv_path_mainfest_tool+:} false; then :
13052  $as_echo_n "(cached) " >&6
13053else
13054  lt_cv_path_mainfest_tool=no
13055  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13056  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13057  cat conftest.err >&5
13058  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13059    lt_cv_path_mainfest_tool=yes
13060  fi
13061  rm -f conftest*
13062fi
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13064$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13065if test "x$lt_cv_path_mainfest_tool" != xyes; then
13066  MANIFEST_TOOL=:
13067fi
13068
13069
13070
13071
13072
13073
13074  case $host_os in
13075    rhapsody* | darwin*)
13076    if test -n "$ac_tool_prefix"; then
13077  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13078set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080$as_echo_n "checking for $ac_word... " >&6; }
13081if ${ac_cv_prog_DSYMUTIL+:} false; then :
13082  $as_echo_n "(cached) " >&6
13083else
13084  if test -n "$DSYMUTIL"; then
13085  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13086else
13087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088for as_dir in $PATH
13089do
13090  IFS=$as_save_IFS
13091  test -z "$as_dir" && as_dir=.
13092    for ac_exec_ext in '' $ac_executable_extensions; do
13093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096    break 2
13097  fi
13098done
13099  done
13100IFS=$as_save_IFS
13101
13102fi
13103fi
13104DSYMUTIL=$ac_cv_prog_DSYMUTIL
13105if test -n "$DSYMUTIL"; then
13106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13107$as_echo "$DSYMUTIL" >&6; }
13108else
13109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110$as_echo "no" >&6; }
13111fi
13112
13113
13114fi
13115if test -z "$ac_cv_prog_DSYMUTIL"; then
13116  ac_ct_DSYMUTIL=$DSYMUTIL
13117  # Extract the first word of "dsymutil", so it can be a program name with args.
13118set dummy dsymutil; ac_word=$2
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120$as_echo_n "checking for $ac_word... " >&6; }
13121if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13122  $as_echo_n "(cached) " >&6
13123else
13124  if test -n "$ac_ct_DSYMUTIL"; then
13125  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13126else
13127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128for as_dir in $PATH
13129do
13130  IFS=$as_save_IFS
13131  test -z "$as_dir" && as_dir=.
13132    for ac_exec_ext in '' $ac_executable_extensions; do
13133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136    break 2
13137  fi
13138done
13139  done
13140IFS=$as_save_IFS
13141
13142fi
13143fi
13144ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13145if test -n "$ac_ct_DSYMUTIL"; then
13146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13147$as_echo "$ac_ct_DSYMUTIL" >&6; }
13148else
13149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150$as_echo "no" >&6; }
13151fi
13152
13153  if test "x$ac_ct_DSYMUTIL" = x; then
13154    DSYMUTIL=":"
13155  else
13156    case $cross_compiling:$ac_tool_warned in
13157yes:)
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13160ac_tool_warned=yes ;;
13161esac
13162    DSYMUTIL=$ac_ct_DSYMUTIL
13163  fi
13164else
13165  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13166fi
13167
13168    if test -n "$ac_tool_prefix"; then
13169  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13170set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172$as_echo_n "checking for $ac_word... " >&6; }
13173if ${ac_cv_prog_NMEDIT+:} false; then :
13174  $as_echo_n "(cached) " >&6
13175else
13176  if test -n "$NMEDIT"; then
13177  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13178else
13179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180for as_dir in $PATH
13181do
13182  IFS=$as_save_IFS
13183  test -z "$as_dir" && as_dir=.
13184    for ac_exec_ext in '' $ac_executable_extensions; do
13185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188    break 2
13189  fi
13190done
13191  done
13192IFS=$as_save_IFS
13193
13194fi
13195fi
13196NMEDIT=$ac_cv_prog_NMEDIT
13197if test -n "$NMEDIT"; then
13198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13199$as_echo "$NMEDIT" >&6; }
13200else
13201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202$as_echo "no" >&6; }
13203fi
13204
13205
13206fi
13207if test -z "$ac_cv_prog_NMEDIT"; then
13208  ac_ct_NMEDIT=$NMEDIT
13209  # Extract the first word of "nmedit", so it can be a program name with args.
13210set dummy nmedit; ac_word=$2
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212$as_echo_n "checking for $ac_word... " >&6; }
13213if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13214  $as_echo_n "(cached) " >&6
13215else
13216  if test -n "$ac_ct_NMEDIT"; then
13217  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13218else
13219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220for as_dir in $PATH
13221do
13222  IFS=$as_save_IFS
13223  test -z "$as_dir" && as_dir=.
13224    for ac_exec_ext in '' $ac_executable_extensions; do
13225  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13228    break 2
13229  fi
13230done
13231  done
13232IFS=$as_save_IFS
13233
13234fi
13235fi
13236ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13237if test -n "$ac_ct_NMEDIT"; then
13238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13239$as_echo "$ac_ct_NMEDIT" >&6; }
13240else
13241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242$as_echo "no" >&6; }
13243fi
13244
13245  if test "x$ac_ct_NMEDIT" = x; then
13246    NMEDIT=":"
13247  else
13248    case $cross_compiling:$ac_tool_warned in
13249yes:)
13250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13252ac_tool_warned=yes ;;
13253esac
13254    NMEDIT=$ac_ct_NMEDIT
13255  fi
13256else
13257  NMEDIT="$ac_cv_prog_NMEDIT"
13258fi
13259
13260    if test -n "$ac_tool_prefix"; then
13261  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13262set dummy ${ac_tool_prefix}lipo; ac_word=$2
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264$as_echo_n "checking for $ac_word... " >&6; }
13265if ${ac_cv_prog_LIPO+:} false; then :
13266  $as_echo_n "(cached) " >&6
13267else
13268  if test -n "$LIPO"; then
13269  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13270else
13271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272for as_dir in $PATH
13273do
13274  IFS=$as_save_IFS
13275  test -z "$as_dir" && as_dir=.
13276    for ac_exec_ext in '' $ac_executable_extensions; do
13277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280    break 2
13281  fi
13282done
13283  done
13284IFS=$as_save_IFS
13285
13286fi
13287fi
13288LIPO=$ac_cv_prog_LIPO
13289if test -n "$LIPO"; then
13290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13291$as_echo "$LIPO" >&6; }
13292else
13293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294$as_echo "no" >&6; }
13295fi
13296
13297
13298fi
13299if test -z "$ac_cv_prog_LIPO"; then
13300  ac_ct_LIPO=$LIPO
13301  # Extract the first word of "lipo", so it can be a program name with args.
13302set dummy lipo; ac_word=$2
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304$as_echo_n "checking for $ac_word... " >&6; }
13305if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13306  $as_echo_n "(cached) " >&6
13307else
13308  if test -n "$ac_ct_LIPO"; then
13309  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13310else
13311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312for as_dir in $PATH
13313do
13314  IFS=$as_save_IFS
13315  test -z "$as_dir" && as_dir=.
13316    for ac_exec_ext in '' $ac_executable_extensions; do
13317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318    ac_cv_prog_ac_ct_LIPO="lipo"
13319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320    break 2
13321  fi
13322done
13323  done
13324IFS=$as_save_IFS
13325
13326fi
13327fi
13328ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13329if test -n "$ac_ct_LIPO"; then
13330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13331$as_echo "$ac_ct_LIPO" >&6; }
13332else
13333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
13335fi
13336
13337  if test "x$ac_ct_LIPO" = x; then
13338    LIPO=":"
13339  else
13340    case $cross_compiling:$ac_tool_warned in
13341yes:)
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13344ac_tool_warned=yes ;;
13345esac
13346    LIPO=$ac_ct_LIPO
13347  fi
13348else
13349  LIPO="$ac_cv_prog_LIPO"
13350fi
13351
13352    if test -n "$ac_tool_prefix"; then
13353  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13354set dummy ${ac_tool_prefix}otool; ac_word=$2
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356$as_echo_n "checking for $ac_word... " >&6; }
13357if ${ac_cv_prog_OTOOL+:} false; then :
13358  $as_echo_n "(cached) " >&6
13359else
13360  if test -n "$OTOOL"; then
13361  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13362else
13363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364for as_dir in $PATH
13365do
13366  IFS=$as_save_IFS
13367  test -z "$as_dir" && as_dir=.
13368    for ac_exec_ext in '' $ac_executable_extensions; do
13369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372    break 2
13373  fi
13374done
13375  done
13376IFS=$as_save_IFS
13377
13378fi
13379fi
13380OTOOL=$ac_cv_prog_OTOOL
13381if test -n "$OTOOL"; then
13382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13383$as_echo "$OTOOL" >&6; }
13384else
13385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386$as_echo "no" >&6; }
13387fi
13388
13389
13390fi
13391if test -z "$ac_cv_prog_OTOOL"; then
13392  ac_ct_OTOOL=$OTOOL
13393  # Extract the first word of "otool", so it can be a program name with args.
13394set dummy otool; ac_word=$2
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13396$as_echo_n "checking for $ac_word... " >&6; }
13397if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13398  $as_echo_n "(cached) " >&6
13399else
13400  if test -n "$ac_ct_OTOOL"; then
13401  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13402else
13403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404for as_dir in $PATH
13405do
13406  IFS=$as_save_IFS
13407  test -z "$as_dir" && as_dir=.
13408    for ac_exec_ext in '' $ac_executable_extensions; do
13409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13410    ac_cv_prog_ac_ct_OTOOL="otool"
13411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13412    break 2
13413  fi
13414done
13415  done
13416IFS=$as_save_IFS
13417
13418fi
13419fi
13420ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13421if test -n "$ac_ct_OTOOL"; then
13422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13423$as_echo "$ac_ct_OTOOL" >&6; }
13424else
13425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426$as_echo "no" >&6; }
13427fi
13428
13429  if test "x$ac_ct_OTOOL" = x; then
13430    OTOOL=":"
13431  else
13432    case $cross_compiling:$ac_tool_warned in
13433yes:)
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13436ac_tool_warned=yes ;;
13437esac
13438    OTOOL=$ac_ct_OTOOL
13439  fi
13440else
13441  OTOOL="$ac_cv_prog_OTOOL"
13442fi
13443
13444    if test -n "$ac_tool_prefix"; then
13445  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13446set dummy ${ac_tool_prefix}otool64; ac_word=$2
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448$as_echo_n "checking for $ac_word... " >&6; }
13449if ${ac_cv_prog_OTOOL64+:} false; then :
13450  $as_echo_n "(cached) " >&6
13451else
13452  if test -n "$OTOOL64"; then
13453  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13454else
13455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456for as_dir in $PATH
13457do
13458  IFS=$as_save_IFS
13459  test -z "$as_dir" && as_dir=.
13460    for ac_exec_ext in '' $ac_executable_extensions; do
13461  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13462    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13464    break 2
13465  fi
13466done
13467  done
13468IFS=$as_save_IFS
13469
13470fi
13471fi
13472OTOOL64=$ac_cv_prog_OTOOL64
13473if test -n "$OTOOL64"; then
13474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13475$as_echo "$OTOOL64" >&6; }
13476else
13477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478$as_echo "no" >&6; }
13479fi
13480
13481
13482fi
13483if test -z "$ac_cv_prog_OTOOL64"; then
13484  ac_ct_OTOOL64=$OTOOL64
13485  # Extract the first word of "otool64", so it can be a program name with args.
13486set dummy otool64; ac_word=$2
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488$as_echo_n "checking for $ac_word... " >&6; }
13489if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13490  $as_echo_n "(cached) " >&6
13491else
13492  if test -n "$ac_ct_OTOOL64"; then
13493  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13494else
13495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496for as_dir in $PATH
13497do
13498  IFS=$as_save_IFS
13499  test -z "$as_dir" && as_dir=.
13500    for ac_exec_ext in '' $ac_executable_extensions; do
13501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13502    ac_cv_prog_ac_ct_OTOOL64="otool64"
13503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504    break 2
13505  fi
13506done
13507  done
13508IFS=$as_save_IFS
13509
13510fi
13511fi
13512ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13513if test -n "$ac_ct_OTOOL64"; then
13514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13515$as_echo "$ac_ct_OTOOL64" >&6; }
13516else
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518$as_echo "no" >&6; }
13519fi
13520
13521  if test "x$ac_ct_OTOOL64" = x; then
13522    OTOOL64=":"
13523  else
13524    case $cross_compiling:$ac_tool_warned in
13525yes:)
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13528ac_tool_warned=yes ;;
13529esac
13530    OTOOL64=$ac_ct_OTOOL64
13531  fi
13532else
13533  OTOOL64="$ac_cv_prog_OTOOL64"
13534fi
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13563$as_echo_n "checking for -single_module linker flag... " >&6; }
13564if ${lt_cv_apple_cc_single_mod+:} false; then :
13565  $as_echo_n "(cached) " >&6
13566else
13567  lt_cv_apple_cc_single_mod=no
13568      if test -z "${LT_MULTI_MODULE}"; then
13569	# By default we will add the -single_module flag. You can override
13570	# by either setting the environment variable LT_MULTI_MODULE
13571	# non-empty at configure time, or by adding -multi_module to the
13572	# link flags.
13573	rm -rf libconftest.dylib*
13574	echo "int foo(void){return 1;}" > conftest.c
13575	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13576-dynamiclib -Wl,-single_module conftest.c" >&5
13577	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13578	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13579        _lt_result=$?
13580	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13581	  lt_cv_apple_cc_single_mod=yes
13582	else
13583	  cat conftest.err >&5
13584	fi
13585	rm -rf libconftest.dylib*
13586	rm -f conftest.*
13587      fi
13588fi
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13590$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13591    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13592$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13593if ${lt_cv_ld_exported_symbols_list+:} false; then :
13594  $as_echo_n "(cached) " >&6
13595else
13596  lt_cv_ld_exported_symbols_list=no
13597      save_LDFLAGS=$LDFLAGS
13598      echo "_main" > conftest.sym
13599      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13600      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601/* end confdefs.h.  */
13602
13603int
13604main ()
13605{
13606
13607  ;
13608  return 0;
13609}
13610_ACEOF
13611if ac_fn_c_try_link "$LINENO"; then :
13612  lt_cv_ld_exported_symbols_list=yes
13613else
13614  lt_cv_ld_exported_symbols_list=no
13615fi
13616rm -f core conftest.err conftest.$ac_objext \
13617    conftest$ac_exeext conftest.$ac_ext
13618	LDFLAGS="$save_LDFLAGS"
13619
13620fi
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13622$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13624$as_echo_n "checking for -force_load linker flag... " >&6; }
13625if ${lt_cv_ld_force_load+:} false; then :
13626  $as_echo_n "(cached) " >&6
13627else
13628  lt_cv_ld_force_load=no
13629      cat > conftest.c << _LT_EOF
13630int forced_loaded() { return 2;}
13631_LT_EOF
13632      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13633      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13634      echo "$AR cru libconftest.a conftest.o" >&5
13635      $AR cru libconftest.a conftest.o 2>&5
13636      echo "$RANLIB libconftest.a" >&5
13637      $RANLIB libconftest.a 2>&5
13638      cat > conftest.c << _LT_EOF
13639int main() { return 0;}
13640_LT_EOF
13641      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13642      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13643      _lt_result=$?
13644      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13645	lt_cv_ld_force_load=yes
13646      else
13647	cat conftest.err >&5
13648      fi
13649        rm -f conftest.err libconftest.a conftest conftest.c
13650        rm -rf conftest.dSYM
13651
13652fi
13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13654$as_echo "$lt_cv_ld_force_load" >&6; }
13655    case $host_os in
13656    rhapsody* | darwin1.[012])
13657      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13658    darwin1.*)
13659      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13660    darwin*) # darwin 5.x on
13661      # if running on 10.5 or later, the deployment target defaults
13662      # to the OS version, if on x86, and 10.4, the deployment
13663      # target defaults to 10.4. Don't you love it?
13664      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13665	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13666	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13667	10.[012]*)
13668	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13669	10.*)
13670	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13671      esac
13672    ;;
13673  esac
13674    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13675      _lt_dar_single_mod='$single_module'
13676    fi
13677    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13678      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13679    else
13680      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13681    fi
13682    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13683      _lt_dsymutil='~$DSYMUTIL $lib || :'
13684    else
13685      _lt_dsymutil=
13686    fi
13687    ;;
13688  esac
13689
13690for ac_header in dlfcn.h
13691do :
13692  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13693"
13694if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13695  cat >>confdefs.h <<_ACEOF
13696#define HAVE_DLFCN_H 1
13697_ACEOF
13698
13699fi
13700
13701done
13702
13703
13704
13705
13706
13707# Set options
13708
13709
13710
13711        enable_dlopen=no
13712
13713
13714  enable_win32_dll=no
13715
13716
13717            # Check whether --enable-shared was given.
13718if test "${enable_shared+set}" = set; then :
13719  enableval=$enable_shared; p=${PACKAGE-default}
13720    case $enableval in
13721    yes) enable_shared=yes ;;
13722    no) enable_shared=no ;;
13723    *)
13724      enable_shared=no
13725      # Look at the argument we got.  We use all the common list separators.
13726      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13727      for pkg in $enableval; do
13728	IFS="$lt_save_ifs"
13729	if test "X$pkg" = "X$p"; then
13730	  enable_shared=yes
13731	fi
13732      done
13733      IFS="$lt_save_ifs"
13734      ;;
13735    esac
13736else
13737  enable_shared=yes
13738fi
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750# Check whether --with-pic was given.
13751if test "${with_pic+set}" = set; then :
13752  withval=$with_pic; pic_mode="$withval"
13753else
13754  pic_mode=default
13755fi
13756
13757
13758test -z "$pic_mode" && pic_mode=default
13759
13760
13761
13762
13763
13764
13765
13766  # Check whether --enable-fast-install was given.
13767if test "${enable_fast_install+set}" = set; then :
13768  enableval=$enable_fast_install; p=${PACKAGE-default}
13769    case $enableval in
13770    yes) enable_fast_install=yes ;;
13771    no) enable_fast_install=no ;;
13772    *)
13773      enable_fast_install=no
13774      # Look at the argument we got.  We use all the common list separators.
13775      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13776      for pkg in $enableval; do
13777	IFS="$lt_save_ifs"
13778	if test "X$pkg" = "X$p"; then
13779	  enable_fast_install=yes
13780	fi
13781      done
13782      IFS="$lt_save_ifs"
13783      ;;
13784    esac
13785else
13786  enable_fast_install=yes
13787fi
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799# This can be used to rebuild libtool when needed
13800LIBTOOL_DEPS="$ltmain"
13801
13802# Always use our own libtool.
13803LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830test -z "$LN_S" && LN_S="ln -s"
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845if test -n "${ZSH_VERSION+set}" ; then
13846   setopt NO_GLOB_SUBST
13847fi
13848
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13850$as_echo_n "checking for objdir... " >&6; }
13851if ${lt_cv_objdir+:} false; then :
13852  $as_echo_n "(cached) " >&6
13853else
13854  rm -f .libs 2>/dev/null
13855mkdir .libs 2>/dev/null
13856if test -d .libs; then
13857  lt_cv_objdir=.libs
13858else
13859  # MS-DOS does not allow filenames that begin with a dot.
13860  lt_cv_objdir=_libs
13861fi
13862rmdir .libs 2>/dev/null
13863fi
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13865$as_echo "$lt_cv_objdir" >&6; }
13866objdir=$lt_cv_objdir
13867
13868
13869
13870
13871
13872cat >>confdefs.h <<_ACEOF
13873#define LT_OBJDIR "$lt_cv_objdir/"
13874_ACEOF
13875
13876
13877
13878
13879case $host_os in
13880aix3*)
13881  # AIX sometimes has problems with the GCC collect2 program.  For some
13882  # reason, if we set the COLLECT_NAMES environment variable, the problems
13883  # vanish in a puff of smoke.
13884  if test "X${COLLECT_NAMES+set}" != Xset; then
13885    COLLECT_NAMES=
13886    export COLLECT_NAMES
13887  fi
13888  ;;
13889esac
13890
13891# Global variables:
13892ofile=libtool
13893can_build_shared=yes
13894
13895# All known linkers require a `.a' archive for static linking (except MSVC,
13896# which needs '.lib').
13897libext=a
13898
13899with_gnu_ld="$lt_cv_prog_gnu_ld"
13900
13901old_CC="$CC"
13902old_CFLAGS="$CFLAGS"
13903
13904# Set sane defaults for various variables
13905test -z "$CC" && CC=cc
13906test -z "$LTCC" && LTCC=$CC
13907test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13908test -z "$LD" && LD=ld
13909test -z "$ac_objext" && ac_objext=o
13910
13911for cc_temp in $compiler""; do
13912  case $cc_temp in
13913    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13914    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13915    \-*) ;;
13916    *) break;;
13917  esac
13918done
13919cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13920
13921
13922# Only perform the check for file, if the check method requires it
13923test -z "$MAGIC_CMD" && MAGIC_CMD=file
13924case $deplibs_check_method in
13925file_magic*)
13926  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13927    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13928$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13929if ${lt_cv_path_MAGIC_CMD+:} false; then :
13930  $as_echo_n "(cached) " >&6
13931else
13932  case $MAGIC_CMD in
13933[\\/*] |  ?:[\\/]*)
13934  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13935  ;;
13936*)
13937  lt_save_MAGIC_CMD="$MAGIC_CMD"
13938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13940  for ac_dir in $ac_dummy; do
13941    IFS="$lt_save_ifs"
13942    test -z "$ac_dir" && ac_dir=.
13943    if test -f $ac_dir/${ac_tool_prefix}file; then
13944      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13945      if test -n "$file_magic_test_file"; then
13946	case $deplibs_check_method in
13947	"file_magic "*)
13948	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13949	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13950	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13951	    $EGREP "$file_magic_regex" > /dev/null; then
13952	    :
13953	  else
13954	    cat <<_LT_EOF 1>&2
13955
13956*** Warning: the command libtool uses to detect shared libraries,
13957*** $file_magic_cmd, produces output that libtool cannot recognize.
13958*** The result is that libtool may fail to recognize shared libraries
13959*** as such.  This will affect the creation of libtool libraries that
13960*** depend on shared libraries, but programs linked with such libtool
13961*** libraries will work regardless of this problem.  Nevertheless, you
13962*** may want to report the problem to your system manager and/or to
13963*** bug-libtool@gnu.org
13964
13965_LT_EOF
13966	  fi ;;
13967	esac
13968      fi
13969      break
13970    fi
13971  done
13972  IFS="$lt_save_ifs"
13973  MAGIC_CMD="$lt_save_MAGIC_CMD"
13974  ;;
13975esac
13976fi
13977
13978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13979if test -n "$MAGIC_CMD"; then
13980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13981$as_echo "$MAGIC_CMD" >&6; }
13982else
13983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984$as_echo "no" >&6; }
13985fi
13986
13987
13988
13989
13990
13991if test -z "$lt_cv_path_MAGIC_CMD"; then
13992  if test -n "$ac_tool_prefix"; then
13993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13994$as_echo_n "checking for file... " >&6; }
13995if ${lt_cv_path_MAGIC_CMD+:} false; then :
13996  $as_echo_n "(cached) " >&6
13997else
13998  case $MAGIC_CMD in
13999[\\/*] |  ?:[\\/]*)
14000  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14001  ;;
14002*)
14003  lt_save_MAGIC_CMD="$MAGIC_CMD"
14004  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14005  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14006  for ac_dir in $ac_dummy; do
14007    IFS="$lt_save_ifs"
14008    test -z "$ac_dir" && ac_dir=.
14009    if test -f $ac_dir/file; then
14010      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14011      if test -n "$file_magic_test_file"; then
14012	case $deplibs_check_method in
14013	"file_magic "*)
14014	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14015	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14016	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14017	    $EGREP "$file_magic_regex" > /dev/null; then
14018	    :
14019	  else
14020	    cat <<_LT_EOF 1>&2
14021
14022*** Warning: the command libtool uses to detect shared libraries,
14023*** $file_magic_cmd, produces output that libtool cannot recognize.
14024*** The result is that libtool may fail to recognize shared libraries
14025*** as such.  This will affect the creation of libtool libraries that
14026*** depend on shared libraries, but programs linked with such libtool
14027*** libraries will work regardless of this problem.  Nevertheless, you
14028*** may want to report the problem to your system manager and/or to
14029*** bug-libtool@gnu.org
14030
14031_LT_EOF
14032	  fi ;;
14033	esac
14034      fi
14035      break
14036    fi
14037  done
14038  IFS="$lt_save_ifs"
14039  MAGIC_CMD="$lt_save_MAGIC_CMD"
14040  ;;
14041esac
14042fi
14043
14044MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14045if test -n "$MAGIC_CMD"; then
14046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14047$as_echo "$MAGIC_CMD" >&6; }
14048else
14049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14050$as_echo "no" >&6; }
14051fi
14052
14053
14054  else
14055    MAGIC_CMD=:
14056  fi
14057fi
14058
14059  fi
14060  ;;
14061esac
14062
14063# Use C for the default configuration in the libtool script
14064
14065lt_save_CC="$CC"
14066ac_ext=c
14067ac_cpp='$CPP $CPPFLAGS'
14068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14070ac_compiler_gnu=$ac_cv_c_compiler_gnu
14071
14072
14073# Source file extension for C test sources.
14074ac_ext=c
14075
14076# Object file extension for compiled C test sources.
14077objext=o
14078objext=$objext
14079
14080# Code to be used in simple compile tests
14081lt_simple_compile_test_code="int some_variable = 0;"
14082
14083# Code to be used in simple link tests
14084lt_simple_link_test_code='int main(){return(0);}'
14085
14086
14087
14088
14089
14090
14091
14092# If no C compiler was specified, use CC.
14093LTCC=${LTCC-"$CC"}
14094
14095# If no C compiler flags were specified, use CFLAGS.
14096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14097
14098# Allow CC to be a program name with arguments.
14099compiler=$CC
14100
14101# Save the default compiler, since it gets overwritten when the other
14102# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14103compiler_DEFAULT=$CC
14104
14105# save warnings/boilerplate of simple test code
14106ac_outfile=conftest.$ac_objext
14107echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14108eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14109_lt_compiler_boilerplate=`cat conftest.err`
14110$RM conftest*
14111
14112ac_outfile=conftest.$ac_objext
14113echo "$lt_simple_link_test_code" >conftest.$ac_ext
14114eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14115_lt_linker_boilerplate=`cat conftest.err`
14116$RM -r conftest*
14117
14118
14119if test -n "$compiler"; then
14120
14121lt_prog_compiler_no_builtin_flag=
14122
14123if test "$GCC" = yes; then
14124  case $cc_basename in
14125  nvcc*)
14126    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14127  *)
14128    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14129  esac
14130
14131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14132$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14133if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14134  $as_echo_n "(cached) " >&6
14135else
14136  lt_cv_prog_compiler_rtti_exceptions=no
14137   ac_outfile=conftest.$ac_objext
14138   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14139   lt_compiler_flag="-fno-rtti -fno-exceptions"
14140   # Insert the option either (1) after the last *FLAGS variable, or
14141   # (2) before a word containing "conftest.", or (3) at the end.
14142   # Note that $ac_compile itself does not contain backslashes and begins
14143   # with a dollar sign (not a hyphen), so the echo should work correctly.
14144   # The option is referenced via a variable to avoid confusing sed.
14145   lt_compile=`echo "$ac_compile" | $SED \
14146   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14147   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14148   -e 's:$: $lt_compiler_flag:'`
14149   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14150   (eval "$lt_compile" 2>conftest.err)
14151   ac_status=$?
14152   cat conftest.err >&5
14153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   if (exit $ac_status) && test -s "$ac_outfile"; then
14155     # The compiler can only warn and ignore the option if not recognized
14156     # So say no if there are warnings other than the usual output.
14157     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14158     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14159     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14160       lt_cv_prog_compiler_rtti_exceptions=yes
14161     fi
14162   fi
14163   $RM conftest*
14164
14165fi
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14167$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14168
14169if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14170    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14171else
14172    :
14173fi
14174
14175fi
14176
14177
14178
14179
14180
14181
14182  lt_prog_compiler_wl=
14183lt_prog_compiler_pic=
14184lt_prog_compiler_static=
14185
14186
14187  if test "$GCC" = yes; then
14188    lt_prog_compiler_wl='-Wl,'
14189    lt_prog_compiler_static='-static'
14190
14191    case $host_os in
14192      aix*)
14193      # All AIX code is PIC.
14194      if test "$host_cpu" = ia64; then
14195	# AIX 5 now supports IA64 processor
14196	lt_prog_compiler_static='-Bstatic'
14197      fi
14198      ;;
14199
14200    amigaos*)
14201      case $host_cpu in
14202      powerpc)
14203            # see comment about AmigaOS4 .so support
14204            lt_prog_compiler_pic='-fPIC'
14205        ;;
14206      m68k)
14207            # FIXME: we need at least 68020 code to build shared libraries, but
14208            # adding the `-m68020' flag to GCC prevents building anything better,
14209            # like `-m68040'.
14210            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14211        ;;
14212      esac
14213      ;;
14214
14215    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14216      # PIC is the default for these OSes.
14217      ;;
14218
14219    mingw* | cygwin* | pw32* | os2* | cegcc*)
14220      # This hack is so that the source file can tell whether it is being
14221      # built for inclusion in a dll (and should export symbols for example).
14222      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14223      # (--disable-auto-import) libraries
14224      lt_prog_compiler_pic='-DDLL_EXPORT'
14225      ;;
14226
14227    darwin* | rhapsody*)
14228      # PIC is the default on this platform
14229      # Common symbols not allowed in MH_DYLIB files
14230      lt_prog_compiler_pic='-fno-common'
14231      ;;
14232
14233    haiku*)
14234      # PIC is the default for Haiku.
14235      # The "-static" flag exists, but is broken.
14236      lt_prog_compiler_static=
14237      ;;
14238
14239    hpux*)
14240      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14241      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14242      # sets the default TLS model and affects inlining.
14243      case $host_cpu in
14244      hppa*64*)
14245	# +Z the default
14246	;;
14247      *)
14248	lt_prog_compiler_pic='-fPIC'
14249	;;
14250      esac
14251      ;;
14252
14253    interix[3-9]*)
14254      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14255      # Instead, we relocate shared libraries at runtime.
14256      ;;
14257
14258    msdosdjgpp*)
14259      # Just because we use GCC doesn't mean we suddenly get shared libraries
14260      # on systems that don't support them.
14261      lt_prog_compiler_can_build_shared=no
14262      enable_shared=no
14263      ;;
14264
14265    *nto* | *qnx*)
14266      # QNX uses GNU C++, but need to define -shared option too, otherwise
14267      # it will coredump.
14268      lt_prog_compiler_pic='-fPIC -shared'
14269      ;;
14270
14271    sysv4*MP*)
14272      if test -d /usr/nec; then
14273	lt_prog_compiler_pic=-Kconform_pic
14274      fi
14275      ;;
14276
14277    *)
14278      lt_prog_compiler_pic='-fPIC'
14279      ;;
14280    esac
14281
14282    case $cc_basename in
14283    nvcc*) # Cuda Compiler Driver 2.2
14284      lt_prog_compiler_wl='-Xlinker '
14285      lt_prog_compiler_pic='-Xcompiler -fPIC'
14286      ;;
14287    esac
14288  else
14289    # PORTME Check for flag to pass linker flags through the system compiler.
14290    case $host_os in
14291    aix*)
14292      lt_prog_compiler_wl='-Wl,'
14293      if test "$host_cpu" = ia64; then
14294	# AIX 5 now supports IA64 processor
14295	lt_prog_compiler_static='-Bstatic'
14296      else
14297	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14298      fi
14299      ;;
14300
14301    mingw* | cygwin* | pw32* | os2* | cegcc*)
14302      # This hack is so that the source file can tell whether it is being
14303      # built for inclusion in a dll (and should export symbols for example).
14304      lt_prog_compiler_pic='-DDLL_EXPORT'
14305      ;;
14306
14307    hpux9* | hpux10* | hpux11*)
14308      lt_prog_compiler_wl='-Wl,'
14309      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14310      # not for PA HP-UX.
14311      case $host_cpu in
14312      hppa*64*|ia64*)
14313	# +Z the default
14314	;;
14315      *)
14316	lt_prog_compiler_pic='+Z'
14317	;;
14318      esac
14319      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14320      lt_prog_compiler_static='${wl}-a ${wl}archive'
14321      ;;
14322
14323    irix5* | irix6* | nonstopux*)
14324      lt_prog_compiler_wl='-Wl,'
14325      # PIC (with -KPIC) is the default.
14326      lt_prog_compiler_static='-non_shared'
14327      ;;
14328
14329    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14330      case $cc_basename in
14331      # old Intel for x86_64 which still supported -KPIC.
14332      ecc*)
14333	lt_prog_compiler_wl='-Wl,'
14334	lt_prog_compiler_pic='-KPIC'
14335	lt_prog_compiler_static='-static'
14336        ;;
14337      # icc used to be incompatible with GCC.
14338      # ICC 10 doesn't accept -KPIC any more.
14339      icc* | ifort*)
14340	lt_prog_compiler_wl='-Wl,'
14341	lt_prog_compiler_pic='-fPIC'
14342	lt_prog_compiler_static='-static'
14343        ;;
14344      # Lahey Fortran 8.1.
14345      lf95*)
14346	lt_prog_compiler_wl='-Wl,'
14347	lt_prog_compiler_pic='--shared'
14348	lt_prog_compiler_static='--static'
14349	;;
14350      nagfor*)
14351	# NAG Fortran compiler
14352	lt_prog_compiler_wl='-Wl,-Wl,,'
14353	lt_prog_compiler_pic='-PIC'
14354	lt_prog_compiler_static='-Bstatic'
14355	;;
14356      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14357        # Portland Group compilers (*not* the Pentium gcc compiler,
14358	# which looks to be a dead project)
14359	lt_prog_compiler_wl='-Wl,'
14360	lt_prog_compiler_pic='-fpic'
14361	lt_prog_compiler_static='-Bstatic'
14362        ;;
14363      ccc*)
14364        lt_prog_compiler_wl='-Wl,'
14365        # All Alpha code is PIC.
14366        lt_prog_compiler_static='-non_shared'
14367        ;;
14368      xl* | bgxl* | bgf* | mpixl*)
14369	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14370	lt_prog_compiler_wl='-Wl,'
14371	lt_prog_compiler_pic='-qpic'
14372	lt_prog_compiler_static='-qstaticlink'
14373	;;
14374      *)
14375	case `$CC -V 2>&1 | sed 5q` in
14376	*Sun\ F* | *Sun*Fortran*)
14377	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14378	  lt_prog_compiler_pic='-KPIC'
14379	  lt_prog_compiler_static='-Bstatic'
14380	  lt_prog_compiler_wl=''
14381	  ;;
14382	*Sun\ C*)
14383	  # Sun C 5.9
14384	  lt_prog_compiler_pic='-KPIC'
14385	  lt_prog_compiler_static='-Bstatic'
14386	  lt_prog_compiler_wl='-Wl,'
14387	  ;;
14388	esac
14389	;;
14390      esac
14391      ;;
14392
14393    newsos6)
14394      lt_prog_compiler_pic='-KPIC'
14395      lt_prog_compiler_static='-Bstatic'
14396      ;;
14397
14398    *nto* | *qnx*)
14399      # QNX uses GNU C++, but need to define -shared option too, otherwise
14400      # it will coredump.
14401      lt_prog_compiler_pic='-fPIC -shared'
14402      ;;
14403
14404    osf3* | osf4* | osf5*)
14405      lt_prog_compiler_wl='-Wl,'
14406      # All OSF/1 code is PIC.
14407      lt_prog_compiler_static='-non_shared'
14408      ;;
14409
14410    rdos*)
14411      lt_prog_compiler_static='-non_shared'
14412      ;;
14413
14414    solaris*)
14415      lt_prog_compiler_pic='-KPIC'
14416      lt_prog_compiler_static='-Bstatic'
14417      case $cc_basename in
14418      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14419	lt_prog_compiler_wl='-Qoption ld ';;
14420      *)
14421	lt_prog_compiler_wl='-Wl,';;
14422      esac
14423      ;;
14424
14425    sunos4*)
14426      lt_prog_compiler_wl='-Qoption ld '
14427      lt_prog_compiler_pic='-PIC'
14428      lt_prog_compiler_static='-Bstatic'
14429      ;;
14430
14431    sysv4 | sysv4.2uw2* | sysv4.3*)
14432      lt_prog_compiler_wl='-Wl,'
14433      lt_prog_compiler_pic='-KPIC'
14434      lt_prog_compiler_static='-Bstatic'
14435      ;;
14436
14437    sysv4*MP*)
14438      if test -d /usr/nec ;then
14439	lt_prog_compiler_pic='-Kconform_pic'
14440	lt_prog_compiler_static='-Bstatic'
14441      fi
14442      ;;
14443
14444    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14445      lt_prog_compiler_wl='-Wl,'
14446      lt_prog_compiler_pic='-KPIC'
14447      lt_prog_compiler_static='-Bstatic'
14448      ;;
14449
14450    unicos*)
14451      lt_prog_compiler_wl='-Wl,'
14452      lt_prog_compiler_can_build_shared=no
14453      ;;
14454
14455    uts4*)
14456      lt_prog_compiler_pic='-pic'
14457      lt_prog_compiler_static='-Bstatic'
14458      ;;
14459
14460    *)
14461      lt_prog_compiler_can_build_shared=no
14462      ;;
14463    esac
14464  fi
14465
14466case $host_os in
14467  # For platforms which do not support PIC, -DPIC is meaningless:
14468  *djgpp*)
14469    lt_prog_compiler_pic=
14470    ;;
14471  *)
14472    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14473    ;;
14474esac
14475
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14477$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14478if ${lt_cv_prog_compiler_pic+:} false; then :
14479  $as_echo_n "(cached) " >&6
14480else
14481  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14482fi
14483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14484$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14485lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14486
14487#
14488# Check to make sure the PIC flag actually works.
14489#
14490if test -n "$lt_prog_compiler_pic"; then
14491  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14492$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14493if ${lt_cv_prog_compiler_pic_works+:} false; then :
14494  $as_echo_n "(cached) " >&6
14495else
14496  lt_cv_prog_compiler_pic_works=no
14497   ac_outfile=conftest.$ac_objext
14498   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14499   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14500   # Insert the option either (1) after the last *FLAGS variable, or
14501   # (2) before a word containing "conftest.", or (3) at the end.
14502   # Note that $ac_compile itself does not contain backslashes and begins
14503   # with a dollar sign (not a hyphen), so the echo should work correctly.
14504   # The option is referenced via a variable to avoid confusing sed.
14505   lt_compile=`echo "$ac_compile" | $SED \
14506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14508   -e 's:$: $lt_compiler_flag:'`
14509   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14510   (eval "$lt_compile" 2>conftest.err)
14511   ac_status=$?
14512   cat conftest.err >&5
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   if (exit $ac_status) && test -s "$ac_outfile"; then
14515     # The compiler can only warn and ignore the option if not recognized
14516     # So say no if there are warnings other than the usual output.
14517     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14518     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14519     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14520       lt_cv_prog_compiler_pic_works=yes
14521     fi
14522   fi
14523   $RM conftest*
14524
14525fi
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14527$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14528
14529if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14530    case $lt_prog_compiler_pic in
14531     "" | " "*) ;;
14532     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14533     esac
14534else
14535    lt_prog_compiler_pic=
14536     lt_prog_compiler_can_build_shared=no
14537fi
14538
14539fi
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551#
14552# Check to make sure the static flag actually works.
14553#
14554wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14556$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14557if ${lt_cv_prog_compiler_static_works+:} false; then :
14558  $as_echo_n "(cached) " >&6
14559else
14560  lt_cv_prog_compiler_static_works=no
14561   save_LDFLAGS="$LDFLAGS"
14562   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14563   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14564   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14565     # The linker can only warn and ignore the option if not recognized
14566     # So say no if there are warnings
14567     if test -s conftest.err; then
14568       # Append any errors to the config.log.
14569       cat conftest.err 1>&5
14570       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14571       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14572       if diff conftest.exp conftest.er2 >/dev/null; then
14573         lt_cv_prog_compiler_static_works=yes
14574       fi
14575     else
14576       lt_cv_prog_compiler_static_works=yes
14577     fi
14578   fi
14579   $RM -r conftest*
14580   LDFLAGS="$save_LDFLAGS"
14581
14582fi
14583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14584$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14585
14586if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14587    :
14588else
14589    lt_prog_compiler_static=
14590fi
14591
14592
14593
14594
14595
14596
14597
14598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14599$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14600if ${lt_cv_prog_compiler_c_o+:} false; then :
14601  $as_echo_n "(cached) " >&6
14602else
14603  lt_cv_prog_compiler_c_o=no
14604   $RM -r conftest 2>/dev/null
14605   mkdir conftest
14606   cd conftest
14607   mkdir out
14608   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14609
14610   lt_compiler_flag="-o out/conftest2.$ac_objext"
14611   # Insert the option either (1) after the last *FLAGS variable, or
14612   # (2) before a word containing "conftest.", or (3) at the end.
14613   # Note that $ac_compile itself does not contain backslashes and begins
14614   # with a dollar sign (not a hyphen), so the echo should work correctly.
14615   lt_compile=`echo "$ac_compile" | $SED \
14616   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14617   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14618   -e 's:$: $lt_compiler_flag:'`
14619   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14620   (eval "$lt_compile" 2>out/conftest.err)
14621   ac_status=$?
14622   cat out/conftest.err >&5
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14625   then
14626     # The compiler can only warn and ignore the option if not recognized
14627     # So say no if there are warnings
14628     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14629     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14630     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14631       lt_cv_prog_compiler_c_o=yes
14632     fi
14633   fi
14634   chmod u+w . 2>&5
14635   $RM conftest*
14636   # SGI C++ compiler will create directory out/ii_files/ for
14637   # template instantiation
14638   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14639   $RM out/* && rmdir out
14640   cd ..
14641   $RM -r conftest
14642   $RM conftest*
14643
14644fi
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14646$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14647
14648
14649
14650
14651
14652
14653  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14654$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14655if ${lt_cv_prog_compiler_c_o+:} false; then :
14656  $as_echo_n "(cached) " >&6
14657else
14658  lt_cv_prog_compiler_c_o=no
14659   $RM -r conftest 2>/dev/null
14660   mkdir conftest
14661   cd conftest
14662   mkdir out
14663   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14664
14665   lt_compiler_flag="-o out/conftest2.$ac_objext"
14666   # Insert the option either (1) after the last *FLAGS variable, or
14667   # (2) before a word containing "conftest.", or (3) at the end.
14668   # Note that $ac_compile itself does not contain backslashes and begins
14669   # with a dollar sign (not a hyphen), so the echo should work correctly.
14670   lt_compile=`echo "$ac_compile" | $SED \
14671   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14672   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14673   -e 's:$: $lt_compiler_flag:'`
14674   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14675   (eval "$lt_compile" 2>out/conftest.err)
14676   ac_status=$?
14677   cat out/conftest.err >&5
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14680   then
14681     # The compiler can only warn and ignore the option if not recognized
14682     # So say no if there are warnings
14683     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14684     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14685     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14686       lt_cv_prog_compiler_c_o=yes
14687     fi
14688   fi
14689   chmod u+w . 2>&5
14690   $RM conftest*
14691   # SGI C++ compiler will create directory out/ii_files/ for
14692   # template instantiation
14693   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14694   $RM out/* && rmdir out
14695   cd ..
14696   $RM -r conftest
14697   $RM conftest*
14698
14699fi
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14701$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14702
14703
14704
14705
14706hard_links="nottested"
14707if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14708  # do not overwrite the value of need_locks provided by the user
14709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14710$as_echo_n "checking if we can lock with hard links... " >&6; }
14711  hard_links=yes
14712  $RM conftest*
14713  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14714  touch conftest.a
14715  ln conftest.a conftest.b 2>&5 || hard_links=no
14716  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14718$as_echo "$hard_links" >&6; }
14719  if test "$hard_links" = no; then
14720    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14721$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14722    need_locks=warn
14723  fi
14724else
14725  need_locks=no
14726fi
14727
14728
14729
14730
14731
14732
14733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14734$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14735
14736  runpath_var=
14737  allow_undefined_flag=
14738  always_export_symbols=no
14739  archive_cmds=
14740  archive_expsym_cmds=
14741  compiler_needs_object=no
14742  enable_shared_with_static_runtimes=no
14743  export_dynamic_flag_spec=
14744  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14745  hardcode_automatic=no
14746  hardcode_direct=no
14747  hardcode_direct_absolute=no
14748  hardcode_libdir_flag_spec=
14749  hardcode_libdir_flag_spec_ld=
14750  hardcode_libdir_separator=
14751  hardcode_minus_L=no
14752  hardcode_shlibpath_var=unsupported
14753  inherit_rpath=no
14754  link_all_deplibs=unknown
14755  module_cmds=
14756  module_expsym_cmds=
14757  old_archive_from_new_cmds=
14758  old_archive_from_expsyms_cmds=
14759  thread_safe_flag_spec=
14760  whole_archive_flag_spec=
14761  # include_expsyms should be a list of space-separated symbols to be *always*
14762  # included in the symbol list
14763  include_expsyms=
14764  # exclude_expsyms can be an extended regexp of symbols to exclude
14765  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14766  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14767  # as well as any symbol that contains `d'.
14768  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14769  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14770  # platforms (ab)use it in PIC code, but their linkers get confused if
14771  # the symbol is explicitly referenced.  Since portable code cannot
14772  # rely on this symbol name, it's probably fine to never include it in
14773  # preloaded symbol tables.
14774  # Exclude shared library initialization/finalization symbols.
14775  extract_expsyms_cmds=
14776
14777  case $host_os in
14778  cygwin* | mingw* | pw32* | cegcc*)
14779    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14780    # When not using gcc, we currently assume that we are using
14781    # Microsoft Visual C++.
14782    if test "$GCC" != yes; then
14783      with_gnu_ld=no
14784    fi
14785    ;;
14786  interix*)
14787    # we just hope/assume this is gcc and not c89 (= MSVC++)
14788    with_gnu_ld=yes
14789    ;;
14790  openbsd*)
14791    with_gnu_ld=no
14792    ;;
14793  esac
14794
14795  ld_shlibs=yes
14796
14797  # On some targets, GNU ld is compatible enough with the native linker
14798  # that we're better off using the native interface for both.
14799  lt_use_gnu_ld_interface=no
14800  if test "$with_gnu_ld" = yes; then
14801    case $host_os in
14802      aix*)
14803	# The AIX port of GNU ld has always aspired to compatibility
14804	# with the native linker.  However, as the warning in the GNU ld
14805	# block says, versions before 2.19.5* couldn't really create working
14806	# shared libraries, regardless of the interface used.
14807	case `$LD -v 2>&1` in
14808	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14809	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14810	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14811	  *)
14812	    lt_use_gnu_ld_interface=yes
14813	    ;;
14814	esac
14815	;;
14816      *)
14817	lt_use_gnu_ld_interface=yes
14818	;;
14819    esac
14820  fi
14821
14822  if test "$lt_use_gnu_ld_interface" = yes; then
14823    # If archive_cmds runs LD, not CC, wlarc should be empty
14824    wlarc='${wl}'
14825
14826    # Set some defaults for GNU ld with shared library support. These
14827    # are reset later if shared libraries are not supported. Putting them
14828    # here allows them to be overridden if necessary.
14829    runpath_var=LD_RUN_PATH
14830    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14831    export_dynamic_flag_spec='${wl}--export-dynamic'
14832    # ancient GNU ld didn't support --whole-archive et. al.
14833    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14834      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14835    else
14836      whole_archive_flag_spec=
14837    fi
14838    supports_anon_versioning=no
14839    case `$LD -v 2>&1` in
14840      *GNU\ gold*) supports_anon_versioning=yes ;;
14841      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14842      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14843      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14844      *\ 2.11.*) ;; # other 2.11 versions
14845      *) supports_anon_versioning=yes ;;
14846    esac
14847
14848    # See if GNU ld supports shared libraries.
14849    case $host_os in
14850    aix[3-9]*)
14851      # On AIX/PPC, the GNU linker is very broken
14852      if test "$host_cpu" != ia64; then
14853	ld_shlibs=no
14854	cat <<_LT_EOF 1>&2
14855
14856*** Warning: the GNU linker, at least up to release 2.19, is reported
14857*** to be unable to reliably create shared libraries on AIX.
14858*** Therefore, libtool is disabling shared libraries support.  If you
14859*** really care for shared libraries, you may want to install binutils
14860*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14861*** You will then need to restart the configuration process.
14862
14863_LT_EOF
14864      fi
14865      ;;
14866
14867    amigaos*)
14868      case $host_cpu in
14869      powerpc)
14870            # see comment about AmigaOS4 .so support
14871            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872            archive_expsym_cmds=''
14873        ;;
14874      m68k)
14875            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)'
14876            hardcode_libdir_flag_spec='-L$libdir'
14877            hardcode_minus_L=yes
14878        ;;
14879      esac
14880      ;;
14881
14882    beos*)
14883      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14884	allow_undefined_flag=unsupported
14885	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14886	# support --undefined.  This deserves some investigation.  FIXME
14887	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888      else
14889	ld_shlibs=no
14890      fi
14891      ;;
14892
14893    cygwin* | mingw* | pw32* | cegcc*)
14894      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14895      # as there is no search path for DLLs.
14896      hardcode_libdir_flag_spec='-L$libdir'
14897      export_dynamic_flag_spec='${wl}--export-all-symbols'
14898      allow_undefined_flag=unsupported
14899      always_export_symbols=no
14900      enable_shared_with_static_runtimes=yes
14901      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'
14902      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14903
14904      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14905        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14906	# If the export-symbols file already is a .def file (1st line
14907	# is EXPORTS), use it as is; otherwise, prepend...
14908	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14909	  cp $export_symbols $output_objdir/$soname.def;
14910	else
14911	  echo EXPORTS > $output_objdir/$soname.def;
14912	  cat $export_symbols >> $output_objdir/$soname.def;
14913	fi~
14914	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14915      else
14916	ld_shlibs=no
14917      fi
14918      ;;
14919
14920    haiku*)
14921      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14922      link_all_deplibs=yes
14923      ;;
14924
14925    interix[3-9]*)
14926      hardcode_direct=no
14927      hardcode_shlibpath_var=no
14928      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14929      export_dynamic_flag_spec='${wl}-E'
14930      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14931      # Instead, shared libraries are loaded at an image base (0x10000000 by
14932      # default) and relocated if they conflict, which is a slow very memory
14933      # consuming and fragmenting process.  To avoid this, we pick a random,
14934      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14935      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14936      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14937      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'
14938      ;;
14939
14940    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14941      tmp_diet=no
14942      if test "$host_os" = linux-dietlibc; then
14943	case $cc_basename in
14944	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14945	esac
14946      fi
14947      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14948	 && test "$tmp_diet" = no
14949      then
14950	tmp_addflag=' $pic_flag'
14951	tmp_sharedflag='-shared'
14952	case $cc_basename,$host_cpu in
14953        pgcc*)				# Portland Group C compiler
14954	  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'
14955	  tmp_addflag=' $pic_flag'
14956	  ;;
14957	pgf77* | pgf90* | pgf95* | pgfortran*)
14958					# Portland Group f77 and f90 compilers
14959	  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'
14960	  tmp_addflag=' $pic_flag -Mnomain' ;;
14961	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14962	  tmp_addflag=' -i_dynamic' ;;
14963	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14964	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14965	ifc* | ifort*)			# Intel Fortran compiler
14966	  tmp_addflag=' -nofor_main' ;;
14967	lf95*)				# Lahey Fortran 8.1
14968	  whole_archive_flag_spec=
14969	  tmp_sharedflag='--shared' ;;
14970	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14971	  tmp_sharedflag='-qmkshrobj'
14972	  tmp_addflag= ;;
14973	nvcc*)	# Cuda Compiler Driver 2.2
14974	  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'
14975	  compiler_needs_object=yes
14976	  ;;
14977	esac
14978	case `$CC -V 2>&1 | sed 5q` in
14979	*Sun\ C*)			# Sun C 5.9
14980	  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'
14981	  compiler_needs_object=yes
14982	  tmp_sharedflag='-G' ;;
14983	*Sun\ F*)			# Sun Fortran 8.3
14984	  tmp_sharedflag='-G' ;;
14985	esac
14986	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14987
14988        if test "x$supports_anon_versioning" = xyes; then
14989          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14990	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14991	    echo "local: *; };" >> $output_objdir/$libname.ver~
14992	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14993        fi
14994
14995	case $cc_basename in
14996	xlf* | bgf* | bgxlf* | mpixlf*)
14997	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14998	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14999	  hardcode_libdir_flag_spec=
15000	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
15001	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15002	  if test "x$supports_anon_versioning" = xyes; then
15003	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15004	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15005	      echo "local: *; };" >> $output_objdir/$libname.ver~
15006	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15007	  fi
15008	  ;;
15009	esac
15010      else
15011        ld_shlibs=no
15012      fi
15013      ;;
15014
15015    netbsd*)
15016      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15017	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15018	wlarc=
15019      else
15020	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15021	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15022      fi
15023      ;;
15024
15025    solaris*)
15026      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15027	ld_shlibs=no
15028	cat <<_LT_EOF 1>&2
15029
15030*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15031*** create shared libraries on Solaris systems.  Therefore, libtool
15032*** is disabling shared libraries support.  We urge you to upgrade GNU
15033*** binutils to release 2.9.1 or newer.  Another option is to modify
15034*** your PATH or compiler configuration so that the native linker is
15035*** used, and then restart.
15036
15037_LT_EOF
15038      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15039	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15040	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15041      else
15042	ld_shlibs=no
15043      fi
15044      ;;
15045
15046    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15047      case `$LD -v 2>&1` in
15048        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15049	ld_shlibs=no
15050	cat <<_LT_EOF 1>&2
15051
15052*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15053*** reliably create shared libraries on SCO systems.  Therefore, libtool
15054*** is disabling shared libraries support.  We urge you to upgrade GNU
15055*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15056*** your PATH or compiler configuration so that the native linker is
15057*** used, and then restart.
15058
15059_LT_EOF
15060	;;
15061	*)
15062	  # For security reasons, it is highly recommended that you always
15063	  # use absolute paths for naming shared libraries, and exclude the
15064	  # DT_RUNPATH tag from executables and libraries.  But doing so
15065	  # requires that you compile everything twice, which is a pain.
15066	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15067	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15068	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15069	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15070	  else
15071	    ld_shlibs=no
15072	  fi
15073	;;
15074      esac
15075      ;;
15076
15077    sunos4*)
15078      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15079      wlarc=
15080      hardcode_direct=yes
15081      hardcode_shlibpath_var=no
15082      ;;
15083
15084    *)
15085      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15086	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15087	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15088      else
15089	ld_shlibs=no
15090      fi
15091      ;;
15092    esac
15093
15094    if test "$ld_shlibs" = no; then
15095      runpath_var=
15096      hardcode_libdir_flag_spec=
15097      export_dynamic_flag_spec=
15098      whole_archive_flag_spec=
15099    fi
15100  else
15101    # PORTME fill in a description of your system's linker (not GNU ld)
15102    case $host_os in
15103    aix3*)
15104      allow_undefined_flag=unsupported
15105      always_export_symbols=yes
15106      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'
15107      # Note: this linker hardcodes the directories in LIBPATH if there
15108      # are no directories specified by -L.
15109      hardcode_minus_L=yes
15110      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15111	# Neither direct hardcoding nor static linking is supported with a
15112	# broken collect2.
15113	hardcode_direct=unsupported
15114      fi
15115      ;;
15116
15117    aix[4-9]*)
15118      if test "$host_cpu" = ia64; then
15119	# On IA64, the linker does run time linking by default, so we don't
15120	# have to do anything special.
15121	aix_use_runtimelinking=no
15122	exp_sym_flag='-Bexport'
15123	no_entry_flag=""
15124      else
15125	# If we're using GNU nm, then we don't want the "-C" option.
15126	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15127	# Also, AIX nm treats weak defined symbols like other global
15128	# defined symbols, whereas GNU nm marks them as "W".
15129	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15130	  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'
15131	else
15132	  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'
15133	fi
15134	aix_use_runtimelinking=no
15135
15136	# Test if we are trying to use run time linking or normal
15137	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15138	# need to do runtime linking.
15139	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15140	  for ld_flag in $LDFLAGS; do
15141	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15142	    aix_use_runtimelinking=yes
15143	    break
15144	  fi
15145	  done
15146	  ;;
15147	esac
15148
15149	exp_sym_flag='-bexport'
15150	no_entry_flag='-bnoentry'
15151      fi
15152
15153      # When large executables or shared objects are built, AIX ld can
15154      # have problems creating the table of contents.  If linking a library
15155      # or program results in "error TOC overflow" add -mminimal-toc to
15156      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15157      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15158
15159      archive_cmds=''
15160      hardcode_direct=yes
15161      hardcode_direct_absolute=yes
15162      hardcode_libdir_separator=':'
15163      link_all_deplibs=yes
15164      file_list_spec='${wl}-f,'
15165
15166      if test "$GCC" = yes; then
15167	case $host_os in aix4.[012]|aix4.[012].*)
15168	# We only want to do this on AIX 4.2 and lower, the check
15169	# below for broken collect2 doesn't work under 4.3+
15170	  collect2name=`${CC} -print-prog-name=collect2`
15171	  if test -f "$collect2name" &&
15172	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15173	  then
15174	  # We have reworked collect2
15175	  :
15176	  else
15177	  # We have old collect2
15178	  hardcode_direct=unsupported
15179	  # It fails to find uninstalled libraries when the uninstalled
15180	  # path is not listed in the libpath.  Setting hardcode_minus_L
15181	  # to unsupported forces relinking
15182	  hardcode_minus_L=yes
15183	  hardcode_libdir_flag_spec='-L$libdir'
15184	  hardcode_libdir_separator=
15185	  fi
15186	  ;;
15187	esac
15188	shared_flag='-shared'
15189	if test "$aix_use_runtimelinking" = yes; then
15190	  shared_flag="$shared_flag "'${wl}-G'
15191	fi
15192      else
15193	# not using gcc
15194	if test "$host_cpu" = ia64; then
15195	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15196	# chokes on -Wl,-G. The following line is correct:
15197	  shared_flag='-G'
15198	else
15199	  if test "$aix_use_runtimelinking" = yes; then
15200	    shared_flag='${wl}-G'
15201	  else
15202	    shared_flag='${wl}-bM:SRE'
15203	  fi
15204	fi
15205      fi
15206
15207      export_dynamic_flag_spec='${wl}-bexpall'
15208      # It seems that -bexpall does not export symbols beginning with
15209      # underscore (_), so it is better to generate a list of symbols to export.
15210      always_export_symbols=yes
15211      if test "$aix_use_runtimelinking" = yes; then
15212	# Warning - without using the other runtime loading flags (-brtl),
15213	# -berok will link without error, but may produce a broken library.
15214	allow_undefined_flag='-berok'
15215        # Determine the default libpath from the value encoded in an
15216        # empty executable.
15217        if test "${lt_cv_aix_libpath+set}" = set; then
15218  aix_libpath=$lt_cv_aix_libpath
15219else
15220  if ${lt_cv_aix_libpath_+:} false; then :
15221  $as_echo_n "(cached) " >&6
15222else
15223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224/* end confdefs.h.  */
15225
15226int
15227main ()
15228{
15229
15230  ;
15231  return 0;
15232}
15233_ACEOF
15234if ac_fn_c_try_link "$LINENO"; then :
15235
15236  lt_aix_libpath_sed='
15237      /Import File Strings/,/^$/ {
15238	  /^0/ {
15239	      s/^0  *\([^ ]*\) *$/\1/
15240	      p
15241	  }
15242      }'
15243  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15244  # Check for a 64-bit object if we didn't find anything.
15245  if test -z "$lt_cv_aix_libpath_"; then
15246    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15247  fi
15248fi
15249rm -f core conftest.err conftest.$ac_objext \
15250    conftest$ac_exeext conftest.$ac_ext
15251  if test -z "$lt_cv_aix_libpath_"; then
15252    lt_cv_aix_libpath_="/usr/lib:/lib"
15253  fi
15254
15255fi
15256
15257  aix_libpath=$lt_cv_aix_libpath_
15258fi
15259
15260        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15261        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"
15262      else
15263	if test "$host_cpu" = ia64; then
15264	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15265	  allow_undefined_flag="-z nodefs"
15266	  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"
15267	else
15268	 # Determine the default libpath from the value encoded in an
15269	 # empty executable.
15270	 if test "${lt_cv_aix_libpath+set}" = set; then
15271  aix_libpath=$lt_cv_aix_libpath
15272else
15273  if ${lt_cv_aix_libpath_+:} false; then :
15274  $as_echo_n "(cached) " >&6
15275else
15276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277/* end confdefs.h.  */
15278
15279int
15280main ()
15281{
15282
15283  ;
15284  return 0;
15285}
15286_ACEOF
15287if ac_fn_c_try_link "$LINENO"; then :
15288
15289  lt_aix_libpath_sed='
15290      /Import File Strings/,/^$/ {
15291	  /^0/ {
15292	      s/^0  *\([^ ]*\) *$/\1/
15293	      p
15294	  }
15295      }'
15296  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15297  # Check for a 64-bit object if we didn't find anything.
15298  if test -z "$lt_cv_aix_libpath_"; then
15299    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15300  fi
15301fi
15302rm -f core conftest.err conftest.$ac_objext \
15303    conftest$ac_exeext conftest.$ac_ext
15304  if test -z "$lt_cv_aix_libpath_"; then
15305    lt_cv_aix_libpath_="/usr/lib:/lib"
15306  fi
15307
15308fi
15309
15310  aix_libpath=$lt_cv_aix_libpath_
15311fi
15312
15313	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15314	  # Warning - without using the other run time loading flags,
15315	  # -berok will link without error, but may produce a broken library.
15316	  no_undefined_flag=' ${wl}-bernotok'
15317	  allow_undefined_flag=' ${wl}-berok'
15318	  if test "$with_gnu_ld" = yes; then
15319	    # We only use this code for GNU lds that support --whole-archive.
15320	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15321	  else
15322	    # Exported symbols can be pulled into shared objects from archives
15323	    whole_archive_flag_spec='$convenience'
15324	  fi
15325	  archive_cmds_need_lc=yes
15326	  # This is similar to how AIX traditionally builds its shared libraries.
15327	  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'
15328	fi
15329      fi
15330      ;;
15331
15332    amigaos*)
15333      case $host_cpu in
15334      powerpc)
15335            # see comment about AmigaOS4 .so support
15336            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15337            archive_expsym_cmds=''
15338        ;;
15339      m68k)
15340            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)'
15341            hardcode_libdir_flag_spec='-L$libdir'
15342            hardcode_minus_L=yes
15343        ;;
15344      esac
15345      ;;
15346
15347    bsdi[45]*)
15348      export_dynamic_flag_spec=-rdynamic
15349      ;;
15350
15351    cygwin* | mingw* | pw32* | cegcc*)
15352      # When not using gcc, we currently assume that we are using
15353      # Microsoft Visual C++.
15354      # hardcode_libdir_flag_spec is actually meaningless, as there is
15355      # no search path for DLLs.
15356      case $cc_basename in
15357      cl*)
15358	# Native MSVC
15359	hardcode_libdir_flag_spec=' '
15360	allow_undefined_flag=unsupported
15361	always_export_symbols=yes
15362	file_list_spec='@'
15363	# Tell ltmain to make .lib files, not .a files.
15364	libext=lib
15365	# Tell ltmain to make .dll files, not .so files.
15366	shrext_cmds=".dll"
15367	# FIXME: Setting linknames here is a bad hack.
15368	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15369	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15370	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15371	  else
15372	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15373	  fi~
15374	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15375	  linknames='
15376	# The linker will not automatically build a static lib if we build a DLL.
15377	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15378	enable_shared_with_static_runtimes=yes
15379	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15380	# Don't use ranlib
15381	old_postinstall_cmds='chmod 644 $oldlib'
15382	postlink_cmds='lt_outputfile="@OUTPUT@"~
15383	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15384	  case $lt_outputfile in
15385	    *.exe|*.EXE) ;;
15386	    *)
15387	      lt_outputfile="$lt_outputfile.exe"
15388	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15389	      ;;
15390	  esac~
15391	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15392	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15393	    $RM "$lt_outputfile.manifest";
15394	  fi'
15395	;;
15396      *)
15397	# Assume MSVC wrapper
15398	hardcode_libdir_flag_spec=' '
15399	allow_undefined_flag=unsupported
15400	# Tell ltmain to make .lib files, not .a files.
15401	libext=lib
15402	# Tell ltmain to make .dll files, not .so files.
15403	shrext_cmds=".dll"
15404	# FIXME: Setting linknames here is a bad hack.
15405	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15406	# The linker will automatically build a .lib file if we build a DLL.
15407	old_archive_from_new_cmds='true'
15408	# FIXME: Should let the user specify the lib program.
15409	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15410	enable_shared_with_static_runtimes=yes
15411	;;
15412      esac
15413      ;;
15414
15415    darwin* | rhapsody*)
15416
15417
15418  archive_cmds_need_lc=no
15419  hardcode_direct=no
15420  hardcode_automatic=yes
15421  hardcode_shlibpath_var=unsupported
15422  if test "$lt_cv_ld_force_load" = "yes"; then
15423    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\"`'
15424  else
15425    whole_archive_flag_spec=''
15426  fi
15427  link_all_deplibs=yes
15428  allow_undefined_flag="$_lt_dar_allow_undefined"
15429  case $cc_basename in
15430     ifort*) _lt_dar_can_shared=yes ;;
15431     *) _lt_dar_can_shared=$GCC ;;
15432  esac
15433  if test "$_lt_dar_can_shared" = "yes"; then
15434    output_verbose_link_cmd=func_echo_all
15435    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15436    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15437    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}"
15438    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}"
15439
15440  else
15441  ld_shlibs=no
15442  fi
15443
15444      ;;
15445
15446    dgux*)
15447      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15448      hardcode_libdir_flag_spec='-L$libdir'
15449      hardcode_shlibpath_var=no
15450      ;;
15451
15452    freebsd1*)
15453      ld_shlibs=no
15454      ;;
15455
15456    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15457    # support.  Future versions do this automatically, but an explicit c++rt0.o
15458    # does not break anything, and helps significantly (at the cost of a little
15459    # extra space).
15460    freebsd2.2*)
15461      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15462      hardcode_libdir_flag_spec='-R$libdir'
15463      hardcode_direct=yes
15464      hardcode_shlibpath_var=no
15465      ;;
15466
15467    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15468    freebsd2*)
15469      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15470      hardcode_direct=yes
15471      hardcode_minus_L=yes
15472      hardcode_shlibpath_var=no
15473      ;;
15474
15475    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15476    freebsd* | dragonfly*)
15477      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15478      hardcode_libdir_flag_spec='-R$libdir'
15479      hardcode_direct=yes
15480      hardcode_shlibpath_var=no
15481      ;;
15482
15483    hpux9*)
15484      if test "$GCC" = yes; then
15485	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'
15486      else
15487	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'
15488      fi
15489      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15490      hardcode_libdir_separator=:
15491      hardcode_direct=yes
15492
15493      # hardcode_minus_L: Not really in the search PATH,
15494      # but as the default location of the library.
15495      hardcode_minus_L=yes
15496      export_dynamic_flag_spec='${wl}-E'
15497      ;;
15498
15499    hpux10*)
15500      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15501	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15502      else
15503	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15504      fi
15505      if test "$with_gnu_ld" = no; then
15506	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15507	hardcode_libdir_flag_spec_ld='+b $libdir'
15508	hardcode_libdir_separator=:
15509	hardcode_direct=yes
15510	hardcode_direct_absolute=yes
15511	export_dynamic_flag_spec='${wl}-E'
15512	# hardcode_minus_L: Not really in the search PATH,
15513	# but as the default location of the library.
15514	hardcode_minus_L=yes
15515      fi
15516      ;;
15517
15518    hpux11*)
15519      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15520	case $host_cpu in
15521	hppa*64*)
15522	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15523	  ;;
15524	ia64*)
15525	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15526	  ;;
15527	*)
15528	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15529	  ;;
15530	esac
15531      else
15532	case $host_cpu in
15533	hppa*64*)
15534	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15535	  ;;
15536	ia64*)
15537	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15538	  ;;
15539	*)
15540
15541	  # Older versions of the 11.00 compiler do not understand -b yet
15542	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15543	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15544$as_echo_n "checking if $CC understands -b... " >&6; }
15545if ${lt_cv_prog_compiler__b+:} false; then :
15546  $as_echo_n "(cached) " >&6
15547else
15548  lt_cv_prog_compiler__b=no
15549   save_LDFLAGS="$LDFLAGS"
15550   LDFLAGS="$LDFLAGS -b"
15551   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15552   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15553     # The linker can only warn and ignore the option if not recognized
15554     # So say no if there are warnings
15555     if test -s conftest.err; then
15556       # Append any errors to the config.log.
15557       cat conftest.err 1>&5
15558       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15559       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15560       if diff conftest.exp conftest.er2 >/dev/null; then
15561         lt_cv_prog_compiler__b=yes
15562       fi
15563     else
15564       lt_cv_prog_compiler__b=yes
15565     fi
15566   fi
15567   $RM -r conftest*
15568   LDFLAGS="$save_LDFLAGS"
15569
15570fi
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15572$as_echo "$lt_cv_prog_compiler__b" >&6; }
15573
15574if test x"$lt_cv_prog_compiler__b" = xyes; then
15575    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15576else
15577    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15578fi
15579
15580	  ;;
15581	esac
15582      fi
15583      if test "$with_gnu_ld" = no; then
15584	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15585	hardcode_libdir_separator=:
15586
15587	case $host_cpu in
15588	hppa*64*|ia64*)
15589	  hardcode_direct=no
15590	  hardcode_shlibpath_var=no
15591	  ;;
15592	*)
15593	  hardcode_direct=yes
15594	  hardcode_direct_absolute=yes
15595	  export_dynamic_flag_spec='${wl}-E'
15596
15597	  # hardcode_minus_L: Not really in the search PATH,
15598	  # but as the default location of the library.
15599	  hardcode_minus_L=yes
15600	  ;;
15601	esac
15602      fi
15603      ;;
15604
15605    irix5* | irix6* | nonstopux*)
15606      if test "$GCC" = yes; then
15607	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'
15608	# Try to use the -exported_symbol ld option, if it does not
15609	# work, assume that -exports_file does not work either and
15610	# implicitly export all symbols.
15611	# This should be the same for all languages, so no per-tag cache variable.
15612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15613$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15614if ${lt_cv_irix_exported_symbol+:} false; then :
15615  $as_echo_n "(cached) " >&6
15616else
15617  save_LDFLAGS="$LDFLAGS"
15618	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15619	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620/* end confdefs.h.  */
15621int foo (void) { return 0; }
15622_ACEOF
15623if ac_fn_c_try_link "$LINENO"; then :
15624  lt_cv_irix_exported_symbol=yes
15625else
15626  lt_cv_irix_exported_symbol=no
15627fi
15628rm -f core conftest.err conftest.$ac_objext \
15629    conftest$ac_exeext conftest.$ac_ext
15630           LDFLAGS="$save_LDFLAGS"
15631fi
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15633$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15634	if test "$lt_cv_irix_exported_symbol" = yes; then
15635          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'
15636	fi
15637      else
15638	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'
15639	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'
15640      fi
15641      archive_cmds_need_lc='no'
15642      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15643      hardcode_libdir_separator=:
15644      inherit_rpath=yes
15645      link_all_deplibs=yes
15646      ;;
15647
15648    netbsd*)
15649      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15650	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15651      else
15652	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15653      fi
15654      hardcode_libdir_flag_spec='-R$libdir'
15655      hardcode_direct=yes
15656      hardcode_shlibpath_var=no
15657      ;;
15658
15659    newsos6)
15660      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661      hardcode_direct=yes
15662      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15663      hardcode_libdir_separator=:
15664      hardcode_shlibpath_var=no
15665      ;;
15666
15667    *nto* | *qnx*)
15668      ;;
15669
15670    openbsd*)
15671      if test -f /usr/libexec/ld.so; then
15672	hardcode_direct=yes
15673	hardcode_shlibpath_var=no
15674	hardcode_direct_absolute=yes
15675	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15676	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15677	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15678	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15679	  export_dynamic_flag_spec='${wl}-E'
15680	else
15681	  case $host_os in
15682	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15683	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15684	     hardcode_libdir_flag_spec='-R$libdir'
15685	     ;;
15686	   *)
15687	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15688	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15689	     ;;
15690	  esac
15691	fi
15692      else
15693	ld_shlibs=no
15694      fi
15695      ;;
15696
15697    os2*)
15698      hardcode_libdir_flag_spec='-L$libdir'
15699      hardcode_minus_L=yes
15700      allow_undefined_flag=unsupported
15701      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'
15702      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15703      ;;
15704
15705    osf3*)
15706      if test "$GCC" = yes; then
15707	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15708	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'
15709      else
15710	allow_undefined_flag=' -expect_unresolved \*'
15711	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'
15712      fi
15713      archive_cmds_need_lc='no'
15714      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15715      hardcode_libdir_separator=:
15716      ;;
15717
15718    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15719      if test "$GCC" = yes; then
15720	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15721	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'
15722	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15723      else
15724	allow_undefined_flag=' -expect_unresolved \*'
15725	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'
15726	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~
15727	$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'
15728
15729	# Both c and cxx compiler support -rpath directly
15730	hardcode_libdir_flag_spec='-rpath $libdir'
15731      fi
15732      archive_cmds_need_lc='no'
15733      hardcode_libdir_separator=:
15734      ;;
15735
15736    solaris*)
15737      no_undefined_flag=' -z defs'
15738      if test "$GCC" = yes; then
15739	wlarc='${wl}'
15740	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15741	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15742	  $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'
15743      else
15744	case `$CC -V 2>&1` in
15745	*"Compilers 5.0"*)
15746	  wlarc=''
15747	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15749	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15750	  ;;
15751	*)
15752	  wlarc='${wl}'
15753	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15754	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15755	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15756	  ;;
15757	esac
15758      fi
15759      hardcode_libdir_flag_spec='-R$libdir'
15760      hardcode_shlibpath_var=no
15761      case $host_os in
15762      solaris2.[0-5] | solaris2.[0-5].*) ;;
15763      *)
15764	# The compiler driver will combine and reorder linker options,
15765	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15766	# but is careful enough not to reorder.
15767	# Supported since Solaris 2.6 (maybe 2.5.1?)
15768	if test "$GCC" = yes; then
15769	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15770	else
15771	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15772	fi
15773	;;
15774      esac
15775      link_all_deplibs=yes
15776      ;;
15777
15778    sunos4*)
15779      if test "x$host_vendor" = xsequent; then
15780	# Use $CC to link under sequent, because it throws in some extra .o
15781	# files that make .init and .fini sections work.
15782	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15783      else
15784	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15785      fi
15786      hardcode_libdir_flag_spec='-L$libdir'
15787      hardcode_direct=yes
15788      hardcode_minus_L=yes
15789      hardcode_shlibpath_var=no
15790      ;;
15791
15792    sysv4)
15793      case $host_vendor in
15794	sni)
15795	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15796	  hardcode_direct=yes # is this really true???
15797	;;
15798	siemens)
15799	  ## LD is ld it makes a PLAMLIB
15800	  ## CC just makes a GrossModule.
15801	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15802	  reload_cmds='$CC -r -o $output$reload_objs'
15803	  hardcode_direct=no
15804        ;;
15805	motorola)
15806	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15807	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15808	;;
15809      esac
15810      runpath_var='LD_RUN_PATH'
15811      hardcode_shlibpath_var=no
15812      ;;
15813
15814    sysv4.3*)
15815      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816      hardcode_shlibpath_var=no
15817      export_dynamic_flag_spec='-Bexport'
15818      ;;
15819
15820    sysv4*MP*)
15821      if test -d /usr/nec; then
15822	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823	hardcode_shlibpath_var=no
15824	runpath_var=LD_RUN_PATH
15825	hardcode_runpath_var=yes
15826	ld_shlibs=yes
15827      fi
15828      ;;
15829
15830    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15831      no_undefined_flag='${wl}-z,text'
15832      archive_cmds_need_lc=no
15833      hardcode_shlibpath_var=no
15834      runpath_var='LD_RUN_PATH'
15835
15836      if test "$GCC" = yes; then
15837	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15838	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15839      else
15840	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15841	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842      fi
15843      ;;
15844
15845    sysv5* | sco3.2v5* | sco5v6*)
15846      # Note: We can NOT use -z defs as we might desire, because we do not
15847      # link with -lc, and that would cause any symbols used from libc to
15848      # always be unresolved, which means just about no library would
15849      # ever link correctly.  If we're not using GNU ld we use -z text
15850      # though, which does catch some bad symbols but isn't as heavy-handed
15851      # as -z defs.
15852      no_undefined_flag='${wl}-z,text'
15853      allow_undefined_flag='${wl}-z,nodefs'
15854      archive_cmds_need_lc=no
15855      hardcode_shlibpath_var=no
15856      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15857      hardcode_libdir_separator=':'
15858      link_all_deplibs=yes
15859      export_dynamic_flag_spec='${wl}-Bexport'
15860      runpath_var='LD_RUN_PATH'
15861
15862      if test "$GCC" = yes; then
15863	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865      else
15866	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15867	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15868      fi
15869      ;;
15870
15871    uts4*)
15872      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15873      hardcode_libdir_flag_spec='-L$libdir'
15874      hardcode_shlibpath_var=no
15875      ;;
15876
15877    *)
15878      ld_shlibs=no
15879      ;;
15880    esac
15881
15882    if test x$host_vendor = xsni; then
15883      case $host in
15884      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15885	export_dynamic_flag_spec='${wl}-Blargedynsym'
15886	;;
15887      esac
15888    fi
15889  fi
15890
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15892$as_echo "$ld_shlibs" >&6; }
15893test "$ld_shlibs" = no && can_build_shared=no
15894
15895with_gnu_ld=$with_gnu_ld
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911#
15912# Do we need to explicitly link libc?
15913#
15914case "x$archive_cmds_need_lc" in
15915x|xyes)
15916  # Assume -lc should be added
15917  archive_cmds_need_lc=yes
15918
15919  if test "$enable_shared" = yes && test "$GCC" = yes; then
15920    case $archive_cmds in
15921    *'~'*)
15922      # FIXME: we may have to deal with multi-command sequences.
15923      ;;
15924    '$CC '*)
15925      # Test whether the compiler implicitly links with -lc since on some
15926      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15927      # to ld, don't add -lc before -lgcc.
15928      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15929$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15930if ${lt_cv_archive_cmds_need_lc+:} false; then :
15931  $as_echo_n "(cached) " >&6
15932else
15933  $RM conftest*
15934	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15935
15936	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15937  (eval $ac_compile) 2>&5
15938  ac_status=$?
15939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15940  test $ac_status = 0; } 2>conftest.err; then
15941	  soname=conftest
15942	  lib=conftest
15943	  libobjs=conftest.$ac_objext
15944	  deplibs=
15945	  wl=$lt_prog_compiler_wl
15946	  pic_flag=$lt_prog_compiler_pic
15947	  compiler_flags=-v
15948	  linker_flags=-v
15949	  verstring=
15950	  output_objdir=.
15951	  libname=conftest
15952	  lt_save_allow_undefined_flag=$allow_undefined_flag
15953	  allow_undefined_flag=
15954	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15955  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15956  ac_status=$?
15957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15958  test $ac_status = 0; }
15959	  then
15960	    lt_cv_archive_cmds_need_lc=no
15961	  else
15962	    lt_cv_archive_cmds_need_lc=yes
15963	  fi
15964	  allow_undefined_flag=$lt_save_allow_undefined_flag
15965	else
15966	  cat conftest.err 1>&5
15967	fi
15968	$RM conftest*
15969
15970fi
15971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15972$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15973      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15974      ;;
15975    esac
15976  fi
15977  ;;
15978esac
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16137$as_echo_n "checking dynamic linker characteristics... " >&6; }
16138
16139if test "$GCC" = yes; then
16140  case $host_os in
16141    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16142    *) lt_awk_arg="/^libraries:/" ;;
16143  esac
16144  case $host_os in
16145    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16146    *) lt_sed_strip_eq="s,=/,/,g" ;;
16147  esac
16148  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16149  case $lt_search_path_spec in
16150  *\;*)
16151    # if the path contains ";" then we assume it to be the separator
16152    # otherwise default to the standard path separator (i.e. ":") - it is
16153    # assumed that no part of a normal pathname contains ";" but that should
16154    # okay in the real world where ";" in dirpaths is itself problematic.
16155    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16156    ;;
16157  *)
16158    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16159    ;;
16160  esac
16161  # Ok, now we have the path, separated by spaces, we can step through it
16162  # and add multilib dir if necessary.
16163  lt_tmp_lt_search_path_spec=
16164  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16165  for lt_sys_path in $lt_search_path_spec; do
16166    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16167      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16168    else
16169      test -d "$lt_sys_path" && \
16170	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16171    fi
16172  done
16173  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16174BEGIN {RS=" "; FS="/|\n";} {
16175  lt_foo="";
16176  lt_count=0;
16177  for (lt_i = NF; lt_i > 0; lt_i--) {
16178    if ($lt_i != "" && $lt_i != ".") {
16179      if ($lt_i == "..") {
16180        lt_count++;
16181      } else {
16182        if (lt_count == 0) {
16183          lt_foo="/" $lt_i lt_foo;
16184        } else {
16185          lt_count--;
16186        }
16187      }
16188    }
16189  }
16190  if (lt_foo != "") { lt_freq[lt_foo]++; }
16191  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16192}'`
16193  # AWK program above erroneously prepends '/' to C:/dos/paths
16194  # for these hosts.
16195  case $host_os in
16196    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16197      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16198  esac
16199  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16200else
16201  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16202fi
16203library_names_spec=
16204libname_spec='lib$name'
16205soname_spec=
16206shrext_cmds=".so"
16207postinstall_cmds=
16208postuninstall_cmds=
16209finish_cmds=
16210finish_eval=
16211shlibpath_var=
16212shlibpath_overrides_runpath=unknown
16213version_type=none
16214dynamic_linker="$host_os ld.so"
16215sys_lib_dlsearch_path_spec="/lib /usr/lib"
16216need_lib_prefix=unknown
16217hardcode_into_libs=no
16218
16219# when you set need_version to no, make sure it does not cause -set_version
16220# flags to be left without arguments
16221need_version=unknown
16222
16223case $host_os in
16224aix3*)
16225  version_type=linux
16226  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16227  shlibpath_var=LIBPATH
16228
16229  # AIX 3 has no versioning support, so we append a major version to the name.
16230  soname_spec='${libname}${release}${shared_ext}$major'
16231  ;;
16232
16233aix[4-9]*)
16234  version_type=linux
16235  need_lib_prefix=no
16236  need_version=no
16237  hardcode_into_libs=yes
16238  if test "$host_cpu" = ia64; then
16239    # AIX 5 supports IA64
16240    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16241    shlibpath_var=LD_LIBRARY_PATH
16242  else
16243    # With GCC up to 2.95.x, collect2 would create an import file
16244    # for dependence libraries.  The import file would start with
16245    # the line `#! .'.  This would cause the generated library to
16246    # depend on `.', always an invalid library.  This was fixed in
16247    # development snapshots of GCC prior to 3.0.
16248    case $host_os in
16249      aix4 | aix4.[01] | aix4.[01].*)
16250      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16251	   echo ' yes '
16252	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16253	:
16254      else
16255	can_build_shared=no
16256      fi
16257      ;;
16258    esac
16259    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16260    # soname into executable. Probably we can add versioning support to
16261    # collect2, so additional links can be useful in future.
16262    if test "$aix_use_runtimelinking" = yes; then
16263      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16264      # instead of lib<name>.a to let people know that these are not
16265      # typical AIX shared libraries.
16266      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267    else
16268      # We preserve .a as extension for shared libraries through AIX4.2
16269      # and later when we are not doing run time linking.
16270      library_names_spec='${libname}${release}.a $libname.a'
16271      soname_spec='${libname}${release}${shared_ext}$major'
16272    fi
16273    shlibpath_var=LIBPATH
16274  fi
16275  ;;
16276
16277amigaos*)
16278  case $host_cpu in
16279  powerpc)
16280    # Since July 2007 AmigaOS4 officially supports .so libraries.
16281    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16282    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16283    ;;
16284  m68k)
16285    library_names_spec='$libname.ixlibrary $libname.a'
16286    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16287    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'
16288    ;;
16289  esac
16290  ;;
16291
16292beos*)
16293  library_names_spec='${libname}${shared_ext}'
16294  dynamic_linker="$host_os ld.so"
16295  shlibpath_var=LIBRARY_PATH
16296  ;;
16297
16298bsdi[45]*)
16299  version_type=linux
16300  need_version=no
16301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302  soname_spec='${libname}${release}${shared_ext}$major'
16303  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16304  shlibpath_var=LD_LIBRARY_PATH
16305  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16306  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16307  # the default ld.so.conf also contains /usr/contrib/lib and
16308  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16309  # libtool to hard-code these into programs
16310  ;;
16311
16312cygwin* | mingw* | pw32* | cegcc*)
16313  version_type=windows
16314  shrext_cmds=".dll"
16315  need_version=no
16316  need_lib_prefix=no
16317
16318  case $GCC,$cc_basename in
16319  yes,*)
16320    # gcc
16321    library_names_spec='$libname.dll.a'
16322    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16323    postinstall_cmds='base_file=`basename \${file}`~
16324      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16325      dldir=$destdir/`dirname \$dlpath`~
16326      test -d \$dldir || mkdir -p \$dldir~
16327      $install_prog $dir/$dlname \$dldir/$dlname~
16328      chmod a+x \$dldir/$dlname~
16329      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16330        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16331      fi'
16332    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16333      dlpath=$dir/\$dldll~
16334       $RM \$dlpath'
16335    shlibpath_overrides_runpath=yes
16336
16337    case $host_os in
16338    cygwin*)
16339      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16340      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16341
16342      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16343      ;;
16344    mingw* | cegcc*)
16345      # MinGW DLLs use traditional 'lib' prefix
16346      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16347      ;;
16348    pw32*)
16349      # pw32 DLLs use 'pw' prefix rather than 'lib'
16350      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16351      ;;
16352    esac
16353    dynamic_linker='Win32 ld.exe'
16354    ;;
16355
16356  *,cl*)
16357    # Native MSVC
16358    libname_spec='$name'
16359    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16360    library_names_spec='${libname}.dll.lib'
16361
16362    case $build_os in
16363    mingw*)
16364      sys_lib_search_path_spec=
16365      lt_save_ifs=$IFS
16366      IFS=';'
16367      for lt_path in $LIB
16368      do
16369        IFS=$lt_save_ifs
16370        # Let DOS variable expansion print the short 8.3 style file name.
16371        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16372        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16373      done
16374      IFS=$lt_save_ifs
16375      # Convert to MSYS style.
16376      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16377      ;;
16378    cygwin*)
16379      # Convert to unix form, then to dos form, then back to unix form
16380      # but this time dos style (no spaces!) so that the unix form looks
16381      # like /cygdrive/c/PROGRA~1:/cygdr...
16382      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16383      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16384      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16385      ;;
16386    *)
16387      sys_lib_search_path_spec="$LIB"
16388      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16389        # It is most probably a Windows format PATH.
16390        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16391      else
16392        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16393      fi
16394      # FIXME: find the short name or the path components, as spaces are
16395      # common. (e.g. "Program Files" -> "PROGRA~1")
16396      ;;
16397    esac
16398
16399    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16400    postinstall_cmds='base_file=`basename \${file}`~
16401      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16402      dldir=$destdir/`dirname \$dlpath`~
16403      test -d \$dldir || mkdir -p \$dldir~
16404      $install_prog $dir/$dlname \$dldir/$dlname'
16405    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16406      dlpath=$dir/\$dldll~
16407       $RM \$dlpath'
16408    shlibpath_overrides_runpath=yes
16409    dynamic_linker='Win32 link.exe'
16410    ;;
16411
16412  *)
16413    # Assume MSVC wrapper
16414    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16415    dynamic_linker='Win32 ld.exe'
16416    ;;
16417  esac
16418  # FIXME: first we should search . and the directory the executable is in
16419  shlibpath_var=PATH
16420  ;;
16421
16422darwin* | rhapsody*)
16423  dynamic_linker="$host_os dyld"
16424  version_type=darwin
16425  need_lib_prefix=no
16426  need_version=no
16427  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16428  soname_spec='${libname}${release}${major}$shared_ext'
16429  shlibpath_overrides_runpath=yes
16430  shlibpath_var=DYLD_LIBRARY_PATH
16431  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16432
16433  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16434  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16435  ;;
16436
16437dgux*)
16438  version_type=linux
16439  need_lib_prefix=no
16440  need_version=no
16441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16442  soname_spec='${libname}${release}${shared_ext}$major'
16443  shlibpath_var=LD_LIBRARY_PATH
16444  ;;
16445
16446freebsd1*)
16447  dynamic_linker=no
16448  ;;
16449
16450freebsd* | dragonfly*)
16451  # DragonFly does not have aout.  When/if they implement a new
16452  # versioning mechanism, adjust this.
16453  if test -x /usr/bin/objformat; then
16454    objformat=`/usr/bin/objformat`
16455  else
16456    case $host_os in
16457    freebsd[123]*) objformat=aout ;;
16458    *) objformat=elf ;;
16459    esac
16460  fi
16461  version_type=freebsd-$objformat
16462  case $version_type in
16463    freebsd-elf*)
16464      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16465      need_version=no
16466      need_lib_prefix=no
16467      ;;
16468    freebsd-*)
16469      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16470      need_version=yes
16471      ;;
16472  esac
16473  shlibpath_var=LD_LIBRARY_PATH
16474  case $host_os in
16475  freebsd2*)
16476    shlibpath_overrides_runpath=yes
16477    ;;
16478  freebsd3.[01]* | freebsdelf3.[01]*)
16479    shlibpath_overrides_runpath=yes
16480    hardcode_into_libs=yes
16481    ;;
16482  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16483  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16484    shlibpath_overrides_runpath=no
16485    hardcode_into_libs=yes
16486    ;;
16487  *) # from 4.6 on, and DragonFly
16488    shlibpath_overrides_runpath=yes
16489    hardcode_into_libs=yes
16490    ;;
16491  esac
16492  ;;
16493
16494gnu*)
16495  version_type=linux
16496  need_lib_prefix=no
16497  need_version=no
16498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16499  soname_spec='${libname}${release}${shared_ext}$major'
16500  shlibpath_var=LD_LIBRARY_PATH
16501  hardcode_into_libs=yes
16502  ;;
16503
16504haiku*)
16505  version_type=linux
16506  need_lib_prefix=no
16507  need_version=no
16508  dynamic_linker="$host_os runtime_loader"
16509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16510  soname_spec='${libname}${release}${shared_ext}$major'
16511  shlibpath_var=LIBRARY_PATH
16512  shlibpath_overrides_runpath=yes
16513  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16514  hardcode_into_libs=yes
16515  ;;
16516
16517hpux9* | hpux10* | hpux11*)
16518  # Give a soname corresponding to the major version so that dld.sl refuses to
16519  # link against other versions.
16520  version_type=sunos
16521  need_lib_prefix=no
16522  need_version=no
16523  case $host_cpu in
16524  ia64*)
16525    shrext_cmds='.so'
16526    hardcode_into_libs=yes
16527    dynamic_linker="$host_os dld.so"
16528    shlibpath_var=LD_LIBRARY_PATH
16529    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16530    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531    soname_spec='${libname}${release}${shared_ext}$major'
16532    if test "X$HPUX_IA64_MODE" = X32; then
16533      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16534    else
16535      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16536    fi
16537    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16538    ;;
16539  hppa*64*)
16540    shrext_cmds='.sl'
16541    hardcode_into_libs=yes
16542    dynamic_linker="$host_os dld.sl"
16543    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16544    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546    soname_spec='${libname}${release}${shared_ext}$major'
16547    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549    ;;
16550  *)
16551    shrext_cmds='.sl'
16552    dynamic_linker="$host_os dld.sl"
16553    shlibpath_var=SHLIB_PATH
16554    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16555    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556    soname_spec='${libname}${release}${shared_ext}$major'
16557    ;;
16558  esac
16559  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16560  postinstall_cmds='chmod 555 $lib'
16561  # or fails outright, so override atomically:
16562  install_override_mode=555
16563  ;;
16564
16565interix[3-9]*)
16566  version_type=linux
16567  need_lib_prefix=no
16568  need_version=no
16569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16570  soname_spec='${libname}${release}${shared_ext}$major'
16571  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16572  shlibpath_var=LD_LIBRARY_PATH
16573  shlibpath_overrides_runpath=no
16574  hardcode_into_libs=yes
16575  ;;
16576
16577irix5* | irix6* | nonstopux*)
16578  case $host_os in
16579    nonstopux*) version_type=nonstopux ;;
16580    *)
16581	if test "$lt_cv_prog_gnu_ld" = yes; then
16582		version_type=linux
16583	else
16584		version_type=irix
16585	fi ;;
16586  esac
16587  need_lib_prefix=no
16588  need_version=no
16589  soname_spec='${libname}${release}${shared_ext}$major'
16590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16591  case $host_os in
16592  irix5* | nonstopux*)
16593    libsuff= shlibsuff=
16594    ;;
16595  *)
16596    case $LD in # libtool.m4 will add one of these switches to LD
16597    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16598      libsuff= shlibsuff= libmagic=32-bit;;
16599    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16600      libsuff=32 shlibsuff=N32 libmagic=N32;;
16601    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16602      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16603    *) libsuff= shlibsuff= libmagic=never-match;;
16604    esac
16605    ;;
16606  esac
16607  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16608  shlibpath_overrides_runpath=no
16609  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16610  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16611  hardcode_into_libs=yes
16612  ;;
16613
16614# No shared lib support for Linux oldld, aout, or coff.
16615linux*oldld* | linux*aout* | linux*coff*)
16616  dynamic_linker=no
16617  ;;
16618
16619# This must be Linux ELF.
16620linux* | k*bsd*-gnu | kopensolaris*-gnu)
16621  version_type=linux
16622  need_lib_prefix=no
16623  need_version=no
16624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16625  soname_spec='${libname}${release}${shared_ext}$major'
16626  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16627  shlibpath_var=LD_LIBRARY_PATH
16628  shlibpath_overrides_runpath=no
16629
16630  # Some binutils ld are patched to set DT_RUNPATH
16631  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16632  $as_echo_n "(cached) " >&6
16633else
16634  lt_cv_shlibpath_overrides_runpath=no
16635    save_LDFLAGS=$LDFLAGS
16636    save_libdir=$libdir
16637    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16638	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16639    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640/* end confdefs.h.  */
16641
16642int
16643main ()
16644{
16645
16646  ;
16647  return 0;
16648}
16649_ACEOF
16650if ac_fn_c_try_link "$LINENO"; then :
16651  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16652  lt_cv_shlibpath_overrides_runpath=yes
16653fi
16654fi
16655rm -f core conftest.err conftest.$ac_objext \
16656    conftest$ac_exeext conftest.$ac_ext
16657    LDFLAGS=$save_LDFLAGS
16658    libdir=$save_libdir
16659
16660fi
16661
16662  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16663
16664  # This implies no fast_install, which is unacceptable.
16665  # Some rework will be needed to allow for fast_install
16666  # before this can be enabled.
16667  hardcode_into_libs=yes
16668
16669  # Add ABI-specific directories to the system library path.
16670  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16671
16672  # Append ld.so.conf contents to the search path
16673  if test -f /etc/ld.so.conf; then
16674    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' ' '`
16675    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16676
16677  fi
16678
16679  # We used to test for /lib/ld.so.1 and disable shared libraries on
16680  # powerpc, because MkLinux only supported shared libraries with the
16681  # GNU dynamic linker.  Since this was broken with cross compilers,
16682  # most powerpc-linux boxes support dynamic linking these days and
16683  # people can always --disable-shared, the test was removed, and we
16684  # assume the GNU/Linux dynamic linker is in use.
16685  dynamic_linker='GNU/Linux ld.so'
16686  ;;
16687
16688netbsd*)
16689  version_type=sunos
16690  need_lib_prefix=no
16691  need_version=no
16692  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16693    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16694    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16695    dynamic_linker='NetBSD (a.out) ld.so'
16696  else
16697    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16698    soname_spec='${libname}${release}${shared_ext}$major'
16699    dynamic_linker='NetBSD ld.elf_so'
16700  fi
16701  shlibpath_var=LD_LIBRARY_PATH
16702  shlibpath_overrides_runpath=yes
16703  hardcode_into_libs=yes
16704  ;;
16705
16706newsos6)
16707  version_type=linux
16708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709  shlibpath_var=LD_LIBRARY_PATH
16710  shlibpath_overrides_runpath=yes
16711  ;;
16712
16713*nto* | *qnx*)
16714  version_type=qnx
16715  need_lib_prefix=no
16716  need_version=no
16717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718  soname_spec='${libname}${release}${shared_ext}$major'
16719  shlibpath_var=LD_LIBRARY_PATH
16720  shlibpath_overrides_runpath=no
16721  hardcode_into_libs=yes
16722  dynamic_linker='ldqnx.so'
16723  ;;
16724
16725openbsd*)
16726  version_type=sunos
16727  sys_lib_dlsearch_path_spec="/usr/lib"
16728  need_lib_prefix=no
16729  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16730  case $host_os in
16731    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16732    *)				need_version=no  ;;
16733  esac
16734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16735  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16736  shlibpath_var=LD_LIBRARY_PATH
16737  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16738    case $host_os in
16739      openbsd2.[89] | openbsd2.[89].*)
16740	shlibpath_overrides_runpath=no
16741	;;
16742      *)
16743	shlibpath_overrides_runpath=yes
16744	;;
16745      esac
16746  else
16747    shlibpath_overrides_runpath=yes
16748  fi
16749  ;;
16750
16751os2*)
16752  libname_spec='$name'
16753  shrext_cmds=".dll"
16754  need_lib_prefix=no
16755  library_names_spec='$libname${shared_ext} $libname.a'
16756  dynamic_linker='OS/2 ld.exe'
16757  shlibpath_var=LIBPATH
16758  ;;
16759
16760osf3* | osf4* | osf5*)
16761  version_type=osf
16762  need_lib_prefix=no
16763  need_version=no
16764  soname_spec='${libname}${release}${shared_ext}$major'
16765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766  shlibpath_var=LD_LIBRARY_PATH
16767  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16768  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16769  ;;
16770
16771rdos*)
16772  dynamic_linker=no
16773  ;;
16774
16775solaris*)
16776  version_type=linux
16777  need_lib_prefix=no
16778  need_version=no
16779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16780  soname_spec='${libname}${release}${shared_ext}$major'
16781  shlibpath_var=LD_LIBRARY_PATH
16782  shlibpath_overrides_runpath=yes
16783  hardcode_into_libs=yes
16784  # ldd complains unless libraries are executable
16785  postinstall_cmds='chmod +x $lib'
16786  ;;
16787
16788sunos4*)
16789  version_type=sunos
16790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16791  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16792  shlibpath_var=LD_LIBRARY_PATH
16793  shlibpath_overrides_runpath=yes
16794  if test "$with_gnu_ld" = yes; then
16795    need_lib_prefix=no
16796  fi
16797  need_version=yes
16798  ;;
16799
16800sysv4 | sysv4.3*)
16801  version_type=linux
16802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803  soname_spec='${libname}${release}${shared_ext}$major'
16804  shlibpath_var=LD_LIBRARY_PATH
16805  case $host_vendor in
16806    sni)
16807      shlibpath_overrides_runpath=no
16808      need_lib_prefix=no
16809      runpath_var=LD_RUN_PATH
16810      ;;
16811    siemens)
16812      need_lib_prefix=no
16813      ;;
16814    motorola)
16815      need_lib_prefix=no
16816      need_version=no
16817      shlibpath_overrides_runpath=no
16818      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16819      ;;
16820  esac
16821  ;;
16822
16823sysv4*MP*)
16824  if test -d /usr/nec ;then
16825    version_type=linux
16826    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16827    soname_spec='$libname${shared_ext}.$major'
16828    shlibpath_var=LD_LIBRARY_PATH
16829  fi
16830  ;;
16831
16832sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16833  version_type=freebsd-elf
16834  need_lib_prefix=no
16835  need_version=no
16836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16837  soname_spec='${libname}${release}${shared_ext}$major'
16838  shlibpath_var=LD_LIBRARY_PATH
16839  shlibpath_overrides_runpath=yes
16840  hardcode_into_libs=yes
16841  if test "$with_gnu_ld" = yes; then
16842    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16843  else
16844    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16845    case $host_os in
16846      sco3.2v5*)
16847        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16848	;;
16849    esac
16850  fi
16851  sys_lib_dlsearch_path_spec='/usr/lib'
16852  ;;
16853
16854tpf*)
16855  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16856  version_type=linux
16857  need_lib_prefix=no
16858  need_version=no
16859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860  shlibpath_var=LD_LIBRARY_PATH
16861  shlibpath_overrides_runpath=no
16862  hardcode_into_libs=yes
16863  ;;
16864
16865uts4*)
16866  version_type=linux
16867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868  soname_spec='${libname}${release}${shared_ext}$major'
16869  shlibpath_var=LD_LIBRARY_PATH
16870  ;;
16871
16872*)
16873  dynamic_linker=no
16874  ;;
16875esac
16876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16877$as_echo "$dynamic_linker" >&6; }
16878test "$dynamic_linker" = no && can_build_shared=no
16879
16880variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16881if test "$GCC" = yes; then
16882  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16883fi
16884
16885if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16886  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16887fi
16888if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16889  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16890fi
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16984$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16985hardcode_action=
16986if test -n "$hardcode_libdir_flag_spec" ||
16987   test -n "$runpath_var" ||
16988   test "X$hardcode_automatic" = "Xyes" ; then
16989
16990  # We can hardcode non-existent directories.
16991  if test "$hardcode_direct" != no &&
16992     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16993     # have to relink, otherwise we might link with an installed library
16994     # when we should be linking with a yet-to-be-installed one
16995     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16996     test "$hardcode_minus_L" != no; then
16997    # Linking always hardcodes the temporary library directory.
16998    hardcode_action=relink
16999  else
17000    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17001    hardcode_action=immediate
17002  fi
17003else
17004  # We cannot hardcode anything, or else we can only hardcode existing
17005  # directories.
17006  hardcode_action=unsupported
17007fi
17008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17009$as_echo "$hardcode_action" >&6; }
17010
17011if test "$hardcode_action" = relink ||
17012   test "$inherit_rpath" = yes; then
17013  # Fast installation is not supported
17014  enable_fast_install=no
17015elif test "$shlibpath_overrides_runpath" = yes ||
17016     test "$enable_shared" = no; then
17017  # Fast installation is not necessary
17018  enable_fast_install=needless
17019fi
17020
17021
17022
17023
17024
17025
17026  if test "x$enable_dlopen" != xyes; then
17027  enable_dlopen=unknown
17028  enable_dlopen_self=unknown
17029  enable_dlopen_self_static=unknown
17030else
17031  lt_cv_dlopen=no
17032  lt_cv_dlopen_libs=
17033
17034  case $host_os in
17035  beos*)
17036    lt_cv_dlopen="load_add_on"
17037    lt_cv_dlopen_libs=
17038    lt_cv_dlopen_self=yes
17039    ;;
17040
17041  mingw* | pw32* | cegcc*)
17042    lt_cv_dlopen="LoadLibrary"
17043    lt_cv_dlopen_libs=
17044    ;;
17045
17046  cygwin*)
17047    lt_cv_dlopen="dlopen"
17048    lt_cv_dlopen_libs=
17049    ;;
17050
17051  darwin*)
17052  # if libdl is installed we need to link against it
17053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17054$as_echo_n "checking for dlopen in -ldl... " >&6; }
17055if ${ac_cv_lib_dl_dlopen+:} false; then :
17056  $as_echo_n "(cached) " >&6
17057else
17058  ac_check_lib_save_LIBS=$LIBS
17059LIBS="-ldl  $LIBS"
17060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061/* end confdefs.h.  */
17062
17063/* Override any GCC internal prototype to avoid an error.
17064   Use char because int might match the return type of a GCC
17065   builtin and then its argument prototype would still apply.  */
17066#ifdef __cplusplus
17067extern "C"
17068#endif
17069char dlopen ();
17070int
17071main ()
17072{
17073return dlopen ();
17074  ;
17075  return 0;
17076}
17077_ACEOF
17078if ac_fn_c_try_link "$LINENO"; then :
17079  ac_cv_lib_dl_dlopen=yes
17080else
17081  ac_cv_lib_dl_dlopen=no
17082fi
17083rm -f core conftest.err conftest.$ac_objext \
17084    conftest$ac_exeext conftest.$ac_ext
17085LIBS=$ac_check_lib_save_LIBS
17086fi
17087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17088$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17089if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17090  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17091else
17092
17093    lt_cv_dlopen="dyld"
17094    lt_cv_dlopen_libs=
17095    lt_cv_dlopen_self=yes
17096
17097fi
17098
17099    ;;
17100
17101  *)
17102    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17103if test "x$ac_cv_func_shl_load" = xyes; then :
17104  lt_cv_dlopen="shl_load"
17105else
17106  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17107$as_echo_n "checking for shl_load in -ldld... " >&6; }
17108if ${ac_cv_lib_dld_shl_load+:} false; then :
17109  $as_echo_n "(cached) " >&6
17110else
17111  ac_check_lib_save_LIBS=$LIBS
17112LIBS="-ldld  $LIBS"
17113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114/* end confdefs.h.  */
17115
17116/* Override any GCC internal prototype to avoid an error.
17117   Use char because int might match the return type of a GCC
17118   builtin and then its argument prototype would still apply.  */
17119#ifdef __cplusplus
17120extern "C"
17121#endif
17122char shl_load ();
17123int
17124main ()
17125{
17126return shl_load ();
17127  ;
17128  return 0;
17129}
17130_ACEOF
17131if ac_fn_c_try_link "$LINENO"; then :
17132  ac_cv_lib_dld_shl_load=yes
17133else
17134  ac_cv_lib_dld_shl_load=no
17135fi
17136rm -f core conftest.err conftest.$ac_objext \
17137    conftest$ac_exeext conftest.$ac_ext
17138LIBS=$ac_check_lib_save_LIBS
17139fi
17140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17141$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17142if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17143  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17144else
17145  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17146if test "x$ac_cv_func_dlopen" = xyes; then :
17147  lt_cv_dlopen="dlopen"
17148else
17149  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17150$as_echo_n "checking for dlopen in -ldl... " >&6; }
17151if ${ac_cv_lib_dl_dlopen+:} false; then :
17152  $as_echo_n "(cached) " >&6
17153else
17154  ac_check_lib_save_LIBS=$LIBS
17155LIBS="-ldl  $LIBS"
17156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157/* end confdefs.h.  */
17158
17159/* Override any GCC internal prototype to avoid an error.
17160   Use char because int might match the return type of a GCC
17161   builtin and then its argument prototype would still apply.  */
17162#ifdef __cplusplus
17163extern "C"
17164#endif
17165char dlopen ();
17166int
17167main ()
17168{
17169return dlopen ();
17170  ;
17171  return 0;
17172}
17173_ACEOF
17174if ac_fn_c_try_link "$LINENO"; then :
17175  ac_cv_lib_dl_dlopen=yes
17176else
17177  ac_cv_lib_dl_dlopen=no
17178fi
17179rm -f core conftest.err conftest.$ac_objext \
17180    conftest$ac_exeext conftest.$ac_ext
17181LIBS=$ac_check_lib_save_LIBS
17182fi
17183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17184$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17185if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17186  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17187else
17188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17189$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17190if ${ac_cv_lib_svld_dlopen+:} false; then :
17191  $as_echo_n "(cached) " >&6
17192else
17193  ac_check_lib_save_LIBS=$LIBS
17194LIBS="-lsvld  $LIBS"
17195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196/* end confdefs.h.  */
17197
17198/* Override any GCC internal prototype to avoid an error.
17199   Use char because int might match the return type of a GCC
17200   builtin and then its argument prototype would still apply.  */
17201#ifdef __cplusplus
17202extern "C"
17203#endif
17204char dlopen ();
17205int
17206main ()
17207{
17208return dlopen ();
17209  ;
17210  return 0;
17211}
17212_ACEOF
17213if ac_fn_c_try_link "$LINENO"; then :
17214  ac_cv_lib_svld_dlopen=yes
17215else
17216  ac_cv_lib_svld_dlopen=no
17217fi
17218rm -f core conftest.err conftest.$ac_objext \
17219    conftest$ac_exeext conftest.$ac_ext
17220LIBS=$ac_check_lib_save_LIBS
17221fi
17222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17223$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17224if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17225  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17226else
17227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17228$as_echo_n "checking for dld_link in -ldld... " >&6; }
17229if ${ac_cv_lib_dld_dld_link+:} false; then :
17230  $as_echo_n "(cached) " >&6
17231else
17232  ac_check_lib_save_LIBS=$LIBS
17233LIBS="-ldld  $LIBS"
17234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235/* end confdefs.h.  */
17236
17237/* Override any GCC internal prototype to avoid an error.
17238   Use char because int might match the return type of a GCC
17239   builtin and then its argument prototype would still apply.  */
17240#ifdef __cplusplus
17241extern "C"
17242#endif
17243char dld_link ();
17244int
17245main ()
17246{
17247return dld_link ();
17248  ;
17249  return 0;
17250}
17251_ACEOF
17252if ac_fn_c_try_link "$LINENO"; then :
17253  ac_cv_lib_dld_dld_link=yes
17254else
17255  ac_cv_lib_dld_dld_link=no
17256fi
17257rm -f core conftest.err conftest.$ac_objext \
17258    conftest$ac_exeext conftest.$ac_ext
17259LIBS=$ac_check_lib_save_LIBS
17260fi
17261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17262$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17263if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17264  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17265fi
17266
17267
17268fi
17269
17270
17271fi
17272
17273
17274fi
17275
17276
17277fi
17278
17279
17280fi
17281
17282    ;;
17283  esac
17284
17285  if test "x$lt_cv_dlopen" != xno; then
17286    enable_dlopen=yes
17287  else
17288    enable_dlopen=no
17289  fi
17290
17291  case $lt_cv_dlopen in
17292  dlopen)
17293    save_CPPFLAGS="$CPPFLAGS"
17294    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17295
17296    save_LDFLAGS="$LDFLAGS"
17297    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17298
17299    save_LIBS="$LIBS"
17300    LIBS="$lt_cv_dlopen_libs $LIBS"
17301
17302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17303$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17304if ${lt_cv_dlopen_self+:} false; then :
17305  $as_echo_n "(cached) " >&6
17306else
17307  	  if test "$cross_compiling" = yes; then :
17308  lt_cv_dlopen_self=cross
17309else
17310  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17311  lt_status=$lt_dlunknown
17312  cat > conftest.$ac_ext <<_LT_EOF
17313#line $LINENO "configure"
17314#include "confdefs.h"
17315
17316#if HAVE_DLFCN_H
17317#include <dlfcn.h>
17318#endif
17319
17320#include <stdio.h>
17321
17322#ifdef RTLD_GLOBAL
17323#  define LT_DLGLOBAL		RTLD_GLOBAL
17324#else
17325#  ifdef DL_GLOBAL
17326#    define LT_DLGLOBAL		DL_GLOBAL
17327#  else
17328#    define LT_DLGLOBAL		0
17329#  endif
17330#endif
17331
17332/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17333   find out it does not work in some platform. */
17334#ifndef LT_DLLAZY_OR_NOW
17335#  ifdef RTLD_LAZY
17336#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17337#  else
17338#    ifdef DL_LAZY
17339#      define LT_DLLAZY_OR_NOW		DL_LAZY
17340#    else
17341#      ifdef RTLD_NOW
17342#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17343#      else
17344#        ifdef DL_NOW
17345#          define LT_DLLAZY_OR_NOW	DL_NOW
17346#        else
17347#          define LT_DLLAZY_OR_NOW	0
17348#        endif
17349#      endif
17350#    endif
17351#  endif
17352#endif
17353
17354/* When -fvisbility=hidden is used, assume the code has been annotated
17355   correspondingly for the symbols needed.  */
17356#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17357int fnord () __attribute__((visibility("default")));
17358#endif
17359
17360int fnord () { return 42; }
17361int main ()
17362{
17363  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17364  int status = $lt_dlunknown;
17365
17366  if (self)
17367    {
17368      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17369      else
17370        {
17371	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17372          else puts (dlerror ());
17373	}
17374      /* dlclose (self); */
17375    }
17376  else
17377    puts (dlerror ());
17378
17379  return status;
17380}
17381_LT_EOF
17382  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17383  (eval $ac_link) 2>&5
17384  ac_status=$?
17385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17386  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17387    (./conftest; exit; ) >&5 2>/dev/null
17388    lt_status=$?
17389    case x$lt_status in
17390      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17391      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17392      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17393    esac
17394  else :
17395    # compilation failed
17396    lt_cv_dlopen_self=no
17397  fi
17398fi
17399rm -fr conftest*
17400
17401
17402fi
17403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17404$as_echo "$lt_cv_dlopen_self" >&6; }
17405
17406    if test "x$lt_cv_dlopen_self" = xyes; then
17407      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17408      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17409$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17410if ${lt_cv_dlopen_self_static+:} false; then :
17411  $as_echo_n "(cached) " >&6
17412else
17413  	  if test "$cross_compiling" = yes; then :
17414  lt_cv_dlopen_self_static=cross
17415else
17416  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17417  lt_status=$lt_dlunknown
17418  cat > conftest.$ac_ext <<_LT_EOF
17419#line $LINENO "configure"
17420#include "confdefs.h"
17421
17422#if HAVE_DLFCN_H
17423#include <dlfcn.h>
17424#endif
17425
17426#include <stdio.h>
17427
17428#ifdef RTLD_GLOBAL
17429#  define LT_DLGLOBAL		RTLD_GLOBAL
17430#else
17431#  ifdef DL_GLOBAL
17432#    define LT_DLGLOBAL		DL_GLOBAL
17433#  else
17434#    define LT_DLGLOBAL		0
17435#  endif
17436#endif
17437
17438/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17439   find out it does not work in some platform. */
17440#ifndef LT_DLLAZY_OR_NOW
17441#  ifdef RTLD_LAZY
17442#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17443#  else
17444#    ifdef DL_LAZY
17445#      define LT_DLLAZY_OR_NOW		DL_LAZY
17446#    else
17447#      ifdef RTLD_NOW
17448#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17449#      else
17450#        ifdef DL_NOW
17451#          define LT_DLLAZY_OR_NOW	DL_NOW
17452#        else
17453#          define LT_DLLAZY_OR_NOW	0
17454#        endif
17455#      endif
17456#    endif
17457#  endif
17458#endif
17459
17460/* When -fvisbility=hidden is used, assume the code has been annotated
17461   correspondingly for the symbols needed.  */
17462#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17463int fnord () __attribute__((visibility("default")));
17464#endif
17465
17466int fnord () { return 42; }
17467int main ()
17468{
17469  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17470  int status = $lt_dlunknown;
17471
17472  if (self)
17473    {
17474      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17475      else
17476        {
17477	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17478          else puts (dlerror ());
17479	}
17480      /* dlclose (self); */
17481    }
17482  else
17483    puts (dlerror ());
17484
17485  return status;
17486}
17487_LT_EOF
17488  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17489  (eval $ac_link) 2>&5
17490  ac_status=$?
17491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17492  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17493    (./conftest; exit; ) >&5 2>/dev/null
17494    lt_status=$?
17495    case x$lt_status in
17496      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17497      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17498      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17499    esac
17500  else :
17501    # compilation failed
17502    lt_cv_dlopen_self_static=no
17503  fi
17504fi
17505rm -fr conftest*
17506
17507
17508fi
17509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17510$as_echo "$lt_cv_dlopen_self_static" >&6; }
17511    fi
17512
17513    CPPFLAGS="$save_CPPFLAGS"
17514    LDFLAGS="$save_LDFLAGS"
17515    LIBS="$save_LIBS"
17516    ;;
17517  esac
17518
17519  case $lt_cv_dlopen_self in
17520  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17521  *) enable_dlopen_self=unknown ;;
17522  esac
17523
17524  case $lt_cv_dlopen_self_static in
17525  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17526  *) enable_dlopen_self_static=unknown ;;
17527  esac
17528fi
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546striplib=
17547old_striplib=
17548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17549$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17550if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17551  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17552  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17554$as_echo "yes" >&6; }
17555else
17556# FIXME - insert some real tests, host_os isn't really good enough
17557  case $host_os in
17558  darwin*)
17559    if test -n "$STRIP" ; then
17560      striplib="$STRIP -x"
17561      old_striplib="$STRIP -S"
17562      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17563$as_echo "yes" >&6; }
17564    else
17565      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17566$as_echo "no" >&6; }
17567    fi
17568    ;;
17569  *)
17570    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17571$as_echo "no" >&6; }
17572    ;;
17573  esac
17574fi
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587  # Report which library types will actually be built
17588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17589$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17591$as_echo "$can_build_shared" >&6; }
17592
17593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17594$as_echo_n "checking whether to build shared libraries... " >&6; }
17595  test "$can_build_shared" = "no" && enable_shared=no
17596
17597  # On AIX, shared libraries and static libraries use the same namespace, and
17598  # are all built from PIC.
17599  case $host_os in
17600  aix3*)
17601    test "$enable_shared" = yes && enable_static=no
17602    if test -n "$RANLIB"; then
17603      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17604      postinstall_cmds='$RANLIB $lib'
17605    fi
17606    ;;
17607
17608  aix[4-9]*)
17609    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17610      test "$enable_shared" = yes && enable_static=no
17611    fi
17612    ;;
17613  esac
17614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17615$as_echo "$enable_shared" >&6; }
17616
17617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17618$as_echo_n "checking whether to build static libraries... " >&6; }
17619  # Make sure either enable_shared or enable_static is yes.
17620  test "$enable_shared" = yes || enable_static=yes
17621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17622$as_echo "$enable_static" >&6; }
17623
17624
17625
17626
17627fi
17628ac_ext=c
17629ac_cpp='$CPP $CPPFLAGS'
17630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17632ac_compiler_gnu=$ac_cv_c_compiler_gnu
17633
17634CC="$lt_save_CC"
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648        ac_config_commands="$ac_config_commands libtool"
17649
17650
17651
17652
17653# Only expand once:
17654
17655
17656
17657
17658
17659# Define a configure option for an alternate module directory
17660
17661# Check whether --with-xorg-module-dir was given.
17662if test "${with_xorg_module_dir+set}" = set; then :
17663  withval=$with_xorg_module_dir; moduledir="$withval"
17664else
17665  moduledir="$libdir/xorg/modules"
17666fi
17667
17668
17669# Store the list of server defined optional extensions in REQUIRED_MODULES
17670
17671
17672	SAVE_CFLAGS="$CFLAGS"
17673	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17674	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675/* end confdefs.h.  */
17676
17677#include "xorg-server.h"
17678#if !defined RANDR
17679#error RANDR not defined
17680#endif
17681
17682int
17683main ()
17684{
17685
17686  ;
17687  return 0;
17688}
17689_ACEOF
17690if ac_fn_c_try_compile "$LINENO"; then :
17691  _EXT_CHECK=yes
17692else
17693  _EXT_CHECK=no
17694fi
17695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696	CFLAGS="$SAVE_CFLAGS"
17697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17698$as_echo_n "checking if RANDR is defined... " >&6; }
17699	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17700$as_echo "$_EXT_CHECK" >&6; }
17701	if test "$_EXT_CHECK" != no; then
17702		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17703	fi
17704
17705
17706
17707	SAVE_CFLAGS="$CFLAGS"
17708	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17709	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17710/* end confdefs.h.  */
17711
17712#include "xorg-server.h"
17713#if !defined RENDER
17714#error RENDER not defined
17715#endif
17716
17717int
17718main ()
17719{
17720
17721  ;
17722  return 0;
17723}
17724_ACEOF
17725if ac_fn_c_try_compile "$LINENO"; then :
17726  _EXT_CHECK=yes
17727else
17728  _EXT_CHECK=no
17729fi
17730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731	CFLAGS="$SAVE_CFLAGS"
17732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17733$as_echo_n "checking if RENDER is defined... " >&6; }
17734	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17735$as_echo "$_EXT_CHECK" >&6; }
17736	if test "$_EXT_CHECK" != no; then
17737		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17738	fi
17739
17740
17741
17742	SAVE_CFLAGS="$CFLAGS"
17743	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17744	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745/* end confdefs.h.  */
17746
17747#include "xorg-server.h"
17748#if !defined XV
17749#error XV not defined
17750#endif
17751
17752int
17753main ()
17754{
17755
17756  ;
17757  return 0;
17758}
17759_ACEOF
17760if ac_fn_c_try_compile "$LINENO"; then :
17761  _EXT_CHECK=yes
17762else
17763  _EXT_CHECK=no
17764fi
17765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17766	CFLAGS="$SAVE_CFLAGS"
17767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17768$as_echo_n "checking if XV is defined... " >&6; }
17769	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17770$as_echo "$_EXT_CHECK" >&6; }
17771	if test "$_EXT_CHECK" != no; then
17772		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17773	fi
17774
17775
17776
17777	SAVE_CFLAGS="$CFLAGS"
17778	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17779	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780/* end confdefs.h.  */
17781
17782#include "xorg-server.h"
17783#if !defined DPMSExtension
17784#error DPMSExtension not defined
17785#endif
17786
17787int
17788main ()
17789{
17790
17791  ;
17792  return 0;
17793}
17794_ACEOF
17795if ac_fn_c_try_compile "$LINENO"; then :
17796  _EXT_CHECK=yes
17797else
17798  _EXT_CHECK=no
17799fi
17800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801	CFLAGS="$SAVE_CFLAGS"
17802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17803$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17804	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17805$as_echo "$_EXT_CHECK" >&6; }
17806	if test "$_EXT_CHECK" != no; then
17807		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17808	fi
17809
17810
17811# Obtain compiler/linker options for the driver dependencies
17812
17813pkg_failed=no
17814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17815$as_echo_n "checking for XORG... " >&6; }
17816
17817if test -n "$XORG_CFLAGS"; then
17818    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17819 elif test -n "$PKG_CONFIG"; then
17820    if test -n "$PKG_CONFIG" && \
17821    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17822  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17823  ac_status=$?
17824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17825  test $ac_status = 0; }; then
17826  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17827else
17828  pkg_failed=yes
17829fi
17830 else
17831    pkg_failed=untried
17832fi
17833if test -n "$XORG_LIBS"; then
17834    pkg_cv_XORG_LIBS="$XORG_LIBS"
17835 elif test -n "$PKG_CONFIG"; then
17836    if test -n "$PKG_CONFIG" && \
17837    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17838  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17839  ac_status=$?
17840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17841  test $ac_status = 0; }; then
17842  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17843else
17844  pkg_failed=yes
17845fi
17846 else
17847    pkg_failed=untried
17848fi
17849
17850
17851
17852if test $pkg_failed = yes; then
17853   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17854$as_echo "no" >&6; }
17855
17856if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17857        _pkg_short_errors_supported=yes
17858else
17859        _pkg_short_errors_supported=no
17860fi
17861        if test $_pkg_short_errors_supported = yes; then
17862	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17863        else
17864	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17865        fi
17866	# Put the nasty error message in config.log where it belongs
17867	echo "$XORG_PKG_ERRORS" >&5
17868
17869	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17870
17871$XORG_PKG_ERRORS
17872
17873Consider adjusting the PKG_CONFIG_PATH environment variable if you
17874installed software in a non-standard prefix.
17875
17876Alternatively, you may set the environment variables XORG_CFLAGS
17877and XORG_LIBS to avoid the need to call pkg-config.
17878See the pkg-config man page for more details." "$LINENO" 5
17879
17880elif test $pkg_failed = untried; then
17881     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17882$as_echo "no" >&6; }
17883	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17885as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17886is in your PATH or set the PKG_CONFIG environment variable to the full
17887path to pkg-config.
17888
17889Alternatively, you may set the environment variables XORG_CFLAGS
17890and XORG_LIBS to avoid the need to call pkg-config.
17891See the pkg-config man page for more details.
17892
17893To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17894See \`config.log' for more details" "$LINENO" 5; }
17895
17896else
17897	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17898	XORG_LIBS=$pkg_cv_XORG_LIBS
17899        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17900$as_echo "yes" >&6; }
17901
17902fi
17903
17904# Checks for libraries.
17905SAVE_CPPFLAGS="$CPPFLAGS"
17906CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17907ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17908"
17909if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17910  XSERVER_LIBPCIACCESS=yes
17911else
17912  XSERVER_LIBPCIACCESS=no
17913fi
17914
17915CPPFLAGS="$SAVE_CPPFLAGS"
17916
17917if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17918
17919pkg_failed=no
17920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17921$as_echo_n "checking for PCIACCESS... " >&6; }
17922
17923if test -n "$PCIACCESS_CFLAGS"; then
17924    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17925 elif test -n "$PKG_CONFIG"; then
17926    if test -n "$PKG_CONFIG" && \
17927    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
17928  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
17929  ac_status=$?
17930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17931  test $ac_status = 0; }; then
17932  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
17933else
17934  pkg_failed=yes
17935fi
17936 else
17937    pkg_failed=untried
17938fi
17939if test -n "$PCIACCESS_LIBS"; then
17940    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
17941 elif test -n "$PKG_CONFIG"; then
17942    if test -n "$PKG_CONFIG" && \
17943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
17944  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
17945  ac_status=$?
17946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17947  test $ac_status = 0; }; then
17948  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
17949else
17950  pkg_failed=yes
17951fi
17952 else
17953    pkg_failed=untried
17954fi
17955
17956
17957
17958if test $pkg_failed = yes; then
17959   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17960$as_echo "no" >&6; }
17961
17962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17963        _pkg_short_errors_supported=yes
17964else
17965        _pkg_short_errors_supported=no
17966fi
17967        if test $_pkg_short_errors_supported = yes; then
17968	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
17969        else
17970	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
17971        fi
17972	# Put the nasty error message in config.log where it belongs
17973	echo "$PCIACCESS_PKG_ERRORS" >&5
17974
17975	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
17976
17977$PCIACCESS_PKG_ERRORS
17978
17979Consider adjusting the PKG_CONFIG_PATH environment variable if you
17980installed software in a non-standard prefix.
17981
17982Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17983and PCIACCESS_LIBS to avoid the need to call pkg-config.
17984See the pkg-config man page for more details." "$LINENO" 5
17985
17986elif test $pkg_failed = untried; then
17987     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17988$as_echo "no" >&6; }
17989	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17991as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17992is in your PATH or set the PKG_CONFIG environment variable to the full
17993path to pkg-config.
17994
17995Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17996and PCIACCESS_LIBS to avoid the need to call pkg-config.
17997See the pkg-config man page for more details.
17998
17999To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18000See \`config.log' for more details" "$LINENO" 5; }
18001
18002else
18003	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18004	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18005        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18006$as_echo "yes" >&6; }
18007
18008fi
18009    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18010fi
18011 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18012  XSERVER_LIBPCIACCESS_TRUE=
18013  XSERVER_LIBPCIACCESS_FALSE='#'
18014else
18015  XSERVER_LIBPCIACCESS_TRUE='#'
18016  XSERVER_LIBPCIACCESS_FALSE=
18017fi
18018
18019
18020# Check whether --enable-xaa was given.
18021if test "${enable_xaa+set}" = set; then :
18022  enableval=$enable_xaa; XAA="$enableval"
18023else
18024  XAA=auto
18025fi
18026
18027if test "x$XAA" != xno; then
18028        save_CFLAGS=$CFLAGS
18029        save_CPPFLAGS=$CPPFLAGS
18030        CFLAGS=$XORG_CFLAGS
18031        CPPFLAGS="$XORG_CFLAGS"
18032        for ac_header in xaa.h
18033do :
18034  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18035if test "x$ac_cv_header_xaa_h" = xyes; then :
18036  cat >>confdefs.h <<_ACEOF
18037#define HAVE_XAA_H 1
18038_ACEOF
18039 XAA=yes
18040else
18041  XAA=no
18042fi
18043
18044done
18045
18046        CFLAGS=$save_CFLAGS
18047        CPPFLAGS=$save_CPPFLAGS
18048fi
18049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18050$as_echo_n "checking whether to include XAA support... " >&6; }
18051 if test "x$XAA" = xyes; then
18052  XAA_TRUE=
18053  XAA_FALSE='#'
18054else
18055  XAA_TRUE='#'
18056  XAA_FALSE=
18057fi
18058
18059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18060$as_echo "$XAA" >&6; }
18061
18062
18063
18064
18065DRIVER_NAME=nv
18066
18067
18068ac_config_files="$ac_config_files Makefile src/Makefile"
18069
18070cat >confcache <<\_ACEOF
18071# This file is a shell script that caches the results of configure
18072# tests run on this system so they can be shared between configure
18073# scripts and configure runs, see configure's option --config-cache.
18074# It is not useful on other systems.  If it contains results you don't
18075# want to keep, you may remove or edit it.
18076#
18077# config.status only pays attention to the cache file if you give it
18078# the --recheck option to rerun configure.
18079#
18080# `ac_cv_env_foo' variables (set or unset) will be overridden when
18081# loading this file, other *unset* `ac_cv_foo' will be assigned the
18082# following values.
18083
18084_ACEOF
18085
18086# The following way of writing the cache mishandles newlines in values,
18087# but we know of no workaround that is simple, portable, and efficient.
18088# So, we kill variables containing newlines.
18089# Ultrix sh set writes to stderr and can't be redirected directly,
18090# and sets the high bit in the cache file unless we assign to the vars.
18091(
18092  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18093    eval ac_val=\$$ac_var
18094    case $ac_val in #(
18095    *${as_nl}*)
18096      case $ac_var in #(
18097      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18098$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18099      esac
18100      case $ac_var in #(
18101      _ | IFS | as_nl) ;; #(
18102      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18103      *) { eval $ac_var=; unset $ac_var;} ;;
18104      esac ;;
18105    esac
18106  done
18107
18108  (set) 2>&1 |
18109    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18110    *${as_nl}ac_space=\ *)
18111      # `set' does not quote correctly, so add quotes: double-quote
18112      # substitution turns \\\\ into \\, and sed turns \\ into \.
18113      sed -n \
18114	"s/'/'\\\\''/g;
18115	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18116      ;; #(
18117    *)
18118      # `set' quotes correctly as required by POSIX, so do not add quotes.
18119      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18120      ;;
18121    esac |
18122    sort
18123) |
18124  sed '
18125     /^ac_cv_env_/b end
18126     t clear
18127     :clear
18128     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18129     t end
18130     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18131     :end' >>confcache
18132if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18133  if test -w "$cache_file"; then
18134    if test "x$cache_file" != "x/dev/null"; then
18135      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18136$as_echo "$as_me: updating cache $cache_file" >&6;}
18137      if test ! -f "$cache_file" || test -h "$cache_file"; then
18138	cat confcache >"$cache_file"
18139      else
18140        case $cache_file in #(
18141        */* | ?:*)
18142	  mv -f confcache "$cache_file"$$ &&
18143	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18144        *)
18145	  mv -f confcache "$cache_file" ;;
18146	esac
18147      fi
18148    fi
18149  else
18150    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18151$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18152  fi
18153fi
18154rm -f confcache
18155
18156test "x$prefix" = xNONE && prefix=$ac_default_prefix
18157# Let make expand exec_prefix.
18158test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18159
18160DEFS=-DHAVE_CONFIG_H
18161
18162ac_libobjs=
18163ac_ltlibobjs=
18164U=
18165for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18166  # 1. Remove the extension, and $U if already installed.
18167  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18168  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18169  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18170  #    will be set to the directory where LIBOBJS objects are built.
18171  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18172  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18173done
18174LIBOBJS=$ac_libobjs
18175
18176LTLIBOBJS=$ac_ltlibobjs
18177
18178
18179 if test -n "$EXEEXT"; then
18180  am__EXEEXT_TRUE=
18181  am__EXEEXT_FALSE='#'
18182else
18183  am__EXEEXT_TRUE='#'
18184  am__EXEEXT_FALSE=
18185fi
18186
18187if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18188  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18189Usually this means the macro was only invoked conditionally." "$LINENO" 5
18190fi
18191if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18192  as_fn_error $? "conditional \"AMDEP\" was never defined.
18193Usually this means the macro was only invoked conditionally." "$LINENO" 5
18194fi
18195if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18196  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18197Usually this means the macro was only invoked conditionally." "$LINENO" 5
18198fi
18199if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18200  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18201Usually this means the macro was only invoked conditionally." "$LINENO" 5
18202fi
18203if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18204  as_fn_error $? "conditional \"XAA\" was never defined.
18205Usually this means the macro was only invoked conditionally." "$LINENO" 5
18206fi
18207
18208: "${CONFIG_STATUS=./config.status}"
18209ac_write_fail=0
18210ac_clean_files_save=$ac_clean_files
18211ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18212{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18213$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18214as_write_fail=0
18215cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18216#! $SHELL
18217# Generated by $as_me.
18218# Run this file to recreate the current configuration.
18219# Compiler output produced by configure, useful for debugging
18220# configure, is in config.log if it exists.
18221
18222debug=false
18223ac_cs_recheck=false
18224ac_cs_silent=false
18225
18226SHELL=\${CONFIG_SHELL-$SHELL}
18227export SHELL
18228_ASEOF
18229cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18230## -------------------- ##
18231## M4sh Initialization. ##
18232## -------------------- ##
18233
18234# Be more Bourne compatible
18235DUALCASE=1; export DUALCASE # for MKS sh
18236if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18237  emulate sh
18238  NULLCMD=:
18239  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18240  # is contrary to our usage.  Disable this feature.
18241  alias -g '${1+"$@"}'='"$@"'
18242  setopt NO_GLOB_SUBST
18243else
18244  case `(set -o) 2>/dev/null` in #(
18245  *posix*) :
18246    set -o posix ;; #(
18247  *) :
18248     ;;
18249esac
18250fi
18251
18252
18253as_nl='
18254'
18255export as_nl
18256# Printing a long string crashes Solaris 7 /usr/bin/printf.
18257as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18258as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18259as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18260# Prefer a ksh shell builtin over an external printf program on Solaris,
18261# but without wasting forks for bash or zsh.
18262if test -z "$BASH_VERSION$ZSH_VERSION" \
18263    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18264  as_echo='print -r --'
18265  as_echo_n='print -rn --'
18266elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18267  as_echo='printf %s\n'
18268  as_echo_n='printf %s'
18269else
18270  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18271    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18272    as_echo_n='/usr/ucb/echo -n'
18273  else
18274    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18275    as_echo_n_body='eval
18276      arg=$1;
18277      case $arg in #(
18278      *"$as_nl"*)
18279	expr "X$arg" : "X\\(.*\\)$as_nl";
18280	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18281      esac;
18282      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18283    '
18284    export as_echo_n_body
18285    as_echo_n='sh -c $as_echo_n_body as_echo'
18286  fi
18287  export as_echo_body
18288  as_echo='sh -c $as_echo_body as_echo'
18289fi
18290
18291# The user is always right.
18292if test "${PATH_SEPARATOR+set}" != set; then
18293  PATH_SEPARATOR=:
18294  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18295    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18296      PATH_SEPARATOR=';'
18297  }
18298fi
18299
18300
18301# IFS
18302# We need space, tab and new line, in precisely that order.  Quoting is
18303# there to prevent editors from complaining about space-tab.
18304# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18305# splitting by setting IFS to empty value.)
18306IFS=" ""	$as_nl"
18307
18308# Find who we are.  Look in the path if we contain no directory separator.
18309as_myself=
18310case $0 in #((
18311  *[\\/]* ) as_myself=$0 ;;
18312  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313for as_dir in $PATH
18314do
18315  IFS=$as_save_IFS
18316  test -z "$as_dir" && as_dir=.
18317    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18318  done
18319IFS=$as_save_IFS
18320
18321     ;;
18322esac
18323# We did not find ourselves, most probably we were run as `sh COMMAND'
18324# in which case we are not to be found in the path.
18325if test "x$as_myself" = x; then
18326  as_myself=$0
18327fi
18328if test ! -f "$as_myself"; then
18329  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18330  exit 1
18331fi
18332
18333# Unset variables that we do not need and which cause bugs (e.g. in
18334# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18335# suppresses any "Segmentation fault" message there.  '((' could
18336# trigger a bug in pdksh 5.2.14.
18337for as_var in BASH_ENV ENV MAIL MAILPATH
18338do eval test x\${$as_var+set} = xset \
18339  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18340done
18341PS1='$ '
18342PS2='> '
18343PS4='+ '
18344
18345# NLS nuisances.
18346LC_ALL=C
18347export LC_ALL
18348LANGUAGE=C
18349export LANGUAGE
18350
18351# CDPATH.
18352(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18353
18354
18355# as_fn_error STATUS ERROR [LINENO LOG_FD]
18356# ----------------------------------------
18357# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18358# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18359# script with STATUS, using 1 if that was 0.
18360as_fn_error ()
18361{
18362  as_status=$1; test $as_status -eq 0 && as_status=1
18363  if test "$4"; then
18364    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18365    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18366  fi
18367  $as_echo "$as_me: error: $2" >&2
18368  as_fn_exit $as_status
18369} # as_fn_error
18370
18371
18372# as_fn_set_status STATUS
18373# -----------------------
18374# Set $? to STATUS, without forking.
18375as_fn_set_status ()
18376{
18377  return $1
18378} # as_fn_set_status
18379
18380# as_fn_exit STATUS
18381# -----------------
18382# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18383as_fn_exit ()
18384{
18385  set +e
18386  as_fn_set_status $1
18387  exit $1
18388} # as_fn_exit
18389
18390# as_fn_unset VAR
18391# ---------------
18392# Portably unset VAR.
18393as_fn_unset ()
18394{
18395  { eval $1=; unset $1;}
18396}
18397as_unset=as_fn_unset
18398# as_fn_append VAR VALUE
18399# ----------------------
18400# Append the text in VALUE to the end of the definition contained in VAR. Take
18401# advantage of any shell optimizations that allow amortized linear growth over
18402# repeated appends, instead of the typical quadratic growth present in naive
18403# implementations.
18404if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18405  eval 'as_fn_append ()
18406  {
18407    eval $1+=\$2
18408  }'
18409else
18410  as_fn_append ()
18411  {
18412    eval $1=\$$1\$2
18413  }
18414fi # as_fn_append
18415
18416# as_fn_arith ARG...
18417# ------------------
18418# Perform arithmetic evaluation on the ARGs, and store the result in the
18419# global $as_val. Take advantage of shells that can avoid forks. The arguments
18420# must be portable across $(()) and expr.
18421if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18422  eval 'as_fn_arith ()
18423  {
18424    as_val=$(( $* ))
18425  }'
18426else
18427  as_fn_arith ()
18428  {
18429    as_val=`expr "$@" || test $? -eq 1`
18430  }
18431fi # as_fn_arith
18432
18433
18434if expr a : '\(a\)' >/dev/null 2>&1 &&
18435   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18436  as_expr=expr
18437else
18438  as_expr=false
18439fi
18440
18441if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18442  as_basename=basename
18443else
18444  as_basename=false
18445fi
18446
18447if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18448  as_dirname=dirname
18449else
18450  as_dirname=false
18451fi
18452
18453as_me=`$as_basename -- "$0" ||
18454$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18455	 X"$0" : 'X\(//\)$' \| \
18456	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18457$as_echo X/"$0" |
18458    sed '/^.*\/\([^/][^/]*\)\/*$/{
18459	    s//\1/
18460	    q
18461	  }
18462	  /^X\/\(\/\/\)$/{
18463	    s//\1/
18464	    q
18465	  }
18466	  /^X\/\(\/\).*/{
18467	    s//\1/
18468	    q
18469	  }
18470	  s/.*/./; q'`
18471
18472# Avoid depending upon Character Ranges.
18473as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18474as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18475as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18476as_cr_digits='0123456789'
18477as_cr_alnum=$as_cr_Letters$as_cr_digits
18478
18479ECHO_C= ECHO_N= ECHO_T=
18480case `echo -n x` in #(((((
18481-n*)
18482  case `echo 'xy\c'` in
18483  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18484  xy)  ECHO_C='\c';;
18485  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18486       ECHO_T='	';;
18487  esac;;
18488*)
18489  ECHO_N='-n';;
18490esac
18491
18492rm -f conf$$ conf$$.exe conf$$.file
18493if test -d conf$$.dir; then
18494  rm -f conf$$.dir/conf$$.file
18495else
18496  rm -f conf$$.dir
18497  mkdir conf$$.dir 2>/dev/null
18498fi
18499if (echo >conf$$.file) 2>/dev/null; then
18500  if ln -s conf$$.file conf$$ 2>/dev/null; then
18501    as_ln_s='ln -s'
18502    # ... but there are two gotchas:
18503    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18504    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18505    # In both cases, we have to default to `cp -p'.
18506    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18507      as_ln_s='cp -p'
18508  elif ln conf$$.file conf$$ 2>/dev/null; then
18509    as_ln_s=ln
18510  else
18511    as_ln_s='cp -p'
18512  fi
18513else
18514  as_ln_s='cp -p'
18515fi
18516rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18517rmdir conf$$.dir 2>/dev/null
18518
18519
18520# as_fn_mkdir_p
18521# -------------
18522# Create "$as_dir" as a directory, including parents if necessary.
18523as_fn_mkdir_p ()
18524{
18525
18526  case $as_dir in #(
18527  -*) as_dir=./$as_dir;;
18528  esac
18529  test -d "$as_dir" || eval $as_mkdir_p || {
18530    as_dirs=
18531    while :; do
18532      case $as_dir in #(
18533      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18534      *) as_qdir=$as_dir;;
18535      esac
18536      as_dirs="'$as_qdir' $as_dirs"
18537      as_dir=`$as_dirname -- "$as_dir" ||
18538$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18539	 X"$as_dir" : 'X\(//\)[^/]' \| \
18540	 X"$as_dir" : 'X\(//\)$' \| \
18541	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18542$as_echo X"$as_dir" |
18543    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18544	    s//\1/
18545	    q
18546	  }
18547	  /^X\(\/\/\)[^/].*/{
18548	    s//\1/
18549	    q
18550	  }
18551	  /^X\(\/\/\)$/{
18552	    s//\1/
18553	    q
18554	  }
18555	  /^X\(\/\).*/{
18556	    s//\1/
18557	    q
18558	  }
18559	  s/.*/./; q'`
18560      test -d "$as_dir" && break
18561    done
18562    test -z "$as_dirs" || eval "mkdir $as_dirs"
18563  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18564
18565
18566} # as_fn_mkdir_p
18567if mkdir -p . 2>/dev/null; then
18568  as_mkdir_p='mkdir -p "$as_dir"'
18569else
18570  test -d ./-p && rmdir ./-p
18571  as_mkdir_p=false
18572fi
18573
18574if test -x / >/dev/null 2>&1; then
18575  as_test_x='test -x'
18576else
18577  if ls -dL / >/dev/null 2>&1; then
18578    as_ls_L_option=L
18579  else
18580    as_ls_L_option=
18581  fi
18582  as_test_x='
18583    eval sh -c '\''
18584      if test -d "$1"; then
18585	test -d "$1/.";
18586      else
18587	case $1 in #(
18588	-*)set "./$1";;
18589	esac;
18590	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18591	???[sx]*):;;*)false;;esac;fi
18592    '\'' sh
18593  '
18594fi
18595as_executable_p=$as_test_x
18596
18597# Sed expression to map a string onto a valid CPP name.
18598as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18599
18600# Sed expression to map a string onto a valid variable name.
18601as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18602
18603
18604exec 6>&1
18605## ----------------------------------- ##
18606## Main body of $CONFIG_STATUS script. ##
18607## ----------------------------------- ##
18608_ASEOF
18609test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18610
18611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18612# Save the log message, to keep $0 and so on meaningful, and to
18613# report actual input values of CONFIG_FILES etc. instead of their
18614# values after options handling.
18615ac_log="
18616This file was extended by xf86-video-ast $as_me 0.98.0, which was
18617generated by GNU Autoconf 2.68.  Invocation command line was
18618
18619  CONFIG_FILES    = $CONFIG_FILES
18620  CONFIG_HEADERS  = $CONFIG_HEADERS
18621  CONFIG_LINKS    = $CONFIG_LINKS
18622  CONFIG_COMMANDS = $CONFIG_COMMANDS
18623  $ $0 $@
18624
18625on `(hostname || uname -n) 2>/dev/null | sed 1q`
18626"
18627
18628_ACEOF
18629
18630case $ac_config_files in *"
18631"*) set x $ac_config_files; shift; ac_config_files=$*;;
18632esac
18633
18634case $ac_config_headers in *"
18635"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18636esac
18637
18638
18639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18640# Files that config.status was made for.
18641config_files="$ac_config_files"
18642config_headers="$ac_config_headers"
18643config_commands="$ac_config_commands"
18644
18645_ACEOF
18646
18647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18648ac_cs_usage="\
18649\`$as_me' instantiates files and other configuration actions
18650from templates according to the current configuration.  Unless the files
18651and actions are specified as TAGs, all are instantiated by default.
18652
18653Usage: $0 [OPTION]... [TAG]...
18654
18655  -h, --help       print this help, then exit
18656  -V, --version    print version number and configuration settings, then exit
18657      --config     print configuration, then exit
18658  -q, --quiet, --silent
18659                   do not print progress messages
18660  -d, --debug      don't remove temporary files
18661      --recheck    update $as_me by reconfiguring in the same conditions
18662      --file=FILE[:TEMPLATE]
18663                   instantiate the configuration file FILE
18664      --header=FILE[:TEMPLATE]
18665                   instantiate the configuration header FILE
18666
18667Configuration files:
18668$config_files
18669
18670Configuration headers:
18671$config_headers
18672
18673Configuration commands:
18674$config_commands
18675
18676Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18677
18678_ACEOF
18679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18680ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18681ac_cs_version="\\
18682xf86-video-ast config.status 0.98.0
18683configured by $0, generated by GNU Autoconf 2.68,
18684  with options \\"\$ac_cs_config\\"
18685
18686Copyright (C) 2010 Free Software Foundation, Inc.
18687This config.status script is free software; the Free Software Foundation
18688gives unlimited permission to copy, distribute and modify it."
18689
18690ac_pwd='$ac_pwd'
18691srcdir='$srcdir'
18692INSTALL='$INSTALL'
18693MKDIR_P='$MKDIR_P'
18694AWK='$AWK'
18695test -n "\$AWK" || AWK=awk
18696_ACEOF
18697
18698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18699# The default lists apply if the user does not specify any file.
18700ac_need_defaults=:
18701while test $# != 0
18702do
18703  case $1 in
18704  --*=?*)
18705    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18706    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18707    ac_shift=:
18708    ;;
18709  --*=)
18710    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18711    ac_optarg=
18712    ac_shift=:
18713    ;;
18714  *)
18715    ac_option=$1
18716    ac_optarg=$2
18717    ac_shift=shift
18718    ;;
18719  esac
18720
18721  case $ac_option in
18722  # Handling of the options.
18723  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18724    ac_cs_recheck=: ;;
18725  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18726    $as_echo "$ac_cs_version"; exit ;;
18727  --config | --confi | --conf | --con | --co | --c )
18728    $as_echo "$ac_cs_config"; exit ;;
18729  --debug | --debu | --deb | --de | --d | -d )
18730    debug=: ;;
18731  --file | --fil | --fi | --f )
18732    $ac_shift
18733    case $ac_optarg in
18734    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18735    '') as_fn_error $? "missing file argument" ;;
18736    esac
18737    as_fn_append CONFIG_FILES " '$ac_optarg'"
18738    ac_need_defaults=false;;
18739  --header | --heade | --head | --hea )
18740    $ac_shift
18741    case $ac_optarg in
18742    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18743    esac
18744    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18745    ac_need_defaults=false;;
18746  --he | --h)
18747    # Conflict between --help and --header
18748    as_fn_error $? "ambiguous option: \`$1'
18749Try \`$0 --help' for more information.";;
18750  --help | --hel | -h )
18751    $as_echo "$ac_cs_usage"; exit ;;
18752  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18753  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18754    ac_cs_silent=: ;;
18755
18756  # This is an error.
18757  -*) as_fn_error $? "unrecognized option: \`$1'
18758Try \`$0 --help' for more information." ;;
18759
18760  *) as_fn_append ac_config_targets " $1"
18761     ac_need_defaults=false ;;
18762
18763  esac
18764  shift
18765done
18766
18767ac_configure_extra_args=
18768
18769if $ac_cs_silent; then
18770  exec 6>/dev/null
18771  ac_configure_extra_args="$ac_configure_extra_args --silent"
18772fi
18773
18774_ACEOF
18775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18776if \$ac_cs_recheck; then
18777  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18778  shift
18779  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18780  CONFIG_SHELL='$SHELL'
18781  export CONFIG_SHELL
18782  exec "\$@"
18783fi
18784
18785_ACEOF
18786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18787exec 5>>config.log
18788{
18789  echo
18790  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18791## Running $as_me. ##
18792_ASBOX
18793  $as_echo "$ac_log"
18794} >&5
18795
18796_ACEOF
18797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18798#
18799# INIT-COMMANDS
18800#
18801AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18802
18803
18804# The HP-UX ksh and POSIX shell print the target directory to stdout
18805# if CDPATH is set.
18806(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18807
18808sed_quote_subst='$sed_quote_subst'
18809double_quote_subst='$double_quote_subst'
18810delay_variable_subst='$delay_variable_subst'
18811enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18812macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18813macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18814enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18815pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18816enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18817SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18818ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18819host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18820host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18821host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18822build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18823build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18824build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18825SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18826Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18827GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18828EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18829FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18830LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18831NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18832LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18833max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18834ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18835exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18836lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18837lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18838lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18839lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18840lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18841reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18842reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18843OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18844deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18845file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18846file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18847want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18848DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18849sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18850AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18851AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18852archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18853STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18854RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18855old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18856old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18857old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18858lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18859CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18860CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18861compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18862GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18863lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18864lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18865lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18866lt_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"`'
18867nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18868lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18869objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18870MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18871lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18872lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18873lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18874lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18875lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18876need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18877MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18878DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18879NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18880LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18881OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18882OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18883libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18884shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18885extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18886archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18887enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18888export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18889whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18890compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18891old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18892old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18893archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18894archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18895module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18896module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18897with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18898allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18899no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18900hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18901hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18902hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18903hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18904hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18905hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18906hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18907hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18908inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18909link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18910always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18911export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18912exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18913include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18914prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18915postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18916file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18917variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18918need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18919need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18920version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18921runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18922shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18923shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18924libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18925library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18926soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18927install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18928postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18929postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18930finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18931finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18932hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18933sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18934sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18935hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18936enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18937enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18938enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18939old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18940striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18941
18942LTCC='$LTCC'
18943LTCFLAGS='$LTCFLAGS'
18944compiler='$compiler_DEFAULT'
18945
18946# A function that is used when there is no print builtin or printf.
18947func_fallback_echo ()
18948{
18949  eval 'cat <<_LTECHO_EOF
18950\$1
18951_LTECHO_EOF'
18952}
18953
18954# Quote evaled strings.
18955for var in SHELL \
18956ECHO \
18957SED \
18958GREP \
18959EGREP \
18960FGREP \
18961LD \
18962NM \
18963LN_S \
18964lt_SP2NL \
18965lt_NL2SP \
18966reload_flag \
18967OBJDUMP \
18968deplibs_check_method \
18969file_magic_cmd \
18970file_magic_glob \
18971want_nocaseglob \
18972DLLTOOL \
18973sharedlib_from_linklib_cmd \
18974AR \
18975AR_FLAGS \
18976archiver_list_spec \
18977STRIP \
18978RANLIB \
18979CC \
18980CFLAGS \
18981compiler \
18982lt_cv_sys_global_symbol_pipe \
18983lt_cv_sys_global_symbol_to_cdecl \
18984lt_cv_sys_global_symbol_to_c_name_address \
18985lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18986nm_file_list_spec \
18987lt_prog_compiler_no_builtin_flag \
18988lt_prog_compiler_pic \
18989lt_prog_compiler_wl \
18990lt_prog_compiler_static \
18991lt_cv_prog_compiler_c_o \
18992need_locks \
18993MANIFEST_TOOL \
18994DSYMUTIL \
18995NMEDIT \
18996LIPO \
18997OTOOL \
18998OTOOL64 \
18999shrext_cmds \
19000export_dynamic_flag_spec \
19001whole_archive_flag_spec \
19002compiler_needs_object \
19003with_gnu_ld \
19004allow_undefined_flag \
19005no_undefined_flag \
19006hardcode_libdir_flag_spec \
19007hardcode_libdir_flag_spec_ld \
19008hardcode_libdir_separator \
19009exclude_expsyms \
19010include_expsyms \
19011file_list_spec \
19012variables_saved_for_relink \
19013libname_spec \
19014library_names_spec \
19015soname_spec \
19016install_override_mode \
19017finish_eval \
19018old_striplib \
19019striplib; do
19020    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19021    *[\\\\\\\`\\"\\\$]*)
19022      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19023      ;;
19024    *)
19025      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19026      ;;
19027    esac
19028done
19029
19030# Double-quote double-evaled strings.
19031for var in reload_cmds \
19032old_postinstall_cmds \
19033old_postuninstall_cmds \
19034old_archive_cmds \
19035extract_expsyms_cmds \
19036old_archive_from_new_cmds \
19037old_archive_from_expsyms_cmds \
19038archive_cmds \
19039archive_expsym_cmds \
19040module_cmds \
19041module_expsym_cmds \
19042export_symbols_cmds \
19043prelink_cmds \
19044postlink_cmds \
19045postinstall_cmds \
19046postuninstall_cmds \
19047finish_cmds \
19048sys_lib_search_path_spec \
19049sys_lib_dlsearch_path_spec; do
19050    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19051    *[\\\\\\\`\\"\\\$]*)
19052      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19053      ;;
19054    *)
19055      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19056      ;;
19057    esac
19058done
19059
19060ac_aux_dir='$ac_aux_dir'
19061xsi_shell='$xsi_shell'
19062lt_shell_append='$lt_shell_append'
19063
19064# See if we are running on zsh, and set the options which allow our
19065# commands through without removal of \ escapes INIT.
19066if test -n "\${ZSH_VERSION+set}" ; then
19067   setopt NO_GLOB_SUBST
19068fi
19069
19070
19071    PACKAGE='$PACKAGE'
19072    VERSION='$VERSION'
19073    TIMESTAMP='$TIMESTAMP'
19074    RM='$RM'
19075    ofile='$ofile'
19076
19077
19078
19079
19080_ACEOF
19081
19082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19083
19084# Handling of arguments.
19085for ac_config_target in $ac_config_targets
19086do
19087  case $ac_config_target in
19088    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19089    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19090    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19091    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19092    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19093
19094  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19095  esac
19096done
19097
19098
19099# If the user did not use the arguments to specify the items to instantiate,
19100# then the envvar interface is used.  Set only those that are not.
19101# We use the long form for the default assignment because of an extremely
19102# bizarre bug on SunOS 4.1.3.
19103if $ac_need_defaults; then
19104  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19105  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19106  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19107fi
19108
19109# Have a temporary directory for convenience.  Make it in the build tree
19110# simply because there is no reason against having it here, and in addition,
19111# creating and moving files from /tmp can sometimes cause problems.
19112# Hook for its removal unless debugging.
19113# Note that there is a small window in which the directory will not be cleaned:
19114# after its creation but before its name has been assigned to `$tmp'.
19115$debug ||
19116{
19117  tmp= ac_tmp=
19118  trap 'exit_status=$?
19119  : "${ac_tmp:=$tmp}"
19120  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19121' 0
19122  trap 'as_fn_exit 1' 1 2 13 15
19123}
19124# Create a (secure) tmp directory for tmp files.
19125
19126{
19127  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19128  test -d "$tmp"
19129}  ||
19130{
19131  tmp=./conf$$-$RANDOM
19132  (umask 077 && mkdir "$tmp")
19133} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19134ac_tmp=$tmp
19135
19136# Set up the scripts for CONFIG_FILES section.
19137# No need to generate them if there are no CONFIG_FILES.
19138# This happens for instance with `./config.status config.h'.
19139if test -n "$CONFIG_FILES"; then
19140
19141
19142ac_cr=`echo X | tr X '\015'`
19143# On cygwin, bash can eat \r inside `` if the user requested igncr.
19144# But we know of no other shell where ac_cr would be empty at this
19145# point, so we can use a bashism as a fallback.
19146if test "x$ac_cr" = x; then
19147  eval ac_cr=\$\'\\r\'
19148fi
19149ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19150if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19151  ac_cs_awk_cr='\\r'
19152else
19153  ac_cs_awk_cr=$ac_cr
19154fi
19155
19156echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19157_ACEOF
19158
19159
19160{
19161  echo "cat >conf$$subs.awk <<_ACEOF" &&
19162  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19163  echo "_ACEOF"
19164} >conf$$subs.sh ||
19165  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19166ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19167ac_delim='%!_!# '
19168for ac_last_try in false false false false false :; do
19169  . ./conf$$subs.sh ||
19170    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19171
19172  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19173  if test $ac_delim_n = $ac_delim_num; then
19174    break
19175  elif $ac_last_try; then
19176    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19177  else
19178    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19179  fi
19180done
19181rm -f conf$$subs.sh
19182
19183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19184cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19185_ACEOF
19186sed -n '
19187h
19188s/^/S["/; s/!.*/"]=/
19189p
19190g
19191s/^[^!]*!//
19192:repl
19193t repl
19194s/'"$ac_delim"'$//
19195t delim
19196:nl
19197h
19198s/\(.\{148\}\)..*/\1/
19199t more1
19200s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19201p
19202n
19203b repl
19204:more1
19205s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19206p
19207g
19208s/.\{148\}//
19209t nl
19210:delim
19211h
19212s/\(.\{148\}\)..*/\1/
19213t more2
19214s/["\\]/\\&/g; s/^/"/; s/$/"/
19215p
19216b
19217:more2
19218s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19219p
19220g
19221s/.\{148\}//
19222t delim
19223' <conf$$subs.awk | sed '
19224/^[^""]/{
19225  N
19226  s/\n//
19227}
19228' >>$CONFIG_STATUS || ac_write_fail=1
19229rm -f conf$$subs.awk
19230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19231_ACAWK
19232cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19233  for (key in S) S_is_set[key] = 1
19234  FS = ""
19235
19236}
19237{
19238  line = $ 0
19239  nfields = split(line, field, "@")
19240  substed = 0
19241  len = length(field[1])
19242  for (i = 2; i < nfields; i++) {
19243    key = field[i]
19244    keylen = length(key)
19245    if (S_is_set[key]) {
19246      value = S[key]
19247      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19248      len += length(value) + length(field[++i])
19249      substed = 1
19250    } else
19251      len += 1 + keylen
19252  }
19253
19254  print line
19255}
19256
19257_ACAWK
19258_ACEOF
19259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19260if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19261  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19262else
19263  cat
19264fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19265  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19266_ACEOF
19267
19268# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19269# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19270# trailing colons and then remove the whole line if VPATH becomes empty
19271# (actually we leave an empty line to preserve line numbers).
19272if test "x$srcdir" = x.; then
19273  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19274h
19275s///
19276s/^/:/
19277s/[	 ]*$/:/
19278s/:\$(srcdir):/:/g
19279s/:\${srcdir}:/:/g
19280s/:@srcdir@:/:/g
19281s/^:*//
19282s/:*$//
19283x
19284s/\(=[	 ]*\).*/\1/
19285G
19286s/\n//
19287s/^[^=]*=[	 ]*$//
19288}'
19289fi
19290
19291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19292fi # test -n "$CONFIG_FILES"
19293
19294# Set up the scripts for CONFIG_HEADERS section.
19295# No need to generate them if there are no CONFIG_HEADERS.
19296# This happens for instance with `./config.status Makefile'.
19297if test -n "$CONFIG_HEADERS"; then
19298cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19299BEGIN {
19300_ACEOF
19301
19302# Transform confdefs.h into an awk script `defines.awk', embedded as
19303# here-document in config.status, that substitutes the proper values into
19304# config.h.in to produce config.h.
19305
19306# Create a delimiter string that does not exist in confdefs.h, to ease
19307# handling of long lines.
19308ac_delim='%!_!# '
19309for ac_last_try in false false :; do
19310  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19311  if test -z "$ac_tt"; then
19312    break
19313  elif $ac_last_try; then
19314    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19315  else
19316    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19317  fi
19318done
19319
19320# For the awk script, D is an array of macro values keyed by name,
19321# likewise P contains macro parameters if any.  Preserve backslash
19322# newline sequences.
19323
19324ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19325sed -n '
19326s/.\{148\}/&'"$ac_delim"'/g
19327t rset
19328:rset
19329s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19330t def
19331d
19332:def
19333s/\\$//
19334t bsnl
19335s/["\\]/\\&/g
19336s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19337D["\1"]=" \3"/p
19338s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19339d
19340:bsnl
19341s/["\\]/\\&/g
19342s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19343D["\1"]=" \3\\\\\\n"\\/p
19344t cont
19345s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19346t cont
19347d
19348:cont
19349n
19350s/.\{148\}/&'"$ac_delim"'/g
19351t clear
19352:clear
19353s/\\$//
19354t bsnlc
19355s/["\\]/\\&/g; s/^/"/; s/$/"/p
19356d
19357:bsnlc
19358s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19359b cont
19360' <confdefs.h | sed '
19361s/'"$ac_delim"'/"\\\
19362"/g' >>$CONFIG_STATUS || ac_write_fail=1
19363
19364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19365  for (key in D) D_is_set[key] = 1
19366  FS = ""
19367}
19368/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19369  line = \$ 0
19370  split(line, arg, " ")
19371  if (arg[1] == "#") {
19372    defundef = arg[2]
19373    mac1 = arg[3]
19374  } else {
19375    defundef = substr(arg[1], 2)
19376    mac1 = arg[2]
19377  }
19378  split(mac1, mac2, "(") #)
19379  macro = mac2[1]
19380  prefix = substr(line, 1, index(line, defundef) - 1)
19381  if (D_is_set[macro]) {
19382    # Preserve the white space surrounding the "#".
19383    print prefix "define", macro P[macro] D[macro]
19384    next
19385  } else {
19386    # Replace #undef with comments.  This is necessary, for example,
19387    # in the case of _POSIX_SOURCE, which is predefined and required
19388    # on some systems where configure will not decide to define it.
19389    if (defundef == "undef") {
19390      print "/*", prefix defundef, macro, "*/"
19391      next
19392    }
19393  }
19394}
19395{ print }
19396_ACAWK
19397_ACEOF
19398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19399  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19400fi # test -n "$CONFIG_HEADERS"
19401
19402
19403eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19404shift
19405for ac_tag
19406do
19407  case $ac_tag in
19408  :[FHLC]) ac_mode=$ac_tag; continue;;
19409  esac
19410  case $ac_mode$ac_tag in
19411  :[FHL]*:*);;
19412  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19413  :[FH]-) ac_tag=-:-;;
19414  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19415  esac
19416  ac_save_IFS=$IFS
19417  IFS=:
19418  set x $ac_tag
19419  IFS=$ac_save_IFS
19420  shift
19421  ac_file=$1
19422  shift
19423
19424  case $ac_mode in
19425  :L) ac_source=$1;;
19426  :[FH])
19427    ac_file_inputs=
19428    for ac_f
19429    do
19430      case $ac_f in
19431      -) ac_f="$ac_tmp/stdin";;
19432      *) # Look for the file first in the build tree, then in the source tree
19433	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19434	 # because $ac_f cannot contain `:'.
19435	 test -f "$ac_f" ||
19436	   case $ac_f in
19437	   [\\/$]*) false;;
19438	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19439	   esac ||
19440	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19441      esac
19442      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19443      as_fn_append ac_file_inputs " '$ac_f'"
19444    done
19445
19446    # Let's still pretend it is `configure' which instantiates (i.e., don't
19447    # use $as_me), people would be surprised to read:
19448    #    /* config.h.  Generated by config.status.  */
19449    configure_input='Generated from '`
19450	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19451	`' by configure.'
19452    if test x"$ac_file" != x-; then
19453      configure_input="$ac_file.  $configure_input"
19454      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19455$as_echo "$as_me: creating $ac_file" >&6;}
19456    fi
19457    # Neutralize special characters interpreted by sed in replacement strings.
19458    case $configure_input in #(
19459    *\&* | *\|* | *\\* )
19460       ac_sed_conf_input=`$as_echo "$configure_input" |
19461       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19462    *) ac_sed_conf_input=$configure_input;;
19463    esac
19464
19465    case $ac_tag in
19466    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19467      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19468    esac
19469    ;;
19470  esac
19471
19472  ac_dir=`$as_dirname -- "$ac_file" ||
19473$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19474	 X"$ac_file" : 'X\(//\)[^/]' \| \
19475	 X"$ac_file" : 'X\(//\)$' \| \
19476	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19477$as_echo X"$ac_file" |
19478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19479	    s//\1/
19480	    q
19481	  }
19482	  /^X\(\/\/\)[^/].*/{
19483	    s//\1/
19484	    q
19485	  }
19486	  /^X\(\/\/\)$/{
19487	    s//\1/
19488	    q
19489	  }
19490	  /^X\(\/\).*/{
19491	    s//\1/
19492	    q
19493	  }
19494	  s/.*/./; q'`
19495  as_dir="$ac_dir"; as_fn_mkdir_p
19496  ac_builddir=.
19497
19498case "$ac_dir" in
19499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19500*)
19501  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19502  # A ".." for each directory in $ac_dir_suffix.
19503  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19504  case $ac_top_builddir_sub in
19505  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19506  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19507  esac ;;
19508esac
19509ac_abs_top_builddir=$ac_pwd
19510ac_abs_builddir=$ac_pwd$ac_dir_suffix
19511# for backward compatibility:
19512ac_top_builddir=$ac_top_build_prefix
19513
19514case $srcdir in
19515  .)  # We are building in place.
19516    ac_srcdir=.
19517    ac_top_srcdir=$ac_top_builddir_sub
19518    ac_abs_top_srcdir=$ac_pwd ;;
19519  [\\/]* | ?:[\\/]* )  # Absolute name.
19520    ac_srcdir=$srcdir$ac_dir_suffix;
19521    ac_top_srcdir=$srcdir
19522    ac_abs_top_srcdir=$srcdir ;;
19523  *) # Relative name.
19524    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19525    ac_top_srcdir=$ac_top_build_prefix$srcdir
19526    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19527esac
19528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19529
19530
19531  case $ac_mode in
19532  :F)
19533  #
19534  # CONFIG_FILE
19535  #
19536
19537  case $INSTALL in
19538  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19539  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19540  esac
19541  ac_MKDIR_P=$MKDIR_P
19542  case $MKDIR_P in
19543  [\\/$]* | ?:[\\/]* ) ;;
19544  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19545  esac
19546_ACEOF
19547
19548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19549# If the template does not know about datarootdir, expand it.
19550# FIXME: This hack should be removed a few years after 2.60.
19551ac_datarootdir_hack=; ac_datarootdir_seen=
19552ac_sed_dataroot='
19553/datarootdir/ {
19554  p
19555  q
19556}
19557/@datadir@/p
19558/@docdir@/p
19559/@infodir@/p
19560/@localedir@/p
19561/@mandir@/p'
19562case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19563*datarootdir*) ac_datarootdir_seen=yes;;
19564*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19565  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19566$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19567_ACEOF
19568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19569  ac_datarootdir_hack='
19570  s&@datadir@&$datadir&g
19571  s&@docdir@&$docdir&g
19572  s&@infodir@&$infodir&g
19573  s&@localedir@&$localedir&g
19574  s&@mandir@&$mandir&g
19575  s&\\\${datarootdir}&$datarootdir&g' ;;
19576esac
19577_ACEOF
19578
19579# Neutralize VPATH when `$srcdir' = `.'.
19580# Shell code in configure.ac might set extrasub.
19581# FIXME: do we really want to maintain this feature?
19582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19583ac_sed_extra="$ac_vpsub
19584$extrasub
19585_ACEOF
19586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19587:t
19588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19589s|@configure_input@|$ac_sed_conf_input|;t t
19590s&@top_builddir@&$ac_top_builddir_sub&;t t
19591s&@top_build_prefix@&$ac_top_build_prefix&;t t
19592s&@srcdir@&$ac_srcdir&;t t
19593s&@abs_srcdir@&$ac_abs_srcdir&;t t
19594s&@top_srcdir@&$ac_top_srcdir&;t t
19595s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19596s&@builddir@&$ac_builddir&;t t
19597s&@abs_builddir@&$ac_abs_builddir&;t t
19598s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19599s&@INSTALL@&$ac_INSTALL&;t t
19600s&@MKDIR_P@&$ac_MKDIR_P&;t t
19601$ac_datarootdir_hack
19602"
19603eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19604  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19605
19606test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19607  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19608  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19609      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19610  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19611which seems to be undefined.  Please make sure it is defined" >&5
19612$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19613which seems to be undefined.  Please make sure it is defined" >&2;}
19614
19615  rm -f "$ac_tmp/stdin"
19616  case $ac_file in
19617  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19618  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19619  esac \
19620  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19621 ;;
19622  :H)
19623  #
19624  # CONFIG_HEADER
19625  #
19626  if test x"$ac_file" != x-; then
19627    {
19628      $as_echo "/* $configure_input  */" \
19629      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19630    } >"$ac_tmp/config.h" \
19631      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19632    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19633      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19634$as_echo "$as_me: $ac_file is unchanged" >&6;}
19635    else
19636      rm -f "$ac_file"
19637      mv "$ac_tmp/config.h" "$ac_file" \
19638	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19639    fi
19640  else
19641    $as_echo "/* $configure_input  */" \
19642      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19643      || as_fn_error $? "could not create -" "$LINENO" 5
19644  fi
19645# Compute "$ac_file"'s index in $config_headers.
19646_am_arg="$ac_file"
19647_am_stamp_count=1
19648for _am_header in $config_headers :; do
19649  case $_am_header in
19650    $_am_arg | $_am_arg:* )
19651      break ;;
19652    * )
19653      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19654  esac
19655done
19656echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19657$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19658	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19659	 X"$_am_arg" : 'X\(//\)$' \| \
19660	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19661$as_echo X"$_am_arg" |
19662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19663	    s//\1/
19664	    q
19665	  }
19666	  /^X\(\/\/\)[^/].*/{
19667	    s//\1/
19668	    q
19669	  }
19670	  /^X\(\/\/\)$/{
19671	    s//\1/
19672	    q
19673	  }
19674	  /^X\(\/\).*/{
19675	    s//\1/
19676	    q
19677	  }
19678	  s/.*/./; q'`/stamp-h$_am_stamp_count
19679 ;;
19680
19681  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19682$as_echo "$as_me: executing $ac_file commands" >&6;}
19683 ;;
19684  esac
19685
19686
19687  case $ac_file$ac_mode in
19688    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19689  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19690  # are listed without --file.  Let's play safe and only enable the eval
19691  # if we detect the quoting.
19692  case $CONFIG_FILES in
19693  *\'*) eval set x "$CONFIG_FILES" ;;
19694  *)   set x $CONFIG_FILES ;;
19695  esac
19696  shift
19697  for mf
19698  do
19699    # Strip MF so we end up with the name of the file.
19700    mf=`echo "$mf" | sed -e 's/:.*$//'`
19701    # Check whether this is an Automake generated Makefile or not.
19702    # We used to match only the files named `Makefile.in', but
19703    # some people rename them; so instead we look at the file content.
19704    # Grep'ing the first line is not enough: some people post-process
19705    # each Makefile.in and add a new line on top of each file to say so.
19706    # Grep'ing the whole file is not good either: AIX grep has a line
19707    # limit of 2048, but all sed's we know have understand at least 4000.
19708    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19709      dirpart=`$as_dirname -- "$mf" ||
19710$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19711	 X"$mf" : 'X\(//\)[^/]' \| \
19712	 X"$mf" : 'X\(//\)$' \| \
19713	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19714$as_echo X"$mf" |
19715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19716	    s//\1/
19717	    q
19718	  }
19719	  /^X\(\/\/\)[^/].*/{
19720	    s//\1/
19721	    q
19722	  }
19723	  /^X\(\/\/\)$/{
19724	    s//\1/
19725	    q
19726	  }
19727	  /^X\(\/\).*/{
19728	    s//\1/
19729	    q
19730	  }
19731	  s/.*/./; q'`
19732    else
19733      continue
19734    fi
19735    # Extract the definition of DEPDIR, am__include, and am__quote
19736    # from the Makefile without running `make'.
19737    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19738    test -z "$DEPDIR" && continue
19739    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19740    test -z "am__include" && continue
19741    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19742    # When using ansi2knr, U may be empty or an underscore; expand it
19743    U=`sed -n 's/^U = //p' < "$mf"`
19744    # Find all dependency output files, they are included files with
19745    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19746    # simplest approach to changing $(DEPDIR) to its actual value in the
19747    # expansion.
19748    for file in `sed -n "
19749      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19750	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19751      # Make sure the directory exists.
19752      test -f "$dirpart/$file" && continue
19753      fdir=`$as_dirname -- "$file" ||
19754$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19755	 X"$file" : 'X\(//\)[^/]' \| \
19756	 X"$file" : 'X\(//\)$' \| \
19757	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19758$as_echo X"$file" |
19759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19760	    s//\1/
19761	    q
19762	  }
19763	  /^X\(\/\/\)[^/].*/{
19764	    s//\1/
19765	    q
19766	  }
19767	  /^X\(\/\/\)$/{
19768	    s//\1/
19769	    q
19770	  }
19771	  /^X\(\/\).*/{
19772	    s//\1/
19773	    q
19774	  }
19775	  s/.*/./; q'`
19776      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19777      # echo "creating $dirpart/$file"
19778      echo '# dummy' > "$dirpart/$file"
19779    done
19780  done
19781}
19782 ;;
19783    "libtool":C)
19784
19785    # See if we are running on zsh, and set the options which allow our
19786    # commands through without removal of \ escapes.
19787    if test -n "${ZSH_VERSION+set}" ; then
19788      setopt NO_GLOB_SUBST
19789    fi
19790
19791    cfgfile="${ofile}T"
19792    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19793    $RM "$cfgfile"
19794
19795    cat <<_LT_EOF >> "$cfgfile"
19796#! $SHELL
19797
19798# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19799# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19800# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19801# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19802#
19803#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19804#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19805#                 Inc.
19806#   Written by Gordon Matzigkeit, 1996
19807#
19808#   This file is part of GNU Libtool.
19809#
19810# GNU Libtool is free software; you can redistribute it and/or
19811# modify it under the terms of the GNU General Public License as
19812# published by the Free Software Foundation; either version 2 of
19813# the License, or (at your option) any later version.
19814#
19815# As a special exception to the GNU General Public License,
19816# if you distribute this file as part of a program or library that
19817# is built using GNU Libtool, you may include this file under the
19818# same distribution terms that you use for the rest of that program.
19819#
19820# GNU Libtool is distributed in the hope that it will be useful,
19821# but WITHOUT ANY WARRANTY; without even the implied warranty of
19822# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19823# GNU General Public License for more details.
19824#
19825# You should have received a copy of the GNU General Public License
19826# along with GNU Libtool; see the file COPYING.  If not, a copy
19827# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19828# obtained by writing to the Free Software Foundation, Inc.,
19829# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19830
19831
19832# The names of the tagged configurations supported by this script.
19833available_tags=""
19834
19835# ### BEGIN LIBTOOL CONFIG
19836
19837# Whether or not to build static libraries.
19838build_old_libs=$enable_static
19839
19840# Which release of libtool.m4 was used?
19841macro_version=$macro_version
19842macro_revision=$macro_revision
19843
19844# Whether or not to build shared libraries.
19845build_libtool_libs=$enable_shared
19846
19847# What type of objects to build.
19848pic_mode=$pic_mode
19849
19850# Whether or not to optimize for fast installation.
19851fast_install=$enable_fast_install
19852
19853# Shell to use when invoking shell scripts.
19854SHELL=$lt_SHELL
19855
19856# An echo program that protects backslashes.
19857ECHO=$lt_ECHO
19858
19859# The host system.
19860host_alias=$host_alias
19861host=$host
19862host_os=$host_os
19863
19864# The build system.
19865build_alias=$build_alias
19866build=$build
19867build_os=$build_os
19868
19869# A sed program that does not truncate output.
19870SED=$lt_SED
19871
19872# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19873Xsed="\$SED -e 1s/^X//"
19874
19875# A grep program that handles long lines.
19876GREP=$lt_GREP
19877
19878# An ERE matcher.
19879EGREP=$lt_EGREP
19880
19881# A literal string matcher.
19882FGREP=$lt_FGREP
19883
19884# A BSD- or MS-compatible name lister.
19885NM=$lt_NM
19886
19887# Whether we need soft or hard links.
19888LN_S=$lt_LN_S
19889
19890# What is the maximum length of a command?
19891max_cmd_len=$max_cmd_len
19892
19893# Object file suffix (normally "o").
19894objext=$ac_objext
19895
19896# Executable file suffix (normally "").
19897exeext=$exeext
19898
19899# whether the shell understands "unset".
19900lt_unset=$lt_unset
19901
19902# turn spaces into newlines.
19903SP2NL=$lt_lt_SP2NL
19904
19905# turn newlines into spaces.
19906NL2SP=$lt_lt_NL2SP
19907
19908# convert \$build file names to \$host format.
19909to_host_file_cmd=$lt_cv_to_host_file_cmd
19910
19911# convert \$build files to toolchain format.
19912to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19913
19914# An object symbol dumper.
19915OBJDUMP=$lt_OBJDUMP
19916
19917# Method to check whether dependent libraries are shared objects.
19918deplibs_check_method=$lt_deplibs_check_method
19919
19920# Command to use when deplibs_check_method = "file_magic".
19921file_magic_cmd=$lt_file_magic_cmd
19922
19923# How to find potential files when deplibs_check_method = "file_magic".
19924file_magic_glob=$lt_file_magic_glob
19925
19926# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19927want_nocaseglob=$lt_want_nocaseglob
19928
19929# DLL creation program.
19930DLLTOOL=$lt_DLLTOOL
19931
19932# Command to associate shared and link libraries.
19933sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19934
19935# The archiver.
19936AR=$lt_AR
19937
19938# Flags to create an archive.
19939AR_FLAGS=$lt_AR_FLAGS
19940
19941# How to feed a file listing to the archiver.
19942archiver_list_spec=$lt_archiver_list_spec
19943
19944# A symbol stripping program.
19945STRIP=$lt_STRIP
19946
19947# Commands used to install an old-style archive.
19948RANLIB=$lt_RANLIB
19949old_postinstall_cmds=$lt_old_postinstall_cmds
19950old_postuninstall_cmds=$lt_old_postuninstall_cmds
19951
19952# Whether to use a lock for old archive extraction.
19953lock_old_archive_extraction=$lock_old_archive_extraction
19954
19955# A C compiler.
19956LTCC=$lt_CC
19957
19958# LTCC compiler flags.
19959LTCFLAGS=$lt_CFLAGS
19960
19961# Take the output of nm and produce a listing of raw symbols and C names.
19962global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19963
19964# Transform the output of nm in a proper C declaration.
19965global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19966
19967# Transform the output of nm in a C name address pair.
19968global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19969
19970# Transform the output of nm in a C name address pair when lib prefix is needed.
19971global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19972
19973# Specify filename containing input files for \$NM.
19974nm_file_list_spec=$lt_nm_file_list_spec
19975
19976# The root where to search for dependent libraries,and in which our libraries should be installed.
19977lt_sysroot=$lt_sysroot
19978
19979# The name of the directory that contains temporary libtool files.
19980objdir=$objdir
19981
19982# Used to examine libraries when file_magic_cmd begins with "file".
19983MAGIC_CMD=$MAGIC_CMD
19984
19985# Must we lock files when doing compilation?
19986need_locks=$lt_need_locks
19987
19988# Manifest tool.
19989MANIFEST_TOOL=$lt_MANIFEST_TOOL
19990
19991# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19992DSYMUTIL=$lt_DSYMUTIL
19993
19994# Tool to change global to local symbols on Mac OS X.
19995NMEDIT=$lt_NMEDIT
19996
19997# Tool to manipulate fat objects and archives on Mac OS X.
19998LIPO=$lt_LIPO
19999
20000# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20001OTOOL=$lt_OTOOL
20002
20003# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20004OTOOL64=$lt_OTOOL64
20005
20006# Old archive suffix (normally "a").
20007libext=$libext
20008
20009# Shared library suffix (normally ".so").
20010shrext_cmds=$lt_shrext_cmds
20011
20012# The commands to extract the exported symbol list from a shared archive.
20013extract_expsyms_cmds=$lt_extract_expsyms_cmds
20014
20015# Variables whose values should be saved in libtool wrapper scripts and
20016# restored at link time.
20017variables_saved_for_relink=$lt_variables_saved_for_relink
20018
20019# Do we need the "lib" prefix for modules?
20020need_lib_prefix=$need_lib_prefix
20021
20022# Do we need a version for libraries?
20023need_version=$need_version
20024
20025# Library versioning type.
20026version_type=$version_type
20027
20028# Shared library runtime path variable.
20029runpath_var=$runpath_var
20030
20031# Shared library path variable.
20032shlibpath_var=$shlibpath_var
20033
20034# Is shlibpath searched before the hard-coded library search path?
20035shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20036
20037# Format of library name prefix.
20038libname_spec=$lt_libname_spec
20039
20040# List of archive names.  First name is the real one, the rest are links.
20041# The last name is the one that the linker finds with -lNAME
20042library_names_spec=$lt_library_names_spec
20043
20044# The coded name of the library, if different from the real name.
20045soname_spec=$lt_soname_spec
20046
20047# Permission mode override for installation of shared libraries.
20048install_override_mode=$lt_install_override_mode
20049
20050# Command to use after installation of a shared archive.
20051postinstall_cmds=$lt_postinstall_cmds
20052
20053# Command to use after uninstallation of a shared archive.
20054postuninstall_cmds=$lt_postuninstall_cmds
20055
20056# Commands used to finish a libtool library installation in a directory.
20057finish_cmds=$lt_finish_cmds
20058
20059# As "finish_cmds", except a single script fragment to be evaled but
20060# not shown.
20061finish_eval=$lt_finish_eval
20062
20063# Whether we should hardcode library paths into libraries.
20064hardcode_into_libs=$hardcode_into_libs
20065
20066# Compile-time system search path for libraries.
20067sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20068
20069# Run-time system search path for libraries.
20070sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20071
20072# Whether dlopen is supported.
20073dlopen_support=$enable_dlopen
20074
20075# Whether dlopen of programs is supported.
20076dlopen_self=$enable_dlopen_self
20077
20078# Whether dlopen of statically linked programs is supported.
20079dlopen_self_static=$enable_dlopen_self_static
20080
20081# Commands to strip libraries.
20082old_striplib=$lt_old_striplib
20083striplib=$lt_striplib
20084
20085
20086# The linker used to build libraries.
20087LD=$lt_LD
20088
20089# How to create reloadable object files.
20090reload_flag=$lt_reload_flag
20091reload_cmds=$lt_reload_cmds
20092
20093# Commands used to build an old-style archive.
20094old_archive_cmds=$lt_old_archive_cmds
20095
20096# A language specific compiler.
20097CC=$lt_compiler
20098
20099# Is the compiler the GNU compiler?
20100with_gcc=$GCC
20101
20102# Compiler flag to turn off builtin functions.
20103no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20104
20105# Additional compiler flags for building library objects.
20106pic_flag=$lt_lt_prog_compiler_pic
20107
20108# How to pass a linker flag through the compiler.
20109wl=$lt_lt_prog_compiler_wl
20110
20111# Compiler flag to prevent dynamic linking.
20112link_static_flag=$lt_lt_prog_compiler_static
20113
20114# Does compiler simultaneously support -c and -o options?
20115compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20116
20117# Whether or not to add -lc for building shared libraries.
20118build_libtool_need_lc=$archive_cmds_need_lc
20119
20120# Whether or not to disallow shared libs when runtime libs are static.
20121allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20122
20123# Compiler flag to allow reflexive dlopens.
20124export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20125
20126# Compiler flag to generate shared objects directly from archives.
20127whole_archive_flag_spec=$lt_whole_archive_flag_spec
20128
20129# Whether the compiler copes with passing no objects directly.
20130compiler_needs_object=$lt_compiler_needs_object
20131
20132# Create an old-style archive from a shared archive.
20133old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20134
20135# Create a temporary old-style archive to link instead of a shared archive.
20136old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20137
20138# Commands used to build a shared archive.
20139archive_cmds=$lt_archive_cmds
20140archive_expsym_cmds=$lt_archive_expsym_cmds
20141
20142# Commands used to build a loadable module if different from building
20143# a shared archive.
20144module_cmds=$lt_module_cmds
20145module_expsym_cmds=$lt_module_expsym_cmds
20146
20147# Whether we are building with GNU ld or not.
20148with_gnu_ld=$lt_with_gnu_ld
20149
20150# Flag that allows shared libraries with undefined symbols to be built.
20151allow_undefined_flag=$lt_allow_undefined_flag
20152
20153# Flag that enforces no undefined symbols.
20154no_undefined_flag=$lt_no_undefined_flag
20155
20156# Flag to hardcode \$libdir into a binary during linking.
20157# This must work even if \$libdir does not exist
20158hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20159
20160# If ld is used when linking, flag to hardcode \$libdir into a binary
20161# during linking.  This must work even if \$libdir does not exist.
20162hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20163
20164# Whether we need a single "-rpath" flag with a separated argument.
20165hardcode_libdir_separator=$lt_hardcode_libdir_separator
20166
20167# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20168# DIR into the resulting binary.
20169hardcode_direct=$hardcode_direct
20170
20171# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20172# DIR into the resulting binary and the resulting library dependency is
20173# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20174# library is relocated.
20175hardcode_direct_absolute=$hardcode_direct_absolute
20176
20177# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20178# into the resulting binary.
20179hardcode_minus_L=$hardcode_minus_L
20180
20181# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20182# into the resulting binary.
20183hardcode_shlibpath_var=$hardcode_shlibpath_var
20184
20185# Set to "yes" if building a shared library automatically hardcodes DIR
20186# into the library and all subsequent libraries and executables linked
20187# against it.
20188hardcode_automatic=$hardcode_automatic
20189
20190# Set to yes if linker adds runtime paths of dependent libraries
20191# to runtime path list.
20192inherit_rpath=$inherit_rpath
20193
20194# Whether libtool must link a program against all its dependency libraries.
20195link_all_deplibs=$link_all_deplibs
20196
20197# Set to "yes" if exported symbols are required.
20198always_export_symbols=$always_export_symbols
20199
20200# The commands to list exported symbols.
20201export_symbols_cmds=$lt_export_symbols_cmds
20202
20203# Symbols that should not be listed in the preloaded symbols.
20204exclude_expsyms=$lt_exclude_expsyms
20205
20206# Symbols that must always be exported.
20207include_expsyms=$lt_include_expsyms
20208
20209# Commands necessary for linking programs (against libraries) with templates.
20210prelink_cmds=$lt_prelink_cmds
20211
20212# Commands necessary for finishing linking programs.
20213postlink_cmds=$lt_postlink_cmds
20214
20215# Specify filename containing input files.
20216file_list_spec=$lt_file_list_spec
20217
20218# How to hardcode a shared library path into an executable.
20219hardcode_action=$hardcode_action
20220
20221# ### END LIBTOOL CONFIG
20222
20223_LT_EOF
20224
20225  case $host_os in
20226  aix3*)
20227    cat <<\_LT_EOF >> "$cfgfile"
20228# AIX sometimes has problems with the GCC collect2 program.  For some
20229# reason, if we set the COLLECT_NAMES environment variable, the problems
20230# vanish in a puff of smoke.
20231if test "X${COLLECT_NAMES+set}" != Xset; then
20232  COLLECT_NAMES=
20233  export COLLECT_NAMES
20234fi
20235_LT_EOF
20236    ;;
20237  esac
20238
20239
20240ltmain="$ac_aux_dir/ltmain.sh"
20241
20242
20243  # We use sed instead of cat because bash on DJGPP gets confused if
20244  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20245  # text mode, it properly converts lines to CR/LF.  This bash problem
20246  # is reportedly fixed, but why not run on old versions too?
20247  sed '$q' "$ltmain" >> "$cfgfile" \
20248     || (rm -f "$cfgfile"; exit 1)
20249
20250  if test x"$xsi_shell" = xyes; then
20251  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20252func_dirname ()\
20253{\
20254\    case ${1} in\
20255\      */*) func_dirname_result="${1%/*}${2}" ;;\
20256\      *  ) func_dirname_result="${3}" ;;\
20257\    esac\
20258} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20259  && mv -f "$cfgfile.tmp" "$cfgfile" \
20260    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20261test 0 -eq $? || _lt_function_replace_fail=:
20262
20263
20264  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20265func_basename ()\
20266{\
20267\    func_basename_result="${1##*/}"\
20268} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20269  && mv -f "$cfgfile.tmp" "$cfgfile" \
20270    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20271test 0 -eq $? || _lt_function_replace_fail=:
20272
20273
20274  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20275func_dirname_and_basename ()\
20276{\
20277\    case ${1} in\
20278\      */*) func_dirname_result="${1%/*}${2}" ;;\
20279\      *  ) func_dirname_result="${3}" ;;\
20280\    esac\
20281\    func_basename_result="${1##*/}"\
20282} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20283  && mv -f "$cfgfile.tmp" "$cfgfile" \
20284    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20285test 0 -eq $? || _lt_function_replace_fail=:
20286
20287
20288  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20289func_stripname ()\
20290{\
20291\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20292\    # positional parameters, so assign one to ordinary parameter first.\
20293\    func_stripname_result=${3}\
20294\    func_stripname_result=${func_stripname_result#"${1}"}\
20295\    func_stripname_result=${func_stripname_result%"${2}"}\
20296} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20297  && mv -f "$cfgfile.tmp" "$cfgfile" \
20298    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20299test 0 -eq $? || _lt_function_replace_fail=:
20300
20301
20302  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20303func_split_long_opt ()\
20304{\
20305\    func_split_long_opt_name=${1%%=*}\
20306\    func_split_long_opt_arg=${1#*=}\
20307} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20308  && mv -f "$cfgfile.tmp" "$cfgfile" \
20309    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20310test 0 -eq $? || _lt_function_replace_fail=:
20311
20312
20313  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20314func_split_short_opt ()\
20315{\
20316\    func_split_short_opt_arg=${1#??}\
20317\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20318} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20319  && mv -f "$cfgfile.tmp" "$cfgfile" \
20320    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20321test 0 -eq $? || _lt_function_replace_fail=:
20322
20323
20324  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20325func_lo2o ()\
20326{\
20327\    case ${1} in\
20328\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20329\      *)    func_lo2o_result=${1} ;;\
20330\    esac\
20331} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20332  && mv -f "$cfgfile.tmp" "$cfgfile" \
20333    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20334test 0 -eq $? || _lt_function_replace_fail=:
20335
20336
20337  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20338func_xform ()\
20339{\
20340    func_xform_result=${1%.*}.lo\
20341} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20342  && mv -f "$cfgfile.tmp" "$cfgfile" \
20343    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20344test 0 -eq $? || _lt_function_replace_fail=:
20345
20346
20347  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20348func_arith ()\
20349{\
20350    func_arith_result=$(( $* ))\
20351} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20352  && mv -f "$cfgfile.tmp" "$cfgfile" \
20353    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20354test 0 -eq $? || _lt_function_replace_fail=:
20355
20356
20357  sed -e '/^func_len ()$/,/^} # func_len /c\
20358func_len ()\
20359{\
20360    func_len_result=${#1}\
20361} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20362  && mv -f "$cfgfile.tmp" "$cfgfile" \
20363    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20364test 0 -eq $? || _lt_function_replace_fail=:
20365
20366fi
20367
20368if test x"$lt_shell_append" = xyes; then
20369  sed -e '/^func_append ()$/,/^} # func_append /c\
20370func_append ()\
20371{\
20372    eval "${1}+=\\${2}"\
20373} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20374  && mv -f "$cfgfile.tmp" "$cfgfile" \
20375    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20376test 0 -eq $? || _lt_function_replace_fail=:
20377
20378
20379  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20380func_append_quoted ()\
20381{\
20382\    func_quote_for_eval "${2}"\
20383\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20384} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20385  && mv -f "$cfgfile.tmp" "$cfgfile" \
20386    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20387test 0 -eq $? || _lt_function_replace_fail=:
20388
20389
20390  # Save a `func_append' function call where possible by direct use of '+='
20391  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20392    && mv -f "$cfgfile.tmp" "$cfgfile" \
20393      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20394  test 0 -eq $? || _lt_function_replace_fail=:
20395else
20396  # Save a `func_append' function call even when '+=' is not available
20397  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20398    && mv -f "$cfgfile.tmp" "$cfgfile" \
20399      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20400  test 0 -eq $? || _lt_function_replace_fail=:
20401fi
20402
20403if test x"$_lt_function_replace_fail" = x":"; then
20404  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20405$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20406fi
20407
20408
20409   mv -f "$cfgfile" "$ofile" ||
20410    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20411  chmod +x "$ofile"
20412
20413 ;;
20414
20415  esac
20416done # for ac_tag
20417
20418
20419as_fn_exit 0
20420_ACEOF
20421ac_clean_files=$ac_clean_files_save
20422
20423test $ac_write_fail = 0 ||
20424  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20425
20426
20427# configure is writing to config.log, and then calls config.status.
20428# config.status does its own redirection, appending to config.log.
20429# Unfortunately, on DOS this fails, as config.log is still kept open
20430# by configure, so config.status won't be able to write to it; its
20431# output is simply discarded.  So we exec the FD to /dev/null,
20432# effectively closing config.log, so it can be properly (re)opened and
20433# appended to by config.status.  When coming back to configure, we
20434# need to make the FD available again.
20435if test "$no_create" != yes; then
20436  ac_cs_success=:
20437  ac_config_status_args=
20438  test "$silent" = yes &&
20439    ac_config_status_args="$ac_config_status_args --quiet"
20440  exec 5>/dev/null
20441  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20442  exec 5>>config.log
20443  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20444  # would make configure fail if this is the last instruction.
20445  $ac_cs_success || as_fn_exit 1
20446fi
20447if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20448  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20449$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20450fi
20451
20452