configure revision bd304fc0
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-nv 2.1.20.
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-nv'
573PACKAGE_TARNAME='xf86-video-nv'
574PACKAGE_VERSION='2.1.20'
575PACKAGE_STRING='xf86-video-nv 2.1.20'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620DRIVER_NAME
621moduledir
622XAA_FALSE
623XAA_TRUE
624PCIACCESS_LIBS
625PCIACCESS_CFLAGS
626HAVE_XEXTPROTO_71_FALSE
627HAVE_XEXTPROTO_71_TRUE
628XEXT_LIBS
629XEXT_CFLAGS
630XORG_LIBS
631XORG_CFLAGS
632OTOOL64
633OTOOL
634LIPO
635NMEDIT
636DSYMUTIL
637MANIFEST_TOOL
638RANLIB
639ac_ct_AR
640AR
641DLLTOOL
642OBJDUMP
643LN_S
644NM
645ac_ct_DUMPBIN
646DUMPBIN
647LD
648FGREP
649LIBTOOL
650MAINT
651MAINTAINER_MODE_FALSE
652MAINTAINER_MODE_TRUE
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663am__untar
664am__tar
665AMTAR
666am__leading_dot
667SET_MAKE
668AWK
669mkdir_p
670MKDIR_P
671INSTALL_STRIP_PROGRAM
672STRIP
673install_sh
674MAKEINFO
675AUTOHEADER
676AUTOMAKE
677AUTOCONF
678ACLOCAL
679VERSION
680PACKAGE
681CYGPATH_W
682am__isrc
683AM_BACKSLASH
684AM_DEFAULT_VERBOSITY
685AM_DEFAULT_V
686AM_V
687MAN_SUBSTS
688XORG_MAN_PAGE
689ADMIN_MAN_DIR
690DRIVER_MAN_DIR
691MISC_MAN_DIR
692FILE_MAN_DIR
693LIB_MAN_DIR
694APP_MAN_DIR
695ADMIN_MAN_SUFFIX
696DRIVER_MAN_SUFFIX
697MISC_MAN_SUFFIX
698FILE_MAN_SUFFIX
699LIB_MAN_SUFFIX
700APP_MAN_SUFFIX
701SED
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710INSTALL_CMD
711PKG_CONFIG_LIBDIR
712PKG_CONFIG_PATH
713PKG_CONFIG
714CHANGELOG_CMD
715STRICT_CFLAGS
716CWARNFLAGS
717BASE_CFLAGS
718EGREP
719GREP
720CPP
721OBJEXT
722EXEEXT
723ac_ct_CC
724CPPFLAGS
725LDFLAGS
726CFLAGS
727CC
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
769ac_subst_files=''
770ac_user_opts='
771enable_option_checking
772enable_selective_werror
773enable_strict_compilation
774enable_silent_rules
775enable_dependency_tracking
776enable_maintainer_mode
777enable_static
778enable_shared
779with_pic
780enable_fast_install
781with_gnu_ld
782with_sysroot
783enable_libtool_lock
784with_xorg_module_dir
785enable_xaa
786'
787      ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CPP
796PKG_CONFIG
797PKG_CONFIG_PATH
798PKG_CONFIG_LIBDIR
799XORG_CFLAGS
800XORG_LIBS
801XEXT_CFLAGS
802XEXT_LIBS
803PCIACCESS_CFLAGS
804PCIACCESS_LIBS'
805
806
807# Initialize some variables set by options.
808ac_init_help=
809ac_init_version=false
810ac_unrecognized_opts=
811ac_unrecognized_sep=
812# The variables have the same names as the options, with
813# dashes changed to underlines.
814cache_file=/dev/null
815exec_prefix=NONE
816no_create=
817no_recursion=
818prefix=NONE
819program_prefix=NONE
820program_suffix=NONE
821program_transform_name=s,x,x,
822silent=
823site=
824srcdir=
825verbose=
826x_includes=NONE
827x_libraries=NONE
828
829# Installation directory options.
830# These are left unexpanded so users can "make install exec_prefix=/foo"
831# and all the variables that are supposed to be based on exec_prefix
832# by default will actually change.
833# Use braces instead of parens because sh, perl, etc. also accept them.
834# (The list follows the same order as the GNU Coding Standards.)
835bindir='${exec_prefix}/bin'
836sbindir='${exec_prefix}/sbin'
837libexecdir='${exec_prefix}/libexec'
838datarootdir='${prefix}/share'
839datadir='${datarootdir}'
840sysconfdir='${prefix}/etc'
841sharedstatedir='${prefix}/com'
842localstatedir='${prefix}/var'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859  # If the previous option needs an argument, assign it.
860  if test -n "$ac_prev"; then
861    eval $ac_prev=\$ac_option
862    ac_prev=
863    continue
864  fi
865
866  case $ac_option in
867  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868  *=)   ac_optarg= ;;
869  *)    ac_optarg=yes ;;
870  esac
871
872  # Accept the important Cygnus configure options, so we can diagnose typos.
873
874  case $ac_dashdash$ac_option in
875  --)
876    ac_dashdash=yes ;;
877
878  -bindir | --bindir | --bindi | --bind | --bin | --bi)
879    ac_prev=bindir ;;
880  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881    bindir=$ac_optarg ;;
882
883  -build | --build | --buil | --bui | --bu)
884    ac_prev=build_alias ;;
885  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886    build_alias=$ac_optarg ;;
887
888  -cache-file | --cache-file | --cache-fil | --cache-fi \
889  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890    ac_prev=cache_file ;;
891  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893    cache_file=$ac_optarg ;;
894
895  --config-cache | -C)
896    cache_file=config.cache ;;
897
898  -datadir | --datadir | --datadi | --datad)
899    ac_prev=datadir ;;
900  -datadir=* | --datadir=* | --datadi=* | --datad=*)
901    datadir=$ac_optarg ;;
902
903  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904  | --dataroo | --dataro | --datar)
905    ac_prev=datarootdir ;;
906  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908    datarootdir=$ac_optarg ;;
909
910  -disable-* | --disable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: $ac_useropt"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=no ;;
925
926  -docdir | --docdir | --docdi | --doc | --do)
927    ac_prev=docdir ;;
928  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929    docdir=$ac_optarg ;;
930
931  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932    ac_prev=dvidir ;;
933  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934    dvidir=$ac_optarg ;;
935
936  -enable-* | --enable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: $ac_useropt"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948	 ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=\$ac_optarg ;;
951
952  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954  | --exec | --exe | --ex)
955    ac_prev=exec_prefix ;;
956  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958  | --exec=* | --exe=* | --ex=*)
959    exec_prefix=$ac_optarg ;;
960
961  -gas | --gas | --ga | --g)
962    # Obsolete; use --with-gas.
963    with_gas=yes ;;
964
965  -help | --help | --hel | --he | -h)
966    ac_init_help=long ;;
967  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968    ac_init_help=recursive ;;
969  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970    ac_init_help=short ;;
971
972  -host | --host | --hos | --ho)
973    ac_prev=host_alias ;;
974  -host=* | --host=* | --hos=* | --ho=*)
975    host_alias=$ac_optarg ;;
976
977  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978    ac_prev=htmldir ;;
979  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980  | --ht=*)
981    htmldir=$ac_optarg ;;
982
983  -includedir | --includedir | --includedi | --included | --include \
984  | --includ | --inclu | --incl | --inc)
985    ac_prev=includedir ;;
986  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987  | --includ=* | --inclu=* | --incl=* | --inc=*)
988    includedir=$ac_optarg ;;
989
990  -infodir | --infodir | --infodi | --infod | --info | --inf)
991    ac_prev=infodir ;;
992  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993    infodir=$ac_optarg ;;
994
995  -libdir | --libdir | --libdi | --libd)
996    ac_prev=libdir ;;
997  -libdir=* | --libdir=* | --libdi=* | --libd=*)
998    libdir=$ac_optarg ;;
999
1000  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001  | --libexe | --libex | --libe)
1002    ac_prev=libexecdir ;;
1003  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004  | --libexe=* | --libex=* | --libe=*)
1005    libexecdir=$ac_optarg ;;
1006
1007  -localedir | --localedir | --localedi | --localed | --locale)
1008    ac_prev=localedir ;;
1009  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010    localedir=$ac_optarg ;;
1011
1012  -localstatedir | --localstatedir | --localstatedi | --localstated \
1013  | --localstate | --localstat | --localsta | --localst | --locals)
1014    ac_prev=localstatedir ;;
1015  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017    localstatedir=$ac_optarg ;;
1018
1019  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020    ac_prev=mandir ;;
1021  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022    mandir=$ac_optarg ;;
1023
1024  -nfp | --nfp | --nf)
1025    # Obsolete; use --without-fp.
1026    with_fp=no ;;
1027
1028  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029  | --no-cr | --no-c | -n)
1030    no_create=yes ;;
1031
1032  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034    no_recursion=yes ;;
1035
1036  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038  | --oldin | --oldi | --old | --ol | --o)
1039    ac_prev=oldincludedir ;;
1040  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043    oldincludedir=$ac_optarg ;;
1044
1045  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046    ac_prev=prefix ;;
1047  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048    prefix=$ac_optarg ;;
1049
1050  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051  | --program-pre | --program-pr | --program-p)
1052    ac_prev=program_prefix ;;
1053  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055    program_prefix=$ac_optarg ;;
1056
1057  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058  | --program-suf | --program-su | --program-s)
1059    ac_prev=program_suffix ;;
1060  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062    program_suffix=$ac_optarg ;;
1063
1064  -program-transform-name | --program-transform-name \
1065  | --program-transform-nam | --program-transform-na \
1066  | --program-transform-n | --program-transform- \
1067  | --program-transform | --program-transfor \
1068  | --program-transfo | --program-transf \
1069  | --program-trans | --program-tran \
1070  | --progr-tra | --program-tr | --program-t)
1071    ac_prev=program_transform_name ;;
1072  -program-transform-name=* | --program-transform-name=* \
1073  | --program-transform-nam=* | --program-transform-na=* \
1074  | --program-transform-n=* | --program-transform-=* \
1075  | --program-transform=* | --program-transfor=* \
1076  | --program-transfo=* | --program-transf=* \
1077  | --program-trans=* | --program-tran=* \
1078  | --progr-tra=* | --program-tr=* | --program-t=*)
1079    program_transform_name=$ac_optarg ;;
1080
1081  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082    ac_prev=pdfdir ;;
1083  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084    pdfdir=$ac_optarg ;;
1085
1086  -psdir | --psdir | --psdi | --psd | --ps)
1087    ac_prev=psdir ;;
1088  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089    psdir=$ac_optarg ;;
1090
1091  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092  | -silent | --silent | --silen | --sile | --sil)
1093    silent=yes ;;
1094
1095  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096    ac_prev=sbindir ;;
1097  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098  | --sbi=* | --sb=*)
1099    sbindir=$ac_optarg ;;
1100
1101  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103  | --sharedst | --shareds | --shared | --share | --shar \
1104  | --sha | --sh)
1105    ac_prev=sharedstatedir ;;
1106  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109  | --sha=* | --sh=*)
1110    sharedstatedir=$ac_optarg ;;
1111
1112  -site | --site | --sit)
1113    ac_prev=site ;;
1114  -site=* | --site=* | --sit=*)
1115    site=$ac_optarg ;;
1116
1117  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118    ac_prev=srcdir ;;
1119  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120    srcdir=$ac_optarg ;;
1121
1122  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123  | --syscon | --sysco | --sysc | --sys | --sy)
1124    ac_prev=sysconfdir ;;
1125  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127    sysconfdir=$ac_optarg ;;
1128
1129  -target | --target | --targe | --targ | --tar | --ta | --t)
1130    ac_prev=target_alias ;;
1131  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132    target_alias=$ac_optarg ;;
1133
1134  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135    verbose=yes ;;
1136
1137  -version | --version | --versio | --versi | --vers | -V)
1138    ac_init_version=: ;;
1139
1140  -with-* | --with-*)
1141    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142    # Reject names that are not valid shell variable names.
1143    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144      as_fn_error $? "invalid package name: $ac_useropt"
1145    ac_useropt_orig=$ac_useropt
1146    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147    case $ac_user_opts in
1148      *"
1149"with_$ac_useropt"
1150"*) ;;
1151      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152	 ac_unrecognized_sep=', ';;
1153    esac
1154    eval with_$ac_useropt=\$ac_optarg ;;
1155
1156  -without-* | --without-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: $ac_useropt"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=no ;;
1171
1172  --x)
1173    # Obsolete; use --with-x.
1174    with_x=yes ;;
1175
1176  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177  | --x-incl | --x-inc | --x-in | --x-i)
1178    ac_prev=x_includes ;;
1179  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181    x_includes=$ac_optarg ;;
1182
1183  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185    ac_prev=x_libraries ;;
1186  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188    x_libraries=$ac_optarg ;;
1189
1190  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192    ;;
1193
1194  *=*)
1195    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196    # Reject names that are not valid shell variable names.
1197    case $ac_envvar in #(
1198      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200    esac
1201    eval $ac_envvar=\$ac_optarg
1202    export $ac_envvar ;;
1203
1204  *)
1205    # FIXME: should be removed in autoconf 3.0.
1206    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210    ;;
1211
1212  esac
1213done
1214
1215if test -n "$ac_prev"; then
1216  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217  as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221  case $enable_option_checking in
1222    no) ;;
1223    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225  esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230		datadir sysconfdir sharedstatedir localstatedir includedir \
1231		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232		libdir localedir mandir
1233do
1234  eval ac_val=\$$ac_var
1235  # Remove trailing slashes.
1236  case $ac_val in
1237    */ )
1238      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239      eval $ac_var=\$ac_val;;
1240  esac
1241  # Be sure to have absolute directory names.
1242  case $ac_val in
1243    [\\/$]* | ?:[\\/]* )  continue;;
1244    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245  esac
1246  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258  if test "x$build_alias" = x; then
1259    cross_compiling=maybe
1260    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1261    If a cross compiler is detected then cross compile mode will be used" >&2
1262  elif test "x$build_alias" != "x$host_alias"; then
1263    cross_compiling=yes
1264  fi
1265fi
1266
1267ac_tool_prefix=
1268test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270test "$silent" = yes && exec 6>/dev/null
1271
1272
1273ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274ac_ls_di=`ls -di .` &&
1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276  as_fn_error $? "working directory cannot be determined"
1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278  as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281# Find the source files, if location was not specified.
1282if test -z "$srcdir"; then
1283  ac_srcdir_defaulted=yes
1284  # Try the directory containing this script, then the parent directory.
1285  ac_confdir=`$as_dirname -- "$as_myself" ||
1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287	 X"$as_myself" : 'X\(//\)[^/]' \| \
1288	 X"$as_myself" : 'X\(//\)$' \| \
1289	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290$as_echo X"$as_myself" |
1291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)[^/].*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\/\)$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\).*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  s/.*/./; q'`
1308  srcdir=$ac_confdir
1309  if test ! -r "$srcdir/$ac_unique_file"; then
1310    srcdir=..
1311  fi
1312else
1313  ac_srcdir_defaulted=no
1314fi
1315if test ! -r "$srcdir/$ac_unique_file"; then
1316  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318fi
1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320ac_abs_confdir=`(
1321	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322	pwd)`
1323# When building in place, set srcdir=.
1324if test "$ac_abs_confdir" = "$ac_pwd"; then
1325  srcdir=.
1326fi
1327# Remove unnecessary trailing slashes from srcdir.
1328# Double slashes in file names in object file debugging info
1329# mess up M-x gdb in Emacs.
1330case $srcdir in
1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332esac
1333for ac_var in $ac_precious_vars; do
1334  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_env_${ac_var}_value=\$${ac_var}
1336  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338done
1339
1340#
1341# Report the --help message.
1342#
1343if test "$ac_init_help" = "long"; then
1344  # Omit some internal or obsolete options to make the list less imposing.
1345  # This message is too long to be a string in the A/UX 3.1 sh.
1346  cat <<_ACEOF
1347\`configure' configures xf86-video-nv 2.1.20 to adapt to many kinds of systems.
1348
1349Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352VAR=VALUE.  See below for descriptions of some of the useful variables.
1353
1354Defaults for the options are specified in brackets.
1355
1356Configuration:
1357  -h, --help              display this help and exit
1358      --help=short        display options specific to this package
1359      --help=recursive    display the short help of all the included packages
1360  -V, --version           display version information and exit
1361  -q, --quiet, --silent   do not print \`checking ...' messages
1362      --cache-file=FILE   cache test results in FILE [disabled]
1363  -C, --config-cache      alias for \`--cache-file=config.cache'
1364  -n, --no-create         do not create output files
1365      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1366
1367Installation directories:
1368  --prefix=PREFIX         install architecture-independent files in PREFIX
1369                          [$ac_default_prefix]
1370  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1371                          [PREFIX]
1372
1373By default, \`make install' will install all the files in
1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1375an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376for instance \`--prefix=\$HOME'.
1377
1378For better control, use the options below.
1379
1380Fine tuning of the installation directories:
1381  --bindir=DIR            user executables [EPREFIX/bin]
1382  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1383  --libexecdir=DIR        program executables [EPREFIX/libexec]
1384  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1385  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1386  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1387  --libdir=DIR            object code libraries [EPREFIX/lib]
1388  --includedir=DIR        C header files [PREFIX/include]
1389  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1390  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1391  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1392  --infodir=DIR           info documentation [DATAROOTDIR/info]
1393  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1394  --mandir=DIR            man documentation [DATAROOTDIR/man]
1395  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-nv]
1396  --htmldir=DIR           html documentation [DOCDIR]
1397  --dvidir=DIR            dvi documentation [DOCDIR]
1398  --pdfdir=DIR            pdf documentation [DOCDIR]
1399  --psdir=DIR             ps documentation [DOCDIR]
1400_ACEOF
1401
1402  cat <<\_ACEOF
1403
1404Program names:
1405  --program-prefix=C            prepend C to installed program names
1406  --program-suffix=SUFFIX            append SUFFIX to installed program names
1407  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1408
1409System types:
1410  --build=BUILD     configure for building on BUILD [guessed]
1411  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1412_ACEOF
1413fi
1414
1415if test -n "$ac_init_help"; then
1416  case $ac_init_help in
1417     short | recursive ) echo "Configuration of xf86-video-nv 2.1.20:";;
1418   esac
1419  cat <<\_ACEOF
1420
1421Optional Features:
1422  --disable-option-checking  ignore unrecognized --enable/--with options
1423  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425  --disable-selective-werror
1426                          Turn off selective compiler errors. (default:
1427                          enabled)
1428  --enable-strict-compilation
1429                          Enable all warnings from compiler and make them
1430                          errors (default: disabled)
1431  --enable-silent-rules          less verbose build output (undo: `make V=1')
1432  --disable-silent-rules         verbose build output (undo: `make V=0')
1433  --disable-dependency-tracking  speeds up one-time build
1434  --enable-dependency-tracking   do not reject slow dependency extractors
1435  --enable-maintainer-mode  enable make rules and dependencies not useful
1436			  (and sometimes confusing) to the casual installer
1437  --enable-static[=PKGS]  build static libraries [default=no]
1438  --enable-shared[=PKGS]  build shared libraries [default=yes]
1439  --enable-fast-install[=PKGS]
1440                          optimize for fast installation [default=yes]
1441  --disable-libtool-lock  avoid locking (might break parallel builds)
1442  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1443                          [default=auto]
1444
1445Optional Packages:
1446  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1447  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1448  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1449                          both]
1450  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1451  --with-sysroot=DIR Search for dependent libraries within DIR
1452                        (or the compiler's sysroot if not specified).
1453  --with-xorg-module-dir=DIR
1454                          Default xorg module directory
1455                          [[default=$libdir/xorg/modules]]
1456
1457Some influential environment variables:
1458  CC          C compiler command
1459  CFLAGS      C compiler flags
1460  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461              nonstandard directory <lib dir>
1462  LIBS        libraries to pass to the linker, e.g. -l<library>
1463  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464              you have headers in a nonstandard directory <include dir>
1465  CPP         C preprocessor
1466  PKG_CONFIG  path to pkg-config utility
1467  PKG_CONFIG_PATH
1468              directories to add to pkg-config's search path
1469  PKG_CONFIG_LIBDIR
1470              path overriding pkg-config's built-in search path
1471  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1472  XORG_LIBS   linker flags for XORG, overriding pkg-config
1473  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1474  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1475  PCIACCESS_CFLAGS
1476              C compiler flags for PCIACCESS, overriding pkg-config
1477  PCIACCESS_LIBS
1478              linker flags for PCIACCESS, overriding pkg-config
1479
1480Use these variables to override the choices made by `configure' or to help
1481it to find libraries and programs with nonstandard names/locations.
1482
1483Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1484_ACEOF
1485ac_status=$?
1486fi
1487
1488if test "$ac_init_help" = "recursive"; then
1489  # If there are subdirs, report their specific --help.
1490  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491    test -d "$ac_dir" ||
1492      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493      continue
1494    ac_builddir=.
1495
1496case "$ac_dir" in
1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498*)
1499  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500  # A ".." for each directory in $ac_dir_suffix.
1501  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502  case $ac_top_builddir_sub in
1503  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505  esac ;;
1506esac
1507ac_abs_top_builddir=$ac_pwd
1508ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509# for backward compatibility:
1510ac_top_builddir=$ac_top_build_prefix
1511
1512case $srcdir in
1513  .)  # We are building in place.
1514    ac_srcdir=.
1515    ac_top_srcdir=$ac_top_builddir_sub
1516    ac_abs_top_srcdir=$ac_pwd ;;
1517  [\\/]* | ?:[\\/]* )  # Absolute name.
1518    ac_srcdir=$srcdir$ac_dir_suffix;
1519    ac_top_srcdir=$srcdir
1520    ac_abs_top_srcdir=$srcdir ;;
1521  *) # Relative name.
1522    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523    ac_top_srcdir=$ac_top_build_prefix$srcdir
1524    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525esac
1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527
1528    cd "$ac_dir" || { ac_status=$?; continue; }
1529    # Check for guested configure.
1530    if test -f "$ac_srcdir/configure.gnu"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533    elif test -f "$ac_srcdir/configure"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure" --help=recursive
1536    else
1537      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538    fi || ac_status=$?
1539    cd "$ac_pwd" || { ac_status=$?; break; }
1540  done
1541fi
1542
1543test -n "$ac_init_help" && exit $ac_status
1544if $ac_init_version; then
1545  cat <<\_ACEOF
1546xf86-video-nv configure 2.1.20
1547generated by GNU Autoconf 2.68
1548
1549Copyright (C) 2010 Free Software Foundation, Inc.
1550This configure script is free software; the Free Software Foundation
1551gives unlimited permission to copy, distribute and modify it.
1552_ACEOF
1553  exit
1554fi
1555
1556## ------------------------ ##
1557## Autoconf initialization. ##
1558## ------------------------ ##
1559
1560# ac_fn_c_try_compile LINENO
1561# --------------------------
1562# Try to compile conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_compile ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext
1567  if { { ac_try="$ac_compile"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_compile") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest.$ac_objext; then :
1586  ac_retval=0
1587else
1588  $as_echo "$as_me: failed program was:" >&5
1589sed 's/^/| /' conftest.$ac_ext >&5
1590
1591	ac_retval=1
1592fi
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594  as_fn_set_status $ac_retval
1595
1596} # ac_fn_c_try_compile
1597
1598# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1599# ---------------------------------------------
1600# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1601# accordingly.
1602ac_fn_c_check_decl ()
1603{
1604  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605  as_decl_name=`echo $2|sed 's/ *(.*//'`
1606  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1608$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1609if eval \${$3+:} false; then :
1610  $as_echo_n "(cached) " >&6
1611else
1612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613/* end confdefs.h.  */
1614$4
1615int
1616main ()
1617{
1618#ifndef $as_decl_name
1619#ifdef __cplusplus
1620  (void) $as_decl_use;
1621#else
1622  (void) $as_decl_name;
1623#endif
1624#endif
1625
1626  ;
1627  return 0;
1628}
1629_ACEOF
1630if ac_fn_c_try_compile "$LINENO"; then :
1631  eval "$3=yes"
1632else
1633  eval "$3=no"
1634fi
1635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636fi
1637eval ac_res=\$$3
1638	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639$as_echo "$ac_res" >&6; }
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642} # ac_fn_c_check_decl
1643
1644# ac_fn_c_try_cpp LINENO
1645# ----------------------
1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_cpp ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  if { { ac_try="$ac_cpp conftest.$ac_ext"
1651case "(($ac_try" in
1652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653  *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658  ac_status=$?
1659  if test -s conftest.err; then
1660    grep -v '^ *+' conftest.err >conftest.er1
1661    cat conftest.er1 >&5
1662    mv -f conftest.er1 conftest.err
1663  fi
1664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665  test $ac_status = 0; } > conftest.i && {
1666	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667	 test ! -s conftest.err
1668       }; then :
1669  ac_retval=0
1670else
1671  $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674    ac_retval=1
1675fi
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677  as_fn_set_status $ac_retval
1678
1679} # ac_fn_c_try_cpp
1680
1681# ac_fn_c_try_run LINENO
1682# ----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684# that executables *can* be run.
1685ac_fn_c_try_run ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_link") 2>&5
1696  ac_status=$?
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699  { { case "(($ac_try" in
1700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701  *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705  (eval "$ac_try") 2>&5
1706  ac_status=$?
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; }; }; then :
1709  ac_retval=0
1710else
1711  $as_echo "$as_me: program exited with status $ac_status" >&5
1712       $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715       ac_retval=$ac_status
1716fi
1717  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719  as_fn_set_status $ac_retval
1720
1721} # ac_fn_c_try_run
1722
1723# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724# -------------------------------------------------------
1725# Tests whether HEADER exists and can be compiled using the include files in
1726# INCLUDES, setting the cache variable VAR accordingly.
1727ac_fn_c_check_header_compile ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
1732if eval \${$3+:} false; then :
1733  $as_echo_n "(cached) " >&6
1734else
1735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h.  */
1737$4
1738#include <$2>
1739_ACEOF
1740if ac_fn_c_try_compile "$LINENO"; then :
1741  eval "$3=yes"
1742else
1743  eval "$3=no"
1744fi
1745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746fi
1747eval ac_res=\$$3
1748	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749$as_echo "$ac_res" >&6; }
1750  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752} # ac_fn_c_check_header_compile
1753
1754# ac_fn_c_try_link LINENO
1755# -----------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_c_try_link ()
1758{
1759  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760  rm -f conftest.$ac_objext conftest$ac_exeext
1761  if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_link") 2>conftest.err
1769  ac_status=$?
1770  if test -s conftest.err; then
1771    grep -v '^ *+' conftest.err >conftest.er1
1772    cat conftest.er1 >&5
1773    mv -f conftest.er1 conftest.err
1774  fi
1775  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776  test $ac_status = 0; } && {
1777	 test -z "$ac_c_werror_flag" ||
1778	 test ! -s conftest.err
1779       } && test -s conftest$ac_exeext && {
1780	 test "$cross_compiling" = yes ||
1781	 $as_test_x conftest$ac_exeext
1782       }; then :
1783  ac_retval=0
1784else
1785  $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788	ac_retval=1
1789fi
1790  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792  # interfere with the next link command; also delete a directory that is
1793  # left behind by Apple's compiler.  We do this before executing the actions.
1794  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796  as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_link
1799
1800# ac_fn_c_check_func LINENO FUNC VAR
1801# ----------------------------------
1802# Tests whether FUNC exists, setting the cache variable VAR accordingly
1803ac_fn_c_check_func ()
1804{
1805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
1808if eval \${$3+:} false; then :
1809  $as_echo_n "(cached) " >&6
1810else
1811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1814   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1815#define $2 innocuous_$2
1816
1817/* System header to define __stub macros and hopefully few prototypes,
1818    which can conflict with char $2 (); below.
1819    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1820    <limits.h> exists even on freestanding compilers.  */
1821
1822#ifdef __STDC__
1823# include <limits.h>
1824#else
1825# include <assert.h>
1826#endif
1827
1828#undef $2
1829
1830/* Override any GCC internal prototype to avoid an error.
1831   Use char because int might match the return type of a GCC
1832   builtin and then its argument prototype would still apply.  */
1833#ifdef __cplusplus
1834extern "C"
1835#endif
1836char $2 ();
1837/* The GNU C library defines this for functions which it implements
1838    to always fail with ENOSYS.  Some functions are actually named
1839    something starting with __ and the normal name is an alias.  */
1840#if defined __stub_$2 || defined __stub___$2
1841choke me
1842#endif
1843
1844int
1845main ()
1846{
1847return $2 ();
1848  ;
1849  return 0;
1850}
1851_ACEOF
1852if ac_fn_c_try_link "$LINENO"; then :
1853  eval "$3=yes"
1854else
1855  eval "$3=no"
1856fi
1857rm -f core conftest.err conftest.$ac_objext \
1858    conftest$ac_exeext conftest.$ac_ext
1859fi
1860eval ac_res=\$$3
1861	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865} # ac_fn_c_check_func
1866
1867# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868# -------------------------------------------------------
1869# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870# the include files in INCLUDES and setting the cache variable VAR
1871# accordingly.
1872ac_fn_c_check_header_mongrel ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  if eval \${$3+:} false; then :
1876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
1878if eval \${$3+:} false; then :
1879  $as_echo_n "(cached) " >&6
1880fi
1881eval ac_res=\$$3
1882	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883$as_echo "$ac_res" >&6; }
1884else
1885  # Is the header compilable?
1886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887$as_echo_n "checking $2 usability... " >&6; }
1888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h.  */
1890$4
1891#include <$2>
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  ac_header_compiler=yes
1895else
1896  ac_header_compiler=no
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900$as_echo "$ac_header_compiler" >&6; }
1901
1902# Is the header present?
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904$as_echo_n "checking $2 presence... " >&6; }
1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907#include <$2>
1908_ACEOF
1909if ac_fn_c_try_cpp "$LINENO"; then :
1910  ac_header_preproc=yes
1911else
1912  ac_header_preproc=no
1913fi
1914rm -f conftest.err conftest.i conftest.$ac_ext
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916$as_echo "$ac_header_preproc" >&6; }
1917
1918# So?  What about this header?
1919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920  yes:no: )
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925    ;;
1926  no:yes:* )
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1930$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1934$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937( $as_echo "## ---------------------------------------------------------------------- ##
1938## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1939## ---------------------------------------------------------------------- ##"
1940     ) | sed "s/^/$as_me: WARNING:     /" >&2
1941    ;;
1942esac
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  eval "$3=\$ac_header_compiler"
1949fi
1950eval ac_res=\$$3
1951	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953fi
1954  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956} # ac_fn_c_check_header_mongrel
1957cat >config.log <<_ACEOF
1958This file contains any messages produced by compilers while
1959running configure, to aid debugging if configure makes a mistake.
1960
1961It was created by xf86-video-nv $as_me 2.1.20, which was
1962generated by GNU Autoconf 2.68.  Invocation command line was
1963
1964  $ $0 $@
1965
1966_ACEOF
1967exec 5>>config.log
1968{
1969cat <<_ASUNAME
1970## --------- ##
1971## Platform. ##
1972## --------- ##
1973
1974hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1975uname -m = `(uname -m) 2>/dev/null || echo unknown`
1976uname -r = `(uname -r) 2>/dev/null || echo unknown`
1977uname -s = `(uname -s) 2>/dev/null || echo unknown`
1978uname -v = `(uname -v) 2>/dev/null || echo unknown`
1979
1980/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1981/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1982
1983/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1984/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1985/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1986/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1987/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1988/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1989/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1990
1991_ASUNAME
1992
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998    $as_echo "PATH: $as_dir"
1999  done
2000IFS=$as_save_IFS
2001
2002} >&5
2003
2004cat >&5 <<_ACEOF
2005
2006
2007## ----------- ##
2008## Core tests. ##
2009## ----------- ##
2010
2011_ACEOF
2012
2013
2014# Keep a trace of the command line.
2015# Strip out --no-create and --no-recursion so they do not pile up.
2016# Strip out --silent because we don't want to record it for future runs.
2017# Also quote any args containing shell meta-characters.
2018# Make two passes to allow for proper duplicate-argument suppression.
2019ac_configure_args=
2020ac_configure_args0=
2021ac_configure_args1=
2022ac_must_keep_next=false
2023for ac_pass in 1 2
2024do
2025  for ac_arg
2026  do
2027    case $ac_arg in
2028    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2029    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2030    | -silent | --silent | --silen | --sile | --sil)
2031      continue ;;
2032    *\'*)
2033      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2034    esac
2035    case $ac_pass in
2036    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2037    2)
2038      as_fn_append ac_configure_args1 " '$ac_arg'"
2039      if test $ac_must_keep_next = true; then
2040	ac_must_keep_next=false # Got value, back to normal.
2041      else
2042	case $ac_arg in
2043	  *=* | --config-cache | -C | -disable-* | --disable-* \
2044	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2045	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2046	  | -with-* | --with-* | -without-* | --without-* | --x)
2047	    case "$ac_configure_args0 " in
2048	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2049	    esac
2050	    ;;
2051	  -* ) ac_must_keep_next=true ;;
2052	esac
2053      fi
2054      as_fn_append ac_configure_args " '$ac_arg'"
2055      ;;
2056    esac
2057  done
2058done
2059{ ac_configure_args0=; unset ac_configure_args0;}
2060{ ac_configure_args1=; unset ac_configure_args1;}
2061
2062# When interrupted or exit'd, cleanup temporary files, and complete
2063# config.log.  We remove comments because anyway the quotes in there
2064# would cause problems or look ugly.
2065# WARNING: Use '\'' to represent an apostrophe within the trap.
2066# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2067trap 'exit_status=$?
2068  # Save into config.log some information that might help in debugging.
2069  {
2070    echo
2071
2072    $as_echo "## ---------------- ##
2073## Cache variables. ##
2074## ---------------- ##"
2075    echo
2076    # The following way of writing the cache mishandles newlines in values,
2077(
2078  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2079    eval ac_val=\$$ac_var
2080    case $ac_val in #(
2081    *${as_nl}*)
2082      case $ac_var in #(
2083      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2084$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2085      esac
2086      case $ac_var in #(
2087      _ | IFS | as_nl) ;; #(
2088      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2089      *) { eval $ac_var=; unset $ac_var;} ;;
2090      esac ;;
2091    esac
2092  done
2093  (set) 2>&1 |
2094    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2095    *${as_nl}ac_space=\ *)
2096      sed -n \
2097	"s/'\''/'\''\\\\'\'''\''/g;
2098	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2099      ;; #(
2100    *)
2101      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2102      ;;
2103    esac |
2104    sort
2105)
2106    echo
2107
2108    $as_echo "## ----------------- ##
2109## Output variables. ##
2110## ----------------- ##"
2111    echo
2112    for ac_var in $ac_subst_vars
2113    do
2114      eval ac_val=\$$ac_var
2115      case $ac_val in
2116      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117      esac
2118      $as_echo "$ac_var='\''$ac_val'\''"
2119    done | sort
2120    echo
2121
2122    if test -n "$ac_subst_files"; then
2123      $as_echo "## ------------------- ##
2124## File substitutions. ##
2125## ------------------- ##"
2126      echo
2127      for ac_var in $ac_subst_files
2128      do
2129	eval ac_val=\$$ac_var
2130	case $ac_val in
2131	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132	esac
2133	$as_echo "$ac_var='\''$ac_val'\''"
2134      done | sort
2135      echo
2136    fi
2137
2138    if test -s confdefs.h; then
2139      $as_echo "## ----------- ##
2140## confdefs.h. ##
2141## ----------- ##"
2142      echo
2143      cat confdefs.h
2144      echo
2145    fi
2146    test "$ac_signal" != 0 &&
2147      $as_echo "$as_me: caught signal $ac_signal"
2148    $as_echo "$as_me: exit $exit_status"
2149  } >&5
2150  rm -f core *.core core.conftest.* &&
2151    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2152    exit $exit_status
2153' 0
2154for ac_signal in 1 2 13 15; do
2155  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2156done
2157ac_signal=0
2158
2159# confdefs.h avoids OS command line length limits that DEFS can exceed.
2160rm -f -r conftest* confdefs.h
2161
2162$as_echo "/* confdefs.h */" > confdefs.h
2163
2164# Predefined preprocessor variables.
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_NAME "$PACKAGE_NAME"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2172_ACEOF
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_VERSION "$PACKAGE_VERSION"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_STRING "$PACKAGE_STRING"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_URL "$PACKAGE_URL"
2188_ACEOF
2189
2190
2191# Let the site file select an alternate cache file if it wants to.
2192# Prefer an explicitly selected file to automatically selected ones.
2193ac_site_file1=NONE
2194ac_site_file2=NONE
2195if test -n "$CONFIG_SITE"; then
2196  # We do not want a PATH search for config.site.
2197  case $CONFIG_SITE in #((
2198    -*)  ac_site_file1=./$CONFIG_SITE;;
2199    */*) ac_site_file1=$CONFIG_SITE;;
2200    *)   ac_site_file1=./$CONFIG_SITE;;
2201  esac
2202elif test "x$prefix" != xNONE; then
2203  ac_site_file1=$prefix/share/config.site
2204  ac_site_file2=$prefix/etc/config.site
2205else
2206  ac_site_file1=$ac_default_prefix/share/config.site
2207  ac_site_file2=$ac_default_prefix/etc/config.site
2208fi
2209for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2210do
2211  test "x$ac_site_file" = xNONE && continue
2212  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2213    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2214$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2215    sed 's/^/| /' "$ac_site_file" >&5
2216    . "$ac_site_file" \
2217      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219as_fn_error $? "failed to load site script $ac_site_file
2220See \`config.log' for more details" "$LINENO" 5; }
2221  fi
2222done
2223
2224if test -r "$cache_file"; then
2225  # Some versions of bash will fail to source /dev/null (special files
2226  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2227  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2228    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2229$as_echo "$as_me: loading cache $cache_file" >&6;}
2230    case $cache_file in
2231      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2232      *)                      . "./$cache_file";;
2233    esac
2234  fi
2235else
2236  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2237$as_echo "$as_me: creating cache $cache_file" >&6;}
2238  >$cache_file
2239fi
2240
2241# Check that the precious variables saved in the cache have kept the same
2242# value.
2243ac_cache_corrupted=false
2244for ac_var in $ac_precious_vars; do
2245  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2246  eval ac_new_set=\$ac_env_${ac_var}_set
2247  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2248  eval ac_new_val=\$ac_env_${ac_var}_value
2249  case $ac_old_set,$ac_new_set in
2250    set,)
2251      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2252$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2253      ac_cache_corrupted=: ;;
2254    ,set)
2255      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2256$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2257      ac_cache_corrupted=: ;;
2258    ,);;
2259    *)
2260      if test "x$ac_old_val" != "x$ac_new_val"; then
2261	# differences in whitespace do not lead to failure.
2262	ac_old_val_w=`echo x $ac_old_val`
2263	ac_new_val_w=`echo x $ac_new_val`
2264	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2265	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2266$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2267	  ac_cache_corrupted=:
2268	else
2269	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2270$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2271	  eval $ac_var=\$ac_old_val
2272	fi
2273	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2274$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2275	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2276$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2277      fi;;
2278  esac
2279  # Pass precious variables to config.status.
2280  if test "$ac_new_set" = set; then
2281    case $ac_new_val in
2282    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2283    *) ac_arg=$ac_var=$ac_new_val ;;
2284    esac
2285    case " $ac_configure_args " in
2286      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2287      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2288    esac
2289  fi
2290done
2291if $ac_cache_corrupted; then
2292  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2295$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2296  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2297fi
2298## -------------------- ##
2299## Main body of script. ##
2300## -------------------- ##
2301
2302ac_ext=c
2303ac_cpp='$CPP $CPPFLAGS'
2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307
2308
2309
2310ac_config_headers="$ac_config_headers config.h"
2311
2312
2313# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325ac_aux_dir=
2326for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327  if test -f "$ac_dir/install-sh"; then
2328    ac_aux_dir=$ac_dir
2329    ac_install_sh="$ac_aux_dir/install-sh -c"
2330    break
2331  elif test -f "$ac_dir/install.sh"; then
2332    ac_aux_dir=$ac_dir
2333    ac_install_sh="$ac_aux_dir/install.sh -c"
2334    break
2335  elif test -f "$ac_dir/shtool"; then
2336    ac_aux_dir=$ac_dir
2337    ac_install_sh="$ac_aux_dir/shtool install -c"
2338    break
2339  fi
2340done
2341if test -z "$ac_aux_dir"; then
2342  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2343fi
2344
2345# These three variables are undocumented and unsupported,
2346# and are intended to be withdrawn in a future Autoconf release.
2347# They can cause serious problems if a builder's source tree is in a directory
2348# whose full name contains unusual characters.
2349ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2350ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2351ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2352
2353
2354# Find a good install program.  We prefer a C program (faster),
2355# so one script is as good as another.  But avoid the broken or
2356# incompatible versions:
2357# SysV /etc/install, /usr/sbin/install
2358# SunOS /usr/etc/install
2359# IRIX /sbin/install
2360# AIX /bin/install
2361# AmigaOS /C/install, which installs bootblocks on floppy discs
2362# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2363# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2364# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2365# OS/2's system install, which has a completely different semantic
2366# ./install, which can be erroneously created by make from ./install.sh.
2367# Reject install programs that cannot install multiple files.
2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2369$as_echo_n "checking for a BSD-compatible install... " >&6; }
2370if test -z "$INSTALL"; then
2371if ${ac_cv_path_install+:} false; then :
2372  $as_echo_n "(cached) " >&6
2373else
2374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377  IFS=$as_save_IFS
2378  test -z "$as_dir" && as_dir=.
2379    # Account for people who put trailing slashes in PATH elements.
2380case $as_dir/ in #((
2381  ./ | .// | /[cC]/* | \
2382  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2383  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2384  /usr/ucb/* ) ;;
2385  *)
2386    # OSF1 and SCO ODT 3.0 have their own names for install.
2387    # Don't use installbsd from OSF since it installs stuff as root
2388    # by default.
2389    for ac_prog in ginstall scoinst install; do
2390      for ac_exec_ext in '' $ac_executable_extensions; do
2391	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2392	  if test $ac_prog = install &&
2393	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394	    # AIX install.  It has an incompatible calling convention.
2395	    :
2396	  elif test $ac_prog = install &&
2397	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2398	    # program-specific install script used by HP pwplus--don't use.
2399	    :
2400	  else
2401	    rm -rf conftest.one conftest.two conftest.dir
2402	    echo one > conftest.one
2403	    echo two > conftest.two
2404	    mkdir conftest.dir
2405	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2406	      test -s conftest.one && test -s conftest.two &&
2407	      test -s conftest.dir/conftest.one &&
2408	      test -s conftest.dir/conftest.two
2409	    then
2410	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2411	      break 3
2412	    fi
2413	  fi
2414	fi
2415      done
2416    done
2417    ;;
2418esac
2419
2420  done
2421IFS=$as_save_IFS
2422
2423rm -rf conftest.one conftest.two conftest.dir
2424
2425fi
2426  if test "${ac_cv_path_install+set}" = set; then
2427    INSTALL=$ac_cv_path_install
2428  else
2429    # As a last resort, use the slow shell script.  Don't cache a
2430    # value for INSTALL within a source directory, because that will
2431    # break other packages using the cache if that directory is
2432    # removed, or if the value is a relative name.
2433    INSTALL=$ac_install_sh
2434  fi
2435fi
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2437$as_echo "$INSTALL" >&6; }
2438
2439# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2440# It thinks the first close brace ends the variable substitution.
2441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2442
2443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2444
2445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2446
2447ac_ext=c
2448ac_cpp='$CPP $CPPFLAGS'
2449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452if test -n "$ac_tool_prefix"; then
2453  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2454set dummy ${ac_tool_prefix}gcc; ac_word=$2
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456$as_echo_n "checking for $ac_word... " >&6; }
2457if ${ac_cv_prog_CC+:} false; then :
2458  $as_echo_n "(cached) " >&6
2459else
2460  if test -n "$CC"; then
2461  ac_cv_prog_CC="$CC" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468    for ac_exec_ext in '' $ac_executable_extensions; do
2469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475  done
2476IFS=$as_save_IFS
2477
2478fi
2479fi
2480CC=$ac_cv_prog_CC
2481if test -n "$CC"; then
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2483$as_echo "$CC" >&6; }
2484else
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486$as_echo "no" >&6; }
2487fi
2488
2489
2490fi
2491if test -z "$ac_cv_prog_CC"; then
2492  ac_ct_CC=$CC
2493  # Extract the first word of "gcc", so it can be a program name with args.
2494set dummy gcc; ac_word=$2
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2496$as_echo_n "checking for $ac_word... " >&6; }
2497if ${ac_cv_prog_ac_ct_CC+:} false; then :
2498  $as_echo_n "(cached) " >&6
2499else
2500  if test -n "$ac_ct_CC"; then
2501  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506  IFS=$as_save_IFS
2507  test -z "$as_dir" && as_dir=.
2508    for ac_exec_ext in '' $ac_executable_extensions; do
2509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510    ac_cv_prog_ac_ct_CC="gcc"
2511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512    break 2
2513  fi
2514done
2515  done
2516IFS=$as_save_IFS
2517
2518fi
2519fi
2520ac_ct_CC=$ac_cv_prog_ac_ct_CC
2521if test -n "$ac_ct_CC"; then
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2523$as_echo "$ac_ct_CC" >&6; }
2524else
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2526$as_echo "no" >&6; }
2527fi
2528
2529  if test "x$ac_ct_CC" = x; then
2530    CC=""
2531  else
2532    case $cross_compiling:$ac_tool_warned in
2533yes:)
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2536ac_tool_warned=yes ;;
2537esac
2538    CC=$ac_ct_CC
2539  fi
2540else
2541  CC="$ac_cv_prog_CC"
2542fi
2543
2544if test -z "$CC"; then
2545          if test -n "$ac_tool_prefix"; then
2546    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2547set dummy ${ac_tool_prefix}cc; ac_word=$2
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549$as_echo_n "checking for $ac_word... " >&6; }
2550if ${ac_cv_prog_CC+:} false; then :
2551  $as_echo_n "(cached) " >&6
2552else
2553  if test -n "$CC"; then
2554  ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559  IFS=$as_save_IFS
2560  test -z "$as_dir" && as_dir=.
2561    for ac_exec_ext in '' $ac_executable_extensions; do
2562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563    ac_cv_prog_CC="${ac_tool_prefix}cc"
2564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565    break 2
2566  fi
2567done
2568  done
2569IFS=$as_save_IFS
2570
2571fi
2572fi
2573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2576$as_echo "$CC" >&6; }
2577else
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579$as_echo "no" >&6; }
2580fi
2581
2582
2583  fi
2584fi
2585if test -z "$CC"; then
2586  # Extract the first word of "cc", so it can be a program name with args.
2587set dummy cc; ac_word=$2
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589$as_echo_n "checking for $ac_word... " >&6; }
2590if ${ac_cv_prog_CC+:} false; then :
2591  $as_echo_n "(cached) " >&6
2592else
2593  if test -n "$CC"; then
2594  ac_cv_prog_CC="$CC" # Let the user override the test.
2595else
2596  ac_prog_rejected=no
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600  IFS=$as_save_IFS
2601  test -z "$as_dir" && as_dir=.
2602    for ac_exec_ext in '' $ac_executable_extensions; do
2603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2605       ac_prog_rejected=yes
2606       continue
2607     fi
2608    ac_cv_prog_CC="cc"
2609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610    break 2
2611  fi
2612done
2613  done
2614IFS=$as_save_IFS
2615
2616if test $ac_prog_rejected = yes; then
2617  # We found a bogon in the path, so make sure we never use it.
2618  set dummy $ac_cv_prog_CC
2619  shift
2620  if test $# != 0; then
2621    # We chose a different compiler from the bogus one.
2622    # However, it has the same basename, so the bogon will be chosen
2623    # first if we set CC to just the basename; use the full file name.
2624    shift
2625    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2626  fi
2627fi
2628fi
2629fi
2630CC=$ac_cv_prog_CC
2631if test -n "$CC"; then
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633$as_echo "$CC" >&6; }
2634else
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636$as_echo "no" >&6; }
2637fi
2638
2639
2640fi
2641if test -z "$CC"; then
2642  if test -n "$ac_tool_prefix"; then
2643  for ac_prog in cl.exe
2644  do
2645    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2646set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if ${ac_cv_prog_CC+:} false; then :
2650  $as_echo_n "(cached) " >&6
2651else
2652  if test -n "$CC"; then
2653  ac_cv_prog_CC="$CC" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660    for ac_exec_ext in '' $ac_executable_extensions; do
2661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667  done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672CC=$ac_cv_prog_CC
2673if test -n "$CC"; then
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675$as_echo "$CC" >&6; }
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682    test -n "$CC" && break
2683  done
2684fi
2685if test -z "$CC"; then
2686  ac_ct_CC=$CC
2687  for ac_prog in cl.exe
2688do
2689  # Extract the first word of "$ac_prog", so it can be a program name with args.
2690set dummy $ac_prog; ac_word=$2
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692$as_echo_n "checking for $ac_word... " >&6; }
2693if ${ac_cv_prog_ac_ct_CC+:} false; then :
2694  $as_echo_n "(cached) " >&6
2695else
2696  if test -n "$ac_ct_CC"; then
2697  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702  IFS=$as_save_IFS
2703  test -z "$as_dir" && as_dir=.
2704    for ac_exec_ext in '' $ac_executable_extensions; do
2705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706    ac_cv_prog_ac_ct_CC="$ac_prog"
2707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708    break 2
2709  fi
2710done
2711  done
2712IFS=$as_save_IFS
2713
2714fi
2715fi
2716ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717if test -n "$ac_ct_CC"; then
2718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2719$as_echo "$ac_ct_CC" >&6; }
2720else
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722$as_echo "no" >&6; }
2723fi
2724
2725
2726  test -n "$ac_ct_CC" && break
2727done
2728
2729  if test "x$ac_ct_CC" = x; then
2730    CC=""
2731  else
2732    case $cross_compiling:$ac_tool_warned in
2733yes:)
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736ac_tool_warned=yes ;;
2737esac
2738    CC=$ac_ct_CC
2739  fi
2740fi
2741
2742fi
2743
2744
2745test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2747as_fn_error $? "no acceptable C compiler found in \$PATH
2748See \`config.log' for more details" "$LINENO" 5; }
2749
2750# Provide some information about the compiler.
2751$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2752set X $ac_compile
2753ac_compiler=$2
2754for ac_option in --version -v -V -qversion; do
2755  { { ac_try="$ac_compiler $ac_option >&5"
2756case "(($ac_try" in
2757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758  *) ac_try_echo=$ac_try;;
2759esac
2760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2761$as_echo "$ac_try_echo"; } >&5
2762  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2763  ac_status=$?
2764  if test -s conftest.err; then
2765    sed '10a\
2766... rest of stderr output deleted ...
2767         10q' conftest.err >conftest.er1
2768    cat conftest.er1 >&5
2769  fi
2770  rm -f conftest.er1 conftest.err
2771  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2772  test $ac_status = 0; }
2773done
2774
2775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776/* end confdefs.h.  */
2777
2778int
2779main ()
2780{
2781
2782  ;
2783  return 0;
2784}
2785_ACEOF
2786ac_clean_files_save=$ac_clean_files
2787ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2788# Try to create an executable without -o first, disregard a.out.
2789# It will help us diagnose broken compilers, and finding out an intuition
2790# of exeext.
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2792$as_echo_n "checking whether the C compiler works... " >&6; }
2793ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2794
2795# The possible output files:
2796ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2797
2798ac_rmfiles=
2799for ac_file in $ac_files
2800do
2801  case $ac_file in
2802    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2803    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2804  esac
2805done
2806rm -f $ac_rmfiles
2807
2808if { { ac_try="$ac_link_default"
2809case "(($ac_try" in
2810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811  *) ac_try_echo=$ac_try;;
2812esac
2813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2814$as_echo "$ac_try_echo"; } >&5
2815  (eval "$ac_link_default") 2>&5
2816  ac_status=$?
2817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818  test $ac_status = 0; }; then :
2819  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2820# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2821# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2822# so that the user can short-circuit this test for compilers unknown to
2823# Autoconf.
2824for ac_file in $ac_files ''
2825do
2826  test -f "$ac_file" || continue
2827  case $ac_file in
2828    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2829	;;
2830    [ab].out )
2831	# We found the default executable, but exeext='' is most
2832	# certainly right.
2833	break;;
2834    *.* )
2835	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2836	then :; else
2837	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2838	fi
2839	# We set ac_cv_exeext here because the later test for it is not
2840	# safe: cross compilers may not add the suffix if given an `-o'
2841	# argument, so we may need to know it at that point already.
2842	# Even if this section looks crufty: it has the advantage of
2843	# actually working.
2844	break;;
2845    * )
2846	break;;
2847  esac
2848done
2849test "$ac_cv_exeext" = no && ac_cv_exeext=
2850
2851else
2852  ac_file=''
2853fi
2854if test -z "$ac_file"; then :
2855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857$as_echo "$as_me: failed program was:" >&5
2858sed 's/^/| /' conftest.$ac_ext >&5
2859
2860{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862as_fn_error 77 "C compiler cannot create executables
2863See \`config.log' for more details" "$LINENO" 5; }
2864else
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866$as_echo "yes" >&6; }
2867fi
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2869$as_echo_n "checking for C compiler default output file name... " >&6; }
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2871$as_echo "$ac_file" >&6; }
2872ac_exeext=$ac_cv_exeext
2873
2874rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2875ac_clean_files=$ac_clean_files_save
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2877$as_echo_n "checking for suffix of executables... " >&6; }
2878if { { ac_try="$ac_link"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884$as_echo "$ac_try_echo"; } >&5
2885  (eval "$ac_link") 2>&5
2886  ac_status=$?
2887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888  test $ac_status = 0; }; then :
2889  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2890# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2891# work properly (i.e., refer to `conftest.exe'), while it won't with
2892# `rm'.
2893for ac_file in conftest.exe conftest conftest.*; do
2894  test -f "$ac_file" || continue
2895  case $ac_file in
2896    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2897    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2898	  break;;
2899    * ) break;;
2900  esac
2901done
2902else
2903  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2905as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2906See \`config.log' for more details" "$LINENO" 5; }
2907fi
2908rm -f conftest conftest$ac_cv_exeext
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2910$as_echo "$ac_cv_exeext" >&6; }
2911
2912rm -f conftest.$ac_ext
2913EXEEXT=$ac_cv_exeext
2914ac_exeext=$EXEEXT
2915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916/* end confdefs.h.  */
2917#include <stdio.h>
2918int
2919main ()
2920{
2921FILE *f = fopen ("conftest.out", "w");
2922 return ferror (f) || fclose (f) != 0;
2923
2924  ;
2925  return 0;
2926}
2927_ACEOF
2928ac_clean_files="$ac_clean_files conftest.out"
2929# Check that the compiler produces executables we can run.  If not, either
2930# the compiler is broken, or we cross compile.
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2932$as_echo_n "checking whether we are cross compiling... " >&6; }
2933if test "$cross_compiling" != yes; then
2934  { { ac_try="$ac_link"
2935case "(($ac_try" in
2936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937  *) ac_try_echo=$ac_try;;
2938esac
2939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940$as_echo "$ac_try_echo"; } >&5
2941  (eval "$ac_link") 2>&5
2942  ac_status=$?
2943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2944  test $ac_status = 0; }
2945  if { ac_try='./conftest$ac_cv_exeext'
2946  { { case "(($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_try") 2>&5
2953  ac_status=$?
2954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2955  test $ac_status = 0; }; }; then
2956    cross_compiling=no
2957  else
2958    if test "$cross_compiling" = maybe; then
2959	cross_compiling=yes
2960    else
2961	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963as_fn_error $? "cannot run C compiled programs.
2964If you meant to cross compile, use \`--host'.
2965See \`config.log' for more details" "$LINENO" 5; }
2966    fi
2967  fi
2968fi
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2970$as_echo "$cross_compiling" >&6; }
2971
2972rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2973ac_clean_files=$ac_clean_files_save
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2975$as_echo_n "checking for suffix of object files... " >&6; }
2976if ${ac_cv_objext+:} false; then :
2977  $as_echo_n "(cached) " >&6
2978else
2979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2980/* end confdefs.h.  */
2981
2982int
2983main ()
2984{
2985
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990rm -f conftest.o conftest.obj
2991if { { ac_try="$ac_compile"
2992case "(($ac_try" in
2993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994  *) ac_try_echo=$ac_try;;
2995esac
2996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997$as_echo "$ac_try_echo"; } >&5
2998  (eval "$ac_compile") 2>&5
2999  ac_status=$?
3000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001  test $ac_status = 0; }; then :
3002  for ac_file in conftest.o conftest.obj conftest.*; do
3003  test -f "$ac_file" || continue;
3004  case $ac_file in
3005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3006    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3007       break;;
3008  esac
3009done
3010else
3011  $as_echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016as_fn_error $? "cannot compute suffix of object files: cannot compile
3017See \`config.log' for more details" "$LINENO" 5; }
3018fi
3019rm -f conftest.$ac_cv_objext conftest.$ac_ext
3020fi
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3022$as_echo "$ac_cv_objext" >&6; }
3023OBJEXT=$ac_cv_objext
3024ac_objext=$OBJEXT
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3026$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3027if ${ac_cv_c_compiler_gnu+:} false; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036#ifndef __GNUC__
3037       choke me
3038#endif
3039
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044if ac_fn_c_try_compile "$LINENO"; then :
3045  ac_compiler_gnu=yes
3046else
3047  ac_compiler_gnu=no
3048fi
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050ac_cv_c_compiler_gnu=$ac_compiler_gnu
3051
3052fi
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3054$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3055if test $ac_compiler_gnu = yes; then
3056  GCC=yes
3057else
3058  GCC=
3059fi
3060ac_test_CFLAGS=${CFLAGS+set}
3061ac_save_CFLAGS=$CFLAGS
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3063$as_echo_n "checking whether $CC accepts -g... " >&6; }
3064if ${ac_cv_prog_cc_g+:} false; then :
3065  $as_echo_n "(cached) " >&6
3066else
3067  ac_save_c_werror_flag=$ac_c_werror_flag
3068   ac_c_werror_flag=yes
3069   ac_cv_prog_cc_g=no
3070   CFLAGS="-g"
3071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h.  */
3073
3074int
3075main ()
3076{
3077
3078  ;
3079  return 0;
3080}
3081_ACEOF
3082if ac_fn_c_try_compile "$LINENO"; then :
3083  ac_cv_prog_cc_g=yes
3084else
3085  CFLAGS=""
3086      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097if ac_fn_c_try_compile "$LINENO"; then :
3098
3099else
3100  ac_c_werror_flag=$ac_save_c_werror_flag
3101	 CFLAGS="-g"
3102	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103/* end confdefs.h.  */
3104
3105int
3106main ()
3107{
3108
3109  ;
3110  return 0;
3111}
3112_ACEOF
3113if ac_fn_c_try_compile "$LINENO"; then :
3114  ac_cv_prog_cc_g=yes
3115fi
3116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117fi
3118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119fi
3120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121   ac_c_werror_flag=$ac_save_c_werror_flag
3122fi
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3124$as_echo "$ac_cv_prog_cc_g" >&6; }
3125if test "$ac_test_CFLAGS" = set; then
3126  CFLAGS=$ac_save_CFLAGS
3127elif test $ac_cv_prog_cc_g = yes; then
3128  if test "$GCC" = yes; then
3129    CFLAGS="-g -O2"
3130  else
3131    CFLAGS="-g"
3132  fi
3133else
3134  if test "$GCC" = yes; then
3135    CFLAGS="-O2"
3136  else
3137    CFLAGS=
3138  fi
3139fi
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3141$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3142if ${ac_cv_prog_cc_c89+:} false; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  ac_cv_prog_cc_c89=no
3146ac_save_CC=$CC
3147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148/* end confdefs.h.  */
3149#include <stdarg.h>
3150#include <stdio.h>
3151#include <sys/types.h>
3152#include <sys/stat.h>
3153/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3154struct buf { int x; };
3155FILE * (*rcsopen) (struct buf *, struct stat *, int);
3156static char *e (p, i)
3157     char **p;
3158     int i;
3159{
3160  return p[i];
3161}
3162static char *f (char * (*g) (char **, int), char **p, ...)
3163{
3164  char *s;
3165  va_list v;
3166  va_start (v,p);
3167  s = g (p, va_arg (v,int));
3168  va_end (v);
3169  return s;
3170}
3171
3172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3173   function prototypes and stuff, but not '\xHH' hex character constants.
3174   These don't provoke an error unfortunately, instead are silently treated
3175   as 'x'.  The following induces an error, until -std is added to get
3176   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3177   array size at least.  It's necessary to write '\x00'==0 to get something
3178   that's true only with -std.  */
3179int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3180
3181/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3182   inside strings and character constants.  */
3183#define FOO(x) 'x'
3184int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3185
3186int test (int i, double x);
3187struct s1 {int (*f) (int a);};
3188struct s2 {int (*f) (double a);};
3189int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3190int argc;
3191char **argv;
3192int
3193main ()
3194{
3195return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3201	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3202do
3203  CC="$ac_save_CC $ac_arg"
3204  if ac_fn_c_try_compile "$LINENO"; then :
3205  ac_cv_prog_cc_c89=$ac_arg
3206fi
3207rm -f core conftest.err conftest.$ac_objext
3208  test "x$ac_cv_prog_cc_c89" != "xno" && break
3209done
3210rm -f conftest.$ac_ext
3211CC=$ac_save_CC
3212
3213fi
3214# AC_CACHE_VAL
3215case "x$ac_cv_prog_cc_c89" in
3216  x)
3217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3218$as_echo "none needed" >&6; } ;;
3219  xno)
3220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3221$as_echo "unsupported" >&6; } ;;
3222  *)
3223    CC="$CC $ac_cv_prog_cc_c89"
3224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3225$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3226esac
3227if test "x$ac_cv_prog_cc_c89" != xno; then :
3228
3229fi
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3238$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3239if ${ac_cv_prog_cc_c99+:} false; then :
3240  $as_echo_n "(cached) " >&6
3241else
3242  ac_cv_prog_cc_c99=no
3243ac_save_CC=$CC
3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246#include <stdarg.h>
3247#include <stdbool.h>
3248#include <stdlib.h>
3249#include <wchar.h>
3250#include <stdio.h>
3251
3252// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3253#define debug(...) fprintf (stderr, __VA_ARGS__)
3254#define showlist(...) puts (#__VA_ARGS__)
3255#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3256static void
3257test_varargs_macros (void)
3258{
3259  int x = 1234;
3260  int y = 5678;
3261  debug ("Flag");
3262  debug ("X = %d\n", x);
3263  showlist (The first, second, and third items.);
3264  report (x>y, "x is %d but y is %d", x, y);
3265}
3266
3267// Check long long types.
3268#define BIG64 18446744073709551615ull
3269#define BIG32 4294967295ul
3270#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3271#if !BIG_OK
3272  your preprocessor is broken;
3273#endif
3274#if BIG_OK
3275#else
3276  your preprocessor is broken;
3277#endif
3278static long long int bignum = -9223372036854775807LL;
3279static unsigned long long int ubignum = BIG64;
3280
3281struct incomplete_array
3282{
3283  int datasize;
3284  double data[];
3285};
3286
3287struct named_init {
3288  int number;
3289  const wchar_t *name;
3290  double average;
3291};
3292
3293typedef const char *ccp;
3294
3295static inline int
3296test_restrict (ccp restrict text)
3297{
3298  // See if C++-style comments work.
3299  // Iterate through items via the restricted pointer.
3300  // Also check for declarations in for loops.
3301  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3302    continue;
3303  return 0;
3304}
3305
3306// Check varargs and va_copy.
3307static void
3308test_varargs (const char *format, ...)
3309{
3310  va_list args;
3311  va_start (args, format);
3312  va_list args_copy;
3313  va_copy (args_copy, args);
3314
3315  const char *str;
3316  int number;
3317  float fnumber;
3318
3319  while (*format)
3320    {
3321      switch (*format++)
3322	{
3323	case 's': // string
3324	  str = va_arg (args_copy, const char *);
3325	  break;
3326	case 'd': // int
3327	  number = va_arg (args_copy, int);
3328	  break;
3329	case 'f': // float
3330	  fnumber = va_arg (args_copy, double);
3331	  break;
3332	default:
3333	  break;
3334	}
3335    }
3336  va_end (args_copy);
3337  va_end (args);
3338}
3339
3340int
3341main ()
3342{
3343
3344  // Check bool.
3345  _Bool success = false;
3346
3347  // Check restrict.
3348  if (test_restrict ("String literal") == 0)
3349    success = true;
3350  char *restrict newvar = "Another string";
3351
3352  // Check varargs.
3353  test_varargs ("s, d' f .", "string", 65, 34.234);
3354  test_varargs_macros ();
3355
3356  // Check flexible array members.
3357  struct incomplete_array *ia =
3358    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3359  ia->datasize = 10;
3360  for (int i = 0; i < ia->datasize; ++i)
3361    ia->data[i] = i * 1.234;
3362
3363  // Check named initializers.
3364  struct named_init ni = {
3365    .number = 34,
3366    .name = L"Test wide string",
3367    .average = 543.34343,
3368  };
3369
3370  ni.number = 58;
3371
3372  int dynamic_array[ni.number];
3373  dynamic_array[ni.number - 1] = 543;
3374
3375  // work around unused variable warnings
3376  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3377	  || dynamic_array[ni.number - 1] != 543);
3378
3379  ;
3380  return 0;
3381}
3382_ACEOF
3383for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3384do
3385  CC="$ac_save_CC $ac_arg"
3386  if ac_fn_c_try_compile "$LINENO"; then :
3387  ac_cv_prog_cc_c99=$ac_arg
3388fi
3389rm -f core conftest.err conftest.$ac_objext
3390  test "x$ac_cv_prog_cc_c99" != "xno" && break
3391done
3392rm -f conftest.$ac_ext
3393CC=$ac_save_CC
3394
3395fi
3396# AC_CACHE_VAL
3397case "x$ac_cv_prog_cc_c99" in
3398  x)
3399    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3400$as_echo "none needed" >&6; } ;;
3401  xno)
3402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3403$as_echo "unsupported" >&6; } ;;
3404  *)
3405    CC="$CC $ac_cv_prog_cc_c99"
3406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3407$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3408esac
3409if test "x$ac_cv_prog_cc_c99" != xno; then :
3410
3411fi
3412
3413
3414
3415ac_ext=c
3416ac_cpp='$CPP $CPPFLAGS'
3417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3421$as_echo_n "checking how to run the C preprocessor... " >&6; }
3422# On Suns, sometimes $CPP names a directory.
3423if test -n "$CPP" && test -d "$CPP"; then
3424  CPP=
3425fi
3426if test -z "$CPP"; then
3427  if ${ac_cv_prog_CPP+:} false; then :
3428  $as_echo_n "(cached) " >&6
3429else
3430      # Double quotes because CPP needs to be expanded
3431    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3432    do
3433      ac_preproc_ok=false
3434for ac_c_preproc_warn_flag in '' yes
3435do
3436  # Use a header file that comes with gcc, so configuring glibc
3437  # with a fresh cross-compiler works.
3438  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3439  # <limits.h> exists even on freestanding compilers.
3440  # On the NeXT, cc -E runs the code through the compiler's parser,
3441  # not just through cpp. "Syntax error" is here to catch this case.
3442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443/* end confdefs.h.  */
3444#ifdef __STDC__
3445# include <limits.h>
3446#else
3447# include <assert.h>
3448#endif
3449		     Syntax error
3450_ACEOF
3451if ac_fn_c_try_cpp "$LINENO"; then :
3452
3453else
3454  # Broken: fails on valid input.
3455continue
3456fi
3457rm -f conftest.err conftest.i conftest.$ac_ext
3458
3459  # OK, works on sane cases.  Now check whether nonexistent headers
3460  # can be detected and how.
3461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463#include <ac_nonexistent.h>
3464_ACEOF
3465if ac_fn_c_try_cpp "$LINENO"; then :
3466  # Broken: success on invalid input.
3467continue
3468else
3469  # Passes both tests.
3470ac_preproc_ok=:
3471break
3472fi
3473rm -f conftest.err conftest.i conftest.$ac_ext
3474
3475done
3476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477rm -f conftest.i conftest.err conftest.$ac_ext
3478if $ac_preproc_ok; then :
3479  break
3480fi
3481
3482    done
3483    ac_cv_prog_CPP=$CPP
3484
3485fi
3486  CPP=$ac_cv_prog_CPP
3487else
3488  ac_cv_prog_CPP=$CPP
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3491$as_echo "$CPP" >&6; }
3492ac_preproc_ok=false
3493for ac_c_preproc_warn_flag in '' yes
3494do
3495  # Use a header file that comes with gcc, so configuring glibc
3496  # with a fresh cross-compiler works.
3497  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498  # <limits.h> exists even on freestanding compilers.
3499  # On the NeXT, cc -E runs the code through the compiler's parser,
3500  # not just through cpp. "Syntax error" is here to catch this case.
3501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503#ifdef __STDC__
3504# include <limits.h>
3505#else
3506# include <assert.h>
3507#endif
3508		     Syntax error
3509_ACEOF
3510if ac_fn_c_try_cpp "$LINENO"; then :
3511
3512else
3513  # Broken: fails on valid input.
3514continue
3515fi
3516rm -f conftest.err conftest.i conftest.$ac_ext
3517
3518  # OK, works on sane cases.  Now check whether nonexistent headers
3519  # can be detected and how.
3520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h.  */
3522#include <ac_nonexistent.h>
3523_ACEOF
3524if ac_fn_c_try_cpp "$LINENO"; then :
3525  # Broken: success on invalid input.
3526continue
3527else
3528  # Passes both tests.
3529ac_preproc_ok=:
3530break
3531fi
3532rm -f conftest.err conftest.i conftest.$ac_ext
3533
3534done
3535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536rm -f conftest.i conftest.err conftest.$ac_ext
3537if $ac_preproc_ok; then :
3538
3539else
3540  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3543See \`config.log' for more details" "$LINENO" 5; }
3544fi
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3554$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3555if ${ac_cv_path_GREP+:} false; then :
3556  $as_echo_n "(cached) " >&6
3557else
3558  if test -z "$GREP"; then
3559  ac_path_GREP_found=false
3560  # Loop through the user's path and test for each of PROGNAME-LIST
3561  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3563do
3564  IFS=$as_save_IFS
3565  test -z "$as_dir" && as_dir=.
3566    for ac_prog in grep ggrep; do
3567    for ac_exec_ext in '' $ac_executable_extensions; do
3568      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3569      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3570# Check for GNU ac_path_GREP and select it if it is found.
3571  # Check for GNU $ac_path_GREP
3572case `"$ac_path_GREP" --version 2>&1` in
3573*GNU*)
3574  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3575*)
3576  ac_count=0
3577  $as_echo_n 0123456789 >"conftest.in"
3578  while :
3579  do
3580    cat "conftest.in" "conftest.in" >"conftest.tmp"
3581    mv "conftest.tmp" "conftest.in"
3582    cp "conftest.in" "conftest.nl"
3583    $as_echo 'GREP' >> "conftest.nl"
3584    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3585    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3586    as_fn_arith $ac_count + 1 && ac_count=$as_val
3587    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3588      # Best one so far, save it but keep looking for a better one
3589      ac_cv_path_GREP="$ac_path_GREP"
3590      ac_path_GREP_max=$ac_count
3591    fi
3592    # 10*(2^10) chars as input seems more than enough
3593    test $ac_count -gt 10 && break
3594  done
3595  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3596esac
3597
3598      $ac_path_GREP_found && break 3
3599    done
3600  done
3601  done
3602IFS=$as_save_IFS
3603  if test -z "$ac_cv_path_GREP"; then
3604    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3605  fi
3606else
3607  ac_cv_path_GREP=$GREP
3608fi
3609
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3612$as_echo "$ac_cv_path_GREP" >&6; }
3613 GREP="$ac_cv_path_GREP"
3614
3615
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3617$as_echo_n "checking for egrep... " >&6; }
3618if ${ac_cv_path_EGREP+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3622   then ac_cv_path_EGREP="$GREP -E"
3623   else
3624     if test -z "$EGREP"; then
3625  ac_path_EGREP_found=false
3626  # Loop through the user's path and test for each of PROGNAME-LIST
3627  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629do
3630  IFS=$as_save_IFS
3631  test -z "$as_dir" && as_dir=.
3632    for ac_prog in egrep; do
3633    for ac_exec_ext in '' $ac_executable_extensions; do
3634      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3635      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3636# Check for GNU ac_path_EGREP and select it if it is found.
3637  # Check for GNU $ac_path_EGREP
3638case `"$ac_path_EGREP" --version 2>&1` in
3639*GNU*)
3640  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3641*)
3642  ac_count=0
3643  $as_echo_n 0123456789 >"conftest.in"
3644  while :
3645  do
3646    cat "conftest.in" "conftest.in" >"conftest.tmp"
3647    mv "conftest.tmp" "conftest.in"
3648    cp "conftest.in" "conftest.nl"
3649    $as_echo 'EGREP' >> "conftest.nl"
3650    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652    as_fn_arith $ac_count + 1 && ac_count=$as_val
3653    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3654      # Best one so far, save it but keep looking for a better one
3655      ac_cv_path_EGREP="$ac_path_EGREP"
3656      ac_path_EGREP_max=$ac_count
3657    fi
3658    # 10*(2^10) chars as input seems more than enough
3659    test $ac_count -gt 10 && break
3660  done
3661  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662esac
3663
3664      $ac_path_EGREP_found && break 3
3665    done
3666  done
3667  done
3668IFS=$as_save_IFS
3669  if test -z "$ac_cv_path_EGREP"; then
3670    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3671  fi
3672else
3673  ac_cv_path_EGREP=$EGREP
3674fi
3675
3676   fi
3677fi
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3679$as_echo "$ac_cv_path_EGREP" >&6; }
3680 EGREP="$ac_cv_path_EGREP"
3681
3682
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3684$as_echo_n "checking for ANSI C header files... " >&6; }
3685if ${ac_cv_header_stdc+:} false; then :
3686  $as_echo_n "(cached) " >&6
3687else
3688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689/* end confdefs.h.  */
3690#include <stdlib.h>
3691#include <stdarg.h>
3692#include <string.h>
3693#include <float.h>
3694
3695int
3696main ()
3697{
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704  ac_cv_header_stdc=yes
3705else
3706  ac_cv_header_stdc=no
3707fi
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709
3710if test $ac_cv_header_stdc = yes; then
3711  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h.  */
3714#include <string.h>
3715
3716_ACEOF
3717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718  $EGREP "memchr" >/dev/null 2>&1; then :
3719
3720else
3721  ac_cv_header_stdc=no
3722fi
3723rm -f conftest*
3724
3725fi
3726
3727if test $ac_cv_header_stdc = yes; then
3728  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730/* end confdefs.h.  */
3731#include <stdlib.h>
3732
3733_ACEOF
3734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735  $EGREP "free" >/dev/null 2>&1; then :
3736
3737else
3738  ac_cv_header_stdc=no
3739fi
3740rm -f conftest*
3741
3742fi
3743
3744if test $ac_cv_header_stdc = yes; then
3745  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3746  if test "$cross_compiling" = yes; then :
3747  :
3748else
3749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751#include <ctype.h>
3752#include <stdlib.h>
3753#if ((' ' & 0x0FF) == 0x020)
3754# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3755# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3756#else
3757# define ISLOWER(c) \
3758		   (('a' <= (c) && (c) <= 'i') \
3759		     || ('j' <= (c) && (c) <= 'r') \
3760		     || ('s' <= (c) && (c) <= 'z'))
3761# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3762#endif
3763
3764#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3765int
3766main ()
3767{
3768  int i;
3769  for (i = 0; i < 256; i++)
3770    if (XOR (islower (i), ISLOWER (i))
3771	|| toupper (i) != TOUPPER (i))
3772      return 2;
3773  return 0;
3774}
3775_ACEOF
3776if ac_fn_c_try_run "$LINENO"; then :
3777
3778else
3779  ac_cv_header_stdc=no
3780fi
3781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3782  conftest.$ac_objext conftest.beam conftest.$ac_ext
3783fi
3784
3785fi
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3788$as_echo "$ac_cv_header_stdc" >&6; }
3789if test $ac_cv_header_stdc = yes; then
3790
3791$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3792
3793fi
3794
3795# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3796for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3797		  inttypes.h stdint.h unistd.h
3798do :
3799  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3800ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3801"
3802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3803  cat >>confdefs.h <<_ACEOF
3804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3805_ACEOF
3806
3807fi
3808
3809done
3810
3811
3812
3813
3814
3815
3816ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3817if test "x$ac_cv_have_decl___clang__" = xyes; then :
3818  CLANGCC="yes"
3819else
3820  CLANGCC="no"
3821fi
3822
3823ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3824if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3825  INTELCC="yes"
3826else
3827  INTELCC="no"
3828fi
3829
3830ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3831if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3832  SUNCC="yes"
3833else
3834  SUNCC="no"
3835fi
3836
3837
3838
3839
3840
3841
3842
3843
3844if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3845	if test -n "$ac_tool_prefix"; then
3846  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3847set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849$as_echo_n "checking for $ac_word... " >&6; }
3850if ${ac_cv_path_PKG_CONFIG+:} false; then :
3851  $as_echo_n "(cached) " >&6
3852else
3853  case $PKG_CONFIG in
3854  [\\/]* | ?:[\\/]*)
3855  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3856  ;;
3857  *)
3858  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861  IFS=$as_save_IFS
3862  test -z "$as_dir" && as_dir=.
3863    for ac_exec_ext in '' $ac_executable_extensions; do
3864  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867    break 2
3868  fi
3869done
3870  done
3871IFS=$as_save_IFS
3872
3873  ;;
3874esac
3875fi
3876PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3877if test -n "$PKG_CONFIG"; then
3878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3879$as_echo "$PKG_CONFIG" >&6; }
3880else
3881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
3883fi
3884
3885
3886fi
3887if test -z "$ac_cv_path_PKG_CONFIG"; then
3888  ac_pt_PKG_CONFIG=$PKG_CONFIG
3889  # Extract the first word of "pkg-config", so it can be a program name with args.
3890set dummy pkg-config; ac_word=$2
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
3893if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3894  $as_echo_n "(cached) " >&6
3895else
3896  case $ac_pt_PKG_CONFIG in
3897  [\\/]* | ?:[\\/]*)
3898  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3899  ;;
3900  *)
3901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906    for ac_exec_ext in '' $ac_executable_extensions; do
3907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910    break 2
3911  fi
3912done
3913  done
3914IFS=$as_save_IFS
3915
3916  ;;
3917esac
3918fi
3919ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3920if test -n "$ac_pt_PKG_CONFIG"; then
3921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3922$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3923else
3924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
3926fi
3927
3928  if test "x$ac_pt_PKG_CONFIG" = x; then
3929    PKG_CONFIG=""
3930  else
3931    case $cross_compiling:$ac_tool_warned in
3932yes:)
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935ac_tool_warned=yes ;;
3936esac
3937    PKG_CONFIG=$ac_pt_PKG_CONFIG
3938  fi
3939else
3940  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3941fi
3942
3943fi
3944if test -n "$PKG_CONFIG"; then
3945	_pkg_min_version=0.9.0
3946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3947$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3948	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950$as_echo "yes" >&6; }
3951	else
3952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
3954		PKG_CONFIG=""
3955	fi
3956fi
3957# Make sure we can run config.sub.
3958$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3959  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3960
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3962$as_echo_n "checking build system type... " >&6; }
3963if ${ac_cv_build+:} false; then :
3964  $as_echo_n "(cached) " >&6
3965else
3966  ac_build_alias=$build_alias
3967test "x$ac_build_alias" = x &&
3968  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3969test "x$ac_build_alias" = x &&
3970  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3971ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3972  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3973
3974fi
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3976$as_echo "$ac_cv_build" >&6; }
3977case $ac_cv_build in
3978*-*-*) ;;
3979*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3980esac
3981build=$ac_cv_build
3982ac_save_IFS=$IFS; IFS='-'
3983set x $ac_cv_build
3984shift
3985build_cpu=$1
3986build_vendor=$2
3987shift; shift
3988# Remember, the first character of IFS is used to create $*,
3989# except with old shells:
3990build_os=$*
3991IFS=$ac_save_IFS
3992case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3993
3994
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3996$as_echo_n "checking host system type... " >&6; }
3997if ${ac_cv_host+:} false; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000  if test "x$host_alias" = x; then
4001  ac_cv_host=$ac_cv_build
4002else
4003  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4004    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4005fi
4006
4007fi
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4009$as_echo "$ac_cv_host" >&6; }
4010case $ac_cv_host in
4011*-*-*) ;;
4012*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4013esac
4014host=$ac_cv_host
4015ac_save_IFS=$IFS; IFS='-'
4016set x $ac_cv_host
4017shift
4018host_cpu=$1
4019host_vendor=$2
4020shift; shift
4021# Remember, the first character of IFS is used to create $*,
4022# except with old shells:
4023host_os=$*
4024IFS=$ac_save_IFS
4025case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4026
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4029$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4030if ${ac_cv_path_SED+:} false; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4034     for ac_i in 1 2 3 4 5 6 7; do
4035       ac_script="$ac_script$as_nl$ac_script"
4036     done
4037     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4038     { ac_script=; unset ac_script;}
4039     if test -z "$SED"; then
4040  ac_path_SED_found=false
4041  # Loop through the user's path and test for each of PROGNAME-LIST
4042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047    for ac_prog in sed gsed; do
4048    for ac_exec_ext in '' $ac_executable_extensions; do
4049      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4050      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4051# Check for GNU ac_path_SED and select it if it is found.
4052  # Check for GNU $ac_path_SED
4053case `"$ac_path_SED" --version 2>&1` in
4054*GNU*)
4055  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4056*)
4057  ac_count=0
4058  $as_echo_n 0123456789 >"conftest.in"
4059  while :
4060  do
4061    cat "conftest.in" "conftest.in" >"conftest.tmp"
4062    mv "conftest.tmp" "conftest.in"
4063    cp "conftest.in" "conftest.nl"
4064    $as_echo '' >> "conftest.nl"
4065    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067    as_fn_arith $ac_count + 1 && ac_count=$as_val
4068    if test $ac_count -gt ${ac_path_SED_max-0}; then
4069      # Best one so far, save it but keep looking for a better one
4070      ac_cv_path_SED="$ac_path_SED"
4071      ac_path_SED_max=$ac_count
4072    fi
4073    # 10*(2^10) chars as input seems more than enough
4074    test $ac_count -gt 10 && break
4075  done
4076  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077esac
4078
4079      $ac_path_SED_found && break 3
4080    done
4081  done
4082  done
4083IFS=$as_save_IFS
4084  if test -z "$ac_cv_path_SED"; then
4085    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4086  fi
4087else
4088  ac_cv_path_SED=$SED
4089fi
4090
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4093$as_echo "$ac_cv_path_SED" >&6; }
4094 SED="$ac_cv_path_SED"
4095  rm -f conftest.sed
4096
4097
4098
4099
4100
4101
4102# Check whether --enable-selective-werror was given.
4103if test "${enable_selective_werror+set}" = set; then :
4104  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4105else
4106  SELECTIVE_WERROR=yes
4107fi
4108
4109
4110
4111
4112
4113# -v is too short to test reliably with XORG_TESTSET_CFLAG
4114if test "x$SUNCC" = "xyes"; then
4115    BASE_CFLAGS="-v"
4116else
4117    BASE_CFLAGS=""
4118fi
4119
4120# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134xorg_testset_save_CFLAGS="$CFLAGS"
4135
4136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4141  $as_echo_n "(cached) " >&6
4142else
4143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h.  */
4145int i;
4146_ACEOF
4147if ac_fn_c_try_compile "$LINENO"; then :
4148  xorg_cv_cc_flag_unknown_warning_option=yes
4149else
4150  xorg_cv_cc_flag_unknown_warning_option=no
4151fi
4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4157	CFLAGS="$xorg_testset_save_CFLAGS"
4158fi
4159
4160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4163	fi
4164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4168  $as_echo_n "(cached) " >&6
4169else
4170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171/* end confdefs.h.  */
4172int i;
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"; then :
4175  xorg_cv_cc_flag_unused_command_line_argument=yes
4176else
4177  xorg_cv_cc_flag_unused_command_line_argument=no
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180fi
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4184	CFLAGS="$xorg_testset_save_CFLAGS"
4185fi
4186
4187found="no"
4188
4189	if test $found = "no" ; then
4190		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4192		fi
4193
4194		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4196		fi
4197
4198		CFLAGS="$CFLAGS -Wall"
4199
4200		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4201$as_echo_n "checking if $CC supports -Wall... " >&6; }
4202		cacheid=xorg_cv_cc_flag__Wall
4203		if eval \${$cacheid+:} false; then :
4204  $as_echo_n "(cached) " >&6
4205else
4206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h.  */
4208int i;
4209int
4210main ()
4211{
4212
4213  ;
4214  return 0;
4215}
4216_ACEOF
4217if ac_fn_c_try_link "$LINENO"; then :
4218  eval $cacheid=yes
4219else
4220  eval $cacheid=no
4221fi
4222rm -f core conftest.err conftest.$ac_objext \
4223    conftest$ac_exeext conftest.$ac_ext
4224fi
4225
4226
4227		CFLAGS="$xorg_testset_save_CFLAGS"
4228
4229		eval supported=\$$cacheid
4230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4231$as_echo "$supported" >&6; }
4232		if test "$supported" = "yes" ; then
4233			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4234			found="yes"
4235		fi
4236	fi
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252xorg_testset_save_CFLAGS="$CFLAGS"
4253
4254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4255	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263int i;
4264_ACEOF
4265if ac_fn_c_try_compile "$LINENO"; then :
4266  xorg_cv_cc_flag_unknown_warning_option=yes
4267else
4268  xorg_cv_cc_flag_unknown_warning_option=no
4269fi
4270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4275	CFLAGS="$xorg_testset_save_CFLAGS"
4276fi
4277
4278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4281	fi
4282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4283	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4286  $as_echo_n "(cached) " >&6
4287else
4288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290int i;
4291_ACEOF
4292if ac_fn_c_try_compile "$LINENO"; then :
4293  xorg_cv_cc_flag_unused_command_line_argument=yes
4294else
4295  xorg_cv_cc_flag_unused_command_line_argument=no
4296fi
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298fi
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4301	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4302	CFLAGS="$xorg_testset_save_CFLAGS"
4303fi
4304
4305found="no"
4306
4307	if test $found = "no" ; then
4308		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4310		fi
4311
4312		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4314		fi
4315
4316		CFLAGS="$CFLAGS -Wpointer-arith"
4317
4318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4319$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4320		cacheid=xorg_cv_cc_flag__Wpointer_arith
4321		if eval \${$cacheid+:} false; then :
4322  $as_echo_n "(cached) " >&6
4323else
4324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326int i;
4327int
4328main ()
4329{
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335if ac_fn_c_try_link "$LINENO"; then :
4336  eval $cacheid=yes
4337else
4338  eval $cacheid=no
4339fi
4340rm -f core conftest.err conftest.$ac_objext \
4341    conftest$ac_exeext conftest.$ac_ext
4342fi
4343
4344
4345		CFLAGS="$xorg_testset_save_CFLAGS"
4346
4347		eval supported=\$$cacheid
4348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4349$as_echo "$supported" >&6; }
4350		if test "$supported" = "yes" ; then
4351			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4352			found="yes"
4353		fi
4354	fi
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370xorg_testset_save_CFLAGS="$CFLAGS"
4371
4372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h.  */
4381int i;
4382_ACEOF
4383if ac_fn_c_try_compile "$LINENO"; then :
4384  xorg_cv_cc_flag_unknown_warning_option=yes
4385else
4386  xorg_cv_cc_flag_unknown_warning_option=no
4387fi
4388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389fi
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4393	CFLAGS="$xorg_testset_save_CFLAGS"
4394fi
4395
4396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4399	fi
4400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4404  $as_echo_n "(cached) " >&6
4405else
4406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h.  */
4408int i;
4409_ACEOF
4410if ac_fn_c_try_compile "$LINENO"; then :
4411  xorg_cv_cc_flag_unused_command_line_argument=yes
4412else
4413  xorg_cv_cc_flag_unused_command_line_argument=no
4414fi
4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4420	CFLAGS="$xorg_testset_save_CFLAGS"
4421fi
4422
4423found="no"
4424
4425	if test $found = "no" ; then
4426		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4428		fi
4429
4430		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4432		fi
4433
4434		CFLAGS="$CFLAGS -Wmissing-declarations"
4435
4436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4437$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4438		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4439		if eval \${$cacheid+:} false; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h.  */
4444int i;
4445int
4446main ()
4447{
4448
4449  ;
4450  return 0;
4451}
4452_ACEOF
4453if ac_fn_c_try_link "$LINENO"; then :
4454  eval $cacheid=yes
4455else
4456  eval $cacheid=no
4457fi
4458rm -f core conftest.err conftest.$ac_objext \
4459    conftest$ac_exeext conftest.$ac_ext
4460fi
4461
4462
4463		CFLAGS="$xorg_testset_save_CFLAGS"
4464
4465		eval supported=\$$cacheid
4466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4467$as_echo "$supported" >&6; }
4468		if test "$supported" = "yes" ; then
4469			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4470			found="yes"
4471		fi
4472	fi
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488xorg_testset_save_CFLAGS="$CFLAGS"
4489
4490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4495  $as_echo_n "(cached) " >&6
4496else
4497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h.  */
4499int i;
4500_ACEOF
4501if ac_fn_c_try_compile "$LINENO"; then :
4502  xorg_cv_cc_flag_unknown_warning_option=yes
4503else
4504  xorg_cv_cc_flag_unknown_warning_option=no
4505fi
4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4511	CFLAGS="$xorg_testset_save_CFLAGS"
4512fi
4513
4514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4517	fi
4518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4522  $as_echo_n "(cached) " >&6
4523else
4524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h.  */
4526int i;
4527_ACEOF
4528if ac_fn_c_try_compile "$LINENO"; then :
4529  xorg_cv_cc_flag_unused_command_line_argument=yes
4530else
4531  xorg_cv_cc_flag_unused_command_line_argument=no
4532fi
4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534fi
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4538	CFLAGS="$xorg_testset_save_CFLAGS"
4539fi
4540
4541found="no"
4542
4543	if test $found = "no" ; then
4544		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4546		fi
4547
4548		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4550		fi
4551
4552		CFLAGS="$CFLAGS -Wformat=2"
4553
4554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4555$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4556		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4557		if eval \${$cacheid+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h.  */
4562int i;
4563int
4564main ()
4565{
4566
4567  ;
4568  return 0;
4569}
4570_ACEOF
4571if ac_fn_c_try_link "$LINENO"; then :
4572  eval $cacheid=yes
4573else
4574  eval $cacheid=no
4575fi
4576rm -f core conftest.err conftest.$ac_objext \
4577    conftest$ac_exeext conftest.$ac_ext
4578fi
4579
4580
4581		CFLAGS="$xorg_testset_save_CFLAGS"
4582
4583		eval supported=\$$cacheid
4584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4585$as_echo "$supported" >&6; }
4586		if test "$supported" = "yes" ; then
4587			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4588			found="yes"
4589		fi
4590	fi
4591
4592	if test $found = "no" ; then
4593		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4595		fi
4596
4597		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4599		fi
4600
4601		CFLAGS="$CFLAGS -Wformat"
4602
4603		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4604$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4605		cacheid=xorg_cv_cc_flag__Wformat
4606		if eval \${$cacheid+:} false; then :
4607  $as_echo_n "(cached) " >&6
4608else
4609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h.  */
4611int i;
4612int
4613main ()
4614{
4615
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620if ac_fn_c_try_link "$LINENO"; then :
4621  eval $cacheid=yes
4622else
4623  eval $cacheid=no
4624fi
4625rm -f core conftest.err conftest.$ac_objext \
4626    conftest$ac_exeext conftest.$ac_ext
4627fi
4628
4629
4630		CFLAGS="$xorg_testset_save_CFLAGS"
4631
4632		eval supported=\$$cacheid
4633		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4634$as_echo "$supported" >&6; }
4635		if test "$supported" = "yes" ; then
4636			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4637			found="yes"
4638		fi
4639	fi
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657xorg_testset_save_CFLAGS="$CFLAGS"
4658
4659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4664  $as_echo_n "(cached) " >&6
4665else
4666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667/* end confdefs.h.  */
4668int i;
4669_ACEOF
4670if ac_fn_c_try_compile "$LINENO"; then :
4671  xorg_cv_cc_flag_unknown_warning_option=yes
4672else
4673  xorg_cv_cc_flag_unknown_warning_option=no
4674fi
4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4680	CFLAGS="$xorg_testset_save_CFLAGS"
4681fi
4682
4683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4686	fi
4687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694/* end confdefs.h.  */
4695int i;
4696_ACEOF
4697if ac_fn_c_try_compile "$LINENO"; then :
4698  xorg_cv_cc_flag_unused_command_line_argument=yes
4699else
4700  xorg_cv_cc_flag_unused_command_line_argument=no
4701fi
4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4707	CFLAGS="$xorg_testset_save_CFLAGS"
4708fi
4709
4710found="no"
4711
4712	if test $found = "no" ; then
4713		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4715		fi
4716
4717		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4719		fi
4720
4721		CFLAGS="$CFLAGS -Wstrict-prototypes"
4722
4723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4724$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4725		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4726		if eval \${$cacheid+:} false; then :
4727  $as_echo_n "(cached) " >&6
4728else
4729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h.  */
4731int i;
4732int
4733main ()
4734{
4735
4736  ;
4737  return 0;
4738}
4739_ACEOF
4740if ac_fn_c_try_link "$LINENO"; then :
4741  eval $cacheid=yes
4742else
4743  eval $cacheid=no
4744fi
4745rm -f core conftest.err conftest.$ac_objext \
4746    conftest$ac_exeext conftest.$ac_ext
4747fi
4748
4749
4750		CFLAGS="$xorg_testset_save_CFLAGS"
4751
4752		eval supported=\$$cacheid
4753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4754$as_echo "$supported" >&6; }
4755		if test "$supported" = "yes" ; then
4756			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4757			found="yes"
4758		fi
4759	fi
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775xorg_testset_save_CFLAGS="$CFLAGS"
4776
4777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786int i;
4787_ACEOF
4788if ac_fn_c_try_compile "$LINENO"; then :
4789  xorg_cv_cc_flag_unknown_warning_option=yes
4790else
4791  xorg_cv_cc_flag_unknown_warning_option=no
4792fi
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4798	CFLAGS="$xorg_testset_save_CFLAGS"
4799fi
4800
4801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4804	fi
4805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4809  $as_echo_n "(cached) " >&6
4810else
4811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813int i;
4814_ACEOF
4815if ac_fn_c_try_compile "$LINENO"; then :
4816  xorg_cv_cc_flag_unused_command_line_argument=yes
4817else
4818  xorg_cv_cc_flag_unused_command_line_argument=no
4819fi
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4825	CFLAGS="$xorg_testset_save_CFLAGS"
4826fi
4827
4828found="no"
4829
4830	if test $found = "no" ; then
4831		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4833		fi
4834
4835		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4837		fi
4838
4839		CFLAGS="$CFLAGS -Wmissing-prototypes"
4840
4841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4842$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4843		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
4844		if eval \${$cacheid+:} false; then :
4845  $as_echo_n "(cached) " >&6
4846else
4847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848/* end confdefs.h.  */
4849int i;
4850int
4851main ()
4852{
4853
4854  ;
4855  return 0;
4856}
4857_ACEOF
4858if ac_fn_c_try_link "$LINENO"; then :
4859  eval $cacheid=yes
4860else
4861  eval $cacheid=no
4862fi
4863rm -f core conftest.err conftest.$ac_objext \
4864    conftest$ac_exeext conftest.$ac_ext
4865fi
4866
4867
4868		CFLAGS="$xorg_testset_save_CFLAGS"
4869
4870		eval supported=\$$cacheid
4871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4872$as_echo "$supported" >&6; }
4873		if test "$supported" = "yes" ; then
4874			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4875			found="yes"
4876		fi
4877	fi
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893xorg_testset_save_CFLAGS="$CFLAGS"
4894
4895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4900  $as_echo_n "(cached) " >&6
4901else
4902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903/* end confdefs.h.  */
4904int i;
4905_ACEOF
4906if ac_fn_c_try_compile "$LINENO"; then :
4907  xorg_cv_cc_flag_unknown_warning_option=yes
4908else
4909  xorg_cv_cc_flag_unknown_warning_option=no
4910fi
4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4916	CFLAGS="$xorg_testset_save_CFLAGS"
4917fi
4918
4919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922	fi
4923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930/* end confdefs.h.  */
4931int i;
4932_ACEOF
4933if ac_fn_c_try_compile "$LINENO"; then :
4934  xorg_cv_cc_flag_unused_command_line_argument=yes
4935else
4936  xorg_cv_cc_flag_unused_command_line_argument=no
4937fi
4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939fi
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4943	CFLAGS="$xorg_testset_save_CFLAGS"
4944fi
4945
4946found="no"
4947
4948	if test $found = "no" ; then
4949		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951		fi
4952
4953		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4955		fi
4956
4957		CFLAGS="$CFLAGS -Wnested-externs"
4958
4959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
4960$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
4961		cacheid=xorg_cv_cc_flag__Wnested_externs
4962		if eval \${$cacheid+:} false; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h.  */
4967int i;
4968int
4969main ()
4970{
4971
4972  ;
4973  return 0;
4974}
4975_ACEOF
4976if ac_fn_c_try_link "$LINENO"; then :
4977  eval $cacheid=yes
4978else
4979  eval $cacheid=no
4980fi
4981rm -f core conftest.err conftest.$ac_objext \
4982    conftest$ac_exeext conftest.$ac_ext
4983fi
4984
4985
4986		CFLAGS="$xorg_testset_save_CFLAGS"
4987
4988		eval supported=\$$cacheid
4989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4990$as_echo "$supported" >&6; }
4991		if test "$supported" = "yes" ; then
4992			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
4993			found="yes"
4994		fi
4995	fi
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011xorg_testset_save_CFLAGS="$CFLAGS"
5012
5013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h.  */
5022int i;
5023_ACEOF
5024if ac_fn_c_try_compile "$LINENO"; then :
5025  xorg_cv_cc_flag_unknown_warning_option=yes
5026else
5027  xorg_cv_cc_flag_unknown_warning_option=no
5028fi
5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030fi
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5034	CFLAGS="$xorg_testset_save_CFLAGS"
5035fi
5036
5037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5040	fi
5041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5045  $as_echo_n "(cached) " >&6
5046else
5047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h.  */
5049int i;
5050_ACEOF
5051if ac_fn_c_try_compile "$LINENO"; then :
5052  xorg_cv_cc_flag_unused_command_line_argument=yes
5053else
5054  xorg_cv_cc_flag_unused_command_line_argument=no
5055fi
5056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057fi
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5061	CFLAGS="$xorg_testset_save_CFLAGS"
5062fi
5063
5064found="no"
5065
5066	if test $found = "no" ; then
5067		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069		fi
5070
5071		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5073		fi
5074
5075		CFLAGS="$CFLAGS -Wbad-function-cast"
5076
5077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5078$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5079		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5080		if eval \${$cacheid+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h.  */
5085int i;
5086int
5087main ()
5088{
5089
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094if ac_fn_c_try_link "$LINENO"; then :
5095  eval $cacheid=yes
5096else
5097  eval $cacheid=no
5098fi
5099rm -f core conftest.err conftest.$ac_objext \
5100    conftest$ac_exeext conftest.$ac_ext
5101fi
5102
5103
5104		CFLAGS="$xorg_testset_save_CFLAGS"
5105
5106		eval supported=\$$cacheid
5107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5108$as_echo "$supported" >&6; }
5109		if test "$supported" = "yes" ; then
5110			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5111			found="yes"
5112		fi
5113	fi
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129xorg_testset_save_CFLAGS="$CFLAGS"
5130
5131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140int i;
5141_ACEOF
5142if ac_fn_c_try_compile "$LINENO"; then :
5143  xorg_cv_cc_flag_unknown_warning_option=yes
5144else
5145  xorg_cv_cc_flag_unknown_warning_option=no
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5152	CFLAGS="$xorg_testset_save_CFLAGS"
5153fi
5154
5155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158	fi
5159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5163  $as_echo_n "(cached) " >&6
5164else
5165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166/* end confdefs.h.  */
5167int i;
5168_ACEOF
5169if ac_fn_c_try_compile "$LINENO"; then :
5170  xorg_cv_cc_flag_unused_command_line_argument=yes
5171else
5172  xorg_cv_cc_flag_unused_command_line_argument=no
5173fi
5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5175fi
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5179	CFLAGS="$xorg_testset_save_CFLAGS"
5180fi
5181
5182found="no"
5183
5184	if test $found = "no" ; then
5185		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187		fi
5188
5189		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5191		fi
5192
5193		CFLAGS="$CFLAGS -Wold-style-definition"
5194
5195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5196$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5197		cacheid=xorg_cv_cc_flag__Wold_style_definition
5198		if eval \${$cacheid+:} false; then :
5199  $as_echo_n "(cached) " >&6
5200else
5201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202/* end confdefs.h.  */
5203int i;
5204int
5205main ()
5206{
5207
5208  ;
5209  return 0;
5210}
5211_ACEOF
5212if ac_fn_c_try_link "$LINENO"; then :
5213  eval $cacheid=yes
5214else
5215  eval $cacheid=no
5216fi
5217rm -f core conftest.err conftest.$ac_objext \
5218    conftest$ac_exeext conftest.$ac_ext
5219fi
5220
5221
5222		CFLAGS="$xorg_testset_save_CFLAGS"
5223
5224		eval supported=\$$cacheid
5225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5226$as_echo "$supported" >&6; }
5227		if test "$supported" = "yes" ; then
5228			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5229			found="yes"
5230		fi
5231	fi
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247xorg_testset_save_CFLAGS="$CFLAGS"
5248
5249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5250	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258int i;
5259_ACEOF
5260if ac_fn_c_try_compile "$LINENO"; then :
5261  xorg_cv_cc_flag_unknown_warning_option=yes
5262else
5263  xorg_cv_cc_flag_unknown_warning_option=no
5264fi
5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5266fi
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5270	CFLAGS="$xorg_testset_save_CFLAGS"
5271fi
5272
5273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276	fi
5277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5281  $as_echo_n "(cached) " >&6
5282else
5283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h.  */
5285int i;
5286_ACEOF
5287if ac_fn_c_try_compile "$LINENO"; then :
5288  xorg_cv_cc_flag_unused_command_line_argument=yes
5289else
5290  xorg_cv_cc_flag_unused_command_line_argument=no
5291fi
5292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5296	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5297	CFLAGS="$xorg_testset_save_CFLAGS"
5298fi
5299
5300found="no"
5301
5302	if test $found = "no" ; then
5303		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5304			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305		fi
5306
5307		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5308			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5309		fi
5310
5311		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5312
5313		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5314$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5315		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5316		if eval \${$cacheid+:} false; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322int
5323main ()
5324{
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"; then :
5331  eval $cacheid=yes
5332else
5333  eval $cacheid=no
5334fi
5335rm -f core conftest.err conftest.$ac_objext \
5336    conftest$ac_exeext conftest.$ac_ext
5337fi
5338
5339
5340		CFLAGS="$xorg_testset_save_CFLAGS"
5341
5342		eval supported=\$$cacheid
5343		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5344$as_echo "$supported" >&6; }
5345		if test "$supported" = "yes" ; then
5346			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5347			found="yes"
5348		fi
5349	fi
5350
5351
5352
5353
5354
5355# This chunk adds additional warnings that could catch undesired effects.
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369xorg_testset_save_CFLAGS="$CFLAGS"
5370
5371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5374$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5375if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5376  $as_echo_n "(cached) " >&6
5377else
5378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380int i;
5381_ACEOF
5382if ac_fn_c_try_compile "$LINENO"; then :
5383  xorg_cv_cc_flag_unknown_warning_option=yes
5384else
5385  xorg_cv_cc_flag_unknown_warning_option=no
5386fi
5387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5390$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5391	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5392	CFLAGS="$xorg_testset_save_CFLAGS"
5393fi
5394
5395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5396	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5397		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398	fi
5399	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5401$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5402if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"; then :
5410  xorg_cv_cc_flag_unused_command_line_argument=yes
5411else
5412  xorg_cv_cc_flag_unused_command_line_argument=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5417$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5418	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5419	CFLAGS="$xorg_testset_save_CFLAGS"
5420fi
5421
5422found="no"
5423
5424	if test $found = "no" ; then
5425		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427		fi
5428
5429		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431		fi
5432
5433		CFLAGS="$CFLAGS -Wunused"
5434
5435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5436$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5437		cacheid=xorg_cv_cc_flag__Wunused
5438		if eval \${$cacheid+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443int i;
5444int
5445main ()
5446{
5447
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452if ac_fn_c_try_link "$LINENO"; then :
5453  eval $cacheid=yes
5454else
5455  eval $cacheid=no
5456fi
5457rm -f core conftest.err conftest.$ac_objext \
5458    conftest$ac_exeext conftest.$ac_ext
5459fi
5460
5461
5462		CFLAGS="$xorg_testset_save_CFLAGS"
5463
5464		eval supported=\$$cacheid
5465		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5466$as_echo "$supported" >&6; }
5467		if test "$supported" = "yes" ; then
5468			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5469			found="yes"
5470		fi
5471	fi
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487xorg_testset_save_CFLAGS="$CFLAGS"
5488
5489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5494  $as_echo_n "(cached) " >&6
5495else
5496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h.  */
5498int i;
5499_ACEOF
5500if ac_fn_c_try_compile "$LINENO"; then :
5501  xorg_cv_cc_flag_unknown_warning_option=yes
5502else
5503  xorg_cv_cc_flag_unknown_warning_option=no
5504fi
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5509	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5510	CFLAGS="$xorg_testset_save_CFLAGS"
5511fi
5512
5513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5514	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5515		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516	fi
5517	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525int i;
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
5528  xorg_cv_cc_flag_unused_command_line_argument=yes
5529else
5530  xorg_cv_cc_flag_unused_command_line_argument=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5537	CFLAGS="$xorg_testset_save_CFLAGS"
5538fi
5539
5540found="no"
5541
5542	if test $found = "no" ; then
5543		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545		fi
5546
5547		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549		fi
5550
5551		CFLAGS="$CFLAGS -Wuninitialized"
5552
5553		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5554$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5555		cacheid=xorg_cv_cc_flag__Wuninitialized
5556		if eval \${$cacheid+:} false; then :
5557  $as_echo_n "(cached) " >&6
5558else
5559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h.  */
5561int i;
5562int
5563main ()
5564{
5565
5566  ;
5567  return 0;
5568}
5569_ACEOF
5570if ac_fn_c_try_link "$LINENO"; then :
5571  eval $cacheid=yes
5572else
5573  eval $cacheid=no
5574fi
5575rm -f core conftest.err conftest.$ac_objext \
5576    conftest$ac_exeext conftest.$ac_ext
5577fi
5578
5579
5580		CFLAGS="$xorg_testset_save_CFLAGS"
5581
5582		eval supported=\$$cacheid
5583		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5584$as_echo "$supported" >&6; }
5585		if test "$supported" = "yes" ; then
5586			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5587			found="yes"
5588		fi
5589	fi
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605xorg_testset_save_CFLAGS="$CFLAGS"
5606
5607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5612  $as_echo_n "(cached) " >&6
5613else
5614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h.  */
5616int i;
5617_ACEOF
5618if ac_fn_c_try_compile "$LINENO"; then :
5619  xorg_cv_cc_flag_unknown_warning_option=yes
5620else
5621  xorg_cv_cc_flag_unknown_warning_option=no
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624fi
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5628	CFLAGS="$xorg_testset_save_CFLAGS"
5629fi
5630
5631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5634	fi
5635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642/* end confdefs.h.  */
5643int i;
5644_ACEOF
5645if ac_fn_c_try_compile "$LINENO"; then :
5646  xorg_cv_cc_flag_unused_command_line_argument=yes
5647else
5648  xorg_cv_cc_flag_unused_command_line_argument=no
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5654	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5655	CFLAGS="$xorg_testset_save_CFLAGS"
5656fi
5657
5658found="no"
5659
5660	if test $found = "no" ; then
5661		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5663		fi
5664
5665		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5667		fi
5668
5669		CFLAGS="$CFLAGS -Wshadow"
5670
5671		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5672$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5673		cacheid=xorg_cv_cc_flag__Wshadow
5674		if eval \${$cacheid+:} false; then :
5675  $as_echo_n "(cached) " >&6
5676else
5677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h.  */
5679int i;
5680int
5681main ()
5682{
5683
5684  ;
5685  return 0;
5686}
5687_ACEOF
5688if ac_fn_c_try_link "$LINENO"; then :
5689  eval $cacheid=yes
5690else
5691  eval $cacheid=no
5692fi
5693rm -f core conftest.err conftest.$ac_objext \
5694    conftest$ac_exeext conftest.$ac_ext
5695fi
5696
5697
5698		CFLAGS="$xorg_testset_save_CFLAGS"
5699
5700		eval supported=\$$cacheid
5701		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5702$as_echo "$supported" >&6; }
5703		if test "$supported" = "yes" ; then
5704			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5705			found="yes"
5706		fi
5707	fi
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723xorg_testset_save_CFLAGS="$CFLAGS"
5724
5725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733/* end confdefs.h.  */
5734int i;
5735_ACEOF
5736if ac_fn_c_try_compile "$LINENO"; then :
5737  xorg_cv_cc_flag_unknown_warning_option=yes
5738else
5739  xorg_cv_cc_flag_unknown_warning_option=no
5740fi
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742fi
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5746	CFLAGS="$xorg_testset_save_CFLAGS"
5747fi
5748
5749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752	fi
5753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761int i;
5762_ACEOF
5763if ac_fn_c_try_compile "$LINENO"; then :
5764  xorg_cv_cc_flag_unused_command_line_argument=yes
5765else
5766  xorg_cv_cc_flag_unused_command_line_argument=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5772	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5773	CFLAGS="$xorg_testset_save_CFLAGS"
5774fi
5775
5776found="no"
5777
5778	if test $found = "no" ; then
5779		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781		fi
5782
5783		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785		fi
5786
5787		CFLAGS="$CFLAGS -Wcast-qual"
5788
5789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5790$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5791		cacheid=xorg_cv_cc_flag__Wcast_qual
5792		if eval \${$cacheid+:} false; then :
5793  $as_echo_n "(cached) " >&6
5794else
5795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h.  */
5797int i;
5798int
5799main ()
5800{
5801
5802  ;
5803  return 0;
5804}
5805_ACEOF
5806if ac_fn_c_try_link "$LINENO"; then :
5807  eval $cacheid=yes
5808else
5809  eval $cacheid=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext \
5812    conftest$ac_exeext conftest.$ac_ext
5813fi
5814
5815
5816		CFLAGS="$xorg_testset_save_CFLAGS"
5817
5818		eval supported=\$$cacheid
5819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5820$as_echo "$supported" >&6; }
5821		if test "$supported" = "yes" ; then
5822			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5823			found="yes"
5824		fi
5825	fi
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841xorg_testset_save_CFLAGS="$CFLAGS"
5842
5843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851/* end confdefs.h.  */
5852int i;
5853_ACEOF
5854if ac_fn_c_try_compile "$LINENO"; then :
5855  xorg_cv_cc_flag_unknown_warning_option=yes
5856else
5857  xorg_cv_cc_flag_unknown_warning_option=no
5858fi
5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860fi
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5864	CFLAGS="$xorg_testset_save_CFLAGS"
5865fi
5866
5867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5870	fi
5871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879int i;
5880_ACEOF
5881if ac_fn_c_try_compile "$LINENO"; then :
5882  xorg_cv_cc_flag_unused_command_line_argument=yes
5883else
5884  xorg_cv_cc_flag_unused_command_line_argument=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5891	CFLAGS="$xorg_testset_save_CFLAGS"
5892fi
5893
5894found="no"
5895
5896	if test $found = "no" ; then
5897		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899		fi
5900
5901		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5903		fi
5904
5905		CFLAGS="$CFLAGS -Wmissing-noreturn"
5906
5907		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5908$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5909		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
5910		if eval \${$cacheid+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h.  */
5915int i;
5916int
5917main ()
5918{
5919
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924if ac_fn_c_try_link "$LINENO"; then :
5925  eval $cacheid=yes
5926else
5927  eval $cacheid=no
5928fi
5929rm -f core conftest.err conftest.$ac_objext \
5930    conftest$ac_exeext conftest.$ac_ext
5931fi
5932
5933
5934		CFLAGS="$xorg_testset_save_CFLAGS"
5935
5936		eval supported=\$$cacheid
5937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5938$as_echo "$supported" >&6; }
5939		if test "$supported" = "yes" ; then
5940			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5941			found="yes"
5942		fi
5943	fi
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959xorg_testset_save_CFLAGS="$CFLAGS"
5960
5961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969/* end confdefs.h.  */
5970int i;
5971_ACEOF
5972if ac_fn_c_try_compile "$LINENO"; then :
5973  xorg_cv_cc_flag_unknown_warning_option=yes
5974else
5975  xorg_cv_cc_flag_unknown_warning_option=no
5976fi
5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978fi
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5982	CFLAGS="$xorg_testset_save_CFLAGS"
5983fi
5984
5985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5988	fi
5989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997int i;
5998_ACEOF
5999if ac_fn_c_try_compile "$LINENO"; then :
6000  xorg_cv_cc_flag_unused_command_line_argument=yes
6001else
6002  xorg_cv_cc_flag_unused_command_line_argument=no
6003fi
6004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005fi
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6009	CFLAGS="$xorg_testset_save_CFLAGS"
6010fi
6011
6012found="no"
6013
6014	if test $found = "no" ; then
6015		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017		fi
6018
6019		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6021		fi
6022
6023		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6024
6025		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6026$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6027		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6028		if eval \${$cacheid+:} false; then :
6029  $as_echo_n "(cached) " >&6
6030else
6031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h.  */
6033int i;
6034int
6035main ()
6036{
6037
6038  ;
6039  return 0;
6040}
6041_ACEOF
6042if ac_fn_c_try_link "$LINENO"; then :
6043  eval $cacheid=yes
6044else
6045  eval $cacheid=no
6046fi
6047rm -f core conftest.err conftest.$ac_objext \
6048    conftest$ac_exeext conftest.$ac_ext
6049fi
6050
6051
6052		CFLAGS="$xorg_testset_save_CFLAGS"
6053
6054		eval supported=\$$cacheid
6055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6056$as_echo "$supported" >&6; }
6057		if test "$supported" = "yes" ; then
6058			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6059			found="yes"
6060		fi
6061	fi
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077xorg_testset_save_CFLAGS="$CFLAGS"
6078
6079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h.  */
6088int i;
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091  xorg_cv_cc_flag_unknown_warning_option=yes
6092else
6093  xorg_cv_cc_flag_unknown_warning_option=no
6094fi
6095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6100	CFLAGS="$xorg_testset_save_CFLAGS"
6101fi
6102
6103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106	fi
6107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6111  $as_echo_n "(cached) " >&6
6112else
6113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h.  */
6115int i;
6116_ACEOF
6117if ac_fn_c_try_compile "$LINENO"; then :
6118  xorg_cv_cc_flag_unused_command_line_argument=yes
6119else
6120  xorg_cv_cc_flag_unused_command_line_argument=no
6121fi
6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123fi
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6127	CFLAGS="$xorg_testset_save_CFLAGS"
6128fi
6129
6130found="no"
6131
6132	if test $found = "no" ; then
6133		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6135		fi
6136
6137		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6139		fi
6140
6141		CFLAGS="$CFLAGS -Wredundant-decls"
6142
6143		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6144$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6145		cacheid=xorg_cv_cc_flag__Wredundant_decls
6146		if eval \${$cacheid+:} false; then :
6147  $as_echo_n "(cached) " >&6
6148else
6149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h.  */
6151int i;
6152int
6153main ()
6154{
6155
6156  ;
6157  return 0;
6158}
6159_ACEOF
6160if ac_fn_c_try_link "$LINENO"; then :
6161  eval $cacheid=yes
6162else
6163  eval $cacheid=no
6164fi
6165rm -f core conftest.err conftest.$ac_objext \
6166    conftest$ac_exeext conftest.$ac_ext
6167fi
6168
6169
6170		CFLAGS="$xorg_testset_save_CFLAGS"
6171
6172		eval supported=\$$cacheid
6173		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6174$as_echo "$supported" >&6; }
6175		if test "$supported" = "yes" ; then
6176			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6177			found="yes"
6178		fi
6179	fi
6180
6181
6182
6183# These are currently disabled because they are noisy.  They will be enabled
6184# in the future once the codebase is sufficiently modernized to silence
6185# them.  For now, I don't want them to drown out the other warnings.
6186# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6187# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6188# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6189
6190# Turn some warnings into errors, so we don't accidently get successful builds
6191# when there are problems that should be fixed.
6192
6193if test "x$SELECTIVE_WERROR" = "xyes" ; then
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207xorg_testset_save_CFLAGS="$CFLAGS"
6208
6209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6214  $as_echo_n "(cached) " >&6
6215else
6216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217/* end confdefs.h.  */
6218int i;
6219_ACEOF
6220if ac_fn_c_try_compile "$LINENO"; then :
6221  xorg_cv_cc_flag_unknown_warning_option=yes
6222else
6223  xorg_cv_cc_flag_unknown_warning_option=no
6224fi
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226fi
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6229	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6230	CFLAGS="$xorg_testset_save_CFLAGS"
6231fi
6232
6233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6234	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6235		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6236	fi
6237	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6241  $as_echo_n "(cached) " >&6
6242else
6243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245int i;
6246_ACEOF
6247if ac_fn_c_try_compile "$LINENO"; then :
6248  xorg_cv_cc_flag_unused_command_line_argument=yes
6249else
6250  xorg_cv_cc_flag_unused_command_line_argument=no
6251fi
6252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253fi
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6257	CFLAGS="$xorg_testset_save_CFLAGS"
6258fi
6259
6260found="no"
6261
6262	if test $found = "no" ; then
6263		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6265		fi
6266
6267		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6269		fi
6270
6271		CFLAGS="$CFLAGS -Werror=implicit"
6272
6273		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6274$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6275		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6276		if eval \${$cacheid+:} false; then :
6277  $as_echo_n "(cached) " >&6
6278else
6279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h.  */
6281int i;
6282int
6283main ()
6284{
6285
6286  ;
6287  return 0;
6288}
6289_ACEOF
6290if ac_fn_c_try_link "$LINENO"; then :
6291  eval $cacheid=yes
6292else
6293  eval $cacheid=no
6294fi
6295rm -f core conftest.err conftest.$ac_objext \
6296    conftest$ac_exeext conftest.$ac_ext
6297fi
6298
6299
6300		CFLAGS="$xorg_testset_save_CFLAGS"
6301
6302		eval supported=\$$cacheid
6303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6304$as_echo "$supported" >&6; }
6305		if test "$supported" = "yes" ; then
6306			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6307			found="yes"
6308		fi
6309	fi
6310
6311	if test $found = "no" ; then
6312		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6314		fi
6315
6316		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6318		fi
6319
6320		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6321
6322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6323$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6324		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6325		if eval \${$cacheid+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331int
6332main ()
6333{
6334
6335  ;
6336  return 0;
6337}
6338_ACEOF
6339if ac_fn_c_try_link "$LINENO"; then :
6340  eval $cacheid=yes
6341else
6342  eval $cacheid=no
6343fi
6344rm -f core conftest.err conftest.$ac_objext \
6345    conftest$ac_exeext conftest.$ac_ext
6346fi
6347
6348
6349		CFLAGS="$xorg_testset_save_CFLAGS"
6350
6351		eval supported=\$$cacheid
6352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6353$as_echo "$supported" >&6; }
6354		if test "$supported" = "yes" ; then
6355			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6356			found="yes"
6357		fi
6358	fi
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374xorg_testset_save_CFLAGS="$CFLAGS"
6375
6376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6381  $as_echo_n "(cached) " >&6
6382else
6383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h.  */
6385int i;
6386_ACEOF
6387if ac_fn_c_try_compile "$LINENO"; then :
6388  xorg_cv_cc_flag_unknown_warning_option=yes
6389else
6390  xorg_cv_cc_flag_unknown_warning_option=no
6391fi
6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393fi
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6397	CFLAGS="$xorg_testset_save_CFLAGS"
6398fi
6399
6400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6403	fi
6404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6408  $as_echo_n "(cached) " >&6
6409else
6410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411/* end confdefs.h.  */
6412int i;
6413_ACEOF
6414if ac_fn_c_try_compile "$LINENO"; then :
6415  xorg_cv_cc_flag_unused_command_line_argument=yes
6416else
6417  xorg_cv_cc_flag_unused_command_line_argument=no
6418fi
6419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420fi
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6424	CFLAGS="$xorg_testset_save_CFLAGS"
6425fi
6426
6427found="no"
6428
6429	if test $found = "no" ; then
6430		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6432		fi
6433
6434		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6436		fi
6437
6438		CFLAGS="$CFLAGS -Werror=nonnull"
6439
6440		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6441$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6442		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6443		if eval \${$cacheid+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448int i;
6449int
6450main ()
6451{
6452
6453  ;
6454  return 0;
6455}
6456_ACEOF
6457if ac_fn_c_try_link "$LINENO"; then :
6458  eval $cacheid=yes
6459else
6460  eval $cacheid=no
6461fi
6462rm -f core conftest.err conftest.$ac_objext \
6463    conftest$ac_exeext conftest.$ac_ext
6464fi
6465
6466
6467		CFLAGS="$xorg_testset_save_CFLAGS"
6468
6469		eval supported=\$$cacheid
6470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6471$as_echo "$supported" >&6; }
6472		if test "$supported" = "yes" ; then
6473			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6474			found="yes"
6475		fi
6476	fi
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492xorg_testset_save_CFLAGS="$CFLAGS"
6493
6494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h.  */
6503int i;
6504_ACEOF
6505if ac_fn_c_try_compile "$LINENO"; then :
6506  xorg_cv_cc_flag_unknown_warning_option=yes
6507else
6508  xorg_cv_cc_flag_unknown_warning_option=no
6509fi
6510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511fi
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6515	CFLAGS="$xorg_testset_save_CFLAGS"
6516fi
6517
6518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6521	fi
6522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h.  */
6530int i;
6531_ACEOF
6532if ac_fn_c_try_compile "$LINENO"; then :
6533  xorg_cv_cc_flag_unused_command_line_argument=yes
6534else
6535  xorg_cv_cc_flag_unused_command_line_argument=no
6536fi
6537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6542	CFLAGS="$xorg_testset_save_CFLAGS"
6543fi
6544
6545found="no"
6546
6547	if test $found = "no" ; then
6548		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6550		fi
6551
6552		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6554		fi
6555
6556		CFLAGS="$CFLAGS -Werror=init-self"
6557
6558		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6559$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6560		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6561		if eval \${$cacheid+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566int i;
6567int
6568main ()
6569{
6570
6571  ;
6572  return 0;
6573}
6574_ACEOF
6575if ac_fn_c_try_link "$LINENO"; then :
6576  eval $cacheid=yes
6577else
6578  eval $cacheid=no
6579fi
6580rm -f core conftest.err conftest.$ac_objext \
6581    conftest$ac_exeext conftest.$ac_ext
6582fi
6583
6584
6585		CFLAGS="$xorg_testset_save_CFLAGS"
6586
6587		eval supported=\$$cacheid
6588		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6589$as_echo "$supported" >&6; }
6590		if test "$supported" = "yes" ; then
6591			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6592			found="yes"
6593		fi
6594	fi
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610xorg_testset_save_CFLAGS="$CFLAGS"
6611
6612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621int i;
6622_ACEOF
6623if ac_fn_c_try_compile "$LINENO"; then :
6624  xorg_cv_cc_flag_unknown_warning_option=yes
6625else
6626  xorg_cv_cc_flag_unknown_warning_option=no
6627fi
6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6633	CFLAGS="$xorg_testset_save_CFLAGS"
6634fi
6635
6636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6639	fi
6640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6644  $as_echo_n "(cached) " >&6
6645else
6646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647/* end confdefs.h.  */
6648int i;
6649_ACEOF
6650if ac_fn_c_try_compile "$LINENO"; then :
6651  xorg_cv_cc_flag_unused_command_line_argument=yes
6652else
6653  xorg_cv_cc_flag_unused_command_line_argument=no
6654fi
6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656fi
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6659	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6660	CFLAGS="$xorg_testset_save_CFLAGS"
6661fi
6662
6663found="no"
6664
6665	if test $found = "no" ; then
6666		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6667			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6668		fi
6669
6670		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6671			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6672		fi
6673
6674		CFLAGS="$CFLAGS -Werror=main"
6675
6676		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6677$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6678		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
6679		if eval \${$cacheid+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684int i;
6685int
6686main ()
6687{
6688
6689  ;
6690  return 0;
6691}
6692_ACEOF
6693if ac_fn_c_try_link "$LINENO"; then :
6694  eval $cacheid=yes
6695else
6696  eval $cacheid=no
6697fi
6698rm -f core conftest.err conftest.$ac_objext \
6699    conftest$ac_exeext conftest.$ac_ext
6700fi
6701
6702
6703		CFLAGS="$xorg_testset_save_CFLAGS"
6704
6705		eval supported=\$$cacheid
6706		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6707$as_echo "$supported" >&6; }
6708		if test "$supported" = "yes" ; then
6709			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6710			found="yes"
6711		fi
6712	fi
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728xorg_testset_save_CFLAGS="$CFLAGS"
6729
6730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h.  */
6739int i;
6740_ACEOF
6741if ac_fn_c_try_compile "$LINENO"; then :
6742  xorg_cv_cc_flag_unknown_warning_option=yes
6743else
6744  xorg_cv_cc_flag_unknown_warning_option=no
6745fi
6746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747fi
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6751	CFLAGS="$xorg_testset_save_CFLAGS"
6752fi
6753
6754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6757	fi
6758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6762  $as_echo_n "(cached) " >&6
6763else
6764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765/* end confdefs.h.  */
6766int i;
6767_ACEOF
6768if ac_fn_c_try_compile "$LINENO"; then :
6769  xorg_cv_cc_flag_unused_command_line_argument=yes
6770else
6771  xorg_cv_cc_flag_unused_command_line_argument=no
6772fi
6773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774fi
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6778	CFLAGS="$xorg_testset_save_CFLAGS"
6779fi
6780
6781found="no"
6782
6783	if test $found = "no" ; then
6784		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6786		fi
6787
6788		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6790		fi
6791
6792		CFLAGS="$CFLAGS -Werror=missing-braces"
6793
6794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6795$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6796		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
6797		if eval \${$cacheid+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h.  */
6802int i;
6803int
6804main ()
6805{
6806
6807  ;
6808  return 0;
6809}
6810_ACEOF
6811if ac_fn_c_try_link "$LINENO"; then :
6812  eval $cacheid=yes
6813else
6814  eval $cacheid=no
6815fi
6816rm -f core conftest.err conftest.$ac_objext \
6817    conftest$ac_exeext conftest.$ac_ext
6818fi
6819
6820
6821		CFLAGS="$xorg_testset_save_CFLAGS"
6822
6823		eval supported=\$$cacheid
6824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6825$as_echo "$supported" >&6; }
6826		if test "$supported" = "yes" ; then
6827			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6828			found="yes"
6829		fi
6830	fi
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846xorg_testset_save_CFLAGS="$CFLAGS"
6847
6848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857int i;
6858_ACEOF
6859if ac_fn_c_try_compile "$LINENO"; then :
6860  xorg_cv_cc_flag_unknown_warning_option=yes
6861else
6862  xorg_cv_cc_flag_unknown_warning_option=no
6863fi
6864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865fi
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6869	CFLAGS="$xorg_testset_save_CFLAGS"
6870fi
6871
6872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875	fi
6876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883/* end confdefs.h.  */
6884int i;
6885_ACEOF
6886if ac_fn_c_try_compile "$LINENO"; then :
6887  xorg_cv_cc_flag_unused_command_line_argument=yes
6888else
6889  xorg_cv_cc_flag_unused_command_line_argument=no
6890fi
6891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892fi
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6896	CFLAGS="$xorg_testset_save_CFLAGS"
6897fi
6898
6899found="no"
6900
6901	if test $found = "no" ; then
6902		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6904		fi
6905
6906		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6908		fi
6909
6910		CFLAGS="$CFLAGS -Werror=sequence-point"
6911
6912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6913$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6914		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
6915		if eval \${$cacheid+:} false; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920int i;
6921int
6922main ()
6923{
6924
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929if ac_fn_c_try_link "$LINENO"; then :
6930  eval $cacheid=yes
6931else
6932  eval $cacheid=no
6933fi
6934rm -f core conftest.err conftest.$ac_objext \
6935    conftest$ac_exeext conftest.$ac_ext
6936fi
6937
6938
6939		CFLAGS="$xorg_testset_save_CFLAGS"
6940
6941		eval supported=\$$cacheid
6942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6943$as_echo "$supported" >&6; }
6944		if test "$supported" = "yes" ; then
6945			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6946			found="yes"
6947		fi
6948	fi
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964xorg_testset_save_CFLAGS="$CFLAGS"
6965
6966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975int i;
6976_ACEOF
6977if ac_fn_c_try_compile "$LINENO"; then :
6978  xorg_cv_cc_flag_unknown_warning_option=yes
6979else
6980  xorg_cv_cc_flag_unknown_warning_option=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987	CFLAGS="$xorg_testset_save_CFLAGS"
6988fi
6989
6990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993	fi
6994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6998  $as_echo_n "(cached) " >&6
6999else
7000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001/* end confdefs.h.  */
7002int i;
7003_ACEOF
7004if ac_fn_c_try_compile "$LINENO"; then :
7005  xorg_cv_cc_flag_unused_command_line_argument=yes
7006else
7007  xorg_cv_cc_flag_unused_command_line_argument=no
7008fi
7009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7014	CFLAGS="$xorg_testset_save_CFLAGS"
7015fi
7016
7017found="no"
7018
7019	if test $found = "no" ; then
7020		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7022		fi
7023
7024		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026		fi
7027
7028		CFLAGS="$CFLAGS -Werror=return-type"
7029
7030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7031$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7032		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7033		if eval \${$cacheid+:} false; then :
7034  $as_echo_n "(cached) " >&6
7035else
7036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h.  */
7038int i;
7039int
7040main ()
7041{
7042
7043  ;
7044  return 0;
7045}
7046_ACEOF
7047if ac_fn_c_try_link "$LINENO"; then :
7048  eval $cacheid=yes
7049else
7050  eval $cacheid=no
7051fi
7052rm -f core conftest.err conftest.$ac_objext \
7053    conftest$ac_exeext conftest.$ac_ext
7054fi
7055
7056
7057		CFLAGS="$xorg_testset_save_CFLAGS"
7058
7059		eval supported=\$$cacheid
7060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7061$as_echo "$supported" >&6; }
7062		if test "$supported" = "yes" ; then
7063			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7064			found="yes"
7065		fi
7066	fi
7067
7068	if test $found = "no" ; then
7069		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7071		fi
7072
7073		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7075		fi
7076
7077		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7078
7079		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7080$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7081		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7082		if eval \${$cacheid+:} false; then :
7083  $as_echo_n "(cached) " >&6
7084else
7085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086/* end confdefs.h.  */
7087int i;
7088int
7089main ()
7090{
7091
7092  ;
7093  return 0;
7094}
7095_ACEOF
7096if ac_fn_c_try_link "$LINENO"; then :
7097  eval $cacheid=yes
7098else
7099  eval $cacheid=no
7100fi
7101rm -f core conftest.err conftest.$ac_objext \
7102    conftest$ac_exeext conftest.$ac_ext
7103fi
7104
7105
7106		CFLAGS="$xorg_testset_save_CFLAGS"
7107
7108		eval supported=\$$cacheid
7109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7110$as_echo "$supported" >&6; }
7111		if test "$supported" = "yes" ; then
7112			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7113			found="yes"
7114		fi
7115	fi
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131xorg_testset_save_CFLAGS="$CFLAGS"
7132
7133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142int i;
7143_ACEOF
7144if ac_fn_c_try_compile "$LINENO"; then :
7145  xorg_cv_cc_flag_unknown_warning_option=yes
7146else
7147  xorg_cv_cc_flag_unknown_warning_option=no
7148fi
7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7154	CFLAGS="$xorg_testset_save_CFLAGS"
7155fi
7156
7157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7160	fi
7161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7165  $as_echo_n "(cached) " >&6
7166else
7167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h.  */
7169int i;
7170_ACEOF
7171if ac_fn_c_try_compile "$LINENO"; then :
7172  xorg_cv_cc_flag_unused_command_line_argument=yes
7173else
7174  xorg_cv_cc_flag_unused_command_line_argument=no
7175fi
7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177fi
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7180	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7181	CFLAGS="$xorg_testset_save_CFLAGS"
7182fi
7183
7184found="no"
7185
7186	if test $found = "no" ; then
7187		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189		fi
7190
7191		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193		fi
7194
7195		CFLAGS="$CFLAGS -Werror=trigraphs"
7196
7197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7198$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7199		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7200		if eval \${$cacheid+:} false; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h.  */
7205int i;
7206int
7207main ()
7208{
7209
7210  ;
7211  return 0;
7212}
7213_ACEOF
7214if ac_fn_c_try_link "$LINENO"; then :
7215  eval $cacheid=yes
7216else
7217  eval $cacheid=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext \
7220    conftest$ac_exeext conftest.$ac_ext
7221fi
7222
7223
7224		CFLAGS="$xorg_testset_save_CFLAGS"
7225
7226		eval supported=\$$cacheid
7227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7228$as_echo "$supported" >&6; }
7229		if test "$supported" = "yes" ; then
7230			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7231			found="yes"
7232		fi
7233	fi
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249xorg_testset_save_CFLAGS="$CFLAGS"
7250
7251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7256  $as_echo_n "(cached) " >&6
7257else
7258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260int i;
7261_ACEOF
7262if ac_fn_c_try_compile "$LINENO"; then :
7263  xorg_cv_cc_flag_unknown_warning_option=yes
7264else
7265  xorg_cv_cc_flag_unknown_warning_option=no
7266fi
7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268fi
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7272	CFLAGS="$xorg_testset_save_CFLAGS"
7273fi
7274
7275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278	fi
7279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7283  $as_echo_n "(cached) " >&6
7284else
7285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287int i;
7288_ACEOF
7289if ac_fn_c_try_compile "$LINENO"; then :
7290  xorg_cv_cc_flag_unused_command_line_argument=yes
7291else
7292  xorg_cv_cc_flag_unused_command_line_argument=no
7293fi
7294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295fi
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7299	CFLAGS="$xorg_testset_save_CFLAGS"
7300fi
7301
7302found="no"
7303
7304	if test $found = "no" ; then
7305		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307		fi
7308
7309		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7311		fi
7312
7313		CFLAGS="$CFLAGS -Werror=array-bounds"
7314
7315		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7316$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7317		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7318		if eval \${$cacheid+:} false; then :
7319  $as_echo_n "(cached) " >&6
7320else
7321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322/* end confdefs.h.  */
7323int i;
7324int
7325main ()
7326{
7327
7328  ;
7329  return 0;
7330}
7331_ACEOF
7332if ac_fn_c_try_link "$LINENO"; then :
7333  eval $cacheid=yes
7334else
7335  eval $cacheid=no
7336fi
7337rm -f core conftest.err conftest.$ac_objext \
7338    conftest$ac_exeext conftest.$ac_ext
7339fi
7340
7341
7342		CFLAGS="$xorg_testset_save_CFLAGS"
7343
7344		eval supported=\$$cacheid
7345		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7346$as_echo "$supported" >&6; }
7347		if test "$supported" = "yes" ; then
7348			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7349			found="yes"
7350		fi
7351	fi
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367xorg_testset_save_CFLAGS="$CFLAGS"
7368
7369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7374  $as_echo_n "(cached) " >&6
7375else
7376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377/* end confdefs.h.  */
7378int i;
7379_ACEOF
7380if ac_fn_c_try_compile "$LINENO"; then :
7381  xorg_cv_cc_flag_unknown_warning_option=yes
7382else
7383  xorg_cv_cc_flag_unknown_warning_option=no
7384fi
7385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386fi
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7390	CFLAGS="$xorg_testset_save_CFLAGS"
7391fi
7392
7393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396	fi
7397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405int i;
7406_ACEOF
7407if ac_fn_c_try_compile "$LINENO"; then :
7408  xorg_cv_cc_flag_unused_command_line_argument=yes
7409else
7410  xorg_cv_cc_flag_unused_command_line_argument=no
7411fi
7412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7417	CFLAGS="$xorg_testset_save_CFLAGS"
7418fi
7419
7420found="no"
7421
7422	if test $found = "no" ; then
7423		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7425		fi
7426
7427		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429		fi
7430
7431		CFLAGS="$CFLAGS -Werror=write-strings"
7432
7433		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7434$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7435		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7436		if eval \${$cacheid+:} false; then :
7437  $as_echo_n "(cached) " >&6
7438else
7439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440/* end confdefs.h.  */
7441int i;
7442int
7443main ()
7444{
7445
7446  ;
7447  return 0;
7448}
7449_ACEOF
7450if ac_fn_c_try_link "$LINENO"; then :
7451  eval $cacheid=yes
7452else
7453  eval $cacheid=no
7454fi
7455rm -f core conftest.err conftest.$ac_objext \
7456    conftest$ac_exeext conftest.$ac_ext
7457fi
7458
7459
7460		CFLAGS="$xorg_testset_save_CFLAGS"
7461
7462		eval supported=\$$cacheid
7463		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7464$as_echo "$supported" >&6; }
7465		if test "$supported" = "yes" ; then
7466			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7467			found="yes"
7468		fi
7469	fi
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485xorg_testset_save_CFLAGS="$CFLAGS"
7486
7487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7492  $as_echo_n "(cached) " >&6
7493else
7494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h.  */
7496int i;
7497_ACEOF
7498if ac_fn_c_try_compile "$LINENO"; then :
7499  xorg_cv_cc_flag_unknown_warning_option=yes
7500else
7501  xorg_cv_cc_flag_unknown_warning_option=no
7502fi
7503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504fi
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7508	CFLAGS="$xorg_testset_save_CFLAGS"
7509fi
7510
7511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514	fi
7515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7519  $as_echo_n "(cached) " >&6
7520else
7521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523int i;
7524_ACEOF
7525if ac_fn_c_try_compile "$LINENO"; then :
7526  xorg_cv_cc_flag_unused_command_line_argument=yes
7527else
7528  xorg_cv_cc_flag_unused_command_line_argument=no
7529fi
7530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531fi
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7535	CFLAGS="$xorg_testset_save_CFLAGS"
7536fi
7537
7538found="no"
7539
7540	if test $found = "no" ; then
7541		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543		fi
7544
7545		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547		fi
7548
7549		CFLAGS="$CFLAGS -Werror=address"
7550
7551		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7552$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7553		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7554		if eval \${$cacheid+:} false; then :
7555  $as_echo_n "(cached) " >&6
7556else
7557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558/* end confdefs.h.  */
7559int i;
7560int
7561main ()
7562{
7563
7564  ;
7565  return 0;
7566}
7567_ACEOF
7568if ac_fn_c_try_link "$LINENO"; then :
7569  eval $cacheid=yes
7570else
7571  eval $cacheid=no
7572fi
7573rm -f core conftest.err conftest.$ac_objext \
7574    conftest$ac_exeext conftest.$ac_ext
7575fi
7576
7577
7578		CFLAGS="$xorg_testset_save_CFLAGS"
7579
7580		eval supported=\$$cacheid
7581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7582$as_echo "$supported" >&6; }
7583		if test "$supported" = "yes" ; then
7584			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7585			found="yes"
7586		fi
7587	fi
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603xorg_testset_save_CFLAGS="$CFLAGS"
7604
7605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7610  $as_echo_n "(cached) " >&6
7611else
7612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h.  */
7614int i;
7615_ACEOF
7616if ac_fn_c_try_compile "$LINENO"; then :
7617  xorg_cv_cc_flag_unknown_warning_option=yes
7618else
7619  xorg_cv_cc_flag_unknown_warning_option=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622fi
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7626	CFLAGS="$xorg_testset_save_CFLAGS"
7627fi
7628
7629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632	fi
7633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7637  $as_echo_n "(cached) " >&6
7638else
7639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h.  */
7641int i;
7642_ACEOF
7643if ac_fn_c_try_compile "$LINENO"; then :
7644  xorg_cv_cc_flag_unused_command_line_argument=yes
7645else
7646  xorg_cv_cc_flag_unused_command_line_argument=no
7647fi
7648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649fi
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7653	CFLAGS="$xorg_testset_save_CFLAGS"
7654fi
7655
7656found="no"
7657
7658	if test $found = "no" ; then
7659		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661		fi
7662
7663		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665		fi
7666
7667		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7668
7669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7670$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7671		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
7672		if eval \${$cacheid+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676/* end confdefs.h.  */
7677int i;
7678int
7679main ()
7680{
7681
7682  ;
7683  return 0;
7684}
7685_ACEOF
7686if ac_fn_c_try_link "$LINENO"; then :
7687  eval $cacheid=yes
7688else
7689  eval $cacheid=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext \
7692    conftest$ac_exeext conftest.$ac_ext
7693fi
7694
7695
7696		CFLAGS="$xorg_testset_save_CFLAGS"
7697
7698		eval supported=\$$cacheid
7699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7700$as_echo "$supported" >&6; }
7701		if test "$supported" = "yes" ; then
7702			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7703			found="yes"
7704		fi
7705	fi
7706
7707	if test $found = "no" ; then
7708		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7709			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7710		fi
7711
7712		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7713			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714		fi
7715
7716		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7717
7718		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7719$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7720		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
7721		if eval \${$cacheid+:} false; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726int i;
7727int
7728main ()
7729{
7730
7731  ;
7732  return 0;
7733}
7734_ACEOF
7735if ac_fn_c_try_link "$LINENO"; then :
7736  eval $cacheid=yes
7737else
7738  eval $cacheid=no
7739fi
7740rm -f core conftest.err conftest.$ac_objext \
7741    conftest$ac_exeext conftest.$ac_ext
7742fi
7743
7744
7745		CFLAGS="$xorg_testset_save_CFLAGS"
7746
7747		eval supported=\$$cacheid
7748		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7749$as_echo "$supported" >&6; }
7750		if test "$supported" = "yes" ; then
7751			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7752			found="yes"
7753		fi
7754	fi
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770xorg_testset_save_CFLAGS="$CFLAGS"
7771
7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7773	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
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_cv_cc_flag_unknown_warning_option=yes
7785else
7786  xorg_cv_cc_flag_unknown_warning_option=no
7787fi
7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789fi
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7793	CFLAGS="$xorg_testset_save_CFLAGS"
7794fi
7795
7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799	fi
7800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7804  $as_echo_n "(cached) " >&6
7805else
7806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807/* end confdefs.h.  */
7808int i;
7809_ACEOF
7810if ac_fn_c_try_compile "$LINENO"; then :
7811  xorg_cv_cc_flag_unused_command_line_argument=yes
7812else
7813  xorg_cv_cc_flag_unused_command_line_argument=no
7814fi
7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816fi
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7820	CFLAGS="$xorg_testset_save_CFLAGS"
7821fi
7822
7823found="no"
7824
7825	if test $found = "no" ; then
7826		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7828		fi
7829
7830		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832		fi
7833
7834		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7835
7836		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7837$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7838		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
7839		if eval \${$cacheid+:} false; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h.  */
7844int i;
7845int
7846main ()
7847{
7848
7849  ;
7850  return 0;
7851}
7852_ACEOF
7853if ac_fn_c_try_link "$LINENO"; then :
7854  eval $cacheid=yes
7855else
7856  eval $cacheid=no
7857fi
7858rm -f core conftest.err conftest.$ac_objext \
7859    conftest$ac_exeext conftest.$ac_ext
7860fi
7861
7862
7863		CFLAGS="$xorg_testset_save_CFLAGS"
7864
7865		eval supported=\$$cacheid
7866		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7867$as_echo "$supported" >&6; }
7868		if test "$supported" = "yes" ; then
7869			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7870			found="yes"
7871		fi
7872	fi
7873
7874 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7875else
7876{ $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
7877$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;}
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891xorg_testset_save_CFLAGS="$CFLAGS"
7892
7893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7898  $as_echo_n "(cached) " >&6
7899else
7900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902int i;
7903_ACEOF
7904if ac_fn_c_try_compile "$LINENO"; then :
7905  xorg_cv_cc_flag_unknown_warning_option=yes
7906else
7907  xorg_cv_cc_flag_unknown_warning_option=no
7908fi
7909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910fi
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7914	CFLAGS="$xorg_testset_save_CFLAGS"
7915fi
7916
7917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920	fi
7921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h.  */
7929int i;
7930_ACEOF
7931if ac_fn_c_try_compile "$LINENO"; then :
7932  xorg_cv_cc_flag_unused_command_line_argument=yes
7933else
7934  xorg_cv_cc_flag_unused_command_line_argument=no
7935fi
7936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937fi
7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7941	CFLAGS="$xorg_testset_save_CFLAGS"
7942fi
7943
7944found="no"
7945
7946	if test $found = "no" ; then
7947		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949		fi
7950
7951		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7953		fi
7954
7955		CFLAGS="$CFLAGS -Wimplicit"
7956
7957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7958$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7959		cacheid=xorg_cv_cc_flag__Wimplicit
7960		if eval \${$cacheid+:} false; then :
7961  $as_echo_n "(cached) " >&6
7962else
7963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965int i;
7966int
7967main ()
7968{
7969
7970  ;
7971  return 0;
7972}
7973_ACEOF
7974if ac_fn_c_try_link "$LINENO"; then :
7975  eval $cacheid=yes
7976else
7977  eval $cacheid=no
7978fi
7979rm -f core conftest.err conftest.$ac_objext \
7980    conftest$ac_exeext conftest.$ac_ext
7981fi
7982
7983
7984		CFLAGS="$xorg_testset_save_CFLAGS"
7985
7986		eval supported=\$$cacheid
7987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7988$as_echo "$supported" >&6; }
7989		if test "$supported" = "yes" ; then
7990			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7991			found="yes"
7992		fi
7993	fi
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009xorg_testset_save_CFLAGS="$CFLAGS"
8010
8011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h.  */
8020int i;
8021_ACEOF
8022if ac_fn_c_try_compile "$LINENO"; then :
8023  xorg_cv_cc_flag_unknown_warning_option=yes
8024else
8025  xorg_cv_cc_flag_unknown_warning_option=no
8026fi
8027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028fi
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8032	CFLAGS="$xorg_testset_save_CFLAGS"
8033fi
8034
8035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038	fi
8039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8043  $as_echo_n "(cached) " >&6
8044else
8045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047int i;
8048_ACEOF
8049if ac_fn_c_try_compile "$LINENO"; then :
8050  xorg_cv_cc_flag_unused_command_line_argument=yes
8051else
8052  xorg_cv_cc_flag_unused_command_line_argument=no
8053fi
8054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055fi
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8059	CFLAGS="$xorg_testset_save_CFLAGS"
8060fi
8061
8062found="no"
8063
8064	if test $found = "no" ; then
8065		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067		fi
8068
8069		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8071		fi
8072
8073		CFLAGS="$CFLAGS -Wnonnull"
8074
8075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8076$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8077		cacheid=xorg_cv_cc_flag__Wnonnull
8078		if eval \${$cacheid+:} false; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082/* end confdefs.h.  */
8083int i;
8084int
8085main ()
8086{
8087
8088  ;
8089  return 0;
8090}
8091_ACEOF
8092if ac_fn_c_try_link "$LINENO"; then :
8093  eval $cacheid=yes
8094else
8095  eval $cacheid=no
8096fi
8097rm -f core conftest.err conftest.$ac_objext \
8098    conftest$ac_exeext conftest.$ac_ext
8099fi
8100
8101
8102		CFLAGS="$xorg_testset_save_CFLAGS"
8103
8104		eval supported=\$$cacheid
8105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8106$as_echo "$supported" >&6; }
8107		if test "$supported" = "yes" ; then
8108			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8109			found="yes"
8110		fi
8111	fi
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127xorg_testset_save_CFLAGS="$CFLAGS"
8128
8129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8130	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137/* end confdefs.h.  */
8138int i;
8139_ACEOF
8140if ac_fn_c_try_compile "$LINENO"; then :
8141  xorg_cv_cc_flag_unknown_warning_option=yes
8142else
8143  xorg_cv_cc_flag_unknown_warning_option=no
8144fi
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8150	CFLAGS="$xorg_testset_save_CFLAGS"
8151fi
8152
8153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8156	fi
8157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165int i;
8166_ACEOF
8167if ac_fn_c_try_compile "$LINENO"; then :
8168  xorg_cv_cc_flag_unused_command_line_argument=yes
8169else
8170  xorg_cv_cc_flag_unused_command_line_argument=no
8171fi
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173fi
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8177	CFLAGS="$xorg_testset_save_CFLAGS"
8178fi
8179
8180found="no"
8181
8182	if test $found = "no" ; then
8183		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185		fi
8186
8187		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8189		fi
8190
8191		CFLAGS="$CFLAGS -Winit-self"
8192
8193		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8194$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8195		cacheid=xorg_cv_cc_flag__Winit_self
8196		if eval \${$cacheid+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
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  eval $cacheid=yes
8212else
8213  eval $cacheid=no
8214fi
8215rm -f core conftest.err conftest.$ac_objext \
8216    conftest$ac_exeext conftest.$ac_ext
8217fi
8218
8219
8220		CFLAGS="$xorg_testset_save_CFLAGS"
8221
8222		eval supported=\$$cacheid
8223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8224$as_echo "$supported" >&6; }
8225		if test "$supported" = "yes" ; then
8226			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8227			found="yes"
8228		fi
8229	fi
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245xorg_testset_save_CFLAGS="$CFLAGS"
8246
8247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8252  $as_echo_n "(cached) " >&6
8253else
8254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255/* end confdefs.h.  */
8256int i;
8257_ACEOF
8258if ac_fn_c_try_compile "$LINENO"; then :
8259  xorg_cv_cc_flag_unknown_warning_option=yes
8260else
8261  xorg_cv_cc_flag_unknown_warning_option=no
8262fi
8263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264fi
8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8267	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8268	CFLAGS="$xorg_testset_save_CFLAGS"
8269fi
8270
8271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8272	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8273		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8274	fi
8275	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h.  */
8283int i;
8284_ACEOF
8285if ac_fn_c_try_compile "$LINENO"; then :
8286  xorg_cv_cc_flag_unused_command_line_argument=yes
8287else
8288  xorg_cv_cc_flag_unused_command_line_argument=no
8289fi
8290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8291fi
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8295	CFLAGS="$xorg_testset_save_CFLAGS"
8296fi
8297
8298found="no"
8299
8300	if test $found = "no" ; then
8301		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303		fi
8304
8305		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307		fi
8308
8309		CFLAGS="$CFLAGS -Wmain"
8310
8311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8312$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8313		cacheid=xorg_cv_cc_flag__Wmain
8314		if eval \${$cacheid+:} false; then :
8315  $as_echo_n "(cached) " >&6
8316else
8317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319int i;
8320int
8321main ()
8322{
8323
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328if ac_fn_c_try_link "$LINENO"; then :
8329  eval $cacheid=yes
8330else
8331  eval $cacheid=no
8332fi
8333rm -f core conftest.err conftest.$ac_objext \
8334    conftest$ac_exeext conftest.$ac_ext
8335fi
8336
8337
8338		CFLAGS="$xorg_testset_save_CFLAGS"
8339
8340		eval supported=\$$cacheid
8341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8342$as_echo "$supported" >&6; }
8343		if test "$supported" = "yes" ; then
8344			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8345			found="yes"
8346		fi
8347	fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363xorg_testset_save_CFLAGS="$CFLAGS"
8364
8365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8370  $as_echo_n "(cached) " >&6
8371else
8372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h.  */
8374int i;
8375_ACEOF
8376if ac_fn_c_try_compile "$LINENO"; then :
8377  xorg_cv_cc_flag_unknown_warning_option=yes
8378else
8379  xorg_cv_cc_flag_unknown_warning_option=no
8380fi
8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382fi
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8386	CFLAGS="$xorg_testset_save_CFLAGS"
8387fi
8388
8389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392	fi
8393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401int i;
8402_ACEOF
8403if ac_fn_c_try_compile "$LINENO"; then :
8404  xorg_cv_cc_flag_unused_command_line_argument=yes
8405else
8406  xorg_cv_cc_flag_unused_command_line_argument=no
8407fi
8408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409fi
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8413	CFLAGS="$xorg_testset_save_CFLAGS"
8414fi
8415
8416found="no"
8417
8418	if test $found = "no" ; then
8419		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421		fi
8422
8423		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425		fi
8426
8427		CFLAGS="$CFLAGS -Wmissing-braces"
8428
8429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8430$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8431		cacheid=xorg_cv_cc_flag__Wmissing_braces
8432		if eval \${$cacheid+:} false; then :
8433  $as_echo_n "(cached) " >&6
8434else
8435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437int i;
8438int
8439main ()
8440{
8441
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446if ac_fn_c_try_link "$LINENO"; then :
8447  eval $cacheid=yes
8448else
8449  eval $cacheid=no
8450fi
8451rm -f core conftest.err conftest.$ac_objext \
8452    conftest$ac_exeext conftest.$ac_ext
8453fi
8454
8455
8456		CFLAGS="$xorg_testset_save_CFLAGS"
8457
8458		eval supported=\$$cacheid
8459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8460$as_echo "$supported" >&6; }
8461		if test "$supported" = "yes" ; then
8462			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8463			found="yes"
8464		fi
8465	fi
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481xorg_testset_save_CFLAGS="$CFLAGS"
8482
8483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8488  $as_echo_n "(cached) " >&6
8489else
8490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h.  */
8492int i;
8493_ACEOF
8494if ac_fn_c_try_compile "$LINENO"; then :
8495  xorg_cv_cc_flag_unknown_warning_option=yes
8496else
8497  xorg_cv_cc_flag_unknown_warning_option=no
8498fi
8499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500fi
8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8504	CFLAGS="$xorg_testset_save_CFLAGS"
8505fi
8506
8507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8510	fi
8511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520_ACEOF
8521if ac_fn_c_try_compile "$LINENO"; then :
8522  xorg_cv_cc_flag_unused_command_line_argument=yes
8523else
8524  xorg_cv_cc_flag_unused_command_line_argument=no
8525fi
8526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527fi
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8531	CFLAGS="$xorg_testset_save_CFLAGS"
8532fi
8533
8534found="no"
8535
8536	if test $found = "no" ; then
8537		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539		fi
8540
8541		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8543		fi
8544
8545		CFLAGS="$CFLAGS -Wsequence-point"
8546
8547		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8548$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8549		cacheid=xorg_cv_cc_flag__Wsequence_point
8550		if eval \${$cacheid+:} false; then :
8551  $as_echo_n "(cached) " >&6
8552else
8553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h.  */
8555int i;
8556int
8557main ()
8558{
8559
8560  ;
8561  return 0;
8562}
8563_ACEOF
8564if ac_fn_c_try_link "$LINENO"; then :
8565  eval $cacheid=yes
8566else
8567  eval $cacheid=no
8568fi
8569rm -f core conftest.err conftest.$ac_objext \
8570    conftest$ac_exeext conftest.$ac_ext
8571fi
8572
8573
8574		CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576		eval supported=\$$cacheid
8577		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578$as_echo "$supported" >&6; }
8579		if test "$supported" = "yes" ; then
8580			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8581			found="yes"
8582		fi
8583	fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609/* end confdefs.h.  */
8610int i;
8611_ACEOF
8612if ac_fn_c_try_compile "$LINENO"; then :
8613  xorg_cv_cc_flag_unknown_warning_option=yes
8614else
8615  xorg_cv_cc_flag_unknown_warning_option=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618fi
8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622	CFLAGS="$xorg_testset_save_CFLAGS"
8623fi
8624
8625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628	fi
8629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8633  $as_echo_n "(cached) " >&6
8634else
8635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h.  */
8637int i;
8638_ACEOF
8639if ac_fn_c_try_compile "$LINENO"; then :
8640  xorg_cv_cc_flag_unused_command_line_argument=yes
8641else
8642  xorg_cv_cc_flag_unused_command_line_argument=no
8643fi
8644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645fi
8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8649	CFLAGS="$xorg_testset_save_CFLAGS"
8650fi
8651
8652found="no"
8653
8654	if test $found = "no" ; then
8655		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657		fi
8658
8659		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8661		fi
8662
8663		CFLAGS="$CFLAGS -Wreturn-type"
8664
8665		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8666$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8667		cacheid=xorg_cv_cc_flag__Wreturn_type
8668		if eval \${$cacheid+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674int
8675main ()
8676{
8677
8678  ;
8679  return 0;
8680}
8681_ACEOF
8682if ac_fn_c_try_link "$LINENO"; then :
8683  eval $cacheid=yes
8684else
8685  eval $cacheid=no
8686fi
8687rm -f core conftest.err conftest.$ac_objext \
8688    conftest$ac_exeext conftest.$ac_ext
8689fi
8690
8691
8692		CFLAGS="$xorg_testset_save_CFLAGS"
8693
8694		eval supported=\$$cacheid
8695		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8696$as_echo "$supported" >&6; }
8697		if test "$supported" = "yes" ; then
8698			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8699			found="yes"
8700		fi
8701	fi
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717xorg_testset_save_CFLAGS="$CFLAGS"
8718
8719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8720	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8724  $as_echo_n "(cached) " >&6
8725else
8726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h.  */
8728int i;
8729_ACEOF
8730if ac_fn_c_try_compile "$LINENO"; then :
8731  xorg_cv_cc_flag_unknown_warning_option=yes
8732else
8733  xorg_cv_cc_flag_unknown_warning_option=no
8734fi
8735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8740	CFLAGS="$xorg_testset_save_CFLAGS"
8741fi
8742
8743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746	fi
8747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8751  $as_echo_n "(cached) " >&6
8752else
8753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h.  */
8755int i;
8756_ACEOF
8757if ac_fn_c_try_compile "$LINENO"; then :
8758  xorg_cv_cc_flag_unused_command_line_argument=yes
8759else
8760  xorg_cv_cc_flag_unused_command_line_argument=no
8761fi
8762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763fi
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8767	CFLAGS="$xorg_testset_save_CFLAGS"
8768fi
8769
8770found="no"
8771
8772	if test $found = "no" ; then
8773		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775		fi
8776
8777		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8779		fi
8780
8781		CFLAGS="$CFLAGS -Wtrigraphs"
8782
8783		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8784$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8785		cacheid=xorg_cv_cc_flag__Wtrigraphs
8786		if eval \${$cacheid+:} false; then :
8787  $as_echo_n "(cached) " >&6
8788else
8789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791int i;
8792int
8793main ()
8794{
8795
8796  ;
8797  return 0;
8798}
8799_ACEOF
8800if ac_fn_c_try_link "$LINENO"; then :
8801  eval $cacheid=yes
8802else
8803  eval $cacheid=no
8804fi
8805rm -f core conftest.err conftest.$ac_objext \
8806    conftest$ac_exeext conftest.$ac_ext
8807fi
8808
8809
8810		CFLAGS="$xorg_testset_save_CFLAGS"
8811
8812		eval supported=\$$cacheid
8813		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8814$as_echo "$supported" >&6; }
8815		if test "$supported" = "yes" ; then
8816			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8817			found="yes"
8818		fi
8819	fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835xorg_testset_save_CFLAGS="$CFLAGS"
8836
8837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8842  $as_echo_n "(cached) " >&6
8843else
8844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845/* end confdefs.h.  */
8846int i;
8847_ACEOF
8848if ac_fn_c_try_compile "$LINENO"; then :
8849  xorg_cv_cc_flag_unknown_warning_option=yes
8850else
8851  xorg_cv_cc_flag_unknown_warning_option=no
8852fi
8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854fi
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8858	CFLAGS="$xorg_testset_save_CFLAGS"
8859fi
8860
8861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8864	fi
8865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h.  */
8873int i;
8874_ACEOF
8875if ac_fn_c_try_compile "$LINENO"; then :
8876  xorg_cv_cc_flag_unused_command_line_argument=yes
8877else
8878  xorg_cv_cc_flag_unused_command_line_argument=no
8879fi
8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881fi
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8885	CFLAGS="$xorg_testset_save_CFLAGS"
8886fi
8887
8888found="no"
8889
8890	if test $found = "no" ; then
8891		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893		fi
8894
8895		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897		fi
8898
8899		CFLAGS="$CFLAGS -Warray-bounds"
8900
8901		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8902$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8903		cacheid=xorg_cv_cc_flag__Warray_bounds
8904		if eval \${$cacheid+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908/* end confdefs.h.  */
8909int i;
8910int
8911main ()
8912{
8913
8914  ;
8915  return 0;
8916}
8917_ACEOF
8918if ac_fn_c_try_link "$LINENO"; then :
8919  eval $cacheid=yes
8920else
8921  eval $cacheid=no
8922fi
8923rm -f core conftest.err conftest.$ac_objext \
8924    conftest$ac_exeext conftest.$ac_ext
8925fi
8926
8927
8928		CFLAGS="$xorg_testset_save_CFLAGS"
8929
8930		eval supported=\$$cacheid
8931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8932$as_echo "$supported" >&6; }
8933		if test "$supported" = "yes" ; then
8934			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8935			found="yes"
8936		fi
8937	fi
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953xorg_testset_save_CFLAGS="$CFLAGS"
8954
8955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8960  $as_echo_n "(cached) " >&6
8961else
8962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963/* end confdefs.h.  */
8964int i;
8965_ACEOF
8966if ac_fn_c_try_compile "$LINENO"; then :
8967  xorg_cv_cc_flag_unknown_warning_option=yes
8968else
8969  xorg_cv_cc_flag_unknown_warning_option=no
8970fi
8971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972fi
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8976	CFLAGS="$xorg_testset_save_CFLAGS"
8977fi
8978
8979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8982	fi
8983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8987  $as_echo_n "(cached) " >&6
8988else
8989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990/* end confdefs.h.  */
8991int i;
8992_ACEOF
8993if ac_fn_c_try_compile "$LINENO"; then :
8994  xorg_cv_cc_flag_unused_command_line_argument=yes
8995else
8996  xorg_cv_cc_flag_unused_command_line_argument=no
8997fi
8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999fi
9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9002	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9003	CFLAGS="$xorg_testset_save_CFLAGS"
9004fi
9005
9006found="no"
9007
9008	if test $found = "no" ; then
9009		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011		fi
9012
9013		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9015		fi
9016
9017		CFLAGS="$CFLAGS -Wwrite-strings"
9018
9019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9020$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9021		cacheid=xorg_cv_cc_flag__Wwrite_strings
9022		if eval \${$cacheid+:} false; then :
9023  $as_echo_n "(cached) " >&6
9024else
9025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h.  */
9027int i;
9028int
9029main ()
9030{
9031
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036if ac_fn_c_try_link "$LINENO"; then :
9037  eval $cacheid=yes
9038else
9039  eval $cacheid=no
9040fi
9041rm -f core conftest.err conftest.$ac_objext \
9042    conftest$ac_exeext conftest.$ac_ext
9043fi
9044
9045
9046		CFLAGS="$xorg_testset_save_CFLAGS"
9047
9048		eval supported=\$$cacheid
9049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9050$as_echo "$supported" >&6; }
9051		if test "$supported" = "yes" ; then
9052			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9053			found="yes"
9054		fi
9055	fi
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071xorg_testset_save_CFLAGS="$CFLAGS"
9072
9073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9078  $as_echo_n "(cached) " >&6
9079else
9080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081/* end confdefs.h.  */
9082int i;
9083_ACEOF
9084if ac_fn_c_try_compile "$LINENO"; then :
9085  xorg_cv_cc_flag_unknown_warning_option=yes
9086else
9087  xorg_cv_cc_flag_unknown_warning_option=no
9088fi
9089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9090fi
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9094	CFLAGS="$xorg_testset_save_CFLAGS"
9095fi
9096
9097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100	fi
9101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9105  $as_echo_n "(cached) " >&6
9106else
9107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108/* end confdefs.h.  */
9109int i;
9110_ACEOF
9111if ac_fn_c_try_compile "$LINENO"; then :
9112  xorg_cv_cc_flag_unused_command_line_argument=yes
9113else
9114  xorg_cv_cc_flag_unused_command_line_argument=no
9115fi
9116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117fi
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9121	CFLAGS="$xorg_testset_save_CFLAGS"
9122fi
9123
9124found="no"
9125
9126	if test $found = "no" ; then
9127		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129		fi
9130
9131		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133		fi
9134
9135		CFLAGS="$CFLAGS -Waddress"
9136
9137		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9138$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9139		cacheid=xorg_cv_cc_flag__Waddress
9140		if eval \${$cacheid+:} false; then :
9141  $as_echo_n "(cached) " >&6
9142else
9143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145int i;
9146int
9147main ()
9148{
9149
9150  ;
9151  return 0;
9152}
9153_ACEOF
9154if ac_fn_c_try_link "$LINENO"; then :
9155  eval $cacheid=yes
9156else
9157  eval $cacheid=no
9158fi
9159rm -f core conftest.err conftest.$ac_objext \
9160    conftest$ac_exeext conftest.$ac_ext
9161fi
9162
9163
9164		CFLAGS="$xorg_testset_save_CFLAGS"
9165
9166		eval supported=\$$cacheid
9167		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9168$as_echo "$supported" >&6; }
9169		if test "$supported" = "yes" ; then
9170			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9171			found="yes"
9172		fi
9173	fi
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189xorg_testset_save_CFLAGS="$CFLAGS"
9190
9191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9196  $as_echo_n "(cached) " >&6
9197else
9198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h.  */
9200int i;
9201_ACEOF
9202if ac_fn_c_try_compile "$LINENO"; then :
9203  xorg_cv_cc_flag_unknown_warning_option=yes
9204else
9205  xorg_cv_cc_flag_unknown_warning_option=no
9206fi
9207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208fi
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9212	CFLAGS="$xorg_testset_save_CFLAGS"
9213fi
9214
9215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9218	fi
9219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9223  $as_echo_n "(cached) " >&6
9224else
9225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226/* end confdefs.h.  */
9227int i;
9228_ACEOF
9229if ac_fn_c_try_compile "$LINENO"; then :
9230  xorg_cv_cc_flag_unused_command_line_argument=yes
9231else
9232  xorg_cv_cc_flag_unused_command_line_argument=no
9233fi
9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235fi
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9239	CFLAGS="$xorg_testset_save_CFLAGS"
9240fi
9241
9242found="no"
9243
9244	if test $found = "no" ; then
9245		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247		fi
9248
9249		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251		fi
9252
9253		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9254
9255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9256$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9257		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9258		if eval \${$cacheid+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262/* end confdefs.h.  */
9263int i;
9264int
9265main ()
9266{
9267
9268  ;
9269  return 0;
9270}
9271_ACEOF
9272if ac_fn_c_try_link "$LINENO"; then :
9273  eval $cacheid=yes
9274else
9275  eval $cacheid=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext \
9278    conftest$ac_exeext conftest.$ac_ext
9279fi
9280
9281
9282		CFLAGS="$xorg_testset_save_CFLAGS"
9283
9284		eval supported=\$$cacheid
9285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9286$as_echo "$supported" >&6; }
9287		if test "$supported" = "yes" ; then
9288			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9289			found="yes"
9290		fi
9291	fi
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307xorg_testset_save_CFLAGS="$CFLAGS"
9308
9309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9314  $as_echo_n "(cached) " >&6
9315else
9316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317/* end confdefs.h.  */
9318int i;
9319_ACEOF
9320if ac_fn_c_try_compile "$LINENO"; then :
9321  xorg_cv_cc_flag_unknown_warning_option=yes
9322else
9323  xorg_cv_cc_flag_unknown_warning_option=no
9324fi
9325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326fi
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9330	CFLAGS="$xorg_testset_save_CFLAGS"
9331fi
9332
9333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336	fi
9337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9341  $as_echo_n "(cached) " >&6
9342else
9343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h.  */
9345int i;
9346_ACEOF
9347if ac_fn_c_try_compile "$LINENO"; then :
9348  xorg_cv_cc_flag_unused_command_line_argument=yes
9349else
9350  xorg_cv_cc_flag_unused_command_line_argument=no
9351fi
9352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9353fi
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9357	CFLAGS="$xorg_testset_save_CFLAGS"
9358fi
9359
9360found="no"
9361
9362	if test $found = "no" ; then
9363		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365		fi
9366
9367		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9369		fi
9370
9371		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9372
9373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9374$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9375		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9376		if eval \${$cacheid+:} false; then :
9377  $as_echo_n "(cached) " >&6
9378else
9379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380/* end confdefs.h.  */
9381int i;
9382int
9383main ()
9384{
9385
9386  ;
9387  return 0;
9388}
9389_ACEOF
9390if ac_fn_c_try_link "$LINENO"; then :
9391  eval $cacheid=yes
9392else
9393  eval $cacheid=no
9394fi
9395rm -f core conftest.err conftest.$ac_objext \
9396    conftest$ac_exeext conftest.$ac_ext
9397fi
9398
9399
9400		CFLAGS="$xorg_testset_save_CFLAGS"
9401
9402		eval supported=\$$cacheid
9403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9404$as_echo "$supported" >&6; }
9405		if test "$supported" = "yes" ; then
9406			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9407			found="yes"
9408		fi
9409	fi
9410
9411
9412fi
9413
9414
9415
9416
9417
9418
9419
9420		CWARNFLAGS="$BASE_CFLAGS"
9421		if  test "x$GCC" = xyes ; then
9422		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9423		fi
9424
9425
9426
9427
9428
9429
9430
9431
9432# Check whether --enable-strict-compilation was given.
9433if test "${enable_strict_compilation+set}" = set; then :
9434  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9435else
9436  STRICT_COMPILE=no
9437fi
9438
9439
9440
9441
9442
9443
9444STRICT_CFLAGS=""
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9465  $as_echo_n "(cached) " >&6
9466else
9467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468/* end confdefs.h.  */
9469int i;
9470_ACEOF
9471if ac_fn_c_try_compile "$LINENO"; then :
9472  xorg_cv_cc_flag_unknown_warning_option=yes
9473else
9474  xorg_cv_cc_flag_unknown_warning_option=no
9475fi
9476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9480	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9481	CFLAGS="$xorg_testset_save_CFLAGS"
9482fi
9483
9484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9485	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487	fi
9488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9491if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495/* end confdefs.h.  */
9496int i;
9497_ACEOF
9498if ac_fn_c_try_compile "$LINENO"; then :
9499  xorg_cv_cc_flag_unused_command_line_argument=yes
9500else
9501  xorg_cv_cc_flag_unused_command_line_argument=no
9502fi
9503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504fi
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9508	CFLAGS="$xorg_testset_save_CFLAGS"
9509fi
9510
9511found="no"
9512
9513	if test $found = "no" ; then
9514		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516		fi
9517
9518		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9520		fi
9521
9522		CFLAGS="$CFLAGS -pedantic"
9523
9524		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9525$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9526		cacheid=xorg_cv_cc_flag__pedantic
9527		if eval \${$cacheid+:} false; then :
9528  $as_echo_n "(cached) " >&6
9529else
9530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532int i;
9533int
9534main ()
9535{
9536
9537  ;
9538  return 0;
9539}
9540_ACEOF
9541if ac_fn_c_try_link "$LINENO"; then :
9542  eval $cacheid=yes
9543else
9544  eval $cacheid=no
9545fi
9546rm -f core conftest.err conftest.$ac_objext \
9547    conftest$ac_exeext conftest.$ac_ext
9548fi
9549
9550
9551		CFLAGS="$xorg_testset_save_CFLAGS"
9552
9553		eval supported=\$$cacheid
9554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9555$as_echo "$supported" >&6; }
9556		if test "$supported" = "yes" ; then
9557			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9558			found="yes"
9559		fi
9560	fi
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576xorg_testset_save_CFLAGS="$CFLAGS"
9577
9578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9579	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587int i;
9588_ACEOF
9589if ac_fn_c_try_compile "$LINENO"; then :
9590  xorg_cv_cc_flag_unknown_warning_option=yes
9591else
9592  xorg_cv_cc_flag_unknown_warning_option=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595fi
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599	CFLAGS="$xorg_testset_save_CFLAGS"
9600fi
9601
9602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605	fi
9606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9610  $as_echo_n "(cached) " >&6
9611else
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614int i;
9615_ACEOF
9616if ac_fn_c_try_compile "$LINENO"; then :
9617  xorg_cv_cc_flag_unused_command_line_argument=yes
9618else
9619  xorg_cv_cc_flag_unused_command_line_argument=no
9620fi
9621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9625	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9626	CFLAGS="$xorg_testset_save_CFLAGS"
9627fi
9628
9629found="no"
9630
9631	if test $found = "no" ; then
9632		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9633			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634		fi
9635
9636		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9637			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9638		fi
9639
9640		CFLAGS="$CFLAGS -Werror"
9641
9642		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9643$as_echo_n "checking if $CC supports -Werror... " >&6; }
9644		cacheid=xorg_cv_cc_flag__Werror
9645		if eval \${$cacheid+:} false; then :
9646  $as_echo_n "(cached) " >&6
9647else
9648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649/* end confdefs.h.  */
9650int i;
9651int
9652main ()
9653{
9654
9655  ;
9656  return 0;
9657}
9658_ACEOF
9659if ac_fn_c_try_link "$LINENO"; then :
9660  eval $cacheid=yes
9661else
9662  eval $cacheid=no
9663fi
9664rm -f core conftest.err conftest.$ac_objext \
9665    conftest$ac_exeext conftest.$ac_ext
9666fi
9667
9668
9669		CFLAGS="$xorg_testset_save_CFLAGS"
9670
9671		eval supported=\$$cacheid
9672		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9673$as_echo "$supported" >&6; }
9674		if test "$supported" = "yes" ; then
9675			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9676			found="yes"
9677		fi
9678	fi
9679
9680	if test $found = "no" ; then
9681		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9683		fi
9684
9685		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9687		fi
9688
9689		CFLAGS="$CFLAGS -errwarn"
9690
9691		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9692$as_echo_n "checking if $CC supports -errwarn... " >&6; }
9693		cacheid=xorg_cv_cc_flag__errwarn
9694		if eval \${$cacheid+:} false; then :
9695  $as_echo_n "(cached) " >&6
9696else
9697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h.  */
9699int i;
9700int
9701main ()
9702{
9703
9704  ;
9705  return 0;
9706}
9707_ACEOF
9708if ac_fn_c_try_link "$LINENO"; then :
9709  eval $cacheid=yes
9710else
9711  eval $cacheid=no
9712fi
9713rm -f core conftest.err conftest.$ac_objext \
9714    conftest$ac_exeext conftest.$ac_ext
9715fi
9716
9717
9718		CFLAGS="$xorg_testset_save_CFLAGS"
9719
9720		eval supported=\$$cacheid
9721		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9722$as_echo "$supported" >&6; }
9723		if test "$supported" = "yes" ; then
9724			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9725			found="yes"
9726		fi
9727	fi
9728
9729
9730
9731# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9732# activate it with -Werror, so we add it here explicitly.
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746xorg_testset_save_CFLAGS="$CFLAGS"
9747
9748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9751$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9752if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756/* end confdefs.h.  */
9757int i;
9758_ACEOF
9759if ac_fn_c_try_compile "$LINENO"; then :
9760  xorg_cv_cc_flag_unknown_warning_option=yes
9761else
9762  xorg_cv_cc_flag_unknown_warning_option=no
9763fi
9764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9765fi
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9767$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9769	CFLAGS="$xorg_testset_save_CFLAGS"
9770fi
9771
9772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9775	fi
9776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9778$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9779if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9780  $as_echo_n "(cached) " >&6
9781else
9782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783/* end confdefs.h.  */
9784int i;
9785_ACEOF
9786if ac_fn_c_try_compile "$LINENO"; then :
9787  xorg_cv_cc_flag_unused_command_line_argument=yes
9788else
9789  xorg_cv_cc_flag_unused_command_line_argument=no
9790fi
9791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792fi
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9794$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9796	CFLAGS="$xorg_testset_save_CFLAGS"
9797fi
9798
9799found="no"
9800
9801	if test $found = "no" ; then
9802		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804		fi
9805
9806		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9808		fi
9809
9810		CFLAGS="$CFLAGS -Werror=attributes"
9811
9812		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9813$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9814		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
9815		if eval \${$cacheid+:} false; then :
9816  $as_echo_n "(cached) " >&6
9817else
9818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819/* end confdefs.h.  */
9820int i;
9821int
9822main ()
9823{
9824
9825  ;
9826  return 0;
9827}
9828_ACEOF
9829if ac_fn_c_try_link "$LINENO"; then :
9830  eval $cacheid=yes
9831else
9832  eval $cacheid=no
9833fi
9834rm -f core conftest.err conftest.$ac_objext \
9835    conftest$ac_exeext conftest.$ac_ext
9836fi
9837
9838
9839		CFLAGS="$xorg_testset_save_CFLAGS"
9840
9841		eval supported=\$$cacheid
9842		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9843$as_echo "$supported" >&6; }
9844		if test "$supported" = "yes" ; then
9845			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9846			found="yes"
9847		fi
9848	fi
9849
9850
9851
9852if test "x$STRICT_COMPILE" = "xyes"; then
9853    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9854    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9855fi
9856
9857
9858
9859
9860
9861
9862cat >>confdefs.h <<_ACEOF
9863#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9864_ACEOF
9865
9866	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9867	if test "x$PVM" = "x"; then
9868		PVM="0"
9869	fi
9870
9871cat >>confdefs.h <<_ACEOF
9872#define PACKAGE_VERSION_MINOR $PVM
9873_ACEOF
9874
9875	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9876	if test "x$PVP" = "x"; then
9877		PVP="0"
9878	fi
9879
9880cat >>confdefs.h <<_ACEOF
9881#define PACKAGE_VERSION_PATCHLEVEL $PVP
9882_ACEOF
9883
9884
9885
9886CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9887mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9888|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9889echo 'git directory not found: installing possibly empty changelog.' >&2)"
9890
9891
9892
9893
9894macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9895INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9896mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9897|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9898echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9899
9900
9901
9902
9903
9904
9905if test x$APP_MAN_SUFFIX = x    ; then
9906    APP_MAN_SUFFIX=1
9907fi
9908if test x$APP_MAN_DIR = x    ; then
9909    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9910fi
9911
9912if test x$LIB_MAN_SUFFIX = x    ; then
9913    LIB_MAN_SUFFIX=3
9914fi
9915if test x$LIB_MAN_DIR = x    ; then
9916    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9917fi
9918
9919if test x$FILE_MAN_SUFFIX = x    ; then
9920    case $host_os in
9921	solaris*)	FILE_MAN_SUFFIX=4  ;;
9922	*)		FILE_MAN_SUFFIX=5  ;;
9923    esac
9924fi
9925if test x$FILE_MAN_DIR = x    ; then
9926    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9927fi
9928
9929if test x$MISC_MAN_SUFFIX = x    ; then
9930    case $host_os in
9931	solaris*)	MISC_MAN_SUFFIX=5  ;;
9932	*)		MISC_MAN_SUFFIX=7  ;;
9933    esac
9934fi
9935if test x$MISC_MAN_DIR = x    ; then
9936    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9937fi
9938
9939if test x$DRIVER_MAN_SUFFIX = x    ; then
9940    case $host_os in
9941	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
9942	*)		DRIVER_MAN_SUFFIX=4  ;;
9943    esac
9944fi
9945if test x$DRIVER_MAN_DIR = x    ; then
9946    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9947fi
9948
9949if test x$ADMIN_MAN_SUFFIX = x    ; then
9950    case $host_os in
9951	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
9952	*)		ADMIN_MAN_SUFFIX=8  ;;
9953    esac
9954fi
9955if test x$ADMIN_MAN_DIR = x    ; then
9956    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9957fi
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973XORG_MAN_PAGE="X Version 11"
9974
9975MAN_SUBSTS="\
9976	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9977	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9978	-e 's|__xservername__|Xorg|g' \
9979	-e 's|__xconfigfile__|xorg.conf|g' \
9980	-e 's|__projectroot__|\$(prefix)|g' \
9981	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
9982	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9983	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9984	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9985	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9986	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9987	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9988
9989
9990
9991# Check whether --enable-silent-rules was given.
9992if test "${enable_silent_rules+set}" = set; then :
9993  enableval=$enable_silent_rules;
9994fi
9995
9996case $enable_silent_rules in
9997yes) AM_DEFAULT_VERBOSITY=0;;
9998no)  AM_DEFAULT_VERBOSITY=1;;
9999*)   AM_DEFAULT_VERBOSITY=0;;
10000esac
10001am_make=${MAKE-make}
10002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10003$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10004if ${am_cv_make_support_nested_variables+:} false; then :
10005  $as_echo_n "(cached) " >&6
10006else
10007  if $as_echo 'TRUE=$(BAR$(V))
10008BAR0=false
10009BAR1=true
10010V=1
10011am__doit:
10012	@$(TRUE)
10013.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10014  am_cv_make_support_nested_variables=yes
10015else
10016  am_cv_make_support_nested_variables=no
10017fi
10018fi
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10020$as_echo "$am_cv_make_support_nested_variables" >&6; }
10021if test $am_cv_make_support_nested_variables = yes; then
10022    AM_V='$(V)'
10023  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10024else
10025  AM_V=$AM_DEFAULT_VERBOSITY
10026  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10027fi
10028AM_BACKSLASH='\'
10029
10030
10031
10032ac_aux_dir=
10033for ac_dir in . "$srcdir"/.; do
10034  if test -f "$ac_dir/install-sh"; then
10035    ac_aux_dir=$ac_dir
10036    ac_install_sh="$ac_aux_dir/install-sh -c"
10037    break
10038  elif test -f "$ac_dir/install.sh"; then
10039    ac_aux_dir=$ac_dir
10040    ac_install_sh="$ac_aux_dir/install.sh -c"
10041    break
10042  elif test -f "$ac_dir/shtool"; then
10043    ac_aux_dir=$ac_dir
10044    ac_install_sh="$ac_aux_dir/shtool install -c"
10045    break
10046  fi
10047done
10048if test -z "$ac_aux_dir"; then
10049  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10050fi
10051
10052# These three variables are undocumented and unsupported,
10053# and are intended to be withdrawn in a future Autoconf release.
10054# They can cause serious problems if a builder's source tree is in a directory
10055# whose full name contains unusual characters.
10056ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
10057ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
10058ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
10059
10060
10061
10062# Initialize Automake
10063am__api_version='1.11'
10064
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10066$as_echo_n "checking whether build environment is sane... " >&6; }
10067# Just in case
10068sleep 1
10069echo timestamp > conftest.file
10070# Reject unsafe characters in $srcdir or the absolute working directory
10071# name.  Accept space and tab only in the latter.
10072am_lf='
10073'
10074case `pwd` in
10075  *[\\\"\#\$\&\'\`$am_lf]*)
10076    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10077esac
10078case $srcdir in
10079  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
10080    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10081esac
10082
10083# Do `set' in a subshell so we don't clobber the current shell's
10084# arguments.  Must try -L first in case configure is actually a
10085# symlink; some systems play weird games with the mod time of symlinks
10086# (eg FreeBSD returns the mod time of the symlink's containing
10087# directory).
10088if (
10089   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10090   if test "$*" = "X"; then
10091      # -L didn't work.
10092      set X `ls -t "$srcdir/configure" conftest.file`
10093   fi
10094   rm -f conftest.file
10095   if test "$*" != "X $srcdir/configure conftest.file" \
10096      && test "$*" != "X conftest.file $srcdir/configure"; then
10097
10098      # If neither matched, then we have a broken ls.  This can happen
10099      # if, for instance, CONFIG_SHELL is bash and it inherits a
10100      # broken ls alias from the environment.  This has actually
10101      # happened.  Such a system could not be considered "sane".
10102      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10103alias in your environment" "$LINENO" 5
10104   fi
10105
10106   test "$2" = conftest.file
10107   )
10108then
10109   # Ok.
10110   :
10111else
10112   as_fn_error $? "newly created file is older than distributed files!
10113Check your system clock" "$LINENO" 5
10114fi
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10116$as_echo "yes" >&6; }
10117test "$program_prefix" != NONE &&
10118  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10119# Use a double $ so make ignores it.
10120test "$program_suffix" != NONE &&
10121  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10122# Double any \ or $.
10123# By default was `s,x,x', remove it if useless.
10124ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10125program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10126
10127# expand $ac_aux_dir to an absolute path
10128am_aux_dir=`cd $ac_aux_dir && pwd`
10129
10130if test x"${MISSING+set}" != xset; then
10131  case $am_aux_dir in
10132  *\ * | *\	*)
10133    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10134  *)
10135    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10136  esac
10137fi
10138# Use eval to expand $SHELL
10139if eval "$MISSING --run true"; then
10140  am_missing_run="$MISSING --run "
10141else
10142  am_missing_run=
10143  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10144$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10145fi
10146
10147if test x"${install_sh}" != xset; then
10148  case $am_aux_dir in
10149  *\ * | *\	*)
10150    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10151  *)
10152    install_sh="\${SHELL} $am_aux_dir/install-sh"
10153  esac
10154fi
10155
10156# Installed binaries are usually stripped using `strip' when the user
10157# run `make install-strip'.  However `strip' might not be the right
10158# tool to use in cross-compilation environments, therefore Automake
10159# will honor the `STRIP' environment variable to overrule this program.
10160if test "$cross_compiling" != no; then
10161  if test -n "$ac_tool_prefix"; then
10162  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10163set dummy ${ac_tool_prefix}strip; ac_word=$2
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165$as_echo_n "checking for $ac_word... " >&6; }
10166if ${ac_cv_prog_STRIP+:} false; then :
10167  $as_echo_n "(cached) " >&6
10168else
10169  if test -n "$STRIP"; then
10170  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10171else
10172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173for as_dir in $PATH
10174do
10175  IFS=$as_save_IFS
10176  test -z "$as_dir" && as_dir=.
10177    for ac_exec_ext in '' $ac_executable_extensions; do
10178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10179    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10181    break 2
10182  fi
10183done
10184  done
10185IFS=$as_save_IFS
10186
10187fi
10188fi
10189STRIP=$ac_cv_prog_STRIP
10190if test -n "$STRIP"; then
10191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10192$as_echo "$STRIP" >&6; }
10193else
10194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10195$as_echo "no" >&6; }
10196fi
10197
10198
10199fi
10200if test -z "$ac_cv_prog_STRIP"; then
10201  ac_ct_STRIP=$STRIP
10202  # Extract the first word of "strip", so it can be a program name with args.
10203set dummy strip; ac_word=$2
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205$as_echo_n "checking for $ac_word... " >&6; }
10206if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10207  $as_echo_n "(cached) " >&6
10208else
10209  if test -n "$ac_ct_STRIP"; then
10210  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10211else
10212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213for as_dir in $PATH
10214do
10215  IFS=$as_save_IFS
10216  test -z "$as_dir" && as_dir=.
10217    for ac_exec_ext in '' $ac_executable_extensions; do
10218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10219    ac_cv_prog_ac_ct_STRIP="strip"
10220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10221    break 2
10222  fi
10223done
10224  done
10225IFS=$as_save_IFS
10226
10227fi
10228fi
10229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10230if test -n "$ac_ct_STRIP"; then
10231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10232$as_echo "$ac_ct_STRIP" >&6; }
10233else
10234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235$as_echo "no" >&6; }
10236fi
10237
10238  if test "x$ac_ct_STRIP" = x; then
10239    STRIP=":"
10240  else
10241    case $cross_compiling:$ac_tool_warned in
10242yes:)
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10245ac_tool_warned=yes ;;
10246esac
10247    STRIP=$ac_ct_STRIP
10248  fi
10249else
10250  STRIP="$ac_cv_prog_STRIP"
10251fi
10252
10253fi
10254INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10255
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10257$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10258if test -z "$MKDIR_P"; then
10259  if ${ac_cv_path_mkdir+:} false; then :
10260  $as_echo_n "(cached) " >&6
10261else
10262  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10264do
10265  IFS=$as_save_IFS
10266  test -z "$as_dir" && as_dir=.
10267    for ac_prog in mkdir gmkdir; do
10268	 for ac_exec_ext in '' $ac_executable_extensions; do
10269	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10270	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10271	     'mkdir (GNU coreutils) '* | \
10272	     'mkdir (coreutils) '* | \
10273	     'mkdir (fileutils) '4.1*)
10274	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10275	       break 3;;
10276	   esac
10277	 done
10278       done
10279  done
10280IFS=$as_save_IFS
10281
10282fi
10283
10284  test -d ./--version && rmdir ./--version
10285  if test "${ac_cv_path_mkdir+set}" = set; then
10286    MKDIR_P="$ac_cv_path_mkdir -p"
10287  else
10288    # As a last resort, use the slow shell script.  Don't cache a
10289    # value for MKDIR_P within a source directory, because that will
10290    # break other packages using the cache if that directory is
10291    # removed, or if the value is a relative name.
10292    MKDIR_P="$ac_install_sh -d"
10293  fi
10294fi
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10296$as_echo "$MKDIR_P" >&6; }
10297
10298mkdir_p="$MKDIR_P"
10299case $mkdir_p in
10300  [\\/$]* | ?:[\\/]*) ;;
10301  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10302esac
10303
10304for ac_prog in gawk mawk nawk awk
10305do
10306  # Extract the first word of "$ac_prog", so it can be a program name with args.
10307set dummy $ac_prog; ac_word=$2
10308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309$as_echo_n "checking for $ac_word... " >&6; }
10310if ${ac_cv_prog_AWK+:} false; then :
10311  $as_echo_n "(cached) " >&6
10312else
10313  if test -n "$AWK"; then
10314  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10315else
10316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317for as_dir in $PATH
10318do
10319  IFS=$as_save_IFS
10320  test -z "$as_dir" && as_dir=.
10321    for ac_exec_ext in '' $ac_executable_extensions; do
10322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10323    ac_cv_prog_AWK="$ac_prog"
10324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325    break 2
10326  fi
10327done
10328  done
10329IFS=$as_save_IFS
10330
10331fi
10332fi
10333AWK=$ac_cv_prog_AWK
10334if test -n "$AWK"; then
10335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10336$as_echo "$AWK" >&6; }
10337else
10338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339$as_echo "no" >&6; }
10340fi
10341
10342
10343  test -n "$AWK" && break
10344done
10345
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10347$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10348set x ${MAKE-make}
10349ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10350if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10351  $as_echo_n "(cached) " >&6
10352else
10353  cat >conftest.make <<\_ACEOF
10354SHELL = /bin/sh
10355all:
10356	@echo '@@@%%%=$(MAKE)=@@@%%%'
10357_ACEOF
10358# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10359case `${MAKE-make} -f conftest.make 2>/dev/null` in
10360  *@@@%%%=?*=@@@%%%*)
10361    eval ac_cv_prog_make_${ac_make}_set=yes;;
10362  *)
10363    eval ac_cv_prog_make_${ac_make}_set=no;;
10364esac
10365rm -f conftest.make
10366fi
10367if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10369$as_echo "yes" >&6; }
10370  SET_MAKE=
10371else
10372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373$as_echo "no" >&6; }
10374  SET_MAKE="MAKE=${MAKE-make}"
10375fi
10376
10377rm -rf .tst 2>/dev/null
10378mkdir .tst 2>/dev/null
10379if test -d .tst; then
10380  am__leading_dot=.
10381else
10382  am__leading_dot=_
10383fi
10384rmdir .tst 2>/dev/null
10385
10386DEPDIR="${am__leading_dot}deps"
10387
10388ac_config_commands="$ac_config_commands depfiles"
10389
10390
10391am_make=${MAKE-make}
10392cat > confinc << 'END'
10393am__doit:
10394	@echo this is the am__doit target
10395.PHONY: am__doit
10396END
10397# If we don't find an include directive, just comment out the code.
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10399$as_echo_n "checking for style of include used by $am_make... " >&6; }
10400am__include="#"
10401am__quote=
10402_am_result=none
10403# First try GNU make style include.
10404echo "include confinc" > confmf
10405# Ignore all kinds of additional output from `make'.
10406case `$am_make -s -f confmf 2> /dev/null` in #(
10407*the\ am__doit\ target*)
10408  am__include=include
10409  am__quote=
10410  _am_result=GNU
10411  ;;
10412esac
10413# Now try BSD make style include.
10414if test "$am__include" = "#"; then
10415   echo '.include "confinc"' > confmf
10416   case `$am_make -s -f confmf 2> /dev/null` in #(
10417   *the\ am__doit\ target*)
10418     am__include=.include
10419     am__quote="\""
10420     _am_result=BSD
10421     ;;
10422   esac
10423fi
10424
10425
10426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10427$as_echo "$_am_result" >&6; }
10428rm -f confinc confmf
10429
10430# Check whether --enable-dependency-tracking was given.
10431if test "${enable_dependency_tracking+set}" = set; then :
10432  enableval=$enable_dependency_tracking;
10433fi
10434
10435if test "x$enable_dependency_tracking" != xno; then
10436  am_depcomp="$ac_aux_dir/depcomp"
10437  AMDEPBACKSLASH='\'
10438  am__nodep='_no'
10439fi
10440 if test "x$enable_dependency_tracking" != xno; then
10441  AMDEP_TRUE=
10442  AMDEP_FALSE='#'
10443else
10444  AMDEP_TRUE='#'
10445  AMDEP_FALSE=
10446fi
10447
10448
10449if test "`cd $srcdir && pwd`" != "`pwd`"; then
10450  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10451  # is not polluted with repeated "-I."
10452  am__isrc=' -I$(srcdir)'
10453  # test to see if srcdir already configured
10454  if test -f $srcdir/config.status; then
10455    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10456  fi
10457fi
10458
10459# test whether we have cygpath
10460if test -z "$CYGPATH_W"; then
10461  if (cygpath --version) >/dev/null 2>/dev/null; then
10462    CYGPATH_W='cygpath -w'
10463  else
10464    CYGPATH_W=echo
10465  fi
10466fi
10467
10468
10469# Define the identity of the package.
10470 PACKAGE='xf86-video-nv'
10471 VERSION='2.1.20'
10472
10473
10474cat >>confdefs.h <<_ACEOF
10475#define PACKAGE "$PACKAGE"
10476_ACEOF
10477
10478
10479cat >>confdefs.h <<_ACEOF
10480#define VERSION "$VERSION"
10481_ACEOF
10482
10483# Some tools Automake needs.
10484
10485ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10486
10487
10488AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10489
10490
10491AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10492
10493
10494AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10495
10496
10497MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10498
10499# We need awk for the "check" target.  The system "awk" is bad on
10500# some platforms.
10501# Always define AMTAR for backward compatibility.  Yes, it's still used
10502# in the wild :-(  We should find a proper way to deprecate it ...
10503AMTAR='$${TAR-tar}'
10504
10505am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10506
10507
10508
10509
10510depcc="$CC"   am_compiler_list=
10511
10512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10513$as_echo_n "checking dependency style of $depcc... " >&6; }
10514if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10515  $as_echo_n "(cached) " >&6
10516else
10517  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10518  # We make a subdir and do the tests there.  Otherwise we can end up
10519  # making bogus files that we don't know about and never remove.  For
10520  # instance it was reported that on HP-UX the gcc test will end up
10521  # making a dummy file named `D' -- because `-MD' means `put the output
10522  # in D'.
10523  rm -rf conftest.dir
10524  mkdir conftest.dir
10525  # Copy depcomp to subdir because otherwise we won't find it if we're
10526  # using a relative directory.
10527  cp "$am_depcomp" conftest.dir
10528  cd conftest.dir
10529  # We will build objects and dependencies in a subdirectory because
10530  # it helps to detect inapplicable dependency modes.  For instance
10531  # both Tru64's cc and ICC support -MD to output dependencies as a
10532  # side effect of compilation, but ICC will put the dependencies in
10533  # the current directory while Tru64 will put them in the object
10534  # directory.
10535  mkdir sub
10536
10537  am_cv_CC_dependencies_compiler_type=none
10538  if test "$am_compiler_list" = ""; then
10539     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10540  fi
10541  am__universal=false
10542  case " $depcc " in #(
10543     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10544     esac
10545
10546  for depmode in $am_compiler_list; do
10547    # Setup a source with many dependencies, because some compilers
10548    # like to wrap large dependency lists on column 80 (with \), and
10549    # we should not choose a depcomp mode which is confused by this.
10550    #
10551    # We need to recreate these files for each test, as the compiler may
10552    # overwrite some of them when testing with obscure command lines.
10553    # This happens at least with the AIX C compiler.
10554    : > sub/conftest.c
10555    for i in 1 2 3 4 5 6; do
10556      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10557      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10558      # Solaris 8's {/usr,}/bin/sh.
10559      touch sub/conftst$i.h
10560    done
10561    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10562
10563    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10564    # mode.  It turns out that the SunPro C++ compiler does not properly
10565    # handle `-M -o', and we need to detect this.  Also, some Intel
10566    # versions had trouble with output in subdirs
10567    am__obj=sub/conftest.${OBJEXT-o}
10568    am__minus_obj="-o $am__obj"
10569    case $depmode in
10570    gcc)
10571      # This depmode causes a compiler race in universal mode.
10572      test "$am__universal" = false || continue
10573      ;;
10574    nosideeffect)
10575      # after this tag, mechanisms are not by side-effect, so they'll
10576      # only be used when explicitly requested
10577      if test "x$enable_dependency_tracking" = xyes; then
10578	continue
10579      else
10580	break
10581      fi
10582      ;;
10583    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10584      # This compiler won't grok `-c -o', but also, the minuso test has
10585      # not run yet.  These depmodes are late enough in the game, and
10586      # so weak that their functioning should not be impacted.
10587      am__obj=conftest.${OBJEXT-o}
10588      am__minus_obj=
10589      ;;
10590    none) break ;;
10591    esac
10592    if depmode=$depmode \
10593       source=sub/conftest.c object=$am__obj \
10594       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10595       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10596         >/dev/null 2>conftest.err &&
10597       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10598       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10599       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10600       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10601      # icc doesn't choke on unknown options, it will just issue warnings
10602      # or remarks (even with -Werror).  So we grep stderr for any message
10603      # that says an option was ignored or not supported.
10604      # When given -MP, icc 7.0 and 7.1 complain thusly:
10605      #   icc: Command line warning: ignoring option '-M'; no argument required
10606      # The diagnosis changed in icc 8.0:
10607      #   icc: Command line remark: option '-MP' not supported
10608      if (grep 'ignoring option' conftest.err ||
10609          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10610        am_cv_CC_dependencies_compiler_type=$depmode
10611        break
10612      fi
10613    fi
10614  done
10615
10616  cd ..
10617  rm -rf conftest.dir
10618else
10619  am_cv_CC_dependencies_compiler_type=none
10620fi
10621
10622fi
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10624$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10625CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10626
10627 if
10628  test "x$enable_dependency_tracking" != xno \
10629  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10630  am__fastdepCC_TRUE=
10631  am__fastdepCC_FALSE='#'
10632else
10633  am__fastdepCC_TRUE='#'
10634  am__fastdepCC_FALSE=
10635fi
10636
10637
10638
10639
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10641$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10642    # Check whether --enable-maintainer-mode was given.
10643if test "${enable_maintainer_mode+set}" = set; then :
10644  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10645else
10646  USE_MAINTAINER_MODE=no
10647fi
10648
10649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10650$as_echo "$USE_MAINTAINER_MODE" >&6; }
10651   if test $USE_MAINTAINER_MODE = yes; then
10652  MAINTAINER_MODE_TRUE=
10653  MAINTAINER_MODE_FALSE='#'
10654else
10655  MAINTAINER_MODE_TRUE='#'
10656  MAINTAINER_MODE_FALSE=
10657fi
10658
10659  MAINT=$MAINTAINER_MODE_TRUE
10660
10661
10662
10663# Initialize libtool
10664# Check whether --enable-static was given.
10665if test "${enable_static+set}" = set; then :
10666  enableval=$enable_static; p=${PACKAGE-default}
10667    case $enableval in
10668    yes) enable_static=yes ;;
10669    no) enable_static=no ;;
10670    *)
10671     enable_static=no
10672      # Look at the argument we got.  We use all the common list separators.
10673      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10674      for pkg in $enableval; do
10675	IFS="$lt_save_ifs"
10676	if test "X$pkg" = "X$p"; then
10677	  enable_static=yes
10678	fi
10679      done
10680      IFS="$lt_save_ifs"
10681      ;;
10682    esac
10683else
10684  enable_static=no
10685fi
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695case `pwd` in
10696  *\ * | *\	*)
10697    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10698$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10699esac
10700
10701
10702
10703macro_version='2.4.2'
10704macro_revision='1.3337'
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718ltmain="$ac_aux_dir/ltmain.sh"
10719
10720# Backslashify metacharacters that are still active within
10721# double-quoted strings.
10722sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10723
10724# Same as above, but do not quote variable references.
10725double_quote_subst='s/\(["`\\]\)/\\\1/g'
10726
10727# Sed substitution to delay expansion of an escaped shell variable in a
10728# double_quote_subst'ed string.
10729delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10730
10731# Sed substitution to delay expansion of an escaped single quote.
10732delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10733
10734# Sed substitution to avoid accidental globbing in evaled expressions
10735no_glob_subst='s/\*/\\\*/g'
10736
10737ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10738ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10739ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10740
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10742$as_echo_n "checking how to print strings... " >&6; }
10743# Test print first, because it will be a builtin if present.
10744if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10745   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10746  ECHO='print -r --'
10747elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10748  ECHO='printf %s\n'
10749else
10750  # Use this function as a fallback that always works.
10751  func_fallback_echo ()
10752  {
10753    eval 'cat <<_LTECHO_EOF
10754$1
10755_LTECHO_EOF'
10756  }
10757  ECHO='func_fallback_echo'
10758fi
10759
10760# func_echo_all arg...
10761# Invoke $ECHO with all args, space-separated.
10762func_echo_all ()
10763{
10764    $ECHO ""
10765}
10766
10767case "$ECHO" in
10768  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10769$as_echo "printf" >&6; } ;;
10770  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10771$as_echo "print -r" >&6; } ;;
10772  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10773$as_echo "cat" >&6; } ;;
10774esac
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10790$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10791if ${ac_cv_path_SED+:} false; then :
10792  $as_echo_n "(cached) " >&6
10793else
10794            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10795     for ac_i in 1 2 3 4 5 6 7; do
10796       ac_script="$ac_script$as_nl$ac_script"
10797     done
10798     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10799     { ac_script=; unset ac_script;}
10800     if test -z "$SED"; then
10801  ac_path_SED_found=false
10802  # Loop through the user's path and test for each of PROGNAME-LIST
10803  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804for as_dir in $PATH
10805do
10806  IFS=$as_save_IFS
10807  test -z "$as_dir" && as_dir=.
10808    for ac_prog in sed gsed; do
10809    for ac_exec_ext in '' $ac_executable_extensions; do
10810      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10811      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10812# Check for GNU ac_path_SED and select it if it is found.
10813  # Check for GNU $ac_path_SED
10814case `"$ac_path_SED" --version 2>&1` in
10815*GNU*)
10816  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10817*)
10818  ac_count=0
10819  $as_echo_n 0123456789 >"conftest.in"
10820  while :
10821  do
10822    cat "conftest.in" "conftest.in" >"conftest.tmp"
10823    mv "conftest.tmp" "conftest.in"
10824    cp "conftest.in" "conftest.nl"
10825    $as_echo '' >> "conftest.nl"
10826    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10827    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10828    as_fn_arith $ac_count + 1 && ac_count=$as_val
10829    if test $ac_count -gt ${ac_path_SED_max-0}; then
10830      # Best one so far, save it but keep looking for a better one
10831      ac_cv_path_SED="$ac_path_SED"
10832      ac_path_SED_max=$ac_count
10833    fi
10834    # 10*(2^10) chars as input seems more than enough
10835    test $ac_count -gt 10 && break
10836  done
10837  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10838esac
10839
10840      $ac_path_SED_found && break 3
10841    done
10842  done
10843  done
10844IFS=$as_save_IFS
10845  if test -z "$ac_cv_path_SED"; then
10846    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10847  fi
10848else
10849  ac_cv_path_SED=$SED
10850fi
10851
10852fi
10853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10854$as_echo "$ac_cv_path_SED" >&6; }
10855 SED="$ac_cv_path_SED"
10856  rm -f conftest.sed
10857
10858test -z "$SED" && SED=sed
10859Xsed="$SED -e 1s/^X//"
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10872$as_echo_n "checking for fgrep... " >&6; }
10873if ${ac_cv_path_FGREP+:} false; then :
10874  $as_echo_n "(cached) " >&6
10875else
10876  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10877   then ac_cv_path_FGREP="$GREP -F"
10878   else
10879     if test -z "$FGREP"; then
10880  ac_path_FGREP_found=false
10881  # Loop through the user's path and test for each of PROGNAME-LIST
10882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10884do
10885  IFS=$as_save_IFS
10886  test -z "$as_dir" && as_dir=.
10887    for ac_prog in fgrep; do
10888    for ac_exec_ext in '' $ac_executable_extensions; do
10889      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10890      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10891# Check for GNU ac_path_FGREP and select it if it is found.
10892  # Check for GNU $ac_path_FGREP
10893case `"$ac_path_FGREP" --version 2>&1` in
10894*GNU*)
10895  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10896*)
10897  ac_count=0
10898  $as_echo_n 0123456789 >"conftest.in"
10899  while :
10900  do
10901    cat "conftest.in" "conftest.in" >"conftest.tmp"
10902    mv "conftest.tmp" "conftest.in"
10903    cp "conftest.in" "conftest.nl"
10904    $as_echo 'FGREP' >> "conftest.nl"
10905    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10906    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10907    as_fn_arith $ac_count + 1 && ac_count=$as_val
10908    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10909      # Best one so far, save it but keep looking for a better one
10910      ac_cv_path_FGREP="$ac_path_FGREP"
10911      ac_path_FGREP_max=$ac_count
10912    fi
10913    # 10*(2^10) chars as input seems more than enough
10914    test $ac_count -gt 10 && break
10915  done
10916  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10917esac
10918
10919      $ac_path_FGREP_found && break 3
10920    done
10921  done
10922  done
10923IFS=$as_save_IFS
10924  if test -z "$ac_cv_path_FGREP"; then
10925    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10926  fi
10927else
10928  ac_cv_path_FGREP=$FGREP
10929fi
10930
10931   fi
10932fi
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10934$as_echo "$ac_cv_path_FGREP" >&6; }
10935 FGREP="$ac_cv_path_FGREP"
10936
10937
10938test -z "$GREP" && GREP=grep
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958# Check whether --with-gnu-ld was given.
10959if test "${with_gnu_ld+set}" = set; then :
10960  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10961else
10962  with_gnu_ld=no
10963fi
10964
10965ac_prog=ld
10966if test "$GCC" = yes; then
10967  # Check if gcc -print-prog-name=ld gives a path.
10968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10969$as_echo_n "checking for ld used by $CC... " >&6; }
10970  case $host in
10971  *-*-mingw*)
10972    # gcc leaves a trailing carriage return which upsets mingw
10973    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10974  *)
10975    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10976  esac
10977  case $ac_prog in
10978    # Accept absolute paths.
10979    [\\/]* | ?:[\\/]*)
10980      re_direlt='/[^/][^/]*/\.\./'
10981      # Canonicalize the pathname of ld
10982      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10983      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10984	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10985      done
10986      test -z "$LD" && LD="$ac_prog"
10987      ;;
10988  "")
10989    # If it fails, then pretend we aren't using GCC.
10990    ac_prog=ld
10991    ;;
10992  *)
10993    # If it is relative, then search for the first ld in PATH.
10994    with_gnu_ld=unknown
10995    ;;
10996  esac
10997elif test "$with_gnu_ld" = yes; then
10998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10999$as_echo_n "checking for GNU ld... " >&6; }
11000else
11001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11002$as_echo_n "checking for non-GNU ld... " >&6; }
11003fi
11004if ${lt_cv_path_LD+:} false; then :
11005  $as_echo_n "(cached) " >&6
11006else
11007  if test -z "$LD"; then
11008  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11009  for ac_dir in $PATH; do
11010    IFS="$lt_save_ifs"
11011    test -z "$ac_dir" && ac_dir=.
11012    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11013      lt_cv_path_LD="$ac_dir/$ac_prog"
11014      # Check to see if the program is GNU ld.  I'd rather use --version,
11015      # but apparently some variants of GNU ld only accept -v.
11016      # Break only if it was the GNU/non-GNU ld that we prefer.
11017      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11018      *GNU* | *'with BFD'*)
11019	test "$with_gnu_ld" != no && break
11020	;;
11021      *)
11022	test "$with_gnu_ld" != yes && break
11023	;;
11024      esac
11025    fi
11026  done
11027  IFS="$lt_save_ifs"
11028else
11029  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11030fi
11031fi
11032
11033LD="$lt_cv_path_LD"
11034if test -n "$LD"; then
11035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11036$as_echo "$LD" >&6; }
11037else
11038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039$as_echo "no" >&6; }
11040fi
11041test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11043$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11044if ${lt_cv_prog_gnu_ld+:} false; then :
11045  $as_echo_n "(cached) " >&6
11046else
11047  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11048case `$LD -v 2>&1 </dev/null` in
11049*GNU* | *'with BFD'*)
11050  lt_cv_prog_gnu_ld=yes
11051  ;;
11052*)
11053  lt_cv_prog_gnu_ld=no
11054  ;;
11055esac
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11058$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11059with_gnu_ld=$lt_cv_prog_gnu_ld
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11070$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11071if ${lt_cv_path_NM+:} false; then :
11072  $as_echo_n "(cached) " >&6
11073else
11074  if test -n "$NM"; then
11075  # Let the user override the test.
11076  lt_cv_path_NM="$NM"
11077else
11078  lt_nm_to_check="${ac_tool_prefix}nm"
11079  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11080    lt_nm_to_check="$lt_nm_to_check nm"
11081  fi
11082  for lt_tmp_nm in $lt_nm_to_check; do
11083    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11084    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11085      IFS="$lt_save_ifs"
11086      test -z "$ac_dir" && ac_dir=.
11087      tmp_nm="$ac_dir/$lt_tmp_nm"
11088      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11089	# Check to see if the nm accepts a BSD-compat flag.
11090	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11091	#   nm: unknown option "B" ignored
11092	# Tru64's nm complains that /dev/null is an invalid object file
11093	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11094	*/dev/null* | *'Invalid file or object type'*)
11095	  lt_cv_path_NM="$tmp_nm -B"
11096	  break
11097	  ;;
11098	*)
11099	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11100	  */dev/null*)
11101	    lt_cv_path_NM="$tmp_nm -p"
11102	    break
11103	    ;;
11104	  *)
11105	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11106	    continue # so that we can try to find one that supports BSD flags
11107	    ;;
11108	  esac
11109	  ;;
11110	esac
11111      fi
11112    done
11113    IFS="$lt_save_ifs"
11114  done
11115  : ${lt_cv_path_NM=no}
11116fi
11117fi
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11119$as_echo "$lt_cv_path_NM" >&6; }
11120if test "$lt_cv_path_NM" != "no"; then
11121  NM="$lt_cv_path_NM"
11122else
11123  # Didn't find any BSD compatible name lister, look for dumpbin.
11124  if test -n "$DUMPBIN"; then :
11125    # Let the user override the test.
11126  else
11127    if test -n "$ac_tool_prefix"; then
11128  for ac_prog in dumpbin "link -dump"
11129  do
11130    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11131set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133$as_echo_n "checking for $ac_word... " >&6; }
11134if ${ac_cv_prog_DUMPBIN+:} false; then :
11135  $as_echo_n "(cached) " >&6
11136else
11137  if test -n "$DUMPBIN"; then
11138  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11139else
11140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141for as_dir in $PATH
11142do
11143  IFS=$as_save_IFS
11144  test -z "$as_dir" && as_dir=.
11145    for ac_exec_ext in '' $ac_executable_extensions; do
11146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11147    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149    break 2
11150  fi
11151done
11152  done
11153IFS=$as_save_IFS
11154
11155fi
11156fi
11157DUMPBIN=$ac_cv_prog_DUMPBIN
11158if test -n "$DUMPBIN"; then
11159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11160$as_echo "$DUMPBIN" >&6; }
11161else
11162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
11164fi
11165
11166
11167    test -n "$DUMPBIN" && break
11168  done
11169fi
11170if test -z "$DUMPBIN"; then
11171  ac_ct_DUMPBIN=$DUMPBIN
11172  for ac_prog in dumpbin "link -dump"
11173do
11174  # Extract the first word of "$ac_prog", so it can be a program name with args.
11175set dummy $ac_prog; ac_word=$2
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11177$as_echo_n "checking for $ac_word... " >&6; }
11178if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11179  $as_echo_n "(cached) " >&6
11180else
11181  if test -n "$ac_ct_DUMPBIN"; then
11182  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11183else
11184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185for as_dir in $PATH
11186do
11187  IFS=$as_save_IFS
11188  test -z "$as_dir" && as_dir=.
11189    for ac_exec_ext in '' $ac_executable_extensions; do
11190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11191    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193    break 2
11194  fi
11195done
11196  done
11197IFS=$as_save_IFS
11198
11199fi
11200fi
11201ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11202if test -n "$ac_ct_DUMPBIN"; then
11203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11204$as_echo "$ac_ct_DUMPBIN" >&6; }
11205else
11206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207$as_echo "no" >&6; }
11208fi
11209
11210
11211  test -n "$ac_ct_DUMPBIN" && break
11212done
11213
11214  if test "x$ac_ct_DUMPBIN" = x; then
11215    DUMPBIN=":"
11216  else
11217    case $cross_compiling:$ac_tool_warned in
11218yes:)
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11221ac_tool_warned=yes ;;
11222esac
11223    DUMPBIN=$ac_ct_DUMPBIN
11224  fi
11225fi
11226
11227    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11228    *COFF*)
11229      DUMPBIN="$DUMPBIN -symbols"
11230      ;;
11231    *)
11232      DUMPBIN=:
11233      ;;
11234    esac
11235  fi
11236
11237  if test "$DUMPBIN" != ":"; then
11238    NM="$DUMPBIN"
11239  fi
11240fi
11241test -z "$NM" && NM=nm
11242
11243
11244
11245
11246
11247
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11249$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11250if ${lt_cv_nm_interface+:} false; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  lt_cv_nm_interface="BSD nm"
11254  echo "int some_variable = 0;" > conftest.$ac_ext
11255  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11256  (eval "$ac_compile" 2>conftest.err)
11257  cat conftest.err >&5
11258  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11259  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11260  cat conftest.err >&5
11261  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11262  cat conftest.out >&5
11263  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11264    lt_cv_nm_interface="MS dumpbin"
11265  fi
11266  rm -f conftest*
11267fi
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11269$as_echo "$lt_cv_nm_interface" >&6; }
11270
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11272$as_echo_n "checking whether ln -s works... " >&6; }
11273LN_S=$as_ln_s
11274if test "$LN_S" = "ln -s"; then
11275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11276$as_echo "yes" >&6; }
11277else
11278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11279$as_echo "no, using $LN_S" >&6; }
11280fi
11281
11282# find the maximum length of command line arguments
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11284$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11285if ${lt_cv_sys_max_cmd_len+:} false; then :
11286  $as_echo_n "(cached) " >&6
11287else
11288    i=0
11289  teststring="ABCD"
11290
11291  case $build_os in
11292  msdosdjgpp*)
11293    # On DJGPP, this test can blow up pretty badly due to problems in libc
11294    # (any single argument exceeding 2000 bytes causes a buffer overrun
11295    # during glob expansion).  Even if it were fixed, the result of this
11296    # check would be larger than it should be.
11297    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11298    ;;
11299
11300  gnu*)
11301    # Under GNU Hurd, this test is not required because there is
11302    # no limit to the length of command line arguments.
11303    # Libtool will interpret -1 as no limit whatsoever
11304    lt_cv_sys_max_cmd_len=-1;
11305    ;;
11306
11307  cygwin* | mingw* | cegcc*)
11308    # On Win9x/ME, this test blows up -- it succeeds, but takes
11309    # about 5 minutes as the teststring grows exponentially.
11310    # Worse, since 9x/ME are not pre-emptively multitasking,
11311    # you end up with a "frozen" computer, even though with patience
11312    # the test eventually succeeds (with a max line length of 256k).
11313    # Instead, let's just punt: use the minimum linelength reported by
11314    # all of the supported platforms: 8192 (on NT/2K/XP).
11315    lt_cv_sys_max_cmd_len=8192;
11316    ;;
11317
11318  mint*)
11319    # On MiNT this can take a long time and run out of memory.
11320    lt_cv_sys_max_cmd_len=8192;
11321    ;;
11322
11323  amigaos*)
11324    # On AmigaOS with pdksh, this test takes hours, literally.
11325    # So we just punt and use a minimum line length of 8192.
11326    lt_cv_sys_max_cmd_len=8192;
11327    ;;
11328
11329  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11330    # This has been around since 386BSD, at least.  Likely further.
11331    if test -x /sbin/sysctl; then
11332      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11333    elif test -x /usr/sbin/sysctl; then
11334      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11335    else
11336      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11337    fi
11338    # And add a safety zone
11339    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11340    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11341    ;;
11342
11343  interix*)
11344    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11345    lt_cv_sys_max_cmd_len=196608
11346    ;;
11347
11348  os2*)
11349    # The test takes a long time on OS/2.
11350    lt_cv_sys_max_cmd_len=8192
11351    ;;
11352
11353  osf*)
11354    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11355    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11356    # nice to cause kernel panics so lets avoid the loop below.
11357    # First set a reasonable default.
11358    lt_cv_sys_max_cmd_len=16384
11359    #
11360    if test -x /sbin/sysconfig; then
11361      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11362        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11363      esac
11364    fi
11365    ;;
11366  sco3.2v5*)
11367    lt_cv_sys_max_cmd_len=102400
11368    ;;
11369  sysv5* | sco5v6* | sysv4.2uw2*)
11370    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11371    if test -n "$kargmax"; then
11372      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11373    else
11374      lt_cv_sys_max_cmd_len=32768
11375    fi
11376    ;;
11377  *)
11378    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11379    if test -n "$lt_cv_sys_max_cmd_len"; then
11380      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11381      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11382    else
11383      # Make teststring a little bigger before we do anything with it.
11384      # a 1K string should be a reasonable start.
11385      for i in 1 2 3 4 5 6 7 8 ; do
11386        teststring=$teststring$teststring
11387      done
11388      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11389      # If test is not a shell built-in, we'll probably end up computing a
11390      # maximum length that is only half of the actual maximum length, but
11391      # we can't tell.
11392      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11393	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11394	      test $i != 17 # 1/2 MB should be enough
11395      do
11396        i=`expr $i + 1`
11397        teststring=$teststring$teststring
11398      done
11399      # Only check the string length outside the loop.
11400      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11401      teststring=
11402      # Add a significant safety factor because C++ compilers can tack on
11403      # massive amounts of additional arguments before passing them to the
11404      # linker.  It appears as though 1/2 is a usable value.
11405      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11406    fi
11407    ;;
11408  esac
11409
11410fi
11411
11412if test -n $lt_cv_sys_max_cmd_len ; then
11413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11414$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11415else
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11417$as_echo "none" >&6; }
11418fi
11419max_cmd_len=$lt_cv_sys_max_cmd_len
11420
11421
11422
11423
11424
11425
11426: ${CP="cp -f"}
11427: ${MV="mv -f"}
11428: ${RM="rm -f"}
11429
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11431$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11432# Try some XSI features
11433xsi_shell=no
11434( _lt_dummy="a/b/c"
11435  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11436      = c,a/b,b/c, \
11437    && eval 'test $(( 1 + 1 )) -eq 2 \
11438    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11439  && xsi_shell=yes
11440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11441$as_echo "$xsi_shell" >&6; }
11442
11443
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11445$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11446lt_shell_append=no
11447( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11448    >/dev/null 2>&1 \
11449  && lt_shell_append=yes
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11451$as_echo "$lt_shell_append" >&6; }
11452
11453
11454if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11455  lt_unset=unset
11456else
11457  lt_unset=false
11458fi
11459
11460
11461
11462
11463
11464# test EBCDIC or ASCII
11465case `echo X|tr X '\101'` in
11466 A) # ASCII based system
11467    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11468  lt_SP2NL='tr \040 \012'
11469  lt_NL2SP='tr \015\012 \040\040'
11470  ;;
11471 *) # EBCDIC based system
11472  lt_SP2NL='tr \100 \n'
11473  lt_NL2SP='tr \r\n \100\100'
11474  ;;
11475esac
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11486$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11487if ${lt_cv_to_host_file_cmd+:} false; then :
11488  $as_echo_n "(cached) " >&6
11489else
11490  case $host in
11491  *-*-mingw* )
11492    case $build in
11493      *-*-mingw* ) # actually msys
11494        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11495        ;;
11496      *-*-cygwin* )
11497        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11498        ;;
11499      * ) # otherwise, assume *nix
11500        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11501        ;;
11502    esac
11503    ;;
11504  *-*-cygwin* )
11505    case $build in
11506      *-*-mingw* ) # actually msys
11507        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11508        ;;
11509      *-*-cygwin* )
11510        lt_cv_to_host_file_cmd=func_convert_file_noop
11511        ;;
11512      * ) # otherwise, assume *nix
11513        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11514        ;;
11515    esac
11516    ;;
11517  * ) # unhandled hosts (and "normal" native builds)
11518    lt_cv_to_host_file_cmd=func_convert_file_noop
11519    ;;
11520esac
11521
11522fi
11523
11524to_host_file_cmd=$lt_cv_to_host_file_cmd
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11526$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11527
11528
11529
11530
11531
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11533$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11534if ${lt_cv_to_tool_file_cmd+:} false; then :
11535  $as_echo_n "(cached) " >&6
11536else
11537  #assume ordinary cross tools, or native build.
11538lt_cv_to_tool_file_cmd=func_convert_file_noop
11539case $host in
11540  *-*-mingw* )
11541    case $build in
11542      *-*-mingw* ) # actually msys
11543        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11544        ;;
11545    esac
11546    ;;
11547esac
11548
11549fi
11550
11551to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11553$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11554
11555
11556
11557
11558
11559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11560$as_echo_n "checking for $LD option to reload object files... " >&6; }
11561if ${lt_cv_ld_reload_flag+:} false; then :
11562  $as_echo_n "(cached) " >&6
11563else
11564  lt_cv_ld_reload_flag='-r'
11565fi
11566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11567$as_echo "$lt_cv_ld_reload_flag" >&6; }
11568reload_flag=$lt_cv_ld_reload_flag
11569case $reload_flag in
11570"" | " "*) ;;
11571*) reload_flag=" $reload_flag" ;;
11572esac
11573reload_cmds='$LD$reload_flag -o $output$reload_objs'
11574case $host_os in
11575  cygwin* | mingw* | pw32* | cegcc*)
11576    if test "$GCC" != yes; then
11577      reload_cmds=false
11578    fi
11579    ;;
11580  darwin*)
11581    if test "$GCC" = yes; then
11582      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11583    else
11584      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11585    fi
11586    ;;
11587esac
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597if test -n "$ac_tool_prefix"; then
11598  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11599set dummy ${ac_tool_prefix}objdump; ac_word=$2
11600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601$as_echo_n "checking for $ac_word... " >&6; }
11602if ${ac_cv_prog_OBJDUMP+:} false; then :
11603  $as_echo_n "(cached) " >&6
11604else
11605  if test -n "$OBJDUMP"; then
11606  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11607else
11608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609for as_dir in $PATH
11610do
11611  IFS=$as_save_IFS
11612  test -z "$as_dir" && as_dir=.
11613    for ac_exec_ext in '' $ac_executable_extensions; do
11614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11615    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617    break 2
11618  fi
11619done
11620  done
11621IFS=$as_save_IFS
11622
11623fi
11624fi
11625OBJDUMP=$ac_cv_prog_OBJDUMP
11626if test -n "$OBJDUMP"; then
11627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11628$as_echo "$OBJDUMP" >&6; }
11629else
11630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
11632fi
11633
11634
11635fi
11636if test -z "$ac_cv_prog_OBJDUMP"; then
11637  ac_ct_OBJDUMP=$OBJDUMP
11638  # Extract the first word of "objdump", so it can be a program name with args.
11639set dummy objdump; ac_word=$2
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641$as_echo_n "checking for $ac_word... " >&6; }
11642if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11643  $as_echo_n "(cached) " >&6
11644else
11645  if test -n "$ac_ct_OBJDUMP"; then
11646  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11647else
11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651  IFS=$as_save_IFS
11652  test -z "$as_dir" && as_dir=.
11653    for ac_exec_ext in '' $ac_executable_extensions; do
11654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11655    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11657    break 2
11658  fi
11659done
11660  done
11661IFS=$as_save_IFS
11662
11663fi
11664fi
11665ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11666if test -n "$ac_ct_OBJDUMP"; then
11667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11668$as_echo "$ac_ct_OBJDUMP" >&6; }
11669else
11670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671$as_echo "no" >&6; }
11672fi
11673
11674  if test "x$ac_ct_OBJDUMP" = x; then
11675    OBJDUMP="false"
11676  else
11677    case $cross_compiling:$ac_tool_warned in
11678yes:)
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11681ac_tool_warned=yes ;;
11682esac
11683    OBJDUMP=$ac_ct_OBJDUMP
11684  fi
11685else
11686  OBJDUMP="$ac_cv_prog_OBJDUMP"
11687fi
11688
11689test -z "$OBJDUMP" && OBJDUMP=objdump
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11700$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11701if ${lt_cv_deplibs_check_method+:} false; then :
11702  $as_echo_n "(cached) " >&6
11703else
11704  lt_cv_file_magic_cmd='$MAGIC_CMD'
11705lt_cv_file_magic_test_file=
11706lt_cv_deplibs_check_method='unknown'
11707# Need to set the preceding variable on all platforms that support
11708# interlibrary dependencies.
11709# 'none' -- dependencies not supported.
11710# `unknown' -- same as none, but documents that we really don't know.
11711# 'pass_all' -- all dependencies passed with no checks.
11712# 'test_compile' -- check by making test program.
11713# 'file_magic [[regex]]' -- check by looking for files in library path
11714# which responds to the $file_magic_cmd with a given extended regex.
11715# If you have `file' or equivalent on your system and you're not sure
11716# whether `pass_all' will *always* work, you probably want this one.
11717
11718case $host_os in
11719aix[4-9]*)
11720  lt_cv_deplibs_check_method=pass_all
11721  ;;
11722
11723beos*)
11724  lt_cv_deplibs_check_method=pass_all
11725  ;;
11726
11727bsdi[45]*)
11728  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11729  lt_cv_file_magic_cmd='/usr/bin/file -L'
11730  lt_cv_file_magic_test_file=/shlib/libc.so
11731  ;;
11732
11733cygwin*)
11734  # func_win32_libid is a shell function defined in ltmain.sh
11735  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11736  lt_cv_file_magic_cmd='func_win32_libid'
11737  ;;
11738
11739mingw* | pw32*)
11740  # Base MSYS/MinGW do not provide the 'file' command needed by
11741  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11742  # unless we find 'file', for example because we are cross-compiling.
11743  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11744  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11745    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11746    lt_cv_file_magic_cmd='func_win32_libid'
11747  else
11748    # Keep this pattern in sync with the one in func_win32_libid.
11749    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11750    lt_cv_file_magic_cmd='$OBJDUMP -f'
11751  fi
11752  ;;
11753
11754cegcc*)
11755  # use the weaker test based on 'objdump'. See mingw*.
11756  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11757  lt_cv_file_magic_cmd='$OBJDUMP -f'
11758  ;;
11759
11760darwin* | rhapsody*)
11761  lt_cv_deplibs_check_method=pass_all
11762  ;;
11763
11764freebsd* | dragonfly*)
11765  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11766    case $host_cpu in
11767    i*86 )
11768      # Not sure whether the presence of OpenBSD here was a mistake.
11769      # Let's accept both of them until this is cleared up.
11770      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11771      lt_cv_file_magic_cmd=/usr/bin/file
11772      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11773      ;;
11774    esac
11775  else
11776    lt_cv_deplibs_check_method=pass_all
11777  fi
11778  ;;
11779
11780gnu*)
11781  lt_cv_deplibs_check_method=pass_all
11782  ;;
11783
11784haiku*)
11785  lt_cv_deplibs_check_method=pass_all
11786  ;;
11787
11788hpux10.20* | hpux11*)
11789  lt_cv_file_magic_cmd=/usr/bin/file
11790  case $host_cpu in
11791  ia64*)
11792    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11793    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11794    ;;
11795  hppa*64*)
11796    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]'
11797    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11798    ;;
11799  *)
11800    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11801    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11802    ;;
11803  esac
11804  ;;
11805
11806interix[3-9]*)
11807  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11808  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11809  ;;
11810
11811irix5* | irix6* | nonstopux*)
11812  case $LD in
11813  *-32|*"-32 ") libmagic=32-bit;;
11814  *-n32|*"-n32 ") libmagic=N32;;
11815  *-64|*"-64 ") libmagic=64-bit;;
11816  *) libmagic=never-match;;
11817  esac
11818  lt_cv_deplibs_check_method=pass_all
11819  ;;
11820
11821# This must be glibc/ELF.
11822linux* | k*bsd*-gnu | kopensolaris*-gnu)
11823  lt_cv_deplibs_check_method=pass_all
11824  ;;
11825
11826netbsd*)
11827  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11828    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11829  else
11830    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11831  fi
11832  ;;
11833
11834newos6*)
11835  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11836  lt_cv_file_magic_cmd=/usr/bin/file
11837  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11838  ;;
11839
11840*nto* | *qnx*)
11841  lt_cv_deplibs_check_method=pass_all
11842  ;;
11843
11844openbsd*)
11845  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11846    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11847  else
11848    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11849  fi
11850  ;;
11851
11852osf3* | osf4* | osf5*)
11853  lt_cv_deplibs_check_method=pass_all
11854  ;;
11855
11856rdos*)
11857  lt_cv_deplibs_check_method=pass_all
11858  ;;
11859
11860solaris*)
11861  lt_cv_deplibs_check_method=pass_all
11862  ;;
11863
11864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11865  lt_cv_deplibs_check_method=pass_all
11866  ;;
11867
11868sysv4 | sysv4.3*)
11869  case $host_vendor in
11870  motorola)
11871    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]'
11872    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11873    ;;
11874  ncr)
11875    lt_cv_deplibs_check_method=pass_all
11876    ;;
11877  sequent)
11878    lt_cv_file_magic_cmd='/bin/file'
11879    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11880    ;;
11881  sni)
11882    lt_cv_file_magic_cmd='/bin/file'
11883    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11884    lt_cv_file_magic_test_file=/lib/libc.so
11885    ;;
11886  siemens)
11887    lt_cv_deplibs_check_method=pass_all
11888    ;;
11889  pc)
11890    lt_cv_deplibs_check_method=pass_all
11891    ;;
11892  esac
11893  ;;
11894
11895tpf*)
11896  lt_cv_deplibs_check_method=pass_all
11897  ;;
11898esac
11899
11900fi
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11902$as_echo "$lt_cv_deplibs_check_method" >&6; }
11903
11904file_magic_glob=
11905want_nocaseglob=no
11906if test "$build" = "$host"; then
11907  case $host_os in
11908  mingw* | pw32*)
11909    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11910      want_nocaseglob=yes
11911    else
11912      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11913    fi
11914    ;;
11915  esac
11916fi
11917
11918file_magic_cmd=$lt_cv_file_magic_cmd
11919deplibs_check_method=$lt_cv_deplibs_check_method
11920test -z "$deplibs_check_method" && deplibs_check_method=unknown
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943if test -n "$ac_tool_prefix"; then
11944  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11945set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947$as_echo_n "checking for $ac_word... " >&6; }
11948if ${ac_cv_prog_DLLTOOL+:} false; then :
11949  $as_echo_n "(cached) " >&6
11950else
11951  if test -n "$DLLTOOL"; then
11952  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11953else
11954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955for as_dir in $PATH
11956do
11957  IFS=$as_save_IFS
11958  test -z "$as_dir" && as_dir=.
11959    for ac_exec_ext in '' $ac_executable_extensions; do
11960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11961    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963    break 2
11964  fi
11965done
11966  done
11967IFS=$as_save_IFS
11968
11969fi
11970fi
11971DLLTOOL=$ac_cv_prog_DLLTOOL
11972if test -n "$DLLTOOL"; then
11973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11974$as_echo "$DLLTOOL" >&6; }
11975else
11976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977$as_echo "no" >&6; }
11978fi
11979
11980
11981fi
11982if test -z "$ac_cv_prog_DLLTOOL"; then
11983  ac_ct_DLLTOOL=$DLLTOOL
11984  # Extract the first word of "dlltool", so it can be a program name with args.
11985set dummy dlltool; ac_word=$2
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
11988if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  if test -n "$ac_ct_DLLTOOL"; then
11992  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11993else
11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
11997  IFS=$as_save_IFS
11998  test -z "$as_dir" && as_dir=.
11999    for ac_exec_ext in '' $ac_executable_extensions; do
12000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12001    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003    break 2
12004  fi
12005done
12006  done
12007IFS=$as_save_IFS
12008
12009fi
12010fi
12011ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12012if test -n "$ac_ct_DLLTOOL"; then
12013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12014$as_echo "$ac_ct_DLLTOOL" >&6; }
12015else
12016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
12018fi
12019
12020  if test "x$ac_ct_DLLTOOL" = x; then
12021    DLLTOOL="false"
12022  else
12023    case $cross_compiling:$ac_tool_warned in
12024yes:)
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12027ac_tool_warned=yes ;;
12028esac
12029    DLLTOOL=$ac_ct_DLLTOOL
12030  fi
12031else
12032  DLLTOOL="$ac_cv_prog_DLLTOOL"
12033fi
12034
12035test -z "$DLLTOOL" && DLLTOOL=dlltool
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12047$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12048if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12049  $as_echo_n "(cached) " >&6
12050else
12051  lt_cv_sharedlib_from_linklib_cmd='unknown'
12052
12053case $host_os in
12054cygwin* | mingw* | pw32* | cegcc*)
12055  # two different shell functions defined in ltmain.sh
12056  # decide which to use based on capabilities of $DLLTOOL
12057  case `$DLLTOOL --help 2>&1` in
12058  *--identify-strict*)
12059    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12060    ;;
12061  *)
12062    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12063    ;;
12064  esac
12065  ;;
12066*)
12067  # fallback: assume linklib IS sharedlib
12068  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12069  ;;
12070esac
12071
12072fi
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12074$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12075sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12076test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12077
12078
12079
12080
12081
12082
12083
12084if test -n "$ac_tool_prefix"; then
12085  for ac_prog in ar
12086  do
12087    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
12091if ${ac_cv_prog_AR+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  if test -n "$AR"; then
12095  ac_cv_prog_AR="$AR" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100  IFS=$as_save_IFS
12101  test -z "$as_dir" && as_dir=.
12102    for ac_exec_ext in '' $ac_executable_extensions; do
12103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106    break 2
12107  fi
12108done
12109  done
12110IFS=$as_save_IFS
12111
12112fi
12113fi
12114AR=$ac_cv_prog_AR
12115if test -n "$AR"; then
12116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12117$as_echo "$AR" >&6; }
12118else
12119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120$as_echo "no" >&6; }
12121fi
12122
12123
12124    test -n "$AR" && break
12125  done
12126fi
12127if test -z "$AR"; then
12128  ac_ct_AR=$AR
12129  for ac_prog in ar
12130do
12131  # Extract the first word of "$ac_prog", so it can be a program name with args.
12132set dummy $ac_prog; ac_word=$2
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134$as_echo_n "checking for $ac_word... " >&6; }
12135if ${ac_cv_prog_ac_ct_AR+:} false; then :
12136  $as_echo_n "(cached) " >&6
12137else
12138  if test -n "$ac_ct_AR"; then
12139  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12140else
12141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142for as_dir in $PATH
12143do
12144  IFS=$as_save_IFS
12145  test -z "$as_dir" && as_dir=.
12146    for ac_exec_ext in '' $ac_executable_extensions; do
12147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148    ac_cv_prog_ac_ct_AR="$ac_prog"
12149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150    break 2
12151  fi
12152done
12153  done
12154IFS=$as_save_IFS
12155
12156fi
12157fi
12158ac_ct_AR=$ac_cv_prog_ac_ct_AR
12159if test -n "$ac_ct_AR"; then
12160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12161$as_echo "$ac_ct_AR" >&6; }
12162else
12163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164$as_echo "no" >&6; }
12165fi
12166
12167
12168  test -n "$ac_ct_AR" && break
12169done
12170
12171  if test "x$ac_ct_AR" = x; then
12172    AR="false"
12173  else
12174    case $cross_compiling:$ac_tool_warned in
12175yes:)
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12178ac_tool_warned=yes ;;
12179esac
12180    AR=$ac_ct_AR
12181  fi
12182fi
12183
12184: ${AR=ar}
12185: ${AR_FLAGS=cru}
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12198$as_echo_n "checking for archiver @FILE support... " >&6; }
12199if ${lt_cv_ar_at_file+:} false; then :
12200  $as_echo_n "(cached) " >&6
12201else
12202  lt_cv_ar_at_file=no
12203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204/* end confdefs.h.  */
12205
12206int
12207main ()
12208{
12209
12210  ;
12211  return 0;
12212}
12213_ACEOF
12214if ac_fn_c_try_compile "$LINENO"; then :
12215  echo conftest.$ac_objext > conftest.lst
12216      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12217      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12218  (eval $lt_ar_try) 2>&5
12219  ac_status=$?
12220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221  test $ac_status = 0; }
12222      if test "$ac_status" -eq 0; then
12223	# Ensure the archiver fails upon bogus file names.
12224	rm -f conftest.$ac_objext libconftest.a
12225	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12226  (eval $lt_ar_try) 2>&5
12227  ac_status=$?
12228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12229  test $ac_status = 0; }
12230	if test "$ac_status" -ne 0; then
12231          lt_cv_ar_at_file=@
12232        fi
12233      fi
12234      rm -f conftest.* libconftest.a
12235
12236fi
12237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238
12239fi
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12241$as_echo "$lt_cv_ar_at_file" >&6; }
12242
12243if test "x$lt_cv_ar_at_file" = xno; then
12244  archiver_list_spec=
12245else
12246  archiver_list_spec=$lt_cv_ar_at_file
12247fi
12248
12249
12250
12251
12252
12253
12254
12255if test -n "$ac_tool_prefix"; then
12256  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12257set dummy ${ac_tool_prefix}strip; ac_word=$2
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259$as_echo_n "checking for $ac_word... " >&6; }
12260if ${ac_cv_prog_STRIP+:} false; then :
12261  $as_echo_n "(cached) " >&6
12262else
12263  if test -n "$STRIP"; then
12264  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269  IFS=$as_save_IFS
12270  test -z "$as_dir" && as_dir=.
12271    for ac_exec_ext in '' $ac_executable_extensions; do
12272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12273    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275    break 2
12276  fi
12277done
12278  done
12279IFS=$as_save_IFS
12280
12281fi
12282fi
12283STRIP=$ac_cv_prog_STRIP
12284if test -n "$STRIP"; then
12285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12286$as_echo "$STRIP" >&6; }
12287else
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290fi
12291
12292
12293fi
12294if test -z "$ac_cv_prog_STRIP"; then
12295  ac_ct_STRIP=$STRIP
12296  # Extract the first word of "strip", so it can be a program name with args.
12297set dummy strip; ac_word=$2
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299$as_echo_n "checking for $ac_word... " >&6; }
12300if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12301  $as_echo_n "(cached) " >&6
12302else
12303  if test -n "$ac_ct_STRIP"; then
12304  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12305else
12306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307for as_dir in $PATH
12308do
12309  IFS=$as_save_IFS
12310  test -z "$as_dir" && as_dir=.
12311    for ac_exec_ext in '' $ac_executable_extensions; do
12312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313    ac_cv_prog_ac_ct_STRIP="strip"
12314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12315    break 2
12316  fi
12317done
12318  done
12319IFS=$as_save_IFS
12320
12321fi
12322fi
12323ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12324if test -n "$ac_ct_STRIP"; then
12325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12326$as_echo "$ac_ct_STRIP" >&6; }
12327else
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329$as_echo "no" >&6; }
12330fi
12331
12332  if test "x$ac_ct_STRIP" = x; then
12333    STRIP=":"
12334  else
12335    case $cross_compiling:$ac_tool_warned in
12336yes:)
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12339ac_tool_warned=yes ;;
12340esac
12341    STRIP=$ac_ct_STRIP
12342  fi
12343else
12344  STRIP="$ac_cv_prog_STRIP"
12345fi
12346
12347test -z "$STRIP" && STRIP=:
12348
12349
12350
12351
12352
12353
12354if test -n "$ac_tool_prefix"; then
12355  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358$as_echo_n "checking for $ac_word... " >&6; }
12359if ${ac_cv_prog_RANLIB+:} false; then :
12360  $as_echo_n "(cached) " >&6
12361else
12362  if test -n "$RANLIB"; then
12363  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12364else
12365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366for as_dir in $PATH
12367do
12368  IFS=$as_save_IFS
12369  test -z "$as_dir" && as_dir=.
12370    for ac_exec_ext in '' $ac_executable_extensions; do
12371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12372    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374    break 2
12375  fi
12376done
12377  done
12378IFS=$as_save_IFS
12379
12380fi
12381fi
12382RANLIB=$ac_cv_prog_RANLIB
12383if test -n "$RANLIB"; then
12384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12385$as_echo "$RANLIB" >&6; }
12386else
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388$as_echo "no" >&6; }
12389fi
12390
12391
12392fi
12393if test -z "$ac_cv_prog_RANLIB"; then
12394  ac_ct_RANLIB=$RANLIB
12395  # Extract the first word of "ranlib", so it can be a program name with args.
12396set dummy ranlib; ac_word=$2
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398$as_echo_n "checking for $ac_word... " >&6; }
12399if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12400  $as_echo_n "(cached) " >&6
12401else
12402  if test -n "$ac_ct_RANLIB"; then
12403  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12404else
12405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406for as_dir in $PATH
12407do
12408  IFS=$as_save_IFS
12409  test -z "$as_dir" && as_dir=.
12410    for ac_exec_ext in '' $ac_executable_extensions; do
12411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412    ac_cv_prog_ac_ct_RANLIB="ranlib"
12413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414    break 2
12415  fi
12416done
12417  done
12418IFS=$as_save_IFS
12419
12420fi
12421fi
12422ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12423if test -n "$ac_ct_RANLIB"; then
12424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12425$as_echo "$ac_ct_RANLIB" >&6; }
12426else
12427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428$as_echo "no" >&6; }
12429fi
12430
12431  if test "x$ac_ct_RANLIB" = x; then
12432    RANLIB=":"
12433  else
12434    case $cross_compiling:$ac_tool_warned in
12435yes:)
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12438ac_tool_warned=yes ;;
12439esac
12440    RANLIB=$ac_ct_RANLIB
12441  fi
12442else
12443  RANLIB="$ac_cv_prog_RANLIB"
12444fi
12445
12446test -z "$RANLIB" && RANLIB=:
12447
12448
12449
12450
12451
12452
12453# Determine commands to create old-style static archives.
12454old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12455old_postinstall_cmds='chmod 644 $oldlib'
12456old_postuninstall_cmds=
12457
12458if test -n "$RANLIB"; then
12459  case $host_os in
12460  openbsd*)
12461    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12462    ;;
12463  *)
12464    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12465    ;;
12466  esac
12467  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12468fi
12469
12470case $host_os in
12471  darwin*)
12472    lock_old_archive_extraction=yes ;;
12473  *)
12474    lock_old_archive_extraction=no ;;
12475esac
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515# If no C compiler was specified, use CC.
12516LTCC=${LTCC-"$CC"}
12517
12518# If no C compiler flags were specified, use CFLAGS.
12519LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12520
12521# Allow CC to be a program name with arguments.
12522compiler=$CC
12523
12524
12525# Check for command to grab the raw symbol name followed by C symbol from nm.
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12527$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12528if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12529  $as_echo_n "(cached) " >&6
12530else
12531
12532# These are sane defaults that work on at least a few old systems.
12533# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12534
12535# Character class describing NM global symbol codes.
12536symcode='[BCDEGRST]'
12537
12538# Regexp to match symbols that can be accessed directly from C.
12539sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12540
12541# Define system-specific variables.
12542case $host_os in
12543aix*)
12544  symcode='[BCDT]'
12545  ;;
12546cygwin* | mingw* | pw32* | cegcc*)
12547  symcode='[ABCDGISTW]'
12548  ;;
12549hpux*)
12550  if test "$host_cpu" = ia64; then
12551    symcode='[ABCDEGRST]'
12552  fi
12553  ;;
12554irix* | nonstopux*)
12555  symcode='[BCDEGRST]'
12556  ;;
12557osf*)
12558  symcode='[BCDEGQRST]'
12559  ;;
12560solaris*)
12561  symcode='[BDRT]'
12562  ;;
12563sco3.2v5*)
12564  symcode='[DT]'
12565  ;;
12566sysv4.2uw2*)
12567  symcode='[DT]'
12568  ;;
12569sysv5* | sco5v6* | unixware* | OpenUNIX*)
12570  symcode='[ABDT]'
12571  ;;
12572sysv4)
12573  symcode='[DFNSTU]'
12574  ;;
12575esac
12576
12577# If we're using GNU nm, then use its standard symbol codes.
12578case `$NM -V 2>&1` in
12579*GNU* | *'with BFD'*)
12580  symcode='[ABCDGIRSTW]' ;;
12581esac
12582
12583# Transform an extracted symbol line into a proper C declaration.
12584# Some systems (esp. on ia64) link data and code symbols differently,
12585# so use this general approach.
12586lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12587
12588# Transform an extracted symbol line into symbol name and symbol address
12589lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12590lt_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'"
12591
12592# Handle CRLF in mingw tool chain
12593opt_cr=
12594case $build_os in
12595mingw*)
12596  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12597  ;;
12598esac
12599
12600# Try without a prefix underscore, then with it.
12601for ac_symprfx in "" "_"; do
12602
12603  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12604  symxfrm="\\1 $ac_symprfx\\2 \\2"
12605
12606  # Write the raw and C identifiers.
12607  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12608    # Fake it for dumpbin and say T for any non-static function
12609    # and D for any global variable.
12610    # Also find C++ and __fastcall symbols from MSVC++,
12611    # which start with @ or ?.
12612    lt_cv_sys_global_symbol_pipe="$AWK '"\
12613"     {last_section=section; section=\$ 3};"\
12614"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12615"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12616"     \$ 0!~/External *\|/{next};"\
12617"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12618"     {if(hide[section]) next};"\
12619"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12620"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12621"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12622"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12623"     ' prfx=^$ac_symprfx"
12624  else
12625    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12626  fi
12627  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12628
12629  # Check to see that the pipe works correctly.
12630  pipe_works=no
12631
12632  rm -f conftest*
12633  cat > conftest.$ac_ext <<_LT_EOF
12634#ifdef __cplusplus
12635extern "C" {
12636#endif
12637char nm_test_var;
12638void nm_test_func(void);
12639void nm_test_func(void){}
12640#ifdef __cplusplus
12641}
12642#endif
12643int main(){nm_test_var='a';nm_test_func();return(0);}
12644_LT_EOF
12645
12646  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12647  (eval $ac_compile) 2>&5
12648  ac_status=$?
12649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12650  test $ac_status = 0; }; then
12651    # Now try to grab the symbols.
12652    nlist=conftest.nm
12653    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12654  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12655  ac_status=$?
12656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12657  test $ac_status = 0; } && test -s "$nlist"; then
12658      # Try sorting and uniquifying the output.
12659      if sort "$nlist" | uniq > "$nlist"T; then
12660	mv -f "$nlist"T "$nlist"
12661      else
12662	rm -f "$nlist"T
12663      fi
12664
12665      # Make sure that we snagged all the symbols we need.
12666      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12667	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12668	  cat <<_LT_EOF > conftest.$ac_ext
12669/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12670#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12671/* DATA imports from DLLs on WIN32 con't be const, because runtime
12672   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12673# define LT_DLSYM_CONST
12674#elif defined(__osf__)
12675/* This system does not cope well with relocations in const data.  */
12676# define LT_DLSYM_CONST
12677#else
12678# define LT_DLSYM_CONST const
12679#endif
12680
12681#ifdef __cplusplus
12682extern "C" {
12683#endif
12684
12685_LT_EOF
12686	  # Now generate the symbol file.
12687	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12688
12689	  cat <<_LT_EOF >> conftest.$ac_ext
12690
12691/* The mapping between symbol names and symbols.  */
12692LT_DLSYM_CONST struct {
12693  const char *name;
12694  void       *address;
12695}
12696lt__PROGRAM__LTX_preloaded_symbols[] =
12697{
12698  { "@PROGRAM@", (void *) 0 },
12699_LT_EOF
12700	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12701	  cat <<\_LT_EOF >> conftest.$ac_ext
12702  {0, (void *) 0}
12703};
12704
12705/* This works around a problem in FreeBSD linker */
12706#ifdef FREEBSD_WORKAROUND
12707static const void *lt_preloaded_setup() {
12708  return lt__PROGRAM__LTX_preloaded_symbols;
12709}
12710#endif
12711
12712#ifdef __cplusplus
12713}
12714#endif
12715_LT_EOF
12716	  # Now try linking the two files.
12717	  mv conftest.$ac_objext conftstm.$ac_objext
12718	  lt_globsym_save_LIBS=$LIBS
12719	  lt_globsym_save_CFLAGS=$CFLAGS
12720	  LIBS="conftstm.$ac_objext"
12721	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12722	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12723  (eval $ac_link) 2>&5
12724  ac_status=$?
12725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12726  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12727	    pipe_works=yes
12728	  fi
12729	  LIBS=$lt_globsym_save_LIBS
12730	  CFLAGS=$lt_globsym_save_CFLAGS
12731	else
12732	  echo "cannot find nm_test_func in $nlist" >&5
12733	fi
12734      else
12735	echo "cannot find nm_test_var in $nlist" >&5
12736      fi
12737    else
12738      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12739    fi
12740  else
12741    echo "$progname: failed program was:" >&5
12742    cat conftest.$ac_ext >&5
12743  fi
12744  rm -rf conftest* conftst*
12745
12746  # Do not use the global_symbol_pipe unless it works.
12747  if test "$pipe_works" = yes; then
12748    break
12749  else
12750    lt_cv_sys_global_symbol_pipe=
12751  fi
12752done
12753
12754fi
12755
12756if test -z "$lt_cv_sys_global_symbol_pipe"; then
12757  lt_cv_sys_global_symbol_to_cdecl=
12758fi
12759if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12761$as_echo "failed" >&6; }
12762else
12763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12764$as_echo "ok" >&6; }
12765fi
12766
12767# Response file support.
12768if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12769  nm_file_list_spec='@'
12770elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12771  nm_file_list_spec='@'
12772fi
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12801$as_echo_n "checking for sysroot... " >&6; }
12802
12803# Check whether --with-sysroot was given.
12804if test "${with_sysroot+set}" = set; then :
12805  withval=$with_sysroot;
12806else
12807  with_sysroot=no
12808fi
12809
12810
12811lt_sysroot=
12812case ${with_sysroot} in #(
12813 yes)
12814   if test "$GCC" = yes; then
12815     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12816   fi
12817   ;; #(
12818 /*)
12819   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12820   ;; #(
12821 no|'')
12822   ;; #(
12823 *)
12824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12825$as_echo "${with_sysroot}" >&6; }
12826   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12827   ;;
12828esac
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12831$as_echo "${lt_sysroot:-no}" >&6; }
12832
12833
12834
12835
12836
12837# Check whether --enable-libtool-lock was given.
12838if test "${enable_libtool_lock+set}" = set; then :
12839  enableval=$enable_libtool_lock;
12840fi
12841
12842test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12843
12844# Some flags need to be propagated to the compiler or linker for good
12845# libtool support.
12846case $host in
12847ia64-*-hpux*)
12848  # Find out which ABI we are using.
12849  echo 'int i;' > conftest.$ac_ext
12850  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12851  (eval $ac_compile) 2>&5
12852  ac_status=$?
12853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12854  test $ac_status = 0; }; then
12855    case `/usr/bin/file conftest.$ac_objext` in
12856      *ELF-32*)
12857	HPUX_IA64_MODE="32"
12858	;;
12859      *ELF-64*)
12860	HPUX_IA64_MODE="64"
12861	;;
12862    esac
12863  fi
12864  rm -rf conftest*
12865  ;;
12866*-*-irix6*)
12867  # Find out which ABI we are using.
12868  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12869  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870  (eval $ac_compile) 2>&5
12871  ac_status=$?
12872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873  test $ac_status = 0; }; then
12874    if test "$lt_cv_prog_gnu_ld" = yes; then
12875      case `/usr/bin/file conftest.$ac_objext` in
12876	*32-bit*)
12877	  LD="${LD-ld} -melf32bsmip"
12878	  ;;
12879	*N32*)
12880	  LD="${LD-ld} -melf32bmipn32"
12881	  ;;
12882	*64-bit*)
12883	  LD="${LD-ld} -melf64bmip"
12884	;;
12885      esac
12886    else
12887      case `/usr/bin/file conftest.$ac_objext` in
12888	*32-bit*)
12889	  LD="${LD-ld} -32"
12890	  ;;
12891	*N32*)
12892	  LD="${LD-ld} -n32"
12893	  ;;
12894	*64-bit*)
12895	  LD="${LD-ld} -64"
12896	  ;;
12897      esac
12898    fi
12899  fi
12900  rm -rf conftest*
12901  ;;
12902
12903x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12904s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12905  # Find out which ABI we are using.
12906  echo 'int i;' > conftest.$ac_ext
12907  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12908  (eval $ac_compile) 2>&5
12909  ac_status=$?
12910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911  test $ac_status = 0; }; then
12912    case `/usr/bin/file conftest.o` in
12913      *32-bit*)
12914	case $host in
12915	  x86_64-*kfreebsd*-gnu)
12916	    LD="${LD-ld} -m elf_i386_fbsd"
12917	    ;;
12918	  x86_64-*linux*)
12919	    LD="${LD-ld} -m elf_i386"
12920	    ;;
12921	  ppc64-*linux*|powerpc64-*linux*)
12922	    LD="${LD-ld} -m elf32ppclinux"
12923	    ;;
12924	  s390x-*linux*)
12925	    LD="${LD-ld} -m elf_s390"
12926	    ;;
12927	  sparc64-*linux*)
12928	    LD="${LD-ld} -m elf32_sparc"
12929	    ;;
12930	esac
12931	;;
12932      *64-bit*)
12933	case $host in
12934	  x86_64-*kfreebsd*-gnu)
12935	    LD="${LD-ld} -m elf_x86_64_fbsd"
12936	    ;;
12937	  x86_64-*linux*)
12938	    LD="${LD-ld} -m elf_x86_64"
12939	    ;;
12940	  ppc*-*linux*|powerpc*-*linux*)
12941	    LD="${LD-ld} -m elf64ppc"
12942	    ;;
12943	  s390*-*linux*|s390*-*tpf*)
12944	    LD="${LD-ld} -m elf64_s390"
12945	    ;;
12946	  sparc*-*linux*)
12947	    LD="${LD-ld} -m elf64_sparc"
12948	    ;;
12949	esac
12950	;;
12951    esac
12952  fi
12953  rm -rf conftest*
12954  ;;
12955
12956*-*-sco3.2v5*)
12957  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12958  SAVE_CFLAGS="$CFLAGS"
12959  CFLAGS="$CFLAGS -belf"
12960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12961$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12962if ${lt_cv_cc_needs_belf+:} false; then :
12963  $as_echo_n "(cached) " >&6
12964else
12965  ac_ext=c
12966ac_cpp='$CPP $CPPFLAGS'
12967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969ac_compiler_gnu=$ac_cv_c_compiler_gnu
12970
12971     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972/* end confdefs.h.  */
12973
12974int
12975main ()
12976{
12977
12978  ;
12979  return 0;
12980}
12981_ACEOF
12982if ac_fn_c_try_link "$LINENO"; then :
12983  lt_cv_cc_needs_belf=yes
12984else
12985  lt_cv_cc_needs_belf=no
12986fi
12987rm -f core conftest.err conftest.$ac_objext \
12988    conftest$ac_exeext conftest.$ac_ext
12989     ac_ext=c
12990ac_cpp='$CPP $CPPFLAGS'
12991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12993ac_compiler_gnu=$ac_cv_c_compiler_gnu
12994
12995fi
12996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12997$as_echo "$lt_cv_cc_needs_belf" >&6; }
12998  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12999    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13000    CFLAGS="$SAVE_CFLAGS"
13001  fi
13002  ;;
13003*-*solaris*)
13004  # Find out which ABI we are using.
13005  echo 'int i;' > conftest.$ac_ext
13006  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13007  (eval $ac_compile) 2>&5
13008  ac_status=$?
13009  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13010  test $ac_status = 0; }; then
13011    case `/usr/bin/file conftest.o` in
13012    *64-bit*)
13013      case $lt_cv_prog_gnu_ld in
13014      yes*)
13015        case $host in
13016        i?86-*-solaris*)
13017          LD="${LD-ld} -m elf_x86_64"
13018          ;;
13019        sparc*-*-solaris*)
13020          LD="${LD-ld} -m elf64_sparc"
13021          ;;
13022        esac
13023        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13024        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13025          LD="${LD-ld}_sol2"
13026        fi
13027        ;;
13028      *)
13029	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13030	  LD="${LD-ld} -64"
13031	fi
13032	;;
13033      esac
13034      ;;
13035    esac
13036  fi
13037  rm -rf conftest*
13038  ;;
13039esac
13040
13041need_locks="$enable_libtool_lock"
13042
13043if test -n "$ac_tool_prefix"; then
13044  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13045set dummy ${ac_tool_prefix}mt; ac_word=$2
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047$as_echo_n "checking for $ac_word... " >&6; }
13048if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13049  $as_echo_n "(cached) " >&6
13050else
13051  if test -n "$MANIFEST_TOOL"; then
13052  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13053else
13054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055for as_dir in $PATH
13056do
13057  IFS=$as_save_IFS
13058  test -z "$as_dir" && as_dir=.
13059    for ac_exec_ext in '' $ac_executable_extensions; do
13060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063    break 2
13064  fi
13065done
13066  done
13067IFS=$as_save_IFS
13068
13069fi
13070fi
13071MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13072if test -n "$MANIFEST_TOOL"; then
13073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13074$as_echo "$MANIFEST_TOOL" >&6; }
13075else
13076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077$as_echo "no" >&6; }
13078fi
13079
13080
13081fi
13082if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13083  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13084  # Extract the first word of "mt", so it can be a program name with args.
13085set dummy mt; ac_word=$2
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087$as_echo_n "checking for $ac_word... " >&6; }
13088if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13089  $as_echo_n "(cached) " >&6
13090else
13091  if test -n "$ac_ct_MANIFEST_TOOL"; then
13092  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13093else
13094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095for as_dir in $PATH
13096do
13097  IFS=$as_save_IFS
13098  test -z "$as_dir" && as_dir=.
13099    for ac_exec_ext in '' $ac_executable_extensions; do
13100  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103    break 2
13104  fi
13105done
13106  done
13107IFS=$as_save_IFS
13108
13109fi
13110fi
13111ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13112if test -n "$ac_ct_MANIFEST_TOOL"; then
13113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13114$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13115else
13116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117$as_echo "no" >&6; }
13118fi
13119
13120  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13121    MANIFEST_TOOL=":"
13122  else
13123    case $cross_compiling:$ac_tool_warned in
13124yes:)
13125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13127ac_tool_warned=yes ;;
13128esac
13129    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13130  fi
13131else
13132  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13133fi
13134
13135test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13137$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13138if ${lt_cv_path_mainfest_tool+:} false; then :
13139  $as_echo_n "(cached) " >&6
13140else
13141  lt_cv_path_mainfest_tool=no
13142  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13143  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13144  cat conftest.err >&5
13145  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13146    lt_cv_path_mainfest_tool=yes
13147  fi
13148  rm -f conftest*
13149fi
13150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13151$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13152if test "x$lt_cv_path_mainfest_tool" != xyes; then
13153  MANIFEST_TOOL=:
13154fi
13155
13156
13157
13158
13159
13160
13161  case $host_os in
13162    rhapsody* | darwin*)
13163    if test -n "$ac_tool_prefix"; then
13164  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13165set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167$as_echo_n "checking for $ac_word... " >&6; }
13168if ${ac_cv_prog_DSYMUTIL+:} false; then :
13169  $as_echo_n "(cached) " >&6
13170else
13171  if test -n "$DSYMUTIL"; then
13172  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13173else
13174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175for as_dir in $PATH
13176do
13177  IFS=$as_save_IFS
13178  test -z "$as_dir" && as_dir=.
13179    for ac_exec_ext in '' $ac_executable_extensions; do
13180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13181    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13182    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183    break 2
13184  fi
13185done
13186  done
13187IFS=$as_save_IFS
13188
13189fi
13190fi
13191DSYMUTIL=$ac_cv_prog_DSYMUTIL
13192if test -n "$DSYMUTIL"; then
13193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13194$as_echo "$DSYMUTIL" >&6; }
13195else
13196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197$as_echo "no" >&6; }
13198fi
13199
13200
13201fi
13202if test -z "$ac_cv_prog_DSYMUTIL"; then
13203  ac_ct_DSYMUTIL=$DSYMUTIL
13204  # Extract the first word of "dsymutil", so it can be a program name with args.
13205set dummy dsymutil; ac_word=$2
13206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13207$as_echo_n "checking for $ac_word... " >&6; }
13208if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13209  $as_echo_n "(cached) " >&6
13210else
13211  if test -n "$ac_ct_DSYMUTIL"; then
13212  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13213else
13214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215for as_dir in $PATH
13216do
13217  IFS=$as_save_IFS
13218  test -z "$as_dir" && as_dir=.
13219    for ac_exec_ext in '' $ac_executable_extensions; do
13220  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13221    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223    break 2
13224  fi
13225done
13226  done
13227IFS=$as_save_IFS
13228
13229fi
13230fi
13231ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13232if test -n "$ac_ct_DSYMUTIL"; then
13233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13234$as_echo "$ac_ct_DSYMUTIL" >&6; }
13235else
13236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237$as_echo "no" >&6; }
13238fi
13239
13240  if test "x$ac_ct_DSYMUTIL" = x; then
13241    DSYMUTIL=":"
13242  else
13243    case $cross_compiling:$ac_tool_warned in
13244yes:)
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13247ac_tool_warned=yes ;;
13248esac
13249    DSYMUTIL=$ac_ct_DSYMUTIL
13250  fi
13251else
13252  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13253fi
13254
13255    if test -n "$ac_tool_prefix"; then
13256  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13257set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259$as_echo_n "checking for $ac_word... " >&6; }
13260if ${ac_cv_prog_NMEDIT+:} false; then :
13261  $as_echo_n "(cached) " >&6
13262else
13263  if test -n "$NMEDIT"; then
13264  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13265else
13266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267for as_dir in $PATH
13268do
13269  IFS=$as_save_IFS
13270  test -z "$as_dir" && as_dir=.
13271    for ac_exec_ext in '' $ac_executable_extensions; do
13272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13273    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275    break 2
13276  fi
13277done
13278  done
13279IFS=$as_save_IFS
13280
13281fi
13282fi
13283NMEDIT=$ac_cv_prog_NMEDIT
13284if test -n "$NMEDIT"; then
13285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13286$as_echo "$NMEDIT" >&6; }
13287else
13288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289$as_echo "no" >&6; }
13290fi
13291
13292
13293fi
13294if test -z "$ac_cv_prog_NMEDIT"; then
13295  ac_ct_NMEDIT=$NMEDIT
13296  # Extract the first word of "nmedit", so it can be a program name with args.
13297set dummy nmedit; ac_word=$2
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299$as_echo_n "checking for $ac_word... " >&6; }
13300if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  if test -n "$ac_ct_NMEDIT"; then
13304  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13305else
13306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307for as_dir in $PATH
13308do
13309  IFS=$as_save_IFS
13310  test -z "$as_dir" && as_dir=.
13311    for ac_exec_ext in '' $ac_executable_extensions; do
13312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13313    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13315    break 2
13316  fi
13317done
13318  done
13319IFS=$as_save_IFS
13320
13321fi
13322fi
13323ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13324if test -n "$ac_ct_NMEDIT"; then
13325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13326$as_echo "$ac_ct_NMEDIT" >&6; }
13327else
13328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329$as_echo "no" >&6; }
13330fi
13331
13332  if test "x$ac_ct_NMEDIT" = x; then
13333    NMEDIT=":"
13334  else
13335    case $cross_compiling:$ac_tool_warned in
13336yes:)
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13339ac_tool_warned=yes ;;
13340esac
13341    NMEDIT=$ac_ct_NMEDIT
13342  fi
13343else
13344  NMEDIT="$ac_cv_prog_NMEDIT"
13345fi
13346
13347    if test -n "$ac_tool_prefix"; then
13348  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13349set dummy ${ac_tool_prefix}lipo; ac_word=$2
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351$as_echo_n "checking for $ac_word... " >&6; }
13352if ${ac_cv_prog_LIPO+:} false; then :
13353  $as_echo_n "(cached) " >&6
13354else
13355  if test -n "$LIPO"; then
13356  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13357else
13358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359for as_dir in $PATH
13360do
13361  IFS=$as_save_IFS
13362  test -z "$as_dir" && as_dir=.
13363    for ac_exec_ext in '' $ac_executable_extensions; do
13364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367    break 2
13368  fi
13369done
13370  done
13371IFS=$as_save_IFS
13372
13373fi
13374fi
13375LIPO=$ac_cv_prog_LIPO
13376if test -n "$LIPO"; then
13377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13378$as_echo "$LIPO" >&6; }
13379else
13380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
13382fi
13383
13384
13385fi
13386if test -z "$ac_cv_prog_LIPO"; then
13387  ac_ct_LIPO=$LIPO
13388  # Extract the first word of "lipo", so it can be a program name with args.
13389set dummy lipo; ac_word=$2
13390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391$as_echo_n "checking for $ac_word... " >&6; }
13392if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13393  $as_echo_n "(cached) " >&6
13394else
13395  if test -n "$ac_ct_LIPO"; then
13396  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13397else
13398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399for as_dir in $PATH
13400do
13401  IFS=$as_save_IFS
13402  test -z "$as_dir" && as_dir=.
13403    for ac_exec_ext in '' $ac_executable_extensions; do
13404  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13405    ac_cv_prog_ac_ct_LIPO="lipo"
13406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407    break 2
13408  fi
13409done
13410  done
13411IFS=$as_save_IFS
13412
13413fi
13414fi
13415ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13416if test -n "$ac_ct_LIPO"; then
13417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13418$as_echo "$ac_ct_LIPO" >&6; }
13419else
13420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421$as_echo "no" >&6; }
13422fi
13423
13424  if test "x$ac_ct_LIPO" = x; then
13425    LIPO=":"
13426  else
13427    case $cross_compiling:$ac_tool_warned in
13428yes:)
13429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13431ac_tool_warned=yes ;;
13432esac
13433    LIPO=$ac_ct_LIPO
13434  fi
13435else
13436  LIPO="$ac_cv_prog_LIPO"
13437fi
13438
13439    if test -n "$ac_tool_prefix"; then
13440  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13441set dummy ${ac_tool_prefix}otool; ac_word=$2
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13443$as_echo_n "checking for $ac_word... " >&6; }
13444if ${ac_cv_prog_OTOOL+:} false; then :
13445  $as_echo_n "(cached) " >&6
13446else
13447  if test -n "$OTOOL"; then
13448  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13449else
13450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13451for as_dir in $PATH
13452do
13453  IFS=$as_save_IFS
13454  test -z "$as_dir" && as_dir=.
13455    for ac_exec_ext in '' $ac_executable_extensions; do
13456  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13457    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13459    break 2
13460  fi
13461done
13462  done
13463IFS=$as_save_IFS
13464
13465fi
13466fi
13467OTOOL=$ac_cv_prog_OTOOL
13468if test -n "$OTOOL"; then
13469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13470$as_echo "$OTOOL" >&6; }
13471else
13472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473$as_echo "no" >&6; }
13474fi
13475
13476
13477fi
13478if test -z "$ac_cv_prog_OTOOL"; then
13479  ac_ct_OTOOL=$OTOOL
13480  # Extract the first word of "otool", so it can be a program name with args.
13481set dummy otool; ac_word=$2
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13483$as_echo_n "checking for $ac_word... " >&6; }
13484if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13485  $as_echo_n "(cached) " >&6
13486else
13487  if test -n "$ac_ct_OTOOL"; then
13488  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13489else
13490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491for as_dir in $PATH
13492do
13493  IFS=$as_save_IFS
13494  test -z "$as_dir" && as_dir=.
13495    for ac_exec_ext in '' $ac_executable_extensions; do
13496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13497    ac_cv_prog_ac_ct_OTOOL="otool"
13498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499    break 2
13500  fi
13501done
13502  done
13503IFS=$as_save_IFS
13504
13505fi
13506fi
13507ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13508if test -n "$ac_ct_OTOOL"; then
13509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13510$as_echo "$ac_ct_OTOOL" >&6; }
13511else
13512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513$as_echo "no" >&6; }
13514fi
13515
13516  if test "x$ac_ct_OTOOL" = x; then
13517    OTOOL=":"
13518  else
13519    case $cross_compiling:$ac_tool_warned in
13520yes:)
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13523ac_tool_warned=yes ;;
13524esac
13525    OTOOL=$ac_ct_OTOOL
13526  fi
13527else
13528  OTOOL="$ac_cv_prog_OTOOL"
13529fi
13530
13531    if test -n "$ac_tool_prefix"; then
13532  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13533set dummy ${ac_tool_prefix}otool64; ac_word=$2
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535$as_echo_n "checking for $ac_word... " >&6; }
13536if ${ac_cv_prog_OTOOL64+:} false; then :
13537  $as_echo_n "(cached) " >&6
13538else
13539  if test -n "$OTOOL64"; then
13540  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13541else
13542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543for as_dir in $PATH
13544do
13545  IFS=$as_save_IFS
13546  test -z "$as_dir" && as_dir=.
13547    for ac_exec_ext in '' $ac_executable_extensions; do
13548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13549    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551    break 2
13552  fi
13553done
13554  done
13555IFS=$as_save_IFS
13556
13557fi
13558fi
13559OTOOL64=$ac_cv_prog_OTOOL64
13560if test -n "$OTOOL64"; then
13561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13562$as_echo "$OTOOL64" >&6; }
13563else
13564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565$as_echo "no" >&6; }
13566fi
13567
13568
13569fi
13570if test -z "$ac_cv_prog_OTOOL64"; then
13571  ac_ct_OTOOL64=$OTOOL64
13572  # Extract the first word of "otool64", so it can be a program name with args.
13573set dummy otool64; ac_word=$2
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575$as_echo_n "checking for $ac_word... " >&6; }
13576if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13577  $as_echo_n "(cached) " >&6
13578else
13579  if test -n "$ac_ct_OTOOL64"; then
13580  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13581else
13582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583for as_dir in $PATH
13584do
13585  IFS=$as_save_IFS
13586  test -z "$as_dir" && as_dir=.
13587    for ac_exec_ext in '' $ac_executable_extensions; do
13588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13589    ac_cv_prog_ac_ct_OTOOL64="otool64"
13590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591    break 2
13592  fi
13593done
13594  done
13595IFS=$as_save_IFS
13596
13597fi
13598fi
13599ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13600if test -n "$ac_ct_OTOOL64"; then
13601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13602$as_echo "$ac_ct_OTOOL64" >&6; }
13603else
13604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605$as_echo "no" >&6; }
13606fi
13607
13608  if test "x$ac_ct_OTOOL64" = x; then
13609    OTOOL64=":"
13610  else
13611    case $cross_compiling:$ac_tool_warned in
13612yes:)
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13615ac_tool_warned=yes ;;
13616esac
13617    OTOOL64=$ac_ct_OTOOL64
13618  fi
13619else
13620  OTOOL64="$ac_cv_prog_OTOOL64"
13621fi
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13650$as_echo_n "checking for -single_module linker flag... " >&6; }
13651if ${lt_cv_apple_cc_single_mod+:} false; then :
13652  $as_echo_n "(cached) " >&6
13653else
13654  lt_cv_apple_cc_single_mod=no
13655      if test -z "${LT_MULTI_MODULE}"; then
13656	# By default we will add the -single_module flag. You can override
13657	# by either setting the environment variable LT_MULTI_MODULE
13658	# non-empty at configure time, or by adding -multi_module to the
13659	# link flags.
13660	rm -rf libconftest.dylib*
13661	echo "int foo(void){return 1;}" > conftest.c
13662	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13663-dynamiclib -Wl,-single_module conftest.c" >&5
13664	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13665	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13666        _lt_result=$?
13667	# If there is a non-empty error log, and "single_module"
13668	# appears in it, assume the flag caused a linker warning
13669        if test -s conftest.err && $GREP single_module conftest.err; then
13670	  cat conftest.err >&5
13671	# Otherwise, if the output was created with a 0 exit code from
13672	# the compiler, it worked.
13673	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13674	  lt_cv_apple_cc_single_mod=yes
13675	else
13676	  cat conftest.err >&5
13677	fi
13678	rm -rf libconftest.dylib*
13679	rm -f conftest.*
13680      fi
13681fi
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13683$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13684
13685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13686$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13687if ${lt_cv_ld_exported_symbols_list+:} false; then :
13688  $as_echo_n "(cached) " >&6
13689else
13690  lt_cv_ld_exported_symbols_list=no
13691      save_LDFLAGS=$LDFLAGS
13692      echo "_main" > conftest.sym
13693      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13694      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695/* end confdefs.h.  */
13696
13697int
13698main ()
13699{
13700
13701  ;
13702  return 0;
13703}
13704_ACEOF
13705if ac_fn_c_try_link "$LINENO"; then :
13706  lt_cv_ld_exported_symbols_list=yes
13707else
13708  lt_cv_ld_exported_symbols_list=no
13709fi
13710rm -f core conftest.err conftest.$ac_objext \
13711    conftest$ac_exeext conftest.$ac_ext
13712	LDFLAGS="$save_LDFLAGS"
13713
13714fi
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13716$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13717
13718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13719$as_echo_n "checking for -force_load linker flag... " >&6; }
13720if ${lt_cv_ld_force_load+:} false; then :
13721  $as_echo_n "(cached) " >&6
13722else
13723  lt_cv_ld_force_load=no
13724      cat > conftest.c << _LT_EOF
13725int forced_loaded() { return 2;}
13726_LT_EOF
13727      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13728      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13729      echo "$AR cru libconftest.a conftest.o" >&5
13730      $AR cru libconftest.a conftest.o 2>&5
13731      echo "$RANLIB libconftest.a" >&5
13732      $RANLIB libconftest.a 2>&5
13733      cat > conftest.c << _LT_EOF
13734int main() { return 0;}
13735_LT_EOF
13736      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13737      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13738      _lt_result=$?
13739      if test -s conftest.err && $GREP force_load conftest.err; then
13740	cat conftest.err >&5
13741      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13742	lt_cv_ld_force_load=yes
13743      else
13744	cat conftest.err >&5
13745      fi
13746        rm -f conftest.err libconftest.a conftest conftest.c
13747        rm -rf conftest.dSYM
13748
13749fi
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13751$as_echo "$lt_cv_ld_force_load" >&6; }
13752    case $host_os in
13753    rhapsody* | darwin1.[012])
13754      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13755    darwin1.*)
13756      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13757    darwin*) # darwin 5.x on
13758      # if running on 10.5 or later, the deployment target defaults
13759      # to the OS version, if on x86, and 10.4, the deployment
13760      # target defaults to 10.4. Don't you love it?
13761      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13762	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13763	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13764	10.[012]*)
13765	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13766	10.*)
13767	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13768      esac
13769    ;;
13770  esac
13771    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13772      _lt_dar_single_mod='$single_module'
13773    fi
13774    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13775      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13776    else
13777      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13778    fi
13779    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13780      _lt_dsymutil='~$DSYMUTIL $lib || :'
13781    else
13782      _lt_dsymutil=
13783    fi
13784    ;;
13785  esac
13786
13787for ac_header in dlfcn.h
13788do :
13789  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13790"
13791if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13792  cat >>confdefs.h <<_ACEOF
13793#define HAVE_DLFCN_H 1
13794_ACEOF
13795
13796fi
13797
13798done
13799
13800
13801
13802
13803
13804# Set options
13805
13806
13807
13808        enable_dlopen=no
13809
13810
13811  enable_win32_dll=no
13812
13813
13814            # Check whether --enable-shared was given.
13815if test "${enable_shared+set}" = set; then :
13816  enableval=$enable_shared; p=${PACKAGE-default}
13817    case $enableval in
13818    yes) enable_shared=yes ;;
13819    no) enable_shared=no ;;
13820    *)
13821      enable_shared=no
13822      # Look at the argument we got.  We use all the common list separators.
13823      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13824      for pkg in $enableval; do
13825	IFS="$lt_save_ifs"
13826	if test "X$pkg" = "X$p"; then
13827	  enable_shared=yes
13828	fi
13829      done
13830      IFS="$lt_save_ifs"
13831      ;;
13832    esac
13833else
13834  enable_shared=yes
13835fi
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847# Check whether --with-pic was given.
13848if test "${with_pic+set}" = set; then :
13849  withval=$with_pic; lt_p=${PACKAGE-default}
13850    case $withval in
13851    yes|no) pic_mode=$withval ;;
13852    *)
13853      pic_mode=default
13854      # Look at the argument we got.  We use all the common list separators.
13855      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13856      for lt_pkg in $withval; do
13857	IFS="$lt_save_ifs"
13858	if test "X$lt_pkg" = "X$lt_p"; then
13859	  pic_mode=yes
13860	fi
13861      done
13862      IFS="$lt_save_ifs"
13863      ;;
13864    esac
13865else
13866  pic_mode=default
13867fi
13868
13869
13870test -z "$pic_mode" && pic_mode=default
13871
13872
13873
13874
13875
13876
13877
13878  # Check whether --enable-fast-install was given.
13879if test "${enable_fast_install+set}" = set; then :
13880  enableval=$enable_fast_install; p=${PACKAGE-default}
13881    case $enableval in
13882    yes) enable_fast_install=yes ;;
13883    no) enable_fast_install=no ;;
13884    *)
13885      enable_fast_install=no
13886      # Look at the argument we got.  We use all the common list separators.
13887      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13888      for pkg in $enableval; do
13889	IFS="$lt_save_ifs"
13890	if test "X$pkg" = "X$p"; then
13891	  enable_fast_install=yes
13892	fi
13893      done
13894      IFS="$lt_save_ifs"
13895      ;;
13896    esac
13897else
13898  enable_fast_install=yes
13899fi
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911# This can be used to rebuild libtool when needed
13912LIBTOOL_DEPS="$ltmain"
13913
13914# Always use our own libtool.
13915LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946test -z "$LN_S" && LN_S="ln -s"
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961if test -n "${ZSH_VERSION+set}" ; then
13962   setopt NO_GLOB_SUBST
13963fi
13964
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13966$as_echo_n "checking for objdir... " >&6; }
13967if ${lt_cv_objdir+:} false; then :
13968  $as_echo_n "(cached) " >&6
13969else
13970  rm -f .libs 2>/dev/null
13971mkdir .libs 2>/dev/null
13972if test -d .libs; then
13973  lt_cv_objdir=.libs
13974else
13975  # MS-DOS does not allow filenames that begin with a dot.
13976  lt_cv_objdir=_libs
13977fi
13978rmdir .libs 2>/dev/null
13979fi
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13981$as_echo "$lt_cv_objdir" >&6; }
13982objdir=$lt_cv_objdir
13983
13984
13985
13986
13987
13988cat >>confdefs.h <<_ACEOF
13989#define LT_OBJDIR "$lt_cv_objdir/"
13990_ACEOF
13991
13992
13993
13994
13995case $host_os in
13996aix3*)
13997  # AIX sometimes has problems with the GCC collect2 program.  For some
13998  # reason, if we set the COLLECT_NAMES environment variable, the problems
13999  # vanish in a puff of smoke.
14000  if test "X${COLLECT_NAMES+set}" != Xset; then
14001    COLLECT_NAMES=
14002    export COLLECT_NAMES
14003  fi
14004  ;;
14005esac
14006
14007# Global variables:
14008ofile=libtool
14009can_build_shared=yes
14010
14011# All known linkers require a `.a' archive for static linking (except MSVC,
14012# which needs '.lib').
14013libext=a
14014
14015with_gnu_ld="$lt_cv_prog_gnu_ld"
14016
14017old_CC="$CC"
14018old_CFLAGS="$CFLAGS"
14019
14020# Set sane defaults for various variables
14021test -z "$CC" && CC=cc
14022test -z "$LTCC" && LTCC=$CC
14023test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14024test -z "$LD" && LD=ld
14025test -z "$ac_objext" && ac_objext=o
14026
14027for cc_temp in $compiler""; do
14028  case $cc_temp in
14029    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14030    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14031    \-*) ;;
14032    *) break;;
14033  esac
14034done
14035cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14036
14037
14038# Only perform the check for file, if the check method requires it
14039test -z "$MAGIC_CMD" && MAGIC_CMD=file
14040case $deplibs_check_method in
14041file_magic*)
14042  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14043    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14044$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14045if ${lt_cv_path_MAGIC_CMD+:} false; then :
14046  $as_echo_n "(cached) " >&6
14047else
14048  case $MAGIC_CMD in
14049[\\/*] |  ?:[\\/]*)
14050  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14051  ;;
14052*)
14053  lt_save_MAGIC_CMD="$MAGIC_CMD"
14054  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14055  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14056  for ac_dir in $ac_dummy; do
14057    IFS="$lt_save_ifs"
14058    test -z "$ac_dir" && ac_dir=.
14059    if test -f $ac_dir/${ac_tool_prefix}file; then
14060      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14061      if test -n "$file_magic_test_file"; then
14062	case $deplibs_check_method in
14063	"file_magic "*)
14064	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14065	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14066	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14067	    $EGREP "$file_magic_regex" > /dev/null; then
14068	    :
14069	  else
14070	    cat <<_LT_EOF 1>&2
14071
14072*** Warning: the command libtool uses to detect shared libraries,
14073*** $file_magic_cmd, produces output that libtool cannot recognize.
14074*** The result is that libtool may fail to recognize shared libraries
14075*** as such.  This will affect the creation of libtool libraries that
14076*** depend on shared libraries, but programs linked with such libtool
14077*** libraries will work regardless of this problem.  Nevertheless, you
14078*** may want to report the problem to your system manager and/or to
14079*** bug-libtool@gnu.org
14080
14081_LT_EOF
14082	  fi ;;
14083	esac
14084      fi
14085      break
14086    fi
14087  done
14088  IFS="$lt_save_ifs"
14089  MAGIC_CMD="$lt_save_MAGIC_CMD"
14090  ;;
14091esac
14092fi
14093
14094MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14095if test -n "$MAGIC_CMD"; then
14096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14097$as_echo "$MAGIC_CMD" >&6; }
14098else
14099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100$as_echo "no" >&6; }
14101fi
14102
14103
14104
14105
14106
14107if test -z "$lt_cv_path_MAGIC_CMD"; then
14108  if test -n "$ac_tool_prefix"; then
14109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14110$as_echo_n "checking for file... " >&6; }
14111if ${lt_cv_path_MAGIC_CMD+:} false; then :
14112  $as_echo_n "(cached) " >&6
14113else
14114  case $MAGIC_CMD in
14115[\\/*] |  ?:[\\/]*)
14116  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14117  ;;
14118*)
14119  lt_save_MAGIC_CMD="$MAGIC_CMD"
14120  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14121  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14122  for ac_dir in $ac_dummy; do
14123    IFS="$lt_save_ifs"
14124    test -z "$ac_dir" && ac_dir=.
14125    if test -f $ac_dir/file; then
14126      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14127      if test -n "$file_magic_test_file"; then
14128	case $deplibs_check_method in
14129	"file_magic "*)
14130	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14131	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14132	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14133	    $EGREP "$file_magic_regex" > /dev/null; then
14134	    :
14135	  else
14136	    cat <<_LT_EOF 1>&2
14137
14138*** Warning: the command libtool uses to detect shared libraries,
14139*** $file_magic_cmd, produces output that libtool cannot recognize.
14140*** The result is that libtool may fail to recognize shared libraries
14141*** as such.  This will affect the creation of libtool libraries that
14142*** depend on shared libraries, but programs linked with such libtool
14143*** libraries will work regardless of this problem.  Nevertheless, you
14144*** may want to report the problem to your system manager and/or to
14145*** bug-libtool@gnu.org
14146
14147_LT_EOF
14148	  fi ;;
14149	esac
14150      fi
14151      break
14152    fi
14153  done
14154  IFS="$lt_save_ifs"
14155  MAGIC_CMD="$lt_save_MAGIC_CMD"
14156  ;;
14157esac
14158fi
14159
14160MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14161if test -n "$MAGIC_CMD"; then
14162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14163$as_echo "$MAGIC_CMD" >&6; }
14164else
14165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166$as_echo "no" >&6; }
14167fi
14168
14169
14170  else
14171    MAGIC_CMD=:
14172  fi
14173fi
14174
14175  fi
14176  ;;
14177esac
14178
14179# Use C for the default configuration in the libtool script
14180
14181lt_save_CC="$CC"
14182ac_ext=c
14183ac_cpp='$CPP $CPPFLAGS'
14184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14186ac_compiler_gnu=$ac_cv_c_compiler_gnu
14187
14188
14189# Source file extension for C test sources.
14190ac_ext=c
14191
14192# Object file extension for compiled C test sources.
14193objext=o
14194objext=$objext
14195
14196# Code to be used in simple compile tests
14197lt_simple_compile_test_code="int some_variable = 0;"
14198
14199# Code to be used in simple link tests
14200lt_simple_link_test_code='int main(){return(0);}'
14201
14202
14203
14204
14205
14206
14207
14208# If no C compiler was specified, use CC.
14209LTCC=${LTCC-"$CC"}
14210
14211# If no C compiler flags were specified, use CFLAGS.
14212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14213
14214# Allow CC to be a program name with arguments.
14215compiler=$CC
14216
14217# Save the default compiler, since it gets overwritten when the other
14218# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14219compiler_DEFAULT=$CC
14220
14221# save warnings/boilerplate of simple test code
14222ac_outfile=conftest.$ac_objext
14223echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14224eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14225_lt_compiler_boilerplate=`cat conftest.err`
14226$RM conftest*
14227
14228ac_outfile=conftest.$ac_objext
14229echo "$lt_simple_link_test_code" >conftest.$ac_ext
14230eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14231_lt_linker_boilerplate=`cat conftest.err`
14232$RM -r conftest*
14233
14234
14235if test -n "$compiler"; then
14236
14237lt_prog_compiler_no_builtin_flag=
14238
14239if test "$GCC" = yes; then
14240  case $cc_basename in
14241  nvcc*)
14242    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14243  *)
14244    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14245  esac
14246
14247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14248$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14249if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14250  $as_echo_n "(cached) " >&6
14251else
14252  lt_cv_prog_compiler_rtti_exceptions=no
14253   ac_outfile=conftest.$ac_objext
14254   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14255   lt_compiler_flag="-fno-rtti -fno-exceptions"
14256   # Insert the option either (1) after the last *FLAGS variable, or
14257   # (2) before a word containing "conftest.", or (3) at the end.
14258   # Note that $ac_compile itself does not contain backslashes and begins
14259   # with a dollar sign (not a hyphen), so the echo should work correctly.
14260   # The option is referenced via a variable to avoid confusing sed.
14261   lt_compile=`echo "$ac_compile" | $SED \
14262   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14263   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14264   -e 's:$: $lt_compiler_flag:'`
14265   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14266   (eval "$lt_compile" 2>conftest.err)
14267   ac_status=$?
14268   cat conftest.err >&5
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   if (exit $ac_status) && test -s "$ac_outfile"; then
14271     # The compiler can only warn and ignore the option if not recognized
14272     # So say no if there are warnings other than the usual output.
14273     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14274     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14275     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14276       lt_cv_prog_compiler_rtti_exceptions=yes
14277     fi
14278   fi
14279   $RM conftest*
14280
14281fi
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14283$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14284
14285if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14286    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14287else
14288    :
14289fi
14290
14291fi
14292
14293
14294
14295
14296
14297
14298  lt_prog_compiler_wl=
14299lt_prog_compiler_pic=
14300lt_prog_compiler_static=
14301
14302
14303  if test "$GCC" = yes; then
14304    lt_prog_compiler_wl='-Wl,'
14305    lt_prog_compiler_static='-static'
14306
14307    case $host_os in
14308      aix*)
14309      # All AIX code is PIC.
14310      if test "$host_cpu" = ia64; then
14311	# AIX 5 now supports IA64 processor
14312	lt_prog_compiler_static='-Bstatic'
14313      fi
14314      ;;
14315
14316    amigaos*)
14317      case $host_cpu in
14318      powerpc)
14319            # see comment about AmigaOS4 .so support
14320            lt_prog_compiler_pic='-fPIC'
14321        ;;
14322      m68k)
14323            # FIXME: we need at least 68020 code to build shared libraries, but
14324            # adding the `-m68020' flag to GCC prevents building anything better,
14325            # like `-m68040'.
14326            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14327        ;;
14328      esac
14329      ;;
14330
14331    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14332      # PIC is the default for these OSes.
14333      ;;
14334
14335    mingw* | cygwin* | pw32* | os2* | cegcc*)
14336      # This hack is so that the source file can tell whether it is being
14337      # built for inclusion in a dll (and should export symbols for example).
14338      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14339      # (--disable-auto-import) libraries
14340      lt_prog_compiler_pic='-DDLL_EXPORT'
14341      ;;
14342
14343    darwin* | rhapsody*)
14344      # PIC is the default on this platform
14345      # Common symbols not allowed in MH_DYLIB files
14346      lt_prog_compiler_pic='-fno-common'
14347      ;;
14348
14349    haiku*)
14350      # PIC is the default for Haiku.
14351      # The "-static" flag exists, but is broken.
14352      lt_prog_compiler_static=
14353      ;;
14354
14355    hpux*)
14356      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14357      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14358      # sets the default TLS model and affects inlining.
14359      case $host_cpu in
14360      hppa*64*)
14361	# +Z the default
14362	;;
14363      *)
14364	lt_prog_compiler_pic='-fPIC'
14365	;;
14366      esac
14367      ;;
14368
14369    interix[3-9]*)
14370      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14371      # Instead, we relocate shared libraries at runtime.
14372      ;;
14373
14374    msdosdjgpp*)
14375      # Just because we use GCC doesn't mean we suddenly get shared libraries
14376      # on systems that don't support them.
14377      lt_prog_compiler_can_build_shared=no
14378      enable_shared=no
14379      ;;
14380
14381    *nto* | *qnx*)
14382      # QNX uses GNU C++, but need to define -shared option too, otherwise
14383      # it will coredump.
14384      lt_prog_compiler_pic='-fPIC -shared'
14385      ;;
14386
14387    sysv4*MP*)
14388      if test -d /usr/nec; then
14389	lt_prog_compiler_pic=-Kconform_pic
14390      fi
14391      ;;
14392
14393    *)
14394      lt_prog_compiler_pic='-fPIC'
14395      ;;
14396    esac
14397
14398    case $cc_basename in
14399    nvcc*) # Cuda Compiler Driver 2.2
14400      lt_prog_compiler_wl='-Xlinker '
14401      if test -n "$lt_prog_compiler_pic"; then
14402        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14403      fi
14404      ;;
14405    esac
14406  else
14407    # PORTME Check for flag to pass linker flags through the system compiler.
14408    case $host_os in
14409    aix*)
14410      lt_prog_compiler_wl='-Wl,'
14411      if test "$host_cpu" = ia64; then
14412	# AIX 5 now supports IA64 processor
14413	lt_prog_compiler_static='-Bstatic'
14414      else
14415	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14416      fi
14417      ;;
14418
14419    mingw* | cygwin* | pw32* | os2* | cegcc*)
14420      # This hack is so that the source file can tell whether it is being
14421      # built for inclusion in a dll (and should export symbols for example).
14422      lt_prog_compiler_pic='-DDLL_EXPORT'
14423      ;;
14424
14425    hpux9* | hpux10* | hpux11*)
14426      lt_prog_compiler_wl='-Wl,'
14427      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14428      # not for PA HP-UX.
14429      case $host_cpu in
14430      hppa*64*|ia64*)
14431	# +Z the default
14432	;;
14433      *)
14434	lt_prog_compiler_pic='+Z'
14435	;;
14436      esac
14437      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14438      lt_prog_compiler_static='${wl}-a ${wl}archive'
14439      ;;
14440
14441    irix5* | irix6* | nonstopux*)
14442      lt_prog_compiler_wl='-Wl,'
14443      # PIC (with -KPIC) is the default.
14444      lt_prog_compiler_static='-non_shared'
14445      ;;
14446
14447    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14448      case $cc_basename in
14449      # old Intel for x86_64 which still supported -KPIC.
14450      ecc*)
14451	lt_prog_compiler_wl='-Wl,'
14452	lt_prog_compiler_pic='-KPIC'
14453	lt_prog_compiler_static='-static'
14454        ;;
14455      # icc used to be incompatible with GCC.
14456      # ICC 10 doesn't accept -KPIC any more.
14457      icc* | ifort*)
14458	lt_prog_compiler_wl='-Wl,'
14459	lt_prog_compiler_pic='-fPIC'
14460	lt_prog_compiler_static='-static'
14461        ;;
14462      # Lahey Fortran 8.1.
14463      lf95*)
14464	lt_prog_compiler_wl='-Wl,'
14465	lt_prog_compiler_pic='--shared'
14466	lt_prog_compiler_static='--static'
14467	;;
14468      nagfor*)
14469	# NAG Fortran compiler
14470	lt_prog_compiler_wl='-Wl,-Wl,,'
14471	lt_prog_compiler_pic='-PIC'
14472	lt_prog_compiler_static='-Bstatic'
14473	;;
14474      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14475        # Portland Group compilers (*not* the Pentium gcc compiler,
14476	# which looks to be a dead project)
14477	lt_prog_compiler_wl='-Wl,'
14478	lt_prog_compiler_pic='-fpic'
14479	lt_prog_compiler_static='-Bstatic'
14480        ;;
14481      ccc*)
14482        lt_prog_compiler_wl='-Wl,'
14483        # All Alpha code is PIC.
14484        lt_prog_compiler_static='-non_shared'
14485        ;;
14486      xl* | bgxl* | bgf* | mpixl*)
14487	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14488	lt_prog_compiler_wl='-Wl,'
14489	lt_prog_compiler_pic='-qpic'
14490	lt_prog_compiler_static='-qstaticlink'
14491	;;
14492      *)
14493	case `$CC -V 2>&1 | sed 5q` in
14494	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14495	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14496	  lt_prog_compiler_pic='-KPIC'
14497	  lt_prog_compiler_static='-Bstatic'
14498	  lt_prog_compiler_wl=''
14499	  ;;
14500	*Sun\ F* | *Sun*Fortran*)
14501	  lt_prog_compiler_pic='-KPIC'
14502	  lt_prog_compiler_static='-Bstatic'
14503	  lt_prog_compiler_wl='-Qoption ld '
14504	  ;;
14505	*Sun\ C*)
14506	  # Sun C 5.9
14507	  lt_prog_compiler_pic='-KPIC'
14508	  lt_prog_compiler_static='-Bstatic'
14509	  lt_prog_compiler_wl='-Wl,'
14510	  ;;
14511        *Intel*\ [CF]*Compiler*)
14512	  lt_prog_compiler_wl='-Wl,'
14513	  lt_prog_compiler_pic='-fPIC'
14514	  lt_prog_compiler_static='-static'
14515	  ;;
14516	*Portland\ Group*)
14517	  lt_prog_compiler_wl='-Wl,'
14518	  lt_prog_compiler_pic='-fpic'
14519	  lt_prog_compiler_static='-Bstatic'
14520	  ;;
14521	esac
14522	;;
14523      esac
14524      ;;
14525
14526    newsos6)
14527      lt_prog_compiler_pic='-KPIC'
14528      lt_prog_compiler_static='-Bstatic'
14529      ;;
14530
14531    *nto* | *qnx*)
14532      # QNX uses GNU C++, but need to define -shared option too, otherwise
14533      # it will coredump.
14534      lt_prog_compiler_pic='-fPIC -shared'
14535      ;;
14536
14537    osf3* | osf4* | osf5*)
14538      lt_prog_compiler_wl='-Wl,'
14539      # All OSF/1 code is PIC.
14540      lt_prog_compiler_static='-non_shared'
14541      ;;
14542
14543    rdos*)
14544      lt_prog_compiler_static='-non_shared'
14545      ;;
14546
14547    solaris*)
14548      lt_prog_compiler_pic='-KPIC'
14549      lt_prog_compiler_static='-Bstatic'
14550      case $cc_basename in
14551      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14552	lt_prog_compiler_wl='-Qoption ld ';;
14553      *)
14554	lt_prog_compiler_wl='-Wl,';;
14555      esac
14556      ;;
14557
14558    sunos4*)
14559      lt_prog_compiler_wl='-Qoption ld '
14560      lt_prog_compiler_pic='-PIC'
14561      lt_prog_compiler_static='-Bstatic'
14562      ;;
14563
14564    sysv4 | sysv4.2uw2* | sysv4.3*)
14565      lt_prog_compiler_wl='-Wl,'
14566      lt_prog_compiler_pic='-KPIC'
14567      lt_prog_compiler_static='-Bstatic'
14568      ;;
14569
14570    sysv4*MP*)
14571      if test -d /usr/nec ;then
14572	lt_prog_compiler_pic='-Kconform_pic'
14573	lt_prog_compiler_static='-Bstatic'
14574      fi
14575      ;;
14576
14577    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14578      lt_prog_compiler_wl='-Wl,'
14579      lt_prog_compiler_pic='-KPIC'
14580      lt_prog_compiler_static='-Bstatic'
14581      ;;
14582
14583    unicos*)
14584      lt_prog_compiler_wl='-Wl,'
14585      lt_prog_compiler_can_build_shared=no
14586      ;;
14587
14588    uts4*)
14589      lt_prog_compiler_pic='-pic'
14590      lt_prog_compiler_static='-Bstatic'
14591      ;;
14592
14593    *)
14594      lt_prog_compiler_can_build_shared=no
14595      ;;
14596    esac
14597  fi
14598
14599case $host_os in
14600  # For platforms which do not support PIC, -DPIC is meaningless:
14601  *djgpp*)
14602    lt_prog_compiler_pic=
14603    ;;
14604  *)
14605    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14606    ;;
14607esac
14608
14609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14610$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14611if ${lt_cv_prog_compiler_pic+:} false; then :
14612  $as_echo_n "(cached) " >&6
14613else
14614  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14615fi
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14617$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14618lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14619
14620#
14621# Check to make sure the PIC flag actually works.
14622#
14623if test -n "$lt_prog_compiler_pic"; then
14624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14625$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14626if ${lt_cv_prog_compiler_pic_works+:} false; then :
14627  $as_echo_n "(cached) " >&6
14628else
14629  lt_cv_prog_compiler_pic_works=no
14630   ac_outfile=conftest.$ac_objext
14631   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14632   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14633   # Insert the option either (1) after the last *FLAGS variable, or
14634   # (2) before a word containing "conftest.", or (3) at the end.
14635   # Note that $ac_compile itself does not contain backslashes and begins
14636   # with a dollar sign (not a hyphen), so the echo should work correctly.
14637   # The option is referenced via a variable to avoid confusing sed.
14638   lt_compile=`echo "$ac_compile" | $SED \
14639   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14640   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14641   -e 's:$: $lt_compiler_flag:'`
14642   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14643   (eval "$lt_compile" 2>conftest.err)
14644   ac_status=$?
14645   cat conftest.err >&5
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   if (exit $ac_status) && test -s "$ac_outfile"; then
14648     # The compiler can only warn and ignore the option if not recognized
14649     # So say no if there are warnings other than the usual output.
14650     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14651     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14652     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14653       lt_cv_prog_compiler_pic_works=yes
14654     fi
14655   fi
14656   $RM conftest*
14657
14658fi
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14660$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14661
14662if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14663    case $lt_prog_compiler_pic in
14664     "" | " "*) ;;
14665     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14666     esac
14667else
14668    lt_prog_compiler_pic=
14669     lt_prog_compiler_can_build_shared=no
14670fi
14671
14672fi
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684#
14685# Check to make sure the static flag actually works.
14686#
14687wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14689$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14690if ${lt_cv_prog_compiler_static_works+:} false; then :
14691  $as_echo_n "(cached) " >&6
14692else
14693  lt_cv_prog_compiler_static_works=no
14694   save_LDFLAGS="$LDFLAGS"
14695   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14696   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14697   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14698     # The linker can only warn and ignore the option if not recognized
14699     # So say no if there are warnings
14700     if test -s conftest.err; then
14701       # Append any errors to the config.log.
14702       cat conftest.err 1>&5
14703       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14704       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14705       if diff conftest.exp conftest.er2 >/dev/null; then
14706         lt_cv_prog_compiler_static_works=yes
14707       fi
14708     else
14709       lt_cv_prog_compiler_static_works=yes
14710     fi
14711   fi
14712   $RM -r conftest*
14713   LDFLAGS="$save_LDFLAGS"
14714
14715fi
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14717$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14718
14719if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14720    :
14721else
14722    lt_prog_compiler_static=
14723fi
14724
14725
14726
14727
14728
14729
14730
14731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14732$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14733if ${lt_cv_prog_compiler_c_o+:} false; then :
14734  $as_echo_n "(cached) " >&6
14735else
14736  lt_cv_prog_compiler_c_o=no
14737   $RM -r conftest 2>/dev/null
14738   mkdir conftest
14739   cd conftest
14740   mkdir out
14741   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14742
14743   lt_compiler_flag="-o out/conftest2.$ac_objext"
14744   # Insert the option either (1) after the last *FLAGS variable, or
14745   # (2) before a word containing "conftest.", or (3) at the end.
14746   # Note that $ac_compile itself does not contain backslashes and begins
14747   # with a dollar sign (not a hyphen), so the echo should work correctly.
14748   lt_compile=`echo "$ac_compile" | $SED \
14749   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14751   -e 's:$: $lt_compiler_flag:'`
14752   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14753   (eval "$lt_compile" 2>out/conftest.err)
14754   ac_status=$?
14755   cat out/conftest.err >&5
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14758   then
14759     # The compiler can only warn and ignore the option if not recognized
14760     # So say no if there are warnings
14761     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14762     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14763     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14764       lt_cv_prog_compiler_c_o=yes
14765     fi
14766   fi
14767   chmod u+w . 2>&5
14768   $RM conftest*
14769   # SGI C++ compiler will create directory out/ii_files/ for
14770   # template instantiation
14771   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14772   $RM out/* && rmdir out
14773   cd ..
14774   $RM -r conftest
14775   $RM conftest*
14776
14777fi
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14779$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14780
14781
14782
14783
14784
14785
14786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14787$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14788if ${lt_cv_prog_compiler_c_o+:} false; then :
14789  $as_echo_n "(cached) " >&6
14790else
14791  lt_cv_prog_compiler_c_o=no
14792   $RM -r conftest 2>/dev/null
14793   mkdir conftest
14794   cd conftest
14795   mkdir out
14796   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14797
14798   lt_compiler_flag="-o out/conftest2.$ac_objext"
14799   # Insert the option either (1) after the last *FLAGS variable, or
14800   # (2) before a word containing "conftest.", or (3) at the end.
14801   # Note that $ac_compile itself does not contain backslashes and begins
14802   # with a dollar sign (not a hyphen), so the echo should work correctly.
14803   lt_compile=`echo "$ac_compile" | $SED \
14804   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14805   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14806   -e 's:$: $lt_compiler_flag:'`
14807   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14808   (eval "$lt_compile" 2>out/conftest.err)
14809   ac_status=$?
14810   cat out/conftest.err >&5
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14813   then
14814     # The compiler can only warn and ignore the option if not recognized
14815     # So say no if there are warnings
14816     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14817     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14818     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14819       lt_cv_prog_compiler_c_o=yes
14820     fi
14821   fi
14822   chmod u+w . 2>&5
14823   $RM conftest*
14824   # SGI C++ compiler will create directory out/ii_files/ for
14825   # template instantiation
14826   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14827   $RM out/* && rmdir out
14828   cd ..
14829   $RM -r conftest
14830   $RM conftest*
14831
14832fi
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14834$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14835
14836
14837
14838
14839hard_links="nottested"
14840if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14841  # do not overwrite the value of need_locks provided by the user
14842  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14843$as_echo_n "checking if we can lock with hard links... " >&6; }
14844  hard_links=yes
14845  $RM conftest*
14846  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14847  touch conftest.a
14848  ln conftest.a conftest.b 2>&5 || hard_links=no
14849  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14851$as_echo "$hard_links" >&6; }
14852  if test "$hard_links" = no; then
14853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14854$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14855    need_locks=warn
14856  fi
14857else
14858  need_locks=no
14859fi
14860
14861
14862
14863
14864
14865
14866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14867$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14868
14869  runpath_var=
14870  allow_undefined_flag=
14871  always_export_symbols=no
14872  archive_cmds=
14873  archive_expsym_cmds=
14874  compiler_needs_object=no
14875  enable_shared_with_static_runtimes=no
14876  export_dynamic_flag_spec=
14877  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14878  hardcode_automatic=no
14879  hardcode_direct=no
14880  hardcode_direct_absolute=no
14881  hardcode_libdir_flag_spec=
14882  hardcode_libdir_separator=
14883  hardcode_minus_L=no
14884  hardcode_shlibpath_var=unsupported
14885  inherit_rpath=no
14886  link_all_deplibs=unknown
14887  module_cmds=
14888  module_expsym_cmds=
14889  old_archive_from_new_cmds=
14890  old_archive_from_expsyms_cmds=
14891  thread_safe_flag_spec=
14892  whole_archive_flag_spec=
14893  # include_expsyms should be a list of space-separated symbols to be *always*
14894  # included in the symbol list
14895  include_expsyms=
14896  # exclude_expsyms can be an extended regexp of symbols to exclude
14897  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14898  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14899  # as well as any symbol that contains `d'.
14900  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14901  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14902  # platforms (ab)use it in PIC code, but their linkers get confused if
14903  # the symbol is explicitly referenced.  Since portable code cannot
14904  # rely on this symbol name, it's probably fine to never include it in
14905  # preloaded symbol tables.
14906  # Exclude shared library initialization/finalization symbols.
14907  extract_expsyms_cmds=
14908
14909  case $host_os in
14910  cygwin* | mingw* | pw32* | cegcc*)
14911    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14912    # When not using gcc, we currently assume that we are using
14913    # Microsoft Visual C++.
14914    if test "$GCC" != yes; then
14915      with_gnu_ld=no
14916    fi
14917    ;;
14918  interix*)
14919    # we just hope/assume this is gcc and not c89 (= MSVC++)
14920    with_gnu_ld=yes
14921    ;;
14922  openbsd*)
14923    with_gnu_ld=no
14924    ;;
14925  esac
14926
14927  ld_shlibs=yes
14928
14929  # On some targets, GNU ld is compatible enough with the native linker
14930  # that we're better off using the native interface for both.
14931  lt_use_gnu_ld_interface=no
14932  if test "$with_gnu_ld" = yes; then
14933    case $host_os in
14934      aix*)
14935	# The AIX port of GNU ld has always aspired to compatibility
14936	# with the native linker.  However, as the warning in the GNU ld
14937	# block says, versions before 2.19.5* couldn't really create working
14938	# shared libraries, regardless of the interface used.
14939	case `$LD -v 2>&1` in
14940	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14941	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14942	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14943	  *)
14944	    lt_use_gnu_ld_interface=yes
14945	    ;;
14946	esac
14947	;;
14948      *)
14949	lt_use_gnu_ld_interface=yes
14950	;;
14951    esac
14952  fi
14953
14954  if test "$lt_use_gnu_ld_interface" = yes; then
14955    # If archive_cmds runs LD, not CC, wlarc should be empty
14956    wlarc='${wl}'
14957
14958    # Set some defaults for GNU ld with shared library support. These
14959    # are reset later if shared libraries are not supported. Putting them
14960    # here allows them to be overridden if necessary.
14961    runpath_var=LD_RUN_PATH
14962    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14963    export_dynamic_flag_spec='${wl}--export-dynamic'
14964    # ancient GNU ld didn't support --whole-archive et. al.
14965    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14966      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14967    else
14968      whole_archive_flag_spec=
14969    fi
14970    supports_anon_versioning=no
14971    case `$LD -v 2>&1` in
14972      *GNU\ gold*) supports_anon_versioning=yes ;;
14973      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14974      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14975      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14976      *\ 2.11.*) ;; # other 2.11 versions
14977      *) supports_anon_versioning=yes ;;
14978    esac
14979
14980    # See if GNU ld supports shared libraries.
14981    case $host_os in
14982    aix[3-9]*)
14983      # On AIX/PPC, the GNU linker is very broken
14984      if test "$host_cpu" != ia64; then
14985	ld_shlibs=no
14986	cat <<_LT_EOF 1>&2
14987
14988*** Warning: the GNU linker, at least up to release 2.19, is reported
14989*** to be unable to reliably create shared libraries on AIX.
14990*** Therefore, libtool is disabling shared libraries support.  If you
14991*** really care for shared libraries, you may want to install binutils
14992*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14993*** You will then need to restart the configuration process.
14994
14995_LT_EOF
14996      fi
14997      ;;
14998
14999    amigaos*)
15000      case $host_cpu in
15001      powerpc)
15002            # see comment about AmigaOS4 .so support
15003            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004            archive_expsym_cmds=''
15005        ;;
15006      m68k)
15007            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)'
15008            hardcode_libdir_flag_spec='-L$libdir'
15009            hardcode_minus_L=yes
15010        ;;
15011      esac
15012      ;;
15013
15014    beos*)
15015      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15016	allow_undefined_flag=unsupported
15017	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15018	# support --undefined.  This deserves some investigation.  FIXME
15019	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15020      else
15021	ld_shlibs=no
15022      fi
15023      ;;
15024
15025    cygwin* | mingw* | pw32* | cegcc*)
15026      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15027      # as there is no search path for DLLs.
15028      hardcode_libdir_flag_spec='-L$libdir'
15029      export_dynamic_flag_spec='${wl}--export-all-symbols'
15030      allow_undefined_flag=unsupported
15031      always_export_symbols=no
15032      enable_shared_with_static_runtimes=yes
15033      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'
15034      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15035
15036      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15037        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15038	# If the export-symbols file already is a .def file (1st line
15039	# is EXPORTS), use it as is; otherwise, prepend...
15040	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15041	  cp $export_symbols $output_objdir/$soname.def;
15042	else
15043	  echo EXPORTS > $output_objdir/$soname.def;
15044	  cat $export_symbols >> $output_objdir/$soname.def;
15045	fi~
15046	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15047      else
15048	ld_shlibs=no
15049      fi
15050      ;;
15051
15052    haiku*)
15053      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15054      link_all_deplibs=yes
15055      ;;
15056
15057    interix[3-9]*)
15058      hardcode_direct=no
15059      hardcode_shlibpath_var=no
15060      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15061      export_dynamic_flag_spec='${wl}-E'
15062      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15063      # Instead, shared libraries are loaded at an image base (0x10000000 by
15064      # default) and relocated if they conflict, which is a slow very memory
15065      # consuming and fragmenting process.  To avoid this, we pick a random,
15066      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15067      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15068      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15069      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'
15070      ;;
15071
15072    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15073      tmp_diet=no
15074      if test "$host_os" = linux-dietlibc; then
15075	case $cc_basename in
15076	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15077	esac
15078      fi
15079      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15080	 && test "$tmp_diet" = no
15081      then
15082	tmp_addflag=' $pic_flag'
15083	tmp_sharedflag='-shared'
15084	case $cc_basename,$host_cpu in
15085        pgcc*)				# Portland Group C compiler
15086	  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'
15087	  tmp_addflag=' $pic_flag'
15088	  ;;
15089	pgf77* | pgf90* | pgf95* | pgfortran*)
15090					# Portland Group f77 and f90 compilers
15091	  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'
15092	  tmp_addflag=' $pic_flag -Mnomain' ;;
15093	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15094	  tmp_addflag=' -i_dynamic' ;;
15095	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15096	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15097	ifc* | ifort*)			# Intel Fortran compiler
15098	  tmp_addflag=' -nofor_main' ;;
15099	lf95*)				# Lahey Fortran 8.1
15100	  whole_archive_flag_spec=
15101	  tmp_sharedflag='--shared' ;;
15102	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15103	  tmp_sharedflag='-qmkshrobj'
15104	  tmp_addflag= ;;
15105	nvcc*)	# Cuda Compiler Driver 2.2
15106	  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'
15107	  compiler_needs_object=yes
15108	  ;;
15109	esac
15110	case `$CC -V 2>&1 | sed 5q` in
15111	*Sun\ C*)			# Sun C 5.9
15112	  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'
15113	  compiler_needs_object=yes
15114	  tmp_sharedflag='-G' ;;
15115	*Sun\ F*)			# Sun Fortran 8.3
15116	  tmp_sharedflag='-G' ;;
15117	esac
15118	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119
15120        if test "x$supports_anon_versioning" = xyes; then
15121          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15122	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15123	    echo "local: *; };" >> $output_objdir/$libname.ver~
15124	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15125        fi
15126
15127	case $cc_basename in
15128	xlf* | bgf* | bgxlf* | mpixlf*)
15129	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15130	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15131	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15132	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15133	  if test "x$supports_anon_versioning" = xyes; then
15134	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15135	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15136	      echo "local: *; };" >> $output_objdir/$libname.ver~
15137	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15138	  fi
15139	  ;;
15140	esac
15141      else
15142        ld_shlibs=no
15143      fi
15144      ;;
15145
15146    netbsd*)
15147      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15148	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15149	wlarc=
15150      else
15151	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15152	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15153      fi
15154      ;;
15155
15156    solaris*)
15157      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15158	ld_shlibs=no
15159	cat <<_LT_EOF 1>&2
15160
15161*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15162*** create shared libraries on Solaris systems.  Therefore, libtool
15163*** is disabling shared libraries support.  We urge you to upgrade GNU
15164*** binutils to release 2.9.1 or newer.  Another option is to modify
15165*** your PATH or compiler configuration so that the native linker is
15166*** used, and then restart.
15167
15168_LT_EOF
15169      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15170	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15171	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15172      else
15173	ld_shlibs=no
15174      fi
15175      ;;
15176
15177    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15178      case `$LD -v 2>&1` in
15179        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15180	ld_shlibs=no
15181	cat <<_LT_EOF 1>&2
15182
15183*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15184*** reliably create shared libraries on SCO systems.  Therefore, libtool
15185*** is disabling shared libraries support.  We urge you to upgrade GNU
15186*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15187*** your PATH or compiler configuration so that the native linker is
15188*** used, and then restart.
15189
15190_LT_EOF
15191	;;
15192	*)
15193	  # For security reasons, it is highly recommended that you always
15194	  # use absolute paths for naming shared libraries, and exclude the
15195	  # DT_RUNPATH tag from executables and libraries.  But doing so
15196	  # requires that you compile everything twice, which is a pain.
15197	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15198	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15199	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15200	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15201	  else
15202	    ld_shlibs=no
15203	  fi
15204	;;
15205      esac
15206      ;;
15207
15208    sunos4*)
15209      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15210      wlarc=
15211      hardcode_direct=yes
15212      hardcode_shlibpath_var=no
15213      ;;
15214
15215    *)
15216      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15217	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15218	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15219      else
15220	ld_shlibs=no
15221      fi
15222      ;;
15223    esac
15224
15225    if test "$ld_shlibs" = no; then
15226      runpath_var=
15227      hardcode_libdir_flag_spec=
15228      export_dynamic_flag_spec=
15229      whole_archive_flag_spec=
15230    fi
15231  else
15232    # PORTME fill in a description of your system's linker (not GNU ld)
15233    case $host_os in
15234    aix3*)
15235      allow_undefined_flag=unsupported
15236      always_export_symbols=yes
15237      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'
15238      # Note: this linker hardcodes the directories in LIBPATH if there
15239      # are no directories specified by -L.
15240      hardcode_minus_L=yes
15241      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15242	# Neither direct hardcoding nor static linking is supported with a
15243	# broken collect2.
15244	hardcode_direct=unsupported
15245      fi
15246      ;;
15247
15248    aix[4-9]*)
15249      if test "$host_cpu" = ia64; then
15250	# On IA64, the linker does run time linking by default, so we don't
15251	# have to do anything special.
15252	aix_use_runtimelinking=no
15253	exp_sym_flag='-Bexport'
15254	no_entry_flag=""
15255      else
15256	# If we're using GNU nm, then we don't want the "-C" option.
15257	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15258	# Also, AIX nm treats weak defined symbols like other global
15259	# defined symbols, whereas GNU nm marks them as "W".
15260	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15261	  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'
15262	else
15263	  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'
15264	fi
15265	aix_use_runtimelinking=no
15266
15267	# Test if we are trying to use run time linking or normal
15268	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15269	# need to do runtime linking.
15270	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15271	  for ld_flag in $LDFLAGS; do
15272	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15273	    aix_use_runtimelinking=yes
15274	    break
15275	  fi
15276	  done
15277	  ;;
15278	esac
15279
15280	exp_sym_flag='-bexport'
15281	no_entry_flag='-bnoentry'
15282      fi
15283
15284      # When large executables or shared objects are built, AIX ld can
15285      # have problems creating the table of contents.  If linking a library
15286      # or program results in "error TOC overflow" add -mminimal-toc to
15287      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15288      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15289
15290      archive_cmds=''
15291      hardcode_direct=yes
15292      hardcode_direct_absolute=yes
15293      hardcode_libdir_separator=':'
15294      link_all_deplibs=yes
15295      file_list_spec='${wl}-f,'
15296
15297      if test "$GCC" = yes; then
15298	case $host_os in aix4.[012]|aix4.[012].*)
15299	# We only want to do this on AIX 4.2 and lower, the check
15300	# below for broken collect2 doesn't work under 4.3+
15301	  collect2name=`${CC} -print-prog-name=collect2`
15302	  if test -f "$collect2name" &&
15303	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15304	  then
15305	  # We have reworked collect2
15306	  :
15307	  else
15308	  # We have old collect2
15309	  hardcode_direct=unsupported
15310	  # It fails to find uninstalled libraries when the uninstalled
15311	  # path is not listed in the libpath.  Setting hardcode_minus_L
15312	  # to unsupported forces relinking
15313	  hardcode_minus_L=yes
15314	  hardcode_libdir_flag_spec='-L$libdir'
15315	  hardcode_libdir_separator=
15316	  fi
15317	  ;;
15318	esac
15319	shared_flag='-shared'
15320	if test "$aix_use_runtimelinking" = yes; then
15321	  shared_flag="$shared_flag "'${wl}-G'
15322	fi
15323      else
15324	# not using gcc
15325	if test "$host_cpu" = ia64; then
15326	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15327	# chokes on -Wl,-G. The following line is correct:
15328	  shared_flag='-G'
15329	else
15330	  if test "$aix_use_runtimelinking" = yes; then
15331	    shared_flag='${wl}-G'
15332	  else
15333	    shared_flag='${wl}-bM:SRE'
15334	  fi
15335	fi
15336      fi
15337
15338      export_dynamic_flag_spec='${wl}-bexpall'
15339      # It seems that -bexpall does not export symbols beginning with
15340      # underscore (_), so it is better to generate a list of symbols to export.
15341      always_export_symbols=yes
15342      if test "$aix_use_runtimelinking" = yes; then
15343	# Warning - without using the other runtime loading flags (-brtl),
15344	# -berok will link without error, but may produce a broken library.
15345	allow_undefined_flag='-berok'
15346        # Determine the default libpath from the value encoded in an
15347        # empty executable.
15348        if test "${lt_cv_aix_libpath+set}" = set; then
15349  aix_libpath=$lt_cv_aix_libpath
15350else
15351  if ${lt_cv_aix_libpath_+:} false; then :
15352  $as_echo_n "(cached) " >&6
15353else
15354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355/* end confdefs.h.  */
15356
15357int
15358main ()
15359{
15360
15361  ;
15362  return 0;
15363}
15364_ACEOF
15365if ac_fn_c_try_link "$LINENO"; then :
15366
15367  lt_aix_libpath_sed='
15368      /Import File Strings/,/^$/ {
15369	  /^0/ {
15370	      s/^0  *\([^ ]*\) *$/\1/
15371	      p
15372	  }
15373      }'
15374  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15375  # Check for a 64-bit object if we didn't find anything.
15376  if test -z "$lt_cv_aix_libpath_"; then
15377    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15378  fi
15379fi
15380rm -f core conftest.err conftest.$ac_objext \
15381    conftest$ac_exeext conftest.$ac_ext
15382  if test -z "$lt_cv_aix_libpath_"; then
15383    lt_cv_aix_libpath_="/usr/lib:/lib"
15384  fi
15385
15386fi
15387
15388  aix_libpath=$lt_cv_aix_libpath_
15389fi
15390
15391        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15392        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"
15393      else
15394	if test "$host_cpu" = ia64; then
15395	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15396	  allow_undefined_flag="-z nodefs"
15397	  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"
15398	else
15399	 # Determine the default libpath from the value encoded in an
15400	 # empty executable.
15401	 if test "${lt_cv_aix_libpath+set}" = set; then
15402  aix_libpath=$lt_cv_aix_libpath
15403else
15404  if ${lt_cv_aix_libpath_+:} false; then :
15405  $as_echo_n "(cached) " >&6
15406else
15407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408/* end confdefs.h.  */
15409
15410int
15411main ()
15412{
15413
15414  ;
15415  return 0;
15416}
15417_ACEOF
15418if ac_fn_c_try_link "$LINENO"; then :
15419
15420  lt_aix_libpath_sed='
15421      /Import File Strings/,/^$/ {
15422	  /^0/ {
15423	      s/^0  *\([^ ]*\) *$/\1/
15424	      p
15425	  }
15426      }'
15427  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15428  # Check for a 64-bit object if we didn't find anything.
15429  if test -z "$lt_cv_aix_libpath_"; then
15430    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15431  fi
15432fi
15433rm -f core conftest.err conftest.$ac_objext \
15434    conftest$ac_exeext conftest.$ac_ext
15435  if test -z "$lt_cv_aix_libpath_"; then
15436    lt_cv_aix_libpath_="/usr/lib:/lib"
15437  fi
15438
15439fi
15440
15441  aix_libpath=$lt_cv_aix_libpath_
15442fi
15443
15444	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15445	  # Warning - without using the other run time loading flags,
15446	  # -berok will link without error, but may produce a broken library.
15447	  no_undefined_flag=' ${wl}-bernotok'
15448	  allow_undefined_flag=' ${wl}-berok'
15449	  if test "$with_gnu_ld" = yes; then
15450	    # We only use this code for GNU lds that support --whole-archive.
15451	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15452	  else
15453	    # Exported symbols can be pulled into shared objects from archives
15454	    whole_archive_flag_spec='$convenience'
15455	  fi
15456	  archive_cmds_need_lc=yes
15457	  # This is similar to how AIX traditionally builds its shared libraries.
15458	  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'
15459	fi
15460      fi
15461      ;;
15462
15463    amigaos*)
15464      case $host_cpu in
15465      powerpc)
15466            # see comment about AmigaOS4 .so support
15467            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15468            archive_expsym_cmds=''
15469        ;;
15470      m68k)
15471            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)'
15472            hardcode_libdir_flag_spec='-L$libdir'
15473            hardcode_minus_L=yes
15474        ;;
15475      esac
15476      ;;
15477
15478    bsdi[45]*)
15479      export_dynamic_flag_spec=-rdynamic
15480      ;;
15481
15482    cygwin* | mingw* | pw32* | cegcc*)
15483      # When not using gcc, we currently assume that we are using
15484      # Microsoft Visual C++.
15485      # hardcode_libdir_flag_spec is actually meaningless, as there is
15486      # no search path for DLLs.
15487      case $cc_basename in
15488      cl*)
15489	# Native MSVC
15490	hardcode_libdir_flag_spec=' '
15491	allow_undefined_flag=unsupported
15492	always_export_symbols=yes
15493	file_list_spec='@'
15494	# Tell ltmain to make .lib files, not .a files.
15495	libext=lib
15496	# Tell ltmain to make .dll files, not .so files.
15497	shrext_cmds=".dll"
15498	# FIXME: Setting linknames here is a bad hack.
15499	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15500	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15501	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15502	  else
15503	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15504	  fi~
15505	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15506	  linknames='
15507	# The linker will not automatically build a static lib if we build a DLL.
15508	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15509	enable_shared_with_static_runtimes=yes
15510	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15511	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15512	# Don't use ranlib
15513	old_postinstall_cmds='chmod 644 $oldlib'
15514	postlink_cmds='lt_outputfile="@OUTPUT@"~
15515	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15516	  case $lt_outputfile in
15517	    *.exe|*.EXE) ;;
15518	    *)
15519	      lt_outputfile="$lt_outputfile.exe"
15520	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15521	      ;;
15522	  esac~
15523	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15524	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15525	    $RM "$lt_outputfile.manifest";
15526	  fi'
15527	;;
15528      *)
15529	# Assume MSVC wrapper
15530	hardcode_libdir_flag_spec=' '
15531	allow_undefined_flag=unsupported
15532	# Tell ltmain to make .lib files, not .a files.
15533	libext=lib
15534	# Tell ltmain to make .dll files, not .so files.
15535	shrext_cmds=".dll"
15536	# FIXME: Setting linknames here is a bad hack.
15537	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15538	# The linker will automatically build a .lib file if we build a DLL.
15539	old_archive_from_new_cmds='true'
15540	# FIXME: Should let the user specify the lib program.
15541	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15542	enable_shared_with_static_runtimes=yes
15543	;;
15544      esac
15545      ;;
15546
15547    darwin* | rhapsody*)
15548
15549
15550  archive_cmds_need_lc=no
15551  hardcode_direct=no
15552  hardcode_automatic=yes
15553  hardcode_shlibpath_var=unsupported
15554  if test "$lt_cv_ld_force_load" = "yes"; then
15555    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\"`'
15556
15557  else
15558    whole_archive_flag_spec=''
15559  fi
15560  link_all_deplibs=yes
15561  allow_undefined_flag="$_lt_dar_allow_undefined"
15562  case $cc_basename in
15563     ifort*) _lt_dar_can_shared=yes ;;
15564     *) _lt_dar_can_shared=$GCC ;;
15565  esac
15566  if test "$_lt_dar_can_shared" = "yes"; then
15567    output_verbose_link_cmd=func_echo_all
15568    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15569    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15570    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}"
15571    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}"
15572
15573  else
15574  ld_shlibs=no
15575  fi
15576
15577      ;;
15578
15579    dgux*)
15580      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581      hardcode_libdir_flag_spec='-L$libdir'
15582      hardcode_shlibpath_var=no
15583      ;;
15584
15585    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15586    # support.  Future versions do this automatically, but an explicit c++rt0.o
15587    # does not break anything, and helps significantly (at the cost of a little
15588    # extra space).
15589    freebsd2.2*)
15590      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15591      hardcode_libdir_flag_spec='-R$libdir'
15592      hardcode_direct=yes
15593      hardcode_shlibpath_var=no
15594      ;;
15595
15596    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15597    freebsd2.*)
15598      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15599      hardcode_direct=yes
15600      hardcode_minus_L=yes
15601      hardcode_shlibpath_var=no
15602      ;;
15603
15604    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15605    freebsd* | dragonfly*)
15606      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15607      hardcode_libdir_flag_spec='-R$libdir'
15608      hardcode_direct=yes
15609      hardcode_shlibpath_var=no
15610      ;;
15611
15612    hpux9*)
15613      if test "$GCC" = yes; then
15614	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'
15615      else
15616	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'
15617      fi
15618      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15619      hardcode_libdir_separator=:
15620      hardcode_direct=yes
15621
15622      # hardcode_minus_L: Not really in the search PATH,
15623      # but as the default location of the library.
15624      hardcode_minus_L=yes
15625      export_dynamic_flag_spec='${wl}-E'
15626      ;;
15627
15628    hpux10*)
15629      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15630	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15631      else
15632	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15633      fi
15634      if test "$with_gnu_ld" = no; then
15635	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15636	hardcode_libdir_separator=:
15637	hardcode_direct=yes
15638	hardcode_direct_absolute=yes
15639	export_dynamic_flag_spec='${wl}-E'
15640	# hardcode_minus_L: Not really in the search PATH,
15641	# but as the default location of the library.
15642	hardcode_minus_L=yes
15643      fi
15644      ;;
15645
15646    hpux11*)
15647      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15648	case $host_cpu in
15649	hppa*64*)
15650	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15651	  ;;
15652	ia64*)
15653	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15654	  ;;
15655	*)
15656	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15657	  ;;
15658	esac
15659      else
15660	case $host_cpu in
15661	hppa*64*)
15662	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15663	  ;;
15664	ia64*)
15665	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15666	  ;;
15667	*)
15668
15669	  # Older versions of the 11.00 compiler do not understand -b yet
15670	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15671	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15672$as_echo_n "checking if $CC understands -b... " >&6; }
15673if ${lt_cv_prog_compiler__b+:} false; then :
15674  $as_echo_n "(cached) " >&6
15675else
15676  lt_cv_prog_compiler__b=no
15677   save_LDFLAGS="$LDFLAGS"
15678   LDFLAGS="$LDFLAGS -b"
15679   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15680   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15681     # The linker can only warn and ignore the option if not recognized
15682     # So say no if there are warnings
15683     if test -s conftest.err; then
15684       # Append any errors to the config.log.
15685       cat conftest.err 1>&5
15686       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15687       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15688       if diff conftest.exp conftest.er2 >/dev/null; then
15689         lt_cv_prog_compiler__b=yes
15690       fi
15691     else
15692       lt_cv_prog_compiler__b=yes
15693     fi
15694   fi
15695   $RM -r conftest*
15696   LDFLAGS="$save_LDFLAGS"
15697
15698fi
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15700$as_echo "$lt_cv_prog_compiler__b" >&6; }
15701
15702if test x"$lt_cv_prog_compiler__b" = xyes; then
15703    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15704else
15705    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15706fi
15707
15708	  ;;
15709	esac
15710      fi
15711      if test "$with_gnu_ld" = no; then
15712	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15713	hardcode_libdir_separator=:
15714
15715	case $host_cpu in
15716	hppa*64*|ia64*)
15717	  hardcode_direct=no
15718	  hardcode_shlibpath_var=no
15719	  ;;
15720	*)
15721	  hardcode_direct=yes
15722	  hardcode_direct_absolute=yes
15723	  export_dynamic_flag_spec='${wl}-E'
15724
15725	  # hardcode_minus_L: Not really in the search PATH,
15726	  # but as the default location of the library.
15727	  hardcode_minus_L=yes
15728	  ;;
15729	esac
15730      fi
15731      ;;
15732
15733    irix5* | irix6* | nonstopux*)
15734      if test "$GCC" = yes; then
15735	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'
15736	# Try to use the -exported_symbol ld option, if it does not
15737	# work, assume that -exports_file does not work either and
15738	# implicitly export all symbols.
15739	# This should be the same for all languages, so no per-tag cache variable.
15740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15741$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15742if ${lt_cv_irix_exported_symbol+:} false; then :
15743  $as_echo_n "(cached) " >&6
15744else
15745  save_LDFLAGS="$LDFLAGS"
15746	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15747	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748/* end confdefs.h.  */
15749int foo (void) { return 0; }
15750_ACEOF
15751if ac_fn_c_try_link "$LINENO"; then :
15752  lt_cv_irix_exported_symbol=yes
15753else
15754  lt_cv_irix_exported_symbol=no
15755fi
15756rm -f core conftest.err conftest.$ac_objext \
15757    conftest$ac_exeext conftest.$ac_ext
15758           LDFLAGS="$save_LDFLAGS"
15759fi
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15761$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15762	if test "$lt_cv_irix_exported_symbol" = yes; then
15763          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'
15764	fi
15765      else
15766	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'
15767	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'
15768      fi
15769      archive_cmds_need_lc='no'
15770      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15771      hardcode_libdir_separator=:
15772      inherit_rpath=yes
15773      link_all_deplibs=yes
15774      ;;
15775
15776    netbsd*)
15777      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15778	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15779      else
15780	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15781      fi
15782      hardcode_libdir_flag_spec='-R$libdir'
15783      hardcode_direct=yes
15784      hardcode_shlibpath_var=no
15785      ;;
15786
15787    newsos6)
15788      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789      hardcode_direct=yes
15790      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15791      hardcode_libdir_separator=:
15792      hardcode_shlibpath_var=no
15793      ;;
15794
15795    *nto* | *qnx*)
15796      ;;
15797
15798    openbsd*)
15799      if test -f /usr/libexec/ld.so; then
15800	hardcode_direct=yes
15801	hardcode_shlibpath_var=no
15802	hardcode_direct_absolute=yes
15803	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15804	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15805	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15806	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15807	  export_dynamic_flag_spec='${wl}-E'
15808	else
15809	  case $host_os in
15810	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15811	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15812	     hardcode_libdir_flag_spec='-R$libdir'
15813	     ;;
15814	   *)
15815	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15816	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15817	     ;;
15818	  esac
15819	fi
15820      else
15821	ld_shlibs=no
15822      fi
15823      ;;
15824
15825    os2*)
15826      hardcode_libdir_flag_spec='-L$libdir'
15827      hardcode_minus_L=yes
15828      allow_undefined_flag=unsupported
15829      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'
15830      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15831      ;;
15832
15833    osf3*)
15834      if test "$GCC" = yes; then
15835	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15836	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'
15837      else
15838	allow_undefined_flag=' -expect_unresolved \*'
15839	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'
15840      fi
15841      archive_cmds_need_lc='no'
15842      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15843      hardcode_libdir_separator=:
15844      ;;
15845
15846    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15847      if test "$GCC" = yes; then
15848	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15849	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'
15850	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15851      else
15852	allow_undefined_flag=' -expect_unresolved \*'
15853	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'
15854	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~
15855	$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'
15856
15857	# Both c and cxx compiler support -rpath directly
15858	hardcode_libdir_flag_spec='-rpath $libdir'
15859      fi
15860      archive_cmds_need_lc='no'
15861      hardcode_libdir_separator=:
15862      ;;
15863
15864    solaris*)
15865      no_undefined_flag=' -z defs'
15866      if test "$GCC" = yes; then
15867	wlarc='${wl}'
15868	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15869	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15870	  $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'
15871      else
15872	case `$CC -V 2>&1` in
15873	*"Compilers 5.0"*)
15874	  wlarc=''
15875	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15876	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15877	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15878	  ;;
15879	*)
15880	  wlarc='${wl}'
15881	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15882	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15883	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15884	  ;;
15885	esac
15886      fi
15887      hardcode_libdir_flag_spec='-R$libdir'
15888      hardcode_shlibpath_var=no
15889      case $host_os in
15890      solaris2.[0-5] | solaris2.[0-5].*) ;;
15891      *)
15892	# The compiler driver will combine and reorder linker options,
15893	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15894	# but is careful enough not to reorder.
15895	# Supported since Solaris 2.6 (maybe 2.5.1?)
15896	if test "$GCC" = yes; then
15897	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15898	else
15899	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15900	fi
15901	;;
15902      esac
15903      link_all_deplibs=yes
15904      ;;
15905
15906    sunos4*)
15907      if test "x$host_vendor" = xsequent; then
15908	# Use $CC to link under sequent, because it throws in some extra .o
15909	# files that make .init and .fini sections work.
15910	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15911      else
15912	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15913      fi
15914      hardcode_libdir_flag_spec='-L$libdir'
15915      hardcode_direct=yes
15916      hardcode_minus_L=yes
15917      hardcode_shlibpath_var=no
15918      ;;
15919
15920    sysv4)
15921      case $host_vendor in
15922	sni)
15923	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15924	  hardcode_direct=yes # is this really true???
15925	;;
15926	siemens)
15927	  ## LD is ld it makes a PLAMLIB
15928	  ## CC just makes a GrossModule.
15929	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15930	  reload_cmds='$CC -r -o $output$reload_objs'
15931	  hardcode_direct=no
15932        ;;
15933	motorola)
15934	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15935	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15936	;;
15937      esac
15938      runpath_var='LD_RUN_PATH'
15939      hardcode_shlibpath_var=no
15940      ;;
15941
15942    sysv4.3*)
15943      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15944      hardcode_shlibpath_var=no
15945      export_dynamic_flag_spec='-Bexport'
15946      ;;
15947
15948    sysv4*MP*)
15949      if test -d /usr/nec; then
15950	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15951	hardcode_shlibpath_var=no
15952	runpath_var=LD_RUN_PATH
15953	hardcode_runpath_var=yes
15954	ld_shlibs=yes
15955      fi
15956      ;;
15957
15958    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15959      no_undefined_flag='${wl}-z,text'
15960      archive_cmds_need_lc=no
15961      hardcode_shlibpath_var=no
15962      runpath_var='LD_RUN_PATH'
15963
15964      if test "$GCC" = yes; then
15965	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967      else
15968	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15969	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15970      fi
15971      ;;
15972
15973    sysv5* | sco3.2v5* | sco5v6*)
15974      # Note: We can NOT use -z defs as we might desire, because we do not
15975      # link with -lc, and that would cause any symbols used from libc to
15976      # always be unresolved, which means just about no library would
15977      # ever link correctly.  If we're not using GNU ld we use -z text
15978      # though, which does catch some bad symbols but isn't as heavy-handed
15979      # as -z defs.
15980      no_undefined_flag='${wl}-z,text'
15981      allow_undefined_flag='${wl}-z,nodefs'
15982      archive_cmds_need_lc=no
15983      hardcode_shlibpath_var=no
15984      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15985      hardcode_libdir_separator=':'
15986      link_all_deplibs=yes
15987      export_dynamic_flag_spec='${wl}-Bexport'
15988      runpath_var='LD_RUN_PATH'
15989
15990      if test "$GCC" = yes; then
15991	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15992	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15993      else
15994	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15995	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15996      fi
15997      ;;
15998
15999    uts4*)
16000      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001      hardcode_libdir_flag_spec='-L$libdir'
16002      hardcode_shlibpath_var=no
16003      ;;
16004
16005    *)
16006      ld_shlibs=no
16007      ;;
16008    esac
16009
16010    if test x$host_vendor = xsni; then
16011      case $host in
16012      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16013	export_dynamic_flag_spec='${wl}-Blargedynsym'
16014	;;
16015      esac
16016    fi
16017  fi
16018
16019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16020$as_echo "$ld_shlibs" >&6; }
16021test "$ld_shlibs" = no && can_build_shared=no
16022
16023with_gnu_ld=$with_gnu_ld
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039#
16040# Do we need to explicitly link libc?
16041#
16042case "x$archive_cmds_need_lc" in
16043x|xyes)
16044  # Assume -lc should be added
16045  archive_cmds_need_lc=yes
16046
16047  if test "$enable_shared" = yes && test "$GCC" = yes; then
16048    case $archive_cmds in
16049    *'~'*)
16050      # FIXME: we may have to deal with multi-command sequences.
16051      ;;
16052    '$CC '*)
16053      # Test whether the compiler implicitly links with -lc since on some
16054      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16055      # to ld, don't add -lc before -lgcc.
16056      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16057$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16058if ${lt_cv_archive_cmds_need_lc+:} false; then :
16059  $as_echo_n "(cached) " >&6
16060else
16061  $RM conftest*
16062	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16063
16064	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16065  (eval $ac_compile) 2>&5
16066  ac_status=$?
16067  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068  test $ac_status = 0; } 2>conftest.err; then
16069	  soname=conftest
16070	  lib=conftest
16071	  libobjs=conftest.$ac_objext
16072	  deplibs=
16073	  wl=$lt_prog_compiler_wl
16074	  pic_flag=$lt_prog_compiler_pic
16075	  compiler_flags=-v
16076	  linker_flags=-v
16077	  verstring=
16078	  output_objdir=.
16079	  libname=conftest
16080	  lt_save_allow_undefined_flag=$allow_undefined_flag
16081	  allow_undefined_flag=
16082	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16083  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16084  ac_status=$?
16085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16086  test $ac_status = 0; }
16087	  then
16088	    lt_cv_archive_cmds_need_lc=no
16089	  else
16090	    lt_cv_archive_cmds_need_lc=yes
16091	  fi
16092	  allow_undefined_flag=$lt_save_allow_undefined_flag
16093	else
16094	  cat conftest.err 1>&5
16095	fi
16096	$RM conftest*
16097
16098fi
16099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16100$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16101      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16102      ;;
16103    esac
16104  fi
16105  ;;
16106esac
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16260$as_echo_n "checking dynamic linker characteristics... " >&6; }
16261
16262if test "$GCC" = yes; then
16263  case $host_os in
16264    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16265    *) lt_awk_arg="/^libraries:/" ;;
16266  esac
16267  case $host_os in
16268    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16269    *) lt_sed_strip_eq="s,=/,/,g" ;;
16270  esac
16271  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16272  case $lt_search_path_spec in
16273  *\;*)
16274    # if the path contains ";" then we assume it to be the separator
16275    # otherwise default to the standard path separator (i.e. ":") - it is
16276    # assumed that no part of a normal pathname contains ";" but that should
16277    # okay in the real world where ";" in dirpaths is itself problematic.
16278    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16279    ;;
16280  *)
16281    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16282    ;;
16283  esac
16284  # Ok, now we have the path, separated by spaces, we can step through it
16285  # and add multilib dir if necessary.
16286  lt_tmp_lt_search_path_spec=
16287  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16288  for lt_sys_path in $lt_search_path_spec; do
16289    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16290      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16291    else
16292      test -d "$lt_sys_path" && \
16293	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16294    fi
16295  done
16296  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16297BEGIN {RS=" "; FS="/|\n";} {
16298  lt_foo="";
16299  lt_count=0;
16300  for (lt_i = NF; lt_i > 0; lt_i--) {
16301    if ($lt_i != "" && $lt_i != ".") {
16302      if ($lt_i == "..") {
16303        lt_count++;
16304      } else {
16305        if (lt_count == 0) {
16306          lt_foo="/" $lt_i lt_foo;
16307        } else {
16308          lt_count--;
16309        }
16310      }
16311    }
16312  }
16313  if (lt_foo != "") { lt_freq[lt_foo]++; }
16314  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16315}'`
16316  # AWK program above erroneously prepends '/' to C:/dos/paths
16317  # for these hosts.
16318  case $host_os in
16319    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16320      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16321  esac
16322  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16323else
16324  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16325fi
16326library_names_spec=
16327libname_spec='lib$name'
16328soname_spec=
16329shrext_cmds=".so"
16330postinstall_cmds=
16331postuninstall_cmds=
16332finish_cmds=
16333finish_eval=
16334shlibpath_var=
16335shlibpath_overrides_runpath=unknown
16336version_type=none
16337dynamic_linker="$host_os ld.so"
16338sys_lib_dlsearch_path_spec="/lib /usr/lib"
16339need_lib_prefix=unknown
16340hardcode_into_libs=no
16341
16342# when you set need_version to no, make sure it does not cause -set_version
16343# flags to be left without arguments
16344need_version=unknown
16345
16346case $host_os in
16347aix3*)
16348  version_type=linux # correct to gnu/linux during the next big refactor
16349  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16350  shlibpath_var=LIBPATH
16351
16352  # AIX 3 has no versioning support, so we append a major version to the name.
16353  soname_spec='${libname}${release}${shared_ext}$major'
16354  ;;
16355
16356aix[4-9]*)
16357  version_type=linux # correct to gnu/linux during the next big refactor
16358  need_lib_prefix=no
16359  need_version=no
16360  hardcode_into_libs=yes
16361  if test "$host_cpu" = ia64; then
16362    # AIX 5 supports IA64
16363    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16364    shlibpath_var=LD_LIBRARY_PATH
16365  else
16366    # With GCC up to 2.95.x, collect2 would create an import file
16367    # for dependence libraries.  The import file would start with
16368    # the line `#! .'.  This would cause the generated library to
16369    # depend on `.', always an invalid library.  This was fixed in
16370    # development snapshots of GCC prior to 3.0.
16371    case $host_os in
16372      aix4 | aix4.[01] | aix4.[01].*)
16373      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16374	   echo ' yes '
16375	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16376	:
16377      else
16378	can_build_shared=no
16379      fi
16380      ;;
16381    esac
16382    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16383    # soname into executable. Probably we can add versioning support to
16384    # collect2, so additional links can be useful in future.
16385    if test "$aix_use_runtimelinking" = yes; then
16386      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16387      # instead of lib<name>.a to let people know that these are not
16388      # typical AIX shared libraries.
16389      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390    else
16391      # We preserve .a as extension for shared libraries through AIX4.2
16392      # and later when we are not doing run time linking.
16393      library_names_spec='${libname}${release}.a $libname.a'
16394      soname_spec='${libname}${release}${shared_ext}$major'
16395    fi
16396    shlibpath_var=LIBPATH
16397  fi
16398  ;;
16399
16400amigaos*)
16401  case $host_cpu in
16402  powerpc)
16403    # Since July 2007 AmigaOS4 officially supports .so libraries.
16404    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16405    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406    ;;
16407  m68k)
16408    library_names_spec='$libname.ixlibrary $libname.a'
16409    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16410    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'
16411    ;;
16412  esac
16413  ;;
16414
16415beos*)
16416  library_names_spec='${libname}${shared_ext}'
16417  dynamic_linker="$host_os ld.so"
16418  shlibpath_var=LIBRARY_PATH
16419  ;;
16420
16421bsdi[45]*)
16422  version_type=linux # correct to gnu/linux during the next big refactor
16423  need_version=no
16424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425  soname_spec='${libname}${release}${shared_ext}$major'
16426  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16427  shlibpath_var=LD_LIBRARY_PATH
16428  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16429  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16430  # the default ld.so.conf also contains /usr/contrib/lib and
16431  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16432  # libtool to hard-code these into programs
16433  ;;
16434
16435cygwin* | mingw* | pw32* | cegcc*)
16436  version_type=windows
16437  shrext_cmds=".dll"
16438  need_version=no
16439  need_lib_prefix=no
16440
16441  case $GCC,$cc_basename in
16442  yes,*)
16443    # gcc
16444    library_names_spec='$libname.dll.a'
16445    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16446    postinstall_cmds='base_file=`basename \${file}`~
16447      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16448      dldir=$destdir/`dirname \$dlpath`~
16449      test -d \$dldir || mkdir -p \$dldir~
16450      $install_prog $dir/$dlname \$dldir/$dlname~
16451      chmod a+x \$dldir/$dlname~
16452      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16453        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16454      fi'
16455    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16456      dlpath=$dir/\$dldll~
16457       $RM \$dlpath'
16458    shlibpath_overrides_runpath=yes
16459
16460    case $host_os in
16461    cygwin*)
16462      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16463      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16464
16465      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16466      ;;
16467    mingw* | cegcc*)
16468      # MinGW DLLs use traditional 'lib' prefix
16469      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16470      ;;
16471    pw32*)
16472      # pw32 DLLs use 'pw' prefix rather than 'lib'
16473      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16474      ;;
16475    esac
16476    dynamic_linker='Win32 ld.exe'
16477    ;;
16478
16479  *,cl*)
16480    # Native MSVC
16481    libname_spec='$name'
16482    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16483    library_names_spec='${libname}.dll.lib'
16484
16485    case $build_os in
16486    mingw*)
16487      sys_lib_search_path_spec=
16488      lt_save_ifs=$IFS
16489      IFS=';'
16490      for lt_path in $LIB
16491      do
16492        IFS=$lt_save_ifs
16493        # Let DOS variable expansion print the short 8.3 style file name.
16494        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16495        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16496      done
16497      IFS=$lt_save_ifs
16498      # Convert to MSYS style.
16499      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16500      ;;
16501    cygwin*)
16502      # Convert to unix form, then to dos form, then back to unix form
16503      # but this time dos style (no spaces!) so that the unix form looks
16504      # like /cygdrive/c/PROGRA~1:/cygdr...
16505      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16506      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16507      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16508      ;;
16509    *)
16510      sys_lib_search_path_spec="$LIB"
16511      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16512        # It is most probably a Windows format PATH.
16513        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16514      else
16515        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16516      fi
16517      # FIXME: find the short name or the path components, as spaces are
16518      # common. (e.g. "Program Files" -> "PROGRA~1")
16519      ;;
16520    esac
16521
16522    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16523    postinstall_cmds='base_file=`basename \${file}`~
16524      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16525      dldir=$destdir/`dirname \$dlpath`~
16526      test -d \$dldir || mkdir -p \$dldir~
16527      $install_prog $dir/$dlname \$dldir/$dlname'
16528    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16529      dlpath=$dir/\$dldll~
16530       $RM \$dlpath'
16531    shlibpath_overrides_runpath=yes
16532    dynamic_linker='Win32 link.exe'
16533    ;;
16534
16535  *)
16536    # Assume MSVC wrapper
16537    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16538    dynamic_linker='Win32 ld.exe'
16539    ;;
16540  esac
16541  # FIXME: first we should search . and the directory the executable is in
16542  shlibpath_var=PATH
16543  ;;
16544
16545darwin* | rhapsody*)
16546  dynamic_linker="$host_os dyld"
16547  version_type=darwin
16548  need_lib_prefix=no
16549  need_version=no
16550  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16551  soname_spec='${libname}${release}${major}$shared_ext'
16552  shlibpath_overrides_runpath=yes
16553  shlibpath_var=DYLD_LIBRARY_PATH
16554  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16555
16556  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16557  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16558  ;;
16559
16560dgux*)
16561  version_type=linux # correct to gnu/linux during the next big refactor
16562  need_lib_prefix=no
16563  need_version=no
16564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16565  soname_spec='${libname}${release}${shared_ext}$major'
16566  shlibpath_var=LD_LIBRARY_PATH
16567  ;;
16568
16569freebsd* | dragonfly*)
16570  # DragonFly does not have aout.  When/if they implement a new
16571  # versioning mechanism, adjust this.
16572  if test -x /usr/bin/objformat; then
16573    objformat=`/usr/bin/objformat`
16574  else
16575    case $host_os in
16576    freebsd[23].*) objformat=aout ;;
16577    *) objformat=elf ;;
16578    esac
16579  fi
16580  version_type=freebsd-$objformat
16581  case $version_type in
16582    freebsd-elf*)
16583      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16584      need_version=no
16585      need_lib_prefix=no
16586      ;;
16587    freebsd-*)
16588      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16589      need_version=yes
16590      ;;
16591  esac
16592  shlibpath_var=LD_LIBRARY_PATH
16593  case $host_os in
16594  freebsd2.*)
16595    shlibpath_overrides_runpath=yes
16596    ;;
16597  freebsd3.[01]* | freebsdelf3.[01]*)
16598    shlibpath_overrides_runpath=yes
16599    hardcode_into_libs=yes
16600    ;;
16601  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16602  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16603    shlibpath_overrides_runpath=no
16604    hardcode_into_libs=yes
16605    ;;
16606  *) # from 4.6 on, and DragonFly
16607    shlibpath_overrides_runpath=yes
16608    hardcode_into_libs=yes
16609    ;;
16610  esac
16611  ;;
16612
16613gnu*)
16614  version_type=linux # correct to gnu/linux during the next big refactor
16615  need_lib_prefix=no
16616  need_version=no
16617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16618  soname_spec='${libname}${release}${shared_ext}$major'
16619  shlibpath_var=LD_LIBRARY_PATH
16620  shlibpath_overrides_runpath=no
16621  hardcode_into_libs=yes
16622  ;;
16623
16624haiku*)
16625  version_type=linux # correct to gnu/linux during the next big refactor
16626  need_lib_prefix=no
16627  need_version=no
16628  dynamic_linker="$host_os runtime_loader"
16629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16630  soname_spec='${libname}${release}${shared_ext}$major'
16631  shlibpath_var=LIBRARY_PATH
16632  shlibpath_overrides_runpath=yes
16633  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16634  hardcode_into_libs=yes
16635  ;;
16636
16637hpux9* | hpux10* | hpux11*)
16638  # Give a soname corresponding to the major version so that dld.sl refuses to
16639  # link against other versions.
16640  version_type=sunos
16641  need_lib_prefix=no
16642  need_version=no
16643  case $host_cpu in
16644  ia64*)
16645    shrext_cmds='.so'
16646    hardcode_into_libs=yes
16647    dynamic_linker="$host_os dld.so"
16648    shlibpath_var=LD_LIBRARY_PATH
16649    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16650    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651    soname_spec='${libname}${release}${shared_ext}$major'
16652    if test "X$HPUX_IA64_MODE" = X32; then
16653      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16654    else
16655      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16656    fi
16657    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16658    ;;
16659  hppa*64*)
16660    shrext_cmds='.sl'
16661    hardcode_into_libs=yes
16662    dynamic_linker="$host_os dld.sl"
16663    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16664    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16665    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16666    soname_spec='${libname}${release}${shared_ext}$major'
16667    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16668    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16669    ;;
16670  *)
16671    shrext_cmds='.sl'
16672    dynamic_linker="$host_os dld.sl"
16673    shlibpath_var=SHLIB_PATH
16674    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16675    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16676    soname_spec='${libname}${release}${shared_ext}$major'
16677    ;;
16678  esac
16679  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16680  postinstall_cmds='chmod 555 $lib'
16681  # or fails outright, so override atomically:
16682  install_override_mode=555
16683  ;;
16684
16685interix[3-9]*)
16686  version_type=linux # correct to gnu/linux during the next big refactor
16687  need_lib_prefix=no
16688  need_version=no
16689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16690  soname_spec='${libname}${release}${shared_ext}$major'
16691  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16692  shlibpath_var=LD_LIBRARY_PATH
16693  shlibpath_overrides_runpath=no
16694  hardcode_into_libs=yes
16695  ;;
16696
16697irix5* | irix6* | nonstopux*)
16698  case $host_os in
16699    nonstopux*) version_type=nonstopux ;;
16700    *)
16701	if test "$lt_cv_prog_gnu_ld" = yes; then
16702		version_type=linux # correct to gnu/linux during the next big refactor
16703	else
16704		version_type=irix
16705	fi ;;
16706  esac
16707  need_lib_prefix=no
16708  need_version=no
16709  soname_spec='${libname}${release}${shared_ext}$major'
16710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16711  case $host_os in
16712  irix5* | nonstopux*)
16713    libsuff= shlibsuff=
16714    ;;
16715  *)
16716    case $LD in # libtool.m4 will add one of these switches to LD
16717    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16718      libsuff= shlibsuff= libmagic=32-bit;;
16719    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16720      libsuff=32 shlibsuff=N32 libmagic=N32;;
16721    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16722      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16723    *) libsuff= shlibsuff= libmagic=never-match;;
16724    esac
16725    ;;
16726  esac
16727  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16728  shlibpath_overrides_runpath=no
16729  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16730  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16731  hardcode_into_libs=yes
16732  ;;
16733
16734# No shared lib support for Linux oldld, aout, or coff.
16735linux*oldld* | linux*aout* | linux*coff*)
16736  dynamic_linker=no
16737  ;;
16738
16739# This must be glibc/ELF.
16740linux* | k*bsd*-gnu | kopensolaris*-gnu)
16741  version_type=linux # correct to gnu/linux during the next big refactor
16742  need_lib_prefix=no
16743  need_version=no
16744  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745  soname_spec='${libname}${release}${shared_ext}$major'
16746  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16747  shlibpath_var=LD_LIBRARY_PATH
16748  shlibpath_overrides_runpath=no
16749
16750  # Some binutils ld are patched to set DT_RUNPATH
16751  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16752  $as_echo_n "(cached) " >&6
16753else
16754  lt_cv_shlibpath_overrides_runpath=no
16755    save_LDFLAGS=$LDFLAGS
16756    save_libdir=$libdir
16757    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16758	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760/* end confdefs.h.  */
16761
16762int
16763main ()
16764{
16765
16766  ;
16767  return 0;
16768}
16769_ACEOF
16770if ac_fn_c_try_link "$LINENO"; then :
16771  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16772  lt_cv_shlibpath_overrides_runpath=yes
16773fi
16774fi
16775rm -f core conftest.err conftest.$ac_objext \
16776    conftest$ac_exeext conftest.$ac_ext
16777    LDFLAGS=$save_LDFLAGS
16778    libdir=$save_libdir
16779
16780fi
16781
16782  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16783
16784  # This implies no fast_install, which is unacceptable.
16785  # Some rework will be needed to allow for fast_install
16786  # before this can be enabled.
16787  hardcode_into_libs=yes
16788
16789  # Add ABI-specific directories to the system library path.
16790  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16791
16792  # Append ld.so.conf contents to the search path
16793  if test -f /etc/ld.so.conf; then
16794    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' ' '`
16795    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16796
16797  fi
16798
16799  # We used to test for /lib/ld.so.1 and disable shared libraries on
16800  # powerpc, because MkLinux only supported shared libraries with the
16801  # GNU dynamic linker.  Since this was broken with cross compilers,
16802  # most powerpc-linux boxes support dynamic linking these days and
16803  # people can always --disable-shared, the test was removed, and we
16804  # assume the GNU/Linux dynamic linker is in use.
16805  dynamic_linker='GNU/Linux ld.so'
16806  ;;
16807
16808netbsd*)
16809  version_type=sunos
16810  need_lib_prefix=no
16811  need_version=no
16812  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16814    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16815    dynamic_linker='NetBSD (a.out) ld.so'
16816  else
16817    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16818    soname_spec='${libname}${release}${shared_ext}$major'
16819    dynamic_linker='NetBSD ld.elf_so'
16820  fi
16821  shlibpath_var=LD_LIBRARY_PATH
16822  shlibpath_overrides_runpath=yes
16823  hardcode_into_libs=yes
16824  ;;
16825
16826newsos6)
16827  version_type=linux # correct to gnu/linux during the next big refactor
16828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829  shlibpath_var=LD_LIBRARY_PATH
16830  shlibpath_overrides_runpath=yes
16831  ;;
16832
16833*nto* | *qnx*)
16834  version_type=qnx
16835  need_lib_prefix=no
16836  need_version=no
16837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838  soname_spec='${libname}${release}${shared_ext}$major'
16839  shlibpath_var=LD_LIBRARY_PATH
16840  shlibpath_overrides_runpath=no
16841  hardcode_into_libs=yes
16842  dynamic_linker='ldqnx.so'
16843  ;;
16844
16845openbsd*)
16846  version_type=sunos
16847  sys_lib_dlsearch_path_spec="/usr/lib"
16848  need_lib_prefix=no
16849  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16850  case $host_os in
16851    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16852    *)				need_version=no  ;;
16853  esac
16854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16855  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16856  shlibpath_var=LD_LIBRARY_PATH
16857  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16858    case $host_os in
16859      openbsd2.[89] | openbsd2.[89].*)
16860	shlibpath_overrides_runpath=no
16861	;;
16862      *)
16863	shlibpath_overrides_runpath=yes
16864	;;
16865      esac
16866  else
16867    shlibpath_overrides_runpath=yes
16868  fi
16869  ;;
16870
16871os2*)
16872  libname_spec='$name'
16873  shrext_cmds=".dll"
16874  need_lib_prefix=no
16875  library_names_spec='$libname${shared_ext} $libname.a'
16876  dynamic_linker='OS/2 ld.exe'
16877  shlibpath_var=LIBPATH
16878  ;;
16879
16880osf3* | osf4* | osf5*)
16881  version_type=osf
16882  need_lib_prefix=no
16883  need_version=no
16884  soname_spec='${libname}${release}${shared_ext}$major'
16885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886  shlibpath_var=LD_LIBRARY_PATH
16887  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16888  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16889  ;;
16890
16891rdos*)
16892  dynamic_linker=no
16893  ;;
16894
16895solaris*)
16896  version_type=linux # correct to gnu/linux during the next big refactor
16897  need_lib_prefix=no
16898  need_version=no
16899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16900  soname_spec='${libname}${release}${shared_ext}$major'
16901  shlibpath_var=LD_LIBRARY_PATH
16902  shlibpath_overrides_runpath=yes
16903  hardcode_into_libs=yes
16904  # ldd complains unless libraries are executable
16905  postinstall_cmds='chmod +x $lib'
16906  ;;
16907
16908sunos4*)
16909  version_type=sunos
16910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16911  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16912  shlibpath_var=LD_LIBRARY_PATH
16913  shlibpath_overrides_runpath=yes
16914  if test "$with_gnu_ld" = yes; then
16915    need_lib_prefix=no
16916  fi
16917  need_version=yes
16918  ;;
16919
16920sysv4 | sysv4.3*)
16921  version_type=linux # correct to gnu/linux during the next big refactor
16922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16923  soname_spec='${libname}${release}${shared_ext}$major'
16924  shlibpath_var=LD_LIBRARY_PATH
16925  case $host_vendor in
16926    sni)
16927      shlibpath_overrides_runpath=no
16928      need_lib_prefix=no
16929      runpath_var=LD_RUN_PATH
16930      ;;
16931    siemens)
16932      need_lib_prefix=no
16933      ;;
16934    motorola)
16935      need_lib_prefix=no
16936      need_version=no
16937      shlibpath_overrides_runpath=no
16938      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16939      ;;
16940  esac
16941  ;;
16942
16943sysv4*MP*)
16944  if test -d /usr/nec ;then
16945    version_type=linux # correct to gnu/linux during the next big refactor
16946    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16947    soname_spec='$libname${shared_ext}.$major'
16948    shlibpath_var=LD_LIBRARY_PATH
16949  fi
16950  ;;
16951
16952sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16953  version_type=freebsd-elf
16954  need_lib_prefix=no
16955  need_version=no
16956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16957  soname_spec='${libname}${release}${shared_ext}$major'
16958  shlibpath_var=LD_LIBRARY_PATH
16959  shlibpath_overrides_runpath=yes
16960  hardcode_into_libs=yes
16961  if test "$with_gnu_ld" = yes; then
16962    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16963  else
16964    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16965    case $host_os in
16966      sco3.2v5*)
16967        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16968	;;
16969    esac
16970  fi
16971  sys_lib_dlsearch_path_spec='/usr/lib'
16972  ;;
16973
16974tpf*)
16975  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16976  version_type=linux # correct to gnu/linux during the next big refactor
16977  need_lib_prefix=no
16978  need_version=no
16979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980  shlibpath_var=LD_LIBRARY_PATH
16981  shlibpath_overrides_runpath=no
16982  hardcode_into_libs=yes
16983  ;;
16984
16985uts4*)
16986  version_type=linux # correct to gnu/linux during the next big refactor
16987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988  soname_spec='${libname}${release}${shared_ext}$major'
16989  shlibpath_var=LD_LIBRARY_PATH
16990  ;;
16991
16992*)
16993  dynamic_linker=no
16994  ;;
16995esac
16996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16997$as_echo "$dynamic_linker" >&6; }
16998test "$dynamic_linker" = no && can_build_shared=no
16999
17000variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17001if test "$GCC" = yes; then
17002  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17003fi
17004
17005if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17006  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17007fi
17008if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17009  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17010fi
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17104$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17105hardcode_action=
17106if test -n "$hardcode_libdir_flag_spec" ||
17107   test -n "$runpath_var" ||
17108   test "X$hardcode_automatic" = "Xyes" ; then
17109
17110  # We can hardcode non-existent directories.
17111  if test "$hardcode_direct" != no &&
17112     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17113     # have to relink, otherwise we might link with an installed library
17114     # when we should be linking with a yet-to-be-installed one
17115     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17116     test "$hardcode_minus_L" != no; then
17117    # Linking always hardcodes the temporary library directory.
17118    hardcode_action=relink
17119  else
17120    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17121    hardcode_action=immediate
17122  fi
17123else
17124  # We cannot hardcode anything, or else we can only hardcode existing
17125  # directories.
17126  hardcode_action=unsupported
17127fi
17128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17129$as_echo "$hardcode_action" >&6; }
17130
17131if test "$hardcode_action" = relink ||
17132   test "$inherit_rpath" = yes; then
17133  # Fast installation is not supported
17134  enable_fast_install=no
17135elif test "$shlibpath_overrides_runpath" = yes ||
17136     test "$enable_shared" = no; then
17137  # Fast installation is not necessary
17138  enable_fast_install=needless
17139fi
17140
17141
17142
17143
17144
17145
17146  if test "x$enable_dlopen" != xyes; then
17147  enable_dlopen=unknown
17148  enable_dlopen_self=unknown
17149  enable_dlopen_self_static=unknown
17150else
17151  lt_cv_dlopen=no
17152  lt_cv_dlopen_libs=
17153
17154  case $host_os in
17155  beos*)
17156    lt_cv_dlopen="load_add_on"
17157    lt_cv_dlopen_libs=
17158    lt_cv_dlopen_self=yes
17159    ;;
17160
17161  mingw* | pw32* | cegcc*)
17162    lt_cv_dlopen="LoadLibrary"
17163    lt_cv_dlopen_libs=
17164    ;;
17165
17166  cygwin*)
17167    lt_cv_dlopen="dlopen"
17168    lt_cv_dlopen_libs=
17169    ;;
17170
17171  darwin*)
17172  # if libdl is installed we need to link against it
17173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17174$as_echo_n "checking for dlopen in -ldl... " >&6; }
17175if ${ac_cv_lib_dl_dlopen+:} false; then :
17176  $as_echo_n "(cached) " >&6
17177else
17178  ac_check_lib_save_LIBS=$LIBS
17179LIBS="-ldl  $LIBS"
17180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181/* end confdefs.h.  */
17182
17183/* Override any GCC internal prototype to avoid an error.
17184   Use char because int might match the return type of a GCC
17185   builtin and then its argument prototype would still apply.  */
17186#ifdef __cplusplus
17187extern "C"
17188#endif
17189char dlopen ();
17190int
17191main ()
17192{
17193return dlopen ();
17194  ;
17195  return 0;
17196}
17197_ACEOF
17198if ac_fn_c_try_link "$LINENO"; then :
17199  ac_cv_lib_dl_dlopen=yes
17200else
17201  ac_cv_lib_dl_dlopen=no
17202fi
17203rm -f core conftest.err conftest.$ac_objext \
17204    conftest$ac_exeext conftest.$ac_ext
17205LIBS=$ac_check_lib_save_LIBS
17206fi
17207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17208$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17209if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17210  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17211else
17212
17213    lt_cv_dlopen="dyld"
17214    lt_cv_dlopen_libs=
17215    lt_cv_dlopen_self=yes
17216
17217fi
17218
17219    ;;
17220
17221  *)
17222    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17223if test "x$ac_cv_func_shl_load" = xyes; then :
17224  lt_cv_dlopen="shl_load"
17225else
17226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17227$as_echo_n "checking for shl_load in -ldld... " >&6; }
17228if ${ac_cv_lib_dld_shl_load+:} false; then :
17229  $as_echo_n "(cached) " >&6
17230else
17231  ac_check_lib_save_LIBS=$LIBS
17232LIBS="-ldld  $LIBS"
17233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234/* end confdefs.h.  */
17235
17236/* Override any GCC internal prototype to avoid an error.
17237   Use char because int might match the return type of a GCC
17238   builtin and then its argument prototype would still apply.  */
17239#ifdef __cplusplus
17240extern "C"
17241#endif
17242char shl_load ();
17243int
17244main ()
17245{
17246return shl_load ();
17247  ;
17248  return 0;
17249}
17250_ACEOF
17251if ac_fn_c_try_link "$LINENO"; then :
17252  ac_cv_lib_dld_shl_load=yes
17253else
17254  ac_cv_lib_dld_shl_load=no
17255fi
17256rm -f core conftest.err conftest.$ac_objext \
17257    conftest$ac_exeext conftest.$ac_ext
17258LIBS=$ac_check_lib_save_LIBS
17259fi
17260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17261$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17262if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17263  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17264else
17265  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17266if test "x$ac_cv_func_dlopen" = xyes; then :
17267  lt_cv_dlopen="dlopen"
17268else
17269  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17270$as_echo_n "checking for dlopen in -ldl... " >&6; }
17271if ${ac_cv_lib_dl_dlopen+:} false; then :
17272  $as_echo_n "(cached) " >&6
17273else
17274  ac_check_lib_save_LIBS=$LIBS
17275LIBS="-ldl  $LIBS"
17276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277/* end confdefs.h.  */
17278
17279/* Override any GCC internal prototype to avoid an error.
17280   Use char because int might match the return type of a GCC
17281   builtin and then its argument prototype would still apply.  */
17282#ifdef __cplusplus
17283extern "C"
17284#endif
17285char dlopen ();
17286int
17287main ()
17288{
17289return dlopen ();
17290  ;
17291  return 0;
17292}
17293_ACEOF
17294if ac_fn_c_try_link "$LINENO"; then :
17295  ac_cv_lib_dl_dlopen=yes
17296else
17297  ac_cv_lib_dl_dlopen=no
17298fi
17299rm -f core conftest.err conftest.$ac_objext \
17300    conftest$ac_exeext conftest.$ac_ext
17301LIBS=$ac_check_lib_save_LIBS
17302fi
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17304$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17305if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17306  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17307else
17308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17309$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17310if ${ac_cv_lib_svld_dlopen+:} false; then :
17311  $as_echo_n "(cached) " >&6
17312else
17313  ac_check_lib_save_LIBS=$LIBS
17314LIBS="-lsvld  $LIBS"
17315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316/* end confdefs.h.  */
17317
17318/* Override any GCC internal prototype to avoid an error.
17319   Use char because int might match the return type of a GCC
17320   builtin and then its argument prototype would still apply.  */
17321#ifdef __cplusplus
17322extern "C"
17323#endif
17324char dlopen ();
17325int
17326main ()
17327{
17328return dlopen ();
17329  ;
17330  return 0;
17331}
17332_ACEOF
17333if ac_fn_c_try_link "$LINENO"; then :
17334  ac_cv_lib_svld_dlopen=yes
17335else
17336  ac_cv_lib_svld_dlopen=no
17337fi
17338rm -f core conftest.err conftest.$ac_objext \
17339    conftest$ac_exeext conftest.$ac_ext
17340LIBS=$ac_check_lib_save_LIBS
17341fi
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17343$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17344if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17345  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17346else
17347  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17348$as_echo_n "checking for dld_link in -ldld... " >&6; }
17349if ${ac_cv_lib_dld_dld_link+:} false; then :
17350  $as_echo_n "(cached) " >&6
17351else
17352  ac_check_lib_save_LIBS=$LIBS
17353LIBS="-ldld  $LIBS"
17354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355/* end confdefs.h.  */
17356
17357/* Override any GCC internal prototype to avoid an error.
17358   Use char because int might match the return type of a GCC
17359   builtin and then its argument prototype would still apply.  */
17360#ifdef __cplusplus
17361extern "C"
17362#endif
17363char dld_link ();
17364int
17365main ()
17366{
17367return dld_link ();
17368  ;
17369  return 0;
17370}
17371_ACEOF
17372if ac_fn_c_try_link "$LINENO"; then :
17373  ac_cv_lib_dld_dld_link=yes
17374else
17375  ac_cv_lib_dld_dld_link=no
17376fi
17377rm -f core conftest.err conftest.$ac_objext \
17378    conftest$ac_exeext conftest.$ac_ext
17379LIBS=$ac_check_lib_save_LIBS
17380fi
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17382$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17383if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17384  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17385fi
17386
17387
17388fi
17389
17390
17391fi
17392
17393
17394fi
17395
17396
17397fi
17398
17399
17400fi
17401
17402    ;;
17403  esac
17404
17405  if test "x$lt_cv_dlopen" != xno; then
17406    enable_dlopen=yes
17407  else
17408    enable_dlopen=no
17409  fi
17410
17411  case $lt_cv_dlopen in
17412  dlopen)
17413    save_CPPFLAGS="$CPPFLAGS"
17414    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17415
17416    save_LDFLAGS="$LDFLAGS"
17417    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17418
17419    save_LIBS="$LIBS"
17420    LIBS="$lt_cv_dlopen_libs $LIBS"
17421
17422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17423$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17424if ${lt_cv_dlopen_self+:} false; then :
17425  $as_echo_n "(cached) " >&6
17426else
17427  	  if test "$cross_compiling" = yes; then :
17428  lt_cv_dlopen_self=cross
17429else
17430  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17431  lt_status=$lt_dlunknown
17432  cat > conftest.$ac_ext <<_LT_EOF
17433#line $LINENO "configure"
17434#include "confdefs.h"
17435
17436#if HAVE_DLFCN_H
17437#include <dlfcn.h>
17438#endif
17439
17440#include <stdio.h>
17441
17442#ifdef RTLD_GLOBAL
17443#  define LT_DLGLOBAL		RTLD_GLOBAL
17444#else
17445#  ifdef DL_GLOBAL
17446#    define LT_DLGLOBAL		DL_GLOBAL
17447#  else
17448#    define LT_DLGLOBAL		0
17449#  endif
17450#endif
17451
17452/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17453   find out it does not work in some platform. */
17454#ifndef LT_DLLAZY_OR_NOW
17455#  ifdef RTLD_LAZY
17456#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17457#  else
17458#    ifdef DL_LAZY
17459#      define LT_DLLAZY_OR_NOW		DL_LAZY
17460#    else
17461#      ifdef RTLD_NOW
17462#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17463#      else
17464#        ifdef DL_NOW
17465#          define LT_DLLAZY_OR_NOW	DL_NOW
17466#        else
17467#          define LT_DLLAZY_OR_NOW	0
17468#        endif
17469#      endif
17470#    endif
17471#  endif
17472#endif
17473
17474/* When -fvisbility=hidden is used, assume the code has been annotated
17475   correspondingly for the symbols needed.  */
17476#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17477int fnord () __attribute__((visibility("default")));
17478#endif
17479
17480int fnord () { return 42; }
17481int main ()
17482{
17483  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17484  int status = $lt_dlunknown;
17485
17486  if (self)
17487    {
17488      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17489      else
17490        {
17491	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17492          else puts (dlerror ());
17493	}
17494      /* dlclose (self); */
17495    }
17496  else
17497    puts (dlerror ());
17498
17499  return status;
17500}
17501_LT_EOF
17502  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17503  (eval $ac_link) 2>&5
17504  ac_status=$?
17505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17506  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17507    (./conftest; exit; ) >&5 2>/dev/null
17508    lt_status=$?
17509    case x$lt_status in
17510      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17511      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17512      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17513    esac
17514  else :
17515    # compilation failed
17516    lt_cv_dlopen_self=no
17517  fi
17518fi
17519rm -fr conftest*
17520
17521
17522fi
17523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17524$as_echo "$lt_cv_dlopen_self" >&6; }
17525
17526    if test "x$lt_cv_dlopen_self" = xyes; then
17527      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17528      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17529$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17530if ${lt_cv_dlopen_self_static+:} false; then :
17531  $as_echo_n "(cached) " >&6
17532else
17533  	  if test "$cross_compiling" = yes; then :
17534  lt_cv_dlopen_self_static=cross
17535else
17536  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17537  lt_status=$lt_dlunknown
17538  cat > conftest.$ac_ext <<_LT_EOF
17539#line $LINENO "configure"
17540#include "confdefs.h"
17541
17542#if HAVE_DLFCN_H
17543#include <dlfcn.h>
17544#endif
17545
17546#include <stdio.h>
17547
17548#ifdef RTLD_GLOBAL
17549#  define LT_DLGLOBAL		RTLD_GLOBAL
17550#else
17551#  ifdef DL_GLOBAL
17552#    define LT_DLGLOBAL		DL_GLOBAL
17553#  else
17554#    define LT_DLGLOBAL		0
17555#  endif
17556#endif
17557
17558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17559   find out it does not work in some platform. */
17560#ifndef LT_DLLAZY_OR_NOW
17561#  ifdef RTLD_LAZY
17562#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17563#  else
17564#    ifdef DL_LAZY
17565#      define LT_DLLAZY_OR_NOW		DL_LAZY
17566#    else
17567#      ifdef RTLD_NOW
17568#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17569#      else
17570#        ifdef DL_NOW
17571#          define LT_DLLAZY_OR_NOW	DL_NOW
17572#        else
17573#          define LT_DLLAZY_OR_NOW	0
17574#        endif
17575#      endif
17576#    endif
17577#  endif
17578#endif
17579
17580/* When -fvisbility=hidden is used, assume the code has been annotated
17581   correspondingly for the symbols needed.  */
17582#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17583int fnord () __attribute__((visibility("default")));
17584#endif
17585
17586int fnord () { return 42; }
17587int main ()
17588{
17589  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17590  int status = $lt_dlunknown;
17591
17592  if (self)
17593    {
17594      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17595      else
17596        {
17597	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17598          else puts (dlerror ());
17599	}
17600      /* dlclose (self); */
17601    }
17602  else
17603    puts (dlerror ());
17604
17605  return status;
17606}
17607_LT_EOF
17608  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17609  (eval $ac_link) 2>&5
17610  ac_status=$?
17611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17612  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17613    (./conftest; exit; ) >&5 2>/dev/null
17614    lt_status=$?
17615    case x$lt_status in
17616      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17617      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17618      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17619    esac
17620  else :
17621    # compilation failed
17622    lt_cv_dlopen_self_static=no
17623  fi
17624fi
17625rm -fr conftest*
17626
17627
17628fi
17629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17630$as_echo "$lt_cv_dlopen_self_static" >&6; }
17631    fi
17632
17633    CPPFLAGS="$save_CPPFLAGS"
17634    LDFLAGS="$save_LDFLAGS"
17635    LIBS="$save_LIBS"
17636    ;;
17637  esac
17638
17639  case $lt_cv_dlopen_self in
17640  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17641  *) enable_dlopen_self=unknown ;;
17642  esac
17643
17644  case $lt_cv_dlopen_self_static in
17645  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17646  *) enable_dlopen_self_static=unknown ;;
17647  esac
17648fi
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666striplib=
17667old_striplib=
17668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17669$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17670if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17671  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17672  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17674$as_echo "yes" >&6; }
17675else
17676# FIXME - insert some real tests, host_os isn't really good enough
17677  case $host_os in
17678  darwin*)
17679    if test -n "$STRIP" ; then
17680      striplib="$STRIP -x"
17681      old_striplib="$STRIP -S"
17682      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17683$as_echo "yes" >&6; }
17684    else
17685      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17686$as_echo "no" >&6; }
17687    fi
17688    ;;
17689  *)
17690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17691$as_echo "no" >&6; }
17692    ;;
17693  esac
17694fi
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707  # Report which library types will actually be built
17708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17709$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17711$as_echo "$can_build_shared" >&6; }
17712
17713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17714$as_echo_n "checking whether to build shared libraries... " >&6; }
17715  test "$can_build_shared" = "no" && enable_shared=no
17716
17717  # On AIX, shared libraries and static libraries use the same namespace, and
17718  # are all built from PIC.
17719  case $host_os in
17720  aix3*)
17721    test "$enable_shared" = yes && enable_static=no
17722    if test -n "$RANLIB"; then
17723      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17724      postinstall_cmds='$RANLIB $lib'
17725    fi
17726    ;;
17727
17728  aix[4-9]*)
17729    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17730      test "$enable_shared" = yes && enable_static=no
17731    fi
17732    ;;
17733  esac
17734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17735$as_echo "$enable_shared" >&6; }
17736
17737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17738$as_echo_n "checking whether to build static libraries... " >&6; }
17739  # Make sure either enable_shared or enable_static is yes.
17740  test "$enable_shared" = yes || enable_static=yes
17741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17742$as_echo "$enable_static" >&6; }
17743
17744
17745
17746
17747fi
17748ac_ext=c
17749ac_cpp='$CPP $CPPFLAGS'
17750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17752ac_compiler_gnu=$ac_cv_c_compiler_gnu
17753
17754CC="$lt_save_CC"
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770        ac_config_commands="$ac_config_commands libtool"
17771
17772
17773
17774
17775# Only expand once:
17776
17777
17778
17779
17780
17781# Options
17782# Define a configure option for an alternate module directory
17783
17784# Check whether --with-xorg-module-dir was given.
17785if test "${with_xorg_module_dir+set}" = set; then :
17786  withval=$with_xorg_module_dir; moduledir="$withval"
17787else
17788  moduledir="$libdir/xorg/modules"
17789fi
17790
17791
17792# Store the list of server defined optional extensions in REQUIRED_MODULES
17793
17794
17795	SAVE_CFLAGS="$CFLAGS"
17796	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17797	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798/* end confdefs.h.  */
17799
17800#include "xorg-server.h"
17801#if !defined RANDR
17802#error RANDR not defined
17803#endif
17804
17805int
17806main ()
17807{
17808
17809  ;
17810  return 0;
17811}
17812_ACEOF
17813if ac_fn_c_try_compile "$LINENO"; then :
17814  _EXT_CHECK=yes
17815else
17816  _EXT_CHECK=no
17817fi
17818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819	CFLAGS="$SAVE_CFLAGS"
17820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17821$as_echo_n "checking if RANDR is defined... " >&6; }
17822	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17823$as_echo "$_EXT_CHECK" >&6; }
17824	if test "$_EXT_CHECK" != no; then
17825		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17826	fi
17827
17828
17829
17830	SAVE_CFLAGS="$CFLAGS"
17831	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17832	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833/* end confdefs.h.  */
17834
17835#include "xorg-server.h"
17836#if !defined RENDER
17837#error RENDER not defined
17838#endif
17839
17840int
17841main ()
17842{
17843
17844  ;
17845  return 0;
17846}
17847_ACEOF
17848if ac_fn_c_try_compile "$LINENO"; then :
17849  _EXT_CHECK=yes
17850else
17851  _EXT_CHECK=no
17852fi
17853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854	CFLAGS="$SAVE_CFLAGS"
17855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17856$as_echo_n "checking if RENDER is defined... " >&6; }
17857	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17858$as_echo "$_EXT_CHECK" >&6; }
17859	if test "$_EXT_CHECK" != no; then
17860		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17861	fi
17862
17863
17864
17865	SAVE_CFLAGS="$CFLAGS"
17866	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17867	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868/* end confdefs.h.  */
17869
17870#include "xorg-server.h"
17871#if !defined XV
17872#error XV not defined
17873#endif
17874
17875int
17876main ()
17877{
17878
17879  ;
17880  return 0;
17881}
17882_ACEOF
17883if ac_fn_c_try_compile "$LINENO"; then :
17884  _EXT_CHECK=yes
17885else
17886  _EXT_CHECK=no
17887fi
17888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17889	CFLAGS="$SAVE_CFLAGS"
17890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17891$as_echo_n "checking if XV is defined... " >&6; }
17892	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17893$as_echo "$_EXT_CHECK" >&6; }
17894	if test "$_EXT_CHECK" != no; then
17895		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17896	fi
17897
17898
17899
17900	SAVE_CFLAGS="$CFLAGS"
17901	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17902	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903/* end confdefs.h.  */
17904
17905#include "xorg-server.h"
17906#if !defined DPMSExtension
17907#error DPMSExtension not defined
17908#endif
17909
17910int
17911main ()
17912{
17913
17914  ;
17915  return 0;
17916}
17917_ACEOF
17918if ac_fn_c_try_compile "$LINENO"; then :
17919  _EXT_CHECK=yes
17920else
17921  _EXT_CHECK=no
17922fi
17923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924	CFLAGS="$SAVE_CFLAGS"
17925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17926$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17927	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17928$as_echo "$_EXT_CHECK" >&6; }
17929	if test "$_EXT_CHECK" != no; then
17930		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17931	fi
17932
17933
17934# Obtain compiler/linker options for the driver dependencies
17935
17936pkg_failed=no
17937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17938$as_echo_n "checking for XORG... " >&6; }
17939
17940if test -n "$XORG_CFLAGS"; then
17941    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17942 elif test -n "$PKG_CONFIG"; then
17943    if test -n "$PKG_CONFIG" && \
17944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17945  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
17946  ac_status=$?
17947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17948  test $ac_status = 0; }; then
17949  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17950else
17951  pkg_failed=yes
17952fi
17953 else
17954    pkg_failed=untried
17955fi
17956if test -n "$XORG_LIBS"; then
17957    pkg_cv_XORG_LIBS="$XORG_LIBS"
17958 elif test -n "$PKG_CONFIG"; then
17959    if test -n "$PKG_CONFIG" && \
17960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17961  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
17962  ac_status=$?
17963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17964  test $ac_status = 0; }; then
17965  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17966else
17967  pkg_failed=yes
17968fi
17969 else
17970    pkg_failed=untried
17971fi
17972
17973
17974
17975if test $pkg_failed = yes; then
17976   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17977$as_echo "no" >&6; }
17978
17979if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17980        _pkg_short_errors_supported=yes
17981else
17982        _pkg_short_errors_supported=no
17983fi
17984        if test $_pkg_short_errors_supported = yes; then
17985	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17986        else
17987	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17988        fi
17989	# Put the nasty error message in config.log where it belongs
17990	echo "$XORG_PKG_ERRORS" >&5
17991
17992	as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
17993
17994$XORG_PKG_ERRORS
17995
17996Consider adjusting the PKG_CONFIG_PATH environment variable if you
17997installed software in a non-standard prefix.
17998
17999Alternatively, you may set the environment variables XORG_CFLAGS
18000and XORG_LIBS to avoid the need to call pkg-config.
18001See the pkg-config man page for more details." "$LINENO" 5
18002
18003elif test $pkg_failed = untried; then
18004     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005$as_echo "no" >&6; }
18006	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18008as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18009is in your PATH or set the PKG_CONFIG environment variable to the full
18010path to pkg-config.
18011
18012Alternatively, you may set the environment variables XORG_CFLAGS
18013and XORG_LIBS to avoid the need to call pkg-config.
18014See the pkg-config man page for more details.
18015
18016To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18017See \`config.log' for more details" "$LINENO" 5; }
18018
18019else
18020	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18021	XORG_LIBS=$pkg_cv_XORG_LIBS
18022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18023$as_echo "yes" >&6; }
18024
18025fi
18026
18027pkg_failed=no
18028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18029$as_echo_n "checking for XEXT... " >&6; }
18030
18031if test -n "$XEXT_CFLAGS"; then
18032    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18033 elif test -n "$PKG_CONFIG"; then
18034    if test -n "$PKG_CONFIG" && \
18035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18036  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18037  ac_status=$?
18038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18039  test $ac_status = 0; }; then
18040  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18041else
18042  pkg_failed=yes
18043fi
18044 else
18045    pkg_failed=untried
18046fi
18047if test -n "$XEXT_LIBS"; then
18048    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18049 elif test -n "$PKG_CONFIG"; then
18050    if test -n "$PKG_CONFIG" && \
18051    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18052  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18053  ac_status=$?
18054  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18055  test $ac_status = 0; }; then
18056  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18057else
18058  pkg_failed=yes
18059fi
18060 else
18061    pkg_failed=untried
18062fi
18063
18064
18065
18066if test $pkg_failed = yes; then
18067   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18068$as_echo "no" >&6; }
18069
18070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18071        _pkg_short_errors_supported=yes
18072else
18073        _pkg_short_errors_supported=no
18074fi
18075        if test $_pkg_short_errors_supported = yes; then
18076	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
18077        else
18078	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
18079        fi
18080	# Put the nasty error message in config.log where it belongs
18081	echo "$XEXT_PKG_ERRORS" >&5
18082
18083	HAVE_XEXTPROTO_71="no"
18084elif test $pkg_failed = untried; then
18085     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18086$as_echo "no" >&6; }
18087	HAVE_XEXTPROTO_71="no"
18088else
18089	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18090	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18091        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18092$as_echo "yes" >&6; }
18093	HAVE_XEXTPROTO_71="yes";
18094$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18095
18096fi
18097 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18098  HAVE_XEXTPROTO_71_TRUE=
18099  HAVE_XEXTPROTO_71_FALSE='#'
18100else
18101  HAVE_XEXTPROTO_71_TRUE='#'
18102  HAVE_XEXTPROTO_71_FALSE=
18103fi
18104
18105
18106# Checks for libraries.
18107
18108
18109save_CFLAGS="$CFLAGS"
18110CFLAGS="$XORG_CFLAGS"
18111
18112# PCI rework
18113ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18114"
18115if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18116  XSERVER_LIBPCIACCESS=yes
18117else
18118  XSERVER_LIBPCIACCESS=no
18119fi
18120
18121if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then
18122
18123pkg_failed=no
18124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18125$as_echo_n "checking for PCIACCESS... " >&6; }
18126
18127if test -n "$PCIACCESS_CFLAGS"; then
18128    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18129 elif test -n "$PKG_CONFIG"; then
18130    if test -n "$PKG_CONFIG" && \
18131    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5
18132  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5
18133  ac_status=$?
18134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18135  test $ac_status = 0; }; then
18136  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10.7" 2>/dev/null`
18137else
18138  pkg_failed=yes
18139fi
18140 else
18141    pkg_failed=untried
18142fi
18143if test -n "$PCIACCESS_LIBS"; then
18144    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18145 elif test -n "$PKG_CONFIG"; then
18146    if test -n "$PKG_CONFIG" && \
18147    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5
18148  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5
18149  ac_status=$?
18150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18151  test $ac_status = 0; }; then
18152  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10.7" 2>/dev/null`
18153else
18154  pkg_failed=yes
18155fi
18156 else
18157    pkg_failed=untried
18158fi
18159
18160
18161
18162if test $pkg_failed = yes; then
18163   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18164$as_echo "no" >&6; }
18165
18166if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18167        _pkg_short_errors_supported=yes
18168else
18169        _pkg_short_errors_supported=no
18170fi
18171        if test $_pkg_short_errors_supported = yes; then
18172	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10.7" 2>&1`
18173        else
18174	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10.7" 2>&1`
18175        fi
18176	# Put the nasty error message in config.log where it belongs
18177	echo "$PCIACCESS_PKG_ERRORS" >&5
18178
18179	as_fn_error $? "Package requirements (pciaccess >= 0.10.7) were not met:
18180
18181$PCIACCESS_PKG_ERRORS
18182
18183Consider adjusting the PKG_CONFIG_PATH environment variable if you
18184installed software in a non-standard prefix.
18185
18186Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18187and PCIACCESS_LIBS to avoid the need to call pkg-config.
18188See the pkg-config man page for more details." "$LINENO" 5
18189
18190elif test $pkg_failed = untried; then
18191     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18192$as_echo "no" >&6; }
18193	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18195as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18196is in your PATH or set the PKG_CONFIG environment variable to the full
18197path to pkg-config.
18198
18199Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18200and PCIACCESS_LIBS to avoid the need to call pkg-config.
18201See the pkg-config man page for more details.
18202
18203To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18204See \`config.log' for more details" "$LINENO" 5; }
18205
18206else
18207	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18208	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18209        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18210$as_echo "yes" >&6; }
18211
18212fi
18213fi
18214
18215CFLAGS="$save_CFLAGS"
18216
18217# Check whether --enable-xaa was given.
18218if test "${enable_xaa+set}" = set; then :
18219  enableval=$enable_xaa; XAA="$enableval"
18220else
18221  XAA=auto
18222fi
18223
18224if test "x$XAA" != xno; then
18225        save_CFLAGS=$CFLAGS
18226        save_CPPFLAGS=$CPPFLAGS
18227        CFLAGS=$XORG_CFLAGS
18228        CPPFLAGS="$XORG_CFLAGS"
18229        for ac_header in xaa.h
18230do :
18231  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18232if test "x$ac_cv_header_xaa_h" = xyes; then :
18233  cat >>confdefs.h <<_ACEOF
18234#define HAVE_XAA_H 1
18235_ACEOF
18236 XAA=yes
18237else
18238  XAA=no
18239fi
18240
18241done
18242
18243        CFLAGS=$save_CFLAGS
18244        CPPFLAGS=$save_CPPFLAGS
18245fi
18246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18247$as_echo_n "checking whether to include XAA support... " >&6; }
18248 if test "x$XAA" = xyes; then
18249  XAA_TRUE=
18250  XAA_FALSE='#'
18251else
18252  XAA_TRUE='#'
18253  XAA_FALSE=
18254fi
18255
18256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18257$as_echo "$XAA" >&6; }
18258
18259# Substitutions
18260
18261
18262DRIVER_NAME=nv
18263
18264
18265ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18266
18267cat >confcache <<\_ACEOF
18268# This file is a shell script that caches the results of configure
18269# tests run on this system so they can be shared between configure
18270# scripts and configure runs, see configure's option --config-cache.
18271# It is not useful on other systems.  If it contains results you don't
18272# want to keep, you may remove or edit it.
18273#
18274# config.status only pays attention to the cache file if you give it
18275# the --recheck option to rerun configure.
18276#
18277# `ac_cv_env_foo' variables (set or unset) will be overridden when
18278# loading this file, other *unset* `ac_cv_foo' will be assigned the
18279# following values.
18280
18281_ACEOF
18282
18283# The following way of writing the cache mishandles newlines in values,
18284# but we know of no workaround that is simple, portable, and efficient.
18285# So, we kill variables containing newlines.
18286# Ultrix sh set writes to stderr and can't be redirected directly,
18287# and sets the high bit in the cache file unless we assign to the vars.
18288(
18289  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18290    eval ac_val=\$$ac_var
18291    case $ac_val in #(
18292    *${as_nl}*)
18293      case $ac_var in #(
18294      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18296      esac
18297      case $ac_var in #(
18298      _ | IFS | as_nl) ;; #(
18299      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18300      *) { eval $ac_var=; unset $ac_var;} ;;
18301      esac ;;
18302    esac
18303  done
18304
18305  (set) 2>&1 |
18306    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18307    *${as_nl}ac_space=\ *)
18308      # `set' does not quote correctly, so add quotes: double-quote
18309      # substitution turns \\\\ into \\, and sed turns \\ into \.
18310      sed -n \
18311	"s/'/'\\\\''/g;
18312	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18313      ;; #(
18314    *)
18315      # `set' quotes correctly as required by POSIX, so do not add quotes.
18316      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18317      ;;
18318    esac |
18319    sort
18320) |
18321  sed '
18322     /^ac_cv_env_/b end
18323     t clear
18324     :clear
18325     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18326     t end
18327     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18328     :end' >>confcache
18329if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18330  if test -w "$cache_file"; then
18331    if test "x$cache_file" != "x/dev/null"; then
18332      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18333$as_echo "$as_me: updating cache $cache_file" >&6;}
18334      if test ! -f "$cache_file" || test -h "$cache_file"; then
18335	cat confcache >"$cache_file"
18336      else
18337        case $cache_file in #(
18338        */* | ?:*)
18339	  mv -f confcache "$cache_file"$$ &&
18340	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18341        *)
18342	  mv -f confcache "$cache_file" ;;
18343	esac
18344      fi
18345    fi
18346  else
18347    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18348$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18349  fi
18350fi
18351rm -f confcache
18352
18353test "x$prefix" = xNONE && prefix=$ac_default_prefix
18354# Let make expand exec_prefix.
18355test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18356
18357DEFS=-DHAVE_CONFIG_H
18358
18359ac_libobjs=
18360ac_ltlibobjs=
18361U=
18362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18363  # 1. Remove the extension, and $U if already installed.
18364  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18365  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18366  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18367  #    will be set to the directory where LIBOBJS objects are built.
18368  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18369  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18370done
18371LIBOBJS=$ac_libobjs
18372
18373LTLIBOBJS=$ac_ltlibobjs
18374
18375
18376if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18377  as_fn_error $? "conditional \"AMDEP\" was never defined.
18378Usually this means the macro was only invoked conditionally." "$LINENO" 5
18379fi
18380if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18381  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18382Usually this means the macro was only invoked conditionally." "$LINENO" 5
18383fi
18384 if test -n "$EXEEXT"; then
18385  am__EXEEXT_TRUE=
18386  am__EXEEXT_FALSE='#'
18387else
18388  am__EXEEXT_TRUE='#'
18389  am__EXEEXT_FALSE=
18390fi
18391
18392if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18393  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18394Usually this means the macro was only invoked conditionally." "$LINENO" 5
18395fi
18396if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18397  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18398Usually this means the macro was only invoked conditionally." "$LINENO" 5
18399fi
18400if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18401  as_fn_error $? "conditional \"XAA\" was never defined.
18402Usually this means the macro was only invoked conditionally." "$LINENO" 5
18403fi
18404
18405: "${CONFIG_STATUS=./config.status}"
18406ac_write_fail=0
18407ac_clean_files_save=$ac_clean_files
18408ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18409{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18410$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18411as_write_fail=0
18412cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18413#! $SHELL
18414# Generated by $as_me.
18415# Run this file to recreate the current configuration.
18416# Compiler output produced by configure, useful for debugging
18417# configure, is in config.log if it exists.
18418
18419debug=false
18420ac_cs_recheck=false
18421ac_cs_silent=false
18422
18423SHELL=\${CONFIG_SHELL-$SHELL}
18424export SHELL
18425_ASEOF
18426cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18427## -------------------- ##
18428## M4sh Initialization. ##
18429## -------------------- ##
18430
18431# Be more Bourne compatible
18432DUALCASE=1; export DUALCASE # for MKS sh
18433if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18434  emulate sh
18435  NULLCMD=:
18436  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18437  # is contrary to our usage.  Disable this feature.
18438  alias -g '${1+"$@"}'='"$@"'
18439  setopt NO_GLOB_SUBST
18440else
18441  case `(set -o) 2>/dev/null` in #(
18442  *posix*) :
18443    set -o posix ;; #(
18444  *) :
18445     ;;
18446esac
18447fi
18448
18449
18450as_nl='
18451'
18452export as_nl
18453# Printing a long string crashes Solaris 7 /usr/bin/printf.
18454as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18455as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18456as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18457# Prefer a ksh shell builtin over an external printf program on Solaris,
18458# but without wasting forks for bash or zsh.
18459if test -z "$BASH_VERSION$ZSH_VERSION" \
18460    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18461  as_echo='print -r --'
18462  as_echo_n='print -rn --'
18463elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18464  as_echo='printf %s\n'
18465  as_echo_n='printf %s'
18466else
18467  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18468    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18469    as_echo_n='/usr/ucb/echo -n'
18470  else
18471    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18472    as_echo_n_body='eval
18473      arg=$1;
18474      case $arg in #(
18475      *"$as_nl"*)
18476	expr "X$arg" : "X\\(.*\\)$as_nl";
18477	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18478      esac;
18479      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18480    '
18481    export as_echo_n_body
18482    as_echo_n='sh -c $as_echo_n_body as_echo'
18483  fi
18484  export as_echo_body
18485  as_echo='sh -c $as_echo_body as_echo'
18486fi
18487
18488# The user is always right.
18489if test "${PATH_SEPARATOR+set}" != set; then
18490  PATH_SEPARATOR=:
18491  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18492    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18493      PATH_SEPARATOR=';'
18494  }
18495fi
18496
18497
18498# IFS
18499# We need space, tab and new line, in precisely that order.  Quoting is
18500# there to prevent editors from complaining about space-tab.
18501# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18502# splitting by setting IFS to empty value.)
18503IFS=" ""	$as_nl"
18504
18505# Find who we are.  Look in the path if we contain no directory separator.
18506as_myself=
18507case $0 in #((
18508  *[\\/]* ) as_myself=$0 ;;
18509  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18510for as_dir in $PATH
18511do
18512  IFS=$as_save_IFS
18513  test -z "$as_dir" && as_dir=.
18514    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18515  done
18516IFS=$as_save_IFS
18517
18518     ;;
18519esac
18520# We did not find ourselves, most probably we were run as `sh COMMAND'
18521# in which case we are not to be found in the path.
18522if test "x$as_myself" = x; then
18523  as_myself=$0
18524fi
18525if test ! -f "$as_myself"; then
18526  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18527  exit 1
18528fi
18529
18530# Unset variables that we do not need and which cause bugs (e.g. in
18531# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18532# suppresses any "Segmentation fault" message there.  '((' could
18533# trigger a bug in pdksh 5.2.14.
18534for as_var in BASH_ENV ENV MAIL MAILPATH
18535do eval test x\${$as_var+set} = xset \
18536  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18537done
18538PS1='$ '
18539PS2='> '
18540PS4='+ '
18541
18542# NLS nuisances.
18543LC_ALL=C
18544export LC_ALL
18545LANGUAGE=C
18546export LANGUAGE
18547
18548# CDPATH.
18549(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18550
18551
18552# as_fn_error STATUS ERROR [LINENO LOG_FD]
18553# ----------------------------------------
18554# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18555# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18556# script with STATUS, using 1 if that was 0.
18557as_fn_error ()
18558{
18559  as_status=$1; test $as_status -eq 0 && as_status=1
18560  if test "$4"; then
18561    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18562    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18563  fi
18564  $as_echo "$as_me: error: $2" >&2
18565  as_fn_exit $as_status
18566} # as_fn_error
18567
18568
18569# as_fn_set_status STATUS
18570# -----------------------
18571# Set $? to STATUS, without forking.
18572as_fn_set_status ()
18573{
18574  return $1
18575} # as_fn_set_status
18576
18577# as_fn_exit STATUS
18578# -----------------
18579# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18580as_fn_exit ()
18581{
18582  set +e
18583  as_fn_set_status $1
18584  exit $1
18585} # as_fn_exit
18586
18587# as_fn_unset VAR
18588# ---------------
18589# Portably unset VAR.
18590as_fn_unset ()
18591{
18592  { eval $1=; unset $1;}
18593}
18594as_unset=as_fn_unset
18595# as_fn_append VAR VALUE
18596# ----------------------
18597# Append the text in VALUE to the end of the definition contained in VAR. Take
18598# advantage of any shell optimizations that allow amortized linear growth over
18599# repeated appends, instead of the typical quadratic growth present in naive
18600# implementations.
18601if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18602  eval 'as_fn_append ()
18603  {
18604    eval $1+=\$2
18605  }'
18606else
18607  as_fn_append ()
18608  {
18609    eval $1=\$$1\$2
18610  }
18611fi # as_fn_append
18612
18613# as_fn_arith ARG...
18614# ------------------
18615# Perform arithmetic evaluation on the ARGs, and store the result in the
18616# global $as_val. Take advantage of shells that can avoid forks. The arguments
18617# must be portable across $(()) and expr.
18618if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18619  eval 'as_fn_arith ()
18620  {
18621    as_val=$(( $* ))
18622  }'
18623else
18624  as_fn_arith ()
18625  {
18626    as_val=`expr "$@" || test $? -eq 1`
18627  }
18628fi # as_fn_arith
18629
18630
18631if expr a : '\(a\)' >/dev/null 2>&1 &&
18632   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18633  as_expr=expr
18634else
18635  as_expr=false
18636fi
18637
18638if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18639  as_basename=basename
18640else
18641  as_basename=false
18642fi
18643
18644if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18645  as_dirname=dirname
18646else
18647  as_dirname=false
18648fi
18649
18650as_me=`$as_basename -- "$0" ||
18651$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18652	 X"$0" : 'X\(//\)$' \| \
18653	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18654$as_echo X/"$0" |
18655    sed '/^.*\/\([^/][^/]*\)\/*$/{
18656	    s//\1/
18657	    q
18658	  }
18659	  /^X\/\(\/\/\)$/{
18660	    s//\1/
18661	    q
18662	  }
18663	  /^X\/\(\/\).*/{
18664	    s//\1/
18665	    q
18666	  }
18667	  s/.*/./; q'`
18668
18669# Avoid depending upon Character Ranges.
18670as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18671as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18672as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18673as_cr_digits='0123456789'
18674as_cr_alnum=$as_cr_Letters$as_cr_digits
18675
18676ECHO_C= ECHO_N= ECHO_T=
18677case `echo -n x` in #(((((
18678-n*)
18679  case `echo 'xy\c'` in
18680  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18681  xy)  ECHO_C='\c';;
18682  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18683       ECHO_T='	';;
18684  esac;;
18685*)
18686  ECHO_N='-n';;
18687esac
18688
18689rm -f conf$$ conf$$.exe conf$$.file
18690if test -d conf$$.dir; then
18691  rm -f conf$$.dir/conf$$.file
18692else
18693  rm -f conf$$.dir
18694  mkdir conf$$.dir 2>/dev/null
18695fi
18696if (echo >conf$$.file) 2>/dev/null; then
18697  if ln -s conf$$.file conf$$ 2>/dev/null; then
18698    as_ln_s='ln -s'
18699    # ... but there are two gotchas:
18700    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18701    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18702    # In both cases, we have to default to `cp -p'.
18703    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18704      as_ln_s='cp -p'
18705  elif ln conf$$.file conf$$ 2>/dev/null; then
18706    as_ln_s=ln
18707  else
18708    as_ln_s='cp -p'
18709  fi
18710else
18711  as_ln_s='cp -p'
18712fi
18713rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18714rmdir conf$$.dir 2>/dev/null
18715
18716
18717# as_fn_mkdir_p
18718# -------------
18719# Create "$as_dir" as a directory, including parents if necessary.
18720as_fn_mkdir_p ()
18721{
18722
18723  case $as_dir in #(
18724  -*) as_dir=./$as_dir;;
18725  esac
18726  test -d "$as_dir" || eval $as_mkdir_p || {
18727    as_dirs=
18728    while :; do
18729      case $as_dir in #(
18730      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18731      *) as_qdir=$as_dir;;
18732      esac
18733      as_dirs="'$as_qdir' $as_dirs"
18734      as_dir=`$as_dirname -- "$as_dir" ||
18735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18736	 X"$as_dir" : 'X\(//\)[^/]' \| \
18737	 X"$as_dir" : 'X\(//\)$' \| \
18738	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18739$as_echo X"$as_dir" |
18740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18741	    s//\1/
18742	    q
18743	  }
18744	  /^X\(\/\/\)[^/].*/{
18745	    s//\1/
18746	    q
18747	  }
18748	  /^X\(\/\/\)$/{
18749	    s//\1/
18750	    q
18751	  }
18752	  /^X\(\/\).*/{
18753	    s//\1/
18754	    q
18755	  }
18756	  s/.*/./; q'`
18757      test -d "$as_dir" && break
18758    done
18759    test -z "$as_dirs" || eval "mkdir $as_dirs"
18760  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18761
18762
18763} # as_fn_mkdir_p
18764if mkdir -p . 2>/dev/null; then
18765  as_mkdir_p='mkdir -p "$as_dir"'
18766else
18767  test -d ./-p && rmdir ./-p
18768  as_mkdir_p=false
18769fi
18770
18771if test -x / >/dev/null 2>&1; then
18772  as_test_x='test -x'
18773else
18774  if ls -dL / >/dev/null 2>&1; then
18775    as_ls_L_option=L
18776  else
18777    as_ls_L_option=
18778  fi
18779  as_test_x='
18780    eval sh -c '\''
18781      if test -d "$1"; then
18782	test -d "$1/.";
18783      else
18784	case $1 in #(
18785	-*)set "./$1";;
18786	esac;
18787	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18788	???[sx]*):;;*)false;;esac;fi
18789    '\'' sh
18790  '
18791fi
18792as_executable_p=$as_test_x
18793
18794# Sed expression to map a string onto a valid CPP name.
18795as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18796
18797# Sed expression to map a string onto a valid variable name.
18798as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18799
18800
18801exec 6>&1
18802## ----------------------------------- ##
18803## Main body of $CONFIG_STATUS script. ##
18804## ----------------------------------- ##
18805_ASEOF
18806test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18807
18808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18809# Save the log message, to keep $0 and so on meaningful, and to
18810# report actual input values of CONFIG_FILES etc. instead of their
18811# values after options handling.
18812ac_log="
18813This file was extended by xf86-video-nv $as_me 2.1.20, which was
18814generated by GNU Autoconf 2.68.  Invocation command line was
18815
18816  CONFIG_FILES    = $CONFIG_FILES
18817  CONFIG_HEADERS  = $CONFIG_HEADERS
18818  CONFIG_LINKS    = $CONFIG_LINKS
18819  CONFIG_COMMANDS = $CONFIG_COMMANDS
18820  $ $0 $@
18821
18822on `(hostname || uname -n) 2>/dev/null | sed 1q`
18823"
18824
18825_ACEOF
18826
18827case $ac_config_files in *"
18828"*) set x $ac_config_files; shift; ac_config_files=$*;;
18829esac
18830
18831case $ac_config_headers in *"
18832"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18833esac
18834
18835
18836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18837# Files that config.status was made for.
18838config_files="$ac_config_files"
18839config_headers="$ac_config_headers"
18840config_commands="$ac_config_commands"
18841
18842_ACEOF
18843
18844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18845ac_cs_usage="\
18846\`$as_me' instantiates files and other configuration actions
18847from templates according to the current configuration.  Unless the files
18848and actions are specified as TAGs, all are instantiated by default.
18849
18850Usage: $0 [OPTION]... [TAG]...
18851
18852  -h, --help       print this help, then exit
18853  -V, --version    print version number and configuration settings, then exit
18854      --config     print configuration, then exit
18855  -q, --quiet, --silent
18856                   do not print progress messages
18857  -d, --debug      don't remove temporary files
18858      --recheck    update $as_me by reconfiguring in the same conditions
18859      --file=FILE[:TEMPLATE]
18860                   instantiate the configuration file FILE
18861      --header=FILE[:TEMPLATE]
18862                   instantiate the configuration header FILE
18863
18864Configuration files:
18865$config_files
18866
18867Configuration headers:
18868$config_headers
18869
18870Configuration commands:
18871$config_commands
18872
18873Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18874
18875_ACEOF
18876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18877ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18878ac_cs_version="\\
18879xf86-video-nv config.status 2.1.20
18880configured by $0, generated by GNU Autoconf 2.68,
18881  with options \\"\$ac_cs_config\\"
18882
18883Copyright (C) 2010 Free Software Foundation, Inc.
18884This config.status script is free software; the Free Software Foundation
18885gives unlimited permission to copy, distribute and modify it."
18886
18887ac_pwd='$ac_pwd'
18888srcdir='$srcdir'
18889INSTALL='$INSTALL'
18890MKDIR_P='$MKDIR_P'
18891AWK='$AWK'
18892test -n "\$AWK" || AWK=awk
18893_ACEOF
18894
18895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18896# The default lists apply if the user does not specify any file.
18897ac_need_defaults=:
18898while test $# != 0
18899do
18900  case $1 in
18901  --*=?*)
18902    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18903    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18904    ac_shift=:
18905    ;;
18906  --*=)
18907    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18908    ac_optarg=
18909    ac_shift=:
18910    ;;
18911  *)
18912    ac_option=$1
18913    ac_optarg=$2
18914    ac_shift=shift
18915    ;;
18916  esac
18917
18918  case $ac_option in
18919  # Handling of the options.
18920  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18921    ac_cs_recheck=: ;;
18922  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18923    $as_echo "$ac_cs_version"; exit ;;
18924  --config | --confi | --conf | --con | --co | --c )
18925    $as_echo "$ac_cs_config"; exit ;;
18926  --debug | --debu | --deb | --de | --d | -d )
18927    debug=: ;;
18928  --file | --fil | --fi | --f )
18929    $ac_shift
18930    case $ac_optarg in
18931    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18932    '') as_fn_error $? "missing file argument" ;;
18933    esac
18934    as_fn_append CONFIG_FILES " '$ac_optarg'"
18935    ac_need_defaults=false;;
18936  --header | --heade | --head | --hea )
18937    $ac_shift
18938    case $ac_optarg in
18939    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18940    esac
18941    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18942    ac_need_defaults=false;;
18943  --he | --h)
18944    # Conflict between --help and --header
18945    as_fn_error $? "ambiguous option: \`$1'
18946Try \`$0 --help' for more information.";;
18947  --help | --hel | -h )
18948    $as_echo "$ac_cs_usage"; exit ;;
18949  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18950  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18951    ac_cs_silent=: ;;
18952
18953  # This is an error.
18954  -*) as_fn_error $? "unrecognized option: \`$1'
18955Try \`$0 --help' for more information." ;;
18956
18957  *) as_fn_append ac_config_targets " $1"
18958     ac_need_defaults=false ;;
18959
18960  esac
18961  shift
18962done
18963
18964ac_configure_extra_args=
18965
18966if $ac_cs_silent; then
18967  exec 6>/dev/null
18968  ac_configure_extra_args="$ac_configure_extra_args --silent"
18969fi
18970
18971_ACEOF
18972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18973if \$ac_cs_recheck; then
18974  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18975  shift
18976  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18977  CONFIG_SHELL='$SHELL'
18978  export CONFIG_SHELL
18979  exec "\$@"
18980fi
18981
18982_ACEOF
18983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18984exec 5>>config.log
18985{
18986  echo
18987  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18988## Running $as_me. ##
18989_ASBOX
18990  $as_echo "$ac_log"
18991} >&5
18992
18993_ACEOF
18994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18995#
18996# INIT-COMMANDS
18997#
18998AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18999
19000
19001# The HP-UX ksh and POSIX shell print the target directory to stdout
19002# if CDPATH is set.
19003(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19004
19005sed_quote_subst='$sed_quote_subst'
19006double_quote_subst='$double_quote_subst'
19007delay_variable_subst='$delay_variable_subst'
19008enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19009macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19010macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19011enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19012pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19013enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19014SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19015ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19016PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19017host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19018host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19019host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19020build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19021build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19022build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19023SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19024Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19025GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19026EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19027FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19028LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19029NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19030LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19031max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19032ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19033exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19034lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19035lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19036lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19037lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19038lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19039reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19040reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19041OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19042deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19043file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19044file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19045want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19046DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19047sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19048AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19049AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19050archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19051STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19052RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19053old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19054old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19055old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19056lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19057CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19058CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19059compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19060GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19061lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19062lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19063lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19064lt_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"`'
19065nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19066lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19067objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19068MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19069lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19070lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19071lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19072lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19073lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19074need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19075MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19076DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19077NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19078LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19079OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19080OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19081libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19082shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19083extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19084archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19085enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19086export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19087whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19088compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19089old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19090old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19091archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19092archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19093module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19094module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19095with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19096allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19097no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19098hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19099hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19100hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19101hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19102hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19103hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19104hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19105inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19106link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19107always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19108export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19109exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19110include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19111prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19112postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19113file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19114variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19115need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19116need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19117version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19118runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19119shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19120shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19121libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19122library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19123soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19124install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19125postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19126postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19127finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19128finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19129hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19130sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19131sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19132hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19133enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19134enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19135enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19136old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19137striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19138
19139LTCC='$LTCC'
19140LTCFLAGS='$LTCFLAGS'
19141compiler='$compiler_DEFAULT'
19142
19143# A function that is used when there is no print builtin or printf.
19144func_fallback_echo ()
19145{
19146  eval 'cat <<_LTECHO_EOF
19147\$1
19148_LTECHO_EOF'
19149}
19150
19151# Quote evaled strings.
19152for var in SHELL \
19153ECHO \
19154PATH_SEPARATOR \
19155SED \
19156GREP \
19157EGREP \
19158FGREP \
19159LD \
19160NM \
19161LN_S \
19162lt_SP2NL \
19163lt_NL2SP \
19164reload_flag \
19165OBJDUMP \
19166deplibs_check_method \
19167file_magic_cmd \
19168file_magic_glob \
19169want_nocaseglob \
19170DLLTOOL \
19171sharedlib_from_linklib_cmd \
19172AR \
19173AR_FLAGS \
19174archiver_list_spec \
19175STRIP \
19176RANLIB \
19177CC \
19178CFLAGS \
19179compiler \
19180lt_cv_sys_global_symbol_pipe \
19181lt_cv_sys_global_symbol_to_cdecl \
19182lt_cv_sys_global_symbol_to_c_name_address \
19183lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19184nm_file_list_spec \
19185lt_prog_compiler_no_builtin_flag \
19186lt_prog_compiler_pic \
19187lt_prog_compiler_wl \
19188lt_prog_compiler_static \
19189lt_cv_prog_compiler_c_o \
19190need_locks \
19191MANIFEST_TOOL \
19192DSYMUTIL \
19193NMEDIT \
19194LIPO \
19195OTOOL \
19196OTOOL64 \
19197shrext_cmds \
19198export_dynamic_flag_spec \
19199whole_archive_flag_spec \
19200compiler_needs_object \
19201with_gnu_ld \
19202allow_undefined_flag \
19203no_undefined_flag \
19204hardcode_libdir_flag_spec \
19205hardcode_libdir_separator \
19206exclude_expsyms \
19207include_expsyms \
19208file_list_spec \
19209variables_saved_for_relink \
19210libname_spec \
19211library_names_spec \
19212soname_spec \
19213install_override_mode \
19214finish_eval \
19215old_striplib \
19216striplib; do
19217    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19218    *[\\\\\\\`\\"\\\$]*)
19219      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19220      ;;
19221    *)
19222      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19223      ;;
19224    esac
19225done
19226
19227# Double-quote double-evaled strings.
19228for var in reload_cmds \
19229old_postinstall_cmds \
19230old_postuninstall_cmds \
19231old_archive_cmds \
19232extract_expsyms_cmds \
19233old_archive_from_new_cmds \
19234old_archive_from_expsyms_cmds \
19235archive_cmds \
19236archive_expsym_cmds \
19237module_cmds \
19238module_expsym_cmds \
19239export_symbols_cmds \
19240prelink_cmds \
19241postlink_cmds \
19242postinstall_cmds \
19243postuninstall_cmds \
19244finish_cmds \
19245sys_lib_search_path_spec \
19246sys_lib_dlsearch_path_spec; do
19247    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19248    *[\\\\\\\`\\"\\\$]*)
19249      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19250      ;;
19251    *)
19252      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19253      ;;
19254    esac
19255done
19256
19257ac_aux_dir='$ac_aux_dir'
19258xsi_shell='$xsi_shell'
19259lt_shell_append='$lt_shell_append'
19260
19261# See if we are running on zsh, and set the options which allow our
19262# commands through without removal of \ escapes INIT.
19263if test -n "\${ZSH_VERSION+set}" ; then
19264   setopt NO_GLOB_SUBST
19265fi
19266
19267
19268    PACKAGE='$PACKAGE'
19269    VERSION='$VERSION'
19270    TIMESTAMP='$TIMESTAMP'
19271    RM='$RM'
19272    ofile='$ofile'
19273
19274
19275
19276
19277_ACEOF
19278
19279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19280
19281# Handling of arguments.
19282for ac_config_target in $ac_config_targets
19283do
19284  case $ac_config_target in
19285    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19286    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19287    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19288    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19289    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19290    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19291
19292  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19293  esac
19294done
19295
19296
19297# If the user did not use the arguments to specify the items to instantiate,
19298# then the envvar interface is used.  Set only those that are not.
19299# We use the long form for the default assignment because of an extremely
19300# bizarre bug on SunOS 4.1.3.
19301if $ac_need_defaults; then
19302  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19303  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19304  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19305fi
19306
19307# Have a temporary directory for convenience.  Make it in the build tree
19308# simply because there is no reason against having it here, and in addition,
19309# creating and moving files from /tmp can sometimes cause problems.
19310# Hook for its removal unless debugging.
19311# Note that there is a small window in which the directory will not be cleaned:
19312# after its creation but before its name has been assigned to `$tmp'.
19313$debug ||
19314{
19315  tmp= ac_tmp=
19316  trap 'exit_status=$?
19317  : "${ac_tmp:=$tmp}"
19318  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19319' 0
19320  trap 'as_fn_exit 1' 1 2 13 15
19321}
19322# Create a (secure) tmp directory for tmp files.
19323
19324{
19325  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19326  test -d "$tmp"
19327}  ||
19328{
19329  tmp=./conf$$-$RANDOM
19330  (umask 077 && mkdir "$tmp")
19331} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19332ac_tmp=$tmp
19333
19334# Set up the scripts for CONFIG_FILES section.
19335# No need to generate them if there are no CONFIG_FILES.
19336# This happens for instance with `./config.status config.h'.
19337if test -n "$CONFIG_FILES"; then
19338
19339
19340ac_cr=`echo X | tr X '\015'`
19341# On cygwin, bash can eat \r inside `` if the user requested igncr.
19342# But we know of no other shell where ac_cr would be empty at this
19343# point, so we can use a bashism as a fallback.
19344if test "x$ac_cr" = x; then
19345  eval ac_cr=\$\'\\r\'
19346fi
19347ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19348if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19349  ac_cs_awk_cr='\\r'
19350else
19351  ac_cs_awk_cr=$ac_cr
19352fi
19353
19354echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19355_ACEOF
19356
19357
19358{
19359  echo "cat >conf$$subs.awk <<_ACEOF" &&
19360  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19361  echo "_ACEOF"
19362} >conf$$subs.sh ||
19363  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19364ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19365ac_delim='%!_!# '
19366for ac_last_try in false false false false false :; do
19367  . ./conf$$subs.sh ||
19368    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19369
19370  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19371  if test $ac_delim_n = $ac_delim_num; then
19372    break
19373  elif $ac_last_try; then
19374    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19375  else
19376    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19377  fi
19378done
19379rm -f conf$$subs.sh
19380
19381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19382cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19383_ACEOF
19384sed -n '
19385h
19386s/^/S["/; s/!.*/"]=/
19387p
19388g
19389s/^[^!]*!//
19390:repl
19391t repl
19392s/'"$ac_delim"'$//
19393t delim
19394:nl
19395h
19396s/\(.\{148\}\)..*/\1/
19397t more1
19398s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19399p
19400n
19401b repl
19402:more1
19403s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19404p
19405g
19406s/.\{148\}//
19407t nl
19408:delim
19409h
19410s/\(.\{148\}\)..*/\1/
19411t more2
19412s/["\\]/\\&/g; s/^/"/; s/$/"/
19413p
19414b
19415:more2
19416s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19417p
19418g
19419s/.\{148\}//
19420t delim
19421' <conf$$subs.awk | sed '
19422/^[^""]/{
19423  N
19424  s/\n//
19425}
19426' >>$CONFIG_STATUS || ac_write_fail=1
19427rm -f conf$$subs.awk
19428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19429_ACAWK
19430cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19431  for (key in S) S_is_set[key] = 1
19432  FS = ""
19433
19434}
19435{
19436  line = $ 0
19437  nfields = split(line, field, "@")
19438  substed = 0
19439  len = length(field[1])
19440  for (i = 2; i < nfields; i++) {
19441    key = field[i]
19442    keylen = length(key)
19443    if (S_is_set[key]) {
19444      value = S[key]
19445      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19446      len += length(value) + length(field[++i])
19447      substed = 1
19448    } else
19449      len += 1 + keylen
19450  }
19451
19452  print line
19453}
19454
19455_ACAWK
19456_ACEOF
19457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19458if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19459  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19460else
19461  cat
19462fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19463  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19464_ACEOF
19465
19466# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19467# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19468# trailing colons and then remove the whole line if VPATH becomes empty
19469# (actually we leave an empty line to preserve line numbers).
19470if test "x$srcdir" = x.; then
19471  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19472h
19473s///
19474s/^/:/
19475s/[	 ]*$/:/
19476s/:\$(srcdir):/:/g
19477s/:\${srcdir}:/:/g
19478s/:@srcdir@:/:/g
19479s/^:*//
19480s/:*$//
19481x
19482s/\(=[	 ]*\).*/\1/
19483G
19484s/\n//
19485s/^[^=]*=[	 ]*$//
19486}'
19487fi
19488
19489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19490fi # test -n "$CONFIG_FILES"
19491
19492# Set up the scripts for CONFIG_HEADERS section.
19493# No need to generate them if there are no CONFIG_HEADERS.
19494# This happens for instance with `./config.status Makefile'.
19495if test -n "$CONFIG_HEADERS"; then
19496cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19497BEGIN {
19498_ACEOF
19499
19500# Transform confdefs.h into an awk script `defines.awk', embedded as
19501# here-document in config.status, that substitutes the proper values into
19502# config.h.in to produce config.h.
19503
19504# Create a delimiter string that does not exist in confdefs.h, to ease
19505# handling of long lines.
19506ac_delim='%!_!# '
19507for ac_last_try in false false :; do
19508  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19509  if test -z "$ac_tt"; then
19510    break
19511  elif $ac_last_try; then
19512    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19513  else
19514    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19515  fi
19516done
19517
19518# For the awk script, D is an array of macro values keyed by name,
19519# likewise P contains macro parameters if any.  Preserve backslash
19520# newline sequences.
19521
19522ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19523sed -n '
19524s/.\{148\}/&'"$ac_delim"'/g
19525t rset
19526:rset
19527s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19528t def
19529d
19530:def
19531s/\\$//
19532t bsnl
19533s/["\\]/\\&/g
19534s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19535D["\1"]=" \3"/p
19536s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19537d
19538:bsnl
19539s/["\\]/\\&/g
19540s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19541D["\1"]=" \3\\\\\\n"\\/p
19542t cont
19543s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19544t cont
19545d
19546:cont
19547n
19548s/.\{148\}/&'"$ac_delim"'/g
19549t clear
19550:clear
19551s/\\$//
19552t bsnlc
19553s/["\\]/\\&/g; s/^/"/; s/$/"/p
19554d
19555:bsnlc
19556s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19557b cont
19558' <confdefs.h | sed '
19559s/'"$ac_delim"'/"\\\
19560"/g' >>$CONFIG_STATUS || ac_write_fail=1
19561
19562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19563  for (key in D) D_is_set[key] = 1
19564  FS = ""
19565}
19566/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19567  line = \$ 0
19568  split(line, arg, " ")
19569  if (arg[1] == "#") {
19570    defundef = arg[2]
19571    mac1 = arg[3]
19572  } else {
19573    defundef = substr(arg[1], 2)
19574    mac1 = arg[2]
19575  }
19576  split(mac1, mac2, "(") #)
19577  macro = mac2[1]
19578  prefix = substr(line, 1, index(line, defundef) - 1)
19579  if (D_is_set[macro]) {
19580    # Preserve the white space surrounding the "#".
19581    print prefix "define", macro P[macro] D[macro]
19582    next
19583  } else {
19584    # Replace #undef with comments.  This is necessary, for example,
19585    # in the case of _POSIX_SOURCE, which is predefined and required
19586    # on some systems where configure will not decide to define it.
19587    if (defundef == "undef") {
19588      print "/*", prefix defundef, macro, "*/"
19589      next
19590    }
19591  }
19592}
19593{ print }
19594_ACAWK
19595_ACEOF
19596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19597  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19598fi # test -n "$CONFIG_HEADERS"
19599
19600
19601eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19602shift
19603for ac_tag
19604do
19605  case $ac_tag in
19606  :[FHLC]) ac_mode=$ac_tag; continue;;
19607  esac
19608  case $ac_mode$ac_tag in
19609  :[FHL]*:*);;
19610  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19611  :[FH]-) ac_tag=-:-;;
19612  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19613  esac
19614  ac_save_IFS=$IFS
19615  IFS=:
19616  set x $ac_tag
19617  IFS=$ac_save_IFS
19618  shift
19619  ac_file=$1
19620  shift
19621
19622  case $ac_mode in
19623  :L) ac_source=$1;;
19624  :[FH])
19625    ac_file_inputs=
19626    for ac_f
19627    do
19628      case $ac_f in
19629      -) ac_f="$ac_tmp/stdin";;
19630      *) # Look for the file first in the build tree, then in the source tree
19631	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19632	 # because $ac_f cannot contain `:'.
19633	 test -f "$ac_f" ||
19634	   case $ac_f in
19635	   [\\/$]*) false;;
19636	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19637	   esac ||
19638	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19639      esac
19640      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19641      as_fn_append ac_file_inputs " '$ac_f'"
19642    done
19643
19644    # Let's still pretend it is `configure' which instantiates (i.e., don't
19645    # use $as_me), people would be surprised to read:
19646    #    /* config.h.  Generated by config.status.  */
19647    configure_input='Generated from '`
19648	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19649	`' by configure.'
19650    if test x"$ac_file" != x-; then
19651      configure_input="$ac_file.  $configure_input"
19652      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19653$as_echo "$as_me: creating $ac_file" >&6;}
19654    fi
19655    # Neutralize special characters interpreted by sed in replacement strings.
19656    case $configure_input in #(
19657    *\&* | *\|* | *\\* )
19658       ac_sed_conf_input=`$as_echo "$configure_input" |
19659       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19660    *) ac_sed_conf_input=$configure_input;;
19661    esac
19662
19663    case $ac_tag in
19664    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19665      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19666    esac
19667    ;;
19668  esac
19669
19670  ac_dir=`$as_dirname -- "$ac_file" ||
19671$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19672	 X"$ac_file" : 'X\(//\)[^/]' \| \
19673	 X"$ac_file" : 'X\(//\)$' \| \
19674	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19675$as_echo X"$ac_file" |
19676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19677	    s//\1/
19678	    q
19679	  }
19680	  /^X\(\/\/\)[^/].*/{
19681	    s//\1/
19682	    q
19683	  }
19684	  /^X\(\/\/\)$/{
19685	    s//\1/
19686	    q
19687	  }
19688	  /^X\(\/\).*/{
19689	    s//\1/
19690	    q
19691	  }
19692	  s/.*/./; q'`
19693  as_dir="$ac_dir"; as_fn_mkdir_p
19694  ac_builddir=.
19695
19696case "$ac_dir" in
19697.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19698*)
19699  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19700  # A ".." for each directory in $ac_dir_suffix.
19701  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19702  case $ac_top_builddir_sub in
19703  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19704  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19705  esac ;;
19706esac
19707ac_abs_top_builddir=$ac_pwd
19708ac_abs_builddir=$ac_pwd$ac_dir_suffix
19709# for backward compatibility:
19710ac_top_builddir=$ac_top_build_prefix
19711
19712case $srcdir in
19713  .)  # We are building in place.
19714    ac_srcdir=.
19715    ac_top_srcdir=$ac_top_builddir_sub
19716    ac_abs_top_srcdir=$ac_pwd ;;
19717  [\\/]* | ?:[\\/]* )  # Absolute name.
19718    ac_srcdir=$srcdir$ac_dir_suffix;
19719    ac_top_srcdir=$srcdir
19720    ac_abs_top_srcdir=$srcdir ;;
19721  *) # Relative name.
19722    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19723    ac_top_srcdir=$ac_top_build_prefix$srcdir
19724    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19725esac
19726ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19727
19728
19729  case $ac_mode in
19730  :F)
19731  #
19732  # CONFIG_FILE
19733  #
19734
19735  case $INSTALL in
19736  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19737  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19738  esac
19739  ac_MKDIR_P=$MKDIR_P
19740  case $MKDIR_P in
19741  [\\/$]* | ?:[\\/]* ) ;;
19742  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19743  esac
19744_ACEOF
19745
19746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19747# If the template does not know about datarootdir, expand it.
19748# FIXME: This hack should be removed a few years after 2.60.
19749ac_datarootdir_hack=; ac_datarootdir_seen=
19750ac_sed_dataroot='
19751/datarootdir/ {
19752  p
19753  q
19754}
19755/@datadir@/p
19756/@docdir@/p
19757/@infodir@/p
19758/@localedir@/p
19759/@mandir@/p'
19760case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19761*datarootdir*) ac_datarootdir_seen=yes;;
19762*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19763  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19764$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19765_ACEOF
19766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19767  ac_datarootdir_hack='
19768  s&@datadir@&$datadir&g
19769  s&@docdir@&$docdir&g
19770  s&@infodir@&$infodir&g
19771  s&@localedir@&$localedir&g
19772  s&@mandir@&$mandir&g
19773  s&\\\${datarootdir}&$datarootdir&g' ;;
19774esac
19775_ACEOF
19776
19777# Neutralize VPATH when `$srcdir' = `.'.
19778# Shell code in configure.ac might set extrasub.
19779# FIXME: do we really want to maintain this feature?
19780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19781ac_sed_extra="$ac_vpsub
19782$extrasub
19783_ACEOF
19784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19785:t
19786/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19787s|@configure_input@|$ac_sed_conf_input|;t t
19788s&@top_builddir@&$ac_top_builddir_sub&;t t
19789s&@top_build_prefix@&$ac_top_build_prefix&;t t
19790s&@srcdir@&$ac_srcdir&;t t
19791s&@abs_srcdir@&$ac_abs_srcdir&;t t
19792s&@top_srcdir@&$ac_top_srcdir&;t t
19793s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19794s&@builddir@&$ac_builddir&;t t
19795s&@abs_builddir@&$ac_abs_builddir&;t t
19796s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19797s&@INSTALL@&$ac_INSTALL&;t t
19798s&@MKDIR_P@&$ac_MKDIR_P&;t t
19799$ac_datarootdir_hack
19800"
19801eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19802  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19803
19804test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19805  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19806  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19807      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19808  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19809which seems to be undefined.  Please make sure it is defined" >&5
19810$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19811which seems to be undefined.  Please make sure it is defined" >&2;}
19812
19813  rm -f "$ac_tmp/stdin"
19814  case $ac_file in
19815  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19816  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19817  esac \
19818  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19819 ;;
19820  :H)
19821  #
19822  # CONFIG_HEADER
19823  #
19824  if test x"$ac_file" != x-; then
19825    {
19826      $as_echo "/* $configure_input  */" \
19827      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19828    } >"$ac_tmp/config.h" \
19829      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19830    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19831      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19832$as_echo "$as_me: $ac_file is unchanged" >&6;}
19833    else
19834      rm -f "$ac_file"
19835      mv "$ac_tmp/config.h" "$ac_file" \
19836	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19837    fi
19838  else
19839    $as_echo "/* $configure_input  */" \
19840      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19841      || as_fn_error $? "could not create -" "$LINENO" 5
19842  fi
19843# Compute "$ac_file"'s index in $config_headers.
19844_am_arg="$ac_file"
19845_am_stamp_count=1
19846for _am_header in $config_headers :; do
19847  case $_am_header in
19848    $_am_arg | $_am_arg:* )
19849      break ;;
19850    * )
19851      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19852  esac
19853done
19854echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19855$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19856	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19857	 X"$_am_arg" : 'X\(//\)$' \| \
19858	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19859$as_echo X"$_am_arg" |
19860    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19861	    s//\1/
19862	    q
19863	  }
19864	  /^X\(\/\/\)[^/].*/{
19865	    s//\1/
19866	    q
19867	  }
19868	  /^X\(\/\/\)$/{
19869	    s//\1/
19870	    q
19871	  }
19872	  /^X\(\/\).*/{
19873	    s//\1/
19874	    q
19875	  }
19876	  s/.*/./; q'`/stamp-h$_am_stamp_count
19877 ;;
19878
19879  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19880$as_echo "$as_me: executing $ac_file commands" >&6;}
19881 ;;
19882  esac
19883
19884
19885  case $ac_file$ac_mode in
19886    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19887  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19888  # are listed without --file.  Let's play safe and only enable the eval
19889  # if we detect the quoting.
19890  case $CONFIG_FILES in
19891  *\'*) eval set x "$CONFIG_FILES" ;;
19892  *)   set x $CONFIG_FILES ;;
19893  esac
19894  shift
19895  for mf
19896  do
19897    # Strip MF so we end up with the name of the file.
19898    mf=`echo "$mf" | sed -e 's/:.*$//'`
19899    # Check whether this is an Automake generated Makefile or not.
19900    # We used to match only the files named `Makefile.in', but
19901    # some people rename them; so instead we look at the file content.
19902    # Grep'ing the first line is not enough: some people post-process
19903    # each Makefile.in and add a new line on top of each file to say so.
19904    # Grep'ing the whole file is not good either: AIX grep has a line
19905    # limit of 2048, but all sed's we know have understand at least 4000.
19906    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19907      dirpart=`$as_dirname -- "$mf" ||
19908$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19909	 X"$mf" : 'X\(//\)[^/]' \| \
19910	 X"$mf" : 'X\(//\)$' \| \
19911	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19912$as_echo X"$mf" |
19913    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19914	    s//\1/
19915	    q
19916	  }
19917	  /^X\(\/\/\)[^/].*/{
19918	    s//\1/
19919	    q
19920	  }
19921	  /^X\(\/\/\)$/{
19922	    s//\1/
19923	    q
19924	  }
19925	  /^X\(\/\).*/{
19926	    s//\1/
19927	    q
19928	  }
19929	  s/.*/./; q'`
19930    else
19931      continue
19932    fi
19933    # Extract the definition of DEPDIR, am__include, and am__quote
19934    # from the Makefile without running `make'.
19935    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19936    test -z "$DEPDIR" && continue
19937    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19938    test -z "am__include" && continue
19939    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19940    # When using ansi2knr, U may be empty or an underscore; expand it
19941    U=`sed -n 's/^U = //p' < "$mf"`
19942    # Find all dependency output files, they are included files with
19943    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19944    # simplest approach to changing $(DEPDIR) to its actual value in the
19945    # expansion.
19946    for file in `sed -n "
19947      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19948	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19949      # Make sure the directory exists.
19950      test -f "$dirpart/$file" && continue
19951      fdir=`$as_dirname -- "$file" ||
19952$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19953	 X"$file" : 'X\(//\)[^/]' \| \
19954	 X"$file" : 'X\(//\)$' \| \
19955	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19956$as_echo X"$file" |
19957    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19958	    s//\1/
19959	    q
19960	  }
19961	  /^X\(\/\/\)[^/].*/{
19962	    s//\1/
19963	    q
19964	  }
19965	  /^X\(\/\/\)$/{
19966	    s//\1/
19967	    q
19968	  }
19969	  /^X\(\/\).*/{
19970	    s//\1/
19971	    q
19972	  }
19973	  s/.*/./; q'`
19974      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19975      # echo "creating $dirpart/$file"
19976      echo '# dummy' > "$dirpart/$file"
19977    done
19978  done
19979}
19980 ;;
19981    "libtool":C)
19982
19983    # See if we are running on zsh, and set the options which allow our
19984    # commands through without removal of \ escapes.
19985    if test -n "${ZSH_VERSION+set}" ; then
19986      setopt NO_GLOB_SUBST
19987    fi
19988
19989    cfgfile="${ofile}T"
19990    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19991    $RM "$cfgfile"
19992
19993    cat <<_LT_EOF >> "$cfgfile"
19994#! $SHELL
19995
19996# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19997# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19998# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19999# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20000#
20001#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20002#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20003#                 Foundation, Inc.
20004#   Written by Gordon Matzigkeit, 1996
20005#
20006#   This file is part of GNU Libtool.
20007#
20008# GNU Libtool is free software; you can redistribute it and/or
20009# modify it under the terms of the GNU General Public License as
20010# published by the Free Software Foundation; either version 2 of
20011# the License, or (at your option) any later version.
20012#
20013# As a special exception to the GNU General Public License,
20014# if you distribute this file as part of a program or library that
20015# is built using GNU Libtool, you may include this file under the
20016# same distribution terms that you use for the rest of that program.
20017#
20018# GNU Libtool is distributed in the hope that it will be useful,
20019# but WITHOUT ANY WARRANTY; without even the implied warranty of
20020# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20021# GNU General Public License for more details.
20022#
20023# You should have received a copy of the GNU General Public License
20024# along with GNU Libtool; see the file COPYING.  If not, a copy
20025# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20026# obtained by writing to the Free Software Foundation, Inc.,
20027# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20028
20029
20030# The names of the tagged configurations supported by this script.
20031available_tags=""
20032
20033# ### BEGIN LIBTOOL CONFIG
20034
20035# Whether or not to build static libraries.
20036build_old_libs=$enable_static
20037
20038# Which release of libtool.m4 was used?
20039macro_version=$macro_version
20040macro_revision=$macro_revision
20041
20042# Whether or not to build shared libraries.
20043build_libtool_libs=$enable_shared
20044
20045# What type of objects to build.
20046pic_mode=$pic_mode
20047
20048# Whether or not to optimize for fast installation.
20049fast_install=$enable_fast_install
20050
20051# Shell to use when invoking shell scripts.
20052SHELL=$lt_SHELL
20053
20054# An echo program that protects backslashes.
20055ECHO=$lt_ECHO
20056
20057# The PATH separator for the build system.
20058PATH_SEPARATOR=$lt_PATH_SEPARATOR
20059
20060# The host system.
20061host_alias=$host_alias
20062host=$host
20063host_os=$host_os
20064
20065# The build system.
20066build_alias=$build_alias
20067build=$build
20068build_os=$build_os
20069
20070# A sed program that does not truncate output.
20071SED=$lt_SED
20072
20073# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20074Xsed="\$SED -e 1s/^X//"
20075
20076# A grep program that handles long lines.
20077GREP=$lt_GREP
20078
20079# An ERE matcher.
20080EGREP=$lt_EGREP
20081
20082# A literal string matcher.
20083FGREP=$lt_FGREP
20084
20085# A BSD- or MS-compatible name lister.
20086NM=$lt_NM
20087
20088# Whether we need soft or hard links.
20089LN_S=$lt_LN_S
20090
20091# What is the maximum length of a command?
20092max_cmd_len=$max_cmd_len
20093
20094# Object file suffix (normally "o").
20095objext=$ac_objext
20096
20097# Executable file suffix (normally "").
20098exeext=$exeext
20099
20100# whether the shell understands "unset".
20101lt_unset=$lt_unset
20102
20103# turn spaces into newlines.
20104SP2NL=$lt_lt_SP2NL
20105
20106# turn newlines into spaces.
20107NL2SP=$lt_lt_NL2SP
20108
20109# convert \$build file names to \$host format.
20110to_host_file_cmd=$lt_cv_to_host_file_cmd
20111
20112# convert \$build files to toolchain format.
20113to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20114
20115# An object symbol dumper.
20116OBJDUMP=$lt_OBJDUMP
20117
20118# Method to check whether dependent libraries are shared objects.
20119deplibs_check_method=$lt_deplibs_check_method
20120
20121# Command to use when deplibs_check_method = "file_magic".
20122file_magic_cmd=$lt_file_magic_cmd
20123
20124# How to find potential files when deplibs_check_method = "file_magic".
20125file_magic_glob=$lt_file_magic_glob
20126
20127# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20128want_nocaseglob=$lt_want_nocaseglob
20129
20130# DLL creation program.
20131DLLTOOL=$lt_DLLTOOL
20132
20133# Command to associate shared and link libraries.
20134sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20135
20136# The archiver.
20137AR=$lt_AR
20138
20139# Flags to create an archive.
20140AR_FLAGS=$lt_AR_FLAGS
20141
20142# How to feed a file listing to the archiver.
20143archiver_list_spec=$lt_archiver_list_spec
20144
20145# A symbol stripping program.
20146STRIP=$lt_STRIP
20147
20148# Commands used to install an old-style archive.
20149RANLIB=$lt_RANLIB
20150old_postinstall_cmds=$lt_old_postinstall_cmds
20151old_postuninstall_cmds=$lt_old_postuninstall_cmds
20152
20153# Whether to use a lock for old archive extraction.
20154lock_old_archive_extraction=$lock_old_archive_extraction
20155
20156# A C compiler.
20157LTCC=$lt_CC
20158
20159# LTCC compiler flags.
20160LTCFLAGS=$lt_CFLAGS
20161
20162# Take the output of nm and produce a listing of raw symbols and C names.
20163global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20164
20165# Transform the output of nm in a proper C declaration.
20166global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20167
20168# Transform the output of nm in a C name address pair.
20169global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20170
20171# Transform the output of nm in a C name address pair when lib prefix is needed.
20172global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20173
20174# Specify filename containing input files for \$NM.
20175nm_file_list_spec=$lt_nm_file_list_spec
20176
20177# The root where to search for dependent libraries,and in which our libraries should be installed.
20178lt_sysroot=$lt_sysroot
20179
20180# The name of the directory that contains temporary libtool files.
20181objdir=$objdir
20182
20183# Used to examine libraries when file_magic_cmd begins with "file".
20184MAGIC_CMD=$MAGIC_CMD
20185
20186# Must we lock files when doing compilation?
20187need_locks=$lt_need_locks
20188
20189# Manifest tool.
20190MANIFEST_TOOL=$lt_MANIFEST_TOOL
20191
20192# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20193DSYMUTIL=$lt_DSYMUTIL
20194
20195# Tool to change global to local symbols on Mac OS X.
20196NMEDIT=$lt_NMEDIT
20197
20198# Tool to manipulate fat objects and archives on Mac OS X.
20199LIPO=$lt_LIPO
20200
20201# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20202OTOOL=$lt_OTOOL
20203
20204# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20205OTOOL64=$lt_OTOOL64
20206
20207# Old archive suffix (normally "a").
20208libext=$libext
20209
20210# Shared library suffix (normally ".so").
20211shrext_cmds=$lt_shrext_cmds
20212
20213# The commands to extract the exported symbol list from a shared archive.
20214extract_expsyms_cmds=$lt_extract_expsyms_cmds
20215
20216# Variables whose values should be saved in libtool wrapper scripts and
20217# restored at link time.
20218variables_saved_for_relink=$lt_variables_saved_for_relink
20219
20220# Do we need the "lib" prefix for modules?
20221need_lib_prefix=$need_lib_prefix
20222
20223# Do we need a version for libraries?
20224need_version=$need_version
20225
20226# Library versioning type.
20227version_type=$version_type
20228
20229# Shared library runtime path variable.
20230runpath_var=$runpath_var
20231
20232# Shared library path variable.
20233shlibpath_var=$shlibpath_var
20234
20235# Is shlibpath searched before the hard-coded library search path?
20236shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20237
20238# Format of library name prefix.
20239libname_spec=$lt_libname_spec
20240
20241# List of archive names.  First name is the real one, the rest are links.
20242# The last name is the one that the linker finds with -lNAME
20243library_names_spec=$lt_library_names_spec
20244
20245# The coded name of the library, if different from the real name.
20246soname_spec=$lt_soname_spec
20247
20248# Permission mode override for installation of shared libraries.
20249install_override_mode=$lt_install_override_mode
20250
20251# Command to use after installation of a shared archive.
20252postinstall_cmds=$lt_postinstall_cmds
20253
20254# Command to use after uninstallation of a shared archive.
20255postuninstall_cmds=$lt_postuninstall_cmds
20256
20257# Commands used to finish a libtool library installation in a directory.
20258finish_cmds=$lt_finish_cmds
20259
20260# As "finish_cmds", except a single script fragment to be evaled but
20261# not shown.
20262finish_eval=$lt_finish_eval
20263
20264# Whether we should hardcode library paths into libraries.
20265hardcode_into_libs=$hardcode_into_libs
20266
20267# Compile-time system search path for libraries.
20268sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20269
20270# Run-time system search path for libraries.
20271sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20272
20273# Whether dlopen is supported.
20274dlopen_support=$enable_dlopen
20275
20276# Whether dlopen of programs is supported.
20277dlopen_self=$enable_dlopen_self
20278
20279# Whether dlopen of statically linked programs is supported.
20280dlopen_self_static=$enable_dlopen_self_static
20281
20282# Commands to strip libraries.
20283old_striplib=$lt_old_striplib
20284striplib=$lt_striplib
20285
20286
20287# The linker used to build libraries.
20288LD=$lt_LD
20289
20290# How to create reloadable object files.
20291reload_flag=$lt_reload_flag
20292reload_cmds=$lt_reload_cmds
20293
20294# Commands used to build an old-style archive.
20295old_archive_cmds=$lt_old_archive_cmds
20296
20297# A language specific compiler.
20298CC=$lt_compiler
20299
20300# Is the compiler the GNU compiler?
20301with_gcc=$GCC
20302
20303# Compiler flag to turn off builtin functions.
20304no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20305
20306# Additional compiler flags for building library objects.
20307pic_flag=$lt_lt_prog_compiler_pic
20308
20309# How to pass a linker flag through the compiler.
20310wl=$lt_lt_prog_compiler_wl
20311
20312# Compiler flag to prevent dynamic linking.
20313link_static_flag=$lt_lt_prog_compiler_static
20314
20315# Does compiler simultaneously support -c and -o options?
20316compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20317
20318# Whether or not to add -lc for building shared libraries.
20319build_libtool_need_lc=$archive_cmds_need_lc
20320
20321# Whether or not to disallow shared libs when runtime libs are static.
20322allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20323
20324# Compiler flag to allow reflexive dlopens.
20325export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20326
20327# Compiler flag to generate shared objects directly from archives.
20328whole_archive_flag_spec=$lt_whole_archive_flag_spec
20329
20330# Whether the compiler copes with passing no objects directly.
20331compiler_needs_object=$lt_compiler_needs_object
20332
20333# Create an old-style archive from a shared archive.
20334old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20335
20336# Create a temporary old-style archive to link instead of a shared archive.
20337old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20338
20339# Commands used to build a shared archive.
20340archive_cmds=$lt_archive_cmds
20341archive_expsym_cmds=$lt_archive_expsym_cmds
20342
20343# Commands used to build a loadable module if different from building
20344# a shared archive.
20345module_cmds=$lt_module_cmds
20346module_expsym_cmds=$lt_module_expsym_cmds
20347
20348# Whether we are building with GNU ld or not.
20349with_gnu_ld=$lt_with_gnu_ld
20350
20351# Flag that allows shared libraries with undefined symbols to be built.
20352allow_undefined_flag=$lt_allow_undefined_flag
20353
20354# Flag that enforces no undefined symbols.
20355no_undefined_flag=$lt_no_undefined_flag
20356
20357# Flag to hardcode \$libdir into a binary during linking.
20358# This must work even if \$libdir does not exist
20359hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20360
20361# Whether we need a single "-rpath" flag with a separated argument.
20362hardcode_libdir_separator=$lt_hardcode_libdir_separator
20363
20364# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20365# DIR into the resulting binary.
20366hardcode_direct=$hardcode_direct
20367
20368# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20369# DIR into the resulting binary and the resulting library dependency is
20370# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20371# library is relocated.
20372hardcode_direct_absolute=$hardcode_direct_absolute
20373
20374# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20375# into the resulting binary.
20376hardcode_minus_L=$hardcode_minus_L
20377
20378# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20379# into the resulting binary.
20380hardcode_shlibpath_var=$hardcode_shlibpath_var
20381
20382# Set to "yes" if building a shared library automatically hardcodes DIR
20383# into the library and all subsequent libraries and executables linked
20384# against it.
20385hardcode_automatic=$hardcode_automatic
20386
20387# Set to yes if linker adds runtime paths of dependent libraries
20388# to runtime path list.
20389inherit_rpath=$inherit_rpath
20390
20391# Whether libtool must link a program against all its dependency libraries.
20392link_all_deplibs=$link_all_deplibs
20393
20394# Set to "yes" if exported symbols are required.
20395always_export_symbols=$always_export_symbols
20396
20397# The commands to list exported symbols.
20398export_symbols_cmds=$lt_export_symbols_cmds
20399
20400# Symbols that should not be listed in the preloaded symbols.
20401exclude_expsyms=$lt_exclude_expsyms
20402
20403# Symbols that must always be exported.
20404include_expsyms=$lt_include_expsyms
20405
20406# Commands necessary for linking programs (against libraries) with templates.
20407prelink_cmds=$lt_prelink_cmds
20408
20409# Commands necessary for finishing linking programs.
20410postlink_cmds=$lt_postlink_cmds
20411
20412# Specify filename containing input files.
20413file_list_spec=$lt_file_list_spec
20414
20415# How to hardcode a shared library path into an executable.
20416hardcode_action=$hardcode_action
20417
20418# ### END LIBTOOL CONFIG
20419
20420_LT_EOF
20421
20422  case $host_os in
20423  aix3*)
20424    cat <<\_LT_EOF >> "$cfgfile"
20425# AIX sometimes has problems with the GCC collect2 program.  For some
20426# reason, if we set the COLLECT_NAMES environment variable, the problems
20427# vanish in a puff of smoke.
20428if test "X${COLLECT_NAMES+set}" != Xset; then
20429  COLLECT_NAMES=
20430  export COLLECT_NAMES
20431fi
20432_LT_EOF
20433    ;;
20434  esac
20435
20436
20437ltmain="$ac_aux_dir/ltmain.sh"
20438
20439
20440  # We use sed instead of cat because bash on DJGPP gets confused if
20441  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20442  # text mode, it properly converts lines to CR/LF.  This bash problem
20443  # is reportedly fixed, but why not run on old versions too?
20444  sed '$q' "$ltmain" >> "$cfgfile" \
20445     || (rm -f "$cfgfile"; exit 1)
20446
20447  if test x"$xsi_shell" = xyes; then
20448  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20449func_dirname ()\
20450{\
20451\    case ${1} in\
20452\      */*) func_dirname_result="${1%/*}${2}" ;;\
20453\      *  ) func_dirname_result="${3}" ;;\
20454\    esac\
20455} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20456  && mv -f "$cfgfile.tmp" "$cfgfile" \
20457    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20458test 0 -eq $? || _lt_function_replace_fail=:
20459
20460
20461  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20462func_basename ()\
20463{\
20464\    func_basename_result="${1##*/}"\
20465} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20466  && mv -f "$cfgfile.tmp" "$cfgfile" \
20467    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20468test 0 -eq $? || _lt_function_replace_fail=:
20469
20470
20471  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20472func_dirname_and_basename ()\
20473{\
20474\    case ${1} in\
20475\      */*) func_dirname_result="${1%/*}${2}" ;;\
20476\      *  ) func_dirname_result="${3}" ;;\
20477\    esac\
20478\    func_basename_result="${1##*/}"\
20479} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20480  && mv -f "$cfgfile.tmp" "$cfgfile" \
20481    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20482test 0 -eq $? || _lt_function_replace_fail=:
20483
20484
20485  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20486func_stripname ()\
20487{\
20488\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20489\    # positional parameters, so assign one to ordinary parameter first.\
20490\    func_stripname_result=${3}\
20491\    func_stripname_result=${func_stripname_result#"${1}"}\
20492\    func_stripname_result=${func_stripname_result%"${2}"}\
20493} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20494  && mv -f "$cfgfile.tmp" "$cfgfile" \
20495    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20496test 0 -eq $? || _lt_function_replace_fail=:
20497
20498
20499  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20500func_split_long_opt ()\
20501{\
20502\    func_split_long_opt_name=${1%%=*}\
20503\    func_split_long_opt_arg=${1#*=}\
20504} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20505  && mv -f "$cfgfile.tmp" "$cfgfile" \
20506    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20507test 0 -eq $? || _lt_function_replace_fail=:
20508
20509
20510  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20511func_split_short_opt ()\
20512{\
20513\    func_split_short_opt_arg=${1#??}\
20514\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20515} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20516  && mv -f "$cfgfile.tmp" "$cfgfile" \
20517    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20518test 0 -eq $? || _lt_function_replace_fail=:
20519
20520
20521  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20522func_lo2o ()\
20523{\
20524\    case ${1} in\
20525\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20526\      *)    func_lo2o_result=${1} ;;\
20527\    esac\
20528} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20529  && mv -f "$cfgfile.tmp" "$cfgfile" \
20530    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20531test 0 -eq $? || _lt_function_replace_fail=:
20532
20533
20534  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20535func_xform ()\
20536{\
20537    func_xform_result=${1%.*}.lo\
20538} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20539  && mv -f "$cfgfile.tmp" "$cfgfile" \
20540    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20541test 0 -eq $? || _lt_function_replace_fail=:
20542
20543
20544  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20545func_arith ()\
20546{\
20547    func_arith_result=$(( $* ))\
20548} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20549  && mv -f "$cfgfile.tmp" "$cfgfile" \
20550    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20551test 0 -eq $? || _lt_function_replace_fail=:
20552
20553
20554  sed -e '/^func_len ()$/,/^} # func_len /c\
20555func_len ()\
20556{\
20557    func_len_result=${#1}\
20558} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20559  && mv -f "$cfgfile.tmp" "$cfgfile" \
20560    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20561test 0 -eq $? || _lt_function_replace_fail=:
20562
20563fi
20564
20565if test x"$lt_shell_append" = xyes; then
20566  sed -e '/^func_append ()$/,/^} # func_append /c\
20567func_append ()\
20568{\
20569    eval "${1}+=\\${2}"\
20570} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20571  && mv -f "$cfgfile.tmp" "$cfgfile" \
20572    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20573test 0 -eq $? || _lt_function_replace_fail=:
20574
20575
20576  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20577func_append_quoted ()\
20578{\
20579\    func_quote_for_eval "${2}"\
20580\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20581} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20582  && mv -f "$cfgfile.tmp" "$cfgfile" \
20583    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20584test 0 -eq $? || _lt_function_replace_fail=:
20585
20586
20587  # Save a `func_append' function call where possible by direct use of '+='
20588  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20589    && mv -f "$cfgfile.tmp" "$cfgfile" \
20590      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20591  test 0 -eq $? || _lt_function_replace_fail=:
20592else
20593  # Save a `func_append' function call even when '+=' is not available
20594  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20595    && mv -f "$cfgfile.tmp" "$cfgfile" \
20596      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20597  test 0 -eq $? || _lt_function_replace_fail=:
20598fi
20599
20600if test x"$_lt_function_replace_fail" = x":"; then
20601  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20602$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20603fi
20604
20605
20606   mv -f "$cfgfile" "$ofile" ||
20607    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20608  chmod +x "$ofile"
20609
20610 ;;
20611
20612  esac
20613done # for ac_tag
20614
20615
20616as_fn_exit 0
20617_ACEOF
20618ac_clean_files=$ac_clean_files_save
20619
20620test $ac_write_fail = 0 ||
20621  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20622
20623
20624# configure is writing to config.log, and then calls config.status.
20625# config.status does its own redirection, appending to config.log.
20626# Unfortunately, on DOS this fails, as config.log is still kept open
20627# by configure, so config.status won't be able to write to it; its
20628# output is simply discarded.  So we exec the FD to /dev/null,
20629# effectively closing config.log, so it can be properly (re)opened and
20630# appended to by config.status.  When coming back to configure, we
20631# need to make the FD available again.
20632if test "$no_create" != yes; then
20633  ac_cs_success=:
20634  ac_config_status_args=
20635  test "$silent" = yes &&
20636    ac_config_status_args="$ac_config_status_args --quiet"
20637  exec 5>/dev/null
20638  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20639  exec 5>>config.log
20640  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20641  # would make configure fail if this is the last instruction.
20642  $ac_cs_success || as_fn_exit 1
20643fi
20644if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20645  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20646$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20647fi
20648
20649