1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-ati 6.14.6.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='xf86-video-ati'
573PACKAGE_TARNAME='xf86-video-ati'
574PACKAGE_VERSION='6.14.6'
575PACKAGE_STRING='xf86-video-ati 6.14.6'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620DRIVER_NAME
621moduledir
622XSERVER_LIBPCIACCESS_FALSE
623XSERVER_LIBPCIACCESS_TRUE
624PCIACCESS_LIBS
625PCIACCESS_CFLAGS
626XF86DRM_MODE_FALSE
627XF86DRM_MODE_TRUE
628USE_EXA_FALSE
629USE_EXA_TRUE
630LIBUDEV_FALSE
631LIBUDEV_TRUE
632DRM_MODE_FALSE
633DRM_MODE_TRUE
634LIBUDEV_LIBS
635LIBUDEV_CFLAGS
636LIBDRM_RADEON_LIBS
637LIBDRM_RADEON_CFLAGS
638DRI_FALSE
639DRI_TRUE
640DRI_LIBS
641DRI_CFLAGS
642HAVE_XEXTPROTO_71_FALSE
643HAVE_XEXTPROTO_71_TRUE
644XEXT_LIBS
645XEXT_CFLAGS
646XORG_LIBS
647XORG_CFLAGS
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653MANIFEST_TOOL
654RANLIB
655ac_ct_AR
656AR
657DLLTOOL
658OBJDUMP
659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665LIBTOOL
666MAINT
667MAINTAINER_MODE_FALSE
668MAINTAINER_MODE_TRUE
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679am__untar
680am__tar
681AMTAR
682am__leading_dot
683SET_MAKE
684AWK
685mkdir_p
686MKDIR_P
687INSTALL_STRIP_PROGRAM
688STRIP
689install_sh
690MAKEINFO
691AUTOHEADER
692AUTOMAKE
693AUTOCONF
694ACLOCAL
695VERSION
696PACKAGE
697CYGPATH_W
698am__isrc
699AM_BACKSLASH
700AM_DEFAULT_VERBOSITY
701AM_DEFAULT_V
702AM_V
703MAN_SUBSTS
704XORG_MAN_PAGE
705ADMIN_MAN_DIR
706DRIVER_MAN_DIR
707MISC_MAN_DIR
708FILE_MAN_DIR
709LIB_MAN_DIR
710APP_MAN_DIR
711ADMIN_MAN_SUFFIX
712DRIVER_MAN_SUFFIX
713MISC_MAN_SUFFIX
714FILE_MAN_SUFFIX
715LIB_MAN_SUFFIX
716APP_MAN_SUFFIX
717SED
718host_os
719host_vendor
720host_cpu
721host
722build_os
723build_vendor
724build_cpu
725build
726INSTALL_CMD
727PKG_CONFIG_LIBDIR
728PKG_CONFIG_PATH
729PKG_CONFIG
730CHANGELOG_CMD
731STRICT_CFLAGS
732CWARNFLAGS
733BASE_CFLAGS
734EGREP
735GREP
736CPP
737OBJEXT
738EXEEXT
739ac_ct_CC
740CPPFLAGS
741LDFLAGS
742CFLAGS
743CC
744INSTALL_DATA
745INSTALL_SCRIPT
746INSTALL_PROGRAM
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
777PACKAGE_URL
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
785ac_subst_files=''
786ac_user_opts='
787enable_option_checking
788enable_selective_werror
789enable_strict_compilation
790enable_silent_rules
791enable_dependency_tracking
792enable_largefile
793enable_maintainer_mode
794enable_static
795enable_shared
796with_pic
797enable_fast_install
798with_gnu_ld
799with_sysroot
800enable_libtool_lock
801with_xorg_module_dir
802enable_dri
803enable_exa
804enable_kms
805'
806      ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812LIBS
813CPPFLAGS
814CPP
815PKG_CONFIG
816PKG_CONFIG_PATH
817PKG_CONFIG_LIBDIR
818XORG_CFLAGS
819XORG_LIBS
820XEXT_CFLAGS
821XEXT_LIBS
822DRI_CFLAGS
823DRI_LIBS
824LIBDRM_RADEON_CFLAGS
825LIBDRM_RADEON_LIBS
826LIBUDEV_CFLAGS
827LIBUDEV_LIBS
828PCIACCESS_CFLAGS
829PCIACCESS_LIBS'
830
831
832# Initialize some variables set by options.
833ac_init_help=
834ac_init_version=false
835ac_unrecognized_opts=
836ac_unrecognized_sep=
837# The variables have the same names as the options, with
838# dashes changed to underlines.
839cache_file=/dev/null
840exec_prefix=NONE
841no_create=
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
850verbose=
851x_includes=NONE
852x_libraries=NONE
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
859# (The list follows the same order as the GNU Coding Standards.)
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
879
880ac_prev=
881ac_dashdash=
882for ac_option
883do
884  # If the previous option needs an argument, assign it.
885  if test -n "$ac_prev"; then
886    eval $ac_prev=\$ac_option
887    ac_prev=
888    continue
889  fi
890
891  case $ac_option in
892  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893  *=)   ac_optarg= ;;
894  *)    ac_optarg=yes ;;
895  esac
896
897  # Accept the important Cygnus configure options, so we can diagnose typos.
898
899  case $ac_dashdash$ac_option in
900  --)
901    ac_dashdash=yes ;;
902
903  -bindir | --bindir | --bindi | --bind | --bin | --bi)
904    ac_prev=bindir ;;
905  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906    bindir=$ac_optarg ;;
907
908  -build | --build | --buil | --bui | --bu)
909    ac_prev=build_alias ;;
910  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911    build_alias=$ac_optarg ;;
912
913  -cache-file | --cache-file | --cache-fil | --cache-fi \
914  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915    ac_prev=cache_file ;;
916  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918    cache_file=$ac_optarg ;;
919
920  --config-cache | -C)
921    cache_file=config.cache ;;
922
923  -datadir | --datadir | --datadi | --datad)
924    ac_prev=datadir ;;
925  -datadir=* | --datadir=* | --datadi=* | --datad=*)
926    datadir=$ac_optarg ;;
927
928  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929  | --dataroo | --dataro | --datar)
930    ac_prev=datarootdir ;;
931  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933    datarootdir=$ac_optarg ;;
934
935  -disable-* | --disable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=no ;;
950
951  -docdir | --docdir | --docdi | --doc | --do)
952    ac_prev=docdir ;;
953  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954    docdir=$ac_optarg ;;
955
956  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957    ac_prev=dvidir ;;
958  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959    dvidir=$ac_optarg ;;
960
961  -enable-* | --enable-*)
962    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963    # Reject names that are not valid shell variable names.
964    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965      as_fn_error $? "invalid feature name: $ac_useropt"
966    ac_useropt_orig=$ac_useropt
967    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968    case $ac_user_opts in
969      *"
970"enable_$ac_useropt"
971"*) ;;
972      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973	 ac_unrecognized_sep=', ';;
974    esac
975    eval enable_$ac_useropt=\$ac_optarg ;;
976
977  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979  | --exec | --exe | --ex)
980    ac_prev=exec_prefix ;;
981  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983  | --exec=* | --exe=* | --ex=*)
984    exec_prefix=$ac_optarg ;;
985
986  -gas | --gas | --ga | --g)
987    # Obsolete; use --with-gas.
988    with_gas=yes ;;
989
990  -help | --help | --hel | --he | -h)
991    ac_init_help=long ;;
992  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993    ac_init_help=recursive ;;
994  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995    ac_init_help=short ;;
996
997  -host | --host | --hos | --ho)
998    ac_prev=host_alias ;;
999  -host=* | --host=* | --hos=* | --ho=*)
1000    host_alias=$ac_optarg ;;
1001
1002  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003    ac_prev=htmldir ;;
1004  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005  | --ht=*)
1006    htmldir=$ac_optarg ;;
1007
1008  -includedir | --includedir | --includedi | --included | --include \
1009  | --includ | --inclu | --incl | --inc)
1010    ac_prev=includedir ;;
1011  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012  | --includ=* | --inclu=* | --incl=* | --inc=*)
1013    includedir=$ac_optarg ;;
1014
1015  -infodir | --infodir | --infodi | --infod | --info | --inf)
1016    ac_prev=infodir ;;
1017  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018    infodir=$ac_optarg ;;
1019
1020  -libdir | --libdir | --libdi | --libd)
1021    ac_prev=libdir ;;
1022  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023    libdir=$ac_optarg ;;
1024
1025  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026  | --libexe | --libex | --libe)
1027    ac_prev=libexecdir ;;
1028  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029  | --libexe=* | --libex=* | --libe=*)
1030    libexecdir=$ac_optarg ;;
1031
1032  -localedir | --localedir | --localedi | --localed | --locale)
1033    ac_prev=localedir ;;
1034  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035    localedir=$ac_optarg ;;
1036
1037  -localstatedir | --localstatedir | --localstatedi | --localstated \
1038  | --localstate | --localstat | --localsta | --localst | --locals)
1039    ac_prev=localstatedir ;;
1040  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042    localstatedir=$ac_optarg ;;
1043
1044  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045    ac_prev=mandir ;;
1046  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047    mandir=$ac_optarg ;;
1048
1049  -nfp | --nfp | --nf)
1050    # Obsolete; use --without-fp.
1051    with_fp=no ;;
1052
1053  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054  | --no-cr | --no-c | -n)
1055    no_create=yes ;;
1056
1057  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059    no_recursion=yes ;;
1060
1061  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063  | --oldin | --oldi | --old | --ol | --o)
1064    ac_prev=oldincludedir ;;
1065  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068    oldincludedir=$ac_optarg ;;
1069
1070  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071    ac_prev=prefix ;;
1072  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073    prefix=$ac_optarg ;;
1074
1075  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076  | --program-pre | --program-pr | --program-p)
1077    ac_prev=program_prefix ;;
1078  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080    program_prefix=$ac_optarg ;;
1081
1082  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083  | --program-suf | --program-su | --program-s)
1084    ac_prev=program_suffix ;;
1085  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087    program_suffix=$ac_optarg ;;
1088
1089  -program-transform-name | --program-transform-name \
1090  | --program-transform-nam | --program-transform-na \
1091  | --program-transform-n | --program-transform- \
1092  | --program-transform | --program-transfor \
1093  | --program-transfo | --program-transf \
1094  | --program-trans | --program-tran \
1095  | --progr-tra | --program-tr | --program-t)
1096    ac_prev=program_transform_name ;;
1097  -program-transform-name=* | --program-transform-name=* \
1098  | --program-transform-nam=* | --program-transform-na=* \
1099  | --program-transform-n=* | --program-transform-=* \
1100  | --program-transform=* | --program-transfor=* \
1101  | --program-transfo=* | --program-transf=* \
1102  | --program-trans=* | --program-tran=* \
1103  | --progr-tra=* | --program-tr=* | --program-t=*)
1104    program_transform_name=$ac_optarg ;;
1105
1106  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107    ac_prev=pdfdir ;;
1108  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109    pdfdir=$ac_optarg ;;
1110
1111  -psdir | --psdir | --psdi | --psd | --ps)
1112    ac_prev=psdir ;;
1113  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114    psdir=$ac_optarg ;;
1115
1116  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117  | -silent | --silent | --silen | --sile | --sil)
1118    silent=yes ;;
1119
1120  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121    ac_prev=sbindir ;;
1122  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123  | --sbi=* | --sb=*)
1124    sbindir=$ac_optarg ;;
1125
1126  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128  | --sharedst | --shareds | --shared | --share | --shar \
1129  | --sha | --sh)
1130    ac_prev=sharedstatedir ;;
1131  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134  | --sha=* | --sh=*)
1135    sharedstatedir=$ac_optarg ;;
1136
1137  -site | --site | --sit)
1138    ac_prev=site ;;
1139  -site=* | --site=* | --sit=*)
1140    site=$ac_optarg ;;
1141
1142  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143    ac_prev=srcdir ;;
1144  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145    srcdir=$ac_optarg ;;
1146
1147  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148  | --syscon | --sysco | --sysc | --sys | --sy)
1149    ac_prev=sysconfdir ;;
1150  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152    sysconfdir=$ac_optarg ;;
1153
1154  -target | --target | --targe | --targ | --tar | --ta | --t)
1155    ac_prev=target_alias ;;
1156  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157    target_alias=$ac_optarg ;;
1158
1159  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160    verbose=yes ;;
1161
1162  -version | --version | --versio | --versi | --vers | -V)
1163    ac_init_version=: ;;
1164
1165  -with-* | --with-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=\$ac_optarg ;;
1180
1181  -without-* | --without-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: $ac_useropt"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=no ;;
1196
1197  --x)
1198    # Obsolete; use --with-x.
1199    with_x=yes ;;
1200
1201  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202  | --x-incl | --x-inc | --x-in | --x-i)
1203    ac_prev=x_includes ;;
1204  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206    x_includes=$ac_optarg ;;
1207
1208  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210    ac_prev=x_libraries ;;
1211  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213    x_libraries=$ac_optarg ;;
1214
1215  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
1217    ;;
1218
1219  *=*)
1220    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221    # Reject names that are not valid shell variable names.
1222    case $ac_envvar in #(
1223      '' | [0-9]* | *[!_$as_cr_alnum]* )
1224      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225    esac
1226    eval $ac_envvar=\$ac_optarg
1227    export $ac_envvar ;;
1228
1229  *)
1230    # FIXME: should be removed in autoconf 3.0.
1231    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235    ;;
1236
1237  esac
1238done
1239
1240if test -n "$ac_prev"; then
1241  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242  as_fn_error $? "missing argument to $ac_option"
1243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246  case $enable_option_checking in
1247    no) ;;
1248    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250  esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255		datadir sysconfdir sharedstatedir localstatedir includedir \
1256		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257		libdir localedir mandir
1258do
1259  eval ac_val=\$$ac_var
1260  # Remove trailing slashes.
1261  case $ac_val in
1262    */ )
1263      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264      eval $ac_var=\$ac_val;;
1265  esac
1266  # Be sure to have absolute directory names.
1267  case $ac_val in
1268    [\\/$]* | ?:[\\/]* )  continue;;
1269    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270  esac
1271  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283  if test "x$build_alias" = x; then
1284    cross_compiling=maybe
1285    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1286    If a cross compiler is detected then cross compile mode will be used" >&2
1287  elif test "x$build_alias" != "x$host_alias"; then
1288    cross_compiling=yes
1289  fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
1296
1297
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301  as_fn_error $? "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303  as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308  ac_srcdir_defaulted=yes
1309  # Try the directory containing this script, then the parent directory.
1310  ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312	 X"$as_myself" : 'X\(//\)[^/]' \| \
1313	 X"$as_myself" : 'X\(//\)$' \| \
1314	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)[^/].*/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\/\)$/{
1325	    s//\1/
1326	    q
1327	  }
1328	  /^X\(\/\).*/{
1329	    s//\1/
1330	    q
1331	  }
1332	  s/.*/./; q'`
1333  srcdir=$ac_confdir
1334  if test ! -r "$srcdir/$ac_unique_file"; then
1335    srcdir=..
1336  fi
1337else
1338  ac_srcdir_defaulted=no
1339fi
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347	pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350  srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
1358for ac_var in $ac_precious_vars; do
1359  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_env_${ac_var}_value=\$${ac_var}
1361  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363done
1364
1365#
1366# Report the --help message.
1367#
1368if test "$ac_init_help" = "long"; then
1369  # Omit some internal or obsolete options to make the list less imposing.
1370  # This message is too long to be a string in the A/UX 3.1 sh.
1371  cat <<_ACEOF
1372\`configure' configures xf86-video-ati 6.14.6 to adapt to many kinds of systems.
1373
1374Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379Defaults for the options are specified in brackets.
1380
1381Configuration:
1382  -h, --help              display this help and exit
1383      --help=short        display options specific to this package
1384      --help=recursive    display the short help of all the included packages
1385  -V, --version           display version information and exit
1386  -q, --quiet, --silent   do not print \`checking ...' messages
1387      --cache-file=FILE   cache test results in FILE [disabled]
1388  -C, --config-cache      alias for \`--cache-file=config.cache'
1389  -n, --no-create         do not create output files
1390      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392Installation directories:
1393  --prefix=PREFIX         install architecture-independent files in PREFIX
1394                          [$ac_default_prefix]
1395  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                          [PREFIX]
1397
1398By default, \`make install' will install all the files in
1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401for instance \`--prefix=\$HOME'.
1402
1403For better control, use the options below.
1404
1405Fine tuning of the installation directories:
1406  --bindir=DIR            user executables [EPREFIX/bin]
1407  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408  --libexecdir=DIR        program executables [EPREFIX/libexec]
1409  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412  --libdir=DIR            object code libraries [EPREFIX/lib]
1413  --includedir=DIR        C header files [PREFIX/include]
1414  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417  --infodir=DIR           info documentation [DATAROOTDIR/info]
1418  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419  --mandir=DIR            man documentation [DATAROOTDIR/man]
1420  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ati]
1421  --htmldir=DIR           html documentation [DOCDIR]
1422  --dvidir=DIR            dvi documentation [DOCDIR]
1423  --pdfdir=DIR            pdf documentation [DOCDIR]
1424  --psdir=DIR             ps documentation [DOCDIR]
1425_ACEOF
1426
1427  cat <<\_ACEOF
1428
1429Program names:
1430  --program-prefix=PREFIX            prepend PREFIX to installed program names
1431  --program-suffix=SUFFIX            append SUFFIX to installed program names
1432  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1433
1434System types:
1435  --build=BUILD     configure for building on BUILD [guessed]
1436  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437_ACEOF
1438fi
1439
1440if test -n "$ac_init_help"; then
1441  case $ac_init_help in
1442     short | recursive ) echo "Configuration of xf86-video-ati 6.14.6:";;
1443   esac
1444  cat <<\_ACEOF
1445
1446Optional Features:
1447  --disable-option-checking  ignore unrecognized --enable/--with options
1448  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450  --disable-selective-werror
1451                          Turn off selective compiler errors. (default:
1452                          enabled)
1453  --enable-strict-compilation
1454                          Enable all warnings from compiler and make them
1455                          errors (default: disabled)
1456  --enable-silent-rules          less verbose build output (undo: `make V=1')
1457  --disable-silent-rules         verbose build output (undo: `make V=0')
1458  --disable-dependency-tracking  speeds up one-time build
1459  --enable-dependency-tracking   do not reject slow dependency extractors
1460  --disable-largefile     omit support for large files
1461  --enable-maintainer-mode  enable make rules and dependencies not useful
1462			  (and sometimes confusing) to the casual installer
1463  --enable-static[=PKGS]  build static libraries [default=no]
1464  --enable-shared[=PKGS]  build shared libraries [default=yes]
1465  --enable-fast-install[=PKGS]
1466                          optimize for fast installation [default=yes]
1467  --disable-libtool-lock  avoid locking (might break parallel builds)
1468  --disable-dri           Disable DRI support [[default=auto]]
1469  --disable-exa           Disable EXA support [[default=enabled]]
1470  --disable-kms           Disable KMS support [[default=enabled]]
1471
1472Optional Packages:
1473  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1476                          both]
1477  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1478  --with-sysroot=DIR Search for dependent libraries within DIR
1479                        (or the compiler's sysroot if not specified).
1480  --with-xorg-module-dir=DIR
1481                          Default xorg module directory
1482                          [[default=$libdir/xorg/modules]]
1483
1484Some influential environment variables:
1485  CC          C compiler command
1486  CFLAGS      C compiler flags
1487  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488              nonstandard directory <lib dir>
1489  LIBS        libraries to pass to the linker, e.g. -l<library>
1490  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491              you have headers in a nonstandard directory <include dir>
1492  CPP         C preprocessor
1493  PKG_CONFIG  path to pkg-config utility
1494  PKG_CONFIG_PATH
1495              directories to add to pkg-config's search path
1496  PKG_CONFIG_LIBDIR
1497              path overriding pkg-config's built-in search path
1498  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1499  XORG_LIBS   linker flags for XORG, overriding pkg-config
1500  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1501  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1502  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1503  DRI_LIBS    linker flags for DRI, overriding pkg-config
1504  LIBDRM_RADEON_CFLAGS
1505              C compiler flags for LIBDRM_RADEON, overriding pkg-config
1506  LIBDRM_RADEON_LIBS
1507              linker flags for LIBDRM_RADEON, overriding pkg-config
1508  LIBUDEV_CFLAGS
1509              C compiler flags for LIBUDEV, overriding pkg-config
1510  LIBUDEV_LIBS
1511              linker flags for LIBUDEV, overriding pkg-config
1512  PCIACCESS_CFLAGS
1513              C compiler flags for PCIACCESS, overriding pkg-config
1514  PCIACCESS_LIBS
1515              linker flags for PCIACCESS, overriding pkg-config
1516
1517Use these variables to override the choices made by `configure' or to help
1518it to find libraries and programs with nonstandard names/locations.
1519
1520Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1521_ACEOF
1522ac_status=$?
1523fi
1524
1525if test "$ac_init_help" = "recursive"; then
1526  # If there are subdirs, report their specific --help.
1527  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528    test -d "$ac_dir" ||
1529      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530      continue
1531    ac_builddir=.
1532
1533case "$ac_dir" in
1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535*)
1536  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537  # A ".." for each directory in $ac_dir_suffix.
1538  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539  case $ac_top_builddir_sub in
1540  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542  esac ;;
1543esac
1544ac_abs_top_builddir=$ac_pwd
1545ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546# for backward compatibility:
1547ac_top_builddir=$ac_top_build_prefix
1548
1549case $srcdir in
1550  .)  # We are building in place.
1551    ac_srcdir=.
1552    ac_top_srcdir=$ac_top_builddir_sub
1553    ac_abs_top_srcdir=$ac_pwd ;;
1554  [\\/]* | ?:[\\/]* )  # Absolute name.
1555    ac_srcdir=$srcdir$ac_dir_suffix;
1556    ac_top_srcdir=$srcdir
1557    ac_abs_top_srcdir=$srcdir ;;
1558  *) # Relative name.
1559    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560    ac_top_srcdir=$ac_top_build_prefix$srcdir
1561    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562esac
1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565    cd "$ac_dir" || { ac_status=$?; continue; }
1566    # Check for guested configure.
1567    if test -f "$ac_srcdir/configure.gnu"; then
1568      echo &&
1569      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570    elif test -f "$ac_srcdir/configure"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure" --help=recursive
1573    else
1574      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575    fi || ac_status=$?
1576    cd "$ac_pwd" || { ac_status=$?; break; }
1577  done
1578fi
1579
1580test -n "$ac_init_help" && exit $ac_status
1581if $ac_init_version; then
1582  cat <<\_ACEOF
1583xf86-video-ati configure 6.14.6
1584generated by GNU Autoconf 2.68
1585
1586Copyright (C) 2010 Free Software Foundation, Inc.
1587This configure script is free software; the Free Software Foundation
1588gives unlimited permission to copy, distribute and modify it.
1589_ACEOF
1590  exit
1591fi
1592
1593## ------------------------ ##
1594## Autoconf initialization. ##
1595## ------------------------ ##
1596
1597# ac_fn_c_try_compile LINENO
1598# --------------------------
1599# Try to compile conftest.$ac_ext, and return whether this succeeded.
1600ac_fn_c_try_compile ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  rm -f conftest.$ac_objext
1604  if { { ac_try="$ac_compile"
1605case "(($ac_try" in
1606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607  *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611  (eval "$ac_compile") 2>conftest.err
1612  ac_status=$?
1613  if test -s conftest.err; then
1614    grep -v '^ *+' conftest.err >conftest.er1
1615    cat conftest.er1 >&5
1616    mv -f conftest.er1 conftest.err
1617  fi
1618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619  test $ac_status = 0; } && {
1620	 test -z "$ac_c_werror_flag" ||
1621	 test ! -s conftest.err
1622       } && test -s conftest.$ac_objext; then :
1623  ac_retval=0
1624else
1625  $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628	ac_retval=1
1629fi
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631  as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_compile
1634
1635# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1636# ---------------------------------------------
1637# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1638# accordingly.
1639ac_fn_c_check_decl ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  as_decl_name=`echo $2|sed 's/ *(.*//'`
1643  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1645$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1646if eval \${$3+:} false; then :
1647  $as_echo_n "(cached) " >&6
1648else
1649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h.  */
1651$4
1652int
1653main ()
1654{
1655#ifndef $as_decl_name
1656#ifdef __cplusplus
1657  (void) $as_decl_use;
1658#else
1659  (void) $as_decl_name;
1660#endif
1661#endif
1662
1663  ;
1664  return 0;
1665}
1666_ACEOF
1667if ac_fn_c_try_compile "$LINENO"; then :
1668  eval "$3=yes"
1669else
1670  eval "$3=no"
1671fi
1672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673fi
1674eval ac_res=\$$3
1675	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676$as_echo "$ac_res" >&6; }
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679} # ac_fn_c_check_decl
1680
1681# ac_fn_c_try_cpp LINENO
1682# ----------------------
1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_cpp ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  if { { ac_try="$ac_cpp conftest.$ac_ext"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695  ac_status=$?
1696  if test -s conftest.err; then
1697    grep -v '^ *+' conftest.err >conftest.er1
1698    cat conftest.er1 >&5
1699    mv -f conftest.er1 conftest.err
1700  fi
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } > conftest.i && {
1703	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704	 test ! -s conftest.err
1705       }; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711    ac_retval=1
1712fi
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_cpp
1717
1718# ac_fn_c_try_run LINENO
1719# ----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721# that executables *can* be run.
1722ac_fn_c_try_run ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732  (eval "$ac_link") 2>&5
1733  ac_status=$?
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736  { { case "(($ac_try" in
1737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738  *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742  (eval "$ac_try") 2>&5
1743  ac_status=$?
1744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745  test $ac_status = 0; }; }; then :
1746  ac_retval=0
1747else
1748  $as_echo "$as_me: program exited with status $ac_status" >&5
1749       $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752       ac_retval=$ac_status
1753fi
1754  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756  as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_run
1759
1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists and can be compiled using the include files in
1763# INCLUDES, setting the cache variable VAR accordingly.
1764ac_fn_c_check_header_compile ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778  eval "$3=yes"
1779else
1780  eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_header_compile
1790
1791# ac_fn_c_try_link LINENO
1792# -----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_link ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  rm -f conftest.$ac_objext conftest$ac_exeext
1798  if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_link") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && {
1814	 test -z "$ac_c_werror_flag" ||
1815	 test ! -s conftest.err
1816       } && test -s conftest$ac_exeext && {
1817	 test "$cross_compiling" = yes ||
1818	 $as_test_x conftest$ac_exeext
1819       }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825	ac_retval=1
1826fi
1827  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829  # interfere with the next link command; also delete a directory that is
1830  # left behind by Apple's compiler.  We do this before executing the actions.
1831  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833  as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_link
1836
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval \${$3+:} false; then :
1846  $as_echo_n "(cached) " >&6
1847else
1848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855    which can conflict with char $2 (); below.
1856    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857    <limits.h> exists even on freestanding compilers.  */
1858
1859#ifdef __STDC__
1860# include <limits.h>
1861#else
1862# include <assert.h>
1863#endif
1864
1865#undef $2
1866
1867/* Override any GCC internal prototype to avoid an error.
1868   Use char because int might match the return type of a GCC
1869   builtin and then its argument prototype would still apply.  */
1870#ifdef __cplusplus
1871extern "C"
1872#endif
1873char $2 ();
1874/* The GNU C library defines this for functions which it implements
1875    to always fail with ENOSYS.  Some functions are actually named
1876    something starting with __ and the normal name is an alias.  */
1877#if defined __stub_$2 || defined __stub___$2
1878choke me
1879#endif
1880
1881int
1882main ()
1883{
1884return $2 ();
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_link "$LINENO"; then :
1890  eval "$3=yes"
1891else
1892  eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext \
1895    conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_func
1903
1904# ac_fn_c_check_header_preproc LINENO HEADER VAR
1905# ----------------------------------------------
1906# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1907ac_fn_c_check_header_preproc ()
1908{
1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911$as_echo_n "checking for $2... " >&6; }
1912if eval \${$3+:} false; then :
1913  $as_echo_n "(cached) " >&6
1914else
1915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916/* end confdefs.h.  */
1917#include <$2>
1918_ACEOF
1919if ac_fn_c_try_cpp "$LINENO"; then :
1920  eval "$3=yes"
1921else
1922  eval "$3=no"
1923fi
1924rm -f conftest.err conftest.i conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_header_preproc
1932
1933# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1934# -------------------------------------------------------
1935# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1936# the include files in INCLUDES and setting the cache variable VAR
1937# accordingly.
1938ac_fn_c_check_header_mongrel ()
1939{
1940  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941  if eval \${$3+:} false; then :
1942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943$as_echo_n "checking for $2... " >&6; }
1944if eval \${$3+:} false; then :
1945  $as_echo_n "(cached) " >&6
1946fi
1947eval ac_res=\$$3
1948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950else
1951  # Is the header compilable?
1952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1953$as_echo_n "checking $2 usability... " >&6; }
1954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h.  */
1956$4
1957#include <$2>
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960  ac_header_compiler=yes
1961else
1962  ac_header_compiler=no
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1966$as_echo "$ac_header_compiler" >&6; }
1967
1968# Is the header present?
1969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1970$as_echo_n "checking $2 presence... " >&6; }
1971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973#include <$2>
1974_ACEOF
1975if ac_fn_c_try_cpp "$LINENO"; then :
1976  ac_header_preproc=yes
1977else
1978  ac_header_preproc=no
1979fi
1980rm -f conftest.err conftest.i conftest.$ac_ext
1981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1982$as_echo "$ac_header_preproc" >&6; }
1983
1984# So?  What about this header?
1985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1986  yes:no: )
1987    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1988$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1991    ;;
1992  no:yes:* )
1993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1994$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1995    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1996$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1997    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1998$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1999    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2000$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2001    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003( $as_echo "## ---------------------------------------------------------------------- ##
2004## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2005## ---------------------------------------------------------------------- ##"
2006     ) | sed "s/^/$as_me: WARNING:     /" >&2
2007    ;;
2008esac
2009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if eval \${$3+:} false; then :
2012  $as_echo_n "(cached) " >&6
2013else
2014  eval "$3=\$ac_header_compiler"
2015fi
2016eval ac_res=\$$3
2017	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018$as_echo "$ac_res" >&6; }
2019fi
2020  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022} # ac_fn_c_check_header_mongrel
2023cat >config.log <<_ACEOF
2024This file contains any messages produced by compilers while
2025running configure, to aid debugging if configure makes a mistake.
2026
2027It was created by xf86-video-ati $as_me 6.14.6, which was
2028generated by GNU Autoconf 2.68.  Invocation command line was
2029
2030  $ $0 $@
2031
2032_ACEOF
2033exec 5>>config.log
2034{
2035cat <<_ASUNAME
2036## --------- ##
2037## Platform. ##
2038## --------- ##
2039
2040hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
2046/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2048
2049/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2050/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2051/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2053/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2054/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2055/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2056
2057_ASUNAME
2058
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062  IFS=$as_save_IFS
2063  test -z "$as_dir" && as_dir=.
2064    $as_echo "PATH: $as_dir"
2065  done
2066IFS=$as_save_IFS
2067
2068} >&5
2069
2070cat >&5 <<_ACEOF
2071
2072
2073## ----------- ##
2074## Core tests. ##
2075## ----------- ##
2076
2077_ACEOF
2078
2079
2080# Keep a trace of the command line.
2081# Strip out --no-create and --no-recursion so they do not pile up.
2082# Strip out --silent because we don't want to record it for future runs.
2083# Also quote any args containing shell meta-characters.
2084# Make two passes to allow for proper duplicate-argument suppression.
2085ac_configure_args=
2086ac_configure_args0=
2087ac_configure_args1=
2088ac_must_keep_next=false
2089for ac_pass in 1 2
2090do
2091  for ac_arg
2092  do
2093    case $ac_arg in
2094    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096    | -silent | --silent | --silen | --sile | --sil)
2097      continue ;;
2098    *\'*)
2099      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2100    esac
2101    case $ac_pass in
2102    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103    2)
2104      as_fn_append ac_configure_args1 " '$ac_arg'"
2105      if test $ac_must_keep_next = true; then
2106	ac_must_keep_next=false # Got value, back to normal.
2107      else
2108	case $ac_arg in
2109	  *=* | --config-cache | -C | -disable-* | --disable-* \
2110	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112	  | -with-* | --with-* | -without-* | --without-* | --x)
2113	    case "$ac_configure_args0 " in
2114	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2115	    esac
2116	    ;;
2117	  -* ) ac_must_keep_next=true ;;
2118	esac
2119      fi
2120      as_fn_append ac_configure_args " '$ac_arg'"
2121      ;;
2122    esac
2123  done
2124done
2125{ ac_configure_args0=; unset ac_configure_args0;}
2126{ ac_configure_args1=; unset ac_configure_args1;}
2127
2128# When interrupted or exit'd, cleanup temporary files, and complete
2129# config.log.  We remove comments because anyway the quotes in there
2130# would cause problems or look ugly.
2131# WARNING: Use '\'' to represent an apostrophe within the trap.
2132# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133trap 'exit_status=$?
2134  # Save into config.log some information that might help in debugging.
2135  {
2136    echo
2137
2138    $as_echo "## ---------------- ##
2139## Cache variables. ##
2140## ---------------- ##"
2141    echo
2142    # The following way of writing the cache mishandles newlines in values,
2143(
2144  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2145    eval ac_val=\$$ac_var
2146    case $ac_val in #(
2147    *${as_nl}*)
2148      case $ac_var in #(
2149      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2150$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2151      esac
2152      case $ac_var in #(
2153      _ | IFS | as_nl) ;; #(
2154      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2155      *) { eval $ac_var=; unset $ac_var;} ;;
2156      esac ;;
2157    esac
2158  done
2159  (set) 2>&1 |
2160    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2161    *${as_nl}ac_space=\ *)
2162      sed -n \
2163	"s/'\''/'\''\\\\'\'''\''/g;
2164	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2165      ;; #(
2166    *)
2167      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168      ;;
2169    esac |
2170    sort
2171)
2172    echo
2173
2174    $as_echo "## ----------------- ##
2175## Output variables. ##
2176## ----------------- ##"
2177    echo
2178    for ac_var in $ac_subst_vars
2179    do
2180      eval ac_val=\$$ac_var
2181      case $ac_val in
2182      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183      esac
2184      $as_echo "$ac_var='\''$ac_val'\''"
2185    done | sort
2186    echo
2187
2188    if test -n "$ac_subst_files"; then
2189      $as_echo "## ------------------- ##
2190## File substitutions. ##
2191## ------------------- ##"
2192      echo
2193      for ac_var in $ac_subst_files
2194      do
2195	eval ac_val=\$$ac_var
2196	case $ac_val in
2197	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198	esac
2199	$as_echo "$ac_var='\''$ac_val'\''"
2200      done | sort
2201      echo
2202    fi
2203
2204    if test -s confdefs.h; then
2205      $as_echo "## ----------- ##
2206## confdefs.h. ##
2207## ----------- ##"
2208      echo
2209      cat confdefs.h
2210      echo
2211    fi
2212    test "$ac_signal" != 0 &&
2213      $as_echo "$as_me: caught signal $ac_signal"
2214    $as_echo "$as_me: exit $exit_status"
2215  } >&5
2216  rm -f core *.core core.conftest.* &&
2217    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2218    exit $exit_status
2219' 0
2220for ac_signal in 1 2 13 15; do
2221  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222done
2223ac_signal=0
2224
2225# confdefs.h avoids OS command line length limits that DEFS can exceed.
2226rm -f -r conftest* confdefs.h
2227
2228$as_echo "/* confdefs.h */" > confdefs.h
2229
2230# Predefined preprocessor variables.
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_NAME "$PACKAGE_NAME"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238_ACEOF
2239
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_VERSION "$PACKAGE_VERSION"
2242_ACEOF
2243
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_STRING "$PACKAGE_STRING"
2246_ACEOF
2247
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250_ACEOF
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_URL "$PACKAGE_URL"
2254_ACEOF
2255
2256
2257# Let the site file select an alternate cache file if it wants to.
2258# Prefer an explicitly selected file to automatically selected ones.
2259ac_site_file1=NONE
2260ac_site_file2=NONE
2261if test -n "$CONFIG_SITE"; then
2262  # We do not want a PATH search for config.site.
2263  case $CONFIG_SITE in #((
2264    -*)  ac_site_file1=./$CONFIG_SITE;;
2265    */*) ac_site_file1=$CONFIG_SITE;;
2266    *)   ac_site_file1=./$CONFIG_SITE;;
2267  esac
2268elif test "x$prefix" != xNONE; then
2269  ac_site_file1=$prefix/share/config.site
2270  ac_site_file2=$prefix/etc/config.site
2271else
2272  ac_site_file1=$ac_default_prefix/share/config.site
2273  ac_site_file2=$ac_default_prefix/etc/config.site
2274fi
2275for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276do
2277  test "x$ac_site_file" = xNONE && continue
2278  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2279    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2280$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2281    sed 's/^/| /' "$ac_site_file" >&5
2282    . "$ac_site_file" \
2283      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285as_fn_error $? "failed to load site script $ac_site_file
2286See \`config.log' for more details" "$LINENO" 5; }
2287  fi
2288done
2289
2290if test -r "$cache_file"; then
2291  # Some versions of bash will fail to source /dev/null (special files
2292  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2293  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2294    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295$as_echo "$as_me: loading cache $cache_file" >&6;}
2296    case $cache_file in
2297      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298      *)                      . "./$cache_file";;
2299    esac
2300  fi
2301else
2302  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303$as_echo "$as_me: creating cache $cache_file" >&6;}
2304  >$cache_file
2305fi
2306
2307# Check that the precious variables saved in the cache have kept the same
2308# value.
2309ac_cache_corrupted=false
2310for ac_var in $ac_precious_vars; do
2311  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312  eval ac_new_set=\$ac_env_${ac_var}_set
2313  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314  eval ac_new_val=\$ac_env_${ac_var}_value
2315  case $ac_old_set,$ac_new_set in
2316    set,)
2317      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319      ac_cache_corrupted=: ;;
2320    ,set)
2321      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323      ac_cache_corrupted=: ;;
2324    ,);;
2325    *)
2326      if test "x$ac_old_val" != "x$ac_new_val"; then
2327	# differences in whitespace do not lead to failure.
2328	ac_old_val_w=`echo x $ac_old_val`
2329	ac_new_val_w=`echo x $ac_new_val`
2330	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333	  ac_cache_corrupted=:
2334	else
2335	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337	  eval $ac_var=\$ac_old_val
2338	fi
2339	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2340$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2341	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2342$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2343      fi;;
2344  esac
2345  # Pass precious variables to config.status.
2346  if test "$ac_new_set" = set; then
2347    case $ac_new_val in
2348    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349    *) ac_arg=$ac_var=$ac_new_val ;;
2350    esac
2351    case " $ac_configure_args " in
2352      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2353      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2354    esac
2355  fi
2356done
2357if $ac_cache_corrupted; then
2358  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363fi
2364## -------------------- ##
2365## Main body of script. ##
2366## -------------------- ##
2367
2368ac_ext=c
2369ac_cpp='$CPP $CPPFLAGS'
2370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373
2374
2375
2376
2377ac_config_headers="$ac_config_headers config.h"
2378
2379
2380# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392ac_aux_dir=
2393for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2394  if test -f "$ac_dir/install-sh"; then
2395    ac_aux_dir=$ac_dir
2396    ac_install_sh="$ac_aux_dir/install-sh -c"
2397    break
2398  elif test -f "$ac_dir/install.sh"; then
2399    ac_aux_dir=$ac_dir
2400    ac_install_sh="$ac_aux_dir/install.sh -c"
2401    break
2402  elif test -f "$ac_dir/shtool"; then
2403    ac_aux_dir=$ac_dir
2404    ac_install_sh="$ac_aux_dir/shtool install -c"
2405    break
2406  fi
2407done
2408if test -z "$ac_aux_dir"; then
2409  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2410fi
2411
2412# These three variables are undocumented and unsupported,
2413# and are intended to be withdrawn in a future Autoconf release.
2414# They can cause serious problems if a builder's source tree is in a directory
2415# whose full name contains unusual characters.
2416ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2417ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2418ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2419
2420
2421# Find a good install program.  We prefer a C program (faster),
2422# so one script is as good as another.  But avoid the broken or
2423# incompatible versions:
2424# SysV /etc/install, /usr/sbin/install
2425# SunOS /usr/etc/install
2426# IRIX /sbin/install
2427# AIX /bin/install
2428# AmigaOS /C/install, which installs bootblocks on floppy discs
2429# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432# OS/2's system install, which has a completely different semantic
2433# ./install, which can be erroneously created by make from ./install.sh.
2434# Reject install programs that cannot install multiple files.
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436$as_echo_n "checking for a BSD-compatible install... " >&6; }
2437if test -z "$INSTALL"; then
2438if ${ac_cv_path_install+:} false; then :
2439  $as_echo_n "(cached) " >&6
2440else
2441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444  IFS=$as_save_IFS
2445  test -z "$as_dir" && as_dir=.
2446    # Account for people who put trailing slashes in PATH elements.
2447case $as_dir/ in #((
2448  ./ | .// | /[cC]/* | \
2449  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2451  /usr/ucb/* ) ;;
2452  *)
2453    # OSF1 and SCO ODT 3.0 have their own names for install.
2454    # Don't use installbsd from OSF since it installs stuff as root
2455    # by default.
2456    for ac_prog in ginstall scoinst install; do
2457      for ac_exec_ext in '' $ac_executable_extensions; do
2458	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2459	  if test $ac_prog = install &&
2460	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461	    # AIX install.  It has an incompatible calling convention.
2462	    :
2463	  elif test $ac_prog = install &&
2464	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465	    # program-specific install script used by HP pwplus--don't use.
2466	    :
2467	  else
2468	    rm -rf conftest.one conftest.two conftest.dir
2469	    echo one > conftest.one
2470	    echo two > conftest.two
2471	    mkdir conftest.dir
2472	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473	      test -s conftest.one && test -s conftest.two &&
2474	      test -s conftest.dir/conftest.one &&
2475	      test -s conftest.dir/conftest.two
2476	    then
2477	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478	      break 3
2479	    fi
2480	  fi
2481	fi
2482      done
2483    done
2484    ;;
2485esac
2486
2487  done
2488IFS=$as_save_IFS
2489
2490rm -rf conftest.one conftest.two conftest.dir
2491
2492fi
2493  if test "${ac_cv_path_install+set}" = set; then
2494    INSTALL=$ac_cv_path_install
2495  else
2496    # As a last resort, use the slow shell script.  Don't cache a
2497    # value for INSTALL within a source directory, because that will
2498    # break other packages using the cache if that directory is
2499    # removed, or if the value is a relative name.
2500    INSTALL=$ac_install_sh
2501  fi
2502fi
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504$as_echo "$INSTALL" >&6; }
2505
2506# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507# It thinks the first close brace ends the variable substitution.
2508test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2509
2510test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2511
2512test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2513
2514ac_ext=c
2515ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519if test -n "$ac_tool_prefix"; then
2520  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2521set dummy ${ac_tool_prefix}gcc; ac_word=$2
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523$as_echo_n "checking for $ac_word... " >&6; }
2524if ${ac_cv_prog_CC+:} false; then :
2525  $as_echo_n "(cached) " >&6
2526else
2527  if test -n "$CC"; then
2528  ac_cv_prog_CC="$CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533  IFS=$as_save_IFS
2534  test -z "$as_dir" && as_dir=.
2535    for ac_exec_ext in '' $ac_executable_extensions; do
2536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539    break 2
2540  fi
2541done
2542  done
2543IFS=$as_save_IFS
2544
2545fi
2546fi
2547CC=$ac_cv_prog_CC
2548if test -n "$CC"; then
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2550$as_echo "$CC" >&6; }
2551else
2552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553$as_echo "no" >&6; }
2554fi
2555
2556
2557fi
2558if test -z "$ac_cv_prog_CC"; then
2559  ac_ct_CC=$CC
2560  # Extract the first word of "gcc", so it can be a program name with args.
2561set dummy gcc; ac_word=$2
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563$as_echo_n "checking for $ac_word... " >&6; }
2564if ${ac_cv_prog_ac_ct_CC+:} false; then :
2565  $as_echo_n "(cached) " >&6
2566else
2567  if test -n "$ac_ct_CC"; then
2568  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573  IFS=$as_save_IFS
2574  test -z "$as_dir" && as_dir=.
2575    for ac_exec_ext in '' $ac_executable_extensions; do
2576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577    ac_cv_prog_ac_ct_CC="gcc"
2578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579    break 2
2580  fi
2581done
2582  done
2583IFS=$as_save_IFS
2584
2585fi
2586fi
2587ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588if test -n "$ac_ct_CC"; then
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2590$as_echo "$ac_ct_CC" >&6; }
2591else
2592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593$as_echo "no" >&6; }
2594fi
2595
2596  if test "x$ac_ct_CC" = x; then
2597    CC=""
2598  else
2599    case $cross_compiling:$ac_tool_warned in
2600yes:)
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2603ac_tool_warned=yes ;;
2604esac
2605    CC=$ac_ct_CC
2606  fi
2607else
2608  CC="$ac_cv_prog_CC"
2609fi
2610
2611if test -z "$CC"; then
2612          if test -n "$ac_tool_prefix"; then
2613    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2614set dummy ${ac_tool_prefix}cc; ac_word=$2
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616$as_echo_n "checking for $ac_word... " >&6; }
2617if ${ac_cv_prog_CC+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620  if test -n "$CC"; then
2621  ac_cv_prog_CC="$CC" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626  IFS=$as_save_IFS
2627  test -z "$as_dir" && as_dir=.
2628    for ac_exec_ext in '' $ac_executable_extensions; do
2629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630    ac_cv_prog_CC="${ac_tool_prefix}cc"
2631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632    break 2
2633  fi
2634done
2635  done
2636IFS=$as_save_IFS
2637
2638fi
2639fi
2640CC=$ac_cv_prog_CC
2641if test -n "$CC"; then
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2643$as_echo "$CC" >&6; }
2644else
2645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646$as_echo "no" >&6; }
2647fi
2648
2649
2650  fi
2651fi
2652if test -z "$CC"; then
2653  # Extract the first word of "cc", so it can be a program name with args.
2654set dummy cc; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
2657if ${ac_cv_prog_CC+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  if test -n "$CC"; then
2661  ac_cv_prog_CC="$CC" # Let the user override the test.
2662else
2663  ac_prog_rejected=no
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667  IFS=$as_save_IFS
2668  test -z "$as_dir" && as_dir=.
2669    for ac_exec_ext in '' $ac_executable_extensions; do
2670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2672       ac_prog_rejected=yes
2673       continue
2674     fi
2675    ac_cv_prog_CC="cc"
2676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677    break 2
2678  fi
2679done
2680  done
2681IFS=$as_save_IFS
2682
2683if test $ac_prog_rejected = yes; then
2684  # We found a bogon in the path, so make sure we never use it.
2685  set dummy $ac_cv_prog_CC
2686  shift
2687  if test $# != 0; then
2688    # We chose a different compiler from the bogus one.
2689    # However, it has the same basename, so the bogon will be chosen
2690    # first if we set CC to just the basename; use the full file name.
2691    shift
2692    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2693  fi
2694fi
2695fi
2696fi
2697CC=$ac_cv_prog_CC
2698if test -n "$CC"; then
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700$as_echo "$CC" >&6; }
2701else
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703$as_echo "no" >&6; }
2704fi
2705
2706
2707fi
2708if test -z "$CC"; then
2709  if test -n "$ac_tool_prefix"; then
2710  for ac_prog in cl.exe
2711  do
2712    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2713set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
2716if ${ac_cv_prog_CC+:} false; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  if test -n "$CC"; then
2720  ac_cv_prog_CC="$CC" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727    for ac_exec_ext in '' $ac_executable_extensions; do
2728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734  done
2735IFS=$as_save_IFS
2736
2737fi
2738fi
2739CC=$ac_cv_prog_CC
2740if test -n "$CC"; then
2741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2742$as_echo "$CC" >&6; }
2743else
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
2746fi
2747
2748
2749    test -n "$CC" && break
2750  done
2751fi
2752if test -z "$CC"; then
2753  ac_ct_CC=$CC
2754  for ac_prog in cl.exe
2755do
2756  # Extract the first word of "$ac_prog", so it can be a program name with args.
2757set dummy $ac_prog; ac_word=$2
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759$as_echo_n "checking for $ac_word... " >&6; }
2760if ${ac_cv_prog_ac_ct_CC+:} false; then :
2761  $as_echo_n "(cached) " >&6
2762else
2763  if test -n "$ac_ct_CC"; then
2764  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2765else
2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767for as_dir in $PATH
2768do
2769  IFS=$as_save_IFS
2770  test -z "$as_dir" && as_dir=.
2771    for ac_exec_ext in '' $ac_executable_extensions; do
2772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773    ac_cv_prog_ac_ct_CC="$ac_prog"
2774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775    break 2
2776  fi
2777done
2778  done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784if test -n "$ac_ct_CC"; then
2785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786$as_echo "$ac_ct_CC" >&6; }
2787else
2788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789$as_echo "no" >&6; }
2790fi
2791
2792
2793  test -n "$ac_ct_CC" && break
2794done
2795
2796  if test "x$ac_ct_CC" = x; then
2797    CC=""
2798  else
2799    case $cross_compiling:$ac_tool_warned in
2800yes:)
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803ac_tool_warned=yes ;;
2804esac
2805    CC=$ac_ct_CC
2806  fi
2807fi
2808
2809fi
2810
2811
2812test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814as_fn_error $? "no acceptable C compiler found in \$PATH
2815See \`config.log' for more details" "$LINENO" 5; }
2816
2817# Provide some information about the compiler.
2818$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2819set X $ac_compile
2820ac_compiler=$2
2821for ac_option in --version -v -V -qversion; do
2822  { { ac_try="$ac_compiler $ac_option >&5"
2823case "(($ac_try" in
2824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825  *) ac_try_echo=$ac_try;;
2826esac
2827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828$as_echo "$ac_try_echo"; } >&5
2829  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2830  ac_status=$?
2831  if test -s conftest.err; then
2832    sed '10a\
2833... rest of stderr output deleted ...
2834         10q' conftest.err >conftest.er1
2835    cat conftest.er1 >&5
2836  fi
2837  rm -f conftest.er1 conftest.err
2838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839  test $ac_status = 0; }
2840done
2841
2842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843/* end confdefs.h.  */
2844
2845int
2846main ()
2847{
2848
2849  ;
2850  return 0;
2851}
2852_ACEOF
2853ac_clean_files_save=$ac_clean_files
2854ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2855# Try to create an executable without -o first, disregard a.out.
2856# It will help us diagnose broken compilers, and finding out an intuition
2857# of exeext.
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2859$as_echo_n "checking whether the C compiler works... " >&6; }
2860ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2861
2862# The possible output files:
2863ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2864
2865ac_rmfiles=
2866for ac_file in $ac_files
2867do
2868  case $ac_file in
2869    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2870    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2871  esac
2872done
2873rm -f $ac_rmfiles
2874
2875if { { ac_try="$ac_link_default"
2876case "(($ac_try" in
2877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878  *) ac_try_echo=$ac_try;;
2879esac
2880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881$as_echo "$ac_try_echo"; } >&5
2882  (eval "$ac_link_default") 2>&5
2883  ac_status=$?
2884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2885  test $ac_status = 0; }; then :
2886  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2887# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2888# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2889# so that the user can short-circuit this test for compilers unknown to
2890# Autoconf.
2891for ac_file in $ac_files ''
2892do
2893  test -f "$ac_file" || continue
2894  case $ac_file in
2895    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2896	;;
2897    [ab].out )
2898	# We found the default executable, but exeext='' is most
2899	# certainly right.
2900	break;;
2901    *.* )
2902	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2903	then :; else
2904	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2905	fi
2906	# We set ac_cv_exeext here because the later test for it is not
2907	# safe: cross compilers may not add the suffix if given an `-o'
2908	# argument, so we may need to know it at that point already.
2909	# Even if this section looks crufty: it has the advantage of
2910	# actually working.
2911	break;;
2912    * )
2913	break;;
2914  esac
2915done
2916test "$ac_cv_exeext" = no && ac_cv_exeext=
2917
2918else
2919  ac_file=''
2920fi
2921if test -z "$ac_file"; then :
2922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923$as_echo "no" >&6; }
2924$as_echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929as_fn_error 77 "C compiler cannot create executables
2930See \`config.log' for more details" "$LINENO" 5; }
2931else
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2933$as_echo "yes" >&6; }
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2936$as_echo_n "checking for C compiler default output file name... " >&6; }
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2938$as_echo "$ac_file" >&6; }
2939ac_exeext=$ac_cv_exeext
2940
2941rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2942ac_clean_files=$ac_clean_files_save
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2944$as_echo_n "checking for suffix of executables... " >&6; }
2945if { { ac_try="$ac_link"
2946case "(($ac_try" in
2947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948  *) ac_try_echo=$ac_try;;
2949esac
2950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2951$as_echo "$ac_try_echo"; } >&5
2952  (eval "$ac_link") 2>&5
2953  ac_status=$?
2954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955  test $ac_status = 0; }; then :
2956  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2958# work properly (i.e., refer to `conftest.exe'), while it won't with
2959# `rm'.
2960for ac_file in conftest.exe conftest conftest.*; do
2961  test -f "$ac_file" || continue
2962  case $ac_file in
2963    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2964    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965	  break;;
2966    * ) break;;
2967  esac
2968done
2969else
2970  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2973See \`config.log' for more details" "$LINENO" 5; }
2974fi
2975rm -f conftest conftest$ac_cv_exeext
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2977$as_echo "$ac_cv_exeext" >&6; }
2978
2979rm -f conftest.$ac_ext
2980EXEEXT=$ac_cv_exeext
2981ac_exeext=$EXEEXT
2982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983/* end confdefs.h.  */
2984#include <stdio.h>
2985int
2986main ()
2987{
2988FILE *f = fopen ("conftest.out", "w");
2989 return ferror (f) || fclose (f) != 0;
2990
2991  ;
2992  return 0;
2993}
2994_ACEOF
2995ac_clean_files="$ac_clean_files conftest.out"
2996# Check that the compiler produces executables we can run.  If not, either
2997# the compiler is broken, or we cross compile.
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2999$as_echo_n "checking whether we are cross compiling... " >&6; }
3000if test "$cross_compiling" != yes; then
3001  { { ac_try="$ac_link"
3002case "(($ac_try" in
3003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004  *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007$as_echo "$ac_try_echo"; } >&5
3008  (eval "$ac_link") 2>&5
3009  ac_status=$?
3010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011  test $ac_status = 0; }
3012  if { ac_try='./conftest$ac_cv_exeext'
3013  { { case "(($ac_try" in
3014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015  *) ac_try_echo=$ac_try;;
3016esac
3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018$as_echo "$ac_try_echo"; } >&5
3019  (eval "$ac_try") 2>&5
3020  ac_status=$?
3021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022  test $ac_status = 0; }; }; then
3023    cross_compiling=no
3024  else
3025    if test "$cross_compiling" = maybe; then
3026	cross_compiling=yes
3027    else
3028	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030as_fn_error $? "cannot run C compiled programs.
3031If you meant to cross compile, use \`--host'.
3032See \`config.log' for more details" "$LINENO" 5; }
3033    fi
3034  fi
3035fi
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3037$as_echo "$cross_compiling" >&6; }
3038
3039rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3040ac_clean_files=$ac_clean_files_save
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3042$as_echo_n "checking for suffix of object files... " >&6; }
3043if ${ac_cv_objext+:} false; then :
3044  $as_echo_n "(cached) " >&6
3045else
3046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h.  */
3048
3049int
3050main ()
3051{
3052
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057rm -f conftest.o conftest.obj
3058if { { ac_try="$ac_compile"
3059case "(($ac_try" in
3060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061  *) ac_try_echo=$ac_try;;
3062esac
3063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064$as_echo "$ac_try_echo"; } >&5
3065  (eval "$ac_compile") 2>&5
3066  ac_status=$?
3067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068  test $ac_status = 0; }; then :
3069  for ac_file in conftest.o conftest.obj conftest.*; do
3070  test -f "$ac_file" || continue;
3071  case $ac_file in
3072    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3073    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3074       break;;
3075  esac
3076done
3077else
3078  $as_echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083as_fn_error $? "cannot compute suffix of object files: cannot compile
3084See \`config.log' for more details" "$LINENO" 5; }
3085fi
3086rm -f conftest.$ac_cv_objext conftest.$ac_ext
3087fi
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3089$as_echo "$ac_cv_objext" >&6; }
3090OBJEXT=$ac_cv_objext
3091ac_objext=$OBJEXT
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3093$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3094if ${ac_cv_c_compiler_gnu+:} false; then :
3095  $as_echo_n "(cached) " >&6
3096else
3097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098/* end confdefs.h.  */
3099
3100int
3101main ()
3102{
3103#ifndef __GNUC__
3104       choke me
3105#endif
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111if ac_fn_c_try_compile "$LINENO"; then :
3112  ac_compiler_gnu=yes
3113else
3114  ac_compiler_gnu=no
3115fi
3116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117ac_cv_c_compiler_gnu=$ac_compiler_gnu
3118
3119fi
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3121$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3122if test $ac_compiler_gnu = yes; then
3123  GCC=yes
3124else
3125  GCC=
3126fi
3127ac_test_CFLAGS=${CFLAGS+set}
3128ac_save_CFLAGS=$CFLAGS
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3130$as_echo_n "checking whether $CC accepts -g... " >&6; }
3131if ${ac_cv_prog_cc_g+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  ac_save_c_werror_flag=$ac_c_werror_flag
3135   ac_c_werror_flag=yes
3136   ac_cv_prog_cc_g=no
3137   CFLAGS="-g"
3138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139/* end confdefs.h.  */
3140
3141int
3142main ()
3143{
3144
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149if ac_fn_c_try_compile "$LINENO"; then :
3150  ac_cv_prog_cc_g=yes
3151else
3152  CFLAGS=""
3153      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h.  */
3155
3156int
3157main ()
3158{
3159
3160  ;
3161  return 0;
3162}
3163_ACEOF
3164if ac_fn_c_try_compile "$LINENO"; then :
3165
3166else
3167  ac_c_werror_flag=$ac_save_c_werror_flag
3168	 CFLAGS="-g"
3169	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170/* end confdefs.h.  */
3171
3172int
3173main ()
3174{
3175
3176  ;
3177  return 0;
3178}
3179_ACEOF
3180if ac_fn_c_try_compile "$LINENO"; then :
3181  ac_cv_prog_cc_g=yes
3182fi
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
3185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186fi
3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188   ac_c_werror_flag=$ac_save_c_werror_flag
3189fi
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3191$as_echo "$ac_cv_prog_cc_g" >&6; }
3192if test "$ac_test_CFLAGS" = set; then
3193  CFLAGS=$ac_save_CFLAGS
3194elif test $ac_cv_prog_cc_g = yes; then
3195  if test "$GCC" = yes; then
3196    CFLAGS="-g -O2"
3197  else
3198    CFLAGS="-g"
3199  fi
3200else
3201  if test "$GCC" = yes; then
3202    CFLAGS="-O2"
3203  else
3204    CFLAGS=
3205  fi
3206fi
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3208$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3209if ${ac_cv_prog_cc_c89+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  ac_cv_prog_cc_c89=no
3213ac_save_CC=$CC
3214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215/* end confdefs.h.  */
3216#include <stdarg.h>
3217#include <stdio.h>
3218#include <sys/types.h>
3219#include <sys/stat.h>
3220/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3221struct buf { int x; };
3222FILE * (*rcsopen) (struct buf *, struct stat *, int);
3223static char *e (p, i)
3224     char **p;
3225     int i;
3226{
3227  return p[i];
3228}
3229static char *f (char * (*g) (char **, int), char **p, ...)
3230{
3231  char *s;
3232  va_list v;
3233  va_start (v,p);
3234  s = g (p, va_arg (v,int));
3235  va_end (v);
3236  return s;
3237}
3238
3239/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3240   function prototypes and stuff, but not '\xHH' hex character constants.
3241   These don't provoke an error unfortunately, instead are silently treated
3242   as 'x'.  The following induces an error, until -std is added to get
3243   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3244   array size at least.  It's necessary to write '\x00'==0 to get something
3245   that's true only with -std.  */
3246int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3247
3248/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3249   inside strings and character constants.  */
3250#define FOO(x) 'x'
3251int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3252
3253int test (int i, double x);
3254struct s1 {int (*f) (int a);};
3255struct s2 {int (*f) (double a);};
3256int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3257int argc;
3258char **argv;
3259int
3260main ()
3261{
3262return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3263  ;
3264  return 0;
3265}
3266_ACEOF
3267for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3268	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3269do
3270  CC="$ac_save_CC $ac_arg"
3271  if ac_fn_c_try_compile "$LINENO"; then :
3272  ac_cv_prog_cc_c89=$ac_arg
3273fi
3274rm -f core conftest.err conftest.$ac_objext
3275  test "x$ac_cv_prog_cc_c89" != "xno" && break
3276done
3277rm -f conftest.$ac_ext
3278CC=$ac_save_CC
3279
3280fi
3281# AC_CACHE_VAL
3282case "x$ac_cv_prog_cc_c89" in
3283  x)
3284    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3285$as_echo "none needed" >&6; } ;;
3286  xno)
3287    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3288$as_echo "unsupported" >&6; } ;;
3289  *)
3290    CC="$CC $ac_cv_prog_cc_c89"
3291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3292$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3293esac
3294if test "x$ac_cv_prog_cc_c89" != xno; then :
3295
3296fi
3297
3298ac_ext=c
3299ac_cpp='$CPP $CPPFLAGS'
3300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303
3304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3305$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3306if ${ac_cv_prog_cc_c99+:} false; then :
3307  $as_echo_n "(cached) " >&6
3308else
3309  ac_cv_prog_cc_c99=no
3310ac_save_CC=$CC
3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h.  */
3313#include <stdarg.h>
3314#include <stdbool.h>
3315#include <stdlib.h>
3316#include <wchar.h>
3317#include <stdio.h>
3318
3319// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3320#define debug(...) fprintf (stderr, __VA_ARGS__)
3321#define showlist(...) puts (#__VA_ARGS__)
3322#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3323static void
3324test_varargs_macros (void)
3325{
3326  int x = 1234;
3327  int y = 5678;
3328  debug ("Flag");
3329  debug ("X = %d\n", x);
3330  showlist (The first, second, and third items.);
3331  report (x>y, "x is %d but y is %d", x, y);
3332}
3333
3334// Check long long types.
3335#define BIG64 18446744073709551615ull
3336#define BIG32 4294967295ul
3337#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3338#if !BIG_OK
3339  your preprocessor is broken;
3340#endif
3341#if BIG_OK
3342#else
3343  your preprocessor is broken;
3344#endif
3345static long long int bignum = -9223372036854775807LL;
3346static unsigned long long int ubignum = BIG64;
3347
3348struct incomplete_array
3349{
3350  int datasize;
3351  double data[];
3352};
3353
3354struct named_init {
3355  int number;
3356  const wchar_t *name;
3357  double average;
3358};
3359
3360typedef const char *ccp;
3361
3362static inline int
3363test_restrict (ccp restrict text)
3364{
3365  // See if C++-style comments work.
3366  // Iterate through items via the restricted pointer.
3367  // Also check for declarations in for loops.
3368  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3369    continue;
3370  return 0;
3371}
3372
3373// Check varargs and va_copy.
3374static void
3375test_varargs (const char *format, ...)
3376{
3377  va_list args;
3378  va_start (args, format);
3379  va_list args_copy;
3380  va_copy (args_copy, args);
3381
3382  const char *str;
3383  int number;
3384  float fnumber;
3385
3386  while (*format)
3387    {
3388      switch (*format++)
3389	{
3390	case 's': // string
3391	  str = va_arg (args_copy, const char *);
3392	  break;
3393	case 'd': // int
3394	  number = va_arg (args_copy, int);
3395	  break;
3396	case 'f': // float
3397	  fnumber = va_arg (args_copy, double);
3398	  break;
3399	default:
3400	  break;
3401	}
3402    }
3403  va_end (args_copy);
3404  va_end (args);
3405}
3406
3407int
3408main ()
3409{
3410
3411  // Check bool.
3412  _Bool success = false;
3413
3414  // Check restrict.
3415  if (test_restrict ("String literal") == 0)
3416    success = true;
3417  char *restrict newvar = "Another string";
3418
3419  // Check varargs.
3420  test_varargs ("s, d' f .", "string", 65, 34.234);
3421  test_varargs_macros ();
3422
3423  // Check flexible array members.
3424  struct incomplete_array *ia =
3425    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3426  ia->datasize = 10;
3427  for (int i = 0; i < ia->datasize; ++i)
3428    ia->data[i] = i * 1.234;
3429
3430  // Check named initializers.
3431  struct named_init ni = {
3432    .number = 34,
3433    .name = L"Test wide string",
3434    .average = 543.34343,
3435  };
3436
3437  ni.number = 58;
3438
3439  int dynamic_array[ni.number];
3440  dynamic_array[ni.number - 1] = 543;
3441
3442  // work around unused variable warnings
3443  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3444	  || dynamic_array[ni.number - 1] != 543);
3445
3446  ;
3447  return 0;
3448}
3449_ACEOF
3450for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3451do
3452  CC="$ac_save_CC $ac_arg"
3453  if ac_fn_c_try_compile "$LINENO"; then :
3454  ac_cv_prog_cc_c99=$ac_arg
3455fi
3456rm -f core conftest.err conftest.$ac_objext
3457  test "x$ac_cv_prog_cc_c99" != "xno" && break
3458done
3459rm -f conftest.$ac_ext
3460CC=$ac_save_CC
3461
3462fi
3463# AC_CACHE_VAL
3464case "x$ac_cv_prog_cc_c99" in
3465  x)
3466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3467$as_echo "none needed" >&6; } ;;
3468  xno)
3469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3470$as_echo "unsupported" >&6; } ;;
3471  *)
3472    CC="$CC $ac_cv_prog_cc_c99"
3473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3474$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3475esac
3476if test "x$ac_cv_prog_cc_c99" != xno; then :
3477
3478fi
3479
3480
3481
3482ac_ext=c
3483ac_cpp='$CPP $CPPFLAGS'
3484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3488$as_echo_n "checking how to run the C preprocessor... " >&6; }
3489# On Suns, sometimes $CPP names a directory.
3490if test -n "$CPP" && test -d "$CPP"; then
3491  CPP=
3492fi
3493if test -z "$CPP"; then
3494  if ${ac_cv_prog_CPP+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497      # Double quotes because CPP needs to be expanded
3498    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3499    do
3500      ac_preproc_ok=false
3501for ac_c_preproc_warn_flag in '' yes
3502do
3503  # Use a header file that comes with gcc, so configuring glibc
3504  # with a fresh cross-compiler works.
3505  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3506  # <limits.h> exists even on freestanding compilers.
3507  # On the NeXT, cc -E runs the code through the compiler's parser,
3508  # not just through cpp. "Syntax error" is here to catch this case.
3509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511#ifdef __STDC__
3512# include <limits.h>
3513#else
3514# include <assert.h>
3515#endif
3516		     Syntax error
3517_ACEOF
3518if ac_fn_c_try_cpp "$LINENO"; then :
3519
3520else
3521  # Broken: fails on valid input.
3522continue
3523fi
3524rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526  # OK, works on sane cases.  Now check whether nonexistent headers
3527  # can be detected and how.
3528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h.  */
3530#include <ac_nonexistent.h>
3531_ACEOF
3532if ac_fn_c_try_cpp "$LINENO"; then :
3533  # Broken: success on invalid input.
3534continue
3535else
3536  # Passes both tests.
3537ac_preproc_ok=:
3538break
3539fi
3540rm -f conftest.err conftest.i conftest.$ac_ext
3541
3542done
3543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544rm -f conftest.i conftest.err conftest.$ac_ext
3545if $ac_preproc_ok; then :
3546  break
3547fi
3548
3549    done
3550    ac_cv_prog_CPP=$CPP
3551
3552fi
3553  CPP=$ac_cv_prog_CPP
3554else
3555  ac_cv_prog_CPP=$CPP
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3558$as_echo "$CPP" >&6; }
3559ac_preproc_ok=false
3560for ac_c_preproc_warn_flag in '' yes
3561do
3562  # Use a header file that comes with gcc, so configuring glibc
3563  # with a fresh cross-compiler works.
3564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565  # <limits.h> exists even on freestanding compilers.
3566  # On the NeXT, cc -E runs the code through the compiler's parser,
3567  # not just through cpp. "Syntax error" is here to catch this case.
3568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h.  */
3570#ifdef __STDC__
3571# include <limits.h>
3572#else
3573# include <assert.h>
3574#endif
3575		     Syntax error
3576_ACEOF
3577if ac_fn_c_try_cpp "$LINENO"; then :
3578
3579else
3580  # Broken: fails on valid input.
3581continue
3582fi
3583rm -f conftest.err conftest.i conftest.$ac_ext
3584
3585  # OK, works on sane cases.  Now check whether nonexistent headers
3586  # can be detected and how.
3587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588/* end confdefs.h.  */
3589#include <ac_nonexistent.h>
3590_ACEOF
3591if ac_fn_c_try_cpp "$LINENO"; then :
3592  # Broken: success on invalid input.
3593continue
3594else
3595  # Passes both tests.
3596ac_preproc_ok=:
3597break
3598fi
3599rm -f conftest.err conftest.i conftest.$ac_ext
3600
3601done
3602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603rm -f conftest.i conftest.err conftest.$ac_ext
3604if $ac_preproc_ok; then :
3605
3606else
3607  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3610See \`config.log' for more details" "$LINENO" 5; }
3611fi
3612
3613ac_ext=c
3614ac_cpp='$CPP $CPPFLAGS'
3615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3621$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3622if ${ac_cv_path_GREP+:} false; then :
3623  $as_echo_n "(cached) " >&6
3624else
3625  if test -z "$GREP"; then
3626  ac_path_GREP_found=false
3627  # Loop through the user's path and test for each of PROGNAME-LIST
3628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630do
3631  IFS=$as_save_IFS
3632  test -z "$as_dir" && as_dir=.
3633    for ac_prog in grep ggrep; do
3634    for ac_exec_ext in '' $ac_executable_extensions; do
3635      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3637# Check for GNU ac_path_GREP and select it if it is found.
3638  # Check for GNU $ac_path_GREP
3639case `"$ac_path_GREP" --version 2>&1` in
3640*GNU*)
3641  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3642*)
3643  ac_count=0
3644  $as_echo_n 0123456789 >"conftest.in"
3645  while :
3646  do
3647    cat "conftest.in" "conftest.in" >"conftest.tmp"
3648    mv "conftest.tmp" "conftest.in"
3649    cp "conftest.in" "conftest.nl"
3650    $as_echo 'GREP' >> "conftest.nl"
3651    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653    as_fn_arith $ac_count + 1 && ac_count=$as_val
3654    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655      # Best one so far, save it but keep looking for a better one
3656      ac_cv_path_GREP="$ac_path_GREP"
3657      ac_path_GREP_max=$ac_count
3658    fi
3659    # 10*(2^10) chars as input seems more than enough
3660    test $ac_count -gt 10 && break
3661  done
3662  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663esac
3664
3665      $ac_path_GREP_found && break 3
3666    done
3667  done
3668  done
3669IFS=$as_save_IFS
3670  if test -z "$ac_cv_path_GREP"; then
3671    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3672  fi
3673else
3674  ac_cv_path_GREP=$GREP
3675fi
3676
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3679$as_echo "$ac_cv_path_GREP" >&6; }
3680 GREP="$ac_cv_path_GREP"
3681
3682
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3684$as_echo_n "checking for egrep... " >&6; }
3685if ${ac_cv_path_EGREP+:} false; then :
3686  $as_echo_n "(cached) " >&6
3687else
3688  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3689   then ac_cv_path_EGREP="$GREP -E"
3690   else
3691     if test -z "$EGREP"; then
3692  ac_path_EGREP_found=false
3693  # Loop through the user's path and test for each of PROGNAME-LIST
3694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3696do
3697  IFS=$as_save_IFS
3698  test -z "$as_dir" && as_dir=.
3699    for ac_prog in egrep; do
3700    for ac_exec_ext in '' $ac_executable_extensions; do
3701      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3702      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3703# Check for GNU ac_path_EGREP and select it if it is found.
3704  # Check for GNU $ac_path_EGREP
3705case `"$ac_path_EGREP" --version 2>&1` in
3706*GNU*)
3707  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3708*)
3709  ac_count=0
3710  $as_echo_n 0123456789 >"conftest.in"
3711  while :
3712  do
3713    cat "conftest.in" "conftest.in" >"conftest.tmp"
3714    mv "conftest.tmp" "conftest.in"
3715    cp "conftest.in" "conftest.nl"
3716    $as_echo 'EGREP' >> "conftest.nl"
3717    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3718    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3719    as_fn_arith $ac_count + 1 && ac_count=$as_val
3720    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3721      # Best one so far, save it but keep looking for a better one
3722      ac_cv_path_EGREP="$ac_path_EGREP"
3723      ac_path_EGREP_max=$ac_count
3724    fi
3725    # 10*(2^10) chars as input seems more than enough
3726    test $ac_count -gt 10 && break
3727  done
3728  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3729esac
3730
3731      $ac_path_EGREP_found && break 3
3732    done
3733  done
3734  done
3735IFS=$as_save_IFS
3736  if test -z "$ac_cv_path_EGREP"; then
3737    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3738  fi
3739else
3740  ac_cv_path_EGREP=$EGREP
3741fi
3742
3743   fi
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3746$as_echo "$ac_cv_path_EGREP" >&6; }
3747 EGREP="$ac_cv_path_EGREP"
3748
3749
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3751$as_echo_n "checking for ANSI C header files... " >&6; }
3752if ${ac_cv_header_stdc+:} false; then :
3753  $as_echo_n "(cached) " >&6
3754else
3755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757#include <stdlib.h>
3758#include <stdarg.h>
3759#include <string.h>
3760#include <float.h>
3761
3762int
3763main ()
3764{
3765
3766  ;
3767  return 0;
3768}
3769_ACEOF
3770if ac_fn_c_try_compile "$LINENO"; then :
3771  ac_cv_header_stdc=yes
3772else
3773  ac_cv_header_stdc=no
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776
3777if test $ac_cv_header_stdc = yes; then
3778  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781#include <string.h>
3782
3783_ACEOF
3784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785  $EGREP "memchr" >/dev/null 2>&1; then :
3786
3787else
3788  ac_cv_header_stdc=no
3789fi
3790rm -f conftest*
3791
3792fi
3793
3794if test $ac_cv_header_stdc = yes; then
3795  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h.  */
3798#include <stdlib.h>
3799
3800_ACEOF
3801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802  $EGREP "free" >/dev/null 2>&1; then :
3803
3804else
3805  ac_cv_header_stdc=no
3806fi
3807rm -f conftest*
3808
3809fi
3810
3811if test $ac_cv_header_stdc = yes; then
3812  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3813  if test "$cross_compiling" = yes; then :
3814  :
3815else
3816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818#include <ctype.h>
3819#include <stdlib.h>
3820#if ((' ' & 0x0FF) == 0x020)
3821# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3822# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3823#else
3824# define ISLOWER(c) \
3825		   (('a' <= (c) && (c) <= 'i') \
3826		     || ('j' <= (c) && (c) <= 'r') \
3827		     || ('s' <= (c) && (c) <= 'z'))
3828# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3829#endif
3830
3831#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3832int
3833main ()
3834{
3835  int i;
3836  for (i = 0; i < 256; i++)
3837    if (XOR (islower (i), ISLOWER (i))
3838	|| toupper (i) != TOUPPER (i))
3839      return 2;
3840  return 0;
3841}
3842_ACEOF
3843if ac_fn_c_try_run "$LINENO"; then :
3844
3845else
3846  ac_cv_header_stdc=no
3847fi
3848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3849  conftest.$ac_objext conftest.beam conftest.$ac_ext
3850fi
3851
3852fi
3853fi
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3855$as_echo "$ac_cv_header_stdc" >&6; }
3856if test $ac_cv_header_stdc = yes; then
3857
3858$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3859
3860fi
3861
3862# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3863for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3864		  inttypes.h stdint.h unistd.h
3865do :
3866  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3867ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3868"
3869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3870  cat >>confdefs.h <<_ACEOF
3871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3872_ACEOF
3873
3874fi
3875
3876done
3877
3878
3879
3880
3881ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3882if test "x$ac_cv_have_decl___clang__" = xyes; then :
3883  CLANGCC="yes"
3884else
3885  CLANGCC="no"
3886fi
3887
3888ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3889if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3890  INTELCC="yes"
3891else
3892  INTELCC="no"
3893fi
3894
3895ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3896if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3897  SUNCC="yes"
3898else
3899  SUNCC="no"
3900fi
3901
3902
3903
3904
3905
3906
3907
3908
3909if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3910	if test -n "$ac_tool_prefix"; then
3911  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3912set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if ${ac_cv_path_PKG_CONFIG+:} false; then :
3916  $as_echo_n "(cached) " >&6
3917else
3918  case $PKG_CONFIG in
3919  [\\/]* | ?:[\\/]*)
3920  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3921  ;;
3922  *)
3923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926  IFS=$as_save_IFS
3927  test -z "$as_dir" && as_dir=.
3928    for ac_exec_ext in '' $ac_executable_extensions; do
3929  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932    break 2
3933  fi
3934done
3935  done
3936IFS=$as_save_IFS
3937
3938  ;;
3939esac
3940fi
3941PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3942if test -n "$PKG_CONFIG"; then
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3944$as_echo "$PKG_CONFIG" >&6; }
3945else
3946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951fi
3952if test -z "$ac_cv_path_PKG_CONFIG"; then
3953  ac_pt_PKG_CONFIG=$PKG_CONFIG
3954  # Extract the first word of "pkg-config", so it can be a program name with args.
3955set dummy pkg-config; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
3958if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3959  $as_echo_n "(cached) " >&6
3960else
3961  case $ac_pt_PKG_CONFIG in
3962  [\\/]* | ?:[\\/]*)
3963  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3964  ;;
3965  *)
3966  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969  IFS=$as_save_IFS
3970  test -z "$as_dir" && as_dir=.
3971    for ac_exec_ext in '' $ac_executable_extensions; do
3972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3973    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975    break 2
3976  fi
3977done
3978  done
3979IFS=$as_save_IFS
3980
3981  ;;
3982esac
3983fi
3984ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3985if test -n "$ac_pt_PKG_CONFIG"; then
3986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3987$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3988else
3989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990$as_echo "no" >&6; }
3991fi
3992
3993  if test "x$ac_pt_PKG_CONFIG" = x; then
3994    PKG_CONFIG=""
3995  else
3996    case $cross_compiling:$ac_tool_warned in
3997yes:)
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000ac_tool_warned=yes ;;
4001esac
4002    PKG_CONFIG=$ac_pt_PKG_CONFIG
4003  fi
4004else
4005  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4006fi
4007
4008fi
4009if test -n "$PKG_CONFIG"; then
4010	_pkg_min_version=0.9.0
4011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4012$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4013	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4014		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015$as_echo "yes" >&6; }
4016	else
4017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018$as_echo "no" >&6; }
4019		PKG_CONFIG=""
4020	fi
4021fi
4022# Make sure we can run config.sub.
4023$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4024  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4025
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4027$as_echo_n "checking build system type... " >&6; }
4028if ${ac_cv_build+:} false; then :
4029  $as_echo_n "(cached) " >&6
4030else
4031  ac_build_alias=$build_alias
4032test "x$ac_build_alias" = x &&
4033  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4034test "x$ac_build_alias" = x &&
4035  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4036ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4037  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4038
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4041$as_echo "$ac_cv_build" >&6; }
4042case $ac_cv_build in
4043*-*-*) ;;
4044*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4045esac
4046build=$ac_cv_build
4047ac_save_IFS=$IFS; IFS='-'
4048set x $ac_cv_build
4049shift
4050build_cpu=$1
4051build_vendor=$2
4052shift; shift
4053# Remember, the first character of IFS is used to create $*,
4054# except with old shells:
4055build_os=$*
4056IFS=$ac_save_IFS
4057case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4058
4059
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4061$as_echo_n "checking host system type... " >&6; }
4062if ${ac_cv_host+:} false; then :
4063  $as_echo_n "(cached) " >&6
4064else
4065  if test "x$host_alias" = x; then
4066  ac_cv_host=$ac_cv_build
4067else
4068  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4069    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4070fi
4071
4072fi
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4074$as_echo "$ac_cv_host" >&6; }
4075case $ac_cv_host in
4076*-*-*) ;;
4077*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4078esac
4079host=$ac_cv_host
4080ac_save_IFS=$IFS; IFS='-'
4081set x $ac_cv_host
4082shift
4083host_cpu=$1
4084host_vendor=$2
4085shift; shift
4086# Remember, the first character of IFS is used to create $*,
4087# except with old shells:
4088host_os=$*
4089IFS=$ac_save_IFS
4090case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4091
4092
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4094$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4095if ${ac_cv_path_SED+:} false; then :
4096  $as_echo_n "(cached) " >&6
4097else
4098            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4099     for ac_i in 1 2 3 4 5 6 7; do
4100       ac_script="$ac_script$as_nl$ac_script"
4101     done
4102     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4103     { ac_script=; unset ac_script;}
4104     if test -z "$SED"; then
4105  ac_path_SED_found=false
4106  # Loop through the user's path and test for each of PROGNAME-LIST
4107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110  IFS=$as_save_IFS
4111  test -z "$as_dir" && as_dir=.
4112    for ac_prog in sed gsed; do
4113    for ac_exec_ext in '' $ac_executable_extensions; do
4114      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4115      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4116# Check for GNU ac_path_SED and select it if it is found.
4117  # Check for GNU $ac_path_SED
4118case `"$ac_path_SED" --version 2>&1` in
4119*GNU*)
4120  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4121*)
4122  ac_count=0
4123  $as_echo_n 0123456789 >"conftest.in"
4124  while :
4125  do
4126    cat "conftest.in" "conftest.in" >"conftest.tmp"
4127    mv "conftest.tmp" "conftest.in"
4128    cp "conftest.in" "conftest.nl"
4129    $as_echo '' >> "conftest.nl"
4130    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4131    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4132    as_fn_arith $ac_count + 1 && ac_count=$as_val
4133    if test $ac_count -gt ${ac_path_SED_max-0}; then
4134      # Best one so far, save it but keep looking for a better one
4135      ac_cv_path_SED="$ac_path_SED"
4136      ac_path_SED_max=$ac_count
4137    fi
4138    # 10*(2^10) chars as input seems more than enough
4139    test $ac_count -gt 10 && break
4140  done
4141  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142esac
4143
4144      $ac_path_SED_found && break 3
4145    done
4146  done
4147  done
4148IFS=$as_save_IFS
4149  if test -z "$ac_cv_path_SED"; then
4150    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4151  fi
4152else
4153  ac_cv_path_SED=$SED
4154fi
4155
4156fi
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4158$as_echo "$ac_cv_path_SED" >&6; }
4159 SED="$ac_cv_path_SED"
4160  rm -f conftest.sed
4161
4162
4163
4164
4165
4166
4167# Check whether --enable-selective-werror was given.
4168if test "${enable_selective_werror+set}" = set; then :
4169  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4170else
4171  SELECTIVE_WERROR=yes
4172fi
4173
4174
4175# -v is too short to test reliably with XORG_TESTSET_CFLAG
4176if test "x$SUNCC" = "xyes"; then
4177    BASE_CFLAGS="-v"
4178else
4179    BASE_CFLAGS=""
4180fi
4181
4182# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4183
4184
4185
4186
4187
4188xorg_testset_save_CFLAGS="$CFLAGS"
4189
4190if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4194	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h.  */
4196int i;
4197_ACEOF
4198if ac_fn_c_try_compile "$LINENO"; then :
4199  xorg_testset_unknown_warning_option=yes
4200else
4201  xorg_testset_unknown_warning_option=no
4202fi
4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4205$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4206	CFLAGS="$xorg_testset_save_CFLAGS"
4207fi
4208
4209if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4210	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4212	fi
4213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4216	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h.  */
4218int i;
4219_ACEOF
4220if ac_fn_c_try_compile "$LINENO"; then :
4221  xorg_testset_unused_command_line_argument=yes
4222else
4223  xorg_testset_unused_command_line_argument=no
4224fi
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4227$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4228	CFLAGS="$xorg_testset_save_CFLAGS"
4229fi
4230
4231found="no"
4232
4233	if test $found = "no" ; then
4234		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4236		fi
4237
4238		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4240		fi
4241
4242		CFLAGS="$CFLAGS -Wall"
4243
4244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4245$as_echo_n "checking if $CC supports -Wall... " >&6; }
4246		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247/* end confdefs.h.  */
4248int i;
4249int
4250main ()
4251{
4252
4253  ;
4254  return 0;
4255}
4256_ACEOF
4257if ac_fn_c_try_link "$LINENO"; then :
4258  supported=yes
4259else
4260  supported=no
4261fi
4262rm -f core conftest.err conftest.$ac_objext \
4263    conftest$ac_exeext conftest.$ac_ext
4264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4265$as_echo "$supported" >&6; }
4266		CFLAGS="$xorg_testset_save_CFLAGS"
4267
4268		if test "$supported" = "yes" ; then
4269			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4270			found="yes"
4271		fi
4272	fi
4273
4274
4275
4276
4277
4278
4279
4280xorg_testset_save_CFLAGS="$CFLAGS"
4281
4282if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4286	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287/* end confdefs.h.  */
4288int i;
4289_ACEOF
4290if ac_fn_c_try_compile "$LINENO"; then :
4291  xorg_testset_unknown_warning_option=yes
4292else
4293  xorg_testset_unknown_warning_option=no
4294fi
4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4297$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4298	CFLAGS="$xorg_testset_save_CFLAGS"
4299fi
4300
4301if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4302	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4304	fi
4305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4308	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310int i;
4311_ACEOF
4312if ac_fn_c_try_compile "$LINENO"; then :
4313  xorg_testset_unused_command_line_argument=yes
4314else
4315  xorg_testset_unused_command_line_argument=no
4316fi
4317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4319$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4320	CFLAGS="$xorg_testset_save_CFLAGS"
4321fi
4322
4323found="no"
4324
4325	if test $found = "no" ; then
4326		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4328		fi
4329
4330		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4332		fi
4333
4334		CFLAGS="$CFLAGS -Wpointer-arith"
4335
4336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4337$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4338		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h.  */
4340int i;
4341int
4342main ()
4343{
4344
4345  ;
4346  return 0;
4347}
4348_ACEOF
4349if ac_fn_c_try_link "$LINENO"; then :
4350  supported=yes
4351else
4352  supported=no
4353fi
4354rm -f core conftest.err conftest.$ac_objext \
4355    conftest$ac_exeext conftest.$ac_ext
4356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4357$as_echo "$supported" >&6; }
4358		CFLAGS="$xorg_testset_save_CFLAGS"
4359
4360		if test "$supported" = "yes" ; then
4361			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4362			found="yes"
4363		fi
4364	fi
4365
4366
4367
4368
4369
4370
4371
4372xorg_testset_save_CFLAGS="$CFLAGS"
4373
4374if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4378	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h.  */
4380int i;
4381_ACEOF
4382if ac_fn_c_try_compile "$LINENO"; then :
4383  xorg_testset_unknown_warning_option=yes
4384else
4385  xorg_testset_unknown_warning_option=no
4386fi
4387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4389$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4390	CFLAGS="$xorg_testset_save_CFLAGS"
4391fi
4392
4393if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4394	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4396	fi
4397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4400	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402int i;
4403_ACEOF
4404if ac_fn_c_try_compile "$LINENO"; then :
4405  xorg_testset_unused_command_line_argument=yes
4406else
4407  xorg_testset_unused_command_line_argument=no
4408fi
4409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4411$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4412	CFLAGS="$xorg_testset_save_CFLAGS"
4413fi
4414
4415found="no"
4416
4417	if test $found = "no" ; then
4418		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4420		fi
4421
4422		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4424		fi
4425
4426		CFLAGS="$CFLAGS -Wstrict-prototypes"
4427
4428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4429$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4430		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431/* end confdefs.h.  */
4432int i;
4433int
4434main ()
4435{
4436
4437  ;
4438  return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_link "$LINENO"; then :
4442  supported=yes
4443else
4444  supported=no
4445fi
4446rm -f core conftest.err conftest.$ac_objext \
4447    conftest$ac_exeext conftest.$ac_ext
4448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4449$as_echo "$supported" >&6; }
4450		CFLAGS="$xorg_testset_save_CFLAGS"
4451
4452		if test "$supported" = "yes" ; then
4453			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4454			found="yes"
4455		fi
4456	fi
4457
4458
4459
4460
4461
4462
4463
4464xorg_testset_save_CFLAGS="$CFLAGS"
4465
4466if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4467	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4469$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4470	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h.  */
4472int i;
4473_ACEOF
4474if ac_fn_c_try_compile "$LINENO"; then :
4475  xorg_testset_unknown_warning_option=yes
4476else
4477  xorg_testset_unknown_warning_option=no
4478fi
4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4481$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4482	CFLAGS="$xorg_testset_save_CFLAGS"
4483fi
4484
4485if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4486	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4487		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4488	fi
4489	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4492	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494int i;
4495_ACEOF
4496if ac_fn_c_try_compile "$LINENO"; then :
4497  xorg_testset_unused_command_line_argument=yes
4498else
4499  xorg_testset_unused_command_line_argument=no
4500fi
4501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4503$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4504	CFLAGS="$xorg_testset_save_CFLAGS"
4505fi
4506
4507found="no"
4508
4509	if test $found = "no" ; then
4510		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4512		fi
4513
4514		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4516		fi
4517
4518		CFLAGS="$CFLAGS -Wmissing-prototypes"
4519
4520		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4521$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4522		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523/* end confdefs.h.  */
4524int i;
4525int
4526main ()
4527{
4528
4529  ;
4530  return 0;
4531}
4532_ACEOF
4533if ac_fn_c_try_link "$LINENO"; then :
4534  supported=yes
4535else
4536  supported=no
4537fi
4538rm -f core conftest.err conftest.$ac_objext \
4539    conftest$ac_exeext conftest.$ac_ext
4540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4541$as_echo "$supported" >&6; }
4542		CFLAGS="$xorg_testset_save_CFLAGS"
4543
4544		if test "$supported" = "yes" ; then
4545			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4546			found="yes"
4547		fi
4548	fi
4549
4550
4551
4552
4553
4554
4555
4556xorg_testset_save_CFLAGS="$CFLAGS"
4557
4558if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4562	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563/* end confdefs.h.  */
4564int i;
4565_ACEOF
4566if ac_fn_c_try_compile "$LINENO"; then :
4567  xorg_testset_unknown_warning_option=yes
4568else
4569  xorg_testset_unknown_warning_option=no
4570fi
4571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4573$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4574	CFLAGS="$xorg_testset_save_CFLAGS"
4575fi
4576
4577if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4578	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4580	fi
4581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4584	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h.  */
4586int i;
4587_ACEOF
4588if ac_fn_c_try_compile "$LINENO"; then :
4589  xorg_testset_unused_command_line_argument=yes
4590else
4591  xorg_testset_unused_command_line_argument=no
4592fi
4593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4595$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4596	CFLAGS="$xorg_testset_save_CFLAGS"
4597fi
4598
4599found="no"
4600
4601	if test $found = "no" ; then
4602		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4604		fi
4605
4606		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4608		fi
4609
4610		CFLAGS="$CFLAGS -Wmissing-declarations"
4611
4612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4613$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4614		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h.  */
4616int i;
4617int
4618main ()
4619{
4620
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_link "$LINENO"; then :
4626  supported=yes
4627else
4628  supported=no
4629fi
4630rm -f core conftest.err conftest.$ac_objext \
4631    conftest$ac_exeext conftest.$ac_ext
4632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4633$as_echo "$supported" >&6; }
4634		CFLAGS="$xorg_testset_save_CFLAGS"
4635
4636		if test "$supported" = "yes" ; then
4637			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4638			found="yes"
4639		fi
4640	fi
4641
4642
4643
4644
4645
4646
4647
4648xorg_testset_save_CFLAGS="$CFLAGS"
4649
4650if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4654	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655/* end confdefs.h.  */
4656int i;
4657_ACEOF
4658if ac_fn_c_try_compile "$LINENO"; then :
4659  xorg_testset_unknown_warning_option=yes
4660else
4661  xorg_testset_unknown_warning_option=no
4662fi
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4665$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4666	CFLAGS="$xorg_testset_save_CFLAGS"
4667fi
4668
4669if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4670	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4671		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4672	fi
4673	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4676	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h.  */
4678int i;
4679_ACEOF
4680if ac_fn_c_try_compile "$LINENO"; then :
4681  xorg_testset_unused_command_line_argument=yes
4682else
4683  xorg_testset_unused_command_line_argument=no
4684fi
4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4687$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4688	CFLAGS="$xorg_testset_save_CFLAGS"
4689fi
4690
4691found="no"
4692
4693	if test $found = "no" ; then
4694		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4696		fi
4697
4698		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4700		fi
4701
4702		CFLAGS="$CFLAGS -Wnested-externs"
4703
4704		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
4705$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
4706		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h.  */
4708int i;
4709int
4710main ()
4711{
4712
4713  ;
4714  return 0;
4715}
4716_ACEOF
4717if ac_fn_c_try_link "$LINENO"; then :
4718  supported=yes
4719else
4720  supported=no
4721fi
4722rm -f core conftest.err conftest.$ac_objext \
4723    conftest$ac_exeext conftest.$ac_ext
4724		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4725$as_echo "$supported" >&6; }
4726		CFLAGS="$xorg_testset_save_CFLAGS"
4727
4728		if test "$supported" = "yes" ; then
4729			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
4730			found="yes"
4731		fi
4732	fi
4733
4734
4735
4736
4737
4738
4739
4740xorg_testset_save_CFLAGS="$CFLAGS"
4741
4742if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4746	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748int i;
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"; then :
4751  xorg_testset_unknown_warning_option=yes
4752else
4753  xorg_testset_unknown_warning_option=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4757$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4758	CFLAGS="$xorg_testset_save_CFLAGS"
4759fi
4760
4761if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4762	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4764	fi
4765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4768	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769/* end confdefs.h.  */
4770int i;
4771_ACEOF
4772if ac_fn_c_try_compile "$LINENO"; then :
4773  xorg_testset_unused_command_line_argument=yes
4774else
4775  xorg_testset_unused_command_line_argument=no
4776fi
4777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4779$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4780	CFLAGS="$xorg_testset_save_CFLAGS"
4781fi
4782
4783found="no"
4784
4785	if test $found = "no" ; then
4786		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4788		fi
4789
4790		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4792		fi
4793
4794		CFLAGS="$CFLAGS -Wbad-function-cast"
4795
4796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
4797$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
4798		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799/* end confdefs.h.  */
4800int i;
4801int
4802main ()
4803{
4804
4805  ;
4806  return 0;
4807}
4808_ACEOF
4809if ac_fn_c_try_link "$LINENO"; then :
4810  supported=yes
4811else
4812  supported=no
4813fi
4814rm -f core conftest.err conftest.$ac_objext \
4815    conftest$ac_exeext conftest.$ac_ext
4816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4817$as_echo "$supported" >&6; }
4818		CFLAGS="$xorg_testset_save_CFLAGS"
4819
4820		if test "$supported" = "yes" ; then
4821			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
4822			found="yes"
4823		fi
4824	fi
4825
4826
4827
4828
4829
4830
4831
4832xorg_testset_save_CFLAGS="$CFLAGS"
4833
4834if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4835	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4838	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839/* end confdefs.h.  */
4840int i;
4841_ACEOF
4842if ac_fn_c_try_compile "$LINENO"; then :
4843  xorg_testset_unknown_warning_option=yes
4844else
4845  xorg_testset_unknown_warning_option=no
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4849$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4850	CFLAGS="$xorg_testset_save_CFLAGS"
4851fi
4852
4853if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4854	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4856	fi
4857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4860	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861/* end confdefs.h.  */
4862int i;
4863_ACEOF
4864if ac_fn_c_try_compile "$LINENO"; then :
4865  xorg_testset_unused_command_line_argument=yes
4866else
4867  xorg_testset_unused_command_line_argument=no
4868fi
4869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4871$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4872	CFLAGS="$xorg_testset_save_CFLAGS"
4873fi
4874
4875found="no"
4876
4877	if test $found = "no" ; then
4878		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4880		fi
4881
4882		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4884		fi
4885
4886		CFLAGS="$CFLAGS -Wformat=2"
4887
4888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4889$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4890		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891/* end confdefs.h.  */
4892int i;
4893int
4894main ()
4895{
4896
4897  ;
4898  return 0;
4899}
4900_ACEOF
4901if ac_fn_c_try_link "$LINENO"; then :
4902  supported=yes
4903else
4904  supported=no
4905fi
4906rm -f core conftest.err conftest.$ac_objext \
4907    conftest$ac_exeext conftest.$ac_ext
4908		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4909$as_echo "$supported" >&6; }
4910		CFLAGS="$xorg_testset_save_CFLAGS"
4911
4912		if test "$supported" = "yes" ; then
4913			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4914			found="yes"
4915		fi
4916	fi
4917
4918	if test $found = "no" ; then
4919		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4921		fi
4922
4923		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925		fi
4926
4927		CFLAGS="$CFLAGS -Wformat"
4928
4929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4930$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4931		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933int i;
4934int
4935main ()
4936{
4937
4938  ;
4939  return 0;
4940}
4941_ACEOF
4942if ac_fn_c_try_link "$LINENO"; then :
4943  supported=yes
4944else
4945  supported=no
4946fi
4947rm -f core conftest.err conftest.$ac_objext \
4948    conftest$ac_exeext conftest.$ac_ext
4949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4950$as_echo "$supported" >&6; }
4951		CFLAGS="$xorg_testset_save_CFLAGS"
4952
4953		if test "$supported" = "yes" ; then
4954			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4955			found="yes"
4956		fi
4957	fi
4958
4959
4960
4961
4962
4963
4964
4965xorg_testset_save_CFLAGS="$CFLAGS"
4966
4967if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4968	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4971	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h.  */
4973int i;
4974_ACEOF
4975if ac_fn_c_try_compile "$LINENO"; then :
4976  xorg_testset_unknown_warning_option=yes
4977else
4978  xorg_testset_unknown_warning_option=no
4979fi
4980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4982$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4983	CFLAGS="$xorg_testset_save_CFLAGS"
4984fi
4985
4986if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4987	if test "x$xorg_testset_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; }
4993	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994/* end confdefs.h.  */
4995int i;
4996_ACEOF
4997if ac_fn_c_try_compile "$LINENO"; then :
4998  xorg_testset_unused_command_line_argument=yes
4999else
5000  xorg_testset_unused_command_line_argument=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5004$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5005	CFLAGS="$xorg_testset_save_CFLAGS"
5006fi
5007
5008found="no"
5009
5010	if test $found = "no" ; then
5011		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013		fi
5014
5015		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017		fi
5018
5019		CFLAGS="$CFLAGS -Wold-style-definition"
5020
5021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5022$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5023		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h.  */
5025int i;
5026int
5027main ()
5028{
5029
5030  ;
5031  return 0;
5032}
5033_ACEOF
5034if ac_fn_c_try_link "$LINENO"; then :
5035  supported=yes
5036else
5037  supported=no
5038fi
5039rm -f core conftest.err conftest.$ac_objext \
5040    conftest$ac_exeext conftest.$ac_ext
5041		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5042$as_echo "$supported" >&6; }
5043		CFLAGS="$xorg_testset_save_CFLAGS"
5044
5045		if test "$supported" = "yes" ; then
5046			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5047			found="yes"
5048		fi
5049	fi
5050
5051
5052
5053
5054
5055
5056
5057xorg_testset_save_CFLAGS="$CFLAGS"
5058
5059if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5063	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065int i;
5066_ACEOF
5067if ac_fn_c_try_compile "$LINENO"; then :
5068  xorg_testset_unknown_warning_option=yes
5069else
5070  xorg_testset_unknown_warning_option=no
5071fi
5072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5074$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5075	CFLAGS="$xorg_testset_save_CFLAGS"
5076fi
5077
5078if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5079	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5081	fi
5082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5085	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h.  */
5087int i;
5088_ACEOF
5089if ac_fn_c_try_compile "$LINENO"; then :
5090  xorg_testset_unused_command_line_argument=yes
5091else
5092  xorg_testset_unused_command_line_argument=no
5093fi
5094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5096$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5097	CFLAGS="$xorg_testset_save_CFLAGS"
5098fi
5099
5100found="no"
5101
5102	if test $found = "no" ; then
5103		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105		fi
5106
5107		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109		fi
5110
5111		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5112
5113		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5114$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5115		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h.  */
5117int i;
5118int
5119main ()
5120{
5121
5122  ;
5123  return 0;
5124}
5125_ACEOF
5126if ac_fn_c_try_link "$LINENO"; then :
5127  supported=yes
5128else
5129  supported=no
5130fi
5131rm -f core conftest.err conftest.$ac_objext \
5132    conftest$ac_exeext conftest.$ac_ext
5133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5134$as_echo "$supported" >&6; }
5135		CFLAGS="$xorg_testset_save_CFLAGS"
5136
5137		if test "$supported" = "yes" ; then
5138			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5139			found="yes"
5140		fi
5141	fi
5142
5143
5144
5145# This chunk adds additional warnings that could catch undesired effects.
5146
5147
5148
5149
5150
5151xorg_testset_save_CFLAGS="$CFLAGS"
5152
5153if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5157	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160_ACEOF
5161if ac_fn_c_try_compile "$LINENO"; then :
5162  xorg_testset_unknown_warning_option=yes
5163else
5164  xorg_testset_unknown_warning_option=no
5165fi
5166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5168$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5169	CFLAGS="$xorg_testset_save_CFLAGS"
5170fi
5171
5172if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5173	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5175	fi
5176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5179	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181int i;
5182_ACEOF
5183if ac_fn_c_try_compile "$LINENO"; then :
5184  xorg_testset_unused_command_line_argument=yes
5185else
5186  xorg_testset_unused_command_line_argument=no
5187fi
5188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5190$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5191	CFLAGS="$xorg_testset_save_CFLAGS"
5192fi
5193
5194found="no"
5195
5196	if test $found = "no" ; then
5197		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199		fi
5200
5201		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203		fi
5204
5205		CFLAGS="$CFLAGS -Wunused"
5206
5207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5208$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5209		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211int i;
5212int
5213main ()
5214{
5215
5216  ;
5217  return 0;
5218}
5219_ACEOF
5220if ac_fn_c_try_link "$LINENO"; then :
5221  supported=yes
5222else
5223  supported=no
5224fi
5225rm -f core conftest.err conftest.$ac_objext \
5226    conftest$ac_exeext conftest.$ac_ext
5227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5228$as_echo "$supported" >&6; }
5229		CFLAGS="$xorg_testset_save_CFLAGS"
5230
5231		if test "$supported" = "yes" ; then
5232			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5233			found="yes"
5234		fi
5235	fi
5236
5237
5238
5239
5240
5241
5242
5243xorg_testset_save_CFLAGS="$CFLAGS"
5244
5245if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5249	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251int i;
5252_ACEOF
5253if ac_fn_c_try_compile "$LINENO"; then :
5254  xorg_testset_unknown_warning_option=yes
5255else
5256  xorg_testset_unknown_warning_option=no
5257fi
5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5260$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5261	CFLAGS="$xorg_testset_save_CFLAGS"
5262fi
5263
5264if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5265	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267	fi
5268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5271	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273int i;
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"; then :
5276  xorg_testset_unused_command_line_argument=yes
5277else
5278  xorg_testset_unused_command_line_argument=no
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5282$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5283	CFLAGS="$xorg_testset_save_CFLAGS"
5284fi
5285
5286found="no"
5287
5288	if test $found = "no" ; then
5289		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291		fi
5292
5293		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5295		fi
5296
5297		CFLAGS="$CFLAGS -Wuninitialized"
5298
5299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5300$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5301		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303int i;
5304int
5305main ()
5306{
5307
5308  ;
5309  return 0;
5310}
5311_ACEOF
5312if ac_fn_c_try_link "$LINENO"; then :
5313  supported=yes
5314else
5315  supported=no
5316fi
5317rm -f core conftest.err conftest.$ac_objext \
5318    conftest$ac_exeext conftest.$ac_ext
5319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5320$as_echo "$supported" >&6; }
5321		CFLAGS="$xorg_testset_save_CFLAGS"
5322
5323		if test "$supported" = "yes" ; then
5324			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5325			found="yes"
5326		fi
5327	fi
5328
5329
5330
5331
5332
5333
5334
5335xorg_testset_save_CFLAGS="$CFLAGS"
5336
5337if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5341	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h.  */
5343int i;
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"; then :
5346  xorg_testset_unknown_warning_option=yes
5347else
5348  xorg_testset_unknown_warning_option=no
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5352$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5353	CFLAGS="$xorg_testset_save_CFLAGS"
5354fi
5355
5356if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5357	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5359	fi
5360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5363	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h.  */
5365int i;
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"; then :
5368  xorg_testset_unused_command_line_argument=yes
5369else
5370  xorg_testset_unused_command_line_argument=no
5371fi
5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5374$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5375	CFLAGS="$xorg_testset_save_CFLAGS"
5376fi
5377
5378found="no"
5379
5380	if test $found = "no" ; then
5381		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383		fi
5384
5385		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5387		fi
5388
5389		CFLAGS="$CFLAGS -Wshadow"
5390
5391		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5392$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5393		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h.  */
5395int i;
5396int
5397main ()
5398{
5399
5400  ;
5401  return 0;
5402}
5403_ACEOF
5404if ac_fn_c_try_link "$LINENO"; then :
5405  supported=yes
5406else
5407  supported=no
5408fi
5409rm -f core conftest.err conftest.$ac_objext \
5410    conftest$ac_exeext conftest.$ac_ext
5411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5412$as_echo "$supported" >&6; }
5413		CFLAGS="$xorg_testset_save_CFLAGS"
5414
5415		if test "$supported" = "yes" ; then
5416			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5417			found="yes"
5418		fi
5419	fi
5420
5421
5422
5423
5424
5425
5426
5427xorg_testset_save_CFLAGS="$CFLAGS"
5428
5429if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5433	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435int i;
5436_ACEOF
5437if ac_fn_c_try_compile "$LINENO"; then :
5438  xorg_testset_unknown_warning_option=yes
5439else
5440  xorg_testset_unknown_warning_option=no
5441fi
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5444$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5445	CFLAGS="$xorg_testset_save_CFLAGS"
5446fi
5447
5448if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5449	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451	fi
5452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5455	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457int i;
5458_ACEOF
5459if ac_fn_c_try_compile "$LINENO"; then :
5460  xorg_testset_unused_command_line_argument=yes
5461else
5462  xorg_testset_unused_command_line_argument=no
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5466$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5467	CFLAGS="$xorg_testset_save_CFLAGS"
5468fi
5469
5470found="no"
5471
5472	if test $found = "no" ; then
5473		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5475		fi
5476
5477		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5479		fi
5480
5481		CFLAGS="$CFLAGS -Wcast-qual"
5482
5483		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5484$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5485		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h.  */
5487int i;
5488int
5489main ()
5490{
5491
5492  ;
5493  return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_link "$LINENO"; then :
5497  supported=yes
5498else
5499  supported=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext \
5502    conftest$ac_exeext conftest.$ac_ext
5503		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5504$as_echo "$supported" >&6; }
5505		CFLAGS="$xorg_testset_save_CFLAGS"
5506
5507		if test "$supported" = "yes" ; then
5508			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5509			found="yes"
5510		fi
5511	fi
5512
5513
5514
5515
5516
5517
5518
5519xorg_testset_save_CFLAGS="$CFLAGS"
5520
5521if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5522	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5524$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5525	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527int i;
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"; then :
5530  xorg_testset_unknown_warning_option=yes
5531else
5532  xorg_testset_unknown_warning_option=no
5533fi
5534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5536$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5537	CFLAGS="$xorg_testset_save_CFLAGS"
5538fi
5539
5540if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5541	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	fi
5544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h.  */
5549int i;
5550_ACEOF
5551if ac_fn_c_try_compile "$LINENO"; then :
5552  xorg_testset_unused_command_line_argument=yes
5553else
5554  xorg_testset_unused_command_line_argument=no
5555fi
5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5558$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5559	CFLAGS="$xorg_testset_save_CFLAGS"
5560fi
5561
5562found="no"
5563
5564	if test $found = "no" ; then
5565		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567		fi
5568
5569		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5571		fi
5572
5573		CFLAGS="$CFLAGS -Wmissing-noreturn"
5574
5575		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5576$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5577		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580int
5581main ()
5582{
5583
5584  ;
5585  return 0;
5586}
5587_ACEOF
5588if ac_fn_c_try_link "$LINENO"; then :
5589  supported=yes
5590else
5591  supported=no
5592fi
5593rm -f core conftest.err conftest.$ac_objext \
5594    conftest$ac_exeext conftest.$ac_ext
5595		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5596$as_echo "$supported" >&6; }
5597		CFLAGS="$xorg_testset_save_CFLAGS"
5598
5599		if test "$supported" = "yes" ; then
5600			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5601			found="yes"
5602		fi
5603	fi
5604
5605
5606
5607
5608
5609
5610
5611xorg_testset_save_CFLAGS="$CFLAGS"
5612
5613if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5617	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h.  */
5619int i;
5620_ACEOF
5621if ac_fn_c_try_compile "$LINENO"; then :
5622  xorg_testset_unknown_warning_option=yes
5623else
5624  xorg_testset_unknown_warning_option=no
5625fi
5626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5628$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5629	CFLAGS="$xorg_testset_save_CFLAGS"
5630fi
5631
5632if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5633	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635	fi
5636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5639	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h.  */
5641int i;
5642_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then :
5644  xorg_testset_unused_command_line_argument=yes
5645else
5646  xorg_testset_unused_command_line_argument=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5650$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
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 -Wmissing-format-attribute"
5666
5667		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
5668$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
5669		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671int i;
5672int
5673main ()
5674{
5675
5676  ;
5677  return 0;
5678}
5679_ACEOF
5680if ac_fn_c_try_link "$LINENO"; then :
5681  supported=yes
5682else
5683  supported=no
5684fi
5685rm -f core conftest.err conftest.$ac_objext \
5686    conftest$ac_exeext conftest.$ac_ext
5687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5688$as_echo "$supported" >&6; }
5689		CFLAGS="$xorg_testset_save_CFLAGS"
5690
5691		if test "$supported" = "yes" ; then
5692			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
5693			found="yes"
5694		fi
5695	fi
5696
5697
5698
5699
5700
5701
5702
5703xorg_testset_save_CFLAGS="$CFLAGS"
5704
5705if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5709	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"; then :
5714  xorg_testset_unknown_warning_option=yes
5715else
5716  xorg_testset_unknown_warning_option=no
5717fi
5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5720$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5721	CFLAGS="$xorg_testset_save_CFLAGS"
5722fi
5723
5724if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5725	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727	fi
5728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5731	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h.  */
5733int i;
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"; then :
5736  xorg_testset_unused_command_line_argument=yes
5737else
5738  xorg_testset_unused_command_line_argument=no
5739fi
5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5742$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5743	CFLAGS="$xorg_testset_save_CFLAGS"
5744fi
5745
5746found="no"
5747
5748	if test $found = "no" ; then
5749		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751		fi
5752
5753		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5755		fi
5756
5757		CFLAGS="$CFLAGS -Wredundant-decls"
5758
5759		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
5760$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
5761		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h.  */
5763int i;
5764int
5765main ()
5766{
5767
5768  ;
5769  return 0;
5770}
5771_ACEOF
5772if ac_fn_c_try_link "$LINENO"; then :
5773  supported=yes
5774else
5775  supported=no
5776fi
5777rm -f core conftest.err conftest.$ac_objext \
5778    conftest$ac_exeext conftest.$ac_ext
5779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5780$as_echo "$supported" >&6; }
5781		CFLAGS="$xorg_testset_save_CFLAGS"
5782
5783		if test "$supported" = "yes" ; then
5784			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
5785			found="yes"
5786		fi
5787	fi
5788
5789
5790
5791# These are currently disabled because they are noisy.  They will be enabled
5792# in the future once the codebase is sufficiently modernized to silence
5793# them.  For now, I don't want them to drown out the other warnings.
5794# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
5795# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
5796# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
5797
5798# Turn some warnings into errors, so we don't accidently get successful builds
5799# when there are problems that should be fixed.
5800
5801if test "x$SELECTIVE_WERROR" = "xyes" ; then
5802
5803
5804
5805
5806
5807xorg_testset_save_CFLAGS="$CFLAGS"
5808
5809if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5813	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int i;
5816_ACEOF
5817if ac_fn_c_try_compile "$LINENO"; then :
5818  xorg_testset_unknown_warning_option=yes
5819else
5820  xorg_testset_unknown_warning_option=no
5821fi
5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5824$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5825	CFLAGS="$xorg_testset_save_CFLAGS"
5826fi
5827
5828if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5829	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5830		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831	fi
5832	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5835	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h.  */
5837int i;
5838_ACEOF
5839if ac_fn_c_try_compile "$LINENO"; then :
5840  xorg_testset_unused_command_line_argument=yes
5841else
5842  xorg_testset_unused_command_line_argument=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5846$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5847	CFLAGS="$xorg_testset_save_CFLAGS"
5848fi
5849
5850found="no"
5851
5852	if test $found = "no" ; then
5853		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855		fi
5856
5857		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5859		fi
5860
5861		CFLAGS="$CFLAGS -Werror=implicit"
5862
5863		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
5864$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
5865		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867int i;
5868int
5869main ()
5870{
5871
5872  ;
5873  return 0;
5874}
5875_ACEOF
5876if ac_fn_c_try_link "$LINENO"; then :
5877  supported=yes
5878else
5879  supported=no
5880fi
5881rm -f core conftest.err conftest.$ac_objext \
5882    conftest$ac_exeext conftest.$ac_ext
5883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5884$as_echo "$supported" >&6; }
5885		CFLAGS="$xorg_testset_save_CFLAGS"
5886
5887		if test "$supported" = "yes" ; then
5888			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
5889			found="yes"
5890		fi
5891	fi
5892
5893	if test $found = "no" ; then
5894		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5896		fi
5897
5898		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900		fi
5901
5902		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
5903
5904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
5905$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
5906		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908int i;
5909int
5910main ()
5911{
5912
5913  ;
5914  return 0;
5915}
5916_ACEOF
5917if ac_fn_c_try_link "$LINENO"; then :
5918  supported=yes
5919else
5920  supported=no
5921fi
5922rm -f core conftest.err conftest.$ac_objext \
5923    conftest$ac_exeext conftest.$ac_ext
5924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5925$as_echo "$supported" >&6; }
5926		CFLAGS="$xorg_testset_save_CFLAGS"
5927
5928		if test "$supported" = "yes" ; then
5929			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
5930			found="yes"
5931		fi
5932	fi
5933
5934
5935
5936
5937
5938
5939
5940xorg_testset_save_CFLAGS="$CFLAGS"
5941
5942if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5946	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948int i;
5949_ACEOF
5950if ac_fn_c_try_compile "$LINENO"; then :
5951  xorg_testset_unknown_warning_option=yes
5952else
5953  xorg_testset_unknown_warning_option=no
5954fi
5955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5957$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5958	CFLAGS="$xorg_testset_save_CFLAGS"
5959fi
5960
5961if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5962	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964	fi
5965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
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_testset_unused_command_line_argument=yes
5974else
5975  xorg_testset_unused_command_line_argument=no
5976fi
5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5979$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5980	CFLAGS="$xorg_testset_save_CFLAGS"
5981fi
5982
5983found="no"
5984
5985	if test $found = "no" ; then
5986		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988		fi
5989
5990		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5992		fi
5993
5994		CFLAGS="$CFLAGS -Werror=nonnull"
5995
5996		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
5997$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
5998		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000int i;
6001int
6002main ()
6003{
6004
6005  ;
6006  return 0;
6007}
6008_ACEOF
6009if ac_fn_c_try_link "$LINENO"; then :
6010  supported=yes
6011else
6012  supported=no
6013fi
6014rm -f core conftest.err conftest.$ac_objext \
6015    conftest$ac_exeext conftest.$ac_ext
6016		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6017$as_echo "$supported" >&6; }
6018		CFLAGS="$xorg_testset_save_CFLAGS"
6019
6020		if test "$supported" = "yes" ; then
6021			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6022			found="yes"
6023		fi
6024	fi
6025
6026
6027
6028
6029
6030
6031
6032xorg_testset_save_CFLAGS="$CFLAGS"
6033
6034if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6038	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040int i;
6041_ACEOF
6042if ac_fn_c_try_compile "$LINENO"; then :
6043  xorg_testset_unknown_warning_option=yes
6044else
6045  xorg_testset_unknown_warning_option=no
6046fi
6047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6049$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6050	CFLAGS="$xorg_testset_save_CFLAGS"
6051fi
6052
6053if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6054	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056	fi
6057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6060	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062int i;
6063_ACEOF
6064if ac_fn_c_try_compile "$LINENO"; then :
6065  xorg_testset_unused_command_line_argument=yes
6066else
6067  xorg_testset_unused_command_line_argument=no
6068fi
6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6071$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6072	CFLAGS="$xorg_testset_save_CFLAGS"
6073fi
6074
6075found="no"
6076
6077	if test $found = "no" ; then
6078		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6080		fi
6081
6082		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6084		fi
6085
6086		CFLAGS="$CFLAGS -Werror=init-self"
6087
6088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6089$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6090		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h.  */
6092int i;
6093int
6094main ()
6095{
6096
6097  ;
6098  return 0;
6099}
6100_ACEOF
6101if ac_fn_c_try_link "$LINENO"; then :
6102  supported=yes
6103else
6104  supported=no
6105fi
6106rm -f core conftest.err conftest.$ac_objext \
6107    conftest$ac_exeext conftest.$ac_ext
6108		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6109$as_echo "$supported" >&6; }
6110		CFLAGS="$xorg_testset_save_CFLAGS"
6111
6112		if test "$supported" = "yes" ; then
6113			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6114			found="yes"
6115		fi
6116	fi
6117
6118
6119
6120
6121
6122
6123
6124xorg_testset_save_CFLAGS="$CFLAGS"
6125
6126if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6127	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6130	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132int i;
6133_ACEOF
6134if ac_fn_c_try_compile "$LINENO"; then :
6135  xorg_testset_unknown_warning_option=yes
6136else
6137  xorg_testset_unknown_warning_option=no
6138fi
6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6141$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6142	CFLAGS="$xorg_testset_save_CFLAGS"
6143fi
6144
6145if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6146	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6148	fi
6149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6152	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154int i;
6155_ACEOF
6156if ac_fn_c_try_compile "$LINENO"; then :
6157  xorg_testset_unused_command_line_argument=yes
6158else
6159  xorg_testset_unused_command_line_argument=no
6160fi
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6163$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6164	CFLAGS="$xorg_testset_save_CFLAGS"
6165fi
6166
6167found="no"
6168
6169	if test $found = "no" ; then
6170		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6171			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6172		fi
6173
6174		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6175			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6176		fi
6177
6178		CFLAGS="$CFLAGS -Werror=main"
6179
6180		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6181$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6182		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184int i;
6185int
6186main ()
6187{
6188
6189  ;
6190  return 0;
6191}
6192_ACEOF
6193if ac_fn_c_try_link "$LINENO"; then :
6194  supported=yes
6195else
6196  supported=no
6197fi
6198rm -f core conftest.err conftest.$ac_objext \
6199    conftest$ac_exeext conftest.$ac_ext
6200		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6201$as_echo "$supported" >&6; }
6202		CFLAGS="$xorg_testset_save_CFLAGS"
6203
6204		if test "$supported" = "yes" ; then
6205			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6206			found="yes"
6207		fi
6208	fi
6209
6210
6211
6212
6213
6214
6215
6216xorg_testset_save_CFLAGS="$CFLAGS"
6217
6218if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6222	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h.  */
6224int i;
6225_ACEOF
6226if ac_fn_c_try_compile "$LINENO"; then :
6227  xorg_testset_unknown_warning_option=yes
6228else
6229  xorg_testset_unknown_warning_option=no
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6233$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6234	CFLAGS="$xorg_testset_save_CFLAGS"
6235fi
6236
6237if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6238	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240	fi
6241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6244	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245/* end confdefs.h.  */
6246int i;
6247_ACEOF
6248if ac_fn_c_try_compile "$LINENO"; then :
6249  xorg_testset_unused_command_line_argument=yes
6250else
6251  xorg_testset_unused_command_line_argument=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6255$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6256	CFLAGS="$xorg_testset_save_CFLAGS"
6257fi
6258
6259found="no"
6260
6261	if test $found = "no" ; then
6262		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264		fi
6265
6266		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268		fi
6269
6270		CFLAGS="$CFLAGS -Werror=missing-braces"
6271
6272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6273$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6274		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h.  */
6276int i;
6277int
6278main ()
6279{
6280
6281  ;
6282  return 0;
6283}
6284_ACEOF
6285if ac_fn_c_try_link "$LINENO"; then :
6286  supported=yes
6287else
6288  supported=no
6289fi
6290rm -f core conftest.err conftest.$ac_objext \
6291    conftest$ac_exeext conftest.$ac_ext
6292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293$as_echo "$supported" >&6; }
6294		CFLAGS="$xorg_testset_save_CFLAGS"
6295
6296		if test "$supported" = "yes" ; then
6297			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6298			found="yes"
6299		fi
6300	fi
6301
6302
6303
6304
6305
6306
6307
6308xorg_testset_save_CFLAGS="$CFLAGS"
6309
6310if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6314	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h.  */
6316int i;
6317_ACEOF
6318if ac_fn_c_try_compile "$LINENO"; then :
6319  xorg_testset_unknown_warning_option=yes
6320else
6321  xorg_testset_unknown_warning_option=no
6322fi
6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6325$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6326	CFLAGS="$xorg_testset_save_CFLAGS"
6327fi
6328
6329if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6330	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6332	fi
6333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6336	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339_ACEOF
6340if ac_fn_c_try_compile "$LINENO"; then :
6341  xorg_testset_unused_command_line_argument=yes
6342else
6343  xorg_testset_unused_command_line_argument=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6347$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6348	CFLAGS="$xorg_testset_save_CFLAGS"
6349fi
6350
6351found="no"
6352
6353	if test $found = "no" ; then
6354		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6356		fi
6357
6358		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360		fi
6361
6362		CFLAGS="$CFLAGS -Werror=sequence-point"
6363
6364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6365$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6366		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368int i;
6369int
6370main ()
6371{
6372
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377if ac_fn_c_try_link "$LINENO"; then :
6378  supported=yes
6379else
6380  supported=no
6381fi
6382rm -f core conftest.err conftest.$ac_objext \
6383    conftest$ac_exeext conftest.$ac_ext
6384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6385$as_echo "$supported" >&6; }
6386		CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388		if test "$supported" = "yes" ; then
6389			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6390			found="yes"
6391		fi
6392	fi
6393
6394
6395
6396
6397
6398
6399
6400xorg_testset_save_CFLAGS="$CFLAGS"
6401
6402if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6406	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h.  */
6408int i;
6409_ACEOF
6410if ac_fn_c_try_compile "$LINENO"; then :
6411  xorg_testset_unknown_warning_option=yes
6412else
6413  xorg_testset_unknown_warning_option=no
6414fi
6415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6417$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6418	CFLAGS="$xorg_testset_save_CFLAGS"
6419fi
6420
6421if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6422	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6424	fi
6425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6428	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430int i;
6431_ACEOF
6432if ac_fn_c_try_compile "$LINENO"; then :
6433  xorg_testset_unused_command_line_argument=yes
6434else
6435  xorg_testset_unused_command_line_argument=no
6436fi
6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6439$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6440	CFLAGS="$xorg_testset_save_CFLAGS"
6441fi
6442
6443found="no"
6444
6445	if test $found = "no" ; then
6446		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448		fi
6449
6450		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452		fi
6453
6454		CFLAGS="$CFLAGS -Werror=return-type"
6455
6456		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
6457$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
6458		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h.  */
6460int i;
6461int
6462main ()
6463{
6464
6465  ;
6466  return 0;
6467}
6468_ACEOF
6469if ac_fn_c_try_link "$LINENO"; then :
6470  supported=yes
6471else
6472  supported=no
6473fi
6474rm -f core conftest.err conftest.$ac_objext \
6475    conftest$ac_exeext conftest.$ac_ext
6476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6477$as_echo "$supported" >&6; }
6478		CFLAGS="$xorg_testset_save_CFLAGS"
6479
6480		if test "$supported" = "yes" ; then
6481			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
6482			found="yes"
6483		fi
6484	fi
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 -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6496
6497		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
6498$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
6499		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h.  */
6501int i;
6502int
6503main ()
6504{
6505
6506  ;
6507  return 0;
6508}
6509_ACEOF
6510if ac_fn_c_try_link "$LINENO"; then :
6511  supported=yes
6512else
6513  supported=no
6514fi
6515rm -f core conftest.err conftest.$ac_objext \
6516    conftest$ac_exeext conftest.$ac_ext
6517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6518$as_echo "$supported" >&6; }
6519		CFLAGS="$xorg_testset_save_CFLAGS"
6520
6521		if test "$supported" = "yes" ; then
6522			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6523			found="yes"
6524		fi
6525	fi
6526
6527
6528
6529
6530
6531
6532
6533xorg_testset_save_CFLAGS="$CFLAGS"
6534
6535if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6539	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541int i;
6542_ACEOF
6543if ac_fn_c_try_compile "$LINENO"; then :
6544  xorg_testset_unknown_warning_option=yes
6545else
6546  xorg_testset_unknown_warning_option=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6550$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6551	CFLAGS="$xorg_testset_save_CFLAGS"
6552fi
6553
6554if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6555	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557	fi
6558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6561	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h.  */
6563int i;
6564_ACEOF
6565if ac_fn_c_try_compile "$LINENO"; then :
6566  xorg_testset_unused_command_line_argument=yes
6567else
6568  xorg_testset_unused_command_line_argument=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6572$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6573	CFLAGS="$xorg_testset_save_CFLAGS"
6574fi
6575
6576found="no"
6577
6578	if test $found = "no" ; then
6579		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581		fi
6582
6583		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6585		fi
6586
6587		CFLAGS="$CFLAGS -Werror=trigraphs"
6588
6589		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
6590$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
6591		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h.  */
6593int i;
6594int
6595main ()
6596{
6597
6598  ;
6599  return 0;
6600}
6601_ACEOF
6602if ac_fn_c_try_link "$LINENO"; then :
6603  supported=yes
6604else
6605  supported=no
6606fi
6607rm -f core conftest.err conftest.$ac_objext \
6608    conftest$ac_exeext conftest.$ac_ext
6609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6610$as_echo "$supported" >&6; }
6611		CFLAGS="$xorg_testset_save_CFLAGS"
6612
6613		if test "$supported" = "yes" ; then
6614			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
6615			found="yes"
6616		fi
6617	fi
6618
6619
6620
6621
6622
6623
6624
6625xorg_testset_save_CFLAGS="$CFLAGS"
6626
6627if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6630$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6631	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632/* end confdefs.h.  */
6633int i;
6634_ACEOF
6635if ac_fn_c_try_compile "$LINENO"; then :
6636  xorg_testset_unknown_warning_option=yes
6637else
6638  xorg_testset_unknown_warning_option=no
6639fi
6640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6642$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6643	CFLAGS="$xorg_testset_save_CFLAGS"
6644fi
6645
6646if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6647	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649	fi
6650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6653	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h.  */
6655int i;
6656_ACEOF
6657if ac_fn_c_try_compile "$LINENO"; then :
6658  xorg_testset_unused_command_line_argument=yes
6659else
6660  xorg_testset_unused_command_line_argument=no
6661fi
6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6664$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6665	CFLAGS="$xorg_testset_save_CFLAGS"
6666fi
6667
6668found="no"
6669
6670	if test $found = "no" ; then
6671		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673		fi
6674
6675		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677		fi
6678
6679		CFLAGS="$CFLAGS -Werror=array-bounds"
6680
6681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
6682$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
6683		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685int i;
6686int
6687main ()
6688{
6689
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_link "$LINENO"; then :
6695  supported=yes
6696else
6697  supported=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext \
6700    conftest$ac_exeext conftest.$ac_ext
6701		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6702$as_echo "$supported" >&6; }
6703		CFLAGS="$xorg_testset_save_CFLAGS"
6704
6705		if test "$supported" = "yes" ; then
6706			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
6707			found="yes"
6708		fi
6709	fi
6710
6711
6712
6713
6714
6715
6716
6717xorg_testset_save_CFLAGS="$CFLAGS"
6718
6719if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6723	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h.  */
6725int i;
6726_ACEOF
6727if ac_fn_c_try_compile "$LINENO"; then :
6728  xorg_testset_unknown_warning_option=yes
6729else
6730  xorg_testset_unknown_warning_option=no
6731fi
6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6734$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6735	CFLAGS="$xorg_testset_save_CFLAGS"
6736fi
6737
6738if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6739	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6740		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741	fi
6742	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6744$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6745	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747int i;
6748_ACEOF
6749if ac_fn_c_try_compile "$LINENO"; then :
6750  xorg_testset_unused_command_line_argument=yes
6751else
6752  xorg_testset_unused_command_line_argument=no
6753fi
6754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6756$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6757	CFLAGS="$xorg_testset_save_CFLAGS"
6758fi
6759
6760found="no"
6761
6762	if test $found = "no" ; then
6763		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6764			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6765		fi
6766
6767		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6768			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6769		fi
6770
6771		CFLAGS="$CFLAGS -Werror=write-strings"
6772
6773		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
6774$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
6775		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777int i;
6778int
6779main ()
6780{
6781
6782  ;
6783  return 0;
6784}
6785_ACEOF
6786if ac_fn_c_try_link "$LINENO"; then :
6787  supported=yes
6788else
6789  supported=no
6790fi
6791rm -f core conftest.err conftest.$ac_objext \
6792    conftest$ac_exeext conftest.$ac_ext
6793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6794$as_echo "$supported" >&6; }
6795		CFLAGS="$xorg_testset_save_CFLAGS"
6796
6797		if test "$supported" = "yes" ; then
6798			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
6799			found="yes"
6800		fi
6801	fi
6802
6803
6804
6805
6806
6807
6808
6809xorg_testset_save_CFLAGS="$CFLAGS"
6810
6811if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6815	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816/* end confdefs.h.  */
6817int i;
6818_ACEOF
6819if ac_fn_c_try_compile "$LINENO"; then :
6820  xorg_testset_unknown_warning_option=yes
6821else
6822  xorg_testset_unknown_warning_option=no
6823fi
6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6826$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6827	CFLAGS="$xorg_testset_save_CFLAGS"
6828fi
6829
6830if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6831	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833	fi
6834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838/* end confdefs.h.  */
6839int i;
6840_ACEOF
6841if ac_fn_c_try_compile "$LINENO"; then :
6842  xorg_testset_unused_command_line_argument=yes
6843else
6844  xorg_testset_unused_command_line_argument=no
6845fi
6846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6848$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6849	CFLAGS="$xorg_testset_save_CFLAGS"
6850fi
6851
6852found="no"
6853
6854	if test $found = "no" ; then
6855		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857		fi
6858
6859		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861		fi
6862
6863		CFLAGS="$CFLAGS -Werror=address"
6864
6865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
6866$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
6867		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868/* end confdefs.h.  */
6869int i;
6870int
6871main ()
6872{
6873
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878if ac_fn_c_try_link "$LINENO"; then :
6879  supported=yes
6880else
6881  supported=no
6882fi
6883rm -f core conftest.err conftest.$ac_objext \
6884    conftest$ac_exeext conftest.$ac_ext
6885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6886$as_echo "$supported" >&6; }
6887		CFLAGS="$xorg_testset_save_CFLAGS"
6888
6889		if test "$supported" = "yes" ; then
6890			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
6891			found="yes"
6892		fi
6893	fi
6894
6895
6896
6897
6898
6899
6900
6901xorg_testset_save_CFLAGS="$CFLAGS"
6902
6903if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6907	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h.  */
6909int i;
6910_ACEOF
6911if ac_fn_c_try_compile "$LINENO"; then :
6912  xorg_testset_unknown_warning_option=yes
6913else
6914  xorg_testset_unknown_warning_option=no
6915fi
6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6918$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6919	CFLAGS="$xorg_testset_save_CFLAGS"
6920fi
6921
6922if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6923	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6924		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6925	fi
6926	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6929	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930/* end confdefs.h.  */
6931int i;
6932_ACEOF
6933if ac_fn_c_try_compile "$LINENO"; then :
6934  xorg_testset_unused_command_line_argument=yes
6935else
6936  xorg_testset_unused_command_line_argument=no
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6940$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6941	CFLAGS="$xorg_testset_save_CFLAGS"
6942fi
6943
6944found="no"
6945
6946	if test $found = "no" ; then
6947		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949		fi
6950
6951		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953		fi
6954
6955		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
6956
6957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
6958$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
6959		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h.  */
6961int i;
6962int
6963main ()
6964{
6965
6966  ;
6967  return 0;
6968}
6969_ACEOF
6970if ac_fn_c_try_link "$LINENO"; then :
6971  supported=yes
6972else
6973  supported=no
6974fi
6975rm -f core conftest.err conftest.$ac_objext \
6976    conftest$ac_exeext conftest.$ac_ext
6977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6978$as_echo "$supported" >&6; }
6979		CFLAGS="$xorg_testset_save_CFLAGS"
6980
6981		if test "$supported" = "yes" ; then
6982			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
6983			found="yes"
6984		fi
6985	fi
6986
6987	if test $found = "no" ; then
6988		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6990		fi
6991
6992		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6994		fi
6995
6996		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
6997
6998		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
6999$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7000		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002int i;
7003int
7004main ()
7005{
7006
7007  ;
7008  return 0;
7009}
7010_ACEOF
7011if ac_fn_c_try_link "$LINENO"; then :
7012  supported=yes
7013else
7014  supported=no
7015fi
7016rm -f core conftest.err conftest.$ac_objext \
7017    conftest$ac_exeext conftest.$ac_ext
7018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7019$as_echo "$supported" >&6; }
7020		CFLAGS="$xorg_testset_save_CFLAGS"
7021
7022		if test "$supported" = "yes" ; then
7023			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7024			found="yes"
7025		fi
7026	fi
7027
7028
7029
7030
7031
7032
7033
7034xorg_testset_save_CFLAGS="$CFLAGS"
7035
7036if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7040	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041/* end confdefs.h.  */
7042int i;
7043_ACEOF
7044if ac_fn_c_try_compile "$LINENO"; then :
7045  xorg_testset_unknown_warning_option=yes
7046else
7047  xorg_testset_unknown_warning_option=no
7048fi
7049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7051$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7052	CFLAGS="$xorg_testset_save_CFLAGS"
7053fi
7054
7055if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7056	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058	fi
7059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7062	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064int i;
7065_ACEOF
7066if ac_fn_c_try_compile "$LINENO"; then :
7067  xorg_testset_unused_command_line_argument=yes
7068else
7069  xorg_testset_unused_command_line_argument=no
7070fi
7071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7073$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7074	CFLAGS="$xorg_testset_save_CFLAGS"
7075fi
7076
7077found="no"
7078
7079	if test $found = "no" ; then
7080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082		fi
7083
7084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086		fi
7087
7088		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7089
7090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7091$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7092		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094int i;
7095int
7096main ()
7097{
7098
7099  ;
7100  return 0;
7101}
7102_ACEOF
7103if ac_fn_c_try_link "$LINENO"; then :
7104  supported=yes
7105else
7106  supported=no
7107fi
7108rm -f core conftest.err conftest.$ac_objext \
7109    conftest$ac_exeext conftest.$ac_ext
7110		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7111$as_echo "$supported" >&6; }
7112		CFLAGS="$xorg_testset_save_CFLAGS"
7113
7114		if test "$supported" = "yes" ; then
7115			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7116			found="yes"
7117		fi
7118	fi
7119
7120 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7121else
7122{ $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
7123$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;}
7124
7125
7126
7127
7128
7129xorg_testset_save_CFLAGS="$CFLAGS"
7130
7131if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7135	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140  xorg_testset_unknown_warning_option=yes
7141else
7142  xorg_testset_unknown_warning_option=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7146$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7147	CFLAGS="$xorg_testset_save_CFLAGS"
7148fi
7149
7150if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7151	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7152		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7153	fi
7154	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7157	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159int i;
7160_ACEOF
7161if ac_fn_c_try_compile "$LINENO"; then :
7162  xorg_testset_unused_command_line_argument=yes
7163else
7164  xorg_testset_unused_command_line_argument=no
7165fi
7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7168$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7169	CFLAGS="$xorg_testset_save_CFLAGS"
7170fi
7171
7172found="no"
7173
7174	if test $found = "no" ; then
7175		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7177		fi
7178
7179		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7181		fi
7182
7183		CFLAGS="$CFLAGS -Wimplicit"
7184
7185		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7186$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7187		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188/* end confdefs.h.  */
7189int i;
7190int
7191main ()
7192{
7193
7194  ;
7195  return 0;
7196}
7197_ACEOF
7198if ac_fn_c_try_link "$LINENO"; then :
7199  supported=yes
7200else
7201  supported=no
7202fi
7203rm -f core conftest.err conftest.$ac_objext \
7204    conftest$ac_exeext conftest.$ac_ext
7205		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7206$as_echo "$supported" >&6; }
7207		CFLAGS="$xorg_testset_save_CFLAGS"
7208
7209		if test "$supported" = "yes" ; then
7210			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7211			found="yes"
7212		fi
7213	fi
7214
7215
7216
7217
7218
7219
7220
7221xorg_testset_save_CFLAGS="$CFLAGS"
7222
7223if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7224	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7227	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228/* end confdefs.h.  */
7229int i;
7230_ACEOF
7231if ac_fn_c_try_compile "$LINENO"; then :
7232  xorg_testset_unknown_warning_option=yes
7233else
7234  xorg_testset_unknown_warning_option=no
7235fi
7236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7238$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7239	CFLAGS="$xorg_testset_save_CFLAGS"
7240fi
7241
7242if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7243	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245	fi
7246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h.  */
7251int i;
7252_ACEOF
7253if ac_fn_c_try_compile "$LINENO"; then :
7254  xorg_testset_unused_command_line_argument=yes
7255else
7256  xorg_testset_unused_command_line_argument=no
7257fi
7258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7260$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7261	CFLAGS="$xorg_testset_save_CFLAGS"
7262fi
7263
7264found="no"
7265
7266	if test $found = "no" ; then
7267		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269		fi
7270
7271		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273		fi
7274
7275		CFLAGS="$CFLAGS -Wnonnull"
7276
7277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
7278$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
7279		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h.  */
7281int i;
7282int
7283main ()
7284{
7285
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290if ac_fn_c_try_link "$LINENO"; then :
7291  supported=yes
7292else
7293  supported=no
7294fi
7295rm -f core conftest.err conftest.$ac_objext \
7296    conftest$ac_exeext conftest.$ac_ext
7297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298$as_echo "$supported" >&6; }
7299		CFLAGS="$xorg_testset_save_CFLAGS"
7300
7301		if test "$supported" = "yes" ; then
7302			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
7303			found="yes"
7304		fi
7305	fi
7306
7307
7308
7309
7310
7311
7312
7313xorg_testset_save_CFLAGS="$CFLAGS"
7314
7315if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7319	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321int i;
7322_ACEOF
7323if ac_fn_c_try_compile "$LINENO"; then :
7324  xorg_testset_unknown_warning_option=yes
7325else
7326  xorg_testset_unknown_warning_option=no
7327fi
7328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7330$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7331	CFLAGS="$xorg_testset_save_CFLAGS"
7332fi
7333
7334if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7335	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7337	fi
7338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7341	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343int i;
7344_ACEOF
7345if ac_fn_c_try_compile "$LINENO"; then :
7346  xorg_testset_unused_command_line_argument=yes
7347else
7348  xorg_testset_unused_command_line_argument=no
7349fi
7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7352$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7353	CFLAGS="$xorg_testset_save_CFLAGS"
7354fi
7355
7356found="no"
7357
7358	if test $found = "no" ; then
7359		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361		fi
7362
7363		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365		fi
7366
7367		CFLAGS="$CFLAGS -Winit-self"
7368
7369		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
7370$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
7371		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373int i;
7374int
7375main ()
7376{
7377
7378  ;
7379  return 0;
7380}
7381_ACEOF
7382if ac_fn_c_try_link "$LINENO"; then :
7383  supported=yes
7384else
7385  supported=no
7386fi
7387rm -f core conftest.err conftest.$ac_objext \
7388    conftest$ac_exeext conftest.$ac_ext
7389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7390$as_echo "$supported" >&6; }
7391		CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393		if test "$supported" = "yes" ; then
7394			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
7395			found="yes"
7396		fi
7397	fi
7398
7399
7400
7401
7402
7403
7404
7405xorg_testset_save_CFLAGS="$CFLAGS"
7406
7407if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7408	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7411	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413int i;
7414_ACEOF
7415if ac_fn_c_try_compile "$LINENO"; then :
7416  xorg_testset_unknown_warning_option=yes
7417else
7418  xorg_testset_unknown_warning_option=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7422$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7423	CFLAGS="$xorg_testset_save_CFLAGS"
7424fi
7425
7426if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7427	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429	fi
7430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7433	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435int i;
7436_ACEOF
7437if ac_fn_c_try_compile "$LINENO"; then :
7438  xorg_testset_unused_command_line_argument=yes
7439else
7440  xorg_testset_unused_command_line_argument=no
7441fi
7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7444$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7445	CFLAGS="$xorg_testset_save_CFLAGS"
7446fi
7447
7448found="no"
7449
7450	if test $found = "no" ; then
7451		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453		fi
7454
7455		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457		fi
7458
7459		CFLAGS="$CFLAGS -Wmain"
7460
7461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
7462$as_echo_n "checking if $CC supports -Wmain... " >&6; }
7463		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h.  */
7465int i;
7466int
7467main ()
7468{
7469
7470  ;
7471  return 0;
7472}
7473_ACEOF
7474if ac_fn_c_try_link "$LINENO"; then :
7475  supported=yes
7476else
7477  supported=no
7478fi
7479rm -f core conftest.err conftest.$ac_objext \
7480    conftest$ac_exeext conftest.$ac_ext
7481		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7482$as_echo "$supported" >&6; }
7483		CFLAGS="$xorg_testset_save_CFLAGS"
7484
7485		if test "$supported" = "yes" ; then
7486			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
7487			found="yes"
7488		fi
7489	fi
7490
7491
7492
7493
7494
7495
7496
7497xorg_testset_save_CFLAGS="$CFLAGS"
7498
7499if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7503	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h.  */
7505int i;
7506_ACEOF
7507if ac_fn_c_try_compile "$LINENO"; then :
7508  xorg_testset_unknown_warning_option=yes
7509else
7510  xorg_testset_unknown_warning_option=no
7511fi
7512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7514$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7515	CFLAGS="$xorg_testset_save_CFLAGS"
7516fi
7517
7518if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7519	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521	fi
7522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7525	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h.  */
7527int i;
7528_ACEOF
7529if ac_fn_c_try_compile "$LINENO"; then :
7530  xorg_testset_unused_command_line_argument=yes
7531else
7532  xorg_testset_unused_command_line_argument=no
7533fi
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7536$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7537	CFLAGS="$xorg_testset_save_CFLAGS"
7538fi
7539
7540found="no"
7541
7542	if test $found = "no" ; then
7543		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545		fi
7546
7547		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549		fi
7550
7551		CFLAGS="$CFLAGS -Wmissing-braces"
7552
7553		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
7554$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
7555		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557int i;
7558int
7559main ()
7560{
7561
7562  ;
7563  return 0;
7564}
7565_ACEOF
7566if ac_fn_c_try_link "$LINENO"; then :
7567  supported=yes
7568else
7569  supported=no
7570fi
7571rm -f core conftest.err conftest.$ac_objext \
7572    conftest$ac_exeext conftest.$ac_ext
7573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574$as_echo "$supported" >&6; }
7575		CFLAGS="$xorg_testset_save_CFLAGS"
7576
7577		if test "$supported" = "yes" ; then
7578			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
7579			found="yes"
7580		fi
7581	fi
7582
7583
7584
7585
7586
7587
7588
7589xorg_testset_save_CFLAGS="$CFLAGS"
7590
7591if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7592	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7595	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597int i;
7598_ACEOF
7599if ac_fn_c_try_compile "$LINENO"; then :
7600  xorg_testset_unknown_warning_option=yes
7601else
7602  xorg_testset_unknown_warning_option=no
7603fi
7604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7606$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7607	CFLAGS="$xorg_testset_save_CFLAGS"
7608fi
7609
7610if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7611	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613	fi
7614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7617	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619int i;
7620_ACEOF
7621if ac_fn_c_try_compile "$LINENO"; then :
7622  xorg_testset_unused_command_line_argument=yes
7623else
7624  xorg_testset_unused_command_line_argument=no
7625fi
7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7628$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7629	CFLAGS="$xorg_testset_save_CFLAGS"
7630fi
7631
7632found="no"
7633
7634	if test $found = "no" ; then
7635		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637		fi
7638
7639		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641		fi
7642
7643		CFLAGS="$CFLAGS -Wsequence-point"
7644
7645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
7646$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
7647		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h.  */
7649int i;
7650int
7651main ()
7652{
7653
7654  ;
7655  return 0;
7656}
7657_ACEOF
7658if ac_fn_c_try_link "$LINENO"; then :
7659  supported=yes
7660else
7661  supported=no
7662fi
7663rm -f core conftest.err conftest.$ac_objext \
7664    conftest$ac_exeext conftest.$ac_ext
7665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7666$as_echo "$supported" >&6; }
7667		CFLAGS="$xorg_testset_save_CFLAGS"
7668
7669		if test "$supported" = "yes" ; then
7670			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
7671			found="yes"
7672		fi
7673	fi
7674
7675
7676
7677
7678
7679
7680
7681xorg_testset_save_CFLAGS="$CFLAGS"
7682
7683if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7687	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"; then :
7692  xorg_testset_unknown_warning_option=yes
7693else
7694  xorg_testset_unknown_warning_option=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7698$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7699	CFLAGS="$xorg_testset_save_CFLAGS"
7700fi
7701
7702if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7703	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7704		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7705	fi
7706	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7709	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710/* end confdefs.h.  */
7711int i;
7712_ACEOF
7713if ac_fn_c_try_compile "$LINENO"; then :
7714  xorg_testset_unused_command_line_argument=yes
7715else
7716  xorg_testset_unused_command_line_argument=no
7717fi
7718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7720$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7721	CFLAGS="$xorg_testset_save_CFLAGS"
7722fi
7723
7724found="no"
7725
7726	if test $found = "no" ; then
7727		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7729		fi
7730
7731		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7733		fi
7734
7735		CFLAGS="$CFLAGS -Wreturn-type"
7736
7737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
7738$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
7739		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740/* end confdefs.h.  */
7741int i;
7742int
7743main ()
7744{
7745
7746  ;
7747  return 0;
7748}
7749_ACEOF
7750if ac_fn_c_try_link "$LINENO"; then :
7751  supported=yes
7752else
7753  supported=no
7754fi
7755rm -f core conftest.err conftest.$ac_objext \
7756    conftest$ac_exeext conftest.$ac_ext
7757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7758$as_echo "$supported" >&6; }
7759		CFLAGS="$xorg_testset_save_CFLAGS"
7760
7761		if test "$supported" = "yes" ; then
7762			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
7763			found="yes"
7764		fi
7765	fi
7766
7767
7768
7769
7770
7771
7772
7773xorg_testset_save_CFLAGS="$CFLAGS"
7774
7775if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7779	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"; then :
7784  xorg_testset_unknown_warning_option=yes
7785else
7786  xorg_testset_unknown_warning_option=no
7787fi
7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7790$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7791	CFLAGS="$xorg_testset_save_CFLAGS"
7792fi
7793
7794if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7795	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7797	fi
7798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7801	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802/* end confdefs.h.  */
7803int i;
7804_ACEOF
7805if ac_fn_c_try_compile "$LINENO"; then :
7806  xorg_testset_unused_command_line_argument=yes
7807else
7808  xorg_testset_unused_command_line_argument=no
7809fi
7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7812$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7813	CFLAGS="$xorg_testset_save_CFLAGS"
7814fi
7815
7816found="no"
7817
7818	if test $found = "no" ; then
7819		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821		fi
7822
7823		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825		fi
7826
7827		CFLAGS="$CFLAGS -Wtrigraphs"
7828
7829		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
7830$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
7831		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832/* end confdefs.h.  */
7833int i;
7834int
7835main ()
7836{
7837
7838  ;
7839  return 0;
7840}
7841_ACEOF
7842if ac_fn_c_try_link "$LINENO"; then :
7843  supported=yes
7844else
7845  supported=no
7846fi
7847rm -f core conftest.err conftest.$ac_objext \
7848    conftest$ac_exeext conftest.$ac_ext
7849		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7850$as_echo "$supported" >&6; }
7851		CFLAGS="$xorg_testset_save_CFLAGS"
7852
7853		if test "$supported" = "yes" ; then
7854			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
7855			found="yes"
7856		fi
7857	fi
7858
7859
7860
7861
7862
7863
7864
7865xorg_testset_save_CFLAGS="$CFLAGS"
7866
7867if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7871	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872/* end confdefs.h.  */
7873int i;
7874_ACEOF
7875if ac_fn_c_try_compile "$LINENO"; then :
7876  xorg_testset_unknown_warning_option=yes
7877else
7878  xorg_testset_unknown_warning_option=no
7879fi
7880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7882$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7883	CFLAGS="$xorg_testset_save_CFLAGS"
7884fi
7885
7886if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7887	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889	fi
7890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7893	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894/* end confdefs.h.  */
7895int i;
7896_ACEOF
7897if ac_fn_c_try_compile "$LINENO"; then :
7898  xorg_testset_unused_command_line_argument=yes
7899else
7900  xorg_testset_unused_command_line_argument=no
7901fi
7902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7904$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7905	CFLAGS="$xorg_testset_save_CFLAGS"
7906fi
7907
7908found="no"
7909
7910	if test $found = "no" ; then
7911		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913		fi
7914
7915		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7917		fi
7918
7919		CFLAGS="$CFLAGS -Warray-bounds"
7920
7921		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
7922$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
7923		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h.  */
7925int i;
7926int
7927main ()
7928{
7929
7930  ;
7931  return 0;
7932}
7933_ACEOF
7934if ac_fn_c_try_link "$LINENO"; then :
7935  supported=yes
7936else
7937  supported=no
7938fi
7939rm -f core conftest.err conftest.$ac_objext \
7940    conftest$ac_exeext conftest.$ac_ext
7941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7942$as_echo "$supported" >&6; }
7943		CFLAGS="$xorg_testset_save_CFLAGS"
7944
7945		if test "$supported" = "yes" ; then
7946			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
7947			found="yes"
7948		fi
7949	fi
7950
7951
7952
7953
7954
7955
7956
7957xorg_testset_save_CFLAGS="$CFLAGS"
7958
7959if test "x$xorg_testset_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; }
7963	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965int i;
7966_ACEOF
7967if ac_fn_c_try_compile "$LINENO"; then :
7968  xorg_testset_unknown_warning_option=yes
7969else
7970  xorg_testset_unknown_warning_option=no
7971fi
7972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7974$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7975	CFLAGS="$xorg_testset_save_CFLAGS"
7976fi
7977
7978if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7979	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981	fi
7982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7985	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987int i;
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"; then :
7990  xorg_testset_unused_command_line_argument=yes
7991else
7992  xorg_testset_unused_command_line_argument=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7996$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7997	CFLAGS="$xorg_testset_save_CFLAGS"
7998fi
7999
8000found="no"
8001
8002	if test $found = "no" ; then
8003		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005		fi
8006
8007		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8009		fi
8010
8011		CFLAGS="$CFLAGS -Wwrite-strings"
8012
8013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
8014$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
8015		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016/* end confdefs.h.  */
8017int i;
8018int
8019main ()
8020{
8021
8022  ;
8023  return 0;
8024}
8025_ACEOF
8026if ac_fn_c_try_link "$LINENO"; then :
8027  supported=yes
8028else
8029  supported=no
8030fi
8031rm -f core conftest.err conftest.$ac_objext \
8032    conftest$ac_exeext conftest.$ac_ext
8033		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8034$as_echo "$supported" >&6; }
8035		CFLAGS="$xorg_testset_save_CFLAGS"
8036
8037		if test "$supported" = "yes" ; then
8038			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
8039			found="yes"
8040		fi
8041	fi
8042
8043
8044
8045
8046
8047
8048
8049xorg_testset_save_CFLAGS="$CFLAGS"
8050
8051if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8055	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057int i;
8058_ACEOF
8059if ac_fn_c_try_compile "$LINENO"; then :
8060  xorg_testset_unknown_warning_option=yes
8061else
8062  xorg_testset_unknown_warning_option=no
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8066$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8067	CFLAGS="$xorg_testset_save_CFLAGS"
8068fi
8069
8070if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8071	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073	fi
8074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8077	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h.  */
8079int i;
8080_ACEOF
8081if ac_fn_c_try_compile "$LINENO"; then :
8082  xorg_testset_unused_command_line_argument=yes
8083else
8084  xorg_testset_unused_command_line_argument=no
8085fi
8086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8088$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8089	CFLAGS="$xorg_testset_save_CFLAGS"
8090fi
8091
8092found="no"
8093
8094	if test $found = "no" ; then
8095		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097		fi
8098
8099		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101		fi
8102
8103		CFLAGS="$CFLAGS -Waddress"
8104
8105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
8106$as_echo_n "checking if $CC supports -Waddress... " >&6; }
8107		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h.  */
8109int i;
8110int
8111main ()
8112{
8113
8114  ;
8115  return 0;
8116}
8117_ACEOF
8118if ac_fn_c_try_link "$LINENO"; then :
8119  supported=yes
8120else
8121  supported=no
8122fi
8123rm -f core conftest.err conftest.$ac_objext \
8124    conftest$ac_exeext conftest.$ac_ext
8125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8126$as_echo "$supported" >&6; }
8127		CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129		if test "$supported" = "yes" ; then
8130			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
8131			found="yes"
8132		fi
8133	fi
8134
8135
8136
8137
8138
8139
8140
8141xorg_testset_save_CFLAGS="$CFLAGS"
8142
8143if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8147	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148/* end confdefs.h.  */
8149int i;
8150_ACEOF
8151if ac_fn_c_try_compile "$LINENO"; then :
8152  xorg_testset_unknown_warning_option=yes
8153else
8154  xorg_testset_unknown_warning_option=no
8155fi
8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8158$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8159	CFLAGS="$xorg_testset_save_CFLAGS"
8160fi
8161
8162if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8163	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8165	fi
8166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8169	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170/* end confdefs.h.  */
8171int i;
8172_ACEOF
8173if ac_fn_c_try_compile "$LINENO"; then :
8174  xorg_testset_unused_command_line_argument=yes
8175else
8176  xorg_testset_unused_command_line_argument=no
8177fi
8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8180$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8181	CFLAGS="$xorg_testset_save_CFLAGS"
8182fi
8183
8184found="no"
8185
8186	if test $found = "no" ; then
8187		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189		fi
8190
8191		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193		fi
8194
8195		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
8196
8197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
8198$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
8199		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201int i;
8202int
8203main ()
8204{
8205
8206  ;
8207  return 0;
8208}
8209_ACEOF
8210if ac_fn_c_try_link "$LINENO"; then :
8211  supported=yes
8212else
8213  supported=no
8214fi
8215rm -f core conftest.err conftest.$ac_objext \
8216    conftest$ac_exeext conftest.$ac_ext
8217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8218$as_echo "$supported" >&6; }
8219		CFLAGS="$xorg_testset_save_CFLAGS"
8220
8221		if test "$supported" = "yes" ; then
8222			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
8223			found="yes"
8224		fi
8225	fi
8226
8227
8228
8229
8230
8231
8232
8233xorg_testset_save_CFLAGS="$CFLAGS"
8234
8235if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8239	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241int i;
8242_ACEOF
8243if ac_fn_c_try_compile "$LINENO"; then :
8244  xorg_testset_unknown_warning_option=yes
8245else
8246  xorg_testset_unknown_warning_option=no
8247fi
8248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8250$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8251	CFLAGS="$xorg_testset_save_CFLAGS"
8252fi
8253
8254if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8255	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257	fi
8258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8261	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263int i;
8264_ACEOF
8265if ac_fn_c_try_compile "$LINENO"; then :
8266  xorg_testset_unused_command_line_argument=yes
8267else
8268  xorg_testset_unused_command_line_argument=no
8269fi
8270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8272$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8273	CFLAGS="$xorg_testset_save_CFLAGS"
8274fi
8275
8276found="no"
8277
8278	if test $found = "no" ; then
8279		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281		fi
8282
8283		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8285		fi
8286
8287		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
8288
8289		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
8290$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
8291		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h.  */
8293int i;
8294int
8295main ()
8296{
8297
8298  ;
8299  return 0;
8300}
8301_ACEOF
8302if ac_fn_c_try_link "$LINENO"; then :
8303  supported=yes
8304else
8305  supported=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext \
8308    conftest$ac_exeext conftest.$ac_ext
8309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8310$as_echo "$supported" >&6; }
8311		CFLAGS="$xorg_testset_save_CFLAGS"
8312
8313		if test "$supported" = "yes" ; then
8314			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
8315			found="yes"
8316		fi
8317	fi
8318
8319
8320fi
8321
8322
8323
8324
8325
8326
8327CWARNFLAGS="$BASE_CFLAGS"
8328if  test "x$GCC" = xyes ; then
8329    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
8330fi
8331
8332
8333
8334
8335
8336
8337# Check whether --enable-strict-compilation was given.
8338if test "${enable_strict_compilation+set}" = set; then :
8339  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
8340else
8341  STRICT_COMPILE=no
8342fi
8343
8344
8345STRICT_CFLAGS=""
8346
8347
8348
8349
8350
8351xorg_testset_save_CFLAGS="$CFLAGS"
8352
8353if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8357	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359int i;
8360_ACEOF
8361if ac_fn_c_try_compile "$LINENO"; then :
8362  xorg_testset_unknown_warning_option=yes
8363else
8364  xorg_testset_unknown_warning_option=no
8365fi
8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8368$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8369	CFLAGS="$xorg_testset_save_CFLAGS"
8370fi
8371
8372if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8373	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375	fi
8376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8377	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8378$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8379	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h.  */
8381int i;
8382_ACEOF
8383if ac_fn_c_try_compile "$LINENO"; then :
8384  xorg_testset_unused_command_line_argument=yes
8385else
8386  xorg_testset_unused_command_line_argument=no
8387fi
8388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8390$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8391	CFLAGS="$xorg_testset_save_CFLAGS"
8392fi
8393
8394found="no"
8395
8396	if test $found = "no" ; then
8397		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399		fi
8400
8401		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8403		fi
8404
8405		CFLAGS="$CFLAGS -pedantic"
8406
8407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
8408$as_echo_n "checking if $CC supports -pedantic... " >&6; }
8409		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h.  */
8411int i;
8412int
8413main ()
8414{
8415
8416  ;
8417  return 0;
8418}
8419_ACEOF
8420if ac_fn_c_try_link "$LINENO"; then :
8421  supported=yes
8422else
8423  supported=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext \
8426    conftest$ac_exeext conftest.$ac_ext
8427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8428$as_echo "$supported" >&6; }
8429		CFLAGS="$xorg_testset_save_CFLAGS"
8430
8431		if test "$supported" = "yes" ; then
8432			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
8433			found="yes"
8434		fi
8435	fi
8436
8437
8438
8439
8440
8441
8442
8443xorg_testset_save_CFLAGS="$CFLAGS"
8444
8445if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8446	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8449	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450/* end confdefs.h.  */
8451int i;
8452_ACEOF
8453if ac_fn_c_try_compile "$LINENO"; then :
8454  xorg_testset_unknown_warning_option=yes
8455else
8456  xorg_testset_unknown_warning_option=no
8457fi
8458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8460$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8461	CFLAGS="$xorg_testset_save_CFLAGS"
8462fi
8463
8464if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8465	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467	fi
8468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8471	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473int i;
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"; then :
8476  xorg_testset_unused_command_line_argument=yes
8477else
8478  xorg_testset_unused_command_line_argument=no
8479fi
8480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8482$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8483	CFLAGS="$xorg_testset_save_CFLAGS"
8484fi
8485
8486found="no"
8487
8488	if test $found = "no" ; then
8489		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8491		fi
8492
8493		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8495		fi
8496
8497		CFLAGS="$CFLAGS -Werror"
8498
8499		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
8500$as_echo_n "checking if $CC supports -Werror... " >&6; }
8501		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502/* end confdefs.h.  */
8503int i;
8504int
8505main ()
8506{
8507
8508  ;
8509  return 0;
8510}
8511_ACEOF
8512if ac_fn_c_try_link "$LINENO"; then :
8513  supported=yes
8514else
8515  supported=no
8516fi
8517rm -f core conftest.err conftest.$ac_objext \
8518    conftest$ac_exeext conftest.$ac_ext
8519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8520$as_echo "$supported" >&6; }
8521		CFLAGS="$xorg_testset_save_CFLAGS"
8522
8523		if test "$supported" = "yes" ; then
8524			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
8525			found="yes"
8526		fi
8527	fi
8528
8529	if test $found = "no" ; then
8530		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532		fi
8533
8534		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536		fi
8537
8538		CFLAGS="$CFLAGS -errwarn"
8539
8540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
8541$as_echo_n "checking if $CC supports -errwarn... " >&6; }
8542		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543/* end confdefs.h.  */
8544int i;
8545int
8546main ()
8547{
8548
8549  ;
8550  return 0;
8551}
8552_ACEOF
8553if ac_fn_c_try_link "$LINENO"; then :
8554  supported=yes
8555else
8556  supported=no
8557fi
8558rm -f core conftest.err conftest.$ac_objext \
8559    conftest$ac_exeext conftest.$ac_ext
8560		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8561$as_echo "$supported" >&6; }
8562		CFLAGS="$xorg_testset_save_CFLAGS"
8563
8564		if test "$supported" = "yes" ; then
8565			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
8566			found="yes"
8567		fi
8568	fi
8569
8570
8571
8572# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
8573# activate it with -Werror, so we add it here explicitly.
8574
8575
8576
8577
8578
8579xorg_testset_save_CFLAGS="$CFLAGS"
8580
8581if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8585	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586/* end confdefs.h.  */
8587int i;
8588_ACEOF
8589if ac_fn_c_try_compile "$LINENO"; then :
8590  xorg_testset_unknown_warning_option=yes
8591else
8592  xorg_testset_unknown_warning_option=no
8593fi
8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8596$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8597	CFLAGS="$xorg_testset_save_CFLAGS"
8598fi
8599
8600if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8601	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603	fi
8604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8607	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609int i;
8610_ACEOF
8611if ac_fn_c_try_compile "$LINENO"; then :
8612  xorg_testset_unused_command_line_argument=yes
8613else
8614  xorg_testset_unused_command_line_argument=no
8615fi
8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8618$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8619	CFLAGS="$xorg_testset_save_CFLAGS"
8620fi
8621
8622found="no"
8623
8624	if test $found = "no" ; then
8625		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627		fi
8628
8629		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631		fi
8632
8633		CFLAGS="$CFLAGS -Werror=attributes"
8634
8635		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
8636$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
8637		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h.  */
8639int i;
8640int
8641main ()
8642{
8643
8644  ;
8645  return 0;
8646}
8647_ACEOF
8648if ac_fn_c_try_link "$LINENO"; then :
8649  supported=yes
8650else
8651  supported=no
8652fi
8653rm -f core conftest.err conftest.$ac_objext \
8654    conftest$ac_exeext conftest.$ac_ext
8655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8656$as_echo "$supported" >&6; }
8657		CFLAGS="$xorg_testset_save_CFLAGS"
8658
8659		if test "$supported" = "yes" ; then
8660			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
8661			found="yes"
8662		fi
8663	fi
8664
8665
8666
8667if test "x$STRICT_COMPILE" = "xyes"; then
8668    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
8669    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
8670fi
8671
8672
8673
8674
8675
8676
8677cat >>confdefs.h <<_ACEOF
8678#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
8679_ACEOF
8680
8681	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
8682	if test "x$PVM" = "x"; then
8683		PVM="0"
8684	fi
8685
8686cat >>confdefs.h <<_ACEOF
8687#define PACKAGE_VERSION_MINOR $PVM
8688_ACEOF
8689
8690	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
8691	if test "x$PVP" = "x"; then
8692		PVP="0"
8693	fi
8694
8695cat >>confdefs.h <<_ACEOF
8696#define PACKAGE_VERSION_PATCHLEVEL $PVP
8697_ACEOF
8698
8699
8700
8701CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
8702mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
8703|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
8704echo 'git directory not found: installing possibly empty changelog.' >&2)"
8705
8706
8707
8708
8709macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
8710INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
8711mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
8712|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
8713echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
8714
8715
8716
8717
8718
8719
8720if test x$APP_MAN_SUFFIX = x    ; then
8721    APP_MAN_SUFFIX=1
8722fi
8723if test x$APP_MAN_DIR = x    ; then
8724    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
8725fi
8726
8727if test x$LIB_MAN_SUFFIX = x    ; then
8728    LIB_MAN_SUFFIX=3
8729fi
8730if test x$LIB_MAN_DIR = x    ; then
8731    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
8732fi
8733
8734if test x$FILE_MAN_SUFFIX = x    ; then
8735    case $host_os in
8736	solaris*)	FILE_MAN_SUFFIX=4  ;;
8737	*)		FILE_MAN_SUFFIX=5  ;;
8738    esac
8739fi
8740if test x$FILE_MAN_DIR = x    ; then
8741    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
8742fi
8743
8744if test x$MISC_MAN_SUFFIX = x    ; then
8745    case $host_os in
8746	solaris*)	MISC_MAN_SUFFIX=5  ;;
8747	*)		MISC_MAN_SUFFIX=7  ;;
8748    esac
8749fi
8750if test x$MISC_MAN_DIR = x    ; then
8751    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
8752fi
8753
8754if test x$DRIVER_MAN_SUFFIX = x    ; then
8755    case $host_os in
8756	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
8757	*)		DRIVER_MAN_SUFFIX=4  ;;
8758    esac
8759fi
8760if test x$DRIVER_MAN_DIR = x    ; then
8761    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
8762fi
8763
8764if test x$ADMIN_MAN_SUFFIX = x    ; then
8765    case $host_os in
8766	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
8767	*)		ADMIN_MAN_SUFFIX=8  ;;
8768    esac
8769fi
8770if test x$ADMIN_MAN_DIR = x    ; then
8771    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
8772fi
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788XORG_MAN_PAGE="X Version 11"
8789
8790MAN_SUBSTS="\
8791	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
8792	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
8793	-e 's|__xservername__|Xorg|g' \
8794	-e 's|__xconfigfile__|xorg.conf|g' \
8795	-e 's|__projectroot__|\$(prefix)|g' \
8796	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
8797	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
8798	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
8799	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
8800	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
8801	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
8802	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
8803
8804
8805
8806# Check whether --enable-silent-rules was given.
8807if test "${enable_silent_rules+set}" = set; then :
8808  enableval=$enable_silent_rules;
8809fi
8810
8811case $enable_silent_rules in
8812yes) AM_DEFAULT_VERBOSITY=0;;
8813no)  AM_DEFAULT_VERBOSITY=1;;
8814*)   AM_DEFAULT_VERBOSITY=0;;
8815esac
8816am_make=${MAKE-make}
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
8818$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
8819if ${am_cv_make_support_nested_variables+:} false; then :
8820  $as_echo_n "(cached) " >&6
8821else
8822  if $as_echo 'TRUE=$(BAR$(V))
8823BAR0=false
8824BAR1=true
8825V=1
8826am__doit:
8827	@$(TRUE)
8828.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
8829  am_cv_make_support_nested_variables=yes
8830else
8831  am_cv_make_support_nested_variables=no
8832fi
8833fi
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
8835$as_echo "$am_cv_make_support_nested_variables" >&6; }
8836if test $am_cv_make_support_nested_variables = yes; then
8837    AM_V='$(V)'
8838  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
8839else
8840  AM_V=$AM_DEFAULT_VERBOSITY
8841  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
8842fi
8843AM_BACKSLASH='\'
8844
8845
8846
8847ac_aux_dir=
8848for ac_dir in . "$srcdir"/.; do
8849  if test -f "$ac_dir/install-sh"; then
8850    ac_aux_dir=$ac_dir
8851    ac_install_sh="$ac_aux_dir/install-sh -c"
8852    break
8853  elif test -f "$ac_dir/install.sh"; then
8854    ac_aux_dir=$ac_dir
8855    ac_install_sh="$ac_aux_dir/install.sh -c"
8856    break
8857  elif test -f "$ac_dir/shtool"; then
8858    ac_aux_dir=$ac_dir
8859    ac_install_sh="$ac_aux_dir/shtool install -c"
8860    break
8861  fi
8862done
8863if test -z "$ac_aux_dir"; then
8864  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
8865fi
8866
8867# These three variables are undocumented and unsupported,
8868# and are intended to be withdrawn in a future Autoconf release.
8869# They can cause serious problems if a builder's source tree is in a directory
8870# whose full name contains unusual characters.
8871ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
8872ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
8873ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
8874
8875
8876
8877# Initialize Automake
8878am__api_version='1.11'
8879
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8881$as_echo_n "checking whether build environment is sane... " >&6; }
8882# Just in case
8883sleep 1
8884echo timestamp > conftest.file
8885# Reject unsafe characters in $srcdir or the absolute working directory
8886# name.  Accept space and tab only in the latter.
8887am_lf='
8888'
8889case `pwd` in
8890  *[\\\"\#\$\&\'\`$am_lf]*)
8891    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
8892esac
8893case $srcdir in
8894  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
8895    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
8896esac
8897
8898# Do `set' in a subshell so we don't clobber the current shell's
8899# arguments.  Must try -L first in case configure is actually a
8900# symlink; some systems play weird games with the mod time of symlinks
8901# (eg FreeBSD returns the mod time of the symlink's containing
8902# directory).
8903if (
8904   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8905   if test "$*" = "X"; then
8906      # -L didn't work.
8907      set X `ls -t "$srcdir/configure" conftest.file`
8908   fi
8909   rm -f conftest.file
8910   if test "$*" != "X $srcdir/configure conftest.file" \
8911      && test "$*" != "X conftest.file $srcdir/configure"; then
8912
8913      # If neither matched, then we have a broken ls.  This can happen
8914      # if, for instance, CONFIG_SHELL is bash and it inherits a
8915      # broken ls alias from the environment.  This has actually
8916      # happened.  Such a system could not be considered "sane".
8917      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
8918alias in your environment" "$LINENO" 5
8919   fi
8920
8921   test "$2" = conftest.file
8922   )
8923then
8924   # Ok.
8925   :
8926else
8927   as_fn_error $? "newly created file is older than distributed files!
8928Check your system clock" "$LINENO" 5
8929fi
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8931$as_echo "yes" >&6; }
8932test "$program_prefix" != NONE &&
8933  program_transform_name="s&^&$program_prefix&;$program_transform_name"
8934# Use a double $ so make ignores it.
8935test "$program_suffix" != NONE &&
8936  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8937# Double any \ or $.
8938# By default was `s,x,x', remove it if useless.
8939ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
8940program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8941
8942# expand $ac_aux_dir to an absolute path
8943am_aux_dir=`cd $ac_aux_dir && pwd`
8944
8945if test x"${MISSING+set}" != xset; then
8946  case $am_aux_dir in
8947  *\ * | *\	*)
8948    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
8949  *)
8950    MISSING="\${SHELL} $am_aux_dir/missing" ;;
8951  esac
8952fi
8953# Use eval to expand $SHELL
8954if eval "$MISSING --run true"; then
8955  am_missing_run="$MISSING --run "
8956else
8957  am_missing_run=
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8959$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8960fi
8961
8962if test x"${install_sh}" != xset; then
8963  case $am_aux_dir in
8964  *\ * | *\	*)
8965    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
8966  *)
8967    install_sh="\${SHELL} $am_aux_dir/install-sh"
8968  esac
8969fi
8970
8971# Installed binaries are usually stripped using `strip' when the user
8972# run `make install-strip'.  However `strip' might not be the right
8973# tool to use in cross-compilation environments, therefore Automake
8974# will honor the `STRIP' environment variable to overrule this program.
8975if test "$cross_compiling" != no; then
8976  if test -n "$ac_tool_prefix"; then
8977  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8978set dummy ${ac_tool_prefix}strip; ac_word=$2
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980$as_echo_n "checking for $ac_word... " >&6; }
8981if ${ac_cv_prog_STRIP+:} false; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  if test -n "$STRIP"; then
8985  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990  IFS=$as_save_IFS
8991  test -z "$as_dir" && as_dir=.
8992    for ac_exec_ext in '' $ac_executable_extensions; do
8993  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8995    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996    break 2
8997  fi
8998done
8999  done
9000IFS=$as_save_IFS
9001
9002fi
9003fi
9004STRIP=$ac_cv_prog_STRIP
9005if test -n "$STRIP"; then
9006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9007$as_echo "$STRIP" >&6; }
9008else
9009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010$as_echo "no" >&6; }
9011fi
9012
9013
9014fi
9015if test -z "$ac_cv_prog_STRIP"; then
9016  ac_ct_STRIP=$STRIP
9017  # Extract the first word of "strip", so it can be a program name with args.
9018set dummy strip; ac_word=$2
9019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020$as_echo_n "checking for $ac_word... " >&6; }
9021if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9022  $as_echo_n "(cached) " >&6
9023else
9024  if test -n "$ac_ct_STRIP"; then
9025  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9026else
9027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028for as_dir in $PATH
9029do
9030  IFS=$as_save_IFS
9031  test -z "$as_dir" && as_dir=.
9032    for ac_exec_ext in '' $ac_executable_extensions; do
9033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9034    ac_cv_prog_ac_ct_STRIP="strip"
9035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9036    break 2
9037  fi
9038done
9039  done
9040IFS=$as_save_IFS
9041
9042fi
9043fi
9044ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9045if test -n "$ac_ct_STRIP"; then
9046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9047$as_echo "$ac_ct_STRIP" >&6; }
9048else
9049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050$as_echo "no" >&6; }
9051fi
9052
9053  if test "x$ac_ct_STRIP" = x; then
9054    STRIP=":"
9055  else
9056    case $cross_compiling:$ac_tool_warned in
9057yes:)
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9060ac_tool_warned=yes ;;
9061esac
9062    STRIP=$ac_ct_STRIP
9063  fi
9064else
9065  STRIP="$ac_cv_prog_STRIP"
9066fi
9067
9068fi
9069INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9070
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9072$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9073if test -z "$MKDIR_P"; then
9074  if ${ac_cv_path_mkdir+:} false; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9079do
9080  IFS=$as_save_IFS
9081  test -z "$as_dir" && as_dir=.
9082    for ac_prog in mkdir gmkdir; do
9083	 for ac_exec_ext in '' $ac_executable_extensions; do
9084	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9085	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9086	     'mkdir (GNU coreutils) '* | \
9087	     'mkdir (coreutils) '* | \
9088	     'mkdir (fileutils) '4.1*)
9089	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9090	       break 3;;
9091	   esac
9092	 done
9093       done
9094  done
9095IFS=$as_save_IFS
9096
9097fi
9098
9099  test -d ./--version && rmdir ./--version
9100  if test "${ac_cv_path_mkdir+set}" = set; then
9101    MKDIR_P="$ac_cv_path_mkdir -p"
9102  else
9103    # As a last resort, use the slow shell script.  Don't cache a
9104    # value for MKDIR_P within a source directory, because that will
9105    # break other packages using the cache if that directory is
9106    # removed, or if the value is a relative name.
9107    MKDIR_P="$ac_install_sh -d"
9108  fi
9109fi
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9111$as_echo "$MKDIR_P" >&6; }
9112
9113mkdir_p="$MKDIR_P"
9114case $mkdir_p in
9115  [\\/$]* | ?:[\\/]*) ;;
9116  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9117esac
9118
9119for ac_prog in gawk mawk nawk awk
9120do
9121  # Extract the first word of "$ac_prog", so it can be a program name with args.
9122set dummy $ac_prog; ac_word=$2
9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124$as_echo_n "checking for $ac_word... " >&6; }
9125if ${ac_cv_prog_AWK+:} false; then :
9126  $as_echo_n "(cached) " >&6
9127else
9128  if test -n "$AWK"; then
9129  ac_cv_prog_AWK="$AWK" # Let the user override the test.
9130else
9131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132for as_dir in $PATH
9133do
9134  IFS=$as_save_IFS
9135  test -z "$as_dir" && as_dir=.
9136    for ac_exec_ext in '' $ac_executable_extensions; do
9137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138    ac_cv_prog_AWK="$ac_prog"
9139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140    break 2
9141  fi
9142done
9143  done
9144IFS=$as_save_IFS
9145
9146fi
9147fi
9148AWK=$ac_cv_prog_AWK
9149if test -n "$AWK"; then
9150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9151$as_echo "$AWK" >&6; }
9152else
9153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154$as_echo "no" >&6; }
9155fi
9156
9157
9158  test -n "$AWK" && break
9159done
9160
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9162$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9163set x ${MAKE-make}
9164ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9165if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9166  $as_echo_n "(cached) " >&6
9167else
9168  cat >conftest.make <<\_ACEOF
9169SHELL = /bin/sh
9170all:
9171	@echo '@@@%%%=$(MAKE)=@@@%%%'
9172_ACEOF
9173# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9174case `${MAKE-make} -f conftest.make 2>/dev/null` in
9175  *@@@%%%=?*=@@@%%%*)
9176    eval ac_cv_prog_make_${ac_make}_set=yes;;
9177  *)
9178    eval ac_cv_prog_make_${ac_make}_set=no;;
9179esac
9180rm -f conftest.make
9181fi
9182if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9184$as_echo "yes" >&6; }
9185  SET_MAKE=
9186else
9187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
9189  SET_MAKE="MAKE=${MAKE-make}"
9190fi
9191
9192rm -rf .tst 2>/dev/null
9193mkdir .tst 2>/dev/null
9194if test -d .tst; then
9195  am__leading_dot=.
9196else
9197  am__leading_dot=_
9198fi
9199rmdir .tst 2>/dev/null
9200
9201DEPDIR="${am__leading_dot}deps"
9202
9203ac_config_commands="$ac_config_commands depfiles"
9204
9205
9206am_make=${MAKE-make}
9207cat > confinc << 'END'
9208am__doit:
9209	@echo this is the am__doit target
9210.PHONY: am__doit
9211END
9212# If we don't find an include directive, just comment out the code.
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
9214$as_echo_n "checking for style of include used by $am_make... " >&6; }
9215am__include="#"
9216am__quote=
9217_am_result=none
9218# First try GNU make style include.
9219echo "include confinc" > confmf
9220# Ignore all kinds of additional output from `make'.
9221case `$am_make -s -f confmf 2> /dev/null` in #(
9222*the\ am__doit\ target*)
9223  am__include=include
9224  am__quote=
9225  _am_result=GNU
9226  ;;
9227esac
9228# Now try BSD make style include.
9229if test "$am__include" = "#"; then
9230   echo '.include "confinc"' > confmf
9231   case `$am_make -s -f confmf 2> /dev/null` in #(
9232   *the\ am__doit\ target*)
9233     am__include=.include
9234     am__quote="\""
9235     _am_result=BSD
9236     ;;
9237   esac
9238fi
9239
9240
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
9242$as_echo "$_am_result" >&6; }
9243rm -f confinc confmf
9244
9245# Check whether --enable-dependency-tracking was given.
9246if test "${enable_dependency_tracking+set}" = set; then :
9247  enableval=$enable_dependency_tracking;
9248fi
9249
9250if test "x$enable_dependency_tracking" != xno; then
9251  am_depcomp="$ac_aux_dir/depcomp"
9252  AMDEPBACKSLASH='\'
9253  am__nodep='_no'
9254fi
9255 if test "x$enable_dependency_tracking" != xno; then
9256  AMDEP_TRUE=
9257  AMDEP_FALSE='#'
9258else
9259  AMDEP_TRUE='#'
9260  AMDEP_FALSE=
9261fi
9262
9263
9264if test "`cd $srcdir && pwd`" != "`pwd`"; then
9265  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9266  # is not polluted with repeated "-I."
9267  am__isrc=' -I$(srcdir)'
9268  # test to see if srcdir already configured
9269  if test -f $srcdir/config.status; then
9270    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9271  fi
9272fi
9273
9274# test whether we have cygpath
9275if test -z "$CYGPATH_W"; then
9276  if (cygpath --version) >/dev/null 2>/dev/null; then
9277    CYGPATH_W='cygpath -w'
9278  else
9279    CYGPATH_W=echo
9280  fi
9281fi
9282
9283
9284# Define the identity of the package.
9285 PACKAGE='xf86-video-ati'
9286 VERSION='6.14.6'
9287
9288
9289cat >>confdefs.h <<_ACEOF
9290#define PACKAGE "$PACKAGE"
9291_ACEOF
9292
9293
9294cat >>confdefs.h <<_ACEOF
9295#define VERSION "$VERSION"
9296_ACEOF
9297
9298# Some tools Automake needs.
9299
9300ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9301
9302
9303AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
9304
9305
9306AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9307
9308
9309AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
9310
9311
9312MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
9313
9314# We need awk for the "check" target.  The system "awk" is bad on
9315# some platforms.
9316# Always define AMTAR for backward compatibility.  Yes, it's still used
9317# in the wild :-(  We should find a proper way to deprecate it ...
9318AMTAR='$${TAR-tar}'
9319
9320am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
9321
9322
9323
9324
9325depcc="$CC"   am_compiler_list=
9326
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9328$as_echo_n "checking dependency style of $depcc... " >&6; }
9329if ${am_cv_CC_dependencies_compiler_type+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9333  # We make a subdir and do the tests there.  Otherwise we can end up
9334  # making bogus files that we don't know about and never remove.  For
9335  # instance it was reported that on HP-UX the gcc test will end up
9336  # making a dummy file named `D' -- because `-MD' means `put the output
9337  # in D'.
9338  rm -rf conftest.dir
9339  mkdir conftest.dir
9340  # Copy depcomp to subdir because otherwise we won't find it if we're
9341  # using a relative directory.
9342  cp "$am_depcomp" conftest.dir
9343  cd conftest.dir
9344  # We will build objects and dependencies in a subdirectory because
9345  # it helps to detect inapplicable dependency modes.  For instance
9346  # both Tru64's cc and ICC support -MD to output dependencies as a
9347  # side effect of compilation, but ICC will put the dependencies in
9348  # the current directory while Tru64 will put them in the object
9349  # directory.
9350  mkdir sub
9351
9352  am_cv_CC_dependencies_compiler_type=none
9353  if test "$am_compiler_list" = ""; then
9354     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9355  fi
9356  am__universal=false
9357  case " $depcc " in #(
9358     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9359     esac
9360
9361  for depmode in $am_compiler_list; do
9362    # Setup a source with many dependencies, because some compilers
9363    # like to wrap large dependency lists on column 80 (with \), and
9364    # we should not choose a depcomp mode which is confused by this.
9365    #
9366    # We need to recreate these files for each test, as the compiler may
9367    # overwrite some of them when testing with obscure command lines.
9368    # This happens at least with the AIX C compiler.
9369    : > sub/conftest.c
9370    for i in 1 2 3 4 5 6; do
9371      echo '#include "conftst'$i'.h"' >> sub/conftest.c
9372      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9373      # Solaris 8's {/usr,}/bin/sh.
9374      touch sub/conftst$i.h
9375    done
9376    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9377
9378    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9379    # mode.  It turns out that the SunPro C++ compiler does not properly
9380    # handle `-M -o', and we need to detect this.  Also, some Intel
9381    # versions had trouble with output in subdirs
9382    am__obj=sub/conftest.${OBJEXT-o}
9383    am__minus_obj="-o $am__obj"
9384    case $depmode in
9385    gcc)
9386      # This depmode causes a compiler race in universal mode.
9387      test "$am__universal" = false || continue
9388      ;;
9389    nosideeffect)
9390      # after this tag, mechanisms are not by side-effect, so they'll
9391      # only be used when explicitly requested
9392      if test "x$enable_dependency_tracking" = xyes; then
9393	continue
9394      else
9395	break
9396      fi
9397      ;;
9398    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9399      # This compiler won't grok `-c -o', but also, the minuso test has
9400      # not run yet.  These depmodes are late enough in the game, and
9401      # so weak that their functioning should not be impacted.
9402      am__obj=conftest.${OBJEXT-o}
9403      am__minus_obj=
9404      ;;
9405    none) break ;;
9406    esac
9407    if depmode=$depmode \
9408       source=sub/conftest.c object=$am__obj \
9409       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9410       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9411         >/dev/null 2>conftest.err &&
9412       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9413       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9414       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9415       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9416      # icc doesn't choke on unknown options, it will just issue warnings
9417      # or remarks (even with -Werror).  So we grep stderr for any message
9418      # that says an option was ignored or not supported.
9419      # When given -MP, icc 7.0 and 7.1 complain thusly:
9420      #   icc: Command line warning: ignoring option '-M'; no argument required
9421      # The diagnosis changed in icc 8.0:
9422      #   icc: Command line remark: option '-MP' not supported
9423      if (grep 'ignoring option' conftest.err ||
9424          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9425        am_cv_CC_dependencies_compiler_type=$depmode
9426        break
9427      fi
9428    fi
9429  done
9430
9431  cd ..
9432  rm -rf conftest.dir
9433else
9434  am_cv_CC_dependencies_compiler_type=none
9435fi
9436
9437fi
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9439$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9440CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9441
9442 if
9443  test "x$enable_dependency_tracking" != xno \
9444  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
9445  am__fastdepCC_TRUE=
9446  am__fastdepCC_FALSE='#'
9447else
9448  am__fastdepCC_TRUE='#'
9449  am__fastdepCC_FALSE=
9450fi
9451
9452
9453
9454# Check whether --enable-largefile was given.
9455if test "${enable_largefile+set}" = set; then :
9456  enableval=$enable_largefile;
9457fi
9458
9459if test "$enable_largefile" != no; then
9460
9461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9462$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9463if ${ac_cv_sys_largefile_CC+:} false; then :
9464  $as_echo_n "(cached) " >&6
9465else
9466  ac_cv_sys_largefile_CC=no
9467     if test "$GCC" != yes; then
9468       ac_save_CC=$CC
9469       while :; do
9470	 # IRIX 6.2 and later do not support large files by default,
9471	 # so use the C compiler's -n32 option if that helps.
9472	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474#include <sys/types.h>
9475 /* Check that off_t can represent 2**63 - 1 correctly.
9476    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9477    since some C++ compilers masquerading as C compilers
9478    incorrectly reject 9223372036854775807.  */
9479#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9480  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9481		       && LARGE_OFF_T % 2147483647 == 1)
9482		      ? 1 : -1];
9483int
9484main ()
9485{
9486
9487  ;
9488  return 0;
9489}
9490_ACEOF
9491	 if ac_fn_c_try_compile "$LINENO"; then :
9492  break
9493fi
9494rm -f core conftest.err conftest.$ac_objext
9495	 CC="$CC -n32"
9496	 if ac_fn_c_try_compile "$LINENO"; then :
9497  ac_cv_sys_largefile_CC=' -n32'; break
9498fi
9499rm -f core conftest.err conftest.$ac_objext
9500	 break
9501       done
9502       CC=$ac_save_CC
9503       rm -f conftest.$ac_ext
9504    fi
9505fi
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9507$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9508  if test "$ac_cv_sys_largefile_CC" != no; then
9509    CC=$CC$ac_cv_sys_largefile_CC
9510  fi
9511
9512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9513$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9514if ${ac_cv_sys_file_offset_bits+:} false; then :
9515  $as_echo_n "(cached) " >&6
9516else
9517  while :; do
9518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h.  */
9520#include <sys/types.h>
9521 /* Check that off_t can represent 2**63 - 1 correctly.
9522    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9523    since some C++ compilers masquerading as C compilers
9524    incorrectly reject 9223372036854775807.  */
9525#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9526  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9527		       && LARGE_OFF_T % 2147483647 == 1)
9528		      ? 1 : -1];
9529int
9530main ()
9531{
9532
9533  ;
9534  return 0;
9535}
9536_ACEOF
9537if ac_fn_c_try_compile "$LINENO"; then :
9538  ac_cv_sys_file_offset_bits=no; break
9539fi
9540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543#define _FILE_OFFSET_BITS 64
9544#include <sys/types.h>
9545 /* Check that off_t can represent 2**63 - 1 correctly.
9546    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9547    since some C++ compilers masquerading as C compilers
9548    incorrectly reject 9223372036854775807.  */
9549#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9550  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9551		       && LARGE_OFF_T % 2147483647 == 1)
9552		      ? 1 : -1];
9553int
9554main ()
9555{
9556
9557  ;
9558  return 0;
9559}
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"; then :
9562  ac_cv_sys_file_offset_bits=64; break
9563fi
9564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565  ac_cv_sys_file_offset_bits=unknown
9566  break
9567done
9568fi
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9570$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9571case $ac_cv_sys_file_offset_bits in #(
9572  no | unknown) ;;
9573  *)
9574cat >>confdefs.h <<_ACEOF
9575#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9576_ACEOF
9577;;
9578esac
9579rm -rf conftest*
9580  if test $ac_cv_sys_file_offset_bits = unknown; then
9581    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9582$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9583if ${ac_cv_sys_large_files+:} false; then :
9584  $as_echo_n "(cached) " >&6
9585else
9586  while :; do
9587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588/* end confdefs.h.  */
9589#include <sys/types.h>
9590 /* Check that off_t can represent 2**63 - 1 correctly.
9591    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9592    since some C++ compilers masquerading as C compilers
9593    incorrectly reject 9223372036854775807.  */
9594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9595  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9596		       && LARGE_OFF_T % 2147483647 == 1)
9597		      ? 1 : -1];
9598int
9599main ()
9600{
9601
9602  ;
9603  return 0;
9604}
9605_ACEOF
9606if ac_fn_c_try_compile "$LINENO"; then :
9607  ac_cv_sys_large_files=no; break
9608fi
9609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611/* end confdefs.h.  */
9612#define _LARGE_FILES 1
9613#include <sys/types.h>
9614 /* Check that off_t can represent 2**63 - 1 correctly.
9615    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9616    since some C++ compilers masquerading as C compilers
9617    incorrectly reject 9223372036854775807.  */
9618#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9619  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9620		       && LARGE_OFF_T % 2147483647 == 1)
9621		      ? 1 : -1];
9622int
9623main ()
9624{
9625
9626  ;
9627  return 0;
9628}
9629_ACEOF
9630if ac_fn_c_try_compile "$LINENO"; then :
9631  ac_cv_sys_large_files=1; break
9632fi
9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634  ac_cv_sys_large_files=unknown
9635  break
9636done
9637fi
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9639$as_echo "$ac_cv_sys_large_files" >&6; }
9640case $ac_cv_sys_large_files in #(
9641  no | unknown) ;;
9642  *)
9643cat >>confdefs.h <<_ACEOF
9644#define _LARGE_FILES $ac_cv_sys_large_files
9645_ACEOF
9646;;
9647esac
9648rm -rf conftest*
9649  fi
9650fi
9651
9652
9653
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
9655$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
9656    # Check whether --enable-maintainer-mode was given.
9657if test "${enable_maintainer_mode+set}" = set; then :
9658  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9659else
9660  USE_MAINTAINER_MODE=no
9661fi
9662
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
9664$as_echo "$USE_MAINTAINER_MODE" >&6; }
9665   if test $USE_MAINTAINER_MODE = yes; then
9666  MAINTAINER_MODE_TRUE=
9667  MAINTAINER_MODE_FALSE='#'
9668else
9669  MAINTAINER_MODE_TRUE='#'
9670  MAINTAINER_MODE_FALSE=
9671fi
9672
9673  MAINT=$MAINTAINER_MODE_TRUE
9674
9675
9676
9677# Initialize libtool
9678# Check whether --enable-static was given.
9679if test "${enable_static+set}" = set; then :
9680  enableval=$enable_static; p=${PACKAGE-default}
9681    case $enableval in
9682    yes) enable_static=yes ;;
9683    no) enable_static=no ;;
9684    *)
9685     enable_static=no
9686      # Look at the argument we got.  We use all the common list separators.
9687      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9688      for pkg in $enableval; do
9689	IFS="$lt_save_ifs"
9690	if test "X$pkg" = "X$p"; then
9691	  enable_static=yes
9692	fi
9693      done
9694      IFS="$lt_save_ifs"
9695      ;;
9696    esac
9697else
9698  enable_static=no
9699fi
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709case `pwd` in
9710  *\ * | *\	*)
9711    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9712$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9713esac
9714
9715
9716
9717macro_version='2.4.2'
9718macro_revision='1.3337'
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732ltmain="$ac_aux_dir/ltmain.sh"
9733
9734# Backslashify metacharacters that are still active within
9735# double-quoted strings.
9736sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9737
9738# Same as above, but do not quote variable references.
9739double_quote_subst='s/\(["`\\]\)/\\\1/g'
9740
9741# Sed substitution to delay expansion of an escaped shell variable in a
9742# double_quote_subst'ed string.
9743delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9744
9745# Sed substitution to delay expansion of an escaped single quote.
9746delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9747
9748# Sed substitution to avoid accidental globbing in evaled expressions
9749no_glob_subst='s/\*/\\\*/g'
9750
9751ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9752ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9753ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9754
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9756$as_echo_n "checking how to print strings... " >&6; }
9757# Test print first, because it will be a builtin if present.
9758if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9759   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9760  ECHO='print -r --'
9761elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9762  ECHO='printf %s\n'
9763else
9764  # Use this function as a fallback that always works.
9765  func_fallback_echo ()
9766  {
9767    eval 'cat <<_LTECHO_EOF
9768$1
9769_LTECHO_EOF'
9770  }
9771  ECHO='func_fallback_echo'
9772fi
9773
9774# func_echo_all arg...
9775# Invoke $ECHO with all args, space-separated.
9776func_echo_all ()
9777{
9778    $ECHO ""
9779}
9780
9781case "$ECHO" in
9782  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9783$as_echo "printf" >&6; } ;;
9784  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9785$as_echo "print -r" >&6; } ;;
9786  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9787$as_echo "cat" >&6; } ;;
9788esac
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9804$as_echo_n "checking for a sed that does not truncate output... " >&6; }
9805if ${ac_cv_path_SED+:} false; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9809     for ac_i in 1 2 3 4 5 6 7; do
9810       ac_script="$ac_script$as_nl$ac_script"
9811     done
9812     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9813     { ac_script=; unset ac_script;}
9814     if test -z "$SED"; then
9815  ac_path_SED_found=false
9816  # Loop through the user's path and test for each of PROGNAME-LIST
9817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $PATH
9819do
9820  IFS=$as_save_IFS
9821  test -z "$as_dir" && as_dir=.
9822    for ac_prog in sed gsed; do
9823    for ac_exec_ext in '' $ac_executable_extensions; do
9824      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9825      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9826# Check for GNU ac_path_SED and select it if it is found.
9827  # Check for GNU $ac_path_SED
9828case `"$ac_path_SED" --version 2>&1` in
9829*GNU*)
9830  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9831*)
9832  ac_count=0
9833  $as_echo_n 0123456789 >"conftest.in"
9834  while :
9835  do
9836    cat "conftest.in" "conftest.in" >"conftest.tmp"
9837    mv "conftest.tmp" "conftest.in"
9838    cp "conftest.in" "conftest.nl"
9839    $as_echo '' >> "conftest.nl"
9840    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9841    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9842    as_fn_arith $ac_count + 1 && ac_count=$as_val
9843    if test $ac_count -gt ${ac_path_SED_max-0}; then
9844      # Best one so far, save it but keep looking for a better one
9845      ac_cv_path_SED="$ac_path_SED"
9846      ac_path_SED_max=$ac_count
9847    fi
9848    # 10*(2^10) chars as input seems more than enough
9849    test $ac_count -gt 10 && break
9850  done
9851  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9852esac
9853
9854      $ac_path_SED_found && break 3
9855    done
9856  done
9857  done
9858IFS=$as_save_IFS
9859  if test -z "$ac_cv_path_SED"; then
9860    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9861  fi
9862else
9863  ac_cv_path_SED=$SED
9864fi
9865
9866fi
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9868$as_echo "$ac_cv_path_SED" >&6; }
9869 SED="$ac_cv_path_SED"
9870  rm -f conftest.sed
9871
9872test -z "$SED" && SED=sed
9873Xsed="$SED -e 1s/^X//"
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9886$as_echo_n "checking for fgrep... " >&6; }
9887if ${ac_cv_path_FGREP+:} false; then :
9888  $as_echo_n "(cached) " >&6
9889else
9890  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9891   then ac_cv_path_FGREP="$GREP -F"
9892   else
9893     if test -z "$FGREP"; then
9894  ac_path_FGREP_found=false
9895  # Loop through the user's path and test for each of PROGNAME-LIST
9896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9898do
9899  IFS=$as_save_IFS
9900  test -z "$as_dir" && as_dir=.
9901    for ac_prog in fgrep; do
9902    for ac_exec_ext in '' $ac_executable_extensions; do
9903      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9904      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9905# Check for GNU ac_path_FGREP and select it if it is found.
9906  # Check for GNU $ac_path_FGREP
9907case `"$ac_path_FGREP" --version 2>&1` in
9908*GNU*)
9909  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9910*)
9911  ac_count=0
9912  $as_echo_n 0123456789 >"conftest.in"
9913  while :
9914  do
9915    cat "conftest.in" "conftest.in" >"conftest.tmp"
9916    mv "conftest.tmp" "conftest.in"
9917    cp "conftest.in" "conftest.nl"
9918    $as_echo 'FGREP' >> "conftest.nl"
9919    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9920    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9921    as_fn_arith $ac_count + 1 && ac_count=$as_val
9922    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9923      # Best one so far, save it but keep looking for a better one
9924      ac_cv_path_FGREP="$ac_path_FGREP"
9925      ac_path_FGREP_max=$ac_count
9926    fi
9927    # 10*(2^10) chars as input seems more than enough
9928    test $ac_count -gt 10 && break
9929  done
9930  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9931esac
9932
9933      $ac_path_FGREP_found && break 3
9934    done
9935  done
9936  done
9937IFS=$as_save_IFS
9938  if test -z "$ac_cv_path_FGREP"; then
9939    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9940  fi
9941else
9942  ac_cv_path_FGREP=$FGREP
9943fi
9944
9945   fi
9946fi
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9948$as_echo "$ac_cv_path_FGREP" >&6; }
9949 FGREP="$ac_cv_path_FGREP"
9950
9951
9952test -z "$GREP" && GREP=grep
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972# Check whether --with-gnu-ld was given.
9973if test "${with_gnu_ld+set}" = set; then :
9974  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9975else
9976  with_gnu_ld=no
9977fi
9978
9979ac_prog=ld
9980if test "$GCC" = yes; then
9981  # Check if gcc -print-prog-name=ld gives a path.
9982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9983$as_echo_n "checking for ld used by $CC... " >&6; }
9984  case $host in
9985  *-*-mingw*)
9986    # gcc leaves a trailing carriage return which upsets mingw
9987    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9988  *)
9989    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9990  esac
9991  case $ac_prog in
9992    # Accept absolute paths.
9993    [\\/]* | ?:[\\/]*)
9994      re_direlt='/[^/][^/]*/\.\./'
9995      # Canonicalize the pathname of ld
9996      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9997      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9998	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9999      done
10000      test -z "$LD" && LD="$ac_prog"
10001      ;;
10002  "")
10003    # If it fails, then pretend we aren't using GCC.
10004    ac_prog=ld
10005    ;;
10006  *)
10007    # If it is relative, then search for the first ld in PATH.
10008    with_gnu_ld=unknown
10009    ;;
10010  esac
10011elif test "$with_gnu_ld" = yes; then
10012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10013$as_echo_n "checking for GNU ld... " >&6; }
10014else
10015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10016$as_echo_n "checking for non-GNU ld... " >&6; }
10017fi
10018if ${lt_cv_path_LD+:} false; then :
10019  $as_echo_n "(cached) " >&6
10020else
10021  if test -z "$LD"; then
10022  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10023  for ac_dir in $PATH; do
10024    IFS="$lt_save_ifs"
10025    test -z "$ac_dir" && ac_dir=.
10026    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10027      lt_cv_path_LD="$ac_dir/$ac_prog"
10028      # Check to see if the program is GNU ld.  I'd rather use --version,
10029      # but apparently some variants of GNU ld only accept -v.
10030      # Break only if it was the GNU/non-GNU ld that we prefer.
10031      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10032      *GNU* | *'with BFD'*)
10033	test "$with_gnu_ld" != no && break
10034	;;
10035      *)
10036	test "$with_gnu_ld" != yes && break
10037	;;
10038      esac
10039    fi
10040  done
10041  IFS="$lt_save_ifs"
10042else
10043  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10044fi
10045fi
10046
10047LD="$lt_cv_path_LD"
10048if test -n "$LD"; then
10049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10050$as_echo "$LD" >&6; }
10051else
10052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053$as_echo "no" >&6; }
10054fi
10055test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10057$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10058if ${lt_cv_prog_gnu_ld+:} false; then :
10059  $as_echo_n "(cached) " >&6
10060else
10061  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10062case `$LD -v 2>&1 </dev/null` in
10063*GNU* | *'with BFD'*)
10064  lt_cv_prog_gnu_ld=yes
10065  ;;
10066*)
10067  lt_cv_prog_gnu_ld=no
10068  ;;
10069esac
10070fi
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10072$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10073with_gnu_ld=$lt_cv_prog_gnu_ld
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10084$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10085if ${lt_cv_path_NM+:} false; then :
10086  $as_echo_n "(cached) " >&6
10087else
10088  if test -n "$NM"; then
10089  # Let the user override the test.
10090  lt_cv_path_NM="$NM"
10091else
10092  lt_nm_to_check="${ac_tool_prefix}nm"
10093  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10094    lt_nm_to_check="$lt_nm_to_check nm"
10095  fi
10096  for lt_tmp_nm in $lt_nm_to_check; do
10097    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10098    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10099      IFS="$lt_save_ifs"
10100      test -z "$ac_dir" && ac_dir=.
10101      tmp_nm="$ac_dir/$lt_tmp_nm"
10102      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10103	# Check to see if the nm accepts a BSD-compat flag.
10104	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
10105	#   nm: unknown option "B" ignored
10106	# Tru64's nm complains that /dev/null is an invalid object file
10107	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10108	*/dev/null* | *'Invalid file or object type'*)
10109	  lt_cv_path_NM="$tmp_nm -B"
10110	  break
10111	  ;;
10112	*)
10113	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10114	  */dev/null*)
10115	    lt_cv_path_NM="$tmp_nm -p"
10116	    break
10117	    ;;
10118	  *)
10119	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10120	    continue # so that we can try to find one that supports BSD flags
10121	    ;;
10122	  esac
10123	  ;;
10124	esac
10125      fi
10126    done
10127    IFS="$lt_save_ifs"
10128  done
10129  : ${lt_cv_path_NM=no}
10130fi
10131fi
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10133$as_echo "$lt_cv_path_NM" >&6; }
10134if test "$lt_cv_path_NM" != "no"; then
10135  NM="$lt_cv_path_NM"
10136else
10137  # Didn't find any BSD compatible name lister, look for dumpbin.
10138  if test -n "$DUMPBIN"; then :
10139    # Let the user override the test.
10140  else
10141    if test -n "$ac_tool_prefix"; then
10142  for ac_prog in dumpbin "link -dump"
10143  do
10144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147$as_echo_n "checking for $ac_word... " >&6; }
10148if ${ac_cv_prog_DUMPBIN+:} false; then :
10149  $as_echo_n "(cached) " >&6
10150else
10151  if test -n "$DUMPBIN"; then
10152  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10153else
10154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155for as_dir in $PATH
10156do
10157  IFS=$as_save_IFS
10158  test -z "$as_dir" && as_dir=.
10159    for ac_exec_ext in '' $ac_executable_extensions; do
10160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10161    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163    break 2
10164  fi
10165done
10166  done
10167IFS=$as_save_IFS
10168
10169fi
10170fi
10171DUMPBIN=$ac_cv_prog_DUMPBIN
10172if test -n "$DUMPBIN"; then
10173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10174$as_echo "$DUMPBIN" >&6; }
10175else
10176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177$as_echo "no" >&6; }
10178fi
10179
10180
10181    test -n "$DUMPBIN" && break
10182  done
10183fi
10184if test -z "$DUMPBIN"; then
10185  ac_ct_DUMPBIN=$DUMPBIN
10186  for ac_prog in dumpbin "link -dump"
10187do
10188  # Extract the first word of "$ac_prog", so it can be a program name with args.
10189set dummy $ac_prog; ac_word=$2
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191$as_echo_n "checking for $ac_word... " >&6; }
10192if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  if test -n "$ac_ct_DUMPBIN"; then
10196  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10197else
10198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199for as_dir in $PATH
10200do
10201  IFS=$as_save_IFS
10202  test -z "$as_dir" && as_dir=.
10203    for ac_exec_ext in '' $ac_executable_extensions; do
10204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10205    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207    break 2
10208  fi
10209done
10210  done
10211IFS=$as_save_IFS
10212
10213fi
10214fi
10215ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10216if test -n "$ac_ct_DUMPBIN"; then
10217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10218$as_echo "$ac_ct_DUMPBIN" >&6; }
10219else
10220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }
10222fi
10223
10224
10225  test -n "$ac_ct_DUMPBIN" && break
10226done
10227
10228  if test "x$ac_ct_DUMPBIN" = x; then
10229    DUMPBIN=":"
10230  else
10231    case $cross_compiling:$ac_tool_warned in
10232yes:)
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10235ac_tool_warned=yes ;;
10236esac
10237    DUMPBIN=$ac_ct_DUMPBIN
10238  fi
10239fi
10240
10241    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10242    *COFF*)
10243      DUMPBIN="$DUMPBIN -symbols"
10244      ;;
10245    *)
10246      DUMPBIN=:
10247      ;;
10248    esac
10249  fi
10250
10251  if test "$DUMPBIN" != ":"; then
10252    NM="$DUMPBIN"
10253  fi
10254fi
10255test -z "$NM" && NM=nm
10256
10257
10258
10259
10260
10261
10262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10263$as_echo_n "checking the name lister ($NM) interface... " >&6; }
10264if ${lt_cv_nm_interface+:} false; then :
10265  $as_echo_n "(cached) " >&6
10266else
10267  lt_cv_nm_interface="BSD nm"
10268  echo "int some_variable = 0;" > conftest.$ac_ext
10269  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
10270  (eval "$ac_compile" 2>conftest.err)
10271  cat conftest.err >&5
10272  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10273  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10274  cat conftest.err >&5
10275  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
10276  cat conftest.out >&5
10277  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10278    lt_cv_nm_interface="MS dumpbin"
10279  fi
10280  rm -f conftest*
10281fi
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10283$as_echo "$lt_cv_nm_interface" >&6; }
10284
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10286$as_echo_n "checking whether ln -s works... " >&6; }
10287LN_S=$as_ln_s
10288if test "$LN_S" = "ln -s"; then
10289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10290$as_echo "yes" >&6; }
10291else
10292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10293$as_echo "no, using $LN_S" >&6; }
10294fi
10295
10296# find the maximum length of command line arguments
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10298$as_echo_n "checking the maximum length of command line arguments... " >&6; }
10299if ${lt_cv_sys_max_cmd_len+:} false; then :
10300  $as_echo_n "(cached) " >&6
10301else
10302    i=0
10303  teststring="ABCD"
10304
10305  case $build_os in
10306  msdosdjgpp*)
10307    # On DJGPP, this test can blow up pretty badly due to problems in libc
10308    # (any single argument exceeding 2000 bytes causes a buffer overrun
10309    # during glob expansion).  Even if it were fixed, the result of this
10310    # check would be larger than it should be.
10311    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10312    ;;
10313
10314  gnu*)
10315    # Under GNU Hurd, this test is not required because there is
10316    # no limit to the length of command line arguments.
10317    # Libtool will interpret -1 as no limit whatsoever
10318    lt_cv_sys_max_cmd_len=-1;
10319    ;;
10320
10321  cygwin* | mingw* | cegcc*)
10322    # On Win9x/ME, this test blows up -- it succeeds, but takes
10323    # about 5 minutes as the teststring grows exponentially.
10324    # Worse, since 9x/ME are not pre-emptively multitasking,
10325    # you end up with a "frozen" computer, even though with patience
10326    # the test eventually succeeds (with a max line length of 256k).
10327    # Instead, let's just punt: use the minimum linelength reported by
10328    # all of the supported platforms: 8192 (on NT/2K/XP).
10329    lt_cv_sys_max_cmd_len=8192;
10330    ;;
10331
10332  mint*)
10333    # On MiNT this can take a long time and run out of memory.
10334    lt_cv_sys_max_cmd_len=8192;
10335    ;;
10336
10337  amigaos*)
10338    # On AmigaOS with pdksh, this test takes hours, literally.
10339    # So we just punt and use a minimum line length of 8192.
10340    lt_cv_sys_max_cmd_len=8192;
10341    ;;
10342
10343  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10344    # This has been around since 386BSD, at least.  Likely further.
10345    if test -x /sbin/sysctl; then
10346      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10347    elif test -x /usr/sbin/sysctl; then
10348      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10349    else
10350      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
10351    fi
10352    # And add a safety zone
10353    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10354    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10355    ;;
10356
10357  interix*)
10358    # We know the value 262144 and hardcode it with a safety zone (like BSD)
10359    lt_cv_sys_max_cmd_len=196608
10360    ;;
10361
10362  os2*)
10363    # The test takes a long time on OS/2.
10364    lt_cv_sys_max_cmd_len=8192
10365    ;;
10366
10367  osf*)
10368    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10369    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10370    # nice to cause kernel panics so lets avoid the loop below.
10371    # First set a reasonable default.
10372    lt_cv_sys_max_cmd_len=16384
10373    #
10374    if test -x /sbin/sysconfig; then
10375      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10376        *1*) lt_cv_sys_max_cmd_len=-1 ;;
10377      esac
10378    fi
10379    ;;
10380  sco3.2v5*)
10381    lt_cv_sys_max_cmd_len=102400
10382    ;;
10383  sysv5* | sco5v6* | sysv4.2uw2*)
10384    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10385    if test -n "$kargmax"; then
10386      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
10387    else
10388      lt_cv_sys_max_cmd_len=32768
10389    fi
10390    ;;
10391  *)
10392    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10393    if test -n "$lt_cv_sys_max_cmd_len"; then
10394      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10395      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10396    else
10397      # Make teststring a little bigger before we do anything with it.
10398      # a 1K string should be a reasonable start.
10399      for i in 1 2 3 4 5 6 7 8 ; do
10400        teststring=$teststring$teststring
10401      done
10402      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10403      # If test is not a shell built-in, we'll probably end up computing a
10404      # maximum length that is only half of the actual maximum length, but
10405      # we can't tell.
10406      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
10407	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10408	      test $i != 17 # 1/2 MB should be enough
10409      do
10410        i=`expr $i + 1`
10411        teststring=$teststring$teststring
10412      done
10413      # Only check the string length outside the loop.
10414      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10415      teststring=
10416      # Add a significant safety factor because C++ compilers can tack on
10417      # massive amounts of additional arguments before passing them to the
10418      # linker.  It appears as though 1/2 is a usable value.
10419      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10420    fi
10421    ;;
10422  esac
10423
10424fi
10425
10426if test -n $lt_cv_sys_max_cmd_len ; then
10427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10428$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10429else
10430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10431$as_echo "none" >&6; }
10432fi
10433max_cmd_len=$lt_cv_sys_max_cmd_len
10434
10435
10436
10437
10438
10439
10440: ${CP="cp -f"}
10441: ${MV="mv -f"}
10442: ${RM="rm -f"}
10443
10444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10445$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10446# Try some XSI features
10447xsi_shell=no
10448( _lt_dummy="a/b/c"
10449  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10450      = c,a/b,b/c, \
10451    && eval 'test $(( 1 + 1 )) -eq 2 \
10452    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10453  && xsi_shell=yes
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10455$as_echo "$xsi_shell" >&6; }
10456
10457
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10459$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10460lt_shell_append=no
10461( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10462    >/dev/null 2>&1 \
10463  && lt_shell_append=yes
10464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10465$as_echo "$lt_shell_append" >&6; }
10466
10467
10468if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10469  lt_unset=unset
10470else
10471  lt_unset=false
10472fi
10473
10474
10475
10476
10477
10478# test EBCDIC or ASCII
10479case `echo X|tr X '\101'` in
10480 A) # ASCII based system
10481    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10482  lt_SP2NL='tr \040 \012'
10483  lt_NL2SP='tr \015\012 \040\040'
10484  ;;
10485 *) # EBCDIC based system
10486  lt_SP2NL='tr \100 \n'
10487  lt_NL2SP='tr \r\n \100\100'
10488  ;;
10489esac
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10500$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10501if ${lt_cv_to_host_file_cmd+:} false; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  case $host in
10505  *-*-mingw* )
10506    case $build in
10507      *-*-mingw* ) # actually msys
10508        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10509        ;;
10510      *-*-cygwin* )
10511        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10512        ;;
10513      * ) # otherwise, assume *nix
10514        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10515        ;;
10516    esac
10517    ;;
10518  *-*-cygwin* )
10519    case $build in
10520      *-*-mingw* ) # actually msys
10521        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10522        ;;
10523      *-*-cygwin* )
10524        lt_cv_to_host_file_cmd=func_convert_file_noop
10525        ;;
10526      * ) # otherwise, assume *nix
10527        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10528        ;;
10529    esac
10530    ;;
10531  * ) # unhandled hosts (and "normal" native builds)
10532    lt_cv_to_host_file_cmd=func_convert_file_noop
10533    ;;
10534esac
10535
10536fi
10537
10538to_host_file_cmd=$lt_cv_to_host_file_cmd
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10540$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10541
10542
10543
10544
10545
10546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10547$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10548if ${lt_cv_to_tool_file_cmd+:} false; then :
10549  $as_echo_n "(cached) " >&6
10550else
10551  #assume ordinary cross tools, or native build.
10552lt_cv_to_tool_file_cmd=func_convert_file_noop
10553case $host in
10554  *-*-mingw* )
10555    case $build in
10556      *-*-mingw* ) # actually msys
10557        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10558        ;;
10559    esac
10560    ;;
10561esac
10562
10563fi
10564
10565to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10567$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10568
10569
10570
10571
10572
10573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10574$as_echo_n "checking for $LD option to reload object files... " >&6; }
10575if ${lt_cv_ld_reload_flag+:} false; then :
10576  $as_echo_n "(cached) " >&6
10577else
10578  lt_cv_ld_reload_flag='-r'
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10581$as_echo "$lt_cv_ld_reload_flag" >&6; }
10582reload_flag=$lt_cv_ld_reload_flag
10583case $reload_flag in
10584"" | " "*) ;;
10585*) reload_flag=" $reload_flag" ;;
10586esac
10587reload_cmds='$LD$reload_flag -o $output$reload_objs'
10588case $host_os in
10589  cygwin* | mingw* | pw32* | cegcc*)
10590    if test "$GCC" != yes; then
10591      reload_cmds=false
10592    fi
10593    ;;
10594  darwin*)
10595    if test "$GCC" = yes; then
10596      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10597    else
10598      reload_cmds='$LD$reload_flag -o $output$reload_objs'
10599    fi
10600    ;;
10601esac
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611if test -n "$ac_tool_prefix"; then
10612  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10613set dummy ${ac_tool_prefix}objdump; ac_word=$2
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615$as_echo_n "checking for $ac_word... " >&6; }
10616if ${ac_cv_prog_OBJDUMP+:} false; then :
10617  $as_echo_n "(cached) " >&6
10618else
10619  if test -n "$OBJDUMP"; then
10620  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10621else
10622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623for as_dir in $PATH
10624do
10625  IFS=$as_save_IFS
10626  test -z "$as_dir" && as_dir=.
10627    for ac_exec_ext in '' $ac_executable_extensions; do
10628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631    break 2
10632  fi
10633done
10634  done
10635IFS=$as_save_IFS
10636
10637fi
10638fi
10639OBJDUMP=$ac_cv_prog_OBJDUMP
10640if test -n "$OBJDUMP"; then
10641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10642$as_echo "$OBJDUMP" >&6; }
10643else
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645$as_echo "no" >&6; }
10646fi
10647
10648
10649fi
10650if test -z "$ac_cv_prog_OBJDUMP"; then
10651  ac_ct_OBJDUMP=$OBJDUMP
10652  # Extract the first word of "objdump", so it can be a program name with args.
10653set dummy objdump; ac_word=$2
10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655$as_echo_n "checking for $ac_word... " >&6; }
10656if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10657  $as_echo_n "(cached) " >&6
10658else
10659  if test -n "$ac_ct_OBJDUMP"; then
10660  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10661else
10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663for as_dir in $PATH
10664do
10665  IFS=$as_save_IFS
10666  test -z "$as_dir" && as_dir=.
10667    for ac_exec_ext in '' $ac_executable_extensions; do
10668  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669    ac_cv_prog_ac_ct_OBJDUMP="objdump"
10670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671    break 2
10672  fi
10673done
10674  done
10675IFS=$as_save_IFS
10676
10677fi
10678fi
10679ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10680if test -n "$ac_ct_OBJDUMP"; then
10681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10682$as_echo "$ac_ct_OBJDUMP" >&6; }
10683else
10684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685$as_echo "no" >&6; }
10686fi
10687
10688  if test "x$ac_ct_OBJDUMP" = x; then
10689    OBJDUMP="false"
10690  else
10691    case $cross_compiling:$ac_tool_warned in
10692yes:)
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10695ac_tool_warned=yes ;;
10696esac
10697    OBJDUMP=$ac_ct_OBJDUMP
10698  fi
10699else
10700  OBJDUMP="$ac_cv_prog_OBJDUMP"
10701fi
10702
10703test -z "$OBJDUMP" && OBJDUMP=objdump
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10714$as_echo_n "checking how to recognize dependent libraries... " >&6; }
10715if ${lt_cv_deplibs_check_method+:} false; then :
10716  $as_echo_n "(cached) " >&6
10717else
10718  lt_cv_file_magic_cmd='$MAGIC_CMD'
10719lt_cv_file_magic_test_file=
10720lt_cv_deplibs_check_method='unknown'
10721# Need to set the preceding variable on all platforms that support
10722# interlibrary dependencies.
10723# 'none' -- dependencies not supported.
10724# `unknown' -- same as none, but documents that we really don't know.
10725# 'pass_all' -- all dependencies passed with no checks.
10726# 'test_compile' -- check by making test program.
10727# 'file_magic [[regex]]' -- check by looking for files in library path
10728# which responds to the $file_magic_cmd with a given extended regex.
10729# If you have `file' or equivalent on your system and you're not sure
10730# whether `pass_all' will *always* work, you probably want this one.
10731
10732case $host_os in
10733aix[4-9]*)
10734  lt_cv_deplibs_check_method=pass_all
10735  ;;
10736
10737beos*)
10738  lt_cv_deplibs_check_method=pass_all
10739  ;;
10740
10741bsdi[45]*)
10742  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10743  lt_cv_file_magic_cmd='/usr/bin/file -L'
10744  lt_cv_file_magic_test_file=/shlib/libc.so
10745  ;;
10746
10747cygwin*)
10748  # func_win32_libid is a shell function defined in ltmain.sh
10749  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10750  lt_cv_file_magic_cmd='func_win32_libid'
10751  ;;
10752
10753mingw* | pw32*)
10754  # Base MSYS/MinGW do not provide the 'file' command needed by
10755  # func_win32_libid shell function, so use a weaker test based on 'objdump',
10756  # unless we find 'file', for example because we are cross-compiling.
10757  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10758  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10759    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10760    lt_cv_file_magic_cmd='func_win32_libid'
10761  else
10762    # Keep this pattern in sync with the one in func_win32_libid.
10763    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10764    lt_cv_file_magic_cmd='$OBJDUMP -f'
10765  fi
10766  ;;
10767
10768cegcc*)
10769  # use the weaker test based on 'objdump'. See mingw*.
10770  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10771  lt_cv_file_magic_cmd='$OBJDUMP -f'
10772  ;;
10773
10774darwin* | rhapsody*)
10775  lt_cv_deplibs_check_method=pass_all
10776  ;;
10777
10778freebsd* | dragonfly*)
10779  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10780    case $host_cpu in
10781    i*86 )
10782      # Not sure whether the presence of OpenBSD here was a mistake.
10783      # Let's accept both of them until this is cleared up.
10784      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10785      lt_cv_file_magic_cmd=/usr/bin/file
10786      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10787      ;;
10788    esac
10789  else
10790    lt_cv_deplibs_check_method=pass_all
10791  fi
10792  ;;
10793
10794gnu*)
10795  lt_cv_deplibs_check_method=pass_all
10796  ;;
10797
10798haiku*)
10799  lt_cv_deplibs_check_method=pass_all
10800  ;;
10801
10802hpux10.20* | hpux11*)
10803  lt_cv_file_magic_cmd=/usr/bin/file
10804  case $host_cpu in
10805  ia64*)
10806    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10807    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10808    ;;
10809  hppa*64*)
10810    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]'
10811    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10812    ;;
10813  *)
10814    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10815    lt_cv_file_magic_test_file=/usr/lib/libc.sl
10816    ;;
10817  esac
10818  ;;
10819
10820interix[3-9]*)
10821  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10822  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10823  ;;
10824
10825irix5* | irix6* | nonstopux*)
10826  case $LD in
10827  *-32|*"-32 ") libmagic=32-bit;;
10828  *-n32|*"-n32 ") libmagic=N32;;
10829  *-64|*"-64 ") libmagic=64-bit;;
10830  *) libmagic=never-match;;
10831  esac
10832  lt_cv_deplibs_check_method=pass_all
10833  ;;
10834
10835# This must be glibc/ELF.
10836linux* | k*bsd*-gnu | kopensolaris*-gnu)
10837  lt_cv_deplibs_check_method=pass_all
10838  ;;
10839
10840netbsd*)
10841  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10842    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10843  else
10844    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10845  fi
10846  ;;
10847
10848newos6*)
10849  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10850  lt_cv_file_magic_cmd=/usr/bin/file
10851  lt_cv_file_magic_test_file=/usr/lib/libnls.so
10852  ;;
10853
10854*nto* | *qnx*)
10855  lt_cv_deplibs_check_method=pass_all
10856  ;;
10857
10858openbsd*)
10859  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10860    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10861  else
10862    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10863  fi
10864  ;;
10865
10866osf3* | osf4* | osf5*)
10867  lt_cv_deplibs_check_method=pass_all
10868  ;;
10869
10870rdos*)
10871  lt_cv_deplibs_check_method=pass_all
10872  ;;
10873
10874solaris*)
10875  lt_cv_deplibs_check_method=pass_all
10876  ;;
10877
10878sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10879  lt_cv_deplibs_check_method=pass_all
10880  ;;
10881
10882sysv4 | sysv4.3*)
10883  case $host_vendor in
10884  motorola)
10885    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]'
10886    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10887    ;;
10888  ncr)
10889    lt_cv_deplibs_check_method=pass_all
10890    ;;
10891  sequent)
10892    lt_cv_file_magic_cmd='/bin/file'
10893    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10894    ;;
10895  sni)
10896    lt_cv_file_magic_cmd='/bin/file'
10897    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10898    lt_cv_file_magic_test_file=/lib/libc.so
10899    ;;
10900  siemens)
10901    lt_cv_deplibs_check_method=pass_all
10902    ;;
10903  pc)
10904    lt_cv_deplibs_check_method=pass_all
10905    ;;
10906  esac
10907  ;;
10908
10909tpf*)
10910  lt_cv_deplibs_check_method=pass_all
10911  ;;
10912esac
10913
10914fi
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10916$as_echo "$lt_cv_deplibs_check_method" >&6; }
10917
10918file_magic_glob=
10919want_nocaseglob=no
10920if test "$build" = "$host"; then
10921  case $host_os in
10922  mingw* | pw32*)
10923    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10924      want_nocaseglob=yes
10925    else
10926      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10927    fi
10928    ;;
10929  esac
10930fi
10931
10932file_magic_cmd=$lt_cv_file_magic_cmd
10933deplibs_check_method=$lt_cv_deplibs_check_method
10934test -z "$deplibs_check_method" && deplibs_check_method=unknown
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957if test -n "$ac_tool_prefix"; then
10958  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10959set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961$as_echo_n "checking for $ac_word... " >&6; }
10962if ${ac_cv_prog_DLLTOOL+:} false; then :
10963  $as_echo_n "(cached) " >&6
10964else
10965  if test -n "$DLLTOOL"; then
10966  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10967else
10968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969for as_dir in $PATH
10970do
10971  IFS=$as_save_IFS
10972  test -z "$as_dir" && as_dir=.
10973    for ac_exec_ext in '' $ac_executable_extensions; do
10974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977    break 2
10978  fi
10979done
10980  done
10981IFS=$as_save_IFS
10982
10983fi
10984fi
10985DLLTOOL=$ac_cv_prog_DLLTOOL
10986if test -n "$DLLTOOL"; then
10987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10988$as_echo "$DLLTOOL" >&6; }
10989else
10990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991$as_echo "no" >&6; }
10992fi
10993
10994
10995fi
10996if test -z "$ac_cv_prog_DLLTOOL"; then
10997  ac_ct_DLLTOOL=$DLLTOOL
10998  # Extract the first word of "dlltool", so it can be a program name with args.
10999set dummy dlltool; ac_word=$2
11000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001$as_echo_n "checking for $ac_word... " >&6; }
11002if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11003  $as_echo_n "(cached) " >&6
11004else
11005  if test -n "$ac_ct_DLLTOOL"; then
11006  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11007else
11008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009for as_dir in $PATH
11010do
11011  IFS=$as_save_IFS
11012  test -z "$as_dir" && as_dir=.
11013    for ac_exec_ext in '' $ac_executable_extensions; do
11014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11015    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11017    break 2
11018  fi
11019done
11020  done
11021IFS=$as_save_IFS
11022
11023fi
11024fi
11025ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11026if test -n "$ac_ct_DLLTOOL"; then
11027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11028$as_echo "$ac_ct_DLLTOOL" >&6; }
11029else
11030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031$as_echo "no" >&6; }
11032fi
11033
11034  if test "x$ac_ct_DLLTOOL" = x; then
11035    DLLTOOL="false"
11036  else
11037    case $cross_compiling:$ac_tool_warned in
11038yes:)
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11041ac_tool_warned=yes ;;
11042esac
11043    DLLTOOL=$ac_ct_DLLTOOL
11044  fi
11045else
11046  DLLTOOL="$ac_cv_prog_DLLTOOL"
11047fi
11048
11049test -z "$DLLTOOL" && DLLTOOL=dlltool
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11061$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11062if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11063  $as_echo_n "(cached) " >&6
11064else
11065  lt_cv_sharedlib_from_linklib_cmd='unknown'
11066
11067case $host_os in
11068cygwin* | mingw* | pw32* | cegcc*)
11069  # two different shell functions defined in ltmain.sh
11070  # decide which to use based on capabilities of $DLLTOOL
11071  case `$DLLTOOL --help 2>&1` in
11072  *--identify-strict*)
11073    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11074    ;;
11075  *)
11076    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11077    ;;
11078  esac
11079  ;;
11080*)
11081  # fallback: assume linklib IS sharedlib
11082  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11083  ;;
11084esac
11085
11086fi
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11088$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11089sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11090test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11091
11092
11093
11094
11095
11096
11097
11098if test -n "$ac_tool_prefix"; then
11099  for ac_prog in ar
11100  do
11101    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104$as_echo_n "checking for $ac_word... " >&6; }
11105if ${ac_cv_prog_AR+:} false; then :
11106  $as_echo_n "(cached) " >&6
11107else
11108  if test -n "$AR"; then
11109  ac_cv_prog_AR="$AR" # Let the user override the test.
11110else
11111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112for as_dir in $PATH
11113do
11114  IFS=$as_save_IFS
11115  test -z "$as_dir" && as_dir=.
11116    for ac_exec_ext in '' $ac_executable_extensions; do
11117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120    break 2
11121  fi
11122done
11123  done
11124IFS=$as_save_IFS
11125
11126fi
11127fi
11128AR=$ac_cv_prog_AR
11129if test -n "$AR"; then
11130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11131$as_echo "$AR" >&6; }
11132else
11133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134$as_echo "no" >&6; }
11135fi
11136
11137
11138    test -n "$AR" && break
11139  done
11140fi
11141if test -z "$AR"; then
11142  ac_ct_AR=$AR
11143  for ac_prog in ar
11144do
11145  # Extract the first word of "$ac_prog", so it can be a program name with args.
11146set dummy $ac_prog; ac_word=$2
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148$as_echo_n "checking for $ac_word... " >&6; }
11149if ${ac_cv_prog_ac_ct_AR+:} false; then :
11150  $as_echo_n "(cached) " >&6
11151else
11152  if test -n "$ac_ct_AR"; then
11153  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11154else
11155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156for as_dir in $PATH
11157do
11158  IFS=$as_save_IFS
11159  test -z "$as_dir" && as_dir=.
11160    for ac_exec_ext in '' $ac_executable_extensions; do
11161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162    ac_cv_prog_ac_ct_AR="$ac_prog"
11163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11164    break 2
11165  fi
11166done
11167  done
11168IFS=$as_save_IFS
11169
11170fi
11171fi
11172ac_ct_AR=$ac_cv_prog_ac_ct_AR
11173if test -n "$ac_ct_AR"; then
11174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11175$as_echo "$ac_ct_AR" >&6; }
11176else
11177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178$as_echo "no" >&6; }
11179fi
11180
11181
11182  test -n "$ac_ct_AR" && break
11183done
11184
11185  if test "x$ac_ct_AR" = x; then
11186    AR="false"
11187  else
11188    case $cross_compiling:$ac_tool_warned in
11189yes:)
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11192ac_tool_warned=yes ;;
11193esac
11194    AR=$ac_ct_AR
11195  fi
11196fi
11197
11198: ${AR=ar}
11199: ${AR_FLAGS=cru}
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11212$as_echo_n "checking for archiver @FILE support... " >&6; }
11213if ${lt_cv_ar_at_file+:} false; then :
11214  $as_echo_n "(cached) " >&6
11215else
11216  lt_cv_ar_at_file=no
11217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218/* end confdefs.h.  */
11219
11220int
11221main ()
11222{
11223
11224  ;
11225  return 0;
11226}
11227_ACEOF
11228if ac_fn_c_try_compile "$LINENO"; then :
11229  echo conftest.$ac_objext > conftest.lst
11230      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11231      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11232  (eval $lt_ar_try) 2>&5
11233  ac_status=$?
11234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235  test $ac_status = 0; }
11236      if test "$ac_status" -eq 0; then
11237	# Ensure the archiver fails upon bogus file names.
11238	rm -f conftest.$ac_objext libconftest.a
11239	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11240  (eval $lt_ar_try) 2>&5
11241  ac_status=$?
11242  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243  test $ac_status = 0; }
11244	if test "$ac_status" -ne 0; then
11245          lt_cv_ar_at_file=@
11246        fi
11247      fi
11248      rm -f conftest.* libconftest.a
11249
11250fi
11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252
11253fi
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11255$as_echo "$lt_cv_ar_at_file" >&6; }
11256
11257if test "x$lt_cv_ar_at_file" = xno; then
11258  archiver_list_spec=
11259else
11260  archiver_list_spec=$lt_cv_ar_at_file
11261fi
11262
11263
11264
11265
11266
11267
11268
11269if test -n "$ac_tool_prefix"; then
11270  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11271set dummy ${ac_tool_prefix}strip; ac_word=$2
11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273$as_echo_n "checking for $ac_word... " >&6; }
11274if ${ac_cv_prog_STRIP+:} false; then :
11275  $as_echo_n "(cached) " >&6
11276else
11277  if test -n "$STRIP"; then
11278  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11279else
11280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281for as_dir in $PATH
11282do
11283  IFS=$as_save_IFS
11284  test -z "$as_dir" && as_dir=.
11285    for ac_exec_ext in '' $ac_executable_extensions; do
11286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11287    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11289    break 2
11290  fi
11291done
11292  done
11293IFS=$as_save_IFS
11294
11295fi
11296fi
11297STRIP=$ac_cv_prog_STRIP
11298if test -n "$STRIP"; then
11299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11300$as_echo "$STRIP" >&6; }
11301else
11302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303$as_echo "no" >&6; }
11304fi
11305
11306
11307fi
11308if test -z "$ac_cv_prog_STRIP"; then
11309  ac_ct_STRIP=$STRIP
11310  # Extract the first word of "strip", so it can be a program name with args.
11311set dummy strip; ac_word=$2
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313$as_echo_n "checking for $ac_word... " >&6; }
11314if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  if test -n "$ac_ct_STRIP"; then
11318  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11319else
11320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321for as_dir in $PATH
11322do
11323  IFS=$as_save_IFS
11324  test -z "$as_dir" && as_dir=.
11325    for ac_exec_ext in '' $ac_executable_extensions; do
11326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327    ac_cv_prog_ac_ct_STRIP="strip"
11328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329    break 2
11330  fi
11331done
11332  done
11333IFS=$as_save_IFS
11334
11335fi
11336fi
11337ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11338if test -n "$ac_ct_STRIP"; then
11339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11340$as_echo "$ac_ct_STRIP" >&6; }
11341else
11342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343$as_echo "no" >&6; }
11344fi
11345
11346  if test "x$ac_ct_STRIP" = x; then
11347    STRIP=":"
11348  else
11349    case $cross_compiling:$ac_tool_warned in
11350yes:)
11351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11353ac_tool_warned=yes ;;
11354esac
11355    STRIP=$ac_ct_STRIP
11356  fi
11357else
11358  STRIP="$ac_cv_prog_STRIP"
11359fi
11360
11361test -z "$STRIP" && STRIP=:
11362
11363
11364
11365
11366
11367
11368if test -n "$ac_tool_prefix"; then
11369  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11370set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372$as_echo_n "checking for $ac_word... " >&6; }
11373if ${ac_cv_prog_RANLIB+:} false; then :
11374  $as_echo_n "(cached) " >&6
11375else
11376  if test -n "$RANLIB"; then
11377  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11378else
11379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380for as_dir in $PATH
11381do
11382  IFS=$as_save_IFS
11383  test -z "$as_dir" && as_dir=.
11384    for ac_exec_ext in '' $ac_executable_extensions; do
11385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11386    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11388    break 2
11389  fi
11390done
11391  done
11392IFS=$as_save_IFS
11393
11394fi
11395fi
11396RANLIB=$ac_cv_prog_RANLIB
11397if test -n "$RANLIB"; then
11398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11399$as_echo "$RANLIB" >&6; }
11400else
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402$as_echo "no" >&6; }
11403fi
11404
11405
11406fi
11407if test -z "$ac_cv_prog_RANLIB"; then
11408  ac_ct_RANLIB=$RANLIB
11409  # Extract the first word of "ranlib", so it can be a program name with args.
11410set dummy ranlib; ac_word=$2
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412$as_echo_n "checking for $ac_word... " >&6; }
11413if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11414  $as_echo_n "(cached) " >&6
11415else
11416  if test -n "$ac_ct_RANLIB"; then
11417  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11418else
11419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422  IFS=$as_save_IFS
11423  test -z "$as_dir" && as_dir=.
11424    for ac_exec_ext in '' $ac_executable_extensions; do
11425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426    ac_cv_prog_ac_ct_RANLIB="ranlib"
11427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428    break 2
11429  fi
11430done
11431  done
11432IFS=$as_save_IFS
11433
11434fi
11435fi
11436ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11437if test -n "$ac_ct_RANLIB"; then
11438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11439$as_echo "$ac_ct_RANLIB" >&6; }
11440else
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
11443fi
11444
11445  if test "x$ac_ct_RANLIB" = x; then
11446    RANLIB=":"
11447  else
11448    case $cross_compiling:$ac_tool_warned in
11449yes:)
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11452ac_tool_warned=yes ;;
11453esac
11454    RANLIB=$ac_ct_RANLIB
11455  fi
11456else
11457  RANLIB="$ac_cv_prog_RANLIB"
11458fi
11459
11460test -z "$RANLIB" && RANLIB=:
11461
11462
11463
11464
11465
11466
11467# Determine commands to create old-style static archives.
11468old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11469old_postinstall_cmds='chmod 644 $oldlib'
11470old_postuninstall_cmds=
11471
11472if test -n "$RANLIB"; then
11473  case $host_os in
11474  openbsd*)
11475    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
11476    ;;
11477  *)
11478    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
11479    ;;
11480  esac
11481  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
11482fi
11483
11484case $host_os in
11485  darwin*)
11486    lock_old_archive_extraction=yes ;;
11487  *)
11488    lock_old_archive_extraction=no ;;
11489esac
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529# If no C compiler was specified, use CC.
11530LTCC=${LTCC-"$CC"}
11531
11532# If no C compiler flags were specified, use CFLAGS.
11533LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11534
11535# Allow CC to be a program name with arguments.
11536compiler=$CC
11537
11538
11539# Check for command to grab the raw symbol name followed by C symbol from nm.
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11541$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11542if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11543  $as_echo_n "(cached) " >&6
11544else
11545
11546# These are sane defaults that work on at least a few old systems.
11547# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11548
11549# Character class describing NM global symbol codes.
11550symcode='[BCDEGRST]'
11551
11552# Regexp to match symbols that can be accessed directly from C.
11553sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11554
11555# Define system-specific variables.
11556case $host_os in
11557aix*)
11558  symcode='[BCDT]'
11559  ;;
11560cygwin* | mingw* | pw32* | cegcc*)
11561  symcode='[ABCDGISTW]'
11562  ;;
11563hpux*)
11564  if test "$host_cpu" = ia64; then
11565    symcode='[ABCDEGRST]'
11566  fi
11567  ;;
11568irix* | nonstopux*)
11569  symcode='[BCDEGRST]'
11570  ;;
11571osf*)
11572  symcode='[BCDEGQRST]'
11573  ;;
11574solaris*)
11575  symcode='[BDRT]'
11576  ;;
11577sco3.2v5*)
11578  symcode='[DT]'
11579  ;;
11580sysv4.2uw2*)
11581  symcode='[DT]'
11582  ;;
11583sysv5* | sco5v6* | unixware* | OpenUNIX*)
11584  symcode='[ABDT]'
11585  ;;
11586sysv4)
11587  symcode='[DFNSTU]'
11588  ;;
11589esac
11590
11591# If we're using GNU nm, then use its standard symbol codes.
11592case `$NM -V 2>&1` in
11593*GNU* | *'with BFD'*)
11594  symcode='[ABCDGIRSTW]' ;;
11595esac
11596
11597# Transform an extracted symbol line into a proper C declaration.
11598# Some systems (esp. on ia64) link data and code symbols differently,
11599# so use this general approach.
11600lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11601
11602# Transform an extracted symbol line into symbol name and symbol address
11603lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11604lt_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'"
11605
11606# Handle CRLF in mingw tool chain
11607opt_cr=
11608case $build_os in
11609mingw*)
11610  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11611  ;;
11612esac
11613
11614# Try without a prefix underscore, then with it.
11615for ac_symprfx in "" "_"; do
11616
11617  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11618  symxfrm="\\1 $ac_symprfx\\2 \\2"
11619
11620  # Write the raw and C identifiers.
11621  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11622    # Fake it for dumpbin and say T for any non-static function
11623    # and D for any global variable.
11624    # Also find C++ and __fastcall symbols from MSVC++,
11625    # which start with @ or ?.
11626    lt_cv_sys_global_symbol_pipe="$AWK '"\
11627"     {last_section=section; section=\$ 3};"\
11628"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11629"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11630"     \$ 0!~/External *\|/{next};"\
11631"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11632"     {if(hide[section]) next};"\
11633"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11634"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11635"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11636"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11637"     ' prfx=^$ac_symprfx"
11638  else
11639    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11640  fi
11641  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11642
11643  # Check to see that the pipe works correctly.
11644  pipe_works=no
11645
11646  rm -f conftest*
11647  cat > conftest.$ac_ext <<_LT_EOF
11648#ifdef __cplusplus
11649extern "C" {
11650#endif
11651char nm_test_var;
11652void nm_test_func(void);
11653void nm_test_func(void){}
11654#ifdef __cplusplus
11655}
11656#endif
11657int main(){nm_test_var='a';nm_test_func();return(0);}
11658_LT_EOF
11659
11660  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11661  (eval $ac_compile) 2>&5
11662  ac_status=$?
11663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11664  test $ac_status = 0; }; then
11665    # Now try to grab the symbols.
11666    nlist=conftest.nm
11667    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11668  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11669  ac_status=$?
11670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11671  test $ac_status = 0; } && test -s "$nlist"; then
11672      # Try sorting and uniquifying the output.
11673      if sort "$nlist" | uniq > "$nlist"T; then
11674	mv -f "$nlist"T "$nlist"
11675      else
11676	rm -f "$nlist"T
11677      fi
11678
11679      # Make sure that we snagged all the symbols we need.
11680      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11681	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11682	  cat <<_LT_EOF > conftest.$ac_ext
11683/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11684#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11685/* DATA imports from DLLs on WIN32 con't be const, because runtime
11686   relocations are performed -- see ld's documentation on pseudo-relocs.  */
11687# define LT_DLSYM_CONST
11688#elif defined(__osf__)
11689/* This system does not cope well with relocations in const data.  */
11690# define LT_DLSYM_CONST
11691#else
11692# define LT_DLSYM_CONST const
11693#endif
11694
11695#ifdef __cplusplus
11696extern "C" {
11697#endif
11698
11699_LT_EOF
11700	  # Now generate the symbol file.
11701	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11702
11703	  cat <<_LT_EOF >> conftest.$ac_ext
11704
11705/* The mapping between symbol names and symbols.  */
11706LT_DLSYM_CONST struct {
11707  const char *name;
11708  void       *address;
11709}
11710lt__PROGRAM__LTX_preloaded_symbols[] =
11711{
11712  { "@PROGRAM@", (void *) 0 },
11713_LT_EOF
11714	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11715	  cat <<\_LT_EOF >> conftest.$ac_ext
11716  {0, (void *) 0}
11717};
11718
11719/* This works around a problem in FreeBSD linker */
11720#ifdef FREEBSD_WORKAROUND
11721static const void *lt_preloaded_setup() {
11722  return lt__PROGRAM__LTX_preloaded_symbols;
11723}
11724#endif
11725
11726#ifdef __cplusplus
11727}
11728#endif
11729_LT_EOF
11730	  # Now try linking the two files.
11731	  mv conftest.$ac_objext conftstm.$ac_objext
11732	  lt_globsym_save_LIBS=$LIBS
11733	  lt_globsym_save_CFLAGS=$CFLAGS
11734	  LIBS="conftstm.$ac_objext"
11735	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11736	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11737  (eval $ac_link) 2>&5
11738  ac_status=$?
11739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11741	    pipe_works=yes
11742	  fi
11743	  LIBS=$lt_globsym_save_LIBS
11744	  CFLAGS=$lt_globsym_save_CFLAGS
11745	else
11746	  echo "cannot find nm_test_func in $nlist" >&5
11747	fi
11748      else
11749	echo "cannot find nm_test_var in $nlist" >&5
11750      fi
11751    else
11752      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11753    fi
11754  else
11755    echo "$progname: failed program was:" >&5
11756    cat conftest.$ac_ext >&5
11757  fi
11758  rm -rf conftest* conftst*
11759
11760  # Do not use the global_symbol_pipe unless it works.
11761  if test "$pipe_works" = yes; then
11762    break
11763  else
11764    lt_cv_sys_global_symbol_pipe=
11765  fi
11766done
11767
11768fi
11769
11770if test -z "$lt_cv_sys_global_symbol_pipe"; then
11771  lt_cv_sys_global_symbol_to_cdecl=
11772fi
11773if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11775$as_echo "failed" >&6; }
11776else
11777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11778$as_echo "ok" >&6; }
11779fi
11780
11781# Response file support.
11782if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11783  nm_file_list_spec='@'
11784elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11785  nm_file_list_spec='@'
11786fi
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11815$as_echo_n "checking for sysroot... " >&6; }
11816
11817# Check whether --with-sysroot was given.
11818if test "${with_sysroot+set}" = set; then :
11819  withval=$with_sysroot;
11820else
11821  with_sysroot=no
11822fi
11823
11824
11825lt_sysroot=
11826case ${with_sysroot} in #(
11827 yes)
11828   if test "$GCC" = yes; then
11829     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11830   fi
11831   ;; #(
11832 /*)
11833   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11834   ;; #(
11835 no|'')
11836   ;; #(
11837 *)
11838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11839$as_echo "${with_sysroot}" >&6; }
11840   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11841   ;;
11842esac
11843
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11845$as_echo "${lt_sysroot:-no}" >&6; }
11846
11847
11848
11849
11850
11851# Check whether --enable-libtool-lock was given.
11852if test "${enable_libtool_lock+set}" = set; then :
11853  enableval=$enable_libtool_lock;
11854fi
11855
11856test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11857
11858# Some flags need to be propagated to the compiler or linker for good
11859# libtool support.
11860case $host in
11861ia64-*-hpux*)
11862  # Find out which ABI we are using.
11863  echo 'int i;' > conftest.$ac_ext
11864  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11865  (eval $ac_compile) 2>&5
11866  ac_status=$?
11867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868  test $ac_status = 0; }; then
11869    case `/usr/bin/file conftest.$ac_objext` in
11870      *ELF-32*)
11871	HPUX_IA64_MODE="32"
11872	;;
11873      *ELF-64*)
11874	HPUX_IA64_MODE="64"
11875	;;
11876    esac
11877  fi
11878  rm -rf conftest*
11879  ;;
11880*-*-irix6*)
11881  # Find out which ABI we are using.
11882  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11883  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11884  (eval $ac_compile) 2>&5
11885  ac_status=$?
11886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887  test $ac_status = 0; }; then
11888    if test "$lt_cv_prog_gnu_ld" = yes; then
11889      case `/usr/bin/file conftest.$ac_objext` in
11890	*32-bit*)
11891	  LD="${LD-ld} -melf32bsmip"
11892	  ;;
11893	*N32*)
11894	  LD="${LD-ld} -melf32bmipn32"
11895	  ;;
11896	*64-bit*)
11897	  LD="${LD-ld} -melf64bmip"
11898	;;
11899      esac
11900    else
11901      case `/usr/bin/file conftest.$ac_objext` in
11902	*32-bit*)
11903	  LD="${LD-ld} -32"
11904	  ;;
11905	*N32*)
11906	  LD="${LD-ld} -n32"
11907	  ;;
11908	*64-bit*)
11909	  LD="${LD-ld} -64"
11910	  ;;
11911      esac
11912    fi
11913  fi
11914  rm -rf conftest*
11915  ;;
11916
11917x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11918s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11919  # Find out which ABI we are using.
11920  echo 'int i;' > conftest.$ac_ext
11921  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11922  (eval $ac_compile) 2>&5
11923  ac_status=$?
11924  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11925  test $ac_status = 0; }; then
11926    case `/usr/bin/file conftest.o` in
11927      *32-bit*)
11928	case $host in
11929	  x86_64-*kfreebsd*-gnu)
11930	    LD="${LD-ld} -m elf_i386_fbsd"
11931	    ;;
11932	  x86_64-*linux*)
11933	    LD="${LD-ld} -m elf_i386"
11934	    ;;
11935	  ppc64-*linux*|powerpc64-*linux*)
11936	    LD="${LD-ld} -m elf32ppclinux"
11937	    ;;
11938	  s390x-*linux*)
11939	    LD="${LD-ld} -m elf_s390"
11940	    ;;
11941	  sparc64-*linux*)
11942	    LD="${LD-ld} -m elf32_sparc"
11943	    ;;
11944	esac
11945	;;
11946      *64-bit*)
11947	case $host in
11948	  x86_64-*kfreebsd*-gnu)
11949	    LD="${LD-ld} -m elf_x86_64_fbsd"
11950	    ;;
11951	  x86_64-*linux*)
11952	    LD="${LD-ld} -m elf_x86_64"
11953	    ;;
11954	  ppc*-*linux*|powerpc*-*linux*)
11955	    LD="${LD-ld} -m elf64ppc"
11956	    ;;
11957	  s390*-*linux*|s390*-*tpf*)
11958	    LD="${LD-ld} -m elf64_s390"
11959	    ;;
11960	  sparc*-*linux*)
11961	    LD="${LD-ld} -m elf64_sparc"
11962	    ;;
11963	esac
11964	;;
11965    esac
11966  fi
11967  rm -rf conftest*
11968  ;;
11969
11970*-*-sco3.2v5*)
11971  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11972  SAVE_CFLAGS="$CFLAGS"
11973  CFLAGS="$CFLAGS -belf"
11974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11975$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11976if ${lt_cv_cc_needs_belf+:} false; then :
11977  $as_echo_n "(cached) " >&6
11978else
11979  ac_ext=c
11980ac_cpp='$CPP $CPPFLAGS'
11981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11983ac_compiler_gnu=$ac_cv_c_compiler_gnu
11984
11985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986/* end confdefs.h.  */
11987
11988int
11989main ()
11990{
11991
11992  ;
11993  return 0;
11994}
11995_ACEOF
11996if ac_fn_c_try_link "$LINENO"; then :
11997  lt_cv_cc_needs_belf=yes
11998else
11999  lt_cv_cc_needs_belf=no
12000fi
12001rm -f core conftest.err conftest.$ac_objext \
12002    conftest$ac_exeext conftest.$ac_ext
12003     ac_ext=c
12004ac_cpp='$CPP $CPPFLAGS'
12005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007ac_compiler_gnu=$ac_cv_c_compiler_gnu
12008
12009fi
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12011$as_echo "$lt_cv_cc_needs_belf" >&6; }
12012  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12013    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12014    CFLAGS="$SAVE_CFLAGS"
12015  fi
12016  ;;
12017*-*solaris*)
12018  # Find out which ABI we are using.
12019  echo 'int i;' > conftest.$ac_ext
12020  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12021  (eval $ac_compile) 2>&5
12022  ac_status=$?
12023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024  test $ac_status = 0; }; then
12025    case `/usr/bin/file conftest.o` in
12026    *64-bit*)
12027      case $lt_cv_prog_gnu_ld in
12028      yes*)
12029        case $host in
12030        i?86-*-solaris*)
12031          LD="${LD-ld} -m elf_x86_64"
12032          ;;
12033        sparc*-*-solaris*)
12034          LD="${LD-ld} -m elf64_sparc"
12035          ;;
12036        esac
12037        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12038        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12039          LD="${LD-ld}_sol2"
12040        fi
12041        ;;
12042      *)
12043	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12044	  LD="${LD-ld} -64"
12045	fi
12046	;;
12047      esac
12048      ;;
12049    esac
12050  fi
12051  rm -rf conftest*
12052  ;;
12053esac
12054
12055need_locks="$enable_libtool_lock"
12056
12057if test -n "$ac_tool_prefix"; then
12058  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12059set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then :
12063  $as_echo_n "(cached) " >&6
12064else
12065  if test -n "$MANIFEST_TOOL"; then
12066  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt"
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
12085MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12086if test -n "$MANIFEST_TOOL"; then
12087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12088$as_echo "$MANIFEST_TOOL" >&6; }
12089else
12090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
12092fi
12093
12094
12095fi
12096if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12097  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12098  # Extract the first word of "mt", so it can be a program name with args.
12099set dummy mt; ac_word=$2
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101$as_echo_n "checking for $ac_word... " >&6; }
12102if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12103  $as_echo_n "(cached) " >&6
12104else
12105  if test -n "$ac_ct_MANIFEST_TOOL"; then
12106  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12107else
12108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109for as_dir in $PATH
12110do
12111  IFS=$as_save_IFS
12112  test -z "$as_dir" && as_dir=.
12113    for ac_exec_ext in '' $ac_executable_extensions; do
12114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117    break 2
12118  fi
12119done
12120  done
12121IFS=$as_save_IFS
12122
12123fi
12124fi
12125ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12126if test -n "$ac_ct_MANIFEST_TOOL"; then
12127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12128$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12129else
12130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131$as_echo "no" >&6; }
12132fi
12133
12134  if test "x$ac_ct_MANIFEST_TOOL" = x; then
12135    MANIFEST_TOOL=":"
12136  else
12137    case $cross_compiling:$ac_tool_warned in
12138yes:)
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12141ac_tool_warned=yes ;;
12142esac
12143    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12144  fi
12145else
12146  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12147fi
12148
12149test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12151$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12152if ${lt_cv_path_mainfest_tool+:} false; then :
12153  $as_echo_n "(cached) " >&6
12154else
12155  lt_cv_path_mainfest_tool=no
12156  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12157  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12158  cat conftest.err >&5
12159  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12160    lt_cv_path_mainfest_tool=yes
12161  fi
12162  rm -f conftest*
12163fi
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12165$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12166if test "x$lt_cv_path_mainfest_tool" != xyes; then
12167  MANIFEST_TOOL=:
12168fi
12169
12170
12171
12172
12173
12174
12175  case $host_os in
12176    rhapsody* | darwin*)
12177    if test -n "$ac_tool_prefix"; then
12178  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12179set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181$as_echo_n "checking for $ac_word... " >&6; }
12182if ${ac_cv_prog_DSYMUTIL+:} false; then :
12183  $as_echo_n "(cached) " >&6
12184else
12185  if test -n "$DSYMUTIL"; then
12186  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12187else
12188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191  IFS=$as_save_IFS
12192  test -z "$as_dir" && as_dir=.
12193    for ac_exec_ext in '' $ac_executable_extensions; do
12194  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12196    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12197    break 2
12198  fi
12199done
12200  done
12201IFS=$as_save_IFS
12202
12203fi
12204fi
12205DSYMUTIL=$ac_cv_prog_DSYMUTIL
12206if test -n "$DSYMUTIL"; then
12207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12208$as_echo "$DSYMUTIL" >&6; }
12209else
12210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213
12214
12215fi
12216if test -z "$ac_cv_prog_DSYMUTIL"; then
12217  ac_ct_DSYMUTIL=$DSYMUTIL
12218  # Extract the first word of "dsymutil", so it can be a program name with args.
12219set dummy dsymutil; ac_word=$2
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221$as_echo_n "checking for $ac_word... " >&6; }
12222if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
12223  $as_echo_n "(cached) " >&6
12224else
12225  if test -n "$ac_ct_DSYMUTIL"; then
12226  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12227else
12228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229for as_dir in $PATH
12230do
12231  IFS=$as_save_IFS
12232  test -z "$as_dir" && as_dir=.
12233    for ac_exec_ext in '' $ac_executable_extensions; do
12234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237    break 2
12238  fi
12239done
12240  done
12241IFS=$as_save_IFS
12242
12243fi
12244fi
12245ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12246if test -n "$ac_ct_DSYMUTIL"; then
12247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12248$as_echo "$ac_ct_DSYMUTIL" >&6; }
12249else
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
12252fi
12253
12254  if test "x$ac_ct_DSYMUTIL" = x; then
12255    DSYMUTIL=":"
12256  else
12257    case $cross_compiling:$ac_tool_warned in
12258yes:)
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12261ac_tool_warned=yes ;;
12262esac
12263    DSYMUTIL=$ac_ct_DSYMUTIL
12264  fi
12265else
12266  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12267fi
12268
12269    if test -n "$ac_tool_prefix"; then
12270  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12271set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
12274if ${ac_cv_prog_NMEDIT+:} false; then :
12275  $as_echo_n "(cached) " >&6
12276else
12277  if test -n "$NMEDIT"; then
12278  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283  IFS=$as_save_IFS
12284  test -z "$as_dir" && as_dir=.
12285    for ac_exec_ext in '' $ac_executable_extensions; do
12286  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289    break 2
12290  fi
12291done
12292  done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297NMEDIT=$ac_cv_prog_NMEDIT
12298if test -n "$NMEDIT"; then
12299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12300$as_echo "$NMEDIT" >&6; }
12301else
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306
12307fi
12308if test -z "$ac_cv_prog_NMEDIT"; then
12309  ac_ct_NMEDIT=$NMEDIT
12310  # Extract the first word of "nmedit", so it can be a program name with args.
12311set dummy nmedit; ac_word=$2
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313$as_echo_n "checking for $ac_word... " >&6; }
12314if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12315  $as_echo_n "(cached) " >&6
12316else
12317  if test -n "$ac_ct_NMEDIT"; then
12318  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12319else
12320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321for as_dir in $PATH
12322do
12323  IFS=$as_save_IFS
12324  test -z "$as_dir" && as_dir=.
12325    for ac_exec_ext in '' $ac_executable_extensions; do
12326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327    ac_cv_prog_ac_ct_NMEDIT="nmedit"
12328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329    break 2
12330  fi
12331done
12332  done
12333IFS=$as_save_IFS
12334
12335fi
12336fi
12337ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12338if test -n "$ac_ct_NMEDIT"; then
12339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12340$as_echo "$ac_ct_NMEDIT" >&6; }
12341else
12342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
12344fi
12345
12346  if test "x$ac_ct_NMEDIT" = x; then
12347    NMEDIT=":"
12348  else
12349    case $cross_compiling:$ac_tool_warned in
12350yes:)
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12353ac_tool_warned=yes ;;
12354esac
12355    NMEDIT=$ac_ct_NMEDIT
12356  fi
12357else
12358  NMEDIT="$ac_cv_prog_NMEDIT"
12359fi
12360
12361    if test -n "$ac_tool_prefix"; then
12362  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12363set dummy ${ac_tool_prefix}lipo; ac_word=$2
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365$as_echo_n "checking for $ac_word... " >&6; }
12366if ${ac_cv_prog_LIPO+:} false; then :
12367  $as_echo_n "(cached) " >&6
12368else
12369  if test -n "$LIPO"; then
12370  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12371else
12372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373for as_dir in $PATH
12374do
12375  IFS=$as_save_IFS
12376  test -z "$as_dir" && as_dir=.
12377    for ac_exec_ext in '' $ac_executable_extensions; do
12378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381    break 2
12382  fi
12383done
12384  done
12385IFS=$as_save_IFS
12386
12387fi
12388fi
12389LIPO=$ac_cv_prog_LIPO
12390if test -n "$LIPO"; then
12391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12392$as_echo "$LIPO" >&6; }
12393else
12394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395$as_echo "no" >&6; }
12396fi
12397
12398
12399fi
12400if test -z "$ac_cv_prog_LIPO"; then
12401  ac_ct_LIPO=$LIPO
12402  # Extract the first word of "lipo", so it can be a program name with args.
12403set dummy lipo; ac_word=$2
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
12406if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12407  $as_echo_n "(cached) " >&6
12408else
12409  if test -n "$ac_ct_LIPO"; then
12410  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12411else
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415  IFS=$as_save_IFS
12416  test -z "$as_dir" && as_dir=.
12417    for ac_exec_ext in '' $ac_executable_extensions; do
12418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419    ac_cv_prog_ac_ct_LIPO="lipo"
12420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12421    break 2
12422  fi
12423done
12424  done
12425IFS=$as_save_IFS
12426
12427fi
12428fi
12429ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12430if test -n "$ac_ct_LIPO"; then
12431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12432$as_echo "$ac_ct_LIPO" >&6; }
12433else
12434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
12436fi
12437
12438  if test "x$ac_ct_LIPO" = x; then
12439    LIPO=":"
12440  else
12441    case $cross_compiling:$ac_tool_warned in
12442yes:)
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12445ac_tool_warned=yes ;;
12446esac
12447    LIPO=$ac_ct_LIPO
12448  fi
12449else
12450  LIPO="$ac_cv_prog_LIPO"
12451fi
12452
12453    if test -n "$ac_tool_prefix"; then
12454  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12455set dummy ${ac_tool_prefix}otool; ac_word=$2
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457$as_echo_n "checking for $ac_word... " >&6; }
12458if ${ac_cv_prog_OTOOL+:} false; then :
12459  $as_echo_n "(cached) " >&6
12460else
12461  if test -n "$OTOOL"; then
12462  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12463else
12464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465for as_dir in $PATH
12466do
12467  IFS=$as_save_IFS
12468  test -z "$as_dir" && as_dir=.
12469    for ac_exec_ext in '' $ac_executable_extensions; do
12470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473    break 2
12474  fi
12475done
12476  done
12477IFS=$as_save_IFS
12478
12479fi
12480fi
12481OTOOL=$ac_cv_prog_OTOOL
12482if test -n "$OTOOL"; then
12483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12484$as_echo "$OTOOL" >&6; }
12485else
12486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487$as_echo "no" >&6; }
12488fi
12489
12490
12491fi
12492if test -z "$ac_cv_prog_OTOOL"; then
12493  ac_ct_OTOOL=$OTOOL
12494  # Extract the first word of "otool", so it can be a program name with args.
12495set dummy otool; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
12498if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12499  $as_echo_n "(cached) " >&6
12500else
12501  if test -n "$ac_ct_OTOOL"; then
12502  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507  IFS=$as_save_IFS
12508  test -z "$as_dir" && as_dir=.
12509    for ac_exec_ext in '' $ac_executable_extensions; do
12510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511    ac_cv_prog_ac_ct_OTOOL="otool"
12512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513    break 2
12514  fi
12515done
12516  done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12522if test -n "$ac_ct_OTOOL"; then
12523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12524$as_echo "$ac_ct_OTOOL" >&6; }
12525else
12526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530  if test "x$ac_ct_OTOOL" = x; then
12531    OTOOL=":"
12532  else
12533    case $cross_compiling:$ac_tool_warned in
12534yes:)
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537ac_tool_warned=yes ;;
12538esac
12539    OTOOL=$ac_ct_OTOOL
12540  fi
12541else
12542  OTOOL="$ac_cv_prog_OTOOL"
12543fi
12544
12545    if test -n "$ac_tool_prefix"; then
12546  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12547set dummy ${ac_tool_prefix}otool64; ac_word=$2
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549$as_echo_n "checking for $ac_word... " >&6; }
12550if ${ac_cv_prog_OTOOL64+:} false; then :
12551  $as_echo_n "(cached) " >&6
12552else
12553  if test -n "$OTOOL64"; then
12554  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12555else
12556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557for as_dir in $PATH
12558do
12559  IFS=$as_save_IFS
12560  test -z "$as_dir" && as_dir=.
12561    for ac_exec_ext in '' $ac_executable_extensions; do
12562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12563    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565    break 2
12566  fi
12567done
12568  done
12569IFS=$as_save_IFS
12570
12571fi
12572fi
12573OTOOL64=$ac_cv_prog_OTOOL64
12574if test -n "$OTOOL64"; then
12575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12576$as_echo "$OTOOL64" >&6; }
12577else
12578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579$as_echo "no" >&6; }
12580fi
12581
12582
12583fi
12584if test -z "$ac_cv_prog_OTOOL64"; then
12585  ac_ct_OTOOL64=$OTOOL64
12586  # Extract the first word of "otool64", so it can be a program name with args.
12587set dummy otool64; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
12590if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12591  $as_echo_n "(cached) " >&6
12592else
12593  if test -n "$ac_ct_OTOOL64"; then
12594  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12595else
12596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599  IFS=$as_save_IFS
12600  test -z "$as_dir" && as_dir=.
12601    for ac_exec_ext in '' $ac_executable_extensions; do
12602  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603    ac_cv_prog_ac_ct_OTOOL64="otool64"
12604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605    break 2
12606  fi
12607done
12608  done
12609IFS=$as_save_IFS
12610
12611fi
12612fi
12613ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12614if test -n "$ac_ct_OTOOL64"; then
12615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12616$as_echo "$ac_ct_OTOOL64" >&6; }
12617else
12618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622  if test "x$ac_ct_OTOOL64" = x; then
12623    OTOOL64=":"
12624  else
12625    case $cross_compiling:$ac_tool_warned in
12626yes:)
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12629ac_tool_warned=yes ;;
12630esac
12631    OTOOL64=$ac_ct_OTOOL64
12632  fi
12633else
12634  OTOOL64="$ac_cv_prog_OTOOL64"
12635fi
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12664$as_echo_n "checking for -single_module linker flag... " >&6; }
12665if ${lt_cv_apple_cc_single_mod+:} false; then :
12666  $as_echo_n "(cached) " >&6
12667else
12668  lt_cv_apple_cc_single_mod=no
12669      if test -z "${LT_MULTI_MODULE}"; then
12670	# By default we will add the -single_module flag. You can override
12671	# by either setting the environment variable LT_MULTI_MODULE
12672	# non-empty at configure time, or by adding -multi_module to the
12673	# link flags.
12674	rm -rf libconftest.dylib*
12675	echo "int foo(void){return 1;}" > conftest.c
12676	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12677-dynamiclib -Wl,-single_module conftest.c" >&5
12678	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12679	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12680        _lt_result=$?
12681	# If there is a non-empty error log, and "single_module"
12682	# appears in it, assume the flag caused a linker warning
12683        if test -s conftest.err && $GREP single_module conftest.err; then
12684	  cat conftest.err >&5
12685	# Otherwise, if the output was created with a 0 exit code from
12686	# the compiler, it worked.
12687	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
12688	  lt_cv_apple_cc_single_mod=yes
12689	else
12690	  cat conftest.err >&5
12691	fi
12692	rm -rf libconftest.dylib*
12693	rm -f conftest.*
12694      fi
12695fi
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12697$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12698
12699    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12700$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12701if ${lt_cv_ld_exported_symbols_list+:} false; then :
12702  $as_echo_n "(cached) " >&6
12703else
12704  lt_cv_ld_exported_symbols_list=no
12705      save_LDFLAGS=$LDFLAGS
12706      echo "_main" > conftest.sym
12707      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12708      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709/* end confdefs.h.  */
12710
12711int
12712main ()
12713{
12714
12715  ;
12716  return 0;
12717}
12718_ACEOF
12719if ac_fn_c_try_link "$LINENO"; then :
12720  lt_cv_ld_exported_symbols_list=yes
12721else
12722  lt_cv_ld_exported_symbols_list=no
12723fi
12724rm -f core conftest.err conftest.$ac_objext \
12725    conftest$ac_exeext conftest.$ac_ext
12726	LDFLAGS="$save_LDFLAGS"
12727
12728fi
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12730$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12731
12732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12733$as_echo_n "checking for -force_load linker flag... " >&6; }
12734if ${lt_cv_ld_force_load+:} false; then :
12735  $as_echo_n "(cached) " >&6
12736else
12737  lt_cv_ld_force_load=no
12738      cat > conftest.c << _LT_EOF
12739int forced_loaded() { return 2;}
12740_LT_EOF
12741      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12742      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12743      echo "$AR cru libconftest.a conftest.o" >&5
12744      $AR cru libconftest.a conftest.o 2>&5
12745      echo "$RANLIB libconftest.a" >&5
12746      $RANLIB libconftest.a 2>&5
12747      cat > conftest.c << _LT_EOF
12748int main() { return 0;}
12749_LT_EOF
12750      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12751      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12752      _lt_result=$?
12753      if test -s conftest.err && $GREP force_load conftest.err; then
12754	cat conftest.err >&5
12755      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12756	lt_cv_ld_force_load=yes
12757      else
12758	cat conftest.err >&5
12759      fi
12760        rm -f conftest.err libconftest.a conftest conftest.c
12761        rm -rf conftest.dSYM
12762
12763fi
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12765$as_echo "$lt_cv_ld_force_load" >&6; }
12766    case $host_os in
12767    rhapsody* | darwin1.[012])
12768      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12769    darwin1.*)
12770      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12771    darwin*) # darwin 5.x on
12772      # if running on 10.5 or later, the deployment target defaults
12773      # to the OS version, if on x86, and 10.4, the deployment
12774      # target defaults to 10.4. Don't you love it?
12775      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12776	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12777	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12778	10.[012]*)
12779	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12780	10.*)
12781	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12782      esac
12783    ;;
12784  esac
12785    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12786      _lt_dar_single_mod='$single_module'
12787    fi
12788    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12789      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12790    else
12791      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12792    fi
12793    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12794      _lt_dsymutil='~$DSYMUTIL $lib || :'
12795    else
12796      _lt_dsymutil=
12797    fi
12798    ;;
12799  esac
12800
12801for ac_header in dlfcn.h
12802do :
12803  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12804"
12805if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12806  cat >>confdefs.h <<_ACEOF
12807#define HAVE_DLFCN_H 1
12808_ACEOF
12809
12810fi
12811
12812done
12813
12814
12815
12816
12817
12818# Set options
12819
12820
12821
12822        enable_dlopen=no
12823
12824
12825  enable_win32_dll=no
12826
12827
12828            # Check whether --enable-shared was given.
12829if test "${enable_shared+set}" = set; then :
12830  enableval=$enable_shared; p=${PACKAGE-default}
12831    case $enableval in
12832    yes) enable_shared=yes ;;
12833    no) enable_shared=no ;;
12834    *)
12835      enable_shared=no
12836      # Look at the argument we got.  We use all the common list separators.
12837      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12838      for pkg in $enableval; do
12839	IFS="$lt_save_ifs"
12840	if test "X$pkg" = "X$p"; then
12841	  enable_shared=yes
12842	fi
12843      done
12844      IFS="$lt_save_ifs"
12845      ;;
12846    esac
12847else
12848  enable_shared=yes
12849fi
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861# Check whether --with-pic was given.
12862if test "${with_pic+set}" = set; then :
12863  withval=$with_pic; lt_p=${PACKAGE-default}
12864    case $withval in
12865    yes|no) pic_mode=$withval ;;
12866    *)
12867      pic_mode=default
12868      # Look at the argument we got.  We use all the common list separators.
12869      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12870      for lt_pkg in $withval; do
12871	IFS="$lt_save_ifs"
12872	if test "X$lt_pkg" = "X$lt_p"; then
12873	  pic_mode=yes
12874	fi
12875      done
12876      IFS="$lt_save_ifs"
12877      ;;
12878    esac
12879else
12880  pic_mode=default
12881fi
12882
12883
12884test -z "$pic_mode" && pic_mode=default
12885
12886
12887
12888
12889
12890
12891
12892  # Check whether --enable-fast-install was given.
12893if test "${enable_fast_install+set}" = set; then :
12894  enableval=$enable_fast_install; p=${PACKAGE-default}
12895    case $enableval in
12896    yes) enable_fast_install=yes ;;
12897    no) enable_fast_install=no ;;
12898    *)
12899      enable_fast_install=no
12900      # Look at the argument we got.  We use all the common list separators.
12901      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12902      for pkg in $enableval; do
12903	IFS="$lt_save_ifs"
12904	if test "X$pkg" = "X$p"; then
12905	  enable_fast_install=yes
12906	fi
12907      done
12908      IFS="$lt_save_ifs"
12909      ;;
12910    esac
12911else
12912  enable_fast_install=yes
12913fi
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925# This can be used to rebuild libtool when needed
12926LIBTOOL_DEPS="$ltmain"
12927
12928# Always use our own libtool.
12929LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960test -z "$LN_S" && LN_S="ln -s"
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975if test -n "${ZSH_VERSION+set}" ; then
12976   setopt NO_GLOB_SUBST
12977fi
12978
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12980$as_echo_n "checking for objdir... " >&6; }
12981if ${lt_cv_objdir+:} false; then :
12982  $as_echo_n "(cached) " >&6
12983else
12984  rm -f .libs 2>/dev/null
12985mkdir .libs 2>/dev/null
12986if test -d .libs; then
12987  lt_cv_objdir=.libs
12988else
12989  # MS-DOS does not allow filenames that begin with a dot.
12990  lt_cv_objdir=_libs
12991fi
12992rmdir .libs 2>/dev/null
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12995$as_echo "$lt_cv_objdir" >&6; }
12996objdir=$lt_cv_objdir
12997
12998
12999
13000
13001
13002cat >>confdefs.h <<_ACEOF
13003#define LT_OBJDIR "$lt_cv_objdir/"
13004_ACEOF
13005
13006
13007
13008
13009case $host_os in
13010aix3*)
13011  # AIX sometimes has problems with the GCC collect2 program.  For some
13012  # reason, if we set the COLLECT_NAMES environment variable, the problems
13013  # vanish in a puff of smoke.
13014  if test "X${COLLECT_NAMES+set}" != Xset; then
13015    COLLECT_NAMES=
13016    export COLLECT_NAMES
13017  fi
13018  ;;
13019esac
13020
13021# Global variables:
13022ofile=libtool
13023can_build_shared=yes
13024
13025# All known linkers require a `.a' archive for static linking (except MSVC,
13026# which needs '.lib').
13027libext=a
13028
13029with_gnu_ld="$lt_cv_prog_gnu_ld"
13030
13031old_CC="$CC"
13032old_CFLAGS="$CFLAGS"
13033
13034# Set sane defaults for various variables
13035test -z "$CC" && CC=cc
13036test -z "$LTCC" && LTCC=$CC
13037test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13038test -z "$LD" && LD=ld
13039test -z "$ac_objext" && ac_objext=o
13040
13041for cc_temp in $compiler""; do
13042  case $cc_temp in
13043    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13044    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13045    \-*) ;;
13046    *) break;;
13047  esac
13048done
13049cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13050
13051
13052# Only perform the check for file, if the check method requires it
13053test -z "$MAGIC_CMD" && MAGIC_CMD=file
13054case $deplibs_check_method in
13055file_magic*)
13056  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13057    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13058$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13059if ${lt_cv_path_MAGIC_CMD+:} false; then :
13060  $as_echo_n "(cached) " >&6
13061else
13062  case $MAGIC_CMD in
13063[\\/*] |  ?:[\\/]*)
13064  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13065  ;;
13066*)
13067  lt_save_MAGIC_CMD="$MAGIC_CMD"
13068  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13069  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13070  for ac_dir in $ac_dummy; do
13071    IFS="$lt_save_ifs"
13072    test -z "$ac_dir" && ac_dir=.
13073    if test -f $ac_dir/${ac_tool_prefix}file; then
13074      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13075      if test -n "$file_magic_test_file"; then
13076	case $deplibs_check_method in
13077	"file_magic "*)
13078	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13079	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13080	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13081	    $EGREP "$file_magic_regex" > /dev/null; then
13082	    :
13083	  else
13084	    cat <<_LT_EOF 1>&2
13085
13086*** Warning: the command libtool uses to detect shared libraries,
13087*** $file_magic_cmd, produces output that libtool cannot recognize.
13088*** The result is that libtool may fail to recognize shared libraries
13089*** as such.  This will affect the creation of libtool libraries that
13090*** depend on shared libraries, but programs linked with such libtool
13091*** libraries will work regardless of this problem.  Nevertheless, you
13092*** may want to report the problem to your system manager and/or to
13093*** bug-libtool@gnu.org
13094
13095_LT_EOF
13096	  fi ;;
13097	esac
13098      fi
13099      break
13100    fi
13101  done
13102  IFS="$lt_save_ifs"
13103  MAGIC_CMD="$lt_save_MAGIC_CMD"
13104  ;;
13105esac
13106fi
13107
13108MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13109if test -n "$MAGIC_CMD"; then
13110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13111$as_echo "$MAGIC_CMD" >&6; }
13112else
13113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114$as_echo "no" >&6; }
13115fi
13116
13117
13118
13119
13120
13121if test -z "$lt_cv_path_MAGIC_CMD"; then
13122  if test -n "$ac_tool_prefix"; then
13123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13124$as_echo_n "checking for file... " >&6; }
13125if ${lt_cv_path_MAGIC_CMD+:} false; then :
13126  $as_echo_n "(cached) " >&6
13127else
13128  case $MAGIC_CMD in
13129[\\/*] |  ?:[\\/]*)
13130  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13131  ;;
13132*)
13133  lt_save_MAGIC_CMD="$MAGIC_CMD"
13134  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13135  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13136  for ac_dir in $ac_dummy; do
13137    IFS="$lt_save_ifs"
13138    test -z "$ac_dir" && ac_dir=.
13139    if test -f $ac_dir/file; then
13140      lt_cv_path_MAGIC_CMD="$ac_dir/file"
13141      if test -n "$file_magic_test_file"; then
13142	case $deplibs_check_method in
13143	"file_magic "*)
13144	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13145	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13146	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13147	    $EGREP "$file_magic_regex" > /dev/null; then
13148	    :
13149	  else
13150	    cat <<_LT_EOF 1>&2
13151
13152*** Warning: the command libtool uses to detect shared libraries,
13153*** $file_magic_cmd, produces output that libtool cannot recognize.
13154*** The result is that libtool may fail to recognize shared libraries
13155*** as such.  This will affect the creation of libtool libraries that
13156*** depend on shared libraries, but programs linked with such libtool
13157*** libraries will work regardless of this problem.  Nevertheless, you
13158*** may want to report the problem to your system manager and/or to
13159*** bug-libtool@gnu.org
13160
13161_LT_EOF
13162	  fi ;;
13163	esac
13164      fi
13165      break
13166    fi
13167  done
13168  IFS="$lt_save_ifs"
13169  MAGIC_CMD="$lt_save_MAGIC_CMD"
13170  ;;
13171esac
13172fi
13173
13174MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13175if test -n "$MAGIC_CMD"; then
13176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13177$as_echo "$MAGIC_CMD" >&6; }
13178else
13179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180$as_echo "no" >&6; }
13181fi
13182
13183
13184  else
13185    MAGIC_CMD=:
13186  fi
13187fi
13188
13189  fi
13190  ;;
13191esac
13192
13193# Use C for the default configuration in the libtool script
13194
13195lt_save_CC="$CC"
13196ac_ext=c
13197ac_cpp='$CPP $CPPFLAGS'
13198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200ac_compiler_gnu=$ac_cv_c_compiler_gnu
13201
13202
13203# Source file extension for C test sources.
13204ac_ext=c
13205
13206# Object file extension for compiled C test sources.
13207objext=o
13208objext=$objext
13209
13210# Code to be used in simple compile tests
13211lt_simple_compile_test_code="int some_variable = 0;"
13212
13213# Code to be used in simple link tests
13214lt_simple_link_test_code='int main(){return(0);}'
13215
13216
13217
13218
13219
13220
13221
13222# If no C compiler was specified, use CC.
13223LTCC=${LTCC-"$CC"}
13224
13225# If no C compiler flags were specified, use CFLAGS.
13226LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13227
13228# Allow CC to be a program name with arguments.
13229compiler=$CC
13230
13231# Save the default compiler, since it gets overwritten when the other
13232# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13233compiler_DEFAULT=$CC
13234
13235# save warnings/boilerplate of simple test code
13236ac_outfile=conftest.$ac_objext
13237echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13238eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13239_lt_compiler_boilerplate=`cat conftest.err`
13240$RM conftest*
13241
13242ac_outfile=conftest.$ac_objext
13243echo "$lt_simple_link_test_code" >conftest.$ac_ext
13244eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13245_lt_linker_boilerplate=`cat conftest.err`
13246$RM -r conftest*
13247
13248
13249if test -n "$compiler"; then
13250
13251lt_prog_compiler_no_builtin_flag=
13252
13253if test "$GCC" = yes; then
13254  case $cc_basename in
13255  nvcc*)
13256    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13257  *)
13258    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13259  esac
13260
13261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13262$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13263if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13264  $as_echo_n "(cached) " >&6
13265else
13266  lt_cv_prog_compiler_rtti_exceptions=no
13267   ac_outfile=conftest.$ac_objext
13268   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13269   lt_compiler_flag="-fno-rtti -fno-exceptions"
13270   # Insert the option either (1) after the last *FLAGS variable, or
13271   # (2) before a word containing "conftest.", or (3) at the end.
13272   # Note that $ac_compile itself does not contain backslashes and begins
13273   # with a dollar sign (not a hyphen), so the echo should work correctly.
13274   # The option is referenced via a variable to avoid confusing sed.
13275   lt_compile=`echo "$ac_compile" | $SED \
13276   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13277   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13278   -e 's:$: $lt_compiler_flag:'`
13279   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13280   (eval "$lt_compile" 2>conftest.err)
13281   ac_status=$?
13282   cat conftest.err >&5
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   if (exit $ac_status) && test -s "$ac_outfile"; then
13285     # The compiler can only warn and ignore the option if not recognized
13286     # So say no if there are warnings other than the usual output.
13287     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13288     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13289     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13290       lt_cv_prog_compiler_rtti_exceptions=yes
13291     fi
13292   fi
13293   $RM conftest*
13294
13295fi
13296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13297$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13298
13299if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13300    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13301else
13302    :
13303fi
13304
13305fi
13306
13307
13308
13309
13310
13311
13312  lt_prog_compiler_wl=
13313lt_prog_compiler_pic=
13314lt_prog_compiler_static=
13315
13316
13317  if test "$GCC" = yes; then
13318    lt_prog_compiler_wl='-Wl,'
13319    lt_prog_compiler_static='-static'
13320
13321    case $host_os in
13322      aix*)
13323      # All AIX code is PIC.
13324      if test "$host_cpu" = ia64; then
13325	# AIX 5 now supports IA64 processor
13326	lt_prog_compiler_static='-Bstatic'
13327      fi
13328      ;;
13329
13330    amigaos*)
13331      case $host_cpu in
13332      powerpc)
13333            # see comment about AmigaOS4 .so support
13334            lt_prog_compiler_pic='-fPIC'
13335        ;;
13336      m68k)
13337            # FIXME: we need at least 68020 code to build shared libraries, but
13338            # adding the `-m68020' flag to GCC prevents building anything better,
13339            # like `-m68040'.
13340            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13341        ;;
13342      esac
13343      ;;
13344
13345    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13346      # PIC is the default for these OSes.
13347      ;;
13348
13349    mingw* | cygwin* | pw32* | os2* | cegcc*)
13350      # This hack is so that the source file can tell whether it is being
13351      # built for inclusion in a dll (and should export symbols for example).
13352      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13353      # (--disable-auto-import) libraries
13354      lt_prog_compiler_pic='-DDLL_EXPORT'
13355      ;;
13356
13357    darwin* | rhapsody*)
13358      # PIC is the default on this platform
13359      # Common symbols not allowed in MH_DYLIB files
13360      lt_prog_compiler_pic='-fno-common'
13361      ;;
13362
13363    haiku*)
13364      # PIC is the default for Haiku.
13365      # The "-static" flag exists, but is broken.
13366      lt_prog_compiler_static=
13367      ;;
13368
13369    hpux*)
13370      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13371      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13372      # sets the default TLS model and affects inlining.
13373      case $host_cpu in
13374      hppa*64*)
13375	# +Z the default
13376	;;
13377      *)
13378	lt_prog_compiler_pic='-fPIC'
13379	;;
13380      esac
13381      ;;
13382
13383    interix[3-9]*)
13384      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13385      # Instead, we relocate shared libraries at runtime.
13386      ;;
13387
13388    msdosdjgpp*)
13389      # Just because we use GCC doesn't mean we suddenly get shared libraries
13390      # on systems that don't support them.
13391      lt_prog_compiler_can_build_shared=no
13392      enable_shared=no
13393      ;;
13394
13395    *nto* | *qnx*)
13396      # QNX uses GNU C++, but need to define -shared option too, otherwise
13397      # it will coredump.
13398      lt_prog_compiler_pic='-fPIC -shared'
13399      ;;
13400
13401    sysv4*MP*)
13402      if test -d /usr/nec; then
13403	lt_prog_compiler_pic=-Kconform_pic
13404      fi
13405      ;;
13406
13407    *)
13408      lt_prog_compiler_pic='-fPIC'
13409      ;;
13410    esac
13411
13412    case $cc_basename in
13413    nvcc*) # Cuda Compiler Driver 2.2
13414      lt_prog_compiler_wl='-Xlinker '
13415      if test -n "$lt_prog_compiler_pic"; then
13416        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13417      fi
13418      ;;
13419    esac
13420  else
13421    # PORTME Check for flag to pass linker flags through the system compiler.
13422    case $host_os in
13423    aix*)
13424      lt_prog_compiler_wl='-Wl,'
13425      if test "$host_cpu" = ia64; then
13426	# AIX 5 now supports IA64 processor
13427	lt_prog_compiler_static='-Bstatic'
13428      else
13429	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13430      fi
13431      ;;
13432
13433    mingw* | cygwin* | pw32* | os2* | cegcc*)
13434      # This hack is so that the source file can tell whether it is being
13435      # built for inclusion in a dll (and should export symbols for example).
13436      lt_prog_compiler_pic='-DDLL_EXPORT'
13437      ;;
13438
13439    hpux9* | hpux10* | hpux11*)
13440      lt_prog_compiler_wl='-Wl,'
13441      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13442      # not for PA HP-UX.
13443      case $host_cpu in
13444      hppa*64*|ia64*)
13445	# +Z the default
13446	;;
13447      *)
13448	lt_prog_compiler_pic='+Z'
13449	;;
13450      esac
13451      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13452      lt_prog_compiler_static='${wl}-a ${wl}archive'
13453      ;;
13454
13455    irix5* | irix6* | nonstopux*)
13456      lt_prog_compiler_wl='-Wl,'
13457      # PIC (with -KPIC) is the default.
13458      lt_prog_compiler_static='-non_shared'
13459      ;;
13460
13461    linux* | k*bsd*-gnu | kopensolaris*-gnu)
13462      case $cc_basename in
13463      # old Intel for x86_64 which still supported -KPIC.
13464      ecc*)
13465	lt_prog_compiler_wl='-Wl,'
13466	lt_prog_compiler_pic='-KPIC'
13467	lt_prog_compiler_static='-static'
13468        ;;
13469      # icc used to be incompatible with GCC.
13470      # ICC 10 doesn't accept -KPIC any more.
13471      icc* | ifort*)
13472	lt_prog_compiler_wl='-Wl,'
13473	lt_prog_compiler_pic='-fPIC'
13474	lt_prog_compiler_static='-static'
13475        ;;
13476      # Lahey Fortran 8.1.
13477      lf95*)
13478	lt_prog_compiler_wl='-Wl,'
13479	lt_prog_compiler_pic='--shared'
13480	lt_prog_compiler_static='--static'
13481	;;
13482      nagfor*)
13483	# NAG Fortran compiler
13484	lt_prog_compiler_wl='-Wl,-Wl,,'
13485	lt_prog_compiler_pic='-PIC'
13486	lt_prog_compiler_static='-Bstatic'
13487	;;
13488      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13489        # Portland Group compilers (*not* the Pentium gcc compiler,
13490	# which looks to be a dead project)
13491	lt_prog_compiler_wl='-Wl,'
13492	lt_prog_compiler_pic='-fpic'
13493	lt_prog_compiler_static='-Bstatic'
13494        ;;
13495      ccc*)
13496        lt_prog_compiler_wl='-Wl,'
13497        # All Alpha code is PIC.
13498        lt_prog_compiler_static='-non_shared'
13499        ;;
13500      xl* | bgxl* | bgf* | mpixl*)
13501	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13502	lt_prog_compiler_wl='-Wl,'
13503	lt_prog_compiler_pic='-qpic'
13504	lt_prog_compiler_static='-qstaticlink'
13505	;;
13506      *)
13507	case `$CC -V 2>&1 | sed 5q` in
13508	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13509	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13510	  lt_prog_compiler_pic='-KPIC'
13511	  lt_prog_compiler_static='-Bstatic'
13512	  lt_prog_compiler_wl=''
13513	  ;;
13514	*Sun\ F* | *Sun*Fortran*)
13515	  lt_prog_compiler_pic='-KPIC'
13516	  lt_prog_compiler_static='-Bstatic'
13517	  lt_prog_compiler_wl='-Qoption ld '
13518	  ;;
13519	*Sun\ C*)
13520	  # Sun C 5.9
13521	  lt_prog_compiler_pic='-KPIC'
13522	  lt_prog_compiler_static='-Bstatic'
13523	  lt_prog_compiler_wl='-Wl,'
13524	  ;;
13525        *Intel*\ [CF]*Compiler*)
13526	  lt_prog_compiler_wl='-Wl,'
13527	  lt_prog_compiler_pic='-fPIC'
13528	  lt_prog_compiler_static='-static'
13529	  ;;
13530	*Portland\ Group*)
13531	  lt_prog_compiler_wl='-Wl,'
13532	  lt_prog_compiler_pic='-fpic'
13533	  lt_prog_compiler_static='-Bstatic'
13534	  ;;
13535	esac
13536	;;
13537      esac
13538      ;;
13539
13540    newsos6)
13541      lt_prog_compiler_pic='-KPIC'
13542      lt_prog_compiler_static='-Bstatic'
13543      ;;
13544
13545    *nto* | *qnx*)
13546      # QNX uses GNU C++, but need to define -shared option too, otherwise
13547      # it will coredump.
13548      lt_prog_compiler_pic='-fPIC -shared'
13549      ;;
13550
13551    osf3* | osf4* | osf5*)
13552      lt_prog_compiler_wl='-Wl,'
13553      # All OSF/1 code is PIC.
13554      lt_prog_compiler_static='-non_shared'
13555      ;;
13556
13557    rdos*)
13558      lt_prog_compiler_static='-non_shared'
13559      ;;
13560
13561    solaris*)
13562      lt_prog_compiler_pic='-KPIC'
13563      lt_prog_compiler_static='-Bstatic'
13564      case $cc_basename in
13565      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13566	lt_prog_compiler_wl='-Qoption ld ';;
13567      *)
13568	lt_prog_compiler_wl='-Wl,';;
13569      esac
13570      ;;
13571
13572    sunos4*)
13573      lt_prog_compiler_wl='-Qoption ld '
13574      lt_prog_compiler_pic='-PIC'
13575      lt_prog_compiler_static='-Bstatic'
13576      ;;
13577
13578    sysv4 | sysv4.2uw2* | sysv4.3*)
13579      lt_prog_compiler_wl='-Wl,'
13580      lt_prog_compiler_pic='-KPIC'
13581      lt_prog_compiler_static='-Bstatic'
13582      ;;
13583
13584    sysv4*MP*)
13585      if test -d /usr/nec ;then
13586	lt_prog_compiler_pic='-Kconform_pic'
13587	lt_prog_compiler_static='-Bstatic'
13588      fi
13589      ;;
13590
13591    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13592      lt_prog_compiler_wl='-Wl,'
13593      lt_prog_compiler_pic='-KPIC'
13594      lt_prog_compiler_static='-Bstatic'
13595      ;;
13596
13597    unicos*)
13598      lt_prog_compiler_wl='-Wl,'
13599      lt_prog_compiler_can_build_shared=no
13600      ;;
13601
13602    uts4*)
13603      lt_prog_compiler_pic='-pic'
13604      lt_prog_compiler_static='-Bstatic'
13605      ;;
13606
13607    *)
13608      lt_prog_compiler_can_build_shared=no
13609      ;;
13610    esac
13611  fi
13612
13613case $host_os in
13614  # For platforms which do not support PIC, -DPIC is meaningless:
13615  *djgpp*)
13616    lt_prog_compiler_pic=
13617    ;;
13618  *)
13619    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13620    ;;
13621esac
13622
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13624$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13625if ${lt_cv_prog_compiler_pic+:} false; then :
13626  $as_echo_n "(cached) " >&6
13627else
13628  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13629fi
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13631$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13632lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13633
13634#
13635# Check to make sure the PIC flag actually works.
13636#
13637if test -n "$lt_prog_compiler_pic"; then
13638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13639$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13640if ${lt_cv_prog_compiler_pic_works+:} false; then :
13641  $as_echo_n "(cached) " >&6
13642else
13643  lt_cv_prog_compiler_pic_works=no
13644   ac_outfile=conftest.$ac_objext
13645   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13646   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13647   # Insert the option either (1) after the last *FLAGS variable, or
13648   # (2) before a word containing "conftest.", or (3) at the end.
13649   # Note that $ac_compile itself does not contain backslashes and begins
13650   # with a dollar sign (not a hyphen), so the echo should work correctly.
13651   # The option is referenced via a variable to avoid confusing sed.
13652   lt_compile=`echo "$ac_compile" | $SED \
13653   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13654   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13655   -e 's:$: $lt_compiler_flag:'`
13656   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13657   (eval "$lt_compile" 2>conftest.err)
13658   ac_status=$?
13659   cat conftest.err >&5
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   if (exit $ac_status) && test -s "$ac_outfile"; then
13662     # The compiler can only warn and ignore the option if not recognized
13663     # So say no if there are warnings other than the usual output.
13664     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13665     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13666     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13667       lt_cv_prog_compiler_pic_works=yes
13668     fi
13669   fi
13670   $RM conftest*
13671
13672fi
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13674$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13675
13676if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13677    case $lt_prog_compiler_pic in
13678     "" | " "*) ;;
13679     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13680     esac
13681else
13682    lt_prog_compiler_pic=
13683     lt_prog_compiler_can_build_shared=no
13684fi
13685
13686fi
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698#
13699# Check to make sure the static flag actually works.
13700#
13701wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13703$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13704if ${lt_cv_prog_compiler_static_works+:} false; then :
13705  $as_echo_n "(cached) " >&6
13706else
13707  lt_cv_prog_compiler_static_works=no
13708   save_LDFLAGS="$LDFLAGS"
13709   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13710   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13711   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13712     # The linker can only warn and ignore the option if not recognized
13713     # So say no if there are warnings
13714     if test -s conftest.err; then
13715       # Append any errors to the config.log.
13716       cat conftest.err 1>&5
13717       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13718       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13719       if diff conftest.exp conftest.er2 >/dev/null; then
13720         lt_cv_prog_compiler_static_works=yes
13721       fi
13722     else
13723       lt_cv_prog_compiler_static_works=yes
13724     fi
13725   fi
13726   $RM -r conftest*
13727   LDFLAGS="$save_LDFLAGS"
13728
13729fi
13730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13731$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13732
13733if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13734    :
13735else
13736    lt_prog_compiler_static=
13737fi
13738
13739
13740
13741
13742
13743
13744
13745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13746$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13747if ${lt_cv_prog_compiler_c_o+:} false; then :
13748  $as_echo_n "(cached) " >&6
13749else
13750  lt_cv_prog_compiler_c_o=no
13751   $RM -r conftest 2>/dev/null
13752   mkdir conftest
13753   cd conftest
13754   mkdir out
13755   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13756
13757   lt_compiler_flag="-o out/conftest2.$ac_objext"
13758   # Insert the option either (1) after the last *FLAGS variable, or
13759   # (2) before a word containing "conftest.", or (3) at the end.
13760   # Note that $ac_compile itself does not contain backslashes and begins
13761   # with a dollar sign (not a hyphen), so the echo should work correctly.
13762   lt_compile=`echo "$ac_compile" | $SED \
13763   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13764   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13765   -e 's:$: $lt_compiler_flag:'`
13766   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13767   (eval "$lt_compile" 2>out/conftest.err)
13768   ac_status=$?
13769   cat out/conftest.err >&5
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13772   then
13773     # The compiler can only warn and ignore the option if not recognized
13774     # So say no if there are warnings
13775     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13776     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13777     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13778       lt_cv_prog_compiler_c_o=yes
13779     fi
13780   fi
13781   chmod u+w . 2>&5
13782   $RM conftest*
13783   # SGI C++ compiler will create directory out/ii_files/ for
13784   # template instantiation
13785   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13786   $RM out/* && rmdir out
13787   cd ..
13788   $RM -r conftest
13789   $RM conftest*
13790
13791fi
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13793$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13794
13795
13796
13797
13798
13799
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13801$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13802if ${lt_cv_prog_compiler_c_o+:} false; then :
13803  $as_echo_n "(cached) " >&6
13804else
13805  lt_cv_prog_compiler_c_o=no
13806   $RM -r conftest 2>/dev/null
13807   mkdir conftest
13808   cd conftest
13809   mkdir out
13810   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13811
13812   lt_compiler_flag="-o out/conftest2.$ac_objext"
13813   # Insert the option either (1) after the last *FLAGS variable, or
13814   # (2) before a word containing "conftest.", or (3) at the end.
13815   # Note that $ac_compile itself does not contain backslashes and begins
13816   # with a dollar sign (not a hyphen), so the echo should work correctly.
13817   lt_compile=`echo "$ac_compile" | $SED \
13818   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820   -e 's:$: $lt_compiler_flag:'`
13821   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13822   (eval "$lt_compile" 2>out/conftest.err)
13823   ac_status=$?
13824   cat out/conftest.err >&5
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13827   then
13828     # The compiler can only warn and ignore the option if not recognized
13829     # So say no if there are warnings
13830     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13831     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833       lt_cv_prog_compiler_c_o=yes
13834     fi
13835   fi
13836   chmod u+w . 2>&5
13837   $RM conftest*
13838   # SGI C++ compiler will create directory out/ii_files/ for
13839   # template instantiation
13840   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13841   $RM out/* && rmdir out
13842   cd ..
13843   $RM -r conftest
13844   $RM conftest*
13845
13846fi
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13848$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13849
13850
13851
13852
13853hard_links="nottested"
13854if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13855  # do not overwrite the value of need_locks provided by the user
13856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13857$as_echo_n "checking if we can lock with hard links... " >&6; }
13858  hard_links=yes
13859  $RM conftest*
13860  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13861  touch conftest.a
13862  ln conftest.a conftest.b 2>&5 || hard_links=no
13863  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13865$as_echo "$hard_links" >&6; }
13866  if test "$hard_links" = no; then
13867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13868$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13869    need_locks=warn
13870  fi
13871else
13872  need_locks=no
13873fi
13874
13875
13876
13877
13878
13879
13880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13881$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13882
13883  runpath_var=
13884  allow_undefined_flag=
13885  always_export_symbols=no
13886  archive_cmds=
13887  archive_expsym_cmds=
13888  compiler_needs_object=no
13889  enable_shared_with_static_runtimes=no
13890  export_dynamic_flag_spec=
13891  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13892  hardcode_automatic=no
13893  hardcode_direct=no
13894  hardcode_direct_absolute=no
13895  hardcode_libdir_flag_spec=
13896  hardcode_libdir_separator=
13897  hardcode_minus_L=no
13898  hardcode_shlibpath_var=unsupported
13899  inherit_rpath=no
13900  link_all_deplibs=unknown
13901  module_cmds=
13902  module_expsym_cmds=
13903  old_archive_from_new_cmds=
13904  old_archive_from_expsyms_cmds=
13905  thread_safe_flag_spec=
13906  whole_archive_flag_spec=
13907  # include_expsyms should be a list of space-separated symbols to be *always*
13908  # included in the symbol list
13909  include_expsyms=
13910  # exclude_expsyms can be an extended regexp of symbols to exclude
13911  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13912  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13913  # as well as any symbol that contains `d'.
13914  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13915  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13916  # platforms (ab)use it in PIC code, but their linkers get confused if
13917  # the symbol is explicitly referenced.  Since portable code cannot
13918  # rely on this symbol name, it's probably fine to never include it in
13919  # preloaded symbol tables.
13920  # Exclude shared library initialization/finalization symbols.
13921  extract_expsyms_cmds=
13922
13923  case $host_os in
13924  cygwin* | mingw* | pw32* | cegcc*)
13925    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13926    # When not using gcc, we currently assume that we are using
13927    # Microsoft Visual C++.
13928    if test "$GCC" != yes; then
13929      with_gnu_ld=no
13930    fi
13931    ;;
13932  interix*)
13933    # we just hope/assume this is gcc and not c89 (= MSVC++)
13934    with_gnu_ld=yes
13935    ;;
13936  openbsd*)
13937    with_gnu_ld=no
13938    ;;
13939  esac
13940
13941  ld_shlibs=yes
13942
13943  # On some targets, GNU ld is compatible enough with the native linker
13944  # that we're better off using the native interface for both.
13945  lt_use_gnu_ld_interface=no
13946  if test "$with_gnu_ld" = yes; then
13947    case $host_os in
13948      aix*)
13949	# The AIX port of GNU ld has always aspired to compatibility
13950	# with the native linker.  However, as the warning in the GNU ld
13951	# block says, versions before 2.19.5* couldn't really create working
13952	# shared libraries, regardless of the interface used.
13953	case `$LD -v 2>&1` in
13954	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13955	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13956	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13957	  *)
13958	    lt_use_gnu_ld_interface=yes
13959	    ;;
13960	esac
13961	;;
13962      *)
13963	lt_use_gnu_ld_interface=yes
13964	;;
13965    esac
13966  fi
13967
13968  if test "$lt_use_gnu_ld_interface" = yes; then
13969    # If archive_cmds runs LD, not CC, wlarc should be empty
13970    wlarc='${wl}'
13971
13972    # Set some defaults for GNU ld with shared library support. These
13973    # are reset later if shared libraries are not supported. Putting them
13974    # here allows them to be overridden if necessary.
13975    runpath_var=LD_RUN_PATH
13976    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13977    export_dynamic_flag_spec='${wl}--export-dynamic'
13978    # ancient GNU ld didn't support --whole-archive et. al.
13979    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13980      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13981    else
13982      whole_archive_flag_spec=
13983    fi
13984    supports_anon_versioning=no
13985    case `$LD -v 2>&1` in
13986      *GNU\ gold*) supports_anon_versioning=yes ;;
13987      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13988      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13989      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13990      *\ 2.11.*) ;; # other 2.11 versions
13991      *) supports_anon_versioning=yes ;;
13992    esac
13993
13994    # See if GNU ld supports shared libraries.
13995    case $host_os in
13996    aix[3-9]*)
13997      # On AIX/PPC, the GNU linker is very broken
13998      if test "$host_cpu" != ia64; then
13999	ld_shlibs=no
14000	cat <<_LT_EOF 1>&2
14001
14002*** Warning: the GNU linker, at least up to release 2.19, is reported
14003*** to be unable to reliably create shared libraries on AIX.
14004*** Therefore, libtool is disabling shared libraries support.  If you
14005*** really care for shared libraries, you may want to install binutils
14006*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14007*** You will then need to restart the configuration process.
14008
14009_LT_EOF
14010      fi
14011      ;;
14012
14013    amigaos*)
14014      case $host_cpu in
14015      powerpc)
14016            # see comment about AmigaOS4 .so support
14017            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14018            archive_expsym_cmds=''
14019        ;;
14020      m68k)
14021            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)'
14022            hardcode_libdir_flag_spec='-L$libdir'
14023            hardcode_minus_L=yes
14024        ;;
14025      esac
14026      ;;
14027
14028    beos*)
14029      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14030	allow_undefined_flag=unsupported
14031	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14032	# support --undefined.  This deserves some investigation.  FIXME
14033	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14034      else
14035	ld_shlibs=no
14036      fi
14037      ;;
14038
14039    cygwin* | mingw* | pw32* | cegcc*)
14040      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14041      # as there is no search path for DLLs.
14042      hardcode_libdir_flag_spec='-L$libdir'
14043      export_dynamic_flag_spec='${wl}--export-all-symbols'
14044      allow_undefined_flag=unsupported
14045      always_export_symbols=no
14046      enable_shared_with_static_runtimes=yes
14047      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'
14048      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14049
14050      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14051        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14052	# If the export-symbols file already is a .def file (1st line
14053	# is EXPORTS), use it as is; otherwise, prepend...
14054	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14055	  cp $export_symbols $output_objdir/$soname.def;
14056	else
14057	  echo EXPORTS > $output_objdir/$soname.def;
14058	  cat $export_symbols >> $output_objdir/$soname.def;
14059	fi~
14060	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14061      else
14062	ld_shlibs=no
14063      fi
14064      ;;
14065
14066    haiku*)
14067      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068      link_all_deplibs=yes
14069      ;;
14070
14071    interix[3-9]*)
14072      hardcode_direct=no
14073      hardcode_shlibpath_var=no
14074      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14075      export_dynamic_flag_spec='${wl}-E'
14076      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14077      # Instead, shared libraries are loaded at an image base (0x10000000 by
14078      # default) and relocated if they conflict, which is a slow very memory
14079      # consuming and fragmenting process.  To avoid this, we pick a random,
14080      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14081      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14082      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14083      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'
14084      ;;
14085
14086    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14087      tmp_diet=no
14088      if test "$host_os" = linux-dietlibc; then
14089	case $cc_basename in
14090	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
14091	esac
14092      fi
14093      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14094	 && test "$tmp_diet" = no
14095      then
14096	tmp_addflag=' $pic_flag'
14097	tmp_sharedflag='-shared'
14098	case $cc_basename,$host_cpu in
14099        pgcc*)				# Portland Group C compiler
14100	  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'
14101	  tmp_addflag=' $pic_flag'
14102	  ;;
14103	pgf77* | pgf90* | pgf95* | pgfortran*)
14104					# Portland Group f77 and f90 compilers
14105	  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'
14106	  tmp_addflag=' $pic_flag -Mnomain' ;;
14107	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
14108	  tmp_addflag=' -i_dynamic' ;;
14109	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14110	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14111	ifc* | ifort*)			# Intel Fortran compiler
14112	  tmp_addflag=' -nofor_main' ;;
14113	lf95*)				# Lahey Fortran 8.1
14114	  whole_archive_flag_spec=
14115	  tmp_sharedflag='--shared' ;;
14116	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14117	  tmp_sharedflag='-qmkshrobj'
14118	  tmp_addflag= ;;
14119	nvcc*)	# Cuda Compiler Driver 2.2
14120	  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'
14121	  compiler_needs_object=yes
14122	  ;;
14123	esac
14124	case `$CC -V 2>&1 | sed 5q` in
14125	*Sun\ C*)			# Sun C 5.9
14126	  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'
14127	  compiler_needs_object=yes
14128	  tmp_sharedflag='-G' ;;
14129	*Sun\ F*)			# Sun Fortran 8.3
14130	  tmp_sharedflag='-G' ;;
14131	esac
14132	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14133
14134        if test "x$supports_anon_versioning" = xyes; then
14135          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14136	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14137	    echo "local: *; };" >> $output_objdir/$libname.ver~
14138	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14139        fi
14140
14141	case $cc_basename in
14142	xlf* | bgf* | bgxlf* | mpixlf*)
14143	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14144	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14145	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14146	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14147	  if test "x$supports_anon_versioning" = xyes; then
14148	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14149	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14150	      echo "local: *; };" >> $output_objdir/$libname.ver~
14151	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14152	  fi
14153	  ;;
14154	esac
14155      else
14156        ld_shlibs=no
14157      fi
14158      ;;
14159
14160    netbsd*)
14161      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14162	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14163	wlarc=
14164      else
14165	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14166	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14167      fi
14168      ;;
14169
14170    solaris*)
14171      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14172	ld_shlibs=no
14173	cat <<_LT_EOF 1>&2
14174
14175*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14176*** create shared libraries on Solaris systems.  Therefore, libtool
14177*** is disabling shared libraries support.  We urge you to upgrade GNU
14178*** binutils to release 2.9.1 or newer.  Another option is to modify
14179*** your PATH or compiler configuration so that the native linker is
14180*** used, and then restart.
14181
14182_LT_EOF
14183      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14184	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14185	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14186      else
14187	ld_shlibs=no
14188      fi
14189      ;;
14190
14191    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14192      case `$LD -v 2>&1` in
14193        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14194	ld_shlibs=no
14195	cat <<_LT_EOF 1>&2
14196
14197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14198*** reliably create shared libraries on SCO systems.  Therefore, libtool
14199*** is disabling shared libraries support.  We urge you to upgrade GNU
14200*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14201*** your PATH or compiler configuration so that the native linker is
14202*** used, and then restart.
14203
14204_LT_EOF
14205	;;
14206	*)
14207	  # For security reasons, it is highly recommended that you always
14208	  # use absolute paths for naming shared libraries, and exclude the
14209	  # DT_RUNPATH tag from executables and libraries.  But doing so
14210	  # requires that you compile everything twice, which is a pain.
14211	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14212	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14213	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14214	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14215	  else
14216	    ld_shlibs=no
14217	  fi
14218	;;
14219      esac
14220      ;;
14221
14222    sunos4*)
14223      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14224      wlarc=
14225      hardcode_direct=yes
14226      hardcode_shlibpath_var=no
14227      ;;
14228
14229    *)
14230      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14231	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14233      else
14234	ld_shlibs=no
14235      fi
14236      ;;
14237    esac
14238
14239    if test "$ld_shlibs" = no; then
14240      runpath_var=
14241      hardcode_libdir_flag_spec=
14242      export_dynamic_flag_spec=
14243      whole_archive_flag_spec=
14244    fi
14245  else
14246    # PORTME fill in a description of your system's linker (not GNU ld)
14247    case $host_os in
14248    aix3*)
14249      allow_undefined_flag=unsupported
14250      always_export_symbols=yes
14251      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'
14252      # Note: this linker hardcodes the directories in LIBPATH if there
14253      # are no directories specified by -L.
14254      hardcode_minus_L=yes
14255      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14256	# Neither direct hardcoding nor static linking is supported with a
14257	# broken collect2.
14258	hardcode_direct=unsupported
14259      fi
14260      ;;
14261
14262    aix[4-9]*)
14263      if test "$host_cpu" = ia64; then
14264	# On IA64, the linker does run time linking by default, so we don't
14265	# have to do anything special.
14266	aix_use_runtimelinking=no
14267	exp_sym_flag='-Bexport'
14268	no_entry_flag=""
14269      else
14270	# If we're using GNU nm, then we don't want the "-C" option.
14271	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14272	# Also, AIX nm treats weak defined symbols like other global
14273	# defined symbols, whereas GNU nm marks them as "W".
14274	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14275	  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'
14276	else
14277	  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'
14278	fi
14279	aix_use_runtimelinking=no
14280
14281	# Test if we are trying to use run time linking or normal
14282	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14283	# need to do runtime linking.
14284	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14285	  for ld_flag in $LDFLAGS; do
14286	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14287	    aix_use_runtimelinking=yes
14288	    break
14289	  fi
14290	  done
14291	  ;;
14292	esac
14293
14294	exp_sym_flag='-bexport'
14295	no_entry_flag='-bnoentry'
14296      fi
14297
14298      # When large executables or shared objects are built, AIX ld can
14299      # have problems creating the table of contents.  If linking a library
14300      # or program results in "error TOC overflow" add -mminimal-toc to
14301      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14302      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14303
14304      archive_cmds=''
14305      hardcode_direct=yes
14306      hardcode_direct_absolute=yes
14307      hardcode_libdir_separator=':'
14308      link_all_deplibs=yes
14309      file_list_spec='${wl}-f,'
14310
14311      if test "$GCC" = yes; then
14312	case $host_os in aix4.[012]|aix4.[012].*)
14313	# We only want to do this on AIX 4.2 and lower, the check
14314	# below for broken collect2 doesn't work under 4.3+
14315	  collect2name=`${CC} -print-prog-name=collect2`
14316	  if test -f "$collect2name" &&
14317	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14318	  then
14319	  # We have reworked collect2
14320	  :
14321	  else
14322	  # We have old collect2
14323	  hardcode_direct=unsupported
14324	  # It fails to find uninstalled libraries when the uninstalled
14325	  # path is not listed in the libpath.  Setting hardcode_minus_L
14326	  # to unsupported forces relinking
14327	  hardcode_minus_L=yes
14328	  hardcode_libdir_flag_spec='-L$libdir'
14329	  hardcode_libdir_separator=
14330	  fi
14331	  ;;
14332	esac
14333	shared_flag='-shared'
14334	if test "$aix_use_runtimelinking" = yes; then
14335	  shared_flag="$shared_flag "'${wl}-G'
14336	fi
14337      else
14338	# not using gcc
14339	if test "$host_cpu" = ia64; then
14340	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14341	# chokes on -Wl,-G. The following line is correct:
14342	  shared_flag='-G'
14343	else
14344	  if test "$aix_use_runtimelinking" = yes; then
14345	    shared_flag='${wl}-G'
14346	  else
14347	    shared_flag='${wl}-bM:SRE'
14348	  fi
14349	fi
14350      fi
14351
14352      export_dynamic_flag_spec='${wl}-bexpall'
14353      # It seems that -bexpall does not export symbols beginning with
14354      # underscore (_), so it is better to generate a list of symbols to export.
14355      always_export_symbols=yes
14356      if test "$aix_use_runtimelinking" = yes; then
14357	# Warning - without using the other runtime loading flags (-brtl),
14358	# -berok will link without error, but may produce a broken library.
14359	allow_undefined_flag='-berok'
14360        # Determine the default libpath from the value encoded in an
14361        # empty executable.
14362        if test "${lt_cv_aix_libpath+set}" = set; then
14363  aix_libpath=$lt_cv_aix_libpath
14364else
14365  if ${lt_cv_aix_libpath_+:} false; then :
14366  $as_echo_n "(cached) " >&6
14367else
14368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369/* end confdefs.h.  */
14370
14371int
14372main ()
14373{
14374
14375  ;
14376  return 0;
14377}
14378_ACEOF
14379if ac_fn_c_try_link "$LINENO"; then :
14380
14381  lt_aix_libpath_sed='
14382      /Import File Strings/,/^$/ {
14383	  /^0/ {
14384	      s/^0  *\([^ ]*\) *$/\1/
14385	      p
14386	  }
14387      }'
14388  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14389  # Check for a 64-bit object if we didn't find anything.
14390  if test -z "$lt_cv_aix_libpath_"; then
14391    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14392  fi
14393fi
14394rm -f core conftest.err conftest.$ac_objext \
14395    conftest$ac_exeext conftest.$ac_ext
14396  if test -z "$lt_cv_aix_libpath_"; then
14397    lt_cv_aix_libpath_="/usr/lib:/lib"
14398  fi
14399
14400fi
14401
14402  aix_libpath=$lt_cv_aix_libpath_
14403fi
14404
14405        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14406        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"
14407      else
14408	if test "$host_cpu" = ia64; then
14409	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14410	  allow_undefined_flag="-z nodefs"
14411	  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"
14412	else
14413	 # Determine the default libpath from the value encoded in an
14414	 # empty executable.
14415	 if test "${lt_cv_aix_libpath+set}" = set; then
14416  aix_libpath=$lt_cv_aix_libpath
14417else
14418  if ${lt_cv_aix_libpath_+:} false; then :
14419  $as_echo_n "(cached) " >&6
14420else
14421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422/* end confdefs.h.  */
14423
14424int
14425main ()
14426{
14427
14428  ;
14429  return 0;
14430}
14431_ACEOF
14432if ac_fn_c_try_link "$LINENO"; then :
14433
14434  lt_aix_libpath_sed='
14435      /Import File Strings/,/^$/ {
14436	  /^0/ {
14437	      s/^0  *\([^ ]*\) *$/\1/
14438	      p
14439	  }
14440      }'
14441  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14442  # Check for a 64-bit object if we didn't find anything.
14443  if test -z "$lt_cv_aix_libpath_"; then
14444    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14445  fi
14446fi
14447rm -f core conftest.err conftest.$ac_objext \
14448    conftest$ac_exeext conftest.$ac_ext
14449  if test -z "$lt_cv_aix_libpath_"; then
14450    lt_cv_aix_libpath_="/usr/lib:/lib"
14451  fi
14452
14453fi
14454
14455  aix_libpath=$lt_cv_aix_libpath_
14456fi
14457
14458	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14459	  # Warning - without using the other run time loading flags,
14460	  # -berok will link without error, but may produce a broken library.
14461	  no_undefined_flag=' ${wl}-bernotok'
14462	  allow_undefined_flag=' ${wl}-berok'
14463	  if test "$with_gnu_ld" = yes; then
14464	    # We only use this code for GNU lds that support --whole-archive.
14465	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14466	  else
14467	    # Exported symbols can be pulled into shared objects from archives
14468	    whole_archive_flag_spec='$convenience'
14469	  fi
14470	  archive_cmds_need_lc=yes
14471	  # This is similar to how AIX traditionally builds its shared libraries.
14472	  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'
14473	fi
14474      fi
14475      ;;
14476
14477    amigaos*)
14478      case $host_cpu in
14479      powerpc)
14480            # see comment about AmigaOS4 .so support
14481            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14482            archive_expsym_cmds=''
14483        ;;
14484      m68k)
14485            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)'
14486            hardcode_libdir_flag_spec='-L$libdir'
14487            hardcode_minus_L=yes
14488        ;;
14489      esac
14490      ;;
14491
14492    bsdi[45]*)
14493      export_dynamic_flag_spec=-rdynamic
14494      ;;
14495
14496    cygwin* | mingw* | pw32* | cegcc*)
14497      # When not using gcc, we currently assume that we are using
14498      # Microsoft Visual C++.
14499      # hardcode_libdir_flag_spec is actually meaningless, as there is
14500      # no search path for DLLs.
14501      case $cc_basename in
14502      cl*)
14503	# Native MSVC
14504	hardcode_libdir_flag_spec=' '
14505	allow_undefined_flag=unsupported
14506	always_export_symbols=yes
14507	file_list_spec='@'
14508	# Tell ltmain to make .lib files, not .a files.
14509	libext=lib
14510	# Tell ltmain to make .dll files, not .so files.
14511	shrext_cmds=".dll"
14512	# FIXME: Setting linknames here is a bad hack.
14513	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14514	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14515	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14516	  else
14517	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14518	  fi~
14519	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14520	  linknames='
14521	# The linker will not automatically build a static lib if we build a DLL.
14522	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14523	enable_shared_with_static_runtimes=yes
14524	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14525	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14526	# Don't use ranlib
14527	old_postinstall_cmds='chmod 644 $oldlib'
14528	postlink_cmds='lt_outputfile="@OUTPUT@"~
14529	  lt_tool_outputfile="@TOOL_OUTPUT@"~
14530	  case $lt_outputfile in
14531	    *.exe|*.EXE) ;;
14532	    *)
14533	      lt_outputfile="$lt_outputfile.exe"
14534	      lt_tool_outputfile="$lt_tool_outputfile.exe"
14535	      ;;
14536	  esac~
14537	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14538	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14539	    $RM "$lt_outputfile.manifest";
14540	  fi'
14541	;;
14542      *)
14543	# Assume MSVC wrapper
14544	hardcode_libdir_flag_spec=' '
14545	allow_undefined_flag=unsupported
14546	# Tell ltmain to make .lib files, not .a files.
14547	libext=lib
14548	# Tell ltmain to make .dll files, not .so files.
14549	shrext_cmds=".dll"
14550	# FIXME: Setting linknames here is a bad hack.
14551	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14552	# The linker will automatically build a .lib file if we build a DLL.
14553	old_archive_from_new_cmds='true'
14554	# FIXME: Should let the user specify the lib program.
14555	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14556	enable_shared_with_static_runtimes=yes
14557	;;
14558      esac
14559      ;;
14560
14561    darwin* | rhapsody*)
14562
14563
14564  archive_cmds_need_lc=no
14565  hardcode_direct=no
14566  hardcode_automatic=yes
14567  hardcode_shlibpath_var=unsupported
14568  if test "$lt_cv_ld_force_load" = "yes"; then
14569    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\"`'
14570
14571  else
14572    whole_archive_flag_spec=''
14573  fi
14574  link_all_deplibs=yes
14575  allow_undefined_flag="$_lt_dar_allow_undefined"
14576  case $cc_basename in
14577     ifort*) _lt_dar_can_shared=yes ;;
14578     *) _lt_dar_can_shared=$GCC ;;
14579  esac
14580  if test "$_lt_dar_can_shared" = "yes"; then
14581    output_verbose_link_cmd=func_echo_all
14582    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14583    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14584    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}"
14585    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}"
14586
14587  else
14588  ld_shlibs=no
14589  fi
14590
14591      ;;
14592
14593    dgux*)
14594      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14595      hardcode_libdir_flag_spec='-L$libdir'
14596      hardcode_shlibpath_var=no
14597      ;;
14598
14599    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14600    # support.  Future versions do this automatically, but an explicit c++rt0.o
14601    # does not break anything, and helps significantly (at the cost of a little
14602    # extra space).
14603    freebsd2.2*)
14604      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14605      hardcode_libdir_flag_spec='-R$libdir'
14606      hardcode_direct=yes
14607      hardcode_shlibpath_var=no
14608      ;;
14609
14610    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14611    freebsd2.*)
14612      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14613      hardcode_direct=yes
14614      hardcode_minus_L=yes
14615      hardcode_shlibpath_var=no
14616      ;;
14617
14618    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14619    freebsd* | dragonfly*)
14620      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14621      hardcode_libdir_flag_spec='-R$libdir'
14622      hardcode_direct=yes
14623      hardcode_shlibpath_var=no
14624      ;;
14625
14626    hpux9*)
14627      if test "$GCC" = yes; then
14628	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'
14629      else
14630	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'
14631      fi
14632      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14633      hardcode_libdir_separator=:
14634      hardcode_direct=yes
14635
14636      # hardcode_minus_L: Not really in the search PATH,
14637      # but as the default location of the library.
14638      hardcode_minus_L=yes
14639      export_dynamic_flag_spec='${wl}-E'
14640      ;;
14641
14642    hpux10*)
14643      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14644	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14645      else
14646	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14647      fi
14648      if test "$with_gnu_ld" = no; then
14649	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14650	hardcode_libdir_separator=:
14651	hardcode_direct=yes
14652	hardcode_direct_absolute=yes
14653	export_dynamic_flag_spec='${wl}-E'
14654	# hardcode_minus_L: Not really in the search PATH,
14655	# but as the default location of the library.
14656	hardcode_minus_L=yes
14657      fi
14658      ;;
14659
14660    hpux11*)
14661      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14662	case $host_cpu in
14663	hppa*64*)
14664	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14665	  ;;
14666	ia64*)
14667	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14668	  ;;
14669	*)
14670	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14671	  ;;
14672	esac
14673      else
14674	case $host_cpu in
14675	hppa*64*)
14676	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14677	  ;;
14678	ia64*)
14679	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14680	  ;;
14681	*)
14682
14683	  # Older versions of the 11.00 compiler do not understand -b yet
14684	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14685	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14686$as_echo_n "checking if $CC understands -b... " >&6; }
14687if ${lt_cv_prog_compiler__b+:} false; then :
14688  $as_echo_n "(cached) " >&6
14689else
14690  lt_cv_prog_compiler__b=no
14691   save_LDFLAGS="$LDFLAGS"
14692   LDFLAGS="$LDFLAGS -b"
14693   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14694   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14695     # The linker can only warn and ignore the option if not recognized
14696     # So say no if there are warnings
14697     if test -s conftest.err; then
14698       # Append any errors to the config.log.
14699       cat conftest.err 1>&5
14700       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14701       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14702       if diff conftest.exp conftest.er2 >/dev/null; then
14703         lt_cv_prog_compiler__b=yes
14704       fi
14705     else
14706       lt_cv_prog_compiler__b=yes
14707     fi
14708   fi
14709   $RM -r conftest*
14710   LDFLAGS="$save_LDFLAGS"
14711
14712fi
14713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14714$as_echo "$lt_cv_prog_compiler__b" >&6; }
14715
14716if test x"$lt_cv_prog_compiler__b" = xyes; then
14717    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14718else
14719    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14720fi
14721
14722	  ;;
14723	esac
14724      fi
14725      if test "$with_gnu_ld" = no; then
14726	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14727	hardcode_libdir_separator=:
14728
14729	case $host_cpu in
14730	hppa*64*|ia64*)
14731	  hardcode_direct=no
14732	  hardcode_shlibpath_var=no
14733	  ;;
14734	*)
14735	  hardcode_direct=yes
14736	  hardcode_direct_absolute=yes
14737	  export_dynamic_flag_spec='${wl}-E'
14738
14739	  # hardcode_minus_L: Not really in the search PATH,
14740	  # but as the default location of the library.
14741	  hardcode_minus_L=yes
14742	  ;;
14743	esac
14744      fi
14745      ;;
14746
14747    irix5* | irix6* | nonstopux*)
14748      if test "$GCC" = yes; then
14749	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'
14750	# Try to use the -exported_symbol ld option, if it does not
14751	# work, assume that -exports_file does not work either and
14752	# implicitly export all symbols.
14753	# This should be the same for all languages, so no per-tag cache variable.
14754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14755$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14756if ${lt_cv_irix_exported_symbol+:} false; then :
14757  $as_echo_n "(cached) " >&6
14758else
14759  save_LDFLAGS="$LDFLAGS"
14760	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14761	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762/* end confdefs.h.  */
14763int foo (void) { return 0; }
14764_ACEOF
14765if ac_fn_c_try_link "$LINENO"; then :
14766  lt_cv_irix_exported_symbol=yes
14767else
14768  lt_cv_irix_exported_symbol=no
14769fi
14770rm -f core conftest.err conftest.$ac_objext \
14771    conftest$ac_exeext conftest.$ac_ext
14772           LDFLAGS="$save_LDFLAGS"
14773fi
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14775$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14776	if test "$lt_cv_irix_exported_symbol" = yes; then
14777          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'
14778	fi
14779      else
14780	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'
14781	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'
14782      fi
14783      archive_cmds_need_lc='no'
14784      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14785      hardcode_libdir_separator=:
14786      inherit_rpath=yes
14787      link_all_deplibs=yes
14788      ;;
14789
14790    netbsd*)
14791      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14792	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14793      else
14794	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14795      fi
14796      hardcode_libdir_flag_spec='-R$libdir'
14797      hardcode_direct=yes
14798      hardcode_shlibpath_var=no
14799      ;;
14800
14801    newsos6)
14802      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803      hardcode_direct=yes
14804      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14805      hardcode_libdir_separator=:
14806      hardcode_shlibpath_var=no
14807      ;;
14808
14809    *nto* | *qnx*)
14810      ;;
14811
14812    openbsd*)
14813      if test -f /usr/libexec/ld.so; then
14814	hardcode_direct=yes
14815	hardcode_shlibpath_var=no
14816	hardcode_direct_absolute=yes
14817	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14818	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14819	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14820	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14821	  export_dynamic_flag_spec='${wl}-E'
14822	else
14823	  case $host_os in
14824	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14825	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14826	     hardcode_libdir_flag_spec='-R$libdir'
14827	     ;;
14828	   *)
14829	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14830	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14831	     ;;
14832	  esac
14833	fi
14834      else
14835	ld_shlibs=no
14836      fi
14837      ;;
14838
14839    os2*)
14840      hardcode_libdir_flag_spec='-L$libdir'
14841      hardcode_minus_L=yes
14842      allow_undefined_flag=unsupported
14843      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'
14844      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14845      ;;
14846
14847    osf3*)
14848      if test "$GCC" = yes; then
14849	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14850	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'
14851      else
14852	allow_undefined_flag=' -expect_unresolved \*'
14853	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'
14854      fi
14855      archive_cmds_need_lc='no'
14856      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14857      hardcode_libdir_separator=:
14858      ;;
14859
14860    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14861      if test "$GCC" = yes; then
14862	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14863	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'
14864	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14865      else
14866	allow_undefined_flag=' -expect_unresolved \*'
14867	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'
14868	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~
14869	$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'
14870
14871	# Both c and cxx compiler support -rpath directly
14872	hardcode_libdir_flag_spec='-rpath $libdir'
14873      fi
14874      archive_cmds_need_lc='no'
14875      hardcode_libdir_separator=:
14876      ;;
14877
14878    solaris*)
14879      no_undefined_flag=' -z defs'
14880      if test "$GCC" = yes; then
14881	wlarc='${wl}'
14882	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14883	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14884	  $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'
14885      else
14886	case `$CC -V 2>&1` in
14887	*"Compilers 5.0"*)
14888	  wlarc=''
14889	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14890	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14891	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14892	  ;;
14893	*)
14894	  wlarc='${wl}'
14895	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14896	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14897	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14898	  ;;
14899	esac
14900      fi
14901      hardcode_libdir_flag_spec='-R$libdir'
14902      hardcode_shlibpath_var=no
14903      case $host_os in
14904      solaris2.[0-5] | solaris2.[0-5].*) ;;
14905      *)
14906	# The compiler driver will combine and reorder linker options,
14907	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14908	# but is careful enough not to reorder.
14909	# Supported since Solaris 2.6 (maybe 2.5.1?)
14910	if test "$GCC" = yes; then
14911	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14912	else
14913	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14914	fi
14915	;;
14916      esac
14917      link_all_deplibs=yes
14918      ;;
14919
14920    sunos4*)
14921      if test "x$host_vendor" = xsequent; then
14922	# Use $CC to link under sequent, because it throws in some extra .o
14923	# files that make .init and .fini sections work.
14924	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14925      else
14926	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14927      fi
14928      hardcode_libdir_flag_spec='-L$libdir'
14929      hardcode_direct=yes
14930      hardcode_minus_L=yes
14931      hardcode_shlibpath_var=no
14932      ;;
14933
14934    sysv4)
14935      case $host_vendor in
14936	sni)
14937	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14938	  hardcode_direct=yes # is this really true???
14939	;;
14940	siemens)
14941	  ## LD is ld it makes a PLAMLIB
14942	  ## CC just makes a GrossModule.
14943	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14944	  reload_cmds='$CC -r -o $output$reload_objs'
14945	  hardcode_direct=no
14946        ;;
14947	motorola)
14948	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14949	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14950	;;
14951      esac
14952      runpath_var='LD_RUN_PATH'
14953      hardcode_shlibpath_var=no
14954      ;;
14955
14956    sysv4.3*)
14957      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14958      hardcode_shlibpath_var=no
14959      export_dynamic_flag_spec='-Bexport'
14960      ;;
14961
14962    sysv4*MP*)
14963      if test -d /usr/nec; then
14964	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14965	hardcode_shlibpath_var=no
14966	runpath_var=LD_RUN_PATH
14967	hardcode_runpath_var=yes
14968	ld_shlibs=yes
14969      fi
14970      ;;
14971
14972    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14973      no_undefined_flag='${wl}-z,text'
14974      archive_cmds_need_lc=no
14975      hardcode_shlibpath_var=no
14976      runpath_var='LD_RUN_PATH'
14977
14978      if test "$GCC" = yes; then
14979	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14980	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981      else
14982	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984      fi
14985      ;;
14986
14987    sysv5* | sco3.2v5* | sco5v6*)
14988      # Note: We can NOT use -z defs as we might desire, because we do not
14989      # link with -lc, and that would cause any symbols used from libc to
14990      # always be unresolved, which means just about no library would
14991      # ever link correctly.  If we're not using GNU ld we use -z text
14992      # though, which does catch some bad symbols but isn't as heavy-handed
14993      # as -z defs.
14994      no_undefined_flag='${wl}-z,text'
14995      allow_undefined_flag='${wl}-z,nodefs'
14996      archive_cmds_need_lc=no
14997      hardcode_shlibpath_var=no
14998      hardcode_libdir_flag_spec='${wl}-R,$libdir'
14999      hardcode_libdir_separator=':'
15000      link_all_deplibs=yes
15001      export_dynamic_flag_spec='${wl}-Bexport'
15002      runpath_var='LD_RUN_PATH'
15003
15004      if test "$GCC" = yes; then
15005	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007      else
15008	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15009	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15010      fi
15011      ;;
15012
15013    uts4*)
15014      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015      hardcode_libdir_flag_spec='-L$libdir'
15016      hardcode_shlibpath_var=no
15017      ;;
15018
15019    *)
15020      ld_shlibs=no
15021      ;;
15022    esac
15023
15024    if test x$host_vendor = xsni; then
15025      case $host in
15026      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15027	export_dynamic_flag_spec='${wl}-Blargedynsym'
15028	;;
15029      esac
15030    fi
15031  fi
15032
15033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15034$as_echo "$ld_shlibs" >&6; }
15035test "$ld_shlibs" = no && can_build_shared=no
15036
15037with_gnu_ld=$with_gnu_ld
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053#
15054# Do we need to explicitly link libc?
15055#
15056case "x$archive_cmds_need_lc" in
15057x|xyes)
15058  # Assume -lc should be added
15059  archive_cmds_need_lc=yes
15060
15061  if test "$enable_shared" = yes && test "$GCC" = yes; then
15062    case $archive_cmds in
15063    *'~'*)
15064      # FIXME: we may have to deal with multi-command sequences.
15065      ;;
15066    '$CC '*)
15067      # Test whether the compiler implicitly links with -lc since on some
15068      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15069      # to ld, don't add -lc before -lgcc.
15070      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15071$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15072if ${lt_cv_archive_cmds_need_lc+:} false; then :
15073  $as_echo_n "(cached) " >&6
15074else
15075  $RM conftest*
15076	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15077
15078	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15079  (eval $ac_compile) 2>&5
15080  ac_status=$?
15081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15082  test $ac_status = 0; } 2>conftest.err; then
15083	  soname=conftest
15084	  lib=conftest
15085	  libobjs=conftest.$ac_objext
15086	  deplibs=
15087	  wl=$lt_prog_compiler_wl
15088	  pic_flag=$lt_prog_compiler_pic
15089	  compiler_flags=-v
15090	  linker_flags=-v
15091	  verstring=
15092	  output_objdir=.
15093	  libname=conftest
15094	  lt_save_allow_undefined_flag=$allow_undefined_flag
15095	  allow_undefined_flag=
15096	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15097  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15098  ac_status=$?
15099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100  test $ac_status = 0; }
15101	  then
15102	    lt_cv_archive_cmds_need_lc=no
15103	  else
15104	    lt_cv_archive_cmds_need_lc=yes
15105	  fi
15106	  allow_undefined_flag=$lt_save_allow_undefined_flag
15107	else
15108	  cat conftest.err 1>&5
15109	fi
15110	$RM conftest*
15111
15112fi
15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15114$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15115      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15116      ;;
15117    esac
15118  fi
15119  ;;
15120esac
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15274$as_echo_n "checking dynamic linker characteristics... " >&6; }
15275
15276if test "$GCC" = yes; then
15277  case $host_os in
15278    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15279    *) lt_awk_arg="/^libraries:/" ;;
15280  esac
15281  case $host_os in
15282    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15283    *) lt_sed_strip_eq="s,=/,/,g" ;;
15284  esac
15285  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15286  case $lt_search_path_spec in
15287  *\;*)
15288    # if the path contains ";" then we assume it to be the separator
15289    # otherwise default to the standard path separator (i.e. ":") - it is
15290    # assumed that no part of a normal pathname contains ";" but that should
15291    # okay in the real world where ";" in dirpaths is itself problematic.
15292    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15293    ;;
15294  *)
15295    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15296    ;;
15297  esac
15298  # Ok, now we have the path, separated by spaces, we can step through it
15299  # and add multilib dir if necessary.
15300  lt_tmp_lt_search_path_spec=
15301  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15302  for lt_sys_path in $lt_search_path_spec; do
15303    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15304      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15305    else
15306      test -d "$lt_sys_path" && \
15307	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15308    fi
15309  done
15310  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15311BEGIN {RS=" "; FS="/|\n";} {
15312  lt_foo="";
15313  lt_count=0;
15314  for (lt_i = NF; lt_i > 0; lt_i--) {
15315    if ($lt_i != "" && $lt_i != ".") {
15316      if ($lt_i == "..") {
15317        lt_count++;
15318      } else {
15319        if (lt_count == 0) {
15320          lt_foo="/" $lt_i lt_foo;
15321        } else {
15322          lt_count--;
15323        }
15324      }
15325    }
15326  }
15327  if (lt_foo != "") { lt_freq[lt_foo]++; }
15328  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15329}'`
15330  # AWK program above erroneously prepends '/' to C:/dos/paths
15331  # for these hosts.
15332  case $host_os in
15333    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15334      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15335  esac
15336  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15337else
15338  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15339fi
15340library_names_spec=
15341libname_spec='lib$name'
15342soname_spec=
15343shrext_cmds=".so"
15344postinstall_cmds=
15345postuninstall_cmds=
15346finish_cmds=
15347finish_eval=
15348shlibpath_var=
15349shlibpath_overrides_runpath=unknown
15350version_type=none
15351dynamic_linker="$host_os ld.so"
15352sys_lib_dlsearch_path_spec="/lib /usr/lib"
15353need_lib_prefix=unknown
15354hardcode_into_libs=no
15355
15356# when you set need_version to no, make sure it does not cause -set_version
15357# flags to be left without arguments
15358need_version=unknown
15359
15360case $host_os in
15361aix3*)
15362  version_type=linux # correct to gnu/linux during the next big refactor
15363  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15364  shlibpath_var=LIBPATH
15365
15366  # AIX 3 has no versioning support, so we append a major version to the name.
15367  soname_spec='${libname}${release}${shared_ext}$major'
15368  ;;
15369
15370aix[4-9]*)
15371  version_type=linux # correct to gnu/linux during the next big refactor
15372  need_lib_prefix=no
15373  need_version=no
15374  hardcode_into_libs=yes
15375  if test "$host_cpu" = ia64; then
15376    # AIX 5 supports IA64
15377    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15378    shlibpath_var=LD_LIBRARY_PATH
15379  else
15380    # With GCC up to 2.95.x, collect2 would create an import file
15381    # for dependence libraries.  The import file would start with
15382    # the line `#! .'.  This would cause the generated library to
15383    # depend on `.', always an invalid library.  This was fixed in
15384    # development snapshots of GCC prior to 3.0.
15385    case $host_os in
15386      aix4 | aix4.[01] | aix4.[01].*)
15387      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15388	   echo ' yes '
15389	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15390	:
15391      else
15392	can_build_shared=no
15393      fi
15394      ;;
15395    esac
15396    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15397    # soname into executable. Probably we can add versioning support to
15398    # collect2, so additional links can be useful in future.
15399    if test "$aix_use_runtimelinking" = yes; then
15400      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15401      # instead of lib<name>.a to let people know that these are not
15402      # typical AIX shared libraries.
15403      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404    else
15405      # We preserve .a as extension for shared libraries through AIX4.2
15406      # and later when we are not doing run time linking.
15407      library_names_spec='${libname}${release}.a $libname.a'
15408      soname_spec='${libname}${release}${shared_ext}$major'
15409    fi
15410    shlibpath_var=LIBPATH
15411  fi
15412  ;;
15413
15414amigaos*)
15415  case $host_cpu in
15416  powerpc)
15417    # Since July 2007 AmigaOS4 officially supports .so libraries.
15418    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15419    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420    ;;
15421  m68k)
15422    library_names_spec='$libname.ixlibrary $libname.a'
15423    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15424    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'
15425    ;;
15426  esac
15427  ;;
15428
15429beos*)
15430  library_names_spec='${libname}${shared_ext}'
15431  dynamic_linker="$host_os ld.so"
15432  shlibpath_var=LIBRARY_PATH
15433  ;;
15434
15435bsdi[45]*)
15436  version_type=linux # correct to gnu/linux during the next big refactor
15437  need_version=no
15438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439  soname_spec='${libname}${release}${shared_ext}$major'
15440  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15441  shlibpath_var=LD_LIBRARY_PATH
15442  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15443  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15444  # the default ld.so.conf also contains /usr/contrib/lib and
15445  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15446  # libtool to hard-code these into programs
15447  ;;
15448
15449cygwin* | mingw* | pw32* | cegcc*)
15450  version_type=windows
15451  shrext_cmds=".dll"
15452  need_version=no
15453  need_lib_prefix=no
15454
15455  case $GCC,$cc_basename in
15456  yes,*)
15457    # gcc
15458    library_names_spec='$libname.dll.a'
15459    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15460    postinstall_cmds='base_file=`basename \${file}`~
15461      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15462      dldir=$destdir/`dirname \$dlpath`~
15463      test -d \$dldir || mkdir -p \$dldir~
15464      $install_prog $dir/$dlname \$dldir/$dlname~
15465      chmod a+x \$dldir/$dlname~
15466      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15467        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15468      fi'
15469    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15470      dlpath=$dir/\$dldll~
15471       $RM \$dlpath'
15472    shlibpath_overrides_runpath=yes
15473
15474    case $host_os in
15475    cygwin*)
15476      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15477      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15478
15479      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15480      ;;
15481    mingw* | cegcc*)
15482      # MinGW DLLs use traditional 'lib' prefix
15483      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15484      ;;
15485    pw32*)
15486      # pw32 DLLs use 'pw' prefix rather than 'lib'
15487      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488      ;;
15489    esac
15490    dynamic_linker='Win32 ld.exe'
15491    ;;
15492
15493  *,cl*)
15494    # Native MSVC
15495    libname_spec='$name'
15496    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15497    library_names_spec='${libname}.dll.lib'
15498
15499    case $build_os in
15500    mingw*)
15501      sys_lib_search_path_spec=
15502      lt_save_ifs=$IFS
15503      IFS=';'
15504      for lt_path in $LIB
15505      do
15506        IFS=$lt_save_ifs
15507        # Let DOS variable expansion print the short 8.3 style file name.
15508        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15509        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15510      done
15511      IFS=$lt_save_ifs
15512      # Convert to MSYS style.
15513      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15514      ;;
15515    cygwin*)
15516      # Convert to unix form, then to dos form, then back to unix form
15517      # but this time dos style (no spaces!) so that the unix form looks
15518      # like /cygdrive/c/PROGRA~1:/cygdr...
15519      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15520      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15521      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15522      ;;
15523    *)
15524      sys_lib_search_path_spec="$LIB"
15525      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15526        # It is most probably a Windows format PATH.
15527        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15528      else
15529        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15530      fi
15531      # FIXME: find the short name or the path components, as spaces are
15532      # common. (e.g. "Program Files" -> "PROGRA~1")
15533      ;;
15534    esac
15535
15536    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15537    postinstall_cmds='base_file=`basename \${file}`~
15538      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15539      dldir=$destdir/`dirname \$dlpath`~
15540      test -d \$dldir || mkdir -p \$dldir~
15541      $install_prog $dir/$dlname \$dldir/$dlname'
15542    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15543      dlpath=$dir/\$dldll~
15544       $RM \$dlpath'
15545    shlibpath_overrides_runpath=yes
15546    dynamic_linker='Win32 link.exe'
15547    ;;
15548
15549  *)
15550    # Assume MSVC wrapper
15551    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15552    dynamic_linker='Win32 ld.exe'
15553    ;;
15554  esac
15555  # FIXME: first we should search . and the directory the executable is in
15556  shlibpath_var=PATH
15557  ;;
15558
15559darwin* | rhapsody*)
15560  dynamic_linker="$host_os dyld"
15561  version_type=darwin
15562  need_lib_prefix=no
15563  need_version=no
15564  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15565  soname_spec='${libname}${release}${major}$shared_ext'
15566  shlibpath_overrides_runpath=yes
15567  shlibpath_var=DYLD_LIBRARY_PATH
15568  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15569
15570  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15571  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15572  ;;
15573
15574dgux*)
15575  version_type=linux # correct to gnu/linux during the next big refactor
15576  need_lib_prefix=no
15577  need_version=no
15578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15579  soname_spec='${libname}${release}${shared_ext}$major'
15580  shlibpath_var=LD_LIBRARY_PATH
15581  ;;
15582
15583freebsd* | dragonfly*)
15584  # DragonFly does not have aout.  When/if they implement a new
15585  # versioning mechanism, adjust this.
15586  if test -x /usr/bin/objformat; then
15587    objformat=`/usr/bin/objformat`
15588  else
15589    case $host_os in
15590    freebsd[23].*) objformat=aout ;;
15591    *) objformat=elf ;;
15592    esac
15593  fi
15594  version_type=freebsd-$objformat
15595  case $version_type in
15596    freebsd-elf*)
15597      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15598      need_version=no
15599      need_lib_prefix=no
15600      ;;
15601    freebsd-*)
15602      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15603      need_version=yes
15604      ;;
15605  esac
15606  shlibpath_var=LD_LIBRARY_PATH
15607  case $host_os in
15608  freebsd2.*)
15609    shlibpath_overrides_runpath=yes
15610    ;;
15611  freebsd3.[01]* | freebsdelf3.[01]*)
15612    shlibpath_overrides_runpath=yes
15613    hardcode_into_libs=yes
15614    ;;
15615  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15616  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15617    shlibpath_overrides_runpath=no
15618    hardcode_into_libs=yes
15619    ;;
15620  *) # from 4.6 on, and DragonFly
15621    shlibpath_overrides_runpath=yes
15622    hardcode_into_libs=yes
15623    ;;
15624  esac
15625  ;;
15626
15627gnu*)
15628  version_type=linux # correct to gnu/linux during the next big refactor
15629  need_lib_prefix=no
15630  need_version=no
15631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15632  soname_spec='${libname}${release}${shared_ext}$major'
15633  shlibpath_var=LD_LIBRARY_PATH
15634  shlibpath_overrides_runpath=no
15635  hardcode_into_libs=yes
15636  ;;
15637
15638haiku*)
15639  version_type=linux # correct to gnu/linux during the next big refactor
15640  need_lib_prefix=no
15641  need_version=no
15642  dynamic_linker="$host_os runtime_loader"
15643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15644  soname_spec='${libname}${release}${shared_ext}$major'
15645  shlibpath_var=LIBRARY_PATH
15646  shlibpath_overrides_runpath=yes
15647  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15648  hardcode_into_libs=yes
15649  ;;
15650
15651hpux9* | hpux10* | hpux11*)
15652  # Give a soname corresponding to the major version so that dld.sl refuses to
15653  # link against other versions.
15654  version_type=sunos
15655  need_lib_prefix=no
15656  need_version=no
15657  case $host_cpu in
15658  ia64*)
15659    shrext_cmds='.so'
15660    hardcode_into_libs=yes
15661    dynamic_linker="$host_os dld.so"
15662    shlibpath_var=LD_LIBRARY_PATH
15663    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15664    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15665    soname_spec='${libname}${release}${shared_ext}$major'
15666    if test "X$HPUX_IA64_MODE" = X32; then
15667      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15668    else
15669      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15670    fi
15671    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15672    ;;
15673  hppa*64*)
15674    shrext_cmds='.sl'
15675    hardcode_into_libs=yes
15676    dynamic_linker="$host_os dld.sl"
15677    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15678    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15679    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680    soname_spec='${libname}${release}${shared_ext}$major'
15681    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15682    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15683    ;;
15684  *)
15685    shrext_cmds='.sl'
15686    dynamic_linker="$host_os dld.sl"
15687    shlibpath_var=SHLIB_PATH
15688    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15689    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690    soname_spec='${libname}${release}${shared_ext}$major'
15691    ;;
15692  esac
15693  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15694  postinstall_cmds='chmod 555 $lib'
15695  # or fails outright, so override atomically:
15696  install_override_mode=555
15697  ;;
15698
15699interix[3-9]*)
15700  version_type=linux # correct to gnu/linux during the next big refactor
15701  need_lib_prefix=no
15702  need_version=no
15703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15704  soname_spec='${libname}${release}${shared_ext}$major'
15705  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15706  shlibpath_var=LD_LIBRARY_PATH
15707  shlibpath_overrides_runpath=no
15708  hardcode_into_libs=yes
15709  ;;
15710
15711irix5* | irix6* | nonstopux*)
15712  case $host_os in
15713    nonstopux*) version_type=nonstopux ;;
15714    *)
15715	if test "$lt_cv_prog_gnu_ld" = yes; then
15716		version_type=linux # correct to gnu/linux during the next big refactor
15717	else
15718		version_type=irix
15719	fi ;;
15720  esac
15721  need_lib_prefix=no
15722  need_version=no
15723  soname_spec='${libname}${release}${shared_ext}$major'
15724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15725  case $host_os in
15726  irix5* | nonstopux*)
15727    libsuff= shlibsuff=
15728    ;;
15729  *)
15730    case $LD in # libtool.m4 will add one of these switches to LD
15731    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15732      libsuff= shlibsuff= libmagic=32-bit;;
15733    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15734      libsuff=32 shlibsuff=N32 libmagic=N32;;
15735    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15736      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15737    *) libsuff= shlibsuff= libmagic=never-match;;
15738    esac
15739    ;;
15740  esac
15741  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15742  shlibpath_overrides_runpath=no
15743  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15744  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15745  hardcode_into_libs=yes
15746  ;;
15747
15748# No shared lib support for Linux oldld, aout, or coff.
15749linux*oldld* | linux*aout* | linux*coff*)
15750  dynamic_linker=no
15751  ;;
15752
15753# This must be glibc/ELF.
15754linux* | k*bsd*-gnu | kopensolaris*-gnu)
15755  version_type=linux # correct to gnu/linux during the next big refactor
15756  need_lib_prefix=no
15757  need_version=no
15758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759  soname_spec='${libname}${release}${shared_ext}$major'
15760  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15761  shlibpath_var=LD_LIBRARY_PATH
15762  shlibpath_overrides_runpath=no
15763
15764  # Some binutils ld are patched to set DT_RUNPATH
15765  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15766  $as_echo_n "(cached) " >&6
15767else
15768  lt_cv_shlibpath_overrides_runpath=no
15769    save_LDFLAGS=$LDFLAGS
15770    save_libdir=$libdir
15771    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15772	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15773    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774/* end confdefs.h.  */
15775
15776int
15777main ()
15778{
15779
15780  ;
15781  return 0;
15782}
15783_ACEOF
15784if ac_fn_c_try_link "$LINENO"; then :
15785  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15786  lt_cv_shlibpath_overrides_runpath=yes
15787fi
15788fi
15789rm -f core conftest.err conftest.$ac_objext \
15790    conftest$ac_exeext conftest.$ac_ext
15791    LDFLAGS=$save_LDFLAGS
15792    libdir=$save_libdir
15793
15794fi
15795
15796  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15797
15798  # This implies no fast_install, which is unacceptable.
15799  # Some rework will be needed to allow for fast_install
15800  # before this can be enabled.
15801  hardcode_into_libs=yes
15802
15803  # Add ABI-specific directories to the system library path.
15804  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15805
15806  # Append ld.so.conf contents to the search path
15807  if test -f /etc/ld.so.conf; then
15808    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' ' '`
15809    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15810
15811  fi
15812
15813  # We used to test for /lib/ld.so.1 and disable shared libraries on
15814  # powerpc, because MkLinux only supported shared libraries with the
15815  # GNU dynamic linker.  Since this was broken with cross compilers,
15816  # most powerpc-linux boxes support dynamic linking these days and
15817  # people can always --disable-shared, the test was removed, and we
15818  # assume the GNU/Linux dynamic linker is in use.
15819  dynamic_linker='GNU/Linux ld.so'
15820  ;;
15821
15822netbsd*)
15823  version_type=sunos
15824  need_lib_prefix=no
15825  need_version=no
15826  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15827    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15828    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15829    dynamic_linker='NetBSD (a.out) ld.so'
15830  else
15831    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15832    soname_spec='${libname}${release}${shared_ext}$major'
15833    dynamic_linker='NetBSD ld.elf_so'
15834  fi
15835  shlibpath_var=LD_LIBRARY_PATH
15836  shlibpath_overrides_runpath=yes
15837  hardcode_into_libs=yes
15838  ;;
15839
15840newsos6)
15841  version_type=linux # correct to gnu/linux during the next big refactor
15842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843  shlibpath_var=LD_LIBRARY_PATH
15844  shlibpath_overrides_runpath=yes
15845  ;;
15846
15847*nto* | *qnx*)
15848  version_type=qnx
15849  need_lib_prefix=no
15850  need_version=no
15851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852  soname_spec='${libname}${release}${shared_ext}$major'
15853  shlibpath_var=LD_LIBRARY_PATH
15854  shlibpath_overrides_runpath=no
15855  hardcode_into_libs=yes
15856  dynamic_linker='ldqnx.so'
15857  ;;
15858
15859openbsd*)
15860  version_type=sunos
15861  sys_lib_dlsearch_path_spec="/usr/lib"
15862  need_lib_prefix=no
15863  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15864  case $host_os in
15865    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15866    *)				need_version=no  ;;
15867  esac
15868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15870  shlibpath_var=LD_LIBRARY_PATH
15871  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15872    case $host_os in
15873      openbsd2.[89] | openbsd2.[89].*)
15874	shlibpath_overrides_runpath=no
15875	;;
15876      *)
15877	shlibpath_overrides_runpath=yes
15878	;;
15879      esac
15880  else
15881    shlibpath_overrides_runpath=yes
15882  fi
15883  ;;
15884
15885os2*)
15886  libname_spec='$name'
15887  shrext_cmds=".dll"
15888  need_lib_prefix=no
15889  library_names_spec='$libname${shared_ext} $libname.a'
15890  dynamic_linker='OS/2 ld.exe'
15891  shlibpath_var=LIBPATH
15892  ;;
15893
15894osf3* | osf4* | osf5*)
15895  version_type=osf
15896  need_lib_prefix=no
15897  need_version=no
15898  soname_spec='${libname}${release}${shared_ext}$major'
15899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900  shlibpath_var=LD_LIBRARY_PATH
15901  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15902  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15903  ;;
15904
15905rdos*)
15906  dynamic_linker=no
15907  ;;
15908
15909solaris*)
15910  version_type=linux # correct to gnu/linux during the next big refactor
15911  need_lib_prefix=no
15912  need_version=no
15913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914  soname_spec='${libname}${release}${shared_ext}$major'
15915  shlibpath_var=LD_LIBRARY_PATH
15916  shlibpath_overrides_runpath=yes
15917  hardcode_into_libs=yes
15918  # ldd complains unless libraries are executable
15919  postinstall_cmds='chmod +x $lib'
15920  ;;
15921
15922sunos4*)
15923  version_type=sunos
15924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15925  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15926  shlibpath_var=LD_LIBRARY_PATH
15927  shlibpath_overrides_runpath=yes
15928  if test "$with_gnu_ld" = yes; then
15929    need_lib_prefix=no
15930  fi
15931  need_version=yes
15932  ;;
15933
15934sysv4 | sysv4.3*)
15935  version_type=linux # correct to gnu/linux during the next big refactor
15936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937  soname_spec='${libname}${release}${shared_ext}$major'
15938  shlibpath_var=LD_LIBRARY_PATH
15939  case $host_vendor in
15940    sni)
15941      shlibpath_overrides_runpath=no
15942      need_lib_prefix=no
15943      runpath_var=LD_RUN_PATH
15944      ;;
15945    siemens)
15946      need_lib_prefix=no
15947      ;;
15948    motorola)
15949      need_lib_prefix=no
15950      need_version=no
15951      shlibpath_overrides_runpath=no
15952      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15953      ;;
15954  esac
15955  ;;
15956
15957sysv4*MP*)
15958  if test -d /usr/nec ;then
15959    version_type=linux # correct to gnu/linux during the next big refactor
15960    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15961    soname_spec='$libname${shared_ext}.$major'
15962    shlibpath_var=LD_LIBRARY_PATH
15963  fi
15964  ;;
15965
15966sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15967  version_type=freebsd-elf
15968  need_lib_prefix=no
15969  need_version=no
15970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15971  soname_spec='${libname}${release}${shared_ext}$major'
15972  shlibpath_var=LD_LIBRARY_PATH
15973  shlibpath_overrides_runpath=yes
15974  hardcode_into_libs=yes
15975  if test "$with_gnu_ld" = yes; then
15976    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15977  else
15978    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15979    case $host_os in
15980      sco3.2v5*)
15981        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15982	;;
15983    esac
15984  fi
15985  sys_lib_dlsearch_path_spec='/usr/lib'
15986  ;;
15987
15988tpf*)
15989  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15990  version_type=linux # correct to gnu/linux during the next big refactor
15991  need_lib_prefix=no
15992  need_version=no
15993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994  shlibpath_var=LD_LIBRARY_PATH
15995  shlibpath_overrides_runpath=no
15996  hardcode_into_libs=yes
15997  ;;
15998
15999uts4*)
16000  version_type=linux # correct to gnu/linux during the next big refactor
16001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002  soname_spec='${libname}${release}${shared_ext}$major'
16003  shlibpath_var=LD_LIBRARY_PATH
16004  ;;
16005
16006*)
16007  dynamic_linker=no
16008  ;;
16009esac
16010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16011$as_echo "$dynamic_linker" >&6; }
16012test "$dynamic_linker" = no && can_build_shared=no
16013
16014variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16015if test "$GCC" = yes; then
16016  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16017fi
16018
16019if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16020  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16021fi
16022if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16023  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16024fi
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16118$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16119hardcode_action=
16120if test -n "$hardcode_libdir_flag_spec" ||
16121   test -n "$runpath_var" ||
16122   test "X$hardcode_automatic" = "Xyes" ; then
16123
16124  # We can hardcode non-existent directories.
16125  if test "$hardcode_direct" != no &&
16126     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16127     # have to relink, otherwise we might link with an installed library
16128     # when we should be linking with a yet-to-be-installed one
16129     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16130     test "$hardcode_minus_L" != no; then
16131    # Linking always hardcodes the temporary library directory.
16132    hardcode_action=relink
16133  else
16134    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16135    hardcode_action=immediate
16136  fi
16137else
16138  # We cannot hardcode anything, or else we can only hardcode existing
16139  # directories.
16140  hardcode_action=unsupported
16141fi
16142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16143$as_echo "$hardcode_action" >&6; }
16144
16145if test "$hardcode_action" = relink ||
16146   test "$inherit_rpath" = yes; then
16147  # Fast installation is not supported
16148  enable_fast_install=no
16149elif test "$shlibpath_overrides_runpath" = yes ||
16150     test "$enable_shared" = no; then
16151  # Fast installation is not necessary
16152  enable_fast_install=needless
16153fi
16154
16155
16156
16157
16158
16159
16160  if test "x$enable_dlopen" != xyes; then
16161  enable_dlopen=unknown
16162  enable_dlopen_self=unknown
16163  enable_dlopen_self_static=unknown
16164else
16165  lt_cv_dlopen=no
16166  lt_cv_dlopen_libs=
16167
16168  case $host_os in
16169  beos*)
16170    lt_cv_dlopen="load_add_on"
16171    lt_cv_dlopen_libs=
16172    lt_cv_dlopen_self=yes
16173    ;;
16174
16175  mingw* | pw32* | cegcc*)
16176    lt_cv_dlopen="LoadLibrary"
16177    lt_cv_dlopen_libs=
16178    ;;
16179
16180  cygwin*)
16181    lt_cv_dlopen="dlopen"
16182    lt_cv_dlopen_libs=
16183    ;;
16184
16185  darwin*)
16186  # if libdl is installed we need to link against it
16187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16188$as_echo_n "checking for dlopen in -ldl... " >&6; }
16189if ${ac_cv_lib_dl_dlopen+:} false; then :
16190  $as_echo_n "(cached) " >&6
16191else
16192  ac_check_lib_save_LIBS=$LIBS
16193LIBS="-ldl  $LIBS"
16194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195/* end confdefs.h.  */
16196
16197/* Override any GCC internal prototype to avoid an error.
16198   Use char because int might match the return type of a GCC
16199   builtin and then its argument prototype would still apply.  */
16200#ifdef __cplusplus
16201extern "C"
16202#endif
16203char dlopen ();
16204int
16205main ()
16206{
16207return dlopen ();
16208  ;
16209  return 0;
16210}
16211_ACEOF
16212if ac_fn_c_try_link "$LINENO"; then :
16213  ac_cv_lib_dl_dlopen=yes
16214else
16215  ac_cv_lib_dl_dlopen=no
16216fi
16217rm -f core conftest.err conftest.$ac_objext \
16218    conftest$ac_exeext conftest.$ac_ext
16219LIBS=$ac_check_lib_save_LIBS
16220fi
16221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16222$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16223if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16224  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16225else
16226
16227    lt_cv_dlopen="dyld"
16228    lt_cv_dlopen_libs=
16229    lt_cv_dlopen_self=yes
16230
16231fi
16232
16233    ;;
16234
16235  *)
16236    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16237if test "x$ac_cv_func_shl_load" = xyes; then :
16238  lt_cv_dlopen="shl_load"
16239else
16240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16241$as_echo_n "checking for shl_load in -ldld... " >&6; }
16242if ${ac_cv_lib_dld_shl_load+:} false; then :
16243  $as_echo_n "(cached) " >&6
16244else
16245  ac_check_lib_save_LIBS=$LIBS
16246LIBS="-ldld  $LIBS"
16247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h.  */
16249
16250/* Override any GCC internal prototype to avoid an error.
16251   Use char because int might match the return type of a GCC
16252   builtin and then its argument prototype would still apply.  */
16253#ifdef __cplusplus
16254extern "C"
16255#endif
16256char shl_load ();
16257int
16258main ()
16259{
16260return shl_load ();
16261  ;
16262  return 0;
16263}
16264_ACEOF
16265if ac_fn_c_try_link "$LINENO"; then :
16266  ac_cv_lib_dld_shl_load=yes
16267else
16268  ac_cv_lib_dld_shl_load=no
16269fi
16270rm -f core conftest.err conftest.$ac_objext \
16271    conftest$ac_exeext conftest.$ac_ext
16272LIBS=$ac_check_lib_save_LIBS
16273fi
16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16275$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16276if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16277  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16278else
16279  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16280if test "x$ac_cv_func_dlopen" = xyes; then :
16281  lt_cv_dlopen="dlopen"
16282else
16283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16284$as_echo_n "checking for dlopen in -ldl... " >&6; }
16285if ${ac_cv_lib_dl_dlopen+:} false; then :
16286  $as_echo_n "(cached) " >&6
16287else
16288  ac_check_lib_save_LIBS=$LIBS
16289LIBS="-ldl  $LIBS"
16290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291/* end confdefs.h.  */
16292
16293/* Override any GCC internal prototype to avoid an error.
16294   Use char because int might match the return type of a GCC
16295   builtin and then its argument prototype would still apply.  */
16296#ifdef __cplusplus
16297extern "C"
16298#endif
16299char dlopen ();
16300int
16301main ()
16302{
16303return dlopen ();
16304  ;
16305  return 0;
16306}
16307_ACEOF
16308if ac_fn_c_try_link "$LINENO"; then :
16309  ac_cv_lib_dl_dlopen=yes
16310else
16311  ac_cv_lib_dl_dlopen=no
16312fi
16313rm -f core conftest.err conftest.$ac_objext \
16314    conftest$ac_exeext conftest.$ac_ext
16315LIBS=$ac_check_lib_save_LIBS
16316fi
16317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16318$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16319if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16320  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16321else
16322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16323$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16324if ${ac_cv_lib_svld_dlopen+:} false; then :
16325  $as_echo_n "(cached) " >&6
16326else
16327  ac_check_lib_save_LIBS=$LIBS
16328LIBS="-lsvld  $LIBS"
16329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330/* end confdefs.h.  */
16331
16332/* Override any GCC internal prototype to avoid an error.
16333   Use char because int might match the return type of a GCC
16334   builtin and then its argument prototype would still apply.  */
16335#ifdef __cplusplus
16336extern "C"
16337#endif
16338char dlopen ();
16339int
16340main ()
16341{
16342return dlopen ();
16343  ;
16344  return 0;
16345}
16346_ACEOF
16347if ac_fn_c_try_link "$LINENO"; then :
16348  ac_cv_lib_svld_dlopen=yes
16349else
16350  ac_cv_lib_svld_dlopen=no
16351fi
16352rm -f core conftest.err conftest.$ac_objext \
16353    conftest$ac_exeext conftest.$ac_ext
16354LIBS=$ac_check_lib_save_LIBS
16355fi
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16357$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16358if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16359  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16360else
16361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16362$as_echo_n "checking for dld_link in -ldld... " >&6; }
16363if ${ac_cv_lib_dld_dld_link+:} false; then :
16364  $as_echo_n "(cached) " >&6
16365else
16366  ac_check_lib_save_LIBS=$LIBS
16367LIBS="-ldld  $LIBS"
16368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369/* end confdefs.h.  */
16370
16371/* Override any GCC internal prototype to avoid an error.
16372   Use char because int might match the return type of a GCC
16373   builtin and then its argument prototype would still apply.  */
16374#ifdef __cplusplus
16375extern "C"
16376#endif
16377char dld_link ();
16378int
16379main ()
16380{
16381return dld_link ();
16382  ;
16383  return 0;
16384}
16385_ACEOF
16386if ac_fn_c_try_link "$LINENO"; then :
16387  ac_cv_lib_dld_dld_link=yes
16388else
16389  ac_cv_lib_dld_dld_link=no
16390fi
16391rm -f core conftest.err conftest.$ac_objext \
16392    conftest$ac_exeext conftest.$ac_ext
16393LIBS=$ac_check_lib_save_LIBS
16394fi
16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16396$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16397if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16398  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16399fi
16400
16401
16402fi
16403
16404
16405fi
16406
16407
16408fi
16409
16410
16411fi
16412
16413
16414fi
16415
16416    ;;
16417  esac
16418
16419  if test "x$lt_cv_dlopen" != xno; then
16420    enable_dlopen=yes
16421  else
16422    enable_dlopen=no
16423  fi
16424
16425  case $lt_cv_dlopen in
16426  dlopen)
16427    save_CPPFLAGS="$CPPFLAGS"
16428    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16429
16430    save_LDFLAGS="$LDFLAGS"
16431    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16432
16433    save_LIBS="$LIBS"
16434    LIBS="$lt_cv_dlopen_libs $LIBS"
16435
16436    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16437$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16438if ${lt_cv_dlopen_self+:} false; then :
16439  $as_echo_n "(cached) " >&6
16440else
16441  	  if test "$cross_compiling" = yes; then :
16442  lt_cv_dlopen_self=cross
16443else
16444  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16445  lt_status=$lt_dlunknown
16446  cat > conftest.$ac_ext <<_LT_EOF
16447#line $LINENO "configure"
16448#include "confdefs.h"
16449
16450#if HAVE_DLFCN_H
16451#include <dlfcn.h>
16452#endif
16453
16454#include <stdio.h>
16455
16456#ifdef RTLD_GLOBAL
16457#  define LT_DLGLOBAL		RTLD_GLOBAL
16458#else
16459#  ifdef DL_GLOBAL
16460#    define LT_DLGLOBAL		DL_GLOBAL
16461#  else
16462#    define LT_DLGLOBAL		0
16463#  endif
16464#endif
16465
16466/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16467   find out it does not work in some platform. */
16468#ifndef LT_DLLAZY_OR_NOW
16469#  ifdef RTLD_LAZY
16470#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16471#  else
16472#    ifdef DL_LAZY
16473#      define LT_DLLAZY_OR_NOW		DL_LAZY
16474#    else
16475#      ifdef RTLD_NOW
16476#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16477#      else
16478#        ifdef DL_NOW
16479#          define LT_DLLAZY_OR_NOW	DL_NOW
16480#        else
16481#          define LT_DLLAZY_OR_NOW	0
16482#        endif
16483#      endif
16484#    endif
16485#  endif
16486#endif
16487
16488/* When -fvisbility=hidden is used, assume the code has been annotated
16489   correspondingly for the symbols needed.  */
16490#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16491int fnord () __attribute__((visibility("default")));
16492#endif
16493
16494int fnord () { return 42; }
16495int main ()
16496{
16497  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16498  int status = $lt_dlunknown;
16499
16500  if (self)
16501    {
16502      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16503      else
16504        {
16505	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16506          else puts (dlerror ());
16507	}
16508      /* dlclose (self); */
16509    }
16510  else
16511    puts (dlerror ());
16512
16513  return status;
16514}
16515_LT_EOF
16516  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16517  (eval $ac_link) 2>&5
16518  ac_status=$?
16519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16520  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16521    (./conftest; exit; ) >&5 2>/dev/null
16522    lt_status=$?
16523    case x$lt_status in
16524      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16525      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16526      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16527    esac
16528  else :
16529    # compilation failed
16530    lt_cv_dlopen_self=no
16531  fi
16532fi
16533rm -fr conftest*
16534
16535
16536fi
16537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16538$as_echo "$lt_cv_dlopen_self" >&6; }
16539
16540    if test "x$lt_cv_dlopen_self" = xyes; then
16541      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16542      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16543$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16544if ${lt_cv_dlopen_self_static+:} false; then :
16545  $as_echo_n "(cached) " >&6
16546else
16547  	  if test "$cross_compiling" = yes; then :
16548  lt_cv_dlopen_self_static=cross
16549else
16550  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16551  lt_status=$lt_dlunknown
16552  cat > conftest.$ac_ext <<_LT_EOF
16553#line $LINENO "configure"
16554#include "confdefs.h"
16555
16556#if HAVE_DLFCN_H
16557#include <dlfcn.h>
16558#endif
16559
16560#include <stdio.h>
16561
16562#ifdef RTLD_GLOBAL
16563#  define LT_DLGLOBAL		RTLD_GLOBAL
16564#else
16565#  ifdef DL_GLOBAL
16566#    define LT_DLGLOBAL		DL_GLOBAL
16567#  else
16568#    define LT_DLGLOBAL		0
16569#  endif
16570#endif
16571
16572/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16573   find out it does not work in some platform. */
16574#ifndef LT_DLLAZY_OR_NOW
16575#  ifdef RTLD_LAZY
16576#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16577#  else
16578#    ifdef DL_LAZY
16579#      define LT_DLLAZY_OR_NOW		DL_LAZY
16580#    else
16581#      ifdef RTLD_NOW
16582#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16583#      else
16584#        ifdef DL_NOW
16585#          define LT_DLLAZY_OR_NOW	DL_NOW
16586#        else
16587#          define LT_DLLAZY_OR_NOW	0
16588#        endif
16589#      endif
16590#    endif
16591#  endif
16592#endif
16593
16594/* When -fvisbility=hidden is used, assume the code has been annotated
16595   correspondingly for the symbols needed.  */
16596#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16597int fnord () __attribute__((visibility("default")));
16598#endif
16599
16600int fnord () { return 42; }
16601int main ()
16602{
16603  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16604  int status = $lt_dlunknown;
16605
16606  if (self)
16607    {
16608      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16609      else
16610        {
16611	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16612          else puts (dlerror ());
16613	}
16614      /* dlclose (self); */
16615    }
16616  else
16617    puts (dlerror ());
16618
16619  return status;
16620}
16621_LT_EOF
16622  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16623  (eval $ac_link) 2>&5
16624  ac_status=$?
16625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16626  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16627    (./conftest; exit; ) >&5 2>/dev/null
16628    lt_status=$?
16629    case x$lt_status in
16630      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16631      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16632      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16633    esac
16634  else :
16635    # compilation failed
16636    lt_cv_dlopen_self_static=no
16637  fi
16638fi
16639rm -fr conftest*
16640
16641
16642fi
16643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16644$as_echo "$lt_cv_dlopen_self_static" >&6; }
16645    fi
16646
16647    CPPFLAGS="$save_CPPFLAGS"
16648    LDFLAGS="$save_LDFLAGS"
16649    LIBS="$save_LIBS"
16650    ;;
16651  esac
16652
16653  case $lt_cv_dlopen_self in
16654  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16655  *) enable_dlopen_self=unknown ;;
16656  esac
16657
16658  case $lt_cv_dlopen_self_static in
16659  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16660  *) enable_dlopen_self_static=unknown ;;
16661  esac
16662fi
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680striplib=
16681old_striplib=
16682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16683$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16684if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16685  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16686  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16688$as_echo "yes" >&6; }
16689else
16690# FIXME - insert some real tests, host_os isn't really good enough
16691  case $host_os in
16692  darwin*)
16693    if test -n "$STRIP" ; then
16694      striplib="$STRIP -x"
16695      old_striplib="$STRIP -S"
16696      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16697$as_echo "yes" >&6; }
16698    else
16699      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700$as_echo "no" >&6; }
16701    fi
16702    ;;
16703  *)
16704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705$as_echo "no" >&6; }
16706    ;;
16707  esac
16708fi
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721  # Report which library types will actually be built
16722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16723$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16725$as_echo "$can_build_shared" >&6; }
16726
16727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16728$as_echo_n "checking whether to build shared libraries... " >&6; }
16729  test "$can_build_shared" = "no" && enable_shared=no
16730
16731  # On AIX, shared libraries and static libraries use the same namespace, and
16732  # are all built from PIC.
16733  case $host_os in
16734  aix3*)
16735    test "$enable_shared" = yes && enable_static=no
16736    if test -n "$RANLIB"; then
16737      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16738      postinstall_cmds='$RANLIB $lib'
16739    fi
16740    ;;
16741
16742  aix[4-9]*)
16743    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16744      test "$enable_shared" = yes && enable_static=no
16745    fi
16746    ;;
16747  esac
16748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16749$as_echo "$enable_shared" >&6; }
16750
16751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16752$as_echo_n "checking whether to build static libraries... " >&6; }
16753  # Make sure either enable_shared or enable_static is yes.
16754  test "$enable_shared" = yes || enable_static=yes
16755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16756$as_echo "$enable_static" >&6; }
16757
16758
16759
16760
16761fi
16762ac_ext=c
16763ac_cpp='$CPP $CPPFLAGS'
16764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16766ac_compiler_gnu=$ac_cv_c_compiler_gnu
16767
16768CC="$lt_save_CC"
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784        ac_config_commands="$ac_config_commands libtool"
16785
16786
16787
16788
16789# Only expand once:
16790
16791
16792
16793# Checks for programs.
16794if test "x$CC" != xcc; then
16795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
16796$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
16797else
16798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
16799$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
16800fi
16801set dummy $CC; ac_cc=`$as_echo "$2" |
16802		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16803if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
16804  $as_echo_n "(cached) " >&6
16805else
16806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807/* end confdefs.h.  */
16808
16809int
16810main ()
16811{
16812
16813  ;
16814  return 0;
16815}
16816_ACEOF
16817# Make sure it works both with $CC and with simple cc.
16818# We do the test twice because some compilers refuse to overwrite an
16819# existing .o file with -o, though they will create one.
16820ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16821rm -f conftest2.*
16822if { { case "(($ac_try" in
16823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824  *) ac_try_echo=$ac_try;;
16825esac
16826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16827$as_echo "$ac_try_echo"; } >&5
16828  (eval "$ac_try") 2>&5
16829  ac_status=$?
16830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831  test $ac_status = 0; } &&
16832   test -f conftest2.$ac_objext && { { case "(($ac_try" in
16833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834  *) ac_try_echo=$ac_try;;
16835esac
16836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16837$as_echo "$ac_try_echo"; } >&5
16838  (eval "$ac_try") 2>&5
16839  ac_status=$?
16840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16841  test $ac_status = 0; };
16842then
16843  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
16844  if test "x$CC" != xcc; then
16845    # Test first that cc exists at all.
16846    if { ac_try='cc -c conftest.$ac_ext >&5'
16847  { { case "(($ac_try" in
16848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849  *) ac_try_echo=$ac_try;;
16850esac
16851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16852$as_echo "$ac_try_echo"; } >&5
16853  (eval "$ac_try") 2>&5
16854  ac_status=$?
16855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16856  test $ac_status = 0; }; }; then
16857      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
16858      rm -f conftest2.*
16859      if { { case "(($ac_try" in
16860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861  *) ac_try_echo=$ac_try;;
16862esac
16863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16864$as_echo "$ac_try_echo"; } >&5
16865  (eval "$ac_try") 2>&5
16866  ac_status=$?
16867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868  test $ac_status = 0; } &&
16869	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
16870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871  *) ac_try_echo=$ac_try;;
16872esac
16873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16874$as_echo "$ac_try_echo"; } >&5
16875  (eval "$ac_try") 2>&5
16876  ac_status=$?
16877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16878  test $ac_status = 0; };
16879      then
16880	# cc works too.
16881	:
16882      else
16883	# cc exists but doesn't like -o.
16884	eval ac_cv_prog_cc_${ac_cc}_c_o=no
16885      fi
16886    fi
16887  fi
16888else
16889  eval ac_cv_prog_cc_${ac_cc}_c_o=no
16890fi
16891rm -f core conftest*
16892
16893fi
16894if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
16895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16896$as_echo "yes" >&6; }
16897else
16898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899$as_echo "no" >&6; }
16900
16901$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
16902
16903fi
16904
16905# FIXME: we rely on the cache variable name because
16906# there is no other way.
16907set dummy $CC
16908am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16909eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16910if test "$am_t" != yes; then
16911   # Losing compiler, so override with the script.
16912   # FIXME: It is wrong to rewrite CC.
16913   # But if we don't then we get into trouble of one sort or another.
16914   # A longer-term fix would be to have automake use am__CC in this case,
16915   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16916   CC="$am_aux_dir/compile $CC"
16917fi
16918
16919
16920
16921if test "x$GCC" = "xyes"; then
16922	CPPFLAGS="$CPPFLAGS -Wall"
16923fi
16924
16925
16926
16927# Define a configure option for an alternate module directory
16928
16929# Check whether --with-xorg-module-dir was given.
16930if test "${with_xorg_module_dir+set}" = set; then :
16931  withval=$with_xorg_module_dir; moduledir="$withval"
16932else
16933  moduledir="$libdir/xorg/modules"
16934fi
16935
16936
16937# Check whether --enable-dri was given.
16938if test "${enable_dri+set}" = set; then :
16939  enableval=$enable_dri; DRI="$enableval"
16940else
16941  DRI=auto
16942fi
16943
16944
16945# Check whether --enable-exa was given.
16946if test "${enable_exa+set}" = set; then :
16947  enableval=$enable_exa; EXA="$enableval"
16948else
16949  EXA=yes
16950fi
16951
16952
16953# Check whether --enable-kms was given.
16954if test "${enable_kms+set}" = set; then :
16955  enableval=$enable_kms; DRM_MODE="$enableval"
16956else
16957  DRM_MODE=yes
16958fi
16959
16960
16961# Store the list of server defined optional extensions in REQUIRED_MODULES
16962
16963
16964	SAVE_CFLAGS="$CFLAGS"
16965	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
16966	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967/* end confdefs.h.  */
16968
16969#include "xorg-server.h"
16970#if !defined RANDR
16971#error RANDR not defined
16972#endif
16973
16974int
16975main ()
16976{
16977
16978  ;
16979  return 0;
16980}
16981_ACEOF
16982if ac_fn_c_try_compile "$LINENO"; then :
16983  _EXT_CHECK=yes
16984else
16985  _EXT_CHECK=no
16986fi
16987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988	CFLAGS="$SAVE_CFLAGS"
16989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
16990$as_echo_n "checking if RANDR is defined... " >&6; }
16991	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
16992$as_echo "$_EXT_CHECK" >&6; }
16993	if test "$_EXT_CHECK" != no; then
16994		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
16995	fi
16996
16997
16998
16999	SAVE_CFLAGS="$CFLAGS"
17000	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17001	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002/* end confdefs.h.  */
17003
17004#include "xorg-server.h"
17005#if !defined RENDER
17006#error RENDER not defined
17007#endif
17008
17009int
17010main ()
17011{
17012
17013  ;
17014  return 0;
17015}
17016_ACEOF
17017if ac_fn_c_try_compile "$LINENO"; then :
17018  _EXT_CHECK=yes
17019else
17020  _EXT_CHECK=no
17021fi
17022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023	CFLAGS="$SAVE_CFLAGS"
17024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17025$as_echo_n "checking if RENDER is defined... " >&6; }
17026	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17027$as_echo "$_EXT_CHECK" >&6; }
17028	if test "$_EXT_CHECK" != no; then
17029		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17030	fi
17031
17032
17033
17034	SAVE_CFLAGS="$CFLAGS"
17035	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17036	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h.  */
17038
17039#include "xorg-server.h"
17040#if !defined XV
17041#error XV not defined
17042#endif
17043
17044int
17045main ()
17046{
17047
17048  ;
17049  return 0;
17050}
17051_ACEOF
17052if ac_fn_c_try_compile "$LINENO"; then :
17053  _EXT_CHECK=yes
17054else
17055  _EXT_CHECK=no
17056fi
17057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058	CFLAGS="$SAVE_CFLAGS"
17059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17060$as_echo_n "checking if XV is defined... " >&6; }
17061	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17062$as_echo "$_EXT_CHECK" >&6; }
17063	if test "$_EXT_CHECK" != no; then
17064		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17065	fi
17066
17067
17068
17069	SAVE_CFLAGS="$CFLAGS"
17070	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17071	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072/* end confdefs.h.  */
17073
17074#include "xorg-server.h"
17075#if !defined DPMSExtension
17076#error DPMSExtension not defined
17077#endif
17078
17079int
17080main ()
17081{
17082
17083  ;
17084  return 0;
17085}
17086_ACEOF
17087if ac_fn_c_try_compile "$LINENO"; then :
17088  _EXT_CHECK=yes
17089else
17090  _EXT_CHECK=no
17091fi
17092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093	CFLAGS="$SAVE_CFLAGS"
17094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17095$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17096	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17097$as_echo "$_EXT_CHECK" >&6; }
17098	if test "$_EXT_CHECK" != no; then
17099		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17100	fi
17101
17102
17103# Obtain compiler/linker options for the driver dependencies
17104
17105pkg_failed=no
17106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17107$as_echo_n "checking for XORG... " >&6; }
17108
17109if test -n "$XORG_CFLAGS"; then
17110    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17111 elif test -n "$PKG_CONFIG"; then
17112    if test -n "$PKG_CONFIG" && \
17113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17114  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
17115  ac_status=$?
17116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17117  test $ac_status = 0; }; then
17118  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17119else
17120  pkg_failed=yes
17121fi
17122 else
17123    pkg_failed=untried
17124fi
17125if test -n "$XORG_LIBS"; then
17126    pkg_cv_XORG_LIBS="$XORG_LIBS"
17127 elif test -n "$PKG_CONFIG"; then
17128    if test -n "$PKG_CONFIG" && \
17129    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17130  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
17131  ac_status=$?
17132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17133  test $ac_status = 0; }; then
17134  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17135else
17136  pkg_failed=yes
17137fi
17138 else
17139    pkg_failed=untried
17140fi
17141
17142
17143
17144if test $pkg_failed = yes; then
17145   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17146$as_echo "no" >&6; }
17147
17148if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17149        _pkg_short_errors_supported=yes
17150else
17151        _pkg_short_errors_supported=no
17152fi
17153        if test $_pkg_short_errors_supported = yes; then
17154	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17155        else
17156	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17157        fi
17158	# Put the nasty error message in config.log where it belongs
17159	echo "$XORG_PKG_ERRORS" >&5
17160
17161	as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
17162
17163$XORG_PKG_ERRORS
17164
17165Consider adjusting the PKG_CONFIG_PATH environment variable if you
17166installed software in a non-standard prefix.
17167
17168Alternatively, you may set the environment variables XORG_CFLAGS
17169and XORG_LIBS to avoid the need to call pkg-config.
17170See the pkg-config man page for more details." "$LINENO" 5
17171
17172elif test $pkg_failed = untried; then
17173     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174$as_echo "no" >&6; }
17175	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17177as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17178is in your PATH or set the PKG_CONFIG environment variable to the full
17179path to pkg-config.
17180
17181Alternatively, you may set the environment variables XORG_CFLAGS
17182and XORG_LIBS to avoid the need to call pkg-config.
17183See the pkg-config man page for more details.
17184
17185To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17186See \`config.log' for more details" "$LINENO" 5; }
17187
17188else
17189	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17190	XORG_LIBS=$pkg_cv_XORG_LIBS
17191        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17192$as_echo "yes" >&6; }
17193
17194fi
17195
17196pkg_failed=no
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17198$as_echo_n "checking for XEXT... " >&6; }
17199
17200if test -n "$XEXT_CFLAGS"; then
17201    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17202 elif test -n "$PKG_CONFIG"; then
17203    if test -n "$PKG_CONFIG" && \
17204    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17205  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17206  ac_status=$?
17207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17208  test $ac_status = 0; }; then
17209  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
17210else
17211  pkg_failed=yes
17212fi
17213 else
17214    pkg_failed=untried
17215fi
17216if test -n "$XEXT_LIBS"; then
17217    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
17218 elif test -n "$PKG_CONFIG"; then
17219    if test -n "$PKG_CONFIG" && \
17220    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17221  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17222  ac_status=$?
17223  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17224  test $ac_status = 0; }; then
17225  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
17226else
17227  pkg_failed=yes
17228fi
17229 else
17230    pkg_failed=untried
17231fi
17232
17233
17234
17235if test $pkg_failed = yes; then
17236   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17237$as_echo "no" >&6; }
17238
17239if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17240        _pkg_short_errors_supported=yes
17241else
17242        _pkg_short_errors_supported=no
17243fi
17244        if test $_pkg_short_errors_supported = yes; then
17245	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
17246        else
17247	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
17248        fi
17249	# Put the nasty error message in config.log where it belongs
17250	echo "$XEXT_PKG_ERRORS" >&5
17251
17252	HAVE_XEXTPROTO_71="no"
17253elif test $pkg_failed = untried; then
17254     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17255$as_echo "no" >&6; }
17256	HAVE_XEXTPROTO_71="no"
17257else
17258	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
17259	XEXT_LIBS=$pkg_cv_XEXT_LIBS
17260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17261$as_echo "yes" >&6; }
17262	HAVE_XEXTPROTO_71="yes";
17263$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
17264
17265fi
17266 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
17267  HAVE_XEXTPROTO_71_TRUE=
17268  HAVE_XEXTPROTO_71_FALSE='#'
17269else
17270  HAVE_XEXTPROTO_71_TRUE='#'
17271  HAVE_XEXTPROTO_71_FALSE=
17272fi
17273
17274
17275# Checks for libraries.
17276
17277
17278if test "$DRI" != no; then
17279
17280pkg_failed=no
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
17282$as_echo_n "checking for DRI... " >&6; }
17283
17284if test -n "$DRI_CFLAGS"; then
17285    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
17286 elif test -n "$PKG_CONFIG"; then
17287    if test -n "$PKG_CONFIG" && \
17288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
17289  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
17290  ac_status=$?
17291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292  test $ac_status = 0; }; then
17293  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
17294else
17295  pkg_failed=yes
17296fi
17297 else
17298    pkg_failed=untried
17299fi
17300if test -n "$DRI_LIBS"; then
17301    pkg_cv_DRI_LIBS="$DRI_LIBS"
17302 elif test -n "$PKG_CONFIG"; then
17303    if test -n "$PKG_CONFIG" && \
17304    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
17305  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
17306  ac_status=$?
17307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17308  test $ac_status = 0; }; then
17309  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
17310else
17311  pkg_failed=yes
17312fi
17313 else
17314    pkg_failed=untried
17315fi
17316
17317
17318
17319if test $pkg_failed = yes; then
17320   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321$as_echo "no" >&6; }
17322
17323if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17324        _pkg_short_errors_supported=yes
17325else
17326        _pkg_short_errors_supported=no
17327fi
17328        if test $_pkg_short_errors_supported = yes; then
17329	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
17330        else
17331	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
17332        fi
17333	# Put the nasty error message in config.log where it belongs
17334	echo "$DRI_PKG_ERRORS" >&5
17335
17336	as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
17337
17338$DRI_PKG_ERRORS
17339
17340Consider adjusting the PKG_CONFIG_PATH environment variable if you
17341installed software in a non-standard prefix.
17342
17343Alternatively, you may set the environment variables DRI_CFLAGS
17344and DRI_LIBS to avoid the need to call pkg-config.
17345See the pkg-config man page for more details." "$LINENO" 5
17346
17347elif test $pkg_failed = untried; then
17348     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349$as_echo "no" >&6; }
17350	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17352as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17353is in your PATH or set the PKG_CONFIG environment variable to the full
17354path to pkg-config.
17355
17356Alternatively, you may set the environment variables DRI_CFLAGS
17357and DRI_LIBS to avoid the need to call pkg-config.
17358See the pkg-config man page for more details.
17359
17360To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17361See \`config.log' for more details" "$LINENO" 5; }
17362
17363else
17364	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
17365	DRI_LIBS=$pkg_cv_DRI_LIBS
17366        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17367$as_echo "yes" >&6; }
17368
17369fi
17370	save_CPPFLAGS="$CPPFLAGS"
17371	CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS"
17372	ac_fn_c_check_header_preproc "$LINENO" "dri.h" "ac_cv_header_dri_h"
17373if test "x$ac_cv_header_dri_h" = xyes; then :
17374  have_dri_h="yes"
17375else
17376  have_dri_h="no"
17377fi
17378
17379
17380	ac_fn_c_check_header_preproc "$LINENO" "sarea.h" "ac_cv_header_sarea_h"
17381if test "x$ac_cv_header_sarea_h" = xyes; then :
17382  have_sarea_h="yes"
17383else
17384  have_sarea_h="no"
17385fi
17386
17387
17388	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h.  */
17390
17391#include <xorg-server.h>
17392#include <dristruct.h>
17393
17394int
17395main ()
17396{
17397
17398  ;
17399  return 0;
17400}
17401_ACEOF
17402if ac_fn_c_try_cpp "$LINENO"; then :
17403  have_dristruct_h="yes"
17404else
17405  have_dristruct_h="no"
17406fi
17407rm -f conftest.err conftest.i conftest.$ac_ext
17408	ac_fn_c_check_header_preproc "$LINENO" "damage.h" "ac_cv_header_damage_h"
17409if test "x$ac_cv_header_damage_h" = xyes; then :
17410  have_damage_h="yes"
17411else
17412  have_damage_h="no"
17413fi
17414
17415
17416	CPPFLAGS="$save_CPPFLAGS"
17417fi
17418
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
17420$as_echo_n "checking whether to include DRI support... " >&6; }
17421if test x$DRI = xauto; then
17422	if test "$have_dri_h" = yes -a \
17423                "$have_sarea_h" = yes -a \
17424                "$have_dristruct_h" = yes; then
17425		DRI="yes"
17426	else
17427		DRI="no"
17428	fi
17429fi
17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
17431$as_echo "$DRI" >&6; }
17432
17433 if test x$DRI = xyes; then
17434  DRI_TRUE=
17435  DRI_FALSE='#'
17436else
17437  DRI_TRUE='#'
17438  DRI_FALSE=
17439fi
17440
17441if test "$DRI" = yes; then
17442
17443$as_echo "#define XF86DRI 1" >>confdefs.h
17444
17445
17446$as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
17447
17448	if test "$have_damage_h" = yes; then
17449
17450$as_echo "#define DAMAGE 1" >>confdefs.h
17451
17452	fi
17453
17454        save_CFLAGS="$CFLAGS"
17455        CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $CFLAGS"
17456	if test "$DRM_MODE" = yes; then
17457	   	ac_fn_c_check_header_compile "$LINENO" "xf86drmMode.h" "ac_cv_header_xf86drmMode_h" "#include <stdint.h>
17458#include <stdlib.h>
17459"
17460if test "x$ac_cv_header_xf86drmMode_h" = xyes; then :
17461  DRM_MODE=yes
17462else
17463  DRM_MODE=no
17464fi
17465
17466
17467		if test "x$DRM_MODE" = xyes; then
17468
17469pkg_failed=no
17470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
17471$as_echo_n "checking for LIBDRM_RADEON... " >&6; }
17472
17473if test -n "$LIBDRM_RADEON_CFLAGS"; then
17474    pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
17475 elif test -n "$PKG_CONFIG"; then
17476    if test -n "$PKG_CONFIG" && \
17477    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon\""; } >&5
17478  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon") 2>&5
17479  ac_status=$?
17480  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17481  test $ac_status = 0; }; then
17482  pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon" 2>/dev/null`
17483else
17484  pkg_failed=yes
17485fi
17486 else
17487    pkg_failed=untried
17488fi
17489if test -n "$LIBDRM_RADEON_LIBS"; then
17490    pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
17491 elif test -n "$PKG_CONFIG"; then
17492    if test -n "$PKG_CONFIG" && \
17493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon\""; } >&5
17494  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon") 2>&5
17495  ac_status=$?
17496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17497  test $ac_status = 0; }; then
17498  pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon" 2>/dev/null`
17499else
17500  pkg_failed=yes
17501fi
17502 else
17503    pkg_failed=untried
17504fi
17505
17506
17507
17508if test $pkg_failed = yes; then
17509   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17510$as_echo "no" >&6; }
17511
17512if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17513        _pkg_short_errors_supported=yes
17514else
17515        _pkg_short_errors_supported=no
17516fi
17517        if test $_pkg_short_errors_supported = yes; then
17518	        LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon" 2>&1`
17519        else
17520	        LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6.2 libdrm >= 2.4.36 libdrm_radeon" 2>&1`
17521        fi
17522	# Put the nasty error message in config.log where it belongs
17523	echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
17524
17525	LIBDRM_RADEON=no
17526elif test $pkg_failed = untried; then
17527     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17528$as_echo "no" >&6; }
17529	LIBDRM_RADEON=no
17530else
17531	LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
17532	LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
17533        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17534$as_echo "yes" >&6; }
17535	LIBDRM_RADEON=yes
17536fi
17537
17538			if test "x$LIBDRM_RADEON" = xyes; then
17539
17540$as_echo "#define XF86DRM_MODE 1" >>confdefs.h
17541
17542
17543$as_echo "#define RADEON_DRI2 1" >>confdefs.h
17544
17545                        else
17546                                DRM_MODE=no
17547			fi
17548
17549pkg_failed=no
17550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
17551$as_echo_n "checking for LIBUDEV... " >&6; }
17552
17553if test -n "$LIBUDEV_CFLAGS"; then
17554    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
17555 elif test -n "$PKG_CONFIG"; then
17556    if test -n "$PKG_CONFIG" && \
17557    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
17558  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
17559  ac_status=$?
17560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17561  test $ac_status = 0; }; then
17562  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
17563else
17564  pkg_failed=yes
17565fi
17566 else
17567    pkg_failed=untried
17568fi
17569if test -n "$LIBUDEV_LIBS"; then
17570    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
17571 elif test -n "$PKG_CONFIG"; then
17572    if test -n "$PKG_CONFIG" && \
17573    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
17574  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
17575  ac_status=$?
17576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17577  test $ac_status = 0; }; then
17578  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
17579else
17580  pkg_failed=yes
17581fi
17582 else
17583    pkg_failed=untried
17584fi
17585
17586
17587
17588if test $pkg_failed = yes; then
17589   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17590$as_echo "no" >&6; }
17591
17592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17593        _pkg_short_errors_supported=yes
17594else
17595        _pkg_short_errors_supported=no
17596fi
17597        if test $_pkg_short_errors_supported = yes; then
17598	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev" 2>&1`
17599        else
17600	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev" 2>&1`
17601        fi
17602	# Put the nasty error message in config.log where it belongs
17603	echo "$LIBUDEV_PKG_ERRORS" >&5
17604
17605	LIBUDEV=no
17606elif test $pkg_failed = untried; then
17607     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17608$as_echo "no" >&6; }
17609	LIBUDEV=no
17610else
17611	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
17612	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
17613        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614$as_echo "yes" >&6; }
17615	LIBUDEV=yes
17616fi
17617			if test "x$LIBUDEV" = xyes; then
17618
17619$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
17620
17621			fi
17622        	fi
17623	fi
17624	CFLAGS="$save_CFLAGS"
17625else
17626	DRM_MODE=no
17627fi
17628 if test x$DRM_MODE = xyes; then
17629  DRM_MODE_TRUE=
17630  DRM_MODE_FALSE='#'
17631else
17632  DRM_MODE_TRUE='#'
17633  DRM_MODE_FALSE=
17634fi
17635
17636 if test x$LIBUDEV = xyes; then
17637  LIBUDEV_TRUE=
17638  LIBUDEV_FALSE='#'
17639else
17640  LIBUDEV_TRUE='#'
17641  LIBUDEV_FALSE=
17642fi
17643
17644
17645
17646$as_echo "#define USE_XAA 1" >>confdefs.h
17647
17648
17649# Properly handle EXA.
17650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
17651$as_echo_n "checking whether to enable EXA support... " >&6; }
17652if test "x$EXA" = xyes; then
17653        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17654$as_echo "yes" >&6; }
17655
17656        SAVE_CPPFLAGS="$CPPFLAGS"
17657        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17658        ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
17659if test "x$ac_cv_header_exa_h" = xyes; then :
17660  have_exa_h="yes"
17661else
17662  have_exa_h="no"
17663fi
17664
17665
17666        CPPFLAGS="$SAVE_CPPFLAGS"
17667else
17668        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17669$as_echo "no" >&6; }
17670fi
17671
17672SAVE_CPPFLAGS="$CPPFLAGS"
17673CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17674if test "x$have_exa_h" = xyes; then
17675        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
17676$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
17677        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678/* end confdefs.h.  */
17679
17680#include "exa.h"
17681#if EXA_VERSION_MAJOR < 2
17682#error OLD EXA!
17683#endif
17684
17685int
17686main ()
17687{
17688
17689  ;
17690  return 0;
17691}
17692_ACEOF
17693if ac_fn_c_try_cpp "$LINENO"; then :
17694  USE_EXA=yes
17695else
17696  USE_EXA=no
17697fi
17698rm -f conftest.err conftest.i conftest.$ac_ext
17699        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
17700$as_echo "$USE_EXA" >&6; }
17701
17702        if test "x$USE_EXA" = xyes; then
17703
17704$as_echo "#define USE_EXA 1" >>confdefs.h
17705
17706        fi
17707fi
17708
17709ac_fn_c_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include <xf86xv.h>
17710"
17711if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = xyes; then :
17712
17713$as_echo "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h
17714
17715fi
17716
17717
17718ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include \"xorg-server.h\"
17719	       #include \"xf86Modes.h\"
17720"
17721if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then :
17722
17723$as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
17724
17725fi
17726
17727
17728ac_fn_c_check_decl "$LINENO" "xf86_crtc_clip_video_helper" "ac_cv_have_decl_xf86_crtc_clip_video_helper" "#include <X11/Xmd.h>
17729	       #include \"xorg-server.h\"
17730	       #include \"xf86i2c.h\"
17731	       #include \"xf86Crtc.h\"
17732"
17733if test "x$ac_cv_have_decl_xf86_crtc_clip_video_helper" = xyes; then :
17734
17735$as_echo "#define HAVE_XF86CRTCCLIPVIDEOHELPER 1" >>confdefs.h
17736
17737fi
17738
17739
17740ac_fn_c_check_decl "$LINENO" "xf86RotateFreeShadow" "ac_cv_have_decl_xf86RotateFreeShadow" "#include <xorg-server.h>
17741               #include <windowstr.h>
17742	       #include <xf86Crtc.h>
17743"
17744if test "x$ac_cv_have_decl_xf86RotateFreeShadow" = xyes; then :
17745
17746$as_echo "#define HAVE_FREE_SHADOW 1" >>confdefs.h
17747
17748fi
17749
17750
17751ac_fn_c_check_decl "$LINENO" "pci_device_enable" "ac_cv_have_decl_pci_device_enable" "#include <pciaccess.h>
17752"
17753if test "x$ac_cv_have_decl_pci_device_enable" = xyes; then :
17754
17755$as_echo "#define HAVE_PCI_DEVICE_ENABLE 1" >>confdefs.h
17756
17757fi
17758
17759
17760ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17761"
17762if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17763  XSERVER_LIBPCIACCESS=yes
17764else
17765  XSERVER_LIBPCIACCESS=no
17766fi
17767
17768
17769for ac_header in list.h
17770do :
17771  ac_fn_c_check_header_compile "$LINENO" "list.h" "ac_cv_header_list_h" "#include <X11/Xdefs.h>
17772		  #include \"xorg-server.h\"
17773"
17774if test "x$ac_cv_header_list_h" = xyes; then :
17775  cat >>confdefs.h <<_ACEOF
17776#define HAVE_LIST_H 1
17777_ACEOF
17778 have_list_h="yes"
17779else
17780  have_list_h="no"
17781fi
17782
17783done
17784
17785
17786if test "x$have_list_h" = xyes; then
17787    ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
17788		   #include \"xorg-server.h\"
17789		   #include \"list.h\"
17790"
17791if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
17792
17793$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
17794
17795fi
17796
17797fi
17798
17799CPPFLAGS="$SAVE_CPPFLAGS"
17800
17801 if test "x$USE_EXA" = xyes; then
17802  USE_EXA_TRUE=
17803  USE_EXA_FALSE='#'
17804else
17805  USE_EXA_TRUE='#'
17806  USE_EXA_FALSE=
17807fi
17808
17809
17810 if test "x$LIBDRM_RADEON" = xyes; then
17811  XF86DRM_MODE_TRUE=
17812  XF86DRM_MODE_FALSE='#'
17813else
17814  XF86DRM_MODE_TRUE='#'
17815  XF86DRM_MODE_FALSE=
17816fi
17817
17818
17819if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17820
17821pkg_failed=no
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17823$as_echo_n "checking for PCIACCESS... " >&6; }
17824
17825if test -n "$PCIACCESS_CFLAGS"; then
17826    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17827 elif test -n "$PKG_CONFIG"; then
17828    if test -n "$PKG_CONFIG" && \
17829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
17830  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
17831  ac_status=$?
17832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17833  test $ac_status = 0; }; then
17834  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
17835else
17836  pkg_failed=yes
17837fi
17838 else
17839    pkg_failed=untried
17840fi
17841if test -n "$PCIACCESS_LIBS"; then
17842    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
17843 elif test -n "$PKG_CONFIG"; then
17844    if test -n "$PKG_CONFIG" && \
17845    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
17846  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
17847  ac_status=$?
17848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17849  test $ac_status = 0; }; then
17850  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
17851else
17852  pkg_failed=yes
17853fi
17854 else
17855    pkg_failed=untried
17856fi
17857
17858
17859
17860if test $pkg_failed = yes; then
17861   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862$as_echo "no" >&6; }
17863
17864if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17865        _pkg_short_errors_supported=yes
17866else
17867        _pkg_short_errors_supported=no
17868fi
17869        if test $_pkg_short_errors_supported = yes; then
17870	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
17871        else
17872	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
17873        fi
17874	# Put the nasty error message in config.log where it belongs
17875	echo "$PCIACCESS_PKG_ERRORS" >&5
17876
17877	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
17878
17879$PCIACCESS_PKG_ERRORS
17880
17881Consider adjusting the PKG_CONFIG_PATH environment variable if you
17882installed software in a non-standard prefix.
17883
17884Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17885and PCIACCESS_LIBS to avoid the need to call pkg-config.
17886See the pkg-config man page for more details." "$LINENO" 5
17887
17888elif test $pkg_failed = untried; then
17889     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17890$as_echo "no" >&6; }
17891	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17893as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17894is in your PATH or set the PKG_CONFIG environment variable to the full
17895path to pkg-config.
17896
17897Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17898and PCIACCESS_LIBS to avoid the need to call pkg-config.
17899See the pkg-config man page for more details.
17900
17901To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17902See \`config.log' for more details" "$LINENO" 5; }
17903
17904else
17905	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
17906	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
17907        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17908$as_echo "yes" >&6; }
17909
17910fi
17911    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
17912fi
17913 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17914  XSERVER_LIBPCIACCESS_TRUE=
17915  XSERVER_LIBPCIACCESS_FALSE='#'
17916else
17917  XSERVER_LIBPCIACCESS_TRUE='#'
17918  XSERVER_LIBPCIACCESS_FALSE=
17919fi
17920
17921
17922# Checks for headers/macros for byte swapping
17923# Known variants:
17924#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
17925#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
17926#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
17927#	and a fallback to local macros if none of the above are found
17928
17929# if <byteswap.h> is found, assume it's the correct version
17930for ac_header in byteswap.h
17931do :
17932  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
17933if test "x$ac_cv_header_byteswap_h" = xyes; then :
17934  cat >>confdefs.h <<_ACEOF
17935#define HAVE_BYTESWAP_H 1
17936_ACEOF
17937
17938fi
17939
17940done
17941
17942
17943# if <sys/endian.h> is found, have to check which version
17944ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
17945if test "x$ac_cv_header_sys_endian_h" = xyes; then :
17946  HAVE_SYS_ENDIAN_H="yes"
17947else
17948  HAVE_SYS_ENDIAN_H="no"
17949fi
17950
17951
17952
17953if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
17954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
17955$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
17956	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957/* end confdefs.h.  */
17958
17959#include <sys/types.h>
17960#include <sys/endian.h>
17961
17962int
17963main ()
17964{
17965
17966int a = 1, b;
17967b = __swap16(a);
17968
17969  ;
17970  return 0;
17971}
17972
17973_ACEOF
17974if ac_fn_c_try_link "$LINENO"; then :
17975  SYS_ENDIAN__SWAP='yes'
17976else
17977  SYS_ENDIAN__SWAP='no'
17978fi
17979rm -f core conftest.err conftest.$ac_objext \
17980    conftest$ac_exeext conftest.$ac_ext
17981	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
17982$as_echo "$SYS_ENDIAN__SWAP" >&6; }
17983
17984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
17985$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
17986	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987/* end confdefs.h.  */
17988
17989#include <sys/types.h>
17990#include <sys/endian.h>
17991
17992int
17993main ()
17994{
17995
17996int a = 1, b;
17997b = bswap16(a);
17998
17999  ;
18000  return 0;
18001}
18002
18003_ACEOF
18004if ac_fn_c_try_link "$LINENO"; then :
18005  SYS_ENDIAN_BSWAP='yes'
18006else
18007  SYS_ENDIAN_BSWAP='no'
18008fi
18009rm -f core conftest.err conftest.$ac_objext \
18010    conftest$ac_exeext conftest.$ac_ext
18011	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
18012$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
18013
18014    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
18015		USE_SYS_ENDIAN_H=yes
18016		BSWAP=bswap
18017	else
18018	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
18019			USE_SYS_ENDIAN_H=yes
18020			BSWAP=__swap
18021		else
18022			USE_SYS_ENDIAN_H=no
18023		fi
18024	fi
18025
18026	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
18027
18028$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
18029
18030
18031cat >>confdefs.h <<_ACEOF
18032#define bswap_16 ${BSWAP}16
18033_ACEOF
18034
18035
18036cat >>confdefs.h <<_ACEOF
18037#define bswap_32 ${BSWAP}32
18038_ACEOF
18039
18040
18041cat >>confdefs.h <<_ACEOF
18042#define bswap_64 ${BSWAP}64
18043_ACEOF
18044
18045	fi
18046fi
18047
18048case $host_os in
18049  *linux*)
18050
18051$as_echo "#define FGL_LINUX 1" >>confdefs.h
18052 ;;
18053esac
18054
18055
18056
18057DRIVER_NAME=ati
18058
18059
18060{ $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
18061    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
18062Please install that driver as well for mach64-based cards.
18063" >&5
18064$as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
18065    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
18066Please install that driver as well for mach64-based cards.
18067" >&6;}
18068
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
18070    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
18071Please install that driver as well for rage128-based cards.
18072" >&5
18073$as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
18074    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
18075Please install that driver as well for rage128-based cards.
18076" >&6;}
18077
18078ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18079
18080cat >confcache <<\_ACEOF
18081# This file is a shell script that caches the results of configure
18082# tests run on this system so they can be shared between configure
18083# scripts and configure runs, see configure's option --config-cache.
18084# It is not useful on other systems.  If it contains results you don't
18085# want to keep, you may remove or edit it.
18086#
18087# config.status only pays attention to the cache file if you give it
18088# the --recheck option to rerun configure.
18089#
18090# `ac_cv_env_foo' variables (set or unset) will be overridden when
18091# loading this file, other *unset* `ac_cv_foo' will be assigned the
18092# following values.
18093
18094_ACEOF
18095
18096# The following way of writing the cache mishandles newlines in values,
18097# but we know of no workaround that is simple, portable, and efficient.
18098# So, we kill variables containing newlines.
18099# Ultrix sh set writes to stderr and can't be redirected directly,
18100# and sets the high bit in the cache file unless we assign to the vars.
18101(
18102  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18103    eval ac_val=\$$ac_var
18104    case $ac_val in #(
18105    *${as_nl}*)
18106      case $ac_var in #(
18107      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18108$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18109      esac
18110      case $ac_var in #(
18111      _ | IFS | as_nl) ;; #(
18112      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18113      *) { eval $ac_var=; unset $ac_var;} ;;
18114      esac ;;
18115    esac
18116  done
18117
18118  (set) 2>&1 |
18119    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18120    *${as_nl}ac_space=\ *)
18121      # `set' does not quote correctly, so add quotes: double-quote
18122      # substitution turns \\\\ into \\, and sed turns \\ into \.
18123      sed -n \
18124	"s/'/'\\\\''/g;
18125	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18126      ;; #(
18127    *)
18128      # `set' quotes correctly as required by POSIX, so do not add quotes.
18129      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18130      ;;
18131    esac |
18132    sort
18133) |
18134  sed '
18135     /^ac_cv_env_/b end
18136     t clear
18137     :clear
18138     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18139     t end
18140     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18141     :end' >>confcache
18142if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18143  if test -w "$cache_file"; then
18144    if test "x$cache_file" != "x/dev/null"; then
18145      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18146$as_echo "$as_me: updating cache $cache_file" >&6;}
18147      if test ! -f "$cache_file" || test -h "$cache_file"; then
18148	cat confcache >"$cache_file"
18149      else
18150        case $cache_file in #(
18151        */* | ?:*)
18152	  mv -f confcache "$cache_file"$$ &&
18153	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18154        *)
18155	  mv -f confcache "$cache_file" ;;
18156	esac
18157      fi
18158    fi
18159  else
18160    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18161$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18162  fi
18163fi
18164rm -f confcache
18165
18166test "x$prefix" = xNONE && prefix=$ac_default_prefix
18167# Let make expand exec_prefix.
18168test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18169
18170DEFS=-DHAVE_CONFIG_H
18171
18172ac_libobjs=
18173ac_ltlibobjs=
18174U=
18175for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18176  # 1. Remove the extension, and $U if already installed.
18177  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18178  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18179  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18180  #    will be set to the directory where LIBOBJS objects are built.
18181  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18182  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18183done
18184LIBOBJS=$ac_libobjs
18185
18186LTLIBOBJS=$ac_ltlibobjs
18187
18188
18189if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18190  as_fn_error $? "conditional \"AMDEP\" was never defined.
18191Usually this means the macro was only invoked conditionally." "$LINENO" 5
18192fi
18193if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18194  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18195Usually this means the macro was only invoked conditionally." "$LINENO" 5
18196fi
18197 if test -n "$EXEEXT"; then
18198  am__EXEEXT_TRUE=
18199  am__EXEEXT_FALSE='#'
18200else
18201  am__EXEEXT_TRUE='#'
18202  am__EXEEXT_FALSE=
18203fi
18204
18205if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18206  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18207Usually this means the macro was only invoked conditionally." "$LINENO" 5
18208fi
18209if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18210  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18211Usually this means the macro was only invoked conditionally." "$LINENO" 5
18212fi
18213if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18214  as_fn_error $? "conditional \"DRI\" was never defined.
18215Usually this means the macro was only invoked conditionally." "$LINENO" 5
18216fi
18217if test -z "${DRM_MODE_TRUE}" && test -z "${DRM_MODE_FALSE}"; then
18218  as_fn_error $? "conditional \"DRM_MODE\" was never defined.
18219Usually this means the macro was only invoked conditionally." "$LINENO" 5
18220fi
18221if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
18222  as_fn_error $? "conditional \"LIBUDEV\" was never defined.
18223Usually this means the macro was only invoked conditionally." "$LINENO" 5
18224fi
18225if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
18226  as_fn_error $? "conditional \"USE_EXA\" was never defined.
18227Usually this means the macro was only invoked conditionally." "$LINENO" 5
18228fi
18229if test -z "${XF86DRM_MODE_TRUE}" && test -z "${XF86DRM_MODE_FALSE}"; then
18230  as_fn_error $? "conditional \"XF86DRM_MODE\" was never defined.
18231Usually this means the macro was only invoked conditionally." "$LINENO" 5
18232fi
18233if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18234  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18235Usually this means the macro was only invoked conditionally." "$LINENO" 5
18236fi
18237
18238: "${CONFIG_STATUS=./config.status}"
18239ac_write_fail=0
18240ac_clean_files_save=$ac_clean_files
18241ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18242{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18243$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18244as_write_fail=0
18245cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18246#! $SHELL
18247# Generated by $as_me.
18248# Run this file to recreate the current configuration.
18249# Compiler output produced by configure, useful for debugging
18250# configure, is in config.log if it exists.
18251
18252debug=false
18253ac_cs_recheck=false
18254ac_cs_silent=false
18255
18256SHELL=\${CONFIG_SHELL-$SHELL}
18257export SHELL
18258_ASEOF
18259cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18260## -------------------- ##
18261## M4sh Initialization. ##
18262## -------------------- ##
18263
18264# Be more Bourne compatible
18265DUALCASE=1; export DUALCASE # for MKS sh
18266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18267  emulate sh
18268  NULLCMD=:
18269  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18270  # is contrary to our usage.  Disable this feature.
18271  alias -g '${1+"$@"}'='"$@"'
18272  setopt NO_GLOB_SUBST
18273else
18274  case `(set -o) 2>/dev/null` in #(
18275  *posix*) :
18276    set -o posix ;; #(
18277  *) :
18278     ;;
18279esac
18280fi
18281
18282
18283as_nl='
18284'
18285export as_nl
18286# Printing a long string crashes Solaris 7 /usr/bin/printf.
18287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18290# Prefer a ksh shell builtin over an external printf program on Solaris,
18291# but without wasting forks for bash or zsh.
18292if test -z "$BASH_VERSION$ZSH_VERSION" \
18293    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18294  as_echo='print -r --'
18295  as_echo_n='print -rn --'
18296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18297  as_echo='printf %s\n'
18298  as_echo_n='printf %s'
18299else
18300  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18301    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18302    as_echo_n='/usr/ucb/echo -n'
18303  else
18304    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18305    as_echo_n_body='eval
18306      arg=$1;
18307      case $arg in #(
18308      *"$as_nl"*)
18309	expr "X$arg" : "X\\(.*\\)$as_nl";
18310	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18311      esac;
18312      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18313    '
18314    export as_echo_n_body
18315    as_echo_n='sh -c $as_echo_n_body as_echo'
18316  fi
18317  export as_echo_body
18318  as_echo='sh -c $as_echo_body as_echo'
18319fi
18320
18321# The user is always right.
18322if test "${PATH_SEPARATOR+set}" != set; then
18323  PATH_SEPARATOR=:
18324  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18325    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18326      PATH_SEPARATOR=';'
18327  }
18328fi
18329
18330
18331# IFS
18332# We need space, tab and new line, in precisely that order.  Quoting is
18333# there to prevent editors from complaining about space-tab.
18334# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18335# splitting by setting IFS to empty value.)
18336IFS=" ""	$as_nl"
18337
18338# Find who we are.  Look in the path if we contain no directory separator.
18339as_myself=
18340case $0 in #((
18341  *[\\/]* ) as_myself=$0 ;;
18342  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18343for as_dir in $PATH
18344do
18345  IFS=$as_save_IFS
18346  test -z "$as_dir" && as_dir=.
18347    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18348  done
18349IFS=$as_save_IFS
18350
18351     ;;
18352esac
18353# We did not find ourselves, most probably we were run as `sh COMMAND'
18354# in which case we are not to be found in the path.
18355if test "x$as_myself" = x; then
18356  as_myself=$0
18357fi
18358if test ! -f "$as_myself"; then
18359  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18360  exit 1
18361fi
18362
18363# Unset variables that we do not need and which cause bugs (e.g. in
18364# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18365# suppresses any "Segmentation fault" message there.  '((' could
18366# trigger a bug in pdksh 5.2.14.
18367for as_var in BASH_ENV ENV MAIL MAILPATH
18368do eval test x\${$as_var+set} = xset \
18369  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18370done
18371PS1='$ '
18372PS2='> '
18373PS4='+ '
18374
18375# NLS nuisances.
18376LC_ALL=C
18377export LC_ALL
18378LANGUAGE=C
18379export LANGUAGE
18380
18381# CDPATH.
18382(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18383
18384
18385# as_fn_error STATUS ERROR [LINENO LOG_FD]
18386# ----------------------------------------
18387# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18388# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18389# script with STATUS, using 1 if that was 0.
18390as_fn_error ()
18391{
18392  as_status=$1; test $as_status -eq 0 && as_status=1
18393  if test "$4"; then
18394    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18395    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18396  fi
18397  $as_echo "$as_me: error: $2" >&2
18398  as_fn_exit $as_status
18399} # as_fn_error
18400
18401
18402# as_fn_set_status STATUS
18403# -----------------------
18404# Set $? to STATUS, without forking.
18405as_fn_set_status ()
18406{
18407  return $1
18408} # as_fn_set_status
18409
18410# as_fn_exit STATUS
18411# -----------------
18412# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18413as_fn_exit ()
18414{
18415  set +e
18416  as_fn_set_status $1
18417  exit $1
18418} # as_fn_exit
18419
18420# as_fn_unset VAR
18421# ---------------
18422# Portably unset VAR.
18423as_fn_unset ()
18424{
18425  { eval $1=; unset $1;}
18426}
18427as_unset=as_fn_unset
18428# as_fn_append VAR VALUE
18429# ----------------------
18430# Append the text in VALUE to the end of the definition contained in VAR. Take
18431# advantage of any shell optimizations that allow amortized linear growth over
18432# repeated appends, instead of the typical quadratic growth present in naive
18433# implementations.
18434if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18435  eval 'as_fn_append ()
18436  {
18437    eval $1+=\$2
18438  }'
18439else
18440  as_fn_append ()
18441  {
18442    eval $1=\$$1\$2
18443  }
18444fi # as_fn_append
18445
18446# as_fn_arith ARG...
18447# ------------------
18448# Perform arithmetic evaluation on the ARGs, and store the result in the
18449# global $as_val. Take advantage of shells that can avoid forks. The arguments
18450# must be portable across $(()) and expr.
18451if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18452  eval 'as_fn_arith ()
18453  {
18454    as_val=$(( $* ))
18455  }'
18456else
18457  as_fn_arith ()
18458  {
18459    as_val=`expr "$@" || test $? -eq 1`
18460  }
18461fi # as_fn_arith
18462
18463
18464if expr a : '\(a\)' >/dev/null 2>&1 &&
18465   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18466  as_expr=expr
18467else
18468  as_expr=false
18469fi
18470
18471if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18472  as_basename=basename
18473else
18474  as_basename=false
18475fi
18476
18477if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18478  as_dirname=dirname
18479else
18480  as_dirname=false
18481fi
18482
18483as_me=`$as_basename -- "$0" ||
18484$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18485	 X"$0" : 'X\(//\)$' \| \
18486	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18487$as_echo X/"$0" |
18488    sed '/^.*\/\([^/][^/]*\)\/*$/{
18489	    s//\1/
18490	    q
18491	  }
18492	  /^X\/\(\/\/\)$/{
18493	    s//\1/
18494	    q
18495	  }
18496	  /^X\/\(\/\).*/{
18497	    s//\1/
18498	    q
18499	  }
18500	  s/.*/./; q'`
18501
18502# Avoid depending upon Character Ranges.
18503as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18504as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18505as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18506as_cr_digits='0123456789'
18507as_cr_alnum=$as_cr_Letters$as_cr_digits
18508
18509ECHO_C= ECHO_N= ECHO_T=
18510case `echo -n x` in #(((((
18511-n*)
18512  case `echo 'xy\c'` in
18513  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18514  xy)  ECHO_C='\c';;
18515  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18516       ECHO_T='	';;
18517  esac;;
18518*)
18519  ECHO_N='-n';;
18520esac
18521
18522rm -f conf$$ conf$$.exe conf$$.file
18523if test -d conf$$.dir; then
18524  rm -f conf$$.dir/conf$$.file
18525else
18526  rm -f conf$$.dir
18527  mkdir conf$$.dir 2>/dev/null
18528fi
18529if (echo >conf$$.file) 2>/dev/null; then
18530  if ln -s conf$$.file conf$$ 2>/dev/null; then
18531    as_ln_s='ln -s'
18532    # ... but there are two gotchas:
18533    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18534    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18535    # In both cases, we have to default to `cp -p'.
18536    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18537      as_ln_s='cp -p'
18538  elif ln conf$$.file conf$$ 2>/dev/null; then
18539    as_ln_s=ln
18540  else
18541    as_ln_s='cp -p'
18542  fi
18543else
18544  as_ln_s='cp -p'
18545fi
18546rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18547rmdir conf$$.dir 2>/dev/null
18548
18549
18550# as_fn_mkdir_p
18551# -------------
18552# Create "$as_dir" as a directory, including parents if necessary.
18553as_fn_mkdir_p ()
18554{
18555
18556  case $as_dir in #(
18557  -*) as_dir=./$as_dir;;
18558  esac
18559  test -d "$as_dir" || eval $as_mkdir_p || {
18560    as_dirs=
18561    while :; do
18562      case $as_dir in #(
18563      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18564      *) as_qdir=$as_dir;;
18565      esac
18566      as_dirs="'$as_qdir' $as_dirs"
18567      as_dir=`$as_dirname -- "$as_dir" ||
18568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18569	 X"$as_dir" : 'X\(//\)[^/]' \| \
18570	 X"$as_dir" : 'X\(//\)$' \| \
18571	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18572$as_echo X"$as_dir" |
18573    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18574	    s//\1/
18575	    q
18576	  }
18577	  /^X\(\/\/\)[^/].*/{
18578	    s//\1/
18579	    q
18580	  }
18581	  /^X\(\/\/\)$/{
18582	    s//\1/
18583	    q
18584	  }
18585	  /^X\(\/\).*/{
18586	    s//\1/
18587	    q
18588	  }
18589	  s/.*/./; q'`
18590      test -d "$as_dir" && break
18591    done
18592    test -z "$as_dirs" || eval "mkdir $as_dirs"
18593  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18594
18595
18596} # as_fn_mkdir_p
18597if mkdir -p . 2>/dev/null; then
18598  as_mkdir_p='mkdir -p "$as_dir"'
18599else
18600  test -d ./-p && rmdir ./-p
18601  as_mkdir_p=false
18602fi
18603
18604if test -x / >/dev/null 2>&1; then
18605  as_test_x='test -x'
18606else
18607  if ls -dL / >/dev/null 2>&1; then
18608    as_ls_L_option=L
18609  else
18610    as_ls_L_option=
18611  fi
18612  as_test_x='
18613    eval sh -c '\''
18614      if test -d "$1"; then
18615	test -d "$1/.";
18616      else
18617	case $1 in #(
18618	-*)set "./$1";;
18619	esac;
18620	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18621	???[sx]*):;;*)false;;esac;fi
18622    '\'' sh
18623  '
18624fi
18625as_executable_p=$as_test_x
18626
18627# Sed expression to map a string onto a valid CPP name.
18628as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18629
18630# Sed expression to map a string onto a valid variable name.
18631as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18632
18633
18634exec 6>&1
18635## ----------------------------------- ##
18636## Main body of $CONFIG_STATUS script. ##
18637## ----------------------------------- ##
18638_ASEOF
18639test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18640
18641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642# Save the log message, to keep $0 and so on meaningful, and to
18643# report actual input values of CONFIG_FILES etc. instead of their
18644# values after options handling.
18645ac_log="
18646This file was extended by xf86-video-ati $as_me 6.14.6, which was
18647generated by GNU Autoconf 2.68.  Invocation command line was
18648
18649  CONFIG_FILES    = $CONFIG_FILES
18650  CONFIG_HEADERS  = $CONFIG_HEADERS
18651  CONFIG_LINKS    = $CONFIG_LINKS
18652  CONFIG_COMMANDS = $CONFIG_COMMANDS
18653  $ $0 $@
18654
18655on `(hostname || uname -n) 2>/dev/null | sed 1q`
18656"
18657
18658_ACEOF
18659
18660case $ac_config_files in *"
18661"*) set x $ac_config_files; shift; ac_config_files=$*;;
18662esac
18663
18664case $ac_config_headers in *"
18665"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18666esac
18667
18668
18669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670# Files that config.status was made for.
18671config_files="$ac_config_files"
18672config_headers="$ac_config_headers"
18673config_commands="$ac_config_commands"
18674
18675_ACEOF
18676
18677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18678ac_cs_usage="\
18679\`$as_me' instantiates files and other configuration actions
18680from templates according to the current configuration.  Unless the files
18681and actions are specified as TAGs, all are instantiated by default.
18682
18683Usage: $0 [OPTION]... [TAG]...
18684
18685  -h, --help       print this help, then exit
18686  -V, --version    print version number and configuration settings, then exit
18687      --config     print configuration, then exit
18688  -q, --quiet, --silent
18689                   do not print progress messages
18690  -d, --debug      don't remove temporary files
18691      --recheck    update $as_me by reconfiguring in the same conditions
18692      --file=FILE[:TEMPLATE]
18693                   instantiate the configuration file FILE
18694      --header=FILE[:TEMPLATE]
18695                   instantiate the configuration header FILE
18696
18697Configuration files:
18698$config_files
18699
18700Configuration headers:
18701$config_headers
18702
18703Configuration commands:
18704$config_commands
18705
18706Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18707
18708_ACEOF
18709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18710ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18711ac_cs_version="\\
18712xf86-video-ati config.status 6.14.6
18713configured by $0, generated by GNU Autoconf 2.68,
18714  with options \\"\$ac_cs_config\\"
18715
18716Copyright (C) 2010 Free Software Foundation, Inc.
18717This config.status script is free software; the Free Software Foundation
18718gives unlimited permission to copy, distribute and modify it."
18719
18720ac_pwd='$ac_pwd'
18721srcdir='$srcdir'
18722INSTALL='$INSTALL'
18723MKDIR_P='$MKDIR_P'
18724AWK='$AWK'
18725test -n "\$AWK" || AWK=awk
18726_ACEOF
18727
18728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18729# The default lists apply if the user does not specify any file.
18730ac_need_defaults=:
18731while test $# != 0
18732do
18733  case $1 in
18734  --*=?*)
18735    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18736    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18737    ac_shift=:
18738    ;;
18739  --*=)
18740    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18741    ac_optarg=
18742    ac_shift=:
18743    ;;
18744  *)
18745    ac_option=$1
18746    ac_optarg=$2
18747    ac_shift=shift
18748    ;;
18749  esac
18750
18751  case $ac_option in
18752  # Handling of the options.
18753  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18754    ac_cs_recheck=: ;;
18755  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18756    $as_echo "$ac_cs_version"; exit ;;
18757  --config | --confi | --conf | --con | --co | --c )
18758    $as_echo "$ac_cs_config"; exit ;;
18759  --debug | --debu | --deb | --de | --d | -d )
18760    debug=: ;;
18761  --file | --fil | --fi | --f )
18762    $ac_shift
18763    case $ac_optarg in
18764    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18765    '') as_fn_error $? "missing file argument" ;;
18766    esac
18767    as_fn_append CONFIG_FILES " '$ac_optarg'"
18768    ac_need_defaults=false;;
18769  --header | --heade | --head | --hea )
18770    $ac_shift
18771    case $ac_optarg in
18772    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18773    esac
18774    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18775    ac_need_defaults=false;;
18776  --he | --h)
18777    # Conflict between --help and --header
18778    as_fn_error $? "ambiguous option: \`$1'
18779Try \`$0 --help' for more information.";;
18780  --help | --hel | -h )
18781    $as_echo "$ac_cs_usage"; exit ;;
18782  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18783  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18784    ac_cs_silent=: ;;
18785
18786  # This is an error.
18787  -*) as_fn_error $? "unrecognized option: \`$1'
18788Try \`$0 --help' for more information." ;;
18789
18790  *) as_fn_append ac_config_targets " $1"
18791     ac_need_defaults=false ;;
18792
18793  esac
18794  shift
18795done
18796
18797ac_configure_extra_args=
18798
18799if $ac_cs_silent; then
18800  exec 6>/dev/null
18801  ac_configure_extra_args="$ac_configure_extra_args --silent"
18802fi
18803
18804_ACEOF
18805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18806if \$ac_cs_recheck; then
18807  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18808  shift
18809  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18810  CONFIG_SHELL='$SHELL'
18811  export CONFIG_SHELL
18812  exec "\$@"
18813fi
18814
18815_ACEOF
18816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18817exec 5>>config.log
18818{
18819  echo
18820  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18821## Running $as_me. ##
18822_ASBOX
18823  $as_echo "$ac_log"
18824} >&5
18825
18826_ACEOF
18827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828#
18829# INIT-COMMANDS
18830#
18831AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18832
18833
18834# The HP-UX ksh and POSIX shell print the target directory to stdout
18835# if CDPATH is set.
18836(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18837
18838sed_quote_subst='$sed_quote_subst'
18839double_quote_subst='$double_quote_subst'
18840delay_variable_subst='$delay_variable_subst'
18841enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18842macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18843macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18844enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18845pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18846enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18847SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18848ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18849PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18850host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18851host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18852host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18853build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18854build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18855build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18856SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18857Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18858GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18859EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18860FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18861LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18862NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18863LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18864max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18865ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18866exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18867lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18868lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18869lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18870lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18871lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18872reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18873reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18874OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18875deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18876file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18877file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18878want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18879DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18880sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18881AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18882AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18883archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18884STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18885RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18886old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18887old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18888old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18889lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18890CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18891CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18892compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18893GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18894lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18895lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18896lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18897lt_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"`'
18898nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18899lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18900objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18901MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18902lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18903lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18904lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18905lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18906lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18907need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18908MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18909DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18910NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18911LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18912OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18913OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18914libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18915shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18916extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18917archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18918enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18919export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18920whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18921compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18922old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18923old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18924archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18925archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18926module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18927module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18928with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18929allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18930no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18931hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18932hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18933hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18934hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18935hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18936hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18937hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18938inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18939link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18940always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18941export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18942exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18943include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18944prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18945postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18946file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18947variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18948need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18949need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18950version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18951runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18952shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18953shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18954libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18955library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18956soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18957install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18958postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18959postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18960finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18961finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18962hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18963sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18964sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18965hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18966enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18967enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18968enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18969old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18970striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18971
18972LTCC='$LTCC'
18973LTCFLAGS='$LTCFLAGS'
18974compiler='$compiler_DEFAULT'
18975
18976# A function that is used when there is no print builtin or printf.
18977func_fallback_echo ()
18978{
18979  eval 'cat <<_LTECHO_EOF
18980\$1
18981_LTECHO_EOF'
18982}
18983
18984# Quote evaled strings.
18985for var in SHELL \
18986ECHO \
18987PATH_SEPARATOR \
18988SED \
18989GREP \
18990EGREP \
18991FGREP \
18992LD \
18993NM \
18994LN_S \
18995lt_SP2NL \
18996lt_NL2SP \
18997reload_flag \
18998OBJDUMP \
18999deplibs_check_method \
19000file_magic_cmd \
19001file_magic_glob \
19002want_nocaseglob \
19003DLLTOOL \
19004sharedlib_from_linklib_cmd \
19005AR \
19006AR_FLAGS \
19007archiver_list_spec \
19008STRIP \
19009RANLIB \
19010CC \
19011CFLAGS \
19012compiler \
19013lt_cv_sys_global_symbol_pipe \
19014lt_cv_sys_global_symbol_to_cdecl \
19015lt_cv_sys_global_symbol_to_c_name_address \
19016lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19017nm_file_list_spec \
19018lt_prog_compiler_no_builtin_flag \
19019lt_prog_compiler_pic \
19020lt_prog_compiler_wl \
19021lt_prog_compiler_static \
19022lt_cv_prog_compiler_c_o \
19023need_locks \
19024MANIFEST_TOOL \
19025DSYMUTIL \
19026NMEDIT \
19027LIPO \
19028OTOOL \
19029OTOOL64 \
19030shrext_cmds \
19031export_dynamic_flag_spec \
19032whole_archive_flag_spec \
19033compiler_needs_object \
19034with_gnu_ld \
19035allow_undefined_flag \
19036no_undefined_flag \
19037hardcode_libdir_flag_spec \
19038hardcode_libdir_separator \
19039exclude_expsyms \
19040include_expsyms \
19041file_list_spec \
19042variables_saved_for_relink \
19043libname_spec \
19044library_names_spec \
19045soname_spec \
19046install_override_mode \
19047finish_eval \
19048old_striplib \
19049striplib; do
19050    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19051    *[\\\\\\\`\\"\\\$]*)
19052      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19053      ;;
19054    *)
19055      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19056      ;;
19057    esac
19058done
19059
19060# Double-quote double-evaled strings.
19061for var in reload_cmds \
19062old_postinstall_cmds \
19063old_postuninstall_cmds \
19064old_archive_cmds \
19065extract_expsyms_cmds \
19066old_archive_from_new_cmds \
19067old_archive_from_expsyms_cmds \
19068archive_cmds \
19069archive_expsym_cmds \
19070module_cmds \
19071module_expsym_cmds \
19072export_symbols_cmds \
19073prelink_cmds \
19074postlink_cmds \
19075postinstall_cmds \
19076postuninstall_cmds \
19077finish_cmds \
19078sys_lib_search_path_spec \
19079sys_lib_dlsearch_path_spec; do
19080    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19081    *[\\\\\\\`\\"\\\$]*)
19082      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19083      ;;
19084    *)
19085      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19086      ;;
19087    esac
19088done
19089
19090ac_aux_dir='$ac_aux_dir'
19091xsi_shell='$xsi_shell'
19092lt_shell_append='$lt_shell_append'
19093
19094# See if we are running on zsh, and set the options which allow our
19095# commands through without removal of \ escapes INIT.
19096if test -n "\${ZSH_VERSION+set}" ; then
19097   setopt NO_GLOB_SUBST
19098fi
19099
19100
19101    PACKAGE='$PACKAGE'
19102    VERSION='$VERSION'
19103    TIMESTAMP='$TIMESTAMP'
19104    RM='$RM'
19105    ofile='$ofile'
19106
19107
19108
19109
19110_ACEOF
19111
19112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19113
19114# Handling of arguments.
19115for ac_config_target in $ac_config_targets
19116do
19117  case $ac_config_target in
19118    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19119    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19120    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19121    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19122    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19123    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19124
19125  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19126  esac
19127done
19128
19129
19130# If the user did not use the arguments to specify the items to instantiate,
19131# then the envvar interface is used.  Set only those that are not.
19132# We use the long form for the default assignment because of an extremely
19133# bizarre bug on SunOS 4.1.3.
19134if $ac_need_defaults; then
19135  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19136  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19137  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19138fi
19139
19140# Have a temporary directory for convenience.  Make it in the build tree
19141# simply because there is no reason against having it here, and in addition,
19142# creating and moving files from /tmp can sometimes cause problems.
19143# Hook for its removal unless debugging.
19144# Note that there is a small window in which the directory will not be cleaned:
19145# after its creation but before its name has been assigned to `$tmp'.
19146$debug ||
19147{
19148  tmp= ac_tmp=
19149  trap 'exit_status=$?
19150  : "${ac_tmp:=$tmp}"
19151  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19152' 0
19153  trap 'as_fn_exit 1' 1 2 13 15
19154}
19155# Create a (secure) tmp directory for tmp files.
19156
19157{
19158  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19159  test -d "$tmp"
19160}  ||
19161{
19162  tmp=./conf$$-$RANDOM
19163  (umask 077 && mkdir "$tmp")
19164} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19165ac_tmp=$tmp
19166
19167# Set up the scripts for CONFIG_FILES section.
19168# No need to generate them if there are no CONFIG_FILES.
19169# This happens for instance with `./config.status config.h'.
19170if test -n "$CONFIG_FILES"; then
19171
19172
19173ac_cr=`echo X | tr X '\015'`
19174# On cygwin, bash can eat \r inside `` if the user requested igncr.
19175# But we know of no other shell where ac_cr would be empty at this
19176# point, so we can use a bashism as a fallback.
19177if test "x$ac_cr" = x; then
19178  eval ac_cr=\$\'\\r\'
19179fi
19180ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19181if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19182  ac_cs_awk_cr='\\r'
19183else
19184  ac_cs_awk_cr=$ac_cr
19185fi
19186
19187echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19188_ACEOF
19189
19190
19191{
19192  echo "cat >conf$$subs.awk <<_ACEOF" &&
19193  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19194  echo "_ACEOF"
19195} >conf$$subs.sh ||
19196  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19197ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19198ac_delim='%!_!# '
19199for ac_last_try in false false false false false :; do
19200  . ./conf$$subs.sh ||
19201    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19202
19203  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19204  if test $ac_delim_n = $ac_delim_num; then
19205    break
19206  elif $ac_last_try; then
19207    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19208  else
19209    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19210  fi
19211done
19212rm -f conf$$subs.sh
19213
19214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19215cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19216_ACEOF
19217sed -n '
19218h
19219s/^/S["/; s/!.*/"]=/
19220p
19221g
19222s/^[^!]*!//
19223:repl
19224t repl
19225s/'"$ac_delim"'$//
19226t delim
19227:nl
19228h
19229s/\(.\{148\}\)..*/\1/
19230t more1
19231s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19232p
19233n
19234b repl
19235:more1
19236s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19237p
19238g
19239s/.\{148\}//
19240t nl
19241:delim
19242h
19243s/\(.\{148\}\)..*/\1/
19244t more2
19245s/["\\]/\\&/g; s/^/"/; s/$/"/
19246p
19247b
19248:more2
19249s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19250p
19251g
19252s/.\{148\}//
19253t delim
19254' <conf$$subs.awk | sed '
19255/^[^""]/{
19256  N
19257  s/\n//
19258}
19259' >>$CONFIG_STATUS || ac_write_fail=1
19260rm -f conf$$subs.awk
19261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19262_ACAWK
19263cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19264  for (key in S) S_is_set[key] = 1
19265  FS = ""
19266
19267}
19268{
19269  line = $ 0
19270  nfields = split(line, field, "@")
19271  substed = 0
19272  len = length(field[1])
19273  for (i = 2; i < nfields; i++) {
19274    key = field[i]
19275    keylen = length(key)
19276    if (S_is_set[key]) {
19277      value = S[key]
19278      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19279      len += length(value) + length(field[++i])
19280      substed = 1
19281    } else
19282      len += 1 + keylen
19283  }
19284
19285  print line
19286}
19287
19288_ACAWK
19289_ACEOF
19290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19291if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19292  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19293else
19294  cat
19295fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19296  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19297_ACEOF
19298
19299# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19300# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19301# trailing colons and then remove the whole line if VPATH becomes empty
19302# (actually we leave an empty line to preserve line numbers).
19303if test "x$srcdir" = x.; then
19304  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19305h
19306s///
19307s/^/:/
19308s/[	 ]*$/:/
19309s/:\$(srcdir):/:/g
19310s/:\${srcdir}:/:/g
19311s/:@srcdir@:/:/g
19312s/^:*//
19313s/:*$//
19314x
19315s/\(=[	 ]*\).*/\1/
19316G
19317s/\n//
19318s/^[^=]*=[	 ]*$//
19319}'
19320fi
19321
19322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19323fi # test -n "$CONFIG_FILES"
19324
19325# Set up the scripts for CONFIG_HEADERS section.
19326# No need to generate them if there are no CONFIG_HEADERS.
19327# This happens for instance with `./config.status Makefile'.
19328if test -n "$CONFIG_HEADERS"; then
19329cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19330BEGIN {
19331_ACEOF
19332
19333# Transform confdefs.h into an awk script `defines.awk', embedded as
19334# here-document in config.status, that substitutes the proper values into
19335# config.h.in to produce config.h.
19336
19337# Create a delimiter string that does not exist in confdefs.h, to ease
19338# handling of long lines.
19339ac_delim='%!_!# '
19340for ac_last_try in false false :; do
19341  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19342  if test -z "$ac_tt"; then
19343    break
19344  elif $ac_last_try; then
19345    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19346  else
19347    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19348  fi
19349done
19350
19351# For the awk script, D is an array of macro values keyed by name,
19352# likewise P contains macro parameters if any.  Preserve backslash
19353# newline sequences.
19354
19355ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19356sed -n '
19357s/.\{148\}/&'"$ac_delim"'/g
19358t rset
19359:rset
19360s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19361t def
19362d
19363:def
19364s/\\$//
19365t bsnl
19366s/["\\]/\\&/g
19367s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19368D["\1"]=" \3"/p
19369s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19370d
19371:bsnl
19372s/["\\]/\\&/g
19373s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19374D["\1"]=" \3\\\\\\n"\\/p
19375t cont
19376s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19377t cont
19378d
19379:cont
19380n
19381s/.\{148\}/&'"$ac_delim"'/g
19382t clear
19383:clear
19384s/\\$//
19385t bsnlc
19386s/["\\]/\\&/g; s/^/"/; s/$/"/p
19387d
19388:bsnlc
19389s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19390b cont
19391' <confdefs.h | sed '
19392s/'"$ac_delim"'/"\\\
19393"/g' >>$CONFIG_STATUS || ac_write_fail=1
19394
19395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19396  for (key in D) D_is_set[key] = 1
19397  FS = ""
19398}
19399/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19400  line = \$ 0
19401  split(line, arg, " ")
19402  if (arg[1] == "#") {
19403    defundef = arg[2]
19404    mac1 = arg[3]
19405  } else {
19406    defundef = substr(arg[1], 2)
19407    mac1 = arg[2]
19408  }
19409  split(mac1, mac2, "(") #)
19410  macro = mac2[1]
19411  prefix = substr(line, 1, index(line, defundef) - 1)
19412  if (D_is_set[macro]) {
19413    # Preserve the white space surrounding the "#".
19414    print prefix "define", macro P[macro] D[macro]
19415    next
19416  } else {
19417    # Replace #undef with comments.  This is necessary, for example,
19418    # in the case of _POSIX_SOURCE, which is predefined and required
19419    # on some systems where configure will not decide to define it.
19420    if (defundef == "undef") {
19421      print "/*", prefix defundef, macro, "*/"
19422      next
19423    }
19424  }
19425}
19426{ print }
19427_ACAWK
19428_ACEOF
19429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19430  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19431fi # test -n "$CONFIG_HEADERS"
19432
19433
19434eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19435shift
19436for ac_tag
19437do
19438  case $ac_tag in
19439  :[FHLC]) ac_mode=$ac_tag; continue;;
19440  esac
19441  case $ac_mode$ac_tag in
19442  :[FHL]*:*);;
19443  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19444  :[FH]-) ac_tag=-:-;;
19445  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19446  esac
19447  ac_save_IFS=$IFS
19448  IFS=:
19449  set x $ac_tag
19450  IFS=$ac_save_IFS
19451  shift
19452  ac_file=$1
19453  shift
19454
19455  case $ac_mode in
19456  :L) ac_source=$1;;
19457  :[FH])
19458    ac_file_inputs=
19459    for ac_f
19460    do
19461      case $ac_f in
19462      -) ac_f="$ac_tmp/stdin";;
19463      *) # Look for the file first in the build tree, then in the source tree
19464	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19465	 # because $ac_f cannot contain `:'.
19466	 test -f "$ac_f" ||
19467	   case $ac_f in
19468	   [\\/$]*) false;;
19469	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19470	   esac ||
19471	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19472      esac
19473      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19474      as_fn_append ac_file_inputs " '$ac_f'"
19475    done
19476
19477    # Let's still pretend it is `configure' which instantiates (i.e., don't
19478    # use $as_me), people would be surprised to read:
19479    #    /* config.h.  Generated by config.status.  */
19480    configure_input='Generated from '`
19481	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19482	`' by configure.'
19483    if test x"$ac_file" != x-; then
19484      configure_input="$ac_file.  $configure_input"
19485      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19486$as_echo "$as_me: creating $ac_file" >&6;}
19487    fi
19488    # Neutralize special characters interpreted by sed in replacement strings.
19489    case $configure_input in #(
19490    *\&* | *\|* | *\\* )
19491       ac_sed_conf_input=`$as_echo "$configure_input" |
19492       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19493    *) ac_sed_conf_input=$configure_input;;
19494    esac
19495
19496    case $ac_tag in
19497    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19498      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19499    esac
19500    ;;
19501  esac
19502
19503  ac_dir=`$as_dirname -- "$ac_file" ||
19504$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19505	 X"$ac_file" : 'X\(//\)[^/]' \| \
19506	 X"$ac_file" : 'X\(//\)$' \| \
19507	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19508$as_echo X"$ac_file" |
19509    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19510	    s//\1/
19511	    q
19512	  }
19513	  /^X\(\/\/\)[^/].*/{
19514	    s//\1/
19515	    q
19516	  }
19517	  /^X\(\/\/\)$/{
19518	    s//\1/
19519	    q
19520	  }
19521	  /^X\(\/\).*/{
19522	    s//\1/
19523	    q
19524	  }
19525	  s/.*/./; q'`
19526  as_dir="$ac_dir"; as_fn_mkdir_p
19527  ac_builddir=.
19528
19529case "$ac_dir" in
19530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19531*)
19532  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19533  # A ".." for each directory in $ac_dir_suffix.
19534  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19535  case $ac_top_builddir_sub in
19536  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19537  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19538  esac ;;
19539esac
19540ac_abs_top_builddir=$ac_pwd
19541ac_abs_builddir=$ac_pwd$ac_dir_suffix
19542# for backward compatibility:
19543ac_top_builddir=$ac_top_build_prefix
19544
19545case $srcdir in
19546  .)  # We are building in place.
19547    ac_srcdir=.
19548    ac_top_srcdir=$ac_top_builddir_sub
19549    ac_abs_top_srcdir=$ac_pwd ;;
19550  [\\/]* | ?:[\\/]* )  # Absolute name.
19551    ac_srcdir=$srcdir$ac_dir_suffix;
19552    ac_top_srcdir=$srcdir
19553    ac_abs_top_srcdir=$srcdir ;;
19554  *) # Relative name.
19555    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19556    ac_top_srcdir=$ac_top_build_prefix$srcdir
19557    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19558esac
19559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19560
19561
19562  case $ac_mode in
19563  :F)
19564  #
19565  # CONFIG_FILE
19566  #
19567
19568  case $INSTALL in
19569  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19570  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19571  esac
19572  ac_MKDIR_P=$MKDIR_P
19573  case $MKDIR_P in
19574  [\\/$]* | ?:[\\/]* ) ;;
19575  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19576  esac
19577_ACEOF
19578
19579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19580# If the template does not know about datarootdir, expand it.
19581# FIXME: This hack should be removed a few years after 2.60.
19582ac_datarootdir_hack=; ac_datarootdir_seen=
19583ac_sed_dataroot='
19584/datarootdir/ {
19585  p
19586  q
19587}
19588/@datadir@/p
19589/@docdir@/p
19590/@infodir@/p
19591/@localedir@/p
19592/@mandir@/p'
19593case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19594*datarootdir*) ac_datarootdir_seen=yes;;
19595*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19596  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19597$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19598_ACEOF
19599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19600  ac_datarootdir_hack='
19601  s&@datadir@&$datadir&g
19602  s&@docdir@&$docdir&g
19603  s&@infodir@&$infodir&g
19604  s&@localedir@&$localedir&g
19605  s&@mandir@&$mandir&g
19606  s&\\\${datarootdir}&$datarootdir&g' ;;
19607esac
19608_ACEOF
19609
19610# Neutralize VPATH when `$srcdir' = `.'.
19611# Shell code in configure.ac might set extrasub.
19612# FIXME: do we really want to maintain this feature?
19613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19614ac_sed_extra="$ac_vpsub
19615$extrasub
19616_ACEOF
19617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19618:t
19619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19620s|@configure_input@|$ac_sed_conf_input|;t t
19621s&@top_builddir@&$ac_top_builddir_sub&;t t
19622s&@top_build_prefix@&$ac_top_build_prefix&;t t
19623s&@srcdir@&$ac_srcdir&;t t
19624s&@abs_srcdir@&$ac_abs_srcdir&;t t
19625s&@top_srcdir@&$ac_top_srcdir&;t t
19626s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19627s&@builddir@&$ac_builddir&;t t
19628s&@abs_builddir@&$ac_abs_builddir&;t t
19629s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19630s&@INSTALL@&$ac_INSTALL&;t t
19631s&@MKDIR_P@&$ac_MKDIR_P&;t t
19632$ac_datarootdir_hack
19633"
19634eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19635  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19636
19637test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19638  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19639  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19640      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19641  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19642which seems to be undefined.  Please make sure it is defined" >&5
19643$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19644which seems to be undefined.  Please make sure it is defined" >&2;}
19645
19646  rm -f "$ac_tmp/stdin"
19647  case $ac_file in
19648  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19649  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19650  esac \
19651  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19652 ;;
19653  :H)
19654  #
19655  # CONFIG_HEADER
19656  #
19657  if test x"$ac_file" != x-; then
19658    {
19659      $as_echo "/* $configure_input  */" \
19660      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19661    } >"$ac_tmp/config.h" \
19662      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19663    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19664      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19665$as_echo "$as_me: $ac_file is unchanged" >&6;}
19666    else
19667      rm -f "$ac_file"
19668      mv "$ac_tmp/config.h" "$ac_file" \
19669	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19670    fi
19671  else
19672    $as_echo "/* $configure_input  */" \
19673      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19674      || as_fn_error $? "could not create -" "$LINENO" 5
19675  fi
19676# Compute "$ac_file"'s index in $config_headers.
19677_am_arg="$ac_file"
19678_am_stamp_count=1
19679for _am_header in $config_headers :; do
19680  case $_am_header in
19681    $_am_arg | $_am_arg:* )
19682      break ;;
19683    * )
19684      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19685  esac
19686done
19687echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19688$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19689	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19690	 X"$_am_arg" : 'X\(//\)$' \| \
19691	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19692$as_echo X"$_am_arg" |
19693    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19694	    s//\1/
19695	    q
19696	  }
19697	  /^X\(\/\/\)[^/].*/{
19698	    s//\1/
19699	    q
19700	  }
19701	  /^X\(\/\/\)$/{
19702	    s//\1/
19703	    q
19704	  }
19705	  /^X\(\/\).*/{
19706	    s//\1/
19707	    q
19708	  }
19709	  s/.*/./; q'`/stamp-h$_am_stamp_count
19710 ;;
19711
19712  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19713$as_echo "$as_me: executing $ac_file commands" >&6;}
19714 ;;
19715  esac
19716
19717
19718  case $ac_file$ac_mode in
19719    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19720  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19721  # are listed without --file.  Let's play safe and only enable the eval
19722  # if we detect the quoting.
19723  case $CONFIG_FILES in
19724  *\'*) eval set x "$CONFIG_FILES" ;;
19725  *)   set x $CONFIG_FILES ;;
19726  esac
19727  shift
19728  for mf
19729  do
19730    # Strip MF so we end up with the name of the file.
19731    mf=`echo "$mf" | sed -e 's/:.*$//'`
19732    # Check whether this is an Automake generated Makefile or not.
19733    # We used to match only the files named `Makefile.in', but
19734    # some people rename them; so instead we look at the file content.
19735    # Grep'ing the first line is not enough: some people post-process
19736    # each Makefile.in and add a new line on top of each file to say so.
19737    # Grep'ing the whole file is not good either: AIX grep has a line
19738    # limit of 2048, but all sed's we know have understand at least 4000.
19739    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19740      dirpart=`$as_dirname -- "$mf" ||
19741$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19742	 X"$mf" : 'X\(//\)[^/]' \| \
19743	 X"$mf" : 'X\(//\)$' \| \
19744	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19745$as_echo X"$mf" |
19746    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19747	    s//\1/
19748	    q
19749	  }
19750	  /^X\(\/\/\)[^/].*/{
19751	    s//\1/
19752	    q
19753	  }
19754	  /^X\(\/\/\)$/{
19755	    s//\1/
19756	    q
19757	  }
19758	  /^X\(\/\).*/{
19759	    s//\1/
19760	    q
19761	  }
19762	  s/.*/./; q'`
19763    else
19764      continue
19765    fi
19766    # Extract the definition of DEPDIR, am__include, and am__quote
19767    # from the Makefile without running `make'.
19768    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19769    test -z "$DEPDIR" && continue
19770    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19771    test -z "am__include" && continue
19772    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19773    # When using ansi2knr, U may be empty or an underscore; expand it
19774    U=`sed -n 's/^U = //p' < "$mf"`
19775    # Find all dependency output files, they are included files with
19776    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19777    # simplest approach to changing $(DEPDIR) to its actual value in the
19778    # expansion.
19779    for file in `sed -n "
19780      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19781	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19782      # Make sure the directory exists.
19783      test -f "$dirpart/$file" && continue
19784      fdir=`$as_dirname -- "$file" ||
19785$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19786	 X"$file" : 'X\(//\)[^/]' \| \
19787	 X"$file" : 'X\(//\)$' \| \
19788	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19789$as_echo X"$file" |
19790    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19791	    s//\1/
19792	    q
19793	  }
19794	  /^X\(\/\/\)[^/].*/{
19795	    s//\1/
19796	    q
19797	  }
19798	  /^X\(\/\/\)$/{
19799	    s//\1/
19800	    q
19801	  }
19802	  /^X\(\/\).*/{
19803	    s//\1/
19804	    q
19805	  }
19806	  s/.*/./; q'`
19807      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19808      # echo "creating $dirpart/$file"
19809      echo '# dummy' > "$dirpart/$file"
19810    done
19811  done
19812}
19813 ;;
19814    "libtool":C)
19815
19816    # See if we are running on zsh, and set the options which allow our
19817    # commands through without removal of \ escapes.
19818    if test -n "${ZSH_VERSION+set}" ; then
19819      setopt NO_GLOB_SUBST
19820    fi
19821
19822    cfgfile="${ofile}T"
19823    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19824    $RM "$cfgfile"
19825
19826    cat <<_LT_EOF >> "$cfgfile"
19827#! $SHELL
19828
19829# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19830# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19831# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19832# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19833#
19834#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19835#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19836#                 Foundation, Inc.
19837#   Written by Gordon Matzigkeit, 1996
19838#
19839#   This file is part of GNU Libtool.
19840#
19841# GNU Libtool is free software; you can redistribute it and/or
19842# modify it under the terms of the GNU General Public License as
19843# published by the Free Software Foundation; either version 2 of
19844# the License, or (at your option) any later version.
19845#
19846# As a special exception to the GNU General Public License,
19847# if you distribute this file as part of a program or library that
19848# is built using GNU Libtool, you may include this file under the
19849# same distribution terms that you use for the rest of that program.
19850#
19851# GNU Libtool is distributed in the hope that it will be useful,
19852# but WITHOUT ANY WARRANTY; without even the implied warranty of
19853# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19854# GNU General Public License for more details.
19855#
19856# You should have received a copy of the GNU General Public License
19857# along with GNU Libtool; see the file COPYING.  If not, a copy
19858# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19859# obtained by writing to the Free Software Foundation, Inc.,
19860# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19861
19862
19863# The names of the tagged configurations supported by this script.
19864available_tags=""
19865
19866# ### BEGIN LIBTOOL CONFIG
19867
19868# Whether or not to build static libraries.
19869build_old_libs=$enable_static
19870
19871# Which release of libtool.m4 was used?
19872macro_version=$macro_version
19873macro_revision=$macro_revision
19874
19875# Whether or not to build shared libraries.
19876build_libtool_libs=$enable_shared
19877
19878# What type of objects to build.
19879pic_mode=$pic_mode
19880
19881# Whether or not to optimize for fast installation.
19882fast_install=$enable_fast_install
19883
19884# Shell to use when invoking shell scripts.
19885SHELL=$lt_SHELL
19886
19887# An echo program that protects backslashes.
19888ECHO=$lt_ECHO
19889
19890# The PATH separator for the build system.
19891PATH_SEPARATOR=$lt_PATH_SEPARATOR
19892
19893# The host system.
19894host_alias=$host_alias
19895host=$host
19896host_os=$host_os
19897
19898# The build system.
19899build_alias=$build_alias
19900build=$build
19901build_os=$build_os
19902
19903# A sed program that does not truncate output.
19904SED=$lt_SED
19905
19906# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19907Xsed="\$SED -e 1s/^X//"
19908
19909# A grep program that handles long lines.
19910GREP=$lt_GREP
19911
19912# An ERE matcher.
19913EGREP=$lt_EGREP
19914
19915# A literal string matcher.
19916FGREP=$lt_FGREP
19917
19918# A BSD- or MS-compatible name lister.
19919NM=$lt_NM
19920
19921# Whether we need soft or hard links.
19922LN_S=$lt_LN_S
19923
19924# What is the maximum length of a command?
19925max_cmd_len=$max_cmd_len
19926
19927# Object file suffix (normally "o").
19928objext=$ac_objext
19929
19930# Executable file suffix (normally "").
19931exeext=$exeext
19932
19933# whether the shell understands "unset".
19934lt_unset=$lt_unset
19935
19936# turn spaces into newlines.
19937SP2NL=$lt_lt_SP2NL
19938
19939# turn newlines into spaces.
19940NL2SP=$lt_lt_NL2SP
19941
19942# convert \$build file names to \$host format.
19943to_host_file_cmd=$lt_cv_to_host_file_cmd
19944
19945# convert \$build files to toolchain format.
19946to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19947
19948# An object symbol dumper.
19949OBJDUMP=$lt_OBJDUMP
19950
19951# Method to check whether dependent libraries are shared objects.
19952deplibs_check_method=$lt_deplibs_check_method
19953
19954# Command to use when deplibs_check_method = "file_magic".
19955file_magic_cmd=$lt_file_magic_cmd
19956
19957# How to find potential files when deplibs_check_method = "file_magic".
19958file_magic_glob=$lt_file_magic_glob
19959
19960# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19961want_nocaseglob=$lt_want_nocaseglob
19962
19963# DLL creation program.
19964DLLTOOL=$lt_DLLTOOL
19965
19966# Command to associate shared and link libraries.
19967sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19968
19969# The archiver.
19970AR=$lt_AR
19971
19972# Flags to create an archive.
19973AR_FLAGS=$lt_AR_FLAGS
19974
19975# How to feed a file listing to the archiver.
19976archiver_list_spec=$lt_archiver_list_spec
19977
19978# A symbol stripping program.
19979STRIP=$lt_STRIP
19980
19981# Commands used to install an old-style archive.
19982RANLIB=$lt_RANLIB
19983old_postinstall_cmds=$lt_old_postinstall_cmds
19984old_postuninstall_cmds=$lt_old_postuninstall_cmds
19985
19986# Whether to use a lock for old archive extraction.
19987lock_old_archive_extraction=$lock_old_archive_extraction
19988
19989# A C compiler.
19990LTCC=$lt_CC
19991
19992# LTCC compiler flags.
19993LTCFLAGS=$lt_CFLAGS
19994
19995# Take the output of nm and produce a listing of raw symbols and C names.
19996global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19997
19998# Transform the output of nm in a proper C declaration.
19999global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20000
20001# Transform the output of nm in a C name address pair.
20002global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20003
20004# Transform the output of nm in a C name address pair when lib prefix is needed.
20005global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20006
20007# Specify filename containing input files for \$NM.
20008nm_file_list_spec=$lt_nm_file_list_spec
20009
20010# The root where to search for dependent libraries,and in which our libraries should be installed.
20011lt_sysroot=$lt_sysroot
20012
20013# The name of the directory that contains temporary libtool files.
20014objdir=$objdir
20015
20016# Used to examine libraries when file_magic_cmd begins with "file".
20017MAGIC_CMD=$MAGIC_CMD
20018
20019# Must we lock files when doing compilation?
20020need_locks=$lt_need_locks
20021
20022# Manifest tool.
20023MANIFEST_TOOL=$lt_MANIFEST_TOOL
20024
20025# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20026DSYMUTIL=$lt_DSYMUTIL
20027
20028# Tool to change global to local symbols on Mac OS X.
20029NMEDIT=$lt_NMEDIT
20030
20031# Tool to manipulate fat objects and archives on Mac OS X.
20032LIPO=$lt_LIPO
20033
20034# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20035OTOOL=$lt_OTOOL
20036
20037# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20038OTOOL64=$lt_OTOOL64
20039
20040# Old archive suffix (normally "a").
20041libext=$libext
20042
20043# Shared library suffix (normally ".so").
20044shrext_cmds=$lt_shrext_cmds
20045
20046# The commands to extract the exported symbol list from a shared archive.
20047extract_expsyms_cmds=$lt_extract_expsyms_cmds
20048
20049# Variables whose values should be saved in libtool wrapper scripts and
20050# restored at link time.
20051variables_saved_for_relink=$lt_variables_saved_for_relink
20052
20053# Do we need the "lib" prefix for modules?
20054need_lib_prefix=$need_lib_prefix
20055
20056# Do we need a version for libraries?
20057need_version=$need_version
20058
20059# Library versioning type.
20060version_type=$version_type
20061
20062# Shared library runtime path variable.
20063runpath_var=$runpath_var
20064
20065# Shared library path variable.
20066shlibpath_var=$shlibpath_var
20067
20068# Is shlibpath searched before the hard-coded library search path?
20069shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20070
20071# Format of library name prefix.
20072libname_spec=$lt_libname_spec
20073
20074# List of archive names.  First name is the real one, the rest are links.
20075# The last name is the one that the linker finds with -lNAME
20076library_names_spec=$lt_library_names_spec
20077
20078# The coded name of the library, if different from the real name.
20079soname_spec=$lt_soname_spec
20080
20081# Permission mode override for installation of shared libraries.
20082install_override_mode=$lt_install_override_mode
20083
20084# Command to use after installation of a shared archive.
20085postinstall_cmds=$lt_postinstall_cmds
20086
20087# Command to use after uninstallation of a shared archive.
20088postuninstall_cmds=$lt_postuninstall_cmds
20089
20090# Commands used to finish a libtool library installation in a directory.
20091finish_cmds=$lt_finish_cmds
20092
20093# As "finish_cmds", except a single script fragment to be evaled but
20094# not shown.
20095finish_eval=$lt_finish_eval
20096
20097# Whether we should hardcode library paths into libraries.
20098hardcode_into_libs=$hardcode_into_libs
20099
20100# Compile-time system search path for libraries.
20101sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20102
20103# Run-time system search path for libraries.
20104sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20105
20106# Whether dlopen is supported.
20107dlopen_support=$enable_dlopen
20108
20109# Whether dlopen of programs is supported.
20110dlopen_self=$enable_dlopen_self
20111
20112# Whether dlopen of statically linked programs is supported.
20113dlopen_self_static=$enable_dlopen_self_static
20114
20115# Commands to strip libraries.
20116old_striplib=$lt_old_striplib
20117striplib=$lt_striplib
20118
20119
20120# The linker used to build libraries.
20121LD=$lt_LD
20122
20123# How to create reloadable object files.
20124reload_flag=$lt_reload_flag
20125reload_cmds=$lt_reload_cmds
20126
20127# Commands used to build an old-style archive.
20128old_archive_cmds=$lt_old_archive_cmds
20129
20130# A language specific compiler.
20131CC=$lt_compiler
20132
20133# Is the compiler the GNU compiler?
20134with_gcc=$GCC
20135
20136# Compiler flag to turn off builtin functions.
20137no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20138
20139# Additional compiler flags for building library objects.
20140pic_flag=$lt_lt_prog_compiler_pic
20141
20142# How to pass a linker flag through the compiler.
20143wl=$lt_lt_prog_compiler_wl
20144
20145# Compiler flag to prevent dynamic linking.
20146link_static_flag=$lt_lt_prog_compiler_static
20147
20148# Does compiler simultaneously support -c and -o options?
20149compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20150
20151# Whether or not to add -lc for building shared libraries.
20152build_libtool_need_lc=$archive_cmds_need_lc
20153
20154# Whether or not to disallow shared libs when runtime libs are static.
20155allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20156
20157# Compiler flag to allow reflexive dlopens.
20158export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20159
20160# Compiler flag to generate shared objects directly from archives.
20161whole_archive_flag_spec=$lt_whole_archive_flag_spec
20162
20163# Whether the compiler copes with passing no objects directly.
20164compiler_needs_object=$lt_compiler_needs_object
20165
20166# Create an old-style archive from a shared archive.
20167old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20168
20169# Create a temporary old-style archive to link instead of a shared archive.
20170old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20171
20172# Commands used to build a shared archive.
20173archive_cmds=$lt_archive_cmds
20174archive_expsym_cmds=$lt_archive_expsym_cmds
20175
20176# Commands used to build a loadable module if different from building
20177# a shared archive.
20178module_cmds=$lt_module_cmds
20179module_expsym_cmds=$lt_module_expsym_cmds
20180
20181# Whether we are building with GNU ld or not.
20182with_gnu_ld=$lt_with_gnu_ld
20183
20184# Flag that allows shared libraries with undefined symbols to be built.
20185allow_undefined_flag=$lt_allow_undefined_flag
20186
20187# Flag that enforces no undefined symbols.
20188no_undefined_flag=$lt_no_undefined_flag
20189
20190# Flag to hardcode \$libdir into a binary during linking.
20191# This must work even if \$libdir does not exist
20192hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20193
20194# Whether we need a single "-rpath" flag with a separated argument.
20195hardcode_libdir_separator=$lt_hardcode_libdir_separator
20196
20197# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20198# DIR into the resulting binary.
20199hardcode_direct=$hardcode_direct
20200
20201# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20202# DIR into the resulting binary and the resulting library dependency is
20203# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20204# library is relocated.
20205hardcode_direct_absolute=$hardcode_direct_absolute
20206
20207# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20208# into the resulting binary.
20209hardcode_minus_L=$hardcode_minus_L
20210
20211# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20212# into the resulting binary.
20213hardcode_shlibpath_var=$hardcode_shlibpath_var
20214
20215# Set to "yes" if building a shared library automatically hardcodes DIR
20216# into the library and all subsequent libraries and executables linked
20217# against it.
20218hardcode_automatic=$hardcode_automatic
20219
20220# Set to yes if linker adds runtime paths of dependent libraries
20221# to runtime path list.
20222inherit_rpath=$inherit_rpath
20223
20224# Whether libtool must link a program against all its dependency libraries.
20225link_all_deplibs=$link_all_deplibs
20226
20227# Set to "yes" if exported symbols are required.
20228always_export_symbols=$always_export_symbols
20229
20230# The commands to list exported symbols.
20231export_symbols_cmds=$lt_export_symbols_cmds
20232
20233# Symbols that should not be listed in the preloaded symbols.
20234exclude_expsyms=$lt_exclude_expsyms
20235
20236# Symbols that must always be exported.
20237include_expsyms=$lt_include_expsyms
20238
20239# Commands necessary for linking programs (against libraries) with templates.
20240prelink_cmds=$lt_prelink_cmds
20241
20242# Commands necessary for finishing linking programs.
20243postlink_cmds=$lt_postlink_cmds
20244
20245# Specify filename containing input files.
20246file_list_spec=$lt_file_list_spec
20247
20248# How to hardcode a shared library path into an executable.
20249hardcode_action=$hardcode_action
20250
20251# ### END LIBTOOL CONFIG
20252
20253_LT_EOF
20254
20255  case $host_os in
20256  aix3*)
20257    cat <<\_LT_EOF >> "$cfgfile"
20258# AIX sometimes has problems with the GCC collect2 program.  For some
20259# reason, if we set the COLLECT_NAMES environment variable, the problems
20260# vanish in a puff of smoke.
20261if test "X${COLLECT_NAMES+set}" != Xset; then
20262  COLLECT_NAMES=
20263  export COLLECT_NAMES
20264fi
20265_LT_EOF
20266    ;;
20267  esac
20268
20269
20270ltmain="$ac_aux_dir/ltmain.sh"
20271
20272
20273  # We use sed instead of cat because bash on DJGPP gets confused if
20274  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20275  # text mode, it properly converts lines to CR/LF.  This bash problem
20276  # is reportedly fixed, but why not run on old versions too?
20277  sed '$q' "$ltmain" >> "$cfgfile" \
20278     || (rm -f "$cfgfile"; exit 1)
20279
20280  if test x"$xsi_shell" = xyes; then
20281  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20282func_dirname ()\
20283{\
20284\    case ${1} in\
20285\      */*) func_dirname_result="${1%/*}${2}" ;;\
20286\      *  ) func_dirname_result="${3}" ;;\
20287\    esac\
20288} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20289  && mv -f "$cfgfile.tmp" "$cfgfile" \
20290    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20291test 0 -eq $? || _lt_function_replace_fail=:
20292
20293
20294  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20295func_basename ()\
20296{\
20297\    func_basename_result="${1##*/}"\
20298} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20299  && mv -f "$cfgfile.tmp" "$cfgfile" \
20300    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20301test 0 -eq $? || _lt_function_replace_fail=:
20302
20303
20304  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20305func_dirname_and_basename ()\
20306{\
20307\    case ${1} in\
20308\      */*) func_dirname_result="${1%/*}${2}" ;;\
20309\      *  ) func_dirname_result="${3}" ;;\
20310\    esac\
20311\    func_basename_result="${1##*/}"\
20312} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20313  && mv -f "$cfgfile.tmp" "$cfgfile" \
20314    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20315test 0 -eq $? || _lt_function_replace_fail=:
20316
20317
20318  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20319func_stripname ()\
20320{\
20321\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20322\    # positional parameters, so assign one to ordinary parameter first.\
20323\    func_stripname_result=${3}\
20324\    func_stripname_result=${func_stripname_result#"${1}"}\
20325\    func_stripname_result=${func_stripname_result%"${2}"}\
20326} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20327  && mv -f "$cfgfile.tmp" "$cfgfile" \
20328    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20329test 0 -eq $? || _lt_function_replace_fail=:
20330
20331
20332  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20333func_split_long_opt ()\
20334{\
20335\    func_split_long_opt_name=${1%%=*}\
20336\    func_split_long_opt_arg=${1#*=}\
20337} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20338  && mv -f "$cfgfile.tmp" "$cfgfile" \
20339    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20340test 0 -eq $? || _lt_function_replace_fail=:
20341
20342
20343  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20344func_split_short_opt ()\
20345{\
20346\    func_split_short_opt_arg=${1#??}\
20347\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20348} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20349  && mv -f "$cfgfile.tmp" "$cfgfile" \
20350    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20351test 0 -eq $? || _lt_function_replace_fail=:
20352
20353
20354  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20355func_lo2o ()\
20356{\
20357\    case ${1} in\
20358\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20359\      *)    func_lo2o_result=${1} ;;\
20360\    esac\
20361} # Extended-shell func_lo2o 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
20366
20367  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20368func_xform ()\
20369{\
20370    func_xform_result=${1%.*}.lo\
20371} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20372  && mv -f "$cfgfile.tmp" "$cfgfile" \
20373    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374test 0 -eq $? || _lt_function_replace_fail=:
20375
20376
20377  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20378func_arith ()\
20379{\
20380    func_arith_result=$(( $* ))\
20381} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20382  && mv -f "$cfgfile.tmp" "$cfgfile" \
20383    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20384test 0 -eq $? || _lt_function_replace_fail=:
20385
20386
20387  sed -e '/^func_len ()$/,/^} # func_len /c\
20388func_len ()\
20389{\
20390    func_len_result=${#1}\
20391} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20392  && mv -f "$cfgfile.tmp" "$cfgfile" \
20393    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20394test 0 -eq $? || _lt_function_replace_fail=:
20395
20396fi
20397
20398if test x"$lt_shell_append" = xyes; then
20399  sed -e '/^func_append ()$/,/^} # func_append /c\
20400func_append ()\
20401{\
20402    eval "${1}+=\\${2}"\
20403} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20404  && mv -f "$cfgfile.tmp" "$cfgfile" \
20405    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20406test 0 -eq $? || _lt_function_replace_fail=:
20407
20408
20409  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20410func_append_quoted ()\
20411{\
20412\    func_quote_for_eval "${2}"\
20413\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20414} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20415  && mv -f "$cfgfile.tmp" "$cfgfile" \
20416    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20417test 0 -eq $? || _lt_function_replace_fail=:
20418
20419
20420  # Save a `func_append' function call where possible by direct use of '+='
20421  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20422    && mv -f "$cfgfile.tmp" "$cfgfile" \
20423      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20424  test 0 -eq $? || _lt_function_replace_fail=:
20425else
20426  # Save a `func_append' function call even when '+=' is not available
20427  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20428    && mv -f "$cfgfile.tmp" "$cfgfile" \
20429      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20430  test 0 -eq $? || _lt_function_replace_fail=:
20431fi
20432
20433if test x"$_lt_function_replace_fail" = x":"; then
20434  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20435$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20436fi
20437
20438
20439   mv -f "$cfgfile" "$ofile" ||
20440    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20441  chmod +x "$ofile"
20442
20443 ;;
20444
20445  esac
20446done # for ac_tag
20447
20448
20449as_fn_exit 0
20450_ACEOF
20451ac_clean_files=$ac_clean_files_save
20452
20453test $ac_write_fail = 0 ||
20454  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20455
20456
20457# configure is writing to config.log, and then calls config.status.
20458# config.status does its own redirection, appending to config.log.
20459# Unfortunately, on DOS this fails, as config.log is still kept open
20460# by configure, so config.status won't be able to write to it; its
20461# output is simply discarded.  So we exec the FD to /dev/null,
20462# effectively closing config.log, so it can be properly (re)opened and
20463# appended to by config.status.  When coming back to configure, we
20464# need to make the FD available again.
20465if test "$no_create" != yes; then
20466  ac_cs_success=:
20467  ac_config_status_args=
20468  test "$silent" = yes &&
20469    ac_config_status_args="$ac_config_status_args --quiet"
20470  exec 5>/dev/null
20471  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20472  exec 5>>config.log
20473  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20474  # would make configure fail if this is the last instruction.
20475  $ac_cs_success || as_fn_exit 1
20476fi
20477if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20478  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20479$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20480fi
20481
20482
20483echo ""
20484echo "        prefix:              $prefix"
20485echo "        exec_prefix:         $exec_prefix"
20486echo "        libdir:              $libdir"
20487echo "        includedir:          $includedir"
20488
20489
20490echo ""
20491echo "        Kernel modesetting:  $DRM_MODE"
20492
20493echo ""
20494echo "        CFLAGS:              $CFLAGS"
20495echo "        CXXFLAGS:            $CXXFLAGS"
20496echo "        Macros:              $DEFINES"
20497
20498echo ""
20499echo "        Run '${MAKE-make}' to build xf86-video-ati"
20500echo ""
20501