1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xf86-video-nouveau 1.0.18.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/issues/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
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 case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1
188
189  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193    PATH=/empty FPATH=/empty; export PATH FPATH
194    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/issues/
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595test -n "$DJDIR" || exec 7<&0 </dev/null
596exec 6>&1
597
598# Name of the host.
599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600# so uname gets run too.
601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603#
604# Initializations.
605#
606ac_default_prefix=/usr/local
607ac_clean_files=
608ac_config_libobj_dir=.
609LIBOBJS=
610cross_compiling=no
611subdirs=
612MFLAGS=
613MAKEFLAGS=
614
615# Identity of this package.
616PACKAGE_NAME='xf86-video-nouveau'
617PACKAGE_TARNAME='xf86-video-nouveau'
618PACKAGE_VERSION='1.0.18'
619PACKAGE_STRING='xf86-video-nouveau 1.0.18'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/issues/'
621PACKAGE_URL=''
622
623ac_unique_file="Makefile.am"
624# Factoring default headers for most tests.
625ac_includes_default="\
626#include <stddef.h>
627#ifdef HAVE_STDIO_H
628# include <stdio.h>
629#endif
630#ifdef HAVE_STDLIB_H
631# include <stdlib.h>
632#endif
633#ifdef HAVE_STRING_H
634# include <string.h>
635#endif
636#ifdef HAVE_INTTYPES_H
637# include <inttypes.h>
638#endif
639#ifdef HAVE_STDINT_H
640# include <stdint.h>
641#endif
642#ifdef HAVE_STRINGS_H
643# include <strings.h>
644#endif
645#ifdef HAVE_SYS_TYPES_H
646# include <sys/types.h>
647#endif
648#ifdef HAVE_SYS_STAT_H
649# include <sys/stat.h>
650#endif
651#ifdef HAVE_UNISTD_H
652# include <unistd.h>
653#endif"
654
655ac_header_c_list=
656ac_subst_vars='am__EXEEXT_FALSE
657am__EXEEXT_TRUE
658LTLIBOBJS
659LIBOBJS
660DRIVER_NAME
661moduledir
662LIBUDEV_FALSE
663LIBUDEV_TRUE
664LIBUDEV_LIBS
665LIBUDEV_CFLAGS
666PCIACCESS_LIBS
667PCIACCESS_CFLAGS
668HAVE_XEXTPROTO_71_FALSE
669HAVE_XEXTPROTO_71_TRUE
670XEXT_LIBS
671XEXT_CFLAGS
672XORG_LIBS
673XORG_CFLAGS
674LIBDRM_NOUVEAU_LIBS
675LIBDRM_NOUVEAU_CFLAGS
676LIBDRM_LIBS
677LIBDRM_CFLAGS
678LT_SYS_LIBRARY_PATH
679OTOOL64
680OTOOL
681LIPO
682NMEDIT
683DSYMUTIL
684MANIFEST_TOOL
685RANLIB
686ac_ct_AR
687AR
688DLLTOOL
689OBJDUMP
690FILECMD
691LN_S
692NM
693ac_ct_DUMPBIN
694DUMPBIN
695LD
696FGREP
697EGREP
698GREP
699LIBTOOL
700MAN_SUBSTS
701XORG_MAN_PAGE
702ADMIN_MAN_DIR
703DRIVER_MAN_DIR
704MISC_MAN_DIR
705FILE_MAN_DIR
706LIB_MAN_DIR
707APP_MAN_DIR
708ADMIN_MAN_SUFFIX
709DRIVER_MAN_SUFFIX
710MISC_MAN_SUFFIX
711FILE_MAN_SUFFIX
712LIB_MAN_SUFFIX
713APP_MAN_SUFFIX
714SED
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723INSTALL_CMD
724PKG_CONFIG_LIBDIR
725PKG_CONFIG_PATH
726PKG_CONFIG
727CHANGELOG_CMD
728STRICT_CFLAGS
729CWARNFLAGS
730BASE_CFLAGS
731am__fastdepCC_FALSE
732am__fastdepCC_TRUE
733CCDEPMODE
734am__nodep
735AMDEPBACKSLASH
736AMDEP_FALSE
737AMDEP_TRUE
738am__include
739DEPDIR
740OBJEXT
741EXEEXT
742ac_ct_CC
743CPPFLAGS
744LDFLAGS
745CFLAGS
746CC
747AM_BACKSLASH
748AM_DEFAULT_VERBOSITY
749AM_DEFAULT_V
750AM_V
751CSCOPE
752ETAGS
753CTAGS
754am__untar
755am__tar
756AMTAR
757am__leading_dot
758SET_MAKE
759AWK
760mkdir_p
761MKDIR_P
762INSTALL_STRIP_PROGRAM
763STRIP
764install_sh
765MAKEINFO
766AUTOHEADER
767AUTOMAKE
768AUTOCONF
769ACLOCAL
770VERSION
771PACKAGE
772CYGPATH_W
773am__isrc
774INSTALL_DATA
775INSTALL_SCRIPT
776INSTALL_PROGRAM
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796runstatedir
797localstatedir
798sharedstatedir
799sysconfdir
800datadir
801datarootdir
802libexecdir
803sbindir
804bindir
805program_transform_name
806prefix
807exec_prefix
808PACKAGE_URL
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
815SHELL
816am__quote'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
820enable_silent_rules
821enable_dependency_tracking
822enable_selective_werror
823enable_strict_compilation
824enable_static
825enable_shared
826with_pic
827enable_fast_install
828with_aix_soname
829with_gnu_ld
830with_sysroot
831enable_libtool_lock
832with_xorg_module_dir
833'
834      ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS
842PKG_CONFIG
843PKG_CONFIG_PATH
844PKG_CONFIG_LIBDIR
845LT_SYS_LIBRARY_PATH
846LIBDRM_CFLAGS
847LIBDRM_LIBS
848LIBDRM_NOUVEAU_CFLAGS
849LIBDRM_NOUVEAU_LIBS
850XORG_CFLAGS
851XORG_LIBS
852XEXT_CFLAGS
853XEXT_LIBS
854PCIACCESS_CFLAGS
855PCIACCESS_LIBS
856LIBUDEV_CFLAGS
857LIBUDEV_LIBS'
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896runstatedir='${localstatedir}/run'
897includedir='${prefix}/include'
898oldincludedir='/usr/include'
899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900infodir='${datarootdir}/info'
901htmldir='${docdir}'
902dvidir='${docdir}'
903pdfdir='${docdir}'
904psdir='${docdir}'
905libdir='${exec_prefix}/lib'
906localedir='${datarootdir}/locale'
907mandir='${datarootdir}/man'
908
909ac_prev=
910ac_dashdash=
911for ac_option
912do
913  # If the previous option needs an argument, assign it.
914  if test -n "$ac_prev"; then
915    eval $ac_prev=\$ac_option
916    ac_prev=
917    continue
918  fi
919
920  case $ac_option in
921  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922  *=)   ac_optarg= ;;
923  *)    ac_optarg=yes ;;
924  esac
925
926  case $ac_dashdash$ac_option in
927  --)
928    ac_dashdash=yes ;;
929
930  -bindir | --bindir | --bindi | --bind | --bin | --bi)
931    ac_prev=bindir ;;
932  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933    bindir=$ac_optarg ;;
934
935  -build | --build | --buil | --bui | --bu)
936    ac_prev=build_alias ;;
937  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938    build_alias=$ac_optarg ;;
939
940  -cache-file | --cache-file | --cache-fil | --cache-fi \
941  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942    ac_prev=cache_file ;;
943  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945    cache_file=$ac_optarg ;;
946
947  --config-cache | -C)
948    cache_file=config.cache ;;
949
950  -datadir | --datadir | --datadi | --datad)
951    ac_prev=datadir ;;
952  -datadir=* | --datadir=* | --datadi=* | --datad=*)
953    datadir=$ac_optarg ;;
954
955  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956  | --dataroo | --dataro | --datar)
957    ac_prev=datarootdir ;;
958  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960    datarootdir=$ac_optarg ;;
961
962  -disable-* | --disable-*)
963    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964    # Reject names that are not valid shell variable names.
965    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966      as_fn_error $? "invalid feature name: '$ac_useropt'"
967    ac_useropt_orig=$ac_useropt
968    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
969    case $ac_user_opts in
970      *"
971"enable_$ac_useropt"
972"*) ;;
973      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974	 ac_unrecognized_sep=', ';;
975    esac
976    eval enable_$ac_useropt=no ;;
977
978  -docdir | --docdir | --docdi | --doc | --do)
979    ac_prev=docdir ;;
980  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981    docdir=$ac_optarg ;;
982
983  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984    ac_prev=dvidir ;;
985  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986    dvidir=$ac_optarg ;;
987
988  -enable-* | --enable-*)
989    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990    # Reject names that are not valid shell variable names.
991    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992      as_fn_error $? "invalid feature name: '$ac_useropt'"
993    ac_useropt_orig=$ac_useropt
994    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
995    case $ac_user_opts in
996      *"
997"enable_$ac_useropt"
998"*) ;;
999      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000	 ac_unrecognized_sep=', ';;
1001    esac
1002    eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006  | --exec | --exe | --ex)
1007    ac_prev=exec_prefix ;;
1008  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010  | --exec=* | --exe=* | --ex=*)
1011    exec_prefix=$ac_optarg ;;
1012
1013  -gas | --gas | --ga | --g)
1014    # Obsolete; use --with-gas.
1015    with_gas=yes ;;
1016
1017  -help | --help | --hel | --he | -h)
1018    ac_init_help=long ;;
1019  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020    ac_init_help=recursive ;;
1021  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022    ac_init_help=short ;;
1023
1024  -host | --host | --hos | --ho)
1025    ac_prev=host_alias ;;
1026  -host=* | --host=* | --hos=* | --ho=*)
1027    host_alias=$ac_optarg ;;
1028
1029  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030    ac_prev=htmldir ;;
1031  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032  | --ht=*)
1033    htmldir=$ac_optarg ;;
1034
1035  -includedir | --includedir | --includedi | --included | --include \
1036  | --includ | --inclu | --incl | --inc)
1037    ac_prev=includedir ;;
1038  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039  | --includ=* | --inclu=* | --incl=* | --inc=*)
1040    includedir=$ac_optarg ;;
1041
1042  -infodir | --infodir | --infodi | --infod | --info | --inf)
1043    ac_prev=infodir ;;
1044  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045    infodir=$ac_optarg ;;
1046
1047  -libdir | --libdir | --libdi | --libd)
1048    ac_prev=libdir ;;
1049  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050    libdir=$ac_optarg ;;
1051
1052  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053  | --libexe | --libex | --libe)
1054    ac_prev=libexecdir ;;
1055  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056  | --libexe=* | --libex=* | --libe=*)
1057    libexecdir=$ac_optarg ;;
1058
1059  -localedir | --localedir | --localedi | --localed | --locale)
1060    ac_prev=localedir ;;
1061  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062    localedir=$ac_optarg ;;
1063
1064  -localstatedir | --localstatedir | --localstatedi | --localstated \
1065  | --localstate | --localstat | --localsta | --localst | --locals)
1066    ac_prev=localstatedir ;;
1067  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069    localstatedir=$ac_optarg ;;
1070
1071  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072    ac_prev=mandir ;;
1073  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074    mandir=$ac_optarg ;;
1075
1076  -nfp | --nfp | --nf)
1077    # Obsolete; use --without-fp.
1078    with_fp=no ;;
1079
1080  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081  | --no-cr | --no-c | -n)
1082    no_create=yes ;;
1083
1084  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086    no_recursion=yes ;;
1087
1088  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090  | --oldin | --oldi | --old | --ol | --o)
1091    ac_prev=oldincludedir ;;
1092  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095    oldincludedir=$ac_optarg ;;
1096
1097  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098    ac_prev=prefix ;;
1099  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100    prefix=$ac_optarg ;;
1101
1102  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103  | --program-pre | --program-pr | --program-p)
1104    ac_prev=program_prefix ;;
1105  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107    program_prefix=$ac_optarg ;;
1108
1109  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110  | --program-suf | --program-su | --program-s)
1111    ac_prev=program_suffix ;;
1112  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114    program_suffix=$ac_optarg ;;
1115
1116  -program-transform-name | --program-transform-name \
1117  | --program-transform-nam | --program-transform-na \
1118  | --program-transform-n | --program-transform- \
1119  | --program-transform | --program-transfor \
1120  | --program-transfo | --program-transf \
1121  | --program-trans | --program-tran \
1122  | --progr-tra | --program-tr | --program-t)
1123    ac_prev=program_transform_name ;;
1124  -program-transform-name=* | --program-transform-name=* \
1125  | --program-transform-nam=* | --program-transform-na=* \
1126  | --program-transform-n=* | --program-transform-=* \
1127  | --program-transform=* | --program-transfor=* \
1128  | --program-transfo=* | --program-transf=* \
1129  | --program-trans=* | --program-tran=* \
1130  | --progr-tra=* | --program-tr=* | --program-t=*)
1131    program_transform_name=$ac_optarg ;;
1132
1133  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134    ac_prev=pdfdir ;;
1135  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136    pdfdir=$ac_optarg ;;
1137
1138  -psdir | --psdir | --psdi | --psd | --ps)
1139    ac_prev=psdir ;;
1140  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141    psdir=$ac_optarg ;;
1142
1143  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144  | -silent | --silent | --silen | --sile | --sil)
1145    silent=yes ;;
1146
1147  -runstatedir | --runstatedir | --runstatedi | --runstated \
1148  | --runstate | --runstat | --runsta | --runst | --runs \
1149  | --run | --ru | --r)
1150    ac_prev=runstatedir ;;
1151  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1152  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1153  | --run=* | --ru=* | --r=*)
1154    runstatedir=$ac_optarg ;;
1155
1156  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157    ac_prev=sbindir ;;
1158  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159  | --sbi=* | --sb=*)
1160    sbindir=$ac_optarg ;;
1161
1162  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164  | --sharedst | --shareds | --shared | --share | --shar \
1165  | --sha | --sh)
1166    ac_prev=sharedstatedir ;;
1167  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170  | --sha=* | --sh=*)
1171    sharedstatedir=$ac_optarg ;;
1172
1173  -site | --site | --sit)
1174    ac_prev=site ;;
1175  -site=* | --site=* | --sit=*)
1176    site=$ac_optarg ;;
1177
1178  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179    ac_prev=srcdir ;;
1180  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181    srcdir=$ac_optarg ;;
1182
1183  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184  | --syscon | --sysco | --sysc | --sys | --sy)
1185    ac_prev=sysconfdir ;;
1186  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188    sysconfdir=$ac_optarg ;;
1189
1190  -target | --target | --targe | --targ | --tar | --ta | --t)
1191    ac_prev=target_alias ;;
1192  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193    target_alias=$ac_optarg ;;
1194
1195  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196    verbose=yes ;;
1197
1198  -version | --version | --versio | --versi | --vers | -V)
1199    ac_init_version=: ;;
1200
1201  -with-* | --with-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203    # Reject names that are not valid shell variable names.
1204    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205      as_fn_error $? "invalid package name: '$ac_useropt'"
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"with_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=\$ac_optarg ;;
1216
1217  -without-* | --without-*)
1218    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219    # Reject names that are not valid shell variable names.
1220    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221      as_fn_error $? "invalid package name: '$ac_useropt'"
1222    ac_useropt_orig=$ac_useropt
1223    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1224    case $ac_user_opts in
1225      *"
1226"with_$ac_useropt"
1227"*) ;;
1228      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229	 ac_unrecognized_sep=', ';;
1230    esac
1231    eval with_$ac_useropt=no ;;
1232
1233  --x)
1234    # Obsolete; use --with-x.
1235    with_x=yes ;;
1236
1237  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238  | --x-incl | --x-inc | --x-in | --x-i)
1239    ac_prev=x_includes ;;
1240  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242    x_includes=$ac_optarg ;;
1243
1244  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246    ac_prev=x_libraries ;;
1247  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249    x_libraries=$ac_optarg ;;
1250
1251  -*) as_fn_error $? "unrecognized option: '$ac_option'
1252Try '$0 --help' for more information"
1253    ;;
1254
1255  *=*)
1256    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257    # Reject names that are not valid shell variable names.
1258    case $ac_envvar in #(
1259      '' | [0-9]* | *[!_$as_cr_alnum]* )
1260      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1261    esac
1262    eval $ac_envvar=\$ac_optarg
1263    export $ac_envvar ;;
1264
1265  *)
1266    # FIXME: should be removed in autoconf 3.0.
1267    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1268    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1270    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271    ;;
1272
1273  esac
1274done
1275
1276if test -n "$ac_prev"; then
1277  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278  as_fn_error $? "missing argument to $ac_option"
1279fi
1280
1281if test -n "$ac_unrecognized_opts"; then
1282  case $enable_option_checking in
1283    no) ;;
1284    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1285    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286  esac
1287fi
1288
1289# Check all directory arguments for consistency.
1290for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291		datadir sysconfdir sharedstatedir localstatedir includedir \
1292		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293		libdir localedir mandir runstatedir
1294do
1295  eval ac_val=\$$ac_var
1296  # Remove trailing slashes.
1297  case $ac_val in
1298    */ )
1299      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300      eval $ac_var=\$ac_val;;
1301  esac
1302  # Be sure to have absolute directory names.
1303  case $ac_val in
1304    [\\/$]* | ?:[\\/]* )  continue;;
1305    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306  esac
1307  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1308done
1309
1310# There might be people who depend on the old broken behavior: '$host'
1311# used to hold the argument of --host etc.
1312# FIXME: To remove some day.
1313build=$build_alias
1314host=$host_alias
1315target=$target_alias
1316
1317# FIXME: To remove some day.
1318if test "x$host_alias" != x; then
1319  if test "x$build_alias" = x; then
1320    cross_compiling=maybe
1321  elif test "x$build_alias" != "x$host_alias"; then
1322    cross_compiling=yes
1323  fi
1324fi
1325
1326ac_tool_prefix=
1327test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329test "$silent" = yes && exec 6>/dev/null
1330
1331
1332ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333ac_ls_di=`ls -di .` &&
1334ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335  as_fn_error $? "working directory cannot be determined"
1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337  as_fn_error $? "pwd does not report name of working directory"
1338
1339
1340# Find the source files, if location was not specified.
1341if test -z "$srcdir"; then
1342  ac_srcdir_defaulted=yes
1343  # Try the directory containing this script, then the parent directory.
1344  ac_confdir=`$as_dirname -- "$as_myself" ||
1345$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346	 X"$as_myself" : 'X\(//\)[^/]' \| \
1347	 X"$as_myself" : 'X\(//\)$' \| \
1348	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349printf "%s\n" X"$as_myself" |
1350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\/\)[^/].*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  /^X\(\/\/\)$/{
1359	    s//\1/
1360	    q
1361	  }
1362	  /^X\(\/\).*/{
1363	    s//\1/
1364	    q
1365	  }
1366	  s/.*/./; q'`
1367  srcdir=$ac_confdir
1368  if test ! -r "$srcdir/$ac_unique_file"; then
1369    srcdir=..
1370  fi
1371else
1372  ac_srcdir_defaulted=no
1373fi
1374if test ! -r "$srcdir/$ac_unique_file"; then
1375  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377fi
1378ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1379ac_abs_confdir=`(
1380	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381	pwd)`
1382# When building in place, set srcdir=.
1383if test "$ac_abs_confdir" = "$ac_pwd"; then
1384  srcdir=.
1385fi
1386# Remove unnecessary trailing slashes from srcdir.
1387# Double slashes in file names in object file debugging info
1388# mess up M-x gdb in Emacs.
1389case $srcdir in
1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391esac
1392for ac_var in $ac_precious_vars; do
1393  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_env_${ac_var}_value=\$${ac_var}
1395  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397done
1398
1399#
1400# Report the --help message.
1401#
1402if test "$ac_init_help" = "long"; then
1403  # Omit some internal or obsolete options to make the list less imposing.
1404  # This message is too long to be a string in the A/UX 3.1 sh.
1405  cat <<_ACEOF
1406'configure' configures xf86-video-nouveau 1.0.18 to adapt to many kinds of systems.
1407
1408Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411VAR=VALUE.  See below for descriptions of some of the useful variables.
1412
1413Defaults for the options are specified in brackets.
1414
1415Configuration:
1416  -h, --help              display this help and exit
1417      --help=short        display options specific to this package
1418      --help=recursive    display the short help of all the included packages
1419  -V, --version           display version information and exit
1420  -q, --quiet, --silent   do not print 'checking ...' messages
1421      --cache-file=FILE   cache test results in FILE [disabled]
1422  -C, --config-cache      alias for '--cache-file=config.cache'
1423  -n, --no-create         do not create output files
1424      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1425
1426Installation directories:
1427  --prefix=PREFIX         install architecture-independent files in PREFIX
1428                          [$ac_default_prefix]
1429  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1430                          [PREFIX]
1431
1432By default, 'make install' will install all the files in
1433'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1434an installation prefix other than '$ac_default_prefix' using '--prefix',
1435for instance '--prefix=\$HOME'.
1436
1437For better control, use the options below.
1438
1439Fine tuning of the installation directories:
1440  --bindir=DIR            user executables [EPREFIX/bin]
1441  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1442  --libexecdir=DIR        program executables [EPREFIX/libexec]
1443  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1444  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1445  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1446  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1447  --libdir=DIR            object code libraries [EPREFIX/lib]
1448  --includedir=DIR        C header files [PREFIX/include]
1449  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1450  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1451  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1452  --infodir=DIR           info documentation [DATAROOTDIR/info]
1453  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1454  --mandir=DIR            man documentation [DATAROOTDIR/man]
1455  --docdir=DIR            documentation root
1456                          [DATAROOTDIR/doc/xf86-video-nouveau]
1457  --htmldir=DIR           html documentation [DOCDIR]
1458  --dvidir=DIR            dvi documentation [DOCDIR]
1459  --pdfdir=DIR            pdf documentation [DOCDIR]
1460  --psdir=DIR             ps documentation [DOCDIR]
1461_ACEOF
1462
1463  cat <<\_ACEOF
1464
1465Program names:
1466  --program-prefix=PREFIX            prepend PREFIX to installed program names
1467  --program-suffix=SUFFIX            append SUFFIX to installed program names
1468  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470System types:
1471  --build=BUILD     configure for building on BUILD [guessed]
1472  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473_ACEOF
1474fi
1475
1476if test -n "$ac_init_help"; then
1477  case $ac_init_help in
1478     short | recursive ) echo "Configuration of xf86-video-nouveau 1.0.18:";;
1479   esac
1480  cat <<\_ACEOF
1481
1482Optional Features:
1483  --disable-option-checking  ignore unrecognized --enable/--with options
1484  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486  --enable-silent-rules   less verbose build output (undo: "make V=1")
1487  --disable-silent-rules  verbose build output (undo: "make V=0")
1488  --enable-dependency-tracking
1489                          do not reject slow dependency extractors
1490  --disable-dependency-tracking
1491                          speeds up one-time build
1492  --disable-selective-werror
1493                          Turn off selective compiler errors. (default:
1494                          enabled)
1495  --enable-strict-compilation
1496                          Enable all warnings from compiler and make them
1497                          errors (default: disabled)
1498  --enable-static[=PKGS]  build static libraries [default=no]
1499  --enable-shared[=PKGS]  build shared libraries [default=yes]
1500  --enable-fast-install[=PKGS]
1501                          optimize for fast installation [default=yes]
1502  --disable-libtool-lock  avoid locking (might break parallel builds)
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-aix-soname=aix|svr4|both
1510                          shared library versioning (aka "SONAME") variant to
1511                          provide on AIX, [default=aix].
1512  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1513  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1514                          compiler's sysroot if not specified).
1515  --with-xorg-module-dir=DIR
1516                          Default xorg module directory
1517                          [[default=$libdir/xorg/modules]]
1518
1519Some influential environment variables:
1520  CC          C compiler command
1521  CFLAGS      C compiler flags
1522  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523              nonstandard directory <lib dir>
1524  LIBS        libraries to pass to the linker, e.g. -l<library>
1525  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526              you have headers in a nonstandard directory <include dir>
1527  PKG_CONFIG  path to pkg-config utility
1528  PKG_CONFIG_PATH
1529              directories to add to pkg-config's search path
1530  PKG_CONFIG_LIBDIR
1531              path overriding pkg-config's built-in search path
1532  LT_SYS_LIBRARY_PATH
1533              User-defined run-time library search path.
1534  LIBDRM_CFLAGS
1535              C compiler flags for LIBDRM, overriding pkg-config
1536  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1537  LIBDRM_NOUVEAU_CFLAGS
1538              C compiler flags for LIBDRM_NOUVEAU, overriding pkg-config
1539  LIBDRM_NOUVEAU_LIBS
1540              linker flags for LIBDRM_NOUVEAU, overriding pkg-config
1541  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1542  XORG_LIBS   linker flags for XORG, overriding pkg-config
1543  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1544  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1545  PCIACCESS_CFLAGS
1546              C compiler flags for PCIACCESS, overriding pkg-config
1547  PCIACCESS_LIBS
1548              linker flags for PCIACCESS, overriding pkg-config
1549  LIBUDEV_CFLAGS
1550              C compiler flags for LIBUDEV, overriding pkg-config
1551  LIBUDEV_LIBS
1552              linker flags for LIBUDEV, overriding pkg-config
1553
1554Use these variables to override the choices made by 'configure' or to help
1555it to find libraries and programs with nonstandard names/locations.
1556
1557Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/issues/>.
1558_ACEOF
1559ac_status=$?
1560fi
1561
1562if test "$ac_init_help" = "recursive"; then
1563  # If there are subdirs, report their specific --help.
1564  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1565    test -d "$ac_dir" ||
1566      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567      continue
1568    ac_builddir=.
1569
1570case "$ac_dir" in
1571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572*)
1573  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1574  # A ".." for each directory in $ac_dir_suffix.
1575  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576  case $ac_top_builddir_sub in
1577  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579  esac ;;
1580esac
1581ac_abs_top_builddir=$ac_pwd
1582ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583# for backward compatibility:
1584ac_top_builddir=$ac_top_build_prefix
1585
1586case $srcdir in
1587  .)  # We are building in place.
1588    ac_srcdir=.
1589    ac_top_srcdir=$ac_top_builddir_sub
1590    ac_abs_top_srcdir=$ac_pwd ;;
1591  [\\/]* | ?:[\\/]* )  # Absolute name.
1592    ac_srcdir=$srcdir$ac_dir_suffix;
1593    ac_top_srcdir=$srcdir
1594    ac_abs_top_srcdir=$srcdir ;;
1595  *) # Relative name.
1596    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597    ac_top_srcdir=$ac_top_build_prefix$srcdir
1598    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599esac
1600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601
1602    cd "$ac_dir" || { ac_status=$?; continue; }
1603    # Check for configure.gnu first; this name is used for a wrapper for
1604    # Metaconfig's "Configure" on case-insensitive file systems.
1605    if test -f "$ac_srcdir/configure.gnu"; then
1606      echo &&
1607      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608    elif test -f "$ac_srcdir/configure"; then
1609      echo &&
1610      $SHELL "$ac_srcdir/configure" --help=recursive
1611    else
1612      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613    fi || ac_status=$?
1614    cd "$ac_pwd" || { ac_status=$?; break; }
1615  done
1616fi
1617
1618test -n "$ac_init_help" && exit $ac_status
1619if $ac_init_version; then
1620  cat <<\_ACEOF
1621xf86-video-nouveau configure 1.0.18
1622generated by GNU Autoconf 2.72
1623
1624Copyright (C) 2023 Free Software Foundation, Inc.
1625This configure script is free software; the Free Software Foundation
1626gives unlimited permission to copy, distribute and modify it.
1627_ACEOF
1628  exit
1629fi
1630
1631## ------------------------ ##
1632## Autoconf initialization. ##
1633## ------------------------ ##
1634
1635# ac_fn_c_try_compile LINENO
1636# --------------------------
1637# Try to compile conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_compile ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  rm -f conftest.$ac_objext conftest.beam
1642  if { { ac_try="$ac_compile"
1643case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648printf "%s\n" "$ac_try_echo"; } >&5
1649  (eval "$ac_compile") 2>conftest.err
1650  ac_status=$?
1651  if test -s conftest.err; then
1652    grep -v '^ *+' conftest.err >conftest.er1
1653    cat conftest.er1 >&5
1654    mv -f conftest.er1 conftest.err
1655  fi
1656  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; } && {
1658	 test -z "$ac_c_werror_flag" ||
1659	 test ! -s conftest.err
1660       } && test -s conftest.$ac_objext
1661then :
1662  ac_retval=0
1663else case e in #(
1664  e) printf "%s\n" "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667	ac_retval=1 ;;
1668esac
1669fi
1670  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671  as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_compile
1674
1675# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1676# ------------------------------------------------------------------
1677# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1678# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1679ac_fn_check_decl ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  as_decl_name=`echo $2|sed 's/ *(.*//'`
1683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1684printf %s "checking whether $as_decl_name is declared... " >&6; }
1685if eval test \${$3+y}
1686then :
1687  printf %s "(cached) " >&6
1688else case e in #(
1689  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1690  eval ac_save_FLAGS=\$$6
1691  as_fn_append $6 " $5"
1692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h.  */
1694$4
1695int
1696main (void)
1697{
1698#ifndef $as_decl_name
1699#ifdef __cplusplus
1700  (void) $as_decl_use;
1701#else
1702  (void) $as_decl_name;
1703#endif
1704#endif
1705
1706  ;
1707  return 0;
1708}
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"
1711then :
1712  eval "$3=yes"
1713else case e in #(
1714  e) eval "$3=no" ;;
1715esac
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1718  eval $6=\$ac_save_FLAGS
1719 ;;
1720esac
1721fi
1722eval ac_res=\$$3
1723	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724printf "%s\n" "$ac_res" >&6; }
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727} # ac_fn_check_decl
1728
1729# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730# -------------------------------------------------------
1731# Tests whether HEADER exists and can be compiled using the include files in
1732# INCLUDES, setting the cache variable VAR accordingly.
1733ac_fn_c_check_header_compile ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737printf %s "checking for $2... " >&6; }
1738if eval test \${$3+y}
1739then :
1740  printf %s "(cached) " >&6
1741else case e in #(
1742  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743/* end confdefs.h.  */
1744$4
1745#include <$2>
1746_ACEOF
1747if ac_fn_c_try_compile "$LINENO"
1748then :
1749  eval "$3=yes"
1750else case e in #(
1751  e) eval "$3=no" ;;
1752esac
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1755esac
1756fi
1757eval ac_res=\$$3
1758	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759printf "%s\n" "$ac_res" >&6; }
1760  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761
1762} # ac_fn_c_check_header_compile
1763
1764# ac_fn_c_try_link LINENO
1765# -----------------------
1766# Try to link conftest.$ac_ext, and return whether this succeeded.
1767ac_fn_c_try_link ()
1768{
1769  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1771  if { { ac_try="$ac_link"
1772case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777printf "%s\n" "$ac_try_echo"; } >&5
1778  (eval "$ac_link") 2>conftest.err
1779  ac_status=$?
1780  if test -s conftest.err; then
1781    grep -v '^ *+' conftest.err >conftest.er1
1782    cat conftest.er1 >&5
1783    mv -f conftest.er1 conftest.err
1784  fi
1785  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786  test $ac_status = 0; } && {
1787	 test -z "$ac_c_werror_flag" ||
1788	 test ! -s conftest.err
1789       } && test -s conftest$ac_exeext && {
1790	 test "$cross_compiling" = yes ||
1791	 test -x conftest$ac_exeext
1792       }
1793then :
1794  ac_retval=0
1795else case e in #(
1796  e) printf "%s\n" "$as_me: failed program was:" >&5
1797sed 's/^/| /' conftest.$ac_ext >&5
1798
1799	ac_retval=1 ;;
1800esac
1801fi
1802  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804  # interfere with the next link command; also delete a directory that is
1805  # left behind by Apple's compiler.  We do this before executing the actions.
1806  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_link
1811
1812# ac_fn_c_check_func LINENO FUNC VAR
1813# ----------------------------------
1814# Tests whether FUNC exists, setting the cache variable VAR accordingly
1815ac_fn_c_check_func ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819printf %s "checking for $2... " >&6; }
1820if eval test \${$3+y}
1821then :
1822  printf %s "(cached) " >&6
1823else case e in #(
1824  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831   which can conflict with char $2 (void); below.  */
1832
1833#include <limits.h>
1834#undef $2
1835
1836/* Override any GCC internal prototype to avoid an error.
1837   Use char because int might match the return type of a GCC
1838   builtin and then its argument prototype would still apply.  */
1839#ifdef __cplusplus
1840extern "C"
1841#endif
1842char $2 (void);
1843/* The GNU C library defines this for functions which it implements
1844    to always fail with ENOSYS.  Some functions are actually named
1845    something starting with __ and the normal name is an alias.  */
1846#if defined __stub_$2 || defined __stub___$2
1847choke me
1848#endif
1849
1850int
1851main (void)
1852{
1853return $2 ();
1854  ;
1855  return 0;
1856}
1857_ACEOF
1858if ac_fn_c_try_link "$LINENO"
1859then :
1860  eval "$3=yes"
1861else case e in #(
1862  e) eval "$3=no" ;;
1863esac
1864fi
1865rm -f core conftest.err conftest.$ac_objext conftest.beam \
1866    conftest$ac_exeext conftest.$ac_ext ;;
1867esac
1868fi
1869eval ac_res=\$$3
1870	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871printf "%s\n" "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_func
1875ac_configure_args_raw=
1876for ac_arg
1877do
1878  case $ac_arg in
1879  *\'*)
1880    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881  esac
1882  as_fn_append ac_configure_args_raw " '$ac_arg'"
1883done
1884
1885case $ac_configure_args_raw in
1886  *$as_nl*)
1887    ac_safe_unquote= ;;
1888  *)
1889    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1890    ac_unsafe_a="$ac_unsafe_z#~"
1891    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1892    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1893esac
1894
1895cat >config.log <<_ACEOF
1896This file contains any messages produced by compilers while
1897running configure, to aid debugging if configure makes a mistake.
1898
1899It was created by xf86-video-nouveau $as_me 1.0.18, which was
1900generated by GNU Autoconf 2.72.  Invocation command line was
1901
1902  $ $0$ac_configure_args_raw
1903
1904_ACEOF
1905exec 5>>config.log
1906{
1907cat <<_ASUNAME
1908## --------- ##
1909## Platform. ##
1910## --------- ##
1911
1912hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1913uname -m = `(uname -m) 2>/dev/null || echo unknown`
1914uname -r = `(uname -r) 2>/dev/null || echo unknown`
1915uname -s = `(uname -s) 2>/dev/null || echo unknown`
1916uname -v = `(uname -v) 2>/dev/null || echo unknown`
1917
1918/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1919/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1920
1921/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1922/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1923/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1924/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1925/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1926/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1927/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1928
1929_ASUNAME
1930
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934  IFS=$as_save_IFS
1935  case $as_dir in #(((
1936    '') as_dir=./ ;;
1937    */) ;;
1938    *) as_dir=$as_dir/ ;;
1939  esac
1940    printf "%s\n" "PATH: $as_dir"
1941  done
1942IFS=$as_save_IFS
1943
1944} >&5
1945
1946cat >&5 <<_ACEOF
1947
1948
1949## ----------- ##
1950## Core tests. ##
1951## ----------- ##
1952
1953_ACEOF
1954
1955
1956# Keep a trace of the command line.
1957# Strip out --no-create and --no-recursion so they do not pile up.
1958# Strip out --silent because we don't want to record it for future runs.
1959# Also quote any args containing shell meta-characters.
1960# Make two passes to allow for proper duplicate-argument suppression.
1961ac_configure_args=
1962ac_configure_args0=
1963ac_configure_args1=
1964ac_must_keep_next=false
1965for ac_pass in 1 2
1966do
1967  for ac_arg
1968  do
1969    case $ac_arg in
1970    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972    | -silent | --silent | --silen | --sile | --sil)
1973      continue ;;
1974    *\'*)
1975      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976    esac
1977    case $ac_pass in
1978    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979    2)
1980      as_fn_append ac_configure_args1 " '$ac_arg'"
1981      if test $ac_must_keep_next = true; then
1982	ac_must_keep_next=false # Got value, back to normal.
1983      else
1984	case $ac_arg in
1985	  *=* | --config-cache | -C | -disable-* | --disable-* \
1986	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988	  | -with-* | --with-* | -without-* | --without-* | --x)
1989	    case "$ac_configure_args0 " in
1990	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991	    esac
1992	    ;;
1993	  -* ) ac_must_keep_next=true ;;
1994	esac
1995      fi
1996      as_fn_append ac_configure_args " '$ac_arg'"
1997      ;;
1998    esac
1999  done
2000done
2001{ ac_configure_args0=; unset ac_configure_args0;}
2002{ ac_configure_args1=; unset ac_configure_args1;}
2003
2004# When interrupted or exit'd, cleanup temporary files, and complete
2005# config.log.  We remove comments because anyway the quotes in there
2006# would cause problems or look ugly.
2007# WARNING: Use '\'' to represent an apostrophe within the trap.
2008# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009trap 'exit_status=$?
2010  # Sanitize IFS.
2011  IFS=" ""	$as_nl"
2012  # Save into config.log some information that might help in debugging.
2013  {
2014    echo
2015
2016    printf "%s\n" "## ---------------- ##
2017## Cache variables. ##
2018## ---------------- ##"
2019    echo
2020    # The following way of writing the cache mishandles newlines in values,
2021(
2022  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023    eval ac_val=\$$ac_var
2024    case $ac_val in #(
2025    *${as_nl}*)
2026      case $ac_var in #(
2027      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029      esac
2030      case $ac_var in #(
2031      _ | IFS | as_nl) ;; #(
2032      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033      *) { eval $ac_var=; unset $ac_var;} ;;
2034      esac ;;
2035    esac
2036  done
2037  (set) 2>&1 |
2038    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039    *${as_nl}ac_space=\ *)
2040      sed -n \
2041	"s/'\''/'\''\\\\'\'''\''/g;
2042	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043      ;; #(
2044    *)
2045      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046      ;;
2047    esac |
2048    sort
2049)
2050    echo
2051
2052    printf "%s\n" "## ----------------- ##
2053## Output variables. ##
2054## ----------------- ##"
2055    echo
2056    for ac_var in $ac_subst_vars
2057    do
2058      eval ac_val=\$$ac_var
2059      case $ac_val in
2060      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061      esac
2062      printf "%s\n" "$ac_var='\''$ac_val'\''"
2063    done | sort
2064    echo
2065
2066    if test -n "$ac_subst_files"; then
2067      printf "%s\n" "## ------------------- ##
2068## File substitutions. ##
2069## ------------------- ##"
2070      echo
2071      for ac_var in $ac_subst_files
2072      do
2073	eval ac_val=\$$ac_var
2074	case $ac_val in
2075	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076	esac
2077	printf "%s\n" "$ac_var='\''$ac_val'\''"
2078      done | sort
2079      echo
2080    fi
2081
2082    if test -s confdefs.h; then
2083      printf "%s\n" "## ----------- ##
2084## confdefs.h. ##
2085## ----------- ##"
2086      echo
2087      cat confdefs.h
2088      echo
2089    fi
2090    test "$ac_signal" != 0 &&
2091      printf "%s\n" "$as_me: caught signal $ac_signal"
2092    printf "%s\n" "$as_me: exit $exit_status"
2093  } >&5
2094  rm -f core *.core core.conftest.* &&
2095    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096    exit $exit_status
2097' 0
2098for ac_signal in 1 2 13 15; do
2099  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
2104rm -f -r conftest* confdefs.h
2105
2106printf "%s\n" "/* confdefs.h */" > confdefs.h
2107
2108# Predefined preprocessor variables.
2109
2110printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2111
2112printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2113
2114printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2115
2116printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2117
2118printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2119
2120printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2121
2122
2123# Let the site file select an alternate cache file if it wants to.
2124# Prefer an explicitly selected file to automatically selected ones.
2125if test -n "$CONFIG_SITE"; then
2126  ac_site_files="$CONFIG_SITE"
2127elif test "x$prefix" != xNONE; then
2128  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2129else
2130  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2131fi
2132
2133for ac_site_file in $ac_site_files
2134do
2135  case $ac_site_file in #(
2136  */*) :
2137     ;; #(
2138  *) :
2139    ac_site_file=./$ac_site_file ;;
2140esac
2141  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2144    sed 's/^/| /' "$ac_site_file" >&5
2145    . "$ac_site_file" \
2146      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2147printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2148as_fn_error $? "failed to load site script $ac_site_file
2149See 'config.log' for more details" "$LINENO" 5; }
2150  fi
2151done
2152
2153if test -r "$cache_file"; then
2154  # Some versions of bash will fail to source /dev/null (special files
2155  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2156  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2159    case $cache_file in
2160      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161      *)                      . "./$cache_file";;
2162    esac
2163  fi
2164else
2165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2167  >$cache_file
2168fi
2169
2170# Test code for whether the C compiler supports C89 (global declarations)
2171ac_c_conftest_c89_globals='
2172/* Does the compiler advertise C89 conformance?
2173   Do not test the value of __STDC__, because some compilers set it to 0
2174   while being otherwise adequately conformant. */
2175#if !defined __STDC__
2176# error "Compiler does not advertise C89 conformance"
2177#endif
2178
2179#include <stddef.h>
2180#include <stdarg.h>
2181struct stat;
2182/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2183struct buf { int x; };
2184struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2185static char *e (char **p, int i)
2186{
2187  return p[i];
2188}
2189static char *f (char * (*g) (char **, int), char **p, ...)
2190{
2191  char *s;
2192  va_list v;
2193  va_start (v,p);
2194  s = g (p, va_arg (v,int));
2195  va_end (v);
2196  return s;
2197}
2198
2199/* C89 style stringification. */
2200#define noexpand_stringify(a) #a
2201const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2202
2203/* C89 style token pasting.  Exercises some of the corner cases that
2204   e.g. old MSVC gets wrong, but not very hard. */
2205#define noexpand_concat(a,b) a##b
2206#define expand_concat(a,b) noexpand_concat(a,b)
2207extern int vA;
2208extern int vbee;
2209#define aye A
2210#define bee B
2211int *pvA = &expand_concat(v,aye);
2212int *pvbee = &noexpand_concat(v,bee);
2213
2214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2215   function prototypes and stuff, but not \xHH hex character constants.
2216   These do not provoke an error unfortunately, instead are silently treated
2217   as an "x".  The following induces an error, until -std is added to get
2218   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2219   array size at least.  It is necessary to write \x00 == 0 to get something
2220   that is true only with -std.  */
2221int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2222
2223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2224   inside strings and character constants.  */
2225#define FOO(x) '\''x'\''
2226int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2227
2228int test (int i, double x);
2229struct s1 {int (*f) (int a);};
2230struct s2 {int (*f) (double a);};
2231int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2232               int, int);'
2233
2234# Test code for whether the C compiler supports C89 (body of main).
2235ac_c_conftest_c89_main='
2236ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2237'
2238
2239# Test code for whether the C compiler supports C99 (global declarations)
2240ac_c_conftest_c99_globals='
2241/* Does the compiler advertise C99 conformance? */
2242#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2243# error "Compiler does not advertise C99 conformance"
2244#endif
2245
2246// See if C++-style comments work.
2247
2248#include <stdbool.h>
2249extern int puts (const char *);
2250extern int printf (const char *, ...);
2251extern int dprintf (int, const char *, ...);
2252extern void *malloc (size_t);
2253extern void free (void *);
2254
2255// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2256// dprintf is used instead of fprintf to avoid needing to declare
2257// FILE and stderr.
2258#define debug(...) dprintf (2, __VA_ARGS__)
2259#define showlist(...) puts (#__VA_ARGS__)
2260#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2261static void
2262test_varargs_macros (void)
2263{
2264  int x = 1234;
2265  int y = 5678;
2266  debug ("Flag");
2267  debug ("X = %d\n", x);
2268  showlist (The first, second, and third items.);
2269  report (x>y, "x is %d but y is %d", x, y);
2270}
2271
2272// Check long long types.
2273#define BIG64 18446744073709551615ull
2274#define BIG32 4294967295ul
2275#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2276#if !BIG_OK
2277  #error "your preprocessor is broken"
2278#endif
2279#if BIG_OK
2280#else
2281  #error "your preprocessor is broken"
2282#endif
2283static long long int bignum = -9223372036854775807LL;
2284static unsigned long long int ubignum = BIG64;
2285
2286struct incomplete_array
2287{
2288  int datasize;
2289  double data[];
2290};
2291
2292struct named_init {
2293  int number;
2294  const wchar_t *name;
2295  double average;
2296};
2297
2298typedef const char *ccp;
2299
2300static inline int
2301test_restrict (ccp restrict text)
2302{
2303  // Iterate through items via the restricted pointer.
2304  // Also check for declarations in for loops.
2305  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2306    continue;
2307  return 0;
2308}
2309
2310// Check varargs and va_copy.
2311static bool
2312test_varargs (const char *format, ...)
2313{
2314  va_list args;
2315  va_start (args, format);
2316  va_list args_copy;
2317  va_copy (args_copy, args);
2318
2319  const char *str = "";
2320  int number = 0;
2321  float fnumber = 0;
2322
2323  while (*format)
2324    {
2325      switch (*format++)
2326	{
2327	case '\''s'\'': // string
2328	  str = va_arg (args_copy, const char *);
2329	  break;
2330	case '\''d'\'': // int
2331	  number = va_arg (args_copy, int);
2332	  break;
2333	case '\''f'\'': // float
2334	  fnumber = va_arg (args_copy, double);
2335	  break;
2336	default:
2337	  break;
2338	}
2339    }
2340  va_end (args_copy);
2341  va_end (args);
2342
2343  return *str && number && fnumber;
2344}
2345'
2346
2347# Test code for whether the C compiler supports C99 (body of main).
2348ac_c_conftest_c99_main='
2349  // Check bool.
2350  _Bool success = false;
2351  success |= (argc != 0);
2352
2353  // Check restrict.
2354  if (test_restrict ("String literal") == 0)
2355    success = true;
2356  char *restrict newvar = "Another string";
2357
2358  // Check varargs.
2359  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2360  test_varargs_macros ();
2361
2362  // Check flexible array members.
2363  struct incomplete_array *ia =
2364    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2365  ia->datasize = 10;
2366  for (int i = 0; i < ia->datasize; ++i)
2367    ia->data[i] = i * 1.234;
2368  // Work around memory leak warnings.
2369  free (ia);
2370
2371  // Check named initializers.
2372  struct named_init ni = {
2373    .number = 34,
2374    .name = L"Test wide string",
2375    .average = 543.34343,
2376  };
2377
2378  ni.number = 58;
2379
2380  int dynamic_array[ni.number];
2381  dynamic_array[0] = argv[0][0];
2382  dynamic_array[ni.number - 1] = 543;
2383
2384  // work around unused variable warnings
2385  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2386	 || dynamic_array[ni.number - 1] != 543);
2387'
2388
2389# Test code for whether the C compiler supports C11 (global declarations)
2390ac_c_conftest_c11_globals='
2391/* Does the compiler advertise C11 conformance? */
2392#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2393# error "Compiler does not advertise C11 conformance"
2394#endif
2395
2396// Check _Alignas.
2397char _Alignas (double) aligned_as_double;
2398char _Alignas (0) no_special_alignment;
2399extern char aligned_as_int;
2400char _Alignas (0) _Alignas (int) aligned_as_int;
2401
2402// Check _Alignof.
2403enum
2404{
2405  int_alignment = _Alignof (int),
2406  int_array_alignment = _Alignof (int[100]),
2407  char_alignment = _Alignof (char)
2408};
2409_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2410
2411// Check _Noreturn.
2412int _Noreturn does_not_return (void) { for (;;) continue; }
2413
2414// Check _Static_assert.
2415struct test_static_assert
2416{
2417  int x;
2418  _Static_assert (sizeof (int) <= sizeof (long int),
2419                  "_Static_assert does not work in struct");
2420  long int y;
2421};
2422
2423// Check UTF-8 literals.
2424#define u8 syntax error!
2425char const utf8_literal[] = u8"happens to be ASCII" "another string";
2426
2427// Check duplicate typedefs.
2428typedef long *long_ptr;
2429typedef long int *long_ptr;
2430typedef long_ptr long_ptr;
2431
2432// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2433struct anonymous
2434{
2435  union {
2436    struct { int i; int j; };
2437    struct { int k; long int l; } w;
2438  };
2439  int m;
2440} v1;
2441'
2442
2443# Test code for whether the C compiler supports C11 (body of main).
2444ac_c_conftest_c11_main='
2445  _Static_assert ((offsetof (struct anonymous, i)
2446		   == offsetof (struct anonymous, w.k)),
2447		  "Anonymous union alignment botch");
2448  v1.i = 2;
2449  v1.w.k = 5;
2450  ok |= v1.i != 5;
2451'
2452
2453# Test code for whether the C compiler supports C11 (complete).
2454ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2455${ac_c_conftest_c99_globals}
2456${ac_c_conftest_c11_globals}
2457
2458int
2459main (int argc, char **argv)
2460{
2461  int ok = 0;
2462  ${ac_c_conftest_c89_main}
2463  ${ac_c_conftest_c99_main}
2464  ${ac_c_conftest_c11_main}
2465  return ok;
2466}
2467"
2468
2469# Test code for whether the C compiler supports C99 (complete).
2470ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2471${ac_c_conftest_c99_globals}
2472
2473int
2474main (int argc, char **argv)
2475{
2476  int ok = 0;
2477  ${ac_c_conftest_c89_main}
2478  ${ac_c_conftest_c99_main}
2479  return ok;
2480}
2481"
2482
2483# Test code for whether the C compiler supports C89 (complete).
2484ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2485
2486int
2487main (int argc, char **argv)
2488{
2489  int ok = 0;
2490  ${ac_c_conftest_c89_main}
2491  return ok;
2492}
2493"
2494
2495as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2496as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2497as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2498as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2499as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2500as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2501as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2502as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2503as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2504
2505# Auxiliary files required by this configure script.
2506ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2507
2508# Locations in which to look for auxiliary files.
2509ac_aux_dir_candidates="${srcdir}/."
2510
2511# Search for a directory containing all of the required auxiliary files,
2512# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2513# If we don't find one directory that contains all the files we need,
2514# we report the set of missing files from the *first* directory in
2515# $ac_aux_dir_candidates and give up.
2516ac_missing_aux_files=""
2517ac_first_candidate=:
2518printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520as_found=false
2521for as_dir in $ac_aux_dir_candidates
2522do
2523  IFS=$as_save_IFS
2524  case $as_dir in #(((
2525    '') as_dir=./ ;;
2526    */) ;;
2527    *) as_dir=$as_dir/ ;;
2528  esac
2529  as_found=:
2530
2531  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2532  ac_aux_dir_found=yes
2533  ac_install_sh=
2534  for ac_aux in $ac_aux_files
2535  do
2536    # As a special case, if "install-sh" is required, that requirement
2537    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2538    # and $ac_install_sh is set appropriately for whichever one is found.
2539    if test x"$ac_aux" = x"install-sh"
2540    then
2541      if test -f "${as_dir}install-sh"; then
2542        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2543        ac_install_sh="${as_dir}install-sh -c"
2544      elif test -f "${as_dir}install.sh"; then
2545        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2546        ac_install_sh="${as_dir}install.sh -c"
2547      elif test -f "${as_dir}shtool"; then
2548        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2549        ac_install_sh="${as_dir}shtool install -c"
2550      else
2551        ac_aux_dir_found=no
2552        if $ac_first_candidate; then
2553          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2554        else
2555          break
2556        fi
2557      fi
2558    else
2559      if test -f "${as_dir}${ac_aux}"; then
2560        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2561      else
2562        ac_aux_dir_found=no
2563        if $ac_first_candidate; then
2564          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2565        else
2566          break
2567        fi
2568      fi
2569    fi
2570  done
2571  if test "$ac_aux_dir_found" = yes; then
2572    ac_aux_dir="$as_dir"
2573    break
2574  fi
2575  ac_first_candidate=false
2576
2577  as_found=false
2578done
2579IFS=$as_save_IFS
2580if $as_found
2581then :
2582
2583else case e in #(
2584  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2585esac
2586fi
2587
2588
2589# These three variables are undocumented and unsupported,
2590# and are intended to be withdrawn in a future Autoconf release.
2591# They can cause serious problems if a builder's source tree is in a directory
2592# whose full name contains unusual characters.
2593if test -f "${ac_aux_dir}config.guess"; then
2594  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2595fi
2596if test -f "${ac_aux_dir}config.sub"; then
2597  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2598fi
2599if test -f "$ac_aux_dir/configure"; then
2600  ac_configure="$SHELL ${ac_aux_dir}configure"
2601fi
2602
2603# Check that the precious variables saved in the cache have kept the same
2604# value.
2605ac_cache_corrupted=false
2606for ac_var in $ac_precious_vars; do
2607  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608  eval ac_new_set=\$ac_env_${ac_var}_set
2609  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610  eval ac_new_val=\$ac_env_${ac_var}_value
2611  case $ac_old_set,$ac_new_set in
2612    set,)
2613      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2614printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2615      ac_cache_corrupted=: ;;
2616    ,set)
2617      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2618printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2619      ac_cache_corrupted=: ;;
2620    ,);;
2621    *)
2622      if test "x$ac_old_val" != "x$ac_new_val"; then
2623	# differences in whitespace do not lead to failure.
2624	ac_old_val_w=`echo x $ac_old_val`
2625	ac_new_val_w=`echo x $ac_new_val`
2626	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2628printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2629	  ac_cache_corrupted=:
2630	else
2631	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2632printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2633	  eval $ac_var=\$ac_old_val
2634	fi
2635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2636printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2638printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2639      fi;;
2640  esac
2641  # Pass precious variables to config.status.
2642  if test "$ac_new_set" = set; then
2643    case $ac_new_val in
2644    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645    *) ac_arg=$ac_var=$ac_new_val ;;
2646    esac
2647    case " $ac_configure_args " in
2648      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2649      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2650    esac
2651  fi
2652done
2653if $ac_cache_corrupted; then
2654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2655printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2658  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2659	    and start over" "$LINENO" 5
2660fi
2661## -------------------- ##
2662## Main body of script. ##
2663## -------------------- ##
2664
2665ac_ext=c
2666ac_cpp='$CPP $CPPFLAGS'
2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670
2671
2672
2673
2674cat >>confdefs.h <<_ACEOF
2675#define NV_DRIVER_DATE $(echo -n \";git log |head -3|tail -1|tr -d '\n';echo -n \")
2676_ACEOF
2677
2678
2679
2680ac_config_headers="$ac_config_headers config.h"
2681
2682
2683
2684
2685# Initialize Automake
2686am__api_version='1.16'
2687
2688
2689
2690  # Find a good install program.  We prefer a C program (faster),
2691# so one script is as good as another.  But avoid the broken or
2692# incompatible versions:
2693# SysV /etc/install, /usr/sbin/install
2694# SunOS /usr/etc/install
2695# IRIX /sbin/install
2696# AIX /bin/install
2697# AmigaOS /C/install, which installs bootblocks on floppy discs
2698# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2699# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2700# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2701# OS/2's system install, which has a completely different semantic
2702# ./install, which can be erroneously created by make from ./install.sh.
2703# Reject install programs that cannot install multiple files.
2704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2705printf %s "checking for a BSD-compatible install... " >&6; }
2706if test -z "$INSTALL"; then
2707if test ${ac_cv_path_install+y}
2708then :
2709  printf %s "(cached) " >&6
2710else case e in #(
2711  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714  IFS=$as_save_IFS
2715  case $as_dir in #(((
2716    '') as_dir=./ ;;
2717    */) ;;
2718    *) as_dir=$as_dir/ ;;
2719  esac
2720    # Account for fact that we put trailing slashes in our PATH walk.
2721case $as_dir in #((
2722  ./ | /[cC]/* | \
2723  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2724  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2725  /usr/ucb/* ) ;;
2726  *)
2727    # OSF1 and SCO ODT 3.0 have their own names for install.
2728    # Don't use installbsd from OSF since it installs stuff as root
2729    # by default.
2730    for ac_prog in ginstall scoinst install; do
2731      for ac_exec_ext in '' $ac_executable_extensions; do
2732	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2733	  if test $ac_prog = install &&
2734	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735	    # AIX install.  It has an incompatible calling convention.
2736	    :
2737	  elif test $ac_prog = install &&
2738	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2739	    # program-specific install script used by HP pwplus--don't use.
2740	    :
2741	  else
2742	    rm -rf conftest.one conftest.two conftest.dir
2743	    echo one > conftest.one
2744	    echo two > conftest.two
2745	    mkdir conftest.dir
2746	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2747	      test -s conftest.one && test -s conftest.two &&
2748	      test -s conftest.dir/conftest.one &&
2749	      test -s conftest.dir/conftest.two
2750	    then
2751	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2752	      break 3
2753	    fi
2754	  fi
2755	fi
2756      done
2757    done
2758    ;;
2759esac
2760
2761  done
2762IFS=$as_save_IFS
2763
2764rm -rf conftest.one conftest.two conftest.dir
2765 ;;
2766esac
2767fi
2768  if test ${ac_cv_path_install+y}; then
2769    INSTALL=$ac_cv_path_install
2770  else
2771    # As a last resort, use the slow shell script.  Don't cache a
2772    # value for INSTALL within a source directory, because that will
2773    # break other packages using the cache if that directory is
2774    # removed, or if the value is a relative name.
2775    INSTALL=$ac_install_sh
2776  fi
2777fi
2778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2779printf "%s\n" "$INSTALL" >&6; }
2780
2781# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2782# It thinks the first close brace ends the variable substitution.
2783test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2784
2785test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2786
2787test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2788
2789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2790printf %s "checking whether build environment is sane... " >&6; }
2791# Reject unsafe characters in $srcdir or the absolute working directory
2792# name.  Accept space and tab only in the latter.
2793am_lf='
2794'
2795case `pwd` in
2796  *[\\\"\#\$\&\'\`$am_lf]*)
2797    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2798esac
2799case $srcdir in
2800  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2801    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2802esac
2803
2804# Do 'set' in a subshell so we don't clobber the current shell's
2805# arguments.  Must try -L first in case configure is actually a
2806# symlink; some systems play weird games with the mod time of symlinks
2807# (eg FreeBSD returns the mod time of the symlink's containing
2808# directory).
2809if (
2810   am_has_slept=no
2811   for am_try in 1 2; do
2812     echo "timestamp, slept: $am_has_slept" > conftest.file
2813     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2814     if test "$*" = "X"; then
2815	# -L didn't work.
2816	set X `ls -t "$srcdir/configure" conftest.file`
2817     fi
2818     if test "$*" != "X $srcdir/configure conftest.file" \
2819	&& test "$*" != "X conftest.file $srcdir/configure"; then
2820
2821	# If neither matched, then we have a broken ls.  This can happen
2822	# if, for instance, CONFIG_SHELL is bash and it inherits a
2823	# broken ls alias from the environment.  This has actually
2824	# happened.  Such a system could not be considered "sane".
2825	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2826  alias in your environment" "$LINENO" 5
2827     fi
2828     if test "$2" = conftest.file || test $am_try -eq 2; then
2829       break
2830     fi
2831     # Just in case.
2832     sleep 1
2833     am_has_slept=yes
2834   done
2835   test "$2" = conftest.file
2836   )
2837then
2838   # Ok.
2839   :
2840else
2841   as_fn_error $? "newly created file is older than distributed files!
2842Check your system clock" "$LINENO" 5
2843fi
2844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845printf "%s\n" "yes" >&6; }
2846# If we didn't sleep, we still need to ensure time stamps of config.status and
2847# generated files are strictly newer.
2848am_sleep_pid=
2849if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2850  ( sleep 1 ) &
2851  am_sleep_pid=$!
2852fi
2853
2854rm -f conftest.file
2855
2856test "$program_prefix" != NONE &&
2857  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2858# Use a double $ so make ignores it.
2859test "$program_suffix" != NONE &&
2860  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2861# Double any \ or $.
2862# By default was 's,x,x', remove it if useless.
2863ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2864program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2865
2866
2867# Expand $ac_aux_dir to an absolute path.
2868am_aux_dir=`cd "$ac_aux_dir" && pwd`
2869
2870
2871  if test x"${MISSING+set}" != xset; then
2872  MISSING="\${SHELL} '$am_aux_dir/missing'"
2873fi
2874# Use eval to expand $SHELL
2875if eval "$MISSING --is-lightweight"; then
2876  am_missing_run="$MISSING "
2877else
2878  am_missing_run=
2879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2880printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2881fi
2882
2883if test x"${install_sh+set}" != xset; then
2884  case $am_aux_dir in
2885  *\ * | *\	*)
2886    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2887  *)
2888    install_sh="\${SHELL} $am_aux_dir/install-sh"
2889  esac
2890fi
2891
2892# Installed binaries are usually stripped using 'strip' when the user
2893# run "make install-strip".  However 'strip' might not be the right
2894# tool to use in cross-compilation environments, therefore Automake
2895# will honor the 'STRIP' environment variable to overrule this program.
2896if test "$cross_compiling" != no; then
2897  if test -n "$ac_tool_prefix"; then
2898  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2899set dummy ${ac_tool_prefix}strip; ac_word=$2
2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901printf %s "checking for $ac_word... " >&6; }
2902if test ${ac_cv_prog_STRIP+y}
2903then :
2904  printf %s "(cached) " >&6
2905else case e in #(
2906  e) if test -n "$STRIP"; then
2907  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  case $as_dir in #(((
2914    '') as_dir=./ ;;
2915    */) ;;
2916    *) as_dir=$as_dir/ ;;
2917  esac
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2920    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi ;;
2929esac
2930fi
2931STRIP=$ac_cv_prog_STRIP
2932if test -n "$STRIP"; then
2933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2934printf "%s\n" "$STRIP" >&6; }
2935else
2936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937printf "%s\n" "no" >&6; }
2938fi
2939
2940
2941fi
2942if test -z "$ac_cv_prog_STRIP"; then
2943  ac_ct_STRIP=$STRIP
2944  # Extract the first word of "strip", so it can be a program name with args.
2945set dummy strip; ac_word=$2
2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947printf %s "checking for $ac_word... " >&6; }
2948if test ${ac_cv_prog_ac_ct_STRIP+y}
2949then :
2950  printf %s "(cached) " >&6
2951else case e in #(
2952  e) if test -n "$ac_ct_STRIP"; then
2953  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  case $as_dir in #(((
2960    '') as_dir=./ ;;
2961    */) ;;
2962    *) as_dir=$as_dir/ ;;
2963  esac
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_ac_ct_STRIP="strip"
2967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi ;;
2975esac
2976fi
2977ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2978if test -n "$ac_ct_STRIP"; then
2979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2980printf "%s\n" "$ac_ct_STRIP" >&6; }
2981else
2982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983printf "%s\n" "no" >&6; }
2984fi
2985
2986  if test "x$ac_ct_STRIP" = x; then
2987    STRIP=":"
2988  else
2989    case $cross_compiling:$ac_tool_warned in
2990yes:)
2991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993ac_tool_warned=yes ;;
2994esac
2995    STRIP=$ac_ct_STRIP
2996  fi
2997else
2998  STRIP="$ac_cv_prog_STRIP"
2999fi
3000
3001fi
3002INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3003
3004
3005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3006printf %s "checking for a race-free mkdir -p... " >&6; }
3007if test -z "$MKDIR_P"; then
3008  if test ${ac_cv_path_mkdir+y}
3009then :
3010  printf %s "(cached) " >&6
3011else case e in #(
3012  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3014do
3015  IFS=$as_save_IFS
3016  case $as_dir in #(((
3017    '') as_dir=./ ;;
3018    */) ;;
3019    *) as_dir=$as_dir/ ;;
3020  esac
3021    for ac_prog in mkdir gmkdir; do
3022	 for ac_exec_ext in '' $ac_executable_extensions; do
3023	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3024	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3025	     'mkdir ('*'coreutils) '* | \
3026	     *'BusyBox '* | \
3027	     'mkdir (fileutils) '4.1*)
3028	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3029	       break 3;;
3030	   esac
3031	 done
3032       done
3033  done
3034IFS=$as_save_IFS
3035 ;;
3036esac
3037fi
3038
3039  test -d ./--version && rmdir ./--version
3040  if test ${ac_cv_path_mkdir+y}; then
3041    MKDIR_P="$ac_cv_path_mkdir -p"
3042  else
3043    # As a last resort, use plain mkdir -p,
3044    # in the hope it doesn't have the bugs of ancient mkdir.
3045    MKDIR_P='mkdir -p'
3046  fi
3047fi
3048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3049printf "%s\n" "$MKDIR_P" >&6; }
3050
3051for ac_prog in gawk mawk nawk awk
3052do
3053  # Extract the first word of "$ac_prog", so it can be a program name with args.
3054set dummy $ac_prog; ac_word=$2
3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056printf %s "checking for $ac_word... " >&6; }
3057if test ${ac_cv_prog_AWK+y}
3058then :
3059  printf %s "(cached) " >&6
3060else case e in #(
3061  e) if test -n "$AWK"; then
3062  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  case $as_dir in #(((
3069    '') as_dir=./ ;;
3070    */) ;;
3071    *) as_dir=$as_dir/ ;;
3072  esac
3073    for ac_exec_ext in '' $ac_executable_extensions; do
3074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3075    ac_cv_prog_AWK="$ac_prog"
3076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3077    break 2
3078  fi
3079done
3080  done
3081IFS=$as_save_IFS
3082
3083fi ;;
3084esac
3085fi
3086AWK=$ac_cv_prog_AWK
3087if test -n "$AWK"; then
3088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3089printf "%s\n" "$AWK" >&6; }
3090else
3091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092printf "%s\n" "no" >&6; }
3093fi
3094
3095
3096  test -n "$AWK" && break
3097done
3098
3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3100printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3101set x ${MAKE-make}
3102ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3103if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3104then :
3105  printf %s "(cached) " >&6
3106else case e in #(
3107  e) cat >conftest.make <<\_ACEOF
3108SHELL = /bin/sh
3109all:
3110	@echo '@@@%%%=$(MAKE)=@@@%%%'
3111_ACEOF
3112# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3113case `${MAKE-make} -f conftest.make 2>/dev/null` in
3114  *@@@%%%=?*=@@@%%%*)
3115    eval ac_cv_prog_make_${ac_make}_set=yes;;
3116  *)
3117    eval ac_cv_prog_make_${ac_make}_set=no;;
3118esac
3119rm -f conftest.make ;;
3120esac
3121fi
3122if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124printf "%s\n" "yes" >&6; }
3125  SET_MAKE=
3126else
3127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128printf "%s\n" "no" >&6; }
3129  SET_MAKE="MAKE=${MAKE-make}"
3130fi
3131
3132rm -rf .tst 2>/dev/null
3133mkdir .tst 2>/dev/null
3134if test -d .tst; then
3135  am__leading_dot=.
3136else
3137  am__leading_dot=_
3138fi
3139rmdir .tst 2>/dev/null
3140
3141# Check whether --enable-silent-rules was given.
3142if test ${enable_silent_rules+y}
3143then :
3144  enableval=$enable_silent_rules;
3145fi
3146
3147case $enable_silent_rules in # (((
3148  yes) AM_DEFAULT_VERBOSITY=0;;
3149   no) AM_DEFAULT_VERBOSITY=1;;
3150    *) AM_DEFAULT_VERBOSITY=1;;
3151esac
3152am_make=${MAKE-make}
3153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3154printf %s "checking whether $am_make supports nested variables... " >&6; }
3155if test ${am_cv_make_support_nested_variables+y}
3156then :
3157  printf %s "(cached) " >&6
3158else case e in #(
3159  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3160BAR0=false
3161BAR1=true
3162V=1
3163am__doit:
3164	@$(TRUE)
3165.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3166  am_cv_make_support_nested_variables=yes
3167else
3168  am_cv_make_support_nested_variables=no
3169fi ;;
3170esac
3171fi
3172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3173printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3174if test $am_cv_make_support_nested_variables = yes; then
3175    AM_V='$(V)'
3176  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3177else
3178  AM_V=$AM_DEFAULT_VERBOSITY
3179  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3180fi
3181AM_BACKSLASH='\'
3182
3183if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185  # is not polluted with repeated "-I."
3186  am__isrc=' -I$(srcdir)'
3187  # test to see if srcdir already configured
3188  if test -f $srcdir/config.status; then
3189    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3190  fi
3191fi
3192
3193# test whether we have cygpath
3194if test -z "$CYGPATH_W"; then
3195  if (cygpath --version) >/dev/null 2>/dev/null; then
3196    CYGPATH_W='cygpath -w'
3197  else
3198    CYGPATH_W=echo
3199  fi
3200fi
3201
3202
3203# Define the identity of the package.
3204 PACKAGE='xf86-video-nouveau'
3205 VERSION='1.0.18'
3206
3207
3208printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3209
3210
3211printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3212
3213# Some tools Automake needs.
3214
3215ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3216
3217
3218AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3219
3220
3221AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3222
3223
3224AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3225
3226
3227MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3228
3229# For better backward compatibility.  To be removed once Automake 1.9.x
3230# dies out for good.  For more background, see:
3231# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3232# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3233mkdir_p='$(MKDIR_P)'
3234
3235# We need awk for the "check" target (and possibly the TAP driver).  The
3236# system "awk" is bad on some platforms.
3237# Always define AMTAR for backward compatibility.  Yes, it's still used
3238# in the wild :-(  We should find a proper way to deprecate it ...
3239AMTAR='$${TAR-tar}'
3240
3241
3242# We'll loop over all known methods to create a tar archive until one works.
3243_am_tools='gnutar  pax cpio none'
3244
3245am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3246
3247
3248
3249
3250
3251# Variables for tags utilities; see am/tags.am
3252if test -z "$CTAGS"; then
3253  CTAGS=ctags
3254fi
3255
3256if test -z "$ETAGS"; then
3257  ETAGS=etags
3258fi
3259
3260if test -z "$CSCOPE"; then
3261  CSCOPE=cscope
3262fi
3263
3264
3265
3266# POSIX will say in a future version that running "rm -f" with no argument
3267# is OK; and we want to be able to make that assumption in our Makefile
3268# recipes.  So use an aggressive probe to check that the usage we want is
3269# actually supported "in the wild" to an acceptable degree.
3270# See automake bug#10828.
3271# To make any issue more visible, cause the running configure to be aborted
3272# by default if the 'rm' program in use doesn't match our expectations; the
3273# user can still override this though.
3274if rm -f && rm -fr && rm -rf; then : OK; else
3275  cat >&2 <<'END'
3276Oops!
3277
3278Your 'rm' program seems unable to run without file operands specified
3279on the command line, even when the '-f' option is present.  This is contrary
3280to the behaviour of most rm programs out there, and not conforming with
3281the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3282
3283Please tell bug-automake@gnu.org about your system, including the value
3284of your $PATH and any error possibly output before this message.  This
3285can help us improve future automake versions.
3286
3287END
3288  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3289    echo 'Configuration will proceed anyway, since you have set the' >&2
3290    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3291    echo >&2
3292  else
3293    cat >&2 <<'END'
3294Aborting the configuration process, to ensure you take notice of the issue.
3295
3296You can download and install GNU coreutils to get an 'rm' implementation
3297that behaves properly: <https://www.gnu.org/software/coreutils/>.
3298
3299If you want to complete the configuration process using your problematic
3300'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3301to "yes", and re-run configure.
3302
3303END
3304    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3305  fi
3306fi
3307
3308
3309# Check whether --enable-silent-rules was given.
3310if test ${enable_silent_rules+y}
3311then :
3312  enableval=$enable_silent_rules;
3313fi
3314
3315case $enable_silent_rules in # (((
3316  yes) AM_DEFAULT_VERBOSITY=0;;
3317   no) AM_DEFAULT_VERBOSITY=1;;
3318    *) AM_DEFAULT_VERBOSITY=0;;
3319esac
3320am_make=${MAKE-make}
3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3322printf %s "checking whether $am_make supports nested variables... " >&6; }
3323if test ${am_cv_make_support_nested_variables+y}
3324then :
3325  printf %s "(cached) " >&6
3326else case e in #(
3327  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3328BAR0=false
3329BAR1=true
3330V=1
3331am__doit:
3332	@$(TRUE)
3333.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3334  am_cv_make_support_nested_variables=yes
3335else
3336  am_cv_make_support_nested_variables=no
3337fi ;;
3338esac
3339fi
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3341printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3342if test $am_cv_make_support_nested_variables = yes; then
3343    AM_V='$(V)'
3344  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3345else
3346  AM_V=$AM_DEFAULT_VERBOSITY
3347  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3348fi
3349AM_BACKSLASH='\'
3350
3351
3352# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374DEPDIR="${am__leading_dot}deps"
3375
3376ac_config_commands="$ac_config_commands depfiles"
3377
3378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3379printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3380cat > confinc.mk << 'END'
3381am__doit:
3382	@echo this is the am__doit target >confinc.out
3383.PHONY: am__doit
3384END
3385am__include="#"
3386am__quote=
3387# BSD make does it like this.
3388echo '.include "confinc.mk" # ignored' > confmf.BSD
3389# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3390echo 'include confinc.mk # ignored' > confmf.GNU
3391_am_result=no
3392for s in GNU BSD; do
3393  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3394   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }
3398  case $?:`cat confinc.out 2>/dev/null` in #(
3399  '0:this is the am__doit target') :
3400    case $s in #(
3401  BSD) :
3402    am__include='.include' am__quote='"' ;; #(
3403  *) :
3404    am__include='include' am__quote='' ;;
3405esac ;; #(
3406  *) :
3407     ;;
3408esac
3409  if test "$am__include" != "#"; then
3410    _am_result="yes ($s style)"
3411    break
3412  fi
3413done
3414rm -f confinc.* confmf.*
3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3416printf "%s\n" "${_am_result}" >&6; }
3417
3418# Check whether --enable-dependency-tracking was given.
3419if test ${enable_dependency_tracking+y}
3420then :
3421  enableval=$enable_dependency_tracking;
3422fi
3423
3424if test "x$enable_dependency_tracking" != xno; then
3425  am_depcomp="$ac_aux_dir/depcomp"
3426  AMDEPBACKSLASH='\'
3427  am__nodep='_no'
3428fi
3429 if test "x$enable_dependency_tracking" != xno; then
3430  AMDEP_TRUE=
3431  AMDEP_FALSE='#'
3432else
3433  AMDEP_TRUE='#'
3434  AMDEP_FALSE=
3435fi
3436
3437
3438ac_ext=c
3439ac_cpp='$CPP $CPPFLAGS'
3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443if test -n "$ac_tool_prefix"; then
3444  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3445set dummy ${ac_tool_prefix}gcc; ac_word=$2
3446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447printf %s "checking for $ac_word... " >&6; }
3448if test ${ac_cv_prog_CC+y}
3449then :
3450  printf %s "(cached) " >&6
3451else case e in #(
3452  e) if test -n "$CC"; then
3453  ac_cv_prog_CC="$CC" # Let the user override the test.
3454else
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458  IFS=$as_save_IFS
3459  case $as_dir in #(((
3460    '') as_dir=./ ;;
3461    */) ;;
3462    *) as_dir=$as_dir/ ;;
3463  esac
3464    for ac_exec_ext in '' $ac_executable_extensions; do
3465  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3466    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3467    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3468    break 2
3469  fi
3470done
3471  done
3472IFS=$as_save_IFS
3473
3474fi ;;
3475esac
3476fi
3477CC=$ac_cv_prog_CC
3478if test -n "$CC"; then
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480printf "%s\n" "$CC" >&6; }
3481else
3482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483printf "%s\n" "no" >&6; }
3484fi
3485
3486
3487fi
3488if test -z "$ac_cv_prog_CC"; then
3489  ac_ct_CC=$CC
3490  # Extract the first word of "gcc", so it can be a program name with args.
3491set dummy gcc; ac_word=$2
3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493printf %s "checking for $ac_word... " >&6; }
3494if test ${ac_cv_prog_ac_ct_CC+y}
3495then :
3496  printf %s "(cached) " >&6
3497else case e in #(
3498  e) if test -n "$ac_ct_CC"; then
3499  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504  IFS=$as_save_IFS
3505  case $as_dir in #(((
3506    '') as_dir=./ ;;
3507    */) ;;
3508    *) as_dir=$as_dir/ ;;
3509  esac
3510    for ac_exec_ext in '' $ac_executable_extensions; do
3511  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3512    ac_cv_prog_ac_ct_CC="gcc"
3513    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3514    break 2
3515  fi
3516done
3517  done
3518IFS=$as_save_IFS
3519
3520fi ;;
3521esac
3522fi
3523ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524if test -n "$ac_ct_CC"; then
3525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526printf "%s\n" "$ac_ct_CC" >&6; }
3527else
3528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529printf "%s\n" "no" >&6; }
3530fi
3531
3532  if test "x$ac_ct_CC" = x; then
3533    CC=""
3534  else
3535    case $cross_compiling:$ac_tool_warned in
3536yes:)
3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539ac_tool_warned=yes ;;
3540esac
3541    CC=$ac_ct_CC
3542  fi
3543else
3544  CC="$ac_cv_prog_CC"
3545fi
3546
3547if test -z "$CC"; then
3548          if test -n "$ac_tool_prefix"; then
3549    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3550set dummy ${ac_tool_prefix}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 case e in #(
3557  e) if test -n "$CC"; then
3558  ac_cv_prog_CC="$CC" # Let the user override the test.
3559else
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563  IFS=$as_save_IFS
3564  case $as_dir in #(((
3565    '') as_dir=./ ;;
3566    */) ;;
3567    *) as_dir=$as_dir/ ;;
3568  esac
3569    for ac_exec_ext in '' $ac_executable_extensions; do
3570  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3571    ac_cv_prog_CC="${ac_tool_prefix}cc"
3572    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3573    break 2
3574  fi
3575done
3576  done
3577IFS=$as_save_IFS
3578
3579fi ;;
3580esac
3581fi
3582CC=$ac_cv_prog_CC
3583if test -n "$CC"; then
3584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585printf "%s\n" "$CC" >&6; }
3586else
3587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588printf "%s\n" "no" >&6; }
3589fi
3590
3591
3592  fi
3593fi
3594if test -z "$CC"; then
3595  # Extract the first word of "cc", so it can be a program name with args.
3596set dummy cc; ac_word=$2
3597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598printf %s "checking for $ac_word... " >&6; }
3599if test ${ac_cv_prog_CC+y}
3600then :
3601  printf %s "(cached) " >&6
3602else case e in #(
3603  e) if test -n "$CC"; then
3604  ac_cv_prog_CC="$CC" # Let the user override the test.
3605else
3606  ac_prog_rejected=no
3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610  IFS=$as_save_IFS
3611  case $as_dir in #(((
3612    '') as_dir=./ ;;
3613    */) ;;
3614    *) as_dir=$as_dir/ ;;
3615  esac
3616    for ac_exec_ext in '' $ac_executable_extensions; do
3617  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3618    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3619       ac_prog_rejected=yes
3620       continue
3621     fi
3622    ac_cv_prog_CC="cc"
3623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3624    break 2
3625  fi
3626done
3627  done
3628IFS=$as_save_IFS
3629
3630if test $ac_prog_rejected = yes; then
3631  # We found a bogon in the path, so make sure we never use it.
3632  set dummy $ac_cv_prog_CC
3633  shift
3634  if test $# != 0; then
3635    # We chose a different compiler from the bogus one.
3636    # However, it has the same basename, so the bogon will be chosen
3637    # first if we set CC to just the basename; use the full file name.
3638    shift
3639    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3640  fi
3641fi
3642fi ;;
3643esac
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
3655fi
3656if test -z "$CC"; then
3657  if test -n "$ac_tool_prefix"; then
3658  for ac_prog in cl.exe
3659  do
3660    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663printf %s "checking for $ac_word... " >&6; }
3664if test ${ac_cv_prog_CC+y}
3665then :
3666  printf %s "(cached) " >&6
3667else case e in #(
3668  e) if test -n "$CC"; then
3669  ac_cv_prog_CC="$CC" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674  IFS=$as_save_IFS
3675  case $as_dir in #(((
3676    '') as_dir=./ ;;
3677    */) ;;
3678    *) as_dir=$as_dir/ ;;
3679  esac
3680    for ac_exec_ext in '' $ac_executable_extensions; do
3681  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3682    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3683    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3684    break 2
3685  fi
3686done
3687  done
3688IFS=$as_save_IFS
3689
3690fi ;;
3691esac
3692fi
3693CC=$ac_cv_prog_CC
3694if test -n "$CC"; then
3695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3696printf "%s\n" "$CC" >&6; }
3697else
3698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699printf "%s\n" "no" >&6; }
3700fi
3701
3702
3703    test -n "$CC" && break
3704  done
3705fi
3706if test -z "$CC"; then
3707  ac_ct_CC=$CC
3708  for ac_prog in cl.exe
3709do
3710  # Extract the first word of "$ac_prog", so it can be a program name with args.
3711set dummy $ac_prog; ac_word=$2
3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713printf %s "checking for $ac_word... " >&6; }
3714if test ${ac_cv_prog_ac_ct_CC+y}
3715then :
3716  printf %s "(cached) " >&6
3717else case e in #(
3718  e) if test -n "$ac_ct_CC"; then
3719  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3720else
3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH
3723do
3724  IFS=$as_save_IFS
3725  case $as_dir in #(((
3726    '') as_dir=./ ;;
3727    */) ;;
3728    *) as_dir=$as_dir/ ;;
3729  esac
3730    for ac_exec_ext in '' $ac_executable_extensions; do
3731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3732    ac_cv_prog_ac_ct_CC="$ac_prog"
3733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3734    break 2
3735  fi
3736done
3737  done
3738IFS=$as_save_IFS
3739
3740fi ;;
3741esac
3742fi
3743ac_ct_CC=$ac_cv_prog_ac_ct_CC
3744if test -n "$ac_ct_CC"; then
3745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3746printf "%s\n" "$ac_ct_CC" >&6; }
3747else
3748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749printf "%s\n" "no" >&6; }
3750fi
3751
3752
3753  test -n "$ac_ct_CC" && break
3754done
3755
3756  if test "x$ac_ct_CC" = x; then
3757    CC=""
3758  else
3759    case $cross_compiling:$ac_tool_warned in
3760yes:)
3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3762printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3763ac_tool_warned=yes ;;
3764esac
3765    CC=$ac_ct_CC
3766  fi
3767fi
3768
3769fi
3770if test -z "$CC"; then
3771  if test -n "$ac_tool_prefix"; then
3772  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3773set dummy ${ac_tool_prefix}clang; ac_word=$2
3774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775printf %s "checking for $ac_word... " >&6; }
3776if test ${ac_cv_prog_CC+y}
3777then :
3778  printf %s "(cached) " >&6
3779else case e in #(
3780  e) if test -n "$CC"; then
3781  ac_cv_prog_CC="$CC" # Let the user override the test.
3782else
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786  IFS=$as_save_IFS
3787  case $as_dir in #(((
3788    '') as_dir=./ ;;
3789    */) ;;
3790    *) as_dir=$as_dir/ ;;
3791  esac
3792    for ac_exec_ext in '' $ac_executable_extensions; do
3793  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3794    ac_cv_prog_CC="${ac_tool_prefix}clang"
3795    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3796    break 2
3797  fi
3798done
3799  done
3800IFS=$as_save_IFS
3801
3802fi ;;
3803esac
3804fi
3805CC=$ac_cv_prog_CC
3806if test -n "$CC"; then
3807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808printf "%s\n" "$CC" >&6; }
3809else
3810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811printf "%s\n" "no" >&6; }
3812fi
3813
3814
3815fi
3816if test -z "$ac_cv_prog_CC"; then
3817  ac_ct_CC=$CC
3818  # Extract the first word of "clang", so it can be a program name with args.
3819set dummy clang; ac_word=$2
3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821printf %s "checking for $ac_word... " >&6; }
3822if test ${ac_cv_prog_ac_ct_CC+y}
3823then :
3824  printf %s "(cached) " >&6
3825else case e in #(
3826  e) if test -n "$ac_ct_CC"; then
3827  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832  IFS=$as_save_IFS
3833  case $as_dir in #(((
3834    '') as_dir=./ ;;
3835    */) ;;
3836    *) as_dir=$as_dir/ ;;
3837  esac
3838    for ac_exec_ext in '' $ac_executable_extensions; do
3839  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3840    ac_cv_prog_ac_ct_CC="clang"
3841    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3842    break 2
3843  fi
3844done
3845  done
3846IFS=$as_save_IFS
3847
3848fi ;;
3849esac
3850fi
3851ac_ct_CC=$ac_cv_prog_ac_ct_CC
3852if test -n "$ac_ct_CC"; then
3853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3854printf "%s\n" "$ac_ct_CC" >&6; }
3855else
3856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857printf "%s\n" "no" >&6; }
3858fi
3859
3860  if test "x$ac_ct_CC" = x; then
3861    CC=""
3862  else
3863    case $cross_compiling:$ac_tool_warned in
3864yes:)
3865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867ac_tool_warned=yes ;;
3868esac
3869    CC=$ac_ct_CC
3870  fi
3871else
3872  CC="$ac_cv_prog_CC"
3873fi
3874
3875fi
3876
3877
3878test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3879printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3880as_fn_error $? "no acceptable C compiler found in \$PATH
3881See 'config.log' for more details" "$LINENO" 5; }
3882
3883# Provide some information about the compiler.
3884printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3885set X $ac_compile
3886ac_compiler=$2
3887for ac_option in --version -v -V -qversion -version; do
3888  { { ac_try="$ac_compiler $ac_option >&5"
3889case "(($ac_try" in
3890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891  *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894printf "%s\n" "$ac_try_echo"; } >&5
3895  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3896  ac_status=$?
3897  if test -s conftest.err; then
3898    sed '10a\
3899... rest of stderr output deleted ...
3900         10q' conftest.err >conftest.er1
3901    cat conftest.er1 >&5
3902  fi
3903  rm -f conftest.er1 conftest.err
3904  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905  test $ac_status = 0; }
3906done
3907
3908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h.  */
3910
3911int
3912main (void)
3913{
3914
3915  ;
3916  return 0;
3917}
3918_ACEOF
3919ac_clean_files_save=$ac_clean_files
3920ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3921# Try to create an executable without -o first, disregard a.out.
3922# It will help us diagnose broken compilers, and finding out an intuition
3923# of exeext.
3924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3925printf %s "checking whether the C compiler works... " >&6; }
3926ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3927
3928# The possible output files:
3929ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3930
3931ac_rmfiles=
3932for ac_file in $ac_files
3933do
3934  case $ac_file in
3935    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3936    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3937  esac
3938done
3939rm -f $ac_rmfiles
3940
3941if { { ac_try="$ac_link_default"
3942case "(($ac_try" in
3943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944  *) ac_try_echo=$ac_try;;
3945esac
3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947printf "%s\n" "$ac_try_echo"; } >&5
3948  (eval "$ac_link_default") 2>&5
3949  ac_status=$?
3950  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951  test $ac_status = 0; }
3952then :
3953  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3954# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3955# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3956# so that the user can short-circuit this test for compilers unknown to
3957# Autoconf.
3958for ac_file in $ac_files ''
3959do
3960  test -f "$ac_file" || continue
3961  case $ac_file in
3962    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3963	;;
3964    [ab].out )
3965	# We found the default executable, but exeext='' is most
3966	# certainly right.
3967	break;;
3968    *.* )
3969	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3970	then :; else
3971	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3972	fi
3973	# We set ac_cv_exeext here because the later test for it is not
3974	# safe: cross compilers may not add the suffix if given an '-o'
3975	# argument, so we may need to know it at that point already.
3976	# Even if this section looks crufty: it has the advantage of
3977	# actually working.
3978	break;;
3979    * )
3980	break;;
3981  esac
3982done
3983test "$ac_cv_exeext" = no && ac_cv_exeext=
3984
3985else case e in #(
3986  e) ac_file='' ;;
3987esac
3988fi
3989if test -z "$ac_file"
3990then :
3991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992printf "%s\n" "no" >&6; }
3993printf "%s\n" "$as_me: failed program was:" >&5
3994sed 's/^/| /' conftest.$ac_ext >&5
3995
3996{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3997printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3998as_fn_error 77 "C compiler cannot create executables
3999See 'config.log' for more details" "$LINENO" 5; }
4000else case e in #(
4001  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4002printf "%s\n" "yes" >&6; } ;;
4003esac
4004fi
4005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4006printf %s "checking for C compiler default output file name... " >&6; }
4007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4008printf "%s\n" "$ac_file" >&6; }
4009ac_exeext=$ac_cv_exeext
4010
4011rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4012ac_clean_files=$ac_clean_files_save
4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4014printf %s "checking for suffix of executables... " >&6; }
4015if { { ac_try="$ac_link"
4016case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021printf "%s\n" "$ac_try_echo"; } >&5
4022  (eval "$ac_link") 2>&5
4023  ac_status=$?
4024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025  test $ac_status = 0; }
4026then :
4027  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4028# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
4029# work properly (i.e., refer to 'conftest.exe'), while it won't with
4030# 'rm'.
4031for ac_file in conftest.exe conftest conftest.*; do
4032  test -f "$ac_file" || continue
4033  case $ac_file in
4034    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4035    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4036	  break;;
4037    * ) break;;
4038  esac
4039done
4040else case e in #(
4041  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4042printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4043as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4044See 'config.log' for more details" "$LINENO" 5; } ;;
4045esac
4046fi
4047rm -f conftest conftest$ac_cv_exeext
4048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4049printf "%s\n" "$ac_cv_exeext" >&6; }
4050
4051rm -f conftest.$ac_ext
4052EXEEXT=$ac_cv_exeext
4053ac_exeext=$EXEEXT
4054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056#include <stdio.h>
4057int
4058main (void)
4059{
4060FILE *f = fopen ("conftest.out", "w");
4061 if (!f)
4062  return 1;
4063 return ferror (f) || fclose (f) != 0;
4064
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069ac_clean_files="$ac_clean_files conftest.out"
4070# Check that the compiler produces executables we can run.  If not, either
4071# the compiler is broken, or we cross compile.
4072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4073printf %s "checking whether we are cross compiling... " >&6; }
4074if test "$cross_compiling" != yes; then
4075  { { ac_try="$ac_link"
4076case "(($ac_try" in
4077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078  *) ac_try_echo=$ac_try;;
4079esac
4080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081printf "%s\n" "$ac_try_echo"; } >&5
4082  (eval "$ac_link") 2>&5
4083  ac_status=$?
4084  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085  test $ac_status = 0; }
4086  if { ac_try='./conftest$ac_cv_exeext'
4087  { { case "(($ac_try" in
4088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089  *) ac_try_echo=$ac_try;;
4090esac
4091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092printf "%s\n" "$ac_try_echo"; } >&5
4093  (eval "$ac_try") 2>&5
4094  ac_status=$?
4095  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096  test $ac_status = 0; }; }; then
4097    cross_compiling=no
4098  else
4099    if test "$cross_compiling" = maybe; then
4100	cross_compiling=yes
4101    else
4102	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4103printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4104as_fn_error 77 "cannot run C compiled programs.
4105If you meant to cross compile, use '--host'.
4106See 'config.log' for more details" "$LINENO" 5; }
4107    fi
4108  fi
4109fi
4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4111printf "%s\n" "$cross_compiling" >&6; }
4112
4113rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4114  conftest.o conftest.obj conftest.out
4115ac_clean_files=$ac_clean_files_save
4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4117printf %s "checking for suffix of object files... " >&6; }
4118if test ${ac_cv_objext+y}
4119then :
4120  printf %s "(cached) " >&6
4121else case e in #(
4122  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124
4125int
4126main (void)
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133rm -f conftest.o conftest.obj
4134if { { ac_try="$ac_compile"
4135case "(($ac_try" in
4136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137  *) ac_try_echo=$ac_try;;
4138esac
4139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140printf "%s\n" "$ac_try_echo"; } >&5
4141  (eval "$ac_compile") 2>&5
4142  ac_status=$?
4143  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144  test $ac_status = 0; }
4145then :
4146  for ac_file in conftest.o conftest.obj conftest.*; do
4147  test -f "$ac_file" || continue;
4148  case $ac_file in
4149    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4150    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4151       break;;
4152  esac
4153done
4154else case e in #(
4155  e) printf "%s\n" "$as_me: failed program was:" >&5
4156sed 's/^/| /' conftest.$ac_ext >&5
4157
4158{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4159printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4160as_fn_error $? "cannot compute suffix of object files: cannot compile
4161See 'config.log' for more details" "$LINENO" 5; } ;;
4162esac
4163fi
4164rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4165esac
4166fi
4167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4168printf "%s\n" "$ac_cv_objext" >&6; }
4169OBJEXT=$ac_cv_objext
4170ac_objext=$OBJEXT
4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4172printf %s "checking whether the compiler supports GNU C... " >&6; }
4173if test ${ac_cv_c_compiler_gnu+y}
4174then :
4175  printf %s "(cached) " >&6
4176else case e in #(
4177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178/* end confdefs.h.  */
4179
4180int
4181main (void)
4182{
4183#ifndef __GNUC__
4184       choke me
4185#endif
4186
4187  ;
4188  return 0;
4189}
4190_ACEOF
4191if ac_fn_c_try_compile "$LINENO"
4192then :
4193  ac_compiler_gnu=yes
4194else case e in #(
4195  e) ac_compiler_gnu=no ;;
4196esac
4197fi
4198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4199ac_cv_c_compiler_gnu=$ac_compiler_gnu
4200 ;;
4201esac
4202fi
4203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4204printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206
4207if test $ac_compiler_gnu = yes; then
4208  GCC=yes
4209else
4210  GCC=
4211fi
4212ac_test_CFLAGS=${CFLAGS+y}
4213ac_save_CFLAGS=$CFLAGS
4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4215printf %s "checking whether $CC accepts -g... " >&6; }
4216if test ${ac_cv_prog_cc_g+y}
4217then :
4218  printf %s "(cached) " >&6
4219else case e in #(
4220  e) ac_save_c_werror_flag=$ac_c_werror_flag
4221   ac_c_werror_flag=yes
4222   ac_cv_prog_cc_g=no
4223   CFLAGS="-g"
4224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226
4227int
4228main (void)
4229{
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"
4236then :
4237  ac_cv_prog_cc_g=yes
4238else case e in #(
4239  e) CFLAGS=""
4240      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h.  */
4242
4243int
4244main (void)
4245{
4246
4247  ;
4248  return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_compile "$LINENO"
4252then :
4253
4254else case e in #(
4255  e) ac_c_werror_flag=$ac_save_c_werror_flag
4256	 CFLAGS="-g"
4257	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h.  */
4259
4260int
4261main (void)
4262{
4263
4264  ;
4265  return 0;
4266}
4267_ACEOF
4268if ac_fn_c_try_compile "$LINENO"
4269then :
4270  ac_cv_prog_cc_g=yes
4271fi
4272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4273esac
4274fi
4275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4276esac
4277fi
4278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4279   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4280esac
4281fi
4282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4283printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4284if test $ac_test_CFLAGS; then
4285  CFLAGS=$ac_save_CFLAGS
4286elif test $ac_cv_prog_cc_g = yes; then
4287  if test "$GCC" = yes; then
4288    CFLAGS="-g -O2"
4289  else
4290    CFLAGS="-g"
4291  fi
4292else
4293  if test "$GCC" = yes; then
4294    CFLAGS="-O2"
4295  else
4296    CFLAGS=
4297  fi
4298fi
4299ac_prog_cc_stdc=no
4300if test x$ac_prog_cc_stdc = xno
4301then :
4302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4303printf %s "checking for $CC option to enable C11 features... " >&6; }
4304if test ${ac_cv_prog_cc_c11+y}
4305then :
4306  printf %s "(cached) " >&6
4307else case e in #(
4308  e) ac_cv_prog_cc_c11=no
4309ac_save_CC=$CC
4310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311/* end confdefs.h.  */
4312$ac_c_conftest_c11_program
4313_ACEOF
4314for ac_arg in '' -std=gnu11
4315do
4316  CC="$ac_save_CC $ac_arg"
4317  if ac_fn_c_try_compile "$LINENO"
4318then :
4319  ac_cv_prog_cc_c11=$ac_arg
4320fi
4321rm -f core conftest.err conftest.$ac_objext conftest.beam
4322  test "x$ac_cv_prog_cc_c11" != "xno" && break
4323done
4324rm -f conftest.$ac_ext
4325CC=$ac_save_CC ;;
4326esac
4327fi
4328
4329if test "x$ac_cv_prog_cc_c11" = xno
4330then :
4331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4332printf "%s\n" "unsupported" >&6; }
4333else case e in #(
4334  e) if test "x$ac_cv_prog_cc_c11" = x
4335then :
4336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4337printf "%s\n" "none needed" >&6; }
4338else case e in #(
4339  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4340printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4341     CC="$CC $ac_cv_prog_cc_c11" ;;
4342esac
4343fi
4344  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4345  ac_prog_cc_stdc=c11 ;;
4346esac
4347fi
4348fi
4349if test x$ac_prog_cc_stdc = xno
4350then :
4351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4352printf %s "checking for $CC option to enable C99 features... " >&6; }
4353if test ${ac_cv_prog_cc_c99+y}
4354then :
4355  printf %s "(cached) " >&6
4356else case e in #(
4357  e) ac_cv_prog_cc_c99=no
4358ac_save_CC=$CC
4359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360/* end confdefs.h.  */
4361$ac_c_conftest_c99_program
4362_ACEOF
4363for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4364do
4365  CC="$ac_save_CC $ac_arg"
4366  if ac_fn_c_try_compile "$LINENO"
4367then :
4368  ac_cv_prog_cc_c99=$ac_arg
4369fi
4370rm -f core conftest.err conftest.$ac_objext conftest.beam
4371  test "x$ac_cv_prog_cc_c99" != "xno" && break
4372done
4373rm -f conftest.$ac_ext
4374CC=$ac_save_CC ;;
4375esac
4376fi
4377
4378if test "x$ac_cv_prog_cc_c99" = xno
4379then :
4380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4381printf "%s\n" "unsupported" >&6; }
4382else case e in #(
4383  e) if test "x$ac_cv_prog_cc_c99" = x
4384then :
4385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4386printf "%s\n" "none needed" >&6; }
4387else case e in #(
4388  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4389printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4390     CC="$CC $ac_cv_prog_cc_c99" ;;
4391esac
4392fi
4393  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4394  ac_prog_cc_stdc=c99 ;;
4395esac
4396fi
4397fi
4398if test x$ac_prog_cc_stdc = xno
4399then :
4400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4401printf %s "checking for $CC option to enable C89 features... " >&6; }
4402if test ${ac_cv_prog_cc_c89+y}
4403then :
4404  printf %s "(cached) " >&6
4405else case e in #(
4406  e) ac_cv_prog_cc_c89=no
4407ac_save_CC=$CC
4408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h.  */
4410$ac_c_conftest_c89_program
4411_ACEOF
4412for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4413do
4414  CC="$ac_save_CC $ac_arg"
4415  if ac_fn_c_try_compile "$LINENO"
4416then :
4417  ac_cv_prog_cc_c89=$ac_arg
4418fi
4419rm -f core conftest.err conftest.$ac_objext conftest.beam
4420  test "x$ac_cv_prog_cc_c89" != "xno" && break
4421done
4422rm -f conftest.$ac_ext
4423CC=$ac_save_CC ;;
4424esac
4425fi
4426
4427if test "x$ac_cv_prog_cc_c89" = xno
4428then :
4429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4430printf "%s\n" "unsupported" >&6; }
4431else case e in #(
4432  e) if test "x$ac_cv_prog_cc_c89" = x
4433then :
4434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4435printf "%s\n" "none needed" >&6; }
4436else case e in #(
4437  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4438printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4439     CC="$CC $ac_cv_prog_cc_c89" ;;
4440esac
4441fi
4442  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4443  ac_prog_cc_stdc=c89 ;;
4444esac
4445fi
4446fi
4447
4448ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
4454
4455  ac_ext=c
4456ac_cpp='$CPP $CPPFLAGS'
4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4461printf %s "checking whether $CC understands -c and -o together... " >&6; }
4462if test ${am_cv_prog_cc_c_o+y}
4463then :
4464  printf %s "(cached) " >&6
4465else case e in #(
4466  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h.  */
4468
4469int
4470main (void)
4471{
4472
4473  ;
4474  return 0;
4475}
4476_ACEOF
4477  # Make sure it works both with $CC and with simple cc.
4478  # Following AC_PROG_CC_C_O, we do the test twice because some
4479  # compilers refuse to overwrite an existing .o file with -o,
4480  # though they will create one.
4481  am_cv_prog_cc_c_o=yes
4482  for am_i in 1 2; do
4483    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4484   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } \
4488         && test -f conftest2.$ac_objext; then
4489      : OK
4490    else
4491      am_cv_prog_cc_c_o=no
4492      break
4493    fi
4494  done
4495  rm -f core conftest*
4496  unset am_i ;;
4497esac
4498fi
4499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4500printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4501if test "$am_cv_prog_cc_c_o" != yes; then
4502   # Losing compiler, so override with the script.
4503   # FIXME: It is wrong to rewrite CC.
4504   # But if we don't then we get into trouble of one sort or another.
4505   # A longer-term fix would be to have automake use am__CC in this case,
4506   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4507   CC="$am_aux_dir/compile $CC"
4508fi
4509ac_ext=c
4510ac_cpp='$CPP $CPPFLAGS'
4511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514
4515
4516depcc="$CC"   am_compiler_list=
4517
4518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4519printf %s "checking dependency style of $depcc... " >&6; }
4520if test ${am_cv_CC_dependencies_compiler_type+y}
4521then :
4522  printf %s "(cached) " >&6
4523else case e in #(
4524  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4525  # We make a subdir and do the tests there.  Otherwise we can end up
4526  # making bogus files that we don't know about and never remove.  For
4527  # instance it was reported that on HP-UX the gcc test will end up
4528  # making a dummy file named 'D' -- because '-MD' means "put the output
4529  # in D".
4530  rm -rf conftest.dir
4531  mkdir conftest.dir
4532  # Copy depcomp to subdir because otherwise we won't find it if we're
4533  # using a relative directory.
4534  cp "$am_depcomp" conftest.dir
4535  cd conftest.dir
4536  # We will build objects and dependencies in a subdirectory because
4537  # it helps to detect inapplicable dependency modes.  For instance
4538  # both Tru64's cc and ICC support -MD to output dependencies as a
4539  # side effect of compilation, but ICC will put the dependencies in
4540  # the current directory while Tru64 will put them in the object
4541  # directory.
4542  mkdir sub
4543
4544  am_cv_CC_dependencies_compiler_type=none
4545  if test "$am_compiler_list" = ""; then
4546     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4547  fi
4548  am__universal=false
4549  case " $depcc " in #(
4550     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4551     esac
4552
4553  for depmode in $am_compiler_list; do
4554    # Setup a source with many dependencies, because some compilers
4555    # like to wrap large dependency lists on column 80 (with \), and
4556    # we should not choose a depcomp mode which is confused by this.
4557    #
4558    # We need to recreate these files for each test, as the compiler may
4559    # overwrite some of them when testing with obscure command lines.
4560    # This happens at least with the AIX C compiler.
4561    : > sub/conftest.c
4562    for i in 1 2 3 4 5 6; do
4563      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4564      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4565      # Solaris 10 /bin/sh.
4566      echo '/* dummy */' > sub/conftst$i.h
4567    done
4568    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4569
4570    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4571    # mode.  It turns out that the SunPro C++ compiler does not properly
4572    # handle '-M -o', and we need to detect this.  Also, some Intel
4573    # versions had trouble with output in subdirs.
4574    am__obj=sub/conftest.${OBJEXT-o}
4575    am__minus_obj="-o $am__obj"
4576    case $depmode in
4577    gcc)
4578      # This depmode causes a compiler race in universal mode.
4579      test "$am__universal" = false || continue
4580      ;;
4581    nosideeffect)
4582      # After this tag, mechanisms are not by side-effect, so they'll
4583      # only be used when explicitly requested.
4584      if test "x$enable_dependency_tracking" = xyes; then
4585	continue
4586      else
4587	break
4588      fi
4589      ;;
4590    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4591      # This compiler won't grok '-c -o', but also, the minuso test has
4592      # not run yet.  These depmodes are late enough in the game, and
4593      # so weak that their functioning should not be impacted.
4594      am__obj=conftest.${OBJEXT-o}
4595      am__minus_obj=
4596      ;;
4597    none) break ;;
4598    esac
4599    if depmode=$depmode \
4600       source=sub/conftest.c object=$am__obj \
4601       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4602       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4603         >/dev/null 2>conftest.err &&
4604       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4605       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4606       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4607       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4608      # icc doesn't choke on unknown options, it will just issue warnings
4609      # or remarks (even with -Werror).  So we grep stderr for any message
4610      # that says an option was ignored or not supported.
4611      # When given -MP, icc 7.0 and 7.1 complain thusly:
4612      #   icc: Command line warning: ignoring option '-M'; no argument required
4613      # The diagnosis changed in icc 8.0:
4614      #   icc: Command line remark: option '-MP' not supported
4615      if (grep 'ignoring option' conftest.err ||
4616          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4617        am_cv_CC_dependencies_compiler_type=$depmode
4618        break
4619      fi
4620    fi
4621  done
4622
4623  cd ..
4624  rm -rf conftest.dir
4625else
4626  am_cv_CC_dependencies_compiler_type=none
4627fi
4628 ;;
4629esac
4630fi
4631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4632printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4633CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4634
4635 if
4636  test "x$enable_dependency_tracking" != xno \
4637  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4638  am__fastdepCC_TRUE=
4639  am__fastdepCC_FALSE='#'
4640else
4641  am__fastdepCC_TRUE='#'
4642  am__fastdepCC_FALSE=
4643fi
4644
4645
4646
4647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4648printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4649if test ${ac_cv_c_undeclared_builtin_options+y}
4650then :
4651  printf %s "(cached) " >&6
4652else case e in #(
4653  e) ac_save_CFLAGS=$CFLAGS
4654   ac_cv_c_undeclared_builtin_options='cannot detect'
4655   for ac_arg in '' -fno-builtin; do
4656     CFLAGS="$ac_save_CFLAGS $ac_arg"
4657     # This test program should *not* compile successfully.
4658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h.  */
4660
4661int
4662main (void)
4663{
4664(void) strchr;
4665  ;
4666  return 0;
4667}
4668_ACEOF
4669if ac_fn_c_try_compile "$LINENO"
4670then :
4671
4672else case e in #(
4673  e) # This test program should compile successfully.
4674        # No library function is consistently available on
4675        # freestanding implementations, so test against a dummy
4676        # declaration.  Include always-available headers on the
4677        # off chance that they somehow elicit warnings.
4678        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h.  */
4680#include <float.h>
4681#include <limits.h>
4682#include <stdarg.h>
4683#include <stddef.h>
4684extern void ac_decl (int, char *);
4685
4686int
4687main (void)
4688{
4689(void) ac_decl (0, (char *) 0);
4690  (void) ac_decl;
4691
4692  ;
4693  return 0;
4694}
4695_ACEOF
4696if ac_fn_c_try_compile "$LINENO"
4697then :
4698  if test x"$ac_arg" = x
4699then :
4700  ac_cv_c_undeclared_builtin_options='none needed'
4701else case e in #(
4702  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4703esac
4704fi
4705          break
4706fi
4707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4708esac
4709fi
4710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4711    done
4712    CFLAGS=$ac_save_CFLAGS
4713   ;;
4714esac
4715fi
4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4717printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4718  case $ac_cv_c_undeclared_builtin_options in #(
4719  'cannot detect') :
4720    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4721printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4722as_fn_error $? "cannot make $CC report undeclared builtins
4723See 'config.log' for more details" "$LINENO" 5; } ;; #(
4724  'none needed') :
4725    ac_c_undeclared_builtin_options='' ;; #(
4726  *) :
4727    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4728esac
4729
4730ac_header= ac_cache=
4731for ac_item in $ac_header_c_list
4732do
4733  if test $ac_cache; then
4734    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4735    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4736      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4737    fi
4738    ac_header= ac_cache=
4739  elif test $ac_header; then
4740    ac_cache=$ac_item
4741  else
4742    ac_header=$ac_item
4743  fi
4744done
4745
4746
4747
4748
4749
4750
4751
4752
4753if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4754then :
4755
4756printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4757
4758fi
4759
4760
4761
4762
4763ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4764if test "x$ac_cv_have_decl___clang__" = xyes
4765then :
4766  CLANGCC="yes"
4767else case e in #(
4768  e) CLANGCC="no" ;;
4769esac
4770fi
4771ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4772if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4773then :
4774  INTELCC="yes"
4775else case e in #(
4776  e) INTELCC="no" ;;
4777esac
4778fi
4779ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4780if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4781then :
4782  SUNCC="yes"
4783else case e in #(
4784  e) SUNCC="no" ;;
4785esac
4786fi
4787
4788
4789
4790
4791
4792
4793
4794
4795if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4796	if test -n "$ac_tool_prefix"; then
4797  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4798set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800printf %s "checking for $ac_word... " >&6; }
4801if test ${ac_cv_path_PKG_CONFIG+y}
4802then :
4803  printf %s "(cached) " >&6
4804else case e in #(
4805  e) case $PKG_CONFIG in
4806  [\\/]* | ?:[\\/]*)
4807  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4808  ;;
4809  *)
4810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813  IFS=$as_save_IFS
4814  case $as_dir in #(((
4815    '') as_dir=./ ;;
4816    */) ;;
4817    *) as_dir=$as_dir/ ;;
4818  esac
4819    for ac_exec_ext in '' $ac_executable_extensions; do
4820  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4821    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4823    break 2
4824  fi
4825done
4826  done
4827IFS=$as_save_IFS
4828
4829  ;;
4830esac ;;
4831esac
4832fi
4833PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4834if test -n "$PKG_CONFIG"; then
4835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4836printf "%s\n" "$PKG_CONFIG" >&6; }
4837else
4838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839printf "%s\n" "no" >&6; }
4840fi
4841
4842
4843fi
4844if test -z "$ac_cv_path_PKG_CONFIG"; then
4845  ac_pt_PKG_CONFIG=$PKG_CONFIG
4846  # Extract the first word of "pkg-config", so it can be a program name with args.
4847set dummy pkg-config; ac_word=$2
4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849printf %s "checking for $ac_word... " >&6; }
4850if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4851then :
4852  printf %s "(cached) " >&6
4853else case e in #(
4854  e) case $ac_pt_PKG_CONFIG in
4855  [\\/]* | ?:[\\/]*)
4856  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4857  ;;
4858  *)
4859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862  IFS=$as_save_IFS
4863  case $as_dir in #(((
4864    '') as_dir=./ ;;
4865    */) ;;
4866    *) as_dir=$as_dir/ ;;
4867  esac
4868    for ac_exec_ext in '' $ac_executable_extensions; do
4869  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4870    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4871    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4872    break 2
4873  fi
4874done
4875  done
4876IFS=$as_save_IFS
4877
4878  ;;
4879esac ;;
4880esac
4881fi
4882ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4883if test -n "$ac_pt_PKG_CONFIG"; then
4884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4885printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4886else
4887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888printf "%s\n" "no" >&6; }
4889fi
4890
4891  if test "x$ac_pt_PKG_CONFIG" = x; then
4892    PKG_CONFIG=""
4893  else
4894    case $cross_compiling:$ac_tool_warned in
4895yes:)
4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898ac_tool_warned=yes ;;
4899esac
4900    PKG_CONFIG=$ac_pt_PKG_CONFIG
4901  fi
4902else
4903  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4904fi
4905
4906fi
4907if test -n "$PKG_CONFIG"; then
4908	_pkg_min_version=0.9.0
4909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4910printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4911	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4913printf "%s\n" "yes" >&6; }
4914	else
4915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916printf "%s\n" "no" >&6; }
4917		PKG_CONFIG=""
4918	fi
4919fi
4920if test -z "$PKG_CONFIG"; then
4921	as_fn_error $? "pkg-config not found" "$LINENO" 5
4922fi
4923
4924
4925  # Make sure we can run config.sub.
4926$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4927  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4928
4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4930printf %s "checking build system type... " >&6; }
4931if test ${ac_cv_build+y}
4932then :
4933  printf %s "(cached) " >&6
4934else case e in #(
4935  e) ac_build_alias=$build_alias
4936test "x$ac_build_alias" = x &&
4937  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4938test "x$ac_build_alias" = x &&
4939  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4940ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4941  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4942 ;;
4943esac
4944fi
4945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4946printf "%s\n" "$ac_cv_build" >&6; }
4947case $ac_cv_build in
4948*-*-*) ;;
4949*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4950esac
4951build=$ac_cv_build
4952ac_save_IFS=$IFS; IFS='-'
4953set x $ac_cv_build
4954shift
4955build_cpu=$1
4956build_vendor=$2
4957shift; shift
4958# Remember, the first character of IFS is used to create $*,
4959# except with old shells:
4960build_os=$*
4961IFS=$ac_save_IFS
4962case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4963
4964
4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4966printf %s "checking host system type... " >&6; }
4967if test ${ac_cv_host+y}
4968then :
4969  printf %s "(cached) " >&6
4970else case e in #(
4971  e) if test "x$host_alias" = x; then
4972  ac_cv_host=$ac_cv_build
4973else
4974  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4975    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4976fi
4977 ;;
4978esac
4979fi
4980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4981printf "%s\n" "$ac_cv_host" >&6; }
4982case $ac_cv_host in
4983*-*-*) ;;
4984*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4985esac
4986host=$ac_cv_host
4987ac_save_IFS=$IFS; IFS='-'
4988set x $ac_cv_host
4989shift
4990host_cpu=$1
4991host_vendor=$2
4992shift; shift
4993# Remember, the first character of IFS is used to create $*,
4994# except with old shells:
4995host_os=$*
4996IFS=$ac_save_IFS
4997case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4998
4999
5000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5001printf %s "checking for a sed that does not truncate output... " >&6; }
5002if test ${ac_cv_path_SED+y}
5003then :
5004  printf %s "(cached) " >&6
5005else case e in #(
5006  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5007     for ac_i in 1 2 3 4 5 6 7; do
5008       ac_script="$ac_script$as_nl$ac_script"
5009     done
5010     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5011     { ac_script=; unset ac_script;}
5012     if test -z "$SED"; then
5013  ac_path_SED_found=false
5014  # Loop through the user's path and test for each of PROGNAME-LIST
5015  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016for as_dir in $PATH
5017do
5018  IFS=$as_save_IFS
5019  case $as_dir in #(((
5020    '') as_dir=./ ;;
5021    */) ;;
5022    *) as_dir=$as_dir/ ;;
5023  esac
5024    for ac_prog in sed gsed
5025   do
5026    for ac_exec_ext in '' $ac_executable_extensions; do
5027      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5028      as_fn_executable_p "$ac_path_SED" || continue
5029# Check for GNU ac_path_SED and select it if it is found.
5030  # Check for GNU $ac_path_SED
5031case `"$ac_path_SED" --version 2>&1` in #(
5032*GNU*)
5033  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5034#(
5035*)
5036  ac_count=0
5037  printf %s 0123456789 >"conftest.in"
5038  while :
5039  do
5040    cat "conftest.in" "conftest.in" >"conftest.tmp"
5041    mv "conftest.tmp" "conftest.in"
5042    cp "conftest.in" "conftest.nl"
5043    printf "%s\n" '' >> "conftest.nl"
5044    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5045    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5046    as_fn_arith $ac_count + 1 && ac_count=$as_val
5047    if test $ac_count -gt ${ac_path_SED_max-0}; then
5048      # Best one so far, save it but keep looking for a better one
5049      ac_cv_path_SED="$ac_path_SED"
5050      ac_path_SED_max=$ac_count
5051    fi
5052    # 10*(2^10) chars as input seems more than enough
5053    test $ac_count -gt 10 && break
5054  done
5055  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5056esac
5057
5058      $ac_path_SED_found && break 3
5059    done
5060  done
5061  done
5062IFS=$as_save_IFS
5063  if test -z "$ac_cv_path_SED"; then
5064    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5065  fi
5066else
5067  ac_cv_path_SED=$SED
5068fi
5069 ;;
5070esac
5071fi
5072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5073printf "%s\n" "$ac_cv_path_SED" >&6; }
5074 SED="$ac_cv_path_SED"
5075  rm -f conftest.sed
5076
5077
5078
5079
5080
5081
5082# Check whether --enable-selective-werror was given.
5083if test ${enable_selective_werror+y}
5084then :
5085  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5086else case e in #(
5087  e) SELECTIVE_WERROR=yes ;;
5088esac
5089fi
5090
5091
5092
5093
5094
5095# -v is too short to test reliably with XORG_TESTSET_CFLAG
5096if test "x$SUNCC" = "xyes"; then
5097    BASE_CFLAGS="-v"
5098else
5099    BASE_CFLAGS=""
5100fi
5101
5102# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116xorg_testset_save_CFLAGS="$CFLAGS"
5117
5118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5121printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5122if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5123then :
5124  printf %s "(cached) " >&6
5125else case e in #(
5126  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h.  */
5128int i;
5129_ACEOF
5130if ac_fn_c_try_compile "$LINENO"
5131then :
5132  xorg_cv_cc_flag_unknown_warning_option=yes
5133else case e in #(
5134  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5135esac
5136fi
5137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5138esac
5139fi
5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5143	CFLAGS="$xorg_testset_save_CFLAGS"
5144fi
5145
5146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149	fi
5150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5153if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5154then :
5155  printf %s "(cached) " >&6
5156else case e in #(
5157  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160_ACEOF
5161if ac_fn_c_try_compile "$LINENO"
5162then :
5163  xorg_cv_cc_flag_unused_command_line_argument=yes
5164else case e in #(
5165  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5166esac
5167fi
5168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5169esac
5170fi
5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5174	CFLAGS="$xorg_testset_save_CFLAGS"
5175fi
5176
5177found="no"
5178
5179	if test $found = "no" ; then
5180		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182		fi
5183
5184		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186		fi
5187
5188		CFLAGS="$CFLAGS -Wall"
5189
5190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5191printf %s "checking if $CC supports -Wall... " >&6; }
5192		cacheid=xorg_cv_cc_flag__Wall
5193		if eval test \${$cacheid+y}
5194then :
5195  printf %s "(cached) " >&6
5196else case e in #(
5197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198/* end confdefs.h.  */
5199int i;
5200int
5201main (void)
5202{
5203
5204  ;
5205  return 0;
5206}
5207_ACEOF
5208if ac_fn_c_try_link "$LINENO"
5209then :
5210  eval $cacheid=yes
5211else case e in #(
5212  e) eval $cacheid=no ;;
5213esac
5214fi
5215rm -f core conftest.err conftest.$ac_objext conftest.beam \
5216    conftest$ac_exeext conftest.$ac_ext ;;
5217esac
5218fi
5219
5220
5221		CFLAGS="$xorg_testset_save_CFLAGS"
5222
5223		eval supported=\$$cacheid
5224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5225printf "%s\n" "$supported" >&6; }
5226		if test "$supported" = "yes" ; then
5227			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5228			found="yes"
5229		fi
5230	fi
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246xorg_testset_save_CFLAGS="$CFLAGS"
5247
5248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5251printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5252if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5253then :
5254  printf %s "(cached) " >&6
5255else case e in #(
5256  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h.  */
5258int i;
5259_ACEOF
5260if ac_fn_c_try_compile "$LINENO"
5261then :
5262  xorg_cv_cc_flag_unknown_warning_option=yes
5263else case e in #(
5264  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5265esac
5266fi
5267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5268esac
5269fi
5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5271printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5273	CFLAGS="$xorg_testset_save_CFLAGS"
5274fi
5275
5276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279	fi
5280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5282printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5283if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5284then :
5285  printf %s "(cached) " >&6
5286else case e in #(
5287  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h.  */
5289int i;
5290_ACEOF
5291if ac_fn_c_try_compile "$LINENO"
5292then :
5293  xorg_cv_cc_flag_unused_command_line_argument=yes
5294else case e in #(
5295  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5296esac
5297fi
5298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5299esac
5300fi
5301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5304	CFLAGS="$xorg_testset_save_CFLAGS"
5305fi
5306
5307found="no"
5308
5309	if test $found = "no" ; then
5310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312		fi
5313
5314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316		fi
5317
5318		CFLAGS="$CFLAGS -Wpointer-arith"
5319
5320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5321printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5322		cacheid=xorg_cv_cc_flag__Wpointer_arith
5323		if eval test \${$cacheid+y}
5324then :
5325  printf %s "(cached) " >&6
5326else case e in #(
5327  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329int i;
5330int
5331main (void)
5332{
5333
5334  ;
5335  return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_link "$LINENO"
5339then :
5340  eval $cacheid=yes
5341else case e in #(
5342  e) eval $cacheid=no ;;
5343esac
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.beam \
5346    conftest$ac_exeext conftest.$ac_ext ;;
5347esac
5348fi
5349
5350
5351		CFLAGS="$xorg_testset_save_CFLAGS"
5352
5353		eval supported=\$$cacheid
5354		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5355printf "%s\n" "$supported" >&6; }
5356		if test "$supported" = "yes" ; then
5357			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5358			found="yes"
5359		fi
5360	fi
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376xorg_testset_save_CFLAGS="$CFLAGS"
5377
5378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5379	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5381printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5382if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5383then :
5384  printf %s "(cached) " >&6
5385else case e in #(
5386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388int i;
5389_ACEOF
5390if ac_fn_c_try_compile "$LINENO"
5391then :
5392  xorg_cv_cc_flag_unknown_warning_option=yes
5393else case e in #(
5394  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5395esac
5396fi
5397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5398esac
5399fi
5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5403	CFLAGS="$xorg_testset_save_CFLAGS"
5404fi
5405
5406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5409	fi
5410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5411	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5413if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5414then :
5415  printf %s "(cached) " >&6
5416else case e in #(
5417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h.  */
5419int i;
5420_ACEOF
5421if ac_fn_c_try_compile "$LINENO"
5422then :
5423  xorg_cv_cc_flag_unused_command_line_argument=yes
5424else case e in #(
5425  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5426esac
5427fi
5428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5429esac
5430fi
5431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5432printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5434	CFLAGS="$xorg_testset_save_CFLAGS"
5435fi
5436
5437found="no"
5438
5439	if test $found = "no" ; then
5440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5442		fi
5443
5444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5446		fi
5447
5448		CFLAGS="$CFLAGS -Wmissing-declarations"
5449
5450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5451printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5452		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5453		if eval test \${$cacheid+y}
5454then :
5455  printf %s "(cached) " >&6
5456else case e in #(
5457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459int i;
5460int
5461main (void)
5462{
5463
5464  ;
5465  return 0;
5466}
5467_ACEOF
5468if ac_fn_c_try_link "$LINENO"
5469then :
5470  eval $cacheid=yes
5471else case e in #(
5472  e) eval $cacheid=no ;;
5473esac
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.beam \
5476    conftest$ac_exeext conftest.$ac_ext ;;
5477esac
5478fi
5479
5480
5481		CFLAGS="$xorg_testset_save_CFLAGS"
5482
5483		eval supported=\$$cacheid
5484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5485printf "%s\n" "$supported" >&6; }
5486		if test "$supported" = "yes" ; then
5487			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5488			found="yes"
5489		fi
5490	fi
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506xorg_testset_save_CFLAGS="$CFLAGS"
5507
5508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5513then :
5514  printf %s "(cached) " >&6
5515else case e in #(
5516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h.  */
5518int i;
5519_ACEOF
5520if ac_fn_c_try_compile "$LINENO"
5521then :
5522  xorg_cv_cc_flag_unknown_warning_option=yes
5523else case e in #(
5524  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5525esac
5526fi
5527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5528esac
5529fi
5530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5532	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5533	CFLAGS="$xorg_testset_save_CFLAGS"
5534fi
5535
5536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5537	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5539	fi
5540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5543if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5544then :
5545  printf %s "(cached) " >&6
5546else case e in #(
5547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548/* end confdefs.h.  */
5549int i;
5550_ACEOF
5551if ac_fn_c_try_compile "$LINENO"
5552then :
5553  xorg_cv_cc_flag_unused_command_line_argument=yes
5554else case e in #(
5555  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5556esac
5557fi
5558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5559esac
5560fi
5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5564	CFLAGS="$xorg_testset_save_CFLAGS"
5565fi
5566
5567found="no"
5568
5569	if test $found = "no" ; then
5570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572		fi
5573
5574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576		fi
5577
5578		CFLAGS="$CFLAGS -Wformat=2"
5579
5580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5581printf %s "checking if $CC supports -Wformat=2... " >&6; }
5582		cacheid=xorg_cv_cc_flag__Wformat_2
5583		if eval test \${$cacheid+y}
5584then :
5585  printf %s "(cached) " >&6
5586else case e in #(
5587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588/* end confdefs.h.  */
5589int i;
5590int
5591main (void)
5592{
5593
5594  ;
5595  return 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_link "$LINENO"
5599then :
5600  eval $cacheid=yes
5601else case e in #(
5602  e) eval $cacheid=no ;;
5603esac
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.beam \
5606    conftest$ac_exeext conftest.$ac_ext ;;
5607esac
5608fi
5609
5610
5611		CFLAGS="$xorg_testset_save_CFLAGS"
5612
5613		eval supported=\$$cacheid
5614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5615printf "%s\n" "$supported" >&6; }
5616		if test "$supported" = "yes" ; then
5617			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5618			found="yes"
5619		fi
5620	fi
5621
5622	if test $found = "no" ; then
5623		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625		fi
5626
5627		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5629		fi
5630
5631		CFLAGS="$CFLAGS -Wformat"
5632
5633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5634printf %s "checking if $CC supports -Wformat... " >&6; }
5635		cacheid=xorg_cv_cc_flag__Wformat
5636		if eval test \${$cacheid+y}
5637then :
5638  printf %s "(cached) " >&6
5639else case e in #(
5640  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642int i;
5643int
5644main (void)
5645{
5646
5647  ;
5648  return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_link "$LINENO"
5652then :
5653  eval $cacheid=yes
5654else case e in #(
5655  e) eval $cacheid=no ;;
5656esac
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.beam \
5659    conftest$ac_exeext conftest.$ac_ext ;;
5660esac
5661fi
5662
5663
5664		CFLAGS="$xorg_testset_save_CFLAGS"
5665
5666		eval supported=\$$cacheid
5667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5668printf "%s\n" "$supported" >&6; }
5669		if test "$supported" = "yes" ; then
5670			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5671			found="yes"
5672		fi
5673	fi
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691xorg_testset_save_CFLAGS="$CFLAGS"
5692
5693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5698then :
5699  printf %s "(cached) " >&6
5700else case e in #(
5701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702/* end confdefs.h.  */
5703int i;
5704_ACEOF
5705if ac_fn_c_try_compile "$LINENO"
5706then :
5707  xorg_cv_cc_flag_unknown_warning_option=yes
5708else case e in #(
5709  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5710esac
5711fi
5712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5713esac
5714fi
5715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5718	CFLAGS="$xorg_testset_save_CFLAGS"
5719fi
5720
5721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5724	fi
5725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5726	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5728if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5729then :
5730  printf %s "(cached) " >&6
5731else case e in #(
5732  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733/* end confdefs.h.  */
5734int i;
5735_ACEOF
5736if ac_fn_c_try_compile "$LINENO"
5737then :
5738  xorg_cv_cc_flag_unused_command_line_argument=yes
5739else case e in #(
5740  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5741esac
5742fi
5743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5744esac
5745fi
5746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5749	CFLAGS="$xorg_testset_save_CFLAGS"
5750fi
5751
5752found="no"
5753
5754	if test $found = "no" ; then
5755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5757		fi
5758
5759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5761		fi
5762
5763		CFLAGS="$CFLAGS -Wstrict-prototypes"
5764
5765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5766printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5767		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5768		if eval test \${$cacheid+y}
5769then :
5770  printf %s "(cached) " >&6
5771else case e in #(
5772  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774int i;
5775int
5776main (void)
5777{
5778
5779  ;
5780  return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_link "$LINENO"
5784then :
5785  eval $cacheid=yes
5786else case e in #(
5787  e) eval $cacheid=no ;;
5788esac
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.beam \
5791    conftest$ac_exeext conftest.$ac_ext ;;
5792esac
5793fi
5794
5795
5796		CFLAGS="$xorg_testset_save_CFLAGS"
5797
5798		eval supported=\$$cacheid
5799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5800printf "%s\n" "$supported" >&6; }
5801		if test "$supported" = "yes" ; then
5802			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5803			found="yes"
5804		fi
5805	fi
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821xorg_testset_save_CFLAGS="$CFLAGS"
5822
5823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5828then :
5829  printf %s "(cached) " >&6
5830else case e in #(
5831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832/* end confdefs.h.  */
5833int i;
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"
5836then :
5837  xorg_cv_cc_flag_unknown_warning_option=yes
5838else case e in #(
5839  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5840esac
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5843esac
5844fi
5845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5848	CFLAGS="$xorg_testset_save_CFLAGS"
5849fi
5850
5851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854	fi
5855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5859then :
5860  printf %s "(cached) " >&6
5861else case e in #(
5862  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h.  */
5864int i;
5865_ACEOF
5866if ac_fn_c_try_compile "$LINENO"
5867then :
5868  xorg_cv_cc_flag_unused_command_line_argument=yes
5869else case e in #(
5870  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5871esac
5872fi
5873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5874esac
5875fi
5876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5879	CFLAGS="$xorg_testset_save_CFLAGS"
5880fi
5881
5882found="no"
5883
5884	if test $found = "no" ; then
5885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887		fi
5888
5889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5891		fi
5892
5893		CFLAGS="$CFLAGS -Wmissing-prototypes"
5894
5895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5896printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5897		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5898		if eval test \${$cacheid+y}
5899then :
5900  printf %s "(cached) " >&6
5901else case e in #(
5902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903/* end confdefs.h.  */
5904int i;
5905int
5906main (void)
5907{
5908
5909  ;
5910  return 0;
5911}
5912_ACEOF
5913if ac_fn_c_try_link "$LINENO"
5914then :
5915  eval $cacheid=yes
5916else case e in #(
5917  e) eval $cacheid=no ;;
5918esac
5919fi
5920rm -f core conftest.err conftest.$ac_objext conftest.beam \
5921    conftest$ac_exeext conftest.$ac_ext ;;
5922esac
5923fi
5924
5925
5926		CFLAGS="$xorg_testset_save_CFLAGS"
5927
5928		eval supported=\$$cacheid
5929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5930printf "%s\n" "$supported" >&6; }
5931		if test "$supported" = "yes" ; then
5932			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5933			found="yes"
5934		fi
5935	fi
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951xorg_testset_save_CFLAGS="$CFLAGS"
5952
5953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5957if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5958then :
5959  printf %s "(cached) " >&6
5960else case e in #(
5961  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h.  */
5963int i;
5964_ACEOF
5965if ac_fn_c_try_compile "$LINENO"
5966then :
5967  xorg_cv_cc_flag_unknown_warning_option=yes
5968else case e in #(
5969  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5970esac
5971fi
5972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5973esac
5974fi
5975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5978	CFLAGS="$xorg_testset_save_CFLAGS"
5979fi
5980
5981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984	fi
5985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5988if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5989then :
5990  printf %s "(cached) " >&6
5991else case e in #(
5992  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"
5997then :
5998  xorg_cv_cc_flag_unused_command_line_argument=yes
5999else case e in #(
6000  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6001esac
6002fi
6003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6004esac
6005fi
6006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6009	CFLAGS="$xorg_testset_save_CFLAGS"
6010fi
6011
6012found="no"
6013
6014	if test $found = "no" ; then
6015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017		fi
6018
6019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6021		fi
6022
6023		CFLAGS="$CFLAGS -Wnested-externs"
6024
6025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6026printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6027		cacheid=xorg_cv_cc_flag__Wnested_externs
6028		if eval test \${$cacheid+y}
6029then :
6030  printf %s "(cached) " >&6
6031else case e in #(
6032  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033/* end confdefs.h.  */
6034int i;
6035int
6036main (void)
6037{
6038
6039  ;
6040  return 0;
6041}
6042_ACEOF
6043if ac_fn_c_try_link "$LINENO"
6044then :
6045  eval $cacheid=yes
6046else case e in #(
6047  e) eval $cacheid=no ;;
6048esac
6049fi
6050rm -f core conftest.err conftest.$ac_objext conftest.beam \
6051    conftest$ac_exeext conftest.$ac_ext ;;
6052esac
6053fi
6054
6055
6056		CFLAGS="$xorg_testset_save_CFLAGS"
6057
6058		eval supported=\$$cacheid
6059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6060printf "%s\n" "$supported" >&6; }
6061		if test "$supported" = "yes" ; then
6062			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6063			found="yes"
6064		fi
6065	fi
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081xorg_testset_save_CFLAGS="$CFLAGS"
6082
6083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6087if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6088then :
6089  printf %s "(cached) " >&6
6090else case e in #(
6091  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h.  */
6093int i;
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"
6096then :
6097  xorg_cv_cc_flag_unknown_warning_option=yes
6098else case e in #(
6099  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6100esac
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6103esac
6104fi
6105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6108	CFLAGS="$xorg_testset_save_CFLAGS"
6109fi
6110
6111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114	fi
6115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6118if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6119then :
6120  printf %s "(cached) " >&6
6121else case e in #(
6122  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h.  */
6124int i;
6125_ACEOF
6126if ac_fn_c_try_compile "$LINENO"
6127then :
6128  xorg_cv_cc_flag_unused_command_line_argument=yes
6129else case e in #(
6130  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6131esac
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6134esac
6135fi
6136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6139	CFLAGS="$xorg_testset_save_CFLAGS"
6140fi
6141
6142found="no"
6143
6144	if test $found = "no" ; then
6145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6147		fi
6148
6149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6151		fi
6152
6153		CFLAGS="$CFLAGS -Wbad-function-cast"
6154
6155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6156printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6157		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6158		if eval test \${$cacheid+y}
6159then :
6160  printf %s "(cached) " >&6
6161else case e in #(
6162  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h.  */
6164int i;
6165int
6166main (void)
6167{
6168
6169  ;
6170  return 0;
6171}
6172_ACEOF
6173if ac_fn_c_try_link "$LINENO"
6174then :
6175  eval $cacheid=yes
6176else case e in #(
6177  e) eval $cacheid=no ;;
6178esac
6179fi
6180rm -f core conftest.err conftest.$ac_objext conftest.beam \
6181    conftest$ac_exeext conftest.$ac_ext ;;
6182esac
6183fi
6184
6185
6186		CFLAGS="$xorg_testset_save_CFLAGS"
6187
6188		eval supported=\$$cacheid
6189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6190printf "%s\n" "$supported" >&6; }
6191		if test "$supported" = "yes" ; then
6192			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6193			found="yes"
6194		fi
6195	fi
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211xorg_testset_save_CFLAGS="$CFLAGS"
6212
6213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6218then :
6219  printf %s "(cached) " >&6
6220else case e in #(
6221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h.  */
6223int i;
6224_ACEOF
6225if ac_fn_c_try_compile "$LINENO"
6226then :
6227  xorg_cv_cc_flag_unknown_warning_option=yes
6228else case e in #(
6229  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6230esac
6231fi
6232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6233esac
6234fi
6235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6238	CFLAGS="$xorg_testset_save_CFLAGS"
6239fi
6240
6241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6244	fi
6245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6248if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6249then :
6250  printf %s "(cached) " >&6
6251else case e in #(
6252  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254int i;
6255_ACEOF
6256if ac_fn_c_try_compile "$LINENO"
6257then :
6258  xorg_cv_cc_flag_unused_command_line_argument=yes
6259else case e in #(
6260  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6261esac
6262fi
6263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6264esac
6265fi
6266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6269	CFLAGS="$xorg_testset_save_CFLAGS"
6270fi
6271
6272found="no"
6273
6274	if test $found = "no" ; then
6275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6277		fi
6278
6279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6281		fi
6282
6283		CFLAGS="$CFLAGS -Wold-style-definition"
6284
6285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6286printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6287		cacheid=xorg_cv_cc_flag__Wold_style_definition
6288		if eval test \${$cacheid+y}
6289then :
6290  printf %s "(cached) " >&6
6291else case e in #(
6292  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293/* end confdefs.h.  */
6294int i;
6295int
6296main (void)
6297{
6298
6299  ;
6300  return 0;
6301}
6302_ACEOF
6303if ac_fn_c_try_link "$LINENO"
6304then :
6305  eval $cacheid=yes
6306else case e in #(
6307  e) eval $cacheid=no ;;
6308esac
6309fi
6310rm -f core conftest.err conftest.$ac_objext conftest.beam \
6311    conftest$ac_exeext conftest.$ac_ext ;;
6312esac
6313fi
6314
6315
6316		CFLAGS="$xorg_testset_save_CFLAGS"
6317
6318		eval supported=\$$cacheid
6319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6320printf "%s\n" "$supported" >&6; }
6321		if test "$supported" = "yes" ; then
6322			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6323			found="yes"
6324		fi
6325	fi
6326
6327	if test $found = "no" ; then
6328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330		fi
6331
6332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334		fi
6335
6336		CFLAGS="$CFLAGS -fd"
6337
6338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6339printf %s "checking if $CC supports -fd... " >&6; }
6340		cacheid=xorg_cv_cc_flag__fd
6341		if eval test \${$cacheid+y}
6342then :
6343  printf %s "(cached) " >&6
6344else case e in #(
6345  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h.  */
6347int i;
6348int
6349main (void)
6350{
6351
6352  ;
6353  return 0;
6354}
6355_ACEOF
6356if ac_fn_c_try_link "$LINENO"
6357then :
6358  eval $cacheid=yes
6359else case e in #(
6360  e) eval $cacheid=no ;;
6361esac
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.beam \
6364    conftest$ac_exeext conftest.$ac_ext ;;
6365esac
6366fi
6367
6368
6369		CFLAGS="$xorg_testset_save_CFLAGS"
6370
6371		eval supported=\$$cacheid
6372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6373printf "%s\n" "$supported" >&6; }
6374		if test "$supported" = "yes" ; then
6375			BASE_CFLAGS="$BASE_CFLAGS -fd"
6376			found="yes"
6377		fi
6378	fi
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394xorg_testset_save_CFLAGS="$CFLAGS"
6395
6396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6401then :
6402  printf %s "(cached) " >&6
6403else case e in #(
6404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405/* end confdefs.h.  */
6406int i;
6407_ACEOF
6408if ac_fn_c_try_compile "$LINENO"
6409then :
6410  xorg_cv_cc_flag_unknown_warning_option=yes
6411else case e in #(
6412  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6413esac
6414fi
6415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6416esac
6417fi
6418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6421	CFLAGS="$xorg_testset_save_CFLAGS"
6422fi
6423
6424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427	fi
6428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6431if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6432then :
6433  printf %s "(cached) " >&6
6434else case e in #(
6435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h.  */
6437int i;
6438_ACEOF
6439if ac_fn_c_try_compile "$LINENO"
6440then :
6441  xorg_cv_cc_flag_unused_command_line_argument=yes
6442else case e in #(
6443  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6444esac
6445fi
6446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6447esac
6448fi
6449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6452	CFLAGS="$xorg_testset_save_CFLAGS"
6453fi
6454
6455found="no"
6456
6457	if test $found = "no" ; then
6458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460		fi
6461
6462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6464		fi
6465
6466		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6467
6468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6469printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6470		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6471		if eval test \${$cacheid+y}
6472then :
6473  printf %s "(cached) " >&6
6474else case e in #(
6475  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h.  */
6477int i;
6478int
6479main (void)
6480{
6481
6482  ;
6483  return 0;
6484}
6485_ACEOF
6486if ac_fn_c_try_link "$LINENO"
6487then :
6488  eval $cacheid=yes
6489else case e in #(
6490  e) eval $cacheid=no ;;
6491esac
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.beam \
6494    conftest$ac_exeext conftest.$ac_ext ;;
6495esac
6496fi
6497
6498
6499		CFLAGS="$xorg_testset_save_CFLAGS"
6500
6501		eval supported=\$$cacheid
6502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6503printf "%s\n" "$supported" >&6; }
6504		if test "$supported" = "yes" ; then
6505			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6506			found="yes"
6507		fi
6508	fi
6509
6510
6511
6512
6513
6514# This chunk adds additional warnings that could catch undesired effects.
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528xorg_testset_save_CFLAGS="$CFLAGS"
6529
6530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6533printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6534if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6535then :
6536  printf %s "(cached) " >&6
6537else case e in #(
6538  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540int i;
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"
6543then :
6544  xorg_cv_cc_flag_unknown_warning_option=yes
6545else case e in #(
6546  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6547esac
6548fi
6549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6550esac
6551fi
6552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6555	CFLAGS="$xorg_testset_save_CFLAGS"
6556fi
6557
6558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561	fi
6562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6565if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6566then :
6567  printf %s "(cached) " >&6
6568else case e in #(
6569  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h.  */
6571int i;
6572_ACEOF
6573if ac_fn_c_try_compile "$LINENO"
6574then :
6575  xorg_cv_cc_flag_unused_command_line_argument=yes
6576else case e in #(
6577  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6578esac
6579fi
6580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6581esac
6582fi
6583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589found="no"
6590
6591	if test $found = "no" ; then
6592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594		fi
6595
6596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598		fi
6599
6600		CFLAGS="$CFLAGS -Wunused"
6601
6602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6603printf %s "checking if $CC supports -Wunused... " >&6; }
6604		cacheid=xorg_cv_cc_flag__Wunused
6605		if eval test \${$cacheid+y}
6606then :
6607  printf %s "(cached) " >&6
6608else case e in #(
6609  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611int i;
6612int
6613main (void)
6614{
6615
6616  ;
6617  return 0;
6618}
6619_ACEOF
6620if ac_fn_c_try_link "$LINENO"
6621then :
6622  eval $cacheid=yes
6623else case e in #(
6624  e) eval $cacheid=no ;;
6625esac
6626fi
6627rm -f core conftest.err conftest.$ac_objext conftest.beam \
6628    conftest$ac_exeext conftest.$ac_ext ;;
6629esac
6630fi
6631
6632
6633		CFLAGS="$xorg_testset_save_CFLAGS"
6634
6635		eval supported=\$$cacheid
6636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6637printf "%s\n" "$supported" >&6; }
6638		if test "$supported" = "yes" ; then
6639			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6640			found="yes"
6641		fi
6642	fi
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658xorg_testset_save_CFLAGS="$CFLAGS"
6659
6660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6663printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6664if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6665then :
6666  printf %s "(cached) " >&6
6667else case e in #(
6668  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h.  */
6670int i;
6671_ACEOF
6672if ac_fn_c_try_compile "$LINENO"
6673then :
6674  xorg_cv_cc_flag_unknown_warning_option=yes
6675else case e in #(
6676  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6677esac
6678fi
6679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6680esac
6681fi
6682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6685	CFLAGS="$xorg_testset_save_CFLAGS"
6686fi
6687
6688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691	fi
6692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6695if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6696then :
6697  printf %s "(cached) " >&6
6698else case e in #(
6699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h.  */
6701int i;
6702_ACEOF
6703if ac_fn_c_try_compile "$LINENO"
6704then :
6705  xorg_cv_cc_flag_unused_command_line_argument=yes
6706else case e in #(
6707  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6708esac
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6711esac
6712fi
6713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6716	CFLAGS="$xorg_testset_save_CFLAGS"
6717fi
6718
6719found="no"
6720
6721	if test $found = "no" ; then
6722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724		fi
6725
6726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6728		fi
6729
6730		CFLAGS="$CFLAGS -Wuninitialized"
6731
6732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6733printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6734		cacheid=xorg_cv_cc_flag__Wuninitialized
6735		if eval test \${$cacheid+y}
6736then :
6737  printf %s "(cached) " >&6
6738else case e in #(
6739  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740/* end confdefs.h.  */
6741int i;
6742int
6743main (void)
6744{
6745
6746  ;
6747  return 0;
6748}
6749_ACEOF
6750if ac_fn_c_try_link "$LINENO"
6751then :
6752  eval $cacheid=yes
6753else case e in #(
6754  e) eval $cacheid=no ;;
6755esac
6756fi
6757rm -f core conftest.err conftest.$ac_objext conftest.beam \
6758    conftest$ac_exeext conftest.$ac_ext ;;
6759esac
6760fi
6761
6762
6763		CFLAGS="$xorg_testset_save_CFLAGS"
6764
6765		eval supported=\$$cacheid
6766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6767printf "%s\n" "$supported" >&6; }
6768		if test "$supported" = "yes" ; then
6769			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6770			found="yes"
6771		fi
6772	fi
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788xorg_testset_save_CFLAGS="$CFLAGS"
6789
6790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6794if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6795then :
6796  printf %s "(cached) " >&6
6797else case e in #(
6798  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h.  */
6800int i;
6801_ACEOF
6802if ac_fn_c_try_compile "$LINENO"
6803then :
6804  xorg_cv_cc_flag_unknown_warning_option=yes
6805else case e in #(
6806  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6807esac
6808fi
6809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6810esac
6811fi
6812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6815	CFLAGS="$xorg_testset_save_CFLAGS"
6816fi
6817
6818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6821	fi
6822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6823	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6825if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6826then :
6827  printf %s "(cached) " >&6
6828else case e in #(
6829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831int i;
6832_ACEOF
6833if ac_fn_c_try_compile "$LINENO"
6834then :
6835  xorg_cv_cc_flag_unused_command_line_argument=yes
6836else case e in #(
6837  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6838esac
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6841esac
6842fi
6843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6846	CFLAGS="$xorg_testset_save_CFLAGS"
6847fi
6848
6849found="no"
6850
6851	if test $found = "no" ; then
6852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6854		fi
6855
6856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6858		fi
6859
6860		CFLAGS="$CFLAGS -Wshadow"
6861
6862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6863printf %s "checking if $CC supports -Wshadow... " >&6; }
6864		cacheid=xorg_cv_cc_flag__Wshadow
6865		if eval test \${$cacheid+y}
6866then :
6867  printf %s "(cached) " >&6
6868else case e in #(
6869  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870/* end confdefs.h.  */
6871int i;
6872int
6873main (void)
6874{
6875
6876  ;
6877  return 0;
6878}
6879_ACEOF
6880if ac_fn_c_try_link "$LINENO"
6881then :
6882  eval $cacheid=yes
6883else case e in #(
6884  e) eval $cacheid=no ;;
6885esac
6886fi
6887rm -f core conftest.err conftest.$ac_objext conftest.beam \
6888    conftest$ac_exeext conftest.$ac_ext ;;
6889esac
6890fi
6891
6892
6893		CFLAGS="$xorg_testset_save_CFLAGS"
6894
6895		eval supported=\$$cacheid
6896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6897printf "%s\n" "$supported" >&6; }
6898		if test "$supported" = "yes" ; then
6899			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6900			found="yes"
6901		fi
6902	fi
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918xorg_testset_save_CFLAGS="$CFLAGS"
6919
6920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6924if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6925then :
6926  printf %s "(cached) " >&6
6927else case e in #(
6928  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929/* end confdefs.h.  */
6930int i;
6931_ACEOF
6932if ac_fn_c_try_compile "$LINENO"
6933then :
6934  xorg_cv_cc_flag_unknown_warning_option=yes
6935else case e in #(
6936  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6937esac
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6940esac
6941fi
6942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6945	CFLAGS="$xorg_testset_save_CFLAGS"
6946fi
6947
6948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951	fi
6952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6956then :
6957  printf %s "(cached) " >&6
6958else case e in #(
6959  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h.  */
6961int i;
6962_ACEOF
6963if ac_fn_c_try_compile "$LINENO"
6964then :
6965  xorg_cv_cc_flag_unused_command_line_argument=yes
6966else case e in #(
6967  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6968esac
6969fi
6970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6971esac
6972fi
6973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6976	CFLAGS="$xorg_testset_save_CFLAGS"
6977fi
6978
6979found="no"
6980
6981	if test $found = "no" ; then
6982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6984		fi
6985
6986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6988		fi
6989
6990		CFLAGS="$CFLAGS -Wmissing-noreturn"
6991
6992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6993printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6994		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6995		if eval test \${$cacheid+y}
6996then :
6997  printf %s "(cached) " >&6
6998else case e in #(
6999  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000/* end confdefs.h.  */
7001int i;
7002int
7003main (void)
7004{
7005
7006  ;
7007  return 0;
7008}
7009_ACEOF
7010if ac_fn_c_try_link "$LINENO"
7011then :
7012  eval $cacheid=yes
7013else case e in #(
7014  e) eval $cacheid=no ;;
7015esac
7016fi
7017rm -f core conftest.err conftest.$ac_objext conftest.beam \
7018    conftest$ac_exeext conftest.$ac_ext ;;
7019esac
7020fi
7021
7022
7023		CFLAGS="$xorg_testset_save_CFLAGS"
7024
7025		eval supported=\$$cacheid
7026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7027printf "%s\n" "$supported" >&6; }
7028		if test "$supported" = "yes" ; then
7029			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7030			found="yes"
7031		fi
7032	fi
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048xorg_testset_save_CFLAGS="$CFLAGS"
7049
7050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7054if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7055then :
7056  printf %s "(cached) " >&6
7057else case e in #(
7058  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060int i;
7061_ACEOF
7062if ac_fn_c_try_compile "$LINENO"
7063then :
7064  xorg_cv_cc_flag_unknown_warning_option=yes
7065else case e in #(
7066  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7067esac
7068fi
7069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7070esac
7071fi
7072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7073printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7075	CFLAGS="$xorg_testset_save_CFLAGS"
7076fi
7077
7078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7081	fi
7082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7084printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7085if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7086then :
7087  printf %s "(cached) " >&6
7088else case e in #(
7089  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090/* end confdefs.h.  */
7091int i;
7092_ACEOF
7093if ac_fn_c_try_compile "$LINENO"
7094then :
7095  xorg_cv_cc_flag_unused_command_line_argument=yes
7096else case e in #(
7097  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7098esac
7099fi
7100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7101esac
7102fi
7103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7106	CFLAGS="$xorg_testset_save_CFLAGS"
7107fi
7108
7109found="no"
7110
7111	if test $found = "no" ; then
7112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7114		fi
7115
7116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7118		fi
7119
7120		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7121
7122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7123printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7124		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7125		if eval test \${$cacheid+y}
7126then :
7127  printf %s "(cached) " >&6
7128else case e in #(
7129  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h.  */
7131int i;
7132int
7133main (void)
7134{
7135
7136  ;
7137  return 0;
7138}
7139_ACEOF
7140if ac_fn_c_try_link "$LINENO"
7141then :
7142  eval $cacheid=yes
7143else case e in #(
7144  e) eval $cacheid=no ;;
7145esac
7146fi
7147rm -f core conftest.err conftest.$ac_objext conftest.beam \
7148    conftest$ac_exeext conftest.$ac_ext ;;
7149esac
7150fi
7151
7152
7153		CFLAGS="$xorg_testset_save_CFLAGS"
7154
7155		eval supported=\$$cacheid
7156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7157printf "%s\n" "$supported" >&6; }
7158		if test "$supported" = "yes" ; then
7159			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7160			found="yes"
7161		fi
7162	fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178xorg_testset_save_CFLAGS="$CFLAGS"
7179
7180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7183printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7184if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7185then :
7186  printf %s "(cached) " >&6
7187else case e in #(
7188  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189/* end confdefs.h.  */
7190int i;
7191_ACEOF
7192if ac_fn_c_try_compile "$LINENO"
7193then :
7194  xorg_cv_cc_flag_unknown_warning_option=yes
7195else case e in #(
7196  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7197esac
7198fi
7199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7200esac
7201fi
7202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7205	CFLAGS="$xorg_testset_save_CFLAGS"
7206fi
7207
7208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7211	fi
7212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7215if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7216then :
7217  printf %s "(cached) " >&6
7218else case e in #(
7219  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221int i;
7222_ACEOF
7223if ac_fn_c_try_compile "$LINENO"
7224then :
7225  xorg_cv_cc_flag_unused_command_line_argument=yes
7226else case e in #(
7227  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7228esac
7229fi
7230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7231esac
7232fi
7233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7234printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7236	CFLAGS="$xorg_testset_save_CFLAGS"
7237fi
7238
7239found="no"
7240
7241	if test $found = "no" ; then
7242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7244		fi
7245
7246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248		fi
7249
7250		CFLAGS="$CFLAGS -Wredundant-decls"
7251
7252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7253printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7254		cacheid=xorg_cv_cc_flag__Wredundant_decls
7255		if eval test \${$cacheid+y}
7256then :
7257  printf %s "(cached) " >&6
7258else case e in #(
7259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261int i;
7262int
7263main (void)
7264{
7265
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270if ac_fn_c_try_link "$LINENO"
7271then :
7272  eval $cacheid=yes
7273else case e in #(
7274  e) eval $cacheid=no ;;
7275esac
7276fi
7277rm -f core conftest.err conftest.$ac_objext conftest.beam \
7278    conftest$ac_exeext conftest.$ac_ext ;;
7279esac
7280fi
7281
7282
7283		CFLAGS="$xorg_testset_save_CFLAGS"
7284
7285		eval supported=\$$cacheid
7286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7287printf "%s\n" "$supported" >&6; }
7288		if test "$supported" = "yes" ; then
7289			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7290			found="yes"
7291		fi
7292	fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308xorg_testset_save_CFLAGS="$CFLAGS"
7309
7310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7312	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7313printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7314if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7315then :
7316  printf %s "(cached) " >&6
7317else case e in #(
7318  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320int i;
7321_ACEOF
7322if ac_fn_c_try_compile "$LINENO"
7323then :
7324  xorg_cv_cc_flag_unknown_warning_option=yes
7325else case e in #(
7326  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7327esac
7328fi
7329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7330esac
7331fi
7332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7333printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7335	CFLAGS="$xorg_testset_save_CFLAGS"
7336fi
7337
7338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7341	fi
7342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7343	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7344printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7345if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7346then :
7347  printf %s "(cached) " >&6
7348else case e in #(
7349  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h.  */
7351int i;
7352_ACEOF
7353if ac_fn_c_try_compile "$LINENO"
7354then :
7355  xorg_cv_cc_flag_unused_command_line_argument=yes
7356else case e in #(
7357  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7358esac
7359fi
7360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7361esac
7362fi
7363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7364printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7366	CFLAGS="$xorg_testset_save_CFLAGS"
7367fi
7368
7369found="no"
7370
7371	if test $found = "no" ; then
7372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7374		fi
7375
7376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7378		fi
7379
7380		CFLAGS="$CFLAGS -Wlogical-op"
7381
7382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7383printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7384		cacheid=xorg_cv_cc_flag__Wlogical_op
7385		if eval test \${$cacheid+y}
7386then :
7387  printf %s "(cached) " >&6
7388else case e in #(
7389  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390/* end confdefs.h.  */
7391int i;
7392int
7393main (void)
7394{
7395
7396  ;
7397  return 0;
7398}
7399_ACEOF
7400if ac_fn_c_try_link "$LINENO"
7401then :
7402  eval $cacheid=yes
7403else case e in #(
7404  e) eval $cacheid=no ;;
7405esac
7406fi
7407rm -f core conftest.err conftest.$ac_objext conftest.beam \
7408    conftest$ac_exeext conftest.$ac_ext ;;
7409esac
7410fi
7411
7412
7413		CFLAGS="$xorg_testset_save_CFLAGS"
7414
7415		eval supported=\$$cacheid
7416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7417printf "%s\n" "$supported" >&6; }
7418		if test "$supported" = "yes" ; then
7419			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7420			found="yes"
7421		fi
7422	fi
7423
7424
7425
7426# These are currently disabled because they are noisy.  They will be enabled
7427# in the future once the codebase is sufficiently modernized to silence
7428# them.  For now, I don't want them to drown out the other warnings.
7429# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7430# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7431# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7432
7433# Turn some warnings into errors, so we don't accidentally get successful builds
7434# when there are problems that should be fixed.
7435
7436if test "x$SELECTIVE_WERROR" = "xyes" ; then
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450xorg_testset_save_CFLAGS="$CFLAGS"
7451
7452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7456if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7457then :
7458  printf %s "(cached) " >&6
7459else case e in #(
7460  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h.  */
7462int i;
7463_ACEOF
7464if ac_fn_c_try_compile "$LINENO"
7465then :
7466  xorg_cv_cc_flag_unknown_warning_option=yes
7467else case e in #(
7468  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7469esac
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7472esac
7473fi
7474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7475printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7477	CFLAGS="$xorg_testset_save_CFLAGS"
7478fi
7479
7480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7483	fi
7484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7486printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7487if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7488then :
7489  printf %s "(cached) " >&6
7490else case e in #(
7491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h.  */
7493int i;
7494_ACEOF
7495if ac_fn_c_try_compile "$LINENO"
7496then :
7497  xorg_cv_cc_flag_unused_command_line_argument=yes
7498else case e in #(
7499  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7500esac
7501fi
7502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7503esac
7504fi
7505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7508	CFLAGS="$xorg_testset_save_CFLAGS"
7509fi
7510
7511found="no"
7512
7513	if test $found = "no" ; then
7514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516		fi
7517
7518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7520		fi
7521
7522		CFLAGS="$CFLAGS -Werror=implicit"
7523
7524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7525printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7526		cacheid=xorg_cv_cc_flag__Werror_implicit
7527		if eval test \${$cacheid+y}
7528then :
7529  printf %s "(cached) " >&6
7530else case e in #(
7531  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534int
7535main (void)
7536{
7537
7538  ;
7539  return 0;
7540}
7541_ACEOF
7542if ac_fn_c_try_link "$LINENO"
7543then :
7544  eval $cacheid=yes
7545else case e in #(
7546  e) eval $cacheid=no ;;
7547esac
7548fi
7549rm -f core conftest.err conftest.$ac_objext conftest.beam \
7550    conftest$ac_exeext conftest.$ac_ext ;;
7551esac
7552fi
7553
7554
7555		CFLAGS="$xorg_testset_save_CFLAGS"
7556
7557		eval supported=\$$cacheid
7558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7559printf "%s\n" "$supported" >&6; }
7560		if test "$supported" = "yes" ; then
7561			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7562			found="yes"
7563		fi
7564	fi
7565
7566	if test $found = "no" ; then
7567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569		fi
7570
7571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7573		fi
7574
7575		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7576
7577		{ 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
7578printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7579		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7580		if eval test \${$cacheid+y}
7581then :
7582  printf %s "(cached) " >&6
7583else case e in #(
7584  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585/* end confdefs.h.  */
7586int i;
7587int
7588main (void)
7589{
7590
7591  ;
7592  return 0;
7593}
7594_ACEOF
7595if ac_fn_c_try_link "$LINENO"
7596then :
7597  eval $cacheid=yes
7598else case e in #(
7599  e) eval $cacheid=no ;;
7600esac
7601fi
7602rm -f core conftest.err conftest.$ac_objext conftest.beam \
7603    conftest$ac_exeext conftest.$ac_ext ;;
7604esac
7605fi
7606
7607
7608		CFLAGS="$xorg_testset_save_CFLAGS"
7609
7610		eval supported=\$$cacheid
7611		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7612printf "%s\n" "$supported" >&6; }
7613		if test "$supported" = "yes" ; then
7614			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7615			found="yes"
7616		fi
7617	fi
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633xorg_testset_save_CFLAGS="$CFLAGS"
7634
7635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7636	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7639if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7640then :
7641  printf %s "(cached) " >&6
7642else case e in #(
7643  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644/* end confdefs.h.  */
7645int i;
7646_ACEOF
7647if ac_fn_c_try_compile "$LINENO"
7648then :
7649  xorg_cv_cc_flag_unknown_warning_option=yes
7650else case e in #(
7651  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7652esac
7653fi
7654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7655esac
7656fi
7657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7658printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7659	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7660	CFLAGS="$xorg_testset_save_CFLAGS"
7661fi
7662
7663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7664	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7665		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666	fi
7667	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7669printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7670if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7671then :
7672  printf %s "(cached) " >&6
7673else case e in #(
7674  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676int i;
7677_ACEOF
7678if ac_fn_c_try_compile "$LINENO"
7679then :
7680  xorg_cv_cc_flag_unused_command_line_argument=yes
7681else case e in #(
7682  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7683esac
7684fi
7685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7686esac
7687fi
7688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7689printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7691	CFLAGS="$xorg_testset_save_CFLAGS"
7692fi
7693
7694found="no"
7695
7696	if test $found = "no" ; then
7697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7699		fi
7700
7701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703		fi
7704
7705		CFLAGS="$CFLAGS -Werror=nonnull"
7706
7707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7708printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7709		cacheid=xorg_cv_cc_flag__Werror_nonnull
7710		if eval test \${$cacheid+y}
7711then :
7712  printf %s "(cached) " >&6
7713else case e in #(
7714  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h.  */
7716int i;
7717int
7718main (void)
7719{
7720
7721  ;
7722  return 0;
7723}
7724_ACEOF
7725if ac_fn_c_try_link "$LINENO"
7726then :
7727  eval $cacheid=yes
7728else case e in #(
7729  e) eval $cacheid=no ;;
7730esac
7731fi
7732rm -f core conftest.err conftest.$ac_objext conftest.beam \
7733    conftest$ac_exeext conftest.$ac_ext ;;
7734esac
7735fi
7736
7737
7738		CFLAGS="$xorg_testset_save_CFLAGS"
7739
7740		eval supported=\$$cacheid
7741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7742printf "%s\n" "$supported" >&6; }
7743		if test "$supported" = "yes" ; then
7744			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7745			found="yes"
7746		fi
7747	fi
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763xorg_testset_save_CFLAGS="$CFLAGS"
7764
7765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7768printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7769if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7770then :
7771  printf %s "(cached) " >&6
7772else case e in #(
7773  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775int i;
7776_ACEOF
7777if ac_fn_c_try_compile "$LINENO"
7778then :
7779  xorg_cv_cc_flag_unknown_warning_option=yes
7780else case e in #(
7781  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7782esac
7783fi
7784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7785esac
7786fi
7787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7788printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7790	CFLAGS="$xorg_testset_save_CFLAGS"
7791fi
7792
7793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796	fi
7797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7798	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7799printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7800if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7801then :
7802  printf %s "(cached) " >&6
7803else case e in #(
7804  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806int i;
7807_ACEOF
7808if ac_fn_c_try_compile "$LINENO"
7809then :
7810  xorg_cv_cc_flag_unused_command_line_argument=yes
7811else case e in #(
7812  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7813esac
7814fi
7815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7816esac
7817fi
7818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7819printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7821	CFLAGS="$xorg_testset_save_CFLAGS"
7822fi
7823
7824found="no"
7825
7826	if test $found = "no" ; then
7827		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7829		fi
7830
7831		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7833		fi
7834
7835		CFLAGS="$CFLAGS -Werror=init-self"
7836
7837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7838printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7839		cacheid=xorg_cv_cc_flag__Werror_init_self
7840		if eval test \${$cacheid+y}
7841then :
7842  printf %s "(cached) " >&6
7843else case e in #(
7844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845/* end confdefs.h.  */
7846int i;
7847int
7848main (void)
7849{
7850
7851  ;
7852  return 0;
7853}
7854_ACEOF
7855if ac_fn_c_try_link "$LINENO"
7856then :
7857  eval $cacheid=yes
7858else case e in #(
7859  e) eval $cacheid=no ;;
7860esac
7861fi
7862rm -f core conftest.err conftest.$ac_objext conftest.beam \
7863    conftest$ac_exeext conftest.$ac_ext ;;
7864esac
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 case e in #(
7903  e) 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 case e in #(
7911  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7912esac
7913fi
7914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7915esac
7916fi
7917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7918printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7920	CFLAGS="$xorg_testset_save_CFLAGS"
7921fi
7922
7923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926	fi
7927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7929printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7930if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7931then :
7932  printf %s "(cached) " >&6
7933else case e in #(
7934  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h.  */
7936int i;
7937_ACEOF
7938if ac_fn_c_try_compile "$LINENO"
7939then :
7940  xorg_cv_cc_flag_unused_command_line_argument=yes
7941else case e in #(
7942  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7943esac
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7946esac
7947fi
7948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7951	CFLAGS="$xorg_testset_save_CFLAGS"
7952fi
7953
7954found="no"
7955
7956	if test $found = "no" ; then
7957		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959		fi
7960
7961		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963		fi
7964
7965		CFLAGS="$CFLAGS -Werror=main"
7966
7967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7968printf %s "checking if $CC supports -Werror=main... " >&6; }
7969		cacheid=xorg_cv_cc_flag__Werror_main
7970		if eval test \${$cacheid+y}
7971then :
7972  printf %s "(cached) " >&6
7973else case e in #(
7974  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975/* end confdefs.h.  */
7976int i;
7977int
7978main (void)
7979{
7980
7981  ;
7982  return 0;
7983}
7984_ACEOF
7985if ac_fn_c_try_link "$LINENO"
7986then :
7987  eval $cacheid=yes
7988else case e in #(
7989  e) eval $cacheid=no ;;
7990esac
7991fi
7992rm -f core conftest.err conftest.$ac_objext conftest.beam \
7993    conftest$ac_exeext conftest.$ac_ext ;;
7994esac
7995fi
7996
7997
7998		CFLAGS="$xorg_testset_save_CFLAGS"
7999
8000		eval supported=\$$cacheid
8001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8002printf "%s\n" "$supported" >&6; }
8003		if test "$supported" = "yes" ; then
8004			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8005			found="yes"
8006		fi
8007	fi
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023xorg_testset_save_CFLAGS="$CFLAGS"
8024
8025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8028printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8029if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8030then :
8031  printf %s "(cached) " >&6
8032else case e in #(
8033  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034/* end confdefs.h.  */
8035int i;
8036_ACEOF
8037if ac_fn_c_try_compile "$LINENO"
8038then :
8039  xorg_cv_cc_flag_unknown_warning_option=yes
8040else case e in #(
8041  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8042esac
8043fi
8044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8045esac
8046fi
8047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8048printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8050	CFLAGS="$xorg_testset_save_CFLAGS"
8051fi
8052
8053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056	fi
8057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8058	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8059printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8060if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8061then :
8062  printf %s "(cached) " >&6
8063else case e in #(
8064  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066int i;
8067_ACEOF
8068if ac_fn_c_try_compile "$LINENO"
8069then :
8070  xorg_cv_cc_flag_unused_command_line_argument=yes
8071else case e in #(
8072  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8073esac
8074fi
8075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8076esac
8077fi
8078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8079printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8081	CFLAGS="$xorg_testset_save_CFLAGS"
8082fi
8083
8084found="no"
8085
8086	if test $found = "no" ; then
8087		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8089		fi
8090
8091		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8093		fi
8094
8095		CFLAGS="$CFLAGS -Werror=missing-braces"
8096
8097		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8098printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8099		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8100		if eval test \${$cacheid+y}
8101then :
8102  printf %s "(cached) " >&6
8103else case e in #(
8104  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105/* end confdefs.h.  */
8106int i;
8107int
8108main (void)
8109{
8110
8111  ;
8112  return 0;
8113}
8114_ACEOF
8115if ac_fn_c_try_link "$LINENO"
8116then :
8117  eval $cacheid=yes
8118else case e in #(
8119  e) eval $cacheid=no ;;
8120esac
8121fi
8122rm -f core conftest.err conftest.$ac_objext conftest.beam \
8123    conftest$ac_exeext conftest.$ac_ext ;;
8124esac
8125fi
8126
8127
8128		CFLAGS="$xorg_testset_save_CFLAGS"
8129
8130		eval supported=\$$cacheid
8131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8132printf "%s\n" "$supported" >&6; }
8133		if test "$supported" = "yes" ; then
8134			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8135			found="yes"
8136		fi
8137	fi
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153xorg_testset_save_CFLAGS="$CFLAGS"
8154
8155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8157	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8158printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8159if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8160then :
8161  printf %s "(cached) " >&6
8162else case e in #(
8163  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165int i;
8166_ACEOF
8167if ac_fn_c_try_compile "$LINENO"
8168then :
8169  xorg_cv_cc_flag_unknown_warning_option=yes
8170else case e in #(
8171  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8172esac
8173fi
8174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8175esac
8176fi
8177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8178printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8180	CFLAGS="$xorg_testset_save_CFLAGS"
8181fi
8182
8183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8186	fi
8187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8188	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8189printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8190if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8191then :
8192  printf %s "(cached) " >&6
8193else case e in #(
8194  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196int i;
8197_ACEOF
8198if ac_fn_c_try_compile "$LINENO"
8199then :
8200  xorg_cv_cc_flag_unused_command_line_argument=yes
8201else case e in #(
8202  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8203esac
8204fi
8205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8206esac
8207fi
8208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8210	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8211	CFLAGS="$xorg_testset_save_CFLAGS"
8212fi
8213
8214found="no"
8215
8216	if test $found = "no" ; then
8217		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8218			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8219		fi
8220
8221		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8222			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8223		fi
8224
8225		CFLAGS="$CFLAGS -Werror=sequence-point"
8226
8227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8228printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8229		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8230		if eval test \${$cacheid+y}
8231then :
8232  printf %s "(cached) " >&6
8233else case e in #(
8234  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237int
8238main (void)
8239{
8240
8241  ;
8242  return 0;
8243}
8244_ACEOF
8245if ac_fn_c_try_link "$LINENO"
8246then :
8247  eval $cacheid=yes
8248else case e in #(
8249  e) eval $cacheid=no ;;
8250esac
8251fi
8252rm -f core conftest.err conftest.$ac_objext conftest.beam \
8253    conftest$ac_exeext conftest.$ac_ext ;;
8254esac
8255fi
8256
8257
8258		CFLAGS="$xorg_testset_save_CFLAGS"
8259
8260		eval supported=\$$cacheid
8261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8262printf "%s\n" "$supported" >&6; }
8263		if test "$supported" = "yes" ; then
8264			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8265			found="yes"
8266		fi
8267	fi
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283xorg_testset_save_CFLAGS="$CFLAGS"
8284
8285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8288printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8289if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8290then :
8291  printf %s "(cached) " >&6
8292else case e in #(
8293  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h.  */
8295int i;
8296_ACEOF
8297if ac_fn_c_try_compile "$LINENO"
8298then :
8299  xorg_cv_cc_flag_unknown_warning_option=yes
8300else case e in #(
8301  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8302esac
8303fi
8304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8305esac
8306fi
8307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8308printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8310	CFLAGS="$xorg_testset_save_CFLAGS"
8311fi
8312
8313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8316	fi
8317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8319printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8320if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8321then :
8322  printf %s "(cached) " >&6
8323else case e in #(
8324  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325/* end confdefs.h.  */
8326int i;
8327_ACEOF
8328if ac_fn_c_try_compile "$LINENO"
8329then :
8330  xorg_cv_cc_flag_unused_command_line_argument=yes
8331else case e in #(
8332  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8333esac
8334fi
8335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8336esac
8337fi
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8339printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8340	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8341	CFLAGS="$xorg_testset_save_CFLAGS"
8342fi
8343
8344found="no"
8345
8346	if test $found = "no" ; then
8347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8349		fi
8350
8351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8353		fi
8354
8355		CFLAGS="$CFLAGS -Werror=return-type"
8356
8357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8358printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8359		cacheid=xorg_cv_cc_flag__Werror_return_type
8360		if eval test \${$cacheid+y}
8361then :
8362  printf %s "(cached) " >&6
8363else case e in #(
8364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366int i;
8367int
8368main (void)
8369{
8370
8371  ;
8372  return 0;
8373}
8374_ACEOF
8375if ac_fn_c_try_link "$LINENO"
8376then :
8377  eval $cacheid=yes
8378else case e in #(
8379  e) eval $cacheid=no ;;
8380esac
8381fi
8382rm -f core conftest.err conftest.$ac_objext conftest.beam \
8383    conftest$ac_exeext conftest.$ac_ext ;;
8384esac
8385fi
8386
8387
8388		CFLAGS="$xorg_testset_save_CFLAGS"
8389
8390		eval supported=\$$cacheid
8391		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8392printf "%s\n" "$supported" >&6; }
8393		if test "$supported" = "yes" ; then
8394			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8395			found="yes"
8396		fi
8397	fi
8398
8399	if test $found = "no" ; then
8400		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8401			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8402		fi
8403
8404		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8405			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8406		fi
8407
8408		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8409
8410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8411printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8412		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8413		if eval test \${$cacheid+y}
8414then :
8415  printf %s "(cached) " >&6
8416else case e in #(
8417  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418/* end confdefs.h.  */
8419int i;
8420int
8421main (void)
8422{
8423
8424  ;
8425  return 0;
8426}
8427_ACEOF
8428if ac_fn_c_try_link "$LINENO"
8429then :
8430  eval $cacheid=yes
8431else case e in #(
8432  e) eval $cacheid=no ;;
8433esac
8434fi
8435rm -f core conftest.err conftest.$ac_objext conftest.beam \
8436    conftest$ac_exeext conftest.$ac_ext ;;
8437esac
8438fi
8439
8440
8441		CFLAGS="$xorg_testset_save_CFLAGS"
8442
8443		eval supported=\$$cacheid
8444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8445printf "%s\n" "$supported" >&6; }
8446		if test "$supported" = "yes" ; then
8447			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8448			found="yes"
8449		fi
8450	fi
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466xorg_testset_save_CFLAGS="$CFLAGS"
8467
8468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8473then :
8474  printf %s "(cached) " >&6
8475else case e in #(
8476  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h.  */
8478int i;
8479_ACEOF
8480if ac_fn_c_try_compile "$LINENO"
8481then :
8482  xorg_cv_cc_flag_unknown_warning_option=yes
8483else case e in #(
8484  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8485esac
8486fi
8487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8488esac
8489fi
8490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8493	CFLAGS="$xorg_testset_save_CFLAGS"
8494fi
8495
8496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8499	fi
8500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8503if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8504then :
8505  printf %s "(cached) " >&6
8506else case e in #(
8507  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h.  */
8509int i;
8510_ACEOF
8511if ac_fn_c_try_compile "$LINENO"
8512then :
8513  xorg_cv_cc_flag_unused_command_line_argument=yes
8514else case e in #(
8515  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8516esac
8517fi
8518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8519esac
8520fi
8521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8524	CFLAGS="$xorg_testset_save_CFLAGS"
8525fi
8526
8527found="no"
8528
8529	if test $found = "no" ; then
8530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532		fi
8533
8534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536		fi
8537
8538		CFLAGS="$CFLAGS -Werror=trigraphs"
8539
8540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8541printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8542		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8543		if eval test \${$cacheid+y}
8544then :
8545  printf %s "(cached) " >&6
8546else case e in #(
8547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548/* end confdefs.h.  */
8549int i;
8550int
8551main (void)
8552{
8553
8554  ;
8555  return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_link "$LINENO"
8559then :
8560  eval $cacheid=yes
8561else case e in #(
8562  e) eval $cacheid=no ;;
8563esac
8564fi
8565rm -f core conftest.err conftest.$ac_objext conftest.beam \
8566    conftest$ac_exeext conftest.$ac_ext ;;
8567esac
8568fi
8569
8570
8571		CFLAGS="$xorg_testset_save_CFLAGS"
8572
8573		eval supported=\$$cacheid
8574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8575printf "%s\n" "$supported" >&6; }
8576		if test "$supported" = "yes" ; then
8577			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8578			found="yes"
8579		fi
8580	fi
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596xorg_testset_save_CFLAGS="$CFLAGS"
8597
8598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8599	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8601printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8602if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8603then :
8604  printf %s "(cached) " >&6
8605else case e in #(
8606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h.  */
8608int i;
8609_ACEOF
8610if ac_fn_c_try_compile "$LINENO"
8611then :
8612  xorg_cv_cc_flag_unknown_warning_option=yes
8613else case e in #(
8614  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8615esac
8616fi
8617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8618esac
8619fi
8620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623	CFLAGS="$xorg_testset_save_CFLAGS"
8624fi
8625
8626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629	fi
8630	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8634then :
8635  printf %s "(cached) " >&6
8636else case e in #(
8637  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638/* end confdefs.h.  */
8639int i;
8640_ACEOF
8641if ac_fn_c_try_compile "$LINENO"
8642then :
8643  xorg_cv_cc_flag_unused_command_line_argument=yes
8644else case e in #(
8645  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8646esac
8647fi
8648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8649esac
8650fi
8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8652printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8654	CFLAGS="$xorg_testset_save_CFLAGS"
8655fi
8656
8657found="no"
8658
8659	if test $found = "no" ; then
8660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662		fi
8663
8664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666		fi
8667
8668		CFLAGS="$CFLAGS -Werror=array-bounds"
8669
8670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8671printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8672		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8673		if eval test \${$cacheid+y}
8674then :
8675  printf %s "(cached) " >&6
8676else case e in #(
8677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h.  */
8679int i;
8680int
8681main (void)
8682{
8683
8684  ;
8685  return 0;
8686}
8687_ACEOF
8688if ac_fn_c_try_link "$LINENO"
8689then :
8690  eval $cacheid=yes
8691else case e in #(
8692  e) eval $cacheid=no ;;
8693esac
8694fi
8695rm -f core conftest.err conftest.$ac_objext conftest.beam \
8696    conftest$ac_exeext conftest.$ac_ext ;;
8697esac
8698fi
8699
8700
8701		CFLAGS="$xorg_testset_save_CFLAGS"
8702
8703		eval supported=\$$cacheid
8704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8705printf "%s\n" "$supported" >&6; }
8706		if test "$supported" = "yes" ; then
8707			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8708			found="yes"
8709		fi
8710	fi
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726xorg_testset_save_CFLAGS="$CFLAGS"
8727
8728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8732if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8733then :
8734  printf %s "(cached) " >&6
8735else case e in #(
8736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737/* end confdefs.h.  */
8738int i;
8739_ACEOF
8740if ac_fn_c_try_compile "$LINENO"
8741then :
8742  xorg_cv_cc_flag_unknown_warning_option=yes
8743else case e in #(
8744  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8745esac
8746fi
8747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8748esac
8749fi
8750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8751printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8752	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8753	CFLAGS="$xorg_testset_save_CFLAGS"
8754fi
8755
8756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8757	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759	fi
8760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8761	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8762printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8763if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8764then :
8765  printf %s "(cached) " >&6
8766else case e in #(
8767  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769int i;
8770_ACEOF
8771if ac_fn_c_try_compile "$LINENO"
8772then :
8773  xorg_cv_cc_flag_unused_command_line_argument=yes
8774else case e in #(
8775  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8776esac
8777fi
8778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8779esac
8780fi
8781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8782printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8784	CFLAGS="$xorg_testset_save_CFLAGS"
8785fi
8786
8787found="no"
8788
8789	if test $found = "no" ; then
8790		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792		fi
8793
8794		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8796		fi
8797
8798		CFLAGS="$CFLAGS -Werror=write-strings"
8799
8800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8801printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8802		cacheid=xorg_cv_cc_flag__Werror_write_strings
8803		if eval test \${$cacheid+y}
8804then :
8805  printf %s "(cached) " >&6
8806else case e in #(
8807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808/* end confdefs.h.  */
8809int i;
8810int
8811main (void)
8812{
8813
8814  ;
8815  return 0;
8816}
8817_ACEOF
8818if ac_fn_c_try_link "$LINENO"
8819then :
8820  eval $cacheid=yes
8821else case e in #(
8822  e) eval $cacheid=no ;;
8823esac
8824fi
8825rm -f core conftest.err conftest.$ac_objext conftest.beam \
8826    conftest$ac_exeext conftest.$ac_ext ;;
8827esac
8828fi
8829
8830
8831		CFLAGS="$xorg_testset_save_CFLAGS"
8832
8833		eval supported=\$$cacheid
8834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8835printf "%s\n" "$supported" >&6; }
8836		if test "$supported" = "yes" ; then
8837			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8838			found="yes"
8839		fi
8840	fi
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856xorg_testset_save_CFLAGS="$CFLAGS"
8857
8858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8861printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8862if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8863then :
8864  printf %s "(cached) " >&6
8865else case e in #(
8866  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867/* end confdefs.h.  */
8868int i;
8869_ACEOF
8870if ac_fn_c_try_compile "$LINENO"
8871then :
8872  xorg_cv_cc_flag_unknown_warning_option=yes
8873else case e in #(
8874  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8875esac
8876fi
8877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8878esac
8879fi
8880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8883	CFLAGS="$xorg_testset_save_CFLAGS"
8884fi
8885
8886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8889	fi
8890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8894then :
8895  printf %s "(cached) " >&6
8896else case e in #(
8897  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898/* end confdefs.h.  */
8899int i;
8900_ACEOF
8901if ac_fn_c_try_compile "$LINENO"
8902then :
8903  xorg_cv_cc_flag_unused_command_line_argument=yes
8904else case e in #(
8905  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8906esac
8907fi
8908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8909esac
8910fi
8911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8914	CFLAGS="$xorg_testset_save_CFLAGS"
8915fi
8916
8917found="no"
8918
8919	if test $found = "no" ; then
8920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8922		fi
8923
8924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8926		fi
8927
8928		CFLAGS="$CFLAGS -Werror=address"
8929
8930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8931printf %s "checking if $CC supports -Werror=address... " >&6; }
8932		cacheid=xorg_cv_cc_flag__Werror_address
8933		if eval test \${$cacheid+y}
8934then :
8935  printf %s "(cached) " >&6
8936else case e in #(
8937  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939int i;
8940int
8941main (void)
8942{
8943
8944  ;
8945  return 0;
8946}
8947_ACEOF
8948if ac_fn_c_try_link "$LINENO"
8949then :
8950  eval $cacheid=yes
8951else case e in #(
8952  e) eval $cacheid=no ;;
8953esac
8954fi
8955rm -f core conftest.err conftest.$ac_objext conftest.beam \
8956    conftest$ac_exeext conftest.$ac_ext ;;
8957esac
8958fi
8959
8960
8961		CFLAGS="$xorg_testset_save_CFLAGS"
8962
8963		eval supported=\$$cacheid
8964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8965printf "%s\n" "$supported" >&6; }
8966		if test "$supported" = "yes" ; then
8967			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8968			found="yes"
8969		fi
8970	fi
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986xorg_testset_save_CFLAGS="$CFLAGS"
8987
8988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8991printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8992if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8993then :
8994  printf %s "(cached) " >&6
8995else case e in #(
8996  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997/* end confdefs.h.  */
8998int i;
8999_ACEOF
9000if ac_fn_c_try_compile "$LINENO"
9001then :
9002  xorg_cv_cc_flag_unknown_warning_option=yes
9003else case e in #(
9004  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9005esac
9006fi
9007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9008esac
9009fi
9010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9011printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9013	CFLAGS="$xorg_testset_save_CFLAGS"
9014fi
9015
9016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019	fi
9020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9022printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9023if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9024then :
9025  printf %s "(cached) " >&6
9026else case e in #(
9027  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028/* end confdefs.h.  */
9029int i;
9030_ACEOF
9031if ac_fn_c_try_compile "$LINENO"
9032then :
9033  xorg_cv_cc_flag_unused_command_line_argument=yes
9034else case e in #(
9035  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9036esac
9037fi
9038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9039esac
9040fi
9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044	CFLAGS="$xorg_testset_save_CFLAGS"
9045fi
9046
9047found="no"
9048
9049	if test $found = "no" ; then
9050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052		fi
9053
9054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056		fi
9057
9058		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9059
9060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9061printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9062		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9063		if eval test \${$cacheid+y}
9064then :
9065  printf %s "(cached) " >&6
9066else case e in #(
9067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069int i;
9070int
9071main (void)
9072{
9073
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"
9079then :
9080  eval $cacheid=yes
9081else case e in #(
9082  e) eval $cacheid=no ;;
9083esac
9084fi
9085rm -f core conftest.err conftest.$ac_objext conftest.beam \
9086    conftest$ac_exeext conftest.$ac_ext ;;
9087esac
9088fi
9089
9090
9091		CFLAGS="$xorg_testset_save_CFLAGS"
9092
9093		eval supported=\$$cacheid
9094		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9095printf "%s\n" "$supported" >&6; }
9096		if test "$supported" = "yes" ; then
9097			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9098			found="yes"
9099		fi
9100	fi
9101
9102	if test $found = "no" ; then
9103		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9104			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105		fi
9106
9107		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9108			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9109		fi
9110
9111		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9112
9113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9114printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9115		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9116		if eval test \${$cacheid+y}
9117then :
9118  printf %s "(cached) " >&6
9119else case e in #(
9120  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121/* end confdefs.h.  */
9122int i;
9123int
9124main (void)
9125{
9126
9127  ;
9128  return 0;
9129}
9130_ACEOF
9131if ac_fn_c_try_link "$LINENO"
9132then :
9133  eval $cacheid=yes
9134else case e in #(
9135  e) eval $cacheid=no ;;
9136esac
9137fi
9138rm -f core conftest.err conftest.$ac_objext conftest.beam \
9139    conftest$ac_exeext conftest.$ac_ext ;;
9140esac
9141fi
9142
9143
9144		CFLAGS="$xorg_testset_save_CFLAGS"
9145
9146		eval supported=\$$cacheid
9147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9148printf "%s\n" "$supported" >&6; }
9149		if test "$supported" = "yes" ; then
9150			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9151			found="yes"
9152		fi
9153	fi
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169xorg_testset_save_CFLAGS="$CFLAGS"
9170
9171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9175if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9176then :
9177  printf %s "(cached) " >&6
9178else case e in #(
9179  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180/* end confdefs.h.  */
9181int i;
9182_ACEOF
9183if ac_fn_c_try_compile "$LINENO"
9184then :
9185  xorg_cv_cc_flag_unknown_warning_option=yes
9186else case e in #(
9187  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9188esac
9189fi
9190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9191esac
9192fi
9193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9194printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9196	CFLAGS="$xorg_testset_save_CFLAGS"
9197fi
9198
9199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9202	fi
9203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9205printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9206if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9207then :
9208  printf %s "(cached) " >&6
9209else case e in #(
9210  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h.  */
9212int i;
9213_ACEOF
9214if ac_fn_c_try_compile "$LINENO"
9215then :
9216  xorg_cv_cc_flag_unused_command_line_argument=yes
9217else case e in #(
9218  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9219esac
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9222esac
9223fi
9224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9227	CFLAGS="$xorg_testset_save_CFLAGS"
9228fi
9229
9230found="no"
9231
9232	if test $found = "no" ; then
9233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9235		fi
9236
9237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9239		fi
9240
9241		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9242
9243		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9244printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9245		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9246		if eval test \${$cacheid+y}
9247then :
9248  printf %s "(cached) " >&6
9249else case e in #(
9250  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251/* end confdefs.h.  */
9252int i;
9253int
9254main (void)
9255{
9256
9257  ;
9258  return 0;
9259}
9260_ACEOF
9261if ac_fn_c_try_link "$LINENO"
9262then :
9263  eval $cacheid=yes
9264else case e in #(
9265  e) eval $cacheid=no ;;
9266esac
9267fi
9268rm -f core conftest.err conftest.$ac_objext conftest.beam \
9269    conftest$ac_exeext conftest.$ac_ext ;;
9270esac
9271fi
9272
9273
9274		CFLAGS="$xorg_testset_save_CFLAGS"
9275
9276		eval supported=\$$cacheid
9277		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9278printf "%s\n" "$supported" >&6; }
9279		if test "$supported" = "yes" ; then
9280			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9281			found="yes"
9282		fi
9283	fi
9284
9285 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9286else
9287{ 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
9288printf "%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;}
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302xorg_testset_save_CFLAGS="$CFLAGS"
9303
9304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9307printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9308if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9309then :
9310  printf %s "(cached) " >&6
9311else case e in #(
9312  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313/* end confdefs.h.  */
9314int i;
9315_ACEOF
9316if ac_fn_c_try_compile "$LINENO"
9317then :
9318  xorg_cv_cc_flag_unknown_warning_option=yes
9319else case e in #(
9320  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9321esac
9322fi
9323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9324esac
9325fi
9326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9329	CFLAGS="$xorg_testset_save_CFLAGS"
9330fi
9331
9332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335	fi
9336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9339if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9340then :
9341  printf %s "(cached) " >&6
9342else case e in #(
9343  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h.  */
9345int i;
9346_ACEOF
9347if ac_fn_c_try_compile "$LINENO"
9348then :
9349  xorg_cv_cc_flag_unused_command_line_argument=yes
9350else case e in #(
9351  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9352esac
9353fi
9354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9355esac
9356fi
9357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9360	CFLAGS="$xorg_testset_save_CFLAGS"
9361fi
9362
9363found="no"
9364
9365	if test $found = "no" ; then
9366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368		fi
9369
9370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372		fi
9373
9374		CFLAGS="$CFLAGS -Wimplicit"
9375
9376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9377printf %s "checking if $CC supports -Wimplicit... " >&6; }
9378		cacheid=xorg_cv_cc_flag__Wimplicit
9379		if eval test \${$cacheid+y}
9380then :
9381  printf %s "(cached) " >&6
9382else case e in #(
9383  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384/* end confdefs.h.  */
9385int i;
9386int
9387main (void)
9388{
9389
9390  ;
9391  return 0;
9392}
9393_ACEOF
9394if ac_fn_c_try_link "$LINENO"
9395then :
9396  eval $cacheid=yes
9397else case e in #(
9398  e) eval $cacheid=no ;;
9399esac
9400fi
9401rm -f core conftest.err conftest.$ac_objext conftest.beam \
9402    conftest$ac_exeext conftest.$ac_ext ;;
9403esac
9404fi
9405
9406
9407		CFLAGS="$xorg_testset_save_CFLAGS"
9408
9409		eval supported=\$$cacheid
9410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9411printf "%s\n" "$supported" >&6; }
9412		if test "$supported" = "yes" ; then
9413			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9414			found="yes"
9415		fi
9416	fi
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432xorg_testset_save_CFLAGS="$CFLAGS"
9433
9434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9438if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9439then :
9440  printf %s "(cached) " >&6
9441else case e in #(
9442  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443/* end confdefs.h.  */
9444int i;
9445_ACEOF
9446if ac_fn_c_try_compile "$LINENO"
9447then :
9448  xorg_cv_cc_flag_unknown_warning_option=yes
9449else case e in #(
9450  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9451esac
9452fi
9453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9454esac
9455fi
9456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9459	CFLAGS="$xorg_testset_save_CFLAGS"
9460fi
9461
9462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465	fi
9466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9469if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9470then :
9471  printf %s "(cached) " >&6
9472else case e in #(
9473  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474/* end confdefs.h.  */
9475int i;
9476_ACEOF
9477if ac_fn_c_try_compile "$LINENO"
9478then :
9479  xorg_cv_cc_flag_unused_command_line_argument=yes
9480else case e in #(
9481  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9482esac
9483fi
9484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9485esac
9486fi
9487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9490	CFLAGS="$xorg_testset_save_CFLAGS"
9491fi
9492
9493found="no"
9494
9495	if test $found = "no" ; then
9496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9498		fi
9499
9500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9502		fi
9503
9504		CFLAGS="$CFLAGS -Wnonnull"
9505
9506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9507printf %s "checking if $CC supports -Wnonnull... " >&6; }
9508		cacheid=xorg_cv_cc_flag__Wnonnull
9509		if eval test \${$cacheid+y}
9510then :
9511  printf %s "(cached) " >&6
9512else case e in #(
9513  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514/* end confdefs.h.  */
9515int i;
9516int
9517main (void)
9518{
9519
9520  ;
9521  return 0;
9522}
9523_ACEOF
9524if ac_fn_c_try_link "$LINENO"
9525then :
9526  eval $cacheid=yes
9527else case e in #(
9528  e) eval $cacheid=no ;;
9529esac
9530fi
9531rm -f core conftest.err conftest.$ac_objext conftest.beam \
9532    conftest$ac_exeext conftest.$ac_ext ;;
9533esac
9534fi
9535
9536
9537		CFLAGS="$xorg_testset_save_CFLAGS"
9538
9539		eval supported=\$$cacheid
9540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9541printf "%s\n" "$supported" >&6; }
9542		if test "$supported" = "yes" ; then
9543			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9544			found="yes"
9545		fi
9546	fi
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562xorg_testset_save_CFLAGS="$CFLAGS"
9563
9564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9568if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9569then :
9570  printf %s "(cached) " >&6
9571else case e in #(
9572  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573/* end confdefs.h.  */
9574int i;
9575_ACEOF
9576if ac_fn_c_try_compile "$LINENO"
9577then :
9578  xorg_cv_cc_flag_unknown_warning_option=yes
9579else case e in #(
9580  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9581esac
9582fi
9583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9584esac
9585fi
9586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9589	CFLAGS="$xorg_testset_save_CFLAGS"
9590fi
9591
9592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9595	fi
9596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9600then :
9601  printf %s "(cached) " >&6
9602else case e in #(
9603  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604/* end confdefs.h.  */
9605int i;
9606_ACEOF
9607if ac_fn_c_try_compile "$LINENO"
9608then :
9609  xorg_cv_cc_flag_unused_command_line_argument=yes
9610else case e in #(
9611  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9612esac
9613fi
9614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9615esac
9616fi
9617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9620	CFLAGS="$xorg_testset_save_CFLAGS"
9621fi
9622
9623found="no"
9624
9625	if test $found = "no" ; then
9626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628		fi
9629
9630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9632		fi
9633
9634		CFLAGS="$CFLAGS -Winit-self"
9635
9636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9637printf %s "checking if $CC supports -Winit-self... " >&6; }
9638		cacheid=xorg_cv_cc_flag__Winit_self
9639		if eval test \${$cacheid+y}
9640then :
9641  printf %s "(cached) " >&6
9642else case e in #(
9643  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644/* end confdefs.h.  */
9645int i;
9646int
9647main (void)
9648{
9649
9650  ;
9651  return 0;
9652}
9653_ACEOF
9654if ac_fn_c_try_link "$LINENO"
9655then :
9656  eval $cacheid=yes
9657else case e in #(
9658  e) eval $cacheid=no ;;
9659esac
9660fi
9661rm -f core conftest.err conftest.$ac_objext conftest.beam \
9662    conftest$ac_exeext conftest.$ac_ext ;;
9663esac
9664fi
9665
9666
9667		CFLAGS="$xorg_testset_save_CFLAGS"
9668
9669		eval supported=\$$cacheid
9670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9671printf "%s\n" "$supported" >&6; }
9672		if test "$supported" = "yes" ; then
9673			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9674			found="yes"
9675		fi
9676	fi
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692xorg_testset_save_CFLAGS="$CFLAGS"
9693
9694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9698if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9699then :
9700  printf %s "(cached) " >&6
9701else case e in #(
9702  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704int i;
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"
9707then :
9708  xorg_cv_cc_flag_unknown_warning_option=yes
9709else case e in #(
9710  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9711esac
9712fi
9713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9714esac
9715fi
9716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9719	CFLAGS="$xorg_testset_save_CFLAGS"
9720fi
9721
9722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9725	fi
9726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9730then :
9731  printf %s "(cached) " >&6
9732else case e in #(
9733  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734/* end confdefs.h.  */
9735int i;
9736_ACEOF
9737if ac_fn_c_try_compile "$LINENO"
9738then :
9739  xorg_cv_cc_flag_unused_command_line_argument=yes
9740else case e in #(
9741  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9742esac
9743fi
9744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9745esac
9746fi
9747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9750	CFLAGS="$xorg_testset_save_CFLAGS"
9751fi
9752
9753found="no"
9754
9755	if test $found = "no" ; then
9756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758		fi
9759
9760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9762		fi
9763
9764		CFLAGS="$CFLAGS -Wmain"
9765
9766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9767printf %s "checking if $CC supports -Wmain... " >&6; }
9768		cacheid=xorg_cv_cc_flag__Wmain
9769		if eval test \${$cacheid+y}
9770then :
9771  printf %s "(cached) " >&6
9772else case e in #(
9773  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774/* end confdefs.h.  */
9775int i;
9776int
9777main (void)
9778{
9779
9780  ;
9781  return 0;
9782}
9783_ACEOF
9784if ac_fn_c_try_link "$LINENO"
9785then :
9786  eval $cacheid=yes
9787else case e in #(
9788  e) eval $cacheid=no ;;
9789esac
9790fi
9791rm -f core conftest.err conftest.$ac_objext conftest.beam \
9792    conftest$ac_exeext conftest.$ac_ext ;;
9793esac
9794fi
9795
9796
9797		CFLAGS="$xorg_testset_save_CFLAGS"
9798
9799		eval supported=\$$cacheid
9800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9801printf "%s\n" "$supported" >&6; }
9802		if test "$supported" = "yes" ; then
9803			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9804			found="yes"
9805		fi
9806	fi
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822xorg_testset_save_CFLAGS="$CFLAGS"
9823
9824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9828if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9829then :
9830  printf %s "(cached) " >&6
9831else case e in #(
9832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834int i;
9835_ACEOF
9836if ac_fn_c_try_compile "$LINENO"
9837then :
9838  xorg_cv_cc_flag_unknown_warning_option=yes
9839else case e in #(
9840  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9841esac
9842fi
9843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9844esac
9845fi
9846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9849	CFLAGS="$xorg_testset_save_CFLAGS"
9850fi
9851
9852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9855	fi
9856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9859if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9860then :
9861  printf %s "(cached) " >&6
9862else case e in #(
9863  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h.  */
9865int i;
9866_ACEOF
9867if ac_fn_c_try_compile "$LINENO"
9868then :
9869  xorg_cv_cc_flag_unused_command_line_argument=yes
9870else case e in #(
9871  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9872esac
9873fi
9874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9875esac
9876fi
9877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9879	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9880	CFLAGS="$xorg_testset_save_CFLAGS"
9881fi
9882
9883found="no"
9884
9885	if test $found = "no" ; then
9886		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9887			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888		fi
9889
9890		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9891			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9892		fi
9893
9894		CFLAGS="$CFLAGS -Wmissing-braces"
9895
9896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9897printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9898		cacheid=xorg_cv_cc_flag__Wmissing_braces
9899		if eval test \${$cacheid+y}
9900then :
9901  printf %s "(cached) " >&6
9902else case e in #(
9903  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904/* end confdefs.h.  */
9905int i;
9906int
9907main (void)
9908{
9909
9910  ;
9911  return 0;
9912}
9913_ACEOF
9914if ac_fn_c_try_link "$LINENO"
9915then :
9916  eval $cacheid=yes
9917else case e in #(
9918  e) eval $cacheid=no ;;
9919esac
9920fi
9921rm -f core conftest.err conftest.$ac_objext conftest.beam \
9922    conftest$ac_exeext conftest.$ac_ext ;;
9923esac
9924fi
9925
9926
9927		CFLAGS="$xorg_testset_save_CFLAGS"
9928
9929		eval supported=\$$cacheid
9930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9931printf "%s\n" "$supported" >&6; }
9932		if test "$supported" = "yes" ; then
9933			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9934			found="yes"
9935		fi
9936	fi
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952xorg_testset_save_CFLAGS="$CFLAGS"
9953
9954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9958if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9959then :
9960  printf %s "(cached) " >&6
9961else case e in #(
9962  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963/* end confdefs.h.  */
9964int i;
9965_ACEOF
9966if ac_fn_c_try_compile "$LINENO"
9967then :
9968  xorg_cv_cc_flag_unknown_warning_option=yes
9969else case e in #(
9970  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9971esac
9972fi
9973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9974esac
9975fi
9976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9979	CFLAGS="$xorg_testset_save_CFLAGS"
9980fi
9981
9982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985	fi
9986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9989if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9990then :
9991  printf %s "(cached) " >&6
9992else case e in #(
9993  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996_ACEOF
9997if ac_fn_c_try_compile "$LINENO"
9998then :
9999  xorg_cv_cc_flag_unused_command_line_argument=yes
10000else case e in #(
10001  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10002esac
10003fi
10004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10005esac
10006fi
10007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10008printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10010	CFLAGS="$xorg_testset_save_CFLAGS"
10011fi
10012
10013found="no"
10014
10015	if test $found = "no" ; then
10016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018		fi
10019
10020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10022		fi
10023
10024		CFLAGS="$CFLAGS -Wsequence-point"
10025
10026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10027printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10028		cacheid=xorg_cv_cc_flag__Wsequence_point
10029		if eval test \${$cacheid+y}
10030then :
10031  printf %s "(cached) " >&6
10032else case e in #(
10033  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034/* end confdefs.h.  */
10035int i;
10036int
10037main (void)
10038{
10039
10040  ;
10041  return 0;
10042}
10043_ACEOF
10044if ac_fn_c_try_link "$LINENO"
10045then :
10046  eval $cacheid=yes
10047else case e in #(
10048  e) eval $cacheid=no ;;
10049esac
10050fi
10051rm -f core conftest.err conftest.$ac_objext conftest.beam \
10052    conftest$ac_exeext conftest.$ac_ext ;;
10053esac
10054fi
10055
10056
10057		CFLAGS="$xorg_testset_save_CFLAGS"
10058
10059		eval supported=\$$cacheid
10060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10061printf "%s\n" "$supported" >&6; }
10062		if test "$supported" = "yes" ; then
10063			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10064			found="yes"
10065		fi
10066	fi
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082xorg_testset_save_CFLAGS="$CFLAGS"
10083
10084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10087printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10088if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10089then :
10090  printf %s "(cached) " >&6
10091else case e in #(
10092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093/* end confdefs.h.  */
10094int i;
10095_ACEOF
10096if ac_fn_c_try_compile "$LINENO"
10097then :
10098  xorg_cv_cc_flag_unknown_warning_option=yes
10099else case e in #(
10100  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10101esac
10102fi
10103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10104esac
10105fi
10106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10109	CFLAGS="$xorg_testset_save_CFLAGS"
10110fi
10111
10112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115	fi
10116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10119if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10120then :
10121  printf %s "(cached) " >&6
10122else case e in #(
10123  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h.  */
10125int i;
10126_ACEOF
10127if ac_fn_c_try_compile "$LINENO"
10128then :
10129  xorg_cv_cc_flag_unused_command_line_argument=yes
10130else case e in #(
10131  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10132esac
10133fi
10134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10135esac
10136fi
10137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10140	CFLAGS="$xorg_testset_save_CFLAGS"
10141fi
10142
10143found="no"
10144
10145	if test $found = "no" ; then
10146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148		fi
10149
10150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10152		fi
10153
10154		CFLAGS="$CFLAGS -Wreturn-type"
10155
10156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10157printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10158		cacheid=xorg_cv_cc_flag__Wreturn_type
10159		if eval test \${$cacheid+y}
10160then :
10161  printf %s "(cached) " >&6
10162else case e in #(
10163  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164/* end confdefs.h.  */
10165int i;
10166int
10167main (void)
10168{
10169
10170  ;
10171  return 0;
10172}
10173_ACEOF
10174if ac_fn_c_try_link "$LINENO"
10175then :
10176  eval $cacheid=yes
10177else case e in #(
10178  e) eval $cacheid=no ;;
10179esac
10180fi
10181rm -f core conftest.err conftest.$ac_objext conftest.beam \
10182    conftest$ac_exeext conftest.$ac_ext ;;
10183esac
10184fi
10185
10186
10187		CFLAGS="$xorg_testset_save_CFLAGS"
10188
10189		eval supported=\$$cacheid
10190		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10191printf "%s\n" "$supported" >&6; }
10192		if test "$supported" = "yes" ; then
10193			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10194			found="yes"
10195		fi
10196	fi
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212xorg_testset_save_CFLAGS="$CFLAGS"
10213
10214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10217printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10218if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10219then :
10220  printf %s "(cached) " >&6
10221else case e in #(
10222  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223/* end confdefs.h.  */
10224int i;
10225_ACEOF
10226if ac_fn_c_try_compile "$LINENO"
10227then :
10228  xorg_cv_cc_flag_unknown_warning_option=yes
10229else case e in #(
10230  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10231esac
10232fi
10233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10234esac
10235fi
10236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10239	CFLAGS="$xorg_testset_save_CFLAGS"
10240fi
10241
10242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10245	fi
10246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10250then :
10251  printf %s "(cached) " >&6
10252else case e in #(
10253  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254/* end confdefs.h.  */
10255int i;
10256_ACEOF
10257if ac_fn_c_try_compile "$LINENO"
10258then :
10259  xorg_cv_cc_flag_unused_command_line_argument=yes
10260else case e in #(
10261  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10262esac
10263fi
10264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10265esac
10266fi
10267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10269	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10270	CFLAGS="$xorg_testset_save_CFLAGS"
10271fi
10272
10273found="no"
10274
10275	if test $found = "no" ; then
10276		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10278		fi
10279
10280		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282		fi
10283
10284		CFLAGS="$CFLAGS -Wtrigraphs"
10285
10286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10287printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10288		cacheid=xorg_cv_cc_flag__Wtrigraphs
10289		if eval test \${$cacheid+y}
10290then :
10291  printf %s "(cached) " >&6
10292else case e in #(
10293  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294/* end confdefs.h.  */
10295int i;
10296int
10297main (void)
10298{
10299
10300  ;
10301  return 0;
10302}
10303_ACEOF
10304if ac_fn_c_try_link "$LINENO"
10305then :
10306  eval $cacheid=yes
10307else case e in #(
10308  e) eval $cacheid=no ;;
10309esac
10310fi
10311rm -f core conftest.err conftest.$ac_objext conftest.beam \
10312    conftest$ac_exeext conftest.$ac_ext ;;
10313esac
10314fi
10315
10316
10317		CFLAGS="$xorg_testset_save_CFLAGS"
10318
10319		eval supported=\$$cacheid
10320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10321printf "%s\n" "$supported" >&6; }
10322		if test "$supported" = "yes" ; then
10323			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10324			found="yes"
10325		fi
10326	fi
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342xorg_testset_save_CFLAGS="$CFLAGS"
10343
10344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10349then :
10350  printf %s "(cached) " >&6
10351else case e in #(
10352  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353/* end confdefs.h.  */
10354int i;
10355_ACEOF
10356if ac_fn_c_try_compile "$LINENO"
10357then :
10358  xorg_cv_cc_flag_unknown_warning_option=yes
10359else case e in #(
10360  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10361esac
10362fi
10363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10364esac
10365fi
10366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10368	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10369	CFLAGS="$xorg_testset_save_CFLAGS"
10370fi
10371
10372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10373	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10375	fi
10376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10379if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10380then :
10381  printf %s "(cached) " >&6
10382else case e in #(
10383  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h.  */
10385int i;
10386_ACEOF
10387if ac_fn_c_try_compile "$LINENO"
10388then :
10389  xorg_cv_cc_flag_unused_command_line_argument=yes
10390else case e in #(
10391  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10392esac
10393fi
10394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10395esac
10396fi
10397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10400	CFLAGS="$xorg_testset_save_CFLAGS"
10401fi
10402
10403found="no"
10404
10405	if test $found = "no" ; then
10406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408		fi
10409
10410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10412		fi
10413
10414		CFLAGS="$CFLAGS -Warray-bounds"
10415
10416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10417printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10418		cacheid=xorg_cv_cc_flag__Warray_bounds
10419		if eval test \${$cacheid+y}
10420then :
10421  printf %s "(cached) " >&6
10422else case e in #(
10423  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424/* end confdefs.h.  */
10425int i;
10426int
10427main (void)
10428{
10429
10430  ;
10431  return 0;
10432}
10433_ACEOF
10434if ac_fn_c_try_link "$LINENO"
10435then :
10436  eval $cacheid=yes
10437else case e in #(
10438  e) eval $cacheid=no ;;
10439esac
10440fi
10441rm -f core conftest.err conftest.$ac_objext conftest.beam \
10442    conftest$ac_exeext conftest.$ac_ext ;;
10443esac
10444fi
10445
10446
10447		CFLAGS="$xorg_testset_save_CFLAGS"
10448
10449		eval supported=\$$cacheid
10450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10451printf "%s\n" "$supported" >&6; }
10452		if test "$supported" = "yes" ; then
10453			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10454			found="yes"
10455		fi
10456	fi
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472xorg_testset_save_CFLAGS="$CFLAGS"
10473
10474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10478if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10479then :
10480  printf %s "(cached) " >&6
10481else case e in #(
10482  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h.  */
10484int i;
10485_ACEOF
10486if ac_fn_c_try_compile "$LINENO"
10487then :
10488  xorg_cv_cc_flag_unknown_warning_option=yes
10489else case e in #(
10490  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10491esac
10492fi
10493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10494esac
10495fi
10496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10498	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10499	CFLAGS="$xorg_testset_save_CFLAGS"
10500fi
10501
10502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10503	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10504		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10505	fi
10506	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10509if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10510then :
10511  printf %s "(cached) " >&6
10512else case e in #(
10513  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515int i;
10516_ACEOF
10517if ac_fn_c_try_compile "$LINENO"
10518then :
10519  xorg_cv_cc_flag_unused_command_line_argument=yes
10520else case e in #(
10521  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10522esac
10523fi
10524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10525esac
10526fi
10527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10530	CFLAGS="$xorg_testset_save_CFLAGS"
10531fi
10532
10533found="no"
10534
10535	if test $found = "no" ; then
10536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10538		fi
10539
10540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10542		fi
10543
10544		CFLAGS="$CFLAGS -Wwrite-strings"
10545
10546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10547printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10548		cacheid=xorg_cv_cc_flag__Wwrite_strings
10549		if eval test \${$cacheid+y}
10550then :
10551  printf %s "(cached) " >&6
10552else case e in #(
10553  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554/* end confdefs.h.  */
10555int i;
10556int
10557main (void)
10558{
10559
10560  ;
10561  return 0;
10562}
10563_ACEOF
10564if ac_fn_c_try_link "$LINENO"
10565then :
10566  eval $cacheid=yes
10567else case e in #(
10568  e) eval $cacheid=no ;;
10569esac
10570fi
10571rm -f core conftest.err conftest.$ac_objext conftest.beam \
10572    conftest$ac_exeext conftest.$ac_ext ;;
10573esac
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 -Wwrite-strings"
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 case e in #(
10612  e) 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 case e in #(
10620  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10621esac
10622fi
10623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10624esac
10625fi
10626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10627printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10629	CFLAGS="$xorg_testset_save_CFLAGS"
10630fi
10631
10632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10635	fi
10636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10638printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10639if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10640then :
10641  printf %s "(cached) " >&6
10642else case e in #(
10643  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644/* end confdefs.h.  */
10645int i;
10646_ACEOF
10647if ac_fn_c_try_compile "$LINENO"
10648then :
10649  xorg_cv_cc_flag_unused_command_line_argument=yes
10650else case e in #(
10651  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10652esac
10653fi
10654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10655esac
10656fi
10657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10658printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10659	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10660	CFLAGS="$xorg_testset_save_CFLAGS"
10661fi
10662
10663found="no"
10664
10665	if test $found = "no" ; then
10666		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10667			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10668		fi
10669
10670		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10671			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10672		fi
10673
10674		CFLAGS="$CFLAGS -Waddress"
10675
10676		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10677printf %s "checking if $CC supports -Waddress... " >&6; }
10678		cacheid=xorg_cv_cc_flag__Waddress
10679		if eval test \${$cacheid+y}
10680then :
10681  printf %s "(cached) " >&6
10682else case e in #(
10683  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684/* end confdefs.h.  */
10685int i;
10686int
10687main (void)
10688{
10689
10690  ;
10691  return 0;
10692}
10693_ACEOF
10694if ac_fn_c_try_link "$LINENO"
10695then :
10696  eval $cacheid=yes
10697else case e in #(
10698  e) eval $cacheid=no ;;
10699esac
10700fi
10701rm -f core conftest.err conftest.$ac_objext conftest.beam \
10702    conftest$ac_exeext conftest.$ac_ext ;;
10703esac
10704fi
10705
10706
10707		CFLAGS="$xorg_testset_save_CFLAGS"
10708
10709		eval supported=\$$cacheid
10710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10711printf "%s\n" "$supported" >&6; }
10712		if test "$supported" = "yes" ; then
10713			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10714			found="yes"
10715		fi
10716	fi
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732xorg_testset_save_CFLAGS="$CFLAGS"
10733
10734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10737printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10738if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10739then :
10740  printf %s "(cached) " >&6
10741else case e in #(
10742  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743/* end confdefs.h.  */
10744int i;
10745_ACEOF
10746if ac_fn_c_try_compile "$LINENO"
10747then :
10748  xorg_cv_cc_flag_unknown_warning_option=yes
10749else case e in #(
10750  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10751esac
10752fi
10753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10754esac
10755fi
10756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10759	CFLAGS="$xorg_testset_save_CFLAGS"
10760fi
10761
10762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10765	fi
10766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10769if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10770then :
10771  printf %s "(cached) " >&6
10772else case e in #(
10773  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774/* end confdefs.h.  */
10775int i;
10776_ACEOF
10777if ac_fn_c_try_compile "$LINENO"
10778then :
10779  xorg_cv_cc_flag_unused_command_line_argument=yes
10780else case e in #(
10781  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10782esac
10783fi
10784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10785esac
10786fi
10787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10788printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10790	CFLAGS="$xorg_testset_save_CFLAGS"
10791fi
10792
10793found="no"
10794
10795	if test $found = "no" ; then
10796		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10798		fi
10799
10800		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10802		fi
10803
10804		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10805
10806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10807printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10808		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10809		if eval test \${$cacheid+y}
10810then :
10811  printf %s "(cached) " >&6
10812else case e in #(
10813  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815int i;
10816int
10817main (void)
10818{
10819
10820  ;
10821  return 0;
10822}
10823_ACEOF
10824if ac_fn_c_try_link "$LINENO"
10825then :
10826  eval $cacheid=yes
10827else case e in #(
10828  e) eval $cacheid=no ;;
10829esac
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.beam \
10832    conftest$ac_exeext conftest.$ac_ext ;;
10833esac
10834fi
10835
10836
10837		CFLAGS="$xorg_testset_save_CFLAGS"
10838
10839		eval supported=\$$cacheid
10840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10841printf "%s\n" "$supported" >&6; }
10842		if test "$supported" = "yes" ; then
10843			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10844			found="yes"
10845		fi
10846	fi
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862xorg_testset_save_CFLAGS="$CFLAGS"
10863
10864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10867printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10868if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10869then :
10870  printf %s "(cached) " >&6
10871else case e in #(
10872  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873/* end confdefs.h.  */
10874int i;
10875_ACEOF
10876if ac_fn_c_try_compile "$LINENO"
10877then :
10878  xorg_cv_cc_flag_unknown_warning_option=yes
10879else case e in #(
10880  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10881esac
10882fi
10883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10884esac
10885fi
10886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10887printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10888	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10889	CFLAGS="$xorg_testset_save_CFLAGS"
10890fi
10891
10892if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10893	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10894		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10895	fi
10896	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10898printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10899if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10900then :
10901  printf %s "(cached) " >&6
10902else case e in #(
10903  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904/* end confdefs.h.  */
10905int i;
10906_ACEOF
10907if ac_fn_c_try_compile "$LINENO"
10908then :
10909  xorg_cv_cc_flag_unused_command_line_argument=yes
10910else case e in #(
10911  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10912esac
10913fi
10914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10915esac
10916fi
10917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10919	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10920	CFLAGS="$xorg_testset_save_CFLAGS"
10921fi
10922
10923found="no"
10924
10925	if test $found = "no" ; then
10926		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10928		fi
10929
10930		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10932		fi
10933
10934		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10935
10936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10937printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10938		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10939		if eval test \${$cacheid+y}
10940then :
10941  printf %s "(cached) " >&6
10942else case e in #(
10943  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h.  */
10945int i;
10946int
10947main (void)
10948{
10949
10950  ;
10951  return 0;
10952}
10953_ACEOF
10954if ac_fn_c_try_link "$LINENO"
10955then :
10956  eval $cacheid=yes
10957else case e in #(
10958  e) eval $cacheid=no ;;
10959esac
10960fi
10961rm -f core conftest.err conftest.$ac_objext conftest.beam \
10962    conftest$ac_exeext conftest.$ac_ext ;;
10963esac
10964fi
10965
10966
10967		CFLAGS="$xorg_testset_save_CFLAGS"
10968
10969		eval supported=\$$cacheid
10970		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10971printf "%s\n" "$supported" >&6; }
10972		if test "$supported" = "yes" ; then
10973			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10974			found="yes"
10975		fi
10976	fi
10977
10978
10979fi
10980
10981
10982
10983
10984
10985
10986
10987		CWARNFLAGS="$BASE_CFLAGS"
10988		if  test "x$GCC" = xyes ; then
10989		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10990		fi
10991
10992
10993
10994
10995
10996
10997
10998
10999# Check whether --enable-strict-compilation was given.
11000if test ${enable_strict_compilation+y}
11001then :
11002  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11003else case e in #(
11004  e) STRICT_COMPILE=no ;;
11005esac
11006fi
11007
11008
11009
11010
11011
11012
11013STRICT_CFLAGS=""
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027xorg_testset_save_CFLAGS="$CFLAGS"
11028
11029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11031	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11033if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11034then :
11035  printf %s "(cached) " >&6
11036else case e in #(
11037  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038/* end confdefs.h.  */
11039int i;
11040_ACEOF
11041if ac_fn_c_try_compile "$LINENO"
11042then :
11043  xorg_cv_cc_flag_unknown_warning_option=yes
11044else case e in #(
11045  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11046esac
11047fi
11048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11049esac
11050fi
11051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11053	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11054	CFLAGS="$xorg_testset_save_CFLAGS"
11055fi
11056
11057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11058	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11060	fi
11061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11064if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11065then :
11066  printf %s "(cached) " >&6
11067else case e in #(
11068  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h.  */
11070int i;
11071_ACEOF
11072if ac_fn_c_try_compile "$LINENO"
11073then :
11074  xorg_cv_cc_flag_unused_command_line_argument=yes
11075else case e in #(
11076  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11077esac
11078fi
11079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11080esac
11081fi
11082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11083printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11085	CFLAGS="$xorg_testset_save_CFLAGS"
11086fi
11087
11088found="no"
11089
11090	if test $found = "no" ; then
11091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11093		fi
11094
11095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11097		fi
11098
11099		CFLAGS="$CFLAGS -pedantic"
11100
11101		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11102printf %s "checking if $CC supports -pedantic... " >&6; }
11103		cacheid=xorg_cv_cc_flag__pedantic
11104		if eval test \${$cacheid+y}
11105then :
11106  printf %s "(cached) " >&6
11107else case e in #(
11108  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109/* end confdefs.h.  */
11110int i;
11111int
11112main (void)
11113{
11114
11115  ;
11116  return 0;
11117}
11118_ACEOF
11119if ac_fn_c_try_link "$LINENO"
11120then :
11121  eval $cacheid=yes
11122else case e in #(
11123  e) eval $cacheid=no ;;
11124esac
11125fi
11126rm -f core conftest.err conftest.$ac_objext conftest.beam \
11127    conftest$ac_exeext conftest.$ac_ext ;;
11128esac
11129fi
11130
11131
11132		CFLAGS="$xorg_testset_save_CFLAGS"
11133
11134		eval supported=\$$cacheid
11135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11136printf "%s\n" "$supported" >&6; }
11137		if test "$supported" = "yes" ; then
11138			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11139			found="yes"
11140		fi
11141	fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157xorg_testset_save_CFLAGS="$CFLAGS"
11158
11159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11161	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11163if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11164then :
11165  printf %s "(cached) " >&6
11166else case e in #(
11167  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168/* end confdefs.h.  */
11169int i;
11170_ACEOF
11171if ac_fn_c_try_compile "$LINENO"
11172then :
11173  xorg_cv_cc_flag_unknown_warning_option=yes
11174else case e in #(
11175  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11176esac
11177fi
11178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11179esac
11180fi
11181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11183	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11184	CFLAGS="$xorg_testset_save_CFLAGS"
11185fi
11186
11187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11188	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11189		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11190	fi
11191	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11192	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11194if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11195then :
11196  printf %s "(cached) " >&6
11197else case e in #(
11198  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199/* end confdefs.h.  */
11200int i;
11201_ACEOF
11202if ac_fn_c_try_compile "$LINENO"
11203then :
11204  xorg_cv_cc_flag_unused_command_line_argument=yes
11205else case e in #(
11206  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11207esac
11208fi
11209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11210esac
11211fi
11212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11215	CFLAGS="$xorg_testset_save_CFLAGS"
11216fi
11217
11218found="no"
11219
11220	if test $found = "no" ; then
11221		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11223		fi
11224
11225		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11227		fi
11228
11229		CFLAGS="$CFLAGS -Werror"
11230
11231		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11232printf %s "checking if $CC supports -Werror... " >&6; }
11233		cacheid=xorg_cv_cc_flag__Werror
11234		if eval test \${$cacheid+y}
11235then :
11236  printf %s "(cached) " >&6
11237else case e in #(
11238  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239/* end confdefs.h.  */
11240int i;
11241int
11242main (void)
11243{
11244
11245  ;
11246  return 0;
11247}
11248_ACEOF
11249if ac_fn_c_try_link "$LINENO"
11250then :
11251  eval $cacheid=yes
11252else case e in #(
11253  e) eval $cacheid=no ;;
11254esac
11255fi
11256rm -f core conftest.err conftest.$ac_objext conftest.beam \
11257    conftest$ac_exeext conftest.$ac_ext ;;
11258esac
11259fi
11260
11261
11262		CFLAGS="$xorg_testset_save_CFLAGS"
11263
11264		eval supported=\$$cacheid
11265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11266printf "%s\n" "$supported" >&6; }
11267		if test "$supported" = "yes" ; then
11268			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11269			found="yes"
11270		fi
11271	fi
11272
11273	if test $found = "no" ; then
11274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11276		fi
11277
11278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11280		fi
11281
11282		CFLAGS="$CFLAGS -errwarn"
11283
11284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11285printf %s "checking if $CC supports -errwarn... " >&6; }
11286		cacheid=xorg_cv_cc_flag__errwarn
11287		if eval test \${$cacheid+y}
11288then :
11289  printf %s "(cached) " >&6
11290else case e in #(
11291  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292/* end confdefs.h.  */
11293int i;
11294int
11295main (void)
11296{
11297
11298  ;
11299  return 0;
11300}
11301_ACEOF
11302if ac_fn_c_try_link "$LINENO"
11303then :
11304  eval $cacheid=yes
11305else case e in #(
11306  e) eval $cacheid=no ;;
11307esac
11308fi
11309rm -f core conftest.err conftest.$ac_objext conftest.beam \
11310    conftest$ac_exeext conftest.$ac_ext ;;
11311esac
11312fi
11313
11314
11315		CFLAGS="$xorg_testset_save_CFLAGS"
11316
11317		eval supported=\$$cacheid
11318		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11319printf "%s\n" "$supported" >&6; }
11320		if test "$supported" = "yes" ; then
11321			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11322			found="yes"
11323		fi
11324	fi
11325
11326
11327
11328# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11329# activate it with -Werror, so we add it here explicitly.
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343xorg_testset_save_CFLAGS="$CFLAGS"
11344
11345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11349if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11350then :
11351  printf %s "(cached) " >&6
11352else case e in #(
11353  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354/* end confdefs.h.  */
11355int i;
11356_ACEOF
11357if ac_fn_c_try_compile "$LINENO"
11358then :
11359  xorg_cv_cc_flag_unknown_warning_option=yes
11360else case e in #(
11361  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11362esac
11363fi
11364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11365esac
11366fi
11367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11370	CFLAGS="$xorg_testset_save_CFLAGS"
11371fi
11372
11373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11376	fi
11377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11380if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11381then :
11382  printf %s "(cached) " >&6
11383else case e in #(
11384  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385/* end confdefs.h.  */
11386int i;
11387_ACEOF
11388if ac_fn_c_try_compile "$LINENO"
11389then :
11390  xorg_cv_cc_flag_unused_command_line_argument=yes
11391else case e in #(
11392  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11393esac
11394fi
11395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11396esac
11397fi
11398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11399printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11401	CFLAGS="$xorg_testset_save_CFLAGS"
11402fi
11403
11404found="no"
11405
11406	if test $found = "no" ; then
11407		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11409		fi
11410
11411		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11413		fi
11414
11415		CFLAGS="$CFLAGS -Werror=attributes"
11416
11417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11418printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11419		cacheid=xorg_cv_cc_flag__Werror_attributes
11420		if eval test \${$cacheid+y}
11421then :
11422  printf %s "(cached) " >&6
11423else case e in #(
11424  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425/* end confdefs.h.  */
11426int i;
11427int
11428main (void)
11429{
11430
11431  ;
11432  return 0;
11433}
11434_ACEOF
11435if ac_fn_c_try_link "$LINENO"
11436then :
11437  eval $cacheid=yes
11438else case e in #(
11439  e) eval $cacheid=no ;;
11440esac
11441fi
11442rm -f core conftest.err conftest.$ac_objext conftest.beam \
11443    conftest$ac_exeext conftest.$ac_ext ;;
11444esac
11445fi
11446
11447
11448		CFLAGS="$xorg_testset_save_CFLAGS"
11449
11450		eval supported=\$$cacheid
11451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11452printf "%s\n" "$supported" >&6; }
11453		if test "$supported" = "yes" ; then
11454			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11455			found="yes"
11456		fi
11457	fi
11458
11459
11460
11461if test "x$STRICT_COMPILE" = "xyes"; then
11462    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11463    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11464fi
11465
11466
11467
11468
11469
11470
11471
11472
11473cat >>confdefs.h <<_ACEOF
11474#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11475_ACEOF
11476
11477	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11478	if test "x$PVM" = "x"; then
11479		PVM="0"
11480	fi
11481
11482printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11483
11484	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11485	if test "x$PVP" = "x"; then
11486		PVP="0"
11487	fi
11488
11489printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11490
11491
11492
11493CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11494mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11495|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11496touch \$(top_srcdir)/ChangeLog; \
11497echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11498
11499
11500
11501
11502macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11503INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11504mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11505|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11506touch \$(top_srcdir)/INSTALL; \
11507echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11508
11509
11510
11511
11512
11513
11514case $host_os in
11515    solaris*)
11516        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11517        # check for a man page file found in later versions that use
11518        # traditional section numbers instead
11519        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11520printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11521if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11522then :
11523  printf %s "(cached) " >&6
11524else case e in #(
11525  e) test "$cross_compiling" = yes &&
11526  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11527if test -r "/usr/share/man/man7/attributes.7"; then
11528  ac_cv_file__usr_share_man_man7_attributes_7=yes
11529else
11530  ac_cv_file__usr_share_man_man7_attributes_7=no
11531fi ;;
11532esac
11533fi
11534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11535printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11536if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11537then :
11538  SYSV_MAN_SECTIONS=false
11539else case e in #(
11540  e) SYSV_MAN_SECTIONS=true ;;
11541esac
11542fi
11543
11544        ;;
11545    *) SYSV_MAN_SECTIONS=false ;;
11546esac
11547
11548if test x$APP_MAN_SUFFIX = x    ; then
11549    APP_MAN_SUFFIX=1
11550fi
11551if test x$APP_MAN_DIR = x    ; then
11552    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11553fi
11554
11555if test x$LIB_MAN_SUFFIX = x    ; then
11556    LIB_MAN_SUFFIX=3
11557fi
11558if test x$LIB_MAN_DIR = x    ; then
11559    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11560fi
11561
11562if test x$FILE_MAN_SUFFIX = x    ; then
11563    case $SYSV_MAN_SECTIONS in
11564	true)				FILE_MAN_SUFFIX=4  ;;
11565	*)				FILE_MAN_SUFFIX=5  ;;
11566    esac
11567fi
11568if test x$FILE_MAN_DIR = x    ; then
11569    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11570fi
11571
11572if test x$MISC_MAN_SUFFIX = x    ; then
11573    case $SYSV_MAN_SECTIONS in
11574	true)				MISC_MAN_SUFFIX=5  ;;
11575	*)				MISC_MAN_SUFFIX=7  ;;
11576    esac
11577fi
11578if test x$MISC_MAN_DIR = x    ; then
11579    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11580fi
11581
11582if test x$DRIVER_MAN_SUFFIX = x    ; then
11583    case $SYSV_MAN_SECTIONS in
11584	true)				DRIVER_MAN_SUFFIX=7  ;;
11585	*)				DRIVER_MAN_SUFFIX=4  ;;
11586    esac
11587fi
11588if test x$DRIVER_MAN_DIR = x    ; then
11589    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11590fi
11591
11592if test x$ADMIN_MAN_SUFFIX = x    ; then
11593    case $SYSV_MAN_SECTIONS in
11594	true)				ADMIN_MAN_SUFFIX=1m ;;
11595	*)				ADMIN_MAN_SUFFIX=8  ;;
11596    esac
11597fi
11598if test x$ADMIN_MAN_DIR = x    ; then
11599    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11600fi
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616XORG_MAN_PAGE="X Version 11"
11617
11618MAN_SUBSTS="\
11619	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11620	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11621	-e 's|__xservername__|Xorg|g' \
11622	-e 's|__xconfigfile__|xorg.conf|g' \
11623	-e 's|__projectroot__|\$(prefix)|g' \
11624	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11625	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11626	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11627	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11628	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11629	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11630	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11631
11632
11633
11634# Check whether --enable-silent-rules was given.
11635if test ${enable_silent_rules+y}
11636then :
11637  enableval=$enable_silent_rules;
11638fi
11639
11640case $enable_silent_rules in # (((
11641  yes) AM_DEFAULT_VERBOSITY=0;;
11642   no) AM_DEFAULT_VERBOSITY=1;;
11643    *) AM_DEFAULT_VERBOSITY=0;;
11644esac
11645am_make=${MAKE-make}
11646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11647printf %s "checking whether $am_make supports nested variables... " >&6; }
11648if test ${am_cv_make_support_nested_variables+y}
11649then :
11650  printf %s "(cached) " >&6
11651else case e in #(
11652  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11653BAR0=false
11654BAR1=true
11655V=1
11656am__doit:
11657	@$(TRUE)
11658.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11659  am_cv_make_support_nested_variables=yes
11660else
11661  am_cv_make_support_nested_variables=no
11662fi ;;
11663esac
11664fi
11665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11666printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11667if test $am_cv_make_support_nested_variables = yes; then
11668    AM_V='$(V)'
11669  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11670else
11671  AM_V=$AM_DEFAULT_VERBOSITY
11672  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11673fi
11674AM_BACKSLASH='\'
11675
11676
11677
11678
11679# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
11680
11681
11682# Initialize libtool
11683case `pwd` in
11684  *\ * | *\	*)
11685    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11686printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11687esac
11688
11689
11690
11691macro_version='2.4.7'
11692macro_revision='2.4.7'
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707ltmain=$ac_aux_dir/ltmain.sh
11708
11709# Backslashify metacharacters that are still active within
11710# double-quoted strings.
11711sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11712
11713# Same as above, but do not quote variable references.
11714double_quote_subst='s/\(["`\\]\)/\\\1/g'
11715
11716# Sed substitution to delay expansion of an escaped shell variable in a
11717# double_quote_subst'ed string.
11718delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11719
11720# Sed substitution to delay expansion of an escaped single quote.
11721delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11722
11723# Sed substitution to avoid accidental globbing in evaled expressions
11724no_glob_subst='s/\*/\\\*/g'
11725
11726ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11727ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11728ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11729
11730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11731printf %s "checking how to print strings... " >&6; }
11732# Test print first, because it will be a builtin if present.
11733if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11734   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11735  ECHO='print -r --'
11736elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11737  ECHO='printf %s\n'
11738else
11739  # Use this function as a fallback that always works.
11740  func_fallback_echo ()
11741  {
11742    eval 'cat <<_LTECHO_EOF
11743$1
11744_LTECHO_EOF'
11745  }
11746  ECHO='func_fallback_echo'
11747fi
11748
11749# func_echo_all arg...
11750# Invoke $ECHO with all args, space-separated.
11751func_echo_all ()
11752{
11753    $ECHO ""
11754}
11755
11756case $ECHO in
11757  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11758printf "%s\n" "printf" >&6; } ;;
11759  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11760printf "%s\n" "print -r" >&6; } ;;
11761  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11762printf "%s\n" "cat" >&6; } ;;
11763esac
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11779printf %s "checking for a sed that does not truncate output... " >&6; }
11780if test ${ac_cv_path_SED+y}
11781then :
11782  printf %s "(cached) " >&6
11783else case e in #(
11784  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11785     for ac_i in 1 2 3 4 5 6 7; do
11786       ac_script="$ac_script$as_nl$ac_script"
11787     done
11788     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11789     { ac_script=; unset ac_script;}
11790     if test -z "$SED"; then
11791  ac_path_SED_found=false
11792  # Loop through the user's path and test for each of PROGNAME-LIST
11793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794for as_dir in $PATH
11795do
11796  IFS=$as_save_IFS
11797  case $as_dir in #(((
11798    '') as_dir=./ ;;
11799    */) ;;
11800    *) as_dir=$as_dir/ ;;
11801  esac
11802    for ac_prog in sed gsed
11803   do
11804    for ac_exec_ext in '' $ac_executable_extensions; do
11805      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11806      as_fn_executable_p "$ac_path_SED" || continue
11807# Check for GNU ac_path_SED and select it if it is found.
11808  # Check for GNU $ac_path_SED
11809case `"$ac_path_SED" --version 2>&1` in #(
11810*GNU*)
11811  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11812#(
11813*)
11814  ac_count=0
11815  printf %s 0123456789 >"conftest.in"
11816  while :
11817  do
11818    cat "conftest.in" "conftest.in" >"conftest.tmp"
11819    mv "conftest.tmp" "conftest.in"
11820    cp "conftest.in" "conftest.nl"
11821    printf "%s\n" '' >> "conftest.nl"
11822    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11823    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11824    as_fn_arith $ac_count + 1 && ac_count=$as_val
11825    if test $ac_count -gt ${ac_path_SED_max-0}; then
11826      # Best one so far, save it but keep looking for a better one
11827      ac_cv_path_SED="$ac_path_SED"
11828      ac_path_SED_max=$ac_count
11829    fi
11830    # 10*(2^10) chars as input seems more than enough
11831    test $ac_count -gt 10 && break
11832  done
11833  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11834esac
11835
11836      $ac_path_SED_found && break 3
11837    done
11838  done
11839  done
11840IFS=$as_save_IFS
11841  if test -z "$ac_cv_path_SED"; then
11842    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11843  fi
11844else
11845  ac_cv_path_SED=$SED
11846fi
11847 ;;
11848esac
11849fi
11850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11851printf "%s\n" "$ac_cv_path_SED" >&6; }
11852 SED="$ac_cv_path_SED"
11853  rm -f conftest.sed
11854
11855test -z "$SED" && SED=sed
11856Xsed="$SED -e 1s/^X//"
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11869printf %s "checking for grep that handles long lines and -e... " >&6; }
11870if test ${ac_cv_path_GREP+y}
11871then :
11872  printf %s "(cached) " >&6
11873else case e in #(
11874  e) if test -z "$GREP"; then
11875  ac_path_GREP_found=false
11876  # Loop through the user's path and test for each of PROGNAME-LIST
11877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11879do
11880  IFS=$as_save_IFS
11881  case $as_dir in #(((
11882    '') as_dir=./ ;;
11883    */) ;;
11884    *) as_dir=$as_dir/ ;;
11885  esac
11886    for ac_prog in grep ggrep
11887   do
11888    for ac_exec_ext in '' $ac_executable_extensions; do
11889      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11890      as_fn_executable_p "$ac_path_GREP" || continue
11891# Check for GNU ac_path_GREP and select it if it is found.
11892  # Check for GNU $ac_path_GREP
11893case `"$ac_path_GREP" --version 2>&1` in #(
11894*GNU*)
11895  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11896#(
11897*)
11898  ac_count=0
11899  printf %s 0123456789 >"conftest.in"
11900  while :
11901  do
11902    cat "conftest.in" "conftest.in" >"conftest.tmp"
11903    mv "conftest.tmp" "conftest.in"
11904    cp "conftest.in" "conftest.nl"
11905    printf "%s\n" 'GREP' >> "conftest.nl"
11906    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11907    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11908    as_fn_arith $ac_count + 1 && ac_count=$as_val
11909    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11910      # Best one so far, save it but keep looking for a better one
11911      ac_cv_path_GREP="$ac_path_GREP"
11912      ac_path_GREP_max=$ac_count
11913    fi
11914    # 10*(2^10) chars as input seems more than enough
11915    test $ac_count -gt 10 && break
11916  done
11917  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11918esac
11919
11920      $ac_path_GREP_found && break 3
11921    done
11922  done
11923  done
11924IFS=$as_save_IFS
11925  if test -z "$ac_cv_path_GREP"; then
11926    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11927  fi
11928else
11929  ac_cv_path_GREP=$GREP
11930fi
11931 ;;
11932esac
11933fi
11934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11935printf "%s\n" "$ac_cv_path_GREP" >&6; }
11936 GREP="$ac_cv_path_GREP"
11937
11938
11939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11940printf %s "checking for egrep... " >&6; }
11941if test ${ac_cv_path_EGREP+y}
11942then :
11943  printf %s "(cached) " >&6
11944else case e in #(
11945  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11946   then ac_cv_path_EGREP="$GREP -E"
11947   else
11948     if test -z "$EGREP"; then
11949  ac_path_EGREP_found=false
11950  # Loop through the user's path and test for each of PROGNAME-LIST
11951  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11953do
11954  IFS=$as_save_IFS
11955  case $as_dir in #(((
11956    '') as_dir=./ ;;
11957    */) ;;
11958    *) as_dir=$as_dir/ ;;
11959  esac
11960    for ac_prog in egrep
11961   do
11962    for ac_exec_ext in '' $ac_executable_extensions; do
11963      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11964      as_fn_executable_p "$ac_path_EGREP" || continue
11965# Check for GNU ac_path_EGREP and select it if it is found.
11966  # Check for GNU $ac_path_EGREP
11967case `"$ac_path_EGREP" --version 2>&1` in #(
11968*GNU*)
11969  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11970#(
11971*)
11972  ac_count=0
11973  printf %s 0123456789 >"conftest.in"
11974  while :
11975  do
11976    cat "conftest.in" "conftest.in" >"conftest.tmp"
11977    mv "conftest.tmp" "conftest.in"
11978    cp "conftest.in" "conftest.nl"
11979    printf "%s\n" 'EGREP' >> "conftest.nl"
11980    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11981    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11982    as_fn_arith $ac_count + 1 && ac_count=$as_val
11983    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11984      # Best one so far, save it but keep looking for a better one
11985      ac_cv_path_EGREP="$ac_path_EGREP"
11986      ac_path_EGREP_max=$ac_count
11987    fi
11988    # 10*(2^10) chars as input seems more than enough
11989    test $ac_count -gt 10 && break
11990  done
11991  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11992esac
11993
11994      $ac_path_EGREP_found && break 3
11995    done
11996  done
11997  done
11998IFS=$as_save_IFS
11999  if test -z "$ac_cv_path_EGREP"; then
12000    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12001  fi
12002else
12003  ac_cv_path_EGREP=$EGREP
12004fi
12005
12006   fi ;;
12007esac
12008fi
12009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12010printf "%s\n" "$ac_cv_path_EGREP" >&6; }
12011 EGREP="$ac_cv_path_EGREP"
12012
12013         EGREP_TRADITIONAL=$EGREP
12014 ac_cv_path_EGREP_TRADITIONAL=$EGREP
12015
12016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12017printf %s "checking for fgrep... " >&6; }
12018if test ${ac_cv_path_FGREP+y}
12019then :
12020  printf %s "(cached) " >&6
12021else case e in #(
12022  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12023   then ac_cv_path_FGREP="$GREP -F"
12024   else
12025     if test -z "$FGREP"; then
12026  ac_path_FGREP_found=false
12027  # Loop through the user's path and test for each of PROGNAME-LIST
12028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12030do
12031  IFS=$as_save_IFS
12032  case $as_dir in #(((
12033    '') as_dir=./ ;;
12034    */) ;;
12035    *) as_dir=$as_dir/ ;;
12036  esac
12037    for ac_prog in fgrep
12038   do
12039    for ac_exec_ext in '' $ac_executable_extensions; do
12040      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
12041      as_fn_executable_p "$ac_path_FGREP" || continue
12042# Check for GNU ac_path_FGREP and select it if it is found.
12043  # Check for GNU $ac_path_FGREP
12044case `"$ac_path_FGREP" --version 2>&1` in #(
12045*GNU*)
12046  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12047#(
12048*)
12049  ac_count=0
12050  printf %s 0123456789 >"conftest.in"
12051  while :
12052  do
12053    cat "conftest.in" "conftest.in" >"conftest.tmp"
12054    mv "conftest.tmp" "conftest.in"
12055    cp "conftest.in" "conftest.nl"
12056    printf "%s\n" 'FGREP' >> "conftest.nl"
12057    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12058    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12059    as_fn_arith $ac_count + 1 && ac_count=$as_val
12060    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12061      # Best one so far, save it but keep looking for a better one
12062      ac_cv_path_FGREP="$ac_path_FGREP"
12063      ac_path_FGREP_max=$ac_count
12064    fi
12065    # 10*(2^10) chars as input seems more than enough
12066    test $ac_count -gt 10 && break
12067  done
12068  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12069esac
12070
12071      $ac_path_FGREP_found && break 3
12072    done
12073  done
12074  done
12075IFS=$as_save_IFS
12076  if test -z "$ac_cv_path_FGREP"; then
12077    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12078  fi
12079else
12080  ac_cv_path_FGREP=$FGREP
12081fi
12082
12083   fi ;;
12084esac
12085fi
12086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12087printf "%s\n" "$ac_cv_path_FGREP" >&6; }
12088 FGREP="$ac_cv_path_FGREP"
12089
12090
12091test -z "$GREP" && GREP=grep
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111# Check whether --with-gnu-ld was given.
12112if test ${with_gnu_ld+y}
12113then :
12114  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12115else case e in #(
12116  e) with_gnu_ld=no ;;
12117esac
12118fi
12119
12120ac_prog=ld
12121if test yes = "$GCC"; then
12122  # Check if gcc -print-prog-name=ld gives a path.
12123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12124printf %s "checking for ld used by $CC... " >&6; }
12125  case $host in
12126  *-*-mingw*)
12127    # gcc leaves a trailing carriage return, which upsets mingw
12128    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12129  *)
12130    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12131  esac
12132  case $ac_prog in
12133    # Accept absolute paths.
12134    [\\/]* | ?:[\\/]*)
12135      re_direlt='/[^/][^/]*/\.\./'
12136      # Canonicalize the pathname of ld
12137      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12138      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12139	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12140      done
12141      test -z "$LD" && LD=$ac_prog
12142      ;;
12143  "")
12144    # If it fails, then pretend we aren't using GCC.
12145    ac_prog=ld
12146    ;;
12147  *)
12148    # If it is relative, then search for the first ld in PATH.
12149    with_gnu_ld=unknown
12150    ;;
12151  esac
12152elif test yes = "$with_gnu_ld"; then
12153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12154printf %s "checking for GNU ld... " >&6; }
12155else
12156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12157printf %s "checking for non-GNU ld... " >&6; }
12158fi
12159if test ${lt_cv_path_LD+y}
12160then :
12161  printf %s "(cached) " >&6
12162else case e in #(
12163  e) if test -z "$LD"; then
12164  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12165  for ac_dir in $PATH; do
12166    IFS=$lt_save_ifs
12167    test -z "$ac_dir" && ac_dir=.
12168    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12169      lt_cv_path_LD=$ac_dir/$ac_prog
12170      # Check to see if the program is GNU ld.  I'd rather use --version,
12171      # but apparently some variants of GNU ld only accept -v.
12172      # Break only if it was the GNU/non-GNU ld that we prefer.
12173      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12174      *GNU* | *'with BFD'*)
12175	test no != "$with_gnu_ld" && break
12176	;;
12177      *)
12178	test yes != "$with_gnu_ld" && break
12179	;;
12180      esac
12181    fi
12182  done
12183  IFS=$lt_save_ifs
12184else
12185  lt_cv_path_LD=$LD # Let the user override the test with a path.
12186fi ;;
12187esac
12188fi
12189
12190LD=$lt_cv_path_LD
12191if test -n "$LD"; then
12192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12193printf "%s\n" "$LD" >&6; }
12194else
12195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196printf "%s\n" "no" >&6; }
12197fi
12198test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12200printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12201if test ${lt_cv_prog_gnu_ld+y}
12202then :
12203  printf %s "(cached) " >&6
12204else case e in #(
12205  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
12206case `$LD -v 2>&1 </dev/null` in
12207*GNU* | *'with BFD'*)
12208  lt_cv_prog_gnu_ld=yes
12209  ;;
12210*)
12211  lt_cv_prog_gnu_ld=no
12212  ;;
12213esac ;;
12214esac
12215fi
12216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12217printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12218with_gnu_ld=$lt_cv_prog_gnu_ld
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12229printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12230if test ${lt_cv_path_NM+y}
12231then :
12232  printf %s "(cached) " >&6
12233else case e in #(
12234  e) if test -n "$NM"; then
12235  # Let the user override the test.
12236  lt_cv_path_NM=$NM
12237else
12238  lt_nm_to_check=${ac_tool_prefix}nm
12239  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12240    lt_nm_to_check="$lt_nm_to_check nm"
12241  fi
12242  for lt_tmp_nm in $lt_nm_to_check; do
12243    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12244    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12245      IFS=$lt_save_ifs
12246      test -z "$ac_dir" && ac_dir=.
12247      tmp_nm=$ac_dir/$lt_tmp_nm
12248      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12249	# Check to see if the nm accepts a BSD-compat flag.
12250	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12251	#   nm: unknown option "B" ignored
12252	# Tru64's nm complains that /dev/null is an invalid object file
12253	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12254	case $build_os in
12255	mingw*) lt_bad_file=conftest.nm/nofile ;;
12256	*) lt_bad_file=/dev/null ;;
12257	esac
12258	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12259	*$lt_bad_file* | *'Invalid file or object type'*)
12260	  lt_cv_path_NM="$tmp_nm -B"
12261	  break 2
12262	  ;;
12263	*)
12264	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12265	  */dev/null*)
12266	    lt_cv_path_NM="$tmp_nm -p"
12267	    break 2
12268	    ;;
12269	  *)
12270	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12271	    continue # so that we can try to find one that supports BSD flags
12272	    ;;
12273	  esac
12274	  ;;
12275	esac
12276      fi
12277    done
12278    IFS=$lt_save_ifs
12279  done
12280  : ${lt_cv_path_NM=no}
12281fi ;;
12282esac
12283fi
12284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12285printf "%s\n" "$lt_cv_path_NM" >&6; }
12286if test no != "$lt_cv_path_NM"; then
12287  NM=$lt_cv_path_NM
12288else
12289  # Didn't find any BSD compatible name lister, look for dumpbin.
12290  if test -n "$DUMPBIN"; then :
12291    # Let the user override the test.
12292  else
12293    if test -n "$ac_tool_prefix"; then
12294  for ac_prog in dumpbin "link -dump"
12295  do
12296    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299printf %s "checking for $ac_word... " >&6; }
12300if test ${ac_cv_prog_DUMPBIN+y}
12301then :
12302  printf %s "(cached) " >&6
12303else case e in #(
12304  e) if test -n "$DUMPBIN"; then
12305  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12306else
12307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $PATH
12309do
12310  IFS=$as_save_IFS
12311  case $as_dir in #(((
12312    '') as_dir=./ ;;
12313    */) ;;
12314    *) as_dir=$as_dir/ ;;
12315  esac
12316    for ac_exec_ext in '' $ac_executable_extensions; do
12317  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12318    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12319    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12320    break 2
12321  fi
12322done
12323  done
12324IFS=$as_save_IFS
12325
12326fi ;;
12327esac
12328fi
12329DUMPBIN=$ac_cv_prog_DUMPBIN
12330if test -n "$DUMPBIN"; then
12331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12332printf "%s\n" "$DUMPBIN" >&6; }
12333else
12334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335printf "%s\n" "no" >&6; }
12336fi
12337
12338
12339    test -n "$DUMPBIN" && break
12340  done
12341fi
12342if test -z "$DUMPBIN"; then
12343  ac_ct_DUMPBIN=$DUMPBIN
12344  for ac_prog in dumpbin "link -dump"
12345do
12346  # Extract the first word of "$ac_prog", so it can be a program name with args.
12347set dummy $ac_prog; ac_word=$2
12348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349printf %s "checking for $ac_word... " >&6; }
12350if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12351then :
12352  printf %s "(cached) " >&6
12353else case e in #(
12354  e) if test -n "$ac_ct_DUMPBIN"; then
12355  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12356else
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360  IFS=$as_save_IFS
12361  case $as_dir in #(((
12362    '') as_dir=./ ;;
12363    */) ;;
12364    *) as_dir=$as_dir/ ;;
12365  esac
12366    for ac_exec_ext in '' $ac_executable_extensions; do
12367  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12368    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12369    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12370    break 2
12371  fi
12372done
12373  done
12374IFS=$as_save_IFS
12375
12376fi ;;
12377esac
12378fi
12379ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12380if test -n "$ac_ct_DUMPBIN"; then
12381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12382printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12383else
12384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385printf "%s\n" "no" >&6; }
12386fi
12387
12388
12389  test -n "$ac_ct_DUMPBIN" && break
12390done
12391
12392  if test "x$ac_ct_DUMPBIN" = x; then
12393    DUMPBIN=":"
12394  else
12395    case $cross_compiling:$ac_tool_warned in
12396yes:)
12397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12398printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12399ac_tool_warned=yes ;;
12400esac
12401    DUMPBIN=$ac_ct_DUMPBIN
12402  fi
12403fi
12404
12405    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12406    *COFF*)
12407      DUMPBIN="$DUMPBIN -symbols -headers"
12408      ;;
12409    *)
12410      DUMPBIN=:
12411      ;;
12412    esac
12413  fi
12414
12415  if test : != "$DUMPBIN"; then
12416    NM=$DUMPBIN
12417  fi
12418fi
12419test -z "$NM" && NM=nm
12420
12421
12422
12423
12424
12425
12426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12427printf %s "checking the name lister ($NM) interface... " >&6; }
12428if test ${lt_cv_nm_interface+y}
12429then :
12430  printf %s "(cached) " >&6
12431else case e in #(
12432  e) lt_cv_nm_interface="BSD nm"
12433  echo "int some_variable = 0;" > conftest.$ac_ext
12434  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12435  (eval "$ac_compile" 2>conftest.err)
12436  cat conftest.err >&5
12437  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12438  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12439  cat conftest.err >&5
12440  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12441  cat conftest.out >&5
12442  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12443    lt_cv_nm_interface="MS dumpbin"
12444  fi
12445  rm -f conftest* ;;
12446esac
12447fi
12448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12449printf "%s\n" "$lt_cv_nm_interface" >&6; }
12450
12451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12452printf %s "checking whether ln -s works... " >&6; }
12453LN_S=$as_ln_s
12454if test "$LN_S" = "ln -s"; then
12455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12456printf "%s\n" "yes" >&6; }
12457else
12458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12459printf "%s\n" "no, using $LN_S" >&6; }
12460fi
12461
12462# find the maximum length of command line arguments
12463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12464printf %s "checking the maximum length of command line arguments... " >&6; }
12465if test ${lt_cv_sys_max_cmd_len+y}
12466then :
12467  printf %s "(cached) " >&6
12468else case e in #(
12469  e)   i=0
12470  teststring=ABCD
12471
12472  case $build_os in
12473  msdosdjgpp*)
12474    # On DJGPP, this test can blow up pretty badly due to problems in libc
12475    # (any single argument exceeding 2000 bytes causes a buffer overrun
12476    # during glob expansion).  Even if it were fixed, the result of this
12477    # check would be larger than it should be.
12478    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12479    ;;
12480
12481  gnu*)
12482    # Under GNU Hurd, this test is not required because there is
12483    # no limit to the length of command line arguments.
12484    # Libtool will interpret -1 as no limit whatsoever
12485    lt_cv_sys_max_cmd_len=-1;
12486    ;;
12487
12488  cygwin* | mingw* | cegcc*)
12489    # On Win9x/ME, this test blows up -- it succeeds, but takes
12490    # about 5 minutes as the teststring grows exponentially.
12491    # Worse, since 9x/ME are not pre-emptively multitasking,
12492    # you end up with a "frozen" computer, even though with patience
12493    # the test eventually succeeds (with a max line length of 256k).
12494    # Instead, let's just punt: use the minimum linelength reported by
12495    # all of the supported platforms: 8192 (on NT/2K/XP).
12496    lt_cv_sys_max_cmd_len=8192;
12497    ;;
12498
12499  mint*)
12500    # On MiNT this can take a long time and run out of memory.
12501    lt_cv_sys_max_cmd_len=8192;
12502    ;;
12503
12504  amigaos*)
12505    # On AmigaOS with pdksh, this test takes hours, literally.
12506    # So we just punt and use a minimum line length of 8192.
12507    lt_cv_sys_max_cmd_len=8192;
12508    ;;
12509
12510  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12511    # This has been around since 386BSD, at least.  Likely further.
12512    if test -x /sbin/sysctl; then
12513      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12514    elif test -x /usr/sbin/sysctl; then
12515      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12516    else
12517      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12518    fi
12519    # And add a safety zone
12520    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12521    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12522    ;;
12523
12524  interix*)
12525    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12526    lt_cv_sys_max_cmd_len=196608
12527    ;;
12528
12529  os2*)
12530    # The test takes a long time on OS/2.
12531    lt_cv_sys_max_cmd_len=8192
12532    ;;
12533
12534  osf*)
12535    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12536    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12537    # nice to cause kernel panics so lets avoid the loop below.
12538    # First set a reasonable default.
12539    lt_cv_sys_max_cmd_len=16384
12540    #
12541    if test -x /sbin/sysconfig; then
12542      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12543        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12544      esac
12545    fi
12546    ;;
12547  sco3.2v5*)
12548    lt_cv_sys_max_cmd_len=102400
12549    ;;
12550  sysv5* | sco5v6* | sysv4.2uw2*)
12551    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12552    if test -n "$kargmax"; then
12553      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12554    else
12555      lt_cv_sys_max_cmd_len=32768
12556    fi
12557    ;;
12558  *)
12559    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12560    if test -n "$lt_cv_sys_max_cmd_len" && \
12561       test undefined != "$lt_cv_sys_max_cmd_len"; then
12562      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12563      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12564    else
12565      # Make teststring a little bigger before we do anything with it.
12566      # a 1K string should be a reasonable start.
12567      for i in 1 2 3 4 5 6 7 8; do
12568        teststring=$teststring$teststring
12569      done
12570      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12571      # If test is not a shell built-in, we'll probably end up computing a
12572      # maximum length that is only half of the actual maximum length, but
12573      # we can't tell.
12574      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12575	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12576	      test 17 != "$i" # 1/2 MB should be enough
12577      do
12578        i=`expr $i + 1`
12579        teststring=$teststring$teststring
12580      done
12581      # Only check the string length outside the loop.
12582      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12583      teststring=
12584      # Add a significant safety factor because C++ compilers can tack on
12585      # massive amounts of additional arguments before passing them to the
12586      # linker.  It appears as though 1/2 is a usable value.
12587      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12588    fi
12589    ;;
12590  esac
12591 ;;
12592esac
12593fi
12594
12595if test -n "$lt_cv_sys_max_cmd_len"; then
12596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12597printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12598else
12599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12600printf "%s\n" "none" >&6; }
12601fi
12602max_cmd_len=$lt_cv_sys_max_cmd_len
12603
12604
12605
12606
12607
12608
12609: ${CP="cp -f"}
12610: ${MV="mv -f"}
12611: ${RM="rm -f"}
12612
12613if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12614  lt_unset=unset
12615else
12616  lt_unset=false
12617fi
12618
12619
12620
12621
12622
12623# test EBCDIC or ASCII
12624case `echo X|tr X '\101'` in
12625 A) # ASCII based system
12626    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12627  lt_SP2NL='tr \040 \012'
12628  lt_NL2SP='tr \015\012 \040\040'
12629  ;;
12630 *) # EBCDIC based system
12631  lt_SP2NL='tr \100 \n'
12632  lt_NL2SP='tr \r\n \100\100'
12633  ;;
12634esac
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12645printf %s "checking how to convert $build file names to $host format... " >&6; }
12646if test ${lt_cv_to_host_file_cmd+y}
12647then :
12648  printf %s "(cached) " >&6
12649else case e in #(
12650  e) case $host in
12651  *-*-mingw* )
12652    case $build in
12653      *-*-mingw* ) # actually msys
12654        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12655        ;;
12656      *-*-cygwin* )
12657        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12658        ;;
12659      * ) # otherwise, assume *nix
12660        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12661        ;;
12662    esac
12663    ;;
12664  *-*-cygwin* )
12665    case $build in
12666      *-*-mingw* ) # actually msys
12667        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12668        ;;
12669      *-*-cygwin* )
12670        lt_cv_to_host_file_cmd=func_convert_file_noop
12671        ;;
12672      * ) # otherwise, assume *nix
12673        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12674        ;;
12675    esac
12676    ;;
12677  * ) # unhandled hosts (and "normal" native builds)
12678    lt_cv_to_host_file_cmd=func_convert_file_noop
12679    ;;
12680esac
12681 ;;
12682esac
12683fi
12684
12685to_host_file_cmd=$lt_cv_to_host_file_cmd
12686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12687printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12688
12689
12690
12691
12692
12693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12694printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12695if test ${lt_cv_to_tool_file_cmd+y}
12696then :
12697  printf %s "(cached) " >&6
12698else case e in #(
12699  e) #assume ordinary cross tools, or native build.
12700lt_cv_to_tool_file_cmd=func_convert_file_noop
12701case $host in
12702  *-*-mingw* )
12703    case $build in
12704      *-*-mingw* ) # actually msys
12705        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12706        ;;
12707    esac
12708    ;;
12709esac
12710 ;;
12711esac
12712fi
12713
12714to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12716printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12717
12718
12719
12720
12721
12722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12723printf %s "checking for $LD option to reload object files... " >&6; }
12724if test ${lt_cv_ld_reload_flag+y}
12725then :
12726  printf %s "(cached) " >&6
12727else case e in #(
12728  e) lt_cv_ld_reload_flag='-r' ;;
12729esac
12730fi
12731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12732printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12733reload_flag=$lt_cv_ld_reload_flag
12734case $reload_flag in
12735"" | " "*) ;;
12736*) reload_flag=" $reload_flag" ;;
12737esac
12738reload_cmds='$LD$reload_flag -o $output$reload_objs'
12739case $host_os in
12740  cygwin* | mingw* | pw32* | cegcc*)
12741    if test yes != "$GCC"; then
12742      reload_cmds=false
12743    fi
12744    ;;
12745  darwin*)
12746    if test yes = "$GCC"; then
12747      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12748    else
12749      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12750    fi
12751    ;;
12752esac
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762if test -n "$ac_tool_prefix"; then
12763  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12764set dummy ${ac_tool_prefix}file; 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_FILECMD+y}
12768then :
12769  printf %s "(cached) " >&6
12770else case e in #(
12771  e) if test -n "$FILECMD"; then
12772  ac_cv_prog_FILECMD="$FILECMD" # 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_FILECMD="${ac_tool_prefix}file"
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 ;;
12794esac
12795fi
12796FILECMD=$ac_cv_prog_FILECMD
12797if test -n "$FILECMD"; then
12798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12799printf "%s\n" "$FILECMD" >&6; }
12800else
12801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802printf "%s\n" "no" >&6; }
12803fi
12804
12805
12806fi
12807if test -z "$ac_cv_prog_FILECMD"; then
12808  ac_ct_FILECMD=$FILECMD
12809  # Extract the first word of "file", so it can be a program name with args.
12810set dummy file; ac_word=$2
12811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812printf %s "checking for $ac_word... " >&6; }
12813if test ${ac_cv_prog_ac_ct_FILECMD+y}
12814then :
12815  printf %s "(cached) " >&6
12816else case e in #(
12817  e) if test -n "$ac_ct_FILECMD"; then
12818  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12819else
12820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823  IFS=$as_save_IFS
12824  case $as_dir in #(((
12825    '') as_dir=./ ;;
12826    */) ;;
12827    *) as_dir=$as_dir/ ;;
12828  esac
12829    for ac_exec_ext in '' $ac_executable_extensions; do
12830  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12831    ac_cv_prog_ac_ct_FILECMD="file"
12832    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12833    break 2
12834  fi
12835done
12836  done
12837IFS=$as_save_IFS
12838
12839fi ;;
12840esac
12841fi
12842ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12843if test -n "$ac_ct_FILECMD"; then
12844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12845printf "%s\n" "$ac_ct_FILECMD" >&6; }
12846else
12847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848printf "%s\n" "no" >&6; }
12849fi
12850
12851  if test "x$ac_ct_FILECMD" = x; then
12852    FILECMD=":"
12853  else
12854    case $cross_compiling:$ac_tool_warned in
12855yes:)
12856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12858ac_tool_warned=yes ;;
12859esac
12860    FILECMD=$ac_ct_FILECMD
12861  fi
12862else
12863  FILECMD="$ac_cv_prog_FILECMD"
12864fi
12865
12866
12867
12868
12869
12870
12871
12872if test -n "$ac_tool_prefix"; then
12873  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12874set dummy ${ac_tool_prefix}objdump; ac_word=$2
12875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876printf %s "checking for $ac_word... " >&6; }
12877if test ${ac_cv_prog_OBJDUMP+y}
12878then :
12879  printf %s "(cached) " >&6
12880else case e in #(
12881  e) if test -n "$OBJDUMP"; then
12882  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12883else
12884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885for as_dir in $PATH
12886do
12887  IFS=$as_save_IFS
12888  case $as_dir in #(((
12889    '') as_dir=./ ;;
12890    */) ;;
12891    *) as_dir=$as_dir/ ;;
12892  esac
12893    for ac_exec_ext in '' $ac_executable_extensions; do
12894  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12895    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12896    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12897    break 2
12898  fi
12899done
12900  done
12901IFS=$as_save_IFS
12902
12903fi ;;
12904esac
12905fi
12906OBJDUMP=$ac_cv_prog_OBJDUMP
12907if test -n "$OBJDUMP"; then
12908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12909printf "%s\n" "$OBJDUMP" >&6; }
12910else
12911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912printf "%s\n" "no" >&6; }
12913fi
12914
12915
12916fi
12917if test -z "$ac_cv_prog_OBJDUMP"; then
12918  ac_ct_OBJDUMP=$OBJDUMP
12919  # Extract the first word of "objdump", so it can be a program name with args.
12920set dummy objdump; ac_word=$2
12921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922printf %s "checking for $ac_word... " >&6; }
12923if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12924then :
12925  printf %s "(cached) " >&6
12926else case e in #(
12927  e) if test -n "$ac_ct_OBJDUMP"; then
12928  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12929else
12930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931for as_dir in $PATH
12932do
12933  IFS=$as_save_IFS
12934  case $as_dir in #(((
12935    '') as_dir=./ ;;
12936    */) ;;
12937    *) as_dir=$as_dir/ ;;
12938  esac
12939    for ac_exec_ext in '' $ac_executable_extensions; do
12940  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12941    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12942    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12943    break 2
12944  fi
12945done
12946  done
12947IFS=$as_save_IFS
12948
12949fi ;;
12950esac
12951fi
12952ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12953if test -n "$ac_ct_OBJDUMP"; then
12954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12955printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12956else
12957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958printf "%s\n" "no" >&6; }
12959fi
12960
12961  if test "x$ac_ct_OBJDUMP" = x; then
12962    OBJDUMP="false"
12963  else
12964    case $cross_compiling:$ac_tool_warned in
12965yes:)
12966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12967printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12968ac_tool_warned=yes ;;
12969esac
12970    OBJDUMP=$ac_ct_OBJDUMP
12971  fi
12972else
12973  OBJDUMP="$ac_cv_prog_OBJDUMP"
12974fi
12975
12976test -z "$OBJDUMP" && OBJDUMP=objdump
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12987printf %s "checking how to recognize dependent libraries... " >&6; }
12988if test ${lt_cv_deplibs_check_method+y}
12989then :
12990  printf %s "(cached) " >&6
12991else case e in #(
12992  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
12993lt_cv_file_magic_test_file=
12994lt_cv_deplibs_check_method='unknown'
12995# Need to set the preceding variable on all platforms that support
12996# interlibrary dependencies.
12997# 'none' -- dependencies not supported.
12998# 'unknown' -- same as none, but documents that we really don't know.
12999# 'pass_all' -- all dependencies passed with no checks.
13000# 'test_compile' -- check by making test program.
13001# 'file_magic [[regex]]' -- check by looking for files in library path
13002# that responds to the $file_magic_cmd with a given extended regex.
13003# If you have 'file' or equivalent on your system and you're not sure
13004# whether 'pass_all' will *always* work, you probably want this one.
13005
13006case $host_os in
13007aix[4-9]*)
13008  lt_cv_deplibs_check_method=pass_all
13009  ;;
13010
13011beos*)
13012  lt_cv_deplibs_check_method=pass_all
13013  ;;
13014
13015bsdi[45]*)
13016  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13017  lt_cv_file_magic_cmd='$FILECMD -L'
13018  lt_cv_file_magic_test_file=/shlib/libc.so
13019  ;;
13020
13021cygwin*)
13022  # func_win32_libid is a shell function defined in ltmain.sh
13023  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13024  lt_cv_file_magic_cmd='func_win32_libid'
13025  ;;
13026
13027mingw* | pw32*)
13028  # Base MSYS/MinGW do not provide the 'file' command needed by
13029  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13030  # unless we find 'file', for example because we are cross-compiling.
13031  if ( file / ) >/dev/null 2>&1; then
13032    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13033    lt_cv_file_magic_cmd='func_win32_libid'
13034  else
13035    # Keep this pattern in sync with the one in func_win32_libid.
13036    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
13037    lt_cv_file_magic_cmd='$OBJDUMP -f'
13038  fi
13039  ;;
13040
13041cegcc*)
13042  # use the weaker test based on 'objdump'. See mingw*.
13043  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13044  lt_cv_file_magic_cmd='$OBJDUMP -f'
13045  ;;
13046
13047darwin* | rhapsody*)
13048  lt_cv_deplibs_check_method=pass_all
13049  ;;
13050
13051freebsd* | dragonfly* | midnightbsd*)
13052  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13053    case $host_cpu in
13054    i*86 )
13055      # Not sure whether the presence of OpenBSD here was a mistake.
13056      # Let's accept both of them until this is cleared up.
13057      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13058      lt_cv_file_magic_cmd=$FILECMD
13059      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13060      ;;
13061    esac
13062  else
13063    lt_cv_deplibs_check_method=pass_all
13064  fi
13065  ;;
13066
13067haiku*)
13068  lt_cv_deplibs_check_method=pass_all
13069  ;;
13070
13071hpux10.20* | hpux11*)
13072  lt_cv_file_magic_cmd=$FILECMD
13073  case $host_cpu in
13074  ia64*)
13075    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13076    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13077    ;;
13078  hppa*64*)
13079    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]'
13080    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13081    ;;
13082  *)
13083    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13084    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13085    ;;
13086  esac
13087  ;;
13088
13089interix[3-9]*)
13090  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13091  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13092  ;;
13093
13094irix5* | irix6* | nonstopux*)
13095  case $LD in
13096  *-32|*"-32 ") libmagic=32-bit;;
13097  *-n32|*"-n32 ") libmagic=N32;;
13098  *-64|*"-64 ") libmagic=64-bit;;
13099  *) libmagic=never-match;;
13100  esac
13101  lt_cv_deplibs_check_method=pass_all
13102  ;;
13103
13104# This must be glibc/ELF.
13105linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13106  lt_cv_deplibs_check_method=pass_all
13107  ;;
13108
13109netbsd*)
13110  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13111    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13112  else
13113    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13114  fi
13115  ;;
13116
13117newos6*)
13118  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13119  lt_cv_file_magic_cmd=$FILECMD
13120  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13121  ;;
13122
13123*nto* | *qnx*)
13124  lt_cv_deplibs_check_method=pass_all
13125  ;;
13126
13127openbsd* | bitrig*)
13128  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13129    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13130  else
13131    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13132  fi
13133  ;;
13134
13135osf3* | osf4* | osf5*)
13136  lt_cv_deplibs_check_method=pass_all
13137  ;;
13138
13139rdos*)
13140  lt_cv_deplibs_check_method=pass_all
13141  ;;
13142
13143solaris*)
13144  lt_cv_deplibs_check_method=pass_all
13145  ;;
13146
13147sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13148  lt_cv_deplibs_check_method=pass_all
13149  ;;
13150
13151sysv4 | sysv4.3*)
13152  case $host_vendor in
13153  motorola)
13154    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]'
13155    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13156    ;;
13157  ncr)
13158    lt_cv_deplibs_check_method=pass_all
13159    ;;
13160  sequent)
13161    lt_cv_file_magic_cmd='/bin/file'
13162    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13163    ;;
13164  sni)
13165    lt_cv_file_magic_cmd='/bin/file'
13166    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13167    lt_cv_file_magic_test_file=/lib/libc.so
13168    ;;
13169  siemens)
13170    lt_cv_deplibs_check_method=pass_all
13171    ;;
13172  pc)
13173    lt_cv_deplibs_check_method=pass_all
13174    ;;
13175  esac
13176  ;;
13177
13178tpf*)
13179  lt_cv_deplibs_check_method=pass_all
13180  ;;
13181os2*)
13182  lt_cv_deplibs_check_method=pass_all
13183  ;;
13184esac
13185 ;;
13186esac
13187fi
13188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13189printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13190
13191file_magic_glob=
13192want_nocaseglob=no
13193if test "$build" = "$host"; then
13194  case $host_os in
13195  mingw* | pw32*)
13196    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13197      want_nocaseglob=yes
13198    else
13199      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13200    fi
13201    ;;
13202  esac
13203fi
13204
13205file_magic_cmd=$lt_cv_file_magic_cmd
13206deplibs_check_method=$lt_cv_deplibs_check_method
13207test -z "$deplibs_check_method" && deplibs_check_method=unknown
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230if test -n "$ac_tool_prefix"; then
13231  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13232set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234printf %s "checking for $ac_word... " >&6; }
13235if test ${ac_cv_prog_DLLTOOL+y}
13236then :
13237  printf %s "(cached) " >&6
13238else case e in #(
13239  e) if test -n "$DLLTOOL"; then
13240  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13241else
13242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243for as_dir in $PATH
13244do
13245  IFS=$as_save_IFS
13246  case $as_dir in #(((
13247    '') as_dir=./ ;;
13248    */) ;;
13249    *) as_dir=$as_dir/ ;;
13250  esac
13251    for ac_exec_ext in '' $ac_executable_extensions; do
13252  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13253    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13254    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13255    break 2
13256  fi
13257done
13258  done
13259IFS=$as_save_IFS
13260
13261fi ;;
13262esac
13263fi
13264DLLTOOL=$ac_cv_prog_DLLTOOL
13265if test -n "$DLLTOOL"; then
13266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13267printf "%s\n" "$DLLTOOL" >&6; }
13268else
13269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270printf "%s\n" "no" >&6; }
13271fi
13272
13273
13274fi
13275if test -z "$ac_cv_prog_DLLTOOL"; then
13276  ac_ct_DLLTOOL=$DLLTOOL
13277  # Extract the first word of "dlltool", so it can be a program name with args.
13278set dummy dlltool; ac_word=$2
13279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13280printf %s "checking for $ac_word... " >&6; }
13281if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13282then :
13283  printf %s "(cached) " >&6
13284else case e in #(
13285  e) if test -n "$ac_ct_DLLTOOL"; then
13286  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13287else
13288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289for as_dir in $PATH
13290do
13291  IFS=$as_save_IFS
13292  case $as_dir in #(((
13293    '') as_dir=./ ;;
13294    */) ;;
13295    *) as_dir=$as_dir/ ;;
13296  esac
13297    for ac_exec_ext in '' $ac_executable_extensions; do
13298  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13299    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13300    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13301    break 2
13302  fi
13303done
13304  done
13305IFS=$as_save_IFS
13306
13307fi ;;
13308esac
13309fi
13310ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13311if test -n "$ac_ct_DLLTOOL"; then
13312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13313printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13314else
13315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316printf "%s\n" "no" >&6; }
13317fi
13318
13319  if test "x$ac_ct_DLLTOOL" = x; then
13320    DLLTOOL="false"
13321  else
13322    case $cross_compiling:$ac_tool_warned in
13323yes:)
13324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13325printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13326ac_tool_warned=yes ;;
13327esac
13328    DLLTOOL=$ac_ct_DLLTOOL
13329  fi
13330else
13331  DLLTOOL="$ac_cv_prog_DLLTOOL"
13332fi
13333
13334test -z "$DLLTOOL" && DLLTOOL=dlltool
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13346printf %s "checking how to associate runtime and link libraries... " >&6; }
13347if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13348then :
13349  printf %s "(cached) " >&6
13350else case e in #(
13351  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13352
13353case $host_os in
13354cygwin* | mingw* | pw32* | cegcc*)
13355  # two different shell functions defined in ltmain.sh;
13356  # decide which one to use based on capabilities of $DLLTOOL
13357  case `$DLLTOOL --help 2>&1` in
13358  *--identify-strict*)
13359    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13360    ;;
13361  *)
13362    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13363    ;;
13364  esac
13365  ;;
13366*)
13367  # fallback: assume linklib IS sharedlib
13368  lt_cv_sharedlib_from_linklib_cmd=$ECHO
13369  ;;
13370esac
13371 ;;
13372esac
13373fi
13374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13375printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13376sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13377test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13378
13379
13380
13381
13382
13383
13384
13385if test -n "$ac_tool_prefix"; then
13386  for ac_prog in ar
13387  do
13388    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13389set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391printf %s "checking for $ac_word... " >&6; }
13392if test ${ac_cv_prog_AR+y}
13393then :
13394  printf %s "(cached) " >&6
13395else case e in #(
13396  e) if test -n "$AR"; then
13397  ac_cv_prog_AR="$AR" # Let the user override the test.
13398else
13399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400for as_dir in $PATH
13401do
13402  IFS=$as_save_IFS
13403  case $as_dir in #(((
13404    '') as_dir=./ ;;
13405    */) ;;
13406    *) as_dir=$as_dir/ ;;
13407  esac
13408    for ac_exec_ext in '' $ac_executable_extensions; do
13409  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13410    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13411    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13412    break 2
13413  fi
13414done
13415  done
13416IFS=$as_save_IFS
13417
13418fi ;;
13419esac
13420fi
13421AR=$ac_cv_prog_AR
13422if test -n "$AR"; then
13423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13424printf "%s\n" "$AR" >&6; }
13425else
13426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427printf "%s\n" "no" >&6; }
13428fi
13429
13430
13431    test -n "$AR" && break
13432  done
13433fi
13434if test -z "$AR"; then
13435  ac_ct_AR=$AR
13436  for ac_prog in ar
13437do
13438  # Extract the first word of "$ac_prog", so it can be a program name with args.
13439set dummy $ac_prog; ac_word=$2
13440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13441printf %s "checking for $ac_word... " >&6; }
13442if test ${ac_cv_prog_ac_ct_AR+y}
13443then :
13444  printf %s "(cached) " >&6
13445else case e in #(
13446  e) if test -n "$ac_ct_AR"; then
13447  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13448else
13449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450for as_dir in $PATH
13451do
13452  IFS=$as_save_IFS
13453  case $as_dir in #(((
13454    '') as_dir=./ ;;
13455    */) ;;
13456    *) as_dir=$as_dir/ ;;
13457  esac
13458    for ac_exec_ext in '' $ac_executable_extensions; do
13459  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13460    ac_cv_prog_ac_ct_AR="$ac_prog"
13461    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13462    break 2
13463  fi
13464done
13465  done
13466IFS=$as_save_IFS
13467
13468fi ;;
13469esac
13470fi
13471ac_ct_AR=$ac_cv_prog_ac_ct_AR
13472if test -n "$ac_ct_AR"; then
13473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13474printf "%s\n" "$ac_ct_AR" >&6; }
13475else
13476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477printf "%s\n" "no" >&6; }
13478fi
13479
13480
13481  test -n "$ac_ct_AR" && break
13482done
13483
13484  if test "x$ac_ct_AR" = x; then
13485    AR="false"
13486  else
13487    case $cross_compiling:$ac_tool_warned in
13488yes:)
13489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13490printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13491ac_tool_warned=yes ;;
13492esac
13493    AR=$ac_ct_AR
13494  fi
13495fi
13496
13497: ${AR=ar}
13498
13499
13500
13501
13502
13503
13504# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13505# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13506# higher priority because thats what people were doing historically (setting
13507# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13508# variable obsoleted/removed.
13509
13510test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13511lt_ar_flags=$AR_FLAGS
13512
13513
13514
13515
13516
13517
13518# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13519# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13520
13521
13522
13523
13524
13525
13526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13527printf %s "checking for archiver @FILE support... " >&6; }
13528if test ${lt_cv_ar_at_file+y}
13529then :
13530  printf %s "(cached) " >&6
13531else case e in #(
13532  e) lt_cv_ar_at_file=no
13533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534/* end confdefs.h.  */
13535
13536int
13537main (void)
13538{
13539
13540  ;
13541  return 0;
13542}
13543_ACEOF
13544if ac_fn_c_try_compile "$LINENO"
13545then :
13546  echo conftest.$ac_objext > conftest.lst
13547      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13548      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13549  (eval $lt_ar_try) 2>&5
13550  ac_status=$?
13551  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13552  test $ac_status = 0; }
13553      if test 0 -eq "$ac_status"; then
13554	# Ensure the archiver fails upon bogus file names.
13555	rm -f conftest.$ac_objext libconftest.a
13556	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13557  (eval $lt_ar_try) 2>&5
13558  ac_status=$?
13559  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13560  test $ac_status = 0; }
13561	if test 0 -ne "$ac_status"; then
13562          lt_cv_ar_at_file=@
13563        fi
13564      fi
13565      rm -f conftest.* libconftest.a
13566
13567fi
13568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13569   ;;
13570esac
13571fi
13572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13573printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13574
13575if test no = "$lt_cv_ar_at_file"; then
13576  archiver_list_spec=
13577else
13578  archiver_list_spec=$lt_cv_ar_at_file
13579fi
13580
13581
13582
13583
13584
13585
13586
13587if test -n "$ac_tool_prefix"; then
13588  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13589set dummy ${ac_tool_prefix}strip; ac_word=$2
13590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13591printf %s "checking for $ac_word... " >&6; }
13592if test ${ac_cv_prog_STRIP+y}
13593then :
13594  printf %s "(cached) " >&6
13595else case e in #(
13596  e) if test -n "$STRIP"; then
13597  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13598else
13599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600for as_dir in $PATH
13601do
13602  IFS=$as_save_IFS
13603  case $as_dir in #(((
13604    '') as_dir=./ ;;
13605    */) ;;
13606    *) as_dir=$as_dir/ ;;
13607  esac
13608    for ac_exec_ext in '' $ac_executable_extensions; do
13609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13610    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13612    break 2
13613  fi
13614done
13615  done
13616IFS=$as_save_IFS
13617
13618fi ;;
13619esac
13620fi
13621STRIP=$ac_cv_prog_STRIP
13622if test -n "$STRIP"; then
13623  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13624printf "%s\n" "$STRIP" >&6; }
13625else
13626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627printf "%s\n" "no" >&6; }
13628fi
13629
13630
13631fi
13632if test -z "$ac_cv_prog_STRIP"; then
13633  ac_ct_STRIP=$STRIP
13634  # Extract the first word of "strip", so it can be a program name with args.
13635set dummy strip; ac_word=$2
13636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13637printf %s "checking for $ac_word... " >&6; }
13638if test ${ac_cv_prog_ac_ct_STRIP+y}
13639then :
13640  printf %s "(cached) " >&6
13641else case e in #(
13642  e) if test -n "$ac_ct_STRIP"; then
13643  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13644else
13645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646for as_dir in $PATH
13647do
13648  IFS=$as_save_IFS
13649  case $as_dir in #(((
13650    '') as_dir=./ ;;
13651    */) ;;
13652    *) as_dir=$as_dir/ ;;
13653  esac
13654    for ac_exec_ext in '' $ac_executable_extensions; do
13655  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13656    ac_cv_prog_ac_ct_STRIP="strip"
13657    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13658    break 2
13659  fi
13660done
13661  done
13662IFS=$as_save_IFS
13663
13664fi ;;
13665esac
13666fi
13667ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13668if test -n "$ac_ct_STRIP"; then
13669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13670printf "%s\n" "$ac_ct_STRIP" >&6; }
13671else
13672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673printf "%s\n" "no" >&6; }
13674fi
13675
13676  if test "x$ac_ct_STRIP" = x; then
13677    STRIP=":"
13678  else
13679    case $cross_compiling:$ac_tool_warned in
13680yes:)
13681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13683ac_tool_warned=yes ;;
13684esac
13685    STRIP=$ac_ct_STRIP
13686  fi
13687else
13688  STRIP="$ac_cv_prog_STRIP"
13689fi
13690
13691test -z "$STRIP" && STRIP=:
13692
13693
13694
13695
13696
13697
13698if test -n "$ac_tool_prefix"; then
13699  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13700set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13702printf %s "checking for $ac_word... " >&6; }
13703if test ${ac_cv_prog_RANLIB+y}
13704then :
13705  printf %s "(cached) " >&6
13706else case e in #(
13707  e) if test -n "$RANLIB"; then
13708  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13709else
13710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711for as_dir in $PATH
13712do
13713  IFS=$as_save_IFS
13714  case $as_dir in #(((
13715    '') as_dir=./ ;;
13716    */) ;;
13717    *) as_dir=$as_dir/ ;;
13718  esac
13719    for ac_exec_ext in '' $ac_executable_extensions; do
13720  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13721    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13722    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13723    break 2
13724  fi
13725done
13726  done
13727IFS=$as_save_IFS
13728
13729fi ;;
13730esac
13731fi
13732RANLIB=$ac_cv_prog_RANLIB
13733if test -n "$RANLIB"; then
13734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13735printf "%s\n" "$RANLIB" >&6; }
13736else
13737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738printf "%s\n" "no" >&6; }
13739fi
13740
13741
13742fi
13743if test -z "$ac_cv_prog_RANLIB"; then
13744  ac_ct_RANLIB=$RANLIB
13745  # Extract the first word of "ranlib", so it can be a program name with args.
13746set dummy ranlib; ac_word=$2
13747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748printf %s "checking for $ac_word... " >&6; }
13749if test ${ac_cv_prog_ac_ct_RANLIB+y}
13750then :
13751  printf %s "(cached) " >&6
13752else case e in #(
13753  e) if test -n "$ac_ct_RANLIB"; then
13754  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13755else
13756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757for as_dir in $PATH
13758do
13759  IFS=$as_save_IFS
13760  case $as_dir in #(((
13761    '') as_dir=./ ;;
13762    */) ;;
13763    *) as_dir=$as_dir/ ;;
13764  esac
13765    for ac_exec_ext in '' $ac_executable_extensions; do
13766  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13767    ac_cv_prog_ac_ct_RANLIB="ranlib"
13768    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13769    break 2
13770  fi
13771done
13772  done
13773IFS=$as_save_IFS
13774
13775fi ;;
13776esac
13777fi
13778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13779if test -n "$ac_ct_RANLIB"; then
13780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13781printf "%s\n" "$ac_ct_RANLIB" >&6; }
13782else
13783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784printf "%s\n" "no" >&6; }
13785fi
13786
13787  if test "x$ac_ct_RANLIB" = x; then
13788    RANLIB=":"
13789  else
13790    case $cross_compiling:$ac_tool_warned in
13791yes:)
13792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13793printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13794ac_tool_warned=yes ;;
13795esac
13796    RANLIB=$ac_ct_RANLIB
13797  fi
13798else
13799  RANLIB="$ac_cv_prog_RANLIB"
13800fi
13801
13802test -z "$RANLIB" && RANLIB=:
13803
13804
13805
13806
13807
13808
13809# Determine commands to create old-style static archives.
13810old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13811old_postinstall_cmds='chmod 644 $oldlib'
13812old_postuninstall_cmds=
13813
13814if test -n "$RANLIB"; then
13815  case $host_os in
13816  bitrig* | openbsd*)
13817    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13818    ;;
13819  *)
13820    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13821    ;;
13822  esac
13823  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13824fi
13825
13826case $host_os in
13827  darwin*)
13828    lock_old_archive_extraction=yes ;;
13829  *)
13830    lock_old_archive_extraction=no ;;
13831esac
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871# If no C compiler was specified, use CC.
13872LTCC=${LTCC-"$CC"}
13873
13874# If no C compiler flags were specified, use CFLAGS.
13875LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13876
13877# Allow CC to be a program name with arguments.
13878compiler=$CC
13879
13880
13881# Check for command to grab the raw symbol name followed by C symbol from nm.
13882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13883printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13884if test ${lt_cv_sys_global_symbol_pipe+y}
13885then :
13886  printf %s "(cached) " >&6
13887else case e in #(
13888  e)
13889# These are sane defaults that work on at least a few old systems.
13890# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13891
13892# Character class describing NM global symbol codes.
13893symcode='[BCDEGRST]'
13894
13895# Regexp to match symbols that can be accessed directly from C.
13896sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13897
13898# Define system-specific variables.
13899case $host_os in
13900aix*)
13901  symcode='[BCDT]'
13902  ;;
13903cygwin* | mingw* | pw32* | cegcc*)
13904  symcode='[ABCDGISTW]'
13905  ;;
13906hpux*)
13907  if test ia64 = "$host_cpu"; then
13908    symcode='[ABCDEGRST]'
13909  fi
13910  ;;
13911irix* | nonstopux*)
13912  symcode='[BCDEGRST]'
13913  ;;
13914osf*)
13915  symcode='[BCDEGQRST]'
13916  ;;
13917solaris*)
13918  symcode='[BDRT]'
13919  ;;
13920sco3.2v5*)
13921  symcode='[DT]'
13922  ;;
13923sysv4.2uw2*)
13924  symcode='[DT]'
13925  ;;
13926sysv5* | sco5v6* | unixware* | OpenUNIX*)
13927  symcode='[ABDT]'
13928  ;;
13929sysv4)
13930  symcode='[DFNSTU]'
13931  ;;
13932esac
13933
13934# If we're using GNU nm, then use its standard symbol codes.
13935case `$NM -V 2>&1` in
13936*GNU* | *'with BFD'*)
13937  symcode='[ABCDGIRSTW]' ;;
13938esac
13939
13940if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13941  # Gets list of data symbols to import.
13942  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13943  # Adjust the below global symbol transforms to fixup imported variables.
13944  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13945  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13946  lt_c_name_lib_hook="\
13947  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13948  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13949else
13950  # Disable hooks by default.
13951  lt_cv_sys_global_symbol_to_import=
13952  lt_cdecl_hook=
13953  lt_c_name_hook=
13954  lt_c_name_lib_hook=
13955fi
13956
13957# Transform an extracted symbol line into a proper C declaration.
13958# Some systems (esp. on ia64) link data and code symbols differently,
13959# so use this general approach.
13960lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13961$lt_cdecl_hook\
13962" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13963" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13964
13965# Transform an extracted symbol line into symbol name and symbol address
13966lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13967$lt_c_name_hook\
13968" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13969" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13970
13971# Transform an extracted symbol line into symbol name with lib prefix and
13972# symbol address.
13973lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13974$lt_c_name_lib_hook\
13975" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13976" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13977" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13978
13979# Handle CRLF in mingw tool chain
13980opt_cr=
13981case $build_os in
13982mingw*)
13983  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13984  ;;
13985esac
13986
13987# Try without a prefix underscore, then with it.
13988for ac_symprfx in "" "_"; do
13989
13990  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13991  symxfrm="\\1 $ac_symprfx\\2 \\2"
13992
13993  # Write the raw and C identifiers.
13994  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13995    # Fake it for dumpbin and say T for any non-static function,
13996    # D for any global variable and I for any imported variable.
13997    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13998    # which start with @ or ?.
13999    lt_cv_sys_global_symbol_pipe="$AWK '"\
14000"     {last_section=section; section=\$ 3};"\
14001"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
14002"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14003"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
14004"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
14005"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
14006"     \$ 0!~/External *\|/{next};"\
14007"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14008"     {if(hide[section]) next};"\
14009"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
14010"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
14011"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
14012"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
14013"     ' prfx=^$ac_symprfx"
14014  else
14015    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14016  fi
14017  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
14018
14019  # Check to see that the pipe works correctly.
14020  pipe_works=no
14021
14022  rm -f conftest*
14023  cat > conftest.$ac_ext <<_LT_EOF
14024#ifdef __cplusplus
14025extern "C" {
14026#endif
14027char nm_test_var;
14028void nm_test_func(void);
14029void nm_test_func(void){}
14030#ifdef __cplusplus
14031}
14032#endif
14033int main(){nm_test_var='a';nm_test_func();return(0);}
14034_LT_EOF
14035
14036  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14037  (eval $ac_compile) 2>&5
14038  ac_status=$?
14039  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14040  test $ac_status = 0; }; then
14041    # Now try to grab the symbols.
14042    nlist=conftest.nm
14043    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14044  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14045  ac_status=$?
14046  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14047  test $ac_status = 0; } && test -s "$nlist"; then
14048      # Try sorting and uniquifying the output.
14049      if sort "$nlist" | uniq > "$nlist"T; then
14050	mv -f "$nlist"T "$nlist"
14051      else
14052	rm -f "$nlist"T
14053      fi
14054
14055      # Make sure that we snagged all the symbols we need.
14056      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14057	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14058	  cat <<_LT_EOF > conftest.$ac_ext
14059/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
14060#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14061/* DATA imports from DLLs on WIN32 can't be const, because runtime
14062   relocations are performed -- see ld's documentation on pseudo-relocs.  */
14063# define LT_DLSYM_CONST
14064#elif defined __osf__
14065/* This system does not cope well with relocations in const data.  */
14066# define LT_DLSYM_CONST
14067#else
14068# define LT_DLSYM_CONST const
14069#endif
14070
14071#ifdef __cplusplus
14072extern "C" {
14073#endif
14074
14075_LT_EOF
14076	  # Now generate the symbol file.
14077	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14078
14079	  cat <<_LT_EOF >> conftest.$ac_ext
14080
14081/* The mapping between symbol names and symbols.  */
14082LT_DLSYM_CONST struct {
14083  const char *name;
14084  void       *address;
14085}
14086lt__PROGRAM__LTX_preloaded_symbols[] =
14087{
14088  { "@PROGRAM@", (void *) 0 },
14089_LT_EOF
14090	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14091	  cat <<\_LT_EOF >> conftest.$ac_ext
14092  {0, (void *) 0}
14093};
14094
14095/* This works around a problem in FreeBSD linker */
14096#ifdef FREEBSD_WORKAROUND
14097static const void *lt_preloaded_setup() {
14098  return lt__PROGRAM__LTX_preloaded_symbols;
14099}
14100#endif
14101
14102#ifdef __cplusplus
14103}
14104#endif
14105_LT_EOF
14106	  # Now try linking the two files.
14107	  mv conftest.$ac_objext conftstm.$ac_objext
14108	  lt_globsym_save_LIBS=$LIBS
14109	  lt_globsym_save_CFLAGS=$CFLAGS
14110	  LIBS=conftstm.$ac_objext
14111	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14112	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14113  (eval $ac_link) 2>&5
14114  ac_status=$?
14115  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14116  test $ac_status = 0; } && test -s conftest$ac_exeext; then
14117	    pipe_works=yes
14118	  fi
14119	  LIBS=$lt_globsym_save_LIBS
14120	  CFLAGS=$lt_globsym_save_CFLAGS
14121	else
14122	  echo "cannot find nm_test_func in $nlist" >&5
14123	fi
14124      else
14125	echo "cannot find nm_test_var in $nlist" >&5
14126      fi
14127    else
14128      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14129    fi
14130  else
14131    echo "$progname: failed program was:" >&5
14132    cat conftest.$ac_ext >&5
14133  fi
14134  rm -rf conftest* conftst*
14135
14136  # Do not use the global_symbol_pipe unless it works.
14137  if test yes = "$pipe_works"; then
14138    break
14139  else
14140    lt_cv_sys_global_symbol_pipe=
14141  fi
14142done
14143 ;;
14144esac
14145fi
14146
14147if test -z "$lt_cv_sys_global_symbol_pipe"; then
14148  lt_cv_sys_global_symbol_to_cdecl=
14149fi
14150if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14152printf "%s\n" "failed" >&6; }
14153else
14154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14155printf "%s\n" "ok" >&6; }
14156fi
14157
14158# Response file support.
14159if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14160  nm_file_list_spec='@'
14161elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14162  nm_file_list_spec='@'
14163fi
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14202printf %s "checking for sysroot... " >&6; }
14203
14204# Check whether --with-sysroot was given.
14205if test ${with_sysroot+y}
14206then :
14207  withval=$with_sysroot;
14208else case e in #(
14209  e) with_sysroot=no ;;
14210esac
14211fi
14212
14213
14214lt_sysroot=
14215case $with_sysroot in #(
14216 yes)
14217   if test yes = "$GCC"; then
14218     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14219   fi
14220   ;; #(
14221 /*)
14222   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14223   ;; #(
14224 no|'')
14225   ;; #(
14226 *)
14227   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14228printf "%s\n" "$with_sysroot" >&6; }
14229   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14230   ;;
14231esac
14232
14233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14234printf "%s\n" "${lt_sysroot:-no}" >&6; }
14235
14236
14237
14238
14239
14240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14241printf %s "checking for a working dd... " >&6; }
14242if test ${ac_cv_path_lt_DD+y}
14243then :
14244  printf %s "(cached) " >&6
14245else case e in #(
14246  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14247cat conftest.i conftest.i >conftest2.i
14248: ${lt_DD:=$DD}
14249if test -z "$lt_DD"; then
14250  ac_path_lt_DD_found=false
14251  # Loop through the user's path and test for each of PROGNAME-LIST
14252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253for as_dir in $PATH
14254do
14255  IFS=$as_save_IFS
14256  case $as_dir in #(((
14257    '') as_dir=./ ;;
14258    */) ;;
14259    *) as_dir=$as_dir/ ;;
14260  esac
14261    for ac_prog in dd
14262   do
14263    for ac_exec_ext in '' $ac_executable_extensions; do
14264      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14265      as_fn_executable_p "$ac_path_lt_DD" || continue
14266if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14267  cmp -s conftest.i conftest.out \
14268  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14269fi
14270      $ac_path_lt_DD_found && break 3
14271    done
14272  done
14273  done
14274IFS=$as_save_IFS
14275  if test -z "$ac_cv_path_lt_DD"; then
14276    :
14277  fi
14278else
14279  ac_cv_path_lt_DD=$lt_DD
14280fi
14281
14282rm -f conftest.i conftest2.i conftest.out ;;
14283esac
14284fi
14285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14286printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14287
14288
14289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14290printf %s "checking how to truncate binary pipes... " >&6; }
14291if test ${lt_cv_truncate_bin+y}
14292then :
14293  printf %s "(cached) " >&6
14294else case e in #(
14295  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14296cat conftest.i conftest.i >conftest2.i
14297lt_cv_truncate_bin=
14298if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14299  cmp -s conftest.i conftest.out \
14300  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14301fi
14302rm -f conftest.i conftest2.i conftest.out
14303test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14304esac
14305fi
14306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14307printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14308
14309
14310
14311
14312
14313
14314
14315# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14316func_cc_basename ()
14317{
14318    for cc_temp in $*""; do
14319      case $cc_temp in
14320        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14321        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14322        \-*) ;;
14323        *) break;;
14324      esac
14325    done
14326    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14327}
14328
14329# Check whether --enable-libtool-lock was given.
14330if test ${enable_libtool_lock+y}
14331then :
14332  enableval=$enable_libtool_lock;
14333fi
14334
14335test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14336
14337# Some flags need to be propagated to the compiler or linker for good
14338# libtool support.
14339case $host in
14340ia64-*-hpux*)
14341  # Find out what ABI is being produced by ac_compile, and set mode
14342  # options accordingly.
14343  echo 'int i;' > conftest.$ac_ext
14344  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14345  (eval $ac_compile) 2>&5
14346  ac_status=$?
14347  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14348  test $ac_status = 0; }; then
14349    case `$FILECMD conftest.$ac_objext` in
14350      *ELF-32*)
14351	HPUX_IA64_MODE=32
14352	;;
14353      *ELF-64*)
14354	HPUX_IA64_MODE=64
14355	;;
14356    esac
14357  fi
14358  rm -rf conftest*
14359  ;;
14360*-*-irix6*)
14361  # Find out what ABI is being produced by ac_compile, and set linker
14362  # options accordingly.
14363  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14364  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14365  (eval $ac_compile) 2>&5
14366  ac_status=$?
14367  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14368  test $ac_status = 0; }; then
14369    if test yes = "$lt_cv_prog_gnu_ld"; then
14370      case `$FILECMD conftest.$ac_objext` in
14371	*32-bit*)
14372	  LD="${LD-ld} -melf32bsmip"
14373	  ;;
14374	*N32*)
14375	  LD="${LD-ld} -melf32bmipn32"
14376	  ;;
14377	*64-bit*)
14378	  LD="${LD-ld} -melf64bmip"
14379	;;
14380      esac
14381    else
14382      case `$FILECMD conftest.$ac_objext` in
14383	*32-bit*)
14384	  LD="${LD-ld} -32"
14385	  ;;
14386	*N32*)
14387	  LD="${LD-ld} -n32"
14388	  ;;
14389	*64-bit*)
14390	  LD="${LD-ld} -64"
14391	  ;;
14392      esac
14393    fi
14394  fi
14395  rm -rf conftest*
14396  ;;
14397
14398mips64*-*linux*)
14399  # Find out what ABI is being produced by ac_compile, and set linker
14400  # options accordingly.
14401  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14402  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14403  (eval $ac_compile) 2>&5
14404  ac_status=$?
14405  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14406  test $ac_status = 0; }; then
14407    emul=elf
14408    case `$FILECMD conftest.$ac_objext` in
14409      *32-bit*)
14410	emul="${emul}32"
14411	;;
14412      *64-bit*)
14413	emul="${emul}64"
14414	;;
14415    esac
14416    case `$FILECMD conftest.$ac_objext` in
14417      *MSB*)
14418	emul="${emul}btsmip"
14419	;;
14420      *LSB*)
14421	emul="${emul}ltsmip"
14422	;;
14423    esac
14424    case `$FILECMD conftest.$ac_objext` in
14425      *N32*)
14426	emul="${emul}n32"
14427	;;
14428    esac
14429    LD="${LD-ld} -m $emul"
14430  fi
14431  rm -rf conftest*
14432  ;;
14433
14434x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14435s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14436  # Find out what ABI is being produced by ac_compile, and set linker
14437  # options accordingly.  Note that the listed cases only cover the
14438  # situations where additional linker options are needed (such as when
14439  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14440  # vice versa); the common cases where no linker options are needed do
14441  # not appear in the list.
14442  echo 'int i;' > conftest.$ac_ext
14443  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14444  (eval $ac_compile) 2>&5
14445  ac_status=$?
14446  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14447  test $ac_status = 0; }; then
14448    case `$FILECMD conftest.o` in
14449      *32-bit*)
14450	case $host in
14451	  x86_64-*kfreebsd*-gnu)
14452	    LD="${LD-ld} -m elf_i386_fbsd"
14453	    ;;
14454	  x86_64-*linux*)
14455	    case `$FILECMD conftest.o` in
14456	      *x86-64*)
14457		LD="${LD-ld} -m elf32_x86_64"
14458		;;
14459	      *)
14460		LD="${LD-ld} -m elf_i386"
14461		;;
14462	    esac
14463	    ;;
14464	  powerpc64le-*linux*)
14465	    LD="${LD-ld} -m elf32lppclinux"
14466	    ;;
14467	  powerpc64-*linux*)
14468	    LD="${LD-ld} -m elf32ppclinux"
14469	    ;;
14470	  s390x-*linux*)
14471	    LD="${LD-ld} -m elf_s390"
14472	    ;;
14473	  sparc64-*linux*)
14474	    LD="${LD-ld} -m elf32_sparc"
14475	    ;;
14476	esac
14477	;;
14478      *64-bit*)
14479	case $host in
14480	  x86_64-*kfreebsd*-gnu)
14481	    LD="${LD-ld} -m elf_x86_64_fbsd"
14482	    ;;
14483	  x86_64-*linux*)
14484	    LD="${LD-ld} -m elf_x86_64"
14485	    ;;
14486	  powerpcle-*linux*|powerpc64le-*linux*)
14487	    LD="${LD-ld} -m elf64lppc"
14488	    ;;
14489	  powerpc-*linux*|powerpc64-*linux*)
14490	    LD="${LD-ld} -m elf64ppc"
14491	    ;;
14492	  s390*-*linux*|s390*-*tpf*)
14493	    LD="${LD-ld} -m elf64_s390"
14494	    ;;
14495	  sparc*-*linux*)
14496	    LD="${LD-ld} -m elf64_sparc"
14497	    ;;
14498	esac
14499	;;
14500    esac
14501  fi
14502  rm -rf conftest*
14503  ;;
14504
14505*-*-sco3.2v5*)
14506  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14507  SAVE_CFLAGS=$CFLAGS
14508  CFLAGS="$CFLAGS -belf"
14509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14510printf %s "checking whether the C compiler needs -belf... " >&6; }
14511if test ${lt_cv_cc_needs_belf+y}
14512then :
14513  printf %s "(cached) " >&6
14514else case e in #(
14515  e) ac_ext=c
14516ac_cpp='$CPP $CPPFLAGS'
14517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519ac_compiler_gnu=$ac_cv_c_compiler_gnu
14520
14521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522/* end confdefs.h.  */
14523
14524int
14525main (void)
14526{
14527
14528  ;
14529  return 0;
14530}
14531_ACEOF
14532if ac_fn_c_try_link "$LINENO"
14533then :
14534  lt_cv_cc_needs_belf=yes
14535else case e in #(
14536  e) lt_cv_cc_needs_belf=no ;;
14537esac
14538fi
14539rm -f core conftest.err conftest.$ac_objext conftest.beam \
14540    conftest$ac_exeext conftest.$ac_ext
14541     ac_ext=c
14542ac_cpp='$CPP $CPPFLAGS'
14543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545ac_compiler_gnu=$ac_cv_c_compiler_gnu
14546 ;;
14547esac
14548fi
14549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14550printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14551  if test yes != "$lt_cv_cc_needs_belf"; then
14552    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14553    CFLAGS=$SAVE_CFLAGS
14554  fi
14555  ;;
14556*-*solaris*)
14557  # Find out what ABI is being produced by ac_compile, and set linker
14558  # options accordingly.
14559  echo 'int i;' > conftest.$ac_ext
14560  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14561  (eval $ac_compile) 2>&5
14562  ac_status=$?
14563  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14564  test $ac_status = 0; }; then
14565    case `$FILECMD conftest.o` in
14566    *64-bit*)
14567      case $lt_cv_prog_gnu_ld in
14568      yes*)
14569        case $host in
14570        i?86-*-solaris*|x86_64-*-solaris*)
14571          LD="${LD-ld} -m elf_x86_64"
14572          ;;
14573        sparc*-*-solaris*)
14574          LD="${LD-ld} -m elf64_sparc"
14575          ;;
14576        esac
14577        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14578        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14579          LD=${LD-ld}_sol2
14580        fi
14581        ;;
14582      *)
14583	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14584	  LD="${LD-ld} -64"
14585	fi
14586	;;
14587      esac
14588      ;;
14589    esac
14590  fi
14591  rm -rf conftest*
14592  ;;
14593esac
14594
14595need_locks=$enable_libtool_lock
14596
14597if test -n "$ac_tool_prefix"; then
14598  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14599set dummy ${ac_tool_prefix}mt; ac_word=$2
14600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14601printf %s "checking for $ac_word... " >&6; }
14602if test ${ac_cv_prog_MANIFEST_TOOL+y}
14603then :
14604  printf %s "(cached) " >&6
14605else case e in #(
14606  e) if test -n "$MANIFEST_TOOL"; then
14607  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14608else
14609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610for as_dir in $PATH
14611do
14612  IFS=$as_save_IFS
14613  case $as_dir in #(((
14614    '') as_dir=./ ;;
14615    */) ;;
14616    *) as_dir=$as_dir/ ;;
14617  esac
14618    for ac_exec_ext in '' $ac_executable_extensions; do
14619  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14620    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14621    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14622    break 2
14623  fi
14624done
14625  done
14626IFS=$as_save_IFS
14627
14628fi ;;
14629esac
14630fi
14631MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14632if test -n "$MANIFEST_TOOL"; then
14633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14634printf "%s\n" "$MANIFEST_TOOL" >&6; }
14635else
14636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637printf "%s\n" "no" >&6; }
14638fi
14639
14640
14641fi
14642if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14643  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14644  # Extract the first word of "mt", so it can be a program name with args.
14645set dummy mt; ac_word=$2
14646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14647printf %s "checking for $ac_word... " >&6; }
14648if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14649then :
14650  printf %s "(cached) " >&6
14651else case e in #(
14652  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
14653  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14654else
14655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14656for as_dir in $PATH
14657do
14658  IFS=$as_save_IFS
14659  case $as_dir in #(((
14660    '') as_dir=./ ;;
14661    */) ;;
14662    *) as_dir=$as_dir/ ;;
14663  esac
14664    for ac_exec_ext in '' $ac_executable_extensions; do
14665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14666    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14668    break 2
14669  fi
14670done
14671  done
14672IFS=$as_save_IFS
14673
14674fi ;;
14675esac
14676fi
14677ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14678if test -n "$ac_ct_MANIFEST_TOOL"; then
14679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14680printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14681else
14682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14683printf "%s\n" "no" >&6; }
14684fi
14685
14686  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14687    MANIFEST_TOOL=":"
14688  else
14689    case $cross_compiling:$ac_tool_warned in
14690yes:)
14691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14692printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14693ac_tool_warned=yes ;;
14694esac
14695    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14696  fi
14697else
14698  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14699fi
14700
14701test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14703printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14704if test ${lt_cv_path_mainfest_tool+y}
14705then :
14706  printf %s "(cached) " >&6
14707else case e in #(
14708  e) lt_cv_path_mainfest_tool=no
14709  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14710  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14711  cat conftest.err >&5
14712  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14713    lt_cv_path_mainfest_tool=yes
14714  fi
14715  rm -f conftest* ;;
14716esac
14717fi
14718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14719printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14720if test yes != "$lt_cv_path_mainfest_tool"; then
14721  MANIFEST_TOOL=:
14722fi
14723
14724
14725
14726
14727
14728
14729  case $host_os in
14730    rhapsody* | darwin*)
14731    if test -n "$ac_tool_prefix"; then
14732  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14733set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14735printf %s "checking for $ac_word... " >&6; }
14736if test ${ac_cv_prog_DSYMUTIL+y}
14737then :
14738  printf %s "(cached) " >&6
14739else case e in #(
14740  e) if test -n "$DSYMUTIL"; then
14741  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14742else
14743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14744for as_dir in $PATH
14745do
14746  IFS=$as_save_IFS
14747  case $as_dir in #(((
14748    '') as_dir=./ ;;
14749    */) ;;
14750    *) as_dir=$as_dir/ ;;
14751  esac
14752    for ac_exec_ext in '' $ac_executable_extensions; do
14753  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14754    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14755    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14756    break 2
14757  fi
14758done
14759  done
14760IFS=$as_save_IFS
14761
14762fi ;;
14763esac
14764fi
14765DSYMUTIL=$ac_cv_prog_DSYMUTIL
14766if test -n "$DSYMUTIL"; then
14767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14768printf "%s\n" "$DSYMUTIL" >&6; }
14769else
14770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771printf "%s\n" "no" >&6; }
14772fi
14773
14774
14775fi
14776if test -z "$ac_cv_prog_DSYMUTIL"; then
14777  ac_ct_DSYMUTIL=$DSYMUTIL
14778  # Extract the first word of "dsymutil", so it can be a program name with args.
14779set dummy dsymutil; ac_word=$2
14780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14781printf %s "checking for $ac_word... " >&6; }
14782if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14783then :
14784  printf %s "(cached) " >&6
14785else case e in #(
14786  e) if test -n "$ac_ct_DSYMUTIL"; then
14787  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14788else
14789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14790for as_dir in $PATH
14791do
14792  IFS=$as_save_IFS
14793  case $as_dir in #(((
14794    '') as_dir=./ ;;
14795    */) ;;
14796    *) as_dir=$as_dir/ ;;
14797  esac
14798    for ac_exec_ext in '' $ac_executable_extensions; do
14799  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14800    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14801    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14802    break 2
14803  fi
14804done
14805  done
14806IFS=$as_save_IFS
14807
14808fi ;;
14809esac
14810fi
14811ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14812if test -n "$ac_ct_DSYMUTIL"; then
14813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14814printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14815else
14816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14817printf "%s\n" "no" >&6; }
14818fi
14819
14820  if test "x$ac_ct_DSYMUTIL" = x; then
14821    DSYMUTIL=":"
14822  else
14823    case $cross_compiling:$ac_tool_warned in
14824yes:)
14825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14826printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14827ac_tool_warned=yes ;;
14828esac
14829    DSYMUTIL=$ac_ct_DSYMUTIL
14830  fi
14831else
14832  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14833fi
14834
14835    if test -n "$ac_tool_prefix"; then
14836  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14837set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14839printf %s "checking for $ac_word... " >&6; }
14840if test ${ac_cv_prog_NMEDIT+y}
14841then :
14842  printf %s "(cached) " >&6
14843else case e in #(
14844  e) if test -n "$NMEDIT"; then
14845  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14846else
14847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848for as_dir in $PATH
14849do
14850  IFS=$as_save_IFS
14851  case $as_dir in #(((
14852    '') as_dir=./ ;;
14853    */) ;;
14854    *) as_dir=$as_dir/ ;;
14855  esac
14856    for ac_exec_ext in '' $ac_executable_extensions; do
14857  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14858    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14859    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14860    break 2
14861  fi
14862done
14863  done
14864IFS=$as_save_IFS
14865
14866fi ;;
14867esac
14868fi
14869NMEDIT=$ac_cv_prog_NMEDIT
14870if test -n "$NMEDIT"; then
14871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14872printf "%s\n" "$NMEDIT" >&6; }
14873else
14874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14875printf "%s\n" "no" >&6; }
14876fi
14877
14878
14879fi
14880if test -z "$ac_cv_prog_NMEDIT"; then
14881  ac_ct_NMEDIT=$NMEDIT
14882  # Extract the first word of "nmedit", so it can be a program name with args.
14883set dummy nmedit; ac_word=$2
14884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14885printf %s "checking for $ac_word... " >&6; }
14886if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14887then :
14888  printf %s "(cached) " >&6
14889else case e in #(
14890  e) if test -n "$ac_ct_NMEDIT"; then
14891  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14892else
14893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14894for as_dir in $PATH
14895do
14896  IFS=$as_save_IFS
14897  case $as_dir in #(((
14898    '') as_dir=./ ;;
14899    */) ;;
14900    *) as_dir=$as_dir/ ;;
14901  esac
14902    for ac_exec_ext in '' $ac_executable_extensions; do
14903  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14904    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14905    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14906    break 2
14907  fi
14908done
14909  done
14910IFS=$as_save_IFS
14911
14912fi ;;
14913esac
14914fi
14915ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14916if test -n "$ac_ct_NMEDIT"; then
14917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14918printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14919else
14920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14921printf "%s\n" "no" >&6; }
14922fi
14923
14924  if test "x$ac_ct_NMEDIT" = x; then
14925    NMEDIT=":"
14926  else
14927    case $cross_compiling:$ac_tool_warned in
14928yes:)
14929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14931ac_tool_warned=yes ;;
14932esac
14933    NMEDIT=$ac_ct_NMEDIT
14934  fi
14935else
14936  NMEDIT="$ac_cv_prog_NMEDIT"
14937fi
14938
14939    if test -n "$ac_tool_prefix"; then
14940  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14941set dummy ${ac_tool_prefix}lipo; ac_word=$2
14942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14943printf %s "checking for $ac_word... " >&6; }
14944if test ${ac_cv_prog_LIPO+y}
14945then :
14946  printf %s "(cached) " >&6
14947else case e in #(
14948  e) if test -n "$LIPO"; then
14949  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14950else
14951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14952for as_dir in $PATH
14953do
14954  IFS=$as_save_IFS
14955  case $as_dir in #(((
14956    '') as_dir=./ ;;
14957    */) ;;
14958    *) as_dir=$as_dir/ ;;
14959  esac
14960    for ac_exec_ext in '' $ac_executable_extensions; do
14961  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14962    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14963    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14964    break 2
14965  fi
14966done
14967  done
14968IFS=$as_save_IFS
14969
14970fi ;;
14971esac
14972fi
14973LIPO=$ac_cv_prog_LIPO
14974if test -n "$LIPO"; then
14975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14976printf "%s\n" "$LIPO" >&6; }
14977else
14978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979printf "%s\n" "no" >&6; }
14980fi
14981
14982
14983fi
14984if test -z "$ac_cv_prog_LIPO"; then
14985  ac_ct_LIPO=$LIPO
14986  # Extract the first word of "lipo", so it can be a program name with args.
14987set dummy lipo; ac_word=$2
14988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14989printf %s "checking for $ac_word... " >&6; }
14990if test ${ac_cv_prog_ac_ct_LIPO+y}
14991then :
14992  printf %s "(cached) " >&6
14993else case e in #(
14994  e) if test -n "$ac_ct_LIPO"; then
14995  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14996else
14997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998for as_dir in $PATH
14999do
15000  IFS=$as_save_IFS
15001  case $as_dir in #(((
15002    '') as_dir=./ ;;
15003    */) ;;
15004    *) as_dir=$as_dir/ ;;
15005  esac
15006    for ac_exec_ext in '' $ac_executable_extensions; do
15007  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15008    ac_cv_prog_ac_ct_LIPO="lipo"
15009    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15010    break 2
15011  fi
15012done
15013  done
15014IFS=$as_save_IFS
15015
15016fi ;;
15017esac
15018fi
15019ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15020if test -n "$ac_ct_LIPO"; then
15021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15022printf "%s\n" "$ac_ct_LIPO" >&6; }
15023else
15024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025printf "%s\n" "no" >&6; }
15026fi
15027
15028  if test "x$ac_ct_LIPO" = x; then
15029    LIPO=":"
15030  else
15031    case $cross_compiling:$ac_tool_warned in
15032yes:)
15033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15034printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15035ac_tool_warned=yes ;;
15036esac
15037    LIPO=$ac_ct_LIPO
15038  fi
15039else
15040  LIPO="$ac_cv_prog_LIPO"
15041fi
15042
15043    if test -n "$ac_tool_prefix"; then
15044  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15045set dummy ${ac_tool_prefix}otool; ac_word=$2
15046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15047printf %s "checking for $ac_word... " >&6; }
15048if test ${ac_cv_prog_OTOOL+y}
15049then :
15050  printf %s "(cached) " >&6
15051else case e in #(
15052  e) if test -n "$OTOOL"; then
15053  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15054else
15055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15056for as_dir in $PATH
15057do
15058  IFS=$as_save_IFS
15059  case $as_dir in #(((
15060    '') as_dir=./ ;;
15061    */) ;;
15062    *) as_dir=$as_dir/ ;;
15063  esac
15064    for ac_exec_ext in '' $ac_executable_extensions; do
15065  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15066    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15067    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15068    break 2
15069  fi
15070done
15071  done
15072IFS=$as_save_IFS
15073
15074fi ;;
15075esac
15076fi
15077OTOOL=$ac_cv_prog_OTOOL
15078if test -n "$OTOOL"; then
15079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15080printf "%s\n" "$OTOOL" >&6; }
15081else
15082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15083printf "%s\n" "no" >&6; }
15084fi
15085
15086
15087fi
15088if test -z "$ac_cv_prog_OTOOL"; then
15089  ac_ct_OTOOL=$OTOOL
15090  # Extract the first word of "otool", so it can be a program name with args.
15091set dummy otool; ac_word=$2
15092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15093printf %s "checking for $ac_word... " >&6; }
15094if test ${ac_cv_prog_ac_ct_OTOOL+y}
15095then :
15096  printf %s "(cached) " >&6
15097else case e in #(
15098  e) if test -n "$ac_ct_OTOOL"; then
15099  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15100else
15101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15102for as_dir in $PATH
15103do
15104  IFS=$as_save_IFS
15105  case $as_dir in #(((
15106    '') as_dir=./ ;;
15107    */) ;;
15108    *) as_dir=$as_dir/ ;;
15109  esac
15110    for ac_exec_ext in '' $ac_executable_extensions; do
15111  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15112    ac_cv_prog_ac_ct_OTOOL="otool"
15113    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15114    break 2
15115  fi
15116done
15117  done
15118IFS=$as_save_IFS
15119
15120fi ;;
15121esac
15122fi
15123ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15124if test -n "$ac_ct_OTOOL"; then
15125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15126printf "%s\n" "$ac_ct_OTOOL" >&6; }
15127else
15128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129printf "%s\n" "no" >&6; }
15130fi
15131
15132  if test "x$ac_ct_OTOOL" = x; then
15133    OTOOL=":"
15134  else
15135    case $cross_compiling:$ac_tool_warned in
15136yes:)
15137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15138printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15139ac_tool_warned=yes ;;
15140esac
15141    OTOOL=$ac_ct_OTOOL
15142  fi
15143else
15144  OTOOL="$ac_cv_prog_OTOOL"
15145fi
15146
15147    if test -n "$ac_tool_prefix"; then
15148  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15149set dummy ${ac_tool_prefix}otool64; ac_word=$2
15150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15151printf %s "checking for $ac_word... " >&6; }
15152if test ${ac_cv_prog_OTOOL64+y}
15153then :
15154  printf %s "(cached) " >&6
15155else case e in #(
15156  e) if test -n "$OTOOL64"; then
15157  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15158else
15159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15160for as_dir in $PATH
15161do
15162  IFS=$as_save_IFS
15163  case $as_dir in #(((
15164    '') as_dir=./ ;;
15165    */) ;;
15166    *) as_dir=$as_dir/ ;;
15167  esac
15168    for ac_exec_ext in '' $ac_executable_extensions; do
15169  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15170    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15171    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15172    break 2
15173  fi
15174done
15175  done
15176IFS=$as_save_IFS
15177
15178fi ;;
15179esac
15180fi
15181OTOOL64=$ac_cv_prog_OTOOL64
15182if test -n "$OTOOL64"; then
15183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15184printf "%s\n" "$OTOOL64" >&6; }
15185else
15186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15187printf "%s\n" "no" >&6; }
15188fi
15189
15190
15191fi
15192if test -z "$ac_cv_prog_OTOOL64"; then
15193  ac_ct_OTOOL64=$OTOOL64
15194  # Extract the first word of "otool64", so it can be a program name with args.
15195set dummy otool64; ac_word=$2
15196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15197printf %s "checking for $ac_word... " >&6; }
15198if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15199then :
15200  printf %s "(cached) " >&6
15201else case e in #(
15202  e) if test -n "$ac_ct_OTOOL64"; then
15203  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15204else
15205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15206for as_dir in $PATH
15207do
15208  IFS=$as_save_IFS
15209  case $as_dir in #(((
15210    '') as_dir=./ ;;
15211    */) ;;
15212    *) as_dir=$as_dir/ ;;
15213  esac
15214    for ac_exec_ext in '' $ac_executable_extensions; do
15215  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15216    ac_cv_prog_ac_ct_OTOOL64="otool64"
15217    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15218    break 2
15219  fi
15220done
15221  done
15222IFS=$as_save_IFS
15223
15224fi ;;
15225esac
15226fi
15227ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15228if test -n "$ac_ct_OTOOL64"; then
15229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15230printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15231else
15232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15233printf "%s\n" "no" >&6; }
15234fi
15235
15236  if test "x$ac_ct_OTOOL64" = x; then
15237    OTOOL64=":"
15238  else
15239    case $cross_compiling:$ac_tool_warned in
15240yes:)
15241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15243ac_tool_warned=yes ;;
15244esac
15245    OTOOL64=$ac_ct_OTOOL64
15246  fi
15247else
15248  OTOOL64="$ac_cv_prog_OTOOL64"
15249fi
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15278printf %s "checking for -single_module linker flag... " >&6; }
15279if test ${lt_cv_apple_cc_single_mod+y}
15280then :
15281  printf %s "(cached) " >&6
15282else case e in #(
15283  e) lt_cv_apple_cc_single_mod=no
15284      if test -z "$LT_MULTI_MODULE"; then
15285	# By default we will add the -single_module flag. You can override
15286	# by either setting the environment variable LT_MULTI_MODULE
15287	# non-empty at configure time, or by adding -multi_module to the
15288	# link flags.
15289	rm -rf libconftest.dylib*
15290	echo "int foo(void){return 1;}" > conftest.c
15291	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15292-dynamiclib -Wl,-single_module conftest.c" >&5
15293	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15294	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15295        _lt_result=$?
15296	# If there is a non-empty error log, and "single_module"
15297	# appears in it, assume the flag caused a linker warning
15298        if test -s conftest.err && $GREP single_module conftest.err; then
15299	  cat conftest.err >&5
15300	# Otherwise, if the output was created with a 0 exit code from
15301	# the compiler, it worked.
15302	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15303	  lt_cv_apple_cc_single_mod=yes
15304	else
15305	  cat conftest.err >&5
15306	fi
15307	rm -rf libconftest.dylib*
15308	rm -f conftest.*
15309      fi ;;
15310esac
15311fi
15312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15313printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15314
15315    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15316printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15317if test ${lt_cv_ld_exported_symbols_list+y}
15318then :
15319  printf %s "(cached) " >&6
15320else case e in #(
15321  e) lt_cv_ld_exported_symbols_list=no
15322      save_LDFLAGS=$LDFLAGS
15323      echo "_main" > conftest.sym
15324      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15325      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326/* end confdefs.h.  */
15327
15328int
15329main (void)
15330{
15331
15332  ;
15333  return 0;
15334}
15335_ACEOF
15336if ac_fn_c_try_link "$LINENO"
15337then :
15338  lt_cv_ld_exported_symbols_list=yes
15339else case e in #(
15340  e) lt_cv_ld_exported_symbols_list=no ;;
15341esac
15342fi
15343rm -f core conftest.err conftest.$ac_objext conftest.beam \
15344    conftest$ac_exeext conftest.$ac_ext
15345	LDFLAGS=$save_LDFLAGS
15346     ;;
15347esac
15348fi
15349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15350printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15351
15352    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15353printf %s "checking for -force_load linker flag... " >&6; }
15354if test ${lt_cv_ld_force_load+y}
15355then :
15356  printf %s "(cached) " >&6
15357else case e in #(
15358  e) lt_cv_ld_force_load=no
15359      cat > conftest.c << _LT_EOF
15360int forced_loaded() { return 2;}
15361_LT_EOF
15362      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15363      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15364      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15365      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15366      echo "$RANLIB libconftest.a" >&5
15367      $RANLIB libconftest.a 2>&5
15368      cat > conftest.c << _LT_EOF
15369int main() { return 0;}
15370_LT_EOF
15371      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15372      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15373      _lt_result=$?
15374      if test -s conftest.err && $GREP force_load conftest.err; then
15375	cat conftest.err >&5
15376      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15377	lt_cv_ld_force_load=yes
15378      else
15379	cat conftest.err >&5
15380      fi
15381        rm -f conftest.err libconftest.a conftest conftest.c
15382        rm -rf conftest.dSYM
15383     ;;
15384esac
15385fi
15386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15387printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15388    case $host_os in
15389    rhapsody* | darwin1.[012])
15390      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15391    darwin1.*)
15392      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15393    darwin*)
15394      case $MACOSX_DEPLOYMENT_TARGET,$host in
15395        10.[012],*|,*powerpc*-darwin[5-8]*)
15396          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15397        *)
15398          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15399      esac
15400    ;;
15401  esac
15402    if test yes = "$lt_cv_apple_cc_single_mod"; then
15403      _lt_dar_single_mod='$single_module'
15404    fi
15405    if test yes = "$lt_cv_ld_exported_symbols_list"; then
15406      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15407    else
15408      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15409    fi
15410    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15411      _lt_dsymutil='~$DSYMUTIL $lib || :'
15412    else
15413      _lt_dsymutil=
15414    fi
15415    ;;
15416  esac
15417
15418# func_munge_path_list VARIABLE PATH
15419# -----------------------------------
15420# VARIABLE is name of variable containing _space_ separated list of
15421# directories to be munged by the contents of PATH, which is string
15422# having a format:
15423# "DIR[:DIR]:"
15424#       string "DIR[ DIR]" will be prepended to VARIABLE
15425# ":DIR[:DIR]"
15426#       string "DIR[ DIR]" will be appended to VARIABLE
15427# "DIRP[:DIRP]::[DIRA:]DIRA"
15428#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15429#       "DIRA[ DIRA]" will be appended to VARIABLE
15430# "DIR[:DIR]"
15431#       VARIABLE will be replaced by "DIR[ DIR]"
15432func_munge_path_list ()
15433{
15434    case x$2 in
15435    x)
15436        ;;
15437    *:)
15438        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15439        ;;
15440    x:*)
15441        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15442        ;;
15443    *::*)
15444        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15445        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15446        ;;
15447    *)
15448        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15449        ;;
15450    esac
15451}
15452
15453ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15454"
15455if test "x$ac_cv_header_dlfcn_h" = xyes
15456then :
15457  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15458
15459fi
15460
15461
15462
15463
15464
15465# Set options
15466# Check whether --enable-static was given.
15467if test ${enable_static+y}
15468then :
15469  enableval=$enable_static; p=${PACKAGE-default}
15470    case $enableval in
15471    yes) enable_static=yes ;;
15472    no) enable_static=no ;;
15473    *)
15474     enable_static=no
15475      # Look at the argument we got.  We use all the common list separators.
15476      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15477      for pkg in $enableval; do
15478	IFS=$lt_save_ifs
15479	if test "X$pkg" = "X$p"; then
15480	  enable_static=yes
15481	fi
15482      done
15483      IFS=$lt_save_ifs
15484      ;;
15485    esac
15486else case e in #(
15487  e) enable_static=no ;;
15488esac
15489fi
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500        enable_dlopen=no
15501
15502
15503  enable_win32_dll=no
15504
15505
15506            # Check whether --enable-shared was given.
15507if test ${enable_shared+y}
15508then :
15509  enableval=$enable_shared; p=${PACKAGE-default}
15510    case $enableval in
15511    yes) enable_shared=yes ;;
15512    no) enable_shared=no ;;
15513    *)
15514      enable_shared=no
15515      # Look at the argument we got.  We use all the common list separators.
15516      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15517      for pkg in $enableval; do
15518	IFS=$lt_save_ifs
15519	if test "X$pkg" = "X$p"; then
15520	  enable_shared=yes
15521	fi
15522      done
15523      IFS=$lt_save_ifs
15524      ;;
15525    esac
15526else case e in #(
15527  e) enable_shared=yes ;;
15528esac
15529fi
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541# Check whether --with-pic was given.
15542if test ${with_pic+y}
15543then :
15544  withval=$with_pic; lt_p=${PACKAGE-default}
15545    case $withval in
15546    yes|no) pic_mode=$withval ;;
15547    *)
15548      pic_mode=default
15549      # Look at the argument we got.  We use all the common list separators.
15550      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15551      for lt_pkg in $withval; do
15552	IFS=$lt_save_ifs
15553	if test "X$lt_pkg" = "X$lt_p"; then
15554	  pic_mode=yes
15555	fi
15556      done
15557      IFS=$lt_save_ifs
15558      ;;
15559    esac
15560else case e in #(
15561  e) pic_mode=default ;;
15562esac
15563fi
15564
15565
15566
15567
15568
15569
15570
15571
15572  # Check whether --enable-fast-install was given.
15573if test ${enable_fast_install+y}
15574then :
15575  enableval=$enable_fast_install; p=${PACKAGE-default}
15576    case $enableval in
15577    yes) enable_fast_install=yes ;;
15578    no) enable_fast_install=no ;;
15579    *)
15580      enable_fast_install=no
15581      # Look at the argument we got.  We use all the common list separators.
15582      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15583      for pkg in $enableval; do
15584	IFS=$lt_save_ifs
15585	if test "X$pkg" = "X$p"; then
15586	  enable_fast_install=yes
15587	fi
15588      done
15589      IFS=$lt_save_ifs
15590      ;;
15591    esac
15592else case e in #(
15593  e) enable_fast_install=yes ;;
15594esac
15595fi
15596
15597
15598
15599
15600
15601
15602
15603
15604  shared_archive_member_spec=
15605case $host,$enable_shared in
15606power*-*-aix[5-9]*,yes)
15607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15608printf %s "checking which variant of shared library versioning to provide... " >&6; }
15609
15610# Check whether --with-aix-soname was given.
15611if test ${with_aix_soname+y}
15612then :
15613  withval=$with_aix_soname; case $withval in
15614    aix|svr4|both)
15615      ;;
15616    *)
15617      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15618      ;;
15619    esac
15620    lt_cv_with_aix_soname=$with_aix_soname
15621else case e in #(
15622  e) if test ${lt_cv_with_aix_soname+y}
15623then :
15624  printf %s "(cached) " >&6
15625else case e in #(
15626  e) lt_cv_with_aix_soname=aix ;;
15627esac
15628fi
15629
15630    with_aix_soname=$lt_cv_with_aix_soname ;;
15631esac
15632fi
15633
15634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15635printf "%s\n" "$with_aix_soname" >&6; }
15636  if test aix != "$with_aix_soname"; then
15637    # For the AIX way of multilib, we name the shared archive member
15638    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15639    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15640    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15641    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15642    if test 64 = "${OBJECT_MODE-32}"; then
15643      shared_archive_member_spec=shr_64
15644    else
15645      shared_archive_member_spec=shr
15646    fi
15647  fi
15648  ;;
15649*)
15650  with_aix_soname=aix
15651  ;;
15652esac
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663# This can be used to rebuild libtool when needed
15664LIBTOOL_DEPS=$ltmain
15665
15666# Always use our own libtool.
15667LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698test -z "$LN_S" && LN_S="ln -s"
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713if test -n "${ZSH_VERSION+set}"; then
15714   setopt NO_GLOB_SUBST
15715fi
15716
15717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15718printf %s "checking for objdir... " >&6; }
15719if test ${lt_cv_objdir+y}
15720then :
15721  printf %s "(cached) " >&6
15722else case e in #(
15723  e) rm -f .libs 2>/dev/null
15724mkdir .libs 2>/dev/null
15725if test -d .libs; then
15726  lt_cv_objdir=.libs
15727else
15728  # MS-DOS does not allow filenames that begin with a dot.
15729  lt_cv_objdir=_libs
15730fi
15731rmdir .libs 2>/dev/null ;;
15732esac
15733fi
15734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15735printf "%s\n" "$lt_cv_objdir" >&6; }
15736objdir=$lt_cv_objdir
15737
15738
15739
15740
15741
15742printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15743
15744
15745
15746
15747case $host_os in
15748aix3*)
15749  # AIX sometimes has problems with the GCC collect2 program.  For some
15750  # reason, if we set the COLLECT_NAMES environment variable, the problems
15751  # vanish in a puff of smoke.
15752  if test set != "${COLLECT_NAMES+set}"; then
15753    COLLECT_NAMES=
15754    export COLLECT_NAMES
15755  fi
15756  ;;
15757esac
15758
15759# Global variables:
15760ofile=libtool
15761can_build_shared=yes
15762
15763# All known linkers require a '.a' archive for static linking (except MSVC and
15764# ICC, which need '.lib').
15765libext=a
15766
15767with_gnu_ld=$lt_cv_prog_gnu_ld
15768
15769old_CC=$CC
15770old_CFLAGS=$CFLAGS
15771
15772# Set sane defaults for various variables
15773test -z "$CC" && CC=cc
15774test -z "$LTCC" && LTCC=$CC
15775test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15776test -z "$LD" && LD=ld
15777test -z "$ac_objext" && ac_objext=o
15778
15779func_cc_basename $compiler
15780cc_basename=$func_cc_basename_result
15781
15782
15783# Only perform the check for file, if the check method requires it
15784test -z "$MAGIC_CMD" && MAGIC_CMD=file
15785case $deplibs_check_method in
15786file_magic*)
15787  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15788    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15789printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15790if test ${lt_cv_path_MAGIC_CMD+y}
15791then :
15792  printf %s "(cached) " >&6
15793else case e in #(
15794  e) case $MAGIC_CMD in
15795[\\/*] |  ?:[\\/]*)
15796  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15797  ;;
15798*)
15799  lt_save_MAGIC_CMD=$MAGIC_CMD
15800  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15801  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15802  for ac_dir in $ac_dummy; do
15803    IFS=$lt_save_ifs
15804    test -z "$ac_dir" && ac_dir=.
15805    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15806      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15807      if test -n "$file_magic_test_file"; then
15808	case $deplibs_check_method in
15809	"file_magic "*)
15810	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15811	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15812	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15813	    $EGREP "$file_magic_regex" > /dev/null; then
15814	    :
15815	  else
15816	    cat <<_LT_EOF 1>&2
15817
15818*** Warning: the command libtool uses to detect shared libraries,
15819*** $file_magic_cmd, produces output that libtool cannot recognize.
15820*** The result is that libtool may fail to recognize shared libraries
15821*** as such.  This will affect the creation of libtool libraries that
15822*** depend on shared libraries, but programs linked with such libtool
15823*** libraries will work regardless of this problem.  Nevertheless, you
15824*** may want to report the problem to your system manager and/or to
15825*** bug-libtool@gnu.org
15826
15827_LT_EOF
15828	  fi ;;
15829	esac
15830      fi
15831      break
15832    fi
15833  done
15834  IFS=$lt_save_ifs
15835  MAGIC_CMD=$lt_save_MAGIC_CMD
15836  ;;
15837esac ;;
15838esac
15839fi
15840
15841MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15842if test -n "$MAGIC_CMD"; then
15843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15844printf "%s\n" "$MAGIC_CMD" >&6; }
15845else
15846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847printf "%s\n" "no" >&6; }
15848fi
15849
15850
15851
15852
15853
15854if test -z "$lt_cv_path_MAGIC_CMD"; then
15855  if test -n "$ac_tool_prefix"; then
15856    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15857printf %s "checking for file... " >&6; }
15858if test ${lt_cv_path_MAGIC_CMD+y}
15859then :
15860  printf %s "(cached) " >&6
15861else case e in #(
15862  e) case $MAGIC_CMD in
15863[\\/*] |  ?:[\\/]*)
15864  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15865  ;;
15866*)
15867  lt_save_MAGIC_CMD=$MAGIC_CMD
15868  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15869  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15870  for ac_dir in $ac_dummy; do
15871    IFS=$lt_save_ifs
15872    test -z "$ac_dir" && ac_dir=.
15873    if test -f "$ac_dir/file"; then
15874      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15875      if test -n "$file_magic_test_file"; then
15876	case $deplibs_check_method in
15877	"file_magic "*)
15878	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15879	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15880	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15881	    $EGREP "$file_magic_regex" > /dev/null; then
15882	    :
15883	  else
15884	    cat <<_LT_EOF 1>&2
15885
15886*** Warning: the command libtool uses to detect shared libraries,
15887*** $file_magic_cmd, produces output that libtool cannot recognize.
15888*** The result is that libtool may fail to recognize shared libraries
15889*** as such.  This will affect the creation of libtool libraries that
15890*** depend on shared libraries, but programs linked with such libtool
15891*** libraries will work regardless of this problem.  Nevertheless, you
15892*** may want to report the problem to your system manager and/or to
15893*** bug-libtool@gnu.org
15894
15895_LT_EOF
15896	  fi ;;
15897	esac
15898      fi
15899      break
15900    fi
15901  done
15902  IFS=$lt_save_ifs
15903  MAGIC_CMD=$lt_save_MAGIC_CMD
15904  ;;
15905esac ;;
15906esac
15907fi
15908
15909MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15910if test -n "$MAGIC_CMD"; then
15911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15912printf "%s\n" "$MAGIC_CMD" >&6; }
15913else
15914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915printf "%s\n" "no" >&6; }
15916fi
15917
15918
15919  else
15920    MAGIC_CMD=:
15921  fi
15922fi
15923
15924  fi
15925  ;;
15926esac
15927
15928# Use C for the default configuration in the libtool script
15929
15930lt_save_CC=$CC
15931ac_ext=c
15932ac_cpp='$CPP $CPPFLAGS'
15933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935ac_compiler_gnu=$ac_cv_c_compiler_gnu
15936
15937
15938# Source file extension for C test sources.
15939ac_ext=c
15940
15941# Object file extension for compiled C test sources.
15942objext=o
15943objext=$objext
15944
15945# Code to be used in simple compile tests
15946lt_simple_compile_test_code="int some_variable = 0;"
15947
15948# Code to be used in simple link tests
15949lt_simple_link_test_code='int main(){return(0);}'
15950
15951
15952
15953
15954
15955
15956
15957# If no C compiler was specified, use CC.
15958LTCC=${LTCC-"$CC"}
15959
15960# If no C compiler flags were specified, use CFLAGS.
15961LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15962
15963# Allow CC to be a program name with arguments.
15964compiler=$CC
15965
15966# Save the default compiler, since it gets overwritten when the other
15967# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15968compiler_DEFAULT=$CC
15969
15970# save warnings/boilerplate of simple test code
15971ac_outfile=conftest.$ac_objext
15972echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15974_lt_compiler_boilerplate=`cat conftest.err`
15975$RM conftest*
15976
15977ac_outfile=conftest.$ac_objext
15978echo "$lt_simple_link_test_code" >conftest.$ac_ext
15979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15980_lt_linker_boilerplate=`cat conftest.err`
15981$RM -r conftest*
15982
15983
15984## CAVEAT EMPTOR:
15985## There is no encapsulation within the following macros, do not change
15986## the running order or otherwise move them around unless you know exactly
15987## what you are doing...
15988if test -n "$compiler"; then
15989
15990lt_prog_compiler_no_builtin_flag=
15991
15992if test yes = "$GCC"; then
15993  case $cc_basename in
15994  nvcc*)
15995    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15996  *)
15997    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15998  esac
15999
16000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16001printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16002if test ${lt_cv_prog_compiler_rtti_exceptions+y}
16003then :
16004  printf %s "(cached) " >&6
16005else case e in #(
16006  e) lt_cv_prog_compiler_rtti_exceptions=no
16007   ac_outfile=conftest.$ac_objext
16008   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16009   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
16010   # Insert the option either (1) after the last *FLAGS variable, or
16011   # (2) before a word containing "conftest.", or (3) at the end.
16012   # Note that $ac_compile itself does not contain backslashes and begins
16013   # with a dollar sign (not a hyphen), so the echo should work correctly.
16014   # The option is referenced via a variable to avoid confusing sed.
16015   lt_compile=`echo "$ac_compile" | $SED \
16016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16018   -e 's:$: $lt_compiler_flag:'`
16019   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16020   (eval "$lt_compile" 2>conftest.err)
16021   ac_status=$?
16022   cat conftest.err >&5
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   if (exit $ac_status) && test -s "$ac_outfile"; then
16025     # The compiler can only warn and ignore the option if not recognized
16026     # So say no if there are warnings other than the usual output.
16027     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16028     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16029     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16030       lt_cv_prog_compiler_rtti_exceptions=yes
16031     fi
16032   fi
16033   $RM conftest*
16034 ;;
16035esac
16036fi
16037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16038printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16039
16040if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16041    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16042else
16043    :
16044fi
16045
16046fi
16047
16048
16049
16050
16051
16052
16053  lt_prog_compiler_wl=
16054lt_prog_compiler_pic=
16055lt_prog_compiler_static=
16056
16057
16058  if test yes = "$GCC"; then
16059    lt_prog_compiler_wl='-Wl,'
16060    lt_prog_compiler_static='-static'
16061
16062    case $host_os in
16063      aix*)
16064      # All AIX code is PIC.
16065      if test ia64 = "$host_cpu"; then
16066	# AIX 5 now supports IA64 processor
16067	lt_prog_compiler_static='-Bstatic'
16068      fi
16069      lt_prog_compiler_pic='-fPIC'
16070      ;;
16071
16072    amigaos*)
16073      case $host_cpu in
16074      powerpc)
16075            # see comment about AmigaOS4 .so support
16076            lt_prog_compiler_pic='-fPIC'
16077        ;;
16078      m68k)
16079            # FIXME: we need at least 68020 code to build shared libraries, but
16080            # adding the '-m68020' flag to GCC prevents building anything better,
16081            # like '-m68040'.
16082            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16083        ;;
16084      esac
16085      ;;
16086
16087    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16088      # PIC is the default for these OSes.
16089      ;;
16090
16091    mingw* | cygwin* | pw32* | os2* | cegcc*)
16092      # This hack is so that the source file can tell whether it is being
16093      # built for inclusion in a dll (and should export symbols for example).
16094      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16095      # (--disable-auto-import) libraries
16096      lt_prog_compiler_pic='-DDLL_EXPORT'
16097      case $host_os in
16098      os2*)
16099	lt_prog_compiler_static='$wl-static'
16100	;;
16101      esac
16102      ;;
16103
16104    darwin* | rhapsody*)
16105      # PIC is the default on this platform
16106      # Common symbols not allowed in MH_DYLIB files
16107      lt_prog_compiler_pic='-fno-common'
16108      ;;
16109
16110    haiku*)
16111      # PIC is the default for Haiku.
16112      # The "-static" flag exists, but is broken.
16113      lt_prog_compiler_static=
16114      ;;
16115
16116    hpux*)
16117      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16118      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16119      # sets the default TLS model and affects inlining.
16120      case $host_cpu in
16121      hppa*64*)
16122	# +Z the default
16123	;;
16124      *)
16125	lt_prog_compiler_pic='-fPIC'
16126	;;
16127      esac
16128      ;;
16129
16130    interix[3-9]*)
16131      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16132      # Instead, we relocate shared libraries at runtime.
16133      ;;
16134
16135    msdosdjgpp*)
16136      # Just because we use GCC doesn't mean we suddenly get shared libraries
16137      # on systems that don't support them.
16138      lt_prog_compiler_can_build_shared=no
16139      enable_shared=no
16140      ;;
16141
16142    *nto* | *qnx*)
16143      # QNX uses GNU C++, but need to define -shared option too, otherwise
16144      # it will coredump.
16145      lt_prog_compiler_pic='-fPIC -shared'
16146      ;;
16147
16148    sysv4*MP*)
16149      if test -d /usr/nec; then
16150	lt_prog_compiler_pic=-Kconform_pic
16151      fi
16152      ;;
16153
16154    *)
16155      lt_prog_compiler_pic='-fPIC'
16156      ;;
16157    esac
16158
16159    case $cc_basename in
16160    nvcc*) # Cuda Compiler Driver 2.2
16161      lt_prog_compiler_wl='-Xlinker '
16162      if test -n "$lt_prog_compiler_pic"; then
16163        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16164      fi
16165      ;;
16166    esac
16167  else
16168    # PORTME Check for flag to pass linker flags through the system compiler.
16169    case $host_os in
16170    aix*)
16171      lt_prog_compiler_wl='-Wl,'
16172      if test ia64 = "$host_cpu"; then
16173	# AIX 5 now supports IA64 processor
16174	lt_prog_compiler_static='-Bstatic'
16175      else
16176	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16177      fi
16178      ;;
16179
16180    darwin* | rhapsody*)
16181      # PIC is the default on this platform
16182      # Common symbols not allowed in MH_DYLIB files
16183      lt_prog_compiler_pic='-fno-common'
16184      case $cc_basename in
16185      nagfor*)
16186        # NAG Fortran compiler
16187        lt_prog_compiler_wl='-Wl,-Wl,,'
16188        lt_prog_compiler_pic='-PIC'
16189        lt_prog_compiler_static='-Bstatic'
16190        ;;
16191      esac
16192      ;;
16193
16194    mingw* | cygwin* | pw32* | os2* | cegcc*)
16195      # This hack is so that the source file can tell whether it is being
16196      # built for inclusion in a dll (and should export symbols for example).
16197      lt_prog_compiler_pic='-DDLL_EXPORT'
16198      case $host_os in
16199      os2*)
16200	lt_prog_compiler_static='$wl-static'
16201	;;
16202      esac
16203      ;;
16204
16205    hpux9* | hpux10* | hpux11*)
16206      lt_prog_compiler_wl='-Wl,'
16207      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16208      # not for PA HP-UX.
16209      case $host_cpu in
16210      hppa*64*|ia64*)
16211	# +Z the default
16212	;;
16213      *)
16214	lt_prog_compiler_pic='+Z'
16215	;;
16216      esac
16217      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16218      lt_prog_compiler_static='$wl-a ${wl}archive'
16219      ;;
16220
16221    irix5* | irix6* | nonstopux*)
16222      lt_prog_compiler_wl='-Wl,'
16223      # PIC (with -KPIC) is the default.
16224      lt_prog_compiler_static='-non_shared'
16225      ;;
16226
16227    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16228      case $cc_basename in
16229      # old Intel for x86_64, which still supported -KPIC.
16230      ecc*)
16231	lt_prog_compiler_wl='-Wl,'
16232	lt_prog_compiler_pic='-KPIC'
16233	lt_prog_compiler_static='-static'
16234        ;;
16235      # icc used to be incompatible with GCC.
16236      # ICC 10 doesn't accept -KPIC any more.
16237      icc* | ifort*)
16238	lt_prog_compiler_wl='-Wl,'
16239	lt_prog_compiler_pic='-fPIC'
16240	lt_prog_compiler_static='-static'
16241        ;;
16242      # Lahey Fortran 8.1.
16243      lf95*)
16244	lt_prog_compiler_wl='-Wl,'
16245	lt_prog_compiler_pic='--shared'
16246	lt_prog_compiler_static='--static'
16247	;;
16248      nagfor*)
16249	# NAG Fortran compiler
16250	lt_prog_compiler_wl='-Wl,-Wl,,'
16251	lt_prog_compiler_pic='-PIC'
16252	lt_prog_compiler_static='-Bstatic'
16253	;;
16254      tcc*)
16255	# Fabrice Bellard et al's Tiny C Compiler
16256	lt_prog_compiler_wl='-Wl,'
16257	lt_prog_compiler_pic='-fPIC'
16258	lt_prog_compiler_static='-static'
16259	;;
16260      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16261        # Portland Group compilers (*not* the Pentium gcc compiler,
16262	# which looks to be a dead project)
16263	lt_prog_compiler_wl='-Wl,'
16264	lt_prog_compiler_pic='-fpic'
16265	lt_prog_compiler_static='-Bstatic'
16266        ;;
16267      ccc*)
16268        lt_prog_compiler_wl='-Wl,'
16269        # All Alpha code is PIC.
16270        lt_prog_compiler_static='-non_shared'
16271        ;;
16272      xl* | bgxl* | bgf* | mpixl*)
16273	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16274	lt_prog_compiler_wl='-Wl,'
16275	lt_prog_compiler_pic='-qpic'
16276	lt_prog_compiler_static='-qstaticlink'
16277	;;
16278      *)
16279	case `$CC -V 2>&1 | $SED 5q` in
16280	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16281	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16282	  lt_prog_compiler_pic='-KPIC'
16283	  lt_prog_compiler_static='-Bstatic'
16284	  lt_prog_compiler_wl=''
16285	  ;;
16286	*Sun\ F* | *Sun*Fortran*)
16287	  lt_prog_compiler_pic='-KPIC'
16288	  lt_prog_compiler_static='-Bstatic'
16289	  lt_prog_compiler_wl='-Qoption ld '
16290	  ;;
16291	*Sun\ C*)
16292	  # Sun C 5.9
16293	  lt_prog_compiler_pic='-KPIC'
16294	  lt_prog_compiler_static='-Bstatic'
16295	  lt_prog_compiler_wl='-Wl,'
16296	  ;;
16297        *Intel*\ [CF]*Compiler*)
16298	  lt_prog_compiler_wl='-Wl,'
16299	  lt_prog_compiler_pic='-fPIC'
16300	  lt_prog_compiler_static='-static'
16301	  ;;
16302	*Portland\ Group*)
16303	  lt_prog_compiler_wl='-Wl,'
16304	  lt_prog_compiler_pic='-fpic'
16305	  lt_prog_compiler_static='-Bstatic'
16306	  ;;
16307	esac
16308	;;
16309      esac
16310      ;;
16311
16312    newsos6)
16313      lt_prog_compiler_pic='-KPIC'
16314      lt_prog_compiler_static='-Bstatic'
16315      ;;
16316
16317    *nto* | *qnx*)
16318      # QNX uses GNU C++, but need to define -shared option too, otherwise
16319      # it will coredump.
16320      lt_prog_compiler_pic='-fPIC -shared'
16321      ;;
16322
16323    osf3* | osf4* | osf5*)
16324      lt_prog_compiler_wl='-Wl,'
16325      # All OSF/1 code is PIC.
16326      lt_prog_compiler_static='-non_shared'
16327      ;;
16328
16329    rdos*)
16330      lt_prog_compiler_static='-non_shared'
16331      ;;
16332
16333    solaris*)
16334      lt_prog_compiler_pic='-KPIC'
16335      lt_prog_compiler_static='-Bstatic'
16336      case $cc_basename in
16337      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16338	lt_prog_compiler_wl='-Qoption ld ';;
16339      *)
16340	lt_prog_compiler_wl='-Wl,';;
16341      esac
16342      ;;
16343
16344    sunos4*)
16345      lt_prog_compiler_wl='-Qoption ld '
16346      lt_prog_compiler_pic='-PIC'
16347      lt_prog_compiler_static='-Bstatic'
16348      ;;
16349
16350    sysv4 | sysv4.2uw2* | sysv4.3*)
16351      lt_prog_compiler_wl='-Wl,'
16352      lt_prog_compiler_pic='-KPIC'
16353      lt_prog_compiler_static='-Bstatic'
16354      ;;
16355
16356    sysv4*MP*)
16357      if test -d /usr/nec; then
16358	lt_prog_compiler_pic='-Kconform_pic'
16359	lt_prog_compiler_static='-Bstatic'
16360      fi
16361      ;;
16362
16363    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16364      lt_prog_compiler_wl='-Wl,'
16365      lt_prog_compiler_pic='-KPIC'
16366      lt_prog_compiler_static='-Bstatic'
16367      ;;
16368
16369    unicos*)
16370      lt_prog_compiler_wl='-Wl,'
16371      lt_prog_compiler_can_build_shared=no
16372      ;;
16373
16374    uts4*)
16375      lt_prog_compiler_pic='-pic'
16376      lt_prog_compiler_static='-Bstatic'
16377      ;;
16378
16379    *)
16380      lt_prog_compiler_can_build_shared=no
16381      ;;
16382    esac
16383  fi
16384
16385case $host_os in
16386  # For platforms that do not support PIC, -DPIC is meaningless:
16387  *djgpp*)
16388    lt_prog_compiler_pic=
16389    ;;
16390  *)
16391    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16392    ;;
16393esac
16394
16395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16396printf %s "checking for $compiler option to produce PIC... " >&6; }
16397if test ${lt_cv_prog_compiler_pic+y}
16398then :
16399  printf %s "(cached) " >&6
16400else case e in #(
16401  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
16402esac
16403fi
16404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16405printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16406lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16407
16408#
16409# Check to make sure the PIC flag actually works.
16410#
16411if test -n "$lt_prog_compiler_pic"; then
16412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16413printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16414if test ${lt_cv_prog_compiler_pic_works+y}
16415then :
16416  printf %s "(cached) " >&6
16417else case e in #(
16418  e) lt_cv_prog_compiler_pic_works=no
16419   ac_outfile=conftest.$ac_objext
16420   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16421   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16422   # Insert the option either (1) after the last *FLAGS variable, or
16423   # (2) before a word containing "conftest.", or (3) at the end.
16424   # Note that $ac_compile itself does not contain backslashes and begins
16425   # with a dollar sign (not a hyphen), so the echo should work correctly.
16426   # The option is referenced via a variable to avoid confusing sed.
16427   lt_compile=`echo "$ac_compile" | $SED \
16428   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16429   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16430   -e 's:$: $lt_compiler_flag:'`
16431   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16432   (eval "$lt_compile" 2>conftest.err)
16433   ac_status=$?
16434   cat conftest.err >&5
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   if (exit $ac_status) && test -s "$ac_outfile"; then
16437     # The compiler can only warn and ignore the option if not recognized
16438     # So say no if there are warnings other than the usual output.
16439     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16440     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16441     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16442       lt_cv_prog_compiler_pic_works=yes
16443     fi
16444   fi
16445   $RM conftest*
16446 ;;
16447esac
16448fi
16449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16450printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16451
16452if test yes = "$lt_cv_prog_compiler_pic_works"; then
16453    case $lt_prog_compiler_pic in
16454     "" | " "*) ;;
16455     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16456     esac
16457else
16458    lt_prog_compiler_pic=
16459     lt_prog_compiler_can_build_shared=no
16460fi
16461
16462fi
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474#
16475# Check to make sure the static flag actually works.
16476#
16477wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16479printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16480if test ${lt_cv_prog_compiler_static_works+y}
16481then :
16482  printf %s "(cached) " >&6
16483else case e in #(
16484  e) lt_cv_prog_compiler_static_works=no
16485   save_LDFLAGS=$LDFLAGS
16486   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16487   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16488   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16489     # The linker can only warn and ignore the option if not recognized
16490     # So say no if there are warnings
16491     if test -s conftest.err; then
16492       # Append any errors to the config.log.
16493       cat conftest.err 1>&5
16494       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16495       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16496       if diff conftest.exp conftest.er2 >/dev/null; then
16497         lt_cv_prog_compiler_static_works=yes
16498       fi
16499     else
16500       lt_cv_prog_compiler_static_works=yes
16501     fi
16502   fi
16503   $RM -r conftest*
16504   LDFLAGS=$save_LDFLAGS
16505 ;;
16506esac
16507fi
16508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16509printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16510
16511if test yes = "$lt_cv_prog_compiler_static_works"; then
16512    :
16513else
16514    lt_prog_compiler_static=
16515fi
16516
16517
16518
16519
16520
16521
16522
16523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16524printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16525if test ${lt_cv_prog_compiler_c_o+y}
16526then :
16527  printf %s "(cached) " >&6
16528else case e in #(
16529  e) lt_cv_prog_compiler_c_o=no
16530   $RM -r conftest 2>/dev/null
16531   mkdir conftest
16532   cd conftest
16533   mkdir out
16534   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16535
16536   lt_compiler_flag="-o out/conftest2.$ac_objext"
16537   # Insert the option either (1) after the last *FLAGS variable, or
16538   # (2) before a word containing "conftest.", or (3) at the end.
16539   # Note that $ac_compile itself does not contain backslashes and begins
16540   # with a dollar sign (not a hyphen), so the echo should work correctly.
16541   lt_compile=`echo "$ac_compile" | $SED \
16542   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16543   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16544   -e 's:$: $lt_compiler_flag:'`
16545   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16546   (eval "$lt_compile" 2>out/conftest.err)
16547   ac_status=$?
16548   cat out/conftest.err >&5
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16551   then
16552     # The compiler can only warn and ignore the option if not recognized
16553     # So say no if there are warnings
16554     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16555     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16556     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16557       lt_cv_prog_compiler_c_o=yes
16558     fi
16559   fi
16560   chmod u+w . 2>&5
16561   $RM conftest*
16562   # SGI C++ compiler will create directory out/ii_files/ for
16563   # template instantiation
16564   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16565   $RM out/* && rmdir out
16566   cd ..
16567   $RM -r conftest
16568   $RM conftest*
16569 ;;
16570esac
16571fi
16572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16573printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16574
16575
16576
16577
16578
16579
16580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16581printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16582if test ${lt_cv_prog_compiler_c_o+y}
16583then :
16584  printf %s "(cached) " >&6
16585else case e in #(
16586  e) lt_cv_prog_compiler_c_o=no
16587   $RM -r conftest 2>/dev/null
16588   mkdir conftest
16589   cd conftest
16590   mkdir out
16591   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16592
16593   lt_compiler_flag="-o out/conftest2.$ac_objext"
16594   # Insert the option either (1) after the last *FLAGS variable, or
16595   # (2) before a word containing "conftest.", or (3) at the end.
16596   # Note that $ac_compile itself does not contain backslashes and begins
16597   # with a dollar sign (not a hyphen), so the echo should work correctly.
16598   lt_compile=`echo "$ac_compile" | $SED \
16599   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16600   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16601   -e 's:$: $lt_compiler_flag:'`
16602   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16603   (eval "$lt_compile" 2>out/conftest.err)
16604   ac_status=$?
16605   cat out/conftest.err >&5
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16608   then
16609     # The compiler can only warn and ignore the option if not recognized
16610     # So say no if there are warnings
16611     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16612     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16613     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16614       lt_cv_prog_compiler_c_o=yes
16615     fi
16616   fi
16617   chmod u+w . 2>&5
16618   $RM conftest*
16619   # SGI C++ compiler will create directory out/ii_files/ for
16620   # template instantiation
16621   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16622   $RM out/* && rmdir out
16623   cd ..
16624   $RM -r conftest
16625   $RM conftest*
16626 ;;
16627esac
16628fi
16629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16630printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16631
16632
16633
16634
16635hard_links=nottested
16636if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16637  # do not overwrite the value of need_locks provided by the user
16638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16639printf %s "checking if we can lock with hard links... " >&6; }
16640  hard_links=yes
16641  $RM conftest*
16642  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16643  touch conftest.a
16644  ln conftest.a conftest.b 2>&5 || hard_links=no
16645  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16647printf "%s\n" "$hard_links" >&6; }
16648  if test no = "$hard_links"; then
16649    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16650printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16651    need_locks=warn
16652  fi
16653else
16654  need_locks=no
16655fi
16656
16657
16658
16659
16660
16661
16662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16663printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16664
16665  runpath_var=
16666  allow_undefined_flag=
16667  always_export_symbols=no
16668  archive_cmds=
16669  archive_expsym_cmds=
16670  compiler_needs_object=no
16671  enable_shared_with_static_runtimes=no
16672  export_dynamic_flag_spec=
16673  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16674  hardcode_automatic=no
16675  hardcode_direct=no
16676  hardcode_direct_absolute=no
16677  hardcode_libdir_flag_spec=
16678  hardcode_libdir_separator=
16679  hardcode_minus_L=no
16680  hardcode_shlibpath_var=unsupported
16681  inherit_rpath=no
16682  link_all_deplibs=unknown
16683  module_cmds=
16684  module_expsym_cmds=
16685  old_archive_from_new_cmds=
16686  old_archive_from_expsyms_cmds=
16687  thread_safe_flag_spec=
16688  whole_archive_flag_spec=
16689  # include_expsyms should be a list of space-separated symbols to be *always*
16690  # included in the symbol list
16691  include_expsyms=
16692  # exclude_expsyms can be an extended regexp of symbols to exclude
16693  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16694  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16695  # as well as any symbol that contains 'd'.
16696  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16697  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16698  # platforms (ab)use it in PIC code, but their linkers get confused if
16699  # the symbol is explicitly referenced.  Since portable code cannot
16700  # rely on this symbol name, it's probably fine to never include it in
16701  # preloaded symbol tables.
16702  # Exclude shared library initialization/finalization symbols.
16703  extract_expsyms_cmds=
16704
16705  case $host_os in
16706  cygwin* | mingw* | pw32* | cegcc*)
16707    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16708    # When not using gcc, we currently assume that we are using
16709    # Microsoft Visual C++ or Intel C++ Compiler.
16710    if test yes != "$GCC"; then
16711      with_gnu_ld=no
16712    fi
16713    ;;
16714  interix*)
16715    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16716    with_gnu_ld=yes
16717    ;;
16718  openbsd* | bitrig*)
16719    with_gnu_ld=no
16720    ;;
16721  esac
16722
16723  ld_shlibs=yes
16724
16725  # On some targets, GNU ld is compatible enough with the native linker
16726  # that we're better off using the native interface for both.
16727  lt_use_gnu_ld_interface=no
16728  if test yes = "$with_gnu_ld"; then
16729    case $host_os in
16730      aix*)
16731	# The AIX port of GNU ld has always aspired to compatibility
16732	# with the native linker.  However, as the warning in the GNU ld
16733	# block says, versions before 2.19.5* couldn't really create working
16734	# shared libraries, regardless of the interface used.
16735	case `$LD -v 2>&1` in
16736	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16737	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16738	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16739	  *)
16740	    lt_use_gnu_ld_interface=yes
16741	    ;;
16742	esac
16743	;;
16744      *)
16745	lt_use_gnu_ld_interface=yes
16746	;;
16747    esac
16748  fi
16749
16750  if test yes = "$lt_use_gnu_ld_interface"; then
16751    # If archive_cmds runs LD, not CC, wlarc should be empty
16752    wlarc='$wl'
16753
16754    # Set some defaults for GNU ld with shared library support. These
16755    # are reset later if shared libraries are not supported. Putting them
16756    # here allows them to be overridden if necessary.
16757    runpath_var=LD_RUN_PATH
16758    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16759    export_dynamic_flag_spec='$wl--export-dynamic'
16760    # ancient GNU ld didn't support --whole-archive et. al.
16761    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16762      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16763    else
16764      whole_archive_flag_spec=
16765    fi
16766    supports_anon_versioning=no
16767    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16768      *GNU\ gold*) supports_anon_versioning=yes ;;
16769      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16770      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16771      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16772      *\ 2.11.*) ;; # other 2.11 versions
16773      *) supports_anon_versioning=yes ;;
16774    esac
16775
16776    # See if GNU ld supports shared libraries.
16777    case $host_os in
16778    aix[3-9]*)
16779      # On AIX/PPC, the GNU linker is very broken
16780      if test ia64 != "$host_cpu"; then
16781	ld_shlibs=no
16782	cat <<_LT_EOF 1>&2
16783
16784*** Warning: the GNU linker, at least up to release 2.19, is reported
16785*** to be unable to reliably create shared libraries on AIX.
16786*** Therefore, libtool is disabling shared libraries support.  If you
16787*** really care for shared libraries, you may want to install binutils
16788*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16789*** You will then need to restart the configuration process.
16790
16791_LT_EOF
16792      fi
16793      ;;
16794
16795    amigaos*)
16796      case $host_cpu in
16797      powerpc)
16798            # see comment about AmigaOS4 .so support
16799            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16800            archive_expsym_cmds=''
16801        ;;
16802      m68k)
16803            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)'
16804            hardcode_libdir_flag_spec='-L$libdir'
16805            hardcode_minus_L=yes
16806        ;;
16807      esac
16808      ;;
16809
16810    beos*)
16811      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16812	allow_undefined_flag=unsupported
16813	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16814	# support --undefined.  This deserves some investigation.  FIXME
16815	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16816      else
16817	ld_shlibs=no
16818      fi
16819      ;;
16820
16821    cygwin* | mingw* | pw32* | cegcc*)
16822      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16823      # as there is no search path for DLLs.
16824      hardcode_libdir_flag_spec='-L$libdir'
16825      export_dynamic_flag_spec='$wl--export-all-symbols'
16826      allow_undefined_flag=unsupported
16827      always_export_symbols=no
16828      enable_shared_with_static_runtimes=yes
16829      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'
16830      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16831
16832      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16833        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16834	# If the export-symbols file already is a .def file, use it as
16835	# is; otherwise, prepend EXPORTS...
16836	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16837          cp $export_symbols $output_objdir/$soname.def;
16838        else
16839          echo EXPORTS > $output_objdir/$soname.def;
16840          cat $export_symbols >> $output_objdir/$soname.def;
16841        fi~
16842        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16843      else
16844	ld_shlibs=no
16845      fi
16846      ;;
16847
16848    haiku*)
16849      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16850      link_all_deplibs=yes
16851      ;;
16852
16853    os2*)
16854      hardcode_libdir_flag_spec='-L$libdir'
16855      hardcode_minus_L=yes
16856      allow_undefined_flag=unsupported
16857      shrext_cmds=.dll
16858      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16859	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16860	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16861	$ECHO EXPORTS >> $output_objdir/$libname.def~
16862	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16863	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16864	emximp -o $lib $output_objdir/$libname.def'
16865      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16866	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16867	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16868	$ECHO EXPORTS >> $output_objdir/$libname.def~
16869	prefix_cmds="$SED"~
16870	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16871	  prefix_cmds="$prefix_cmds -e 1d";
16872	fi~
16873	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16874	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16875	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16876	emximp -o $lib $output_objdir/$libname.def'
16877      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16878      enable_shared_with_static_runtimes=yes
16879      file_list_spec='@'
16880      ;;
16881
16882    interix[3-9]*)
16883      hardcode_direct=no
16884      hardcode_shlibpath_var=no
16885      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16886      export_dynamic_flag_spec='$wl-E'
16887      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16888      # Instead, shared libraries are loaded at an image base (0x10000000 by
16889      # default) and relocated if they conflict, which is a slow very memory
16890      # consuming and fragmenting process.  To avoid this, we pick a random,
16891      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16892      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16893      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16894      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'
16895      ;;
16896
16897    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16898      tmp_diet=no
16899      if test linux-dietlibc = "$host_os"; then
16900	case $cc_basename in
16901	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16902	esac
16903      fi
16904      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16905	 && test no = "$tmp_diet"
16906      then
16907	tmp_addflag=' $pic_flag'
16908	tmp_sharedflag='-shared'
16909	case $cc_basename,$host_cpu in
16910        pgcc*)				# Portland Group C compiler
16911	  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'
16912	  tmp_addflag=' $pic_flag'
16913	  ;;
16914	pgf77* | pgf90* | pgf95* | pgfortran*)
16915					# Portland Group f77 and f90 compilers
16916	  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'
16917	  tmp_addflag=' $pic_flag -Mnomain' ;;
16918	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16919	  tmp_addflag=' -i_dynamic' ;;
16920	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16921	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16922	ifc* | ifort*)			# Intel Fortran compiler
16923	  tmp_addflag=' -nofor_main' ;;
16924	lf95*)				# Lahey Fortran 8.1
16925	  whole_archive_flag_spec=
16926	  tmp_sharedflag='--shared' ;;
16927        nagfor*)                        # NAGFOR 5.3
16928          tmp_sharedflag='-Wl,-shared' ;;
16929	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16930	  tmp_sharedflag='-qmkshrobj'
16931	  tmp_addflag= ;;
16932	nvcc*)	# Cuda Compiler Driver 2.2
16933	  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'
16934	  compiler_needs_object=yes
16935	  ;;
16936	esac
16937	case `$CC -V 2>&1 | $SED 5q` in
16938	*Sun\ C*)			# Sun C 5.9
16939	  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'
16940	  compiler_needs_object=yes
16941	  tmp_sharedflag='-G' ;;
16942	*Sun\ F*)			# Sun Fortran 8.3
16943	  tmp_sharedflag='-G' ;;
16944	esac
16945	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16946
16947        if test yes = "$supports_anon_versioning"; then
16948          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16949            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16950            echo "local: *; };" >> $output_objdir/$libname.ver~
16951            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16952        fi
16953
16954	case $cc_basename in
16955	tcc*)
16956	  export_dynamic_flag_spec='-rdynamic'
16957	  ;;
16958	xlf* | bgf* | bgxlf* | mpixlf*)
16959	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16960	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16961	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16962	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16963	  if test yes = "$supports_anon_versioning"; then
16964	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16965              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16966              echo "local: *; };" >> $output_objdir/$libname.ver~
16967              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16968	  fi
16969	  ;;
16970	esac
16971      else
16972        ld_shlibs=no
16973      fi
16974      ;;
16975
16976    netbsd*)
16977      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16978	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16979	wlarc=
16980      else
16981	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16982	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16983      fi
16984      ;;
16985
16986    solaris*)
16987      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16988	ld_shlibs=no
16989	cat <<_LT_EOF 1>&2
16990
16991*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16992*** create shared libraries on Solaris systems.  Therefore, libtool
16993*** is disabling shared libraries support.  We urge you to upgrade GNU
16994*** binutils to release 2.9.1 or newer.  Another option is to modify
16995*** your PATH or compiler configuration so that the native linker is
16996*** used, and then restart.
16997
16998_LT_EOF
16999      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17000	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17001	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17002      else
17003	ld_shlibs=no
17004      fi
17005      ;;
17006
17007    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17008      case `$LD -v 2>&1` in
17009        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17010	ld_shlibs=no
17011	cat <<_LT_EOF 1>&2
17012
17013*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
17014*** reliably create shared libraries on SCO systems.  Therefore, libtool
17015*** is disabling shared libraries support.  We urge you to upgrade GNU
17016*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17017*** your PATH or compiler configuration so that the native linker is
17018*** used, and then restart.
17019
17020_LT_EOF
17021	;;
17022	*)
17023	  # For security reasons, it is highly recommended that you always
17024	  # use absolute paths for naming shared libraries, and exclude the
17025	  # DT_RUNPATH tag from executables and libraries.  But doing so
17026	  # requires that you compile everything twice, which is a pain.
17027	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17028	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17029	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17030	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17031	  else
17032	    ld_shlibs=no
17033	  fi
17034	;;
17035      esac
17036      ;;
17037
17038    sunos4*)
17039      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17040      wlarc=
17041      hardcode_direct=yes
17042      hardcode_shlibpath_var=no
17043      ;;
17044
17045    *)
17046      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17047	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17048	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17049      else
17050	ld_shlibs=no
17051      fi
17052      ;;
17053    esac
17054
17055    if test no = "$ld_shlibs"; then
17056      runpath_var=
17057      hardcode_libdir_flag_spec=
17058      export_dynamic_flag_spec=
17059      whole_archive_flag_spec=
17060    fi
17061  else
17062    # PORTME fill in a description of your system's linker (not GNU ld)
17063    case $host_os in
17064    aix3*)
17065      allow_undefined_flag=unsupported
17066      always_export_symbols=yes
17067      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'
17068      # Note: this linker hardcodes the directories in LIBPATH if there
17069      # are no directories specified by -L.
17070      hardcode_minus_L=yes
17071      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17072	# Neither direct hardcoding nor static linking is supported with a
17073	# broken collect2.
17074	hardcode_direct=unsupported
17075      fi
17076      ;;
17077
17078    aix[4-9]*)
17079      if test ia64 = "$host_cpu"; then
17080	# On IA64, the linker does run time linking by default, so we don't
17081	# have to do anything special.
17082	aix_use_runtimelinking=no
17083	exp_sym_flag='-Bexport'
17084	no_entry_flag=
17085      else
17086	# If we're using GNU nm, then we don't want the "-C" option.
17087	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
17088	# Without the "-l" option, or with the "-B" option, AIX nm treats
17089	# weak defined symbols like other global defined symbols, whereas
17090	# GNU nm marks them as "W".
17091	# While the 'weak' keyword is ignored in the Export File, we need
17092	# it in the Import File for the 'aix-soname' feature, so we have
17093	# to replace the "-B" option with "-P" for AIX nm.
17094	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17095	  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'
17096	else
17097	  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'
17098	fi
17099	aix_use_runtimelinking=no
17100
17101	# Test if we are trying to use run time linking or normal
17102	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17103	# have runtime linking enabled, and use it for executables.
17104	# For shared libraries, we enable/disable runtime linking
17105	# depending on the kind of the shared library created -
17106	# when "with_aix_soname,aix_use_runtimelinking" is:
17107	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
17108	# "aix,yes"  lib.so          shared, rtl:yes, for executables
17109	#            lib.a           static archive
17110	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
17111	#            lib.a(lib.so.V) shared, rtl:no,  for executables
17112	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17113	#            lib.a(lib.so.V) shared, rtl:no
17114	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
17115	#            lib.a           static archive
17116	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17117	  for ld_flag in $LDFLAGS; do
17118	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17119	    aix_use_runtimelinking=yes
17120	    break
17121	  fi
17122	  done
17123	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17124	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
17125	    # so we don't have lib.a shared libs to link our executables.
17126	    # We have to force runtime linking in this case.
17127	    aix_use_runtimelinking=yes
17128	    LDFLAGS="$LDFLAGS -Wl,-brtl"
17129	  fi
17130	  ;;
17131	esac
17132
17133	exp_sym_flag='-bexport'
17134	no_entry_flag='-bnoentry'
17135      fi
17136
17137      # When large executables or shared objects are built, AIX ld can
17138      # have problems creating the table of contents.  If linking a library
17139      # or program results in "error TOC overflow" add -mminimal-toc to
17140      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17141      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17142
17143      archive_cmds=''
17144      hardcode_direct=yes
17145      hardcode_direct_absolute=yes
17146      hardcode_libdir_separator=':'
17147      link_all_deplibs=yes
17148      file_list_spec='$wl-f,'
17149      case $with_aix_soname,$aix_use_runtimelinking in
17150      aix,*) ;; # traditional, no import file
17151      svr4,* | *,yes) # use import file
17152	# The Import File defines what to hardcode.
17153	hardcode_direct=no
17154	hardcode_direct_absolute=no
17155	;;
17156      esac
17157
17158      if test yes = "$GCC"; then
17159	case $host_os in aix4.[012]|aix4.[012].*)
17160	# We only want to do this on AIX 4.2 and lower, the check
17161	# below for broken collect2 doesn't work under 4.3+
17162	  collect2name=`$CC -print-prog-name=collect2`
17163	  if test -f "$collect2name" &&
17164	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17165	  then
17166	  # We have reworked collect2
17167	  :
17168	  else
17169	  # We have old collect2
17170	  hardcode_direct=unsupported
17171	  # It fails to find uninstalled libraries when the uninstalled
17172	  # path is not listed in the libpath.  Setting hardcode_minus_L
17173	  # to unsupported forces relinking
17174	  hardcode_minus_L=yes
17175	  hardcode_libdir_flag_spec='-L$libdir'
17176	  hardcode_libdir_separator=
17177	  fi
17178	  ;;
17179	esac
17180	shared_flag='-shared'
17181	if test yes = "$aix_use_runtimelinking"; then
17182	  shared_flag="$shared_flag "'$wl-G'
17183	fi
17184	# Need to ensure runtime linking is disabled for the traditional
17185	# shared library, or the linker may eventually find shared libraries
17186	# /with/ Import File - we do not want to mix them.
17187	shared_flag_aix='-shared'
17188	shared_flag_svr4='-shared $wl-G'
17189      else
17190	# not using gcc
17191	if test ia64 = "$host_cpu"; then
17192	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17193	# chokes on -Wl,-G. The following line is correct:
17194	  shared_flag='-G'
17195	else
17196	  if test yes = "$aix_use_runtimelinking"; then
17197	    shared_flag='$wl-G'
17198	  else
17199	    shared_flag='$wl-bM:SRE'
17200	  fi
17201	  shared_flag_aix='$wl-bM:SRE'
17202	  shared_flag_svr4='$wl-G'
17203	fi
17204      fi
17205
17206      export_dynamic_flag_spec='$wl-bexpall'
17207      # It seems that -bexpall does not export symbols beginning with
17208      # underscore (_), so it is better to generate a list of symbols to export.
17209      always_export_symbols=yes
17210      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17211	# Warning - without using the other runtime loading flags (-brtl),
17212	# -berok will link without error, but may produce a broken library.
17213	allow_undefined_flag='-berok'
17214        # Determine the default libpath from the value encoded in an
17215        # empty executable.
17216        if test set = "${lt_cv_aix_libpath+set}"; then
17217  aix_libpath=$lt_cv_aix_libpath
17218else
17219  if test ${lt_cv_aix_libpath_+y}
17220then :
17221  printf %s "(cached) " >&6
17222else case e in #(
17223  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224/* end confdefs.h.  */
17225
17226int
17227main (void)
17228{
17229
17230  ;
17231  return 0;
17232}
17233_ACEOF
17234if ac_fn_c_try_link "$LINENO"
17235then :
17236
17237  lt_aix_libpath_sed='
17238      /Import File Strings/,/^$/ {
17239	  /^0/ {
17240	      s/^0  *\([^ ]*\) *$/\1/
17241	      p
17242	  }
17243      }'
17244  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17245  # Check for a 64-bit object if we didn't find anything.
17246  if test -z "$lt_cv_aix_libpath_"; then
17247    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17248  fi
17249fi
17250rm -f core conftest.err conftest.$ac_objext conftest.beam \
17251    conftest$ac_exeext conftest.$ac_ext
17252  if test -z "$lt_cv_aix_libpath_"; then
17253    lt_cv_aix_libpath_=/usr/lib:/lib
17254  fi
17255   ;;
17256esac
17257fi
17258
17259  aix_libpath=$lt_cv_aix_libpath_
17260fi
17261
17262        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17263        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
17264      else
17265	if test ia64 = "$host_cpu"; then
17266	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17267	  allow_undefined_flag="-z nodefs"
17268	  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"
17269	else
17270	 # Determine the default libpath from the value encoded in an
17271	 # empty executable.
17272	 if test set = "${lt_cv_aix_libpath+set}"; then
17273  aix_libpath=$lt_cv_aix_libpath
17274else
17275  if test ${lt_cv_aix_libpath_+y}
17276then :
17277  printf %s "(cached) " >&6
17278else case e in #(
17279  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280/* end confdefs.h.  */
17281
17282int
17283main (void)
17284{
17285
17286  ;
17287  return 0;
17288}
17289_ACEOF
17290if ac_fn_c_try_link "$LINENO"
17291then :
17292
17293  lt_aix_libpath_sed='
17294      /Import File Strings/,/^$/ {
17295	  /^0/ {
17296	      s/^0  *\([^ ]*\) *$/\1/
17297	      p
17298	  }
17299      }'
17300  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17301  # Check for a 64-bit object if we didn't find anything.
17302  if test -z "$lt_cv_aix_libpath_"; then
17303    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17304  fi
17305fi
17306rm -f core conftest.err conftest.$ac_objext conftest.beam \
17307    conftest$ac_exeext conftest.$ac_ext
17308  if test -z "$lt_cv_aix_libpath_"; then
17309    lt_cv_aix_libpath_=/usr/lib:/lib
17310  fi
17311   ;;
17312esac
17313fi
17314
17315  aix_libpath=$lt_cv_aix_libpath_
17316fi
17317
17318	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17319	  # Warning - without using the other run time loading flags,
17320	  # -berok will link without error, but may produce a broken library.
17321	  no_undefined_flag=' $wl-bernotok'
17322	  allow_undefined_flag=' $wl-berok'
17323	  if test yes = "$with_gnu_ld"; then
17324	    # We only use this code for GNU lds that support --whole-archive.
17325	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17326	  else
17327	    # Exported symbols can be pulled into shared objects from archives
17328	    whole_archive_flag_spec='$convenience'
17329	  fi
17330	  archive_cmds_need_lc=yes
17331	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17332	  # -brtl affects multiple linker settings, -berok does not and is overridden later
17333	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17334	  if test svr4 != "$with_aix_soname"; then
17335	    # This is similar to how AIX traditionally builds its shared libraries.
17336	    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'
17337	  fi
17338	  if test aix != "$with_aix_soname"; then
17339	    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'
17340	  else
17341	    # used by -dlpreopen to get the symbols
17342	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17343	  fi
17344	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17345	fi
17346      fi
17347      ;;
17348
17349    amigaos*)
17350      case $host_cpu in
17351      powerpc)
17352            # see comment about AmigaOS4 .so support
17353            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17354            archive_expsym_cmds=''
17355        ;;
17356      m68k)
17357            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)'
17358            hardcode_libdir_flag_spec='-L$libdir'
17359            hardcode_minus_L=yes
17360        ;;
17361      esac
17362      ;;
17363
17364    bsdi[45]*)
17365      export_dynamic_flag_spec=-rdynamic
17366      ;;
17367
17368    cygwin* | mingw* | pw32* | cegcc*)
17369      # When not using gcc, we currently assume that we are using
17370      # Microsoft Visual C++ or Intel C++ Compiler.
17371      # hardcode_libdir_flag_spec is actually meaningless, as there is
17372      # no search path for DLLs.
17373      case $cc_basename in
17374      cl* | icl*)
17375	# Native MSVC or ICC
17376	hardcode_libdir_flag_spec=' '
17377	allow_undefined_flag=unsupported
17378	always_export_symbols=yes
17379	file_list_spec='@'
17380	# Tell ltmain to make .lib files, not .a files.
17381	libext=lib
17382	# Tell ltmain to make .dll files, not .so files.
17383	shrext_cmds=.dll
17384	# FIXME: Setting linknames here is a bad hack.
17385	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17386	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17387            cp "$export_symbols" "$output_objdir/$soname.def";
17388            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17389          else
17390            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17391          fi~
17392          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17393          linknames='
17394	# The linker will not automatically build a static lib if we build a DLL.
17395	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17396	enable_shared_with_static_runtimes=yes
17397	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17398	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17399	# Don't use ranlib
17400	old_postinstall_cmds='chmod 644 $oldlib'
17401	postlink_cmds='lt_outputfile="@OUTPUT@"~
17402          lt_tool_outputfile="@TOOL_OUTPUT@"~
17403          case $lt_outputfile in
17404            *.exe|*.EXE) ;;
17405            *)
17406              lt_outputfile=$lt_outputfile.exe
17407              lt_tool_outputfile=$lt_tool_outputfile.exe
17408              ;;
17409          esac~
17410          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17411            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17412            $RM "$lt_outputfile.manifest";
17413          fi'
17414	;;
17415      *)
17416	# Assume MSVC and ICC wrapper
17417	hardcode_libdir_flag_spec=' '
17418	allow_undefined_flag=unsupported
17419	# Tell ltmain to make .lib files, not .a files.
17420	libext=lib
17421	# Tell ltmain to make .dll files, not .so files.
17422	shrext_cmds=.dll
17423	# FIXME: Setting linknames here is a bad hack.
17424	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17425	# The linker will automatically build a .lib file if we build a DLL.
17426	old_archive_from_new_cmds='true'
17427	# FIXME: Should let the user specify the lib program.
17428	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17429	enable_shared_with_static_runtimes=yes
17430	;;
17431      esac
17432      ;;
17433
17434    darwin* | rhapsody*)
17435
17436
17437  archive_cmds_need_lc=no
17438  hardcode_direct=no
17439  hardcode_automatic=yes
17440  hardcode_shlibpath_var=unsupported
17441  if test yes = "$lt_cv_ld_force_load"; then
17442    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\"`'
17443
17444  else
17445    whole_archive_flag_spec=''
17446  fi
17447  link_all_deplibs=yes
17448  allow_undefined_flag=$_lt_dar_allow_undefined
17449  case $cc_basename in
17450     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17451     *) _lt_dar_can_shared=$GCC ;;
17452  esac
17453  if test yes = "$_lt_dar_can_shared"; then
17454    output_verbose_link_cmd=func_echo_all
17455    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17456    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17457    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"
17458    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"
17459
17460  else
17461  ld_shlibs=no
17462  fi
17463
17464      ;;
17465
17466    dgux*)
17467      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17468      hardcode_libdir_flag_spec='-L$libdir'
17469      hardcode_shlibpath_var=no
17470      ;;
17471
17472    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17473    # support.  Future versions do this automatically, but an explicit c++rt0.o
17474    # does not break anything, and helps significantly (at the cost of a little
17475    # extra space).
17476    freebsd2.2*)
17477      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17478      hardcode_libdir_flag_spec='-R$libdir'
17479      hardcode_direct=yes
17480      hardcode_shlibpath_var=no
17481      ;;
17482
17483    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17484    freebsd2.*)
17485      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17486      hardcode_direct=yes
17487      hardcode_minus_L=yes
17488      hardcode_shlibpath_var=no
17489      ;;
17490
17491    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17492    freebsd* | dragonfly* | midnightbsd*)
17493      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17494      hardcode_libdir_flag_spec='-R$libdir'
17495      hardcode_direct=yes
17496      hardcode_shlibpath_var=no
17497      ;;
17498
17499    hpux9*)
17500      if test yes = "$GCC"; then
17501	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'
17502      else
17503	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'
17504      fi
17505      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17506      hardcode_libdir_separator=:
17507      hardcode_direct=yes
17508
17509      # hardcode_minus_L: Not really in the search PATH,
17510      # but as the default location of the library.
17511      hardcode_minus_L=yes
17512      export_dynamic_flag_spec='$wl-E'
17513      ;;
17514
17515    hpux10*)
17516      if test yes,no = "$GCC,$with_gnu_ld"; then
17517	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17518      else
17519	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17520      fi
17521      if test no = "$with_gnu_ld"; then
17522	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17523	hardcode_libdir_separator=:
17524	hardcode_direct=yes
17525	hardcode_direct_absolute=yes
17526	export_dynamic_flag_spec='$wl-E'
17527	# hardcode_minus_L: Not really in the search PATH,
17528	# but as the default location of the library.
17529	hardcode_minus_L=yes
17530      fi
17531      ;;
17532
17533    hpux11*)
17534      if test yes,no = "$GCC,$with_gnu_ld"; then
17535	case $host_cpu in
17536	hppa*64*)
17537	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17538	  ;;
17539	ia64*)
17540	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17541	  ;;
17542	*)
17543	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17544	  ;;
17545	esac
17546      else
17547	case $host_cpu in
17548	hppa*64*)
17549	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17550	  ;;
17551	ia64*)
17552	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17553	  ;;
17554	*)
17555
17556	  # Older versions of the 11.00 compiler do not understand -b yet
17557	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17558	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17559printf %s "checking if $CC understands -b... " >&6; }
17560if test ${lt_cv_prog_compiler__b+y}
17561then :
17562  printf %s "(cached) " >&6
17563else case e in #(
17564  e) lt_cv_prog_compiler__b=no
17565   save_LDFLAGS=$LDFLAGS
17566   LDFLAGS="$LDFLAGS -b"
17567   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17568   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17569     # The linker can only warn and ignore the option if not recognized
17570     # So say no if there are warnings
17571     if test -s conftest.err; then
17572       # Append any errors to the config.log.
17573       cat conftest.err 1>&5
17574       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17575       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17576       if diff conftest.exp conftest.er2 >/dev/null; then
17577         lt_cv_prog_compiler__b=yes
17578       fi
17579     else
17580       lt_cv_prog_compiler__b=yes
17581     fi
17582   fi
17583   $RM -r conftest*
17584   LDFLAGS=$save_LDFLAGS
17585 ;;
17586esac
17587fi
17588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17589printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17590
17591if test yes = "$lt_cv_prog_compiler__b"; then
17592    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17593else
17594    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17595fi
17596
17597	  ;;
17598	esac
17599      fi
17600      if test no = "$with_gnu_ld"; then
17601	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17602	hardcode_libdir_separator=:
17603
17604	case $host_cpu in
17605	hppa*64*|ia64*)
17606	  hardcode_direct=no
17607	  hardcode_shlibpath_var=no
17608	  ;;
17609	*)
17610	  hardcode_direct=yes
17611	  hardcode_direct_absolute=yes
17612	  export_dynamic_flag_spec='$wl-E'
17613
17614	  # hardcode_minus_L: Not really in the search PATH,
17615	  # but as the default location of the library.
17616	  hardcode_minus_L=yes
17617	  ;;
17618	esac
17619      fi
17620      ;;
17621
17622    irix5* | irix6* | nonstopux*)
17623      if test yes = "$GCC"; then
17624	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'
17625	# Try to use the -exported_symbol ld option, if it does not
17626	# work, assume that -exports_file does not work either and
17627	# implicitly export all symbols.
17628	# This should be the same for all languages, so no per-tag cache variable.
17629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17630printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17631if test ${lt_cv_irix_exported_symbol+y}
17632then :
17633  printf %s "(cached) " >&6
17634else case e in #(
17635  e) save_LDFLAGS=$LDFLAGS
17636	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17637	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638/* end confdefs.h.  */
17639int foo (void) { return 0; }
17640_ACEOF
17641if ac_fn_c_try_link "$LINENO"
17642then :
17643  lt_cv_irix_exported_symbol=yes
17644else case e in #(
17645  e) lt_cv_irix_exported_symbol=no ;;
17646esac
17647fi
17648rm -f core conftest.err conftest.$ac_objext conftest.beam \
17649    conftest$ac_exeext conftest.$ac_ext
17650           LDFLAGS=$save_LDFLAGS ;;
17651esac
17652fi
17653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17654printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17655	if test yes = "$lt_cv_irix_exported_symbol"; then
17656          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'
17657	fi
17658      else
17659	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'
17660	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'
17661      fi
17662      archive_cmds_need_lc='no'
17663      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17664      hardcode_libdir_separator=:
17665      inherit_rpath=yes
17666      link_all_deplibs=yes
17667      ;;
17668
17669    linux*)
17670      case $cc_basename in
17671      tcc*)
17672	# Fabrice Bellard et al's Tiny C Compiler
17673	ld_shlibs=yes
17674	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17675	;;
17676      esac
17677      ;;
17678
17679    netbsd*)
17680      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17681	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17682      else
17683	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17684      fi
17685      hardcode_libdir_flag_spec='-R$libdir'
17686      hardcode_direct=yes
17687      hardcode_shlibpath_var=no
17688      ;;
17689
17690    newsos6)
17691      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17692      hardcode_direct=yes
17693      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17694      hardcode_libdir_separator=:
17695      hardcode_shlibpath_var=no
17696      ;;
17697
17698    *nto* | *qnx*)
17699      ;;
17700
17701    openbsd* | bitrig*)
17702      if test -f /usr/libexec/ld.so; then
17703	hardcode_direct=yes
17704	hardcode_shlibpath_var=no
17705	hardcode_direct_absolute=yes
17706	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17707	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17708	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17709	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17710	  export_dynamic_flag_spec='$wl-E'
17711	else
17712	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17713	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17714	fi
17715      else
17716	ld_shlibs=no
17717      fi
17718      ;;
17719
17720    os2*)
17721      hardcode_libdir_flag_spec='-L$libdir'
17722      hardcode_minus_L=yes
17723      allow_undefined_flag=unsupported
17724      shrext_cmds=.dll
17725      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17726	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17727	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17728	$ECHO EXPORTS >> $output_objdir/$libname.def~
17729	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17730	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17731	emximp -o $lib $output_objdir/$libname.def'
17732      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17733	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17734	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17735	$ECHO EXPORTS >> $output_objdir/$libname.def~
17736	prefix_cmds="$SED"~
17737	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17738	  prefix_cmds="$prefix_cmds -e 1d";
17739	fi~
17740	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17741	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17742	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17743	emximp -o $lib $output_objdir/$libname.def'
17744      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17745      enable_shared_with_static_runtimes=yes
17746      file_list_spec='@'
17747      ;;
17748
17749    osf3*)
17750      if test yes = "$GCC"; then
17751	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17752	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'
17753      else
17754	allow_undefined_flag=' -expect_unresolved \*'
17755	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'
17756      fi
17757      archive_cmds_need_lc='no'
17758      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17759      hardcode_libdir_separator=:
17760      ;;
17761
17762    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17763      if test yes = "$GCC"; then
17764	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17765	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'
17766	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17767      else
17768	allow_undefined_flag=' -expect_unresolved \*'
17769	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'
17770	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~
17771          $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'
17772
17773	# Both c and cxx compiler support -rpath directly
17774	hardcode_libdir_flag_spec='-rpath $libdir'
17775      fi
17776      archive_cmds_need_lc='no'
17777      hardcode_libdir_separator=:
17778      ;;
17779
17780    solaris*)
17781      no_undefined_flag=' -z defs'
17782      if test yes = "$GCC"; then
17783	wlarc='$wl'
17784	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17785	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17786          $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'
17787      else
17788	case `$CC -V 2>&1` in
17789	*"Compilers 5.0"*)
17790	  wlarc=''
17791	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17792	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17793            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17794	  ;;
17795	*)
17796	  wlarc='$wl'
17797	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17798	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17799            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17800	  ;;
17801	esac
17802      fi
17803      hardcode_libdir_flag_spec='-R$libdir'
17804      hardcode_shlibpath_var=no
17805      case $host_os in
17806      solaris2.[0-5] | solaris2.[0-5].*) ;;
17807      *)
17808	# The compiler driver will combine and reorder linker options,
17809	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17810	# but is careful enough not to reorder.
17811	# Supported since Solaris 2.6 (maybe 2.5.1?)
17812	if test yes = "$GCC"; then
17813	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17814	else
17815	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17816	fi
17817	;;
17818      esac
17819      link_all_deplibs=yes
17820      ;;
17821
17822    sunos4*)
17823      if test sequent = "$host_vendor"; then
17824	# Use $CC to link under sequent, because it throws in some extra .o
17825	# files that make .init and .fini sections work.
17826	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17827      else
17828	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17829      fi
17830      hardcode_libdir_flag_spec='-L$libdir'
17831      hardcode_direct=yes
17832      hardcode_minus_L=yes
17833      hardcode_shlibpath_var=no
17834      ;;
17835
17836    sysv4)
17837      case $host_vendor in
17838	sni)
17839	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17840	  hardcode_direct=yes # is this really true???
17841	;;
17842	siemens)
17843	  ## LD is ld it makes a PLAMLIB
17844	  ## CC just makes a GrossModule.
17845	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17846	  reload_cmds='$CC -r -o $output$reload_objs'
17847	  hardcode_direct=no
17848        ;;
17849	motorola)
17850	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17851	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17852	;;
17853      esac
17854      runpath_var='LD_RUN_PATH'
17855      hardcode_shlibpath_var=no
17856      ;;
17857
17858    sysv4.3*)
17859      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17860      hardcode_shlibpath_var=no
17861      export_dynamic_flag_spec='-Bexport'
17862      ;;
17863
17864    sysv4*MP*)
17865      if test -d /usr/nec; then
17866	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17867	hardcode_shlibpath_var=no
17868	runpath_var=LD_RUN_PATH
17869	hardcode_runpath_var=yes
17870	ld_shlibs=yes
17871      fi
17872      ;;
17873
17874    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17875      no_undefined_flag='$wl-z,text'
17876      archive_cmds_need_lc=no
17877      hardcode_shlibpath_var=no
17878      runpath_var='LD_RUN_PATH'
17879
17880      if test yes = "$GCC"; then
17881	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17882	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17883      else
17884	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17885	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17886      fi
17887      ;;
17888
17889    sysv5* | sco3.2v5* | sco5v6*)
17890      # Note: We CANNOT use -z defs as we might desire, because we do not
17891      # link with -lc, and that would cause any symbols used from libc to
17892      # always be unresolved, which means just about no library would
17893      # ever link correctly.  If we're not using GNU ld we use -z text
17894      # though, which does catch some bad symbols but isn't as heavy-handed
17895      # as -z defs.
17896      no_undefined_flag='$wl-z,text'
17897      allow_undefined_flag='$wl-z,nodefs'
17898      archive_cmds_need_lc=no
17899      hardcode_shlibpath_var=no
17900      hardcode_libdir_flag_spec='$wl-R,$libdir'
17901      hardcode_libdir_separator=':'
17902      link_all_deplibs=yes
17903      export_dynamic_flag_spec='$wl-Bexport'
17904      runpath_var='LD_RUN_PATH'
17905
17906      if test yes = "$GCC"; then
17907	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17908	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17909      else
17910	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17911	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17912      fi
17913      ;;
17914
17915    uts4*)
17916      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17917      hardcode_libdir_flag_spec='-L$libdir'
17918      hardcode_shlibpath_var=no
17919      ;;
17920
17921    *)
17922      ld_shlibs=no
17923      ;;
17924    esac
17925
17926    if test sni = "$host_vendor"; then
17927      case $host in
17928      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17929	export_dynamic_flag_spec='$wl-Blargedynsym'
17930	;;
17931      esac
17932    fi
17933  fi
17934
17935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17936printf "%s\n" "$ld_shlibs" >&6; }
17937test no = "$ld_shlibs" && can_build_shared=no
17938
17939with_gnu_ld=$with_gnu_ld
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955#
17956# Do we need to explicitly link libc?
17957#
17958case "x$archive_cmds_need_lc" in
17959x|xyes)
17960  # Assume -lc should be added
17961  archive_cmds_need_lc=yes
17962
17963  if test yes,yes = "$GCC,$enable_shared"; then
17964    case $archive_cmds in
17965    *'~'*)
17966      # FIXME: we may have to deal with multi-command sequences.
17967      ;;
17968    '$CC '*)
17969      # Test whether the compiler implicitly links with -lc since on some
17970      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17971      # to ld, don't add -lc before -lgcc.
17972      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17973printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17974if test ${lt_cv_archive_cmds_need_lc+y}
17975then :
17976  printf %s "(cached) " >&6
17977else case e in #(
17978  e) $RM conftest*
17979	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17980
17981	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17982  (eval $ac_compile) 2>&5
17983  ac_status=$?
17984  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17985  test $ac_status = 0; } 2>conftest.err; then
17986	  soname=conftest
17987	  lib=conftest
17988	  libobjs=conftest.$ac_objext
17989	  deplibs=
17990	  wl=$lt_prog_compiler_wl
17991	  pic_flag=$lt_prog_compiler_pic
17992	  compiler_flags=-v
17993	  linker_flags=-v
17994	  verstring=
17995	  output_objdir=.
17996	  libname=conftest
17997	  lt_save_allow_undefined_flag=$allow_undefined_flag
17998	  allow_undefined_flag=
17999	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18000  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18001  ac_status=$?
18002  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18003  test $ac_status = 0; }
18004	  then
18005	    lt_cv_archive_cmds_need_lc=no
18006	  else
18007	    lt_cv_archive_cmds_need_lc=yes
18008	  fi
18009	  allow_undefined_flag=$lt_save_allow_undefined_flag
18010	else
18011	  cat conftest.err 1>&5
18012	fi
18013	$RM conftest*
18014	 ;;
18015esac
18016fi
18017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18018printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
18019      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18020      ;;
18021    esac
18022  fi
18023  ;;
18024esac
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18178printf %s "checking dynamic linker characteristics... " >&6; }
18179
18180if test yes = "$GCC"; then
18181  case $host_os in
18182    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18183    *) lt_awk_arg='/^libraries:/' ;;
18184  esac
18185  case $host_os in
18186    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18187    *) lt_sed_strip_eq='s|=/|/|g' ;;
18188  esac
18189  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18190  case $lt_search_path_spec in
18191  *\;*)
18192    # if the path contains ";" then we assume it to be the separator
18193    # otherwise default to the standard path separator (i.e. ":") - it is
18194    # assumed that no part of a normal pathname contains ";" but that should
18195    # okay in the real world where ";" in dirpaths is itself problematic.
18196    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18197    ;;
18198  *)
18199    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18200    ;;
18201  esac
18202  # Ok, now we have the path, separated by spaces, we can step through it
18203  # and add multilib dir if necessary...
18204  lt_tmp_lt_search_path_spec=
18205  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18206  # ...but if some path component already ends with the multilib dir we assume
18207  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18208  case "$lt_multi_os_dir; $lt_search_path_spec " in
18209  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18210    lt_multi_os_dir=
18211    ;;
18212  esac
18213  for lt_sys_path in $lt_search_path_spec; do
18214    if test -d "$lt_sys_path$lt_multi_os_dir"; then
18215      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18216    elif test -n "$lt_multi_os_dir"; then
18217      test -d "$lt_sys_path" && \
18218	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18219    fi
18220  done
18221  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18222BEGIN {RS = " "; FS = "/|\n";} {
18223  lt_foo = "";
18224  lt_count = 0;
18225  for (lt_i = NF; lt_i > 0; lt_i--) {
18226    if ($lt_i != "" && $lt_i != ".") {
18227      if ($lt_i == "..") {
18228        lt_count++;
18229      } else {
18230        if (lt_count == 0) {
18231          lt_foo = "/" $lt_i lt_foo;
18232        } else {
18233          lt_count--;
18234        }
18235      }
18236    }
18237  }
18238  if (lt_foo != "") { lt_freq[lt_foo]++; }
18239  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18240}'`
18241  # AWK program above erroneously prepends '/' to C:/dos/paths
18242  # for these hosts.
18243  case $host_os in
18244    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18245      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18246  esac
18247  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18248else
18249  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18250fi
18251library_names_spec=
18252libname_spec='lib$name'
18253soname_spec=
18254shrext_cmds=.so
18255postinstall_cmds=
18256postuninstall_cmds=
18257finish_cmds=
18258finish_eval=
18259shlibpath_var=
18260shlibpath_overrides_runpath=unknown
18261version_type=none
18262dynamic_linker="$host_os ld.so"
18263sys_lib_dlsearch_path_spec="/lib /usr/lib"
18264need_lib_prefix=unknown
18265hardcode_into_libs=no
18266
18267# when you set need_version to no, make sure it does not cause -set_version
18268# flags to be left without arguments
18269need_version=unknown
18270
18271
18272
18273case $host_os in
18274aix3*)
18275  version_type=linux # correct to gnu/linux during the next big refactor
18276  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18277  shlibpath_var=LIBPATH
18278
18279  # AIX 3 has no versioning support, so we append a major version to the name.
18280  soname_spec='$libname$release$shared_ext$major'
18281  ;;
18282
18283aix[4-9]*)
18284  version_type=linux # correct to gnu/linux during the next big refactor
18285  need_lib_prefix=no
18286  need_version=no
18287  hardcode_into_libs=yes
18288  if test ia64 = "$host_cpu"; then
18289    # AIX 5 supports IA64
18290    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18291    shlibpath_var=LD_LIBRARY_PATH
18292  else
18293    # With GCC up to 2.95.x, collect2 would create an import file
18294    # for dependence libraries.  The import file would start with
18295    # the line '#! .'.  This would cause the generated library to
18296    # depend on '.', always an invalid library.  This was fixed in
18297    # development snapshots of GCC prior to 3.0.
18298    case $host_os in
18299      aix4 | aix4.[01] | aix4.[01].*)
18300      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18301	   echo ' yes '
18302	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18303	:
18304      else
18305	can_build_shared=no
18306      fi
18307      ;;
18308    esac
18309    # Using Import Files as archive members, it is possible to support
18310    # filename-based versioning of shared library archives on AIX. While
18311    # this would work for both with and without runtime linking, it will
18312    # prevent static linking of such archives. So we do filename-based
18313    # shared library versioning with .so extension only, which is used
18314    # when both runtime linking and shared linking is enabled.
18315    # Unfortunately, runtime linking may impact performance, so we do
18316    # not want this to be the default eventually. Also, we use the
18317    # versioned .so libs for executables only if there is the -brtl
18318    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18319    # To allow for filename-based versioning support, we need to create
18320    # libNAME.so.V as an archive file, containing:
18321    # *) an Import File, referring to the versioned filename of the
18322    #    archive as well as the shared archive member, telling the
18323    #    bitwidth (32 or 64) of that shared object, and providing the
18324    #    list of exported symbols of that shared object, eventually
18325    #    decorated with the 'weak' keyword
18326    # *) the shared object with the F_LOADONLY flag set, to really avoid
18327    #    it being seen by the linker.
18328    # At run time we better use the real file rather than another symlink,
18329    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18330
18331    case $with_aix_soname,$aix_use_runtimelinking in
18332    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18333    # soname into executable. Probably we can add versioning support to
18334    # collect2, so additional links can be useful in future.
18335    aix,yes) # traditional libtool
18336      dynamic_linker='AIX unversionable lib.so'
18337      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18338      # instead of lib<name>.a to let people know that these are not
18339      # typical AIX shared libraries.
18340      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18341      ;;
18342    aix,no) # traditional AIX only
18343      dynamic_linker='AIX lib.a(lib.so.V)'
18344      # We preserve .a as extension for shared libraries through AIX4.2
18345      # and later when we are not doing run time linking.
18346      library_names_spec='$libname$release.a $libname.a'
18347      soname_spec='$libname$release$shared_ext$major'
18348      ;;
18349    svr4,*) # full svr4 only
18350      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18351      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18352      # We do not specify a path in Import Files, so LIBPATH fires.
18353      shlibpath_overrides_runpath=yes
18354      ;;
18355    *,yes) # both, prefer svr4
18356      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18357      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18358      # unpreferred sharedlib libNAME.a needs extra handling
18359      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"'
18360      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"'
18361      # We do not specify a path in Import Files, so LIBPATH fires.
18362      shlibpath_overrides_runpath=yes
18363      ;;
18364    *,no) # both, prefer aix
18365      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18366      library_names_spec='$libname$release.a $libname.a'
18367      soname_spec='$libname$release$shared_ext$major'
18368      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18369      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)'
18370      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"'
18371      ;;
18372    esac
18373    shlibpath_var=LIBPATH
18374  fi
18375  ;;
18376
18377amigaos*)
18378  case $host_cpu in
18379  powerpc)
18380    # Since July 2007 AmigaOS4 officially supports .so libraries.
18381    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18382    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18383    ;;
18384  m68k)
18385    library_names_spec='$libname.ixlibrary $libname.a'
18386    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18387    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'
18388    ;;
18389  esac
18390  ;;
18391
18392beos*)
18393  library_names_spec='$libname$shared_ext'
18394  dynamic_linker="$host_os ld.so"
18395  shlibpath_var=LIBRARY_PATH
18396  ;;
18397
18398bsdi[45]*)
18399  version_type=linux # correct to gnu/linux during the next big refactor
18400  need_version=no
18401  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18402  soname_spec='$libname$release$shared_ext$major'
18403  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18404  shlibpath_var=LD_LIBRARY_PATH
18405  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18406  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18407  # the default ld.so.conf also contains /usr/contrib/lib and
18408  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18409  # libtool to hard-code these into programs
18410  ;;
18411
18412cygwin* | mingw* | pw32* | cegcc*)
18413  version_type=windows
18414  shrext_cmds=.dll
18415  need_version=no
18416  need_lib_prefix=no
18417
18418  case $GCC,$cc_basename in
18419  yes,*)
18420    # gcc
18421    library_names_spec='$libname.dll.a'
18422    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18423    postinstall_cmds='base_file=`basename \$file`~
18424      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18425      dldir=$destdir/`dirname \$dlpath`~
18426      test -d \$dldir || mkdir -p \$dldir~
18427      $install_prog $dir/$dlname \$dldir/$dlname~
18428      chmod a+x \$dldir/$dlname~
18429      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18430        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18431      fi'
18432    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18433      dlpath=$dir/\$dldll~
18434       $RM \$dlpath'
18435    shlibpath_overrides_runpath=yes
18436
18437    case $host_os in
18438    cygwin*)
18439      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18440      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18441
18442      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18443      ;;
18444    mingw* | cegcc*)
18445      # MinGW DLLs use traditional 'lib' prefix
18446      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18447      ;;
18448    pw32*)
18449      # pw32 DLLs use 'pw' prefix rather than 'lib'
18450      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18451      ;;
18452    esac
18453    dynamic_linker='Win32 ld.exe'
18454    ;;
18455
18456  *,cl* | *,icl*)
18457    # Native MSVC or ICC
18458    libname_spec='$name'
18459    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18460    library_names_spec='$libname.dll.lib'
18461
18462    case $build_os in
18463    mingw*)
18464      sys_lib_search_path_spec=
18465      lt_save_ifs=$IFS
18466      IFS=';'
18467      for lt_path in $LIB
18468      do
18469        IFS=$lt_save_ifs
18470        # Let DOS variable expansion print the short 8.3 style file name.
18471        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18472        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18473      done
18474      IFS=$lt_save_ifs
18475      # Convert to MSYS style.
18476      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18477      ;;
18478    cygwin*)
18479      # Convert to unix form, then to dos form, then back to unix form
18480      # but this time dos style (no spaces!) so that the unix form looks
18481      # like /cygdrive/c/PROGRA~1:/cygdr...
18482      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18483      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18484      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18485      ;;
18486    *)
18487      sys_lib_search_path_spec=$LIB
18488      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18489        # It is most probably a Windows format PATH.
18490        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18491      else
18492        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18493      fi
18494      # FIXME: find the short name or the path components, as spaces are
18495      # common. (e.g. "Program Files" -> "PROGRA~1")
18496      ;;
18497    esac
18498
18499    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18500    postinstall_cmds='base_file=`basename \$file`~
18501      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18502      dldir=$destdir/`dirname \$dlpath`~
18503      test -d \$dldir || mkdir -p \$dldir~
18504      $install_prog $dir/$dlname \$dldir/$dlname'
18505    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18506      dlpath=$dir/\$dldll~
18507       $RM \$dlpath'
18508    shlibpath_overrides_runpath=yes
18509    dynamic_linker='Win32 link.exe'
18510    ;;
18511
18512  *)
18513    # Assume MSVC and ICC wrapper
18514    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18515    dynamic_linker='Win32 ld.exe'
18516    ;;
18517  esac
18518  # FIXME: first we should search . and the directory the executable is in
18519  shlibpath_var=PATH
18520  ;;
18521
18522darwin* | rhapsody*)
18523  dynamic_linker="$host_os dyld"
18524  version_type=darwin
18525  need_lib_prefix=no
18526  need_version=no
18527  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
18528  soname_spec='$libname$release$major$shared_ext'
18529  shlibpath_overrides_runpath=yes
18530  shlibpath_var=DYLD_LIBRARY_PATH
18531  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
18532
18533  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18534  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18535  ;;
18536
18537dgux*)
18538  version_type=linux # correct to gnu/linux during the next big refactor
18539  need_lib_prefix=no
18540  need_version=no
18541  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18542  soname_spec='$libname$release$shared_ext$major'
18543  shlibpath_var=LD_LIBRARY_PATH
18544  ;;
18545
18546freebsd* | dragonfly* | midnightbsd*)
18547  # DragonFly does not have aout.  When/if they implement a new
18548  # versioning mechanism, adjust this.
18549  if test -x /usr/bin/objformat; then
18550    objformat=`/usr/bin/objformat`
18551  else
18552    case $host_os in
18553    freebsd[23].*) objformat=aout ;;
18554    *) objformat=elf ;;
18555    esac
18556  fi
18557  # Handle Gentoo/FreeBSD as it was Linux
18558  case $host_vendor in
18559    gentoo)
18560      version_type=linux ;;
18561    *)
18562      version_type=freebsd-$objformat ;;
18563  esac
18564
18565  case $version_type in
18566    freebsd-elf*)
18567      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18568      soname_spec='$libname$release$shared_ext$major'
18569      need_version=no
18570      need_lib_prefix=no
18571      ;;
18572    freebsd-*)
18573      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18574      need_version=yes
18575      ;;
18576    linux)
18577      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18578      soname_spec='${libname}${release}${shared_ext}$major'
18579      need_lib_prefix=no
18580      need_version=no
18581      ;;
18582  esac
18583  shlibpath_var=LD_LIBRARY_PATH
18584  case $host_os in
18585  freebsd2.*)
18586    shlibpath_overrides_runpath=yes
18587    ;;
18588  freebsd3.[01]* | freebsdelf3.[01]*)
18589    shlibpath_overrides_runpath=yes
18590    hardcode_into_libs=yes
18591    ;;
18592  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18593  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18594    shlibpath_overrides_runpath=no
18595    hardcode_into_libs=yes
18596    ;;
18597  *) # from 4.6 on, and DragonFly
18598    shlibpath_overrides_runpath=yes
18599    hardcode_into_libs=yes
18600    ;;
18601  esac
18602  ;;
18603
18604haiku*)
18605  version_type=linux # correct to gnu/linux during the next big refactor
18606  need_lib_prefix=no
18607  need_version=no
18608  dynamic_linker="$host_os runtime_loader"
18609  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18610  soname_spec='$libname$release$shared_ext$major'
18611  shlibpath_var=LIBRARY_PATH
18612  shlibpath_overrides_runpath=no
18613  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18614  hardcode_into_libs=yes
18615  ;;
18616
18617hpux9* | hpux10* | hpux11*)
18618  # Give a soname corresponding to the major version so that dld.sl refuses to
18619  # link against other versions.
18620  version_type=sunos
18621  need_lib_prefix=no
18622  need_version=no
18623  case $host_cpu in
18624  ia64*)
18625    shrext_cmds='.so'
18626    hardcode_into_libs=yes
18627    dynamic_linker="$host_os dld.so"
18628    shlibpath_var=LD_LIBRARY_PATH
18629    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18630    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18631    soname_spec='$libname$release$shared_ext$major'
18632    if test 32 = "$HPUX_IA64_MODE"; then
18633      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18634      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18635    else
18636      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18637      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18638    fi
18639    ;;
18640  hppa*64*)
18641    shrext_cmds='.sl'
18642    hardcode_into_libs=yes
18643    dynamic_linker="$host_os dld.sl"
18644    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18645    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18646    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18647    soname_spec='$libname$release$shared_ext$major'
18648    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18649    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18650    ;;
18651  *)
18652    shrext_cmds='.sl'
18653    dynamic_linker="$host_os dld.sl"
18654    shlibpath_var=SHLIB_PATH
18655    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18656    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18657    soname_spec='$libname$release$shared_ext$major'
18658    ;;
18659  esac
18660  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18661  postinstall_cmds='chmod 555 $lib'
18662  # or fails outright, so override atomically:
18663  install_override_mode=555
18664  ;;
18665
18666interix[3-9]*)
18667  version_type=linux # correct to gnu/linux during the next big refactor
18668  need_lib_prefix=no
18669  need_version=no
18670  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18671  soname_spec='$libname$release$shared_ext$major'
18672  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18673  shlibpath_var=LD_LIBRARY_PATH
18674  shlibpath_overrides_runpath=no
18675  hardcode_into_libs=yes
18676  ;;
18677
18678irix5* | irix6* | nonstopux*)
18679  case $host_os in
18680    nonstopux*) version_type=nonstopux ;;
18681    *)
18682	if test yes = "$lt_cv_prog_gnu_ld"; then
18683		version_type=linux # correct to gnu/linux during the next big refactor
18684	else
18685		version_type=irix
18686	fi ;;
18687  esac
18688  need_lib_prefix=no
18689  need_version=no
18690  soname_spec='$libname$release$shared_ext$major'
18691  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18692  case $host_os in
18693  irix5* | nonstopux*)
18694    libsuff= shlibsuff=
18695    ;;
18696  *)
18697    case $LD in # libtool.m4 will add one of these switches to LD
18698    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18699      libsuff= shlibsuff= libmagic=32-bit;;
18700    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18701      libsuff=32 shlibsuff=N32 libmagic=N32;;
18702    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18703      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18704    *) libsuff= shlibsuff= libmagic=never-match;;
18705    esac
18706    ;;
18707  esac
18708  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18709  shlibpath_overrides_runpath=no
18710  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18711  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18712  hardcode_into_libs=yes
18713  ;;
18714
18715# No shared lib support for Linux oldld, aout, or coff.
18716linux*oldld* | linux*aout* | linux*coff*)
18717  dynamic_linker=no
18718  ;;
18719
18720linux*android*)
18721  version_type=none # Android doesn't support versioned libraries.
18722  need_lib_prefix=no
18723  need_version=no
18724  library_names_spec='$libname$release$shared_ext'
18725  soname_spec='$libname$release$shared_ext'
18726  finish_cmds=
18727  shlibpath_var=LD_LIBRARY_PATH
18728  shlibpath_overrides_runpath=yes
18729
18730  # This implies no fast_install, which is unacceptable.
18731  # Some rework will be needed to allow for fast_install
18732  # before this can be enabled.
18733  hardcode_into_libs=yes
18734
18735  dynamic_linker='Android linker'
18736  # Don't embed -rpath directories since the linker doesn't support them.
18737  hardcode_libdir_flag_spec='-L$libdir'
18738  ;;
18739
18740# This must be glibc/ELF.
18741linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18742  version_type=linux # correct to gnu/linux during the next big refactor
18743  need_lib_prefix=no
18744  need_version=no
18745  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18746  soname_spec='$libname$release$shared_ext$major'
18747  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18748  shlibpath_var=LD_LIBRARY_PATH
18749  shlibpath_overrides_runpath=no
18750
18751  # Some binutils ld are patched to set DT_RUNPATH
18752  if test ${lt_cv_shlibpath_overrides_runpath+y}
18753then :
18754  printf %s "(cached) " >&6
18755else case e in #(
18756  e) lt_cv_shlibpath_overrides_runpath=no
18757    save_LDFLAGS=$LDFLAGS
18758    save_libdir=$libdir
18759    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18760	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18761    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762/* end confdefs.h.  */
18763
18764int
18765main (void)
18766{
18767
18768  ;
18769  return 0;
18770}
18771_ACEOF
18772if ac_fn_c_try_link "$LINENO"
18773then :
18774  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18775then :
18776  lt_cv_shlibpath_overrides_runpath=yes
18777fi
18778fi
18779rm -f core conftest.err conftest.$ac_objext conftest.beam \
18780    conftest$ac_exeext conftest.$ac_ext
18781    LDFLAGS=$save_LDFLAGS
18782    libdir=$save_libdir
18783     ;;
18784esac
18785fi
18786
18787  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18788
18789  # This implies no fast_install, which is unacceptable.
18790  # Some rework will be needed to allow for fast_install
18791  # before this can be enabled.
18792  hardcode_into_libs=yes
18793
18794  # Ideally, we could use ldconfig to report *all* directores which are
18795  # searched for libraries, however this is still not possible.  Aside from not
18796  # being certain /sbin/ldconfig is available, command
18797  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18798  # even though it is searched at run-time.  Try to do the best guess by
18799  # appending ld.so.conf contents (and includes) to the search path.
18800  if test -f /etc/ld.so.conf; then
18801    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' ' '`
18802    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18803  fi
18804
18805  # We used to test for /lib/ld.so.1 and disable shared libraries on
18806  # powerpc, because MkLinux only supported shared libraries with the
18807  # GNU dynamic linker.  Since this was broken with cross compilers,
18808  # most powerpc-linux boxes support dynamic linking these days and
18809  # people can always --disable-shared, the test was removed, and we
18810  # assume the GNU/Linux dynamic linker is in use.
18811  dynamic_linker='GNU/Linux ld.so'
18812  ;;
18813
18814netbsd*)
18815  version_type=sunos
18816  need_lib_prefix=no
18817  need_version=no
18818  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18819    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18820    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18821    dynamic_linker='NetBSD (a.out) ld.so'
18822  else
18823    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18824    soname_spec='$libname$release$shared_ext$major'
18825    dynamic_linker='NetBSD ld.elf_so'
18826  fi
18827  shlibpath_var=LD_LIBRARY_PATH
18828  shlibpath_overrides_runpath=yes
18829  hardcode_into_libs=yes
18830  ;;
18831
18832newsos6)
18833  version_type=linux # correct to gnu/linux during the next big refactor
18834  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18835  shlibpath_var=LD_LIBRARY_PATH
18836  shlibpath_overrides_runpath=yes
18837  ;;
18838
18839*nto* | *qnx*)
18840  version_type=qnx
18841  need_lib_prefix=no
18842  need_version=no
18843  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18844  soname_spec='$libname$release$shared_ext$major'
18845  shlibpath_var=LD_LIBRARY_PATH
18846  shlibpath_overrides_runpath=no
18847  hardcode_into_libs=yes
18848  dynamic_linker='ldqnx.so'
18849  ;;
18850
18851openbsd* | bitrig*)
18852  version_type=sunos
18853  sys_lib_dlsearch_path_spec=/usr/lib
18854  need_lib_prefix=no
18855  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18856    need_version=no
18857  else
18858    need_version=yes
18859  fi
18860  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18861  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18862  shlibpath_var=LD_LIBRARY_PATH
18863  shlibpath_overrides_runpath=yes
18864  ;;
18865
18866os2*)
18867  libname_spec='$name'
18868  version_type=windows
18869  shrext_cmds=.dll
18870  need_version=no
18871  need_lib_prefix=no
18872  # OS/2 can only load a DLL with a base name of 8 characters or less.
18873  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18874    v=$($ECHO $release$versuffix | tr -d .-);
18875    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18876    $ECHO $n$v`$shared_ext'
18877  library_names_spec='${libname}_dll.$libext'
18878  dynamic_linker='OS/2 ld.exe'
18879  shlibpath_var=BEGINLIBPATH
18880  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18881  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18882  postinstall_cmds='base_file=`basename \$file`~
18883    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18884    dldir=$destdir/`dirname \$dlpath`~
18885    test -d \$dldir || mkdir -p \$dldir~
18886    $install_prog $dir/$dlname \$dldir/$dlname~
18887    chmod a+x \$dldir/$dlname~
18888    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18889      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18890    fi'
18891  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18892    dlpath=$dir/\$dldll~
18893    $RM \$dlpath'
18894  ;;
18895
18896osf3* | osf4* | osf5*)
18897  version_type=osf
18898  need_lib_prefix=no
18899  need_version=no
18900  soname_spec='$libname$release$shared_ext$major'
18901  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18902  shlibpath_var=LD_LIBRARY_PATH
18903  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18904  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18905  ;;
18906
18907rdos*)
18908  dynamic_linker=no
18909  ;;
18910
18911solaris*)
18912  version_type=linux # correct to gnu/linux during the next big refactor
18913  need_lib_prefix=no
18914  need_version=no
18915  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18916  soname_spec='$libname$release$shared_ext$major'
18917  shlibpath_var=LD_LIBRARY_PATH
18918  shlibpath_overrides_runpath=yes
18919  hardcode_into_libs=yes
18920  # ldd complains unless libraries are executable
18921  postinstall_cmds='chmod +x $lib'
18922  ;;
18923
18924sunos4*)
18925  version_type=sunos
18926  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18927  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18928  shlibpath_var=LD_LIBRARY_PATH
18929  shlibpath_overrides_runpath=yes
18930  if test yes = "$with_gnu_ld"; then
18931    need_lib_prefix=no
18932  fi
18933  need_version=yes
18934  ;;
18935
18936sysv4 | sysv4.3*)
18937  version_type=linux # correct to gnu/linux during the next big refactor
18938  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18939  soname_spec='$libname$release$shared_ext$major'
18940  shlibpath_var=LD_LIBRARY_PATH
18941  case $host_vendor in
18942    sni)
18943      shlibpath_overrides_runpath=no
18944      need_lib_prefix=no
18945      runpath_var=LD_RUN_PATH
18946      ;;
18947    siemens)
18948      need_lib_prefix=no
18949      ;;
18950    motorola)
18951      need_lib_prefix=no
18952      need_version=no
18953      shlibpath_overrides_runpath=no
18954      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18955      ;;
18956  esac
18957  ;;
18958
18959sysv4*MP*)
18960  if test -d /usr/nec; then
18961    version_type=linux # correct to gnu/linux during the next big refactor
18962    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18963    soname_spec='$libname$shared_ext.$major'
18964    shlibpath_var=LD_LIBRARY_PATH
18965  fi
18966  ;;
18967
18968sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18969  version_type=sco
18970  need_lib_prefix=no
18971  need_version=no
18972  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18973  soname_spec='$libname$release$shared_ext$major'
18974  shlibpath_var=LD_LIBRARY_PATH
18975  shlibpath_overrides_runpath=yes
18976  hardcode_into_libs=yes
18977  if test yes = "$with_gnu_ld"; then
18978    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18979  else
18980    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18981    case $host_os in
18982      sco3.2v5*)
18983        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18984	;;
18985    esac
18986  fi
18987  sys_lib_dlsearch_path_spec='/usr/lib'
18988  ;;
18989
18990tpf*)
18991  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18992  version_type=linux # correct to gnu/linux during the next big refactor
18993  need_lib_prefix=no
18994  need_version=no
18995  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18996  shlibpath_var=LD_LIBRARY_PATH
18997  shlibpath_overrides_runpath=no
18998  hardcode_into_libs=yes
18999  ;;
19000
19001uts4*)
19002  version_type=linux # correct to gnu/linux during the next big refactor
19003  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19004  soname_spec='$libname$release$shared_ext$major'
19005  shlibpath_var=LD_LIBRARY_PATH
19006  ;;
19007
19008*)
19009  dynamic_linker=no
19010  ;;
19011esac
19012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19013printf "%s\n" "$dynamic_linker" >&6; }
19014test no = "$dynamic_linker" && can_build_shared=no
19015
19016variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19017if test yes = "$GCC"; then
19018  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19019fi
19020
19021if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19022  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19023fi
19024
19025if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19026  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19027fi
19028
19029# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19030configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19031
19032# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19033func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19034
19035# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19036configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19135printf %s "checking how to hardcode library paths into programs... " >&6; }
19136hardcode_action=
19137if test -n "$hardcode_libdir_flag_spec" ||
19138   test -n "$runpath_var" ||
19139   test yes = "$hardcode_automatic"; then
19140
19141  # We can hardcode non-existent directories.
19142  if test no != "$hardcode_direct" &&
19143     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19144     # have to relink, otherwise we might link with an installed library
19145     # when we should be linking with a yet-to-be-installed one
19146     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19147     test no != "$hardcode_minus_L"; then
19148    # Linking always hardcodes the temporary library directory.
19149    hardcode_action=relink
19150  else
19151    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19152    hardcode_action=immediate
19153  fi
19154else
19155  # We cannot hardcode anything, or else we can only hardcode existing
19156  # directories.
19157  hardcode_action=unsupported
19158fi
19159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19160printf "%s\n" "$hardcode_action" >&6; }
19161
19162if test relink = "$hardcode_action" ||
19163   test yes = "$inherit_rpath"; then
19164  # Fast installation is not supported
19165  enable_fast_install=no
19166elif test yes = "$shlibpath_overrides_runpath" ||
19167     test no = "$enable_shared"; then
19168  # Fast installation is not necessary
19169  enable_fast_install=needless
19170fi
19171
19172
19173
19174
19175
19176
19177  if test yes != "$enable_dlopen"; then
19178  enable_dlopen=unknown
19179  enable_dlopen_self=unknown
19180  enable_dlopen_self_static=unknown
19181else
19182  lt_cv_dlopen=no
19183  lt_cv_dlopen_libs=
19184
19185  case $host_os in
19186  beos*)
19187    lt_cv_dlopen=load_add_on
19188    lt_cv_dlopen_libs=
19189    lt_cv_dlopen_self=yes
19190    ;;
19191
19192  mingw* | pw32* | cegcc*)
19193    lt_cv_dlopen=LoadLibrary
19194    lt_cv_dlopen_libs=
19195    ;;
19196
19197  cygwin*)
19198    lt_cv_dlopen=dlopen
19199    lt_cv_dlopen_libs=
19200    ;;
19201
19202  darwin*)
19203    # if libdl is installed we need to link against it
19204    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19205printf %s "checking for dlopen in -ldl... " >&6; }
19206if test ${ac_cv_lib_dl_dlopen+y}
19207then :
19208  printf %s "(cached) " >&6
19209else case e in #(
19210  e) ac_check_lib_save_LIBS=$LIBS
19211LIBS="-ldl  $LIBS"
19212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213/* end confdefs.h.  */
19214
19215/* Override any GCC internal prototype to avoid an error.
19216   Use char because int might match the return type of a GCC
19217   builtin and then its argument prototype would still apply.
19218   The 'extern "C"' is for builds by C++ compilers;
19219   although this is not generally supported in C code supporting it here
19220   has little cost and some practical benefit (sr 110532).  */
19221#ifdef __cplusplus
19222extern "C"
19223#endif
19224char dlopen (void);
19225int
19226main (void)
19227{
19228return dlopen ();
19229  ;
19230  return 0;
19231}
19232_ACEOF
19233if ac_fn_c_try_link "$LINENO"
19234then :
19235  ac_cv_lib_dl_dlopen=yes
19236else case e in #(
19237  e) ac_cv_lib_dl_dlopen=no ;;
19238esac
19239fi
19240rm -f core conftest.err conftest.$ac_objext conftest.beam \
19241    conftest$ac_exeext conftest.$ac_ext
19242LIBS=$ac_check_lib_save_LIBS ;;
19243esac
19244fi
19245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19246printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19247if test "x$ac_cv_lib_dl_dlopen" = xyes
19248then :
19249  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19250else case e in #(
19251  e)
19252    lt_cv_dlopen=dyld
19253    lt_cv_dlopen_libs=
19254    lt_cv_dlopen_self=yes
19255     ;;
19256esac
19257fi
19258
19259    ;;
19260
19261  tpf*)
19262    # Don't try to run any link tests for TPF.  We know it's impossible
19263    # because TPF is a cross-compiler, and we know how we open DSOs.
19264    lt_cv_dlopen=dlopen
19265    lt_cv_dlopen_libs=
19266    lt_cv_dlopen_self=no
19267    ;;
19268
19269  *)
19270    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19271if test "x$ac_cv_func_shl_load" = xyes
19272then :
19273  lt_cv_dlopen=shl_load
19274else case e in #(
19275  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19276printf %s "checking for shl_load in -ldld... " >&6; }
19277if test ${ac_cv_lib_dld_shl_load+y}
19278then :
19279  printf %s "(cached) " >&6
19280else case e in #(
19281  e) ac_check_lib_save_LIBS=$LIBS
19282LIBS="-ldld  $LIBS"
19283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284/* end confdefs.h.  */
19285
19286/* Override any GCC internal prototype to avoid an error.
19287   Use char because int might match the return type of a GCC
19288   builtin and then its argument prototype would still apply.
19289   The 'extern "C"' is for builds by C++ compilers;
19290   although this is not generally supported in C code supporting it here
19291   has little cost and some practical benefit (sr 110532).  */
19292#ifdef __cplusplus
19293extern "C"
19294#endif
19295char shl_load (void);
19296int
19297main (void)
19298{
19299return shl_load ();
19300  ;
19301  return 0;
19302}
19303_ACEOF
19304if ac_fn_c_try_link "$LINENO"
19305then :
19306  ac_cv_lib_dld_shl_load=yes
19307else case e in #(
19308  e) ac_cv_lib_dld_shl_load=no ;;
19309esac
19310fi
19311rm -f core conftest.err conftest.$ac_objext conftest.beam \
19312    conftest$ac_exeext conftest.$ac_ext
19313LIBS=$ac_check_lib_save_LIBS ;;
19314esac
19315fi
19316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19317printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19318if test "x$ac_cv_lib_dld_shl_load" = xyes
19319then :
19320  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19321else case e in #(
19322  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19323if test "x$ac_cv_func_dlopen" = xyes
19324then :
19325  lt_cv_dlopen=dlopen
19326else case e in #(
19327  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19328printf %s "checking for dlopen in -ldl... " >&6; }
19329if test ${ac_cv_lib_dl_dlopen+y}
19330then :
19331  printf %s "(cached) " >&6
19332else case e in #(
19333  e) ac_check_lib_save_LIBS=$LIBS
19334LIBS="-ldl  $LIBS"
19335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336/* end confdefs.h.  */
19337
19338/* Override any GCC internal prototype to avoid an error.
19339   Use char because int might match the return type of a GCC
19340   builtin and then its argument prototype would still apply.
19341   The 'extern "C"' is for builds by C++ compilers;
19342   although this is not generally supported in C code supporting it here
19343   has little cost and some practical benefit (sr 110532).  */
19344#ifdef __cplusplus
19345extern "C"
19346#endif
19347char dlopen (void);
19348int
19349main (void)
19350{
19351return dlopen ();
19352  ;
19353  return 0;
19354}
19355_ACEOF
19356if ac_fn_c_try_link "$LINENO"
19357then :
19358  ac_cv_lib_dl_dlopen=yes
19359else case e in #(
19360  e) ac_cv_lib_dl_dlopen=no ;;
19361esac
19362fi
19363rm -f core conftest.err conftest.$ac_objext conftest.beam \
19364    conftest$ac_exeext conftest.$ac_ext
19365LIBS=$ac_check_lib_save_LIBS ;;
19366esac
19367fi
19368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19369printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19370if test "x$ac_cv_lib_dl_dlopen" = xyes
19371then :
19372  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19373else case e in #(
19374  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19375printf %s "checking for dlopen in -lsvld... " >&6; }
19376if test ${ac_cv_lib_svld_dlopen+y}
19377then :
19378  printf %s "(cached) " >&6
19379else case e in #(
19380  e) ac_check_lib_save_LIBS=$LIBS
19381LIBS="-lsvld  $LIBS"
19382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383/* end confdefs.h.  */
19384
19385/* Override any GCC internal prototype to avoid an error.
19386   Use char because int might match the return type of a GCC
19387   builtin and then its argument prototype would still apply.
19388   The 'extern "C"' is for builds by C++ compilers;
19389   although this is not generally supported in C code supporting it here
19390   has little cost and some practical benefit (sr 110532).  */
19391#ifdef __cplusplus
19392extern "C"
19393#endif
19394char dlopen (void);
19395int
19396main (void)
19397{
19398return dlopen ();
19399  ;
19400  return 0;
19401}
19402_ACEOF
19403if ac_fn_c_try_link "$LINENO"
19404then :
19405  ac_cv_lib_svld_dlopen=yes
19406else case e in #(
19407  e) ac_cv_lib_svld_dlopen=no ;;
19408esac
19409fi
19410rm -f core conftest.err conftest.$ac_objext conftest.beam \
19411    conftest$ac_exeext conftest.$ac_ext
19412LIBS=$ac_check_lib_save_LIBS ;;
19413esac
19414fi
19415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19416printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19417if test "x$ac_cv_lib_svld_dlopen" = xyes
19418then :
19419  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19420else case e in #(
19421  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19422printf %s "checking for dld_link in -ldld... " >&6; }
19423if test ${ac_cv_lib_dld_dld_link+y}
19424then :
19425  printf %s "(cached) " >&6
19426else case e in #(
19427  e) ac_check_lib_save_LIBS=$LIBS
19428LIBS="-ldld  $LIBS"
19429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19430/* end confdefs.h.  */
19431
19432/* Override any GCC internal prototype to avoid an error.
19433   Use char because int might match the return type of a GCC
19434   builtin and then its argument prototype would still apply.
19435   The 'extern "C"' is for builds by C++ compilers;
19436   although this is not generally supported in C code supporting it here
19437   has little cost and some practical benefit (sr 110532).  */
19438#ifdef __cplusplus
19439extern "C"
19440#endif
19441char dld_link (void);
19442int
19443main (void)
19444{
19445return dld_link ();
19446  ;
19447  return 0;
19448}
19449_ACEOF
19450if ac_fn_c_try_link "$LINENO"
19451then :
19452  ac_cv_lib_dld_dld_link=yes
19453else case e in #(
19454  e) ac_cv_lib_dld_dld_link=no ;;
19455esac
19456fi
19457rm -f core conftest.err conftest.$ac_objext conftest.beam \
19458    conftest$ac_exeext conftest.$ac_ext
19459LIBS=$ac_check_lib_save_LIBS ;;
19460esac
19461fi
19462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19463printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19464if test "x$ac_cv_lib_dld_dld_link" = xyes
19465then :
19466  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19467fi
19468
19469	       ;;
19470esac
19471fi
19472
19473	     ;;
19474esac
19475fi
19476
19477	   ;;
19478esac
19479fi
19480
19481	 ;;
19482esac
19483fi
19484
19485       ;;
19486esac
19487fi
19488
19489    ;;
19490  esac
19491
19492  if test no = "$lt_cv_dlopen"; then
19493    enable_dlopen=no
19494  else
19495    enable_dlopen=yes
19496  fi
19497
19498  case $lt_cv_dlopen in
19499  dlopen)
19500    save_CPPFLAGS=$CPPFLAGS
19501    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19502
19503    save_LDFLAGS=$LDFLAGS
19504    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19505
19506    save_LIBS=$LIBS
19507    LIBS="$lt_cv_dlopen_libs $LIBS"
19508
19509    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19510printf %s "checking whether a program can dlopen itself... " >&6; }
19511if test ${lt_cv_dlopen_self+y}
19512then :
19513  printf %s "(cached) " >&6
19514else case e in #(
19515  e) 	  if test yes = "$cross_compiling"; then :
19516  lt_cv_dlopen_self=cross
19517else
19518  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19519  lt_status=$lt_dlunknown
19520  cat > conftest.$ac_ext <<_LT_EOF
19521#line $LINENO "configure"
19522#include "confdefs.h"
19523
19524#if HAVE_DLFCN_H
19525#include <dlfcn.h>
19526#endif
19527
19528#include <stdio.h>
19529
19530#ifdef RTLD_GLOBAL
19531#  define LT_DLGLOBAL		RTLD_GLOBAL
19532#else
19533#  ifdef DL_GLOBAL
19534#    define LT_DLGLOBAL		DL_GLOBAL
19535#  else
19536#    define LT_DLGLOBAL		0
19537#  endif
19538#endif
19539
19540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19541   find out it does not work in some platform. */
19542#ifndef LT_DLLAZY_OR_NOW
19543#  ifdef RTLD_LAZY
19544#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19545#  else
19546#    ifdef DL_LAZY
19547#      define LT_DLLAZY_OR_NOW		DL_LAZY
19548#    else
19549#      ifdef RTLD_NOW
19550#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19551#      else
19552#        ifdef DL_NOW
19553#          define LT_DLLAZY_OR_NOW	DL_NOW
19554#        else
19555#          define LT_DLLAZY_OR_NOW	0
19556#        endif
19557#      endif
19558#    endif
19559#  endif
19560#endif
19561
19562/* When -fvisibility=hidden is used, assume the code has been annotated
19563   correspondingly for the symbols needed.  */
19564#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19565int fnord () __attribute__((visibility("default")));
19566#endif
19567
19568int fnord () { return 42; }
19569int main ()
19570{
19571  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19572  int status = $lt_dlunknown;
19573
19574  if (self)
19575    {
19576      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19577      else
19578        {
19579	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19580          else puts (dlerror ());
19581	}
19582      /* dlclose (self); */
19583    }
19584  else
19585    puts (dlerror ());
19586
19587  return status;
19588}
19589_LT_EOF
19590  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19591  (eval $ac_link) 2>&5
19592  ac_status=$?
19593  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19594  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19595    (./conftest; exit; ) >&5 2>/dev/null
19596    lt_status=$?
19597    case x$lt_status in
19598      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19599      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19600      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19601    esac
19602  else :
19603    # compilation failed
19604    lt_cv_dlopen_self=no
19605  fi
19606fi
19607rm -fr conftest*
19608
19609     ;;
19610esac
19611fi
19612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19613printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19614
19615    if test yes = "$lt_cv_dlopen_self"; then
19616      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19617      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19618printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19619if test ${lt_cv_dlopen_self_static+y}
19620then :
19621  printf %s "(cached) " >&6
19622else case e in #(
19623  e) 	  if test yes = "$cross_compiling"; then :
19624  lt_cv_dlopen_self_static=cross
19625else
19626  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19627  lt_status=$lt_dlunknown
19628  cat > conftest.$ac_ext <<_LT_EOF
19629#line $LINENO "configure"
19630#include "confdefs.h"
19631
19632#if HAVE_DLFCN_H
19633#include <dlfcn.h>
19634#endif
19635
19636#include <stdio.h>
19637
19638#ifdef RTLD_GLOBAL
19639#  define LT_DLGLOBAL		RTLD_GLOBAL
19640#else
19641#  ifdef DL_GLOBAL
19642#    define LT_DLGLOBAL		DL_GLOBAL
19643#  else
19644#    define LT_DLGLOBAL		0
19645#  endif
19646#endif
19647
19648/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19649   find out it does not work in some platform. */
19650#ifndef LT_DLLAZY_OR_NOW
19651#  ifdef RTLD_LAZY
19652#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19653#  else
19654#    ifdef DL_LAZY
19655#      define LT_DLLAZY_OR_NOW		DL_LAZY
19656#    else
19657#      ifdef RTLD_NOW
19658#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19659#      else
19660#        ifdef DL_NOW
19661#          define LT_DLLAZY_OR_NOW	DL_NOW
19662#        else
19663#          define LT_DLLAZY_OR_NOW	0
19664#        endif
19665#      endif
19666#    endif
19667#  endif
19668#endif
19669
19670/* When -fvisibility=hidden is used, assume the code has been annotated
19671   correspondingly for the symbols needed.  */
19672#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19673int fnord () __attribute__((visibility("default")));
19674#endif
19675
19676int fnord () { return 42; }
19677int main ()
19678{
19679  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19680  int status = $lt_dlunknown;
19681
19682  if (self)
19683    {
19684      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19685      else
19686        {
19687	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19688          else puts (dlerror ());
19689	}
19690      /* dlclose (self); */
19691    }
19692  else
19693    puts (dlerror ());
19694
19695  return status;
19696}
19697_LT_EOF
19698  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19699  (eval $ac_link) 2>&5
19700  ac_status=$?
19701  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19702  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19703    (./conftest; exit; ) >&5 2>/dev/null
19704    lt_status=$?
19705    case x$lt_status in
19706      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19707      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19708      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19709    esac
19710  else :
19711    # compilation failed
19712    lt_cv_dlopen_self_static=no
19713  fi
19714fi
19715rm -fr conftest*
19716
19717       ;;
19718esac
19719fi
19720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19721printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19722    fi
19723
19724    CPPFLAGS=$save_CPPFLAGS
19725    LDFLAGS=$save_LDFLAGS
19726    LIBS=$save_LIBS
19727    ;;
19728  esac
19729
19730  case $lt_cv_dlopen_self in
19731  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19732  *) enable_dlopen_self=unknown ;;
19733  esac
19734
19735  case $lt_cv_dlopen_self_static in
19736  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19737  *) enable_dlopen_self_static=unknown ;;
19738  esac
19739fi
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757striplib=
19758old_striplib=
19759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19760printf %s "checking whether stripping libraries is possible... " >&6; }
19761if test -z "$STRIP"; then
19762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19763printf "%s\n" "no" >&6; }
19764else
19765  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19766    old_striplib="$STRIP --strip-debug"
19767    striplib="$STRIP --strip-unneeded"
19768    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19769printf "%s\n" "yes" >&6; }
19770  else
19771    case $host_os in
19772    darwin*)
19773      # FIXME - insert some real tests, host_os isn't really good enough
19774      striplib="$STRIP -x"
19775      old_striplib="$STRIP -S"
19776      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19777printf "%s\n" "yes" >&6; }
19778      ;;
19779    freebsd*)
19780      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19781        old_striplib="$STRIP --strip-debug"
19782        striplib="$STRIP --strip-unneeded"
19783        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19784printf "%s\n" "yes" >&6; }
19785      else
19786        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19787printf "%s\n" "no" >&6; }
19788      fi
19789      ;;
19790    *)
19791      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19792printf "%s\n" "no" >&6; }
19793      ;;
19794    esac
19795  fi
19796fi
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809  # Report what library types will actually be built
19810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19811printf %s "checking if libtool supports shared libraries... " >&6; }
19812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19813printf "%s\n" "$can_build_shared" >&6; }
19814
19815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19816printf %s "checking whether to build shared libraries... " >&6; }
19817  test no = "$can_build_shared" && enable_shared=no
19818
19819  # On AIX, shared libraries and static libraries use the same namespace, and
19820  # are all built from PIC.
19821  case $host_os in
19822  aix3*)
19823    test yes = "$enable_shared" && enable_static=no
19824    if test -n "$RANLIB"; then
19825      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19826      postinstall_cmds='$RANLIB $lib'
19827    fi
19828    ;;
19829
19830  aix[4-9]*)
19831    if test ia64 != "$host_cpu"; then
19832      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19833      yes,aix,yes) ;;			# shared object as lib.so file only
19834      yes,svr4,*) ;;			# shared object as lib.so archive member only
19835      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19836      esac
19837    fi
19838    ;;
19839  esac
19840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19841printf "%s\n" "$enable_shared" >&6; }
19842
19843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19844printf %s "checking whether to build static libraries... " >&6; }
19845  # Make sure either enable_shared or enable_static is yes.
19846  test yes = "$enable_shared" || enable_static=yes
19847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19848printf "%s\n" "$enable_static" >&6; }
19849
19850
19851
19852
19853fi
19854ac_ext=c
19855ac_cpp='$CPP $CPPFLAGS'
19856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858ac_compiler_gnu=$ac_cv_c_compiler_gnu
19859
19860CC=$lt_save_CC
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876        ac_config_commands="$ac_config_commands libtool"
19877
19878
19879
19880
19881# Only expand once:
19882
19883
19884
19885
19886
19887# Define a configure option for an alternate module directory
19888
19889# Check whether --with-xorg-module-dir was given.
19890if test ${with_xorg_module_dir+y}
19891then :
19892  withval=$with_xorg_module_dir; moduledir="$withval"
19893else case e in #(
19894  e) moduledir="$libdir/xorg/modules" ;;
19895esac
19896fi
19897
19898
19899# Store the list of server defined optional extensions in REQUIRED_MODULES
19900
19901
19902	SAVE_CFLAGS="$CFLAGS"
19903	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19904	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905/* end confdefs.h.  */
19906
19907#include "xorg-server.h"
19908#if !defined RANDR
19909#error RANDR not defined
19910#endif
19911
19912int
19913main (void)
19914{
19915
19916  ;
19917  return 0;
19918}
19919_ACEOF
19920if ac_fn_c_try_compile "$LINENO"
19921then :
19922  _EXT_CHECK=yes
19923else case e in #(
19924  e) _EXT_CHECK=no ;;
19925esac
19926fi
19927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19928	CFLAGS="$SAVE_CFLAGS"
19929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19930printf %s "checking if RANDR is defined... " >&6; }
19931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19932printf "%s\n" "$_EXT_CHECK" >&6; }
19933	if test "$_EXT_CHECK" != no; then
19934		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19935	fi
19936
19937
19938
19939	SAVE_CFLAGS="$CFLAGS"
19940	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19941	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942/* end confdefs.h.  */
19943
19944#include "xorg-server.h"
19945#if !defined RENDER
19946#error RENDER not defined
19947#endif
19948
19949int
19950main (void)
19951{
19952
19953  ;
19954  return 0;
19955}
19956_ACEOF
19957if ac_fn_c_try_compile "$LINENO"
19958then :
19959  _EXT_CHECK=yes
19960else case e in #(
19961  e) _EXT_CHECK=no ;;
19962esac
19963fi
19964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19965	CFLAGS="$SAVE_CFLAGS"
19966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19967printf %s "checking if RENDER is defined... " >&6; }
19968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19969printf "%s\n" "$_EXT_CHECK" >&6; }
19970	if test "$_EXT_CHECK" != no; then
19971		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19972	fi
19973
19974
19975
19976	SAVE_CFLAGS="$CFLAGS"
19977	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19978	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979/* end confdefs.h.  */
19980
19981#include "xorg-server.h"
19982#if !defined XV
19983#error XV not defined
19984#endif
19985
19986int
19987main (void)
19988{
19989
19990  ;
19991  return 0;
19992}
19993_ACEOF
19994if ac_fn_c_try_compile "$LINENO"
19995then :
19996  _EXT_CHECK=yes
19997else case e in #(
19998  e) _EXT_CHECK=no ;;
19999esac
20000fi
20001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20002	CFLAGS="$SAVE_CFLAGS"
20003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
20004printf %s "checking if XV is defined... " >&6; }
20005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20006printf "%s\n" "$_EXT_CHECK" >&6; }
20007	if test "$_EXT_CHECK" != no; then
20008		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20009	fi
20010
20011
20012
20013	SAVE_CFLAGS="$CFLAGS"
20014	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
20015	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20016/* end confdefs.h.  */
20017
20018#include "xorg-server.h"
20019#if !defined DPMSExtension
20020#error DPMSExtension not defined
20021#endif
20022
20023int
20024main (void)
20025{
20026
20027  ;
20028  return 0;
20029}
20030_ACEOF
20031if ac_fn_c_try_compile "$LINENO"
20032then :
20033  _EXT_CHECK=yes
20034else case e in #(
20035  e) _EXT_CHECK=no ;;
20036esac
20037fi
20038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20039	CFLAGS="$SAVE_CFLAGS"
20040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
20041printf %s "checking if DPMSExtension is defined... " >&6; }
20042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20043printf "%s\n" "$_EXT_CHECK" >&6; }
20044	if test "$_EXT_CHECK" != no; then
20045		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20046	fi
20047
20048
20049
20050	SAVE_CFLAGS="$CFLAGS"
20051	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
20052	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053/* end confdefs.h.  */
20054
20055#include "xorg-server.h"
20056#if !defined DRI2
20057#error DRI2 not defined
20058#endif
20059
20060int
20061main (void)
20062{
20063
20064  ;
20065  return 0;
20066}
20067_ACEOF
20068if ac_fn_c_try_compile "$LINENO"
20069then :
20070  _EXT_CHECK=yes
20071else case e in #(
20072  e) _EXT_CHECK=no ;;
20073esac
20074fi
20075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20076	CFLAGS="$SAVE_CFLAGS"
20077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DRI2 is defined" >&5
20078printf %s "checking if DRI2 is defined... " >&6; }
20079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20080printf "%s\n" "$_EXT_CHECK" >&6; }
20081	if test "$_EXT_CHECK" != no; then
20082		REQUIRED_MODULES="$REQUIRED_MODULES dri2proto >= 2.6"
20083	fi
20084
20085
20086# Checks for libraries
20087
20088pkg_failed=no
20089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 2.4.60" >&5
20090printf %s "checking for libdrm >= 2.4.60... " >&6; }
20091
20092if test -n "$LIBDRM_CFLAGS"; then
20093    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
20094 elif test -n "$PKG_CONFIG"; then
20095    if test -n "$PKG_CONFIG" && \
20096    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
20097  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
20098  ac_status=$?
20099  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100  test $ac_status = 0; }; then
20101  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.60" 2>/dev/null`
20102		      test "x$?" != "x0" && pkg_failed=yes
20103else
20104  pkg_failed=yes
20105fi
20106 else
20107    pkg_failed=untried
20108fi
20109if test -n "$LIBDRM_LIBS"; then
20110    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
20111 elif test -n "$PKG_CONFIG"; then
20112    if test -n "$PKG_CONFIG" && \
20113    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
20114  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
20115  ac_status=$?
20116  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20117  test $ac_status = 0; }; then
20118  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.60" 2>/dev/null`
20119		      test "x$?" != "x0" && pkg_failed=yes
20120else
20121  pkg_failed=yes
20122fi
20123 else
20124    pkg_failed=untried
20125fi
20126
20127
20128
20129if test $pkg_failed = yes; then
20130        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20131printf "%s\n" "no" >&6; }
20132
20133if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20134        _pkg_short_errors_supported=yes
20135else
20136        _pkg_short_errors_supported=no
20137fi
20138        if test $_pkg_short_errors_supported = yes; then
20139                LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
20140        else
20141                LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
20142        fi
20143        # Put the nasty error message in config.log where it belongs
20144        echo "$LIBDRM_PKG_ERRORS" >&5
20145
20146        as_fn_error $? "Package requirements (libdrm >= 2.4.60) were not met:
20147
20148$LIBDRM_PKG_ERRORS
20149
20150Consider adjusting the PKG_CONFIG_PATH environment variable if you
20151installed software in a non-standard prefix.
20152
20153Alternatively, you may set the environment variables LIBDRM_CFLAGS
20154and LIBDRM_LIBS to avoid the need to call pkg-config.
20155See the pkg-config man page for more details." "$LINENO" 5
20156elif test $pkg_failed = untried; then
20157        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20158printf "%s\n" "no" >&6; }
20159        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20160printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20161as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20162is in your PATH or set the PKG_CONFIG environment variable to the full
20163path to pkg-config.
20164
20165Alternatively, you may set the environment variables LIBDRM_CFLAGS
20166and LIBDRM_LIBS to avoid the need to call pkg-config.
20167See the pkg-config man page for more details.
20168
20169To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20170See 'config.log' for more details" "$LINENO" 5; }
20171else
20172        LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
20173        LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
20174        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20175printf "%s\n" "yes" >&6; }
20176
20177fi
20178
20179pkg_failed=no
20180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm_nouveau >= 2.4.25" >&5
20181printf %s "checking for libdrm_nouveau >= 2.4.25... " >&6; }
20182
20183if test -n "$LIBDRM_NOUVEAU_CFLAGS"; then
20184    pkg_cv_LIBDRM_NOUVEAU_CFLAGS="$LIBDRM_NOUVEAU_CFLAGS"
20185 elif test -n "$PKG_CONFIG"; then
20186    if test -n "$PKG_CONFIG" && \
20187    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
20188  ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
20189  ac_status=$?
20190  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20191  test $ac_status = 0; }; then
20192  pkg_cv_LIBDRM_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= 2.4.25" 2>/dev/null`
20193		      test "x$?" != "x0" && pkg_failed=yes
20194else
20195  pkg_failed=yes
20196fi
20197 else
20198    pkg_failed=untried
20199fi
20200if test -n "$LIBDRM_NOUVEAU_LIBS"; then
20201    pkg_cv_LIBDRM_NOUVEAU_LIBS="$LIBDRM_NOUVEAU_LIBS"
20202 elif test -n "$PKG_CONFIG"; then
20203    if test -n "$PKG_CONFIG" && \
20204    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
20205  ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
20206  ac_status=$?
20207  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20208  test $ac_status = 0; }; then
20209  pkg_cv_LIBDRM_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= 2.4.25" 2>/dev/null`
20210		      test "x$?" != "x0" && pkg_failed=yes
20211else
20212  pkg_failed=yes
20213fi
20214 else
20215    pkg_failed=untried
20216fi
20217
20218
20219
20220if test $pkg_failed = yes; then
20221        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20222printf "%s\n" "no" >&6; }
20223
20224if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20225        _pkg_short_errors_supported=yes
20226else
20227        _pkg_short_errors_supported=no
20228fi
20229        if test $_pkg_short_errors_supported = yes; then
20230                LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
20231        else
20232                LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
20233        fi
20234        # Put the nasty error message in config.log where it belongs
20235        echo "$LIBDRM_NOUVEAU_PKG_ERRORS" >&5
20236
20237        as_fn_error $? "Package requirements (libdrm_nouveau >= 2.4.25) were not met:
20238
20239$LIBDRM_NOUVEAU_PKG_ERRORS
20240
20241Consider adjusting the PKG_CONFIG_PATH environment variable if you
20242installed software in a non-standard prefix.
20243
20244Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
20245and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
20246See the pkg-config man page for more details." "$LINENO" 5
20247elif test $pkg_failed = untried; then
20248        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249printf "%s\n" "no" >&6; }
20250        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20251printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20252as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20253is in your PATH or set the PKG_CONFIG environment variable to the full
20254path to pkg-config.
20255
20256Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
20257and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
20258See the pkg-config man page for more details.
20259
20260To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20261See 'config.log' for more details" "$LINENO" 5; }
20262else
20263        LIBDRM_NOUVEAU_CFLAGS=$pkg_cv_LIBDRM_NOUVEAU_CFLAGS
20264        LIBDRM_NOUVEAU_LIBS=$pkg_cv_LIBDRM_NOUVEAU_LIBS
20265        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20266printf "%s\n" "yes" >&6; }
20267
20268fi
20269
20270# Obtain compiler/linker options for the driver dependencies
20271
20272pkg_failed=no
20273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" >&5
20274printf %s "checking for xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES... " >&6; }
20275
20276if test -n "$XORG_CFLAGS"; then
20277    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20278 elif test -n "$PKG_CONFIG"; then
20279    if test -n "$PKG_CONFIG" && \
20280    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
20281  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES") 2>&5
20282  ac_status=$?
20283  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20284  test $ac_status = 0; }; then
20285  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20286		      test "x$?" != "x0" && pkg_failed=yes
20287else
20288  pkg_failed=yes
20289fi
20290 else
20291    pkg_failed=untried
20292fi
20293if test -n "$XORG_LIBS"; then
20294    pkg_cv_XORG_LIBS="$XORG_LIBS"
20295 elif test -n "$PKG_CONFIG"; then
20296    if test -n "$PKG_CONFIG" && \
20297    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
20298  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES") 2>&5
20299  ac_status=$?
20300  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20301  test $ac_status = 0; }; then
20302  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20303		      test "x$?" != "x0" && pkg_failed=yes
20304else
20305  pkg_failed=yes
20306fi
20307 else
20308    pkg_failed=untried
20309fi
20310
20311
20312
20313if test $pkg_failed = yes; then
20314        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20315printf "%s\n" "no" >&6; }
20316
20317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20318        _pkg_short_errors_supported=yes
20319else
20320        _pkg_short_errors_supported=no
20321fi
20322        if test $_pkg_short_errors_supported = yes; then
20323                XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20324        else
20325                XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20326        fi
20327        # Put the nasty error message in config.log where it belongs
20328        echo "$XORG_PKG_ERRORS" >&5
20329
20330        as_fn_error $? "Package requirements (xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES) were not met:
20331
20332$XORG_PKG_ERRORS
20333
20334Consider adjusting the PKG_CONFIG_PATH environment variable if you
20335installed software in a non-standard prefix.
20336
20337Alternatively, you may set the environment variables XORG_CFLAGS
20338and XORG_LIBS to avoid the need to call pkg-config.
20339See the pkg-config man page for more details." "$LINENO" 5
20340elif test $pkg_failed = untried; then
20341        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20342printf "%s\n" "no" >&6; }
20343        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20344printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20345as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20346is in your PATH or set the PKG_CONFIG environment variable to the full
20347path to pkg-config.
20348
20349Alternatively, you may set the environment variables XORG_CFLAGS
20350and XORG_LIBS to avoid the need to call pkg-config.
20351See the pkg-config man page for more details.
20352
20353To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20354See 'config.log' for more details" "$LINENO" 5; }
20355else
20356        XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20357        XORG_LIBS=$pkg_cv_XORG_LIBS
20358        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20359printf "%s\n" "yes" >&6; }
20360
20361fi
20362
20363pkg_failed=no
20364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xextproto >= 7.0.99.1" >&5
20365printf %s "checking for xextproto >= 7.0.99.1... " >&6; }
20366
20367if test -n "$XEXT_CFLAGS"; then
20368    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
20369 elif test -n "$PKG_CONFIG"; then
20370    if test -n "$PKG_CONFIG" && \
20371    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20372  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20373  ac_status=$?
20374  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20375  test $ac_status = 0; }; then
20376  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
20377		      test "x$?" != "x0" && pkg_failed=yes
20378else
20379  pkg_failed=yes
20380fi
20381 else
20382    pkg_failed=untried
20383fi
20384if test -n "$XEXT_LIBS"; then
20385    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20386 elif test -n "$PKG_CONFIG"; then
20387    if test -n "$PKG_CONFIG" && \
20388    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20389  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20390  ac_status=$?
20391  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20392  test $ac_status = 0; }; then
20393  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
20394		      test "x$?" != "x0" && pkg_failed=yes
20395else
20396  pkg_failed=yes
20397fi
20398 else
20399    pkg_failed=untried
20400fi
20401
20402
20403
20404if test $pkg_failed = yes; then
20405        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20406printf "%s\n" "no" >&6; }
20407
20408if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20409        _pkg_short_errors_supported=yes
20410else
20411        _pkg_short_errors_supported=no
20412fi
20413        if test $_pkg_short_errors_supported = yes; then
20414                XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20415        else
20416                XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20417        fi
20418        # Put the nasty error message in config.log where it belongs
20419        echo "$XEXT_PKG_ERRORS" >&5
20420
20421        HAVE_XEXTPROTO_71="no"
20422elif test $pkg_failed = untried; then
20423        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20424printf "%s\n" "no" >&6; }
20425        HAVE_XEXTPROTO_71="no"
20426else
20427        XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20428        XEXT_LIBS=$pkg_cv_XEXT_LIBS
20429        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20430printf "%s\n" "yes" >&6; }
20431        HAVE_XEXTPROTO_71="yes";
20432printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
20433
20434fi
20435 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
20436  HAVE_XEXTPROTO_71_TRUE=
20437  HAVE_XEXTPROTO_71_FALSE='#'
20438else
20439  HAVE_XEXTPROTO_71_TRUE='#'
20440  HAVE_XEXTPROTO_71_FALSE=
20441fi
20442
20443
20444
20445pkg_failed=no
20446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pciaccess >= 0.10" >&5
20447printf %s "checking for pciaccess >= 0.10... " >&6; }
20448
20449if test -n "$PCIACCESS_CFLAGS"; then
20450    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20451 elif test -n "$PKG_CONFIG"; then
20452    if test -n "$PKG_CONFIG" && \
20453    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
20454  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
20455  ac_status=$?
20456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20457  test $ac_status = 0; }; then
20458  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
20459		      test "x$?" != "x0" && pkg_failed=yes
20460else
20461  pkg_failed=yes
20462fi
20463 else
20464    pkg_failed=untried
20465fi
20466if test -n "$PCIACCESS_LIBS"; then
20467    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20468 elif test -n "$PKG_CONFIG"; then
20469    if test -n "$PKG_CONFIG" && \
20470    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
20471  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
20472  ac_status=$?
20473  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20474  test $ac_status = 0; }; then
20475  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
20476		      test "x$?" != "x0" && pkg_failed=yes
20477else
20478  pkg_failed=yes
20479fi
20480 else
20481    pkg_failed=untried
20482fi
20483
20484
20485
20486if test $pkg_failed = yes; then
20487        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20488printf "%s\n" "no" >&6; }
20489
20490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20491        _pkg_short_errors_supported=yes
20492else
20493        _pkg_short_errors_supported=no
20494fi
20495        if test $_pkg_short_errors_supported = yes; then
20496                PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
20497        else
20498                PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
20499        fi
20500        # Put the nasty error message in config.log where it belongs
20501        echo "$PCIACCESS_PKG_ERRORS" >&5
20502
20503        as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
20504
20505$PCIACCESS_PKG_ERRORS
20506
20507Consider adjusting the PKG_CONFIG_PATH environment variable if you
20508installed software in a non-standard prefix.
20509
20510Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20511and PCIACCESS_LIBS to avoid the need to call pkg-config.
20512See the pkg-config man page for more details." "$LINENO" 5
20513elif test $pkg_failed = untried; then
20514        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20515printf "%s\n" "no" >&6; }
20516        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20517printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20518as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20519is in your PATH or set the PKG_CONFIG environment variable to the full
20520path to pkg-config.
20521
20522Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20523and PCIACCESS_LIBS to avoid the need to call pkg-config.
20524See the pkg-config man page for more details.
20525
20526To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20527See 'config.log' for more details" "$LINENO" 5; }
20528else
20529        PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20530        PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20531        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20532printf "%s\n" "yes" >&6; }
20533
20534fi
20535
20536
20537pkg_failed=no
20538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5
20539printf %s "checking for libudev... " >&6; }
20540
20541if test -n "$LIBUDEV_CFLAGS"; then
20542    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
20543 elif test -n "$PKG_CONFIG"; then
20544    if test -n "$PKG_CONFIG" && \
20545    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20546  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20547  ac_status=$?
20548  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20549  test $ac_status = 0; }; then
20550  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
20551		      test "x$?" != "x0" && pkg_failed=yes
20552else
20553  pkg_failed=yes
20554fi
20555 else
20556    pkg_failed=untried
20557fi
20558if test -n "$LIBUDEV_LIBS"; then
20559    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
20560 elif test -n "$PKG_CONFIG"; then
20561    if test -n "$PKG_CONFIG" && \
20562    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20563  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20564  ac_status=$?
20565  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20566  test $ac_status = 0; }; then
20567  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
20568		      test "x$?" != "x0" && pkg_failed=yes
20569else
20570  pkg_failed=yes
20571fi
20572 else
20573    pkg_failed=untried
20574fi
20575
20576
20577
20578if test $pkg_failed = yes; then
20579        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580printf "%s\n" "no" >&6; }
20581
20582if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20583        _pkg_short_errors_supported=yes
20584else
20585        _pkg_short_errors_supported=no
20586fi
20587        if test $_pkg_short_errors_supported = yes; then
20588                LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
20589        else
20590                LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
20591        fi
20592        # Put the nasty error message in config.log where it belongs
20593        echo "$LIBUDEV_PKG_ERRORS" >&5
20594
20595        LIBUDEV=no
20596elif test $pkg_failed = untried; then
20597        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20598printf "%s\n" "no" >&6; }
20599        LIBUDEV=no
20600else
20601        LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
20602        LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
20603        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20604printf "%s\n" "yes" >&6; }
20605        LIBUDEV=yes
20606fi
20607if test "x$LIBUDEV" = xyes; then
20608
20609printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h
20610
20611fi
20612 if  test "x$LIBUDEV" = "xyes"  ; then
20613  LIBUDEV_TRUE=
20614  LIBUDEV_FALSE='#'
20615else
20616  LIBUDEV_TRUE='#'
20617  LIBUDEV_FALSE=
20618fi
20619
20620
20621# Use -Wall all the time
20622CFLAGS="$CFLAGS -Wall"
20623
20624# Check for -minline-all-stringops availability
20625OLD_CFLAGS="$CFLAGS"
20626CFLAGS="$CFLAGS -minline-all-stringops"
20627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628/* end confdefs.h.  */
20629 #include <stdio.h>
20630int
20631main (void)
20632{
20633
20634  ;
20635  return 0;
20636}
20637_ACEOF
20638if ac_fn_c_try_compile "$LINENO"
20639then :
20640   CFLAGS="$OLD_CFLAGS -minline-all-stringops"
20641else case e in #(
20642  e) CFLAGS="$OLD_CFLAGS" ;;
20643esac
20644fi
20645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20646
20647# needed for the next test
20648CFLAGS="$CFLAGS $XORG_CFLAGS"
20649
20650
20651
20652
20653DRIVER_NAME=nouveau
20654
20655
20656ac_fn_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
20657               #include <xf86Cursor.h>
20658" "$ac_c_undeclared_builtin_options" "CFLAGS"
20659if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes
20660then :
20661
20662printf "%s\n" "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
20663
20664fi
20665
20666ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20667
20668cat >confcache <<\_ACEOF
20669# This file is a shell script that caches the results of configure
20670# tests run on this system so they can be shared between configure
20671# scripts and configure runs, see configure's option --config-cache.
20672# It is not useful on other systems.  If it contains results you don't
20673# want to keep, you may remove or edit it.
20674#
20675# config.status only pays attention to the cache file if you give it
20676# the --recheck option to rerun configure.
20677#
20678# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20679# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20680# following values.
20681
20682_ACEOF
20683
20684# The following way of writing the cache mishandles newlines in values,
20685# but we know of no workaround that is simple, portable, and efficient.
20686# So, we kill variables containing newlines.
20687# Ultrix sh set writes to stderr and can't be redirected directly,
20688# and sets the high bit in the cache file unless we assign to the vars.
20689(
20690  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20691    eval ac_val=\$$ac_var
20692    case $ac_val in #(
20693    *${as_nl}*)
20694      case $ac_var in #(
20695      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20696printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20697      esac
20698      case $ac_var in #(
20699      _ | IFS | as_nl) ;; #(
20700      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20701      *) { eval $ac_var=; unset $ac_var;} ;;
20702      esac ;;
20703    esac
20704  done
20705
20706  (set) 2>&1 |
20707    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20708    *${as_nl}ac_space=\ *)
20709      # 'set' does not quote correctly, so add quotes: double-quote
20710      # substitution turns \\\\ into \\, and sed turns \\ into \.
20711      sed -n \
20712	"s/'/'\\\\''/g;
20713	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20714      ;; #(
20715    *)
20716      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20717      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20718      ;;
20719    esac |
20720    sort
20721) |
20722  sed '
20723     /^ac_cv_env_/b end
20724     t clear
20725     :clear
20726     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20727     t end
20728     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20729     :end' >>confcache
20730if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20731  if test -w "$cache_file"; then
20732    if test "x$cache_file" != "x/dev/null"; then
20733      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20734printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20735      if test ! -f "$cache_file" || test -h "$cache_file"; then
20736	cat confcache >"$cache_file"
20737      else
20738        case $cache_file in #(
20739        */* | ?:*)
20740	  mv -f confcache "$cache_file"$$ &&
20741	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20742        *)
20743	  mv -f confcache "$cache_file" ;;
20744	esac
20745      fi
20746    fi
20747  else
20748    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20749printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20750  fi
20751fi
20752rm -f confcache
20753
20754test "x$prefix" = xNONE && prefix=$ac_default_prefix
20755# Let make expand exec_prefix.
20756test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20757
20758DEFS=-DHAVE_CONFIG_H
20759
20760ac_libobjs=
20761ac_ltlibobjs=
20762U=
20763for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20764  # 1. Remove the extension, and $U if already installed.
20765  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20766  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20767  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20768  #    will be set to the directory where LIBOBJS objects are built.
20769  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20770  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20771done
20772LIBOBJS=$ac_libobjs
20773
20774LTLIBOBJS=$ac_ltlibobjs
20775
20776
20777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20778printf %s "checking that generated files are newer than configure... " >&6; }
20779   if test -n "$am_sleep_pid"; then
20780     # Hide warnings about reused PIDs.
20781     wait $am_sleep_pid 2>/dev/null
20782   fi
20783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20784printf "%s\n" "done" >&6; }
20785 if test -n "$EXEEXT"; then
20786  am__EXEEXT_TRUE=
20787  am__EXEEXT_FALSE='#'
20788else
20789  am__EXEEXT_TRUE='#'
20790  am__EXEEXT_FALSE=
20791fi
20792
20793if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20794  as_fn_error $? "conditional \"AMDEP\" was never defined.
20795Usually this means the macro was only invoked conditionally." "$LINENO" 5
20796fi
20797if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20798  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20799Usually this means the macro was only invoked conditionally." "$LINENO" 5
20800fi
20801if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20802  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20803Usually this means the macro was only invoked conditionally." "$LINENO" 5
20804fi
20805if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20806  as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20807Usually this means the macro was only invoked conditionally." "$LINENO" 5
20808fi
20809
20810: "${CONFIG_STATUS=./config.status}"
20811ac_write_fail=0
20812ac_clean_files_save=$ac_clean_files
20813ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20815printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20816as_write_fail=0
20817cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20818#! $SHELL
20819# Generated by $as_me.
20820# Run this file to recreate the current configuration.
20821# Compiler output produced by configure, useful for debugging
20822# configure, is in config.log if it exists.
20823
20824debug=false
20825ac_cs_recheck=false
20826ac_cs_silent=false
20827
20828SHELL=\${CONFIG_SHELL-$SHELL}
20829export SHELL
20830_ASEOF
20831cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20832## -------------------- ##
20833## M4sh Initialization. ##
20834## -------------------- ##
20835
20836# Be more Bourne compatible
20837DUALCASE=1; export DUALCASE # for MKS sh
20838if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20839then :
20840  emulate sh
20841  NULLCMD=:
20842  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20843  # is contrary to our usage.  Disable this feature.
20844  alias -g '${1+"$@"}'='"$@"'
20845  setopt NO_GLOB_SUBST
20846else case e in #(
20847  e) case `(set -o) 2>/dev/null` in #(
20848  *posix*) :
20849    set -o posix ;; #(
20850  *) :
20851     ;;
20852esac ;;
20853esac
20854fi
20855
20856
20857
20858# Reset variables that may have inherited troublesome values from
20859# the environment.
20860
20861# IFS needs to be set, to space, tab, and newline, in precisely that order.
20862# (If _AS_PATH_WALK were called with IFS unset, it would have the
20863# side effect of setting IFS to empty, thus disabling word splitting.)
20864# Quoting is to prevent editors from complaining about space-tab.
20865as_nl='
20866'
20867export as_nl
20868IFS=" ""	$as_nl"
20869
20870PS1='$ '
20871PS2='> '
20872PS4='+ '
20873
20874# Ensure predictable behavior from utilities with locale-dependent output.
20875LC_ALL=C
20876export LC_ALL
20877LANGUAGE=C
20878export LANGUAGE
20879
20880# We cannot yet rely on "unset" to work, but we need these variables
20881# to be unset--not just set to an empty or harmless value--now, to
20882# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20883# also avoids known problems related to "unset" and subshell syntax
20884# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20885for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20886do eval test \${$as_var+y} \
20887  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20888done
20889
20890# Ensure that fds 0, 1, and 2 are open.
20891if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20892if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20893if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20894
20895# The user is always right.
20896if ${PATH_SEPARATOR+false} :; then
20897  PATH_SEPARATOR=:
20898  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20899    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20900      PATH_SEPARATOR=';'
20901  }
20902fi
20903
20904
20905# Find who we are.  Look in the path if we contain no directory separator.
20906as_myself=
20907case $0 in #((
20908  *[\\/]* ) as_myself=$0 ;;
20909  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910for as_dir in $PATH
20911do
20912  IFS=$as_save_IFS
20913  case $as_dir in #(((
20914    '') as_dir=./ ;;
20915    */) ;;
20916    *) as_dir=$as_dir/ ;;
20917  esac
20918    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20919  done
20920IFS=$as_save_IFS
20921
20922     ;;
20923esac
20924# We did not find ourselves, most probably we were run as 'sh COMMAND'
20925# in which case we are not to be found in the path.
20926if test "x$as_myself" = x; then
20927  as_myself=$0
20928fi
20929if test ! -f "$as_myself"; then
20930  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20931  exit 1
20932fi
20933
20934
20935
20936# as_fn_error STATUS ERROR [LINENO LOG_FD]
20937# ----------------------------------------
20938# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20939# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20940# script with STATUS, using 1 if that was 0.
20941as_fn_error ()
20942{
20943  as_status=$1; test $as_status -eq 0 && as_status=1
20944  if test "$4"; then
20945    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20946    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20947  fi
20948  printf "%s\n" "$as_me: error: $2" >&2
20949  as_fn_exit $as_status
20950} # as_fn_error
20951
20952
20953# as_fn_set_status STATUS
20954# -----------------------
20955# Set $? to STATUS, without forking.
20956as_fn_set_status ()
20957{
20958  return $1
20959} # as_fn_set_status
20960
20961# as_fn_exit STATUS
20962# -----------------
20963# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20964as_fn_exit ()
20965{
20966  set +e
20967  as_fn_set_status $1
20968  exit $1
20969} # as_fn_exit
20970
20971# as_fn_unset VAR
20972# ---------------
20973# Portably unset VAR.
20974as_fn_unset ()
20975{
20976  { eval $1=; unset $1;}
20977}
20978as_unset=as_fn_unset
20979
20980# as_fn_append VAR VALUE
20981# ----------------------
20982# Append the text in VALUE to the end of the definition contained in VAR. Take
20983# advantage of any shell optimizations that allow amortized linear growth over
20984# repeated appends, instead of the typical quadratic growth present in naive
20985# implementations.
20986if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20987then :
20988  eval 'as_fn_append ()
20989  {
20990    eval $1+=\$2
20991  }'
20992else case e in #(
20993  e) as_fn_append ()
20994  {
20995    eval $1=\$$1\$2
20996  } ;;
20997esac
20998fi # as_fn_append
20999
21000# as_fn_arith ARG...
21001# ------------------
21002# Perform arithmetic evaluation on the ARGs, and store the result in the
21003# global $as_val. Take advantage of shells that can avoid forks. The arguments
21004# must be portable across $(()) and expr.
21005if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21006then :
21007  eval 'as_fn_arith ()
21008  {
21009    as_val=$(( $* ))
21010  }'
21011else case e in #(
21012  e) as_fn_arith ()
21013  {
21014    as_val=`expr "$@" || test $? -eq 1`
21015  } ;;
21016esac
21017fi # as_fn_arith
21018
21019
21020if expr a : '\(a\)' >/dev/null 2>&1 &&
21021   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21022  as_expr=expr
21023else
21024  as_expr=false
21025fi
21026
21027if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21028  as_basename=basename
21029else
21030  as_basename=false
21031fi
21032
21033if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21034  as_dirname=dirname
21035else
21036  as_dirname=false
21037fi
21038
21039as_me=`$as_basename -- "$0" ||
21040$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21041	 X"$0" : 'X\(//\)$' \| \
21042	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21043printf "%s\n" X/"$0" |
21044    sed '/^.*\/\([^/][^/]*\)\/*$/{
21045	    s//\1/
21046	    q
21047	  }
21048	  /^X\/\(\/\/\)$/{
21049	    s//\1/
21050	    q
21051	  }
21052	  /^X\/\(\/\).*/{
21053	    s//\1/
21054	    q
21055	  }
21056	  s/.*/./; q'`
21057
21058# Avoid depending upon Character Ranges.
21059as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21060as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21061as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21062as_cr_digits='0123456789'
21063as_cr_alnum=$as_cr_Letters$as_cr_digits
21064
21065
21066# Determine whether it's possible to make 'echo' print without a newline.
21067# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21068# for compatibility with existing Makefiles.
21069ECHO_C= ECHO_N= ECHO_T=
21070case `echo -n x` in #(((((
21071-n*)
21072  case `echo 'xy\c'` in
21073  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21074  xy)  ECHO_C='\c';;
21075  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21076       ECHO_T='	';;
21077  esac;;
21078*)
21079  ECHO_N='-n';;
21080esac
21081
21082# For backward compatibility with old third-party macros, we provide
21083# the shell variables $as_echo and $as_echo_n.  New code should use
21084# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21085as_echo='printf %s\n'
21086as_echo_n='printf %s'
21087
21088rm -f conf$$ conf$$.exe conf$$.file
21089if test -d conf$$.dir; then
21090  rm -f conf$$.dir/conf$$.file
21091else
21092  rm -f conf$$.dir
21093  mkdir conf$$.dir 2>/dev/null
21094fi
21095if (echo >conf$$.file) 2>/dev/null; then
21096  if ln -s conf$$.file conf$$ 2>/dev/null; then
21097    as_ln_s='ln -s'
21098    # ... but there are two gotchas:
21099    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21100    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21101    # In both cases, we have to default to 'cp -pR'.
21102    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21103      as_ln_s='cp -pR'
21104  elif ln conf$$.file conf$$ 2>/dev/null; then
21105    as_ln_s=ln
21106  else
21107    as_ln_s='cp -pR'
21108  fi
21109else
21110  as_ln_s='cp -pR'
21111fi
21112rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21113rmdir conf$$.dir 2>/dev/null
21114
21115
21116# as_fn_mkdir_p
21117# -------------
21118# Create "$as_dir" as a directory, including parents if necessary.
21119as_fn_mkdir_p ()
21120{
21121
21122  case $as_dir in #(
21123  -*) as_dir=./$as_dir;;
21124  esac
21125  test -d "$as_dir" || eval $as_mkdir_p || {
21126    as_dirs=
21127    while :; do
21128      case $as_dir in #(
21129      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21130      *) as_qdir=$as_dir;;
21131      esac
21132      as_dirs="'$as_qdir' $as_dirs"
21133      as_dir=`$as_dirname -- "$as_dir" ||
21134$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21135	 X"$as_dir" : 'X\(//\)[^/]' \| \
21136	 X"$as_dir" : 'X\(//\)$' \| \
21137	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21138printf "%s\n" X"$as_dir" |
21139    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21140	    s//\1/
21141	    q
21142	  }
21143	  /^X\(\/\/\)[^/].*/{
21144	    s//\1/
21145	    q
21146	  }
21147	  /^X\(\/\/\)$/{
21148	    s//\1/
21149	    q
21150	  }
21151	  /^X\(\/\).*/{
21152	    s//\1/
21153	    q
21154	  }
21155	  s/.*/./; q'`
21156      test -d "$as_dir" && break
21157    done
21158    test -z "$as_dirs" || eval "mkdir $as_dirs"
21159  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21160
21161
21162} # as_fn_mkdir_p
21163if mkdir -p . 2>/dev/null; then
21164  as_mkdir_p='mkdir -p "$as_dir"'
21165else
21166  test -d ./-p && rmdir ./-p
21167  as_mkdir_p=false
21168fi
21169
21170
21171# as_fn_executable_p FILE
21172# -----------------------
21173# Test if FILE is an executable regular file.
21174as_fn_executable_p ()
21175{
21176  test -f "$1" && test -x "$1"
21177} # as_fn_executable_p
21178as_test_x='test -x'
21179as_executable_p=as_fn_executable_p
21180
21181# Sed expression to map a string onto a valid CPP name.
21182as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21183as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21184
21185# Sed expression to map a string onto a valid variable name.
21186as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21187as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21188
21189
21190exec 6>&1
21191## ----------------------------------- ##
21192## Main body of $CONFIG_STATUS script. ##
21193## ----------------------------------- ##
21194_ASEOF
21195test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21196
21197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21198# Save the log message, to keep $0 and so on meaningful, and to
21199# report actual input values of CONFIG_FILES etc. instead of their
21200# values after options handling.
21201ac_log="
21202This file was extended by xf86-video-nouveau $as_me 1.0.18, which was
21203generated by GNU Autoconf 2.72.  Invocation command line was
21204
21205  CONFIG_FILES    = $CONFIG_FILES
21206  CONFIG_HEADERS  = $CONFIG_HEADERS
21207  CONFIG_LINKS    = $CONFIG_LINKS
21208  CONFIG_COMMANDS = $CONFIG_COMMANDS
21209  $ $0 $@
21210
21211on `(hostname || uname -n) 2>/dev/null | sed 1q`
21212"
21213
21214_ACEOF
21215
21216case $ac_config_files in *"
21217"*) set x $ac_config_files; shift; ac_config_files=$*;;
21218esac
21219
21220case $ac_config_headers in *"
21221"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21222esac
21223
21224
21225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21226# Files that config.status was made for.
21227config_files="$ac_config_files"
21228config_headers="$ac_config_headers"
21229config_commands="$ac_config_commands"
21230
21231_ACEOF
21232
21233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21234ac_cs_usage="\
21235'$as_me' instantiates files and other configuration actions
21236from templates according to the current configuration.  Unless the files
21237and actions are specified as TAGs, all are instantiated by default.
21238
21239Usage: $0 [OPTION]... [TAG]...
21240
21241  -h, --help       print this help, then exit
21242  -V, --version    print version number and configuration settings, then exit
21243      --config     print configuration, then exit
21244  -q, --quiet, --silent
21245                   do not print progress messages
21246  -d, --debug      don't remove temporary files
21247      --recheck    update $as_me by reconfiguring in the same conditions
21248      --file=FILE[:TEMPLATE]
21249                   instantiate the configuration file FILE
21250      --header=FILE[:TEMPLATE]
21251                   instantiate the configuration header FILE
21252
21253Configuration files:
21254$config_files
21255
21256Configuration headers:
21257$config_headers
21258
21259Configuration commands:
21260$config_commands
21261
21262Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/issues/>."
21263
21264_ACEOF
21265ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21266ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21268ac_cs_config='$ac_cs_config_escaped'
21269ac_cs_version="\\
21270xf86-video-nouveau config.status 1.0.18
21271configured by $0, generated by GNU Autoconf 2.72,
21272  with options \\"\$ac_cs_config\\"
21273
21274Copyright (C) 2023 Free Software Foundation, Inc.
21275This config.status script is free software; the Free Software Foundation
21276gives unlimited permission to copy, distribute and modify it."
21277
21278ac_pwd='$ac_pwd'
21279srcdir='$srcdir'
21280INSTALL='$INSTALL'
21281MKDIR_P='$MKDIR_P'
21282AWK='$AWK'
21283test -n "\$AWK" || AWK=awk
21284_ACEOF
21285
21286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21287# The default lists apply if the user does not specify any file.
21288ac_need_defaults=:
21289while test $# != 0
21290do
21291  case $1 in
21292  --*=?*)
21293    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21294    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21295    ac_shift=:
21296    ;;
21297  --*=)
21298    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21299    ac_optarg=
21300    ac_shift=:
21301    ;;
21302  *)
21303    ac_option=$1
21304    ac_optarg=$2
21305    ac_shift=shift
21306    ;;
21307  esac
21308
21309  case $ac_option in
21310  # Handling of the options.
21311  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21312    ac_cs_recheck=: ;;
21313  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21314    printf "%s\n" "$ac_cs_version"; exit ;;
21315  --config | --confi | --conf | --con | --co | --c )
21316    printf "%s\n" "$ac_cs_config"; exit ;;
21317  --debug | --debu | --deb | --de | --d | -d )
21318    debug=: ;;
21319  --file | --fil | --fi | --f )
21320    $ac_shift
21321    case $ac_optarg in
21322    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21323    '') as_fn_error $? "missing file argument" ;;
21324    esac
21325    as_fn_append CONFIG_FILES " '$ac_optarg'"
21326    ac_need_defaults=false;;
21327  --header | --heade | --head | --hea )
21328    $ac_shift
21329    case $ac_optarg in
21330    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21331    esac
21332    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21333    ac_need_defaults=false;;
21334  --he | --h)
21335    # Conflict between --help and --header
21336    as_fn_error $? "ambiguous option: '$1'
21337Try '$0 --help' for more information.";;
21338  --help | --hel | -h )
21339    printf "%s\n" "$ac_cs_usage"; exit ;;
21340  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21341  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21342    ac_cs_silent=: ;;
21343
21344  # This is an error.
21345  -*) as_fn_error $? "unrecognized option: '$1'
21346Try '$0 --help' for more information." ;;
21347
21348  *) as_fn_append ac_config_targets " $1"
21349     ac_need_defaults=false ;;
21350
21351  esac
21352  shift
21353done
21354
21355ac_configure_extra_args=
21356
21357if $ac_cs_silent; then
21358  exec 6>/dev/null
21359  ac_configure_extra_args="$ac_configure_extra_args --silent"
21360fi
21361
21362_ACEOF
21363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21364if \$ac_cs_recheck; then
21365  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21366  shift
21367  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21368  CONFIG_SHELL='$SHELL'
21369  export CONFIG_SHELL
21370  exec "\$@"
21371fi
21372
21373_ACEOF
21374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21375exec 5>>config.log
21376{
21377  echo
21378  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21379## Running $as_me. ##
21380_ASBOX
21381  printf "%s\n" "$ac_log"
21382} >&5
21383
21384_ACEOF
21385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21386#
21387# INIT-COMMANDS
21388#
21389AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21390
21391
21392# The HP-UX ksh and POSIX shell print the target directory to stdout
21393# if CDPATH is set.
21394(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21395
21396sed_quote_subst='$sed_quote_subst'
21397double_quote_subst='$double_quote_subst'
21398delay_variable_subst='$delay_variable_subst'
21399macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21400macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21401enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21402enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21403pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21404enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21405shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21406SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21407ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21408PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21409host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21410host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21411host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21412build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21413build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21414build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21415SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21416Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21417GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21418EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21419FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21420LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21421NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21422LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21423max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21424ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21425exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21426lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21427lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21428lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21429lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21430lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21431reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21432reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21433FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21434OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21435deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21436file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21437file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21438want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21439DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21440sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21441AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21442lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21443AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21444archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21445STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21446RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21447old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21448old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21449old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21450lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21451CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21452CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21453compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21454GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21455lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21456lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21457lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21458lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21459lt_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"`'
21460lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21461nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21462lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21463lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21464objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21465MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21466lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21467lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21468lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21469lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21470lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21471need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21472MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21473DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21474NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21475LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21476OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21477OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21478libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21479shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21480extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21481archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21482enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21483export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21484whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21485compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21486old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21487old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21488archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21489archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21490module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21491module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21492with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21493allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21494no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21495hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21496hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21497hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21498hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21499hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21500hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21501hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21502inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21503link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21504always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21505export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21506exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21507include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21508prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21509postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21510file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21511variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21512need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21513need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21514version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21515runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21516shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21517shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21518libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21519library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21520soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21521install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21522postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21523postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21524finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21525finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21526hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21527sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21528configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21529configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21530hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21531enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21532enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21533enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21534old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21535striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21536
21537LTCC='$LTCC'
21538LTCFLAGS='$LTCFLAGS'
21539compiler='$compiler_DEFAULT'
21540
21541# A function that is used when there is no print builtin or printf.
21542func_fallback_echo ()
21543{
21544  eval 'cat <<_LTECHO_EOF
21545\$1
21546_LTECHO_EOF'
21547}
21548
21549# Quote evaled strings.
21550for var in SHELL \
21551ECHO \
21552PATH_SEPARATOR \
21553SED \
21554GREP \
21555EGREP \
21556FGREP \
21557LD \
21558NM \
21559LN_S \
21560lt_SP2NL \
21561lt_NL2SP \
21562reload_flag \
21563FILECMD \
21564OBJDUMP \
21565deplibs_check_method \
21566file_magic_cmd \
21567file_magic_glob \
21568want_nocaseglob \
21569DLLTOOL \
21570sharedlib_from_linklib_cmd \
21571AR \
21572archiver_list_spec \
21573STRIP \
21574RANLIB \
21575CC \
21576CFLAGS \
21577compiler \
21578lt_cv_sys_global_symbol_pipe \
21579lt_cv_sys_global_symbol_to_cdecl \
21580lt_cv_sys_global_symbol_to_import \
21581lt_cv_sys_global_symbol_to_c_name_address \
21582lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21583lt_cv_nm_interface \
21584nm_file_list_spec \
21585lt_cv_truncate_bin \
21586lt_prog_compiler_no_builtin_flag \
21587lt_prog_compiler_pic \
21588lt_prog_compiler_wl \
21589lt_prog_compiler_static \
21590lt_cv_prog_compiler_c_o \
21591need_locks \
21592MANIFEST_TOOL \
21593DSYMUTIL \
21594NMEDIT \
21595LIPO \
21596OTOOL \
21597OTOOL64 \
21598shrext_cmds \
21599export_dynamic_flag_spec \
21600whole_archive_flag_spec \
21601compiler_needs_object \
21602with_gnu_ld \
21603allow_undefined_flag \
21604no_undefined_flag \
21605hardcode_libdir_flag_spec \
21606hardcode_libdir_separator \
21607exclude_expsyms \
21608include_expsyms \
21609file_list_spec \
21610variables_saved_for_relink \
21611libname_spec \
21612library_names_spec \
21613soname_spec \
21614install_override_mode \
21615finish_eval \
21616old_striplib \
21617striplib; do
21618    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21619    *[\\\\\\\`\\"\\\$]*)
21620      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21621      ;;
21622    *)
21623      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21624      ;;
21625    esac
21626done
21627
21628# Double-quote double-evaled strings.
21629for var in reload_cmds \
21630old_postinstall_cmds \
21631old_postuninstall_cmds \
21632old_archive_cmds \
21633extract_expsyms_cmds \
21634old_archive_from_new_cmds \
21635old_archive_from_expsyms_cmds \
21636archive_cmds \
21637archive_expsym_cmds \
21638module_cmds \
21639module_expsym_cmds \
21640export_symbols_cmds \
21641prelink_cmds \
21642postlink_cmds \
21643postinstall_cmds \
21644postuninstall_cmds \
21645finish_cmds \
21646sys_lib_search_path_spec \
21647configure_time_dlsearch_path \
21648configure_time_lt_sys_library_path; do
21649    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21650    *[\\\\\\\`\\"\\\$]*)
21651      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21652      ;;
21653    *)
21654      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21655      ;;
21656    esac
21657done
21658
21659ac_aux_dir='$ac_aux_dir'
21660
21661# See if we are running on zsh, and set the options that allow our
21662# commands through without removal of \ escapes INIT.
21663if test -n "\${ZSH_VERSION+set}"; then
21664   setopt NO_GLOB_SUBST
21665fi
21666
21667
21668    PACKAGE='$PACKAGE'
21669    VERSION='$VERSION'
21670    RM='$RM'
21671    ofile='$ofile'
21672
21673
21674
21675
21676_ACEOF
21677
21678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21679
21680# Handling of arguments.
21681for ac_config_target in $ac_config_targets
21682do
21683  case $ac_config_target in
21684    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21685    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21686    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21687    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21688    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21689    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21690
21691  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21692  esac
21693done
21694
21695
21696# If the user did not use the arguments to specify the items to instantiate,
21697# then the envvar interface is used.  Set only those that are not.
21698# We use the long form for the default assignment because of an extremely
21699# bizarre bug on SunOS 4.1.3.
21700if $ac_need_defaults; then
21701  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21702  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21703  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21704fi
21705
21706# Have a temporary directory for convenience.  Make it in the build tree
21707# simply because there is no reason against having it here, and in addition,
21708# creating and moving files from /tmp can sometimes cause problems.
21709# Hook for its removal unless debugging.
21710# Note that there is a small window in which the directory will not be cleaned:
21711# after its creation but before its name has been assigned to '$tmp'.
21712$debug ||
21713{
21714  tmp= ac_tmp=
21715  trap 'exit_status=$?
21716  : "${ac_tmp:=$tmp}"
21717  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21718' 0
21719  trap 'as_fn_exit 1' 1 2 13 15
21720}
21721# Create a (secure) tmp directory for tmp files.
21722
21723{
21724  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21725  test -d "$tmp"
21726}  ||
21727{
21728  tmp=./conf$$-$RANDOM
21729  (umask 077 && mkdir "$tmp")
21730} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21731ac_tmp=$tmp
21732
21733# Set up the scripts for CONFIG_FILES section.
21734# No need to generate them if there are no CONFIG_FILES.
21735# This happens for instance with './config.status config.h'.
21736if test -n "$CONFIG_FILES"; then
21737
21738
21739ac_cr=`echo X | tr X '\015'`
21740# On cygwin, bash can eat \r inside `` if the user requested igncr.
21741# But we know of no other shell where ac_cr would be empty at this
21742# point, so we can use a bashism as a fallback.
21743if test "x$ac_cr" = x; then
21744  eval ac_cr=\$\'\\r\'
21745fi
21746ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21747if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21748  ac_cs_awk_cr='\\r'
21749else
21750  ac_cs_awk_cr=$ac_cr
21751fi
21752
21753echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21754_ACEOF
21755
21756
21757{
21758  echo "cat >conf$$subs.awk <<_ACEOF" &&
21759  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21760  echo "_ACEOF"
21761} >conf$$subs.sh ||
21762  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21763ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21764ac_delim='%!_!# '
21765for ac_last_try in false false false false false :; do
21766  . ./conf$$subs.sh ||
21767    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21768
21769  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21770  if test $ac_delim_n = $ac_delim_num; then
21771    break
21772  elif $ac_last_try; then
21773    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21774  else
21775    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21776  fi
21777done
21778rm -f conf$$subs.sh
21779
21780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21781cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21782_ACEOF
21783sed -n '
21784h
21785s/^/S["/; s/!.*/"]=/
21786p
21787g
21788s/^[^!]*!//
21789:repl
21790t repl
21791s/'"$ac_delim"'$//
21792t delim
21793:nl
21794h
21795s/\(.\{148\}\)..*/\1/
21796t more1
21797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21798p
21799n
21800b repl
21801:more1
21802s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21803p
21804g
21805s/.\{148\}//
21806t nl
21807:delim
21808h
21809s/\(.\{148\}\)..*/\1/
21810t more2
21811s/["\\]/\\&/g; s/^/"/; s/$/"/
21812p
21813b
21814:more2
21815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21816p
21817g
21818s/.\{148\}//
21819t delim
21820' <conf$$subs.awk | sed '
21821/^[^""]/{
21822  N
21823  s/\n//
21824}
21825' >>$CONFIG_STATUS || ac_write_fail=1
21826rm -f conf$$subs.awk
21827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21828_ACAWK
21829cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21830  for (key in S) S_is_set[key] = 1
21831  FS = ""
21832
21833}
21834{
21835  line = $ 0
21836  nfields = split(line, field, "@")
21837  substed = 0
21838  len = length(field[1])
21839  for (i = 2; i < nfields; i++) {
21840    key = field[i]
21841    keylen = length(key)
21842    if (S_is_set[key]) {
21843      value = S[key]
21844      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21845      len += length(value) + length(field[++i])
21846      substed = 1
21847    } else
21848      len += 1 + keylen
21849  }
21850
21851  print line
21852}
21853
21854_ACAWK
21855_ACEOF
21856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21858  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21859else
21860  cat
21861fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21862  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21863_ACEOF
21864
21865# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21866# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21867# trailing colons and then remove the whole line if VPATH becomes empty
21868# (actually we leave an empty line to preserve line numbers).
21869if test "x$srcdir" = x.; then
21870  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21871h
21872s///
21873s/^/:/
21874s/[	 ]*$/:/
21875s/:\$(srcdir):/:/g
21876s/:\${srcdir}:/:/g
21877s/:@srcdir@:/:/g
21878s/^:*//
21879s/:*$//
21880x
21881s/\(=[	 ]*\).*/\1/
21882G
21883s/\n//
21884s/^[^=]*=[	 ]*$//
21885}'
21886fi
21887
21888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21889fi # test -n "$CONFIG_FILES"
21890
21891# Set up the scripts for CONFIG_HEADERS section.
21892# No need to generate them if there are no CONFIG_HEADERS.
21893# This happens for instance with './config.status Makefile'.
21894if test -n "$CONFIG_HEADERS"; then
21895cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21896BEGIN {
21897_ACEOF
21898
21899# Transform confdefs.h into an awk script 'defines.awk', embedded as
21900# here-document in config.status, that substitutes the proper values into
21901# config.h.in to produce config.h.
21902
21903# Create a delimiter string that does not exist in confdefs.h, to ease
21904# handling of long lines.
21905ac_delim='%!_!# '
21906for ac_last_try in false false :; do
21907  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21908  if test -z "$ac_tt"; then
21909    break
21910  elif $ac_last_try; then
21911    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21912  else
21913    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21914  fi
21915done
21916
21917# For the awk script, D is an array of macro values keyed by name,
21918# likewise P contains macro parameters if any.  Preserve backslash
21919# newline sequences.
21920
21921ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21922sed -n '
21923s/.\{148\}/&'"$ac_delim"'/g
21924t rset
21925:rset
21926s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21927t def
21928d
21929:def
21930s/\\$//
21931t bsnl
21932s/["\\]/\\&/g
21933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21934D["\1"]=" \3"/p
21935s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21936d
21937:bsnl
21938s/["\\]/\\&/g
21939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21940D["\1"]=" \3\\\\\\n"\\/p
21941t cont
21942s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21943t cont
21944d
21945:cont
21946n
21947s/.\{148\}/&'"$ac_delim"'/g
21948t clear
21949:clear
21950s/\\$//
21951t bsnlc
21952s/["\\]/\\&/g; s/^/"/; s/$/"/p
21953d
21954:bsnlc
21955s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21956b cont
21957' <confdefs.h | sed '
21958s/'"$ac_delim"'/"\\\
21959"/g' >>$CONFIG_STATUS || ac_write_fail=1
21960
21961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21962  for (key in D) D_is_set[key] = 1
21963  FS = ""
21964}
21965/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21966  line = \$ 0
21967  split(line, arg, " ")
21968  if (arg[1] == "#") {
21969    defundef = arg[2]
21970    mac1 = arg[3]
21971  } else {
21972    defundef = substr(arg[1], 2)
21973    mac1 = arg[2]
21974  }
21975  split(mac1, mac2, "(") #)
21976  macro = mac2[1]
21977  prefix = substr(line, 1, index(line, defundef) - 1)
21978  if (D_is_set[macro]) {
21979    # Preserve the white space surrounding the "#".
21980    print prefix "define", macro P[macro] D[macro]
21981    next
21982  } else {
21983    # Replace #undef with comments.  This is necessary, for example,
21984    # in the case of _POSIX_SOURCE, which is predefined and required
21985    # on some systems where configure will not decide to define it.
21986    if (defundef == "undef") {
21987      print "/*", prefix defundef, macro, "*/"
21988      next
21989    }
21990  }
21991}
21992{ print }
21993_ACAWK
21994_ACEOF
21995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21996  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21997fi # test -n "$CONFIG_HEADERS"
21998
21999
22000eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22001shift
22002for ac_tag
22003do
22004  case $ac_tag in
22005  :[FHLC]) ac_mode=$ac_tag; continue;;
22006  esac
22007  case $ac_mode$ac_tag in
22008  :[FHL]*:*);;
22009  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22010  :[FH]-) ac_tag=-:-;;
22011  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22012  esac
22013  ac_save_IFS=$IFS
22014  IFS=:
22015  set x $ac_tag
22016  IFS=$ac_save_IFS
22017  shift
22018  ac_file=$1
22019  shift
22020
22021  case $ac_mode in
22022  :L) ac_source=$1;;
22023  :[FH])
22024    ac_file_inputs=
22025    for ac_f
22026    do
22027      case $ac_f in
22028      -) ac_f="$ac_tmp/stdin";;
22029      *) # Look for the file first in the build tree, then in the source tree
22030	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22031	 # because $ac_f cannot contain ':'.
22032	 test -f "$ac_f" ||
22033	   case $ac_f in
22034	   [\\/$]*) false;;
22035	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22036	   esac ||
22037	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22038      esac
22039      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22040      as_fn_append ac_file_inputs " '$ac_f'"
22041    done
22042
22043    # Let's still pretend it is 'configure' which instantiates (i.e., don't
22044    # use $as_me), people would be surprised to read:
22045    #    /* config.h.  Generated by config.status.  */
22046    configure_input='Generated from '`
22047	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22048	`' by configure.'
22049    if test x"$ac_file" != x-; then
22050      configure_input="$ac_file.  $configure_input"
22051      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22052printf "%s\n" "$as_me: creating $ac_file" >&6;}
22053    fi
22054    # Neutralize special characters interpreted by sed in replacement strings.
22055    case $configure_input in #(
22056    *\&* | *\|* | *\\* )
22057       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22058       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22059    *) ac_sed_conf_input=$configure_input;;
22060    esac
22061
22062    case $ac_tag in
22063    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22064      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22065    esac
22066    ;;
22067  esac
22068
22069  ac_dir=`$as_dirname -- "$ac_file" ||
22070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22071	 X"$ac_file" : 'X\(//\)[^/]' \| \
22072	 X"$ac_file" : 'X\(//\)$' \| \
22073	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22074printf "%s\n" X"$ac_file" |
22075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22076	    s//\1/
22077	    q
22078	  }
22079	  /^X\(\/\/\)[^/].*/{
22080	    s//\1/
22081	    q
22082	  }
22083	  /^X\(\/\/\)$/{
22084	    s//\1/
22085	    q
22086	  }
22087	  /^X\(\/\).*/{
22088	    s//\1/
22089	    q
22090	  }
22091	  s/.*/./; q'`
22092  as_dir="$ac_dir"; as_fn_mkdir_p
22093  ac_builddir=.
22094
22095case "$ac_dir" in
22096.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22097*)
22098  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22099  # A ".." for each directory in $ac_dir_suffix.
22100  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22101  case $ac_top_builddir_sub in
22102  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22103  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22104  esac ;;
22105esac
22106ac_abs_top_builddir=$ac_pwd
22107ac_abs_builddir=$ac_pwd$ac_dir_suffix
22108# for backward compatibility:
22109ac_top_builddir=$ac_top_build_prefix
22110
22111case $srcdir in
22112  .)  # We are building in place.
22113    ac_srcdir=.
22114    ac_top_srcdir=$ac_top_builddir_sub
22115    ac_abs_top_srcdir=$ac_pwd ;;
22116  [\\/]* | ?:[\\/]* )  # Absolute name.
22117    ac_srcdir=$srcdir$ac_dir_suffix;
22118    ac_top_srcdir=$srcdir
22119    ac_abs_top_srcdir=$srcdir ;;
22120  *) # Relative name.
22121    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22122    ac_top_srcdir=$ac_top_build_prefix$srcdir
22123    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22124esac
22125ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22126
22127
22128  case $ac_mode in
22129  :F)
22130  #
22131  # CONFIG_FILE
22132  #
22133
22134  case $INSTALL in
22135  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22136  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22137  esac
22138  ac_MKDIR_P=$MKDIR_P
22139  case $MKDIR_P in
22140  [\\/$]* | ?:[\\/]* ) ;;
22141  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22142  esac
22143_ACEOF
22144
22145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22146# If the template does not know about datarootdir, expand it.
22147# FIXME: This hack should be removed a few years after 2.60.
22148ac_datarootdir_hack=; ac_datarootdir_seen=
22149ac_sed_dataroot='
22150/datarootdir/ {
22151  p
22152  q
22153}
22154/@datadir@/p
22155/@docdir@/p
22156/@infodir@/p
22157/@localedir@/p
22158/@mandir@/p'
22159case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22160*datarootdir*) ac_datarootdir_seen=yes;;
22161*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22163printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22164_ACEOF
22165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22166  ac_datarootdir_hack='
22167  s&@datadir@&$datadir&g
22168  s&@docdir@&$docdir&g
22169  s&@infodir@&$infodir&g
22170  s&@localedir@&$localedir&g
22171  s&@mandir@&$mandir&g
22172  s&\\\${datarootdir}&$datarootdir&g' ;;
22173esac
22174_ACEOF
22175
22176# Neutralize VPATH when '$srcdir' = '.'.
22177# Shell code in configure.ac might set extrasub.
22178# FIXME: do we really want to maintain this feature?
22179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22180ac_sed_extra="$ac_vpsub
22181$extrasub
22182_ACEOF
22183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22184:t
22185/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22186s|@configure_input@|$ac_sed_conf_input|;t t
22187s&@top_builddir@&$ac_top_builddir_sub&;t t
22188s&@top_build_prefix@&$ac_top_build_prefix&;t t
22189s&@srcdir@&$ac_srcdir&;t t
22190s&@abs_srcdir@&$ac_abs_srcdir&;t t
22191s&@top_srcdir@&$ac_top_srcdir&;t t
22192s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22193s&@builddir@&$ac_builddir&;t t
22194s&@abs_builddir@&$ac_abs_builddir&;t t
22195s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22196s&@INSTALL@&$ac_INSTALL&;t t
22197s&@MKDIR_P@&$ac_MKDIR_P&;t t
22198$ac_datarootdir_hack
22199"
22200eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22201  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22202
22203test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22204  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22205  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22206      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22208which seems to be undefined.  Please make sure it is defined" >&5
22209printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22210which seems to be undefined.  Please make sure it is defined" >&2;}
22211
22212  rm -f "$ac_tmp/stdin"
22213  case $ac_file in
22214  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22215  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22216  esac \
22217  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22218 ;;
22219  :H)
22220  #
22221  # CONFIG_HEADER
22222  #
22223  if test x"$ac_file" != x-; then
22224    {
22225      printf "%s\n" "/* $configure_input  */" >&1 \
22226      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22227    } >"$ac_tmp/config.h" \
22228      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22229    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22230      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22231printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22232    else
22233      rm -f "$ac_file"
22234      mv "$ac_tmp/config.h" "$ac_file" \
22235	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22236    fi
22237  else
22238    printf "%s\n" "/* $configure_input  */" >&1 \
22239      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22240      || as_fn_error $? "could not create -" "$LINENO" 5
22241  fi
22242# Compute "$ac_file"'s index in $config_headers.
22243_am_arg="$ac_file"
22244_am_stamp_count=1
22245for _am_header in $config_headers :; do
22246  case $_am_header in
22247    $_am_arg | $_am_arg:* )
22248      break ;;
22249    * )
22250      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22251  esac
22252done
22253echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22254$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22255	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22256	 X"$_am_arg" : 'X\(//\)$' \| \
22257	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22258printf "%s\n" X"$_am_arg" |
22259    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22260	    s//\1/
22261	    q
22262	  }
22263	  /^X\(\/\/\)[^/].*/{
22264	    s//\1/
22265	    q
22266	  }
22267	  /^X\(\/\/\)$/{
22268	    s//\1/
22269	    q
22270	  }
22271	  /^X\(\/\).*/{
22272	    s//\1/
22273	    q
22274	  }
22275	  s/.*/./; q'`/stamp-h$_am_stamp_count
22276 ;;
22277
22278  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22279printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22280 ;;
22281  esac
22282
22283
22284  case $ac_file$ac_mode in
22285    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22286  # Older Autoconf quotes --file arguments for eval, but not when files
22287  # are listed without --file.  Let's play safe and only enable the eval
22288  # if we detect the quoting.
22289  # TODO: see whether this extra hack can be removed once we start
22290  # requiring Autoconf 2.70 or later.
22291  case $CONFIG_FILES in #(
22292  *\'*) :
22293    eval set x "$CONFIG_FILES" ;; #(
22294  *) :
22295    set x $CONFIG_FILES ;; #(
22296  *) :
22297     ;;
22298esac
22299  shift
22300  # Used to flag and report bootstrapping failures.
22301  am_rc=0
22302  for am_mf
22303  do
22304    # Strip MF so we end up with the name of the file.
22305    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22306    # Check whether this is an Automake generated Makefile which includes
22307    # dependency-tracking related rules and includes.
22308    # Grep'ing the whole file directly is not great: AIX grep has a line
22309    # limit of 2048, but all sed's we know have understand at least 4000.
22310    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22311      || continue
22312    am_dirpart=`$as_dirname -- "$am_mf" ||
22313$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22314	 X"$am_mf" : 'X\(//\)[^/]' \| \
22315	 X"$am_mf" : 'X\(//\)$' \| \
22316	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22317printf "%s\n" X"$am_mf" |
22318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22319	    s//\1/
22320	    q
22321	  }
22322	  /^X\(\/\/\)[^/].*/{
22323	    s//\1/
22324	    q
22325	  }
22326	  /^X\(\/\/\)$/{
22327	    s//\1/
22328	    q
22329	  }
22330	  /^X\(\/\).*/{
22331	    s//\1/
22332	    q
22333	  }
22334	  s/.*/./; q'`
22335    am_filepart=`$as_basename -- "$am_mf" ||
22336$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22337	 X"$am_mf" : 'X\(//\)$' \| \
22338	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22339printf "%s\n" X/"$am_mf" |
22340    sed '/^.*\/\([^/][^/]*\)\/*$/{
22341	    s//\1/
22342	    q
22343	  }
22344	  /^X\/\(\/\/\)$/{
22345	    s//\1/
22346	    q
22347	  }
22348	  /^X\/\(\/\).*/{
22349	    s//\1/
22350	    q
22351	  }
22352	  s/.*/./; q'`
22353    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22354      && sed -e '/# am--include-marker/d' "$am_filepart" \
22355        | $MAKE -f - am--depfiles" >&5
22356   (cd "$am_dirpart" \
22357      && sed -e '/# am--include-marker/d' "$am_filepart" \
22358        | $MAKE -f - am--depfiles) >&5 2>&5
22359   ac_status=$?
22360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361   (exit $ac_status); } || am_rc=$?
22362  done
22363  if test $am_rc -ne 0; then
22364    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22365printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22366as_fn_error $? "Something went wrong bootstrapping makefile fragments
22367    for automatic dependency tracking.  If GNU make was not used, consider
22368    re-running the configure script with MAKE=\"gmake\" (or whatever is
22369    necessary).  You can also try re-running configure with the
22370    '--disable-dependency-tracking' option to at least be able to build
22371    the package (albeit without support for automatic dependency tracking).
22372See 'config.log' for more details" "$LINENO" 5; }
22373  fi
22374  { am_dirpart=; unset am_dirpart;}
22375  { am_filepart=; unset am_filepart;}
22376  { am_mf=; unset am_mf;}
22377  { am_rc=; unset am_rc;}
22378  rm -f conftest-deps.mk
22379}
22380 ;;
22381    "libtool":C)
22382
22383    # See if we are running on zsh, and set the options that allow our
22384    # commands through without removal of \ escapes.
22385    if test -n "${ZSH_VERSION+set}"; then
22386      setopt NO_GLOB_SUBST
22387    fi
22388
22389    cfgfile=${ofile}T
22390    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22391    $RM "$cfgfile"
22392
22393    cat <<_LT_EOF >> "$cfgfile"
22394#! $SHELL
22395# Generated automatically by $as_me ($PACKAGE) $VERSION
22396# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22397# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22398
22399# Provide generalized library-building support services.
22400# Written by Gordon Matzigkeit, 1996
22401
22402# Copyright (C) 2014 Free Software Foundation, Inc.
22403# This is free software; see the source for copying conditions.  There is NO
22404# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22405
22406# GNU Libtool is free software; you can redistribute it and/or modify
22407# it under the terms of the GNU General Public License as published by
22408# the Free Software Foundation; either version 2 of of the License, or
22409# (at your option) any later version.
22410#
22411# As a special exception to the GNU General Public License, if you
22412# distribute this file as part of a program or library that is built
22413# using GNU Libtool, you may include this file under the  same
22414# distribution terms that you use for the rest of that program.
22415#
22416# GNU Libtool is distributed in the hope that it will be useful, but
22417# WITHOUT ANY WARRANTY; without even the implied warranty of
22418# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22419# GNU General Public License for more details.
22420#
22421# You should have received a copy of the GNU General Public License
22422# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22423
22424
22425# The names of the tagged configurations supported by this script.
22426available_tags=''
22427
22428# Configured defaults for sys_lib_dlsearch_path munging.
22429: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22430
22431# ### BEGIN LIBTOOL CONFIG
22432
22433# Which release of libtool.m4 was used?
22434macro_version=$macro_version
22435macro_revision=$macro_revision
22436
22437# Whether or not to build static libraries.
22438build_old_libs=$enable_static
22439
22440# Whether or not to build shared libraries.
22441build_libtool_libs=$enable_shared
22442
22443# What type of objects to build.
22444pic_mode=$pic_mode
22445
22446# Whether or not to optimize for fast installation.
22447fast_install=$enable_fast_install
22448
22449# Shared archive member basename,for filename based shared library versioning on AIX.
22450shared_archive_member_spec=$shared_archive_member_spec
22451
22452# Shell to use when invoking shell scripts.
22453SHELL=$lt_SHELL
22454
22455# An echo program that protects backslashes.
22456ECHO=$lt_ECHO
22457
22458# The PATH separator for the build system.
22459PATH_SEPARATOR=$lt_PATH_SEPARATOR
22460
22461# The host system.
22462host_alias=$host_alias
22463host=$host
22464host_os=$host_os
22465
22466# The build system.
22467build_alias=$build_alias
22468build=$build
22469build_os=$build_os
22470
22471# A sed program that does not truncate output.
22472SED=$lt_SED
22473
22474# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22475Xsed="\$SED -e 1s/^X//"
22476
22477# A grep program that handles long lines.
22478GREP=$lt_GREP
22479
22480# An ERE matcher.
22481EGREP=$lt_EGREP
22482
22483# A literal string matcher.
22484FGREP=$lt_FGREP
22485
22486# A BSD- or MS-compatible name lister.
22487NM=$lt_NM
22488
22489# Whether we need soft or hard links.
22490LN_S=$lt_LN_S
22491
22492# What is the maximum length of a command?
22493max_cmd_len=$max_cmd_len
22494
22495# Object file suffix (normally "o").
22496objext=$ac_objext
22497
22498# Executable file suffix (normally "").
22499exeext=$exeext
22500
22501# whether the shell understands "unset".
22502lt_unset=$lt_unset
22503
22504# turn spaces into newlines.
22505SP2NL=$lt_lt_SP2NL
22506
22507# turn newlines into spaces.
22508NL2SP=$lt_lt_NL2SP
22509
22510# convert \$build file names to \$host format.
22511to_host_file_cmd=$lt_cv_to_host_file_cmd
22512
22513# convert \$build files to toolchain format.
22514to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22515
22516# A file(cmd) program that detects file types.
22517FILECMD=$lt_FILECMD
22518
22519# An object symbol dumper.
22520OBJDUMP=$lt_OBJDUMP
22521
22522# Method to check whether dependent libraries are shared objects.
22523deplibs_check_method=$lt_deplibs_check_method
22524
22525# Command to use when deplibs_check_method = "file_magic".
22526file_magic_cmd=$lt_file_magic_cmd
22527
22528# How to find potential files when deplibs_check_method = "file_magic".
22529file_magic_glob=$lt_file_magic_glob
22530
22531# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22532want_nocaseglob=$lt_want_nocaseglob
22533
22534# DLL creation program.
22535DLLTOOL=$lt_DLLTOOL
22536
22537# Command to associate shared and link libraries.
22538sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22539
22540# The archiver.
22541AR=$lt_AR
22542
22543# Flags to create an archive (by configure).
22544lt_ar_flags=$lt_ar_flags
22545
22546# Flags to create an archive.
22547AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22548
22549# How to feed a file listing to the archiver.
22550archiver_list_spec=$lt_archiver_list_spec
22551
22552# A symbol stripping program.
22553STRIP=$lt_STRIP
22554
22555# Commands used to install an old-style archive.
22556RANLIB=$lt_RANLIB
22557old_postinstall_cmds=$lt_old_postinstall_cmds
22558old_postuninstall_cmds=$lt_old_postuninstall_cmds
22559
22560# Whether to use a lock for old archive extraction.
22561lock_old_archive_extraction=$lock_old_archive_extraction
22562
22563# A C compiler.
22564LTCC=$lt_CC
22565
22566# LTCC compiler flags.
22567LTCFLAGS=$lt_CFLAGS
22568
22569# Take the output of nm and produce a listing of raw symbols and C names.
22570global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22571
22572# Transform the output of nm in a proper C declaration.
22573global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22574
22575# Transform the output of nm into a list of symbols to manually relocate.
22576global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22577
22578# Transform the output of nm in a C name address pair.
22579global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22580
22581# Transform the output of nm in a C name address pair when lib prefix is needed.
22582global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22583
22584# The name lister interface.
22585nm_interface=$lt_lt_cv_nm_interface
22586
22587# Specify filename containing input files for \$NM.
22588nm_file_list_spec=$lt_nm_file_list_spec
22589
22590# The root where to search for dependent libraries,and where our libraries should be installed.
22591lt_sysroot=$lt_sysroot
22592
22593# Command to truncate a binary pipe.
22594lt_truncate_bin=$lt_lt_cv_truncate_bin
22595
22596# The name of the directory that contains temporary libtool files.
22597objdir=$objdir
22598
22599# Used to examine libraries when file_magic_cmd begins with "file".
22600MAGIC_CMD=$MAGIC_CMD
22601
22602# Must we lock files when doing compilation?
22603need_locks=$lt_need_locks
22604
22605# Manifest tool.
22606MANIFEST_TOOL=$lt_MANIFEST_TOOL
22607
22608# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22609DSYMUTIL=$lt_DSYMUTIL
22610
22611# Tool to change global to local symbols on Mac OS X.
22612NMEDIT=$lt_NMEDIT
22613
22614# Tool to manipulate fat objects and archives on Mac OS X.
22615LIPO=$lt_LIPO
22616
22617# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22618OTOOL=$lt_OTOOL
22619
22620# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22621OTOOL64=$lt_OTOOL64
22622
22623# Old archive suffix (normally "a").
22624libext=$libext
22625
22626# Shared library suffix (normally ".so").
22627shrext_cmds=$lt_shrext_cmds
22628
22629# The commands to extract the exported symbol list from a shared archive.
22630extract_expsyms_cmds=$lt_extract_expsyms_cmds
22631
22632# Variables whose values should be saved in libtool wrapper scripts and
22633# restored at link time.
22634variables_saved_for_relink=$lt_variables_saved_for_relink
22635
22636# Do we need the "lib" prefix for modules?
22637need_lib_prefix=$need_lib_prefix
22638
22639# Do we need a version for libraries?
22640need_version=$need_version
22641
22642# Library versioning type.
22643version_type=$version_type
22644
22645# Shared library runtime path variable.
22646runpath_var=$runpath_var
22647
22648# Shared library path variable.
22649shlibpath_var=$shlibpath_var
22650
22651# Is shlibpath searched before the hard-coded library search path?
22652shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22653
22654# Format of library name prefix.
22655libname_spec=$lt_libname_spec
22656
22657# List of archive names.  First name is the real one, the rest are links.
22658# The last name is the one that the linker finds with -lNAME
22659library_names_spec=$lt_library_names_spec
22660
22661# The coded name of the library, if different from the real name.
22662soname_spec=$lt_soname_spec
22663
22664# Permission mode override for installation of shared libraries.
22665install_override_mode=$lt_install_override_mode
22666
22667# Command to use after installation of a shared archive.
22668postinstall_cmds=$lt_postinstall_cmds
22669
22670# Command to use after uninstallation of a shared archive.
22671postuninstall_cmds=$lt_postuninstall_cmds
22672
22673# Commands used to finish a libtool library installation in a directory.
22674finish_cmds=$lt_finish_cmds
22675
22676# As "finish_cmds", except a single script fragment to be evaled but
22677# not shown.
22678finish_eval=$lt_finish_eval
22679
22680# Whether we should hardcode library paths into libraries.
22681hardcode_into_libs=$hardcode_into_libs
22682
22683# Compile-time system search path for libraries.
22684sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22685
22686# Detected run-time system search path for libraries.
22687sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22688
22689# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22690configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22691
22692# Whether dlopen is supported.
22693dlopen_support=$enable_dlopen
22694
22695# Whether dlopen of programs is supported.
22696dlopen_self=$enable_dlopen_self
22697
22698# Whether dlopen of statically linked programs is supported.
22699dlopen_self_static=$enable_dlopen_self_static
22700
22701# Commands to strip libraries.
22702old_striplib=$lt_old_striplib
22703striplib=$lt_striplib
22704
22705
22706# The linker used to build libraries.
22707LD=$lt_LD
22708
22709# How to create reloadable object files.
22710reload_flag=$lt_reload_flag
22711reload_cmds=$lt_reload_cmds
22712
22713# Commands used to build an old-style archive.
22714old_archive_cmds=$lt_old_archive_cmds
22715
22716# A language specific compiler.
22717CC=$lt_compiler
22718
22719# Is the compiler the GNU compiler?
22720with_gcc=$GCC
22721
22722# Compiler flag to turn off builtin functions.
22723no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22724
22725# Additional compiler flags for building library objects.
22726pic_flag=$lt_lt_prog_compiler_pic
22727
22728# How to pass a linker flag through the compiler.
22729wl=$lt_lt_prog_compiler_wl
22730
22731# Compiler flag to prevent dynamic linking.
22732link_static_flag=$lt_lt_prog_compiler_static
22733
22734# Does compiler simultaneously support -c and -o options?
22735compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22736
22737# Whether or not to add -lc for building shared libraries.
22738build_libtool_need_lc=$archive_cmds_need_lc
22739
22740# Whether or not to disallow shared libs when runtime libs are static.
22741allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22742
22743# Compiler flag to allow reflexive dlopens.
22744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22745
22746# Compiler flag to generate shared objects directly from archives.
22747whole_archive_flag_spec=$lt_whole_archive_flag_spec
22748
22749# Whether the compiler copes with passing no objects directly.
22750compiler_needs_object=$lt_compiler_needs_object
22751
22752# Create an old-style archive from a shared archive.
22753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22754
22755# Create a temporary old-style archive to link instead of a shared archive.
22756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22757
22758# Commands used to build a shared archive.
22759archive_cmds=$lt_archive_cmds
22760archive_expsym_cmds=$lt_archive_expsym_cmds
22761
22762# Commands used to build a loadable module if different from building
22763# a shared archive.
22764module_cmds=$lt_module_cmds
22765module_expsym_cmds=$lt_module_expsym_cmds
22766
22767# Whether we are building with GNU ld or not.
22768with_gnu_ld=$lt_with_gnu_ld
22769
22770# Flag that allows shared libraries with undefined symbols to be built.
22771allow_undefined_flag=$lt_allow_undefined_flag
22772
22773# Flag that enforces no undefined symbols.
22774no_undefined_flag=$lt_no_undefined_flag
22775
22776# Flag to hardcode \$libdir into a binary during linking.
22777# This must work even if \$libdir does not exist
22778hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22779
22780# Whether we need a single "-rpath" flag with a separated argument.
22781hardcode_libdir_separator=$lt_hardcode_libdir_separator
22782
22783# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22784# DIR into the resulting binary.
22785hardcode_direct=$hardcode_direct
22786
22787# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22788# DIR into the resulting binary and the resulting library dependency is
22789# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22790# library is relocated.
22791hardcode_direct_absolute=$hardcode_direct_absolute
22792
22793# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22794# into the resulting binary.
22795hardcode_minus_L=$hardcode_minus_L
22796
22797# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22798# into the resulting binary.
22799hardcode_shlibpath_var=$hardcode_shlibpath_var
22800
22801# Set to "yes" if building a shared library automatically hardcodes DIR
22802# into the library and all subsequent libraries and executables linked
22803# against it.
22804hardcode_automatic=$hardcode_automatic
22805
22806# Set to yes if linker adds runtime paths of dependent libraries
22807# to runtime path list.
22808inherit_rpath=$inherit_rpath
22809
22810# Whether libtool must link a program against all its dependency libraries.
22811link_all_deplibs=$link_all_deplibs
22812
22813# Set to "yes" if exported symbols are required.
22814always_export_symbols=$always_export_symbols
22815
22816# The commands to list exported symbols.
22817export_symbols_cmds=$lt_export_symbols_cmds
22818
22819# Symbols that should not be listed in the preloaded symbols.
22820exclude_expsyms=$lt_exclude_expsyms
22821
22822# Symbols that must always be exported.
22823include_expsyms=$lt_include_expsyms
22824
22825# Commands necessary for linking programs (against libraries) with templates.
22826prelink_cmds=$lt_prelink_cmds
22827
22828# Commands necessary for finishing linking programs.
22829postlink_cmds=$lt_postlink_cmds
22830
22831# Specify filename containing input files.
22832file_list_spec=$lt_file_list_spec
22833
22834# How to hardcode a shared library path into an executable.
22835hardcode_action=$hardcode_action
22836
22837# ### END LIBTOOL CONFIG
22838
22839_LT_EOF
22840
22841    cat <<'_LT_EOF' >> "$cfgfile"
22842
22843# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22844
22845# func_munge_path_list VARIABLE PATH
22846# -----------------------------------
22847# VARIABLE is name of variable containing _space_ separated list of
22848# directories to be munged by the contents of PATH, which is string
22849# having a format:
22850# "DIR[:DIR]:"
22851#       string "DIR[ DIR]" will be prepended to VARIABLE
22852# ":DIR[:DIR]"
22853#       string "DIR[ DIR]" will be appended to VARIABLE
22854# "DIRP[:DIRP]::[DIRA:]DIRA"
22855#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22856#       "DIRA[ DIRA]" will be appended to VARIABLE
22857# "DIR[:DIR]"
22858#       VARIABLE will be replaced by "DIR[ DIR]"
22859func_munge_path_list ()
22860{
22861    case x$2 in
22862    x)
22863        ;;
22864    *:)
22865        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22866        ;;
22867    x:*)
22868        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22869        ;;
22870    *::*)
22871        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22872        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22873        ;;
22874    *)
22875        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22876        ;;
22877    esac
22878}
22879
22880
22881# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22882func_cc_basename ()
22883{
22884    for cc_temp in $*""; do
22885      case $cc_temp in
22886        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22887        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22888        \-*) ;;
22889        *) break;;
22890      esac
22891    done
22892    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22893}
22894
22895
22896# ### END FUNCTIONS SHARED WITH CONFIGURE
22897
22898_LT_EOF
22899
22900  case $host_os in
22901  aix3*)
22902    cat <<\_LT_EOF >> "$cfgfile"
22903# AIX sometimes has problems with the GCC collect2 program.  For some
22904# reason, if we set the COLLECT_NAMES environment variable, the problems
22905# vanish in a puff of smoke.
22906if test set != "${COLLECT_NAMES+set}"; then
22907  COLLECT_NAMES=
22908  export COLLECT_NAMES
22909fi
22910_LT_EOF
22911    ;;
22912  esac
22913
22914
22915
22916ltmain=$ac_aux_dir/ltmain.sh
22917
22918
22919  # We use sed instead of cat because bash on DJGPP gets confused if
22920  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22921  # text mode, it properly converts lines to CR/LF.  This bash problem
22922  # is reportedly fixed, but why not run on old versions too?
22923  $SED '$q' "$ltmain" >> "$cfgfile" \
22924     || (rm -f "$cfgfile"; exit 1)
22925
22926   mv -f "$cfgfile" "$ofile" ||
22927    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22928  chmod +x "$ofile"
22929
22930 ;;
22931
22932  esac
22933done # for ac_tag
22934
22935
22936as_fn_exit 0
22937_ACEOF
22938ac_clean_files=$ac_clean_files_save
22939
22940test $ac_write_fail = 0 ||
22941  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22942
22943
22944# configure is writing to config.log, and then calls config.status.
22945# config.status does its own redirection, appending to config.log.
22946# Unfortunately, on DOS this fails, as config.log is still kept open
22947# by configure, so config.status won't be able to write to it; its
22948# output is simply discarded.  So we exec the FD to /dev/null,
22949# effectively closing config.log, so it can be properly (re)opened and
22950# appended to by config.status.  When coming back to configure, we
22951# need to make the FD available again.
22952if test "$no_create" != yes; then
22953  ac_cs_success=:
22954  ac_config_status_args=
22955  test "$silent" = yes &&
22956    ac_config_status_args="$ac_config_status_args --quiet"
22957  exec 5>/dev/null
22958  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22959  exec 5>>config.log
22960  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22961  # would make configure fail if this is the last instruction.
22962  $ac_cs_success || as_fn_exit 1
22963fi
22964if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22966printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22967fi
22968
22969
22970echo ""
22971echo "        prefix:              $prefix"
22972echo "        exec_prefix:         $exec_prefix"
22973echo "        libdir:              $libdir"
22974echo "        includedir:          $includedir"
22975
22976echo ""
22977echo "        CFLAGS:              $CFLAGS"
22978echo "        CXXFLAGS:            $CXXFLAGS"
22979echo "        Macros:              $DEFINES"
22980
22981echo ""
22982echo "        Run '${MAKE-make}' to build xf86-video-nouveau"
22983echo ""
22984
22985