1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-ati 22.0.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='xf86-video-ati'
624PACKAGE_TARNAME='xf86-video-ati'
625PACKAGE_VERSION='22.0.0'
626PACKAGE_STRING='xf86-video-ati 22.0.0'
627PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667DRIVER_NAME
668moduledir
669PCIACCESS_LIBS
670PCIACCESS_CFLAGS
671GLAMOR_FALSE
672GLAMOR_TRUE
673GBM_LIBS
674GBM_CFLAGS
675LIBGLAMOR_EGL_LIBS
676LIBGLAMOR_EGL_CFLAGS
677LIBGLAMOR_LIBS
678LIBGLAMOR_CFLAGS
679LIBGL_LIBS
680LIBGL_CFLAGS
681LIBUDEV_FALSE
682LIBUDEV_TRUE
683LIBUDEV_LIBS
684LIBUDEV_CFLAGS
685configdir
686HAS_XORG_CONF_DIR_FALSE
687HAS_XORG_CONF_DIR_TRUE
688HAVE_XEXTPROTO_71_FALSE
689HAVE_XEXTPROTO_71_TRUE
690XEXT_LIBS
691XEXT_CFLAGS
692XORG_LIBS
693XORG_CFLAGS
694LIBDRM_RADEON_LIBS
695LIBDRM_RADEON_CFLAGS
696LIBDRM_LIBS
697LIBDRM_CFLAGS
698LT_SYS_LIBRARY_PATH
699OTOOL64
700OTOOL
701LIPO
702NMEDIT
703DSYMUTIL
704MANIFEST_TOOL
705RANLIB
706ac_ct_AR
707AR
708DLLTOOL
709OBJDUMP
710FILECMD
711LN_S
712NM
713ac_ct_DUMPBIN
714DUMPBIN
715LD
716FGREP
717EGREP
718GREP
719LIBTOOL
720MAN_SUBSTS
721XORG_MAN_PAGE
722ADMIN_MAN_DIR
723DRIVER_MAN_DIR
724MISC_MAN_DIR
725FILE_MAN_DIR
726LIB_MAN_DIR
727APP_MAN_DIR
728ADMIN_MAN_SUFFIX
729DRIVER_MAN_SUFFIX
730MISC_MAN_SUFFIX
731FILE_MAN_SUFFIX
732LIB_MAN_SUFFIX
733APP_MAN_SUFFIX
734SED
735host_os
736host_vendor
737host_cpu
738host
739build_os
740build_vendor
741build_cpu
742build
743INSTALL_CMD
744PKG_CONFIG_LIBDIR
745PKG_CONFIG_PATH
746PKG_CONFIG
747CHANGELOG_CMD
748STRICT_CFLAGS
749CWARNFLAGS
750BASE_CFLAGS
751am__fastdepCC_FALSE
752am__fastdepCC_TRUE
753CCDEPMODE
754am__nodep
755AMDEPBACKSLASH
756AMDEP_FALSE
757AMDEP_TRUE
758am__include
759DEPDIR
760OBJEXT
761EXEEXT
762ac_ct_CC
763CPPFLAGS
764LDFLAGS
765CFLAGS
766CC
767AM_BACKSLASH
768AM_DEFAULT_VERBOSITY
769AM_DEFAULT_V
770AM_V
771CSCOPE
772ETAGS
773CTAGS
774am__untar
775am__tar
776AMTAR
777am__leading_dot
778SET_MAKE
779AWK
780mkdir_p
781MKDIR_P
782INSTALL_STRIP_PROGRAM
783STRIP
784install_sh
785MAKEINFO
786AUTOHEADER
787AUTOMAKE
788AUTOCONF
789ACLOCAL
790VERSION
791PACKAGE
792CYGPATH_W
793am__isrc
794INSTALL_DATA
795INSTALL_SCRIPT
796INSTALL_PROGRAM
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816runstatedir
817localstatedir
818sharedstatedir
819sysconfdir
820datadir
821datarootdir
822libexecdir
823sbindir
824bindir
825program_transform_name
826prefix
827exec_prefix
828PACKAGE_URL
829PACKAGE_BUGREPORT
830PACKAGE_STRING
831PACKAGE_VERSION
832PACKAGE_TARNAME
833PACKAGE_NAME
834PATH_SEPARATOR
835SHELL
836am__quote'
837ac_subst_files=''
838ac_user_opts='
839enable_option_checking
840enable_silent_rules
841enable_largefile
842enable_dependency_tracking
843enable_selective_werror
844enable_strict_compilation
845enable_static
846enable_shared
847with_pic
848enable_fast_install
849with_aix_soname
850with_gnu_ld
851with_sysroot
852enable_libtool_lock
853with_xorg_module_dir
854with_xorg_conf_dir
855enable_udev
856enable_glamor
857'
858      ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866PKG_CONFIG
867PKG_CONFIG_PATH
868PKG_CONFIG_LIBDIR
869LT_SYS_LIBRARY_PATH
870LIBDRM_CFLAGS
871LIBDRM_LIBS
872LIBDRM_RADEON_CFLAGS
873LIBDRM_RADEON_LIBS
874XORG_CFLAGS
875XORG_LIBS
876XEXT_CFLAGS
877XEXT_LIBS
878LIBUDEV_CFLAGS
879LIBUDEV_LIBS
880LIBGL_CFLAGS
881LIBGL_LIBS
882LIBGLAMOR_CFLAGS
883LIBGLAMOR_LIBS
884LIBGLAMOR_EGL_CFLAGS
885LIBGLAMOR_EGL_LIBS
886GBM_CFLAGS
887GBM_LIBS
888PCIACCESS_CFLAGS
889PCIACCESS_LIBS'
890
891
892# Initialize some variables set by options.
893ac_init_help=
894ac_init_version=false
895ac_unrecognized_opts=
896ac_unrecognized_sep=
897# The variables have the same names as the options, with
898# dashes changed to underlines.
899cache_file=/dev/null
900exec_prefix=NONE
901no_create=
902no_recursion=
903prefix=NONE
904program_prefix=NONE
905program_suffix=NONE
906program_transform_name=s,x,x,
907silent=
908site=
909srcdir=
910verbose=
911x_includes=NONE
912x_libraries=NONE
913
914# Installation directory options.
915# These are left unexpanded so users can "make install exec_prefix=/foo"
916# and all the variables that are supposed to be based on exec_prefix
917# by default will actually change.
918# Use braces instead of parens because sh, perl, etc. also accept them.
919# (The list follows the same order as the GNU Coding Standards.)
920bindir='${exec_prefix}/bin'
921sbindir='${exec_prefix}/sbin'
922libexecdir='${exec_prefix}/libexec'
923datarootdir='${prefix}/share'
924datadir='${datarootdir}'
925sysconfdir='${prefix}/etc'
926sharedstatedir='${prefix}/com'
927localstatedir='${prefix}/var'
928runstatedir='${localstatedir}/run'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *=)   ac_optarg= ;;
955  *)    ac_optarg=yes ;;
956  esac
957
958  case $ac_dashdash$ac_option in
959  --)
960    ac_dashdash=yes ;;
961
962  -bindir | --bindir | --bindi | --bind | --bin | --bi)
963    ac_prev=bindir ;;
964  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965    bindir=$ac_optarg ;;
966
967  -build | --build | --buil | --bui | --bu)
968    ac_prev=build_alias ;;
969  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970    build_alias=$ac_optarg ;;
971
972  -cache-file | --cache-file | --cache-fil | --cache-fi \
973  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974    ac_prev=cache_file ;;
975  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977    cache_file=$ac_optarg ;;
978
979  --config-cache | -C)
980    cache_file=config.cache ;;
981
982  -datadir | --datadir | --datadi | --datad)
983    ac_prev=datadir ;;
984  -datadir=* | --datadir=* | --datadi=* | --datad=*)
985    datadir=$ac_optarg ;;
986
987  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988  | --dataroo | --dataro | --datar)
989    ac_prev=datarootdir ;;
990  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992    datarootdir=$ac_optarg ;;
993
994  -disable-* | --disable-*)
995    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996    # Reject names that are not valid shell variable names.
997    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998      as_fn_error $? "invalid feature name: \`$ac_useropt'"
999    ac_useropt_orig=$ac_useropt
1000    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1001    case $ac_user_opts in
1002      *"
1003"enable_$ac_useropt"
1004"*) ;;
1005      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006	 ac_unrecognized_sep=', ';;
1007    esac
1008    eval enable_$ac_useropt=no ;;
1009
1010  -docdir | --docdir | --docdi | --doc | --do)
1011    ac_prev=docdir ;;
1012  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013    docdir=$ac_optarg ;;
1014
1015  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016    ac_prev=dvidir ;;
1017  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018    dvidir=$ac_optarg ;;
1019
1020  -enable-* | --enable-*)
1021    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022    # Reject names that are not valid shell variable names.
1023    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1025    ac_useropt_orig=$ac_useropt
1026    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1027    case $ac_user_opts in
1028      *"
1029"enable_$ac_useropt"
1030"*) ;;
1031      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032	 ac_unrecognized_sep=', ';;
1033    esac
1034    eval enable_$ac_useropt=\$ac_optarg ;;
1035
1036  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038  | --exec | --exe | --ex)
1039    ac_prev=exec_prefix ;;
1040  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042  | --exec=* | --exe=* | --ex=*)
1043    exec_prefix=$ac_optarg ;;
1044
1045  -gas | --gas | --ga | --g)
1046    # Obsolete; use --with-gas.
1047    with_gas=yes ;;
1048
1049  -help | --help | --hel | --he | -h)
1050    ac_init_help=long ;;
1051  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052    ac_init_help=recursive ;;
1053  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054    ac_init_help=short ;;
1055
1056  -host | --host | --hos | --ho)
1057    ac_prev=host_alias ;;
1058  -host=* | --host=* | --hos=* | --ho=*)
1059    host_alias=$ac_optarg ;;
1060
1061  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062    ac_prev=htmldir ;;
1063  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064  | --ht=*)
1065    htmldir=$ac_optarg ;;
1066
1067  -includedir | --includedir | --includedi | --included | --include \
1068  | --includ | --inclu | --incl | --inc)
1069    ac_prev=includedir ;;
1070  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071  | --includ=* | --inclu=* | --incl=* | --inc=*)
1072    includedir=$ac_optarg ;;
1073
1074  -infodir | --infodir | --infodi | --infod | --info | --inf)
1075    ac_prev=infodir ;;
1076  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077    infodir=$ac_optarg ;;
1078
1079  -libdir | --libdir | --libdi | --libd)
1080    ac_prev=libdir ;;
1081  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082    libdir=$ac_optarg ;;
1083
1084  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085  | --libexe | --libex | --libe)
1086    ac_prev=libexecdir ;;
1087  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088  | --libexe=* | --libex=* | --libe=*)
1089    libexecdir=$ac_optarg ;;
1090
1091  -localedir | --localedir | --localedi | --localed | --locale)
1092    ac_prev=localedir ;;
1093  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094    localedir=$ac_optarg ;;
1095
1096  -localstatedir | --localstatedir | --localstatedi | --localstated \
1097  | --localstate | --localstat | --localsta | --localst | --locals)
1098    ac_prev=localstatedir ;;
1099  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101    localstatedir=$ac_optarg ;;
1102
1103  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104    ac_prev=mandir ;;
1105  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106    mandir=$ac_optarg ;;
1107
1108  -nfp | --nfp | --nf)
1109    # Obsolete; use --without-fp.
1110    with_fp=no ;;
1111
1112  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113  | --no-cr | --no-c | -n)
1114    no_create=yes ;;
1115
1116  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118    no_recursion=yes ;;
1119
1120  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122  | --oldin | --oldi | --old | --ol | --o)
1123    ac_prev=oldincludedir ;;
1124  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127    oldincludedir=$ac_optarg ;;
1128
1129  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130    ac_prev=prefix ;;
1131  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132    prefix=$ac_optarg ;;
1133
1134  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135  | --program-pre | --program-pr | --program-p)
1136    ac_prev=program_prefix ;;
1137  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139    program_prefix=$ac_optarg ;;
1140
1141  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142  | --program-suf | --program-su | --program-s)
1143    ac_prev=program_suffix ;;
1144  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146    program_suffix=$ac_optarg ;;
1147
1148  -program-transform-name | --program-transform-name \
1149  | --program-transform-nam | --program-transform-na \
1150  | --program-transform-n | --program-transform- \
1151  | --program-transform | --program-transfor \
1152  | --program-transfo | --program-transf \
1153  | --program-trans | --program-tran \
1154  | --progr-tra | --program-tr | --program-t)
1155    ac_prev=program_transform_name ;;
1156  -program-transform-name=* | --program-transform-name=* \
1157  | --program-transform-nam=* | --program-transform-na=* \
1158  | --program-transform-n=* | --program-transform-=* \
1159  | --program-transform=* | --program-transfor=* \
1160  | --program-transfo=* | --program-transf=* \
1161  | --program-trans=* | --program-tran=* \
1162  | --progr-tra=* | --program-tr=* | --program-t=*)
1163    program_transform_name=$ac_optarg ;;
1164
1165  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166    ac_prev=pdfdir ;;
1167  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168    pdfdir=$ac_optarg ;;
1169
1170  -psdir | --psdir | --psdi | --psd | --ps)
1171    ac_prev=psdir ;;
1172  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173    psdir=$ac_optarg ;;
1174
1175  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176  | -silent | --silent | --silen | --sile | --sil)
1177    silent=yes ;;
1178
1179  -runstatedir | --runstatedir | --runstatedi | --runstated \
1180  | --runstate | --runstat | --runsta | --runst | --runs \
1181  | --run | --ru | --r)
1182    ac_prev=runstatedir ;;
1183  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1184  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1185  | --run=* | --ru=* | --r=*)
1186    runstatedir=$ac_optarg ;;
1187
1188  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189    ac_prev=sbindir ;;
1190  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191  | --sbi=* | --sb=*)
1192    sbindir=$ac_optarg ;;
1193
1194  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196  | --sharedst | --shareds | --shared | --share | --shar \
1197  | --sha | --sh)
1198    ac_prev=sharedstatedir ;;
1199  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202  | --sha=* | --sh=*)
1203    sharedstatedir=$ac_optarg ;;
1204
1205  -site | --site | --sit)
1206    ac_prev=site ;;
1207  -site=* | --site=* | --sit=*)
1208    site=$ac_optarg ;;
1209
1210  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211    ac_prev=srcdir ;;
1212  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213    srcdir=$ac_optarg ;;
1214
1215  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216  | --syscon | --sysco | --sysc | --sys | --sy)
1217    ac_prev=sysconfdir ;;
1218  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220    sysconfdir=$ac_optarg ;;
1221
1222  -target | --target | --targe | --targ | --tar | --ta | --t)
1223    ac_prev=target_alias ;;
1224  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225    target_alias=$ac_optarg ;;
1226
1227  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228    verbose=yes ;;
1229
1230  -version | --version | --versio | --versi | --vers | -V)
1231    ac_init_version=: ;;
1232
1233  -with-* | --with-*)
1234    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235    # Reject names that are not valid shell variable names.
1236    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237      as_fn_error $? "invalid package name: \`$ac_useropt'"
1238    ac_useropt_orig=$ac_useropt
1239    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1240    case $ac_user_opts in
1241      *"
1242"with_$ac_useropt"
1243"*) ;;
1244      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245	 ac_unrecognized_sep=', ';;
1246    esac
1247    eval with_$ac_useropt=\$ac_optarg ;;
1248
1249  -without-* | --without-*)
1250    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251    # Reject names that are not valid shell variable names.
1252    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253      as_fn_error $? "invalid package name: \`$ac_useropt'"
1254    ac_useropt_orig=$ac_useropt
1255    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1256    case $ac_user_opts in
1257      *"
1258"with_$ac_useropt"
1259"*) ;;
1260      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261	 ac_unrecognized_sep=', ';;
1262    esac
1263    eval with_$ac_useropt=no ;;
1264
1265  --x)
1266    # Obsolete; use --with-x.
1267    with_x=yes ;;
1268
1269  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270  | --x-incl | --x-inc | --x-in | --x-i)
1271    ac_prev=x_includes ;;
1272  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274    x_includes=$ac_optarg ;;
1275
1276  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278    ac_prev=x_libraries ;;
1279  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281    x_libraries=$ac_optarg ;;
1282
1283  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284Try \`$0 --help' for more information"
1285    ;;
1286
1287  *=*)
1288    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289    # Reject names that are not valid shell variable names.
1290    case $ac_envvar in #(
1291      '' | [0-9]* | *[!_$as_cr_alnum]* )
1292      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1293    esac
1294    eval $ac_envvar=\$ac_optarg
1295    export $ac_envvar ;;
1296
1297  *)
1298    # FIXME: should be removed in autoconf 3.0.
1299    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1300    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1302    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303    ;;
1304
1305  esac
1306done
1307
1308if test -n "$ac_prev"; then
1309  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310  as_fn_error $? "missing argument to $ac_option"
1311fi
1312
1313if test -n "$ac_unrecognized_opts"; then
1314  case $enable_option_checking in
1315    no) ;;
1316    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1317    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318  esac
1319fi
1320
1321# Check all directory arguments for consistency.
1322for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323		datadir sysconfdir sharedstatedir localstatedir includedir \
1324		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325		libdir localedir mandir runstatedir
1326do
1327  eval ac_val=\$$ac_var
1328  # Remove trailing slashes.
1329  case $ac_val in
1330    */ )
1331      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332      eval $ac_var=\$ac_val;;
1333  esac
1334  # Be sure to have absolute directory names.
1335  case $ac_val in
1336    [\\/$]* | ?:[\\/]* )  continue;;
1337    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338  esac
1339  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1340done
1341
1342# There might be people who depend on the old broken behavior: `$host'
1343# used to hold the argument of --host etc.
1344# FIXME: To remove some day.
1345build=$build_alias
1346host=$host_alias
1347target=$target_alias
1348
1349# FIXME: To remove some day.
1350if test "x$host_alias" != x; then
1351  if test "x$build_alias" = x; then
1352    cross_compiling=maybe
1353  elif test "x$build_alias" != "x$host_alias"; then
1354    cross_compiling=yes
1355  fi
1356fi
1357
1358ac_tool_prefix=
1359test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361test "$silent" = yes && exec 6>/dev/null
1362
1363
1364ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365ac_ls_di=`ls -di .` &&
1366ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1367  as_fn_error $? "working directory cannot be determined"
1368test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1369  as_fn_error $? "pwd does not report name of working directory"
1370
1371
1372# Find the source files, if location was not specified.
1373if test -z "$srcdir"; then
1374  ac_srcdir_defaulted=yes
1375  # Try the directory containing this script, then the parent directory.
1376  ac_confdir=`$as_dirname -- "$as_myself" ||
1377$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378	 X"$as_myself" : 'X\(//\)[^/]' \| \
1379	 X"$as_myself" : 'X\(//\)$' \| \
1380	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381printf "%s\n" X"$as_myself" |
1382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383	    s//\1/
1384	    q
1385	  }
1386	  /^X\(\/\/\)[^/].*/{
1387	    s//\1/
1388	    q
1389	  }
1390	  /^X\(\/\/\)$/{
1391	    s//\1/
1392	    q
1393	  }
1394	  /^X\(\/\).*/{
1395	    s//\1/
1396	    q
1397	  }
1398	  s/.*/./; q'`
1399  srcdir=$ac_confdir
1400  if test ! -r "$srcdir/$ac_unique_file"; then
1401    srcdir=..
1402  fi
1403else
1404  ac_srcdir_defaulted=no
1405fi
1406if test ! -r "$srcdir/$ac_unique_file"; then
1407  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1408  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1409fi
1410ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411ac_abs_confdir=`(
1412	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1413	pwd)`
1414# When building in place, set srcdir=.
1415if test "$ac_abs_confdir" = "$ac_pwd"; then
1416  srcdir=.
1417fi
1418# Remove unnecessary trailing slashes from srcdir.
1419# Double slashes in file names in object file debugging info
1420# mess up M-x gdb in Emacs.
1421case $srcdir in
1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423esac
1424for ac_var in $ac_precious_vars; do
1425  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426  eval ac_env_${ac_var}_value=\$${ac_var}
1427  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429done
1430
1431#
1432# Report the --help message.
1433#
1434if test "$ac_init_help" = "long"; then
1435  # Omit some internal or obsolete options to make the list less imposing.
1436  # This message is too long to be a string in the A/UX 3.1 sh.
1437  cat <<_ACEOF
1438\`configure' configures xf86-video-ati 22.0.0 to adapt to many kinds of systems.
1439
1440Usage: $0 [OPTION]... [VAR=VALUE]...
1441
1442To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443VAR=VALUE.  See below for descriptions of some of the useful variables.
1444
1445Defaults for the options are specified in brackets.
1446
1447Configuration:
1448  -h, --help              display this help and exit
1449      --help=short        display options specific to this package
1450      --help=recursive    display the short help of all the included packages
1451  -V, --version           display version information and exit
1452  -q, --quiet, --silent   do not print \`checking ...' messages
1453      --cache-file=FILE   cache test results in FILE [disabled]
1454  -C, --config-cache      alias for \`--cache-file=config.cache'
1455  -n, --no-create         do not create output files
1456      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1457
1458Installation directories:
1459  --prefix=PREFIX         install architecture-independent files in PREFIX
1460                          [$ac_default_prefix]
1461  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1462                          [PREFIX]
1463
1464By default, \`make install' will install all the files in
1465\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1466an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467for instance \`--prefix=\$HOME'.
1468
1469For better control, use the options below.
1470
1471Fine tuning of the installation directories:
1472  --bindir=DIR            user executables [EPREFIX/bin]
1473  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1474  --libexecdir=DIR        program executables [EPREFIX/libexec]
1475  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1476  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1477  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1478  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1479  --libdir=DIR            object code libraries [EPREFIX/lib]
1480  --includedir=DIR        C header files [PREFIX/include]
1481  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1482  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1483  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1484  --infodir=DIR           info documentation [DATAROOTDIR/info]
1485  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1486  --mandir=DIR            man documentation [DATAROOTDIR/man]
1487  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ati]
1488  --htmldir=DIR           html documentation [DOCDIR]
1489  --dvidir=DIR            dvi documentation [DOCDIR]
1490  --pdfdir=DIR            pdf documentation [DOCDIR]
1491  --psdir=DIR             ps documentation [DOCDIR]
1492_ACEOF
1493
1494  cat <<\_ACEOF
1495
1496Program names:
1497  --program-prefix=PREFIX            prepend PREFIX to installed program names
1498  --program-suffix=SUFFIX            append SUFFIX to installed program names
1499  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1500
1501System types:
1502  --build=BUILD     configure for building on BUILD [guessed]
1503  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1504_ACEOF
1505fi
1506
1507if test -n "$ac_init_help"; then
1508  case $ac_init_help in
1509     short | recursive ) echo "Configuration of xf86-video-ati 22.0.0:";;
1510   esac
1511  cat <<\_ACEOF
1512
1513Optional Features:
1514  --disable-option-checking  ignore unrecognized --enable/--with options
1515  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1516  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1517  --enable-silent-rules   less verbose build output (undo: "make V=1")
1518  --disable-silent-rules  verbose build output (undo: "make V=0")
1519  --disable-largefile     omit support for large files
1520  --enable-dependency-tracking
1521                          do not reject slow dependency extractors
1522  --disable-dependency-tracking
1523                          speeds up one-time build
1524  --disable-selective-werror
1525                          Turn off selective compiler errors. (default:
1526                          enabled)
1527  --enable-strict-compilation
1528                          Enable all warnings from compiler and make them
1529                          errors (default: disabled)
1530  --enable-static[=PKGS]  build static libraries [default=no]
1531  --enable-shared[=PKGS]  build shared libraries [default=yes]
1532  --enable-fast-install[=PKGS]
1533                          optimize for fast installation [default=yes]
1534  --disable-libtool-lock  avoid locking (might break parallel builds)
1535  --disable-udev          Disable libudev support [default=auto]
1536  --disable-glamor        Disable glamor, a new GL-based acceleration
1537                          [default=enabled]
1538
1539Optional Packages:
1540  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1541  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1542  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1543                          both]
1544  --with-aix-soname=aix|svr4|both
1545                          shared library versioning (aka "SONAME") variant to
1546                          provide on AIX, [default=aix].
1547  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1548  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1549                          compiler's sysroot if not specified).
1550  --with-xorg-module-dir=DIR
1551                          Default xorg module directory
1552                          [[default=$libdir/xorg/modules]]
1553  --with-xorg-conf-dir=DIR
1554                          Default xorg.conf.d directory
1555                          [[default=${prefix}/share/X11/xorg.conf.d]]
1556
1557Some influential environment variables:
1558  CC          C compiler command
1559  CFLAGS      C compiler flags
1560  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561              nonstandard directory <lib dir>
1562  LIBS        libraries to pass to the linker, e.g. -l<library>
1563  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564              you have headers in a nonstandard directory <include dir>
1565  PKG_CONFIG  path to pkg-config utility
1566  PKG_CONFIG_PATH
1567              directories to add to pkg-config's search path
1568  PKG_CONFIG_LIBDIR
1569              path overriding pkg-config's built-in search path
1570  LT_SYS_LIBRARY_PATH
1571              User-defined run-time library search path.
1572  LIBDRM_CFLAGS
1573              C compiler flags for LIBDRM, overriding pkg-config
1574  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1575  LIBDRM_RADEON_CFLAGS
1576              C compiler flags for LIBDRM_RADEON, overriding pkg-config
1577  LIBDRM_RADEON_LIBS
1578              linker flags for LIBDRM_RADEON, overriding pkg-config
1579  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1580  XORG_LIBS   linker flags for XORG, overriding pkg-config
1581  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1582  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1583  LIBUDEV_CFLAGS
1584              C compiler flags for LIBUDEV, overriding pkg-config
1585  LIBUDEV_LIBS
1586              linker flags for LIBUDEV, overriding pkg-config
1587  LIBGL_CFLAGS
1588              C compiler flags for LIBGL, overriding pkg-config
1589  LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
1590  LIBGLAMOR_CFLAGS
1591              C compiler flags for LIBGLAMOR, overriding pkg-config
1592  LIBGLAMOR_LIBS
1593              linker flags for LIBGLAMOR, overriding pkg-config
1594  LIBGLAMOR_EGL_CFLAGS
1595              C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1596  LIBGLAMOR_EGL_LIBS
1597              linker flags for LIBGLAMOR_EGL, overriding pkg-config
1598  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
1599  GBM_LIBS    linker flags for GBM, overriding pkg-config
1600  PCIACCESS_CFLAGS
1601              C compiler flags for PCIACCESS, overriding pkg-config
1602  PCIACCESS_LIBS
1603              linker flags for PCIACCESS, overriding pkg-config
1604
1605Use these variables to override the choices made by `configure' or to help
1606it to find libraries and programs with nonstandard names/locations.
1607
1608Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>.
1609_ACEOF
1610ac_status=$?
1611fi
1612
1613if test "$ac_init_help" = "recursive"; then
1614  # If there are subdirs, report their specific --help.
1615  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616    test -d "$ac_dir" ||
1617      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618      continue
1619    ac_builddir=.
1620
1621case "$ac_dir" in
1622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623*)
1624  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1625  # A ".." for each directory in $ac_dir_suffix.
1626  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627  case $ac_top_builddir_sub in
1628  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630  esac ;;
1631esac
1632ac_abs_top_builddir=$ac_pwd
1633ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634# for backward compatibility:
1635ac_top_builddir=$ac_top_build_prefix
1636
1637case $srcdir in
1638  .)  # We are building in place.
1639    ac_srcdir=.
1640    ac_top_srcdir=$ac_top_builddir_sub
1641    ac_abs_top_srcdir=$ac_pwd ;;
1642  [\\/]* | ?:[\\/]* )  # Absolute name.
1643    ac_srcdir=$srcdir$ac_dir_suffix;
1644    ac_top_srcdir=$srcdir
1645    ac_abs_top_srcdir=$srcdir ;;
1646  *) # Relative name.
1647    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648    ac_top_srcdir=$ac_top_build_prefix$srcdir
1649    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650esac
1651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653    cd "$ac_dir" || { ac_status=$?; continue; }
1654    # Check for configure.gnu first; this name is used for a wrapper for
1655    # Metaconfig's "Configure" on case-insensitive file systems.
1656    if test -f "$ac_srcdir/configure.gnu"; then
1657      echo &&
1658      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659    elif test -f "$ac_srcdir/configure"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure" --help=recursive
1662    else
1663      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664    fi || ac_status=$?
1665    cd "$ac_pwd" || { ac_status=$?; break; }
1666  done
1667fi
1668
1669test -n "$ac_init_help" && exit $ac_status
1670if $ac_init_version; then
1671  cat <<\_ACEOF
1672xf86-video-ati configure 22.0.0
1673generated by GNU Autoconf 2.71
1674
1675Copyright (C) 2021 Free Software Foundation, Inc.
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
1679  exit
1680fi
1681
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
1685
1686# ac_fn_c_try_compile LINENO
1687# --------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_compile ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  rm -f conftest.$ac_objext conftest.beam
1693  if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699printf "%s\n" "$ac_try_echo"; } >&5
1700  (eval "$ac_compile") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } && {
1709	 test -z "$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       } && test -s conftest.$ac_objext
1712then :
1713  ac_retval=0
1714else $as_nop
1715  printf "%s\n" "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718	ac_retval=1
1719fi
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_compile
1724
1725# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1726# ------------------------------------------------------------------
1727# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1728# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1729ac_fn_check_decl ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  as_decl_name=`echo $2|sed 's/ *(.*//'`
1733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1734printf %s "checking whether $as_decl_name is declared... " >&6; }
1735if eval test \${$3+y}
1736then :
1737  printf %s "(cached) " >&6
1738else $as_nop
1739  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1740  eval ac_save_FLAGS=\$$6
1741  as_fn_append $6 " $5"
1742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744$4
1745int
1746main (void)
1747{
1748#ifndef $as_decl_name
1749#ifdef __cplusplus
1750  (void) $as_decl_use;
1751#else
1752  (void) $as_decl_name;
1753#endif
1754#endif
1755
1756  ;
1757  return 0;
1758}
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"
1761then :
1762  eval "$3=yes"
1763else $as_nop
1764  eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1767  eval $6=\$ac_save_FLAGS
1768
1769fi
1770eval ac_res=\$$3
1771	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772printf "%s\n" "$ac_res" >&6; }
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775} # ac_fn_check_decl
1776
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785printf %s "checking for $2... " >&6; }
1786if eval test \${$3+y}
1787then :
1788  printf %s "(cached) " >&6
1789else $as_nop
1790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h.  */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"
1796then :
1797  eval "$3=yes"
1798else $as_nop
1799  eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1802fi
1803eval ac_res=\$$3
1804	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805printf "%s\n" "$ac_res" >&6; }
1806  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808} # ac_fn_c_check_header_compile
1809
1810# ac_fn_c_try_link LINENO
1811# -----------------------
1812# Try to link conftest.$ac_ext, and return whether this succeeded.
1813ac_fn_c_try_link ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1817  if { { ac_try="$ac_link"
1818case "(($ac_try" in
1819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820  *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823printf "%s\n" "$ac_try_echo"; } >&5
1824  (eval "$ac_link") 2>conftest.err
1825  ac_status=$?
1826  if test -s conftest.err; then
1827    grep -v '^ *+' conftest.err >conftest.er1
1828    cat conftest.er1 >&5
1829    mv -f conftest.er1 conftest.err
1830  fi
1831  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832  test $ac_status = 0; } && {
1833	 test -z "$ac_c_werror_flag" ||
1834	 test ! -s conftest.err
1835       } && test -s conftest$ac_exeext && {
1836	 test "$cross_compiling" = yes ||
1837	 test -x conftest$ac_exeext
1838       }
1839then :
1840  ac_retval=0
1841else $as_nop
1842  printf "%s\n" "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5
1844
1845	ac_retval=1
1846fi
1847  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849  # interfere with the next link command; also delete a directory that is
1850  # left behind by Apple's compiler.  We do this before executing the actions.
1851  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_link
1856
1857# ac_fn_c_check_func LINENO FUNC VAR
1858# ----------------------------------
1859# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864printf %s "checking for $2... " >&6; }
1865if eval test \${$3+y}
1866then :
1867  printf %s "(cached) " >&6
1868else $as_nop
1869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h.  */
1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1873#define $2 innocuous_$2
1874
1875/* System header to define __stub macros and hopefully few prototypes,
1876   which can conflict with char $2 (void); below.  */
1877
1878#include <limits.h>
1879#undef $2
1880
1881/* Override any GCC internal prototype to avoid an error.
1882   Use char because int might match the return type of a GCC
1883   builtin and then its argument prototype would still apply.  */
1884#ifdef __cplusplus
1885extern "C"
1886#endif
1887char $2 (void);
1888/* The GNU C library defines this for functions which it implements
1889    to always fail with ENOSYS.  Some functions are actually named
1890    something starting with __ and the normal name is an alias.  */
1891#if defined __stub_$2 || defined __stub___$2
1892choke me
1893#endif
1894
1895int
1896main (void)
1897{
1898return $2 ();
1899  ;
1900  return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_link "$LINENO"
1904then :
1905  eval "$3=yes"
1906else $as_nop
1907  eval "$3=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.beam \
1910    conftest$ac_exeext conftest.$ac_ext
1911fi
1912eval ac_res=\$$3
1913	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914printf "%s\n" "$ac_res" >&6; }
1915  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917} # ac_fn_c_check_func
1918ac_configure_args_raw=
1919for ac_arg
1920do
1921  case $ac_arg in
1922  *\'*)
1923    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924  esac
1925  as_fn_append ac_configure_args_raw " '$ac_arg'"
1926done
1927
1928case $ac_configure_args_raw in
1929  *$as_nl*)
1930    ac_safe_unquote= ;;
1931  *)
1932    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1933    ac_unsafe_a="$ac_unsafe_z#~"
1934    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1935    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1936esac
1937
1938cat >config.log <<_ACEOF
1939This file contains any messages produced by compilers while
1940running configure, to aid debugging if configure makes a mistake.
1941
1942It was created by xf86-video-ati $as_me 22.0.0, which was
1943generated by GNU Autoconf 2.71.  Invocation command line was
1944
1945  $ $0$ac_configure_args_raw
1946
1947_ACEOF
1948exec 5>>config.log
1949{
1950cat <<_ASUNAME
1951## --------- ##
1952## Platform. ##
1953## --------- ##
1954
1955hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1963
1964/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1965/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1966/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1968/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1969/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1970/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1971
1972_ASUNAME
1973
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977  IFS=$as_save_IFS
1978  case $as_dir in #(((
1979    '') as_dir=./ ;;
1980    */) ;;
1981    *) as_dir=$as_dir/ ;;
1982  esac
1983    printf "%s\n" "PATH: $as_dir"
1984  done
1985IFS=$as_save_IFS
1986
1987} >&5
1988
1989cat >&5 <<_ACEOF
1990
1991
1992## ----------- ##
1993## Core tests. ##
1994## ----------- ##
1995
1996_ACEOF
1997
1998
1999# Keep a trace of the command line.
2000# Strip out --no-create and --no-recursion so they do not pile up.
2001# Strip out --silent because we don't want to record it for future runs.
2002# Also quote any args containing shell meta-characters.
2003# Make two passes to allow for proper duplicate-argument suppression.
2004ac_configure_args=
2005ac_configure_args0=
2006ac_configure_args1=
2007ac_must_keep_next=false
2008for ac_pass in 1 2
2009do
2010  for ac_arg
2011  do
2012    case $ac_arg in
2013    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2014    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2015    | -silent | --silent | --silen | --sile | --sil)
2016      continue ;;
2017    *\'*)
2018      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2019    esac
2020    case $ac_pass in
2021    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2022    2)
2023      as_fn_append ac_configure_args1 " '$ac_arg'"
2024      if test $ac_must_keep_next = true; then
2025	ac_must_keep_next=false # Got value, back to normal.
2026      else
2027	case $ac_arg in
2028	  *=* | --config-cache | -C | -disable-* | --disable-* \
2029	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2030	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2031	  | -with-* | --with-* | -without-* | --without-* | --x)
2032	    case "$ac_configure_args0 " in
2033	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2034	    esac
2035	    ;;
2036	  -* ) ac_must_keep_next=true ;;
2037	esac
2038      fi
2039      as_fn_append ac_configure_args " '$ac_arg'"
2040      ;;
2041    esac
2042  done
2043done
2044{ ac_configure_args0=; unset ac_configure_args0;}
2045{ ac_configure_args1=; unset ac_configure_args1;}
2046
2047# When interrupted or exit'd, cleanup temporary files, and complete
2048# config.log.  We remove comments because anyway the quotes in there
2049# would cause problems or look ugly.
2050# WARNING: Use '\'' to represent an apostrophe within the trap.
2051# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2052trap 'exit_status=$?
2053  # Sanitize IFS.
2054  IFS=" ""	$as_nl"
2055  # Save into config.log some information that might help in debugging.
2056  {
2057    echo
2058
2059    printf "%s\n" "## ---------------- ##
2060## Cache variables. ##
2061## ---------------- ##"
2062    echo
2063    # The following way of writing the cache mishandles newlines in values,
2064(
2065  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066    eval ac_val=\$$ac_var
2067    case $ac_val in #(
2068    *${as_nl}*)
2069      case $ac_var in #(
2070      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072      esac
2073      case $ac_var in #(
2074      _ | IFS | as_nl) ;; #(
2075      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076      *) { eval $ac_var=; unset $ac_var;} ;;
2077      esac ;;
2078    esac
2079  done
2080  (set) 2>&1 |
2081    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082    *${as_nl}ac_space=\ *)
2083      sed -n \
2084	"s/'\''/'\''\\\\'\'''\''/g;
2085	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086      ;; #(
2087    *)
2088      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2089      ;;
2090    esac |
2091    sort
2092)
2093    echo
2094
2095    printf "%s\n" "## ----------------- ##
2096## Output variables. ##
2097## ----------------- ##"
2098    echo
2099    for ac_var in $ac_subst_vars
2100    do
2101      eval ac_val=\$$ac_var
2102      case $ac_val in
2103      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104      esac
2105      printf "%s\n" "$ac_var='\''$ac_val'\''"
2106    done | sort
2107    echo
2108
2109    if test -n "$ac_subst_files"; then
2110      printf "%s\n" "## ------------------- ##
2111## File substitutions. ##
2112## ------------------- ##"
2113      echo
2114      for ac_var in $ac_subst_files
2115      do
2116	eval ac_val=\$$ac_var
2117	case $ac_val in
2118	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119	esac
2120	printf "%s\n" "$ac_var='\''$ac_val'\''"
2121      done | sort
2122      echo
2123    fi
2124
2125    if test -s confdefs.h; then
2126      printf "%s\n" "## ----------- ##
2127## confdefs.h. ##
2128## ----------- ##"
2129      echo
2130      cat confdefs.h
2131      echo
2132    fi
2133    test "$ac_signal" != 0 &&
2134      printf "%s\n" "$as_me: caught signal $ac_signal"
2135    printf "%s\n" "$as_me: exit $exit_status"
2136  } >&5
2137  rm -f core *.core core.conftest.* &&
2138    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2139    exit $exit_status
2140' 0
2141for ac_signal in 1 2 13 15; do
2142  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2143done
2144ac_signal=0
2145
2146# confdefs.h avoids OS command line length limits that DEFS can exceed.
2147rm -f -r conftest* confdefs.h
2148
2149printf "%s\n" "/* confdefs.h */" > confdefs.h
2150
2151# Predefined preprocessor variables.
2152
2153printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2154
2155printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2156
2157printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2158
2159printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2160
2161printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2162
2163printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2164
2165
2166# Let the site file select an alternate cache file if it wants to.
2167# Prefer an explicitly selected file to automatically selected ones.
2168if test -n "$CONFIG_SITE"; then
2169  ac_site_files="$CONFIG_SITE"
2170elif test "x$prefix" != xNONE; then
2171  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2172else
2173  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2174fi
2175
2176for ac_site_file in $ac_site_files
2177do
2178  case $ac_site_file in #(
2179  */*) :
2180     ;; #(
2181  *) :
2182    ac_site_file=./$ac_site_file ;;
2183esac
2184  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2185    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2186printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2187    sed 's/^/| /' "$ac_site_file" >&5
2188    . "$ac_site_file" \
2189      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2190printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2191as_fn_error $? "failed to load site script $ac_site_file
2192See \`config.log' for more details" "$LINENO" 5; }
2193  fi
2194done
2195
2196if test -r "$cache_file"; then
2197  # Some versions of bash will fail to source /dev/null (special files
2198  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2199  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2200    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2201printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2202    case $cache_file in
2203      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2204      *)                      . "./$cache_file";;
2205    esac
2206  fi
2207else
2208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2209printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2210  >$cache_file
2211fi
2212
2213# Test code for whether the C compiler supports C89 (global declarations)
2214ac_c_conftest_c89_globals='
2215/* Does the compiler advertise C89 conformance?
2216   Do not test the value of __STDC__, because some compilers set it to 0
2217   while being otherwise adequately conformant. */
2218#if !defined __STDC__
2219# error "Compiler does not advertise C89 conformance"
2220#endif
2221
2222#include <stddef.h>
2223#include <stdarg.h>
2224struct stat;
2225/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2226struct buf { int x; };
2227struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2228static char *e (char **p, int i)
2229{
2230  return p[i];
2231}
2232static char *f (char * (*g) (char **, int), char **p, ...)
2233{
2234  char *s;
2235  va_list v;
2236  va_start (v,p);
2237  s = g (p, va_arg (v,int));
2238  va_end (v);
2239  return s;
2240}
2241
2242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2243   function prototypes and stuff, but not \xHH hex character constants.
2244   These do not provoke an error unfortunately, instead are silently treated
2245   as an "x".  The following induces an error, until -std is added to get
2246   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2247   array size at least.  It is necessary to write \x00 == 0 to get something
2248   that is true only with -std.  */
2249int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2250
2251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2252   inside strings and character constants.  */
2253#define FOO(x) '\''x'\''
2254int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2255
2256int test (int i, double x);
2257struct s1 {int (*f) (int a);};
2258struct s2 {int (*f) (double a);};
2259int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2260               int, int);'
2261
2262# Test code for whether the C compiler supports C89 (body of main).
2263ac_c_conftest_c89_main='
2264ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2265'
2266
2267# Test code for whether the C compiler supports C99 (global declarations)
2268ac_c_conftest_c99_globals='
2269// Does the compiler advertise C99 conformance?
2270#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2271# error "Compiler does not advertise C99 conformance"
2272#endif
2273
2274#include <stdbool.h>
2275extern int puts (const char *);
2276extern int printf (const char *, ...);
2277extern int dprintf (int, const char *, ...);
2278extern void *malloc (size_t);
2279extern void free (void *);
2280
2281// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2282// dprintf is used instead of fprintf to avoid needing to declare
2283// FILE and stderr.
2284#define debug(...) dprintf (2, __VA_ARGS__)
2285#define showlist(...) puts (#__VA_ARGS__)
2286#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2287static void
2288test_varargs_macros (void)
2289{
2290  int x = 1234;
2291  int y = 5678;
2292  debug ("Flag");
2293  debug ("X = %d\n", x);
2294  showlist (The first, second, and third items.);
2295  report (x>y, "x is %d but y is %d", x, y);
2296}
2297
2298// Check long long types.
2299#define BIG64 18446744073709551615ull
2300#define BIG32 4294967295ul
2301#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2302#if !BIG_OK
2303  #error "your preprocessor is broken"
2304#endif
2305#if BIG_OK
2306#else
2307  #error "your preprocessor is broken"
2308#endif
2309static long long int bignum = -9223372036854775807LL;
2310static unsigned long long int ubignum = BIG64;
2311
2312struct incomplete_array
2313{
2314  int datasize;
2315  double data[];
2316};
2317
2318struct named_init {
2319  int number;
2320  const wchar_t *name;
2321  double average;
2322};
2323
2324typedef const char *ccp;
2325
2326static inline int
2327test_restrict (ccp restrict text)
2328{
2329  // See if C++-style comments work.
2330  // Iterate through items via the restricted pointer.
2331  // Also check for declarations in for loops.
2332  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2333    continue;
2334  return 0;
2335}
2336
2337// Check varargs and va_copy.
2338static bool
2339test_varargs (const char *format, ...)
2340{
2341  va_list args;
2342  va_start (args, format);
2343  va_list args_copy;
2344  va_copy (args_copy, args);
2345
2346  const char *str = "";
2347  int number = 0;
2348  float fnumber = 0;
2349
2350  while (*format)
2351    {
2352      switch (*format++)
2353	{
2354	case '\''s'\'': // string
2355	  str = va_arg (args_copy, const char *);
2356	  break;
2357	case '\''d'\'': // int
2358	  number = va_arg (args_copy, int);
2359	  break;
2360	case '\''f'\'': // float
2361	  fnumber = va_arg (args_copy, double);
2362	  break;
2363	default:
2364	  break;
2365	}
2366    }
2367  va_end (args_copy);
2368  va_end (args);
2369
2370  return *str && number && fnumber;
2371}
2372'
2373
2374# Test code for whether the C compiler supports C99 (body of main).
2375ac_c_conftest_c99_main='
2376  // Check bool.
2377  _Bool success = false;
2378  success |= (argc != 0);
2379
2380  // Check restrict.
2381  if (test_restrict ("String literal") == 0)
2382    success = true;
2383  char *restrict newvar = "Another string";
2384
2385  // Check varargs.
2386  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2387  test_varargs_macros ();
2388
2389  // Check flexible array members.
2390  struct incomplete_array *ia =
2391    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2392  ia->datasize = 10;
2393  for (int i = 0; i < ia->datasize; ++i)
2394    ia->data[i] = i * 1.234;
2395
2396  // Check named initializers.
2397  struct named_init ni = {
2398    .number = 34,
2399    .name = L"Test wide string",
2400    .average = 543.34343,
2401  };
2402
2403  ni.number = 58;
2404
2405  int dynamic_array[ni.number];
2406  dynamic_array[0] = argv[0][0];
2407  dynamic_array[ni.number - 1] = 543;
2408
2409  // work around unused variable warnings
2410  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2411	 || dynamic_array[ni.number - 1] != 543);
2412'
2413
2414# Test code for whether the C compiler supports C11 (global declarations)
2415ac_c_conftest_c11_globals='
2416// Does the compiler advertise C11 conformance?
2417#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2418# error "Compiler does not advertise C11 conformance"
2419#endif
2420
2421// Check _Alignas.
2422char _Alignas (double) aligned_as_double;
2423char _Alignas (0) no_special_alignment;
2424extern char aligned_as_int;
2425char _Alignas (0) _Alignas (int) aligned_as_int;
2426
2427// Check _Alignof.
2428enum
2429{
2430  int_alignment = _Alignof (int),
2431  int_array_alignment = _Alignof (int[100]),
2432  char_alignment = _Alignof (char)
2433};
2434_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2435
2436// Check _Noreturn.
2437int _Noreturn does_not_return (void) { for (;;) continue; }
2438
2439// Check _Static_assert.
2440struct test_static_assert
2441{
2442  int x;
2443  _Static_assert (sizeof (int) <= sizeof (long int),
2444                  "_Static_assert does not work in struct");
2445  long int y;
2446};
2447
2448// Check UTF-8 literals.
2449#define u8 syntax error!
2450char const utf8_literal[] = u8"happens to be ASCII" "another string";
2451
2452// Check duplicate typedefs.
2453typedef long *long_ptr;
2454typedef long int *long_ptr;
2455typedef long_ptr long_ptr;
2456
2457// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2458struct anonymous
2459{
2460  union {
2461    struct { int i; int j; };
2462    struct { int k; long int l; } w;
2463  };
2464  int m;
2465} v1;
2466'
2467
2468# Test code for whether the C compiler supports C11 (body of main).
2469ac_c_conftest_c11_main='
2470  _Static_assert ((offsetof (struct anonymous, i)
2471		   == offsetof (struct anonymous, w.k)),
2472		  "Anonymous union alignment botch");
2473  v1.i = 2;
2474  v1.w.k = 5;
2475  ok |= v1.i != 5;
2476'
2477
2478# Test code for whether the C compiler supports C11 (complete).
2479ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2480${ac_c_conftest_c99_globals}
2481${ac_c_conftest_c11_globals}
2482
2483int
2484main (int argc, char **argv)
2485{
2486  int ok = 0;
2487  ${ac_c_conftest_c89_main}
2488  ${ac_c_conftest_c99_main}
2489  ${ac_c_conftest_c11_main}
2490  return ok;
2491}
2492"
2493
2494# Test code for whether the C compiler supports C99 (complete).
2495ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2496${ac_c_conftest_c99_globals}
2497
2498int
2499main (int argc, char **argv)
2500{
2501  int ok = 0;
2502  ${ac_c_conftest_c89_main}
2503  ${ac_c_conftest_c99_main}
2504  return ok;
2505}
2506"
2507
2508# Test code for whether the C compiler supports C89 (complete).
2509ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2510
2511int
2512main (int argc, char **argv)
2513{
2514  int ok = 0;
2515  ${ac_c_conftest_c89_main}
2516  return ok;
2517}
2518"
2519
2520as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2521as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2522as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2523as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2524as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2525as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2526as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2527as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2528as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2529
2530# Auxiliary files required by this configure script.
2531ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2532
2533# Locations in which to look for auxiliary files.
2534ac_aux_dir_candidates="${srcdir}/."
2535
2536# Search for a directory containing all of the required auxiliary files,
2537# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2538# If we don't find one directory that contains all the files we need,
2539# we report the set of missing files from the *first* directory in
2540# $ac_aux_dir_candidates and give up.
2541ac_missing_aux_files=""
2542ac_first_candidate=:
2543printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545as_found=false
2546for as_dir in $ac_aux_dir_candidates
2547do
2548  IFS=$as_save_IFS
2549  case $as_dir in #(((
2550    '') as_dir=./ ;;
2551    */) ;;
2552    *) as_dir=$as_dir/ ;;
2553  esac
2554  as_found=:
2555
2556  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2557  ac_aux_dir_found=yes
2558  ac_install_sh=
2559  for ac_aux in $ac_aux_files
2560  do
2561    # As a special case, if "install-sh" is required, that requirement
2562    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2563    # and $ac_install_sh is set appropriately for whichever one is found.
2564    if test x"$ac_aux" = x"install-sh"
2565    then
2566      if test -f "${as_dir}install-sh"; then
2567        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2568        ac_install_sh="${as_dir}install-sh -c"
2569      elif test -f "${as_dir}install.sh"; then
2570        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2571        ac_install_sh="${as_dir}install.sh -c"
2572      elif test -f "${as_dir}shtool"; then
2573        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2574        ac_install_sh="${as_dir}shtool install -c"
2575      else
2576        ac_aux_dir_found=no
2577        if $ac_first_candidate; then
2578          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2579        else
2580          break
2581        fi
2582      fi
2583    else
2584      if test -f "${as_dir}${ac_aux}"; then
2585        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2586      else
2587        ac_aux_dir_found=no
2588        if $ac_first_candidate; then
2589          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2590        else
2591          break
2592        fi
2593      fi
2594    fi
2595  done
2596  if test "$ac_aux_dir_found" = yes; then
2597    ac_aux_dir="$as_dir"
2598    break
2599  fi
2600  ac_first_candidate=false
2601
2602  as_found=false
2603done
2604IFS=$as_save_IFS
2605if $as_found
2606then :
2607
2608else $as_nop
2609  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2610fi
2611
2612
2613# These three variables are undocumented and unsupported,
2614# and are intended to be withdrawn in a future Autoconf release.
2615# They can cause serious problems if a builder's source tree is in a directory
2616# whose full name contains unusual characters.
2617if test -f "${ac_aux_dir}config.guess"; then
2618  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2619fi
2620if test -f "${ac_aux_dir}config.sub"; then
2621  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2622fi
2623if test -f "$ac_aux_dir/configure"; then
2624  ac_configure="$SHELL ${ac_aux_dir}configure"
2625fi
2626
2627# Check that the precious variables saved in the cache have kept the same
2628# value.
2629ac_cache_corrupted=false
2630for ac_var in $ac_precious_vars; do
2631  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632  eval ac_new_set=\$ac_env_${ac_var}_set
2633  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634  eval ac_new_val=\$ac_env_${ac_var}_value
2635  case $ac_old_set,$ac_new_set in
2636    set,)
2637      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639      ac_cache_corrupted=: ;;
2640    ,set)
2641      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643      ac_cache_corrupted=: ;;
2644    ,);;
2645    *)
2646      if test "x$ac_old_val" != "x$ac_new_val"; then
2647	# differences in whitespace do not lead to failure.
2648	ac_old_val_w=`echo x $ac_old_val`
2649	ac_new_val_w=`echo x $ac_new_val`
2650	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653	  ac_cache_corrupted=:
2654	else
2655	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657	  eval $ac_var=\$ac_old_val
2658	fi
2659	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2660printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2662printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2663      fi;;
2664  esac
2665  # Pass precious variables to config.status.
2666  if test "$ac_new_set" = set; then
2667    case $ac_new_val in
2668    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669    *) ac_arg=$ac_var=$ac_new_val ;;
2670    esac
2671    case " $ac_configure_args " in
2672      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2673      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2674    esac
2675  fi
2676done
2677if $ac_cache_corrupted; then
2678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2682  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2683	    and start over" "$LINENO" 5
2684fi
2685## -------------------- ##
2686## Main body of script. ##
2687## -------------------- ##
2688
2689ac_ext=c
2690ac_cpp='$CPP $CPPFLAGS'
2691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694
2695
2696
2697
2698ac_config_headers="$ac_config_headers config.h"
2699
2700
2701
2702
2703
2704# Initialize Automake
2705am__api_version='1.16'
2706
2707
2708
2709  # Find a good install program.  We prefer a C program (faster),
2710# so one script is as good as another.  But avoid the broken or
2711# incompatible versions:
2712# SysV /etc/install, /usr/sbin/install
2713# SunOS /usr/etc/install
2714# IRIX /sbin/install
2715# AIX /bin/install
2716# AmigaOS /C/install, which installs bootblocks on floppy discs
2717# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2718# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2719# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2720# OS/2's system install, which has a completely different semantic
2721# ./install, which can be erroneously created by make from ./install.sh.
2722# Reject install programs that cannot install multiple files.
2723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2724printf %s "checking for a BSD-compatible install... " >&6; }
2725if test -z "$INSTALL"; then
2726if test ${ac_cv_path_install+y}
2727then :
2728  printf %s "(cached) " >&6
2729else $as_nop
2730  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733  IFS=$as_save_IFS
2734  case $as_dir in #(((
2735    '') as_dir=./ ;;
2736    */) ;;
2737    *) as_dir=$as_dir/ ;;
2738  esac
2739    # Account for fact that we put trailing slashes in our PATH walk.
2740case $as_dir in #((
2741  ./ | /[cC]/* | \
2742  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2743  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2744  /usr/ucb/* ) ;;
2745  *)
2746    # OSF1 and SCO ODT 3.0 have their own names for install.
2747    # Don't use installbsd from OSF since it installs stuff as root
2748    # by default.
2749    for ac_prog in ginstall scoinst install; do
2750      for ac_exec_ext in '' $ac_executable_extensions; do
2751	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2752	  if test $ac_prog = install &&
2753	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2754	    # AIX install.  It has an incompatible calling convention.
2755	    :
2756	  elif test $ac_prog = install &&
2757	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2758	    # program-specific install script used by HP pwplus--don't use.
2759	    :
2760	  else
2761	    rm -rf conftest.one conftest.two conftest.dir
2762	    echo one > conftest.one
2763	    echo two > conftest.two
2764	    mkdir conftest.dir
2765	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2766	      test -s conftest.one && test -s conftest.two &&
2767	      test -s conftest.dir/conftest.one &&
2768	      test -s conftest.dir/conftest.two
2769	    then
2770	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2771	      break 3
2772	    fi
2773	  fi
2774	fi
2775      done
2776    done
2777    ;;
2778esac
2779
2780  done
2781IFS=$as_save_IFS
2782
2783rm -rf conftest.one conftest.two conftest.dir
2784
2785fi
2786  if test ${ac_cv_path_install+y}; then
2787    INSTALL=$ac_cv_path_install
2788  else
2789    # As a last resort, use the slow shell script.  Don't cache a
2790    # value for INSTALL within a source directory, because that will
2791    # break other packages using the cache if that directory is
2792    # removed, or if the value is a relative name.
2793    INSTALL=$ac_install_sh
2794  fi
2795fi
2796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2797printf "%s\n" "$INSTALL" >&6; }
2798
2799# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2800# It thinks the first close brace ends the variable substitution.
2801test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2802
2803test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2804
2805test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2806
2807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2808printf %s "checking whether build environment is sane... " >&6; }
2809# Reject unsafe characters in $srcdir or the absolute working directory
2810# name.  Accept space and tab only in the latter.
2811am_lf='
2812'
2813case `pwd` in
2814  *[\\\"\#\$\&\'\`$am_lf]*)
2815    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2816esac
2817case $srcdir in
2818  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2819    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2820esac
2821
2822# Do 'set' in a subshell so we don't clobber the current shell's
2823# arguments.  Must try -L first in case configure is actually a
2824# symlink; some systems play weird games with the mod time of symlinks
2825# (eg FreeBSD returns the mod time of the symlink's containing
2826# directory).
2827if (
2828   am_has_slept=no
2829   for am_try in 1 2; do
2830     echo "timestamp, slept: $am_has_slept" > conftest.file
2831     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2832     if test "$*" = "X"; then
2833	# -L didn't work.
2834	set X `ls -t "$srcdir/configure" conftest.file`
2835     fi
2836     if test "$*" != "X $srcdir/configure conftest.file" \
2837	&& test "$*" != "X conftest.file $srcdir/configure"; then
2838
2839	# If neither matched, then we have a broken ls.  This can happen
2840	# if, for instance, CONFIG_SHELL is bash and it inherits a
2841	# broken ls alias from the environment.  This has actually
2842	# happened.  Such a system could not be considered "sane".
2843	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2844  alias in your environment" "$LINENO" 5
2845     fi
2846     if test "$2" = conftest.file || test $am_try -eq 2; then
2847       break
2848     fi
2849     # Just in case.
2850     sleep 1
2851     am_has_slept=yes
2852   done
2853   test "$2" = conftest.file
2854   )
2855then
2856   # Ok.
2857   :
2858else
2859   as_fn_error $? "newly created file is older than distributed files!
2860Check your system clock" "$LINENO" 5
2861fi
2862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863printf "%s\n" "yes" >&6; }
2864# If we didn't sleep, we still need to ensure time stamps of config.status and
2865# generated files are strictly newer.
2866am_sleep_pid=
2867if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2868  ( sleep 1 ) &
2869  am_sleep_pid=$!
2870fi
2871
2872rm -f conftest.file
2873
2874test "$program_prefix" != NONE &&
2875  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2876# Use a double $ so make ignores it.
2877test "$program_suffix" != NONE &&
2878  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2879# Double any \ or $.
2880# By default was `s,x,x', remove it if useless.
2881ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2882program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2883
2884
2885# Expand $ac_aux_dir to an absolute path.
2886am_aux_dir=`cd "$ac_aux_dir" && pwd`
2887
2888
2889  if test x"${MISSING+set}" != xset; then
2890  MISSING="\${SHELL} '$am_aux_dir/missing'"
2891fi
2892# Use eval to expand $SHELL
2893if eval "$MISSING --is-lightweight"; then
2894  am_missing_run="$MISSING "
2895else
2896  am_missing_run=
2897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2898printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2899fi
2900
2901if test x"${install_sh+set}" != xset; then
2902  case $am_aux_dir in
2903  *\ * | *\	*)
2904    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2905  *)
2906    install_sh="\${SHELL} $am_aux_dir/install-sh"
2907  esac
2908fi
2909
2910# Installed binaries are usually stripped using 'strip' when the user
2911# run "make install-strip".  However 'strip' might not be the right
2912# tool to use in cross-compilation environments, therefore Automake
2913# will honor the 'STRIP' environment variable to overrule this program.
2914if test "$cross_compiling" != no; then
2915  if test -n "$ac_tool_prefix"; then
2916  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2917set dummy ${ac_tool_prefix}strip; ac_word=$2
2918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919printf %s "checking for $ac_word... " >&6; }
2920if test ${ac_cv_prog_STRIP+y}
2921then :
2922  printf %s "(cached) " >&6
2923else $as_nop
2924  if test -n "$STRIP"; then
2925  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2926else
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  case $as_dir in #(((
2932    '') as_dir=./ ;;
2933    */) ;;
2934    *) as_dir=$as_dir/ ;;
2935  esac
2936    for ac_exec_ext in '' $ac_executable_extensions; do
2937  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2938    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2939    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943  done
2944IFS=$as_save_IFS
2945
2946fi
2947fi
2948STRIP=$ac_cv_prog_STRIP
2949if test -n "$STRIP"; then
2950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2951printf "%s\n" "$STRIP" >&6; }
2952else
2953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954printf "%s\n" "no" >&6; }
2955fi
2956
2957
2958fi
2959if test -z "$ac_cv_prog_STRIP"; then
2960  ac_ct_STRIP=$STRIP
2961  # Extract the first word of "strip", so it can be a program name with args.
2962set dummy strip; ac_word=$2
2963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964printf %s "checking for $ac_word... " >&6; }
2965if test ${ac_cv_prog_ac_ct_STRIP+y}
2966then :
2967  printf %s "(cached) " >&6
2968else $as_nop
2969  if test -n "$ac_ct_STRIP"; then
2970  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  case $as_dir in #(((
2977    '') as_dir=./ ;;
2978    */) ;;
2979    *) as_dir=$as_dir/ ;;
2980  esac
2981    for ac_exec_ext in '' $ac_executable_extensions; do
2982  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2983    ac_cv_prog_ac_ct_STRIP="strip"
2984    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988  done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2994if test -n "$ac_ct_STRIP"; then
2995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2996printf "%s\n" "$ac_ct_STRIP" >&6; }
2997else
2998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999printf "%s\n" "no" >&6; }
3000fi
3001
3002  if test "x$ac_ct_STRIP" = x; then
3003    STRIP=":"
3004  else
3005    case $cross_compiling:$ac_tool_warned in
3006yes:)
3007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009ac_tool_warned=yes ;;
3010esac
3011    STRIP=$ac_ct_STRIP
3012  fi
3013else
3014  STRIP="$ac_cv_prog_STRIP"
3015fi
3016
3017fi
3018INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019
3020
3021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3022printf %s "checking for a race-free mkdir -p... " >&6; }
3023if test -z "$MKDIR_P"; then
3024  if test ${ac_cv_path_mkdir+y}
3025then :
3026  printf %s "(cached) " >&6
3027else $as_nop
3028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3030do
3031  IFS=$as_save_IFS
3032  case $as_dir in #(((
3033    '') as_dir=./ ;;
3034    */) ;;
3035    *) as_dir=$as_dir/ ;;
3036  esac
3037    for ac_prog in mkdir gmkdir; do
3038	 for ac_exec_ext in '' $ac_executable_extensions; do
3039	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3040	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3041	     'mkdir ('*'coreutils) '* | \
3042	     'BusyBox '* | \
3043	     'mkdir (fileutils) '4.1*)
3044	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3045	       break 3;;
3046	   esac
3047	 done
3048       done
3049  done
3050IFS=$as_save_IFS
3051
3052fi
3053
3054  test -d ./--version && rmdir ./--version
3055  if test ${ac_cv_path_mkdir+y}; then
3056    MKDIR_P="$ac_cv_path_mkdir -p"
3057  else
3058    # As a last resort, use the slow shell script.  Don't cache a
3059    # value for MKDIR_P within a source directory, because that will
3060    # break other packages using the cache if that directory is
3061    # removed, or if the value is a relative name.
3062    MKDIR_P="$ac_install_sh -d"
3063  fi
3064fi
3065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3066printf "%s\n" "$MKDIR_P" >&6; }
3067
3068for ac_prog in gawk mawk nawk awk
3069do
3070  # Extract the first word of "$ac_prog", so it can be a program name with args.
3071set dummy $ac_prog; ac_word=$2
3072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073printf %s "checking for $ac_word... " >&6; }
3074if test ${ac_cv_prog_AWK+y}
3075then :
3076  printf %s "(cached) " >&6
3077else $as_nop
3078  if test -n "$AWK"; then
3079  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3080else
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084  IFS=$as_save_IFS
3085  case $as_dir in #(((
3086    '') as_dir=./ ;;
3087    */) ;;
3088    *) as_dir=$as_dir/ ;;
3089  esac
3090    for ac_exec_ext in '' $ac_executable_extensions; do
3091  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3092    ac_cv_prog_AWK="$ac_prog"
3093    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3094    break 2
3095  fi
3096done
3097  done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102AWK=$ac_cv_prog_AWK
3103if test -n "$AWK"; then
3104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105printf "%s\n" "$AWK" >&6; }
3106else
3107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108printf "%s\n" "no" >&6; }
3109fi
3110
3111
3112  test -n "$AWK" && break
3113done
3114
3115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117set x ${MAKE-make}
3118ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3120then :
3121  printf %s "(cached) " >&6
3122else $as_nop
3123  cat >conftest.make <<\_ACEOF
3124SHELL = /bin/sh
3125all:
3126	@echo '@@@%%%=$(MAKE)=@@@%%%'
3127_ACEOF
3128# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3129case `${MAKE-make} -f conftest.make 2>/dev/null` in
3130  *@@@%%%=?*=@@@%%%*)
3131    eval ac_cv_prog_make_${ac_make}_set=yes;;
3132  *)
3133    eval ac_cv_prog_make_${ac_make}_set=no;;
3134esac
3135rm -f conftest.make
3136fi
3137if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139printf "%s\n" "yes" >&6; }
3140  SET_MAKE=
3141else
3142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143printf "%s\n" "no" >&6; }
3144  SET_MAKE="MAKE=${MAKE-make}"
3145fi
3146
3147rm -rf .tst 2>/dev/null
3148mkdir .tst 2>/dev/null
3149if test -d .tst; then
3150  am__leading_dot=.
3151else
3152  am__leading_dot=_
3153fi
3154rmdir .tst 2>/dev/null
3155
3156# Check whether --enable-silent-rules was given.
3157if test ${enable_silent_rules+y}
3158then :
3159  enableval=$enable_silent_rules;
3160fi
3161
3162case $enable_silent_rules in # (((
3163  yes) AM_DEFAULT_VERBOSITY=0;;
3164   no) AM_DEFAULT_VERBOSITY=1;;
3165    *) AM_DEFAULT_VERBOSITY=1;;
3166esac
3167am_make=${MAKE-make}
3168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3169printf %s "checking whether $am_make supports nested variables... " >&6; }
3170if test ${am_cv_make_support_nested_variables+y}
3171then :
3172  printf %s "(cached) " >&6
3173else $as_nop
3174  if printf "%s\n" 'TRUE=$(BAR$(V))
3175BAR0=false
3176BAR1=true
3177V=1
3178am__doit:
3179	@$(TRUE)
3180.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3181  am_cv_make_support_nested_variables=yes
3182else
3183  am_cv_make_support_nested_variables=no
3184fi
3185fi
3186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3187printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3188if test $am_cv_make_support_nested_variables = yes; then
3189    AM_V='$(V)'
3190  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3191else
3192  AM_V=$AM_DEFAULT_VERBOSITY
3193  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3194fi
3195AM_BACKSLASH='\'
3196
3197if test "`cd $srcdir && pwd`" != "`pwd`"; then
3198  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3199  # is not polluted with repeated "-I."
3200  am__isrc=' -I$(srcdir)'
3201  # test to see if srcdir already configured
3202  if test -f $srcdir/config.status; then
3203    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3204  fi
3205fi
3206
3207# test whether we have cygpath
3208if test -z "$CYGPATH_W"; then
3209  if (cygpath --version) >/dev/null 2>/dev/null; then
3210    CYGPATH_W='cygpath -w'
3211  else
3212    CYGPATH_W=echo
3213  fi
3214fi
3215
3216
3217# Define the identity of the package.
3218 PACKAGE='xf86-video-ati'
3219 VERSION='22.0.0'
3220
3221
3222printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3223
3224
3225printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3226
3227# Some tools Automake needs.
3228
3229ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3230
3231
3232AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3233
3234
3235AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3236
3237
3238AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3239
3240
3241MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3242
3243# For better backward compatibility.  To be removed once Automake 1.9.x
3244# dies out for good.  For more background, see:
3245# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3246# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3247mkdir_p='$(MKDIR_P)'
3248
3249# We need awk for the "check" target (and possibly the TAP driver).  The
3250# system "awk" is bad on some platforms.
3251# Always define AMTAR for backward compatibility.  Yes, it's still used
3252# in the wild :-(  We should find a proper way to deprecate it ...
3253AMTAR='$${TAR-tar}'
3254
3255
3256# We'll loop over all known methods to create a tar archive until one works.
3257_am_tools='gnutar  pax cpio none'
3258
3259am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3260
3261
3262
3263
3264
3265# Variables for tags utilities; see am/tags.am
3266if test -z "$CTAGS"; then
3267  CTAGS=ctags
3268fi
3269
3270if test -z "$ETAGS"; then
3271  ETAGS=etags
3272fi
3273
3274if test -z "$CSCOPE"; then
3275  CSCOPE=cscope
3276fi
3277
3278
3279
3280# POSIX will say in a future version that running "rm -f" with no argument
3281# is OK; and we want to be able to make that assumption in our Makefile
3282# recipes.  So use an aggressive probe to check that the usage we want is
3283# actually supported "in the wild" to an acceptable degree.
3284# See automake bug#10828.
3285# To make any issue more visible, cause the running configure to be aborted
3286# by default if the 'rm' program in use doesn't match our expectations; the
3287# user can still override this though.
3288if rm -f && rm -fr && rm -rf; then : OK; else
3289  cat >&2 <<'END'
3290Oops!
3291
3292Your 'rm' program seems unable to run without file operands specified
3293on the command line, even when the '-f' option is present.  This is contrary
3294to the behaviour of most rm programs out there, and not conforming with
3295the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3296
3297Please tell bug-automake@gnu.org about your system, including the value
3298of your $PATH and any error possibly output before this message.  This
3299can help us improve future automake versions.
3300
3301END
3302  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3303    echo 'Configuration will proceed anyway, since you have set the' >&2
3304    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3305    echo >&2
3306  else
3307    cat >&2 <<'END'
3308Aborting the configuration process, to ensure you take notice of the issue.
3309
3310You can download and install GNU coreutils to get an 'rm' implementation
3311that behaves properly: <https://www.gnu.org/software/coreutils/>.
3312
3313If you want to complete the configuration process using your problematic
3314'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3315to "yes", and re-run configure.
3316
3317END
3318    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3319  fi
3320fi
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331DEPDIR="${am__leading_dot}deps"
3332
3333ac_config_commands="$ac_config_commands depfiles"
3334
3335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3336printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3337cat > confinc.mk << 'END'
3338am__doit:
3339	@echo this is the am__doit target >confinc.out
3340.PHONY: am__doit
3341END
3342am__include="#"
3343am__quote=
3344# BSD make does it like this.
3345echo '.include "confinc.mk" # ignored' > confmf.BSD
3346# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3347echo 'include confinc.mk # ignored' > confmf.GNU
3348_am_result=no
3349for s in GNU BSD; do
3350  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3351   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }
3355  case $?:`cat confinc.out 2>/dev/null` in #(
3356  '0:this is the am__doit target') :
3357    case $s in #(
3358  BSD) :
3359    am__include='.include' am__quote='"' ;; #(
3360  *) :
3361    am__include='include' am__quote='' ;;
3362esac ;; #(
3363  *) :
3364     ;;
3365esac
3366  if test "$am__include" != "#"; then
3367    _am_result="yes ($s style)"
3368    break
3369  fi
3370done
3371rm -f confinc.* confmf.*
3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3373printf "%s\n" "${_am_result}" >&6; }
3374
3375# Check whether --enable-dependency-tracking was given.
3376if test ${enable_dependency_tracking+y}
3377then :
3378  enableval=$enable_dependency_tracking;
3379fi
3380
3381if test "x$enable_dependency_tracking" != xno; then
3382  am_depcomp="$ac_aux_dir/depcomp"
3383  AMDEPBACKSLASH='\'
3384  am__nodep='_no'
3385fi
3386 if test "x$enable_dependency_tracking" != xno; then
3387  AMDEP_TRUE=
3388  AMDEP_FALSE='#'
3389else
3390  AMDEP_TRUE='#'
3391  AMDEP_FALSE=
3392fi
3393
3394
3395ac_ext=c
3396ac_cpp='$CPP $CPPFLAGS'
3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400if test -n "$ac_tool_prefix"; then
3401  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3402set dummy ${ac_tool_prefix}gcc; ac_word=$2
3403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404printf %s "checking for $ac_word... " >&6; }
3405if test ${ac_cv_prog_CC+y}
3406then :
3407  printf %s "(cached) " >&6
3408else $as_nop
3409  if test -n "$CC"; then
3410  ac_cv_prog_CC="$CC" # Let the user override the test.
3411else
3412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413for as_dir in $PATH
3414do
3415  IFS=$as_save_IFS
3416  case $as_dir in #(((
3417    '') as_dir=./ ;;
3418    */) ;;
3419    *) as_dir=$as_dir/ ;;
3420  esac
3421    for ac_exec_ext in '' $ac_executable_extensions; do
3422  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3423    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3424    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3425    break 2
3426  fi
3427done
3428  done
3429IFS=$as_save_IFS
3430
3431fi
3432fi
3433CC=$ac_cv_prog_CC
3434if test -n "$CC"; then
3435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436printf "%s\n" "$CC" >&6; }
3437else
3438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439printf "%s\n" "no" >&6; }
3440fi
3441
3442
3443fi
3444if test -z "$ac_cv_prog_CC"; then
3445  ac_ct_CC=$CC
3446  # Extract the first word of "gcc", so it can be a program name with args.
3447set dummy gcc; ac_word=$2
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449printf %s "checking for $ac_word... " >&6; }
3450if test ${ac_cv_prog_ac_ct_CC+y}
3451then :
3452  printf %s "(cached) " >&6
3453else $as_nop
3454  if test -n "$ac_ct_CC"; then
3455  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456else
3457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458for as_dir in $PATH
3459do
3460  IFS=$as_save_IFS
3461  case $as_dir in #(((
3462    '') as_dir=./ ;;
3463    */) ;;
3464    *) as_dir=$as_dir/ ;;
3465  esac
3466    for ac_exec_ext in '' $ac_executable_extensions; do
3467  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3468    ac_cv_prog_ac_ct_CC="gcc"
3469    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3470    break 2
3471  fi
3472done
3473  done
3474IFS=$as_save_IFS
3475
3476fi
3477fi
3478ac_ct_CC=$ac_cv_prog_ac_ct_CC
3479if test -n "$ac_ct_CC"; then
3480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3481printf "%s\n" "$ac_ct_CC" >&6; }
3482else
3483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484printf "%s\n" "no" >&6; }
3485fi
3486
3487  if test "x$ac_ct_CC" = x; then
3488    CC=""
3489  else
3490    case $cross_compiling:$ac_tool_warned in
3491yes:)
3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494ac_tool_warned=yes ;;
3495esac
3496    CC=$ac_ct_CC
3497  fi
3498else
3499  CC="$ac_cv_prog_CC"
3500fi
3501
3502if test -z "$CC"; then
3503          if test -n "$ac_tool_prefix"; then
3504    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3505set dummy ${ac_tool_prefix}cc; ac_word=$2
3506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507printf %s "checking for $ac_word... " >&6; }
3508if test ${ac_cv_prog_CC+y}
3509then :
3510  printf %s "(cached) " >&6
3511else $as_nop
3512  if test -n "$CC"; then
3513  ac_cv_prog_CC="$CC" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518  IFS=$as_save_IFS
3519  case $as_dir in #(((
3520    '') as_dir=./ ;;
3521    */) ;;
3522    *) as_dir=$as_dir/ ;;
3523  esac
3524    for ac_exec_ext in '' $ac_executable_extensions; do
3525  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3526    ac_cv_prog_CC="${ac_tool_prefix}cc"
3527    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3528    break 2
3529  fi
3530done
3531  done
3532IFS=$as_save_IFS
3533
3534fi
3535fi
3536CC=$ac_cv_prog_CC
3537if test -n "$CC"; then
3538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539printf "%s\n" "$CC" >&6; }
3540else
3541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542printf "%s\n" "no" >&6; }
3543fi
3544
3545
3546  fi
3547fi
3548if test -z "$CC"; then
3549  # Extract the first word of "cc", so it can be a program name with args.
3550set dummy cc; ac_word=$2
3551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552printf %s "checking for $ac_word... " >&6; }
3553if test ${ac_cv_prog_CC+y}
3554then :
3555  printf %s "(cached) " >&6
3556else $as_nop
3557  if test -n "$CC"; then
3558  ac_cv_prog_CC="$CC" # Let the user override the test.
3559else
3560  ac_prog_rejected=no
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564  IFS=$as_save_IFS
3565  case $as_dir in #(((
3566    '') as_dir=./ ;;
3567    */) ;;
3568    *) as_dir=$as_dir/ ;;
3569  esac
3570    for ac_exec_ext in '' $ac_executable_extensions; do
3571  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3572    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3573       ac_prog_rejected=yes
3574       continue
3575     fi
3576    ac_cv_prog_CC="cc"
3577    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3578    break 2
3579  fi
3580done
3581  done
3582IFS=$as_save_IFS
3583
3584if test $ac_prog_rejected = yes; then
3585  # We found a bogon in the path, so make sure we never use it.
3586  set dummy $ac_cv_prog_CC
3587  shift
3588  if test $# != 0; then
3589    # We chose a different compiler from the bogus one.
3590    # However, it has the same basename, so the bogon will be chosen
3591    # first if we set CC to just the basename; use the full file name.
3592    shift
3593    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3594  fi
3595fi
3596fi
3597fi
3598CC=$ac_cv_prog_CC
3599if test -n "$CC"; then
3600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601printf "%s\n" "$CC" >&6; }
3602else
3603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604printf "%s\n" "no" >&6; }
3605fi
3606
3607
3608fi
3609if test -z "$CC"; then
3610  if test -n "$ac_tool_prefix"; then
3611  for ac_prog in cl.exe
3612  do
3613    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616printf %s "checking for $ac_word... " >&6; }
3617if test ${ac_cv_prog_CC+y}
3618then :
3619  printf %s "(cached) " >&6
3620else $as_nop
3621  if test -n "$CC"; then
3622  ac_cv_prog_CC="$CC" # Let the user override the test.
3623else
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  case $as_dir in #(((
3629    '') as_dir=./ ;;
3630    */) ;;
3631    *) as_dir=$as_dir/ ;;
3632  esac
3633    for ac_exec_ext in '' $ac_executable_extensions; do
3634  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3635    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3637    break 2
3638  fi
3639done
3640  done
3641IFS=$as_save_IFS
3642
3643fi
3644fi
3645CC=$ac_cv_prog_CC
3646if test -n "$CC"; then
3647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648printf "%s\n" "$CC" >&6; }
3649else
3650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651printf "%s\n" "no" >&6; }
3652fi
3653
3654
3655    test -n "$CC" && break
3656  done
3657fi
3658if test -z "$CC"; then
3659  ac_ct_CC=$CC
3660  for ac_prog in cl.exe
3661do
3662  # Extract the first word of "$ac_prog", so it can be a program name with args.
3663set dummy $ac_prog; ac_word=$2
3664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665printf %s "checking for $ac_word... " >&6; }
3666if test ${ac_cv_prog_ac_ct_CC+y}
3667then :
3668  printf %s "(cached) " >&6
3669else $as_nop
3670  if test -n "$ac_ct_CC"; then
3671  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3672else
3673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674for as_dir in $PATH
3675do
3676  IFS=$as_save_IFS
3677  case $as_dir in #(((
3678    '') as_dir=./ ;;
3679    */) ;;
3680    *) as_dir=$as_dir/ ;;
3681  esac
3682    for ac_exec_ext in '' $ac_executable_extensions; do
3683  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3684    ac_cv_prog_ac_ct_CC="$ac_prog"
3685    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3686    break 2
3687  fi
3688done
3689  done
3690IFS=$as_save_IFS
3691
3692fi
3693fi
3694ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695if test -n "$ac_ct_CC"; then
3696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697printf "%s\n" "$ac_ct_CC" >&6; }
3698else
3699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700printf "%s\n" "no" >&6; }
3701fi
3702
3703
3704  test -n "$ac_ct_CC" && break
3705done
3706
3707  if test "x$ac_ct_CC" = x; then
3708    CC=""
3709  else
3710    case $cross_compiling:$ac_tool_warned in
3711yes:)
3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714ac_tool_warned=yes ;;
3715esac
3716    CC=$ac_ct_CC
3717  fi
3718fi
3719
3720fi
3721if test -z "$CC"; then
3722  if test -n "$ac_tool_prefix"; then
3723  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3724set dummy ${ac_tool_prefix}clang; ac_word=$2
3725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726printf %s "checking for $ac_word... " >&6; }
3727if test ${ac_cv_prog_CC+y}
3728then :
3729  printf %s "(cached) " >&6
3730else $as_nop
3731  if test -n "$CC"; then
3732  ac_cv_prog_CC="$CC" # Let the user override the test.
3733else
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737  IFS=$as_save_IFS
3738  case $as_dir in #(((
3739    '') as_dir=./ ;;
3740    */) ;;
3741    *) as_dir=$as_dir/ ;;
3742  esac
3743    for ac_exec_ext in '' $ac_executable_extensions; do
3744  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3745    ac_cv_prog_CC="${ac_tool_prefix}clang"
3746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3747    break 2
3748  fi
3749done
3750  done
3751IFS=$as_save_IFS
3752
3753fi
3754fi
3755CC=$ac_cv_prog_CC
3756if test -n "$CC"; then
3757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758printf "%s\n" "$CC" >&6; }
3759else
3760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761printf "%s\n" "no" >&6; }
3762fi
3763
3764
3765fi
3766if test -z "$ac_cv_prog_CC"; then
3767  ac_ct_CC=$CC
3768  # Extract the first word of "clang", so it can be a program name with args.
3769set dummy clang; ac_word=$2
3770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771printf %s "checking for $ac_word... " >&6; }
3772if test ${ac_cv_prog_ac_ct_CC+y}
3773then :
3774  printf %s "(cached) " >&6
3775else $as_nop
3776  if test -n "$ac_ct_CC"; then
3777  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778else
3779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782  IFS=$as_save_IFS
3783  case $as_dir in #(((
3784    '') as_dir=./ ;;
3785    */) ;;
3786    *) as_dir=$as_dir/ ;;
3787  esac
3788    for ac_exec_ext in '' $ac_executable_extensions; do
3789  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3790    ac_cv_prog_ac_ct_CC="clang"
3791    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3792    break 2
3793  fi
3794done
3795  done
3796IFS=$as_save_IFS
3797
3798fi
3799fi
3800ac_ct_CC=$ac_cv_prog_ac_ct_CC
3801if test -n "$ac_ct_CC"; then
3802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3803printf "%s\n" "$ac_ct_CC" >&6; }
3804else
3805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806printf "%s\n" "no" >&6; }
3807fi
3808
3809  if test "x$ac_ct_CC" = x; then
3810    CC=""
3811  else
3812    case $cross_compiling:$ac_tool_warned in
3813yes:)
3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816ac_tool_warned=yes ;;
3817esac
3818    CC=$ac_ct_CC
3819  fi
3820else
3821  CC="$ac_cv_prog_CC"
3822fi
3823
3824fi
3825
3826
3827test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3829as_fn_error $? "no acceptable C compiler found in \$PATH
3830See \`config.log' for more details" "$LINENO" 5; }
3831
3832# Provide some information about the compiler.
3833printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834set X $ac_compile
3835ac_compiler=$2
3836for ac_option in --version -v -V -qversion -version; do
3837  { { ac_try="$ac_compiler $ac_option >&5"
3838case "(($ac_try" in
3839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840  *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843printf "%s\n" "$ac_try_echo"; } >&5
3844  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845  ac_status=$?
3846  if test -s conftest.err; then
3847    sed '10a\
3848... rest of stderr output deleted ...
3849         10q' conftest.err >conftest.er1
3850    cat conftest.er1 >&5
3851  fi
3852  rm -f conftest.er1 conftest.err
3853  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854  test $ac_status = 0; }
3855done
3856
3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h.  */
3859
3860int
3861main (void)
3862{
3863
3864  ;
3865  return 0;
3866}
3867_ACEOF
3868ac_clean_files_save=$ac_clean_files
3869ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3870# Try to create an executable without -o first, disregard a.out.
3871# It will help us diagnose broken compilers, and finding out an intuition
3872# of exeext.
3873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874printf %s "checking whether the C compiler works... " >&6; }
3875ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3876
3877# The possible output files:
3878ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3879
3880ac_rmfiles=
3881for ac_file in $ac_files
3882do
3883  case $ac_file in
3884    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886  esac
3887done
3888rm -f $ac_rmfiles
3889
3890if { { ac_try="$ac_link_default"
3891case "(($ac_try" in
3892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893  *) ac_try_echo=$ac_try;;
3894esac
3895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896printf "%s\n" "$ac_try_echo"; } >&5
3897  (eval "$ac_link_default") 2>&5
3898  ac_status=$?
3899  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900  test $ac_status = 0; }
3901then :
3902  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3905# so that the user can short-circuit this test for compilers unknown to
3906# Autoconf.
3907for ac_file in $ac_files ''
3908do
3909  test -f "$ac_file" || continue
3910  case $ac_file in
3911    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912	;;
3913    [ab].out )
3914	# We found the default executable, but exeext='' is most
3915	# certainly right.
3916	break;;
3917    *.* )
3918	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3919	then :; else
3920	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921	fi
3922	# We set ac_cv_exeext here because the later test for it is not
3923	# safe: cross compilers may not add the suffix if given an `-o'
3924	# argument, so we may need to know it at that point already.
3925	# Even if this section looks crufty: it has the advantage of
3926	# actually working.
3927	break;;
3928    * )
3929	break;;
3930  esac
3931done
3932test "$ac_cv_exeext" = no && ac_cv_exeext=
3933
3934else $as_nop
3935  ac_file=''
3936fi
3937if test -z "$ac_file"
3938then :
3939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940printf "%s\n" "no" >&6; }
3941printf "%s\n" "$as_me: failed program was:" >&5
3942sed 's/^/| /' conftest.$ac_ext >&5
3943
3944{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3946as_fn_error 77 "C compiler cannot create executables
3947See \`config.log' for more details" "$LINENO" 5; }
3948else $as_nop
3949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950printf "%s\n" "yes" >&6; }
3951fi
3952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3953printf %s "checking for C compiler default output file name... " >&6; }
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3955printf "%s\n" "$ac_file" >&6; }
3956ac_exeext=$ac_cv_exeext
3957
3958rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3959ac_clean_files=$ac_clean_files_save
3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961printf %s "checking for suffix of executables... " >&6; }
3962if { { ac_try="$ac_link"
3963case "(($ac_try" in
3964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965  *) ac_try_echo=$ac_try;;
3966esac
3967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968printf "%s\n" "$ac_try_echo"; } >&5
3969  (eval "$ac_link") 2>&5
3970  ac_status=$?
3971  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972  test $ac_status = 0; }
3973then :
3974  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3975# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3976# work properly (i.e., refer to `conftest.exe'), while it won't with
3977# `rm'.
3978for ac_file in conftest.exe conftest conftest.*; do
3979  test -f "$ac_file" || continue
3980  case $ac_file in
3981    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3982    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983	  break;;
3984    * ) break;;
3985  esac
3986done
3987else $as_nop
3988  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3990as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3991See \`config.log' for more details" "$LINENO" 5; }
3992fi
3993rm -f conftest conftest$ac_cv_exeext
3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995printf "%s\n" "$ac_cv_exeext" >&6; }
3996
3997rm -f conftest.$ac_ext
3998EXEEXT=$ac_cv_exeext
3999ac_exeext=$EXEEXT
4000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h.  */
4002#include <stdio.h>
4003int
4004main (void)
4005{
4006FILE *f = fopen ("conftest.out", "w");
4007 return ferror (f) || fclose (f) != 0;
4008
4009  ;
4010  return 0;
4011}
4012_ACEOF
4013ac_clean_files="$ac_clean_files conftest.out"
4014# Check that the compiler produces executables we can run.  If not, either
4015# the compiler is broken, or we cross compile.
4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4017printf %s "checking whether we are cross compiling... " >&6; }
4018if test "$cross_compiling" != yes; then
4019  { { ac_try="$ac_link"
4020case "(($ac_try" in
4021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022  *) ac_try_echo=$ac_try;;
4023esac
4024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025printf "%s\n" "$ac_try_echo"; } >&5
4026  (eval "$ac_link") 2>&5
4027  ac_status=$?
4028  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029  test $ac_status = 0; }
4030  if { ac_try='./conftest$ac_cv_exeext'
4031  { { case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036printf "%s\n" "$ac_try_echo"; } >&5
4037  (eval "$ac_try") 2>&5
4038  ac_status=$?
4039  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040  test $ac_status = 0; }; }; then
4041    cross_compiling=no
4042  else
4043    if test "$cross_compiling" = maybe; then
4044	cross_compiling=yes
4045    else
4046	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4048as_fn_error 77 "cannot run C compiled programs.
4049If you meant to cross compile, use \`--host'.
4050See \`config.log' for more details" "$LINENO" 5; }
4051    fi
4052  fi
4053fi
4054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4055printf "%s\n" "$cross_compiling" >&6; }
4056
4057rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4058ac_clean_files=$ac_clean_files_save
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4060printf %s "checking for suffix of object files... " >&6; }
4061if test ${ac_cv_objext+y}
4062then :
4063  printf %s "(cached) " >&6
4064else $as_nop
4065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067
4068int
4069main (void)
4070{
4071
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076rm -f conftest.o conftest.obj
4077if { { ac_try="$ac_compile"
4078case "(($ac_try" in
4079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080  *) ac_try_echo=$ac_try;;
4081esac
4082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083printf "%s\n" "$ac_try_echo"; } >&5
4084  (eval "$ac_compile") 2>&5
4085  ac_status=$?
4086  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087  test $ac_status = 0; }
4088then :
4089  for ac_file in conftest.o conftest.obj conftest.*; do
4090  test -f "$ac_file" || continue;
4091  case $ac_file in
4092    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4093    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094       break;;
4095  esac
4096done
4097else $as_nop
4098  printf "%s\n" "$as_me: failed program was:" >&5
4099sed 's/^/| /' conftest.$ac_ext >&5
4100
4101{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4102printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4103as_fn_error $? "cannot compute suffix of object files: cannot compile
4104See \`config.log' for more details" "$LINENO" 5; }
4105fi
4106rm -f conftest.$ac_cv_objext conftest.$ac_ext
4107fi
4108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4109printf "%s\n" "$ac_cv_objext" >&6; }
4110OBJEXT=$ac_cv_objext
4111ac_objext=$OBJEXT
4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4113printf %s "checking whether the compiler supports GNU C... " >&6; }
4114if test ${ac_cv_c_compiler_gnu+y}
4115then :
4116  printf %s "(cached) " >&6
4117else $as_nop
4118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119/* end confdefs.h.  */
4120
4121int
4122main (void)
4123{
4124#ifndef __GNUC__
4125       choke me
4126#endif
4127
4128  ;
4129  return 0;
4130}
4131_ACEOF
4132if ac_fn_c_try_compile "$LINENO"
4133then :
4134  ac_compiler_gnu=yes
4135else $as_nop
4136  ac_compiler_gnu=no
4137fi
4138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4139ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140
4141fi
4142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4143printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4144ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146if test $ac_compiler_gnu = yes; then
4147  GCC=yes
4148else
4149  GCC=
4150fi
4151ac_test_CFLAGS=${CFLAGS+y}
4152ac_save_CFLAGS=$CFLAGS
4153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4154printf %s "checking whether $CC accepts -g... " >&6; }
4155if test ${ac_cv_prog_cc_g+y}
4156then :
4157  printf %s "(cached) " >&6
4158else $as_nop
4159  ac_save_c_werror_flag=$ac_c_werror_flag
4160   ac_c_werror_flag=yes
4161   ac_cv_prog_cc_g=no
4162   CFLAGS="-g"
4163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165
4166int
4167main (void)
4168{
4169
4170  ;
4171  return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"
4175then :
4176  ac_cv_prog_cc_g=yes
4177else $as_nop
4178  CFLAGS=""
4179      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h.  */
4181
4182int
4183main (void)
4184{
4185
4186  ;
4187  return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"
4191then :
4192
4193else $as_nop
4194  ac_c_werror_flag=$ac_save_c_werror_flag
4195	 CFLAGS="-g"
4196	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197/* end confdefs.h.  */
4198
4199int
4200main (void)
4201{
4202
4203  ;
4204  return 0;
4205}
4206_ACEOF
4207if ac_fn_c_try_compile "$LINENO"
4208then :
4209  ac_cv_prog_cc_g=yes
4210fi
4211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4212fi
4213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4214fi
4215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4216   ac_c_werror_flag=$ac_save_c_werror_flag
4217fi
4218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4219printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4220if test $ac_test_CFLAGS; then
4221  CFLAGS=$ac_save_CFLAGS
4222elif test $ac_cv_prog_cc_g = yes; then
4223  if test "$GCC" = yes; then
4224    CFLAGS="-g -O2"
4225  else
4226    CFLAGS="-g"
4227  fi
4228else
4229  if test "$GCC" = yes; then
4230    CFLAGS="-O2"
4231  else
4232    CFLAGS=
4233  fi
4234fi
4235ac_prog_cc_stdc=no
4236if test x$ac_prog_cc_stdc = xno
4237then :
4238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4239printf %s "checking for $CC option to enable C11 features... " >&6; }
4240if test ${ac_cv_prog_cc_c11+y}
4241then :
4242  printf %s "(cached) " >&6
4243else $as_nop
4244  ac_cv_prog_cc_c11=no
4245ac_save_CC=$CC
4246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247/* end confdefs.h.  */
4248$ac_c_conftest_c11_program
4249_ACEOF
4250for ac_arg in '' -std=gnu11
4251do
4252  CC="$ac_save_CC $ac_arg"
4253  if ac_fn_c_try_compile "$LINENO"
4254then :
4255  ac_cv_prog_cc_c11=$ac_arg
4256fi
4257rm -f core conftest.err conftest.$ac_objext conftest.beam
4258  test "x$ac_cv_prog_cc_c11" != "xno" && break
4259done
4260rm -f conftest.$ac_ext
4261CC=$ac_save_CC
4262fi
4263
4264if test "x$ac_cv_prog_cc_c11" = xno
4265then :
4266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4267printf "%s\n" "unsupported" >&6; }
4268else $as_nop
4269  if test "x$ac_cv_prog_cc_c11" = x
4270then :
4271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272printf "%s\n" "none needed" >&6; }
4273else $as_nop
4274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4275printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4276     CC="$CC $ac_cv_prog_cc_c11"
4277fi
4278  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4279  ac_prog_cc_stdc=c11
4280fi
4281fi
4282if test x$ac_prog_cc_stdc = xno
4283then :
4284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4285printf %s "checking for $CC option to enable C99 features... " >&6; }
4286if test ${ac_cv_prog_cc_c99+y}
4287then :
4288  printf %s "(cached) " >&6
4289else $as_nop
4290  ac_cv_prog_cc_c99=no
4291ac_save_CC=$CC
4292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294$ac_c_conftest_c99_program
4295_ACEOF
4296for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4297do
4298  CC="$ac_save_CC $ac_arg"
4299  if ac_fn_c_try_compile "$LINENO"
4300then :
4301  ac_cv_prog_cc_c99=$ac_arg
4302fi
4303rm -f core conftest.err conftest.$ac_objext conftest.beam
4304  test "x$ac_cv_prog_cc_c99" != "xno" && break
4305done
4306rm -f conftest.$ac_ext
4307CC=$ac_save_CC
4308fi
4309
4310if test "x$ac_cv_prog_cc_c99" = xno
4311then :
4312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4313printf "%s\n" "unsupported" >&6; }
4314else $as_nop
4315  if test "x$ac_cv_prog_cc_c99" = x
4316then :
4317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4318printf "%s\n" "none needed" >&6; }
4319else $as_nop
4320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4321printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4322     CC="$CC $ac_cv_prog_cc_c99"
4323fi
4324  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4325  ac_prog_cc_stdc=c99
4326fi
4327fi
4328if test x$ac_prog_cc_stdc = xno
4329then :
4330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4331printf %s "checking for $CC option to enable C89 features... " >&6; }
4332if test ${ac_cv_prog_cc_c89+y}
4333then :
4334  printf %s "(cached) " >&6
4335else $as_nop
4336  ac_cv_prog_cc_c89=no
4337ac_save_CC=$CC
4338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h.  */
4340$ac_c_conftest_c89_program
4341_ACEOF
4342for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4343do
4344  CC="$ac_save_CC $ac_arg"
4345  if ac_fn_c_try_compile "$LINENO"
4346then :
4347  ac_cv_prog_cc_c89=$ac_arg
4348fi
4349rm -f core conftest.err conftest.$ac_objext conftest.beam
4350  test "x$ac_cv_prog_cc_c89" != "xno" && break
4351done
4352rm -f conftest.$ac_ext
4353CC=$ac_save_CC
4354fi
4355
4356if test "x$ac_cv_prog_cc_c89" = xno
4357then :
4358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4359printf "%s\n" "unsupported" >&6; }
4360else $as_nop
4361  if test "x$ac_cv_prog_cc_c89" = x
4362then :
4363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4364printf "%s\n" "none needed" >&6; }
4365else $as_nop
4366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4367printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4368     CC="$CC $ac_cv_prog_cc_c89"
4369fi
4370  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4371  ac_prog_cc_stdc=c89
4372fi
4373fi
4374
4375ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381
4382  ac_ext=c
4383ac_cpp='$CPP $CPPFLAGS'
4384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4388printf %s "checking whether $CC understands -c and -o together... " >&6; }
4389if test ${am_cv_prog_cc_c_o+y}
4390then :
4391  printf %s "(cached) " >&6
4392else $as_nop
4393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h.  */
4395
4396int
4397main (void)
4398{
4399
4400  ;
4401  return 0;
4402}
4403_ACEOF
4404  # Make sure it works both with $CC and with simple cc.
4405  # Following AC_PROG_CC_C_O, we do the test twice because some
4406  # compilers refuse to overwrite an existing .o file with -o,
4407  # though they will create one.
4408  am_cv_prog_cc_c_o=yes
4409  for am_i in 1 2; do
4410    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4411   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } \
4415         && test -f conftest2.$ac_objext; then
4416      : OK
4417    else
4418      am_cv_prog_cc_c_o=no
4419      break
4420    fi
4421  done
4422  rm -f core conftest*
4423  unset am_i
4424fi
4425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4426printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4427if test "$am_cv_prog_cc_c_o" != yes; then
4428   # Losing compiler, so override with the script.
4429   # FIXME: It is wrong to rewrite CC.
4430   # But if we don't then we get into trouble of one sort or another.
4431   # A longer-term fix would be to have automake use am__CC in this case,
4432   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4433   CC="$am_aux_dir/compile $CC"
4434fi
4435ac_ext=c
4436ac_cpp='$CPP $CPPFLAGS'
4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441
4442depcc="$CC"   am_compiler_list=
4443
4444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4445printf %s "checking dependency style of $depcc... " >&6; }
4446if test ${am_cv_CC_dependencies_compiler_type+y}
4447then :
4448  printf %s "(cached) " >&6
4449else $as_nop
4450  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451  # We make a subdir and do the tests there.  Otherwise we can end up
4452  # making bogus files that we don't know about and never remove.  For
4453  # instance it was reported that on HP-UX the gcc test will end up
4454  # making a dummy file named 'D' -- because '-MD' means "put the output
4455  # in D".
4456  rm -rf conftest.dir
4457  mkdir conftest.dir
4458  # Copy depcomp to subdir because otherwise we won't find it if we're
4459  # using a relative directory.
4460  cp "$am_depcomp" conftest.dir
4461  cd conftest.dir
4462  # We will build objects and dependencies in a subdirectory because
4463  # it helps to detect inapplicable dependency modes.  For instance
4464  # both Tru64's cc and ICC support -MD to output dependencies as a
4465  # side effect of compilation, but ICC will put the dependencies in
4466  # the current directory while Tru64 will put them in the object
4467  # directory.
4468  mkdir sub
4469
4470  am_cv_CC_dependencies_compiler_type=none
4471  if test "$am_compiler_list" = ""; then
4472     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4473  fi
4474  am__universal=false
4475  case " $depcc " in #(
4476     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4477     esac
4478
4479  for depmode in $am_compiler_list; do
4480    # Setup a source with many dependencies, because some compilers
4481    # like to wrap large dependency lists on column 80 (with \), and
4482    # we should not choose a depcomp mode which is confused by this.
4483    #
4484    # We need to recreate these files for each test, as the compiler may
4485    # overwrite some of them when testing with obscure command lines.
4486    # This happens at least with the AIX C compiler.
4487    : > sub/conftest.c
4488    for i in 1 2 3 4 5 6; do
4489      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4490      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4491      # Solaris 10 /bin/sh.
4492      echo '/* dummy */' > sub/conftst$i.h
4493    done
4494    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4495
4496    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4497    # mode.  It turns out that the SunPro C++ compiler does not properly
4498    # handle '-M -o', and we need to detect this.  Also, some Intel
4499    # versions had trouble with output in subdirs.
4500    am__obj=sub/conftest.${OBJEXT-o}
4501    am__minus_obj="-o $am__obj"
4502    case $depmode in
4503    gcc)
4504      # This depmode causes a compiler race in universal mode.
4505      test "$am__universal" = false || continue
4506      ;;
4507    nosideeffect)
4508      # After this tag, mechanisms are not by side-effect, so they'll
4509      # only be used when explicitly requested.
4510      if test "x$enable_dependency_tracking" = xyes; then
4511	continue
4512      else
4513	break
4514      fi
4515      ;;
4516    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4517      # This compiler won't grok '-c -o', but also, the minuso test has
4518      # not run yet.  These depmodes are late enough in the game, and
4519      # so weak that their functioning should not be impacted.
4520      am__obj=conftest.${OBJEXT-o}
4521      am__minus_obj=
4522      ;;
4523    none) break ;;
4524    esac
4525    if depmode=$depmode \
4526       source=sub/conftest.c object=$am__obj \
4527       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4529         >/dev/null 2>conftest.err &&
4530       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4533       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534      # icc doesn't choke on unknown options, it will just issue warnings
4535      # or remarks (even with -Werror).  So we grep stderr for any message
4536      # that says an option was ignored or not supported.
4537      # When given -MP, icc 7.0 and 7.1 complain thusly:
4538      #   icc: Command line warning: ignoring option '-M'; no argument required
4539      # The diagnosis changed in icc 8.0:
4540      #   icc: Command line remark: option '-MP' not supported
4541      if (grep 'ignoring option' conftest.err ||
4542          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543        am_cv_CC_dependencies_compiler_type=$depmode
4544        break
4545      fi
4546    fi
4547  done
4548
4549  cd ..
4550  rm -rf conftest.dir
4551else
4552  am_cv_CC_dependencies_compiler_type=none
4553fi
4554
4555fi
4556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4557printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4558CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4559
4560 if
4561  test "x$enable_dependency_tracking" != xno \
4562  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563  am__fastdepCC_TRUE=
4564  am__fastdepCC_FALSE='#'
4565else
4566  am__fastdepCC_TRUE='#'
4567  am__fastdepCC_FALSE=
4568fi
4569
4570
4571
4572# Check whether --enable-largefile was given.
4573if test ${enable_largefile+y}
4574then :
4575  enableval=$enable_largefile;
4576fi
4577
4578if test "$enable_largefile" != no; then
4579
4580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4581printf %s "checking for special C compiler options needed for large files... " >&6; }
4582if test ${ac_cv_sys_largefile_CC+y}
4583then :
4584  printf %s "(cached) " >&6
4585else $as_nop
4586  ac_cv_sys_largefile_CC=no
4587     if test "$GCC" != yes; then
4588       ac_save_CC=$CC
4589       while :; do
4590	 # IRIX 6.2 and later do not support large files by default,
4591	 # so use the C compiler's -n32 option if that helps.
4592	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h.  */
4594#include <sys/types.h>
4595 /* Check that off_t can represent 2**63 - 1 correctly.
4596    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4597    since some C++ compilers masquerading as C compilers
4598    incorrectly reject 9223372036854775807.  */
4599#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4600  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4601		       && LARGE_OFF_T % 2147483647 == 1)
4602		      ? 1 : -1];
4603int
4604main (void)
4605{
4606
4607  ;
4608  return 0;
4609}
4610_ACEOF
4611	 if ac_fn_c_try_compile "$LINENO"
4612then :
4613  break
4614fi
4615rm -f core conftest.err conftest.$ac_objext conftest.beam
4616	 CC="$CC -n32"
4617	 if ac_fn_c_try_compile "$LINENO"
4618then :
4619  ac_cv_sys_largefile_CC=' -n32'; break
4620fi
4621rm -f core conftest.err conftest.$ac_objext conftest.beam
4622	 break
4623       done
4624       CC=$ac_save_CC
4625       rm -f conftest.$ac_ext
4626    fi
4627fi
4628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4629printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4630  if test "$ac_cv_sys_largefile_CC" != no; then
4631    CC=$CC$ac_cv_sys_largefile_CC
4632  fi
4633
4634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4635printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4636if test ${ac_cv_sys_file_offset_bits+y}
4637then :
4638  printf %s "(cached) " >&6
4639else $as_nop
4640  while :; do
4641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h.  */
4643#include <sys/types.h>
4644 /* Check that off_t can represent 2**63 - 1 correctly.
4645    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4646    since some C++ compilers masquerading as C compilers
4647    incorrectly reject 9223372036854775807.  */
4648#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4649  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4650		       && LARGE_OFF_T % 2147483647 == 1)
4651		      ? 1 : -1];
4652int
4653main (void)
4654{
4655
4656  ;
4657  return 0;
4658}
4659_ACEOF
4660if ac_fn_c_try_compile "$LINENO"
4661then :
4662  ac_cv_sys_file_offset_bits=no; break
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h.  */
4667#define _FILE_OFFSET_BITS 64
4668#include <sys/types.h>
4669 /* Check that off_t can represent 2**63 - 1 correctly.
4670    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4671    since some C++ compilers masquerading as C compilers
4672    incorrectly reject 9223372036854775807.  */
4673#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4674  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4675		       && LARGE_OFF_T % 2147483647 == 1)
4676		      ? 1 : -1];
4677int
4678main (void)
4679{
4680
4681  ;
4682  return 0;
4683}
4684_ACEOF
4685if ac_fn_c_try_compile "$LINENO"
4686then :
4687  ac_cv_sys_file_offset_bits=64; break
4688fi
4689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4690  ac_cv_sys_file_offset_bits=unknown
4691  break
4692done
4693fi
4694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4695printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4696case $ac_cv_sys_file_offset_bits in #(
4697  no | unknown) ;;
4698  *)
4699printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4700;;
4701esac
4702rm -rf conftest*
4703  if test $ac_cv_sys_file_offset_bits = unknown; then
4704    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4705printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4706if test ${ac_cv_sys_large_files+y}
4707then :
4708  printf %s "(cached) " >&6
4709else $as_nop
4710  while :; do
4711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712/* end confdefs.h.  */
4713#include <sys/types.h>
4714 /* Check that off_t can represent 2**63 - 1 correctly.
4715    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4716    since some C++ compilers masquerading as C compilers
4717    incorrectly reject 9223372036854775807.  */
4718#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4719  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4720		       && LARGE_OFF_T % 2147483647 == 1)
4721		      ? 1 : -1];
4722int
4723main (void)
4724{
4725
4726  ;
4727  return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"
4731then :
4732  ac_cv_sys_large_files=no; break
4733fi
4734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737#define _LARGE_FILES 1
4738#include <sys/types.h>
4739 /* Check that off_t can represent 2**63 - 1 correctly.
4740    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4741    since some C++ compilers masquerading as C compilers
4742    incorrectly reject 9223372036854775807.  */
4743#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4744  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4745		       && LARGE_OFF_T % 2147483647 == 1)
4746		      ? 1 : -1];
4747int
4748main (void)
4749{
4750
4751  ;
4752  return 0;
4753}
4754_ACEOF
4755if ac_fn_c_try_compile "$LINENO"
4756then :
4757  ac_cv_sys_large_files=1; break
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4760  ac_cv_sys_large_files=unknown
4761  break
4762done
4763fi
4764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4765printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4766case $ac_cv_sys_large_files in #(
4767  no | unknown) ;;
4768  *)
4769printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4770;;
4771esac
4772rm -rf conftest*
4773  fi
4774fi
4775
4776
4777# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4790printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4791if test ${ac_cv_c_undeclared_builtin_options+y}
4792then :
4793  printf %s "(cached) " >&6
4794else $as_nop
4795  ac_save_CFLAGS=$CFLAGS
4796   ac_cv_c_undeclared_builtin_options='cannot detect'
4797   for ac_arg in '' -fno-builtin; do
4798     CFLAGS="$ac_save_CFLAGS $ac_arg"
4799     # This test program should *not* compile successfully.
4800     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h.  */
4802
4803int
4804main (void)
4805{
4806(void) strchr;
4807  ;
4808  return 0;
4809}
4810_ACEOF
4811if ac_fn_c_try_compile "$LINENO"
4812then :
4813
4814else $as_nop
4815  # This test program should compile successfully.
4816        # No library function is consistently available on
4817        # freestanding implementations, so test against a dummy
4818        # declaration.  Include always-available headers on the
4819        # off chance that they somehow elicit warnings.
4820        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821/* end confdefs.h.  */
4822#include <float.h>
4823#include <limits.h>
4824#include <stdarg.h>
4825#include <stddef.h>
4826extern void ac_decl (int, char *);
4827
4828int
4829main (void)
4830{
4831(void) ac_decl (0, (char *) 0);
4832  (void) ac_decl;
4833
4834  ;
4835  return 0;
4836}
4837_ACEOF
4838if ac_fn_c_try_compile "$LINENO"
4839then :
4840  if test x"$ac_arg" = x
4841then :
4842  ac_cv_c_undeclared_builtin_options='none needed'
4843else $as_nop
4844  ac_cv_c_undeclared_builtin_options=$ac_arg
4845fi
4846          break
4847fi
4848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4849fi
4850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4851    done
4852    CFLAGS=$ac_save_CFLAGS
4853
4854fi
4855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4856printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4857  case $ac_cv_c_undeclared_builtin_options in #(
4858  'cannot detect') :
4859    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4860printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4861as_fn_error $? "cannot make $CC report undeclared builtins
4862See \`config.log' for more details" "$LINENO" 5; } ;; #(
4863  'none needed') :
4864    ac_c_undeclared_builtin_options='' ;; #(
4865  *) :
4866    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4867esac
4868
4869ac_header= ac_cache=
4870for ac_item in $ac_header_c_list
4871do
4872  if test $ac_cache; then
4873    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4874    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4875      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4876    fi
4877    ac_header= ac_cache=
4878  elif test $ac_header; then
4879    ac_cache=$ac_item
4880  else
4881    ac_header=$ac_item
4882  fi
4883done
4884
4885
4886
4887
4888
4889
4890
4891
4892if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4893then :
4894
4895printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4896
4897fi
4898
4899
4900
4901
4902ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4903if test "x$ac_cv_have_decl___clang__" = xyes
4904then :
4905  CLANGCC="yes"
4906else $as_nop
4907  CLANGCC="no"
4908fi
4909ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4910if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4911then :
4912  INTELCC="yes"
4913else $as_nop
4914  INTELCC="no"
4915fi
4916ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4917if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4918then :
4919  SUNCC="yes"
4920else $as_nop
4921  SUNCC="no"
4922fi
4923
4924
4925
4926
4927
4928
4929
4930
4931if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4932	if test -n "$ac_tool_prefix"; then
4933  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4934set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936printf %s "checking for $ac_word... " >&6; }
4937if test ${ac_cv_path_PKG_CONFIG+y}
4938then :
4939  printf %s "(cached) " >&6
4940else $as_nop
4941  case $PKG_CONFIG in
4942  [\\/]* | ?:[\\/]*)
4943  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4944  ;;
4945  *)
4946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947for as_dir in $PATH
4948do
4949  IFS=$as_save_IFS
4950  case $as_dir in #(((
4951    '') as_dir=./ ;;
4952    */) ;;
4953    *) as_dir=$as_dir/ ;;
4954  esac
4955    for ac_exec_ext in '' $ac_executable_extensions; do
4956  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4957    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4958    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4959    break 2
4960  fi
4961done
4962  done
4963IFS=$as_save_IFS
4964
4965  ;;
4966esac
4967fi
4968PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4969if test -n "$PKG_CONFIG"; then
4970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4971printf "%s\n" "$PKG_CONFIG" >&6; }
4972else
4973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974printf "%s\n" "no" >&6; }
4975fi
4976
4977
4978fi
4979if test -z "$ac_cv_path_PKG_CONFIG"; then
4980  ac_pt_PKG_CONFIG=$PKG_CONFIG
4981  # Extract the first word of "pkg-config", so it can be a program name with args.
4982set dummy pkg-config; ac_word=$2
4983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984printf %s "checking for $ac_word... " >&6; }
4985if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4986then :
4987  printf %s "(cached) " >&6
4988else $as_nop
4989  case $ac_pt_PKG_CONFIG in
4990  [\\/]* | ?:[\\/]*)
4991  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4992  ;;
4993  *)
4994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997  IFS=$as_save_IFS
4998  case $as_dir in #(((
4999    '') as_dir=./ ;;
5000    */) ;;
5001    *) as_dir=$as_dir/ ;;
5002  esac
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5005    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5006    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5007    break 2
5008  fi
5009done
5010  done
5011IFS=$as_save_IFS
5012
5013  ;;
5014esac
5015fi
5016ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5017if test -n "$ac_pt_PKG_CONFIG"; then
5018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5019printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5020else
5021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022printf "%s\n" "no" >&6; }
5023fi
5024
5025  if test "x$ac_pt_PKG_CONFIG" = x; then
5026    PKG_CONFIG=""
5027  else
5028    case $cross_compiling:$ac_tool_warned in
5029yes:)
5030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5031printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5032ac_tool_warned=yes ;;
5033esac
5034    PKG_CONFIG=$ac_pt_PKG_CONFIG
5035  fi
5036else
5037  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5038fi
5039
5040fi
5041if test -n "$PKG_CONFIG"; then
5042	_pkg_min_version=0.9.0
5043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5044printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5045	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047printf "%s\n" "yes" >&6; }
5048	else
5049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050printf "%s\n" "no" >&6; }
5051		PKG_CONFIG=""
5052	fi
5053fi
5054
5055
5056  # Make sure we can run config.sub.
5057$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5058  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5059
5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5061printf %s "checking build system type... " >&6; }
5062if test ${ac_cv_build+y}
5063then :
5064  printf %s "(cached) " >&6
5065else $as_nop
5066  ac_build_alias=$build_alias
5067test "x$ac_build_alias" = x &&
5068  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5069test "x$ac_build_alias" = x &&
5070  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5071ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5072  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5073
5074fi
5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5076printf "%s\n" "$ac_cv_build" >&6; }
5077case $ac_cv_build in
5078*-*-*) ;;
5079*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5080esac
5081build=$ac_cv_build
5082ac_save_IFS=$IFS; IFS='-'
5083set x $ac_cv_build
5084shift
5085build_cpu=$1
5086build_vendor=$2
5087shift; shift
5088# Remember, the first character of IFS is used to create $*,
5089# except with old shells:
5090build_os=$*
5091IFS=$ac_save_IFS
5092case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5093
5094
5095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5096printf %s "checking host system type... " >&6; }
5097if test ${ac_cv_host+y}
5098then :
5099  printf %s "(cached) " >&6
5100else $as_nop
5101  if test "x$host_alias" = x; then
5102  ac_cv_host=$ac_cv_build
5103else
5104  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5105    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5106fi
5107
5108fi
5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5110printf "%s\n" "$ac_cv_host" >&6; }
5111case $ac_cv_host in
5112*-*-*) ;;
5113*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5114esac
5115host=$ac_cv_host
5116ac_save_IFS=$IFS; IFS='-'
5117set x $ac_cv_host
5118shift
5119host_cpu=$1
5120host_vendor=$2
5121shift; shift
5122# Remember, the first character of IFS is used to create $*,
5123# except with old shells:
5124host_os=$*
5125IFS=$ac_save_IFS
5126case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5127
5128
5129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5130printf %s "checking for a sed that does not truncate output... " >&6; }
5131if test ${ac_cv_path_SED+y}
5132then :
5133  printf %s "(cached) " >&6
5134else $as_nop
5135            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5136     for ac_i in 1 2 3 4 5 6 7; do
5137       ac_script="$ac_script$as_nl$ac_script"
5138     done
5139     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5140     { ac_script=; unset ac_script;}
5141     if test -z "$SED"; then
5142  ac_path_SED_found=false
5143  # Loop through the user's path and test for each of PROGNAME-LIST
5144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147  IFS=$as_save_IFS
5148  case $as_dir in #(((
5149    '') as_dir=./ ;;
5150    */) ;;
5151    *) as_dir=$as_dir/ ;;
5152  esac
5153    for ac_prog in sed gsed
5154   do
5155    for ac_exec_ext in '' $ac_executable_extensions; do
5156      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5157      as_fn_executable_p "$ac_path_SED" || continue
5158# Check for GNU ac_path_SED and select it if it is found.
5159  # Check for GNU $ac_path_SED
5160case `"$ac_path_SED" --version 2>&1` in
5161*GNU*)
5162  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5163*)
5164  ac_count=0
5165  printf %s 0123456789 >"conftest.in"
5166  while :
5167  do
5168    cat "conftest.in" "conftest.in" >"conftest.tmp"
5169    mv "conftest.tmp" "conftest.in"
5170    cp "conftest.in" "conftest.nl"
5171    printf "%s\n" '' >> "conftest.nl"
5172    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174    as_fn_arith $ac_count + 1 && ac_count=$as_val
5175    if test $ac_count -gt ${ac_path_SED_max-0}; then
5176      # Best one so far, save it but keep looking for a better one
5177      ac_cv_path_SED="$ac_path_SED"
5178      ac_path_SED_max=$ac_count
5179    fi
5180    # 10*(2^10) chars as input seems more than enough
5181    test $ac_count -gt 10 && break
5182  done
5183  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184esac
5185
5186      $ac_path_SED_found && break 3
5187    done
5188  done
5189  done
5190IFS=$as_save_IFS
5191  if test -z "$ac_cv_path_SED"; then
5192    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5193  fi
5194else
5195  ac_cv_path_SED=$SED
5196fi
5197
5198fi
5199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5200printf "%s\n" "$ac_cv_path_SED" >&6; }
5201 SED="$ac_cv_path_SED"
5202  rm -f conftest.sed
5203
5204
5205
5206
5207
5208
5209# Check whether --enable-selective-werror was given.
5210if test ${enable_selective_werror+y}
5211then :
5212  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5213else $as_nop
5214  SELECTIVE_WERROR=yes
5215fi
5216
5217
5218
5219
5220
5221# -v is too short to test reliably with XORG_TESTSET_CFLAG
5222if test "x$SUNCC" = "xyes"; then
5223    BASE_CFLAGS="-v"
5224else
5225    BASE_CFLAGS=""
5226fi
5227
5228# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242xorg_testset_save_CFLAGS="$CFLAGS"
5243
5244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5248if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5249then :
5250  printf %s "(cached) " >&6
5251else $as_nop
5252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h.  */
5254int i;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"
5257then :
5258  xorg_cv_cc_flag_unknown_warning_option=yes
5259else $as_nop
5260  xorg_cv_cc_flag_unknown_warning_option=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267	CFLAGS="$xorg_testset_save_CFLAGS"
5268fi
5269
5270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273	fi
5274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5278then :
5279  printf %s "(cached) " >&6
5280else $as_nop
5281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283int i;
5284_ACEOF
5285if ac_fn_c_try_compile "$LINENO"
5286then :
5287  xorg_cv_cc_flag_unused_command_line_argument=yes
5288else $as_nop
5289  xorg_cv_cc_flag_unused_command_line_argument=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292fi
5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296	CFLAGS="$xorg_testset_save_CFLAGS"
5297fi
5298
5299found="no"
5300
5301	if test $found = "no" ; then
5302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304		fi
5305
5306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308		fi
5309
5310		CFLAGS="$CFLAGS -Wall"
5311
5312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5313printf %s "checking if $CC supports -Wall... " >&6; }
5314		cacheid=xorg_cv_cc_flag__Wall
5315		if eval test \${$cacheid+y}
5316then :
5317  printf %s "(cached) " >&6
5318else $as_nop
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322int
5323main (void)
5324{
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"
5331then :
5332  eval $cacheid=yes
5333else $as_nop
5334  eval $cacheid=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext conftest.beam \
5337    conftest$ac_exeext conftest.$ac_ext
5338fi
5339
5340
5341		CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343		eval supported=\$$cacheid
5344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345printf "%s\n" "$supported" >&6; }
5346		if test "$supported" = "yes" ; then
5347			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5348			found="yes"
5349		fi
5350	fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5373then :
5374  printf %s "(cached) " >&6
5375else $as_nop
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"
5381then :
5382  xorg_cv_cc_flag_unknown_warning_option=yes
5383else $as_nop
5384  xorg_cv_cc_flag_unknown_warning_option=no
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387fi
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391	CFLAGS="$xorg_testset_save_CFLAGS"
5392fi
5393
5394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397	fi
5398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5402then :
5403  printf %s "(cached) " >&6
5404else $as_nop
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"
5410then :
5411  xorg_cv_cc_flag_unused_command_line_argument=yes
5412else $as_nop
5413  xorg_cv_cc_flag_unused_command_line_argument=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416fi
5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423found="no"
5424
5425	if test $found = "no" ; then
5426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428		fi
5429
5430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432		fi
5433
5434		CFLAGS="$CFLAGS -Wpointer-arith"
5435
5436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5437printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5438		cacheid=xorg_cv_cc_flag__Wpointer_arith
5439		if eval test \${$cacheid+y}
5440then :
5441  printf %s "(cached) " >&6
5442else $as_nop
5443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h.  */
5445int i;
5446int
5447main (void)
5448{
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454if ac_fn_c_try_link "$LINENO"
5455then :
5456  eval $cacheid=yes
5457else $as_nop
5458  eval $cacheid=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461    conftest$ac_exeext conftest.$ac_ext
5462fi
5463
5464
5465		CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467		eval supported=\$$cacheid
5468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469printf "%s\n" "$supported" >&6; }
5470		if test "$supported" = "yes" ; then
5471			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5472			found="yes"
5473		fi
5474	fi
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490xorg_testset_save_CFLAGS="$CFLAGS"
5491
5492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5495printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5496if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5497then :
5498  printf %s "(cached) " >&6
5499else $as_nop
5500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501/* end confdefs.h.  */
5502int i;
5503_ACEOF
5504if ac_fn_c_try_compile "$LINENO"
5505then :
5506  xorg_cv_cc_flag_unknown_warning_option=yes
5507else $as_nop
5508  xorg_cv_cc_flag_unknown_warning_option=no
5509fi
5510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5511fi
5512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5515	CFLAGS="$xorg_testset_save_CFLAGS"
5516fi
5517
5518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5521	fi
5522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5525if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5526then :
5527  printf %s "(cached) " >&6
5528else $as_nop
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531int i;
5532_ACEOF
5533if ac_fn_c_try_compile "$LINENO"
5534then :
5535  xorg_cv_cc_flag_unused_command_line_argument=yes
5536else $as_nop
5537  xorg_cv_cc_flag_unused_command_line_argument=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5540fi
5541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5542printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5544	CFLAGS="$xorg_testset_save_CFLAGS"
5545fi
5546
5547found="no"
5548
5549	if test $found = "no" ; then
5550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5552		fi
5553
5554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5556		fi
5557
5558		CFLAGS="$CFLAGS -Wmissing-declarations"
5559
5560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5561printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5562		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5563		if eval test \${$cacheid+y}
5564then :
5565  printf %s "(cached) " >&6
5566else $as_nop
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569int i;
5570int
5571main (void)
5572{
5573
5574  ;
5575  return 0;
5576}
5577_ACEOF
5578if ac_fn_c_try_link "$LINENO"
5579then :
5580  eval $cacheid=yes
5581else $as_nop
5582  eval $cacheid=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.beam \
5585    conftest$ac_exeext conftest.$ac_ext
5586fi
5587
5588
5589		CFLAGS="$xorg_testset_save_CFLAGS"
5590
5591		eval supported=\$$cacheid
5592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5593printf "%s\n" "$supported" >&6; }
5594		if test "$supported" = "yes" ; then
5595			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5596			found="yes"
5597		fi
5598	fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5621then :
5622  printf %s "(cached) " >&6
5623else $as_nop
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626int i;
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"
5629then :
5630  xorg_cv_cc_flag_unknown_warning_option=yes
5631else $as_nop
5632  xorg_cv_cc_flag_unknown_warning_option=no
5633fi
5634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5635fi
5636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5639	CFLAGS="$xorg_testset_save_CFLAGS"
5640fi
5641
5642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5645	fi
5646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5649if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5650then :
5651  printf %s "(cached) " >&6
5652else $as_nop
5653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h.  */
5655int i;
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"
5658then :
5659  xorg_cv_cc_flag_unused_command_line_argument=yes
5660else $as_nop
5661  xorg_cv_cc_flag_unused_command_line_argument=no
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5664fi
5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5668	CFLAGS="$xorg_testset_save_CFLAGS"
5669fi
5670
5671found="no"
5672
5673	if test $found = "no" ; then
5674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676		fi
5677
5678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680		fi
5681
5682		CFLAGS="$CFLAGS -Wformat=2"
5683
5684		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5685printf %s "checking if $CC supports -Wformat=2... " >&6; }
5686		cacheid=xorg_cv_cc_flag__Wformat_2
5687		if eval test \${$cacheid+y}
5688then :
5689  printf %s "(cached) " >&6
5690else $as_nop
5691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692/* end confdefs.h.  */
5693int i;
5694int
5695main (void)
5696{
5697
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_link "$LINENO"
5703then :
5704  eval $cacheid=yes
5705else $as_nop
5706  eval $cacheid=no
5707fi
5708rm -f core conftest.err conftest.$ac_objext conftest.beam \
5709    conftest$ac_exeext conftest.$ac_ext
5710fi
5711
5712
5713		CFLAGS="$xorg_testset_save_CFLAGS"
5714
5715		eval supported=\$$cacheid
5716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5717printf "%s\n" "$supported" >&6; }
5718		if test "$supported" = "yes" ; then
5719			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5720			found="yes"
5721		fi
5722	fi
5723
5724	if test $found = "no" ; then
5725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727		fi
5728
5729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5731		fi
5732
5733		CFLAGS="$CFLAGS -Wformat"
5734
5735		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5736printf %s "checking if $CC supports -Wformat... " >&6; }
5737		cacheid=xorg_cv_cc_flag__Wformat
5738		if eval test \${$cacheid+y}
5739then :
5740  printf %s "(cached) " >&6
5741else $as_nop
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744int i;
5745int
5746main (void)
5747{
5748
5749  ;
5750  return 0;
5751}
5752_ACEOF
5753if ac_fn_c_try_link "$LINENO"
5754then :
5755  eval $cacheid=yes
5756else $as_nop
5757  eval $cacheid=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.beam \
5760    conftest$ac_exeext conftest.$ac_ext
5761fi
5762
5763
5764		CFLAGS="$xorg_testset_save_CFLAGS"
5765
5766		eval supported=\$$cacheid
5767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5768printf "%s\n" "$supported" >&6; }
5769		if test "$supported" = "yes" ; then
5770			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5771			found="yes"
5772		fi
5773	fi
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5798then :
5799  printf %s "(cached) " >&6
5800else $as_nop
5801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803int i;
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"
5806then :
5807  xorg_cv_cc_flag_unknown_warning_option=yes
5808else $as_nop
5809  xorg_cv_cc_flag_unknown_warning_option=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812fi
5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822	fi
5823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5827then :
5828  printf %s "(cached) " >&6
5829else $as_nop
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833_ACEOF
5834if ac_fn_c_try_compile "$LINENO"
5835then :
5836  xorg_cv_cc_flag_unused_command_line_argument=yes
5837else $as_nop
5838  xorg_cv_cc_flag_unused_command_line_argument=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5841fi
5842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5845	CFLAGS="$xorg_testset_save_CFLAGS"
5846fi
5847
5848found="no"
5849
5850	if test $found = "no" ; then
5851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853		fi
5854
5855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857		fi
5858
5859		CFLAGS="$CFLAGS -Wstrict-prototypes"
5860
5861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5862printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5863		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5864		if eval test \${$cacheid+y}
5865then :
5866  printf %s "(cached) " >&6
5867else $as_nop
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871int
5872main (void)
5873{
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"
5880then :
5881  eval $cacheid=yes
5882else $as_nop
5883  eval $cacheid=no
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886    conftest$ac_exeext conftest.$ac_ext
5887fi
5888
5889
5890		CFLAGS="$xorg_testset_save_CFLAGS"
5891
5892		eval supported=\$$cacheid
5893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5894printf "%s\n" "$supported" >&6; }
5895		if test "$supported" = "yes" ; then
5896			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5897			found="yes"
5898		fi
5899	fi
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915xorg_testset_save_CFLAGS="$CFLAGS"
5916
5917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5921if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5922then :
5923  printf %s "(cached) " >&6
5924else $as_nop
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"
5930then :
5931  xorg_cv_cc_flag_unknown_warning_option=yes
5932else $as_nop
5933  xorg_cv_cc_flag_unknown_warning_option=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936fi
5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940	CFLAGS="$xorg_testset_save_CFLAGS"
5941fi
5942
5943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946	fi
5947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5951then :
5952  printf %s "(cached) " >&6
5953else $as_nop
5954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h.  */
5956int i;
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"
5959then :
5960  xorg_cv_cc_flag_unused_command_line_argument=yes
5961else $as_nop
5962  xorg_cv_cc_flag_unused_command_line_argument=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965fi
5966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969	CFLAGS="$xorg_testset_save_CFLAGS"
5970fi
5971
5972found="no"
5973
5974	if test $found = "no" ; then
5975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977		fi
5978
5979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981		fi
5982
5983		CFLAGS="$CFLAGS -Wmissing-prototypes"
5984
5985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5986printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5987		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5988		if eval test \${$cacheid+y}
5989then :
5990  printf %s "(cached) " >&6
5991else $as_nop
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995int
5996main (void)
5997{
5998
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003if ac_fn_c_try_link "$LINENO"
6004then :
6005  eval $cacheid=yes
6006else $as_nop
6007  eval $cacheid=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.beam \
6010    conftest$ac_exeext conftest.$ac_ext
6011fi
6012
6013
6014		CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016		eval supported=\$$cacheid
6017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018printf "%s\n" "$supported" >&6; }
6019		if test "$supported" = "yes" ; then
6020			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6021			found="yes"
6022		fi
6023	fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051int i;
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"
6054then :
6055  xorg_cv_cc_flag_unknown_warning_option=yes
6056else $as_nop
6057  xorg_cv_cc_flag_unknown_warning_option=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060fi
6061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064	CFLAGS="$xorg_testset_save_CFLAGS"
6065fi
6066
6067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070	fi
6071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6075then :
6076  printf %s "(cached) " >&6
6077else $as_nop
6078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080int i;
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"
6083then :
6084  xorg_cv_cc_flag_unused_command_line_argument=yes
6085else $as_nop
6086  xorg_cv_cc_flag_unused_command_line_argument=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089fi
6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093	CFLAGS="$xorg_testset_save_CFLAGS"
6094fi
6095
6096found="no"
6097
6098	if test $found = "no" ; then
6099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101		fi
6102
6103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105		fi
6106
6107		CFLAGS="$CFLAGS -Wnested-externs"
6108
6109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6110printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6111		cacheid=xorg_cv_cc_flag__Wnested_externs
6112		if eval test \${$cacheid+y}
6113then :
6114  printf %s "(cached) " >&6
6115else $as_nop
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119int
6120main (void)
6121{
6122
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"
6128then :
6129  eval $cacheid=yes
6130else $as_nop
6131  eval $cacheid=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134    conftest$ac_exeext conftest.$ac_ext
6135fi
6136
6137
6138		CFLAGS="$xorg_testset_save_CFLAGS"
6139
6140		eval supported=\$$cacheid
6141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6142printf "%s\n" "$supported" >&6; }
6143		if test "$supported" = "yes" ; then
6144			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6145			found="yes"
6146		fi
6147	fi
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163xorg_testset_save_CFLAGS="$CFLAGS"
6164
6165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6169if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6170then :
6171  printf %s "(cached) " >&6
6172else $as_nop
6173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h.  */
6175int i;
6176_ACEOF
6177if ac_fn_c_try_compile "$LINENO"
6178then :
6179  xorg_cv_cc_flag_unknown_warning_option=yes
6180else $as_nop
6181  xorg_cv_cc_flag_unknown_warning_option=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6184fi
6185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6188	CFLAGS="$xorg_testset_save_CFLAGS"
6189fi
6190
6191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194	fi
6195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6198if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6199then :
6200  printf %s "(cached) " >&6
6201else $as_nop
6202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h.  */
6204int i;
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"
6207then :
6208  xorg_cv_cc_flag_unused_command_line_argument=yes
6209else $as_nop
6210  xorg_cv_cc_flag_unused_command_line_argument=no
6211fi
6212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6213fi
6214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6215printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6217	CFLAGS="$xorg_testset_save_CFLAGS"
6218fi
6219
6220found="no"
6221
6222	if test $found = "no" ; then
6223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225		fi
6226
6227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229		fi
6230
6231		CFLAGS="$CFLAGS -Wbad-function-cast"
6232
6233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6234printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6235		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6236		if eval test \${$cacheid+y}
6237then :
6238  printf %s "(cached) " >&6
6239else $as_nop
6240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241/* end confdefs.h.  */
6242int i;
6243int
6244main (void)
6245{
6246
6247  ;
6248  return 0;
6249}
6250_ACEOF
6251if ac_fn_c_try_link "$LINENO"
6252then :
6253  eval $cacheid=yes
6254else $as_nop
6255  eval $cacheid=no
6256fi
6257rm -f core conftest.err conftest.$ac_objext conftest.beam \
6258    conftest$ac_exeext conftest.$ac_ext
6259fi
6260
6261
6262		CFLAGS="$xorg_testset_save_CFLAGS"
6263
6264		eval supported=\$$cacheid
6265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6266printf "%s\n" "$supported" >&6; }
6267		if test "$supported" = "yes" ; then
6268			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6269			found="yes"
6270		fi
6271	fi
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287xorg_testset_save_CFLAGS="$CFLAGS"
6288
6289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6293if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6294then :
6295  printf %s "(cached) " >&6
6296else $as_nop
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"
6302then :
6303  xorg_cv_cc_flag_unknown_warning_option=yes
6304else $as_nop
6305  xorg_cv_cc_flag_unknown_warning_option=no
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6308fi
6309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6310printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6312	CFLAGS="$xorg_testset_save_CFLAGS"
6313fi
6314
6315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318	fi
6319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6321printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6322if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6323then :
6324  printf %s "(cached) " >&6
6325else $as_nop
6326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h.  */
6328int i;
6329_ACEOF
6330if ac_fn_c_try_compile "$LINENO"
6331then :
6332  xorg_cv_cc_flag_unused_command_line_argument=yes
6333else $as_nop
6334  xorg_cv_cc_flag_unused_command_line_argument=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6337fi
6338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6339printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6341	CFLAGS="$xorg_testset_save_CFLAGS"
6342fi
6343
6344found="no"
6345
6346	if test $found = "no" ; then
6347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6349		fi
6350
6351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6353		fi
6354
6355		CFLAGS="$CFLAGS -Wold-style-definition"
6356
6357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6358printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6359		cacheid=xorg_cv_cc_flag__Wold_style_definition
6360		if eval test \${$cacheid+y}
6361then :
6362  printf %s "(cached) " >&6
6363else $as_nop
6364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h.  */
6366int i;
6367int
6368main (void)
6369{
6370
6371  ;
6372  return 0;
6373}
6374_ACEOF
6375if ac_fn_c_try_link "$LINENO"
6376then :
6377  eval $cacheid=yes
6378else $as_nop
6379  eval $cacheid=no
6380fi
6381rm -f core conftest.err conftest.$ac_objext conftest.beam \
6382    conftest$ac_exeext conftest.$ac_ext
6383fi
6384
6385
6386		CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388		eval supported=\$$cacheid
6389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6390printf "%s\n" "$supported" >&6; }
6391		if test "$supported" = "yes" ; then
6392			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6393			found="yes"
6394		fi
6395	fi
6396
6397	if test $found = "no" ; then
6398		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400		fi
6401
6402		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6404		fi
6405
6406		CFLAGS="$CFLAGS -fd"
6407
6408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6409printf %s "checking if $CC supports -fd... " >&6; }
6410		cacheid=xorg_cv_cc_flag__fd
6411		if eval test \${$cacheid+y}
6412then :
6413  printf %s "(cached) " >&6
6414else $as_nop
6415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417int i;
6418int
6419main (void)
6420{
6421
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426if ac_fn_c_try_link "$LINENO"
6427then :
6428  eval $cacheid=yes
6429else $as_nop
6430  eval $cacheid=no
6431fi
6432rm -f core conftest.err conftest.$ac_objext conftest.beam \
6433    conftest$ac_exeext conftest.$ac_ext
6434fi
6435
6436
6437		CFLAGS="$xorg_testset_save_CFLAGS"
6438
6439		eval supported=\$$cacheid
6440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6441printf "%s\n" "$supported" >&6; }
6442		if test "$supported" = "yes" ; then
6443			BASE_CFLAGS="$BASE_CFLAGS -fd"
6444			found="yes"
6445		fi
6446	fi
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462xorg_testset_save_CFLAGS="$CFLAGS"
6463
6464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6465	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6466	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6468if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6469then :
6470  printf %s "(cached) " >&6
6471else $as_nop
6472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473/* end confdefs.h.  */
6474int i;
6475_ACEOF
6476if ac_fn_c_try_compile "$LINENO"
6477then :
6478  xorg_cv_cc_flag_unknown_warning_option=yes
6479else $as_nop
6480  xorg_cv_cc_flag_unknown_warning_option=no
6481fi
6482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6483fi
6484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6486	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6487	CFLAGS="$xorg_testset_save_CFLAGS"
6488fi
6489
6490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6491	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6492		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6493	fi
6494	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6497if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6498then :
6499  printf %s "(cached) " >&6
6500else $as_nop
6501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h.  */
6503int i;
6504_ACEOF
6505if ac_fn_c_try_compile "$LINENO"
6506then :
6507  xorg_cv_cc_flag_unused_command_line_argument=yes
6508else $as_nop
6509  xorg_cv_cc_flag_unused_command_line_argument=no
6510fi
6511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6512fi
6513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6516	CFLAGS="$xorg_testset_save_CFLAGS"
6517fi
6518
6519found="no"
6520
6521	if test $found = "no" ; then
6522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524		fi
6525
6526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6528		fi
6529
6530		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6531
6532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6533printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6534		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6535		if eval test \${$cacheid+y}
6536then :
6537  printf %s "(cached) " >&6
6538else $as_nop
6539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541int i;
6542int
6543main (void)
6544{
6545
6546  ;
6547  return 0;
6548}
6549_ACEOF
6550if ac_fn_c_try_link "$LINENO"
6551then :
6552  eval $cacheid=yes
6553else $as_nop
6554  eval $cacheid=no
6555fi
6556rm -f core conftest.err conftest.$ac_objext conftest.beam \
6557    conftest$ac_exeext conftest.$ac_ext
6558fi
6559
6560
6561		CFLAGS="$xorg_testset_save_CFLAGS"
6562
6563		eval supported=\$$cacheid
6564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6565printf "%s\n" "$supported" >&6; }
6566		if test "$supported" = "yes" ; then
6567			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6568			found="yes"
6569		fi
6570	fi
6571
6572
6573
6574
6575
6576# This chunk adds additional warnings that could catch undesired effects.
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6597then :
6598  printf %s "(cached) " >&6
6599else $as_nop
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602int i;
6603_ACEOF
6604if ac_fn_c_try_compile "$LINENO"
6605then :
6606  xorg_cv_cc_flag_unknown_warning_option=yes
6607else $as_nop
6608  xorg_cv_cc_flag_unknown_warning_option=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611fi
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	fi
6622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6626then :
6627  printf %s "(cached) " >&6
6628else $as_nop
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"
6634then :
6635  xorg_cv_cc_flag_unused_command_line_argument=yes
6636else $as_nop
6637  xorg_cv_cc_flag_unused_command_line_argument=no
6638fi
6639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6640fi
6641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6644	CFLAGS="$xorg_testset_save_CFLAGS"
6645fi
6646
6647found="no"
6648
6649	if test $found = "no" ; then
6650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652		fi
6653
6654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656		fi
6657
6658		CFLAGS="$CFLAGS -Wunused"
6659
6660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6661printf %s "checking if $CC supports -Wunused... " >&6; }
6662		cacheid=xorg_cv_cc_flag__Wunused
6663		if eval test \${$cacheid+y}
6664then :
6665  printf %s "(cached) " >&6
6666else $as_nop
6667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669int i;
6670int
6671main (void)
6672{
6673
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678if ac_fn_c_try_link "$LINENO"
6679then :
6680  eval $cacheid=yes
6681else $as_nop
6682  eval $cacheid=no
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685    conftest$ac_exeext conftest.$ac_ext
6686fi
6687
6688
6689		CFLAGS="$xorg_testset_save_CFLAGS"
6690
6691		eval supported=\$$cacheid
6692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6693printf "%s\n" "$supported" >&6; }
6694		if test "$supported" = "yes" ; then
6695			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6696			found="yes"
6697		fi
6698	fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714xorg_testset_save_CFLAGS="$CFLAGS"
6715
6716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6721then :
6722  printf %s "(cached) " >&6
6723else $as_nop
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"
6729then :
6730  xorg_cv_cc_flag_unknown_warning_option=yes
6731else $as_nop
6732  xorg_cv_cc_flag_unknown_warning_option=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735fi
6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739	CFLAGS="$xorg_testset_save_CFLAGS"
6740fi
6741
6742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745	fi
6746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750then :
6751  printf %s "(cached) " >&6
6752else $as_nop
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"
6758then :
6759  xorg_cv_cc_flag_unused_command_line_argument=yes
6760else $as_nop
6761  xorg_cv_cc_flag_unused_command_line_argument=no
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6764fi
6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6768	CFLAGS="$xorg_testset_save_CFLAGS"
6769fi
6770
6771found="no"
6772
6773	if test $found = "no" ; then
6774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776		fi
6777
6778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780		fi
6781
6782		CFLAGS="$CFLAGS -Wuninitialized"
6783
6784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6785printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6786		cacheid=xorg_cv_cc_flag__Wuninitialized
6787		if eval test \${$cacheid+y}
6788then :
6789  printf %s "(cached) " >&6
6790else $as_nop
6791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h.  */
6793int i;
6794int
6795main (void)
6796{
6797
6798  ;
6799  return 0;
6800}
6801_ACEOF
6802if ac_fn_c_try_link "$LINENO"
6803then :
6804  eval $cacheid=yes
6805else $as_nop
6806  eval $cacheid=no
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.beam \
6809    conftest$ac_exeext conftest.$ac_ext
6810fi
6811
6812
6813		CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815		eval supported=\$$cacheid
6816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817printf "%s\n" "$supported" >&6; }
6818		if test "$supported" = "yes" ; then
6819			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6820			found="yes"
6821		fi
6822	fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845then :
6846  printf %s "(cached) " >&6
6847else $as_nop
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851_ACEOF
6852if ac_fn_c_try_compile "$LINENO"
6853then :
6854  xorg_cv_cc_flag_unknown_warning_option=yes
6855else $as_nop
6856  xorg_cv_cc_flag_unknown_warning_option=no
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859fi
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6863	CFLAGS="$xorg_testset_save_CFLAGS"
6864fi
6865
6866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869	fi
6870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6873if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6874then :
6875  printf %s "(cached) " >&6
6876else $as_nop
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879int i;
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"
6882then :
6883  xorg_cv_cc_flag_unused_command_line_argument=yes
6884else $as_nop
6885  xorg_cv_cc_flag_unused_command_line_argument=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6888fi
6889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892	CFLAGS="$xorg_testset_save_CFLAGS"
6893fi
6894
6895found="no"
6896
6897	if test $found = "no" ; then
6898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900		fi
6901
6902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904		fi
6905
6906		CFLAGS="$CFLAGS -Wshadow"
6907
6908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6909printf %s "checking if $CC supports -Wshadow... " >&6; }
6910		cacheid=xorg_cv_cc_flag__Wshadow
6911		if eval test \${$cacheid+y}
6912then :
6913  printf %s "(cached) " >&6
6914else $as_nop
6915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917int i;
6918int
6919main (void)
6920{
6921
6922  ;
6923  return 0;
6924}
6925_ACEOF
6926if ac_fn_c_try_link "$LINENO"
6927then :
6928  eval $cacheid=yes
6929else $as_nop
6930  eval $cacheid=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.beam \
6933    conftest$ac_exeext conftest.$ac_ext
6934fi
6935
6936
6937		CFLAGS="$xorg_testset_save_CFLAGS"
6938
6939		eval supported=\$$cacheid
6940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6941printf "%s\n" "$supported" >&6; }
6942		if test "$supported" = "yes" ; then
6943			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6944			found="yes"
6945		fi
6946	fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962xorg_testset_save_CFLAGS="$CFLAGS"
6963
6964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6969then :
6970  printf %s "(cached) " >&6
6971else $as_nop
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974int i;
6975_ACEOF
6976if ac_fn_c_try_compile "$LINENO"
6977then :
6978  xorg_cv_cc_flag_unknown_warning_option=yes
6979else $as_nop
6980  xorg_cv_cc_flag_unknown_warning_option=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983fi
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985printf "%s\n" "$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	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6998then :
6999  printf %s "(cached) " >&6
7000else $as_nop
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"
7006then :
7007  xorg_cv_cc_flag_unused_command_line_argument=yes
7008else $as_nop
7009  xorg_cv_cc_flag_unused_command_line_argument=no
7010fi
7011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7012fi
7013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7016	CFLAGS="$xorg_testset_save_CFLAGS"
7017fi
7018
7019found="no"
7020
7021	if test $found = "no" ; then
7022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024		fi
7025
7026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028		fi
7029
7030		CFLAGS="$CFLAGS -Wmissing-noreturn"
7031
7032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7033printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7034		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7035		if eval test \${$cacheid+y}
7036then :
7037  printf %s "(cached) " >&6
7038else $as_nop
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041int i;
7042int
7043main (void)
7044{
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050if ac_fn_c_try_link "$LINENO"
7051then :
7052  eval $cacheid=yes
7053else $as_nop
7054  eval $cacheid=no
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.beam \
7057    conftest$ac_exeext conftest.$ac_ext
7058fi
7059
7060
7061		CFLAGS="$xorg_testset_save_CFLAGS"
7062
7063		eval supported=\$$cacheid
7064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7065printf "%s\n" "$supported" >&6; }
7066		if test "$supported" = "yes" ; then
7067			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7068			found="yes"
7069		fi
7070	fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086xorg_testset_save_CFLAGS="$CFLAGS"
7087
7088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7093then :
7094  printf %s "(cached) " >&6
7095else $as_nop
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098int i;
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"
7101then :
7102  xorg_cv_cc_flag_unknown_warning_option=yes
7103else $as_nop
7104  xorg_cv_cc_flag_unknown_warning_option=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107fi
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111	CFLAGS="$xorg_testset_save_CFLAGS"
7112fi
7113
7114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117	fi
7118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7122then :
7123  printf %s "(cached) " >&6
7124else $as_nop
7125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127int i;
7128_ACEOF
7129if ac_fn_c_try_compile "$LINENO"
7130then :
7131  xorg_cv_cc_flag_unused_command_line_argument=yes
7132else $as_nop
7133  xorg_cv_cc_flag_unused_command_line_argument=no
7134fi
7135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136fi
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140	CFLAGS="$xorg_testset_save_CFLAGS"
7141fi
7142
7143found="no"
7144
7145	if test $found = "no" ; then
7146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148		fi
7149
7150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152		fi
7153
7154		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7155
7156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7157printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7158		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7159		if eval test \${$cacheid+y}
7160then :
7161  printf %s "(cached) " >&6
7162else $as_nop
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166int
7167main (void)
7168{
7169
7170  ;
7171  return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_link "$LINENO"
7175then :
7176  eval $cacheid=yes
7177else $as_nop
7178  eval $cacheid=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181    conftest$ac_exeext conftest.$ac_ext
7182fi
7183
7184
7185		CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187		eval supported=\$$cacheid
7188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189printf "%s\n" "$supported" >&6; }
7190		if test "$supported" = "yes" ; then
7191			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7192			found="yes"
7193		fi
7194	fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210xorg_testset_save_CFLAGS="$CFLAGS"
7211
7212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7216if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7217then :
7218  printf %s "(cached) " >&6
7219else $as_nop
7220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h.  */
7222int i;
7223_ACEOF
7224if ac_fn_c_try_compile "$LINENO"
7225then :
7226  xorg_cv_cc_flag_unknown_warning_option=yes
7227else $as_nop
7228  xorg_cv_cc_flag_unknown_warning_option=no
7229fi
7230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7231fi
7232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7235	CFLAGS="$xorg_testset_save_CFLAGS"
7236fi
7237
7238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7241	fi
7242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7245if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7246then :
7247  printf %s "(cached) " >&6
7248else $as_nop
7249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h.  */
7251int i;
7252_ACEOF
7253if ac_fn_c_try_compile "$LINENO"
7254then :
7255  xorg_cv_cc_flag_unused_command_line_argument=yes
7256else $as_nop
7257  xorg_cv_cc_flag_unused_command_line_argument=no
7258fi
7259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7260fi
7261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7264	CFLAGS="$xorg_testset_save_CFLAGS"
7265fi
7266
7267found="no"
7268
7269	if test $found = "no" ; then
7270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272		fi
7273
7274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7276		fi
7277
7278		CFLAGS="$CFLAGS -Wredundant-decls"
7279
7280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7281printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7282		cacheid=xorg_cv_cc_flag__Wredundant_decls
7283		if eval test \${$cacheid+y}
7284then :
7285  printf %s "(cached) " >&6
7286else $as_nop
7287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288/* end confdefs.h.  */
7289int i;
7290int
7291main (void)
7292{
7293
7294  ;
7295  return 0;
7296}
7297_ACEOF
7298if ac_fn_c_try_link "$LINENO"
7299then :
7300  eval $cacheid=yes
7301else $as_nop
7302  eval $cacheid=no
7303fi
7304rm -f core conftest.err conftest.$ac_objext conftest.beam \
7305    conftest$ac_exeext conftest.$ac_ext
7306fi
7307
7308
7309		CFLAGS="$xorg_testset_save_CFLAGS"
7310
7311		eval supported=\$$cacheid
7312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7313printf "%s\n" "$supported" >&6; }
7314		if test "$supported" = "yes" ; then
7315			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7316			found="yes"
7317		fi
7318	fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7340if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7341then :
7342  printf %s "(cached) " >&6
7343else $as_nop
7344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h.  */
7346int i;
7347_ACEOF
7348if ac_fn_c_try_compile "$LINENO"
7349then :
7350  xorg_cv_cc_flag_unknown_warning_option=yes
7351else $as_nop
7352  xorg_cv_cc_flag_unknown_warning_option=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7355fi
7356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7359	CFLAGS="$xorg_testset_save_CFLAGS"
7360fi
7361
7362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365	fi
7366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7369if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7370then :
7371  printf %s "(cached) " >&6
7372else $as_nop
7373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h.  */
7375int i;
7376_ACEOF
7377if ac_fn_c_try_compile "$LINENO"
7378then :
7379  xorg_cv_cc_flag_unused_command_line_argument=yes
7380else $as_nop
7381  xorg_cv_cc_flag_unused_command_line_argument=no
7382fi
7383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7384fi
7385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7386printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7388	CFLAGS="$xorg_testset_save_CFLAGS"
7389fi
7390
7391found="no"
7392
7393	if test $found = "no" ; then
7394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396		fi
7397
7398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7400		fi
7401
7402		CFLAGS="$CFLAGS -Wlogical-op"
7403
7404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7405printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7406		cacheid=xorg_cv_cc_flag__Wlogical_op
7407		if eval test \${$cacheid+y}
7408then :
7409  printf %s "(cached) " >&6
7410else $as_nop
7411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413int i;
7414int
7415main (void)
7416{
7417
7418  ;
7419  return 0;
7420}
7421_ACEOF
7422if ac_fn_c_try_link "$LINENO"
7423then :
7424  eval $cacheid=yes
7425else $as_nop
7426  eval $cacheid=no
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.beam \
7429    conftest$ac_exeext conftest.$ac_ext
7430fi
7431
7432
7433		CFLAGS="$xorg_testset_save_CFLAGS"
7434
7435		eval supported=\$$cacheid
7436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7437printf "%s\n" "$supported" >&6; }
7438		if test "$supported" = "yes" ; then
7439			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7440			found="yes"
7441		fi
7442	fi
7443
7444
7445
7446# These are currently disabled because they are noisy.  They will be enabled
7447# in the future once the codebase is sufficiently modernized to silence
7448# them.  For now, I don't want them to drown out the other warnings.
7449# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7450# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7451# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7452
7453# Turn some warnings into errors, so we don't accidentally get successful builds
7454# when there are problems that should be fixed.
7455
7456if test "x$SELECTIVE_WERROR" = "xyes" ; then
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470xorg_testset_save_CFLAGS="$CFLAGS"
7471
7472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7476if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7477then :
7478  printf %s "(cached) " >&6
7479else $as_nop
7480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481/* end confdefs.h.  */
7482int i;
7483_ACEOF
7484if ac_fn_c_try_compile "$LINENO"
7485then :
7486  xorg_cv_cc_flag_unknown_warning_option=yes
7487else $as_nop
7488  xorg_cv_cc_flag_unknown_warning_option=no
7489fi
7490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7491fi
7492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7495	CFLAGS="$xorg_testset_save_CFLAGS"
7496fi
7497
7498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501	fi
7502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7505if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7506then :
7507  printf %s "(cached) " >&6
7508else $as_nop
7509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510/* end confdefs.h.  */
7511int i;
7512_ACEOF
7513if ac_fn_c_try_compile "$LINENO"
7514then :
7515  xorg_cv_cc_flag_unused_command_line_argument=yes
7516else $as_nop
7517  xorg_cv_cc_flag_unused_command_line_argument=no
7518fi
7519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7520fi
7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7524	CFLAGS="$xorg_testset_save_CFLAGS"
7525fi
7526
7527found="no"
7528
7529	if test $found = "no" ; then
7530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532		fi
7533
7534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7536		fi
7537
7538		CFLAGS="$CFLAGS -Werror=implicit"
7539
7540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7541printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7542		cacheid=xorg_cv_cc_flag__Werror_implicit
7543		if eval test \${$cacheid+y}
7544then :
7545  printf %s "(cached) " >&6
7546else $as_nop
7547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548/* end confdefs.h.  */
7549int i;
7550int
7551main (void)
7552{
7553
7554  ;
7555  return 0;
7556}
7557_ACEOF
7558if ac_fn_c_try_link "$LINENO"
7559then :
7560  eval $cacheid=yes
7561else $as_nop
7562  eval $cacheid=no
7563fi
7564rm -f core conftest.err conftest.$ac_objext conftest.beam \
7565    conftest$ac_exeext conftest.$ac_ext
7566fi
7567
7568
7569		CFLAGS="$xorg_testset_save_CFLAGS"
7570
7571		eval supported=\$$cacheid
7572		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7573printf "%s\n" "$supported" >&6; }
7574		if test "$supported" = "yes" ; then
7575			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7576			found="yes"
7577		fi
7578	fi
7579
7580	if test $found = "no" ; then
7581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583		fi
7584
7585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587		fi
7588
7589		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7590
7591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7592printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7593		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7594		if eval test \${$cacheid+y}
7595then :
7596  printf %s "(cached) " >&6
7597else $as_nop
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600int i;
7601int
7602main (void)
7603{
7604
7605  ;
7606  return 0;
7607}
7608_ACEOF
7609if ac_fn_c_try_link "$LINENO"
7610then :
7611  eval $cacheid=yes
7612else $as_nop
7613  eval $cacheid=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.beam \
7616    conftest$ac_exeext conftest.$ac_ext
7617fi
7618
7619
7620		CFLAGS="$xorg_testset_save_CFLAGS"
7621
7622		eval supported=\$$cacheid
7623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624printf "%s\n" "$supported" >&6; }
7625		if test "$supported" = "yes" ; then
7626			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7627			found="yes"
7628		fi
7629	fi
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645xorg_testset_save_CFLAGS="$CFLAGS"
7646
7647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652then :
7653  printf %s "(cached) " >&6
7654else $as_nop
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658_ACEOF
7659if ac_fn_c_try_compile "$LINENO"
7660then :
7661  xorg_cv_cc_flag_unknown_warning_option=yes
7662else $as_nop
7663  xorg_cv_cc_flag_unknown_warning_option=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666fi
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676	fi
7677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681then :
7682  printf %s "(cached) " >&6
7683else $as_nop
7684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686int i;
7687_ACEOF
7688if ac_fn_c_try_compile "$LINENO"
7689then :
7690  xorg_cv_cc_flag_unused_command_line_argument=yes
7691else $as_nop
7692  xorg_cv_cc_flag_unused_command_line_argument=no
7693fi
7694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7695fi
7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699	CFLAGS="$xorg_testset_save_CFLAGS"
7700fi
7701
7702found="no"
7703
7704	if test $found = "no" ; then
7705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707		fi
7708
7709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711		fi
7712
7713		CFLAGS="$CFLAGS -Werror=nonnull"
7714
7715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7716printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7717		cacheid=xorg_cv_cc_flag__Werror_nonnull
7718		if eval test \${$cacheid+y}
7719then :
7720  printf %s "(cached) " >&6
7721else $as_nop
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725int
7726main (void)
7727{
7728
7729  ;
7730  return 0;
7731}
7732_ACEOF
7733if ac_fn_c_try_link "$LINENO"
7734then :
7735  eval $cacheid=yes
7736else $as_nop
7737  eval $cacheid=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext conftest.beam \
7740    conftest$ac_exeext conftest.$ac_ext
7741fi
7742
7743
7744		CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746		eval supported=\$$cacheid
7747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748printf "%s\n" "$supported" >&6; }
7749		if test "$supported" = "yes" ; then
7750			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7751			found="yes"
7752		fi
7753	fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7776then :
7777  printf %s "(cached) " >&6
7778else $as_nop
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"
7784then :
7785  xorg_cv_cc_flag_unknown_warning_option=yes
7786else $as_nop
7787  xorg_cv_cc_flag_unknown_warning_option=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790fi
7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794	CFLAGS="$xorg_testset_save_CFLAGS"
7795fi
7796
7797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800	fi
7801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7805then :
7806  printf %s "(cached) " >&6
7807else $as_nop
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810int i;
7811_ACEOF
7812if ac_fn_c_try_compile "$LINENO"
7813then :
7814  xorg_cv_cc_flag_unused_command_line_argument=yes
7815else $as_nop
7816  xorg_cv_cc_flag_unused_command_line_argument=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7819fi
7820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7823	CFLAGS="$xorg_testset_save_CFLAGS"
7824fi
7825
7826found="no"
7827
7828	if test $found = "no" ; then
7829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831		fi
7832
7833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835		fi
7836
7837		CFLAGS="$CFLAGS -Werror=init-self"
7838
7839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7840printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7841		cacheid=xorg_cv_cc_flag__Werror_init_self
7842		if eval test \${$cacheid+y}
7843then :
7844  printf %s "(cached) " >&6
7845else $as_nop
7846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848int i;
7849int
7850main (void)
7851{
7852
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_link "$LINENO"
7858then :
7859  eval $cacheid=yes
7860else $as_nop
7861  eval $cacheid=no
7862fi
7863rm -f core conftest.err conftest.$ac_objext conftest.beam \
7864    conftest$ac_exeext conftest.$ac_ext
7865fi
7866
7867
7868		CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870		eval supported=\$$cacheid
7871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872printf "%s\n" "$supported" >&6; }
7873		if test "$supported" = "yes" ; then
7874			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7875			found="yes"
7876		fi
7877	fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7900then :
7901  printf %s "(cached) " >&6
7902else $as_nop
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905int i;
7906_ACEOF
7907if ac_fn_c_try_compile "$LINENO"
7908then :
7909  xorg_cv_cc_flag_unknown_warning_option=yes
7910else $as_nop
7911  xorg_cv_cc_flag_unknown_warning_option=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914fi
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918	CFLAGS="$xorg_testset_save_CFLAGS"
7919fi
7920
7921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924	fi
7925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7929then :
7930  printf %s "(cached) " >&6
7931else $as_nop
7932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h.  */
7934int i;
7935_ACEOF
7936if ac_fn_c_try_compile "$LINENO"
7937then :
7938  xorg_cv_cc_flag_unused_command_line_argument=yes
7939else $as_nop
7940  xorg_cv_cc_flag_unused_command_line_argument=no
7941fi
7942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7943fi
7944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947	CFLAGS="$xorg_testset_save_CFLAGS"
7948fi
7949
7950found="no"
7951
7952	if test $found = "no" ; then
7953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955		fi
7956
7957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959		fi
7960
7961		CFLAGS="$CFLAGS -Werror=main"
7962
7963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7964printf %s "checking if $CC supports -Werror=main... " >&6; }
7965		cacheid=xorg_cv_cc_flag__Werror_main
7966		if eval test \${$cacheid+y}
7967then :
7968  printf %s "(cached) " >&6
7969else $as_nop
7970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971/* end confdefs.h.  */
7972int i;
7973int
7974main (void)
7975{
7976
7977  ;
7978  return 0;
7979}
7980_ACEOF
7981if ac_fn_c_try_link "$LINENO"
7982then :
7983  eval $cacheid=yes
7984else $as_nop
7985  eval $cacheid=no
7986fi
7987rm -f core conftest.err conftest.$ac_objext conftest.beam \
7988    conftest$ac_exeext conftest.$ac_ext
7989fi
7990
7991
7992		CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994		eval supported=\$$cacheid
7995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996printf "%s\n" "$supported" >&6; }
7997		if test "$supported" = "yes" ; then
7998			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7999			found="yes"
8000		fi
8001	fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8024then :
8025  printf %s "(cached) " >&6
8026else $as_nop
8027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h.  */
8029int i;
8030_ACEOF
8031if ac_fn_c_try_compile "$LINENO"
8032then :
8033  xorg_cv_cc_flag_unknown_warning_option=yes
8034else $as_nop
8035  xorg_cv_cc_flag_unknown_warning_option=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8038fi
8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042	CFLAGS="$xorg_testset_save_CFLAGS"
8043fi
8044
8045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	fi
8049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8053then :
8054  printf %s "(cached) " >&6
8055else $as_nop
8056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h.  */
8058int i;
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"
8061then :
8062  xorg_cv_cc_flag_unused_command_line_argument=yes
8063else $as_nop
8064  xorg_cv_cc_flag_unused_command_line_argument=no
8065fi
8066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8067fi
8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8071	CFLAGS="$xorg_testset_save_CFLAGS"
8072fi
8073
8074found="no"
8075
8076	if test $found = "no" ; then
8077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079		fi
8080
8081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083		fi
8084
8085		CFLAGS="$CFLAGS -Werror=missing-braces"
8086
8087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8088printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8089		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8090		if eval test \${$cacheid+y}
8091then :
8092  printf %s "(cached) " >&6
8093else $as_nop
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096int i;
8097int
8098main (void)
8099{
8100
8101  ;
8102  return 0;
8103}
8104_ACEOF
8105if ac_fn_c_try_link "$LINENO"
8106then :
8107  eval $cacheid=yes
8108else $as_nop
8109  eval $cacheid=no
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.beam \
8112    conftest$ac_exeext conftest.$ac_ext
8113fi
8114
8115
8116		CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118		eval supported=\$$cacheid
8119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120printf "%s\n" "$supported" >&6; }
8121		if test "$supported" = "yes" ; then
8122			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8123			found="yes"
8124		fi
8125	fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141xorg_testset_save_CFLAGS="$CFLAGS"
8142
8143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8147if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8148then :
8149  printf %s "(cached) " >&6
8150else $as_nop
8151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h.  */
8153int i;
8154_ACEOF
8155if ac_fn_c_try_compile "$LINENO"
8156then :
8157  xorg_cv_cc_flag_unknown_warning_option=yes
8158else $as_nop
8159  xorg_cv_cc_flag_unknown_warning_option=no
8160fi
8161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8162fi
8163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8166	CFLAGS="$xorg_testset_save_CFLAGS"
8167fi
8168
8169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8172	fi
8173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8176if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8177then :
8178  printf %s "(cached) " >&6
8179else $as_nop
8180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181/* end confdefs.h.  */
8182int i;
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"
8185then :
8186  xorg_cv_cc_flag_unused_command_line_argument=yes
8187else $as_nop
8188  xorg_cv_cc_flag_unused_command_line_argument=no
8189fi
8190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8191fi
8192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8195	CFLAGS="$xorg_testset_save_CFLAGS"
8196fi
8197
8198found="no"
8199
8200	if test $found = "no" ; then
8201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203		fi
8204
8205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8207		fi
8208
8209		CFLAGS="$CFLAGS -Werror=sequence-point"
8210
8211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8212printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8213		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8214		if eval test \${$cacheid+y}
8215then :
8216  printf %s "(cached) " >&6
8217else $as_nop
8218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h.  */
8220int i;
8221int
8222main (void)
8223{
8224
8225  ;
8226  return 0;
8227}
8228_ACEOF
8229if ac_fn_c_try_link "$LINENO"
8230then :
8231  eval $cacheid=yes
8232else $as_nop
8233  eval $cacheid=no
8234fi
8235rm -f core conftest.err conftest.$ac_objext conftest.beam \
8236    conftest$ac_exeext conftest.$ac_ext
8237fi
8238
8239
8240		CFLAGS="$xorg_testset_save_CFLAGS"
8241
8242		eval supported=\$$cacheid
8243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8244printf "%s\n" "$supported" >&6; }
8245		if test "$supported" = "yes" ; then
8246			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8247			found="yes"
8248		fi
8249	fi
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265xorg_testset_save_CFLAGS="$CFLAGS"
8266
8267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8271if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8272then :
8273  printf %s "(cached) " >&6
8274else $as_nop
8275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h.  */
8277int i;
8278_ACEOF
8279if ac_fn_c_try_compile "$LINENO"
8280then :
8281  xorg_cv_cc_flag_unknown_warning_option=yes
8282else $as_nop
8283  xorg_cv_cc_flag_unknown_warning_option=no
8284fi
8285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8286fi
8287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8290	CFLAGS="$xorg_testset_save_CFLAGS"
8291fi
8292
8293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296	fi
8297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8300if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8301then :
8302  printf %s "(cached) " >&6
8303else $as_nop
8304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306int i;
8307_ACEOF
8308if ac_fn_c_try_compile "$LINENO"
8309then :
8310  xorg_cv_cc_flag_unused_command_line_argument=yes
8311else $as_nop
8312  xorg_cv_cc_flag_unused_command_line_argument=no
8313fi
8314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8315fi
8316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8319	CFLAGS="$xorg_testset_save_CFLAGS"
8320fi
8321
8322found="no"
8323
8324	if test $found = "no" ; then
8325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327		fi
8328
8329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8331		fi
8332
8333		CFLAGS="$CFLAGS -Werror=return-type"
8334
8335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8336printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8337		cacheid=xorg_cv_cc_flag__Werror_return_type
8338		if eval test \${$cacheid+y}
8339then :
8340  printf %s "(cached) " >&6
8341else $as_nop
8342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h.  */
8344int i;
8345int
8346main (void)
8347{
8348
8349  ;
8350  return 0;
8351}
8352_ACEOF
8353if ac_fn_c_try_link "$LINENO"
8354then :
8355  eval $cacheid=yes
8356else $as_nop
8357  eval $cacheid=no
8358fi
8359rm -f core conftest.err conftest.$ac_objext conftest.beam \
8360    conftest$ac_exeext conftest.$ac_ext
8361fi
8362
8363
8364		CFLAGS="$xorg_testset_save_CFLAGS"
8365
8366		eval supported=\$$cacheid
8367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8368printf "%s\n" "$supported" >&6; }
8369		if test "$supported" = "yes" ; then
8370			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8371			found="yes"
8372		fi
8373	fi
8374
8375	if test $found = "no" ; then
8376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378		fi
8379
8380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382		fi
8383
8384		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8385
8386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8387printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8388		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8389		if eval test \${$cacheid+y}
8390then :
8391  printf %s "(cached) " >&6
8392else $as_nop
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395int i;
8396int
8397main (void)
8398{
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"
8405then :
8406  eval $cacheid=yes
8407else $as_nop
8408  eval $cacheid=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.beam \
8411    conftest$ac_exeext conftest.$ac_ext
8412fi
8413
8414
8415		CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417		eval supported=\$$cacheid
8418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419printf "%s\n" "$supported" >&6; }
8420		if test "$supported" = "yes" ; then
8421			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8422			found="yes"
8423		fi
8424	fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447then :
8448  printf %s "(cached) " >&6
8449else $as_nop
8450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452int i;
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"
8455then :
8456  xorg_cv_cc_flag_unknown_warning_option=yes
8457else $as_nop
8458  xorg_cv_cc_flag_unknown_warning_option=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461fi
8462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471	fi
8472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8476then :
8477  printf %s "(cached) " >&6
8478else $as_nop
8479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482_ACEOF
8483if ac_fn_c_try_compile "$LINENO"
8484then :
8485  xorg_cv_cc_flag_unused_command_line_argument=yes
8486else $as_nop
8487  xorg_cv_cc_flag_unused_command_line_argument=no
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8490fi
8491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494	CFLAGS="$xorg_testset_save_CFLAGS"
8495fi
8496
8497found="no"
8498
8499	if test $found = "no" ; then
8500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502		fi
8503
8504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506		fi
8507
8508		CFLAGS="$CFLAGS -Werror=trigraphs"
8509
8510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8511printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8512		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8513		if eval test \${$cacheid+y}
8514then :
8515  printf %s "(cached) " >&6
8516else $as_nop
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520int
8521main (void)
8522{
8523
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528if ac_fn_c_try_link "$LINENO"
8529then :
8530  eval $cacheid=yes
8531else $as_nop
8532  eval $cacheid=no
8533fi
8534rm -f core conftest.err conftest.$ac_objext conftest.beam \
8535    conftest$ac_exeext conftest.$ac_ext
8536fi
8537
8538
8539		CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541		eval supported=\$$cacheid
8542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543printf "%s\n" "$supported" >&6; }
8544		if test "$supported" = "yes" ; then
8545			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8546			found="yes"
8547		fi
8548	fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8571then :
8572  printf %s "(cached) " >&6
8573else $as_nop
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"
8579then :
8580  xorg_cv_cc_flag_unknown_warning_option=yes
8581else $as_nop
8582  xorg_cv_cc_flag_unknown_warning_option=no
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585fi
8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589	CFLAGS="$xorg_testset_save_CFLAGS"
8590fi
8591
8592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595	fi
8596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8600then :
8601  printf %s "(cached) " >&6
8602else $as_nop
8603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h.  */
8605int i;
8606_ACEOF
8607if ac_fn_c_try_compile "$LINENO"
8608then :
8609  xorg_cv_cc_flag_unused_command_line_argument=yes
8610else $as_nop
8611  xorg_cv_cc_flag_unused_command_line_argument=no
8612fi
8613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8614fi
8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618	CFLAGS="$xorg_testset_save_CFLAGS"
8619fi
8620
8621found="no"
8622
8623	if test $found = "no" ; then
8624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626		fi
8627
8628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630		fi
8631
8632		CFLAGS="$CFLAGS -Werror=array-bounds"
8633
8634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8635printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8636		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8637		if eval test \${$cacheid+y}
8638then :
8639  printf %s "(cached) " >&6
8640else $as_nop
8641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642/* end confdefs.h.  */
8643int i;
8644int
8645main (void)
8646{
8647
8648  ;
8649  return 0;
8650}
8651_ACEOF
8652if ac_fn_c_try_link "$LINENO"
8653then :
8654  eval $cacheid=yes
8655else $as_nop
8656  eval $cacheid=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext conftest.beam \
8659    conftest$ac_exeext conftest.$ac_ext
8660fi
8661
8662
8663		CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665		eval supported=\$$cacheid
8666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667printf "%s\n" "$supported" >&6; }
8668		if test "$supported" = "yes" ; then
8669			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8670			found="yes"
8671		fi
8672	fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8695then :
8696  printf %s "(cached) " >&6
8697else $as_nop
8698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h.  */
8700int i;
8701_ACEOF
8702if ac_fn_c_try_compile "$LINENO"
8703then :
8704  xorg_cv_cc_flag_unknown_warning_option=yes
8705else $as_nop
8706  xorg_cv_cc_flag_unknown_warning_option=no
8707fi
8708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709fi
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8713	CFLAGS="$xorg_testset_save_CFLAGS"
8714fi
8715
8716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719	fi
8720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8724then :
8725  printf %s "(cached) " >&6
8726else $as_nop
8727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729int i;
8730_ACEOF
8731if ac_fn_c_try_compile "$LINENO"
8732then :
8733  xorg_cv_cc_flag_unused_command_line_argument=yes
8734else $as_nop
8735  xorg_cv_cc_flag_unused_command_line_argument=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8738fi
8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742	CFLAGS="$xorg_testset_save_CFLAGS"
8743fi
8744
8745found="no"
8746
8747	if test $found = "no" ; then
8748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750		fi
8751
8752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754		fi
8755
8756		CFLAGS="$CFLAGS -Werror=write-strings"
8757
8758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8759printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8760		cacheid=xorg_cv_cc_flag__Werror_write_strings
8761		if eval test \${$cacheid+y}
8762then :
8763  printf %s "(cached) " >&6
8764else $as_nop
8765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766/* end confdefs.h.  */
8767int i;
8768int
8769main (void)
8770{
8771
8772  ;
8773  return 0;
8774}
8775_ACEOF
8776if ac_fn_c_try_link "$LINENO"
8777then :
8778  eval $cacheid=yes
8779else $as_nop
8780  eval $cacheid=no
8781fi
8782rm -f core conftest.err conftest.$ac_objext conftest.beam \
8783    conftest$ac_exeext conftest.$ac_ext
8784fi
8785
8786
8787		CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789		eval supported=\$$cacheid
8790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791printf "%s\n" "$supported" >&6; }
8792		if test "$supported" = "yes" ; then
8793			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8794			found="yes"
8795		fi
8796	fi
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812xorg_testset_save_CFLAGS="$CFLAGS"
8813
8814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8819then :
8820  printf %s "(cached) " >&6
8821else $as_nop
8822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8823/* end confdefs.h.  */
8824int i;
8825_ACEOF
8826if ac_fn_c_try_compile "$LINENO"
8827then :
8828  xorg_cv_cc_flag_unknown_warning_option=yes
8829else $as_nop
8830  xorg_cv_cc_flag_unknown_warning_option=no
8831fi
8832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8833fi
8834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8836	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8837	CFLAGS="$xorg_testset_save_CFLAGS"
8838fi
8839
8840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8841	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8842		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843	fi
8844	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8847if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8848then :
8849  printf %s "(cached) " >&6
8850else $as_nop
8851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853int i;
8854_ACEOF
8855if ac_fn_c_try_compile "$LINENO"
8856then :
8857  xorg_cv_cc_flag_unused_command_line_argument=yes
8858else $as_nop
8859  xorg_cv_cc_flag_unused_command_line_argument=no
8860fi
8861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8862fi
8863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8864printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8866	CFLAGS="$xorg_testset_save_CFLAGS"
8867fi
8868
8869found="no"
8870
8871	if test $found = "no" ; then
8872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874		fi
8875
8876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8878		fi
8879
8880		CFLAGS="$CFLAGS -Werror=address"
8881
8882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8883printf %s "checking if $CC supports -Werror=address... " >&6; }
8884		cacheid=xorg_cv_cc_flag__Werror_address
8885		if eval test \${$cacheid+y}
8886then :
8887  printf %s "(cached) " >&6
8888else $as_nop
8889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890/* end confdefs.h.  */
8891int i;
8892int
8893main (void)
8894{
8895
8896  ;
8897  return 0;
8898}
8899_ACEOF
8900if ac_fn_c_try_link "$LINENO"
8901then :
8902  eval $cacheid=yes
8903else $as_nop
8904  eval $cacheid=no
8905fi
8906rm -f core conftest.err conftest.$ac_objext conftest.beam \
8907    conftest$ac_exeext conftest.$ac_ext
8908fi
8909
8910
8911		CFLAGS="$xorg_testset_save_CFLAGS"
8912
8913		eval supported=\$$cacheid
8914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8915printf "%s\n" "$supported" >&6; }
8916		if test "$supported" = "yes" ; then
8917			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8918			found="yes"
8919		fi
8920	fi
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936xorg_testset_save_CFLAGS="$CFLAGS"
8937
8938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8943then :
8944  printf %s "(cached) " >&6
8945else $as_nop
8946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947/* end confdefs.h.  */
8948int i;
8949_ACEOF
8950if ac_fn_c_try_compile "$LINENO"
8951then :
8952  xorg_cv_cc_flag_unknown_warning_option=yes
8953else $as_nop
8954  xorg_cv_cc_flag_unknown_warning_option=no
8955fi
8956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8957fi
8958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8961	CFLAGS="$xorg_testset_save_CFLAGS"
8962fi
8963
8964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967	fi
8968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8969	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8971if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8972then :
8973  printf %s "(cached) " >&6
8974else $as_nop
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978_ACEOF
8979if ac_fn_c_try_compile "$LINENO"
8980then :
8981  xorg_cv_cc_flag_unused_command_line_argument=yes
8982else $as_nop
8983  xorg_cv_cc_flag_unused_command_line_argument=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8986fi
8987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993found="no"
8994
8995	if test $found = "no" ; then
8996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998		fi
8999
9000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002		fi
9003
9004		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9005
9006		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9007printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9008		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9009		if eval test \${$cacheid+y}
9010then :
9011  printf %s "(cached) " >&6
9012else $as_nop
9013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h.  */
9015int i;
9016int
9017main (void)
9018{
9019
9020  ;
9021  return 0;
9022}
9023_ACEOF
9024if ac_fn_c_try_link "$LINENO"
9025then :
9026  eval $cacheid=yes
9027else $as_nop
9028  eval $cacheid=no
9029fi
9030rm -f core conftest.err conftest.$ac_objext conftest.beam \
9031    conftest$ac_exeext conftest.$ac_ext
9032fi
9033
9034
9035		CFLAGS="$xorg_testset_save_CFLAGS"
9036
9037		eval supported=\$$cacheid
9038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9039printf "%s\n" "$supported" >&6; }
9040		if test "$supported" = "yes" ; then
9041			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9042			found="yes"
9043		fi
9044	fi
9045
9046	if test $found = "no" ; then
9047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9049		fi
9050
9051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9053		fi
9054
9055		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9056
9057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9058printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9059		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9060		if eval test \${$cacheid+y}
9061then :
9062  printf %s "(cached) " >&6
9063else $as_nop
9064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065/* end confdefs.h.  */
9066int i;
9067int
9068main (void)
9069{
9070
9071  ;
9072  return 0;
9073}
9074_ACEOF
9075if ac_fn_c_try_link "$LINENO"
9076then :
9077  eval $cacheid=yes
9078else $as_nop
9079  eval $cacheid=no
9080fi
9081rm -f core conftest.err conftest.$ac_objext conftest.beam \
9082    conftest$ac_exeext conftest.$ac_ext
9083fi
9084
9085
9086		CFLAGS="$xorg_testset_save_CFLAGS"
9087
9088		eval supported=\$$cacheid
9089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9090printf "%s\n" "$supported" >&6; }
9091		if test "$supported" = "yes" ; then
9092			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9093			found="yes"
9094		fi
9095	fi
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111xorg_testset_save_CFLAGS="$CFLAGS"
9112
9113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9114	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9115	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9116printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9117if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9118then :
9119  printf %s "(cached) " >&6
9120else $as_nop
9121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122/* end confdefs.h.  */
9123int i;
9124_ACEOF
9125if ac_fn_c_try_compile "$LINENO"
9126then :
9127  xorg_cv_cc_flag_unknown_warning_option=yes
9128else $as_nop
9129  xorg_cv_cc_flag_unknown_warning_option=no
9130fi
9131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9132fi
9133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9134printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9136	CFLAGS="$xorg_testset_save_CFLAGS"
9137fi
9138
9139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142	fi
9143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9145printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9146if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9147then :
9148  printf %s "(cached) " >&6
9149else $as_nop
9150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151/* end confdefs.h.  */
9152int i;
9153_ACEOF
9154if ac_fn_c_try_compile "$LINENO"
9155then :
9156  xorg_cv_cc_flag_unused_command_line_argument=yes
9157else $as_nop
9158  xorg_cv_cc_flag_unused_command_line_argument=no
9159fi
9160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9161fi
9162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9163printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9164	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9165	CFLAGS="$xorg_testset_save_CFLAGS"
9166fi
9167
9168found="no"
9169
9170	if test $found = "no" ; then
9171		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9172			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173		fi
9174
9175		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9176			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9177		fi
9178
9179		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9180
9181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9182printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9183		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9184		if eval test \${$cacheid+y}
9185then :
9186  printf %s "(cached) " >&6
9187else $as_nop
9188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189/* end confdefs.h.  */
9190int i;
9191int
9192main (void)
9193{
9194
9195  ;
9196  return 0;
9197}
9198_ACEOF
9199if ac_fn_c_try_link "$LINENO"
9200then :
9201  eval $cacheid=yes
9202else $as_nop
9203  eval $cacheid=no
9204fi
9205rm -f core conftest.err conftest.$ac_objext conftest.beam \
9206    conftest$ac_exeext conftest.$ac_ext
9207fi
9208
9209
9210		CFLAGS="$xorg_testset_save_CFLAGS"
9211
9212		eval supported=\$$cacheid
9213		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9214printf "%s\n" "$supported" >&6; }
9215		if test "$supported" = "yes" ; then
9216			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9217			found="yes"
9218		fi
9219	fi
9220
9221 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9222else
9223{ printf "%s\n" "$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
9224printf "%s\n" "$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;}
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238xorg_testset_save_CFLAGS="$CFLAGS"
9239
9240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9244if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9245then :
9246  printf %s "(cached) " >&6
9247else $as_nop
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"
9253then :
9254  xorg_cv_cc_flag_unknown_warning_option=yes
9255else $as_nop
9256  xorg_cv_cc_flag_unknown_warning_option=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259fi
9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9263	CFLAGS="$xorg_testset_save_CFLAGS"
9264fi
9265
9266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269	fi
9270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9273if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9274then :
9275  printf %s "(cached) " >&6
9276else $as_nop
9277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279int i;
9280_ACEOF
9281if ac_fn_c_try_compile "$LINENO"
9282then :
9283  xorg_cv_cc_flag_unused_command_line_argument=yes
9284else $as_nop
9285  xorg_cv_cc_flag_unused_command_line_argument=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288fi
9289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9292	CFLAGS="$xorg_testset_save_CFLAGS"
9293fi
9294
9295found="no"
9296
9297	if test $found = "no" ; then
9298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300		fi
9301
9302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304		fi
9305
9306		CFLAGS="$CFLAGS -Wimplicit"
9307
9308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9309printf %s "checking if $CC supports -Wimplicit... " >&6; }
9310		cacheid=xorg_cv_cc_flag__Wimplicit
9311		if eval test \${$cacheid+y}
9312then :
9313  printf %s "(cached) " >&6
9314else $as_nop
9315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316/* end confdefs.h.  */
9317int i;
9318int
9319main (void)
9320{
9321
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326if ac_fn_c_try_link "$LINENO"
9327then :
9328  eval $cacheid=yes
9329else $as_nop
9330  eval $cacheid=no
9331fi
9332rm -f core conftest.err conftest.$ac_objext conftest.beam \
9333    conftest$ac_exeext conftest.$ac_ext
9334fi
9335
9336
9337		CFLAGS="$xorg_testset_save_CFLAGS"
9338
9339		eval supported=\$$cacheid
9340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9341printf "%s\n" "$supported" >&6; }
9342		if test "$supported" = "yes" ; then
9343			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9344			found="yes"
9345		fi
9346	fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362xorg_testset_save_CFLAGS="$CFLAGS"
9363
9364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9368if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9369then :
9370  printf %s "(cached) " >&6
9371else $as_nop
9372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374int i;
9375_ACEOF
9376if ac_fn_c_try_compile "$LINENO"
9377then :
9378  xorg_cv_cc_flag_unknown_warning_option=yes
9379else $as_nop
9380  xorg_cv_cc_flag_unknown_warning_option=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383fi
9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9387	CFLAGS="$xorg_testset_save_CFLAGS"
9388fi
9389
9390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393	fi
9394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9397if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9398then :
9399  printf %s "(cached) " >&6
9400else $as_nop
9401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402/* end confdefs.h.  */
9403int i;
9404_ACEOF
9405if ac_fn_c_try_compile "$LINENO"
9406then :
9407  xorg_cv_cc_flag_unused_command_line_argument=yes
9408else $as_nop
9409  xorg_cv_cc_flag_unused_command_line_argument=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9412fi
9413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416	CFLAGS="$xorg_testset_save_CFLAGS"
9417fi
9418
9419found="no"
9420
9421	if test $found = "no" ; then
9422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424		fi
9425
9426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428		fi
9429
9430		CFLAGS="$CFLAGS -Wnonnull"
9431
9432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9433printf %s "checking if $CC supports -Wnonnull... " >&6; }
9434		cacheid=xorg_cv_cc_flag__Wnonnull
9435		if eval test \${$cacheid+y}
9436then :
9437  printf %s "(cached) " >&6
9438else $as_nop
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442int
9443main (void)
9444{
9445
9446  ;
9447  return 0;
9448}
9449_ACEOF
9450if ac_fn_c_try_link "$LINENO"
9451then :
9452  eval $cacheid=yes
9453else $as_nop
9454  eval $cacheid=no
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.beam \
9457    conftest$ac_exeext conftest.$ac_ext
9458fi
9459
9460
9461		CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463		eval supported=\$$cacheid
9464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465printf "%s\n" "$supported" >&6; }
9466		if test "$supported" = "yes" ; then
9467			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9468			found="yes"
9469		fi
9470	fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493then :
9494  printf %s "(cached) " >&6
9495else $as_nop
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"
9501then :
9502  xorg_cv_cc_flag_unknown_warning_option=yes
9503else $as_nop
9504  xorg_cv_cc_flag_unknown_warning_option=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507fi
9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9511	CFLAGS="$xorg_testset_save_CFLAGS"
9512fi
9513
9514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517	fi
9518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9522then :
9523  printf %s "(cached) " >&6
9524else $as_nop
9525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526/* end confdefs.h.  */
9527int i;
9528_ACEOF
9529if ac_fn_c_try_compile "$LINENO"
9530then :
9531  xorg_cv_cc_flag_unused_command_line_argument=yes
9532else $as_nop
9533  xorg_cv_cc_flag_unused_command_line_argument=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9536fi
9537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540	CFLAGS="$xorg_testset_save_CFLAGS"
9541fi
9542
9543found="no"
9544
9545	if test $found = "no" ; then
9546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548		fi
9549
9550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552		fi
9553
9554		CFLAGS="$CFLAGS -Winit-self"
9555
9556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9557printf %s "checking if $CC supports -Winit-self... " >&6; }
9558		cacheid=xorg_cv_cc_flag__Winit_self
9559		if eval test \${$cacheid+y}
9560then :
9561  printf %s "(cached) " >&6
9562else $as_nop
9563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565int i;
9566int
9567main (void)
9568{
9569
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574if ac_fn_c_try_link "$LINENO"
9575then :
9576  eval $cacheid=yes
9577else $as_nop
9578  eval $cacheid=no
9579fi
9580rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581    conftest$ac_exeext conftest.$ac_ext
9582fi
9583
9584
9585		CFLAGS="$xorg_testset_save_CFLAGS"
9586
9587		eval supported=\$$cacheid
9588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9589printf "%s\n" "$supported" >&6; }
9590		if test "$supported" = "yes" ; then
9591			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9592			found="yes"
9593		fi
9594	fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610xorg_testset_save_CFLAGS="$CFLAGS"
9611
9612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9617then :
9618  printf %s "(cached) " >&6
9619else $as_nop
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"
9625then :
9626  xorg_cv_cc_flag_unknown_warning_option=yes
9627else $as_nop
9628  xorg_cv_cc_flag_unknown_warning_option=no
9629fi
9630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631fi
9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641	fi
9642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9646then :
9647  printf %s "(cached) " >&6
9648else $as_nop
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652_ACEOF
9653if ac_fn_c_try_compile "$LINENO"
9654then :
9655  xorg_cv_cc_flag_unused_command_line_argument=yes
9656else $as_nop
9657  xorg_cv_cc_flag_unused_command_line_argument=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9660fi
9661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664	CFLAGS="$xorg_testset_save_CFLAGS"
9665fi
9666
9667found="no"
9668
9669	if test $found = "no" ; then
9670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672		fi
9673
9674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676		fi
9677
9678		CFLAGS="$CFLAGS -Wmain"
9679
9680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9681printf %s "checking if $CC supports -Wmain... " >&6; }
9682		cacheid=xorg_cv_cc_flag__Wmain
9683		if eval test \${$cacheid+y}
9684then :
9685  printf %s "(cached) " >&6
9686else $as_nop
9687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689int i;
9690int
9691main (void)
9692{
9693
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_link "$LINENO"
9699then :
9700  eval $cacheid=yes
9701else $as_nop
9702  eval $cacheid=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext conftest.beam \
9705    conftest$ac_exeext conftest.$ac_ext
9706fi
9707
9708
9709		CFLAGS="$xorg_testset_save_CFLAGS"
9710
9711		eval supported=\$$cacheid
9712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9713printf "%s\n" "$supported" >&6; }
9714		if test "$supported" = "yes" ; then
9715			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9716			found="yes"
9717		fi
9718	fi
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734xorg_testset_save_CFLAGS="$CFLAGS"
9735
9736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9740if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9741then :
9742  printf %s "(cached) " >&6
9743else $as_nop
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747_ACEOF
9748if ac_fn_c_try_compile "$LINENO"
9749then :
9750  xorg_cv_cc_flag_unknown_warning_option=yes
9751else $as_nop
9752  xorg_cv_cc_flag_unknown_warning_option=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755fi
9756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759	CFLAGS="$xorg_testset_save_CFLAGS"
9760fi
9761
9762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765	fi
9766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9770then :
9771  printf %s "(cached) " >&6
9772else $as_nop
9773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774/* end confdefs.h.  */
9775int i;
9776_ACEOF
9777if ac_fn_c_try_compile "$LINENO"
9778then :
9779  xorg_cv_cc_flag_unused_command_line_argument=yes
9780else $as_nop
9781  xorg_cv_cc_flag_unused_command_line_argument=no
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9784fi
9785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788	CFLAGS="$xorg_testset_save_CFLAGS"
9789fi
9790
9791found="no"
9792
9793	if test $found = "no" ; then
9794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796		fi
9797
9798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800		fi
9801
9802		CFLAGS="$CFLAGS -Wmissing-braces"
9803
9804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9805printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9806		cacheid=xorg_cv_cc_flag__Wmissing_braces
9807		if eval test \${$cacheid+y}
9808then :
9809  printf %s "(cached) " >&6
9810else $as_nop
9811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h.  */
9813int i;
9814int
9815main (void)
9816{
9817
9818  ;
9819  return 0;
9820}
9821_ACEOF
9822if ac_fn_c_try_link "$LINENO"
9823then :
9824  eval $cacheid=yes
9825else $as_nop
9826  eval $cacheid=no
9827fi
9828rm -f core conftest.err conftest.$ac_objext conftest.beam \
9829    conftest$ac_exeext conftest.$ac_ext
9830fi
9831
9832
9833		CFLAGS="$xorg_testset_save_CFLAGS"
9834
9835		eval supported=\$$cacheid
9836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9837printf "%s\n" "$supported" >&6; }
9838		if test "$supported" = "yes" ; then
9839			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9840			found="yes"
9841		fi
9842	fi
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858xorg_testset_save_CFLAGS="$CFLAGS"
9859
9860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9864if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9865then :
9866  printf %s "(cached) " >&6
9867else $as_nop
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"
9873then :
9874  xorg_cv_cc_flag_unknown_warning_option=yes
9875else $as_nop
9876  xorg_cv_cc_flag_unknown_warning_option=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889	fi
9890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894then :
9895  printf %s "(cached) " >&6
9896else $as_nop
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900_ACEOF
9901if ac_fn_c_try_compile "$LINENO"
9902then :
9903  xorg_cv_cc_flag_unused_command_line_argument=yes
9904else $as_nop
9905  xorg_cv_cc_flag_unused_command_line_argument=no
9906fi
9907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9908fi
9909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9912	CFLAGS="$xorg_testset_save_CFLAGS"
9913fi
9914
9915found="no"
9916
9917	if test $found = "no" ; then
9918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920		fi
9921
9922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924		fi
9925
9926		CFLAGS="$CFLAGS -Wsequence-point"
9927
9928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9929printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9930		cacheid=xorg_cv_cc_flag__Wsequence_point
9931		if eval test \${$cacheid+y}
9932then :
9933  printf %s "(cached) " >&6
9934else $as_nop
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937int i;
9938int
9939main (void)
9940{
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946if ac_fn_c_try_link "$LINENO"
9947then :
9948  eval $cacheid=yes
9949else $as_nop
9950  eval $cacheid=no
9951fi
9952rm -f core conftest.err conftest.$ac_objext conftest.beam \
9953    conftest$ac_exeext conftest.$ac_ext
9954fi
9955
9956
9957		CFLAGS="$xorg_testset_save_CFLAGS"
9958
9959		eval supported=\$$cacheid
9960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9961printf "%s\n" "$supported" >&6; }
9962		if test "$supported" = "yes" ; then
9963			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9964			found="yes"
9965		fi
9966	fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982xorg_testset_save_CFLAGS="$CFLAGS"
9983
9984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9988if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9989then :
9990  printf %s "(cached) " >&6
9991else $as_nop
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"
9997then :
9998  xorg_cv_cc_flag_unknown_warning_option=yes
9999else $as_nop
10000  xorg_cv_cc_flag_unknown_warning_option=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003fi
10004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007	CFLAGS="$xorg_testset_save_CFLAGS"
10008fi
10009
10010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013	fi
10014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10018then :
10019  printf %s "(cached) " >&6
10020else $as_nop
10021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023int i;
10024_ACEOF
10025if ac_fn_c_try_compile "$LINENO"
10026then :
10027  xorg_cv_cc_flag_unused_command_line_argument=yes
10028else $as_nop
10029  xorg_cv_cc_flag_unused_command_line_argument=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10032fi
10033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10036	CFLAGS="$xorg_testset_save_CFLAGS"
10037fi
10038
10039found="no"
10040
10041	if test $found = "no" ; then
10042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044		fi
10045
10046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048		fi
10049
10050		CFLAGS="$CFLAGS -Wreturn-type"
10051
10052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10053printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10054		cacheid=xorg_cv_cc_flag__Wreturn_type
10055		if eval test \${$cacheid+y}
10056then :
10057  printf %s "(cached) " >&6
10058else $as_nop
10059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061int i;
10062int
10063main (void)
10064{
10065
10066  ;
10067  return 0;
10068}
10069_ACEOF
10070if ac_fn_c_try_link "$LINENO"
10071then :
10072  eval $cacheid=yes
10073else $as_nop
10074  eval $cacheid=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077    conftest$ac_exeext conftest.$ac_ext
10078fi
10079
10080
10081		CFLAGS="$xorg_testset_save_CFLAGS"
10082
10083		eval supported=\$$cacheid
10084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10085printf "%s\n" "$supported" >&6; }
10086		if test "$supported" = "yes" ; then
10087			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10088			found="yes"
10089		fi
10090	fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106xorg_testset_save_CFLAGS="$CFLAGS"
10107
10108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10112if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10113then :
10114  printf %s "(cached) " >&6
10115else $as_nop
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"
10121then :
10122  xorg_cv_cc_flag_unknown_warning_option=yes
10123else $as_nop
10124  xorg_cv_cc_flag_unknown_warning_option=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127fi
10128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137	fi
10138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142then :
10143  printf %s "(cached) " >&6
10144else $as_nop
10145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147int i;
10148_ACEOF
10149if ac_fn_c_try_compile "$LINENO"
10150then :
10151  xorg_cv_cc_flag_unused_command_line_argument=yes
10152else $as_nop
10153  xorg_cv_cc_flag_unused_command_line_argument=no
10154fi
10155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10156fi
10157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160	CFLAGS="$xorg_testset_save_CFLAGS"
10161fi
10162
10163found="no"
10164
10165	if test $found = "no" ; then
10166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168		fi
10169
10170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172		fi
10173
10174		CFLAGS="$CFLAGS -Wtrigraphs"
10175
10176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10177printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10178		cacheid=xorg_cv_cc_flag__Wtrigraphs
10179		if eval test \${$cacheid+y}
10180then :
10181  printf %s "(cached) " >&6
10182else $as_nop
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186int
10187main (void)
10188{
10189
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"
10195then :
10196  eval $cacheid=yes
10197else $as_nop
10198  eval $cacheid=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201    conftest$ac_exeext conftest.$ac_ext
10202fi
10203
10204
10205		CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207		eval supported=\$$cacheid
10208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209printf "%s\n" "$supported" >&6; }
10210		if test "$supported" = "yes" ; then
10211			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10212			found="yes"
10213		fi
10214	fi
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230xorg_testset_save_CFLAGS="$CFLAGS"
10231
10232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10237then :
10238  printf %s "(cached) " >&6
10239else $as_nop
10240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242int i;
10243_ACEOF
10244if ac_fn_c_try_compile "$LINENO"
10245then :
10246  xorg_cv_cc_flag_unknown_warning_option=yes
10247else $as_nop
10248  xorg_cv_cc_flag_unknown_warning_option=no
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251fi
10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10255	CFLAGS="$xorg_testset_save_CFLAGS"
10256fi
10257
10258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261	fi
10262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10265if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10266then :
10267  printf %s "(cached) " >&6
10268else $as_nop
10269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270/* end confdefs.h.  */
10271int i;
10272_ACEOF
10273if ac_fn_c_try_compile "$LINENO"
10274then :
10275  xorg_cv_cc_flag_unused_command_line_argument=yes
10276else $as_nop
10277  xorg_cv_cc_flag_unused_command_line_argument=no
10278fi
10279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10280fi
10281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10284	CFLAGS="$xorg_testset_save_CFLAGS"
10285fi
10286
10287found="no"
10288
10289	if test $found = "no" ; then
10290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292		fi
10293
10294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296		fi
10297
10298		CFLAGS="$CFLAGS -Warray-bounds"
10299
10300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10301printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10302		cacheid=xorg_cv_cc_flag__Warray_bounds
10303		if eval test \${$cacheid+y}
10304then :
10305  printf %s "(cached) " >&6
10306else $as_nop
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310int
10311main (void)
10312{
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"
10319then :
10320  eval $cacheid=yes
10321else $as_nop
10322  eval $cacheid=no
10323fi
10324rm -f core conftest.err conftest.$ac_objext conftest.beam \
10325    conftest$ac_exeext conftest.$ac_ext
10326fi
10327
10328
10329		CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331		eval supported=\$$cacheid
10332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333printf "%s\n" "$supported" >&6; }
10334		if test "$supported" = "yes" ; then
10335			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10336			found="yes"
10337		fi
10338	fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361then :
10362  printf %s "(cached) " >&6
10363else $as_nop
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"
10369then :
10370  xorg_cv_cc_flag_unknown_warning_option=yes
10371else $as_nop
10372  xorg_cv_cc_flag_unknown_warning_option=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375fi
10376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379	CFLAGS="$xorg_testset_save_CFLAGS"
10380fi
10381
10382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385	fi
10386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390then :
10391  printf %s "(cached) " >&6
10392else $as_nop
10393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395int i;
10396_ACEOF
10397if ac_fn_c_try_compile "$LINENO"
10398then :
10399  xorg_cv_cc_flag_unused_command_line_argument=yes
10400else $as_nop
10401  xorg_cv_cc_flag_unused_command_line_argument=no
10402fi
10403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10404fi
10405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408	CFLAGS="$xorg_testset_save_CFLAGS"
10409fi
10410
10411found="no"
10412
10413	if test $found = "no" ; then
10414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416		fi
10417
10418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420		fi
10421
10422		CFLAGS="$CFLAGS -Wwrite-strings"
10423
10424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10425printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10426		cacheid=xorg_cv_cc_flag__Wwrite_strings
10427		if eval test \${$cacheid+y}
10428then :
10429  printf %s "(cached) " >&6
10430else $as_nop
10431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432/* end confdefs.h.  */
10433int i;
10434int
10435main (void)
10436{
10437
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442if ac_fn_c_try_link "$LINENO"
10443then :
10444  eval $cacheid=yes
10445else $as_nop
10446  eval $cacheid=no
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.beam \
10449    conftest$ac_exeext conftest.$ac_ext
10450fi
10451
10452
10453		CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455		eval supported=\$$cacheid
10456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457printf "%s\n" "$supported" >&6; }
10458		if test "$supported" = "yes" ; then
10459			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10460			found="yes"
10461		fi
10462	fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478xorg_testset_save_CFLAGS="$CFLAGS"
10479
10480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10485then :
10486  printf %s "(cached) " >&6
10487else $as_nop
10488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h.  */
10490int i;
10491_ACEOF
10492if ac_fn_c_try_compile "$LINENO"
10493then :
10494  xorg_cv_cc_flag_unknown_warning_option=yes
10495else $as_nop
10496  xorg_cv_cc_flag_unknown_warning_option=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10499fi
10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10503	CFLAGS="$xorg_testset_save_CFLAGS"
10504fi
10505
10506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509	fi
10510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10513if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10514then :
10515  printf %s "(cached) " >&6
10516else $as_nop
10517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h.  */
10519int i;
10520_ACEOF
10521if ac_fn_c_try_compile "$LINENO"
10522then :
10523  xorg_cv_cc_flag_unused_command_line_argument=yes
10524else $as_nop
10525  xorg_cv_cc_flag_unused_command_line_argument=no
10526fi
10527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10528fi
10529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10531	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10532	CFLAGS="$xorg_testset_save_CFLAGS"
10533fi
10534
10535found="no"
10536
10537	if test $found = "no" ; then
10538		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540		fi
10541
10542		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10544		fi
10545
10546		CFLAGS="$CFLAGS -Waddress"
10547
10548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10549printf %s "checking if $CC supports -Waddress... " >&6; }
10550		cacheid=xorg_cv_cc_flag__Waddress
10551		if eval test \${$cacheid+y}
10552then :
10553  printf %s "(cached) " >&6
10554else $as_nop
10555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556/* end confdefs.h.  */
10557int i;
10558int
10559main (void)
10560{
10561
10562  ;
10563  return 0;
10564}
10565_ACEOF
10566if ac_fn_c_try_link "$LINENO"
10567then :
10568  eval $cacheid=yes
10569else $as_nop
10570  eval $cacheid=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573    conftest$ac_exeext conftest.$ac_ext
10574fi
10575
10576
10577		CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579		eval supported=\$$cacheid
10580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581printf "%s\n" "$supported" >&6; }
10582		if test "$supported" = "yes" ; then
10583			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10584			found="yes"
10585		fi
10586	fi
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602xorg_testset_save_CFLAGS="$CFLAGS"
10603
10604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10608if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10609then :
10610  printf %s "(cached) " >&6
10611else $as_nop
10612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613/* end confdefs.h.  */
10614int i;
10615_ACEOF
10616if ac_fn_c_try_compile "$LINENO"
10617then :
10618  xorg_cv_cc_flag_unknown_warning_option=yes
10619else $as_nop
10620  xorg_cv_cc_flag_unknown_warning_option=no
10621fi
10622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10623fi
10624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10627	CFLAGS="$xorg_testset_save_CFLAGS"
10628fi
10629
10630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10633	fi
10634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10637if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10638then :
10639  printf %s "(cached) " >&6
10640else $as_nop
10641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642/* end confdefs.h.  */
10643int i;
10644_ACEOF
10645if ac_fn_c_try_compile "$LINENO"
10646then :
10647  xorg_cv_cc_flag_unused_command_line_argument=yes
10648else $as_nop
10649  xorg_cv_cc_flag_unused_command_line_argument=no
10650fi
10651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10652fi
10653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10656	CFLAGS="$xorg_testset_save_CFLAGS"
10657fi
10658
10659found="no"
10660
10661	if test $found = "no" ; then
10662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10664		fi
10665
10666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10668		fi
10669
10670		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10671
10672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10673printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10674		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10675		if eval test \${$cacheid+y}
10676then :
10677  printf %s "(cached) " >&6
10678else $as_nop
10679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h.  */
10681int i;
10682int
10683main (void)
10684{
10685
10686  ;
10687  return 0;
10688}
10689_ACEOF
10690if ac_fn_c_try_link "$LINENO"
10691then :
10692  eval $cacheid=yes
10693else $as_nop
10694  eval $cacheid=no
10695fi
10696rm -f core conftest.err conftest.$ac_objext conftest.beam \
10697    conftest$ac_exeext conftest.$ac_ext
10698fi
10699
10700
10701		CFLAGS="$xorg_testset_save_CFLAGS"
10702
10703		eval supported=\$$cacheid
10704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10705printf "%s\n" "$supported" >&6; }
10706		if test "$supported" = "yes" ; then
10707			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10708			found="yes"
10709		fi
10710	fi
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726xorg_testset_save_CFLAGS="$CFLAGS"
10727
10728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10732if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10733then :
10734  printf %s "(cached) " >&6
10735else $as_nop
10736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737/* end confdefs.h.  */
10738int i;
10739_ACEOF
10740if ac_fn_c_try_compile "$LINENO"
10741then :
10742  xorg_cv_cc_flag_unknown_warning_option=yes
10743else $as_nop
10744  xorg_cv_cc_flag_unknown_warning_option=no
10745fi
10746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10747fi
10748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10751	CFLAGS="$xorg_testset_save_CFLAGS"
10752fi
10753
10754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10757	fi
10758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10761if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10762then :
10763  printf %s "(cached) " >&6
10764else $as_nop
10765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766/* end confdefs.h.  */
10767int i;
10768_ACEOF
10769if ac_fn_c_try_compile "$LINENO"
10770then :
10771  xorg_cv_cc_flag_unused_command_line_argument=yes
10772else $as_nop
10773  xorg_cv_cc_flag_unused_command_line_argument=no
10774fi
10775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10776fi
10777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10779	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10780	CFLAGS="$xorg_testset_save_CFLAGS"
10781fi
10782
10783found="no"
10784
10785	if test $found = "no" ; then
10786		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10788		fi
10789
10790		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10792		fi
10793
10794		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10795
10796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10797printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10798		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10799		if eval test \${$cacheid+y}
10800then :
10801  printf %s "(cached) " >&6
10802else $as_nop
10803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804/* end confdefs.h.  */
10805int i;
10806int
10807main (void)
10808{
10809
10810  ;
10811  return 0;
10812}
10813_ACEOF
10814if ac_fn_c_try_link "$LINENO"
10815then :
10816  eval $cacheid=yes
10817else $as_nop
10818  eval $cacheid=no
10819fi
10820rm -f core conftest.err conftest.$ac_objext conftest.beam \
10821    conftest$ac_exeext conftest.$ac_ext
10822fi
10823
10824
10825		CFLAGS="$xorg_testset_save_CFLAGS"
10826
10827		eval supported=\$$cacheid
10828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10829printf "%s\n" "$supported" >&6; }
10830		if test "$supported" = "yes" ; then
10831			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10832			found="yes"
10833		fi
10834	fi
10835
10836
10837fi
10838
10839
10840
10841
10842
10843
10844
10845		CWARNFLAGS="$BASE_CFLAGS"
10846		if  test "x$GCC" = xyes ; then
10847		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10848		fi
10849
10850
10851
10852
10853
10854
10855
10856
10857# Check whether --enable-strict-compilation was given.
10858if test ${enable_strict_compilation+y}
10859then :
10860  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10861else $as_nop
10862  STRICT_COMPILE=no
10863fi
10864
10865
10866
10867
10868
10869
10870STRICT_CFLAGS=""
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884xorg_testset_save_CFLAGS="$CFLAGS"
10885
10886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10889printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10890if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10891then :
10892  printf %s "(cached) " >&6
10893else $as_nop
10894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895/* end confdefs.h.  */
10896int i;
10897_ACEOF
10898if ac_fn_c_try_compile "$LINENO"
10899then :
10900  xorg_cv_cc_flag_unknown_warning_option=yes
10901else $as_nop
10902  xorg_cv_cc_flag_unknown_warning_option=no
10903fi
10904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10905fi
10906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10908	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10909	CFLAGS="$xorg_testset_save_CFLAGS"
10910fi
10911
10912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10913	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10914		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10915	fi
10916	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10917	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10919if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10920then :
10921  printf %s "(cached) " >&6
10922else $as_nop
10923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925int i;
10926_ACEOF
10927if ac_fn_c_try_compile "$LINENO"
10928then :
10929  xorg_cv_cc_flag_unused_command_line_argument=yes
10930else $as_nop
10931  xorg_cv_cc_flag_unused_command_line_argument=no
10932fi
10933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10934fi
10935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10936printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10938	CFLAGS="$xorg_testset_save_CFLAGS"
10939fi
10940
10941found="no"
10942
10943	if test $found = "no" ; then
10944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10946		fi
10947
10948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10950		fi
10951
10952		CFLAGS="$CFLAGS -pedantic"
10953
10954		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10955printf %s "checking if $CC supports -pedantic... " >&6; }
10956		cacheid=xorg_cv_cc_flag__pedantic
10957		if eval test \${$cacheid+y}
10958then :
10959  printf %s "(cached) " >&6
10960else $as_nop
10961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962/* end confdefs.h.  */
10963int i;
10964int
10965main (void)
10966{
10967
10968  ;
10969  return 0;
10970}
10971_ACEOF
10972if ac_fn_c_try_link "$LINENO"
10973then :
10974  eval $cacheid=yes
10975else $as_nop
10976  eval $cacheid=no
10977fi
10978rm -f core conftest.err conftest.$ac_objext conftest.beam \
10979    conftest$ac_exeext conftest.$ac_ext
10980fi
10981
10982
10983		CFLAGS="$xorg_testset_save_CFLAGS"
10984
10985		eval supported=\$$cacheid
10986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10987printf "%s\n" "$supported" >&6; }
10988		if test "$supported" = "yes" ; then
10989			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10990			found="yes"
10991		fi
10992	fi
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008xorg_testset_save_CFLAGS="$CFLAGS"
11009
11010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11014if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11015then :
11016  printf %s "(cached) " >&6
11017else $as_nop
11018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h.  */
11020int i;
11021_ACEOF
11022if ac_fn_c_try_compile "$LINENO"
11023then :
11024  xorg_cv_cc_flag_unknown_warning_option=yes
11025else $as_nop
11026  xorg_cv_cc_flag_unknown_warning_option=no
11027fi
11028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11029fi
11030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11031printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11033	CFLAGS="$xorg_testset_save_CFLAGS"
11034fi
11035
11036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11039	fi
11040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11042printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11043if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11044then :
11045  printf %s "(cached) " >&6
11046else $as_nop
11047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048/* end confdefs.h.  */
11049int i;
11050_ACEOF
11051if ac_fn_c_try_compile "$LINENO"
11052then :
11053  xorg_cv_cc_flag_unused_command_line_argument=yes
11054else $as_nop
11055  xorg_cv_cc_flag_unused_command_line_argument=no
11056fi
11057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11058fi
11059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11060printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11062	CFLAGS="$xorg_testset_save_CFLAGS"
11063fi
11064
11065found="no"
11066
11067	if test $found = "no" ; then
11068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070		fi
11071
11072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074		fi
11075
11076		CFLAGS="$CFLAGS -Werror"
11077
11078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11079printf %s "checking if $CC supports -Werror... " >&6; }
11080		cacheid=xorg_cv_cc_flag__Werror
11081		if eval test \${$cacheid+y}
11082then :
11083  printf %s "(cached) " >&6
11084else $as_nop
11085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086/* end confdefs.h.  */
11087int i;
11088int
11089main (void)
11090{
11091
11092  ;
11093  return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"
11097then :
11098  eval $cacheid=yes
11099else $as_nop
11100  eval $cacheid=no
11101fi
11102rm -f core conftest.err conftest.$ac_objext conftest.beam \
11103    conftest$ac_exeext conftest.$ac_ext
11104fi
11105
11106
11107		CFLAGS="$xorg_testset_save_CFLAGS"
11108
11109		eval supported=\$$cacheid
11110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11111printf "%s\n" "$supported" >&6; }
11112		if test "$supported" = "yes" ; then
11113			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11114			found="yes"
11115		fi
11116	fi
11117
11118	if test $found = "no" ; then
11119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11121		fi
11122
11123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11125		fi
11126
11127		CFLAGS="$CFLAGS -errwarn"
11128
11129		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11130printf %s "checking if $CC supports -errwarn... " >&6; }
11131		cacheid=xorg_cv_cc_flag__errwarn
11132		if eval test \${$cacheid+y}
11133then :
11134  printf %s "(cached) " >&6
11135else $as_nop
11136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137/* end confdefs.h.  */
11138int i;
11139int
11140main (void)
11141{
11142
11143  ;
11144  return 0;
11145}
11146_ACEOF
11147if ac_fn_c_try_link "$LINENO"
11148then :
11149  eval $cacheid=yes
11150else $as_nop
11151  eval $cacheid=no
11152fi
11153rm -f core conftest.err conftest.$ac_objext conftest.beam \
11154    conftest$ac_exeext conftest.$ac_ext
11155fi
11156
11157
11158		CFLAGS="$xorg_testset_save_CFLAGS"
11159
11160		eval supported=\$$cacheid
11161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11162printf "%s\n" "$supported" >&6; }
11163		if test "$supported" = "yes" ; then
11164			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11165			found="yes"
11166		fi
11167	fi
11168
11169
11170
11171# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11172# activate it with -Werror, so we add it here explicitly.
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186xorg_testset_save_CFLAGS="$CFLAGS"
11187
11188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11189	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11192if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11193then :
11194  printf %s "(cached) " >&6
11195else $as_nop
11196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197/* end confdefs.h.  */
11198int i;
11199_ACEOF
11200if ac_fn_c_try_compile "$LINENO"
11201then :
11202  xorg_cv_cc_flag_unknown_warning_option=yes
11203else $as_nop
11204  xorg_cv_cc_flag_unknown_warning_option=no
11205fi
11206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11207fi
11208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11211	CFLAGS="$xorg_testset_save_CFLAGS"
11212fi
11213
11214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11217	fi
11218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11221if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11222then :
11223  printf %s "(cached) " >&6
11224else $as_nop
11225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226/* end confdefs.h.  */
11227int i;
11228_ACEOF
11229if ac_fn_c_try_compile "$LINENO"
11230then :
11231  xorg_cv_cc_flag_unused_command_line_argument=yes
11232else $as_nop
11233  xorg_cv_cc_flag_unused_command_line_argument=no
11234fi
11235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11236fi
11237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11240	CFLAGS="$xorg_testset_save_CFLAGS"
11241fi
11242
11243found="no"
11244
11245	if test $found = "no" ; then
11246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11248		fi
11249
11250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11252		fi
11253
11254		CFLAGS="$CFLAGS -Werror=attributes"
11255
11256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11257printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11258		cacheid=xorg_cv_cc_flag__Werror_attributes
11259		if eval test \${$cacheid+y}
11260then :
11261  printf %s "(cached) " >&6
11262else $as_nop
11263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264/* end confdefs.h.  */
11265int i;
11266int
11267main (void)
11268{
11269
11270  ;
11271  return 0;
11272}
11273_ACEOF
11274if ac_fn_c_try_link "$LINENO"
11275then :
11276  eval $cacheid=yes
11277else $as_nop
11278  eval $cacheid=no
11279fi
11280rm -f core conftest.err conftest.$ac_objext conftest.beam \
11281    conftest$ac_exeext conftest.$ac_ext
11282fi
11283
11284
11285		CFLAGS="$xorg_testset_save_CFLAGS"
11286
11287		eval supported=\$$cacheid
11288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11289printf "%s\n" "$supported" >&6; }
11290		if test "$supported" = "yes" ; then
11291			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11292			found="yes"
11293		fi
11294	fi
11295
11296
11297
11298if test "x$STRICT_COMPILE" = "xyes"; then
11299    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11300    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11301fi
11302
11303
11304
11305
11306
11307
11308
11309
11310cat >>confdefs.h <<_ACEOF
11311#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11312_ACEOF
11313
11314	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11315	if test "x$PVM" = "x"; then
11316		PVM="0"
11317	fi
11318
11319printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11320
11321	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11322	if test "x$PVP" = "x"; then
11323		PVP="0"
11324	fi
11325
11326printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11327
11328
11329
11330CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11331mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11332|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11333touch \$(top_srcdir)/ChangeLog; \
11334echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11335
11336
11337
11338
11339macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11340INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11341mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11342|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11343touch \$(top_srcdir)/INSTALL; \
11344echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11345
11346
11347
11348
11349
11350
11351case $host_os in
11352    solaris*)
11353        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11354        # check for a man page file found in later versions that use
11355        # traditional section numbers instead
11356        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11357printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11358if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11359then :
11360  printf %s "(cached) " >&6
11361else $as_nop
11362  test "$cross_compiling" = yes &&
11363  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11364if test -r "/usr/share/man/man7/attributes.7"; then
11365  ac_cv_file__usr_share_man_man7_attributes_7=yes
11366else
11367  ac_cv_file__usr_share_man_man7_attributes_7=no
11368fi
11369fi
11370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11371printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11372if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11373then :
11374  SYSV_MAN_SECTIONS=false
11375else $as_nop
11376  SYSV_MAN_SECTIONS=true
11377fi
11378
11379        ;;
11380    *) SYSV_MAN_SECTIONS=false ;;
11381esac
11382
11383if test x$APP_MAN_SUFFIX = x    ; then
11384    APP_MAN_SUFFIX=1
11385fi
11386if test x$APP_MAN_DIR = x    ; then
11387    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11388fi
11389
11390if test x$LIB_MAN_SUFFIX = x    ; then
11391    LIB_MAN_SUFFIX=3
11392fi
11393if test x$LIB_MAN_DIR = x    ; then
11394    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11395fi
11396
11397if test x$FILE_MAN_SUFFIX = x    ; then
11398    case $SYSV_MAN_SECTIONS in
11399	true)				FILE_MAN_SUFFIX=4  ;;
11400	*)				FILE_MAN_SUFFIX=5  ;;
11401    esac
11402fi
11403if test x$FILE_MAN_DIR = x    ; then
11404    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11405fi
11406
11407if test x$MISC_MAN_SUFFIX = x    ; then
11408    case $SYSV_MAN_SECTIONS in
11409	true)				MISC_MAN_SUFFIX=5  ;;
11410	*)				MISC_MAN_SUFFIX=7  ;;
11411    esac
11412fi
11413if test x$MISC_MAN_DIR = x    ; then
11414    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11415fi
11416
11417if test x$DRIVER_MAN_SUFFIX = x    ; then
11418    case $SYSV_MAN_SECTIONS in
11419	true)				DRIVER_MAN_SUFFIX=7  ;;
11420	*)				DRIVER_MAN_SUFFIX=4  ;;
11421    esac
11422fi
11423if test x$DRIVER_MAN_DIR = x    ; then
11424    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11425fi
11426
11427if test x$ADMIN_MAN_SUFFIX = x    ; then
11428    case $SYSV_MAN_SECTIONS in
11429	true)				ADMIN_MAN_SUFFIX=1m ;;
11430	*)				ADMIN_MAN_SUFFIX=8  ;;
11431    esac
11432fi
11433if test x$ADMIN_MAN_DIR = x    ; then
11434    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11435fi
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451XORG_MAN_PAGE="X Version 11"
11452
11453MAN_SUBSTS="\
11454	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11455	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11456	-e 's|__xservername__|Xorg|g' \
11457	-e 's|__xconfigfile__|xorg.conf|g' \
11458	-e 's|__projectroot__|\$(prefix)|g' \
11459	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11460	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11461	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11462	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11463	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11464	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11465	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11466
11467
11468
11469# Check whether --enable-silent-rules was given.
11470if test ${enable_silent_rules+y}
11471then :
11472  enableval=$enable_silent_rules;
11473fi
11474
11475case $enable_silent_rules in # (((
11476  yes) AM_DEFAULT_VERBOSITY=0;;
11477   no) AM_DEFAULT_VERBOSITY=1;;
11478    *) AM_DEFAULT_VERBOSITY=0;;
11479esac
11480am_make=${MAKE-make}
11481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11482printf %s "checking whether $am_make supports nested variables... " >&6; }
11483if test ${am_cv_make_support_nested_variables+y}
11484then :
11485  printf %s "(cached) " >&6
11486else $as_nop
11487  if printf "%s\n" 'TRUE=$(BAR$(V))
11488BAR0=false
11489BAR1=true
11490V=1
11491am__doit:
11492	@$(TRUE)
11493.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11494  am_cv_make_support_nested_variables=yes
11495else
11496  am_cv_make_support_nested_variables=no
11497fi
11498fi
11499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11500printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11501if test $am_cv_make_support_nested_variables = yes; then
11502    AM_V='$(V)'
11503  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11504else
11505  AM_V=$AM_DEFAULT_VERBOSITY
11506  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11507fi
11508AM_BACKSLASH='\'
11509
11510
11511
11512
11513# Initialize libtool
11514# Check whether --enable-static was given.
11515if test ${enable_static+y}
11516then :
11517  enableval=$enable_static; p=${PACKAGE-default}
11518    case $enableval in
11519    yes) enable_static=yes ;;
11520    no) enable_static=no ;;
11521    *)
11522     enable_static=no
11523      # Look at the argument we got.  We use all the common list separators.
11524      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11525      for pkg in $enableval; do
11526	IFS=$lt_save_ifs
11527	if test "X$pkg" = "X$p"; then
11528	  enable_static=yes
11529	fi
11530      done
11531      IFS=$lt_save_ifs
11532      ;;
11533    esac
11534else $as_nop
11535  enable_static=no
11536fi
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546case `pwd` in
11547  *\ * | *\	*)
11548    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11549printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11550esac
11551
11552
11553
11554macro_version='2.4.7'
11555macro_revision='2.4.7'
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570ltmain=$ac_aux_dir/ltmain.sh
11571
11572# Backslashify metacharacters that are still active within
11573# double-quoted strings.
11574sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11575
11576# Same as above, but do not quote variable references.
11577double_quote_subst='s/\(["`\\]\)/\\\1/g'
11578
11579# Sed substitution to delay expansion of an escaped shell variable in a
11580# double_quote_subst'ed string.
11581delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11582
11583# Sed substitution to delay expansion of an escaped single quote.
11584delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11585
11586# Sed substitution to avoid accidental globbing in evaled expressions
11587no_glob_subst='s/\*/\\\*/g'
11588
11589ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11590ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11591ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11592
11593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11594printf %s "checking how to print strings... " >&6; }
11595# Test print first, because it will be a builtin if present.
11596if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11597   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11598  ECHO='print -r --'
11599elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11600  ECHO='printf %s\n'
11601else
11602  # Use this function as a fallback that always works.
11603  func_fallback_echo ()
11604  {
11605    eval 'cat <<_LTECHO_EOF
11606$1
11607_LTECHO_EOF'
11608  }
11609  ECHO='func_fallback_echo'
11610fi
11611
11612# func_echo_all arg...
11613# Invoke $ECHO with all args, space-separated.
11614func_echo_all ()
11615{
11616    $ECHO ""
11617}
11618
11619case $ECHO in
11620  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11621printf "%s\n" "printf" >&6; } ;;
11622  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11623printf "%s\n" "print -r" >&6; } ;;
11624  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11625printf "%s\n" "cat" >&6; } ;;
11626esac
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11642printf %s "checking for a sed that does not truncate output... " >&6; }
11643if test ${ac_cv_path_SED+y}
11644then :
11645  printf %s "(cached) " >&6
11646else $as_nop
11647            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11648     for ac_i in 1 2 3 4 5 6 7; do
11649       ac_script="$ac_script$as_nl$ac_script"
11650     done
11651     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11652     { ac_script=; unset ac_script;}
11653     if test -z "$SED"; then
11654  ac_path_SED_found=false
11655  # Loop through the user's path and test for each of PROGNAME-LIST
11656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659  IFS=$as_save_IFS
11660  case $as_dir in #(((
11661    '') as_dir=./ ;;
11662    */) ;;
11663    *) as_dir=$as_dir/ ;;
11664  esac
11665    for ac_prog in sed gsed
11666   do
11667    for ac_exec_ext in '' $ac_executable_extensions; do
11668      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11669      as_fn_executable_p "$ac_path_SED" || continue
11670# Check for GNU ac_path_SED and select it if it is found.
11671  # Check for GNU $ac_path_SED
11672case `"$ac_path_SED" --version 2>&1` in
11673*GNU*)
11674  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11675*)
11676  ac_count=0
11677  printf %s 0123456789 >"conftest.in"
11678  while :
11679  do
11680    cat "conftest.in" "conftest.in" >"conftest.tmp"
11681    mv "conftest.tmp" "conftest.in"
11682    cp "conftest.in" "conftest.nl"
11683    printf "%s\n" '' >> "conftest.nl"
11684    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11685    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11686    as_fn_arith $ac_count + 1 && ac_count=$as_val
11687    if test $ac_count -gt ${ac_path_SED_max-0}; then
11688      # Best one so far, save it but keep looking for a better one
11689      ac_cv_path_SED="$ac_path_SED"
11690      ac_path_SED_max=$ac_count
11691    fi
11692    # 10*(2^10) chars as input seems more than enough
11693    test $ac_count -gt 10 && break
11694  done
11695  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11696esac
11697
11698      $ac_path_SED_found && break 3
11699    done
11700  done
11701  done
11702IFS=$as_save_IFS
11703  if test -z "$ac_cv_path_SED"; then
11704    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11705  fi
11706else
11707  ac_cv_path_SED=$SED
11708fi
11709
11710fi
11711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11712printf "%s\n" "$ac_cv_path_SED" >&6; }
11713 SED="$ac_cv_path_SED"
11714  rm -f conftest.sed
11715
11716test -z "$SED" && SED=sed
11717Xsed="$SED -e 1s/^X//"
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11730printf %s "checking for grep that handles long lines and -e... " >&6; }
11731if test ${ac_cv_path_GREP+y}
11732then :
11733  printf %s "(cached) " >&6
11734else $as_nop
11735  if test -z "$GREP"; then
11736  ac_path_GREP_found=false
11737  # Loop through the user's path and test for each of PROGNAME-LIST
11738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11740do
11741  IFS=$as_save_IFS
11742  case $as_dir in #(((
11743    '') as_dir=./ ;;
11744    */) ;;
11745    *) as_dir=$as_dir/ ;;
11746  esac
11747    for ac_prog in grep ggrep
11748   do
11749    for ac_exec_ext in '' $ac_executable_extensions; do
11750      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11751      as_fn_executable_p "$ac_path_GREP" || continue
11752# Check for GNU ac_path_GREP and select it if it is found.
11753  # Check for GNU $ac_path_GREP
11754case `"$ac_path_GREP" --version 2>&1` in
11755*GNU*)
11756  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11757*)
11758  ac_count=0
11759  printf %s 0123456789 >"conftest.in"
11760  while :
11761  do
11762    cat "conftest.in" "conftest.in" >"conftest.tmp"
11763    mv "conftest.tmp" "conftest.in"
11764    cp "conftest.in" "conftest.nl"
11765    printf "%s\n" 'GREP' >> "conftest.nl"
11766    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11767    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11768    as_fn_arith $ac_count + 1 && ac_count=$as_val
11769    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11770      # Best one so far, save it but keep looking for a better one
11771      ac_cv_path_GREP="$ac_path_GREP"
11772      ac_path_GREP_max=$ac_count
11773    fi
11774    # 10*(2^10) chars as input seems more than enough
11775    test $ac_count -gt 10 && break
11776  done
11777  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11778esac
11779
11780      $ac_path_GREP_found && break 3
11781    done
11782  done
11783  done
11784IFS=$as_save_IFS
11785  if test -z "$ac_cv_path_GREP"; then
11786    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11787  fi
11788else
11789  ac_cv_path_GREP=$GREP
11790fi
11791
11792fi
11793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11794printf "%s\n" "$ac_cv_path_GREP" >&6; }
11795 GREP="$ac_cv_path_GREP"
11796
11797
11798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11799printf %s "checking for egrep... " >&6; }
11800if test ${ac_cv_path_EGREP+y}
11801then :
11802  printf %s "(cached) " >&6
11803else $as_nop
11804  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11805   then ac_cv_path_EGREP="$GREP -E"
11806   else
11807     if test -z "$EGREP"; then
11808  ac_path_EGREP_found=false
11809  # Loop through the user's path and test for each of PROGNAME-LIST
11810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11812do
11813  IFS=$as_save_IFS
11814  case $as_dir in #(((
11815    '') as_dir=./ ;;
11816    */) ;;
11817    *) as_dir=$as_dir/ ;;
11818  esac
11819    for ac_prog in egrep
11820   do
11821    for ac_exec_ext in '' $ac_executable_extensions; do
11822      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11823      as_fn_executable_p "$ac_path_EGREP" || continue
11824# Check for GNU ac_path_EGREP and select it if it is found.
11825  # Check for GNU $ac_path_EGREP
11826case `"$ac_path_EGREP" --version 2>&1` in
11827*GNU*)
11828  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11829*)
11830  ac_count=0
11831  printf %s 0123456789 >"conftest.in"
11832  while :
11833  do
11834    cat "conftest.in" "conftest.in" >"conftest.tmp"
11835    mv "conftest.tmp" "conftest.in"
11836    cp "conftest.in" "conftest.nl"
11837    printf "%s\n" 'EGREP' >> "conftest.nl"
11838    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11839    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11840    as_fn_arith $ac_count + 1 && ac_count=$as_val
11841    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11842      # Best one so far, save it but keep looking for a better one
11843      ac_cv_path_EGREP="$ac_path_EGREP"
11844      ac_path_EGREP_max=$ac_count
11845    fi
11846    # 10*(2^10) chars as input seems more than enough
11847    test $ac_count -gt 10 && break
11848  done
11849  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11850esac
11851
11852      $ac_path_EGREP_found && break 3
11853    done
11854  done
11855  done
11856IFS=$as_save_IFS
11857  if test -z "$ac_cv_path_EGREP"; then
11858    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11859  fi
11860else
11861  ac_cv_path_EGREP=$EGREP
11862fi
11863
11864   fi
11865fi
11866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11867printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11868 EGREP="$ac_cv_path_EGREP"
11869
11870
11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11872printf %s "checking for fgrep... " >&6; }
11873if test ${ac_cv_path_FGREP+y}
11874then :
11875  printf %s "(cached) " >&6
11876else $as_nop
11877  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11878   then ac_cv_path_FGREP="$GREP -F"
11879   else
11880     if test -z "$FGREP"; then
11881  ac_path_FGREP_found=false
11882  # Loop through the user's path and test for each of PROGNAME-LIST
11883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11885do
11886  IFS=$as_save_IFS
11887  case $as_dir in #(((
11888    '') as_dir=./ ;;
11889    */) ;;
11890    *) as_dir=$as_dir/ ;;
11891  esac
11892    for ac_prog in fgrep
11893   do
11894    for ac_exec_ext in '' $ac_executable_extensions; do
11895      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11896      as_fn_executable_p "$ac_path_FGREP" || continue
11897# Check for GNU ac_path_FGREP and select it if it is found.
11898  # Check for GNU $ac_path_FGREP
11899case `"$ac_path_FGREP" --version 2>&1` in
11900*GNU*)
11901  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11902*)
11903  ac_count=0
11904  printf %s 0123456789 >"conftest.in"
11905  while :
11906  do
11907    cat "conftest.in" "conftest.in" >"conftest.tmp"
11908    mv "conftest.tmp" "conftest.in"
11909    cp "conftest.in" "conftest.nl"
11910    printf "%s\n" 'FGREP' >> "conftest.nl"
11911    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11912    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11913    as_fn_arith $ac_count + 1 && ac_count=$as_val
11914    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11915      # Best one so far, save it but keep looking for a better one
11916      ac_cv_path_FGREP="$ac_path_FGREP"
11917      ac_path_FGREP_max=$ac_count
11918    fi
11919    # 10*(2^10) chars as input seems more than enough
11920    test $ac_count -gt 10 && break
11921  done
11922  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11923esac
11924
11925      $ac_path_FGREP_found && break 3
11926    done
11927  done
11928  done
11929IFS=$as_save_IFS
11930  if test -z "$ac_cv_path_FGREP"; then
11931    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11932  fi
11933else
11934  ac_cv_path_FGREP=$FGREP
11935fi
11936
11937   fi
11938fi
11939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11940printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11941 FGREP="$ac_cv_path_FGREP"
11942
11943
11944test -z "$GREP" && GREP=grep
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964# Check whether --with-gnu-ld was given.
11965if test ${with_gnu_ld+y}
11966then :
11967  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11968else $as_nop
11969  with_gnu_ld=no
11970fi
11971
11972ac_prog=ld
11973if test yes = "$GCC"; then
11974  # Check if gcc -print-prog-name=ld gives a path.
11975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11976printf %s "checking for ld used by $CC... " >&6; }
11977  case $host in
11978  *-*-mingw*)
11979    # gcc leaves a trailing carriage return, which upsets mingw
11980    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11981  *)
11982    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11983  esac
11984  case $ac_prog in
11985    # Accept absolute paths.
11986    [\\/]* | ?:[\\/]*)
11987      re_direlt='/[^/][^/]*/\.\./'
11988      # Canonicalize the pathname of ld
11989      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11990      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11991	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11992      done
11993      test -z "$LD" && LD=$ac_prog
11994      ;;
11995  "")
11996    # If it fails, then pretend we aren't using GCC.
11997    ac_prog=ld
11998    ;;
11999  *)
12000    # If it is relative, then search for the first ld in PATH.
12001    with_gnu_ld=unknown
12002    ;;
12003  esac
12004elif test yes = "$with_gnu_ld"; then
12005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12006printf %s "checking for GNU ld... " >&6; }
12007else
12008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12009printf %s "checking for non-GNU ld... " >&6; }
12010fi
12011if test ${lt_cv_path_LD+y}
12012then :
12013  printf %s "(cached) " >&6
12014else $as_nop
12015  if test -z "$LD"; then
12016  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12017  for ac_dir in $PATH; do
12018    IFS=$lt_save_ifs
12019    test -z "$ac_dir" && ac_dir=.
12020    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12021      lt_cv_path_LD=$ac_dir/$ac_prog
12022      # Check to see if the program is GNU ld.  I'd rather use --version,
12023      # but apparently some variants of GNU ld only accept -v.
12024      # Break only if it was the GNU/non-GNU ld that we prefer.
12025      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12026      *GNU* | *'with BFD'*)
12027	test no != "$with_gnu_ld" && break
12028	;;
12029      *)
12030	test yes != "$with_gnu_ld" && break
12031	;;
12032      esac
12033    fi
12034  done
12035  IFS=$lt_save_ifs
12036else
12037  lt_cv_path_LD=$LD # Let the user override the test with a path.
12038fi
12039fi
12040
12041LD=$lt_cv_path_LD
12042if test -n "$LD"; then
12043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12044printf "%s\n" "$LD" >&6; }
12045else
12046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047printf "%s\n" "no" >&6; }
12048fi
12049test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12051printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12052if test ${lt_cv_prog_gnu_ld+y}
12053then :
12054  printf %s "(cached) " >&6
12055else $as_nop
12056  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12057case `$LD -v 2>&1 </dev/null` in
12058*GNU* | *'with BFD'*)
12059  lt_cv_prog_gnu_ld=yes
12060  ;;
12061*)
12062  lt_cv_prog_gnu_ld=no
12063  ;;
12064esac
12065fi
12066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12067printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12068with_gnu_ld=$lt_cv_prog_gnu_ld
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12079printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12080if test ${lt_cv_path_NM+y}
12081then :
12082  printf %s "(cached) " >&6
12083else $as_nop
12084  if test -n "$NM"; then
12085  # Let the user override the test.
12086  lt_cv_path_NM=$NM
12087else
12088  lt_nm_to_check=${ac_tool_prefix}nm
12089  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12090    lt_nm_to_check="$lt_nm_to_check nm"
12091  fi
12092  for lt_tmp_nm in $lt_nm_to_check; do
12093    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12094    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12095      IFS=$lt_save_ifs
12096      test -z "$ac_dir" && ac_dir=.
12097      tmp_nm=$ac_dir/$lt_tmp_nm
12098      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12099	# Check to see if the nm accepts a BSD-compat flag.
12100	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12101	#   nm: unknown option "B" ignored
12102	# Tru64's nm complains that /dev/null is an invalid object file
12103	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12104	case $build_os in
12105	mingw*) lt_bad_file=conftest.nm/nofile ;;
12106	*) lt_bad_file=/dev/null ;;
12107	esac
12108	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12109	*$lt_bad_file* | *'Invalid file or object type'*)
12110	  lt_cv_path_NM="$tmp_nm -B"
12111	  break 2
12112	  ;;
12113	*)
12114	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12115	  */dev/null*)
12116	    lt_cv_path_NM="$tmp_nm -p"
12117	    break 2
12118	    ;;
12119	  *)
12120	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12121	    continue # so that we can try to find one that supports BSD flags
12122	    ;;
12123	  esac
12124	  ;;
12125	esac
12126      fi
12127    done
12128    IFS=$lt_save_ifs
12129  done
12130  : ${lt_cv_path_NM=no}
12131fi
12132fi
12133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12134printf "%s\n" "$lt_cv_path_NM" >&6; }
12135if test no != "$lt_cv_path_NM"; then
12136  NM=$lt_cv_path_NM
12137else
12138  # Didn't find any BSD compatible name lister, look for dumpbin.
12139  if test -n "$DUMPBIN"; then :
12140    # Let the user override the test.
12141  else
12142    if test -n "$ac_tool_prefix"; then
12143  for ac_prog in dumpbin "link -dump"
12144  do
12145    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148printf %s "checking for $ac_word... " >&6; }
12149if test ${ac_cv_prog_DUMPBIN+y}
12150then :
12151  printf %s "(cached) " >&6
12152else $as_nop
12153  if test -n "$DUMPBIN"; then
12154  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12155else
12156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157for as_dir in $PATH
12158do
12159  IFS=$as_save_IFS
12160  case $as_dir in #(((
12161    '') as_dir=./ ;;
12162    */) ;;
12163    *) as_dir=$as_dir/ ;;
12164  esac
12165    for ac_exec_ext in '' $ac_executable_extensions; do
12166  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12167    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12168    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12169    break 2
12170  fi
12171done
12172  done
12173IFS=$as_save_IFS
12174
12175fi
12176fi
12177DUMPBIN=$ac_cv_prog_DUMPBIN
12178if test -n "$DUMPBIN"; then
12179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12180printf "%s\n" "$DUMPBIN" >&6; }
12181else
12182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183printf "%s\n" "no" >&6; }
12184fi
12185
12186
12187    test -n "$DUMPBIN" && break
12188  done
12189fi
12190if test -z "$DUMPBIN"; then
12191  ac_ct_DUMPBIN=$DUMPBIN
12192  for ac_prog in dumpbin "link -dump"
12193do
12194  # Extract the first word of "$ac_prog", so it can be a program name with args.
12195set dummy $ac_prog; ac_word=$2
12196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197printf %s "checking for $ac_word... " >&6; }
12198if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12199then :
12200  printf %s "(cached) " >&6
12201else $as_nop
12202  if test -n "$ac_ct_DUMPBIN"; then
12203  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12204else
12205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206for as_dir in $PATH
12207do
12208  IFS=$as_save_IFS
12209  case $as_dir in #(((
12210    '') as_dir=./ ;;
12211    */) ;;
12212    *) as_dir=$as_dir/ ;;
12213  esac
12214    for ac_exec_ext in '' $ac_executable_extensions; do
12215  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12216    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12217    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12218    break 2
12219  fi
12220done
12221  done
12222IFS=$as_save_IFS
12223
12224fi
12225fi
12226ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12227if test -n "$ac_ct_DUMPBIN"; then
12228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12229printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12230else
12231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232printf "%s\n" "no" >&6; }
12233fi
12234
12235
12236  test -n "$ac_ct_DUMPBIN" && break
12237done
12238
12239  if test "x$ac_ct_DUMPBIN" = x; then
12240    DUMPBIN=":"
12241  else
12242    case $cross_compiling:$ac_tool_warned in
12243yes:)
12244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12245printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12246ac_tool_warned=yes ;;
12247esac
12248    DUMPBIN=$ac_ct_DUMPBIN
12249  fi
12250fi
12251
12252    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12253    *COFF*)
12254      DUMPBIN="$DUMPBIN -symbols -headers"
12255      ;;
12256    *)
12257      DUMPBIN=:
12258      ;;
12259    esac
12260  fi
12261
12262  if test : != "$DUMPBIN"; then
12263    NM=$DUMPBIN
12264  fi
12265fi
12266test -z "$NM" && NM=nm
12267
12268
12269
12270
12271
12272
12273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12274printf %s "checking the name lister ($NM) interface... " >&6; }
12275if test ${lt_cv_nm_interface+y}
12276then :
12277  printf %s "(cached) " >&6
12278else $as_nop
12279  lt_cv_nm_interface="BSD nm"
12280  echo "int some_variable = 0;" > conftest.$ac_ext
12281  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12282  (eval "$ac_compile" 2>conftest.err)
12283  cat conftest.err >&5
12284  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12285  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12286  cat conftest.err >&5
12287  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12288  cat conftest.out >&5
12289  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12290    lt_cv_nm_interface="MS dumpbin"
12291  fi
12292  rm -f conftest*
12293fi
12294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12295printf "%s\n" "$lt_cv_nm_interface" >&6; }
12296
12297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12298printf %s "checking whether ln -s works... " >&6; }
12299LN_S=$as_ln_s
12300if test "$LN_S" = "ln -s"; then
12301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302printf "%s\n" "yes" >&6; }
12303else
12304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12305printf "%s\n" "no, using $LN_S" >&6; }
12306fi
12307
12308# find the maximum length of command line arguments
12309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12310printf %s "checking the maximum length of command line arguments... " >&6; }
12311if test ${lt_cv_sys_max_cmd_len+y}
12312then :
12313  printf %s "(cached) " >&6
12314else $as_nop
12315    i=0
12316  teststring=ABCD
12317
12318  case $build_os in
12319  msdosdjgpp*)
12320    # On DJGPP, this test can blow up pretty badly due to problems in libc
12321    # (any single argument exceeding 2000 bytes causes a buffer overrun
12322    # during glob expansion).  Even if it were fixed, the result of this
12323    # check would be larger than it should be.
12324    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12325    ;;
12326
12327  gnu*)
12328    # Under GNU Hurd, this test is not required because there is
12329    # no limit to the length of command line arguments.
12330    # Libtool will interpret -1 as no limit whatsoever
12331    lt_cv_sys_max_cmd_len=-1;
12332    ;;
12333
12334  cygwin* | mingw* | cegcc*)
12335    # On Win9x/ME, this test blows up -- it succeeds, but takes
12336    # about 5 minutes as the teststring grows exponentially.
12337    # Worse, since 9x/ME are not pre-emptively multitasking,
12338    # you end up with a "frozen" computer, even though with patience
12339    # the test eventually succeeds (with a max line length of 256k).
12340    # Instead, let's just punt: use the minimum linelength reported by
12341    # all of the supported platforms: 8192 (on NT/2K/XP).
12342    lt_cv_sys_max_cmd_len=8192;
12343    ;;
12344
12345  mint*)
12346    # On MiNT this can take a long time and run out of memory.
12347    lt_cv_sys_max_cmd_len=8192;
12348    ;;
12349
12350  mint*)
12351    # On MiNT this can take a long time and run out of memory.
12352    lt_cv_sys_max_cmd_len=8192;
12353    ;;
12354
12355  amigaos*)
12356    # On AmigaOS with pdksh, this test takes hours, literally.
12357    # So we just punt and use a minimum line length of 8192.
12358    lt_cv_sys_max_cmd_len=8192;
12359    ;;
12360
12361  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12362    # This has been around since 386BSD, at least.  Likely further.
12363    if test -x /sbin/sysctl; then
12364      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12365    elif test -x /usr/sbin/sysctl; then
12366      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12367    else
12368      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12369    fi
12370    # And add a safety zone
12371    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12372    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12373    ;;
12374
12375  interix*)
12376    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12377    lt_cv_sys_max_cmd_len=196608
12378    ;;
12379
12380  os2*)
12381    # The test takes a long time on OS/2.
12382    lt_cv_sys_max_cmd_len=8192
12383    ;;
12384
12385  osf*)
12386    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12387    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12388    # nice to cause kernel panics so lets avoid the loop below.
12389    # First set a reasonable default.
12390    lt_cv_sys_max_cmd_len=16384
12391    #
12392    if test -x /sbin/sysconfig; then
12393      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12394        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12395      esac
12396    fi
12397    ;;
12398  sco3.2v5*)
12399    lt_cv_sys_max_cmd_len=102400
12400    ;;
12401  sysv5* | sco5v6* | sysv4.2uw2*)
12402    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12403    if test -n "$kargmax"; then
12404      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12405    else
12406      lt_cv_sys_max_cmd_len=32768
12407    fi
12408    ;;
12409  *)
12410    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12411    if test -n "$lt_cv_sys_max_cmd_len" && \
12412       test undefined != "$lt_cv_sys_max_cmd_len"; then
12413      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12414      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12415    else
12416      # Make teststring a little bigger before we do anything with it.
12417      # a 1K string should be a reasonable start.
12418      for i in 1 2 3 4 5 6 7 8; do
12419        teststring=$teststring$teststring
12420      done
12421      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12422      # If test is not a shell built-in, we'll probably end up computing a
12423      # maximum length that is only half of the actual maximum length, but
12424      # we can't tell.
12425      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12426	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12427	      test 17 != "$i" # 1/2 MB should be enough
12428      do
12429        i=`expr $i + 1`
12430        teststring=$teststring$teststring
12431      done
12432      # Only check the string length outside the loop.
12433      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12434      teststring=
12435      # Add a significant safety factor because C++ compilers can tack on
12436      # massive amounts of additional arguments before passing them to the
12437      # linker.  It appears as though 1/2 is a usable value.
12438      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12439    fi
12440    ;;
12441  esac
12442
12443fi
12444
12445if test -n "$lt_cv_sys_max_cmd_len"; then
12446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12447printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12448else
12449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12450printf "%s\n" "none" >&6; }
12451fi
12452max_cmd_len=$lt_cv_sys_max_cmd_len
12453
12454
12455
12456
12457
12458
12459: ${CP="cp -f"}
12460: ${MV="mv -f"}
12461: ${RM="rm -f"}
12462
12463if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12464  lt_unset=unset
12465else
12466  lt_unset=false
12467fi
12468
12469
12470
12471
12472
12473# test EBCDIC or ASCII
12474case `echo X|tr X '\101'` in
12475 A) # ASCII based system
12476    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12477  lt_SP2NL='tr \040 \012'
12478  lt_NL2SP='tr \015\012 \040\040'
12479  ;;
12480 *) # EBCDIC based system
12481  lt_SP2NL='tr \100 \n'
12482  lt_NL2SP='tr \r\n \100\100'
12483  ;;
12484esac
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12495printf %s "checking how to convert $build file names to $host format... " >&6; }
12496if test ${lt_cv_to_host_file_cmd+y}
12497then :
12498  printf %s "(cached) " >&6
12499else $as_nop
12500  case $host in
12501  *-*-mingw* )
12502    case $build in
12503      *-*-mingw* ) # actually msys
12504        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12505        ;;
12506      *-*-cygwin* )
12507        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12508        ;;
12509      * ) # otherwise, assume *nix
12510        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12511        ;;
12512    esac
12513    ;;
12514  *-*-cygwin* )
12515    case $build in
12516      *-*-mingw* ) # actually msys
12517        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12518        ;;
12519      *-*-cygwin* )
12520        lt_cv_to_host_file_cmd=func_convert_file_noop
12521        ;;
12522      * ) # otherwise, assume *nix
12523        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12524        ;;
12525    esac
12526    ;;
12527  * ) # unhandled hosts (and "normal" native builds)
12528    lt_cv_to_host_file_cmd=func_convert_file_noop
12529    ;;
12530esac
12531
12532fi
12533
12534to_host_file_cmd=$lt_cv_to_host_file_cmd
12535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12536printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12537
12538
12539
12540
12541
12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12543printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12544if test ${lt_cv_to_tool_file_cmd+y}
12545then :
12546  printf %s "(cached) " >&6
12547else $as_nop
12548  #assume ordinary cross tools, or native build.
12549lt_cv_to_tool_file_cmd=func_convert_file_noop
12550case $host in
12551  *-*-mingw* )
12552    case $build in
12553      *-*-mingw* ) # actually msys
12554        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12555        ;;
12556    esac
12557    ;;
12558esac
12559
12560fi
12561
12562to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12564printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12565
12566
12567
12568
12569
12570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12571printf %s "checking for $LD option to reload object files... " >&6; }
12572if test ${lt_cv_ld_reload_flag+y}
12573then :
12574  printf %s "(cached) " >&6
12575else $as_nop
12576  lt_cv_ld_reload_flag='-r'
12577fi
12578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12579printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12580reload_flag=$lt_cv_ld_reload_flag
12581case $reload_flag in
12582"" | " "*) ;;
12583*) reload_flag=" $reload_flag" ;;
12584esac
12585reload_cmds='$LD$reload_flag -o $output$reload_objs'
12586case $host_os in
12587  cygwin* | mingw* | pw32* | cegcc*)
12588    if test yes != "$GCC"; then
12589      reload_cmds=false
12590    fi
12591    ;;
12592  darwin*)
12593    if test yes = "$GCC"; then
12594      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12595    else
12596      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12597    fi
12598    ;;
12599esac
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609if test -n "$ac_tool_prefix"; then
12610  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12611set dummy ${ac_tool_prefix}file; ac_word=$2
12612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613printf %s "checking for $ac_word... " >&6; }
12614if test ${ac_cv_prog_FILECMD+y}
12615then :
12616  printf %s "(cached) " >&6
12617else $as_nop
12618  if test -n "$FILECMD"; then
12619  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12620else
12621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622for as_dir in $PATH
12623do
12624  IFS=$as_save_IFS
12625  case $as_dir in #(((
12626    '') as_dir=./ ;;
12627    */) ;;
12628    *) as_dir=$as_dir/ ;;
12629  esac
12630    for ac_exec_ext in '' $ac_executable_extensions; do
12631  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12632    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12633    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12634    break 2
12635  fi
12636done
12637  done
12638IFS=$as_save_IFS
12639
12640fi
12641fi
12642FILECMD=$ac_cv_prog_FILECMD
12643if test -n "$FILECMD"; then
12644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12645printf "%s\n" "$FILECMD" >&6; }
12646else
12647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648printf "%s\n" "no" >&6; }
12649fi
12650
12651
12652fi
12653if test -z "$ac_cv_prog_FILECMD"; then
12654  ac_ct_FILECMD=$FILECMD
12655  # Extract the first word of "file", so it can be a program name with args.
12656set dummy file; ac_word=$2
12657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12658printf %s "checking for $ac_word... " >&6; }
12659if test ${ac_cv_prog_ac_ct_FILECMD+y}
12660then :
12661  printf %s "(cached) " >&6
12662else $as_nop
12663  if test -n "$ac_ct_FILECMD"; then
12664  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12665else
12666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $PATH
12668do
12669  IFS=$as_save_IFS
12670  case $as_dir in #(((
12671    '') as_dir=./ ;;
12672    */) ;;
12673    *) as_dir=$as_dir/ ;;
12674  esac
12675    for ac_exec_ext in '' $ac_executable_extensions; do
12676  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12677    ac_cv_prog_ac_ct_FILECMD="file"
12678    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12679    break 2
12680  fi
12681done
12682  done
12683IFS=$as_save_IFS
12684
12685fi
12686fi
12687ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12688if test -n "$ac_ct_FILECMD"; then
12689  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12690printf "%s\n" "$ac_ct_FILECMD" >&6; }
12691else
12692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693printf "%s\n" "no" >&6; }
12694fi
12695
12696  if test "x$ac_ct_FILECMD" = x; then
12697    FILECMD=":"
12698  else
12699    case $cross_compiling:$ac_tool_warned in
12700yes:)
12701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12702printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12703ac_tool_warned=yes ;;
12704esac
12705    FILECMD=$ac_ct_FILECMD
12706  fi
12707else
12708  FILECMD="$ac_cv_prog_FILECMD"
12709fi
12710
12711
12712
12713
12714
12715
12716
12717if test -n "$ac_tool_prefix"; then
12718  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12719set dummy ${ac_tool_prefix}objdump; ac_word=$2
12720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721printf %s "checking for $ac_word... " >&6; }
12722if test ${ac_cv_prog_OBJDUMP+y}
12723then :
12724  printf %s "(cached) " >&6
12725else $as_nop
12726  if test -n "$OBJDUMP"; then
12727  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12728else
12729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $PATH
12731do
12732  IFS=$as_save_IFS
12733  case $as_dir in #(((
12734    '') as_dir=./ ;;
12735    */) ;;
12736    *) as_dir=$as_dir/ ;;
12737  esac
12738    for ac_exec_ext in '' $ac_executable_extensions; do
12739  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12740    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12741    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12742    break 2
12743  fi
12744done
12745  done
12746IFS=$as_save_IFS
12747
12748fi
12749fi
12750OBJDUMP=$ac_cv_prog_OBJDUMP
12751if test -n "$OBJDUMP"; then
12752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12753printf "%s\n" "$OBJDUMP" >&6; }
12754else
12755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756printf "%s\n" "no" >&6; }
12757fi
12758
12759
12760fi
12761if test -z "$ac_cv_prog_OBJDUMP"; then
12762  ac_ct_OBJDUMP=$OBJDUMP
12763  # Extract the first word of "objdump", so it can be a program name with args.
12764set dummy objdump; ac_word=$2
12765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766printf %s "checking for $ac_word... " >&6; }
12767if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12768then :
12769  printf %s "(cached) " >&6
12770else $as_nop
12771  if test -n "$ac_ct_OBJDUMP"; then
12772  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12773else
12774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775for as_dir in $PATH
12776do
12777  IFS=$as_save_IFS
12778  case $as_dir in #(((
12779    '') as_dir=./ ;;
12780    */) ;;
12781    *) as_dir=$as_dir/ ;;
12782  esac
12783    for ac_exec_ext in '' $ac_executable_extensions; do
12784  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12785    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12786    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12787    break 2
12788  fi
12789done
12790  done
12791IFS=$as_save_IFS
12792
12793fi
12794fi
12795ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12796if test -n "$ac_ct_OBJDUMP"; then
12797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12798printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12799else
12800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801printf "%s\n" "no" >&6; }
12802fi
12803
12804  if test "x$ac_ct_OBJDUMP" = x; then
12805    OBJDUMP="false"
12806  else
12807    case $cross_compiling:$ac_tool_warned in
12808yes:)
12809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12810printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12811ac_tool_warned=yes ;;
12812esac
12813    OBJDUMP=$ac_ct_OBJDUMP
12814  fi
12815else
12816  OBJDUMP="$ac_cv_prog_OBJDUMP"
12817fi
12818
12819test -z "$OBJDUMP" && OBJDUMP=objdump
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12830printf %s "checking how to recognize dependent libraries... " >&6; }
12831if test ${lt_cv_deplibs_check_method+y}
12832then :
12833  printf %s "(cached) " >&6
12834else $as_nop
12835  lt_cv_file_magic_cmd='$MAGIC_CMD'
12836lt_cv_file_magic_test_file=
12837lt_cv_deplibs_check_method='unknown'
12838# Need to set the preceding variable on all platforms that support
12839# interlibrary dependencies.
12840# 'none' -- dependencies not supported.
12841# 'unknown' -- same as none, but documents that we really don't know.
12842# 'pass_all' -- all dependencies passed with no checks.
12843# 'test_compile' -- check by making test program.
12844# 'file_magic [[regex]]' -- check by looking for files in library path
12845# that responds to the $file_magic_cmd with a given extended regex.
12846# If you have 'file' or equivalent on your system and you're not sure
12847# whether 'pass_all' will *always* work, you probably want this one.
12848
12849case $host_os in
12850aix[4-9]*)
12851  lt_cv_deplibs_check_method=pass_all
12852  ;;
12853
12854beos*)
12855  lt_cv_deplibs_check_method=pass_all
12856  ;;
12857
12858bsdi[45]*)
12859  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12860  lt_cv_file_magic_cmd='$FILECMD -L'
12861  lt_cv_file_magic_test_file=/shlib/libc.so
12862  ;;
12863
12864cygwin*)
12865  # func_win32_libid is a shell function defined in ltmain.sh
12866  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12867  lt_cv_file_magic_cmd='func_win32_libid'
12868  ;;
12869
12870mingw* | pw32*)
12871  # Base MSYS/MinGW do not provide the 'file' command needed by
12872  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12873  # unless we find 'file', for example because we are cross-compiling.
12874  if ( file / ) >/dev/null 2>&1; then
12875    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12876    lt_cv_file_magic_cmd='func_win32_libid'
12877  else
12878    # Keep this pattern in sync with the one in func_win32_libid.
12879    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12880    lt_cv_file_magic_cmd='$OBJDUMP -f'
12881  fi
12882  ;;
12883
12884cegcc*)
12885  # use the weaker test based on 'objdump'. See mingw*.
12886  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12887  lt_cv_file_magic_cmd='$OBJDUMP -f'
12888  ;;
12889
12890darwin* | rhapsody*)
12891  lt_cv_deplibs_check_method=pass_all
12892  ;;
12893
12894freebsd* | dragonfly* | midnightbsd*)
12895  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12896    case $host_cpu in
12897    i*86 )
12898      # Not sure whether the presence of OpenBSD here was a mistake.
12899      # Let's accept both of them until this is cleared up.
12900      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12901      lt_cv_file_magic_cmd=$FILECMD
12902      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12903      ;;
12904    esac
12905  else
12906    lt_cv_deplibs_check_method=pass_all
12907  fi
12908  ;;
12909
12910haiku*)
12911  lt_cv_deplibs_check_method=pass_all
12912  ;;
12913
12914hpux10.20* | hpux11*)
12915  lt_cv_file_magic_cmd=$FILECMD
12916  case $host_cpu in
12917  ia64*)
12918    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12919    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12920    ;;
12921  hppa*64*)
12922    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]'
12923    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12924    ;;
12925  *)
12926    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12927    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12928    ;;
12929  esac
12930  ;;
12931
12932interix[3-9]*)
12933  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12934  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12935  ;;
12936
12937irix5* | irix6* | nonstopux*)
12938  case $LD in
12939  *-32|*"-32 ") libmagic=32-bit;;
12940  *-n32|*"-n32 ") libmagic=N32;;
12941  *-64|*"-64 ") libmagic=64-bit;;
12942  *) libmagic=never-match;;
12943  esac
12944  lt_cv_deplibs_check_method=pass_all
12945  ;;
12946
12947# This must be glibc/ELF.
12948linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12949  lt_cv_deplibs_check_method=pass_all
12950  ;;
12951
12952netbsd*)
12953  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12954    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12955  else
12956    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12957  fi
12958  ;;
12959
12960newos6*)
12961  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12962  lt_cv_file_magic_cmd=$FILECMD
12963  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12964  ;;
12965
12966*nto* | *qnx*)
12967  lt_cv_deplibs_check_method=pass_all
12968  ;;
12969
12970openbsd* | bitrig*)
12971  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12972    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12973  else
12974    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12975  fi
12976  ;;
12977
12978osf3* | osf4* | osf5*)
12979  lt_cv_deplibs_check_method=pass_all
12980  ;;
12981
12982rdos*)
12983  lt_cv_deplibs_check_method=pass_all
12984  ;;
12985
12986solaris*)
12987  lt_cv_deplibs_check_method=pass_all
12988  ;;
12989
12990sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12991  lt_cv_deplibs_check_method=pass_all
12992  ;;
12993
12994sysv4 | sysv4.3*)
12995  case $host_vendor in
12996  motorola)
12997    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]'
12998    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12999    ;;
13000  ncr)
13001    lt_cv_deplibs_check_method=pass_all
13002    ;;
13003  sequent)
13004    lt_cv_file_magic_cmd='/bin/file'
13005    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13006    ;;
13007  sni)
13008    lt_cv_file_magic_cmd='/bin/file'
13009    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13010    lt_cv_file_magic_test_file=/lib/libc.so
13011    ;;
13012  siemens)
13013    lt_cv_deplibs_check_method=pass_all
13014    ;;
13015  pc)
13016    lt_cv_deplibs_check_method=pass_all
13017    ;;
13018  esac
13019  ;;
13020
13021tpf*)
13022  lt_cv_deplibs_check_method=pass_all
13023  ;;
13024os2*)
13025  lt_cv_deplibs_check_method=pass_all
13026  ;;
13027esac
13028
13029fi
13030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13031printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13032
13033file_magic_glob=
13034want_nocaseglob=no
13035if test "$build" = "$host"; then
13036  case $host_os in
13037  mingw* | pw32*)
13038    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13039      want_nocaseglob=yes
13040    else
13041      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13042    fi
13043    ;;
13044  esac
13045fi
13046
13047file_magic_cmd=$lt_cv_file_magic_cmd
13048deplibs_check_method=$lt_cv_deplibs_check_method
13049test -z "$deplibs_check_method" && deplibs_check_method=unknown
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072if test -n "$ac_tool_prefix"; then
13073  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13074set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076printf %s "checking for $ac_word... " >&6; }
13077if test ${ac_cv_prog_DLLTOOL+y}
13078then :
13079  printf %s "(cached) " >&6
13080else $as_nop
13081  if test -n "$DLLTOOL"; then
13082  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13083else
13084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085for as_dir in $PATH
13086do
13087  IFS=$as_save_IFS
13088  case $as_dir in #(((
13089    '') as_dir=./ ;;
13090    */) ;;
13091    *) as_dir=$as_dir/ ;;
13092  esac
13093    for ac_exec_ext in '' $ac_executable_extensions; do
13094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13095    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13097    break 2
13098  fi
13099done
13100  done
13101IFS=$as_save_IFS
13102
13103fi
13104fi
13105DLLTOOL=$ac_cv_prog_DLLTOOL
13106if test -n "$DLLTOOL"; then
13107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13108printf "%s\n" "$DLLTOOL" >&6; }
13109else
13110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111printf "%s\n" "no" >&6; }
13112fi
13113
13114
13115fi
13116if test -z "$ac_cv_prog_DLLTOOL"; then
13117  ac_ct_DLLTOOL=$DLLTOOL
13118  # Extract the first word of "dlltool", so it can be a program name with args.
13119set dummy dlltool; ac_word=$2
13120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121printf %s "checking for $ac_word... " >&6; }
13122if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13123then :
13124  printf %s "(cached) " >&6
13125else $as_nop
13126  if test -n "$ac_ct_DLLTOOL"; then
13127  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13128else
13129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $PATH
13131do
13132  IFS=$as_save_IFS
13133  case $as_dir in #(((
13134    '') as_dir=./ ;;
13135    */) ;;
13136    *) as_dir=$as_dir/ ;;
13137  esac
13138    for ac_exec_ext in '' $ac_executable_extensions; do
13139  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13140    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13141    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13142    break 2
13143  fi
13144done
13145  done
13146IFS=$as_save_IFS
13147
13148fi
13149fi
13150ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13151if test -n "$ac_ct_DLLTOOL"; then
13152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13153printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13154else
13155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156printf "%s\n" "no" >&6; }
13157fi
13158
13159  if test "x$ac_ct_DLLTOOL" = x; then
13160    DLLTOOL="false"
13161  else
13162    case $cross_compiling:$ac_tool_warned in
13163yes:)
13164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13165printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13166ac_tool_warned=yes ;;
13167esac
13168    DLLTOOL=$ac_ct_DLLTOOL
13169  fi
13170else
13171  DLLTOOL="$ac_cv_prog_DLLTOOL"
13172fi
13173
13174test -z "$DLLTOOL" && DLLTOOL=dlltool
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13186printf %s "checking how to associate runtime and link libraries... " >&6; }
13187if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13188then :
13189  printf %s "(cached) " >&6
13190else $as_nop
13191  lt_cv_sharedlib_from_linklib_cmd='unknown'
13192
13193case $host_os in
13194cygwin* | mingw* | pw32* | cegcc*)
13195  # two different shell functions defined in ltmain.sh;
13196  # decide which one to use based on capabilities of $DLLTOOL
13197  case `$DLLTOOL --help 2>&1` in
13198  *--identify-strict*)
13199    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13200    ;;
13201  *)
13202    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13203    ;;
13204  esac
13205  ;;
13206*)
13207  # fallback: assume linklib IS sharedlib
13208  lt_cv_sharedlib_from_linklib_cmd=$ECHO
13209  ;;
13210esac
13211
13212fi
13213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13214printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13215sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13216test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13217
13218
13219
13220
13221
13222
13223
13224if test -n "$ac_tool_prefix"; then
13225  for ac_prog in ar
13226  do
13227    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230printf %s "checking for $ac_word... " >&6; }
13231if test ${ac_cv_prog_AR+y}
13232then :
13233  printf %s "(cached) " >&6
13234else $as_nop
13235  if test -n "$AR"; then
13236  ac_cv_prog_AR="$AR" # Let the user override the test.
13237else
13238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239for as_dir in $PATH
13240do
13241  IFS=$as_save_IFS
13242  case $as_dir in #(((
13243    '') as_dir=./ ;;
13244    */) ;;
13245    *) as_dir=$as_dir/ ;;
13246  esac
13247    for ac_exec_ext in '' $ac_executable_extensions; do
13248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13249    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13250    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13251    break 2
13252  fi
13253done
13254  done
13255IFS=$as_save_IFS
13256
13257fi
13258fi
13259AR=$ac_cv_prog_AR
13260if test -n "$AR"; then
13261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13262printf "%s\n" "$AR" >&6; }
13263else
13264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265printf "%s\n" "no" >&6; }
13266fi
13267
13268
13269    test -n "$AR" && break
13270  done
13271fi
13272if test -z "$AR"; then
13273  ac_ct_AR=$AR
13274  for ac_prog in ar
13275do
13276  # Extract the first word of "$ac_prog", so it can be a program name with args.
13277set dummy $ac_prog; ac_word=$2
13278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279printf %s "checking for $ac_word... " >&6; }
13280if test ${ac_cv_prog_ac_ct_AR+y}
13281then :
13282  printf %s "(cached) " >&6
13283else $as_nop
13284  if test -n "$ac_ct_AR"; then
13285  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13286else
13287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288for as_dir in $PATH
13289do
13290  IFS=$as_save_IFS
13291  case $as_dir in #(((
13292    '') as_dir=./ ;;
13293    */) ;;
13294    *) as_dir=$as_dir/ ;;
13295  esac
13296    for ac_exec_ext in '' $ac_executable_extensions; do
13297  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13298    ac_cv_prog_ac_ct_AR="$ac_prog"
13299    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13300    break 2
13301  fi
13302done
13303  done
13304IFS=$as_save_IFS
13305
13306fi
13307fi
13308ac_ct_AR=$ac_cv_prog_ac_ct_AR
13309if test -n "$ac_ct_AR"; then
13310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13311printf "%s\n" "$ac_ct_AR" >&6; }
13312else
13313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314printf "%s\n" "no" >&6; }
13315fi
13316
13317
13318  test -n "$ac_ct_AR" && break
13319done
13320
13321  if test "x$ac_ct_AR" = x; then
13322    AR="false"
13323  else
13324    case $cross_compiling:$ac_tool_warned in
13325yes:)
13326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13327printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13328ac_tool_warned=yes ;;
13329esac
13330    AR=$ac_ct_AR
13331  fi
13332fi
13333
13334: ${AR=ar}
13335
13336
13337
13338
13339
13340
13341# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13342# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13343# higher priority because thats what people were doing historically (setting
13344# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13345# variable obsoleted/removed.
13346
13347test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13348lt_ar_flags=$AR_FLAGS
13349
13350
13351
13352
13353
13354
13355# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13356# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13357
13358
13359
13360
13361
13362
13363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13364printf %s "checking for archiver @FILE support... " >&6; }
13365if test ${lt_cv_ar_at_file+y}
13366then :
13367  printf %s "(cached) " >&6
13368else $as_nop
13369  lt_cv_ar_at_file=no
13370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371/* end confdefs.h.  */
13372
13373int
13374main (void)
13375{
13376
13377  ;
13378  return 0;
13379}
13380_ACEOF
13381if ac_fn_c_try_compile "$LINENO"
13382then :
13383  echo conftest.$ac_objext > conftest.lst
13384      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13385      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13386  (eval $lt_ar_try) 2>&5
13387  ac_status=$?
13388  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389  test $ac_status = 0; }
13390      if test 0 -eq "$ac_status"; then
13391	# Ensure the archiver fails upon bogus file names.
13392	rm -f conftest.$ac_objext libconftest.a
13393	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13394  (eval $lt_ar_try) 2>&5
13395  ac_status=$?
13396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397  test $ac_status = 0; }
13398	if test 0 -ne "$ac_status"; then
13399          lt_cv_ar_at_file=@
13400        fi
13401      fi
13402      rm -f conftest.* libconftest.a
13403
13404fi
13405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13406
13407fi
13408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13409printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13410
13411if test no = "$lt_cv_ar_at_file"; then
13412  archiver_list_spec=
13413else
13414  archiver_list_spec=$lt_cv_ar_at_file
13415fi
13416
13417
13418
13419
13420
13421
13422
13423if test -n "$ac_tool_prefix"; then
13424  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13425set dummy ${ac_tool_prefix}strip; ac_word=$2
13426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427printf %s "checking for $ac_word... " >&6; }
13428if test ${ac_cv_prog_STRIP+y}
13429then :
13430  printf %s "(cached) " >&6
13431else $as_nop
13432  if test -n "$STRIP"; then
13433  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13434else
13435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436for as_dir in $PATH
13437do
13438  IFS=$as_save_IFS
13439  case $as_dir in #(((
13440    '') as_dir=./ ;;
13441    */) ;;
13442    *) as_dir=$as_dir/ ;;
13443  esac
13444    for ac_exec_ext in '' $ac_executable_extensions; do
13445  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13446    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13447    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13448    break 2
13449  fi
13450done
13451  done
13452IFS=$as_save_IFS
13453
13454fi
13455fi
13456STRIP=$ac_cv_prog_STRIP
13457if test -n "$STRIP"; then
13458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13459printf "%s\n" "$STRIP" >&6; }
13460else
13461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462printf "%s\n" "no" >&6; }
13463fi
13464
13465
13466fi
13467if test -z "$ac_cv_prog_STRIP"; then
13468  ac_ct_STRIP=$STRIP
13469  # Extract the first word of "strip", so it can be a program name with args.
13470set dummy strip; ac_word=$2
13471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472printf %s "checking for $ac_word... " >&6; }
13473if test ${ac_cv_prog_ac_ct_STRIP+y}
13474then :
13475  printf %s "(cached) " >&6
13476else $as_nop
13477  if test -n "$ac_ct_STRIP"; then
13478  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13479else
13480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481for as_dir in $PATH
13482do
13483  IFS=$as_save_IFS
13484  case $as_dir in #(((
13485    '') as_dir=./ ;;
13486    */) ;;
13487    *) as_dir=$as_dir/ ;;
13488  esac
13489    for ac_exec_ext in '' $ac_executable_extensions; do
13490  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13491    ac_cv_prog_ac_ct_STRIP="strip"
13492    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13493    break 2
13494  fi
13495done
13496  done
13497IFS=$as_save_IFS
13498
13499fi
13500fi
13501ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13502if test -n "$ac_ct_STRIP"; then
13503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13504printf "%s\n" "$ac_ct_STRIP" >&6; }
13505else
13506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507printf "%s\n" "no" >&6; }
13508fi
13509
13510  if test "x$ac_ct_STRIP" = x; then
13511    STRIP=":"
13512  else
13513    case $cross_compiling:$ac_tool_warned in
13514yes:)
13515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13516printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13517ac_tool_warned=yes ;;
13518esac
13519    STRIP=$ac_ct_STRIP
13520  fi
13521else
13522  STRIP="$ac_cv_prog_STRIP"
13523fi
13524
13525test -z "$STRIP" && STRIP=:
13526
13527
13528
13529
13530
13531
13532if test -n "$ac_tool_prefix"; then
13533  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13534set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536printf %s "checking for $ac_word... " >&6; }
13537if test ${ac_cv_prog_RANLIB+y}
13538then :
13539  printf %s "(cached) " >&6
13540else $as_nop
13541  if test -n "$RANLIB"; then
13542  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13543else
13544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545for as_dir in $PATH
13546do
13547  IFS=$as_save_IFS
13548  case $as_dir in #(((
13549    '') as_dir=./ ;;
13550    */) ;;
13551    *) as_dir=$as_dir/ ;;
13552  esac
13553    for ac_exec_ext in '' $ac_executable_extensions; do
13554  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13555    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13556    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13557    break 2
13558  fi
13559done
13560  done
13561IFS=$as_save_IFS
13562
13563fi
13564fi
13565RANLIB=$ac_cv_prog_RANLIB
13566if test -n "$RANLIB"; then
13567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13568printf "%s\n" "$RANLIB" >&6; }
13569else
13570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571printf "%s\n" "no" >&6; }
13572fi
13573
13574
13575fi
13576if test -z "$ac_cv_prog_RANLIB"; then
13577  ac_ct_RANLIB=$RANLIB
13578  # Extract the first word of "ranlib", so it can be a program name with args.
13579set dummy ranlib; ac_word=$2
13580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581printf %s "checking for $ac_word... " >&6; }
13582if test ${ac_cv_prog_ac_ct_RANLIB+y}
13583then :
13584  printf %s "(cached) " >&6
13585else $as_nop
13586  if test -n "$ac_ct_RANLIB"; then
13587  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13588else
13589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590for as_dir in $PATH
13591do
13592  IFS=$as_save_IFS
13593  case $as_dir in #(((
13594    '') as_dir=./ ;;
13595    */) ;;
13596    *) as_dir=$as_dir/ ;;
13597  esac
13598    for ac_exec_ext in '' $ac_executable_extensions; do
13599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13600    ac_cv_prog_ac_ct_RANLIB="ranlib"
13601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13602    break 2
13603  fi
13604done
13605  done
13606IFS=$as_save_IFS
13607
13608fi
13609fi
13610ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13611if test -n "$ac_ct_RANLIB"; then
13612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13613printf "%s\n" "$ac_ct_RANLIB" >&6; }
13614else
13615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13616printf "%s\n" "no" >&6; }
13617fi
13618
13619  if test "x$ac_ct_RANLIB" = x; then
13620    RANLIB=":"
13621  else
13622    case $cross_compiling:$ac_tool_warned in
13623yes:)
13624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13625printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13626ac_tool_warned=yes ;;
13627esac
13628    RANLIB=$ac_ct_RANLIB
13629  fi
13630else
13631  RANLIB="$ac_cv_prog_RANLIB"
13632fi
13633
13634test -z "$RANLIB" && RANLIB=:
13635
13636
13637
13638
13639
13640
13641# Determine commands to create old-style static archives.
13642old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13643old_postinstall_cmds='chmod 644 $oldlib'
13644old_postuninstall_cmds=
13645
13646if test -n "$RANLIB"; then
13647  case $host_os in
13648  bitrig* | openbsd*)
13649    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13650    ;;
13651  *)
13652    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13653    ;;
13654  esac
13655  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13656fi
13657
13658case $host_os in
13659  darwin*)
13660    lock_old_archive_extraction=yes ;;
13661  *)
13662    lock_old_archive_extraction=no ;;
13663esac
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703# If no C compiler was specified, use CC.
13704LTCC=${LTCC-"$CC"}
13705
13706# If no C compiler flags were specified, use CFLAGS.
13707LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13708
13709# Allow CC to be a program name with arguments.
13710compiler=$CC
13711
13712
13713# Check for command to grab the raw symbol name followed by C symbol from nm.
13714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13715printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13716if test ${lt_cv_sys_global_symbol_pipe+y}
13717then :
13718  printf %s "(cached) " >&6
13719else $as_nop
13720
13721# These are sane defaults that work on at least a few old systems.
13722# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13723
13724# Character class describing NM global symbol codes.
13725symcode='[BCDEGRST]'
13726
13727# Regexp to match symbols that can be accessed directly from C.
13728sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13729
13730# Define system-specific variables.
13731case $host_os in
13732aix*)
13733  symcode='[BCDT]'
13734  ;;
13735cygwin* | mingw* | pw32* | cegcc*)
13736  symcode='[ABCDGISTW]'
13737  ;;
13738hpux*)
13739  if test ia64 = "$host_cpu"; then
13740    symcode='[ABCDEGRST]'
13741  fi
13742  ;;
13743irix* | nonstopux*)
13744  symcode='[BCDEGRST]'
13745  ;;
13746osf*)
13747  symcode='[BCDEGQRST]'
13748  ;;
13749solaris*)
13750  symcode='[BDRT]'
13751  ;;
13752sco3.2v5*)
13753  symcode='[DT]'
13754  ;;
13755sysv4.2uw2*)
13756  symcode='[DT]'
13757  ;;
13758sysv5* | sco5v6* | unixware* | OpenUNIX*)
13759  symcode='[ABDT]'
13760  ;;
13761sysv4)
13762  symcode='[DFNSTU]'
13763  ;;
13764esac
13765
13766# If we're using GNU nm, then use its standard symbol codes.
13767case `$NM -V 2>&1` in
13768*GNU* | *'with BFD'*)
13769  symcode='[ABCDGIRSTW]' ;;
13770esac
13771
13772if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13773  # Gets list of data symbols to import.
13774  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13775  # Adjust the below global symbol transforms to fixup imported variables.
13776  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13777  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13778  lt_c_name_lib_hook="\
13779  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13780  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13781else
13782  # Disable hooks by default.
13783  lt_cv_sys_global_symbol_to_import=
13784  lt_cdecl_hook=
13785  lt_c_name_hook=
13786  lt_c_name_lib_hook=
13787fi
13788
13789# Transform an extracted symbol line into a proper C declaration.
13790# Some systems (esp. on ia64) link data and code symbols differently,
13791# so use this general approach.
13792lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13793$lt_cdecl_hook\
13794" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13795" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13796
13797# Transform an extracted symbol line into symbol name and symbol address
13798lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13799$lt_c_name_hook\
13800" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13801" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13802
13803# Transform an extracted symbol line into symbol name with lib prefix and
13804# symbol address.
13805lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13806$lt_c_name_lib_hook\
13807" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13808" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13809" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13810
13811# Handle CRLF in mingw tool chain
13812opt_cr=
13813case $build_os in
13814mingw*)
13815  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13816  ;;
13817esac
13818
13819# Try without a prefix underscore, then with it.
13820for ac_symprfx in "" "_"; do
13821
13822  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13823  symxfrm="\\1 $ac_symprfx\\2 \\2"
13824
13825  # Write the raw and C identifiers.
13826  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13827    # Fake it for dumpbin and say T for any non-static function,
13828    # D for any global variable and I for any imported variable.
13829    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13830    # which start with @ or ?.
13831    lt_cv_sys_global_symbol_pipe="$AWK '"\
13832"     {last_section=section; section=\$ 3};"\
13833"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13834"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13835"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13836"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13837"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13838"     \$ 0!~/External *\|/{next};"\
13839"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13840"     {if(hide[section]) next};"\
13841"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13842"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13843"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13844"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13845"     ' prfx=^$ac_symprfx"
13846  else
13847    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13848  fi
13849  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13850
13851  # Check to see that the pipe works correctly.
13852  pipe_works=no
13853
13854  rm -f conftest*
13855  cat > conftest.$ac_ext <<_LT_EOF
13856#ifdef __cplusplus
13857extern "C" {
13858#endif
13859char nm_test_var;
13860void nm_test_func(void);
13861void nm_test_func(void){}
13862#ifdef __cplusplus
13863}
13864#endif
13865int main(){nm_test_var='a';nm_test_func();return(0);}
13866_LT_EOF
13867
13868  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13869  (eval $ac_compile) 2>&5
13870  ac_status=$?
13871  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872  test $ac_status = 0; }; then
13873    # Now try to grab the symbols.
13874    nlist=conftest.nm
13875    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13876  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13877  ac_status=$?
13878  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13879  test $ac_status = 0; } && test -s "$nlist"; then
13880      # Try sorting and uniquifying the output.
13881      if sort "$nlist" | uniq > "$nlist"T; then
13882	mv -f "$nlist"T "$nlist"
13883      else
13884	rm -f "$nlist"T
13885      fi
13886
13887      # Make sure that we snagged all the symbols we need.
13888      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13889	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13890	  cat <<_LT_EOF > conftest.$ac_ext
13891/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13892#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13893/* DATA imports from DLLs on WIN32 can't be const, because runtime
13894   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13895# define LT_DLSYM_CONST
13896#elif defined __osf__
13897/* This system does not cope well with relocations in const data.  */
13898# define LT_DLSYM_CONST
13899#else
13900# define LT_DLSYM_CONST const
13901#endif
13902
13903#ifdef __cplusplus
13904extern "C" {
13905#endif
13906
13907_LT_EOF
13908	  # Now generate the symbol file.
13909	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13910
13911	  cat <<_LT_EOF >> conftest.$ac_ext
13912
13913/* The mapping between symbol names and symbols.  */
13914LT_DLSYM_CONST struct {
13915  const char *name;
13916  void       *address;
13917}
13918lt__PROGRAM__LTX_preloaded_symbols[] =
13919{
13920  { "@PROGRAM@", (void *) 0 },
13921_LT_EOF
13922	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13923	  cat <<\_LT_EOF >> conftest.$ac_ext
13924  {0, (void *) 0}
13925};
13926
13927/* This works around a problem in FreeBSD linker */
13928#ifdef FREEBSD_WORKAROUND
13929static const void *lt_preloaded_setup() {
13930  return lt__PROGRAM__LTX_preloaded_symbols;
13931}
13932#endif
13933
13934#ifdef __cplusplus
13935}
13936#endif
13937_LT_EOF
13938	  # Now try linking the two files.
13939	  mv conftest.$ac_objext conftstm.$ac_objext
13940	  lt_globsym_save_LIBS=$LIBS
13941	  lt_globsym_save_CFLAGS=$CFLAGS
13942	  LIBS=conftstm.$ac_objext
13943	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13944	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13945  (eval $ac_link) 2>&5
13946  ac_status=$?
13947  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13949	    pipe_works=yes
13950	  fi
13951	  LIBS=$lt_globsym_save_LIBS
13952	  CFLAGS=$lt_globsym_save_CFLAGS
13953	else
13954	  echo "cannot find nm_test_func in $nlist" >&5
13955	fi
13956      else
13957	echo "cannot find nm_test_var in $nlist" >&5
13958      fi
13959    else
13960      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13961    fi
13962  else
13963    echo "$progname: failed program was:" >&5
13964    cat conftest.$ac_ext >&5
13965  fi
13966  rm -rf conftest* conftst*
13967
13968  # Do not use the global_symbol_pipe unless it works.
13969  if test yes = "$pipe_works"; then
13970    break
13971  else
13972    lt_cv_sys_global_symbol_pipe=
13973  fi
13974done
13975
13976fi
13977
13978if test -z "$lt_cv_sys_global_symbol_pipe"; then
13979  lt_cv_sys_global_symbol_to_cdecl=
13980fi
13981if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13983printf "%s\n" "failed" >&6; }
13984else
13985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13986printf "%s\n" "ok" >&6; }
13987fi
13988
13989# Response file support.
13990if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13991  nm_file_list_spec='@'
13992elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13993  nm_file_list_spec='@'
13994fi
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14033printf %s "checking for sysroot... " >&6; }
14034
14035# Check whether --with-sysroot was given.
14036if test ${with_sysroot+y}
14037then :
14038  withval=$with_sysroot;
14039else $as_nop
14040  with_sysroot=no
14041fi
14042
14043
14044lt_sysroot=
14045case $with_sysroot in #(
14046 yes)
14047   if test yes = "$GCC"; then
14048     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14049   fi
14050   ;; #(
14051 /*)
14052   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14053   ;; #(
14054 no|'')
14055   ;; #(
14056 *)
14057   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14058printf "%s\n" "$with_sysroot" >&6; }
14059   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14060   ;;
14061esac
14062
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14064printf "%s\n" "${lt_sysroot:-no}" >&6; }
14065
14066
14067
14068
14069
14070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14071printf %s "checking for a working dd... " >&6; }
14072if test ${ac_cv_path_lt_DD+y}
14073then :
14074  printf %s "(cached) " >&6
14075else $as_nop
14076  printf 0123456789abcdef0123456789abcdef >conftest.i
14077cat conftest.i conftest.i >conftest2.i
14078: ${lt_DD:=$DD}
14079if test -z "$lt_DD"; then
14080  ac_path_lt_DD_found=false
14081  # Loop through the user's path and test for each of PROGNAME-LIST
14082  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083for as_dir in $PATH
14084do
14085  IFS=$as_save_IFS
14086  case $as_dir in #(((
14087    '') as_dir=./ ;;
14088    */) ;;
14089    *) as_dir=$as_dir/ ;;
14090  esac
14091    for ac_prog in dd
14092   do
14093    for ac_exec_ext in '' $ac_executable_extensions; do
14094      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14095      as_fn_executable_p "$ac_path_lt_DD" || continue
14096if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14097  cmp -s conftest.i conftest.out \
14098  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14099fi
14100      $ac_path_lt_DD_found && break 3
14101    done
14102  done
14103  done
14104IFS=$as_save_IFS
14105  if test -z "$ac_cv_path_lt_DD"; then
14106    :
14107  fi
14108else
14109  ac_cv_path_lt_DD=$lt_DD
14110fi
14111
14112rm -f conftest.i conftest2.i conftest.out
14113fi
14114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14115printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14116
14117
14118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14119printf %s "checking how to truncate binary pipes... " >&6; }
14120if test ${lt_cv_truncate_bin+y}
14121then :
14122  printf %s "(cached) " >&6
14123else $as_nop
14124  printf 0123456789abcdef0123456789abcdef >conftest.i
14125cat conftest.i conftest.i >conftest2.i
14126lt_cv_truncate_bin=
14127if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14128  cmp -s conftest.i conftest.out \
14129  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14130fi
14131rm -f conftest.i conftest2.i conftest.out
14132test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
14133fi
14134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14135printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14136
14137
14138
14139
14140
14141
14142
14143# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14144func_cc_basename ()
14145{
14146    for cc_temp in $*""; do
14147      case $cc_temp in
14148        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14149        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14150        \-*) ;;
14151        *) break;;
14152      esac
14153    done
14154    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14155}
14156
14157# Check whether --enable-libtool-lock was given.
14158if test ${enable_libtool_lock+y}
14159then :
14160  enableval=$enable_libtool_lock;
14161fi
14162
14163test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14164
14165# Some flags need to be propagated to the compiler or linker for good
14166# libtool support.
14167case $host in
14168ia64-*-hpux*)
14169  # Find out what ABI is being produced by ac_compile, and set mode
14170  # options accordingly.
14171  echo 'int i;' > conftest.$ac_ext
14172  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14173  (eval $ac_compile) 2>&5
14174  ac_status=$?
14175  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14176  test $ac_status = 0; }; then
14177    case `$FILECMD conftest.$ac_objext` in
14178      *ELF-32*)
14179	HPUX_IA64_MODE=32
14180	;;
14181      *ELF-64*)
14182	HPUX_IA64_MODE=64
14183	;;
14184    esac
14185  fi
14186  rm -rf conftest*
14187  ;;
14188*-*-irix6*)
14189  # Find out what ABI is being produced by ac_compile, and set linker
14190  # options accordingly.
14191  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14192  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14193  (eval $ac_compile) 2>&5
14194  ac_status=$?
14195  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14196  test $ac_status = 0; }; then
14197    if test yes = "$lt_cv_prog_gnu_ld"; then
14198      case `$FILECMD conftest.$ac_objext` in
14199	*32-bit*)
14200	  LD="${LD-ld} -melf32bsmip"
14201	  ;;
14202	*N32*)
14203	  LD="${LD-ld} -melf32bmipn32"
14204	  ;;
14205	*64-bit*)
14206	  LD="${LD-ld} -melf64bmip"
14207	;;
14208      esac
14209    else
14210      case `$FILECMD conftest.$ac_objext` in
14211	*32-bit*)
14212	  LD="${LD-ld} -32"
14213	  ;;
14214	*N32*)
14215	  LD="${LD-ld} -n32"
14216	  ;;
14217	*64-bit*)
14218	  LD="${LD-ld} -64"
14219	  ;;
14220      esac
14221    fi
14222  fi
14223  rm -rf conftest*
14224  ;;
14225
14226mips64*-*linux*)
14227  # Find out what ABI is being produced by ac_compile, and set linker
14228  # options accordingly.
14229  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14230  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14231  (eval $ac_compile) 2>&5
14232  ac_status=$?
14233  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14234  test $ac_status = 0; }; then
14235    emul=elf
14236    case `$FILECMD conftest.$ac_objext` in
14237      *32-bit*)
14238	emul="${emul}32"
14239	;;
14240      *64-bit*)
14241	emul="${emul}64"
14242	;;
14243    esac
14244    case `$FILECMD conftest.$ac_objext` in
14245      *MSB*)
14246	emul="${emul}btsmip"
14247	;;
14248      *LSB*)
14249	emul="${emul}ltsmip"
14250	;;
14251    esac
14252    case `$FILECMD conftest.$ac_objext` in
14253      *N32*)
14254	emul="${emul}n32"
14255	;;
14256    esac
14257    LD="${LD-ld} -m $emul"
14258  fi
14259  rm -rf conftest*
14260  ;;
14261
14262x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14263s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14264  # Find out what ABI is being produced by ac_compile, and set linker
14265  # options accordingly.  Note that the listed cases only cover the
14266  # situations where additional linker options are needed (such as when
14267  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14268  # vice versa); the common cases where no linker options are needed do
14269  # not appear in the list.
14270  echo 'int i;' > conftest.$ac_ext
14271  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14272  (eval $ac_compile) 2>&5
14273  ac_status=$?
14274  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14275  test $ac_status = 0; }; then
14276    case `$FILECMD conftest.o` in
14277      *32-bit*)
14278	case $host in
14279	  x86_64-*kfreebsd*-gnu)
14280	    LD="${LD-ld} -m elf_i386_fbsd"
14281	    ;;
14282	  x86_64-*linux*)
14283	    case `$FILECMD conftest.o` in
14284	      *x86-64*)
14285		LD="${LD-ld} -m elf32_x86_64"
14286		;;
14287	      *)
14288		LD="${LD-ld} -m elf_i386"
14289		;;
14290	    esac
14291	    ;;
14292	  powerpc64le-*linux*)
14293	    LD="${LD-ld} -m elf32lppclinux"
14294	    ;;
14295	  powerpc64-*linux*)
14296	    LD="${LD-ld} -m elf32ppclinux"
14297	    ;;
14298	  s390x-*linux*)
14299	    LD="${LD-ld} -m elf_s390"
14300	    ;;
14301	  sparc64-*linux*)
14302	    LD="${LD-ld} -m elf32_sparc"
14303	    ;;
14304	esac
14305	;;
14306      *64-bit*)
14307	case $host in
14308	  x86_64-*kfreebsd*-gnu)
14309	    LD="${LD-ld} -m elf_x86_64_fbsd"
14310	    ;;
14311	  x86_64-*linux*)
14312	    LD="${LD-ld} -m elf_x86_64"
14313	    ;;
14314	  powerpcle-*linux*|powerpc64le-*linux*)
14315	    LD="${LD-ld} -m elf64lppc"
14316	    ;;
14317	  powerpc-*linux*|powerpc64-*linux*)
14318	    LD="${LD-ld} -m elf64ppc"
14319	    ;;
14320	  s390*-*linux*|s390*-*tpf*)
14321	    LD="${LD-ld} -m elf64_s390"
14322	    ;;
14323	  sparc*-*linux*)
14324	    LD="${LD-ld} -m elf64_sparc"
14325	    ;;
14326	esac
14327	;;
14328    esac
14329  fi
14330  rm -rf conftest*
14331  ;;
14332
14333*-*-sco3.2v5*)
14334  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14335  SAVE_CFLAGS=$CFLAGS
14336  CFLAGS="$CFLAGS -belf"
14337  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14338printf %s "checking whether the C compiler needs -belf... " >&6; }
14339if test ${lt_cv_cc_needs_belf+y}
14340then :
14341  printf %s "(cached) " >&6
14342else $as_nop
14343  ac_ext=c
14344ac_cpp='$CPP $CPPFLAGS'
14345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347ac_compiler_gnu=$ac_cv_c_compiler_gnu
14348
14349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350/* end confdefs.h.  */
14351
14352int
14353main (void)
14354{
14355
14356  ;
14357  return 0;
14358}
14359_ACEOF
14360if ac_fn_c_try_link "$LINENO"
14361then :
14362  lt_cv_cc_needs_belf=yes
14363else $as_nop
14364  lt_cv_cc_needs_belf=no
14365fi
14366rm -f core conftest.err conftest.$ac_objext conftest.beam \
14367    conftest$ac_exeext conftest.$ac_ext
14368     ac_ext=c
14369ac_cpp='$CPP $CPPFLAGS'
14370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14372ac_compiler_gnu=$ac_cv_c_compiler_gnu
14373
14374fi
14375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14376printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14377  if test yes != "$lt_cv_cc_needs_belf"; then
14378    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14379    CFLAGS=$SAVE_CFLAGS
14380  fi
14381  ;;
14382*-*solaris*)
14383  # Find out what ABI is being produced by ac_compile, and set linker
14384  # options accordingly.
14385  echo 'int i;' > conftest.$ac_ext
14386  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14387  (eval $ac_compile) 2>&5
14388  ac_status=$?
14389  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14390  test $ac_status = 0; }; then
14391    case `$FILECMD conftest.o` in
14392    *64-bit*)
14393      case $lt_cv_prog_gnu_ld in
14394      yes*)
14395        case $host in
14396        i?86-*-solaris*|x86_64-*-solaris*)
14397          LD="${LD-ld} -m elf_x86_64"
14398          ;;
14399        sparc*-*-solaris*)
14400          LD="${LD-ld} -m elf64_sparc"
14401          ;;
14402        esac
14403        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14404        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14405          LD=${LD-ld}_sol2
14406        fi
14407        ;;
14408      *)
14409	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14410	  LD="${LD-ld} -64"
14411	fi
14412	;;
14413      esac
14414      ;;
14415    esac
14416  fi
14417  rm -rf conftest*
14418  ;;
14419esac
14420
14421need_locks=$enable_libtool_lock
14422
14423if test -n "$ac_tool_prefix"; then
14424  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14425set dummy ${ac_tool_prefix}mt; ac_word=$2
14426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427printf %s "checking for $ac_word... " >&6; }
14428if test ${ac_cv_prog_MANIFEST_TOOL+y}
14429then :
14430  printf %s "(cached) " >&6
14431else $as_nop
14432  if test -n "$MANIFEST_TOOL"; then
14433  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14434else
14435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436for as_dir in $PATH
14437do
14438  IFS=$as_save_IFS
14439  case $as_dir in #(((
14440    '') as_dir=./ ;;
14441    */) ;;
14442    *) as_dir=$as_dir/ ;;
14443  esac
14444    for ac_exec_ext in '' $ac_executable_extensions; do
14445  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14446    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14447    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14448    break 2
14449  fi
14450done
14451  done
14452IFS=$as_save_IFS
14453
14454fi
14455fi
14456MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14457if test -n "$MANIFEST_TOOL"; then
14458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14459printf "%s\n" "$MANIFEST_TOOL" >&6; }
14460else
14461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462printf "%s\n" "no" >&6; }
14463fi
14464
14465
14466fi
14467if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14468  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14469  # Extract the first word of "mt", so it can be a program name with args.
14470set dummy mt; ac_word=$2
14471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472printf %s "checking for $ac_word... " >&6; }
14473if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14474then :
14475  printf %s "(cached) " >&6
14476else $as_nop
14477  if test -n "$ac_ct_MANIFEST_TOOL"; then
14478  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14479else
14480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481for as_dir in $PATH
14482do
14483  IFS=$as_save_IFS
14484  case $as_dir in #(((
14485    '') as_dir=./ ;;
14486    */) ;;
14487    *) as_dir=$as_dir/ ;;
14488  esac
14489    for ac_exec_ext in '' $ac_executable_extensions; do
14490  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14491    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14492    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14493    break 2
14494  fi
14495done
14496  done
14497IFS=$as_save_IFS
14498
14499fi
14500fi
14501ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14502if test -n "$ac_ct_MANIFEST_TOOL"; then
14503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14504printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14505else
14506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507printf "%s\n" "no" >&6; }
14508fi
14509
14510  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14511    MANIFEST_TOOL=":"
14512  else
14513    case $cross_compiling:$ac_tool_warned in
14514yes:)
14515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14516printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14517ac_tool_warned=yes ;;
14518esac
14519    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14520  fi
14521else
14522  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14523fi
14524
14525test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14527printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14528if test ${lt_cv_path_mainfest_tool+y}
14529then :
14530  printf %s "(cached) " >&6
14531else $as_nop
14532  lt_cv_path_mainfest_tool=no
14533  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14534  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14535  cat conftest.err >&5
14536  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14537    lt_cv_path_mainfest_tool=yes
14538  fi
14539  rm -f conftest*
14540fi
14541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14542printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14543if test yes != "$lt_cv_path_mainfest_tool"; then
14544  MANIFEST_TOOL=:
14545fi
14546
14547
14548
14549
14550
14551
14552  case $host_os in
14553    rhapsody* | darwin*)
14554    if test -n "$ac_tool_prefix"; then
14555  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14556set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14558printf %s "checking for $ac_word... " >&6; }
14559if test ${ac_cv_prog_DSYMUTIL+y}
14560then :
14561  printf %s "(cached) " >&6
14562else $as_nop
14563  if test -n "$DSYMUTIL"; then
14564  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14565else
14566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567for as_dir in $PATH
14568do
14569  IFS=$as_save_IFS
14570  case $as_dir in #(((
14571    '') as_dir=./ ;;
14572    */) ;;
14573    *) as_dir=$as_dir/ ;;
14574  esac
14575    for ac_exec_ext in '' $ac_executable_extensions; do
14576  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14577    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14578    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14579    break 2
14580  fi
14581done
14582  done
14583IFS=$as_save_IFS
14584
14585fi
14586fi
14587DSYMUTIL=$ac_cv_prog_DSYMUTIL
14588if test -n "$DSYMUTIL"; then
14589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14590printf "%s\n" "$DSYMUTIL" >&6; }
14591else
14592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593printf "%s\n" "no" >&6; }
14594fi
14595
14596
14597fi
14598if test -z "$ac_cv_prog_DSYMUTIL"; then
14599  ac_ct_DSYMUTIL=$DSYMUTIL
14600  # Extract the first word of "dsymutil", so it can be a program name with args.
14601set dummy dsymutil; ac_word=$2
14602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14603printf %s "checking for $ac_word... " >&6; }
14604if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14605then :
14606  printf %s "(cached) " >&6
14607else $as_nop
14608  if test -n "$ac_ct_DSYMUTIL"; then
14609  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14610else
14611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612for as_dir in $PATH
14613do
14614  IFS=$as_save_IFS
14615  case $as_dir in #(((
14616    '') as_dir=./ ;;
14617    */) ;;
14618    *) as_dir=$as_dir/ ;;
14619  esac
14620    for ac_exec_ext in '' $ac_executable_extensions; do
14621  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14622    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14624    break 2
14625  fi
14626done
14627  done
14628IFS=$as_save_IFS
14629
14630fi
14631fi
14632ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14633if test -n "$ac_ct_DSYMUTIL"; then
14634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14635printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14636else
14637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638printf "%s\n" "no" >&6; }
14639fi
14640
14641  if test "x$ac_ct_DSYMUTIL" = x; then
14642    DSYMUTIL=":"
14643  else
14644    case $cross_compiling:$ac_tool_warned in
14645yes:)
14646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14647printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14648ac_tool_warned=yes ;;
14649esac
14650    DSYMUTIL=$ac_ct_DSYMUTIL
14651  fi
14652else
14653  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14654fi
14655
14656    if test -n "$ac_tool_prefix"; then
14657  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14658set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14660printf %s "checking for $ac_word... " >&6; }
14661if test ${ac_cv_prog_NMEDIT+y}
14662then :
14663  printf %s "(cached) " >&6
14664else $as_nop
14665  if test -n "$NMEDIT"; then
14666  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14667else
14668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669for as_dir in $PATH
14670do
14671  IFS=$as_save_IFS
14672  case $as_dir in #(((
14673    '') as_dir=./ ;;
14674    */) ;;
14675    *) as_dir=$as_dir/ ;;
14676  esac
14677    for ac_exec_ext in '' $ac_executable_extensions; do
14678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14679    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14681    break 2
14682  fi
14683done
14684  done
14685IFS=$as_save_IFS
14686
14687fi
14688fi
14689NMEDIT=$ac_cv_prog_NMEDIT
14690if test -n "$NMEDIT"; then
14691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14692printf "%s\n" "$NMEDIT" >&6; }
14693else
14694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14695printf "%s\n" "no" >&6; }
14696fi
14697
14698
14699fi
14700if test -z "$ac_cv_prog_NMEDIT"; then
14701  ac_ct_NMEDIT=$NMEDIT
14702  # Extract the first word of "nmedit", so it can be a program name with args.
14703set dummy nmedit; ac_word=$2
14704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14705printf %s "checking for $ac_word... " >&6; }
14706if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14707then :
14708  printf %s "(cached) " >&6
14709else $as_nop
14710  if test -n "$ac_ct_NMEDIT"; then
14711  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14712else
14713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714for as_dir in $PATH
14715do
14716  IFS=$as_save_IFS
14717  case $as_dir in #(((
14718    '') as_dir=./ ;;
14719    */) ;;
14720    *) as_dir=$as_dir/ ;;
14721  esac
14722    for ac_exec_ext in '' $ac_executable_extensions; do
14723  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14724    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14725    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14726    break 2
14727  fi
14728done
14729  done
14730IFS=$as_save_IFS
14731
14732fi
14733fi
14734ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14735if test -n "$ac_ct_NMEDIT"; then
14736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14737printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14738else
14739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740printf "%s\n" "no" >&6; }
14741fi
14742
14743  if test "x$ac_ct_NMEDIT" = x; then
14744    NMEDIT=":"
14745  else
14746    case $cross_compiling:$ac_tool_warned in
14747yes:)
14748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14749printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14750ac_tool_warned=yes ;;
14751esac
14752    NMEDIT=$ac_ct_NMEDIT
14753  fi
14754else
14755  NMEDIT="$ac_cv_prog_NMEDIT"
14756fi
14757
14758    if test -n "$ac_tool_prefix"; then
14759  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14760set dummy ${ac_tool_prefix}lipo; ac_word=$2
14761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14762printf %s "checking for $ac_word... " >&6; }
14763if test ${ac_cv_prog_LIPO+y}
14764then :
14765  printf %s "(cached) " >&6
14766else $as_nop
14767  if test -n "$LIPO"; then
14768  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14769else
14770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14771for as_dir in $PATH
14772do
14773  IFS=$as_save_IFS
14774  case $as_dir in #(((
14775    '') as_dir=./ ;;
14776    */) ;;
14777    *) as_dir=$as_dir/ ;;
14778  esac
14779    for ac_exec_ext in '' $ac_executable_extensions; do
14780  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14781    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14782    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14783    break 2
14784  fi
14785done
14786  done
14787IFS=$as_save_IFS
14788
14789fi
14790fi
14791LIPO=$ac_cv_prog_LIPO
14792if test -n "$LIPO"; then
14793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14794printf "%s\n" "$LIPO" >&6; }
14795else
14796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797printf "%s\n" "no" >&6; }
14798fi
14799
14800
14801fi
14802if test -z "$ac_cv_prog_LIPO"; then
14803  ac_ct_LIPO=$LIPO
14804  # Extract the first word of "lipo", so it can be a program name with args.
14805set dummy lipo; ac_word=$2
14806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14807printf %s "checking for $ac_word... " >&6; }
14808if test ${ac_cv_prog_ac_ct_LIPO+y}
14809then :
14810  printf %s "(cached) " >&6
14811else $as_nop
14812  if test -n "$ac_ct_LIPO"; then
14813  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14814else
14815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816for as_dir in $PATH
14817do
14818  IFS=$as_save_IFS
14819  case $as_dir in #(((
14820    '') as_dir=./ ;;
14821    */) ;;
14822    *) as_dir=$as_dir/ ;;
14823  esac
14824    for ac_exec_ext in '' $ac_executable_extensions; do
14825  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14826    ac_cv_prog_ac_ct_LIPO="lipo"
14827    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14828    break 2
14829  fi
14830done
14831  done
14832IFS=$as_save_IFS
14833
14834fi
14835fi
14836ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14837if test -n "$ac_ct_LIPO"; then
14838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14839printf "%s\n" "$ac_ct_LIPO" >&6; }
14840else
14841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14842printf "%s\n" "no" >&6; }
14843fi
14844
14845  if test "x$ac_ct_LIPO" = x; then
14846    LIPO=":"
14847  else
14848    case $cross_compiling:$ac_tool_warned in
14849yes:)
14850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14851printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14852ac_tool_warned=yes ;;
14853esac
14854    LIPO=$ac_ct_LIPO
14855  fi
14856else
14857  LIPO="$ac_cv_prog_LIPO"
14858fi
14859
14860    if test -n "$ac_tool_prefix"; then
14861  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14862set dummy ${ac_tool_prefix}otool; ac_word=$2
14863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14864printf %s "checking for $ac_word... " >&6; }
14865if test ${ac_cv_prog_OTOOL+y}
14866then :
14867  printf %s "(cached) " >&6
14868else $as_nop
14869  if test -n "$OTOOL"; then
14870  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14871else
14872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14873for as_dir in $PATH
14874do
14875  IFS=$as_save_IFS
14876  case $as_dir in #(((
14877    '') as_dir=./ ;;
14878    */) ;;
14879    *) as_dir=$as_dir/ ;;
14880  esac
14881    for ac_exec_ext in '' $ac_executable_extensions; do
14882  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14883    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14884    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14885    break 2
14886  fi
14887done
14888  done
14889IFS=$as_save_IFS
14890
14891fi
14892fi
14893OTOOL=$ac_cv_prog_OTOOL
14894if test -n "$OTOOL"; then
14895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14896printf "%s\n" "$OTOOL" >&6; }
14897else
14898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899printf "%s\n" "no" >&6; }
14900fi
14901
14902
14903fi
14904if test -z "$ac_cv_prog_OTOOL"; then
14905  ac_ct_OTOOL=$OTOOL
14906  # Extract the first word of "otool", so it can be a program name with args.
14907set dummy otool; ac_word=$2
14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14909printf %s "checking for $ac_word... " >&6; }
14910if test ${ac_cv_prog_ac_ct_OTOOL+y}
14911then :
14912  printf %s "(cached) " >&6
14913else $as_nop
14914  if test -n "$ac_ct_OTOOL"; then
14915  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14916else
14917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918for as_dir in $PATH
14919do
14920  IFS=$as_save_IFS
14921  case $as_dir in #(((
14922    '') as_dir=./ ;;
14923    */) ;;
14924    *) as_dir=$as_dir/ ;;
14925  esac
14926    for ac_exec_ext in '' $ac_executable_extensions; do
14927  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14928    ac_cv_prog_ac_ct_OTOOL="otool"
14929    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14930    break 2
14931  fi
14932done
14933  done
14934IFS=$as_save_IFS
14935
14936fi
14937fi
14938ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14939if test -n "$ac_ct_OTOOL"; then
14940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14941printf "%s\n" "$ac_ct_OTOOL" >&6; }
14942else
14943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944printf "%s\n" "no" >&6; }
14945fi
14946
14947  if test "x$ac_ct_OTOOL" = x; then
14948    OTOOL=":"
14949  else
14950    case $cross_compiling:$ac_tool_warned in
14951yes:)
14952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14953printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14954ac_tool_warned=yes ;;
14955esac
14956    OTOOL=$ac_ct_OTOOL
14957  fi
14958else
14959  OTOOL="$ac_cv_prog_OTOOL"
14960fi
14961
14962    if test -n "$ac_tool_prefix"; then
14963  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14964set dummy ${ac_tool_prefix}otool64; ac_word=$2
14965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14966printf %s "checking for $ac_word... " >&6; }
14967if test ${ac_cv_prog_OTOOL64+y}
14968then :
14969  printf %s "(cached) " >&6
14970else $as_nop
14971  if test -n "$OTOOL64"; then
14972  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14973else
14974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14975for as_dir in $PATH
14976do
14977  IFS=$as_save_IFS
14978  case $as_dir in #(((
14979    '') as_dir=./ ;;
14980    */) ;;
14981    *) as_dir=$as_dir/ ;;
14982  esac
14983    for ac_exec_ext in '' $ac_executable_extensions; do
14984  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14985    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14986    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14987    break 2
14988  fi
14989done
14990  done
14991IFS=$as_save_IFS
14992
14993fi
14994fi
14995OTOOL64=$ac_cv_prog_OTOOL64
14996if test -n "$OTOOL64"; then
14997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14998printf "%s\n" "$OTOOL64" >&6; }
14999else
15000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001printf "%s\n" "no" >&6; }
15002fi
15003
15004
15005fi
15006if test -z "$ac_cv_prog_OTOOL64"; then
15007  ac_ct_OTOOL64=$OTOOL64
15008  # Extract the first word of "otool64", so it can be a program name with args.
15009set dummy otool64; ac_word=$2
15010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011printf %s "checking for $ac_word... " >&6; }
15012if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15013then :
15014  printf %s "(cached) " >&6
15015else $as_nop
15016  if test -n "$ac_ct_OTOOL64"; then
15017  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15018else
15019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020for as_dir in $PATH
15021do
15022  IFS=$as_save_IFS
15023  case $as_dir in #(((
15024    '') as_dir=./ ;;
15025    */) ;;
15026    *) as_dir=$as_dir/ ;;
15027  esac
15028    for ac_exec_ext in '' $ac_executable_extensions; do
15029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15030    ac_cv_prog_ac_ct_OTOOL64="otool64"
15031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15032    break 2
15033  fi
15034done
15035  done
15036IFS=$as_save_IFS
15037
15038fi
15039fi
15040ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15041if test -n "$ac_ct_OTOOL64"; then
15042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15043printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15044else
15045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15046printf "%s\n" "no" >&6; }
15047fi
15048
15049  if test "x$ac_ct_OTOOL64" = x; then
15050    OTOOL64=":"
15051  else
15052    case $cross_compiling:$ac_tool_warned in
15053yes:)
15054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15055printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15056ac_tool_warned=yes ;;
15057esac
15058    OTOOL64=$ac_ct_OTOOL64
15059  fi
15060else
15061  OTOOL64="$ac_cv_prog_OTOOL64"
15062fi
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15091printf %s "checking for -single_module linker flag... " >&6; }
15092if test ${lt_cv_apple_cc_single_mod+y}
15093then :
15094  printf %s "(cached) " >&6
15095else $as_nop
15096  lt_cv_apple_cc_single_mod=no
15097      if test -z "$LT_MULTI_MODULE"; then
15098	# By default we will add the -single_module flag. You can override
15099	# by either setting the environment variable LT_MULTI_MODULE
15100	# non-empty at configure time, or by adding -multi_module to the
15101	# link flags.
15102	rm -rf libconftest.dylib*
15103	echo "int foo(void){return 1;}" > conftest.c
15104	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15105-dynamiclib -Wl,-single_module conftest.c" >&5
15106	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15107	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15108        _lt_result=$?
15109	# If there is a non-empty error log, and "single_module"
15110	# appears in it, assume the flag caused a linker warning
15111        if test -s conftest.err && $GREP single_module conftest.err; then
15112	  cat conftest.err >&5
15113	# Otherwise, if the output was created with a 0 exit code from
15114	# the compiler, it worked.
15115	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15116	  lt_cv_apple_cc_single_mod=yes
15117	else
15118	  cat conftest.err >&5
15119	fi
15120	rm -rf libconftest.dylib*
15121	rm -f conftest.*
15122      fi
15123fi
15124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15125printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15126
15127    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15128printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15129if test ${lt_cv_ld_exported_symbols_list+y}
15130then :
15131  printf %s "(cached) " >&6
15132else $as_nop
15133  lt_cv_ld_exported_symbols_list=no
15134      save_LDFLAGS=$LDFLAGS
15135      echo "_main" > conftest.sym
15136      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15137      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h.  */
15139
15140int
15141main (void)
15142{
15143
15144  ;
15145  return 0;
15146}
15147_ACEOF
15148if ac_fn_c_try_link "$LINENO"
15149then :
15150  lt_cv_ld_exported_symbols_list=yes
15151else $as_nop
15152  lt_cv_ld_exported_symbols_list=no
15153fi
15154rm -f core conftest.err conftest.$ac_objext conftest.beam \
15155    conftest$ac_exeext conftest.$ac_ext
15156	LDFLAGS=$save_LDFLAGS
15157
15158fi
15159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15160printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15161
15162    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15163printf %s "checking for -force_load linker flag... " >&6; }
15164if test ${lt_cv_ld_force_load+y}
15165then :
15166  printf %s "(cached) " >&6
15167else $as_nop
15168  lt_cv_ld_force_load=no
15169      cat > conftest.c << _LT_EOF
15170int forced_loaded() { return 2;}
15171_LT_EOF
15172      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15173      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15174      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15175      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15176      echo "$RANLIB libconftest.a" >&5
15177      $RANLIB libconftest.a 2>&5
15178      cat > conftest.c << _LT_EOF
15179int main() { return 0;}
15180_LT_EOF
15181      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15182      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15183      _lt_result=$?
15184      if test -s conftest.err && $GREP force_load conftest.err; then
15185	cat conftest.err >&5
15186      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15187	lt_cv_ld_force_load=yes
15188      else
15189	cat conftest.err >&5
15190      fi
15191        rm -f conftest.err libconftest.a conftest conftest.c
15192        rm -rf conftest.dSYM
15193
15194fi
15195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15196printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15197    case $host_os in
15198    rhapsody* | darwin1.[012])
15199      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15200    darwin1.*)
15201      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15202    darwin*)
15203      case $MACOSX_DEPLOYMENT_TARGET,$host in
15204        10.[012],*|,*powerpc*-darwin[5-8]*)
15205          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15206        *)
15207          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15208      esac
15209    ;;
15210  esac
15211    if test yes = "$lt_cv_apple_cc_single_mod"; then
15212      _lt_dar_single_mod='$single_module'
15213    fi
15214    if test yes = "$lt_cv_ld_exported_symbols_list"; then
15215      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15216    else
15217      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15218    fi
15219    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15220      _lt_dsymutil='~$DSYMUTIL $lib || :'
15221    else
15222      _lt_dsymutil=
15223    fi
15224    ;;
15225  esac
15226
15227# func_munge_path_list VARIABLE PATH
15228# -----------------------------------
15229# VARIABLE is name of variable containing _space_ separated list of
15230# directories to be munged by the contents of PATH, which is string
15231# having a format:
15232# "DIR[:DIR]:"
15233#       string "DIR[ DIR]" will be prepended to VARIABLE
15234# ":DIR[:DIR]"
15235#       string "DIR[ DIR]" will be appended to VARIABLE
15236# "DIRP[:DIRP]::[DIRA:]DIRA"
15237#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15238#       "DIRA[ DIRA]" will be appended to VARIABLE
15239# "DIR[:DIR]"
15240#       VARIABLE will be replaced by "DIR[ DIR]"
15241func_munge_path_list ()
15242{
15243    case x$2 in
15244    x)
15245        ;;
15246    *:)
15247        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15248        ;;
15249    x:*)
15250        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15251        ;;
15252    *::*)
15253        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15254        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15255        ;;
15256    *)
15257        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15258        ;;
15259    esac
15260}
15261
15262ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15263"
15264if test "x$ac_cv_header_dlfcn_h" = xyes
15265then :
15266  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15267
15268fi
15269
15270
15271
15272
15273
15274# Set options
15275
15276
15277
15278        enable_dlopen=no
15279
15280
15281  enable_win32_dll=no
15282
15283
15284            # Check whether --enable-shared was given.
15285if test ${enable_shared+y}
15286then :
15287  enableval=$enable_shared; p=${PACKAGE-default}
15288    case $enableval in
15289    yes) enable_shared=yes ;;
15290    no) enable_shared=no ;;
15291    *)
15292      enable_shared=no
15293      # Look at the argument we got.  We use all the common list separators.
15294      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15295      for pkg in $enableval; do
15296	IFS=$lt_save_ifs
15297	if test "X$pkg" = "X$p"; then
15298	  enable_shared=yes
15299	fi
15300      done
15301      IFS=$lt_save_ifs
15302      ;;
15303    esac
15304else $as_nop
15305  enable_shared=yes
15306fi
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318# Check whether --with-pic was given.
15319if test ${with_pic+y}
15320then :
15321  withval=$with_pic; lt_p=${PACKAGE-default}
15322    case $withval in
15323    yes|no) pic_mode=$withval ;;
15324    *)
15325      pic_mode=default
15326      # Look at the argument we got.  We use all the common list separators.
15327      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15328      for lt_pkg in $withval; do
15329	IFS=$lt_save_ifs
15330	if test "X$lt_pkg" = "X$lt_p"; then
15331	  pic_mode=yes
15332	fi
15333      done
15334      IFS=$lt_save_ifs
15335      ;;
15336    esac
15337else $as_nop
15338  pic_mode=default
15339fi
15340
15341
15342
15343
15344
15345
15346
15347
15348  # Check whether --enable-fast-install was given.
15349if test ${enable_fast_install+y}
15350then :
15351  enableval=$enable_fast_install; p=${PACKAGE-default}
15352    case $enableval in
15353    yes) enable_fast_install=yes ;;
15354    no) enable_fast_install=no ;;
15355    *)
15356      enable_fast_install=no
15357      # Look at the argument we got.  We use all the common list separators.
15358      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15359      for pkg in $enableval; do
15360	IFS=$lt_save_ifs
15361	if test "X$pkg" = "X$p"; then
15362	  enable_fast_install=yes
15363	fi
15364      done
15365      IFS=$lt_save_ifs
15366      ;;
15367    esac
15368else $as_nop
15369  enable_fast_install=yes
15370fi
15371
15372
15373
15374
15375
15376
15377
15378
15379  shared_archive_member_spec=
15380case $host,$enable_shared in
15381power*-*-aix[5-9]*,yes)
15382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15383printf %s "checking which variant of shared library versioning to provide... " >&6; }
15384
15385# Check whether --with-aix-soname was given.
15386if test ${with_aix_soname+y}
15387then :
15388  withval=$with_aix_soname; case $withval in
15389    aix|svr4|both)
15390      ;;
15391    *)
15392      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15393      ;;
15394    esac
15395    lt_cv_with_aix_soname=$with_aix_soname
15396else $as_nop
15397  if test ${lt_cv_with_aix_soname+y}
15398then :
15399  printf %s "(cached) " >&6
15400else $as_nop
15401  lt_cv_with_aix_soname=aix
15402fi
15403
15404    with_aix_soname=$lt_cv_with_aix_soname
15405fi
15406
15407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15408printf "%s\n" "$with_aix_soname" >&6; }
15409  if test aix != "$with_aix_soname"; then
15410    # For the AIX way of multilib, we name the shared archive member
15411    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15412    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15413    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15414    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15415    if test 64 = "${OBJECT_MODE-32}"; then
15416      shared_archive_member_spec=shr_64
15417    else
15418      shared_archive_member_spec=shr
15419    fi
15420  fi
15421  ;;
15422*)
15423  with_aix_soname=aix
15424  ;;
15425esac
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436# This can be used to rebuild libtool when needed
15437LIBTOOL_DEPS=$ltmain
15438
15439# Always use our own libtool.
15440LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471test -z "$LN_S" && LN_S="ln -s"
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486if test -n "${ZSH_VERSION+set}"; then
15487   setopt NO_GLOB_SUBST
15488fi
15489
15490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15491printf %s "checking for objdir... " >&6; }
15492if test ${lt_cv_objdir+y}
15493then :
15494  printf %s "(cached) " >&6
15495else $as_nop
15496  rm -f .libs 2>/dev/null
15497mkdir .libs 2>/dev/null
15498if test -d .libs; then
15499  lt_cv_objdir=.libs
15500else
15501  # MS-DOS does not allow filenames that begin with a dot.
15502  lt_cv_objdir=_libs
15503fi
15504rmdir .libs 2>/dev/null
15505fi
15506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15507printf "%s\n" "$lt_cv_objdir" >&6; }
15508objdir=$lt_cv_objdir
15509
15510
15511
15512
15513
15514printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15515
15516
15517
15518
15519case $host_os in
15520aix3*)
15521  # AIX sometimes has problems with the GCC collect2 program.  For some
15522  # reason, if we set the COLLECT_NAMES environment variable, the problems
15523  # vanish in a puff of smoke.
15524  if test set != "${COLLECT_NAMES+set}"; then
15525    COLLECT_NAMES=
15526    export COLLECT_NAMES
15527  fi
15528  ;;
15529esac
15530
15531# Global variables:
15532ofile=libtool
15533can_build_shared=yes
15534
15535# All known linkers require a '.a' archive for static linking (except MSVC and
15536# ICC, which need '.lib').
15537libext=a
15538
15539with_gnu_ld=$lt_cv_prog_gnu_ld
15540
15541old_CC=$CC
15542old_CFLAGS=$CFLAGS
15543
15544# Set sane defaults for various variables
15545test -z "$CC" && CC=cc
15546test -z "$LTCC" && LTCC=$CC
15547test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15548test -z "$LD" && LD=ld
15549test -z "$ac_objext" && ac_objext=o
15550
15551func_cc_basename $compiler
15552cc_basename=$func_cc_basename_result
15553
15554
15555# Only perform the check for file, if the check method requires it
15556test -z "$MAGIC_CMD" && MAGIC_CMD=file
15557case $deplibs_check_method in
15558file_magic*)
15559  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15560    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15561printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15562if test ${lt_cv_path_MAGIC_CMD+y}
15563then :
15564  printf %s "(cached) " >&6
15565else $as_nop
15566  case $MAGIC_CMD in
15567[\\/*] |  ?:[\\/]*)
15568  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15569  ;;
15570*)
15571  lt_save_MAGIC_CMD=$MAGIC_CMD
15572  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15573  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15574  for ac_dir in $ac_dummy; do
15575    IFS=$lt_save_ifs
15576    test -z "$ac_dir" && ac_dir=.
15577    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15578      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15579      if test -n "$file_magic_test_file"; then
15580	case $deplibs_check_method in
15581	"file_magic "*)
15582	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15583	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15584	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15585	    $EGREP "$file_magic_regex" > /dev/null; then
15586	    :
15587	  else
15588	    cat <<_LT_EOF 1>&2
15589
15590*** Warning: the command libtool uses to detect shared libraries,
15591*** $file_magic_cmd, produces output that libtool cannot recognize.
15592*** The result is that libtool may fail to recognize shared libraries
15593*** as such.  This will affect the creation of libtool libraries that
15594*** depend on shared libraries, but programs linked with such libtool
15595*** libraries will work regardless of this problem.  Nevertheless, you
15596*** may want to report the problem to your system manager and/or to
15597*** bug-libtool@gnu.org
15598
15599_LT_EOF
15600	  fi ;;
15601	esac
15602      fi
15603      break
15604    fi
15605  done
15606  IFS=$lt_save_ifs
15607  MAGIC_CMD=$lt_save_MAGIC_CMD
15608  ;;
15609esac
15610fi
15611
15612MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15613if test -n "$MAGIC_CMD"; then
15614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15615printf "%s\n" "$MAGIC_CMD" >&6; }
15616else
15617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618printf "%s\n" "no" >&6; }
15619fi
15620
15621
15622
15623
15624
15625if test -z "$lt_cv_path_MAGIC_CMD"; then
15626  if test -n "$ac_tool_prefix"; then
15627    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15628printf %s "checking for file... " >&6; }
15629if test ${lt_cv_path_MAGIC_CMD+y}
15630then :
15631  printf %s "(cached) " >&6
15632else $as_nop
15633  case $MAGIC_CMD in
15634[\\/*] |  ?:[\\/]*)
15635  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15636  ;;
15637*)
15638  lt_save_MAGIC_CMD=$MAGIC_CMD
15639  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15640  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15641  for ac_dir in $ac_dummy; do
15642    IFS=$lt_save_ifs
15643    test -z "$ac_dir" && ac_dir=.
15644    if test -f "$ac_dir/file"; then
15645      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15646      if test -n "$file_magic_test_file"; then
15647	case $deplibs_check_method in
15648	"file_magic "*)
15649	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15650	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15651	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15652	    $EGREP "$file_magic_regex" > /dev/null; then
15653	    :
15654	  else
15655	    cat <<_LT_EOF 1>&2
15656
15657*** Warning: the command libtool uses to detect shared libraries,
15658*** $file_magic_cmd, produces output that libtool cannot recognize.
15659*** The result is that libtool may fail to recognize shared libraries
15660*** as such.  This will affect the creation of libtool libraries that
15661*** depend on shared libraries, but programs linked with such libtool
15662*** libraries will work regardless of this problem.  Nevertheless, you
15663*** may want to report the problem to your system manager and/or to
15664*** bug-libtool@gnu.org
15665
15666_LT_EOF
15667	  fi ;;
15668	esac
15669      fi
15670      break
15671    fi
15672  done
15673  IFS=$lt_save_ifs
15674  MAGIC_CMD=$lt_save_MAGIC_CMD
15675  ;;
15676esac
15677fi
15678
15679MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15680if test -n "$MAGIC_CMD"; then
15681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15682printf "%s\n" "$MAGIC_CMD" >&6; }
15683else
15684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15685printf "%s\n" "no" >&6; }
15686fi
15687
15688
15689  else
15690    MAGIC_CMD=:
15691  fi
15692fi
15693
15694  fi
15695  ;;
15696esac
15697
15698# Use C for the default configuration in the libtool script
15699
15700lt_save_CC=$CC
15701ac_ext=c
15702ac_cpp='$CPP $CPPFLAGS'
15703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15705ac_compiler_gnu=$ac_cv_c_compiler_gnu
15706
15707
15708# Source file extension for C test sources.
15709ac_ext=c
15710
15711# Object file extension for compiled C test sources.
15712objext=o
15713objext=$objext
15714
15715# Code to be used in simple compile tests
15716lt_simple_compile_test_code="int some_variable = 0;"
15717
15718# Code to be used in simple link tests
15719lt_simple_link_test_code='int main(){return(0);}'
15720
15721
15722
15723
15724
15725
15726
15727# If no C compiler was specified, use CC.
15728LTCC=${LTCC-"$CC"}
15729
15730# If no C compiler flags were specified, use CFLAGS.
15731LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15732
15733# Allow CC to be a program name with arguments.
15734compiler=$CC
15735
15736# Save the default compiler, since it gets overwritten when the other
15737# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15738compiler_DEFAULT=$CC
15739
15740# save warnings/boilerplate of simple test code
15741ac_outfile=conftest.$ac_objext
15742echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15744_lt_compiler_boilerplate=`cat conftest.err`
15745$RM conftest*
15746
15747ac_outfile=conftest.$ac_objext
15748echo "$lt_simple_link_test_code" >conftest.$ac_ext
15749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15750_lt_linker_boilerplate=`cat conftest.err`
15751$RM -r conftest*
15752
15753
15754## CAVEAT EMPTOR:
15755## There is no encapsulation within the following macros, do not change
15756## the running order or otherwise move them around unless you know exactly
15757## what you are doing...
15758if test -n "$compiler"; then
15759
15760lt_prog_compiler_no_builtin_flag=
15761
15762if test yes = "$GCC"; then
15763  case $cc_basename in
15764  nvcc*)
15765    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15766  *)
15767    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15768  esac
15769
15770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15771printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15772if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15773then :
15774  printf %s "(cached) " >&6
15775else $as_nop
15776  lt_cv_prog_compiler_rtti_exceptions=no
15777   ac_outfile=conftest.$ac_objext
15778   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15779   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15780   # Insert the option either (1) after the last *FLAGS variable, or
15781   # (2) before a word containing "conftest.", or (3) at the end.
15782   # Note that $ac_compile itself does not contain backslashes and begins
15783   # with a dollar sign (not a hyphen), so the echo should work correctly.
15784   # The option is referenced via a variable to avoid confusing sed.
15785   lt_compile=`echo "$ac_compile" | $SED \
15786   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15787   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15788   -e 's:$: $lt_compiler_flag:'`
15789   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15790   (eval "$lt_compile" 2>conftest.err)
15791   ac_status=$?
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   if (exit $ac_status) && test -s "$ac_outfile"; then
15795     # The compiler can only warn and ignore the option if not recognized
15796     # So say no if there are warnings other than the usual output.
15797     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15798     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15799     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15800       lt_cv_prog_compiler_rtti_exceptions=yes
15801     fi
15802   fi
15803   $RM conftest*
15804
15805fi
15806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15807printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15808
15809if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15810    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15811else
15812    :
15813fi
15814
15815fi
15816
15817
15818
15819
15820
15821
15822  lt_prog_compiler_wl=
15823lt_prog_compiler_pic=
15824lt_prog_compiler_static=
15825
15826
15827  if test yes = "$GCC"; then
15828    lt_prog_compiler_wl='-Wl,'
15829    lt_prog_compiler_static='-static'
15830
15831    case $host_os in
15832      aix*)
15833      # All AIX code is PIC.
15834      if test ia64 = "$host_cpu"; then
15835	# AIX 5 now supports IA64 processor
15836	lt_prog_compiler_static='-Bstatic'
15837      fi
15838      lt_prog_compiler_pic='-fPIC'
15839      ;;
15840
15841    amigaos*)
15842      case $host_cpu in
15843      powerpc)
15844            # see comment about AmigaOS4 .so support
15845            lt_prog_compiler_pic='-fPIC'
15846        ;;
15847      m68k)
15848            # FIXME: we need at least 68020 code to build shared libraries, but
15849            # adding the '-m68020' flag to GCC prevents building anything better,
15850            # like '-m68040'.
15851            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15852        ;;
15853      esac
15854      ;;
15855
15856    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15857      # PIC is the default for these OSes.
15858      ;;
15859
15860    mingw* | cygwin* | pw32* | os2* | cegcc*)
15861      # This hack is so that the source file can tell whether it is being
15862      # built for inclusion in a dll (and should export symbols for example).
15863      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15864      # (--disable-auto-import) libraries
15865      lt_prog_compiler_pic='-DDLL_EXPORT'
15866      case $host_os in
15867      os2*)
15868	lt_prog_compiler_static='$wl-static'
15869	;;
15870      esac
15871      ;;
15872
15873    darwin* | rhapsody*)
15874      # PIC is the default on this platform
15875      # Common symbols not allowed in MH_DYLIB files
15876      lt_prog_compiler_pic='-fno-common'
15877      ;;
15878
15879    haiku*)
15880      # PIC is the default for Haiku.
15881      # The "-static" flag exists, but is broken.
15882      lt_prog_compiler_static=
15883      ;;
15884
15885    hpux*)
15886      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15887      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15888      # sets the default TLS model and affects inlining.
15889      case $host_cpu in
15890      hppa*64*)
15891	# +Z the default
15892	;;
15893      *)
15894	lt_prog_compiler_pic='-fPIC'
15895	;;
15896      esac
15897      ;;
15898
15899    interix[3-9]*)
15900      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15901      # Instead, we relocate shared libraries at runtime.
15902      ;;
15903
15904    msdosdjgpp*)
15905      # Just because we use GCC doesn't mean we suddenly get shared libraries
15906      # on systems that don't support them.
15907      lt_prog_compiler_can_build_shared=no
15908      enable_shared=no
15909      ;;
15910
15911    *nto* | *qnx*)
15912      # QNX uses GNU C++, but need to define -shared option too, otherwise
15913      # it will coredump.
15914      lt_prog_compiler_pic='-fPIC -shared'
15915      ;;
15916
15917    sysv4*MP*)
15918      if test -d /usr/nec; then
15919	lt_prog_compiler_pic=-Kconform_pic
15920      fi
15921      ;;
15922
15923    *)
15924      lt_prog_compiler_pic='-fPIC'
15925      ;;
15926    esac
15927
15928    case $cc_basename in
15929    nvcc*) # Cuda Compiler Driver 2.2
15930      lt_prog_compiler_wl='-Xlinker '
15931      if test -n "$lt_prog_compiler_pic"; then
15932        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15933      fi
15934      ;;
15935    esac
15936  else
15937    # PORTME Check for flag to pass linker flags through the system compiler.
15938    case $host_os in
15939    aix*)
15940      lt_prog_compiler_wl='-Wl,'
15941      if test ia64 = "$host_cpu"; then
15942	# AIX 5 now supports IA64 processor
15943	lt_prog_compiler_static='-Bstatic'
15944      else
15945	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15946      fi
15947      ;;
15948
15949    darwin* | rhapsody*)
15950      # PIC is the default on this platform
15951      # Common symbols not allowed in MH_DYLIB files
15952      lt_prog_compiler_pic='-fno-common'
15953      case $cc_basename in
15954      nagfor*)
15955        # NAG Fortran compiler
15956        lt_prog_compiler_wl='-Wl,-Wl,,'
15957        lt_prog_compiler_pic='-PIC'
15958        lt_prog_compiler_static='-Bstatic'
15959        ;;
15960      esac
15961      ;;
15962
15963    mingw* | cygwin* | pw32* | os2* | cegcc*)
15964      # This hack is so that the source file can tell whether it is being
15965      # built for inclusion in a dll (and should export symbols for example).
15966      lt_prog_compiler_pic='-DDLL_EXPORT'
15967      case $host_os in
15968      os2*)
15969	lt_prog_compiler_static='$wl-static'
15970	;;
15971      esac
15972      ;;
15973
15974    hpux9* | hpux10* | hpux11*)
15975      lt_prog_compiler_wl='-Wl,'
15976      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15977      # not for PA HP-UX.
15978      case $host_cpu in
15979      hppa*64*|ia64*)
15980	# +Z the default
15981	;;
15982      *)
15983	lt_prog_compiler_pic='+Z'
15984	;;
15985      esac
15986      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15987      lt_prog_compiler_static='$wl-a ${wl}archive'
15988      ;;
15989
15990    irix5* | irix6* | nonstopux*)
15991      lt_prog_compiler_wl='-Wl,'
15992      # PIC (with -KPIC) is the default.
15993      lt_prog_compiler_static='-non_shared'
15994      ;;
15995
15996    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15997      case $cc_basename in
15998      # old Intel for x86_64, which still supported -KPIC.
15999      ecc*)
16000	lt_prog_compiler_wl='-Wl,'
16001	lt_prog_compiler_pic='-KPIC'
16002	lt_prog_compiler_static='-static'
16003        ;;
16004      # icc used to be incompatible with GCC.
16005      # ICC 10 doesn't accept -KPIC any more.
16006      icc* | ifort*)
16007	lt_prog_compiler_wl='-Wl,'
16008	lt_prog_compiler_pic='-fPIC'
16009	lt_prog_compiler_static='-static'
16010        ;;
16011      # Lahey Fortran 8.1.
16012      lf95*)
16013	lt_prog_compiler_wl='-Wl,'
16014	lt_prog_compiler_pic='--shared'
16015	lt_prog_compiler_static='--static'
16016	;;
16017      nagfor*)
16018	# NAG Fortran compiler
16019	lt_prog_compiler_wl='-Wl,-Wl,,'
16020	lt_prog_compiler_pic='-PIC'
16021	lt_prog_compiler_static='-Bstatic'
16022	;;
16023      tcc*)
16024	# Fabrice Bellard et al's Tiny C Compiler
16025	lt_prog_compiler_wl='-Wl,'
16026	lt_prog_compiler_pic='-fPIC'
16027	lt_prog_compiler_static='-static'
16028	;;
16029      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16030        # Portland Group compilers (*not* the Pentium gcc compiler,
16031	# which looks to be a dead project)
16032	lt_prog_compiler_wl='-Wl,'
16033	lt_prog_compiler_pic='-fpic'
16034	lt_prog_compiler_static='-Bstatic'
16035        ;;
16036      ccc*)
16037        lt_prog_compiler_wl='-Wl,'
16038        # All Alpha code is PIC.
16039        lt_prog_compiler_static='-non_shared'
16040        ;;
16041      xl* | bgxl* | bgf* | mpixl*)
16042	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16043	lt_prog_compiler_wl='-Wl,'
16044	lt_prog_compiler_pic='-qpic'
16045	lt_prog_compiler_static='-qstaticlink'
16046	;;
16047      *)
16048	case `$CC -V 2>&1 | $SED 5q` in
16049	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16050	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16051	  lt_prog_compiler_pic='-KPIC'
16052	  lt_prog_compiler_static='-Bstatic'
16053	  lt_prog_compiler_wl=''
16054	  ;;
16055	*Sun\ F* | *Sun*Fortran*)
16056	  lt_prog_compiler_pic='-KPIC'
16057	  lt_prog_compiler_static='-Bstatic'
16058	  lt_prog_compiler_wl='-Qoption ld '
16059	  ;;
16060	*Sun\ C*)
16061	  # Sun C 5.9
16062	  lt_prog_compiler_pic='-KPIC'
16063	  lt_prog_compiler_static='-Bstatic'
16064	  lt_prog_compiler_wl='-Wl,'
16065	  ;;
16066        *Intel*\ [CF]*Compiler*)
16067	  lt_prog_compiler_wl='-Wl,'
16068	  lt_prog_compiler_pic='-fPIC'
16069	  lt_prog_compiler_static='-static'
16070	  ;;
16071	*Portland\ Group*)
16072	  lt_prog_compiler_wl='-Wl,'
16073	  lt_prog_compiler_pic='-fpic'
16074	  lt_prog_compiler_static='-Bstatic'
16075	  ;;
16076	esac
16077	;;
16078      esac
16079      ;;
16080
16081    newsos6)
16082      lt_prog_compiler_pic='-KPIC'
16083      lt_prog_compiler_static='-Bstatic'
16084      ;;
16085
16086    *nto* | *qnx*)
16087      # QNX uses GNU C++, but need to define -shared option too, otherwise
16088      # it will coredump.
16089      lt_prog_compiler_pic='-fPIC -shared'
16090      ;;
16091
16092    osf3* | osf4* | osf5*)
16093      lt_prog_compiler_wl='-Wl,'
16094      # All OSF/1 code is PIC.
16095      lt_prog_compiler_static='-non_shared'
16096      ;;
16097
16098    rdos*)
16099      lt_prog_compiler_static='-non_shared'
16100      ;;
16101
16102    solaris*)
16103      lt_prog_compiler_pic='-KPIC'
16104      lt_prog_compiler_static='-Bstatic'
16105      case $cc_basename in
16106      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16107	lt_prog_compiler_wl='-Qoption ld ';;
16108      *)
16109	lt_prog_compiler_wl='-Wl,';;
16110      esac
16111      ;;
16112
16113    sunos4*)
16114      lt_prog_compiler_wl='-Qoption ld '
16115      lt_prog_compiler_pic='-PIC'
16116      lt_prog_compiler_static='-Bstatic'
16117      ;;
16118
16119    sysv4 | sysv4.2uw2* | sysv4.3*)
16120      lt_prog_compiler_wl='-Wl,'
16121      lt_prog_compiler_pic='-KPIC'
16122      lt_prog_compiler_static='-Bstatic'
16123      ;;
16124
16125    sysv4*MP*)
16126      if test -d /usr/nec; then
16127	lt_prog_compiler_pic='-Kconform_pic'
16128	lt_prog_compiler_static='-Bstatic'
16129      fi
16130      ;;
16131
16132    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16133      lt_prog_compiler_wl='-Wl,'
16134      lt_prog_compiler_pic='-KPIC'
16135      lt_prog_compiler_static='-Bstatic'
16136      ;;
16137
16138    unicos*)
16139      lt_prog_compiler_wl='-Wl,'
16140      lt_prog_compiler_can_build_shared=no
16141      ;;
16142
16143    uts4*)
16144      lt_prog_compiler_pic='-pic'
16145      lt_prog_compiler_static='-Bstatic'
16146      ;;
16147
16148    *)
16149      lt_prog_compiler_can_build_shared=no
16150      ;;
16151    esac
16152  fi
16153
16154case $host_os in
16155  # For platforms that do not support PIC, -DPIC is meaningless:
16156  *djgpp*)
16157    lt_prog_compiler_pic=
16158    ;;
16159  *)
16160    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16161    ;;
16162esac
16163
16164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16165printf %s "checking for $compiler option to produce PIC... " >&6; }
16166if test ${lt_cv_prog_compiler_pic+y}
16167then :
16168  printf %s "(cached) " >&6
16169else $as_nop
16170  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
16171fi
16172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16173printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16174lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16175
16176#
16177# Check to make sure the PIC flag actually works.
16178#
16179if test -n "$lt_prog_compiler_pic"; then
16180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16181printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16182if test ${lt_cv_prog_compiler_pic_works+y}
16183then :
16184  printf %s "(cached) " >&6
16185else $as_nop
16186  lt_cv_prog_compiler_pic_works=no
16187   ac_outfile=conftest.$ac_objext
16188   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16189   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16190   # Insert the option either (1) after the last *FLAGS variable, or
16191   # (2) before a word containing "conftest.", or (3) at the end.
16192   # Note that $ac_compile itself does not contain backslashes and begins
16193   # with a dollar sign (not a hyphen), so the echo should work correctly.
16194   # The option is referenced via a variable to avoid confusing sed.
16195   lt_compile=`echo "$ac_compile" | $SED \
16196   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16197   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16198   -e 's:$: $lt_compiler_flag:'`
16199   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16200   (eval "$lt_compile" 2>conftest.err)
16201   ac_status=$?
16202   cat conftest.err >&5
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   if (exit $ac_status) && test -s "$ac_outfile"; then
16205     # The compiler can only warn and ignore the option if not recognized
16206     # So say no if there are warnings other than the usual output.
16207     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16208     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16209     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16210       lt_cv_prog_compiler_pic_works=yes
16211     fi
16212   fi
16213   $RM conftest*
16214
16215fi
16216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16217printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16218
16219if test yes = "$lt_cv_prog_compiler_pic_works"; then
16220    case $lt_prog_compiler_pic in
16221     "" | " "*) ;;
16222     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16223     esac
16224else
16225    lt_prog_compiler_pic=
16226     lt_prog_compiler_can_build_shared=no
16227fi
16228
16229fi
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241#
16242# Check to make sure the static flag actually works.
16243#
16244wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16246printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16247if test ${lt_cv_prog_compiler_static_works+y}
16248then :
16249  printf %s "(cached) " >&6
16250else $as_nop
16251  lt_cv_prog_compiler_static_works=no
16252   save_LDFLAGS=$LDFLAGS
16253   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16254   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16255   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16256     # The linker can only warn and ignore the option if not recognized
16257     # So say no if there are warnings
16258     if test -s conftest.err; then
16259       # Append any errors to the config.log.
16260       cat conftest.err 1>&5
16261       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16262       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16263       if diff conftest.exp conftest.er2 >/dev/null; then
16264         lt_cv_prog_compiler_static_works=yes
16265       fi
16266     else
16267       lt_cv_prog_compiler_static_works=yes
16268     fi
16269   fi
16270   $RM -r conftest*
16271   LDFLAGS=$save_LDFLAGS
16272
16273fi
16274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16275printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16276
16277if test yes = "$lt_cv_prog_compiler_static_works"; then
16278    :
16279else
16280    lt_prog_compiler_static=
16281fi
16282
16283
16284
16285
16286
16287
16288
16289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16290printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16291if test ${lt_cv_prog_compiler_c_o+y}
16292then :
16293  printf %s "(cached) " >&6
16294else $as_nop
16295  lt_cv_prog_compiler_c_o=no
16296   $RM -r conftest 2>/dev/null
16297   mkdir conftest
16298   cd conftest
16299   mkdir out
16300   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16301
16302   lt_compiler_flag="-o out/conftest2.$ac_objext"
16303   # Insert the option either (1) after the last *FLAGS variable, or
16304   # (2) before a word containing "conftest.", or (3) at the end.
16305   # Note that $ac_compile itself does not contain backslashes and begins
16306   # with a dollar sign (not a hyphen), so the echo should work correctly.
16307   lt_compile=`echo "$ac_compile" | $SED \
16308   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16309   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16310   -e 's:$: $lt_compiler_flag:'`
16311   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16312   (eval "$lt_compile" 2>out/conftest.err)
16313   ac_status=$?
16314   cat out/conftest.err >&5
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16317   then
16318     # The compiler can only warn and ignore the option if not recognized
16319     # So say no if there are warnings
16320     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16321     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16322     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16323       lt_cv_prog_compiler_c_o=yes
16324     fi
16325   fi
16326   chmod u+w . 2>&5
16327   $RM conftest*
16328   # SGI C++ compiler will create directory out/ii_files/ for
16329   # template instantiation
16330   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16331   $RM out/* && rmdir out
16332   cd ..
16333   $RM -r conftest
16334   $RM conftest*
16335
16336fi
16337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16338printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16339
16340
16341
16342
16343
16344
16345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16346printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16347if test ${lt_cv_prog_compiler_c_o+y}
16348then :
16349  printf %s "(cached) " >&6
16350else $as_nop
16351  lt_cv_prog_compiler_c_o=no
16352   $RM -r conftest 2>/dev/null
16353   mkdir conftest
16354   cd conftest
16355   mkdir out
16356   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16357
16358   lt_compiler_flag="-o out/conftest2.$ac_objext"
16359   # Insert the option either (1) after the last *FLAGS variable, or
16360   # (2) before a word containing "conftest.", or (3) at the end.
16361   # Note that $ac_compile itself does not contain backslashes and begins
16362   # with a dollar sign (not a hyphen), so the echo should work correctly.
16363   lt_compile=`echo "$ac_compile" | $SED \
16364   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16365   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16366   -e 's:$: $lt_compiler_flag:'`
16367   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16368   (eval "$lt_compile" 2>out/conftest.err)
16369   ac_status=$?
16370   cat out/conftest.err >&5
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16373   then
16374     # The compiler can only warn and ignore the option if not recognized
16375     # So say no if there are warnings
16376     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16377     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16378     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16379       lt_cv_prog_compiler_c_o=yes
16380     fi
16381   fi
16382   chmod u+w . 2>&5
16383   $RM conftest*
16384   # SGI C++ compiler will create directory out/ii_files/ for
16385   # template instantiation
16386   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16387   $RM out/* && rmdir out
16388   cd ..
16389   $RM -r conftest
16390   $RM conftest*
16391
16392fi
16393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16394printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16395
16396
16397
16398
16399hard_links=nottested
16400if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16401  # do not overwrite the value of need_locks provided by the user
16402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16403printf %s "checking if we can lock with hard links... " >&6; }
16404  hard_links=yes
16405  $RM conftest*
16406  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16407  touch conftest.a
16408  ln conftest.a conftest.b 2>&5 || hard_links=no
16409  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16411printf "%s\n" "$hard_links" >&6; }
16412  if test no = "$hard_links"; then
16413    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16414printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16415    need_locks=warn
16416  fi
16417else
16418  need_locks=no
16419fi
16420
16421
16422
16423
16424
16425
16426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16427printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16428
16429  runpath_var=
16430  allow_undefined_flag=
16431  always_export_symbols=no
16432  archive_cmds=
16433  archive_expsym_cmds=
16434  compiler_needs_object=no
16435  enable_shared_with_static_runtimes=no
16436  export_dynamic_flag_spec=
16437  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16438  hardcode_automatic=no
16439  hardcode_direct=no
16440  hardcode_direct_absolute=no
16441  hardcode_libdir_flag_spec=
16442  hardcode_libdir_separator=
16443  hardcode_minus_L=no
16444  hardcode_shlibpath_var=unsupported
16445  inherit_rpath=no
16446  link_all_deplibs=unknown
16447  module_cmds=
16448  module_expsym_cmds=
16449  old_archive_from_new_cmds=
16450  old_archive_from_expsyms_cmds=
16451  thread_safe_flag_spec=
16452  whole_archive_flag_spec=
16453  # include_expsyms should be a list of space-separated symbols to be *always*
16454  # included in the symbol list
16455  include_expsyms=
16456  # exclude_expsyms can be an extended regexp of symbols to exclude
16457  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16458  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16459  # as well as any symbol that contains 'd'.
16460  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16461  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16462  # platforms (ab)use it in PIC code, but their linkers get confused if
16463  # the symbol is explicitly referenced.  Since portable code cannot
16464  # rely on this symbol name, it's probably fine to never include it in
16465  # preloaded symbol tables.
16466  # Exclude shared library initialization/finalization symbols.
16467  extract_expsyms_cmds=
16468
16469  case $host_os in
16470  cygwin* | mingw* | pw32* | cegcc*)
16471    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16472    # When not using gcc, we currently assume that we are using
16473    # Microsoft Visual C++ or Intel C++ Compiler.
16474    if test yes != "$GCC"; then
16475      with_gnu_ld=no
16476    fi
16477    ;;
16478  interix*)
16479    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16480    with_gnu_ld=yes
16481    ;;
16482  openbsd* | bitrig*)
16483    with_gnu_ld=no
16484    ;;
16485  esac
16486
16487  ld_shlibs=yes
16488
16489  # On some targets, GNU ld is compatible enough with the native linker
16490  # that we're better off using the native interface for both.
16491  lt_use_gnu_ld_interface=no
16492  if test yes = "$with_gnu_ld"; then
16493    case $host_os in
16494      aix*)
16495	# The AIX port of GNU ld has always aspired to compatibility
16496	# with the native linker.  However, as the warning in the GNU ld
16497	# block says, versions before 2.19.5* couldn't really create working
16498	# shared libraries, regardless of the interface used.
16499	case `$LD -v 2>&1` in
16500	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16501	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16502	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16503	  *)
16504	    lt_use_gnu_ld_interface=yes
16505	    ;;
16506	esac
16507	;;
16508      *)
16509	lt_use_gnu_ld_interface=yes
16510	;;
16511    esac
16512  fi
16513
16514  if test yes = "$lt_use_gnu_ld_interface"; then
16515    # If archive_cmds runs LD, not CC, wlarc should be empty
16516    wlarc='$wl'
16517
16518    # Set some defaults for GNU ld with shared library support. These
16519    # are reset later if shared libraries are not supported. Putting them
16520    # here allows them to be overridden if necessary.
16521    runpath_var=LD_RUN_PATH
16522    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16523    export_dynamic_flag_spec='$wl--export-dynamic'
16524    # ancient GNU ld didn't support --whole-archive et. al.
16525    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16526      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16527    else
16528      whole_archive_flag_spec=
16529    fi
16530    supports_anon_versioning=no
16531    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16532      *GNU\ gold*) supports_anon_versioning=yes ;;
16533      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16534      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16535      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16536      *\ 2.11.*) ;; # other 2.11 versions
16537      *) supports_anon_versioning=yes ;;
16538    esac
16539
16540    # See if GNU ld supports shared libraries.
16541    case $host_os in
16542    aix[3-9]*)
16543      # On AIX/PPC, the GNU linker is very broken
16544      if test ia64 != "$host_cpu"; then
16545	ld_shlibs=no
16546	cat <<_LT_EOF 1>&2
16547
16548*** Warning: the GNU linker, at least up to release 2.19, is reported
16549*** to be unable to reliably create shared libraries on AIX.
16550*** Therefore, libtool is disabling shared libraries support.  If you
16551*** really care for shared libraries, you may want to install binutils
16552*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16553*** You will then need to restart the configuration process.
16554
16555_LT_EOF
16556      fi
16557      ;;
16558
16559    amigaos*)
16560      case $host_cpu in
16561      powerpc)
16562            # see comment about AmigaOS4 .so support
16563            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16564            archive_expsym_cmds=''
16565        ;;
16566      m68k)
16567            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)'
16568            hardcode_libdir_flag_spec='-L$libdir'
16569            hardcode_minus_L=yes
16570        ;;
16571      esac
16572      ;;
16573
16574    beos*)
16575      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16576	allow_undefined_flag=unsupported
16577	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16578	# support --undefined.  This deserves some investigation.  FIXME
16579	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16580      else
16581	ld_shlibs=no
16582      fi
16583      ;;
16584
16585    cygwin* | mingw* | pw32* | cegcc*)
16586      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16587      # as there is no search path for DLLs.
16588      hardcode_libdir_flag_spec='-L$libdir'
16589      export_dynamic_flag_spec='$wl--export-all-symbols'
16590      allow_undefined_flag=unsupported
16591      always_export_symbols=no
16592      enable_shared_with_static_runtimes=yes
16593      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'
16594      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16595
16596      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16597        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16598	# If the export-symbols file already is a .def file, use it as
16599	# is; otherwise, prepend EXPORTS...
16600	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16601          cp $export_symbols $output_objdir/$soname.def;
16602        else
16603          echo EXPORTS > $output_objdir/$soname.def;
16604          cat $export_symbols >> $output_objdir/$soname.def;
16605        fi~
16606        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16607      else
16608	ld_shlibs=no
16609      fi
16610      ;;
16611
16612    haiku*)
16613      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16614      link_all_deplibs=yes
16615      ;;
16616
16617    os2*)
16618      hardcode_libdir_flag_spec='-L$libdir'
16619      hardcode_minus_L=yes
16620      allow_undefined_flag=unsupported
16621      shrext_cmds=.dll
16622      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16623	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16624	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16625	$ECHO EXPORTS >> $output_objdir/$libname.def~
16626	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16627	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16628	emximp -o $lib $output_objdir/$libname.def'
16629      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16630	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16631	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16632	$ECHO EXPORTS >> $output_objdir/$libname.def~
16633	prefix_cmds="$SED"~
16634	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16635	  prefix_cmds="$prefix_cmds -e 1d";
16636	fi~
16637	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16638	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16639	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16640	emximp -o $lib $output_objdir/$libname.def'
16641      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16642      enable_shared_with_static_runtimes=yes
16643      file_list_spec='@'
16644      ;;
16645
16646    interix[3-9]*)
16647      hardcode_direct=no
16648      hardcode_shlibpath_var=no
16649      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16650      export_dynamic_flag_spec='$wl-E'
16651      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16652      # Instead, shared libraries are loaded at an image base (0x10000000 by
16653      # default) and relocated if they conflict, which is a slow very memory
16654      # consuming and fragmenting process.  To avoid this, we pick a random,
16655      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16656      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16657      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16658      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'
16659      ;;
16660
16661    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16662      tmp_diet=no
16663      if test linux-dietlibc = "$host_os"; then
16664	case $cc_basename in
16665	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16666	esac
16667      fi
16668      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16669	 && test no = "$tmp_diet"
16670      then
16671	tmp_addflag=' $pic_flag'
16672	tmp_sharedflag='-shared'
16673	case $cc_basename,$host_cpu in
16674        pgcc*)				# Portland Group C compiler
16675	  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'
16676	  tmp_addflag=' $pic_flag'
16677	  ;;
16678	pgf77* | pgf90* | pgf95* | pgfortran*)
16679					# Portland Group f77 and f90 compilers
16680	  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'
16681	  tmp_addflag=' $pic_flag -Mnomain' ;;
16682	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16683	  tmp_addflag=' -i_dynamic' ;;
16684	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16685	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16686	ifc* | ifort*)			# Intel Fortran compiler
16687	  tmp_addflag=' -nofor_main' ;;
16688	lf95*)				# Lahey Fortran 8.1
16689	  whole_archive_flag_spec=
16690	  tmp_sharedflag='--shared' ;;
16691        nagfor*)                        # NAGFOR 5.3
16692          tmp_sharedflag='-Wl,-shared' ;;
16693	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16694	  tmp_sharedflag='-qmkshrobj'
16695	  tmp_addflag= ;;
16696	nvcc*)	# Cuda Compiler Driver 2.2
16697	  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'
16698	  compiler_needs_object=yes
16699	  ;;
16700	esac
16701	case `$CC -V 2>&1 | $SED 5q` in
16702	*Sun\ C*)			# Sun C 5.9
16703	  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'
16704	  compiler_needs_object=yes
16705	  tmp_sharedflag='-G' ;;
16706	*Sun\ F*)			# Sun Fortran 8.3
16707	  tmp_sharedflag='-G' ;;
16708	esac
16709	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16710
16711        if test yes = "$supports_anon_versioning"; then
16712          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16713            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16714            echo "local: *; };" >> $output_objdir/$libname.ver~
16715            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16716        fi
16717
16718	case $cc_basename in
16719	tcc*)
16720	  export_dynamic_flag_spec='-rdynamic'
16721	  ;;
16722	xlf* | bgf* | bgxlf* | mpixlf*)
16723	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16724	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16725	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16726	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16727	  if test yes = "$supports_anon_versioning"; then
16728	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16729              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16730              echo "local: *; };" >> $output_objdir/$libname.ver~
16731              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16732	  fi
16733	  ;;
16734	esac
16735      else
16736        ld_shlibs=no
16737      fi
16738      ;;
16739
16740    netbsd*)
16741      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16742	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16743	wlarc=
16744      else
16745	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16746	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16747      fi
16748      ;;
16749
16750    solaris*)
16751      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16752	ld_shlibs=no
16753	cat <<_LT_EOF 1>&2
16754
16755*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16756*** create shared libraries on Solaris systems.  Therefore, libtool
16757*** is disabling shared libraries support.  We urge you to upgrade GNU
16758*** binutils to release 2.9.1 or newer.  Another option is to modify
16759*** your PATH or compiler configuration so that the native linker is
16760*** used, and then restart.
16761
16762_LT_EOF
16763      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16764	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16765	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16766      else
16767	ld_shlibs=no
16768      fi
16769      ;;
16770
16771    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16772      case `$LD -v 2>&1` in
16773        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16774	ld_shlibs=no
16775	cat <<_LT_EOF 1>&2
16776
16777*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16778*** reliably create shared libraries on SCO systems.  Therefore, libtool
16779*** is disabling shared libraries support.  We urge you to upgrade GNU
16780*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16781*** your PATH or compiler configuration so that the native linker is
16782*** used, and then restart.
16783
16784_LT_EOF
16785	;;
16786	*)
16787	  # For security reasons, it is highly recommended that you always
16788	  # use absolute paths for naming shared libraries, and exclude the
16789	  # DT_RUNPATH tag from executables and libraries.  But doing so
16790	  # requires that you compile everything twice, which is a pain.
16791	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16792	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16793	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16794	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16795	  else
16796	    ld_shlibs=no
16797	  fi
16798	;;
16799      esac
16800      ;;
16801
16802    sunos4*)
16803      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16804      wlarc=
16805      hardcode_direct=yes
16806      hardcode_shlibpath_var=no
16807      ;;
16808
16809    *)
16810      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16811	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16812	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16813      else
16814	ld_shlibs=no
16815      fi
16816      ;;
16817    esac
16818
16819    if test no = "$ld_shlibs"; then
16820      runpath_var=
16821      hardcode_libdir_flag_spec=
16822      export_dynamic_flag_spec=
16823      whole_archive_flag_spec=
16824    fi
16825  else
16826    # PORTME fill in a description of your system's linker (not GNU ld)
16827    case $host_os in
16828    aix3*)
16829      allow_undefined_flag=unsupported
16830      always_export_symbols=yes
16831      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'
16832      # Note: this linker hardcodes the directories in LIBPATH if there
16833      # are no directories specified by -L.
16834      hardcode_minus_L=yes
16835      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16836	# Neither direct hardcoding nor static linking is supported with a
16837	# broken collect2.
16838	hardcode_direct=unsupported
16839      fi
16840      ;;
16841
16842    aix[4-9]*)
16843      if test ia64 = "$host_cpu"; then
16844	# On IA64, the linker does run time linking by default, so we don't
16845	# have to do anything special.
16846	aix_use_runtimelinking=no
16847	exp_sym_flag='-Bexport'
16848	no_entry_flag=
16849      else
16850	# If we're using GNU nm, then we don't want the "-C" option.
16851	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16852	# Without the "-l" option, or with the "-B" option, AIX nm treats
16853	# weak defined symbols like other global defined symbols, whereas
16854	# GNU nm marks them as "W".
16855	# While the 'weak' keyword is ignored in the Export File, we need
16856	# it in the Import File for the 'aix-soname' feature, so we have
16857	# to replace the "-B" option with "-P" for AIX nm.
16858	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16859	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16860	else
16861	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16862	fi
16863	aix_use_runtimelinking=no
16864
16865	# Test if we are trying to use run time linking or normal
16866	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16867	# have runtime linking enabled, and use it for executables.
16868	# For shared libraries, we enable/disable runtime linking
16869	# depending on the kind of the shared library created -
16870	# when "with_aix_soname,aix_use_runtimelinking" is:
16871	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16872	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16873	#            lib.a           static archive
16874	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16875	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16876	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16877	#            lib.a(lib.so.V) shared, rtl:no
16878	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16879	#            lib.a           static archive
16880	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16881	  for ld_flag in $LDFLAGS; do
16882	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16883	    aix_use_runtimelinking=yes
16884	    break
16885	  fi
16886	  done
16887	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16888	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16889	    # so we don't have lib.a shared libs to link our executables.
16890	    # We have to force runtime linking in this case.
16891	    aix_use_runtimelinking=yes
16892	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16893	  fi
16894	  ;;
16895	esac
16896
16897	exp_sym_flag='-bexport'
16898	no_entry_flag='-bnoentry'
16899      fi
16900
16901      # When large executables or shared objects are built, AIX ld can
16902      # have problems creating the table of contents.  If linking a library
16903      # or program results in "error TOC overflow" add -mminimal-toc to
16904      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16905      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16906
16907      archive_cmds=''
16908      hardcode_direct=yes
16909      hardcode_direct_absolute=yes
16910      hardcode_libdir_separator=':'
16911      link_all_deplibs=yes
16912      file_list_spec='$wl-f,'
16913      case $with_aix_soname,$aix_use_runtimelinking in
16914      aix,*) ;; # traditional, no import file
16915      svr4,* | *,yes) # use import file
16916	# The Import File defines what to hardcode.
16917	hardcode_direct=no
16918	hardcode_direct_absolute=no
16919	;;
16920      esac
16921
16922      if test yes = "$GCC"; then
16923	case $host_os in aix4.[012]|aix4.[012].*)
16924	# We only want to do this on AIX 4.2 and lower, the check
16925	# below for broken collect2 doesn't work under 4.3+
16926	  collect2name=`$CC -print-prog-name=collect2`
16927	  if test -f "$collect2name" &&
16928	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16929	  then
16930	  # We have reworked collect2
16931	  :
16932	  else
16933	  # We have old collect2
16934	  hardcode_direct=unsupported
16935	  # It fails to find uninstalled libraries when the uninstalled
16936	  # path is not listed in the libpath.  Setting hardcode_minus_L
16937	  # to unsupported forces relinking
16938	  hardcode_minus_L=yes
16939	  hardcode_libdir_flag_spec='-L$libdir'
16940	  hardcode_libdir_separator=
16941	  fi
16942	  ;;
16943	esac
16944	shared_flag='-shared'
16945	if test yes = "$aix_use_runtimelinking"; then
16946	  shared_flag="$shared_flag "'$wl-G'
16947	fi
16948	# Need to ensure runtime linking is disabled for the traditional
16949	# shared library, or the linker may eventually find shared libraries
16950	# /with/ Import File - we do not want to mix them.
16951	shared_flag_aix='-shared'
16952	shared_flag_svr4='-shared $wl-G'
16953      else
16954	# not using gcc
16955	if test ia64 = "$host_cpu"; then
16956	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16957	# chokes on -Wl,-G. The following line is correct:
16958	  shared_flag='-G'
16959	else
16960	  if test yes = "$aix_use_runtimelinking"; then
16961	    shared_flag='$wl-G'
16962	  else
16963	    shared_flag='$wl-bM:SRE'
16964	  fi
16965	  shared_flag_aix='$wl-bM:SRE'
16966	  shared_flag_svr4='$wl-G'
16967	fi
16968      fi
16969
16970      export_dynamic_flag_spec='$wl-bexpall'
16971      # It seems that -bexpall does not export symbols beginning with
16972      # underscore (_), so it is better to generate a list of symbols to export.
16973      always_export_symbols=yes
16974      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16975	# Warning - without using the other runtime loading flags (-brtl),
16976	# -berok will link without error, but may produce a broken library.
16977	allow_undefined_flag='-berok'
16978        # Determine the default libpath from the value encoded in an
16979        # empty executable.
16980        if test set = "${lt_cv_aix_libpath+set}"; then
16981  aix_libpath=$lt_cv_aix_libpath
16982else
16983  if test ${lt_cv_aix_libpath_+y}
16984then :
16985  printf %s "(cached) " >&6
16986else $as_nop
16987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988/* end confdefs.h.  */
16989
16990int
16991main (void)
16992{
16993
16994  ;
16995  return 0;
16996}
16997_ACEOF
16998if ac_fn_c_try_link "$LINENO"
16999then :
17000
17001  lt_aix_libpath_sed='
17002      /Import File Strings/,/^$/ {
17003	  /^0/ {
17004	      s/^0  *\([^ ]*\) *$/\1/
17005	      p
17006	  }
17007      }'
17008  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17009  # Check for a 64-bit object if we didn't find anything.
17010  if test -z "$lt_cv_aix_libpath_"; then
17011    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17012  fi
17013fi
17014rm -f core conftest.err conftest.$ac_objext conftest.beam \
17015    conftest$ac_exeext conftest.$ac_ext
17016  if test -z "$lt_cv_aix_libpath_"; then
17017    lt_cv_aix_libpath_=/usr/lib:/lib
17018  fi
17019
17020fi
17021
17022  aix_libpath=$lt_cv_aix_libpath_
17023fi
17024
17025        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17026        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
17027      else
17028	if test ia64 = "$host_cpu"; then
17029	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17030	  allow_undefined_flag="-z nodefs"
17031	  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"
17032	else
17033	 # Determine the default libpath from the value encoded in an
17034	 # empty executable.
17035	 if test set = "${lt_cv_aix_libpath+set}"; then
17036  aix_libpath=$lt_cv_aix_libpath
17037else
17038  if test ${lt_cv_aix_libpath_+y}
17039then :
17040  printf %s "(cached) " >&6
17041else $as_nop
17042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043/* end confdefs.h.  */
17044
17045int
17046main (void)
17047{
17048
17049  ;
17050  return 0;
17051}
17052_ACEOF
17053if ac_fn_c_try_link "$LINENO"
17054then :
17055
17056  lt_aix_libpath_sed='
17057      /Import File Strings/,/^$/ {
17058	  /^0/ {
17059	      s/^0  *\([^ ]*\) *$/\1/
17060	      p
17061	  }
17062      }'
17063  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17064  # Check for a 64-bit object if we didn't find anything.
17065  if test -z "$lt_cv_aix_libpath_"; then
17066    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17067  fi
17068fi
17069rm -f core conftest.err conftest.$ac_objext conftest.beam \
17070    conftest$ac_exeext conftest.$ac_ext
17071  if test -z "$lt_cv_aix_libpath_"; then
17072    lt_cv_aix_libpath_=/usr/lib:/lib
17073  fi
17074
17075fi
17076
17077  aix_libpath=$lt_cv_aix_libpath_
17078fi
17079
17080	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17081	  # Warning - without using the other run time loading flags,
17082	  # -berok will link without error, but may produce a broken library.
17083	  no_undefined_flag=' $wl-bernotok'
17084	  allow_undefined_flag=' $wl-berok'
17085	  if test yes = "$with_gnu_ld"; then
17086	    # We only use this code for GNU lds that support --whole-archive.
17087	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17088	  else
17089	    # Exported symbols can be pulled into shared objects from archives
17090	    whole_archive_flag_spec='$convenience'
17091	  fi
17092	  archive_cmds_need_lc=yes
17093	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17094	  # -brtl affects multiple linker settings, -berok does not and is overridden later
17095	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17096	  if test svr4 != "$with_aix_soname"; then
17097	    # This is similar to how AIX traditionally builds its shared libraries.
17098	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17099	  fi
17100	  if test aix != "$with_aix_soname"; then
17101	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17102	  else
17103	    # used by -dlpreopen to get the symbols
17104	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17105	  fi
17106	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17107	fi
17108      fi
17109      ;;
17110
17111    amigaos*)
17112      case $host_cpu in
17113      powerpc)
17114            # see comment about AmigaOS4 .so support
17115            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17116            archive_expsym_cmds=''
17117        ;;
17118      m68k)
17119            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)'
17120            hardcode_libdir_flag_spec='-L$libdir'
17121            hardcode_minus_L=yes
17122        ;;
17123      esac
17124      ;;
17125
17126    bsdi[45]*)
17127      export_dynamic_flag_spec=-rdynamic
17128      ;;
17129
17130    cygwin* | mingw* | pw32* | cegcc*)
17131      # When not using gcc, we currently assume that we are using
17132      # Microsoft Visual C++ or Intel C++ Compiler.
17133      # hardcode_libdir_flag_spec is actually meaningless, as there is
17134      # no search path for DLLs.
17135      case $cc_basename in
17136      cl* | icl*)
17137	# Native MSVC or ICC
17138	hardcode_libdir_flag_spec=' '
17139	allow_undefined_flag=unsupported
17140	always_export_symbols=yes
17141	file_list_spec='@'
17142	# Tell ltmain to make .lib files, not .a files.
17143	libext=lib
17144	# Tell ltmain to make .dll files, not .so files.
17145	shrext_cmds=.dll
17146	# FIXME: Setting linknames here is a bad hack.
17147	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17148	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17149            cp "$export_symbols" "$output_objdir/$soname.def";
17150            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17151          else
17152            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17153          fi~
17154          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17155          linknames='
17156	# The linker will not automatically build a static lib if we build a DLL.
17157	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17158	enable_shared_with_static_runtimes=yes
17159	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17160	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17161	# Don't use ranlib
17162	old_postinstall_cmds='chmod 644 $oldlib'
17163	postlink_cmds='lt_outputfile="@OUTPUT@"~
17164          lt_tool_outputfile="@TOOL_OUTPUT@"~
17165          case $lt_outputfile in
17166            *.exe|*.EXE) ;;
17167            *)
17168              lt_outputfile=$lt_outputfile.exe
17169              lt_tool_outputfile=$lt_tool_outputfile.exe
17170              ;;
17171          esac~
17172          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17173            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17174            $RM "$lt_outputfile.manifest";
17175          fi'
17176	;;
17177      *)
17178	# Assume MSVC and ICC wrapper
17179	hardcode_libdir_flag_spec=' '
17180	allow_undefined_flag=unsupported
17181	# Tell ltmain to make .lib files, not .a files.
17182	libext=lib
17183	# Tell ltmain to make .dll files, not .so files.
17184	shrext_cmds=.dll
17185	# FIXME: Setting linknames here is a bad hack.
17186	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17187	# The linker will automatically build a .lib file if we build a DLL.
17188	old_archive_from_new_cmds='true'
17189	# FIXME: Should let the user specify the lib program.
17190	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17191	enable_shared_with_static_runtimes=yes
17192	;;
17193      esac
17194      ;;
17195
17196    darwin* | rhapsody*)
17197
17198
17199  archive_cmds_need_lc=no
17200  hardcode_direct=no
17201  hardcode_automatic=yes
17202  hardcode_shlibpath_var=unsupported
17203  if test yes = "$lt_cv_ld_force_load"; then
17204    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\"`'
17205
17206  else
17207    whole_archive_flag_spec=''
17208  fi
17209  link_all_deplibs=yes
17210  allow_undefined_flag=$_lt_dar_allow_undefined
17211  case $cc_basename in
17212     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17213     *) _lt_dar_can_shared=$GCC ;;
17214  esac
17215  if test yes = "$_lt_dar_can_shared"; then
17216    output_verbose_link_cmd=func_echo_all
17217    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17218    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17219    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"
17220    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"
17221
17222  else
17223  ld_shlibs=no
17224  fi
17225
17226      ;;
17227
17228    dgux*)
17229      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17230      hardcode_libdir_flag_spec='-L$libdir'
17231      hardcode_shlibpath_var=no
17232      ;;
17233
17234    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17235    # support.  Future versions do this automatically, but an explicit c++rt0.o
17236    # does not break anything, and helps significantly (at the cost of a little
17237    # extra space).
17238    freebsd2.2*)
17239      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17240      hardcode_libdir_flag_spec='-R$libdir'
17241      hardcode_direct=yes
17242      hardcode_shlibpath_var=no
17243      ;;
17244
17245    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17246    freebsd2.*)
17247      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17248      hardcode_direct=yes
17249      hardcode_minus_L=yes
17250      hardcode_shlibpath_var=no
17251      ;;
17252
17253    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17254    freebsd* | dragonfly* | midnightbsd*)
17255      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17256      hardcode_libdir_flag_spec='-R$libdir'
17257      hardcode_direct=yes
17258      hardcode_shlibpath_var=no
17259      ;;
17260
17261    hpux9*)
17262      if test yes = "$GCC"; then
17263	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17264      else
17265	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17266      fi
17267      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17268      hardcode_libdir_separator=:
17269      hardcode_direct=yes
17270
17271      # hardcode_minus_L: Not really in the search PATH,
17272      # but as the default location of the library.
17273      hardcode_minus_L=yes
17274      export_dynamic_flag_spec='$wl-E'
17275      ;;
17276
17277    hpux10*)
17278      if test yes,no = "$GCC,$with_gnu_ld"; then
17279	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17280      else
17281	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17282      fi
17283      if test no = "$with_gnu_ld"; then
17284	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17285	hardcode_libdir_separator=:
17286	hardcode_direct=yes
17287	hardcode_direct_absolute=yes
17288	export_dynamic_flag_spec='$wl-E'
17289	# hardcode_minus_L: Not really in the search PATH,
17290	# but as the default location of the library.
17291	hardcode_minus_L=yes
17292      fi
17293      ;;
17294
17295    hpux11*)
17296      if test yes,no = "$GCC,$with_gnu_ld"; then
17297	case $host_cpu in
17298	hppa*64*)
17299	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17300	  ;;
17301	ia64*)
17302	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17303	  ;;
17304	*)
17305	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17306	  ;;
17307	esac
17308      else
17309	case $host_cpu in
17310	hppa*64*)
17311	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17312	  ;;
17313	ia64*)
17314	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17315	  ;;
17316	*)
17317
17318	  # Older versions of the 11.00 compiler do not understand -b yet
17319	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17320	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17321printf %s "checking if $CC understands -b... " >&6; }
17322if test ${lt_cv_prog_compiler__b+y}
17323then :
17324  printf %s "(cached) " >&6
17325else $as_nop
17326  lt_cv_prog_compiler__b=no
17327   save_LDFLAGS=$LDFLAGS
17328   LDFLAGS="$LDFLAGS -b"
17329   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17330   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17331     # The linker can only warn and ignore the option if not recognized
17332     # So say no if there are warnings
17333     if test -s conftest.err; then
17334       # Append any errors to the config.log.
17335       cat conftest.err 1>&5
17336       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17337       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17338       if diff conftest.exp conftest.er2 >/dev/null; then
17339         lt_cv_prog_compiler__b=yes
17340       fi
17341     else
17342       lt_cv_prog_compiler__b=yes
17343     fi
17344   fi
17345   $RM -r conftest*
17346   LDFLAGS=$save_LDFLAGS
17347
17348fi
17349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17350printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17351
17352if test yes = "$lt_cv_prog_compiler__b"; then
17353    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17354else
17355    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17356fi
17357
17358	  ;;
17359	esac
17360      fi
17361      if test no = "$with_gnu_ld"; then
17362	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17363	hardcode_libdir_separator=:
17364
17365	case $host_cpu in
17366	hppa*64*|ia64*)
17367	  hardcode_direct=no
17368	  hardcode_shlibpath_var=no
17369	  ;;
17370	*)
17371	  hardcode_direct=yes
17372	  hardcode_direct_absolute=yes
17373	  export_dynamic_flag_spec='$wl-E'
17374
17375	  # hardcode_minus_L: Not really in the search PATH,
17376	  # but as the default location of the library.
17377	  hardcode_minus_L=yes
17378	  ;;
17379	esac
17380      fi
17381      ;;
17382
17383    irix5* | irix6* | nonstopux*)
17384      if test yes = "$GCC"; then
17385	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'
17386	# Try to use the -exported_symbol ld option, if it does not
17387	# work, assume that -exports_file does not work either and
17388	# implicitly export all symbols.
17389	# This should be the same for all languages, so no per-tag cache variable.
17390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17391printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17392if test ${lt_cv_irix_exported_symbol+y}
17393then :
17394  printf %s "(cached) " >&6
17395else $as_nop
17396  save_LDFLAGS=$LDFLAGS
17397	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17398	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17399/* end confdefs.h.  */
17400int foo (void) { return 0; }
17401_ACEOF
17402if ac_fn_c_try_link "$LINENO"
17403then :
17404  lt_cv_irix_exported_symbol=yes
17405else $as_nop
17406  lt_cv_irix_exported_symbol=no
17407fi
17408rm -f core conftest.err conftest.$ac_objext conftest.beam \
17409    conftest$ac_exeext conftest.$ac_ext
17410           LDFLAGS=$save_LDFLAGS
17411fi
17412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17413printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17414	if test yes = "$lt_cv_irix_exported_symbol"; then
17415          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'
17416	fi
17417      else
17418	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'
17419	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'
17420      fi
17421      archive_cmds_need_lc='no'
17422      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17423      hardcode_libdir_separator=:
17424      inherit_rpath=yes
17425      link_all_deplibs=yes
17426      ;;
17427
17428    linux*)
17429      case $cc_basename in
17430      tcc*)
17431	# Fabrice Bellard et al's Tiny C Compiler
17432	ld_shlibs=yes
17433	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17434	;;
17435      esac
17436      ;;
17437
17438    netbsd*)
17439      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17440	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17441      else
17442	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17443      fi
17444      hardcode_libdir_flag_spec='-R$libdir'
17445      hardcode_direct=yes
17446      hardcode_shlibpath_var=no
17447      ;;
17448
17449    newsos6)
17450      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451      hardcode_direct=yes
17452      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17453      hardcode_libdir_separator=:
17454      hardcode_shlibpath_var=no
17455      ;;
17456
17457    *nto* | *qnx*)
17458      ;;
17459
17460    openbsd* | bitrig*)
17461      if test -f /usr/libexec/ld.so; then
17462	hardcode_direct=yes
17463	hardcode_shlibpath_var=no
17464	hardcode_direct_absolute=yes
17465	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17466	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17467	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17468	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17469	  export_dynamic_flag_spec='$wl-E'
17470	else
17471	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17472	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17473	fi
17474      else
17475	ld_shlibs=no
17476      fi
17477      ;;
17478
17479    os2*)
17480      hardcode_libdir_flag_spec='-L$libdir'
17481      hardcode_minus_L=yes
17482      allow_undefined_flag=unsupported
17483      shrext_cmds=.dll
17484      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17485	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17486	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17487	$ECHO EXPORTS >> $output_objdir/$libname.def~
17488	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17489	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17490	emximp -o $lib $output_objdir/$libname.def'
17491      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17492	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17493	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17494	$ECHO EXPORTS >> $output_objdir/$libname.def~
17495	prefix_cmds="$SED"~
17496	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17497	  prefix_cmds="$prefix_cmds -e 1d";
17498	fi~
17499	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17500	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17501	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17502	emximp -o $lib $output_objdir/$libname.def'
17503      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17504      enable_shared_with_static_runtimes=yes
17505      file_list_spec='@'
17506      ;;
17507
17508    osf3*)
17509      if test yes = "$GCC"; then
17510	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17511	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'
17512      else
17513	allow_undefined_flag=' -expect_unresolved \*'
17514	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'
17515      fi
17516      archive_cmds_need_lc='no'
17517      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17518      hardcode_libdir_separator=:
17519      ;;
17520
17521    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17522      if test yes = "$GCC"; then
17523	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17524	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'
17525	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17526      else
17527	allow_undefined_flag=' -expect_unresolved \*'
17528	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'
17529	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~
17530          $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'
17531
17532	# Both c and cxx compiler support -rpath directly
17533	hardcode_libdir_flag_spec='-rpath $libdir'
17534      fi
17535      archive_cmds_need_lc='no'
17536      hardcode_libdir_separator=:
17537      ;;
17538
17539    solaris*)
17540      no_undefined_flag=' -z defs'
17541      if test yes = "$GCC"; then
17542	wlarc='$wl'
17543	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17544	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17545          $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'
17546      else
17547	case `$CC -V 2>&1` in
17548	*"Compilers 5.0"*)
17549	  wlarc=''
17550	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17552            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17553	  ;;
17554	*)
17555	  wlarc='$wl'
17556	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17557	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17558            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17559	  ;;
17560	esac
17561      fi
17562      hardcode_libdir_flag_spec='-R$libdir'
17563      hardcode_shlibpath_var=no
17564      case $host_os in
17565      solaris2.[0-5] | solaris2.[0-5].*) ;;
17566      *)
17567	# The compiler driver will combine and reorder linker options,
17568	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17569	# but is careful enough not to reorder.
17570	# Supported since Solaris 2.6 (maybe 2.5.1?)
17571	if test yes = "$GCC"; then
17572	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17573	else
17574	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17575	fi
17576	;;
17577      esac
17578      link_all_deplibs=yes
17579      ;;
17580
17581    sunos4*)
17582      if test sequent = "$host_vendor"; then
17583	# Use $CC to link under sequent, because it throws in some extra .o
17584	# files that make .init and .fini sections work.
17585	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17586      else
17587	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17588      fi
17589      hardcode_libdir_flag_spec='-L$libdir'
17590      hardcode_direct=yes
17591      hardcode_minus_L=yes
17592      hardcode_shlibpath_var=no
17593      ;;
17594
17595    sysv4)
17596      case $host_vendor in
17597	sni)
17598	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599	  hardcode_direct=yes # is this really true???
17600	;;
17601	siemens)
17602	  ## LD is ld it makes a PLAMLIB
17603	  ## CC just makes a GrossModule.
17604	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17605	  reload_cmds='$CC -r -o $output$reload_objs'
17606	  hardcode_direct=no
17607        ;;
17608	motorola)
17609	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17610	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17611	;;
17612      esac
17613      runpath_var='LD_RUN_PATH'
17614      hardcode_shlibpath_var=no
17615      ;;
17616
17617    sysv4.3*)
17618      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17619      hardcode_shlibpath_var=no
17620      export_dynamic_flag_spec='-Bexport'
17621      ;;
17622
17623    sysv4*MP*)
17624      if test -d /usr/nec; then
17625	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626	hardcode_shlibpath_var=no
17627	runpath_var=LD_RUN_PATH
17628	hardcode_runpath_var=yes
17629	ld_shlibs=yes
17630      fi
17631      ;;
17632
17633    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17634      no_undefined_flag='$wl-z,text'
17635      archive_cmds_need_lc=no
17636      hardcode_shlibpath_var=no
17637      runpath_var='LD_RUN_PATH'
17638
17639      if test yes = "$GCC"; then
17640	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17641	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17642      else
17643	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17644	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17645      fi
17646      ;;
17647
17648    sysv5* | sco3.2v5* | sco5v6*)
17649      # Note: We CANNOT use -z defs as we might desire, because we do not
17650      # link with -lc, and that would cause any symbols used from libc to
17651      # always be unresolved, which means just about no library would
17652      # ever link correctly.  If we're not using GNU ld we use -z text
17653      # though, which does catch some bad symbols but isn't as heavy-handed
17654      # as -z defs.
17655      no_undefined_flag='$wl-z,text'
17656      allow_undefined_flag='$wl-z,nodefs'
17657      archive_cmds_need_lc=no
17658      hardcode_shlibpath_var=no
17659      hardcode_libdir_flag_spec='$wl-R,$libdir'
17660      hardcode_libdir_separator=':'
17661      link_all_deplibs=yes
17662      export_dynamic_flag_spec='$wl-Bexport'
17663      runpath_var='LD_RUN_PATH'
17664
17665      if test yes = "$GCC"; then
17666	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17667	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17668      else
17669	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17670	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17671      fi
17672      ;;
17673
17674    uts4*)
17675      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676      hardcode_libdir_flag_spec='-L$libdir'
17677      hardcode_shlibpath_var=no
17678      ;;
17679
17680    *)
17681      ld_shlibs=no
17682      ;;
17683    esac
17684
17685    if test sni = "$host_vendor"; then
17686      case $host in
17687      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17688	export_dynamic_flag_spec='$wl-Blargedynsym'
17689	;;
17690      esac
17691    fi
17692  fi
17693
17694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17695printf "%s\n" "$ld_shlibs" >&6; }
17696test no = "$ld_shlibs" && can_build_shared=no
17697
17698with_gnu_ld=$with_gnu_ld
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714#
17715# Do we need to explicitly link libc?
17716#
17717case "x$archive_cmds_need_lc" in
17718x|xyes)
17719  # Assume -lc should be added
17720  archive_cmds_need_lc=yes
17721
17722  if test yes,yes = "$GCC,$enable_shared"; then
17723    case $archive_cmds in
17724    *'~'*)
17725      # FIXME: we may have to deal with multi-command sequences.
17726      ;;
17727    '$CC '*)
17728      # Test whether the compiler implicitly links with -lc since on some
17729      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17730      # to ld, don't add -lc before -lgcc.
17731      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17732printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17733if test ${lt_cv_archive_cmds_need_lc+y}
17734then :
17735  printf %s "(cached) " >&6
17736else $as_nop
17737  $RM conftest*
17738	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17739
17740	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17741  (eval $ac_compile) 2>&5
17742  ac_status=$?
17743  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17744  test $ac_status = 0; } 2>conftest.err; then
17745	  soname=conftest
17746	  lib=conftest
17747	  libobjs=conftest.$ac_objext
17748	  deplibs=
17749	  wl=$lt_prog_compiler_wl
17750	  pic_flag=$lt_prog_compiler_pic
17751	  compiler_flags=-v
17752	  linker_flags=-v
17753	  verstring=
17754	  output_objdir=.
17755	  libname=conftest
17756	  lt_save_allow_undefined_flag=$allow_undefined_flag
17757	  allow_undefined_flag=
17758	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17759  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17760  ac_status=$?
17761  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17762  test $ac_status = 0; }
17763	  then
17764	    lt_cv_archive_cmds_need_lc=no
17765	  else
17766	    lt_cv_archive_cmds_need_lc=yes
17767	  fi
17768	  allow_undefined_flag=$lt_save_allow_undefined_flag
17769	else
17770	  cat conftest.err 1>&5
17771	fi
17772	$RM conftest*
17773
17774fi
17775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17776printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17777      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17778      ;;
17779    esac
17780  fi
17781  ;;
17782esac
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17936printf %s "checking dynamic linker characteristics... " >&6; }
17937
17938if test yes = "$GCC"; then
17939  case $host_os in
17940    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17941    *) lt_awk_arg='/^libraries:/' ;;
17942  esac
17943  case $host_os in
17944    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17945    *) lt_sed_strip_eq='s|=/|/|g' ;;
17946  esac
17947  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17948  case $lt_search_path_spec in
17949  *\;*)
17950    # if the path contains ";" then we assume it to be the separator
17951    # otherwise default to the standard path separator (i.e. ":") - it is
17952    # assumed that no part of a normal pathname contains ";" but that should
17953    # okay in the real world where ";" in dirpaths is itself problematic.
17954    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17955    ;;
17956  *)
17957    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17958    ;;
17959  esac
17960  # Ok, now we have the path, separated by spaces, we can step through it
17961  # and add multilib dir if necessary...
17962  lt_tmp_lt_search_path_spec=
17963  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17964  # ...but if some path component already ends with the multilib dir we assume
17965  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17966  case "$lt_multi_os_dir; $lt_search_path_spec " in
17967  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17968    lt_multi_os_dir=
17969    ;;
17970  esac
17971  for lt_sys_path in $lt_search_path_spec; do
17972    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17973      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17974    elif test -n "$lt_multi_os_dir"; then
17975      test -d "$lt_sys_path" && \
17976	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17977    fi
17978  done
17979  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17980BEGIN {RS = " "; FS = "/|\n";} {
17981  lt_foo = "";
17982  lt_count = 0;
17983  for (lt_i = NF; lt_i > 0; lt_i--) {
17984    if ($lt_i != "" && $lt_i != ".") {
17985      if ($lt_i == "..") {
17986        lt_count++;
17987      } else {
17988        if (lt_count == 0) {
17989          lt_foo = "/" $lt_i lt_foo;
17990        } else {
17991          lt_count--;
17992        }
17993      }
17994    }
17995  }
17996  if (lt_foo != "") { lt_freq[lt_foo]++; }
17997  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17998}'`
17999  # AWK program above erroneously prepends '/' to C:/dos/paths
18000  # for these hosts.
18001  case $host_os in
18002    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18003      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18004  esac
18005  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18006else
18007  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18008fi
18009library_names_spec=
18010libname_spec='lib$name'
18011soname_spec=
18012shrext_cmds=.so
18013postinstall_cmds=
18014postuninstall_cmds=
18015finish_cmds=
18016finish_eval=
18017shlibpath_var=
18018shlibpath_overrides_runpath=unknown
18019version_type=none
18020dynamic_linker="$host_os ld.so"
18021sys_lib_dlsearch_path_spec="/lib /usr/lib"
18022need_lib_prefix=unknown
18023hardcode_into_libs=no
18024
18025# when you set need_version to no, make sure it does not cause -set_version
18026# flags to be left without arguments
18027need_version=unknown
18028
18029
18030
18031case $host_os in
18032aix3*)
18033  version_type=linux # correct to gnu/linux during the next big refactor
18034  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18035  shlibpath_var=LIBPATH
18036
18037  # AIX 3 has no versioning support, so we append a major version to the name.
18038  soname_spec='$libname$release$shared_ext$major'
18039  ;;
18040
18041aix[4-9]*)
18042  version_type=linux # correct to gnu/linux during the next big refactor
18043  need_lib_prefix=no
18044  need_version=no
18045  hardcode_into_libs=yes
18046  if test ia64 = "$host_cpu"; then
18047    # AIX 5 supports IA64
18048    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18049    shlibpath_var=LD_LIBRARY_PATH
18050  else
18051    # With GCC up to 2.95.x, collect2 would create an import file
18052    # for dependence libraries.  The import file would start with
18053    # the line '#! .'.  This would cause the generated library to
18054    # depend on '.', always an invalid library.  This was fixed in
18055    # development snapshots of GCC prior to 3.0.
18056    case $host_os in
18057      aix4 | aix4.[01] | aix4.[01].*)
18058      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18059	   echo ' yes '
18060	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18061	:
18062      else
18063	can_build_shared=no
18064      fi
18065      ;;
18066    esac
18067    # Using Import Files as archive members, it is possible to support
18068    # filename-based versioning of shared library archives on AIX. While
18069    # this would work for both with and without runtime linking, it will
18070    # prevent static linking of such archives. So we do filename-based
18071    # shared library versioning with .so extension only, which is used
18072    # when both runtime linking and shared linking is enabled.
18073    # Unfortunately, runtime linking may impact performance, so we do
18074    # not want this to be the default eventually. Also, we use the
18075    # versioned .so libs for executables only if there is the -brtl
18076    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18077    # To allow for filename-based versioning support, we need to create
18078    # libNAME.so.V as an archive file, containing:
18079    # *) an Import File, referring to the versioned filename of the
18080    #    archive as well as the shared archive member, telling the
18081    #    bitwidth (32 or 64) of that shared object, and providing the
18082    #    list of exported symbols of that shared object, eventually
18083    #    decorated with the 'weak' keyword
18084    # *) the shared object with the F_LOADONLY flag set, to really avoid
18085    #    it being seen by the linker.
18086    # At run time we better use the real file rather than another symlink,
18087    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18088
18089    case $with_aix_soname,$aix_use_runtimelinking in
18090    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18091    # soname into executable. Probably we can add versioning support to
18092    # collect2, so additional links can be useful in future.
18093    aix,yes) # traditional libtool
18094      dynamic_linker='AIX unversionable lib.so'
18095      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18096      # instead of lib<name>.a to let people know that these are not
18097      # typical AIX shared libraries.
18098      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18099      ;;
18100    aix,no) # traditional AIX only
18101      dynamic_linker='AIX lib.a(lib.so.V)'
18102      # We preserve .a as extension for shared libraries through AIX4.2
18103      # and later when we are not doing run time linking.
18104      library_names_spec='$libname$release.a $libname.a'
18105      soname_spec='$libname$release$shared_ext$major'
18106      ;;
18107    svr4,*) # full svr4 only
18108      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18109      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18110      # We do not specify a path in Import Files, so LIBPATH fires.
18111      shlibpath_overrides_runpath=yes
18112      ;;
18113    *,yes) # both, prefer svr4
18114      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18115      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18116      # unpreferred sharedlib libNAME.a needs extra handling
18117      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18118      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18119      # We do not specify a path in Import Files, so LIBPATH fires.
18120      shlibpath_overrides_runpath=yes
18121      ;;
18122    *,no) # both, prefer aix
18123      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18124      library_names_spec='$libname$release.a $libname.a'
18125      soname_spec='$libname$release$shared_ext$major'
18126      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18127      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18128      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18129      ;;
18130    esac
18131    shlibpath_var=LIBPATH
18132  fi
18133  ;;
18134
18135amigaos*)
18136  case $host_cpu in
18137  powerpc)
18138    # Since July 2007 AmigaOS4 officially supports .so libraries.
18139    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18140    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18141    ;;
18142  m68k)
18143    library_names_spec='$libname.ixlibrary $libname.a'
18144    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18145    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
18146    ;;
18147  esac
18148  ;;
18149
18150beos*)
18151  library_names_spec='$libname$shared_ext'
18152  dynamic_linker="$host_os ld.so"
18153  shlibpath_var=LIBRARY_PATH
18154  ;;
18155
18156bsdi[45]*)
18157  version_type=linux # correct to gnu/linux during the next big refactor
18158  need_version=no
18159  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18160  soname_spec='$libname$release$shared_ext$major'
18161  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18162  shlibpath_var=LD_LIBRARY_PATH
18163  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18164  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18165  # the default ld.so.conf also contains /usr/contrib/lib and
18166  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18167  # libtool to hard-code these into programs
18168  ;;
18169
18170cygwin* | mingw* | pw32* | cegcc*)
18171  version_type=windows
18172  shrext_cmds=.dll
18173  need_version=no
18174  need_lib_prefix=no
18175
18176  case $GCC,$cc_basename in
18177  yes,*)
18178    # gcc
18179    library_names_spec='$libname.dll.a'
18180    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18181    postinstall_cmds='base_file=`basename \$file`~
18182      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18183      dldir=$destdir/`dirname \$dlpath`~
18184      test -d \$dldir || mkdir -p \$dldir~
18185      $install_prog $dir/$dlname \$dldir/$dlname~
18186      chmod a+x \$dldir/$dlname~
18187      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18188        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18189      fi'
18190    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18191      dlpath=$dir/\$dldll~
18192       $RM \$dlpath'
18193    shlibpath_overrides_runpath=yes
18194
18195    case $host_os in
18196    cygwin*)
18197      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18198      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18199
18200      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18201      ;;
18202    mingw* | cegcc*)
18203      # MinGW DLLs use traditional 'lib' prefix
18204      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18205      ;;
18206    pw32*)
18207      # pw32 DLLs use 'pw' prefix rather than 'lib'
18208      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18209      ;;
18210    esac
18211    dynamic_linker='Win32 ld.exe'
18212    ;;
18213
18214  *,cl* | *,icl*)
18215    # Native MSVC or ICC
18216    libname_spec='$name'
18217    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18218    library_names_spec='$libname.dll.lib'
18219
18220    case $build_os in
18221    mingw*)
18222      sys_lib_search_path_spec=
18223      lt_save_ifs=$IFS
18224      IFS=';'
18225      for lt_path in $LIB
18226      do
18227        IFS=$lt_save_ifs
18228        # Let DOS variable expansion print the short 8.3 style file name.
18229        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18230        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18231      done
18232      IFS=$lt_save_ifs
18233      # Convert to MSYS style.
18234      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18235      ;;
18236    cygwin*)
18237      # Convert to unix form, then to dos form, then back to unix form
18238      # but this time dos style (no spaces!) so that the unix form looks
18239      # like /cygdrive/c/PROGRA~1:/cygdr...
18240      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18241      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18242      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18243      ;;
18244    *)
18245      sys_lib_search_path_spec=$LIB
18246      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18247        # It is most probably a Windows format PATH.
18248        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18249      else
18250        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18251      fi
18252      # FIXME: find the short name or the path components, as spaces are
18253      # common. (e.g. "Program Files" -> "PROGRA~1")
18254      ;;
18255    esac
18256
18257    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18258    postinstall_cmds='base_file=`basename \$file`~
18259      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18260      dldir=$destdir/`dirname \$dlpath`~
18261      test -d \$dldir || mkdir -p \$dldir~
18262      $install_prog $dir/$dlname \$dldir/$dlname'
18263    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18264      dlpath=$dir/\$dldll~
18265       $RM \$dlpath'
18266    shlibpath_overrides_runpath=yes
18267    dynamic_linker='Win32 link.exe'
18268    ;;
18269
18270  *)
18271    # Assume MSVC and ICC wrapper
18272    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18273    dynamic_linker='Win32 ld.exe'
18274    ;;
18275  esac
18276  # FIXME: first we should search . and the directory the executable is in
18277  shlibpath_var=PATH
18278  ;;
18279
18280darwin* | rhapsody*)
18281  dynamic_linker="$host_os dyld"
18282  version_type=darwin
18283  need_lib_prefix=no
18284  need_version=no
18285  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
18286  soname_spec='$libname$release$major$shared_ext'
18287  shlibpath_overrides_runpath=yes
18288  shlibpath_var=DYLD_LIBRARY_PATH
18289  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
18290
18291  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18292  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18293  ;;
18294
18295dgux*)
18296  version_type=linux # correct to gnu/linux during the next big refactor
18297  need_lib_prefix=no
18298  need_version=no
18299  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18300  soname_spec='$libname$release$shared_ext$major'
18301  shlibpath_var=LD_LIBRARY_PATH
18302  ;;
18303
18304freebsd* | dragonfly* | midnightbsd*)
18305  # DragonFly does not have aout.  When/if they implement a new
18306  # versioning mechanism, adjust this.
18307  if test -x /usr/bin/objformat; then
18308    objformat=`/usr/bin/objformat`
18309  else
18310    case $host_os in
18311    freebsd[23].*) objformat=aout ;;
18312    *) objformat=elf ;;
18313    esac
18314  fi
18315  # Handle Gentoo/FreeBSD as it was Linux
18316  case $host_vendor in
18317    gentoo)
18318      version_type=linux ;;
18319    *)
18320      version_type=freebsd-$objformat ;;
18321  esac
18322
18323  case $version_type in
18324    freebsd-elf*)
18325      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18326      soname_spec='$libname$release$shared_ext$major'
18327      need_version=no
18328      need_lib_prefix=no
18329      ;;
18330    freebsd-*)
18331      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18332      need_version=yes
18333      ;;
18334    linux)
18335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18336      soname_spec='${libname}${release}${shared_ext}$major'
18337      need_lib_prefix=no
18338      need_version=no
18339      ;;
18340  esac
18341  shlibpath_var=LD_LIBRARY_PATH
18342  case $host_os in
18343  freebsd2.*)
18344    shlibpath_overrides_runpath=yes
18345    ;;
18346  freebsd3.[01]* | freebsdelf3.[01]*)
18347    shlibpath_overrides_runpath=yes
18348    hardcode_into_libs=yes
18349    ;;
18350  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18351  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18352    shlibpath_overrides_runpath=no
18353    hardcode_into_libs=yes
18354    ;;
18355  *) # from 4.6 on, and DragonFly
18356    shlibpath_overrides_runpath=yes
18357    hardcode_into_libs=yes
18358    ;;
18359  esac
18360  ;;
18361
18362haiku*)
18363  version_type=linux # correct to gnu/linux during the next big refactor
18364  need_lib_prefix=no
18365  need_version=no
18366  dynamic_linker="$host_os runtime_loader"
18367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18368  soname_spec='$libname$release$shared_ext$major'
18369  shlibpath_var=LIBRARY_PATH
18370  shlibpath_overrides_runpath=no
18371  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18372  hardcode_into_libs=yes
18373  ;;
18374
18375hpux9* | hpux10* | hpux11*)
18376  # Give a soname corresponding to the major version so that dld.sl refuses to
18377  # link against other versions.
18378  version_type=sunos
18379  need_lib_prefix=no
18380  need_version=no
18381  case $host_cpu in
18382  ia64*)
18383    shrext_cmds='.so'
18384    hardcode_into_libs=yes
18385    dynamic_linker="$host_os dld.so"
18386    shlibpath_var=LD_LIBRARY_PATH
18387    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18388    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18389    soname_spec='$libname$release$shared_ext$major'
18390    if test 32 = "$HPUX_IA64_MODE"; then
18391      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18392      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18393    else
18394      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18395      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18396    fi
18397    ;;
18398  hppa*64*)
18399    shrext_cmds='.sl'
18400    hardcode_into_libs=yes
18401    dynamic_linker="$host_os dld.sl"
18402    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18403    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18404    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18405    soname_spec='$libname$release$shared_ext$major'
18406    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18407    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18408    ;;
18409  *)
18410    shrext_cmds='.sl'
18411    dynamic_linker="$host_os dld.sl"
18412    shlibpath_var=SHLIB_PATH
18413    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18414    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18415    soname_spec='$libname$release$shared_ext$major'
18416    ;;
18417  esac
18418  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18419  postinstall_cmds='chmod 555 $lib'
18420  # or fails outright, so override atomically:
18421  install_override_mode=555
18422  ;;
18423
18424interix[3-9]*)
18425  version_type=linux # correct to gnu/linux during the next big refactor
18426  need_lib_prefix=no
18427  need_version=no
18428  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18429  soname_spec='$libname$release$shared_ext$major'
18430  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18431  shlibpath_var=LD_LIBRARY_PATH
18432  shlibpath_overrides_runpath=no
18433  hardcode_into_libs=yes
18434  ;;
18435
18436irix5* | irix6* | nonstopux*)
18437  case $host_os in
18438    nonstopux*) version_type=nonstopux ;;
18439    *)
18440	if test yes = "$lt_cv_prog_gnu_ld"; then
18441		version_type=linux # correct to gnu/linux during the next big refactor
18442	else
18443		version_type=irix
18444	fi ;;
18445  esac
18446  need_lib_prefix=no
18447  need_version=no
18448  soname_spec='$libname$release$shared_ext$major'
18449  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18450  case $host_os in
18451  irix5* | nonstopux*)
18452    libsuff= shlibsuff=
18453    ;;
18454  *)
18455    case $LD in # libtool.m4 will add one of these switches to LD
18456    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18457      libsuff= shlibsuff= libmagic=32-bit;;
18458    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18459      libsuff=32 shlibsuff=N32 libmagic=N32;;
18460    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18461      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18462    *) libsuff= shlibsuff= libmagic=never-match;;
18463    esac
18464    ;;
18465  esac
18466  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18467  shlibpath_overrides_runpath=no
18468  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18469  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18470  hardcode_into_libs=yes
18471  ;;
18472
18473# No shared lib support for Linux oldld, aout, or coff.
18474linux*oldld* | linux*aout* | linux*coff*)
18475  dynamic_linker=no
18476  ;;
18477
18478linux*android*)
18479  version_type=none # Android doesn't support versioned libraries.
18480  need_lib_prefix=no
18481  need_version=no
18482  library_names_spec='$libname$release$shared_ext'
18483  soname_spec='$libname$release$shared_ext'
18484  finish_cmds=
18485  shlibpath_var=LD_LIBRARY_PATH
18486  shlibpath_overrides_runpath=yes
18487
18488  # This implies no fast_install, which is unacceptable.
18489  # Some rework will be needed to allow for fast_install
18490  # before this can be enabled.
18491  hardcode_into_libs=yes
18492
18493  dynamic_linker='Android linker'
18494  # Don't embed -rpath directories since the linker doesn't support them.
18495  hardcode_libdir_flag_spec='-L$libdir'
18496  ;;
18497
18498# This must be glibc/ELF.
18499linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18500  version_type=linux # correct to gnu/linux during the next big refactor
18501  need_lib_prefix=no
18502  need_version=no
18503  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18504  soname_spec='$libname$release$shared_ext$major'
18505  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18506  shlibpath_var=LD_LIBRARY_PATH
18507  shlibpath_overrides_runpath=no
18508
18509  # Some binutils ld are patched to set DT_RUNPATH
18510  if test ${lt_cv_shlibpath_overrides_runpath+y}
18511then :
18512  printf %s "(cached) " >&6
18513else $as_nop
18514  lt_cv_shlibpath_overrides_runpath=no
18515    save_LDFLAGS=$LDFLAGS
18516    save_libdir=$libdir
18517    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18518	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520/* end confdefs.h.  */
18521
18522int
18523main (void)
18524{
18525
18526  ;
18527  return 0;
18528}
18529_ACEOF
18530if ac_fn_c_try_link "$LINENO"
18531then :
18532  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18533then :
18534  lt_cv_shlibpath_overrides_runpath=yes
18535fi
18536fi
18537rm -f core conftest.err conftest.$ac_objext conftest.beam \
18538    conftest$ac_exeext conftest.$ac_ext
18539    LDFLAGS=$save_LDFLAGS
18540    libdir=$save_libdir
18541
18542fi
18543
18544  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18545
18546  # This implies no fast_install, which is unacceptable.
18547  # Some rework will be needed to allow for fast_install
18548  # before this can be enabled.
18549  hardcode_into_libs=yes
18550
18551  # Ideally, we could use ldconfig to report *all* directores which are
18552  # searched for libraries, however this is still not possible.  Aside from not
18553  # being certain /sbin/ldconfig is available, command
18554  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18555  # even though it is searched at run-time.  Try to do the best guess by
18556  # appending ld.so.conf contents (and includes) to the search path.
18557  if test -f /etc/ld.so.conf; then
18558    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' ' '`
18559    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18560  fi
18561
18562  # We used to test for /lib/ld.so.1 and disable shared libraries on
18563  # powerpc, because MkLinux only supported shared libraries with the
18564  # GNU dynamic linker.  Since this was broken with cross compilers,
18565  # most powerpc-linux boxes support dynamic linking these days and
18566  # people can always --disable-shared, the test was removed, and we
18567  # assume the GNU/Linux dynamic linker is in use.
18568  dynamic_linker='GNU/Linux ld.so'
18569  ;;
18570
18571netbsd*)
18572  version_type=sunos
18573  need_lib_prefix=no
18574  need_version=no
18575  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18576    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18577    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18578    dynamic_linker='NetBSD (a.out) ld.so'
18579  else
18580    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18581    soname_spec='$libname$release$shared_ext$major'
18582    dynamic_linker='NetBSD ld.elf_so'
18583  fi
18584  shlibpath_var=LD_LIBRARY_PATH
18585  shlibpath_overrides_runpath=yes
18586  hardcode_into_libs=yes
18587  ;;
18588
18589newsos6)
18590  version_type=linux # correct to gnu/linux during the next big refactor
18591  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18592  shlibpath_var=LD_LIBRARY_PATH
18593  shlibpath_overrides_runpath=yes
18594  ;;
18595
18596*nto* | *qnx*)
18597  version_type=qnx
18598  need_lib_prefix=no
18599  need_version=no
18600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18601  soname_spec='$libname$release$shared_ext$major'
18602  shlibpath_var=LD_LIBRARY_PATH
18603  shlibpath_overrides_runpath=no
18604  hardcode_into_libs=yes
18605  dynamic_linker='ldqnx.so'
18606  ;;
18607
18608openbsd* | bitrig*)
18609  version_type=sunos
18610  sys_lib_dlsearch_path_spec=/usr/lib
18611  need_lib_prefix=no
18612  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18613    need_version=no
18614  else
18615    need_version=yes
18616  fi
18617  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18618  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18619  shlibpath_var=LD_LIBRARY_PATH
18620  shlibpath_overrides_runpath=yes
18621  ;;
18622
18623os2*)
18624  libname_spec='$name'
18625  version_type=windows
18626  shrext_cmds=.dll
18627  need_version=no
18628  need_lib_prefix=no
18629  # OS/2 can only load a DLL with a base name of 8 characters or less.
18630  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18631    v=$($ECHO $release$versuffix | tr -d .-);
18632    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18633    $ECHO $n$v`$shared_ext'
18634  library_names_spec='${libname}_dll.$libext'
18635  dynamic_linker='OS/2 ld.exe'
18636  shlibpath_var=BEGINLIBPATH
18637  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18638  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18639  postinstall_cmds='base_file=`basename \$file`~
18640    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18641    dldir=$destdir/`dirname \$dlpath`~
18642    test -d \$dldir || mkdir -p \$dldir~
18643    $install_prog $dir/$dlname \$dldir/$dlname~
18644    chmod a+x \$dldir/$dlname~
18645    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18646      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18647    fi'
18648  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18649    dlpath=$dir/\$dldll~
18650    $RM \$dlpath'
18651  ;;
18652
18653osf3* | osf4* | osf5*)
18654  version_type=osf
18655  need_lib_prefix=no
18656  need_version=no
18657  soname_spec='$libname$release$shared_ext$major'
18658  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18659  shlibpath_var=LD_LIBRARY_PATH
18660  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18661  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18662  ;;
18663
18664rdos*)
18665  dynamic_linker=no
18666  ;;
18667
18668solaris*)
18669  version_type=linux # correct to gnu/linux during the next big refactor
18670  need_lib_prefix=no
18671  need_version=no
18672  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18673  soname_spec='$libname$release$shared_ext$major'
18674  shlibpath_var=LD_LIBRARY_PATH
18675  shlibpath_overrides_runpath=yes
18676  hardcode_into_libs=yes
18677  # ldd complains unless libraries are executable
18678  postinstall_cmds='chmod +x $lib'
18679  ;;
18680
18681sunos4*)
18682  version_type=sunos
18683  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18684  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18685  shlibpath_var=LD_LIBRARY_PATH
18686  shlibpath_overrides_runpath=yes
18687  if test yes = "$with_gnu_ld"; then
18688    need_lib_prefix=no
18689  fi
18690  need_version=yes
18691  ;;
18692
18693sysv4 | sysv4.3*)
18694  version_type=linux # correct to gnu/linux during the next big refactor
18695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18696  soname_spec='$libname$release$shared_ext$major'
18697  shlibpath_var=LD_LIBRARY_PATH
18698  case $host_vendor in
18699    sni)
18700      shlibpath_overrides_runpath=no
18701      need_lib_prefix=no
18702      runpath_var=LD_RUN_PATH
18703      ;;
18704    siemens)
18705      need_lib_prefix=no
18706      ;;
18707    motorola)
18708      need_lib_prefix=no
18709      need_version=no
18710      shlibpath_overrides_runpath=no
18711      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18712      ;;
18713  esac
18714  ;;
18715
18716sysv4*MP*)
18717  if test -d /usr/nec; then
18718    version_type=linux # correct to gnu/linux during the next big refactor
18719    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18720    soname_spec='$libname$shared_ext.$major'
18721    shlibpath_var=LD_LIBRARY_PATH
18722  fi
18723  ;;
18724
18725sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18726  version_type=sco
18727  need_lib_prefix=no
18728  need_version=no
18729  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18730  soname_spec='$libname$release$shared_ext$major'
18731  shlibpath_var=LD_LIBRARY_PATH
18732  shlibpath_overrides_runpath=yes
18733  hardcode_into_libs=yes
18734  if test yes = "$with_gnu_ld"; then
18735    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18736  else
18737    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18738    case $host_os in
18739      sco3.2v5*)
18740        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18741	;;
18742    esac
18743  fi
18744  sys_lib_dlsearch_path_spec='/usr/lib'
18745  ;;
18746
18747tpf*)
18748  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18749  version_type=linux # correct to gnu/linux during the next big refactor
18750  need_lib_prefix=no
18751  need_version=no
18752  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18753  shlibpath_var=LD_LIBRARY_PATH
18754  shlibpath_overrides_runpath=no
18755  hardcode_into_libs=yes
18756  ;;
18757
18758uts4*)
18759  version_type=linux # correct to gnu/linux during the next big refactor
18760  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18761  soname_spec='$libname$release$shared_ext$major'
18762  shlibpath_var=LD_LIBRARY_PATH
18763  ;;
18764
18765*)
18766  dynamic_linker=no
18767  ;;
18768esac
18769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18770printf "%s\n" "$dynamic_linker" >&6; }
18771test no = "$dynamic_linker" && can_build_shared=no
18772
18773variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18774if test yes = "$GCC"; then
18775  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18776fi
18777
18778if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18779  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18780fi
18781
18782if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18783  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18784fi
18785
18786# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18787configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18788
18789# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18790func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18791
18792# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18793configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18892printf %s "checking how to hardcode library paths into programs... " >&6; }
18893hardcode_action=
18894if test -n "$hardcode_libdir_flag_spec" ||
18895   test -n "$runpath_var" ||
18896   test yes = "$hardcode_automatic"; then
18897
18898  # We can hardcode non-existent directories.
18899  if test no != "$hardcode_direct" &&
18900     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18901     # have to relink, otherwise we might link with an installed library
18902     # when we should be linking with a yet-to-be-installed one
18903     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18904     test no != "$hardcode_minus_L"; then
18905    # Linking always hardcodes the temporary library directory.
18906    hardcode_action=relink
18907  else
18908    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18909    hardcode_action=immediate
18910  fi
18911else
18912  # We cannot hardcode anything, or else we can only hardcode existing
18913  # directories.
18914  hardcode_action=unsupported
18915fi
18916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18917printf "%s\n" "$hardcode_action" >&6; }
18918
18919if test relink = "$hardcode_action" ||
18920   test yes = "$inherit_rpath"; then
18921  # Fast installation is not supported
18922  enable_fast_install=no
18923elif test yes = "$shlibpath_overrides_runpath" ||
18924     test no = "$enable_shared"; then
18925  # Fast installation is not necessary
18926  enable_fast_install=needless
18927fi
18928
18929
18930
18931
18932
18933
18934  if test yes != "$enable_dlopen"; then
18935  enable_dlopen=unknown
18936  enable_dlopen_self=unknown
18937  enable_dlopen_self_static=unknown
18938else
18939  lt_cv_dlopen=no
18940  lt_cv_dlopen_libs=
18941
18942  case $host_os in
18943  beos*)
18944    lt_cv_dlopen=load_add_on
18945    lt_cv_dlopen_libs=
18946    lt_cv_dlopen_self=yes
18947    ;;
18948
18949  mingw* | pw32* | cegcc*)
18950    lt_cv_dlopen=LoadLibrary
18951    lt_cv_dlopen_libs=
18952    ;;
18953
18954  cygwin*)
18955    lt_cv_dlopen=dlopen
18956    lt_cv_dlopen_libs=
18957    ;;
18958
18959  darwin*)
18960    # if libdl is installed we need to link against it
18961    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18962printf %s "checking for dlopen in -ldl... " >&6; }
18963if test ${ac_cv_lib_dl_dlopen+y}
18964then :
18965  printf %s "(cached) " >&6
18966else $as_nop
18967  ac_check_lib_save_LIBS=$LIBS
18968LIBS="-ldl  $LIBS"
18969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970/* end confdefs.h.  */
18971
18972/* Override any GCC internal prototype to avoid an error.
18973   Use char because int might match the return type of a GCC
18974   builtin and then its argument prototype would still apply.
18975   The 'extern "C"' is for builds by C++ compilers;
18976   although this is not generally supported in C code supporting it here
18977   has little cost and some practical benefit (sr 110532).  */
18978#ifdef __cplusplus
18979extern "C"
18980#endif
18981char dlopen (void);
18982int
18983main (void)
18984{
18985return dlopen ();
18986  ;
18987  return 0;
18988}
18989_ACEOF
18990if ac_fn_c_try_link "$LINENO"
18991then :
18992  ac_cv_lib_dl_dlopen=yes
18993else $as_nop
18994  ac_cv_lib_dl_dlopen=no
18995fi
18996rm -f core conftest.err conftest.$ac_objext conftest.beam \
18997    conftest$ac_exeext conftest.$ac_ext
18998LIBS=$ac_check_lib_save_LIBS
18999fi
19000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19001printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19002if test "x$ac_cv_lib_dl_dlopen" = xyes
19003then :
19004  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19005else $as_nop
19006
19007    lt_cv_dlopen=dyld
19008    lt_cv_dlopen_libs=
19009    lt_cv_dlopen_self=yes
19010
19011fi
19012
19013    ;;
19014
19015  tpf*)
19016    # Don't try to run any link tests for TPF.  We know it's impossible
19017    # because TPF is a cross-compiler, and we know how we open DSOs.
19018    lt_cv_dlopen=dlopen
19019    lt_cv_dlopen_libs=
19020    lt_cv_dlopen_self=no
19021    ;;
19022
19023  *)
19024    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19025if test "x$ac_cv_func_shl_load" = xyes
19026then :
19027  lt_cv_dlopen=shl_load
19028else $as_nop
19029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19030printf %s "checking for shl_load in -ldld... " >&6; }
19031if test ${ac_cv_lib_dld_shl_load+y}
19032then :
19033  printf %s "(cached) " >&6
19034else $as_nop
19035  ac_check_lib_save_LIBS=$LIBS
19036LIBS="-ldld  $LIBS"
19037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19038/* end confdefs.h.  */
19039
19040/* Override any GCC internal prototype to avoid an error.
19041   Use char because int might match the return type of a GCC
19042   builtin and then its argument prototype would still apply.
19043   The 'extern "C"' is for builds by C++ compilers;
19044   although this is not generally supported in C code supporting it here
19045   has little cost and some practical benefit (sr 110532).  */
19046#ifdef __cplusplus
19047extern "C"
19048#endif
19049char shl_load (void);
19050int
19051main (void)
19052{
19053return shl_load ();
19054  ;
19055  return 0;
19056}
19057_ACEOF
19058if ac_fn_c_try_link "$LINENO"
19059then :
19060  ac_cv_lib_dld_shl_load=yes
19061else $as_nop
19062  ac_cv_lib_dld_shl_load=no
19063fi
19064rm -f core conftest.err conftest.$ac_objext conftest.beam \
19065    conftest$ac_exeext conftest.$ac_ext
19066LIBS=$ac_check_lib_save_LIBS
19067fi
19068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19069printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19070if test "x$ac_cv_lib_dld_shl_load" = xyes
19071then :
19072  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19073else $as_nop
19074  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19075if test "x$ac_cv_func_dlopen" = xyes
19076then :
19077  lt_cv_dlopen=dlopen
19078else $as_nop
19079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19080printf %s "checking for dlopen in -ldl... " >&6; }
19081if test ${ac_cv_lib_dl_dlopen+y}
19082then :
19083  printf %s "(cached) " >&6
19084else $as_nop
19085  ac_check_lib_save_LIBS=$LIBS
19086LIBS="-ldl  $LIBS"
19087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088/* end confdefs.h.  */
19089
19090/* Override any GCC internal prototype to avoid an error.
19091   Use char because int might match the return type of a GCC
19092   builtin and then its argument prototype would still apply.
19093   The 'extern "C"' is for builds by C++ compilers;
19094   although this is not generally supported in C code supporting it here
19095   has little cost and some practical benefit (sr 110532).  */
19096#ifdef __cplusplus
19097extern "C"
19098#endif
19099char dlopen (void);
19100int
19101main (void)
19102{
19103return dlopen ();
19104  ;
19105  return 0;
19106}
19107_ACEOF
19108if ac_fn_c_try_link "$LINENO"
19109then :
19110  ac_cv_lib_dl_dlopen=yes
19111else $as_nop
19112  ac_cv_lib_dl_dlopen=no
19113fi
19114rm -f core conftest.err conftest.$ac_objext conftest.beam \
19115    conftest$ac_exeext conftest.$ac_ext
19116LIBS=$ac_check_lib_save_LIBS
19117fi
19118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19119printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19120if test "x$ac_cv_lib_dl_dlopen" = xyes
19121then :
19122  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19123else $as_nop
19124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19125printf %s "checking for dlopen in -lsvld... " >&6; }
19126if test ${ac_cv_lib_svld_dlopen+y}
19127then :
19128  printf %s "(cached) " >&6
19129else $as_nop
19130  ac_check_lib_save_LIBS=$LIBS
19131LIBS="-lsvld  $LIBS"
19132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133/* end confdefs.h.  */
19134
19135/* Override any GCC internal prototype to avoid an error.
19136   Use char because int might match the return type of a GCC
19137   builtin and then its argument prototype would still apply.
19138   The 'extern "C"' is for builds by C++ compilers;
19139   although this is not generally supported in C code supporting it here
19140   has little cost and some practical benefit (sr 110532).  */
19141#ifdef __cplusplus
19142extern "C"
19143#endif
19144char dlopen (void);
19145int
19146main (void)
19147{
19148return dlopen ();
19149  ;
19150  return 0;
19151}
19152_ACEOF
19153if ac_fn_c_try_link "$LINENO"
19154then :
19155  ac_cv_lib_svld_dlopen=yes
19156else $as_nop
19157  ac_cv_lib_svld_dlopen=no
19158fi
19159rm -f core conftest.err conftest.$ac_objext conftest.beam \
19160    conftest$ac_exeext conftest.$ac_ext
19161LIBS=$ac_check_lib_save_LIBS
19162fi
19163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19164printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19165if test "x$ac_cv_lib_svld_dlopen" = xyes
19166then :
19167  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19168else $as_nop
19169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19170printf %s "checking for dld_link in -ldld... " >&6; }
19171if test ${ac_cv_lib_dld_dld_link+y}
19172then :
19173  printf %s "(cached) " >&6
19174else $as_nop
19175  ac_check_lib_save_LIBS=$LIBS
19176LIBS="-ldld  $LIBS"
19177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178/* end confdefs.h.  */
19179
19180/* Override any GCC internal prototype to avoid an error.
19181   Use char because int might match the return type of a GCC
19182   builtin and then its argument prototype would still apply.
19183   The 'extern "C"' is for builds by C++ compilers;
19184   although this is not generally supported in C code supporting it here
19185   has little cost and some practical benefit (sr 110532).  */
19186#ifdef __cplusplus
19187extern "C"
19188#endif
19189char dld_link (void);
19190int
19191main (void)
19192{
19193return dld_link ();
19194  ;
19195  return 0;
19196}
19197_ACEOF
19198if ac_fn_c_try_link "$LINENO"
19199then :
19200  ac_cv_lib_dld_dld_link=yes
19201else $as_nop
19202  ac_cv_lib_dld_dld_link=no
19203fi
19204rm -f core conftest.err conftest.$ac_objext conftest.beam \
19205    conftest$ac_exeext conftest.$ac_ext
19206LIBS=$ac_check_lib_save_LIBS
19207fi
19208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19209printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19210if test "x$ac_cv_lib_dld_dld_link" = xyes
19211then :
19212  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19213fi
19214
19215
19216fi
19217
19218
19219fi
19220
19221
19222fi
19223
19224
19225fi
19226
19227
19228fi
19229
19230    ;;
19231  esac
19232
19233  if test no = "$lt_cv_dlopen"; then
19234    enable_dlopen=no
19235  else
19236    enable_dlopen=yes
19237  fi
19238
19239  case $lt_cv_dlopen in
19240  dlopen)
19241    save_CPPFLAGS=$CPPFLAGS
19242    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19243
19244    save_LDFLAGS=$LDFLAGS
19245    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19246
19247    save_LIBS=$LIBS
19248    LIBS="$lt_cv_dlopen_libs $LIBS"
19249
19250    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19251printf %s "checking whether a program can dlopen itself... " >&6; }
19252if test ${lt_cv_dlopen_self+y}
19253then :
19254  printf %s "(cached) " >&6
19255else $as_nop
19256  	  if test yes = "$cross_compiling"; then :
19257  lt_cv_dlopen_self=cross
19258else
19259  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19260  lt_status=$lt_dlunknown
19261  cat > conftest.$ac_ext <<_LT_EOF
19262#line $LINENO "configure"
19263#include "confdefs.h"
19264
19265#if HAVE_DLFCN_H
19266#include <dlfcn.h>
19267#endif
19268
19269#include <stdio.h>
19270
19271#ifdef RTLD_GLOBAL
19272#  define LT_DLGLOBAL		RTLD_GLOBAL
19273#else
19274#  ifdef DL_GLOBAL
19275#    define LT_DLGLOBAL		DL_GLOBAL
19276#  else
19277#    define LT_DLGLOBAL		0
19278#  endif
19279#endif
19280
19281/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19282   find out it does not work in some platform. */
19283#ifndef LT_DLLAZY_OR_NOW
19284#  ifdef RTLD_LAZY
19285#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19286#  else
19287#    ifdef DL_LAZY
19288#      define LT_DLLAZY_OR_NOW		DL_LAZY
19289#    else
19290#      ifdef RTLD_NOW
19291#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19292#      else
19293#        ifdef DL_NOW
19294#          define LT_DLLAZY_OR_NOW	DL_NOW
19295#        else
19296#          define LT_DLLAZY_OR_NOW	0
19297#        endif
19298#      endif
19299#    endif
19300#  endif
19301#endif
19302
19303/* When -fvisibility=hidden is used, assume the code has been annotated
19304   correspondingly for the symbols needed.  */
19305#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19306int fnord () __attribute__((visibility("default")));
19307#endif
19308
19309int fnord () { return 42; }
19310int main ()
19311{
19312  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19313  int status = $lt_dlunknown;
19314
19315  if (self)
19316    {
19317      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19318      else
19319        {
19320	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19321          else puts (dlerror ());
19322	}
19323      /* dlclose (self); */
19324    }
19325  else
19326    puts (dlerror ());
19327
19328  return status;
19329}
19330_LT_EOF
19331  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19332  (eval $ac_link) 2>&5
19333  ac_status=$?
19334  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19335  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19336    (./conftest; exit; ) >&5 2>/dev/null
19337    lt_status=$?
19338    case x$lt_status in
19339      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19340      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19341      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19342    esac
19343  else :
19344    # compilation failed
19345    lt_cv_dlopen_self=no
19346  fi
19347fi
19348rm -fr conftest*
19349
19350
19351fi
19352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19353printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19354
19355    if test yes = "$lt_cv_dlopen_self"; then
19356      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19357      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19358printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19359if test ${lt_cv_dlopen_self_static+y}
19360then :
19361  printf %s "(cached) " >&6
19362else $as_nop
19363  	  if test yes = "$cross_compiling"; then :
19364  lt_cv_dlopen_self_static=cross
19365else
19366  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19367  lt_status=$lt_dlunknown
19368  cat > conftest.$ac_ext <<_LT_EOF
19369#line $LINENO "configure"
19370#include "confdefs.h"
19371
19372#if HAVE_DLFCN_H
19373#include <dlfcn.h>
19374#endif
19375
19376#include <stdio.h>
19377
19378#ifdef RTLD_GLOBAL
19379#  define LT_DLGLOBAL		RTLD_GLOBAL
19380#else
19381#  ifdef DL_GLOBAL
19382#    define LT_DLGLOBAL		DL_GLOBAL
19383#  else
19384#    define LT_DLGLOBAL		0
19385#  endif
19386#endif
19387
19388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19389   find out it does not work in some platform. */
19390#ifndef LT_DLLAZY_OR_NOW
19391#  ifdef RTLD_LAZY
19392#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19393#  else
19394#    ifdef DL_LAZY
19395#      define LT_DLLAZY_OR_NOW		DL_LAZY
19396#    else
19397#      ifdef RTLD_NOW
19398#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19399#      else
19400#        ifdef DL_NOW
19401#          define LT_DLLAZY_OR_NOW	DL_NOW
19402#        else
19403#          define LT_DLLAZY_OR_NOW	0
19404#        endif
19405#      endif
19406#    endif
19407#  endif
19408#endif
19409
19410/* When -fvisibility=hidden is used, assume the code has been annotated
19411   correspondingly for the symbols needed.  */
19412#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19413int fnord () __attribute__((visibility("default")));
19414#endif
19415
19416int fnord () { return 42; }
19417int main ()
19418{
19419  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19420  int status = $lt_dlunknown;
19421
19422  if (self)
19423    {
19424      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19425      else
19426        {
19427	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19428          else puts (dlerror ());
19429	}
19430      /* dlclose (self); */
19431    }
19432  else
19433    puts (dlerror ());
19434
19435  return status;
19436}
19437_LT_EOF
19438  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19439  (eval $ac_link) 2>&5
19440  ac_status=$?
19441  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19442  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19443    (./conftest; exit; ) >&5 2>/dev/null
19444    lt_status=$?
19445    case x$lt_status in
19446      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19447      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19448      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19449    esac
19450  else :
19451    # compilation failed
19452    lt_cv_dlopen_self_static=no
19453  fi
19454fi
19455rm -fr conftest*
19456
19457
19458fi
19459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19460printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19461    fi
19462
19463    CPPFLAGS=$save_CPPFLAGS
19464    LDFLAGS=$save_LDFLAGS
19465    LIBS=$save_LIBS
19466    ;;
19467  esac
19468
19469  case $lt_cv_dlopen_self in
19470  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19471  *) enable_dlopen_self=unknown ;;
19472  esac
19473
19474  case $lt_cv_dlopen_self_static in
19475  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19476  *) enable_dlopen_self_static=unknown ;;
19477  esac
19478fi
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496striplib=
19497old_striplib=
19498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19499printf %s "checking whether stripping libraries is possible... " >&6; }
19500if test -z "$STRIP"; then
19501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19502printf "%s\n" "no" >&6; }
19503else
19504  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19505    old_striplib="$STRIP --strip-debug"
19506    striplib="$STRIP --strip-unneeded"
19507    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19508printf "%s\n" "yes" >&6; }
19509  else
19510    case $host_os in
19511    darwin*)
19512      # FIXME - insert some real tests, host_os isn't really good enough
19513      striplib="$STRIP -x"
19514      old_striplib="$STRIP -S"
19515      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19516printf "%s\n" "yes" >&6; }
19517      ;;
19518    freebsd*)
19519      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19520        old_striplib="$STRIP --strip-debug"
19521        striplib="$STRIP --strip-unneeded"
19522        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19523printf "%s\n" "yes" >&6; }
19524      else
19525        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19526printf "%s\n" "no" >&6; }
19527      fi
19528      ;;
19529    *)
19530      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19531printf "%s\n" "no" >&6; }
19532      ;;
19533    esac
19534  fi
19535fi
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548  # Report what library types will actually be built
19549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19550printf %s "checking if libtool supports shared libraries... " >&6; }
19551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19552printf "%s\n" "$can_build_shared" >&6; }
19553
19554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19555printf %s "checking whether to build shared libraries... " >&6; }
19556  test no = "$can_build_shared" && enable_shared=no
19557
19558  # On AIX, shared libraries and static libraries use the same namespace, and
19559  # are all built from PIC.
19560  case $host_os in
19561  aix3*)
19562    test yes = "$enable_shared" && enable_static=no
19563    if test -n "$RANLIB"; then
19564      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19565      postinstall_cmds='$RANLIB $lib'
19566    fi
19567    ;;
19568
19569  aix[4-9]*)
19570    if test ia64 != "$host_cpu"; then
19571      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19572      yes,aix,yes) ;;			# shared object as lib.so file only
19573      yes,svr4,*) ;;			# shared object as lib.so archive member only
19574      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19575      esac
19576    fi
19577    ;;
19578  esac
19579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19580printf "%s\n" "$enable_shared" >&6; }
19581
19582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19583printf %s "checking whether to build static libraries... " >&6; }
19584  # Make sure either enable_shared or enable_static is yes.
19585  test yes = "$enable_shared" || enable_static=yes
19586  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19587printf "%s\n" "$enable_static" >&6; }
19588
19589
19590
19591
19592fi
19593ac_ext=c
19594ac_cpp='$CPP $CPPFLAGS'
19595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597ac_compiler_gnu=$ac_cv_c_compiler_gnu
19598
19599CC=$lt_save_CC
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615        ac_config_commands="$ac_config_commands libtool"
19616
19617
19618
19619
19620# Only expand once:
19621
19622
19623
19624# Checks for programs.
19625
19626
19627if test "x$GCC" = "xyes"; then
19628	CPPFLAGS="$CPPFLAGS -Wall"
19629fi
19630
19631
19632
19633# Define a configure option for an alternate module directory
19634
19635# Check whether --with-xorg-module-dir was given.
19636if test ${with_xorg_module_dir+y}
19637then :
19638  withval=$with_xorg_module_dir; moduledir="$withval"
19639else $as_nop
19640  moduledir="$libdir/xorg/modules"
19641fi
19642
19643
19644# Store the list of server defined optional extensions in REQUIRED_MODULES
19645
19646
19647	SAVE_CFLAGS="$CFLAGS"
19648	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19649	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650/* end confdefs.h.  */
19651
19652#include "xorg-server.h"
19653#if !defined RANDR
19654#error RANDR not defined
19655#endif
19656
19657int
19658main (void)
19659{
19660
19661  ;
19662  return 0;
19663}
19664_ACEOF
19665if ac_fn_c_try_compile "$LINENO"
19666then :
19667  _EXT_CHECK=yes
19668else $as_nop
19669  _EXT_CHECK=no
19670fi
19671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19672	CFLAGS="$SAVE_CFLAGS"
19673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19674printf %s "checking if RANDR is defined... " >&6; }
19675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19676printf "%s\n" "$_EXT_CHECK" >&6; }
19677	if test "$_EXT_CHECK" != no; then
19678		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19679	fi
19680
19681
19682
19683	SAVE_CFLAGS="$CFLAGS"
19684	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19685	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686/* end confdefs.h.  */
19687
19688#include "xorg-server.h"
19689#if !defined RENDER
19690#error RENDER not defined
19691#endif
19692
19693int
19694main (void)
19695{
19696
19697  ;
19698  return 0;
19699}
19700_ACEOF
19701if ac_fn_c_try_compile "$LINENO"
19702then :
19703  _EXT_CHECK=yes
19704else $as_nop
19705  _EXT_CHECK=no
19706fi
19707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19708	CFLAGS="$SAVE_CFLAGS"
19709	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19710printf %s "checking if RENDER is defined... " >&6; }
19711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19712printf "%s\n" "$_EXT_CHECK" >&6; }
19713	if test "$_EXT_CHECK" != no; then
19714		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19715	fi
19716
19717
19718
19719	SAVE_CFLAGS="$CFLAGS"
19720	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19721	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722/* end confdefs.h.  */
19723
19724#include "xorg-server.h"
19725#if !defined XV
19726#error XV not defined
19727#endif
19728
19729int
19730main (void)
19731{
19732
19733  ;
19734  return 0;
19735}
19736_ACEOF
19737if ac_fn_c_try_compile "$LINENO"
19738then :
19739  _EXT_CHECK=yes
19740else $as_nop
19741  _EXT_CHECK=no
19742fi
19743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19744	CFLAGS="$SAVE_CFLAGS"
19745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19746printf %s "checking if XV is defined... " >&6; }
19747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19748printf "%s\n" "$_EXT_CHECK" >&6; }
19749	if test "$_EXT_CHECK" != no; then
19750		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19751	fi
19752
19753
19754
19755	SAVE_CFLAGS="$CFLAGS"
19756	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19757	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19758/* end confdefs.h.  */
19759
19760#include "xorg-server.h"
19761#if !defined DPMSExtension
19762#error DPMSExtension not defined
19763#endif
19764
19765int
19766main (void)
19767{
19768
19769  ;
19770  return 0;
19771}
19772_ACEOF
19773if ac_fn_c_try_compile "$LINENO"
19774then :
19775  _EXT_CHECK=yes
19776else $as_nop
19777  _EXT_CHECK=no
19778fi
19779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19780	CFLAGS="$SAVE_CFLAGS"
19781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19782printf %s "checking if DPMSExtension is defined... " >&6; }
19783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19784printf "%s\n" "$_EXT_CHECK" >&6; }
19785	if test "$_EXT_CHECK" != no; then
19786		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19787	fi
19788
19789
19790# Checks for libraries.
19791
19792pkg_failed=no
19793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
19794printf %s "checking for LIBDRM... " >&6; }
19795
19796if test -n "$LIBDRM_CFLAGS"; then
19797    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
19798 elif test -n "$PKG_CONFIG"; then
19799    if test -n "$PKG_CONFIG" && \
19800    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
19801  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
19802  ac_status=$?
19803  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19804  test $ac_status = 0; }; then
19805  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.89" 2>/dev/null`
19806		      test "x$?" != "x0" && pkg_failed=yes
19807else
19808  pkg_failed=yes
19809fi
19810 else
19811    pkg_failed=untried
19812fi
19813if test -n "$LIBDRM_LIBS"; then
19814    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
19815 elif test -n "$PKG_CONFIG"; then
19816    if test -n "$PKG_CONFIG" && \
19817    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
19818  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
19819  ac_status=$?
19820  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19821  test $ac_status = 0; }; then
19822  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.89" 2>/dev/null`
19823		      test "x$?" != "x0" && pkg_failed=yes
19824else
19825  pkg_failed=yes
19826fi
19827 else
19828    pkg_failed=untried
19829fi
19830
19831
19832
19833if test $pkg_failed = yes; then
19834   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19835printf "%s\n" "no" >&6; }
19836
19837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19838        _pkg_short_errors_supported=yes
19839else
19840        _pkg_short_errors_supported=no
19841fi
19842        if test $_pkg_short_errors_supported = yes; then
19843	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
19844        else
19845	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
19846        fi
19847	# Put the nasty error message in config.log where it belongs
19848	echo "$LIBDRM_PKG_ERRORS" >&5
19849
19850	as_fn_error $? "Package requirements (libdrm >= 2.4.89) were not met:
19851
19852$LIBDRM_PKG_ERRORS
19853
19854Consider adjusting the PKG_CONFIG_PATH environment variable if you
19855installed software in a non-standard prefix.
19856
19857Alternatively, you may set the environment variables LIBDRM_CFLAGS
19858and LIBDRM_LIBS to avoid the need to call pkg-config.
19859See the pkg-config man page for more details." "$LINENO" 5
19860elif test $pkg_failed = untried; then
19861     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862printf "%s\n" "no" >&6; }
19863	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19864printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19865as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19866is in your PATH or set the PKG_CONFIG environment variable to the full
19867path to pkg-config.
19868
19869Alternatively, you may set the environment variables LIBDRM_CFLAGS
19870and LIBDRM_LIBS to avoid the need to call pkg-config.
19871See the pkg-config man page for more details.
19872
19873To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19874See \`config.log' for more details" "$LINENO" 5; }
19875else
19876	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
19877	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
19878        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879printf "%s\n" "yes" >&6; }
19880
19881fi
19882
19883pkg_failed=no
19884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
19885printf %s "checking for LIBDRM_RADEON... " >&6; }
19886
19887if test -n "$LIBDRM_RADEON_CFLAGS"; then
19888    pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
19889 elif test -n "$PKG_CONFIG"; then
19890    if test -n "$PKG_CONFIG" && \
19891    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19892  ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19893  ac_status=$?
19894  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19895  test $ac_status = 0; }; then
19896  pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon" 2>/dev/null`
19897		      test "x$?" != "x0" && pkg_failed=yes
19898else
19899  pkg_failed=yes
19900fi
19901 else
19902    pkg_failed=untried
19903fi
19904if test -n "$LIBDRM_RADEON_LIBS"; then
19905    pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
19906 elif test -n "$PKG_CONFIG"; then
19907    if test -n "$PKG_CONFIG" && \
19908    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19909  ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19910  ac_status=$?
19911  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19912  test $ac_status = 0; }; then
19913  pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon" 2>/dev/null`
19914		      test "x$?" != "x0" && pkg_failed=yes
19915else
19916  pkg_failed=yes
19917fi
19918 else
19919    pkg_failed=untried
19920fi
19921
19922
19923
19924if test $pkg_failed = yes; then
19925   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19926printf "%s\n" "no" >&6; }
19927
19928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19929        _pkg_short_errors_supported=yes
19930else
19931        _pkg_short_errors_supported=no
19932fi
19933        if test $_pkg_short_errors_supported = yes; then
19934	        LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19935        else
19936	        LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19937        fi
19938	# Put the nasty error message in config.log where it belongs
19939	echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
19940
19941	as_fn_error $? "Package requirements (libdrm_radeon) were not met:
19942
19943$LIBDRM_RADEON_PKG_ERRORS
19944
19945Consider adjusting the PKG_CONFIG_PATH environment variable if you
19946installed software in a non-standard prefix.
19947
19948Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19949and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19950See the pkg-config man page for more details." "$LINENO" 5
19951elif test $pkg_failed = untried; then
19952     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19953printf "%s\n" "no" >&6; }
19954	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19955printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19956as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19957is in your PATH or set the PKG_CONFIG environment variable to the full
19958path to pkg-config.
19959
19960Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19961and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19962See the pkg-config man page for more details.
19963
19964To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19965See \`config.log' for more details" "$LINENO" 5; }
19966else
19967	LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
19968	LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
19969        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19970printf "%s\n" "yes" >&6; }
19971
19972fi
19973
19974# Obtain compiler/linker options for the driver dependencies
19975
19976pkg_failed=no
19977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19978printf %s "checking for XORG... " >&6; }
19979
19980if test -n "$XORG_CFLAGS"; then
19981    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19982 elif test -n "$PKG_CONFIG"; then
19983    if test -n "$PKG_CONFIG" && \
19984    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19985  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19986  ac_status=$?
19987  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19988  test $ac_status = 0; }; then
19989  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19990		      test "x$?" != "x0" && pkg_failed=yes
19991else
19992  pkg_failed=yes
19993fi
19994 else
19995    pkg_failed=untried
19996fi
19997if test -n "$XORG_LIBS"; then
19998    pkg_cv_XORG_LIBS="$XORG_LIBS"
19999 elif test -n "$PKG_CONFIG"; then
20000    if test -n "$PKG_CONFIG" && \
20001    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
20002  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
20003  ac_status=$?
20004  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20005  test $ac_status = 0; }; then
20006  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
20007		      test "x$?" != "x0" && pkg_failed=yes
20008else
20009  pkg_failed=yes
20010fi
20011 else
20012    pkg_failed=untried
20013fi
20014
20015
20016
20017if test $pkg_failed = yes; then
20018   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20019printf "%s\n" "no" >&6; }
20020
20021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20022        _pkg_short_errors_supported=yes
20023else
20024        _pkg_short_errors_supported=no
20025fi
20026        if test $_pkg_short_errors_supported = yes; then
20027	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
20028        else
20029	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
20030        fi
20031	# Put the nasty error message in config.log where it belongs
20032	echo "$XORG_PKG_ERRORS" >&5
20033
20034	as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
20035
20036$XORG_PKG_ERRORS
20037
20038Consider adjusting the PKG_CONFIG_PATH environment variable if you
20039installed software in a non-standard prefix.
20040
20041Alternatively, you may set the environment variables XORG_CFLAGS
20042and XORG_LIBS to avoid the need to call pkg-config.
20043See the pkg-config man page for more details." "$LINENO" 5
20044elif test $pkg_failed = untried; then
20045     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046printf "%s\n" "no" >&6; }
20047	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20048printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20049as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20050is in your PATH or set the PKG_CONFIG environment variable to the full
20051path to pkg-config.
20052
20053Alternatively, you may set the environment variables XORG_CFLAGS
20054and XORG_LIBS to avoid the need to call pkg-config.
20055See the pkg-config man page for more details.
20056
20057To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20058See \`config.log' for more details" "$LINENO" 5; }
20059else
20060	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20061	XORG_LIBS=$pkg_cv_XORG_LIBS
20062        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20063printf "%s\n" "yes" >&6; }
20064
20065fi
20066
20067pkg_failed=no
20068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
20069printf %s "checking for XEXT... " >&6; }
20070
20071if test -n "$XEXT_CFLAGS"; then
20072    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
20073 elif test -n "$PKG_CONFIG"; then
20074    if test -n "$PKG_CONFIG" && \
20075    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20076  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20077  ac_status=$?
20078  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20079  test $ac_status = 0; }; then
20080  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
20081		      test "x$?" != "x0" && pkg_failed=yes
20082else
20083  pkg_failed=yes
20084fi
20085 else
20086    pkg_failed=untried
20087fi
20088if test -n "$XEXT_LIBS"; then
20089    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20090 elif test -n "$PKG_CONFIG"; then
20091    if test -n "$PKG_CONFIG" && \
20092    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20093  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20094  ac_status=$?
20095  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20096  test $ac_status = 0; }; then
20097  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
20098		      test "x$?" != "x0" && pkg_failed=yes
20099else
20100  pkg_failed=yes
20101fi
20102 else
20103    pkg_failed=untried
20104fi
20105
20106
20107
20108if test $pkg_failed = yes; then
20109   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20110printf "%s\n" "no" >&6; }
20111
20112if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20113        _pkg_short_errors_supported=yes
20114else
20115        _pkg_short_errors_supported=no
20116fi
20117        if test $_pkg_short_errors_supported = yes; then
20118	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20119        else
20120	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20121        fi
20122	# Put the nasty error message in config.log where it belongs
20123	echo "$XEXT_PKG_ERRORS" >&5
20124
20125	HAVE_XEXTPROTO_71="no"
20126elif test $pkg_failed = untried; then
20127     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20128printf "%s\n" "no" >&6; }
20129	HAVE_XEXTPROTO_71="no"
20130else
20131	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20132	XEXT_LIBS=$pkg_cv_XEXT_LIBS
20133        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20134printf "%s\n" "yes" >&6; }
20135	HAVE_XEXTPROTO_71="yes";
20136printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
20137
20138fi
20139 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
20140  HAVE_XEXTPROTO_71_TRUE=
20141  HAVE_XEXTPROTO_71_FALSE='#'
20142else
20143  HAVE_XEXTPROTO_71_TRUE='#'
20144  HAVE_XEXTPROTO_71_FALSE=
20145fi
20146
20147
20148# Section "OutputClass" is only supported as of xserver 1.16
20149if test -n "$PKG_CONFIG" && \
20150    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5
20151  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5
20152  ac_status=$?
20153  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20154  test $ac_status = 0; }; then
20155  sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
20156else
20157  sysconfigdir=""
20158fi
20159 if test "x$sysconfigdir" != "x"; then
20160  HAS_XORG_CONF_DIR_TRUE=
20161  HAS_XORG_CONF_DIR_FALSE='#'
20162else
20163  HAS_XORG_CONF_DIR_TRUE='#'
20164  HAS_XORG_CONF_DIR_FALSE=
20165fi
20166
20167
20168# Define a configure option for an alternate X Server configuration directory
20169
20170# Check whether --with-xorg-conf-dir was given.
20171if test ${with_xorg_conf_dir+y}
20172then :
20173  withval=$with_xorg_conf_dir; configdir="$withval"
20174else $as_nop
20175  configdir='${prefix}/share/X11/xorg.conf.d'
20176fi
20177
20178
20179
20180# Check whether --enable-udev was given.
20181if test ${enable_udev+y}
20182then :
20183  enableval=$enable_udev; enable_udev="$enableval"
20184else $as_nop
20185  enable_udev=auto
20186fi
20187
20188if test "x$enable_udev" != "xno"; then
20189
20190pkg_failed=no
20191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
20192printf %s "checking for LIBUDEV... " >&6; }
20193
20194if test -n "$LIBUDEV_CFLAGS"; then
20195    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
20196 elif test -n "$PKG_CONFIG"; then
20197    if test -n "$PKG_CONFIG" && \
20198    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20199  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20200  ac_status=$?
20201  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20202  test $ac_status = 0; }; then
20203  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
20204		      test "x$?" != "x0" && pkg_failed=yes
20205else
20206  pkg_failed=yes
20207fi
20208 else
20209    pkg_failed=untried
20210fi
20211if test -n "$LIBUDEV_LIBS"; then
20212    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
20213 elif test -n "$PKG_CONFIG"; then
20214    if test -n "$PKG_CONFIG" && \
20215    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20216  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20217  ac_status=$?
20218  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20219  test $ac_status = 0; }; then
20220  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
20221		      test "x$?" != "x0" && pkg_failed=yes
20222else
20223  pkg_failed=yes
20224fi
20225 else
20226    pkg_failed=untried
20227fi
20228
20229
20230
20231if test $pkg_failed = yes; then
20232   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20233printf "%s\n" "no" >&6; }
20234
20235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20236        _pkg_short_errors_supported=yes
20237else
20238        _pkg_short_errors_supported=no
20239fi
20240        if test $_pkg_short_errors_supported = yes; then
20241	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
20242        else
20243	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
20244        fi
20245	# Put the nasty error message in config.log where it belongs
20246	echo "$LIBUDEV_PKG_ERRORS" >&5
20247
20248	LIBUDEV=no
20249elif test $pkg_failed = untried; then
20250     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20251printf "%s\n" "no" >&6; }
20252	LIBUDEV=no
20253else
20254	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
20255	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
20256        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20257printf "%s\n" "yes" >&6; }
20258	LIBUDEV=yes
20259fi
20260	if test "x$LIBUDEV" = xyes; then
20261
20262printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h
20263
20264	elif test "x$enable_udev" != "xauto"; then
20265		as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
20266	fi
20267fi
20268 if test x$LIBUDEV = xyes; then
20269  LIBUDEV_TRUE=
20270  LIBUDEV_FALSE='#'
20271else
20272  LIBUDEV_TRUE='#'
20273  LIBUDEV_FALSE=
20274fi
20275
20276
20277SAVE_CPPFLAGS="$CPPFLAGS"
20278CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20279
20280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
20281printf %s "checking whether to include GLAMOR support... " >&6; }
20282# Check whether --enable-glamor was given.
20283if test ${enable_glamor+y}
20284then :
20285  enableval=$enable_glamor; GLAMOR="$enableval"
20286else $as_nop
20287  GLAMOR=yes
20288fi
20289
20290
20291if test "x$GLAMOR" != "xno"; then
20292	       for ac_header in glamor.h
20293do :
20294  ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
20295"
20296if test "x$ac_cv_header_glamor_h" = xyes
20297then :
20298  printf "%s\n" "#define HAVE_GLAMOR_H 1" >>confdefs.h
20299 GLAMOR_H="yes"
20300else $as_nop
20301  GLAMOR_H="no"
20302fi
20303
20304done
20305
20306	if test "x$GLAMOR_H" = xyes; then
20307		ac_fn_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
20308			       #include \"glamor.h\"
20309" "$ac_c_undeclared_builtin_options" "CFLAGS"
20310if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes
20311then :
20312  GLAMOR_XSERVER="yes"
20313else $as_nop
20314  GLAMOR_XSERVER="no"
20315fi
20316
20317		ac_fn_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\"
20318			       #include \"glamor.h\"
20319" "$ac_c_undeclared_builtin_options" "CFLAGS"
20320if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes
20321then :
20322
20323printf "%s\n" "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h
20324
20325fi
20326
20327		ac_fn_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\"
20328			       #include \"glamor.h\"
20329" "$ac_c_undeclared_builtin_options" "CFLAGS"
20330if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes
20331then :
20332
20333printf "%s\n" "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h
20334
20335fi
20336
20337		ac_fn_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\"
20338			       #include \"glamor.h\"
20339" "$ac_c_undeclared_builtin_options" "CFLAGS"
20340if test "x$ac_cv_have_decl_glamor_finish" = xyes
20341then :
20342
20343printf "%s\n" "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h
20344
20345else $as_nop
20346
20347pkg_failed=no
20348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5
20349printf %s "checking for LIBGL... " >&6; }
20350
20351if test -n "$LIBGL_CFLAGS"; then
20352    pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
20353 elif test -n "$PKG_CONFIG"; then
20354    if test -n "$PKG_CONFIG" && \
20355    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
20356  ($PKG_CONFIG --exists --print-errors "gl") 2>&5
20357  ac_status=$?
20358  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20359  test $ac_status = 0; }; then
20360  pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
20361		      test "x$?" != "x0" && pkg_failed=yes
20362else
20363  pkg_failed=yes
20364fi
20365 else
20366    pkg_failed=untried
20367fi
20368if test -n "$LIBGL_LIBS"; then
20369    pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
20370 elif test -n "$PKG_CONFIG"; then
20371    if test -n "$PKG_CONFIG" && \
20372    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
20373  ($PKG_CONFIG --exists --print-errors "gl") 2>&5
20374  ac_status=$?
20375  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20376  test $ac_status = 0; }; then
20377  pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
20378		      test "x$?" != "x0" && pkg_failed=yes
20379else
20380  pkg_failed=yes
20381fi
20382 else
20383    pkg_failed=untried
20384fi
20385
20386
20387
20388if test $pkg_failed = yes; then
20389   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20390printf "%s\n" "no" >&6; }
20391
20392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20393        _pkg_short_errors_supported=yes
20394else
20395        _pkg_short_errors_supported=no
20396fi
20397        if test $_pkg_short_errors_supported = yes; then
20398	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
20399        else
20400	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
20401        fi
20402	# Put the nasty error message in config.log where it belongs
20403	echo "$LIBGL_PKG_ERRORS" >&5
20404
20405	as_fn_error $? "Package requirements (gl) were not met:
20406
20407$LIBGL_PKG_ERRORS
20408
20409Consider adjusting the PKG_CONFIG_PATH environment variable if you
20410installed software in a non-standard prefix.
20411
20412Alternatively, you may set the environment variables LIBGL_CFLAGS
20413and LIBGL_LIBS to avoid the need to call pkg-config.
20414See the pkg-config man page for more details." "$LINENO" 5
20415elif test $pkg_failed = untried; then
20416     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20417printf "%s\n" "no" >&6; }
20418	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20419printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20420as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20421is in your PATH or set the PKG_CONFIG environment variable to the full
20422path to pkg-config.
20423
20424Alternatively, you may set the environment variables LIBGL_CFLAGS
20425and LIBGL_LIBS to avoid the need to call pkg-config.
20426See the pkg-config man page for more details.
20427
20428To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20429See \`config.log' for more details" "$LINENO" 5; }
20430else
20431	LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
20432	LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
20433        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20434printf "%s\n" "yes" >&6; }
20435
20436fi
20437fi
20438	fi
20439
20440	if test "x$GLAMOR_XSERVER" != xyes; then
20441
20442pkg_failed=no
20443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
20444printf %s "checking for LIBGLAMOR... " >&6; }
20445
20446if test -n "$LIBGLAMOR_CFLAGS"; then
20447    pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
20448 elif test -n "$PKG_CONFIG"; then
20449    if test -n "$PKG_CONFIG" && \
20450    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
20451  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
20452  ac_status=$?
20453  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454  test $ac_status = 0; }; then
20455  pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
20456		      test "x$?" != "x0" && pkg_failed=yes
20457else
20458  pkg_failed=yes
20459fi
20460 else
20461    pkg_failed=untried
20462fi
20463if test -n "$LIBGLAMOR_LIBS"; then
20464    pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
20465 elif test -n "$PKG_CONFIG"; then
20466    if test -n "$PKG_CONFIG" && \
20467    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
20468  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
20469  ac_status=$?
20470  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471  test $ac_status = 0; }; then
20472  pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
20473		      test "x$?" != "x0" && pkg_failed=yes
20474else
20475  pkg_failed=yes
20476fi
20477 else
20478    pkg_failed=untried
20479fi
20480
20481
20482
20483if test $pkg_failed = yes; then
20484   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20485printf "%s\n" "no" >&6; }
20486
20487if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20488        _pkg_short_errors_supported=yes
20489else
20490        _pkg_short_errors_supported=no
20491fi
20492        if test $_pkg_short_errors_supported = yes; then
20493	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
20494        else
20495	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
20496        fi
20497	# Put the nasty error message in config.log where it belongs
20498	echo "$LIBGLAMOR_PKG_ERRORS" >&5
20499
20500	as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
20501
20502$LIBGLAMOR_PKG_ERRORS
20503
20504Consider adjusting the PKG_CONFIG_PATH environment variable if you
20505installed software in a non-standard prefix.
20506
20507Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
20508and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
20509See the pkg-config man page for more details." "$LINENO" 5
20510elif test $pkg_failed = untried; then
20511     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20512printf "%s\n" "no" >&6; }
20513	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20514printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20515as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20516is in your PATH or set the PKG_CONFIG environment variable to the full
20517path to pkg-config.
20518
20519Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
20520and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
20521See the pkg-config man page for more details.
20522
20523To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20524See \`config.log' for more details" "$LINENO" 5; }
20525else
20526	LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
20527	LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
20528        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20529printf "%s\n" "yes" >&6; }
20530
20531fi
20532
20533pkg_failed=no
20534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
20535printf %s "checking for LIBGLAMOR_EGL... " >&6; }
20536
20537if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
20538    pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
20539 elif test -n "$PKG_CONFIG"; then
20540    if test -n "$PKG_CONFIG" && \
20541    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
20542  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
20543  ac_status=$?
20544  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20545  test $ac_status = 0; }; then
20546  pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
20547		      test "x$?" != "x0" && pkg_failed=yes
20548else
20549  pkg_failed=yes
20550fi
20551 else
20552    pkg_failed=untried
20553fi
20554if test -n "$LIBGLAMOR_EGL_LIBS"; then
20555    pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
20556 elif test -n "$PKG_CONFIG"; then
20557    if test -n "$PKG_CONFIG" && \
20558    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
20559  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
20560  ac_status=$?
20561  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20562  test $ac_status = 0; }; then
20563  pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
20564		      test "x$?" != "x0" && pkg_failed=yes
20565else
20566  pkg_failed=yes
20567fi
20568 else
20569    pkg_failed=untried
20570fi
20571
20572
20573
20574if test $pkg_failed = yes; then
20575   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20576printf "%s\n" "no" >&6; }
20577
20578if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20579        _pkg_short_errors_supported=yes
20580else
20581        _pkg_short_errors_supported=no
20582fi
20583        if test $_pkg_short_errors_supported = yes; then
20584	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
20585        else
20586	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
20587        fi
20588	# Put the nasty error message in config.log where it belongs
20589	echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
20590
20591	as_fn_error $? "Package requirements (glamor-egl) were not met:
20592
20593$LIBGLAMOR_EGL_PKG_ERRORS
20594
20595Consider adjusting the PKG_CONFIG_PATH environment variable if you
20596installed software in a non-standard prefix.
20597
20598Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
20599and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
20600See the pkg-config man page for more details." "$LINENO" 5
20601elif test $pkg_failed = untried; then
20602     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20603printf "%s\n" "no" >&6; }
20604	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20605printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20606as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20607is in your PATH or set the PKG_CONFIG environment variable to the full
20608path to pkg-config.
20609
20610Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
20611and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
20612See the pkg-config man page for more details.
20613
20614To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20615See \`config.log' for more details" "$LINENO" 5; }
20616else
20617	LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
20618	LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
20619        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20620printf "%s\n" "yes" >&6; }
20621
20622fi
20623	fi
20624
20625
20626pkg_failed=no
20627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
20628printf %s "checking for GBM... " >&6; }
20629
20630if test -n "$GBM_CFLAGS"; then
20631    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
20632 elif test -n "$PKG_CONFIG"; then
20633    if test -n "$PKG_CONFIG" && \
20634    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 10.6\""; } >&5
20635  ($PKG_CONFIG --exists --print-errors "gbm >= 10.6") 2>&5
20636  ac_status=$?
20637  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20638  test $ac_status = 0; }; then
20639  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 10.6" 2>/dev/null`
20640		      test "x$?" != "x0" && pkg_failed=yes
20641else
20642  pkg_failed=yes
20643fi
20644 else
20645    pkg_failed=untried
20646fi
20647if test -n "$GBM_LIBS"; then
20648    pkg_cv_GBM_LIBS="$GBM_LIBS"
20649 elif test -n "$PKG_CONFIG"; then
20650    if test -n "$PKG_CONFIG" && \
20651    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 10.6\""; } >&5
20652  ($PKG_CONFIG --exists --print-errors "gbm >= 10.6") 2>&5
20653  ac_status=$?
20654  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20655  test $ac_status = 0; }; then
20656  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm >= 10.6" 2>/dev/null`
20657		      test "x$?" != "x0" && pkg_failed=yes
20658else
20659  pkg_failed=yes
20660fi
20661 else
20662    pkg_failed=untried
20663fi
20664
20665
20666
20667if test $pkg_failed = yes; then
20668   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20669printf "%s\n" "no" >&6; }
20670
20671if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20672        _pkg_short_errors_supported=yes
20673else
20674        _pkg_short_errors_supported=no
20675fi
20676        if test $_pkg_short_errors_supported = yes; then
20677	        GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 10.6" 2>&1`
20678        else
20679	        GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 10.6" 2>&1`
20680        fi
20681	# Put the nasty error message in config.log where it belongs
20682	echo "$GBM_PKG_ERRORS" >&5
20683
20684	as_fn_error $? "Package requirements (gbm >= 10.6) were not met:
20685
20686$GBM_PKG_ERRORS
20687
20688Consider adjusting the PKG_CONFIG_PATH environment variable if you
20689installed software in a non-standard prefix.
20690
20691Alternatively, you may set the environment variables GBM_CFLAGS
20692and GBM_LIBS to avoid the need to call pkg-config.
20693See the pkg-config man page for more details." "$LINENO" 5
20694elif test $pkg_failed = untried; then
20695     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20696printf "%s\n" "no" >&6; }
20697	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20698printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20699as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20700is in your PATH or set the PKG_CONFIG environment variable to the full
20701path to pkg-config.
20702
20703Alternatively, you may set the environment variables GBM_CFLAGS
20704and GBM_LIBS to avoid the need to call pkg-config.
20705See the pkg-config man page for more details.
20706
20707To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20708See \`config.log' for more details" "$LINENO" 5; }
20709else
20710	GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
20711	GBM_LIBS=$pkg_cv_GBM_LIBS
20712        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20713printf "%s\n" "yes" >&6; }
20714
20715fi
20716
20717
20718printf "%s\n" "#define USE_GLAMOR 1" >>confdefs.h
20719
20720else
20721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
20722printf "%s\n" "$GLAMOR" >&6; }
20723fi
20724 if test x$GLAMOR != xno; then
20725  GLAMOR_TRUE=
20726  GLAMOR_FALSE='#'
20727else
20728  GLAMOR_TRUE='#'
20729  GLAMOR_FALSE=
20730fi
20731
20732
20733ac_fn_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h>
20734	       #include <regionstr.h>
20735" "$ac_c_undeclared_builtin_options" "CFLAGS"
20736if test "x$ac_cv_have_decl_RegionDuplicate" = xyes
20737then :
20738
20739printf "%s\n" "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h
20740
20741fi
20742
20743ac_fn_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h>
20744	       #include <X11/Xfuncproto.h>
20745	       #include <X11/extensions/renderproto.h>
20746	       #include <xorg-server.h>
20747	       #include <picture.h>
20748	       #include <glyphstr.h>
20749	       #include <fbpict.h>
20750" "$ac_c_undeclared_builtin_options" "CFLAGS"
20751if test "x$ac_cv_have_decl_fbGlyphs" = xyes
20752then :
20753
20754printf "%s\n" "#define HAVE_FBGLYPHS 1" >>confdefs.h
20755
20756fi
20757
20758ac_fn_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
20759	       #include <xf86Cursor.h>
20760" "$ac_c_undeclared_builtin_options" "CFLAGS"
20761if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes
20762then :
20763
20764printf "%s\n" "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
20765
20766fi
20767
20768ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h>
20769	          #include <X11/Xfuncproto.h>
20770	          #include <xorg-server.h>
20771		  #include <screenint.h>
20772"
20773if test "x$ac_cv_header_misyncshm_h" = xyes
20774then :
20775  printf "%s\n" "#define HAVE_MISYNCSHM_H 1" >>confdefs.h
20776
20777fi
20778
20779
20780ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h>
20781		 #include <X11/Xproto.h>
20782		 #include \"xorg-server.h\"
20783		 #include <X11/X.h>
20784"
20785if test "x$ac_cv_header_present_h" = xyes
20786then :
20787  printf "%s\n" "#define HAVE_PRESENT_H 1" >>confdefs.h
20788
20789fi
20790
20791
20792ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h>
20793		 #include <xorg-server.h>
20794"
20795if test "x$ac_cv_header_dri3_h" = xyes
20796then :
20797  printf "%s\n" "#define HAVE_DRI3_H 1" >>confdefs.h
20798
20799fi
20800
20801
20802CPPFLAGS="$SAVE_CPPFLAGS"
20803
20804
20805pkg_failed=no
20806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20807printf %s "checking for PCIACCESS... " >&6; }
20808
20809if test -n "$PCIACCESS_CFLAGS"; then
20810    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20811 elif test -n "$PKG_CONFIG"; then
20812    if test -n "$PKG_CONFIG" && \
20813    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20814  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20815  ac_status=$?
20816  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20817  test $ac_status = 0; }; then
20818  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20819		      test "x$?" != "x0" && pkg_failed=yes
20820else
20821  pkg_failed=yes
20822fi
20823 else
20824    pkg_failed=untried
20825fi
20826if test -n "$PCIACCESS_LIBS"; then
20827    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20828 elif test -n "$PKG_CONFIG"; then
20829    if test -n "$PKG_CONFIG" && \
20830    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20831  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20832  ac_status=$?
20833  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20834  test $ac_status = 0; }; then
20835  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20836		      test "x$?" != "x0" && pkg_failed=yes
20837else
20838  pkg_failed=yes
20839fi
20840 else
20841    pkg_failed=untried
20842fi
20843
20844
20845
20846if test $pkg_failed = yes; then
20847   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20848printf "%s\n" "no" >&6; }
20849
20850if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20851        _pkg_short_errors_supported=yes
20852else
20853        _pkg_short_errors_supported=no
20854fi
20855        if test $_pkg_short_errors_supported = yes; then
20856	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20857        else
20858	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20859        fi
20860	# Put the nasty error message in config.log where it belongs
20861	echo "$PCIACCESS_PKG_ERRORS" >&5
20862
20863	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
20864
20865$PCIACCESS_PKG_ERRORS
20866
20867Consider adjusting the PKG_CONFIG_PATH environment variable if you
20868installed software in a non-standard prefix.
20869
20870Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20871and PCIACCESS_LIBS to avoid the need to call pkg-config.
20872See the pkg-config man page for more details." "$LINENO" 5
20873elif test $pkg_failed = untried; then
20874     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20875printf "%s\n" "no" >&6; }
20876	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20877printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20878as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20879is in your PATH or set the PKG_CONFIG environment variable to the full
20880path to pkg-config.
20881
20882Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20883and PCIACCESS_LIBS to avoid the need to call pkg-config.
20884See the pkg-config man page for more details.
20885
20886To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20887See \`config.log' for more details" "$LINENO" 5; }
20888else
20889	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20890	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20891        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20892printf "%s\n" "yes" >&6; }
20893
20894fi
20895XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20896
20897# Checks for headers/macros for byte swapping
20898# Known variants:
20899#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
20900#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
20901#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
20902#	and a fallback to local macros if none of the above are found
20903
20904# if <byteswap.h> is found, assume it's the correct version
20905ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
20906if test "x$ac_cv_header_byteswap_h" = xyes
20907then :
20908  printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
20909
20910fi
20911
20912
20913# if <sys/endian.h> is found, have to check which version
20914ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
20915if test "x$ac_cv_header_sys_endian_h" = xyes
20916then :
20917  HAVE_SYS_ENDIAN_H="yes"
20918else $as_nop
20919  HAVE_SYS_ENDIAN_H="no"
20920fi
20921
20922
20923if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
20924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
20925printf %s "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20926	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20927/* end confdefs.h.  */
20928
20929#include <sys/types.h>
20930#include <sys/endian.h>
20931
20932int
20933main (void)
20934{
20935
20936int a = 1, b;
20937b = __swap16(a);
20938
20939  ;
20940  return 0;
20941}
20942
20943_ACEOF
20944if ac_fn_c_try_link "$LINENO"
20945then :
20946  SYS_ENDIAN__SWAP='yes'
20947else $as_nop
20948  SYS_ENDIAN__SWAP='no'
20949fi
20950rm -f core conftest.err conftest.$ac_objext conftest.beam \
20951    conftest$ac_exeext conftest.$ac_ext
20952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
20953printf "%s\n" "$SYS_ENDIAN__SWAP" >&6; }
20954
20955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
20956printf %s "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20957	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958/* end confdefs.h.  */
20959
20960#include <sys/types.h>
20961#include <sys/endian.h>
20962
20963int
20964main (void)
20965{
20966
20967int a = 1, b;
20968b = bswap16(a);
20969
20970  ;
20971  return 0;
20972}
20973
20974_ACEOF
20975if ac_fn_c_try_link "$LINENO"
20976then :
20977  SYS_ENDIAN_BSWAP='yes'
20978else $as_nop
20979  SYS_ENDIAN_BSWAP='no'
20980fi
20981rm -f core conftest.err conftest.$ac_objext conftest.beam \
20982    conftest$ac_exeext conftest.$ac_ext
20983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
20984printf "%s\n" "$SYS_ENDIAN_BSWAP" >&6; }
20985
20986    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
20987		USE_SYS_ENDIAN_H=yes
20988		BSWAP=bswap
20989	else
20990	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
20991			USE_SYS_ENDIAN_H=yes
20992			BSWAP=__swap
20993		else
20994			USE_SYS_ENDIAN_H=no
20995		fi
20996	fi
20997
20998	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
20999
21000printf "%s\n" "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
21001
21002
21003printf "%s\n" "#define bswap_16 ${BSWAP}16" >>confdefs.h
21004
21005
21006printf "%s\n" "#define bswap_32 ${BSWAP}32" >>confdefs.h
21007
21008
21009printf "%s\n" "#define bswap_64 ${BSWAP}64" >>confdefs.h
21010
21011	fi
21012fi
21013
21014
21015
21016DRIVER_NAME=ati
21017
21018
21019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
21020    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
21021Please install that driver as well for mach64-based cards.
21022" >&5
21023printf "%s\n" "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
21024    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
21025Please install that driver as well for mach64-based cards.
21026" >&6;}
21027
21028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
21029    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
21030Please install that driver as well for rage128-based cards.
21031" >&5
21032printf "%s\n" "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
21033    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
21034Please install that driver as well for rage128-based cards.
21035" >&6;}
21036
21037ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile"
21038
21039cat >confcache <<\_ACEOF
21040# This file is a shell script that caches the results of configure
21041# tests run on this system so they can be shared between configure
21042# scripts and configure runs, see configure's option --config-cache.
21043# It is not useful on other systems.  If it contains results you don't
21044# want to keep, you may remove or edit it.
21045#
21046# config.status only pays attention to the cache file if you give it
21047# the --recheck option to rerun configure.
21048#
21049# `ac_cv_env_foo' variables (set or unset) will be overridden when
21050# loading this file, other *unset* `ac_cv_foo' will be assigned the
21051# following values.
21052
21053_ACEOF
21054
21055# The following way of writing the cache mishandles newlines in values,
21056# but we know of no workaround that is simple, portable, and efficient.
21057# So, we kill variables containing newlines.
21058# Ultrix sh set writes to stderr and can't be redirected directly,
21059# and sets the high bit in the cache file unless we assign to the vars.
21060(
21061  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21062    eval ac_val=\$$ac_var
21063    case $ac_val in #(
21064    *${as_nl}*)
21065      case $ac_var in #(
21066      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21067printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21068      esac
21069      case $ac_var in #(
21070      _ | IFS | as_nl) ;; #(
21071      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21072      *) { eval $ac_var=; unset $ac_var;} ;;
21073      esac ;;
21074    esac
21075  done
21076
21077  (set) 2>&1 |
21078    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21079    *${as_nl}ac_space=\ *)
21080      # `set' does not quote correctly, so add quotes: double-quote
21081      # substitution turns \\\\ into \\, and sed turns \\ into \.
21082      sed -n \
21083	"s/'/'\\\\''/g;
21084	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21085      ;; #(
21086    *)
21087      # `set' quotes correctly as required by POSIX, so do not add quotes.
21088      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21089      ;;
21090    esac |
21091    sort
21092) |
21093  sed '
21094     /^ac_cv_env_/b end
21095     t clear
21096     :clear
21097     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21098     t end
21099     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21100     :end' >>confcache
21101if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21102  if test -w "$cache_file"; then
21103    if test "x$cache_file" != "x/dev/null"; then
21104      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21105printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21106      if test ! -f "$cache_file" || test -h "$cache_file"; then
21107	cat confcache >"$cache_file"
21108      else
21109        case $cache_file in #(
21110        */* | ?:*)
21111	  mv -f confcache "$cache_file"$$ &&
21112	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21113        *)
21114	  mv -f confcache "$cache_file" ;;
21115	esac
21116      fi
21117    fi
21118  else
21119    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21120printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21121  fi
21122fi
21123rm -f confcache
21124
21125test "x$prefix" = xNONE && prefix=$ac_default_prefix
21126# Let make expand exec_prefix.
21127test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21128
21129DEFS=-DHAVE_CONFIG_H
21130
21131ac_libobjs=
21132ac_ltlibobjs=
21133U=
21134for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21135  # 1. Remove the extension, and $U if already installed.
21136  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21137  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21138  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21139  #    will be set to the directory where LIBOBJS objects are built.
21140  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21141  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21142done
21143LIBOBJS=$ac_libobjs
21144
21145LTLIBOBJS=$ac_ltlibobjs
21146
21147
21148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21149printf %s "checking that generated files are newer than configure... " >&6; }
21150   if test -n "$am_sleep_pid"; then
21151     # Hide warnings about reused PIDs.
21152     wait $am_sleep_pid 2>/dev/null
21153   fi
21154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21155printf "%s\n" "done" >&6; }
21156 if test -n "$EXEEXT"; then
21157  am__EXEEXT_TRUE=
21158  am__EXEEXT_FALSE='#'
21159else
21160  am__EXEEXT_TRUE='#'
21161  am__EXEEXT_FALSE=
21162fi
21163
21164if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21165  as_fn_error $? "conditional \"AMDEP\" was never defined.
21166Usually this means the macro was only invoked conditionally." "$LINENO" 5
21167fi
21168if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21169  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21170Usually this means the macro was only invoked conditionally." "$LINENO" 5
21171fi
21172if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
21173  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
21174Usually this means the macro was only invoked conditionally." "$LINENO" 5
21175fi
21176if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
21177  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
21178Usually this means the macro was only invoked conditionally." "$LINENO" 5
21179fi
21180if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
21181  as_fn_error $? "conditional \"LIBUDEV\" was never defined.
21182Usually this means the macro was only invoked conditionally." "$LINENO" 5
21183fi
21184if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
21185  as_fn_error $? "conditional \"GLAMOR\" was never defined.
21186Usually this means the macro was only invoked conditionally." "$LINENO" 5
21187fi
21188
21189: "${CONFIG_STATUS=./config.status}"
21190ac_write_fail=0
21191ac_clean_files_save=$ac_clean_files
21192ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21194printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21195as_write_fail=0
21196cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21197#! $SHELL
21198# Generated by $as_me.
21199# Run this file to recreate the current configuration.
21200# Compiler output produced by configure, useful for debugging
21201# configure, is in config.log if it exists.
21202
21203debug=false
21204ac_cs_recheck=false
21205ac_cs_silent=false
21206
21207SHELL=\${CONFIG_SHELL-$SHELL}
21208export SHELL
21209_ASEOF
21210cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21211## -------------------- ##
21212## M4sh Initialization. ##
21213## -------------------- ##
21214
21215# Be more Bourne compatible
21216DUALCASE=1; export DUALCASE # for MKS sh
21217as_nop=:
21218if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21219then :
21220  emulate sh
21221  NULLCMD=:
21222  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21223  # is contrary to our usage.  Disable this feature.
21224  alias -g '${1+"$@"}'='"$@"'
21225  setopt NO_GLOB_SUBST
21226else $as_nop
21227  case `(set -o) 2>/dev/null` in #(
21228  *posix*) :
21229    set -o posix ;; #(
21230  *) :
21231     ;;
21232esac
21233fi
21234
21235
21236
21237# Reset variables that may have inherited troublesome values from
21238# the environment.
21239
21240# IFS needs to be set, to space, tab, and newline, in precisely that order.
21241# (If _AS_PATH_WALK were called with IFS unset, it would have the
21242# side effect of setting IFS to empty, thus disabling word splitting.)
21243# Quoting is to prevent editors from complaining about space-tab.
21244as_nl='
21245'
21246export as_nl
21247IFS=" ""	$as_nl"
21248
21249PS1='$ '
21250PS2='> '
21251PS4='+ '
21252
21253# Ensure predictable behavior from utilities with locale-dependent output.
21254LC_ALL=C
21255export LC_ALL
21256LANGUAGE=C
21257export LANGUAGE
21258
21259# We cannot yet rely on "unset" to work, but we need these variables
21260# to be unset--not just set to an empty or harmless value--now, to
21261# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21262# also avoids known problems related to "unset" and subshell syntax
21263# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21264for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21265do eval test \${$as_var+y} \
21266  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21267done
21268
21269# Ensure that fds 0, 1, and 2 are open.
21270if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21271if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21272if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21273
21274# The user is always right.
21275if ${PATH_SEPARATOR+false} :; then
21276  PATH_SEPARATOR=:
21277  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21278    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21279      PATH_SEPARATOR=';'
21280  }
21281fi
21282
21283
21284# Find who we are.  Look in the path if we contain no directory separator.
21285as_myself=
21286case $0 in #((
21287  *[\\/]* ) as_myself=$0 ;;
21288  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21289for as_dir in $PATH
21290do
21291  IFS=$as_save_IFS
21292  case $as_dir in #(((
21293    '') as_dir=./ ;;
21294    */) ;;
21295    *) as_dir=$as_dir/ ;;
21296  esac
21297    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21298  done
21299IFS=$as_save_IFS
21300
21301     ;;
21302esac
21303# We did not find ourselves, most probably we were run as `sh COMMAND'
21304# in which case we are not to be found in the path.
21305if test "x$as_myself" = x; then
21306  as_myself=$0
21307fi
21308if test ! -f "$as_myself"; then
21309  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21310  exit 1
21311fi
21312
21313
21314
21315# as_fn_error STATUS ERROR [LINENO LOG_FD]
21316# ----------------------------------------
21317# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21318# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21319# script with STATUS, using 1 if that was 0.
21320as_fn_error ()
21321{
21322  as_status=$1; test $as_status -eq 0 && as_status=1
21323  if test "$4"; then
21324    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21325    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21326  fi
21327  printf "%s\n" "$as_me: error: $2" >&2
21328  as_fn_exit $as_status
21329} # as_fn_error
21330
21331
21332
21333# as_fn_set_status STATUS
21334# -----------------------
21335# Set $? to STATUS, without forking.
21336as_fn_set_status ()
21337{
21338  return $1
21339} # as_fn_set_status
21340
21341# as_fn_exit STATUS
21342# -----------------
21343# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21344as_fn_exit ()
21345{
21346  set +e
21347  as_fn_set_status $1
21348  exit $1
21349} # as_fn_exit
21350
21351# as_fn_unset VAR
21352# ---------------
21353# Portably unset VAR.
21354as_fn_unset ()
21355{
21356  { eval $1=; unset $1;}
21357}
21358as_unset=as_fn_unset
21359
21360# as_fn_append VAR VALUE
21361# ----------------------
21362# Append the text in VALUE to the end of the definition contained in VAR. Take
21363# advantage of any shell optimizations that allow amortized linear growth over
21364# repeated appends, instead of the typical quadratic growth present in naive
21365# implementations.
21366if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21367then :
21368  eval 'as_fn_append ()
21369  {
21370    eval $1+=\$2
21371  }'
21372else $as_nop
21373  as_fn_append ()
21374  {
21375    eval $1=\$$1\$2
21376  }
21377fi # as_fn_append
21378
21379# as_fn_arith ARG...
21380# ------------------
21381# Perform arithmetic evaluation on the ARGs, and store the result in the
21382# global $as_val. Take advantage of shells that can avoid forks. The arguments
21383# must be portable across $(()) and expr.
21384if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21385then :
21386  eval 'as_fn_arith ()
21387  {
21388    as_val=$(( $* ))
21389  }'
21390else $as_nop
21391  as_fn_arith ()
21392  {
21393    as_val=`expr "$@" || test $? -eq 1`
21394  }
21395fi # as_fn_arith
21396
21397
21398if expr a : '\(a\)' >/dev/null 2>&1 &&
21399   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21400  as_expr=expr
21401else
21402  as_expr=false
21403fi
21404
21405if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21406  as_basename=basename
21407else
21408  as_basename=false
21409fi
21410
21411if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21412  as_dirname=dirname
21413else
21414  as_dirname=false
21415fi
21416
21417as_me=`$as_basename -- "$0" ||
21418$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21419	 X"$0" : 'X\(//\)$' \| \
21420	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21421printf "%s\n" X/"$0" |
21422    sed '/^.*\/\([^/][^/]*\)\/*$/{
21423	    s//\1/
21424	    q
21425	  }
21426	  /^X\/\(\/\/\)$/{
21427	    s//\1/
21428	    q
21429	  }
21430	  /^X\/\(\/\).*/{
21431	    s//\1/
21432	    q
21433	  }
21434	  s/.*/./; q'`
21435
21436# Avoid depending upon Character Ranges.
21437as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21438as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21439as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21440as_cr_digits='0123456789'
21441as_cr_alnum=$as_cr_Letters$as_cr_digits
21442
21443
21444# Determine whether it's possible to make 'echo' print without a newline.
21445# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21446# for compatibility with existing Makefiles.
21447ECHO_C= ECHO_N= ECHO_T=
21448case `echo -n x` in #(((((
21449-n*)
21450  case `echo 'xy\c'` in
21451  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21452  xy)  ECHO_C='\c';;
21453  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21454       ECHO_T='	';;
21455  esac;;
21456*)
21457  ECHO_N='-n';;
21458esac
21459
21460# For backward compatibility with old third-party macros, we provide
21461# the shell variables $as_echo and $as_echo_n.  New code should use
21462# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21463as_echo='printf %s\n'
21464as_echo_n='printf %s'
21465
21466rm -f conf$$ conf$$.exe conf$$.file
21467if test -d conf$$.dir; then
21468  rm -f conf$$.dir/conf$$.file
21469else
21470  rm -f conf$$.dir
21471  mkdir conf$$.dir 2>/dev/null
21472fi
21473if (echo >conf$$.file) 2>/dev/null; then
21474  if ln -s conf$$.file conf$$ 2>/dev/null; then
21475    as_ln_s='ln -s'
21476    # ... but there are two gotchas:
21477    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21478    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21479    # In both cases, we have to default to `cp -pR'.
21480    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21481      as_ln_s='cp -pR'
21482  elif ln conf$$.file conf$$ 2>/dev/null; then
21483    as_ln_s=ln
21484  else
21485    as_ln_s='cp -pR'
21486  fi
21487else
21488  as_ln_s='cp -pR'
21489fi
21490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21491rmdir conf$$.dir 2>/dev/null
21492
21493
21494# as_fn_mkdir_p
21495# -------------
21496# Create "$as_dir" as a directory, including parents if necessary.
21497as_fn_mkdir_p ()
21498{
21499
21500  case $as_dir in #(
21501  -*) as_dir=./$as_dir;;
21502  esac
21503  test -d "$as_dir" || eval $as_mkdir_p || {
21504    as_dirs=
21505    while :; do
21506      case $as_dir in #(
21507      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21508      *) as_qdir=$as_dir;;
21509      esac
21510      as_dirs="'$as_qdir' $as_dirs"
21511      as_dir=`$as_dirname -- "$as_dir" ||
21512$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21513	 X"$as_dir" : 'X\(//\)[^/]' \| \
21514	 X"$as_dir" : 'X\(//\)$' \| \
21515	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21516printf "%s\n" X"$as_dir" |
21517    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21518	    s//\1/
21519	    q
21520	  }
21521	  /^X\(\/\/\)[^/].*/{
21522	    s//\1/
21523	    q
21524	  }
21525	  /^X\(\/\/\)$/{
21526	    s//\1/
21527	    q
21528	  }
21529	  /^X\(\/\).*/{
21530	    s//\1/
21531	    q
21532	  }
21533	  s/.*/./; q'`
21534      test -d "$as_dir" && break
21535    done
21536    test -z "$as_dirs" || eval "mkdir $as_dirs"
21537  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21538
21539
21540} # as_fn_mkdir_p
21541if mkdir -p . 2>/dev/null; then
21542  as_mkdir_p='mkdir -p "$as_dir"'
21543else
21544  test -d ./-p && rmdir ./-p
21545  as_mkdir_p=false
21546fi
21547
21548
21549# as_fn_executable_p FILE
21550# -----------------------
21551# Test if FILE is an executable regular file.
21552as_fn_executable_p ()
21553{
21554  test -f "$1" && test -x "$1"
21555} # as_fn_executable_p
21556as_test_x='test -x'
21557as_executable_p=as_fn_executable_p
21558
21559# Sed expression to map a string onto a valid CPP name.
21560as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21561
21562# Sed expression to map a string onto a valid variable name.
21563as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21564
21565
21566exec 6>&1
21567## ----------------------------------- ##
21568## Main body of $CONFIG_STATUS script. ##
21569## ----------------------------------- ##
21570_ASEOF
21571test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21572
21573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21574# Save the log message, to keep $0 and so on meaningful, and to
21575# report actual input values of CONFIG_FILES etc. instead of their
21576# values after options handling.
21577ac_log="
21578This file was extended by xf86-video-ati $as_me 22.0.0, which was
21579generated by GNU Autoconf 2.71.  Invocation command line was
21580
21581  CONFIG_FILES    = $CONFIG_FILES
21582  CONFIG_HEADERS  = $CONFIG_HEADERS
21583  CONFIG_LINKS    = $CONFIG_LINKS
21584  CONFIG_COMMANDS = $CONFIG_COMMANDS
21585  $ $0 $@
21586
21587on `(hostname || uname -n) 2>/dev/null | sed 1q`
21588"
21589
21590_ACEOF
21591
21592case $ac_config_files in *"
21593"*) set x $ac_config_files; shift; ac_config_files=$*;;
21594esac
21595
21596case $ac_config_headers in *"
21597"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21598esac
21599
21600
21601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21602# Files that config.status was made for.
21603config_files="$ac_config_files"
21604config_headers="$ac_config_headers"
21605config_commands="$ac_config_commands"
21606
21607_ACEOF
21608
21609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21610ac_cs_usage="\
21611\`$as_me' instantiates files and other configuration actions
21612from templates according to the current configuration.  Unless the files
21613and actions are specified as TAGs, all are instantiated by default.
21614
21615Usage: $0 [OPTION]... [TAG]...
21616
21617  -h, --help       print this help, then exit
21618  -V, --version    print version number and configuration settings, then exit
21619      --config     print configuration, then exit
21620  -q, --quiet, --silent
21621                   do not print progress messages
21622  -d, --debug      don't remove temporary files
21623      --recheck    update $as_me by reconfiguring in the same conditions
21624      --file=FILE[:TEMPLATE]
21625                   instantiate the configuration file FILE
21626      --header=FILE[:TEMPLATE]
21627                   instantiate the configuration header FILE
21628
21629Configuration files:
21630$config_files
21631
21632Configuration headers:
21633$config_headers
21634
21635Configuration commands:
21636$config_commands
21637
21638Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Radeon>."
21639
21640_ACEOF
21641ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21642ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21644ac_cs_config='$ac_cs_config_escaped'
21645ac_cs_version="\\
21646xf86-video-ati config.status 22.0.0
21647configured by $0, generated by GNU Autoconf 2.71,
21648  with options \\"\$ac_cs_config\\"
21649
21650Copyright (C) 2021 Free Software Foundation, Inc.
21651This config.status script is free software; the Free Software Foundation
21652gives unlimited permission to copy, distribute and modify it."
21653
21654ac_pwd='$ac_pwd'
21655srcdir='$srcdir'
21656INSTALL='$INSTALL'
21657MKDIR_P='$MKDIR_P'
21658AWK='$AWK'
21659test -n "\$AWK" || AWK=awk
21660_ACEOF
21661
21662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21663# The default lists apply if the user does not specify any file.
21664ac_need_defaults=:
21665while test $# != 0
21666do
21667  case $1 in
21668  --*=?*)
21669    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21670    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21671    ac_shift=:
21672    ;;
21673  --*=)
21674    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21675    ac_optarg=
21676    ac_shift=:
21677    ;;
21678  *)
21679    ac_option=$1
21680    ac_optarg=$2
21681    ac_shift=shift
21682    ;;
21683  esac
21684
21685  case $ac_option in
21686  # Handling of the options.
21687  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21688    ac_cs_recheck=: ;;
21689  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21690    printf "%s\n" "$ac_cs_version"; exit ;;
21691  --config | --confi | --conf | --con | --co | --c )
21692    printf "%s\n" "$ac_cs_config"; exit ;;
21693  --debug | --debu | --deb | --de | --d | -d )
21694    debug=: ;;
21695  --file | --fil | --fi | --f )
21696    $ac_shift
21697    case $ac_optarg in
21698    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21699    '') as_fn_error $? "missing file argument" ;;
21700    esac
21701    as_fn_append CONFIG_FILES " '$ac_optarg'"
21702    ac_need_defaults=false;;
21703  --header | --heade | --head | --hea )
21704    $ac_shift
21705    case $ac_optarg in
21706    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21707    esac
21708    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21709    ac_need_defaults=false;;
21710  --he | --h)
21711    # Conflict between --help and --header
21712    as_fn_error $? "ambiguous option: \`$1'
21713Try \`$0 --help' for more information.";;
21714  --help | --hel | -h )
21715    printf "%s\n" "$ac_cs_usage"; exit ;;
21716  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21717  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21718    ac_cs_silent=: ;;
21719
21720  # This is an error.
21721  -*) as_fn_error $? "unrecognized option: \`$1'
21722Try \`$0 --help' for more information." ;;
21723
21724  *) as_fn_append ac_config_targets " $1"
21725     ac_need_defaults=false ;;
21726
21727  esac
21728  shift
21729done
21730
21731ac_configure_extra_args=
21732
21733if $ac_cs_silent; then
21734  exec 6>/dev/null
21735  ac_configure_extra_args="$ac_configure_extra_args --silent"
21736fi
21737
21738_ACEOF
21739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21740if \$ac_cs_recheck; then
21741  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21742  shift
21743  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21744  CONFIG_SHELL='$SHELL'
21745  export CONFIG_SHELL
21746  exec "\$@"
21747fi
21748
21749_ACEOF
21750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21751exec 5>>config.log
21752{
21753  echo
21754  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21755## Running $as_me. ##
21756_ASBOX
21757  printf "%s\n" "$ac_log"
21758} >&5
21759
21760_ACEOF
21761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21762#
21763# INIT-COMMANDS
21764#
21765AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21766
21767
21768# The HP-UX ksh and POSIX shell print the target directory to stdout
21769# if CDPATH is set.
21770(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21771
21772sed_quote_subst='$sed_quote_subst'
21773double_quote_subst='$double_quote_subst'
21774delay_variable_subst='$delay_variable_subst'
21775enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21776macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21777macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21778enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21779pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21780enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21781shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21782SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21783ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21784PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21785host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21786host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21787host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21788build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21789build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21790build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21791SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21792Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21793GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21794EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21795FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21796LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21797NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21798LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21799max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21800ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21801exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21802lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21803lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21804lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21805lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21806lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21807reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21808reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21809FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21810OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21811deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21812file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21813file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21814want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21815DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21816sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21817AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21818lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21819AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21820archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21821STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21822RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21823old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21824old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21825old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21826lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21827CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21828CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21829compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21830GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21831lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21832lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21833lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21834lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21835lt_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"`'
21836lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21837nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21838lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21839lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21840objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21841MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21842lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21843lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21844lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21845lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21846lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21847need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21848MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21849DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21850NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21851LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21852OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21853OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21854libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21855shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21856extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21857archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21858enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21859export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21860whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21861compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21862old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21863old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21864archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21865archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21866module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21867module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21868with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21869allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21870no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21871hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21872hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21873hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21874hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21875hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21876hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21877hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21878inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21879link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21880always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21881export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21882exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21883include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21884prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21885postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21886file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21887variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21888need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21889need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21890version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21891runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21892shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21893shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21894libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21895library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21896soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21897install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21898postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21899postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21900finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21901finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21902hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21903sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21904configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21905configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21906hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21907enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21908enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21909enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21910old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21911striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21912
21913LTCC='$LTCC'
21914LTCFLAGS='$LTCFLAGS'
21915compiler='$compiler_DEFAULT'
21916
21917# A function that is used when there is no print builtin or printf.
21918func_fallback_echo ()
21919{
21920  eval 'cat <<_LTECHO_EOF
21921\$1
21922_LTECHO_EOF'
21923}
21924
21925# Quote evaled strings.
21926for var in SHELL \
21927ECHO \
21928PATH_SEPARATOR \
21929SED \
21930GREP \
21931EGREP \
21932FGREP \
21933LD \
21934NM \
21935LN_S \
21936lt_SP2NL \
21937lt_NL2SP \
21938reload_flag \
21939FILECMD \
21940OBJDUMP \
21941deplibs_check_method \
21942file_magic_cmd \
21943file_magic_glob \
21944want_nocaseglob \
21945DLLTOOL \
21946sharedlib_from_linklib_cmd \
21947AR \
21948archiver_list_spec \
21949STRIP \
21950RANLIB \
21951CC \
21952CFLAGS \
21953compiler \
21954lt_cv_sys_global_symbol_pipe \
21955lt_cv_sys_global_symbol_to_cdecl \
21956lt_cv_sys_global_symbol_to_import \
21957lt_cv_sys_global_symbol_to_c_name_address \
21958lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21959lt_cv_nm_interface \
21960nm_file_list_spec \
21961lt_cv_truncate_bin \
21962lt_prog_compiler_no_builtin_flag \
21963lt_prog_compiler_pic \
21964lt_prog_compiler_wl \
21965lt_prog_compiler_static \
21966lt_cv_prog_compiler_c_o \
21967need_locks \
21968MANIFEST_TOOL \
21969DSYMUTIL \
21970NMEDIT \
21971LIPO \
21972OTOOL \
21973OTOOL64 \
21974shrext_cmds \
21975export_dynamic_flag_spec \
21976whole_archive_flag_spec \
21977compiler_needs_object \
21978with_gnu_ld \
21979allow_undefined_flag \
21980no_undefined_flag \
21981hardcode_libdir_flag_spec \
21982hardcode_libdir_separator \
21983exclude_expsyms \
21984include_expsyms \
21985file_list_spec \
21986variables_saved_for_relink \
21987libname_spec \
21988library_names_spec \
21989soname_spec \
21990install_override_mode \
21991finish_eval \
21992old_striplib \
21993striplib; do
21994    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21995    *[\\\\\\\`\\"\\\$]*)
21996      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21997      ;;
21998    *)
21999      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22000      ;;
22001    esac
22002done
22003
22004# Double-quote double-evaled strings.
22005for var in reload_cmds \
22006old_postinstall_cmds \
22007old_postuninstall_cmds \
22008old_archive_cmds \
22009extract_expsyms_cmds \
22010old_archive_from_new_cmds \
22011old_archive_from_expsyms_cmds \
22012archive_cmds \
22013archive_expsym_cmds \
22014module_cmds \
22015module_expsym_cmds \
22016export_symbols_cmds \
22017prelink_cmds \
22018postlink_cmds \
22019postinstall_cmds \
22020postuninstall_cmds \
22021finish_cmds \
22022sys_lib_search_path_spec \
22023configure_time_dlsearch_path \
22024configure_time_lt_sys_library_path; do
22025    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22026    *[\\\\\\\`\\"\\\$]*)
22027      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22028      ;;
22029    *)
22030      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22031      ;;
22032    esac
22033done
22034
22035ac_aux_dir='$ac_aux_dir'
22036
22037# See if we are running on zsh, and set the options that allow our
22038# commands through without removal of \ escapes INIT.
22039if test -n "\${ZSH_VERSION+set}"; then
22040   setopt NO_GLOB_SUBST
22041fi
22042
22043
22044    PACKAGE='$PACKAGE'
22045    VERSION='$VERSION'
22046    RM='$RM'
22047    ofile='$ofile'
22048
22049
22050
22051
22052_ACEOF
22053
22054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22055
22056# Handling of arguments.
22057for ac_config_target in $ac_config_targets
22058do
22059  case $ac_config_target in
22060    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22061    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22062    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22063    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22064    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22065    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22066    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
22067
22068  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22069  esac
22070done
22071
22072
22073# If the user did not use the arguments to specify the items to instantiate,
22074# then the envvar interface is used.  Set only those that are not.
22075# We use the long form for the default assignment because of an extremely
22076# bizarre bug on SunOS 4.1.3.
22077if $ac_need_defaults; then
22078  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22079  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22080  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22081fi
22082
22083# Have a temporary directory for convenience.  Make it in the build tree
22084# simply because there is no reason against having it here, and in addition,
22085# creating and moving files from /tmp can sometimes cause problems.
22086# Hook for its removal unless debugging.
22087# Note that there is a small window in which the directory will not be cleaned:
22088# after its creation but before its name has been assigned to `$tmp'.
22089$debug ||
22090{
22091  tmp= ac_tmp=
22092  trap 'exit_status=$?
22093  : "${ac_tmp:=$tmp}"
22094  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22095' 0
22096  trap 'as_fn_exit 1' 1 2 13 15
22097}
22098# Create a (secure) tmp directory for tmp files.
22099
22100{
22101  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22102  test -d "$tmp"
22103}  ||
22104{
22105  tmp=./conf$$-$RANDOM
22106  (umask 077 && mkdir "$tmp")
22107} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22108ac_tmp=$tmp
22109
22110# Set up the scripts for CONFIG_FILES section.
22111# No need to generate them if there are no CONFIG_FILES.
22112# This happens for instance with `./config.status config.h'.
22113if test -n "$CONFIG_FILES"; then
22114
22115
22116ac_cr=`echo X | tr X '\015'`
22117# On cygwin, bash can eat \r inside `` if the user requested igncr.
22118# But we know of no other shell where ac_cr would be empty at this
22119# point, so we can use a bashism as a fallback.
22120if test "x$ac_cr" = x; then
22121  eval ac_cr=\$\'\\r\'
22122fi
22123ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22124if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22125  ac_cs_awk_cr='\\r'
22126else
22127  ac_cs_awk_cr=$ac_cr
22128fi
22129
22130echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22131_ACEOF
22132
22133
22134{
22135  echo "cat >conf$$subs.awk <<_ACEOF" &&
22136  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22137  echo "_ACEOF"
22138} >conf$$subs.sh ||
22139  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22140ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22141ac_delim='%!_!# '
22142for ac_last_try in false false false false false :; do
22143  . ./conf$$subs.sh ||
22144    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22145
22146  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22147  if test $ac_delim_n = $ac_delim_num; then
22148    break
22149  elif $ac_last_try; then
22150    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22151  else
22152    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22153  fi
22154done
22155rm -f conf$$subs.sh
22156
22157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22158cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22159_ACEOF
22160sed -n '
22161h
22162s/^/S["/; s/!.*/"]=/
22163p
22164g
22165s/^[^!]*!//
22166:repl
22167t repl
22168s/'"$ac_delim"'$//
22169t delim
22170:nl
22171h
22172s/\(.\{148\}\)..*/\1/
22173t more1
22174s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22175p
22176n
22177b repl
22178:more1
22179s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22180p
22181g
22182s/.\{148\}//
22183t nl
22184:delim
22185h
22186s/\(.\{148\}\)..*/\1/
22187t more2
22188s/["\\]/\\&/g; s/^/"/; s/$/"/
22189p
22190b
22191:more2
22192s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22193p
22194g
22195s/.\{148\}//
22196t delim
22197' <conf$$subs.awk | sed '
22198/^[^""]/{
22199  N
22200  s/\n//
22201}
22202' >>$CONFIG_STATUS || ac_write_fail=1
22203rm -f conf$$subs.awk
22204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22205_ACAWK
22206cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22207  for (key in S) S_is_set[key] = 1
22208  FS = ""
22209
22210}
22211{
22212  line = $ 0
22213  nfields = split(line, field, "@")
22214  substed = 0
22215  len = length(field[1])
22216  for (i = 2; i < nfields; i++) {
22217    key = field[i]
22218    keylen = length(key)
22219    if (S_is_set[key]) {
22220      value = S[key]
22221      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22222      len += length(value) + length(field[++i])
22223      substed = 1
22224    } else
22225      len += 1 + keylen
22226  }
22227
22228  print line
22229}
22230
22231_ACAWK
22232_ACEOF
22233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22234if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22235  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22236else
22237  cat
22238fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22239  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22240_ACEOF
22241
22242# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22243# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22244# trailing colons and then remove the whole line if VPATH becomes empty
22245# (actually we leave an empty line to preserve line numbers).
22246if test "x$srcdir" = x.; then
22247  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22248h
22249s///
22250s/^/:/
22251s/[	 ]*$/:/
22252s/:\$(srcdir):/:/g
22253s/:\${srcdir}:/:/g
22254s/:@srcdir@:/:/g
22255s/^:*//
22256s/:*$//
22257x
22258s/\(=[	 ]*\).*/\1/
22259G
22260s/\n//
22261s/^[^=]*=[	 ]*$//
22262}'
22263fi
22264
22265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22266fi # test -n "$CONFIG_FILES"
22267
22268# Set up the scripts for CONFIG_HEADERS section.
22269# No need to generate them if there are no CONFIG_HEADERS.
22270# This happens for instance with `./config.status Makefile'.
22271if test -n "$CONFIG_HEADERS"; then
22272cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22273BEGIN {
22274_ACEOF
22275
22276# Transform confdefs.h into an awk script `defines.awk', embedded as
22277# here-document in config.status, that substitutes the proper values into
22278# config.h.in to produce config.h.
22279
22280# Create a delimiter string that does not exist in confdefs.h, to ease
22281# handling of long lines.
22282ac_delim='%!_!# '
22283for ac_last_try in false false :; do
22284  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22285  if test -z "$ac_tt"; then
22286    break
22287  elif $ac_last_try; then
22288    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22289  else
22290    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22291  fi
22292done
22293
22294# For the awk script, D is an array of macro values keyed by name,
22295# likewise P contains macro parameters if any.  Preserve backslash
22296# newline sequences.
22297
22298ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22299sed -n '
22300s/.\{148\}/&'"$ac_delim"'/g
22301t rset
22302:rset
22303s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22304t def
22305d
22306:def
22307s/\\$//
22308t bsnl
22309s/["\\]/\\&/g
22310s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22311D["\1"]=" \3"/p
22312s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22313d
22314:bsnl
22315s/["\\]/\\&/g
22316s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22317D["\1"]=" \3\\\\\\n"\\/p
22318t cont
22319s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22320t cont
22321d
22322:cont
22323n
22324s/.\{148\}/&'"$ac_delim"'/g
22325t clear
22326:clear
22327s/\\$//
22328t bsnlc
22329s/["\\]/\\&/g; s/^/"/; s/$/"/p
22330d
22331:bsnlc
22332s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22333b cont
22334' <confdefs.h | sed '
22335s/'"$ac_delim"'/"\\\
22336"/g' >>$CONFIG_STATUS || ac_write_fail=1
22337
22338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22339  for (key in D) D_is_set[key] = 1
22340  FS = ""
22341}
22342/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22343  line = \$ 0
22344  split(line, arg, " ")
22345  if (arg[1] == "#") {
22346    defundef = arg[2]
22347    mac1 = arg[3]
22348  } else {
22349    defundef = substr(arg[1], 2)
22350    mac1 = arg[2]
22351  }
22352  split(mac1, mac2, "(") #)
22353  macro = mac2[1]
22354  prefix = substr(line, 1, index(line, defundef) - 1)
22355  if (D_is_set[macro]) {
22356    # Preserve the white space surrounding the "#".
22357    print prefix "define", macro P[macro] D[macro]
22358    next
22359  } else {
22360    # Replace #undef with comments.  This is necessary, for example,
22361    # in the case of _POSIX_SOURCE, which is predefined and required
22362    # on some systems where configure will not decide to define it.
22363    if (defundef == "undef") {
22364      print "/*", prefix defundef, macro, "*/"
22365      next
22366    }
22367  }
22368}
22369{ print }
22370_ACAWK
22371_ACEOF
22372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22373  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22374fi # test -n "$CONFIG_HEADERS"
22375
22376
22377eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22378shift
22379for ac_tag
22380do
22381  case $ac_tag in
22382  :[FHLC]) ac_mode=$ac_tag; continue;;
22383  esac
22384  case $ac_mode$ac_tag in
22385  :[FHL]*:*);;
22386  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22387  :[FH]-) ac_tag=-:-;;
22388  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22389  esac
22390  ac_save_IFS=$IFS
22391  IFS=:
22392  set x $ac_tag
22393  IFS=$ac_save_IFS
22394  shift
22395  ac_file=$1
22396  shift
22397
22398  case $ac_mode in
22399  :L) ac_source=$1;;
22400  :[FH])
22401    ac_file_inputs=
22402    for ac_f
22403    do
22404      case $ac_f in
22405      -) ac_f="$ac_tmp/stdin";;
22406      *) # Look for the file first in the build tree, then in the source tree
22407	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22408	 # because $ac_f cannot contain `:'.
22409	 test -f "$ac_f" ||
22410	   case $ac_f in
22411	   [\\/$]*) false;;
22412	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22413	   esac ||
22414	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22415      esac
22416      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22417      as_fn_append ac_file_inputs " '$ac_f'"
22418    done
22419
22420    # Let's still pretend it is `configure' which instantiates (i.e., don't
22421    # use $as_me), people would be surprised to read:
22422    #    /* config.h.  Generated by config.status.  */
22423    configure_input='Generated from '`
22424	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22425	`' by configure.'
22426    if test x"$ac_file" != x-; then
22427      configure_input="$ac_file.  $configure_input"
22428      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22429printf "%s\n" "$as_me: creating $ac_file" >&6;}
22430    fi
22431    # Neutralize special characters interpreted by sed in replacement strings.
22432    case $configure_input in #(
22433    *\&* | *\|* | *\\* )
22434       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22435       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22436    *) ac_sed_conf_input=$configure_input;;
22437    esac
22438
22439    case $ac_tag in
22440    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22441      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22442    esac
22443    ;;
22444  esac
22445
22446  ac_dir=`$as_dirname -- "$ac_file" ||
22447$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22448	 X"$ac_file" : 'X\(//\)[^/]' \| \
22449	 X"$ac_file" : 'X\(//\)$' \| \
22450	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22451printf "%s\n" X"$ac_file" |
22452    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22453	    s//\1/
22454	    q
22455	  }
22456	  /^X\(\/\/\)[^/].*/{
22457	    s//\1/
22458	    q
22459	  }
22460	  /^X\(\/\/\)$/{
22461	    s//\1/
22462	    q
22463	  }
22464	  /^X\(\/\).*/{
22465	    s//\1/
22466	    q
22467	  }
22468	  s/.*/./; q'`
22469  as_dir="$ac_dir"; as_fn_mkdir_p
22470  ac_builddir=.
22471
22472case "$ac_dir" in
22473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22474*)
22475  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22476  # A ".." for each directory in $ac_dir_suffix.
22477  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22478  case $ac_top_builddir_sub in
22479  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22480  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22481  esac ;;
22482esac
22483ac_abs_top_builddir=$ac_pwd
22484ac_abs_builddir=$ac_pwd$ac_dir_suffix
22485# for backward compatibility:
22486ac_top_builddir=$ac_top_build_prefix
22487
22488case $srcdir in
22489  .)  # We are building in place.
22490    ac_srcdir=.
22491    ac_top_srcdir=$ac_top_builddir_sub
22492    ac_abs_top_srcdir=$ac_pwd ;;
22493  [\\/]* | ?:[\\/]* )  # Absolute name.
22494    ac_srcdir=$srcdir$ac_dir_suffix;
22495    ac_top_srcdir=$srcdir
22496    ac_abs_top_srcdir=$srcdir ;;
22497  *) # Relative name.
22498    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22499    ac_top_srcdir=$ac_top_build_prefix$srcdir
22500    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22501esac
22502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22503
22504
22505  case $ac_mode in
22506  :F)
22507  #
22508  # CONFIG_FILE
22509  #
22510
22511  case $INSTALL in
22512  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22513  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22514  esac
22515  ac_MKDIR_P=$MKDIR_P
22516  case $MKDIR_P in
22517  [\\/$]* | ?:[\\/]* ) ;;
22518  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22519  esac
22520_ACEOF
22521
22522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22523# If the template does not know about datarootdir, expand it.
22524# FIXME: This hack should be removed a few years after 2.60.
22525ac_datarootdir_hack=; ac_datarootdir_seen=
22526ac_sed_dataroot='
22527/datarootdir/ {
22528  p
22529  q
22530}
22531/@datadir@/p
22532/@docdir@/p
22533/@infodir@/p
22534/@localedir@/p
22535/@mandir@/p'
22536case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22537*datarootdir*) ac_datarootdir_seen=yes;;
22538*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22540printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22541_ACEOF
22542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22543  ac_datarootdir_hack='
22544  s&@datadir@&$datadir&g
22545  s&@docdir@&$docdir&g
22546  s&@infodir@&$infodir&g
22547  s&@localedir@&$localedir&g
22548  s&@mandir@&$mandir&g
22549  s&\\\${datarootdir}&$datarootdir&g' ;;
22550esac
22551_ACEOF
22552
22553# Neutralize VPATH when `$srcdir' = `.'.
22554# Shell code in configure.ac might set extrasub.
22555# FIXME: do we really want to maintain this feature?
22556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22557ac_sed_extra="$ac_vpsub
22558$extrasub
22559_ACEOF
22560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22561:t
22562/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22563s|@configure_input@|$ac_sed_conf_input|;t t
22564s&@top_builddir@&$ac_top_builddir_sub&;t t
22565s&@top_build_prefix@&$ac_top_build_prefix&;t t
22566s&@srcdir@&$ac_srcdir&;t t
22567s&@abs_srcdir@&$ac_abs_srcdir&;t t
22568s&@top_srcdir@&$ac_top_srcdir&;t t
22569s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22570s&@builddir@&$ac_builddir&;t t
22571s&@abs_builddir@&$ac_abs_builddir&;t t
22572s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22573s&@INSTALL@&$ac_INSTALL&;t t
22574s&@MKDIR_P@&$ac_MKDIR_P&;t t
22575$ac_datarootdir_hack
22576"
22577eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22578  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22579
22580test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22581  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22582  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22583      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22585which seems to be undefined.  Please make sure it is defined" >&5
22586printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22587which seems to be undefined.  Please make sure it is defined" >&2;}
22588
22589  rm -f "$ac_tmp/stdin"
22590  case $ac_file in
22591  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22592  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22593  esac \
22594  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22595 ;;
22596  :H)
22597  #
22598  # CONFIG_HEADER
22599  #
22600  if test x"$ac_file" != x-; then
22601    {
22602      printf "%s\n" "/* $configure_input  */" >&1 \
22603      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22604    } >"$ac_tmp/config.h" \
22605      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22606    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22607      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22608printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22609    else
22610      rm -f "$ac_file"
22611      mv "$ac_tmp/config.h" "$ac_file" \
22612	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22613    fi
22614  else
22615    printf "%s\n" "/* $configure_input  */" >&1 \
22616      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22617      || as_fn_error $? "could not create -" "$LINENO" 5
22618  fi
22619# Compute "$ac_file"'s index in $config_headers.
22620_am_arg="$ac_file"
22621_am_stamp_count=1
22622for _am_header in $config_headers :; do
22623  case $_am_header in
22624    $_am_arg | $_am_arg:* )
22625      break ;;
22626    * )
22627      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22628  esac
22629done
22630echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22631$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22632	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22633	 X"$_am_arg" : 'X\(//\)$' \| \
22634	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22635printf "%s\n" X"$_am_arg" |
22636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22637	    s//\1/
22638	    q
22639	  }
22640	  /^X\(\/\/\)[^/].*/{
22641	    s//\1/
22642	    q
22643	  }
22644	  /^X\(\/\/\)$/{
22645	    s//\1/
22646	    q
22647	  }
22648	  /^X\(\/\).*/{
22649	    s//\1/
22650	    q
22651	  }
22652	  s/.*/./; q'`/stamp-h$_am_stamp_count
22653 ;;
22654
22655  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22656printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22657 ;;
22658  esac
22659
22660
22661  case $ac_file$ac_mode in
22662    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22663  # Older Autoconf quotes --file arguments for eval, but not when files
22664  # are listed without --file.  Let's play safe and only enable the eval
22665  # if we detect the quoting.
22666  # TODO: see whether this extra hack can be removed once we start
22667  # requiring Autoconf 2.70 or later.
22668  case $CONFIG_FILES in #(
22669  *\'*) :
22670    eval set x "$CONFIG_FILES" ;; #(
22671  *) :
22672    set x $CONFIG_FILES ;; #(
22673  *) :
22674     ;;
22675esac
22676  shift
22677  # Used to flag and report bootstrapping failures.
22678  am_rc=0
22679  for am_mf
22680  do
22681    # Strip MF so we end up with the name of the file.
22682    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22683    # Check whether this is an Automake generated Makefile which includes
22684    # dependency-tracking related rules and includes.
22685    # Grep'ing the whole file directly is not great: AIX grep has a line
22686    # limit of 2048, but all sed's we know have understand at least 4000.
22687    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22688      || continue
22689    am_dirpart=`$as_dirname -- "$am_mf" ||
22690$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22691	 X"$am_mf" : 'X\(//\)[^/]' \| \
22692	 X"$am_mf" : 'X\(//\)$' \| \
22693	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22694printf "%s\n" X"$am_mf" |
22695    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22696	    s//\1/
22697	    q
22698	  }
22699	  /^X\(\/\/\)[^/].*/{
22700	    s//\1/
22701	    q
22702	  }
22703	  /^X\(\/\/\)$/{
22704	    s//\1/
22705	    q
22706	  }
22707	  /^X\(\/\).*/{
22708	    s//\1/
22709	    q
22710	  }
22711	  s/.*/./; q'`
22712    am_filepart=`$as_basename -- "$am_mf" ||
22713$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22714	 X"$am_mf" : 'X\(//\)$' \| \
22715	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22716printf "%s\n" X/"$am_mf" |
22717    sed '/^.*\/\([^/][^/]*\)\/*$/{
22718	    s//\1/
22719	    q
22720	  }
22721	  /^X\/\(\/\/\)$/{
22722	    s//\1/
22723	    q
22724	  }
22725	  /^X\/\(\/\).*/{
22726	    s//\1/
22727	    q
22728	  }
22729	  s/.*/./; q'`
22730    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22731      && sed -e '/# am--include-marker/d' "$am_filepart" \
22732        | $MAKE -f - am--depfiles" >&5
22733   (cd "$am_dirpart" \
22734      && sed -e '/# am--include-marker/d' "$am_filepart" \
22735        | $MAKE -f - am--depfiles) >&5 2>&5
22736   ac_status=$?
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); } || am_rc=$?
22739  done
22740  if test $am_rc -ne 0; then
22741    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22742printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22743as_fn_error $? "Something went wrong bootstrapping makefile fragments
22744    for automatic dependency tracking.  If GNU make was not used, consider
22745    re-running the configure script with MAKE=\"gmake\" (or whatever is
22746    necessary).  You can also try re-running configure with the
22747    '--disable-dependency-tracking' option to at least be able to build
22748    the package (albeit without support for automatic dependency tracking).
22749See \`config.log' for more details" "$LINENO" 5; }
22750  fi
22751  { am_dirpart=; unset am_dirpart;}
22752  { am_filepart=; unset am_filepart;}
22753  { am_mf=; unset am_mf;}
22754  { am_rc=; unset am_rc;}
22755  rm -f conftest-deps.mk
22756}
22757 ;;
22758    "libtool":C)
22759
22760    # See if we are running on zsh, and set the options that allow our
22761    # commands through without removal of \ escapes.
22762    if test -n "${ZSH_VERSION+set}"; then
22763      setopt NO_GLOB_SUBST
22764    fi
22765
22766    cfgfile=${ofile}T
22767    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22768    $RM "$cfgfile"
22769
22770    cat <<_LT_EOF >> "$cfgfile"
22771#! $SHELL
22772# Generated automatically by $as_me ($PACKAGE) $VERSION
22773# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22774# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22775
22776# Provide generalized library-building support services.
22777# Written by Gordon Matzigkeit, 1996
22778
22779# Copyright (C) 2014 Free Software Foundation, Inc.
22780# This is free software; see the source for copying conditions.  There is NO
22781# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22782
22783# GNU Libtool is free software; you can redistribute it and/or modify
22784# it under the terms of the GNU General Public License as published by
22785# the Free Software Foundation; either version 2 of of the License, or
22786# (at your option) any later version.
22787#
22788# As a special exception to the GNU General Public License, if you
22789# distribute this file as part of a program or library that is built
22790# using GNU Libtool, you may include this file under the  same
22791# distribution terms that you use for the rest of that program.
22792#
22793# GNU Libtool is distributed in the hope that it will be useful, but
22794# WITHOUT ANY WARRANTY; without even the implied warranty of
22795# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22796# GNU General Public License for more details.
22797#
22798# You should have received a copy of the GNU General Public License
22799# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22800
22801
22802# The names of the tagged configurations supported by this script.
22803available_tags=''
22804
22805# Configured defaults for sys_lib_dlsearch_path munging.
22806: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22807
22808# ### BEGIN LIBTOOL CONFIG
22809
22810# Whether or not to build static libraries.
22811build_old_libs=$enable_static
22812
22813# Which release of libtool.m4 was used?
22814macro_version=$macro_version
22815macro_revision=$macro_revision
22816
22817# Whether or not to build shared libraries.
22818build_libtool_libs=$enable_shared
22819
22820# What type of objects to build.
22821pic_mode=$pic_mode
22822
22823# Whether or not to optimize for fast installation.
22824fast_install=$enable_fast_install
22825
22826# Shared archive member basename,for filename based shared library versioning on AIX.
22827shared_archive_member_spec=$shared_archive_member_spec
22828
22829# Shell to use when invoking shell scripts.
22830SHELL=$lt_SHELL
22831
22832# An echo program that protects backslashes.
22833ECHO=$lt_ECHO
22834
22835# The PATH separator for the build system.
22836PATH_SEPARATOR=$lt_PATH_SEPARATOR
22837
22838# The host system.
22839host_alias=$host_alias
22840host=$host
22841host_os=$host_os
22842
22843# The build system.
22844build_alias=$build_alias
22845build=$build
22846build_os=$build_os
22847
22848# A sed program that does not truncate output.
22849SED=$lt_SED
22850
22851# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22852Xsed="\$SED -e 1s/^X//"
22853
22854# A grep program that handles long lines.
22855GREP=$lt_GREP
22856
22857# An ERE matcher.
22858EGREP=$lt_EGREP
22859
22860# A literal string matcher.
22861FGREP=$lt_FGREP
22862
22863# A BSD- or MS-compatible name lister.
22864NM=$lt_NM
22865
22866# Whether we need soft or hard links.
22867LN_S=$lt_LN_S
22868
22869# What is the maximum length of a command?
22870max_cmd_len=$max_cmd_len
22871
22872# Object file suffix (normally "o").
22873objext=$ac_objext
22874
22875# Executable file suffix (normally "").
22876exeext=$exeext
22877
22878# whether the shell understands "unset".
22879lt_unset=$lt_unset
22880
22881# turn spaces into newlines.
22882SP2NL=$lt_lt_SP2NL
22883
22884# turn newlines into spaces.
22885NL2SP=$lt_lt_NL2SP
22886
22887# convert \$build file names to \$host format.
22888to_host_file_cmd=$lt_cv_to_host_file_cmd
22889
22890# convert \$build files to toolchain format.
22891to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22892
22893# A file(cmd) program that detects file types.
22894FILECMD=$lt_FILECMD
22895
22896# An object symbol dumper.
22897OBJDUMP=$lt_OBJDUMP
22898
22899# Method to check whether dependent libraries are shared objects.
22900deplibs_check_method=$lt_deplibs_check_method
22901
22902# Command to use when deplibs_check_method = "file_magic".
22903file_magic_cmd=$lt_file_magic_cmd
22904
22905# How to find potential files when deplibs_check_method = "file_magic".
22906file_magic_glob=$lt_file_magic_glob
22907
22908# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22909want_nocaseglob=$lt_want_nocaseglob
22910
22911# DLL creation program.
22912DLLTOOL=$lt_DLLTOOL
22913
22914# Command to associate shared and link libraries.
22915sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22916
22917# The archiver.
22918AR=$lt_AR
22919
22920# Flags to create an archive (by configure).
22921lt_ar_flags=$lt_ar_flags
22922
22923# Flags to create an archive.
22924AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22925
22926# How to feed a file listing to the archiver.
22927archiver_list_spec=$lt_archiver_list_spec
22928
22929# A symbol stripping program.
22930STRIP=$lt_STRIP
22931
22932# Commands used to install an old-style archive.
22933RANLIB=$lt_RANLIB
22934old_postinstall_cmds=$lt_old_postinstall_cmds
22935old_postuninstall_cmds=$lt_old_postuninstall_cmds
22936
22937# Whether to use a lock for old archive extraction.
22938lock_old_archive_extraction=$lock_old_archive_extraction
22939
22940# A C compiler.
22941LTCC=$lt_CC
22942
22943# LTCC compiler flags.
22944LTCFLAGS=$lt_CFLAGS
22945
22946# Take the output of nm and produce a listing of raw symbols and C names.
22947global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22948
22949# Transform the output of nm in a proper C declaration.
22950global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22951
22952# Transform the output of nm into a list of symbols to manually relocate.
22953global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22954
22955# Transform the output of nm in a C name address pair.
22956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22957
22958# Transform the output of nm in a C name address pair when lib prefix is needed.
22959global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22960
22961# The name lister interface.
22962nm_interface=$lt_lt_cv_nm_interface
22963
22964# Specify filename containing input files for \$NM.
22965nm_file_list_spec=$lt_nm_file_list_spec
22966
22967# The root where to search for dependent libraries,and where our libraries should be installed.
22968lt_sysroot=$lt_sysroot
22969
22970# Command to truncate a binary pipe.
22971lt_truncate_bin=$lt_lt_cv_truncate_bin
22972
22973# The name of the directory that contains temporary libtool files.
22974objdir=$objdir
22975
22976# Used to examine libraries when file_magic_cmd begins with "file".
22977MAGIC_CMD=$MAGIC_CMD
22978
22979# Must we lock files when doing compilation?
22980need_locks=$lt_need_locks
22981
22982# Manifest tool.
22983MANIFEST_TOOL=$lt_MANIFEST_TOOL
22984
22985# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22986DSYMUTIL=$lt_DSYMUTIL
22987
22988# Tool to change global to local symbols on Mac OS X.
22989NMEDIT=$lt_NMEDIT
22990
22991# Tool to manipulate fat objects and archives on Mac OS X.
22992LIPO=$lt_LIPO
22993
22994# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22995OTOOL=$lt_OTOOL
22996
22997# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22998OTOOL64=$lt_OTOOL64
22999
23000# Old archive suffix (normally "a").
23001libext=$libext
23002
23003# Shared library suffix (normally ".so").
23004shrext_cmds=$lt_shrext_cmds
23005
23006# The commands to extract the exported symbol list from a shared archive.
23007extract_expsyms_cmds=$lt_extract_expsyms_cmds
23008
23009# Variables whose values should be saved in libtool wrapper scripts and
23010# restored at link time.
23011variables_saved_for_relink=$lt_variables_saved_for_relink
23012
23013# Do we need the "lib" prefix for modules?
23014need_lib_prefix=$need_lib_prefix
23015
23016# Do we need a version for libraries?
23017need_version=$need_version
23018
23019# Library versioning type.
23020version_type=$version_type
23021
23022# Shared library runtime path variable.
23023runpath_var=$runpath_var
23024
23025# Shared library path variable.
23026shlibpath_var=$shlibpath_var
23027
23028# Is shlibpath searched before the hard-coded library search path?
23029shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23030
23031# Format of library name prefix.
23032libname_spec=$lt_libname_spec
23033
23034# List of archive names.  First name is the real one, the rest are links.
23035# The last name is the one that the linker finds with -lNAME
23036library_names_spec=$lt_library_names_spec
23037
23038# The coded name of the library, if different from the real name.
23039soname_spec=$lt_soname_spec
23040
23041# Permission mode override for installation of shared libraries.
23042install_override_mode=$lt_install_override_mode
23043
23044# Command to use after installation of a shared archive.
23045postinstall_cmds=$lt_postinstall_cmds
23046
23047# Command to use after uninstallation of a shared archive.
23048postuninstall_cmds=$lt_postuninstall_cmds
23049
23050# Commands used to finish a libtool library installation in a directory.
23051finish_cmds=$lt_finish_cmds
23052
23053# As "finish_cmds", except a single script fragment to be evaled but
23054# not shown.
23055finish_eval=$lt_finish_eval
23056
23057# Whether we should hardcode library paths into libraries.
23058hardcode_into_libs=$hardcode_into_libs
23059
23060# Compile-time system search path for libraries.
23061sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23062
23063# Detected run-time system search path for libraries.
23064sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23065
23066# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23067configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23068
23069# Whether dlopen is supported.
23070dlopen_support=$enable_dlopen
23071
23072# Whether dlopen of programs is supported.
23073dlopen_self=$enable_dlopen_self
23074
23075# Whether dlopen of statically linked programs is supported.
23076dlopen_self_static=$enable_dlopen_self_static
23077
23078# Commands to strip libraries.
23079old_striplib=$lt_old_striplib
23080striplib=$lt_striplib
23081
23082
23083# The linker used to build libraries.
23084LD=$lt_LD
23085
23086# How to create reloadable object files.
23087reload_flag=$lt_reload_flag
23088reload_cmds=$lt_reload_cmds
23089
23090# Commands used to build an old-style archive.
23091old_archive_cmds=$lt_old_archive_cmds
23092
23093# A language specific compiler.
23094CC=$lt_compiler
23095
23096# Is the compiler the GNU compiler?
23097with_gcc=$GCC
23098
23099# Compiler flag to turn off builtin functions.
23100no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23101
23102# Additional compiler flags for building library objects.
23103pic_flag=$lt_lt_prog_compiler_pic
23104
23105# How to pass a linker flag through the compiler.
23106wl=$lt_lt_prog_compiler_wl
23107
23108# Compiler flag to prevent dynamic linking.
23109link_static_flag=$lt_lt_prog_compiler_static
23110
23111# Does compiler simultaneously support -c and -o options?
23112compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23113
23114# Whether or not to add -lc for building shared libraries.
23115build_libtool_need_lc=$archive_cmds_need_lc
23116
23117# Whether or not to disallow shared libs when runtime libs are static.
23118allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23119
23120# Compiler flag to allow reflexive dlopens.
23121export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23122
23123# Compiler flag to generate shared objects directly from archives.
23124whole_archive_flag_spec=$lt_whole_archive_flag_spec
23125
23126# Whether the compiler copes with passing no objects directly.
23127compiler_needs_object=$lt_compiler_needs_object
23128
23129# Create an old-style archive from a shared archive.
23130old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23131
23132# Create a temporary old-style archive to link instead of a shared archive.
23133old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23134
23135# Commands used to build a shared archive.
23136archive_cmds=$lt_archive_cmds
23137archive_expsym_cmds=$lt_archive_expsym_cmds
23138
23139# Commands used to build a loadable module if different from building
23140# a shared archive.
23141module_cmds=$lt_module_cmds
23142module_expsym_cmds=$lt_module_expsym_cmds
23143
23144# Whether we are building with GNU ld or not.
23145with_gnu_ld=$lt_with_gnu_ld
23146
23147# Flag that allows shared libraries with undefined symbols to be built.
23148allow_undefined_flag=$lt_allow_undefined_flag
23149
23150# Flag that enforces no undefined symbols.
23151no_undefined_flag=$lt_no_undefined_flag
23152
23153# Flag to hardcode \$libdir into a binary during linking.
23154# This must work even if \$libdir does not exist
23155hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23156
23157# Whether we need a single "-rpath" flag with a separated argument.
23158hardcode_libdir_separator=$lt_hardcode_libdir_separator
23159
23160# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23161# DIR into the resulting binary.
23162hardcode_direct=$hardcode_direct
23163
23164# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23165# DIR into the resulting binary and the resulting library dependency is
23166# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23167# library is relocated.
23168hardcode_direct_absolute=$hardcode_direct_absolute
23169
23170# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23171# into the resulting binary.
23172hardcode_minus_L=$hardcode_minus_L
23173
23174# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23175# into the resulting binary.
23176hardcode_shlibpath_var=$hardcode_shlibpath_var
23177
23178# Set to "yes" if building a shared library automatically hardcodes DIR
23179# into the library and all subsequent libraries and executables linked
23180# against it.
23181hardcode_automatic=$hardcode_automatic
23182
23183# Set to yes if linker adds runtime paths of dependent libraries
23184# to runtime path list.
23185inherit_rpath=$inherit_rpath
23186
23187# Whether libtool must link a program against all its dependency libraries.
23188link_all_deplibs=$link_all_deplibs
23189
23190# Set to "yes" if exported symbols are required.
23191always_export_symbols=$always_export_symbols
23192
23193# The commands to list exported symbols.
23194export_symbols_cmds=$lt_export_symbols_cmds
23195
23196# Symbols that should not be listed in the preloaded symbols.
23197exclude_expsyms=$lt_exclude_expsyms
23198
23199# Symbols that must always be exported.
23200include_expsyms=$lt_include_expsyms
23201
23202# Commands necessary for linking programs (against libraries) with templates.
23203prelink_cmds=$lt_prelink_cmds
23204
23205# Commands necessary for finishing linking programs.
23206postlink_cmds=$lt_postlink_cmds
23207
23208# Specify filename containing input files.
23209file_list_spec=$lt_file_list_spec
23210
23211# How to hardcode a shared library path into an executable.
23212hardcode_action=$hardcode_action
23213
23214# ### END LIBTOOL CONFIG
23215
23216_LT_EOF
23217
23218    cat <<'_LT_EOF' >> "$cfgfile"
23219
23220# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23221
23222# func_munge_path_list VARIABLE PATH
23223# -----------------------------------
23224# VARIABLE is name of variable containing _space_ separated list of
23225# directories to be munged by the contents of PATH, which is string
23226# having a format:
23227# "DIR[:DIR]:"
23228#       string "DIR[ DIR]" will be prepended to VARIABLE
23229# ":DIR[:DIR]"
23230#       string "DIR[ DIR]" will be appended to VARIABLE
23231# "DIRP[:DIRP]::[DIRA:]DIRA"
23232#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23233#       "DIRA[ DIRA]" will be appended to VARIABLE
23234# "DIR[:DIR]"
23235#       VARIABLE will be replaced by "DIR[ DIR]"
23236func_munge_path_list ()
23237{
23238    case x$2 in
23239    x)
23240        ;;
23241    *:)
23242        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23243        ;;
23244    x:*)
23245        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23246        ;;
23247    *::*)
23248        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23249        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23250        ;;
23251    *)
23252        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23253        ;;
23254    esac
23255}
23256
23257
23258# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23259func_cc_basename ()
23260{
23261    for cc_temp in $*""; do
23262      case $cc_temp in
23263        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23264        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23265        \-*) ;;
23266        *) break;;
23267      esac
23268    done
23269    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23270}
23271
23272
23273# ### END FUNCTIONS SHARED WITH CONFIGURE
23274
23275_LT_EOF
23276
23277  case $host_os in
23278  aix3*)
23279    cat <<\_LT_EOF >> "$cfgfile"
23280# AIX sometimes has problems with the GCC collect2 program.  For some
23281# reason, if we set the COLLECT_NAMES environment variable, the problems
23282# vanish in a puff of smoke.
23283if test set != "${COLLECT_NAMES+set}"; then
23284  COLLECT_NAMES=
23285  export COLLECT_NAMES
23286fi
23287_LT_EOF
23288    ;;
23289  esac
23290
23291
23292
23293ltmain=$ac_aux_dir/ltmain.sh
23294
23295
23296  # We use sed instead of cat because bash on DJGPP gets confused if
23297  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23298  # text mode, it properly converts lines to CR/LF.  This bash problem
23299  # is reportedly fixed, but why not run on old versions too?
23300  $SED '$q' "$ltmain" >> "$cfgfile" \
23301     || (rm -f "$cfgfile"; exit 1)
23302
23303   mv -f "$cfgfile" "$ofile" ||
23304    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23305  chmod +x "$ofile"
23306
23307 ;;
23308
23309  esac
23310done # for ac_tag
23311
23312
23313as_fn_exit 0
23314_ACEOF
23315ac_clean_files=$ac_clean_files_save
23316
23317test $ac_write_fail = 0 ||
23318  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23319
23320
23321# configure is writing to config.log, and then calls config.status.
23322# config.status does its own redirection, appending to config.log.
23323# Unfortunately, on DOS this fails, as config.log is still kept open
23324# by configure, so config.status won't be able to write to it; its
23325# output is simply discarded.  So we exec the FD to /dev/null,
23326# effectively closing config.log, so it can be properly (re)opened and
23327# appended to by config.status.  When coming back to configure, we
23328# need to make the FD available again.
23329if test "$no_create" != yes; then
23330  ac_cs_success=:
23331  ac_config_status_args=
23332  test "$silent" = yes &&
23333    ac_config_status_args="$ac_config_status_args --quiet"
23334  exec 5>/dev/null
23335  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23336  exec 5>>config.log
23337  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23338  # would make configure fail if this is the last instruction.
23339  $ac_cs_success || as_fn_exit 1
23340fi
23341if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23343printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23344fi
23345
23346
23347echo ""
23348echo "        prefix:              $prefix"
23349echo "        exec_prefix:         $exec_prefix"
23350echo "        libdir:              $libdir"
23351echo "        includedir:          $includedir"
23352echo "        configdir:           $configdir"
23353
23354echo ""
23355echo "        CFLAGS:              $CFLAGS"
23356echo "        CXXFLAGS:            $CXXFLAGS"
23357echo "        Macros:              $DEFINES"
23358
23359echo ""
23360echo "        Run '${MAKE-make}' to build xf86-video-ati"
23361echo ""
23362
23363