1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xf86-video-vboxvideo 1.0.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/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-vbox/-/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-vboxvideo'
617PACKAGE_TARNAME='xf86-video-vboxvideo'
618PACKAGE_VERSION='1.0.1'
619PACKAGE_STRING='xf86-video-vboxvideo 1.0.1'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/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
661PCIACCESS_LIBS
662PCIACCESS_CFLAGS
663XEXT_LIBS
664XEXT_CFLAGS
665XORG_LIBS
666XORG_CFLAGS
667moduledir
668LT_SYS_LIBRARY_PATH
669OTOOL64
670OTOOL
671LIPO
672NMEDIT
673DSYMUTIL
674MANIFEST_TOOL
675RANLIB
676ac_ct_AR
677AR
678DLLTOOL
679OBJDUMP
680FILECMD
681LN_S
682NM
683ac_ct_DUMPBIN
684DUMPBIN
685LD
686FGREP
687EGREP
688GREP
689LIBTOOL
690MAN_SUBSTS
691XORG_MAN_PAGE
692ADMIN_MAN_DIR
693DRIVER_MAN_DIR
694MISC_MAN_DIR
695FILE_MAN_DIR
696LIB_MAN_DIR
697APP_MAN_DIR
698ADMIN_MAN_SUFFIX
699DRIVER_MAN_SUFFIX
700MISC_MAN_SUFFIX
701FILE_MAN_SUFFIX
702LIB_MAN_SUFFIX
703APP_MAN_SUFFIX
704SED
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
713INSTALL_CMD
714PKG_CONFIG_LIBDIR
715PKG_CONFIG_PATH
716PKG_CONFIG
717CHANGELOG_CMD
718STRICT_CFLAGS
719CWARNFLAGS
720BASE_CFLAGS
721am__fastdepCC_FALSE
722am__fastdepCC_TRUE
723CCDEPMODE
724am__nodep
725AMDEPBACKSLASH
726AMDEP_FALSE
727AMDEP_TRUE
728am__include
729DEPDIR
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737AM_BACKSLASH
738AM_DEFAULT_VERBOSITY
739AM_DEFAULT_V
740AM_V
741CSCOPE
742ETAGS
743CTAGS
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
786runstatedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL
806am__quote'
807ac_subst_files=''
808ac_user_opts='
809enable_option_checking
810enable_silent_rules
811enable_dependency_tracking
812enable_selective_werror
813enable_strict_compilation
814enable_static
815enable_shared
816with_pic
817enable_fast_install
818with_aix_soname
819with_gnu_ld
820with_sysroot
821enable_libtool_lock
822with_xorg_module_dir
823'
824      ac_precious_vars='build_alias
825host_alias
826target_alias
827CC
828CFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832PKG_CONFIG
833PKG_CONFIG_PATH
834PKG_CONFIG_LIBDIR
835LT_SYS_LIBRARY_PATH
836XORG_CFLAGS
837XORG_LIBS
838XEXT_CFLAGS
839XEXT_LIBS
840PCIACCESS_CFLAGS
841PCIACCESS_LIBS'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880runstatedir='${localstatedir}/run'
881includedir='${prefix}/include'
882oldincludedir='/usr/include'
883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884infodir='${datarootdir}/info'
885htmldir='${docdir}'
886dvidir='${docdir}'
887pdfdir='${docdir}'
888psdir='${docdir}'
889libdir='${exec_prefix}/lib'
890localedir='${datarootdir}/locale'
891mandir='${datarootdir}/man'
892
893ac_prev=
894ac_dashdash=
895for ac_option
896do
897  # If the previous option needs an argument, assign it.
898  if test -n "$ac_prev"; then
899    eval $ac_prev=\$ac_option
900    ac_prev=
901    continue
902  fi
903
904  case $ac_option in
905  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906  *=)   ac_optarg= ;;
907  *)    ac_optarg=yes ;;
908  esac
909
910  case $ac_dashdash$ac_option in
911  --)
912    ac_dashdash=yes ;;
913
914  -bindir | --bindir | --bindi | --bind | --bin | --bi)
915    ac_prev=bindir ;;
916  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917    bindir=$ac_optarg ;;
918
919  -build | --build | --buil | --bui | --bu)
920    ac_prev=build_alias ;;
921  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922    build_alias=$ac_optarg ;;
923
924  -cache-file | --cache-file | --cache-fil | --cache-fi \
925  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926    ac_prev=cache_file ;;
927  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929    cache_file=$ac_optarg ;;
930
931  --config-cache | -C)
932    cache_file=config.cache ;;
933
934  -datadir | --datadir | --datadi | --datad)
935    ac_prev=datadir ;;
936  -datadir=* | --datadir=* | --datadi=* | --datad=*)
937    datadir=$ac_optarg ;;
938
939  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940  | --dataroo | --dataro | --datar)
941    ac_prev=datarootdir ;;
942  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944    datarootdir=$ac_optarg ;;
945
946  -disable-* | --disable-*)
947    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948    # Reject names that are not valid shell variable names.
949    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950      as_fn_error $? "invalid feature name: '$ac_useropt'"
951    ac_useropt_orig=$ac_useropt
952    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953    case $ac_user_opts in
954      *"
955"enable_$ac_useropt"
956"*) ;;
957      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958	 ac_unrecognized_sep=', ';;
959    esac
960    eval enable_$ac_useropt=no ;;
961
962  -docdir | --docdir | --docdi | --doc | --do)
963    ac_prev=docdir ;;
964  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965    docdir=$ac_optarg ;;
966
967  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968    ac_prev=dvidir ;;
969  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970    dvidir=$ac_optarg ;;
971
972  -enable-* | --enable-*)
973    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974    # Reject names that are not valid shell variable names.
975    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976      as_fn_error $? "invalid feature name: '$ac_useropt'"
977    ac_useropt_orig=$ac_useropt
978    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979    case $ac_user_opts in
980      *"
981"enable_$ac_useropt"
982"*) ;;
983      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984	 ac_unrecognized_sep=', ';;
985    esac
986    eval enable_$ac_useropt=\$ac_optarg ;;
987
988  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990  | --exec | --exe | --ex)
991    ac_prev=exec_prefix ;;
992  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994  | --exec=* | --exe=* | --ex=*)
995    exec_prefix=$ac_optarg ;;
996
997  -gas | --gas | --ga | --g)
998    # Obsolete; use --with-gas.
999    with_gas=yes ;;
1000
1001  -help | --help | --hel | --he | -h)
1002    ac_init_help=long ;;
1003  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004    ac_init_help=recursive ;;
1005  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006    ac_init_help=short ;;
1007
1008  -host | --host | --hos | --ho)
1009    ac_prev=host_alias ;;
1010  -host=* | --host=* | --hos=* | --ho=*)
1011    host_alias=$ac_optarg ;;
1012
1013  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014    ac_prev=htmldir ;;
1015  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016  | --ht=*)
1017    htmldir=$ac_optarg ;;
1018
1019  -includedir | --includedir | --includedi | --included | --include \
1020  | --includ | --inclu | --incl | --inc)
1021    ac_prev=includedir ;;
1022  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023  | --includ=* | --inclu=* | --incl=* | --inc=*)
1024    includedir=$ac_optarg ;;
1025
1026  -infodir | --infodir | --infodi | --infod | --info | --inf)
1027    ac_prev=infodir ;;
1028  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029    infodir=$ac_optarg ;;
1030
1031  -libdir | --libdir | --libdi | --libd)
1032    ac_prev=libdir ;;
1033  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034    libdir=$ac_optarg ;;
1035
1036  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037  | --libexe | --libex | --libe)
1038    ac_prev=libexecdir ;;
1039  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040  | --libexe=* | --libex=* | --libe=*)
1041    libexecdir=$ac_optarg ;;
1042
1043  -localedir | --localedir | --localedi | --localed | --locale)
1044    ac_prev=localedir ;;
1045  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046    localedir=$ac_optarg ;;
1047
1048  -localstatedir | --localstatedir | --localstatedi | --localstated \
1049  | --localstate | --localstat | --localsta | --localst | --locals)
1050    ac_prev=localstatedir ;;
1051  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053    localstatedir=$ac_optarg ;;
1054
1055  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056    ac_prev=mandir ;;
1057  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058    mandir=$ac_optarg ;;
1059
1060  -nfp | --nfp | --nf)
1061    # Obsolete; use --without-fp.
1062    with_fp=no ;;
1063
1064  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065  | --no-cr | --no-c | -n)
1066    no_create=yes ;;
1067
1068  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070    no_recursion=yes ;;
1071
1072  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074  | --oldin | --oldi | --old | --ol | --o)
1075    ac_prev=oldincludedir ;;
1076  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079    oldincludedir=$ac_optarg ;;
1080
1081  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082    ac_prev=prefix ;;
1083  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084    prefix=$ac_optarg ;;
1085
1086  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087  | --program-pre | --program-pr | --program-p)
1088    ac_prev=program_prefix ;;
1089  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091    program_prefix=$ac_optarg ;;
1092
1093  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094  | --program-suf | --program-su | --program-s)
1095    ac_prev=program_suffix ;;
1096  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098    program_suffix=$ac_optarg ;;
1099
1100  -program-transform-name | --program-transform-name \
1101  | --program-transform-nam | --program-transform-na \
1102  | --program-transform-n | --program-transform- \
1103  | --program-transform | --program-transfor \
1104  | --program-transfo | --program-transf \
1105  | --program-trans | --program-tran \
1106  | --progr-tra | --program-tr | --program-t)
1107    ac_prev=program_transform_name ;;
1108  -program-transform-name=* | --program-transform-name=* \
1109  | --program-transform-nam=* | --program-transform-na=* \
1110  | --program-transform-n=* | --program-transform-=* \
1111  | --program-transform=* | --program-transfor=* \
1112  | --program-transfo=* | --program-transf=* \
1113  | --program-trans=* | --program-tran=* \
1114  | --progr-tra=* | --program-tr=* | --program-t=*)
1115    program_transform_name=$ac_optarg ;;
1116
1117  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118    ac_prev=pdfdir ;;
1119  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120    pdfdir=$ac_optarg ;;
1121
1122  -psdir | --psdir | --psdi | --psd | --ps)
1123    ac_prev=psdir ;;
1124  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125    psdir=$ac_optarg ;;
1126
1127  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128  | -silent | --silent | --silen | --sile | --sil)
1129    silent=yes ;;
1130
1131  -runstatedir | --runstatedir | --runstatedi | --runstated \
1132  | --runstate | --runstat | --runsta | --runst | --runs \
1133  | --run | --ru | --r)
1134    ac_prev=runstatedir ;;
1135  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137  | --run=* | --ru=* | --r=*)
1138    runstatedir=$ac_optarg ;;
1139
1140  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141    ac_prev=sbindir ;;
1142  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143  | --sbi=* | --sb=*)
1144    sbindir=$ac_optarg ;;
1145
1146  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148  | --sharedst | --shareds | --shared | --share | --shar \
1149  | --sha | --sh)
1150    ac_prev=sharedstatedir ;;
1151  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154  | --sha=* | --sh=*)
1155    sharedstatedir=$ac_optarg ;;
1156
1157  -site | --site | --sit)
1158    ac_prev=site ;;
1159  -site=* | --site=* | --sit=*)
1160    site=$ac_optarg ;;
1161
1162  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163    ac_prev=srcdir ;;
1164  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165    srcdir=$ac_optarg ;;
1166
1167  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168  | --syscon | --sysco | --sysc | --sys | --sy)
1169    ac_prev=sysconfdir ;;
1170  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172    sysconfdir=$ac_optarg ;;
1173
1174  -target | --target | --targe | --targ | --tar | --ta | --t)
1175    ac_prev=target_alias ;;
1176  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177    target_alias=$ac_optarg ;;
1178
1179  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180    verbose=yes ;;
1181
1182  -version | --version | --versio | --versi | --vers | -V)
1183    ac_init_version=: ;;
1184
1185  -with-* | --with-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: '$ac_useropt'"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=\$ac_optarg ;;
1200
1201  -without-* | --without-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=no ;;
1216
1217  --x)
1218    # Obsolete; use --with-x.
1219    with_x=yes ;;
1220
1221  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222  | --x-incl | --x-inc | --x-in | --x-i)
1223    ac_prev=x_includes ;;
1224  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226    x_includes=$ac_optarg ;;
1227
1228  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230    ac_prev=x_libraries ;;
1231  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233    x_libraries=$ac_optarg ;;
1234
1235  -*) as_fn_error $? "unrecognized option: '$ac_option'
1236Try '$0 --help' for more information"
1237    ;;
1238
1239  *=*)
1240    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241    # Reject names that are not valid shell variable names.
1242    case $ac_envvar in #(
1243      '' | [0-9]* | *[!_$as_cr_alnum]* )
1244      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1245    esac
1246    eval $ac_envvar=\$ac_optarg
1247    export $ac_envvar ;;
1248
1249  *)
1250    # FIXME: should be removed in autoconf 3.0.
1251    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1252    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1254    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255    ;;
1256
1257  esac
1258done
1259
1260if test -n "$ac_prev"; then
1261  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262  as_fn_error $? "missing argument to $ac_option"
1263fi
1264
1265if test -n "$ac_unrecognized_opts"; then
1266  case $enable_option_checking in
1267    no) ;;
1268    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270  esac
1271fi
1272
1273# Check all directory arguments for consistency.
1274for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275		datadir sysconfdir sharedstatedir localstatedir includedir \
1276		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277		libdir localedir mandir runstatedir
1278do
1279  eval ac_val=\$$ac_var
1280  # Remove trailing slashes.
1281  case $ac_val in
1282    */ )
1283      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284      eval $ac_var=\$ac_val;;
1285  esac
1286  # Be sure to have absolute directory names.
1287  case $ac_val in
1288    [\\/$]* | ?:[\\/]* )  continue;;
1289    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290  esac
1291  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292done
1293
1294# There might be people who depend on the old broken behavior: '$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303  if test "x$build_alias" = x; then
1304    cross_compiling=maybe
1305  elif test "x$build_alias" != "x$host_alias"; then
1306    cross_compiling=yes
1307  fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319  as_fn_error $? "working directory cannot be determined"
1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321  as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326  ac_srcdir_defaulted=yes
1327  # Try the directory containing this script, then the parent directory.
1328  ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330	 X"$as_myself" : 'X\(//\)[^/]' \| \
1331	 X"$as_myself" : 'X\(//\)$' \| \
1332	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333printf "%s\n" X"$as_myself" |
1334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)[^/].*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\).*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  s/.*/./; q'`
1351  srcdir=$ac_confdir
1352  if test ! -r "$srcdir/$ac_unique_file"; then
1353    srcdir=..
1354  fi
1355else
1356  ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361fi
1362ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1363ac_abs_confdir=`(
1364	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365	pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368  srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378  eval ac_env_${ac_var}_value=\$${ac_var}
1379  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387  # Omit some internal or obsolete options to make the list less imposing.
1388  # This message is too long to be a string in the A/UX 3.1 sh.
1389  cat <<_ACEOF
1390'configure' configures xf86-video-vboxvideo 1.0.1 to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE.  See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400  -h, --help              display this help and exit
1401      --help=short        display options specific to this package
1402      --help=recursive    display the short help of all the included packages
1403  -V, --version           display version information and exit
1404  -q, --quiet, --silent   do not print 'checking ...' messages
1405      --cache-file=FILE   cache test results in FILE [disabled]
1406  -C, --config-cache      alias for '--cache-file=config.cache'
1407  -n, --no-create         do not create output files
1408      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1409
1410Installation directories:
1411  --prefix=PREFIX         install architecture-independent files in PREFIX
1412                          [$ac_default_prefix]
1413  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1414                          [PREFIX]
1415
1416By default, 'make install' will install all the files in
1417'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1418an installation prefix other than '$ac_default_prefix' using '--prefix',
1419for instance '--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424  --bindir=DIR            user executables [EPREFIX/bin]
1425  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1426  --libexecdir=DIR        program executables [EPREFIX/libexec]
1427  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1428  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1429  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1430  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1431  --libdir=DIR            object code libraries [EPREFIX/lib]
1432  --includedir=DIR        C header files [PREFIX/include]
1433  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1434  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1435  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1436  --infodir=DIR           info documentation [DATAROOTDIR/info]
1437  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1438  --mandir=DIR            man documentation [DATAROOTDIR/man]
1439  --docdir=DIR            documentation root
1440                          [DATAROOTDIR/doc/xf86-video-vboxvideo]
1441  --htmldir=DIR           html documentation [DOCDIR]
1442  --dvidir=DIR            dvi documentation [DOCDIR]
1443  --pdfdir=DIR            pdf documentation [DOCDIR]
1444  --psdir=DIR             ps documentation [DOCDIR]
1445_ACEOF
1446
1447  cat <<\_ACEOF
1448
1449Program names:
1450  --program-prefix=PREFIX            prepend PREFIX to installed program names
1451  --program-suffix=SUFFIX            append SUFFIX to installed program names
1452  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454System types:
1455  --build=BUILD     configure for building on BUILD [guessed]
1456  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461  case $ac_init_help in
1462     short | recursive ) echo "Configuration of xf86-video-vboxvideo 1.0.1:";;
1463   esac
1464  cat <<\_ACEOF
1465
1466Optional Features:
1467  --disable-option-checking  ignore unrecognized --enable/--with options
1468  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470  --enable-silent-rules   less verbose build output (undo: "make V=1")
1471  --disable-silent-rules  verbose build output (undo: "make V=0")
1472  --enable-dependency-tracking
1473                          do not reject slow dependency extractors
1474  --disable-dependency-tracking
1475                          speeds up one-time build
1476  --disable-selective-werror
1477                          Turn off selective compiler errors. (default:
1478                          enabled)
1479  --enable-strict-compilation
1480                          Enable all warnings from compiler and make them
1481                          errors (default: disabled)
1482  --enable-static[=PKGS]  build static libraries [default=no]
1483  --enable-shared[=PKGS]  build shared libraries [default=yes]
1484  --enable-fast-install[=PKGS]
1485                          optimize for fast installation [default=yes]
1486  --disable-libtool-lock  avoid locking (might break parallel builds)
1487
1488Optional Packages:
1489  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1492                          both]
1493  --with-aix-soname=aix|svr4|both
1494                          shared library versioning (aka "SONAME") variant to
1495                          provide on AIX, [default=aix].
1496  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1497  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1498                          compiler's sysroot if not specified).
1499  --with-xorg-module-dir=DIR
1500
1501Some influential environment variables:
1502  CC          C compiler command
1503  CFLAGS      C compiler flags
1504  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1505              nonstandard directory <lib dir>
1506  LIBS        libraries to pass to the linker, e.g. -l<library>
1507  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508              you have headers in a nonstandard directory <include dir>
1509  PKG_CONFIG  path to pkg-config utility
1510  PKG_CONFIG_PATH
1511              directories to add to pkg-config's search path
1512  PKG_CONFIG_LIBDIR
1513              path overriding pkg-config's built-in search path
1514  LT_SYS_LIBRARY_PATH
1515              User-defined run-time library search path.
1516  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1517  XORG_LIBS   linker flags for XORG, overriding pkg-config
1518  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1519  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1520  PCIACCESS_CFLAGS
1521              C compiler flags for PCIACCESS, overriding pkg-config
1522  PCIACCESS_LIBS
1523              linker flags for PCIACCESS, overriding pkg-config
1524
1525Use these variables to override the choices made by 'configure' or to help
1526it to find libraries and programs with nonstandard names/locations.
1527
1528Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/issues>.
1529_ACEOF
1530ac_status=$?
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534  # If there are subdirs, report their specific --help.
1535  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536    test -d "$ac_dir" ||
1537      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538      continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for configure.gnu first; this name is used for a wrapper for
1575    # Metaconfig's "Configure" on case-insensitive file systems.
1576    if test -f "$ac_srcdir/configure.gnu"; then
1577      echo &&
1578      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579    elif test -f "$ac_srcdir/configure"; then
1580      echo &&
1581      $SHELL "$ac_srcdir/configure" --help=recursive
1582    else
1583      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584    fi || ac_status=$?
1585    cd "$ac_pwd" || { ac_status=$?; break; }
1586  done
1587fi
1588
1589test -n "$ac_init_help" && exit $ac_status
1590if $ac_init_version; then
1591  cat <<\_ACEOF
1592xf86-video-vboxvideo configure 1.0.1
1593generated by GNU Autoconf 2.72
1594
1595Copyright (C) 2023 Free Software Foundation, Inc.
1596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
1598_ACEOF
1599  exit
1600fi
1601
1602## ------------------------ ##
1603## Autoconf initialization. ##
1604## ------------------------ ##
1605
1606# ac_fn_c_try_compile LINENO
1607# --------------------------
1608# Try to compile conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_compile ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  rm -f conftest.$ac_objext conftest.beam
1613  if { { ac_try="$ac_compile"
1614case "(($ac_try" in
1615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616  *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619printf "%s\n" "$ac_try_echo"; } >&5
1620  (eval "$ac_compile") 2>conftest.err
1621  ac_status=$?
1622  if test -s conftest.err; then
1623    grep -v '^ *+' conftest.err >conftest.er1
1624    cat conftest.er1 >&5
1625    mv -f conftest.er1 conftest.err
1626  fi
1627  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628  test $ac_status = 0; } && {
1629	 test -z "$ac_c_werror_flag" ||
1630	 test ! -s conftest.err
1631       } && test -s conftest.$ac_objext
1632then :
1633  ac_retval=0
1634else case e in #(
1635  e) printf "%s\n" "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638	ac_retval=1 ;;
1639esac
1640fi
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642  as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_compile
1645
1646# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1647# ------------------------------------------------------------------
1648# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1649# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1650ac_fn_check_decl ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  as_decl_name=`echo $2|sed 's/ *(.*//'`
1654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1655printf %s "checking whether $as_decl_name is declared... " >&6; }
1656if eval test \${$3+y}
1657then :
1658  printf %s "(cached) " >&6
1659else case e in #(
1660  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1661  eval ac_save_FLAGS=\$$6
1662  as_fn_append $6 " $5"
1663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664/* end confdefs.h.  */
1665$4
1666int
1667main (void)
1668{
1669#ifndef $as_decl_name
1670#ifdef __cplusplus
1671  (void) $as_decl_use;
1672#else
1673  (void) $as_decl_name;
1674#endif
1675#endif
1676
1677  ;
1678  return 0;
1679}
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"
1682then :
1683  eval "$3=yes"
1684else case e in #(
1685  e) eval "$3=no" ;;
1686esac
1687fi
1688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1689  eval $6=\$ac_save_FLAGS
1690 ;;
1691esac
1692fi
1693eval ac_res=\$$3
1694	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695printf "%s\n" "$ac_res" >&6; }
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698} # ac_fn_check_decl
1699
1700# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701# -------------------------------------------------------
1702# Tests whether HEADER exists and can be compiled using the include files in
1703# INCLUDES, setting the cache variable VAR accordingly.
1704ac_fn_c_check_header_compile ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708printf %s "checking for $2... " >&6; }
1709if eval test \${$3+y}
1710then :
1711  printf %s "(cached) " >&6
1712else case e in #(
1713  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h.  */
1715$4
1716#include <$2>
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"
1719then :
1720  eval "$3=yes"
1721else case e in #(
1722  e) eval "$3=no" ;;
1723esac
1724fi
1725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1726esac
1727fi
1728eval ac_res=\$$3
1729	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730printf "%s\n" "$ac_res" >&6; }
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733} # ac_fn_c_check_header_compile
1734
1735# ac_fn_c_try_link LINENO
1736# -----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_c_try_link ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1742  if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748printf "%s\n" "$ac_try_echo"; } >&5
1749  (eval "$ac_link") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } && {
1758	 test -z "$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       } && test -s conftest$ac_exeext && {
1761	 test "$cross_compiling" = yes ||
1762	 test -x conftest$ac_exeext
1763       }
1764then :
1765  ac_retval=0
1766else case e in #(
1767  e) printf "%s\n" "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770	ac_retval=1 ;;
1771esac
1772fi
1773  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775  # interfere with the next link command; also delete a directory that is
1776  # left behind by Apple's compiler.  We do this before executing the actions.
1777  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779  as_fn_set_status $ac_retval
1780
1781} # ac_fn_c_try_link
1782
1783# ac_fn_c_check_func LINENO FUNC VAR
1784# ----------------------------------
1785# Tests whether FUNC exists, setting the cache variable VAR accordingly
1786ac_fn_c_check_func ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790printf %s "checking for $2... " >&6; }
1791if eval test \${$3+y}
1792then :
1793  printf %s "(cached) " >&6
1794else case e in #(
1795  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1799#define $2 innocuous_$2
1800
1801/* System header to define __stub macros and hopefully few prototypes,
1802   which can conflict with char $2 (void); below.  */
1803
1804#include <limits.h>
1805#undef $2
1806
1807/* Override any GCC internal prototype to avoid an error.
1808   Use char because int might match the return type of a GCC
1809   builtin and then its argument prototype would still apply.  */
1810#ifdef __cplusplus
1811extern "C"
1812#endif
1813char $2 (void);
1814/* The GNU C library defines this for functions which it implements
1815    to always fail with ENOSYS.  Some functions are actually named
1816    something starting with __ and the normal name is an alias.  */
1817#if defined __stub_$2 || defined __stub___$2
1818choke me
1819#endif
1820
1821int
1822main (void)
1823{
1824return $2 ();
1825  ;
1826  return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_link "$LINENO"
1830then :
1831  eval "$3=yes"
1832else case e in #(
1833  e) eval "$3=no" ;;
1834esac
1835fi
1836rm -f core conftest.err conftest.$ac_objext conftest.beam \
1837    conftest$ac_exeext conftest.$ac_ext ;;
1838esac
1839fi
1840eval ac_res=\$$3
1841	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842printf "%s\n" "$ac_res" >&6; }
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845} # ac_fn_c_check_func
1846ac_configure_args_raw=
1847for ac_arg
1848do
1849  case $ac_arg in
1850  *\'*)
1851    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1852  esac
1853  as_fn_append ac_configure_args_raw " '$ac_arg'"
1854done
1855
1856case $ac_configure_args_raw in
1857  *$as_nl*)
1858    ac_safe_unquote= ;;
1859  *)
1860    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1861    ac_unsafe_a="$ac_unsafe_z#~"
1862    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1863    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1864esac
1865
1866cat >config.log <<_ACEOF
1867This file contains any messages produced by compilers while
1868running configure, to aid debugging if configure makes a mistake.
1869
1870It was created by xf86-video-vboxvideo $as_me 1.0.1, which was
1871generated by GNU Autoconf 2.72.  Invocation command line was
1872
1873  $ $0$ac_configure_args_raw
1874
1875_ACEOF
1876exec 5>>config.log
1877{
1878cat <<_ASUNAME
1879## --------- ##
1880## Platform. ##
1881## --------- ##
1882
1883hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1884uname -m = `(uname -m) 2>/dev/null || echo unknown`
1885uname -r = `(uname -r) 2>/dev/null || echo unknown`
1886uname -s = `(uname -s) 2>/dev/null || echo unknown`
1887uname -v = `(uname -v) 2>/dev/null || echo unknown`
1888
1889/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1890/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1891
1892/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1893/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1894/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1895/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1896/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1897/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1898/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1899
1900_ASUNAME
1901
1902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903for as_dir in $PATH
1904do
1905  IFS=$as_save_IFS
1906  case $as_dir in #(((
1907    '') as_dir=./ ;;
1908    */) ;;
1909    *) as_dir=$as_dir/ ;;
1910  esac
1911    printf "%s\n" "PATH: $as_dir"
1912  done
1913IFS=$as_save_IFS
1914
1915} >&5
1916
1917cat >&5 <<_ACEOF
1918
1919
1920## ----------- ##
1921## Core tests. ##
1922## ----------- ##
1923
1924_ACEOF
1925
1926
1927# Keep a trace of the command line.
1928# Strip out --no-create and --no-recursion so they do not pile up.
1929# Strip out --silent because we don't want to record it for future runs.
1930# Also quote any args containing shell meta-characters.
1931# Make two passes to allow for proper duplicate-argument suppression.
1932ac_configure_args=
1933ac_configure_args0=
1934ac_configure_args1=
1935ac_must_keep_next=false
1936for ac_pass in 1 2
1937do
1938  for ac_arg
1939  do
1940    case $ac_arg in
1941    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943    | -silent | --silent | --silen | --sile | --sil)
1944      continue ;;
1945    *\'*)
1946      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947    esac
1948    case $ac_pass in
1949    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1950    2)
1951      as_fn_append ac_configure_args1 " '$ac_arg'"
1952      if test $ac_must_keep_next = true; then
1953	ac_must_keep_next=false # Got value, back to normal.
1954      else
1955	case $ac_arg in
1956	  *=* | --config-cache | -C | -disable-* | --disable-* \
1957	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959	  | -with-* | --with-* | -without-* | --without-* | --x)
1960	    case "$ac_configure_args0 " in
1961	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962	    esac
1963	    ;;
1964	  -* ) ac_must_keep_next=true ;;
1965	esac
1966      fi
1967      as_fn_append ac_configure_args " '$ac_arg'"
1968      ;;
1969    esac
1970  done
1971done
1972{ ac_configure_args0=; unset ac_configure_args0;}
1973{ ac_configure_args1=; unset ac_configure_args1;}
1974
1975# When interrupted or exit'd, cleanup temporary files, and complete
1976# config.log.  We remove comments because anyway the quotes in there
1977# would cause problems or look ugly.
1978# WARNING: Use '\'' to represent an apostrophe within the trap.
1979# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980trap 'exit_status=$?
1981  # Sanitize IFS.
1982  IFS=" ""	$as_nl"
1983  # Save into config.log some information that might help in debugging.
1984  {
1985    echo
1986
1987    printf "%s\n" "## ---------------- ##
1988## Cache variables. ##
1989## ---------------- ##"
1990    echo
1991    # The following way of writing the cache mishandles newlines in values,
1992(
1993  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1994    eval ac_val=\$$ac_var
1995    case $ac_val in #(
1996    *${as_nl}*)
1997      case $ac_var in #(
1998      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1999printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2000      esac
2001      case $ac_var in #(
2002      _ | IFS | as_nl) ;; #(
2003      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2004      *) { eval $ac_var=; unset $ac_var;} ;;
2005      esac ;;
2006    esac
2007  done
2008  (set) 2>&1 |
2009    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2010    *${as_nl}ac_space=\ *)
2011      sed -n \
2012	"s/'\''/'\''\\\\'\'''\''/g;
2013	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2014      ;; #(
2015    *)
2016      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2017      ;;
2018    esac |
2019    sort
2020)
2021    echo
2022
2023    printf "%s\n" "## ----------------- ##
2024## Output variables. ##
2025## ----------------- ##"
2026    echo
2027    for ac_var in $ac_subst_vars
2028    do
2029      eval ac_val=\$$ac_var
2030      case $ac_val in
2031      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032      esac
2033      printf "%s\n" "$ac_var='\''$ac_val'\''"
2034    done | sort
2035    echo
2036
2037    if test -n "$ac_subst_files"; then
2038      printf "%s\n" "## ------------------- ##
2039## File substitutions. ##
2040## ------------------- ##"
2041      echo
2042      for ac_var in $ac_subst_files
2043      do
2044	eval ac_val=\$$ac_var
2045	case $ac_val in
2046	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047	esac
2048	printf "%s\n" "$ac_var='\''$ac_val'\''"
2049      done | sort
2050      echo
2051    fi
2052
2053    if test -s confdefs.h; then
2054      printf "%s\n" "## ----------- ##
2055## confdefs.h. ##
2056## ----------- ##"
2057      echo
2058      cat confdefs.h
2059      echo
2060    fi
2061    test "$ac_signal" != 0 &&
2062      printf "%s\n" "$as_me: caught signal $ac_signal"
2063    printf "%s\n" "$as_me: exit $exit_status"
2064  } >&5
2065  rm -f core *.core core.conftest.* &&
2066    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2067    exit $exit_status
2068' 0
2069for ac_signal in 1 2 13 15; do
2070  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2071done
2072ac_signal=0
2073
2074# confdefs.h avoids OS command line length limits that DEFS can exceed.
2075rm -f -r conftest* confdefs.h
2076
2077printf "%s\n" "/* confdefs.h */" > confdefs.h
2078
2079# Predefined preprocessor variables.
2080
2081printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2082
2083printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2084
2085printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2086
2087printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2088
2089printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2090
2091printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2092
2093
2094# Let the site file select an alternate cache file if it wants to.
2095# Prefer an explicitly selected file to automatically selected ones.
2096if test -n "$CONFIG_SITE"; then
2097  ac_site_files="$CONFIG_SITE"
2098elif test "x$prefix" != xNONE; then
2099  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2100else
2101  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2102fi
2103
2104for ac_site_file in $ac_site_files
2105do
2106  case $ac_site_file in #(
2107  */*) :
2108     ;; #(
2109  *) :
2110    ac_site_file=./$ac_site_file ;;
2111esac
2112  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2113    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2114printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2115    sed 's/^/| /' "$ac_site_file" >&5
2116    . "$ac_site_file" \
2117      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2118printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2119as_fn_error $? "failed to load site script $ac_site_file
2120See 'config.log' for more details" "$LINENO" 5; }
2121  fi
2122done
2123
2124if test -r "$cache_file"; then
2125  # Some versions of bash will fail to source /dev/null (special files
2126  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2127  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2128    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2130    case $cache_file in
2131      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132      *)                      . "./$cache_file";;
2133    esac
2134  fi
2135else
2136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2138  >$cache_file
2139fi
2140
2141# Test code for whether the C compiler supports C89 (global declarations)
2142ac_c_conftest_c89_globals='
2143/* Does the compiler advertise C89 conformance?
2144   Do not test the value of __STDC__, because some compilers set it to 0
2145   while being otherwise adequately conformant. */
2146#if !defined __STDC__
2147# error "Compiler does not advertise C89 conformance"
2148#endif
2149
2150#include <stddef.h>
2151#include <stdarg.h>
2152struct stat;
2153/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2154struct buf { int x; };
2155struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2156static char *e (char **p, int i)
2157{
2158  return p[i];
2159}
2160static char *f (char * (*g) (char **, int), char **p, ...)
2161{
2162  char *s;
2163  va_list v;
2164  va_start (v,p);
2165  s = g (p, va_arg (v,int));
2166  va_end (v);
2167  return s;
2168}
2169
2170/* C89 style stringification. */
2171#define noexpand_stringify(a) #a
2172const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2173
2174/* C89 style token pasting.  Exercises some of the corner cases that
2175   e.g. old MSVC gets wrong, but not very hard. */
2176#define noexpand_concat(a,b) a##b
2177#define expand_concat(a,b) noexpand_concat(a,b)
2178extern int vA;
2179extern int vbee;
2180#define aye A
2181#define bee B
2182int *pvA = &expand_concat(v,aye);
2183int *pvbee = &noexpand_concat(v,bee);
2184
2185/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2186   function prototypes and stuff, but not \xHH hex character constants.
2187   These do not provoke an error unfortunately, instead are silently treated
2188   as an "x".  The following induces an error, until -std is added to get
2189   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2190   array size at least.  It is necessary to write \x00 == 0 to get something
2191   that is true only with -std.  */
2192int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2193
2194/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2195   inside strings and character constants.  */
2196#define FOO(x) '\''x'\''
2197int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2198
2199int test (int i, double x);
2200struct s1 {int (*f) (int a);};
2201struct s2 {int (*f) (double a);};
2202int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2203               int, int);'
2204
2205# Test code for whether the C compiler supports C89 (body of main).
2206ac_c_conftest_c89_main='
2207ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2208'
2209
2210# Test code for whether the C compiler supports C99 (global declarations)
2211ac_c_conftest_c99_globals='
2212/* Does the compiler advertise C99 conformance? */
2213#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2214# error "Compiler does not advertise C99 conformance"
2215#endif
2216
2217// See if C++-style comments work.
2218
2219#include <stdbool.h>
2220extern int puts (const char *);
2221extern int printf (const char *, ...);
2222extern int dprintf (int, const char *, ...);
2223extern void *malloc (size_t);
2224extern void free (void *);
2225
2226// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2227// dprintf is used instead of fprintf to avoid needing to declare
2228// FILE and stderr.
2229#define debug(...) dprintf (2, __VA_ARGS__)
2230#define showlist(...) puts (#__VA_ARGS__)
2231#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2232static void
2233test_varargs_macros (void)
2234{
2235  int x = 1234;
2236  int y = 5678;
2237  debug ("Flag");
2238  debug ("X = %d\n", x);
2239  showlist (The first, second, and third items.);
2240  report (x>y, "x is %d but y is %d", x, y);
2241}
2242
2243// Check long long types.
2244#define BIG64 18446744073709551615ull
2245#define BIG32 4294967295ul
2246#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2247#if !BIG_OK
2248  #error "your preprocessor is broken"
2249#endif
2250#if BIG_OK
2251#else
2252  #error "your preprocessor is broken"
2253#endif
2254static long long int bignum = -9223372036854775807LL;
2255static unsigned long long int ubignum = BIG64;
2256
2257struct incomplete_array
2258{
2259  int datasize;
2260  double data[];
2261};
2262
2263struct named_init {
2264  int number;
2265  const wchar_t *name;
2266  double average;
2267};
2268
2269typedef const char *ccp;
2270
2271static inline int
2272test_restrict (ccp restrict text)
2273{
2274  // Iterate through items via the restricted pointer.
2275  // Also check for declarations in for loops.
2276  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2277    continue;
2278  return 0;
2279}
2280
2281// Check varargs and va_copy.
2282static bool
2283test_varargs (const char *format, ...)
2284{
2285  va_list args;
2286  va_start (args, format);
2287  va_list args_copy;
2288  va_copy (args_copy, args);
2289
2290  const char *str = "";
2291  int number = 0;
2292  float fnumber = 0;
2293
2294  while (*format)
2295    {
2296      switch (*format++)
2297	{
2298	case '\''s'\'': // string
2299	  str = va_arg (args_copy, const char *);
2300	  break;
2301	case '\''d'\'': // int
2302	  number = va_arg (args_copy, int);
2303	  break;
2304	case '\''f'\'': // float
2305	  fnumber = va_arg (args_copy, double);
2306	  break;
2307	default:
2308	  break;
2309	}
2310    }
2311  va_end (args_copy);
2312  va_end (args);
2313
2314  return *str && number && fnumber;
2315}
2316'
2317
2318# Test code for whether the C compiler supports C99 (body of main).
2319ac_c_conftest_c99_main='
2320  // Check bool.
2321  _Bool success = false;
2322  success |= (argc != 0);
2323
2324  // Check restrict.
2325  if (test_restrict ("String literal") == 0)
2326    success = true;
2327  char *restrict newvar = "Another string";
2328
2329  // Check varargs.
2330  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2331  test_varargs_macros ();
2332
2333  // Check flexible array members.
2334  struct incomplete_array *ia =
2335    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2336  ia->datasize = 10;
2337  for (int i = 0; i < ia->datasize; ++i)
2338    ia->data[i] = i * 1.234;
2339  // Work around memory leak warnings.
2340  free (ia);
2341
2342  // Check named initializers.
2343  struct named_init ni = {
2344    .number = 34,
2345    .name = L"Test wide string",
2346    .average = 543.34343,
2347  };
2348
2349  ni.number = 58;
2350
2351  int dynamic_array[ni.number];
2352  dynamic_array[0] = argv[0][0];
2353  dynamic_array[ni.number - 1] = 543;
2354
2355  // work around unused variable warnings
2356  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2357	 || dynamic_array[ni.number - 1] != 543);
2358'
2359
2360# Test code for whether the C compiler supports C11 (global declarations)
2361ac_c_conftest_c11_globals='
2362/* Does the compiler advertise C11 conformance? */
2363#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2364# error "Compiler does not advertise C11 conformance"
2365#endif
2366
2367// Check _Alignas.
2368char _Alignas (double) aligned_as_double;
2369char _Alignas (0) no_special_alignment;
2370extern char aligned_as_int;
2371char _Alignas (0) _Alignas (int) aligned_as_int;
2372
2373// Check _Alignof.
2374enum
2375{
2376  int_alignment = _Alignof (int),
2377  int_array_alignment = _Alignof (int[100]),
2378  char_alignment = _Alignof (char)
2379};
2380_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2381
2382// Check _Noreturn.
2383int _Noreturn does_not_return (void) { for (;;) continue; }
2384
2385// Check _Static_assert.
2386struct test_static_assert
2387{
2388  int x;
2389  _Static_assert (sizeof (int) <= sizeof (long int),
2390                  "_Static_assert does not work in struct");
2391  long int y;
2392};
2393
2394// Check UTF-8 literals.
2395#define u8 syntax error!
2396char const utf8_literal[] = u8"happens to be ASCII" "another string";
2397
2398// Check duplicate typedefs.
2399typedef long *long_ptr;
2400typedef long int *long_ptr;
2401typedef long_ptr long_ptr;
2402
2403// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2404struct anonymous
2405{
2406  union {
2407    struct { int i; int j; };
2408    struct { int k; long int l; } w;
2409  };
2410  int m;
2411} v1;
2412'
2413
2414# Test code for whether the C compiler supports C11 (body of main).
2415ac_c_conftest_c11_main='
2416  _Static_assert ((offsetof (struct anonymous, i)
2417		   == offsetof (struct anonymous, w.k)),
2418		  "Anonymous union alignment botch");
2419  v1.i = 2;
2420  v1.w.k = 5;
2421  ok |= v1.i != 5;
2422'
2423
2424# Test code for whether the C compiler supports C11 (complete).
2425ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2426${ac_c_conftest_c99_globals}
2427${ac_c_conftest_c11_globals}
2428
2429int
2430main (int argc, char **argv)
2431{
2432  int ok = 0;
2433  ${ac_c_conftest_c89_main}
2434  ${ac_c_conftest_c99_main}
2435  ${ac_c_conftest_c11_main}
2436  return ok;
2437}
2438"
2439
2440# Test code for whether the C compiler supports C99 (complete).
2441ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2442${ac_c_conftest_c99_globals}
2443
2444int
2445main (int argc, char **argv)
2446{
2447  int ok = 0;
2448  ${ac_c_conftest_c89_main}
2449  ${ac_c_conftest_c99_main}
2450  return ok;
2451}
2452"
2453
2454# Test code for whether the C compiler supports C89 (complete).
2455ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2456
2457int
2458main (int argc, char **argv)
2459{
2460  int ok = 0;
2461  ${ac_c_conftest_c89_main}
2462  return ok;
2463}
2464"
2465
2466as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2467as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2468as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2469as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2470as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2471as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2472as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2473as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2474as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2475
2476# Auxiliary files required by this configure script.
2477ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2478
2479# Locations in which to look for auxiliary files.
2480ac_aux_dir_candidates="${srcdir}/."
2481
2482# Search for a directory containing all of the required auxiliary files,
2483# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2484# If we don't find one directory that contains all the files we need,
2485# we report the set of missing files from the *first* directory in
2486# $ac_aux_dir_candidates and give up.
2487ac_missing_aux_files=""
2488ac_first_candidate=:
2489printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491as_found=false
2492for as_dir in $ac_aux_dir_candidates
2493do
2494  IFS=$as_save_IFS
2495  case $as_dir in #(((
2496    '') as_dir=./ ;;
2497    */) ;;
2498    *) as_dir=$as_dir/ ;;
2499  esac
2500  as_found=:
2501
2502  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2503  ac_aux_dir_found=yes
2504  ac_install_sh=
2505  for ac_aux in $ac_aux_files
2506  do
2507    # As a special case, if "install-sh" is required, that requirement
2508    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2509    # and $ac_install_sh is set appropriately for whichever one is found.
2510    if test x"$ac_aux" = x"install-sh"
2511    then
2512      if test -f "${as_dir}install-sh"; then
2513        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2514        ac_install_sh="${as_dir}install-sh -c"
2515      elif test -f "${as_dir}install.sh"; then
2516        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2517        ac_install_sh="${as_dir}install.sh -c"
2518      elif test -f "${as_dir}shtool"; then
2519        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2520        ac_install_sh="${as_dir}shtool install -c"
2521      else
2522        ac_aux_dir_found=no
2523        if $ac_first_candidate; then
2524          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2525        else
2526          break
2527        fi
2528      fi
2529    else
2530      if test -f "${as_dir}${ac_aux}"; then
2531        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2532      else
2533        ac_aux_dir_found=no
2534        if $ac_first_candidate; then
2535          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2536        else
2537          break
2538        fi
2539      fi
2540    fi
2541  done
2542  if test "$ac_aux_dir_found" = yes; then
2543    ac_aux_dir="$as_dir"
2544    break
2545  fi
2546  ac_first_candidate=false
2547
2548  as_found=false
2549done
2550IFS=$as_save_IFS
2551if $as_found
2552then :
2553
2554else case e in #(
2555  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2556esac
2557fi
2558
2559
2560# These three variables are undocumented and unsupported,
2561# and are intended to be withdrawn in a future Autoconf release.
2562# They can cause serious problems if a builder's source tree is in a directory
2563# whose full name contains unusual characters.
2564if test -f "${ac_aux_dir}config.guess"; then
2565  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2566fi
2567if test -f "${ac_aux_dir}config.sub"; then
2568  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2569fi
2570if test -f "$ac_aux_dir/configure"; then
2571  ac_configure="$SHELL ${ac_aux_dir}configure"
2572fi
2573
2574# Check that the precious variables saved in the cache have kept the same
2575# value.
2576ac_cache_corrupted=false
2577for ac_var in $ac_precious_vars; do
2578  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579  eval ac_new_set=\$ac_env_${ac_var}_set
2580  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581  eval ac_new_val=\$ac_env_${ac_var}_value
2582  case $ac_old_set,$ac_new_set in
2583    set,)
2584      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2585printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2586      ac_cache_corrupted=: ;;
2587    ,set)
2588      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2589printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2590      ac_cache_corrupted=: ;;
2591    ,);;
2592    *)
2593      if test "x$ac_old_val" != "x$ac_new_val"; then
2594	# differences in whitespace do not lead to failure.
2595	ac_old_val_w=`echo x $ac_old_val`
2596	ac_new_val_w=`echo x $ac_new_val`
2597	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2599printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2600	  ac_cache_corrupted=:
2601	else
2602	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2603printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2604	  eval $ac_var=\$ac_old_val
2605	fi
2606	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2607printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2609printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2610      fi;;
2611  esac
2612  # Pass precious variables to config.status.
2613  if test "$ac_new_set" = set; then
2614    case $ac_new_val in
2615    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616    *) ac_arg=$ac_var=$ac_new_val ;;
2617    esac
2618    case " $ac_configure_args " in
2619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2620      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621    esac
2622  fi
2623done
2624if $ac_cache_corrupted; then
2625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2626printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2629  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2630	    and start over" "$LINENO" 5
2631fi
2632## -------------------- ##
2633## Main body of script. ##
2634## -------------------- ##
2635
2636ac_ext=c
2637ac_cpp='$CPP $CPPFLAGS'
2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641
2642
2643
2644ac_config_headers="$ac_config_headers config.h"
2645
2646
2647
2648# Initialize Automake
2649am__api_version='1.16'
2650
2651
2652
2653  # Find a good install program.  We prefer a C program (faster),
2654# so one script is as good as another.  But avoid the broken or
2655# incompatible versions:
2656# SysV /etc/install, /usr/sbin/install
2657# SunOS /usr/etc/install
2658# IRIX /sbin/install
2659# AIX /bin/install
2660# AmigaOS /C/install, which installs bootblocks on floppy discs
2661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2662# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2664# OS/2's system install, which has a completely different semantic
2665# ./install, which can be erroneously created by make from ./install.sh.
2666# Reject install programs that cannot install multiple files.
2667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2668printf %s "checking for a BSD-compatible install... " >&6; }
2669if test -z "$INSTALL"; then
2670if test ${ac_cv_path_install+y}
2671then :
2672  printf %s "(cached) " >&6
2673else case e in #(
2674  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677  IFS=$as_save_IFS
2678  case $as_dir in #(((
2679    '') as_dir=./ ;;
2680    */) ;;
2681    *) as_dir=$as_dir/ ;;
2682  esac
2683    # Account for fact that we put trailing slashes in our PATH walk.
2684case $as_dir in #((
2685  ./ | /[cC]/* | \
2686  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2687  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2688  /usr/ucb/* ) ;;
2689  *)
2690    # OSF1 and SCO ODT 3.0 have their own names for install.
2691    # Don't use installbsd from OSF since it installs stuff as root
2692    # by default.
2693    for ac_prog in ginstall scoinst install; do
2694      for ac_exec_ext in '' $ac_executable_extensions; do
2695	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2696	  if test $ac_prog = install &&
2697	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698	    # AIX install.  It has an incompatible calling convention.
2699	    :
2700	  elif test $ac_prog = install &&
2701	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702	    # program-specific install script used by HP pwplus--don't use.
2703	    :
2704	  else
2705	    rm -rf conftest.one conftest.two conftest.dir
2706	    echo one > conftest.one
2707	    echo two > conftest.two
2708	    mkdir conftest.dir
2709	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2710	      test -s conftest.one && test -s conftest.two &&
2711	      test -s conftest.dir/conftest.one &&
2712	      test -s conftest.dir/conftest.two
2713	    then
2714	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2715	      break 3
2716	    fi
2717	  fi
2718	fi
2719      done
2720    done
2721    ;;
2722esac
2723
2724  done
2725IFS=$as_save_IFS
2726
2727rm -rf conftest.one conftest.two conftest.dir
2728 ;;
2729esac
2730fi
2731  if test ${ac_cv_path_install+y}; then
2732    INSTALL=$ac_cv_path_install
2733  else
2734    # As a last resort, use the slow shell script.  Don't cache a
2735    # value for INSTALL within a source directory, because that will
2736    # break other packages using the cache if that directory is
2737    # removed, or if the value is a relative name.
2738    INSTALL=$ac_install_sh
2739  fi
2740fi
2741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2742printf "%s\n" "$INSTALL" >&6; }
2743
2744# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2745# It thinks the first close brace ends the variable substitution.
2746test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2747
2748test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2749
2750test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2751
2752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2753printf %s "checking whether build environment is sane... " >&6; }
2754# Reject unsafe characters in $srcdir or the absolute working directory
2755# name.  Accept space and tab only in the latter.
2756am_lf='
2757'
2758case `pwd` in
2759  *[\\\"\#\$\&\'\`$am_lf]*)
2760    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2761esac
2762case $srcdir in
2763  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2764    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2765esac
2766
2767# Do 'set' in a subshell so we don't clobber the current shell's
2768# arguments.  Must try -L first in case configure is actually a
2769# symlink; some systems play weird games with the mod time of symlinks
2770# (eg FreeBSD returns the mod time of the symlink's containing
2771# directory).
2772if (
2773   am_has_slept=no
2774   for am_try in 1 2; do
2775     echo "timestamp, slept: $am_has_slept" > conftest.file
2776     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2777     if test "$*" = "X"; then
2778	# -L didn't work.
2779	set X `ls -t "$srcdir/configure" conftest.file`
2780     fi
2781     if test "$*" != "X $srcdir/configure conftest.file" \
2782	&& test "$*" != "X conftest.file $srcdir/configure"; then
2783
2784	# If neither matched, then we have a broken ls.  This can happen
2785	# if, for instance, CONFIG_SHELL is bash and it inherits a
2786	# broken ls alias from the environment.  This has actually
2787	# happened.  Such a system could not be considered "sane".
2788	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2789  alias in your environment" "$LINENO" 5
2790     fi
2791     if test "$2" = conftest.file || test $am_try -eq 2; then
2792       break
2793     fi
2794     # Just in case.
2795     sleep 1
2796     am_has_slept=yes
2797   done
2798   test "$2" = conftest.file
2799   )
2800then
2801   # Ok.
2802   :
2803else
2804   as_fn_error $? "newly created file is older than distributed files!
2805Check your system clock" "$LINENO" 5
2806fi
2807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2808printf "%s\n" "yes" >&6; }
2809# If we didn't sleep, we still need to ensure time stamps of config.status and
2810# generated files are strictly newer.
2811am_sleep_pid=
2812if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2813  ( sleep 1 ) &
2814  am_sleep_pid=$!
2815fi
2816
2817rm -f conftest.file
2818
2819test "$program_prefix" != NONE &&
2820  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2821# Use a double $ so make ignores it.
2822test "$program_suffix" != NONE &&
2823  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2824# Double any \ or $.
2825# By default was 's,x,x', remove it if useless.
2826ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2827program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2828
2829
2830# Expand $ac_aux_dir to an absolute path.
2831am_aux_dir=`cd "$ac_aux_dir" && pwd`
2832
2833
2834  if test x"${MISSING+set}" != xset; then
2835  MISSING="\${SHELL} '$am_aux_dir/missing'"
2836fi
2837# Use eval to expand $SHELL
2838if eval "$MISSING --is-lightweight"; then
2839  am_missing_run="$MISSING "
2840else
2841  am_missing_run=
2842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2843printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2844fi
2845
2846if test x"${install_sh+set}" != xset; then
2847  case $am_aux_dir in
2848  *\ * | *\	*)
2849    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2850  *)
2851    install_sh="\${SHELL} $am_aux_dir/install-sh"
2852  esac
2853fi
2854
2855# Installed binaries are usually stripped using 'strip' when the user
2856# run "make install-strip".  However 'strip' might not be the right
2857# tool to use in cross-compilation environments, therefore Automake
2858# will honor the 'STRIP' environment variable to overrule this program.
2859if test "$cross_compiling" != no; then
2860  if test -n "$ac_tool_prefix"; then
2861  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2862set dummy ${ac_tool_prefix}strip; ac_word=$2
2863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864printf %s "checking for $ac_word... " >&6; }
2865if test ${ac_cv_prog_STRIP+y}
2866then :
2867  printf %s "(cached) " >&6
2868else case e in #(
2869  e) if test -n "$STRIP"; then
2870  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871else
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875  IFS=$as_save_IFS
2876  case $as_dir in #(((
2877    '') as_dir=./ ;;
2878    */) ;;
2879    *) as_dir=$as_dir/ ;;
2880  esac
2881    for ac_exec_ext in '' $ac_executable_extensions; do
2882  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2883    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2884    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2885    break 2
2886  fi
2887done
2888  done
2889IFS=$as_save_IFS
2890
2891fi ;;
2892esac
2893fi
2894STRIP=$ac_cv_prog_STRIP
2895if test -n "$STRIP"; then
2896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897printf "%s\n" "$STRIP" >&6; }
2898else
2899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900printf "%s\n" "no" >&6; }
2901fi
2902
2903
2904fi
2905if test -z "$ac_cv_prog_STRIP"; then
2906  ac_ct_STRIP=$STRIP
2907  # Extract the first word of "strip", so it can be a program name with args.
2908set dummy strip; ac_word=$2
2909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910printf %s "checking for $ac_word... " >&6; }
2911if test ${ac_cv_prog_ac_ct_STRIP+y}
2912then :
2913  printf %s "(cached) " >&6
2914else case e in #(
2915  e) if test -n "$ac_ct_STRIP"; then
2916  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  case $as_dir in #(((
2923    '') as_dir=./ ;;
2924    */) ;;
2925    *) as_dir=$as_dir/ ;;
2926  esac
2927    for ac_exec_ext in '' $ac_executable_extensions; do
2928  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2929    ac_cv_prog_ac_ct_STRIP="strip"
2930    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934  done
2935IFS=$as_save_IFS
2936
2937fi ;;
2938esac
2939fi
2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941if test -n "$ac_ct_STRIP"; then
2942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2943printf "%s\n" "$ac_ct_STRIP" >&6; }
2944else
2945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946printf "%s\n" "no" >&6; }
2947fi
2948
2949  if test "x$ac_ct_STRIP" = x; then
2950    STRIP=":"
2951  else
2952    case $cross_compiling:$ac_tool_warned in
2953yes:)
2954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956ac_tool_warned=yes ;;
2957esac
2958    STRIP=$ac_ct_STRIP
2959  fi
2960else
2961  STRIP="$ac_cv_prog_STRIP"
2962fi
2963
2964fi
2965INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2966
2967
2968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2969printf %s "checking for a race-free mkdir -p... " >&6; }
2970if test -z "$MKDIR_P"; then
2971  if test ${ac_cv_path_mkdir+y}
2972then :
2973  printf %s "(cached) " >&6
2974else case e in #(
2975  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977do
2978  IFS=$as_save_IFS
2979  case $as_dir in #(((
2980    '') as_dir=./ ;;
2981    */) ;;
2982    *) as_dir=$as_dir/ ;;
2983  esac
2984    for ac_prog in mkdir gmkdir; do
2985	 for ac_exec_ext in '' $ac_executable_extensions; do
2986	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2987	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2988	     'mkdir ('*'coreutils) '* | \
2989	     *'BusyBox '* | \
2990	     'mkdir (fileutils) '4.1*)
2991	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2992	       break 3;;
2993	   esac
2994	 done
2995       done
2996  done
2997IFS=$as_save_IFS
2998 ;;
2999esac
3000fi
3001
3002  test -d ./--version && rmdir ./--version
3003  if test ${ac_cv_path_mkdir+y}; then
3004    MKDIR_P="$ac_cv_path_mkdir -p"
3005  else
3006    # As a last resort, use plain mkdir -p,
3007    # in the hope it doesn't have the bugs of ancient mkdir.
3008    MKDIR_P='mkdir -p'
3009  fi
3010fi
3011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3012printf "%s\n" "$MKDIR_P" >&6; }
3013
3014for ac_prog in gawk mawk nawk awk
3015do
3016  # Extract the first word of "$ac_prog", so it can be a program name with args.
3017set dummy $ac_prog; ac_word=$2
3018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019printf %s "checking for $ac_word... " >&6; }
3020if test ${ac_cv_prog_AWK+y}
3021then :
3022  printf %s "(cached) " >&6
3023else case e in #(
3024  e) if test -n "$AWK"; then
3025  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030  IFS=$as_save_IFS
3031  case $as_dir in #(((
3032    '') as_dir=./ ;;
3033    */) ;;
3034    *) as_dir=$as_dir/ ;;
3035  esac
3036    for ac_exec_ext in '' $ac_executable_extensions; do
3037  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3038    ac_cv_prog_AWK="$ac_prog"
3039    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046fi ;;
3047esac
3048fi
3049AWK=$ac_cv_prog_AWK
3050if test -n "$AWK"; then
3051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3052printf "%s\n" "$AWK" >&6; }
3053else
3054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055printf "%s\n" "no" >&6; }
3056fi
3057
3058
3059  test -n "$AWK" && break
3060done
3061
3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3063printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3064set x ${MAKE-make}
3065ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3066if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3067then :
3068  printf %s "(cached) " >&6
3069else case e in #(
3070  e) cat >conftest.make <<\_ACEOF
3071SHELL = /bin/sh
3072all:
3073	@echo '@@@%%%=$(MAKE)=@@@%%%'
3074_ACEOF
3075# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3076case `${MAKE-make} -f conftest.make 2>/dev/null` in
3077  *@@@%%%=?*=@@@%%%*)
3078    eval ac_cv_prog_make_${ac_make}_set=yes;;
3079  *)
3080    eval ac_cv_prog_make_${ac_make}_set=no;;
3081esac
3082rm -f conftest.make ;;
3083esac
3084fi
3085if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3087printf "%s\n" "yes" >&6; }
3088  SET_MAKE=
3089else
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091printf "%s\n" "no" >&6; }
3092  SET_MAKE="MAKE=${MAKE-make}"
3093fi
3094
3095rm -rf .tst 2>/dev/null
3096mkdir .tst 2>/dev/null
3097if test -d .tst; then
3098  am__leading_dot=.
3099else
3100  am__leading_dot=_
3101fi
3102rmdir .tst 2>/dev/null
3103
3104# Check whether --enable-silent-rules was given.
3105if test ${enable_silent_rules+y}
3106then :
3107  enableval=$enable_silent_rules;
3108fi
3109
3110case $enable_silent_rules in # (((
3111  yes) AM_DEFAULT_VERBOSITY=0;;
3112   no) AM_DEFAULT_VERBOSITY=1;;
3113    *) AM_DEFAULT_VERBOSITY=1;;
3114esac
3115am_make=${MAKE-make}
3116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3117printf %s "checking whether $am_make supports nested variables... " >&6; }
3118if test ${am_cv_make_support_nested_variables+y}
3119then :
3120  printf %s "(cached) " >&6
3121else case e in #(
3122  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3123BAR0=false
3124BAR1=true
3125V=1
3126am__doit:
3127	@$(TRUE)
3128.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3129  am_cv_make_support_nested_variables=yes
3130else
3131  am_cv_make_support_nested_variables=no
3132fi ;;
3133esac
3134fi
3135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3136printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3137if test $am_cv_make_support_nested_variables = yes; then
3138    AM_V='$(V)'
3139  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3140else
3141  AM_V=$AM_DEFAULT_VERBOSITY
3142  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3143fi
3144AM_BACKSLASH='\'
3145
3146if test "`cd $srcdir && pwd`" != "`pwd`"; then
3147  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3148  # is not polluted with repeated "-I."
3149  am__isrc=' -I$(srcdir)'
3150  # test to see if srcdir already configured
3151  if test -f $srcdir/config.status; then
3152    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3153  fi
3154fi
3155
3156# test whether we have cygpath
3157if test -z "$CYGPATH_W"; then
3158  if (cygpath --version) >/dev/null 2>/dev/null; then
3159    CYGPATH_W='cygpath -w'
3160  else
3161    CYGPATH_W=echo
3162  fi
3163fi
3164
3165
3166# Define the identity of the package.
3167 PACKAGE='xf86-video-vboxvideo'
3168 VERSION='1.0.1'
3169
3170
3171printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3172
3173
3174printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3175
3176# Some tools Automake needs.
3177
3178ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3179
3180
3181AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3182
3183
3184AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3185
3186
3187AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3188
3189
3190MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3191
3192# For better backward compatibility.  To be removed once Automake 1.9.x
3193# dies out for good.  For more background, see:
3194# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3195# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3196mkdir_p='$(MKDIR_P)'
3197
3198# We need awk for the "check" target (and possibly the TAP driver).  The
3199# system "awk" is bad on some platforms.
3200# Always define AMTAR for backward compatibility.  Yes, it's still used
3201# in the wild :-(  We should find a proper way to deprecate it ...
3202AMTAR='$${TAR-tar}'
3203
3204
3205# We'll loop over all known methods to create a tar archive until one works.
3206_am_tools='gnutar  pax cpio none'
3207
3208am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3209
3210
3211
3212
3213
3214# Variables for tags utilities; see am/tags.am
3215if test -z "$CTAGS"; then
3216  CTAGS=ctags
3217fi
3218
3219if test -z "$ETAGS"; then
3220  ETAGS=etags
3221fi
3222
3223if test -z "$CSCOPE"; then
3224  CSCOPE=cscope
3225fi
3226
3227
3228
3229# POSIX will say in a future version that running "rm -f" with no argument
3230# is OK; and we want to be able to make that assumption in our Makefile
3231# recipes.  So use an aggressive probe to check that the usage we want is
3232# actually supported "in the wild" to an acceptable degree.
3233# See automake bug#10828.
3234# To make any issue more visible, cause the running configure to be aborted
3235# by default if the 'rm' program in use doesn't match our expectations; the
3236# user can still override this though.
3237if rm -f && rm -fr && rm -rf; then : OK; else
3238  cat >&2 <<'END'
3239Oops!
3240
3241Your 'rm' program seems unable to run without file operands specified
3242on the command line, even when the '-f' option is present.  This is contrary
3243to the behaviour of most rm programs out there, and not conforming with
3244the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3245
3246Please tell bug-automake@gnu.org about your system, including the value
3247of your $PATH and any error possibly output before this message.  This
3248can help us improve future automake versions.
3249
3250END
3251  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3252    echo 'Configuration will proceed anyway, since you have set the' >&2
3253    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3254    echo >&2
3255  else
3256    cat >&2 <<'END'
3257Aborting the configuration process, to ensure you take notice of the issue.
3258
3259You can download and install GNU coreutils to get an 'rm' implementation
3260that behaves properly: <https://www.gnu.org/software/coreutils/>.
3261
3262If you want to complete the configuration process using your problematic
3263'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3264to "yes", and re-run configure.
3265
3266END
3267    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3268  fi
3269fi
3270
3271
3272# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293DEPDIR="${am__leading_dot}deps"
3294
3295ac_config_commands="$ac_config_commands depfiles"
3296
3297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3298printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3299cat > confinc.mk << 'END'
3300am__doit:
3301	@echo this is the am__doit target >confinc.out
3302.PHONY: am__doit
3303END
3304am__include="#"
3305am__quote=
3306# BSD make does it like this.
3307echo '.include "confinc.mk" # ignored' > confmf.BSD
3308# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3309echo 'include confinc.mk # ignored' > confmf.GNU
3310_am_result=no
3311for s in GNU BSD; do
3312  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3313   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }
3317  case $?:`cat confinc.out 2>/dev/null` in #(
3318  '0:this is the am__doit target') :
3319    case $s in #(
3320  BSD) :
3321    am__include='.include' am__quote='"' ;; #(
3322  *) :
3323    am__include='include' am__quote='' ;;
3324esac ;; #(
3325  *) :
3326     ;;
3327esac
3328  if test "$am__include" != "#"; then
3329    _am_result="yes ($s style)"
3330    break
3331  fi
3332done
3333rm -f confinc.* confmf.*
3334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3335printf "%s\n" "${_am_result}" >&6; }
3336
3337# Check whether --enable-dependency-tracking was given.
3338if test ${enable_dependency_tracking+y}
3339then :
3340  enableval=$enable_dependency_tracking;
3341fi
3342
3343if test "x$enable_dependency_tracking" != xno; then
3344  am_depcomp="$ac_aux_dir/depcomp"
3345  AMDEPBACKSLASH='\'
3346  am__nodep='_no'
3347fi
3348 if test "x$enable_dependency_tracking" != xno; then
3349  AMDEP_TRUE=
3350  AMDEP_FALSE='#'
3351else
3352  AMDEP_TRUE='#'
3353  AMDEP_FALSE=
3354fi
3355
3356
3357ac_ext=c
3358ac_cpp='$CPP $CPPFLAGS'
3359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362if test -n "$ac_tool_prefix"; then
3363  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3364set dummy ${ac_tool_prefix}gcc; ac_word=$2
3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366printf %s "checking for $ac_word... " >&6; }
3367if test ${ac_cv_prog_CC+y}
3368then :
3369  printf %s "(cached) " >&6
3370else case e in #(
3371  e) if test -n "$CC"; then
3372  ac_cv_prog_CC="$CC" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  case $as_dir in #(((
3379    '') as_dir=./ ;;
3380    */) ;;
3381    *) as_dir=$as_dir/ ;;
3382  esac
3383    for ac_exec_ext in '' $ac_executable_extensions; do
3384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3385    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390  done
3391IFS=$as_save_IFS
3392
3393fi ;;
3394esac
3395fi
3396CC=$ac_cv_prog_CC
3397if test -n "$CC"; then
3398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399printf "%s\n" "$CC" >&6; }
3400else
3401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402printf "%s\n" "no" >&6; }
3403fi
3404
3405
3406fi
3407if test -z "$ac_cv_prog_CC"; then
3408  ac_ct_CC=$CC
3409  # Extract the first word of "gcc", so it can be a program name with args.
3410set dummy gcc; ac_word=$2
3411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412printf %s "checking for $ac_word... " >&6; }
3413if test ${ac_cv_prog_ac_ct_CC+y}
3414then :
3415  printf %s "(cached) " >&6
3416else case e in #(
3417  e) if test -n "$ac_ct_CC"; then
3418  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419else
3420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH
3422do
3423  IFS=$as_save_IFS
3424  case $as_dir in #(((
3425    '') as_dir=./ ;;
3426    */) ;;
3427    *) as_dir=$as_dir/ ;;
3428  esac
3429    for ac_exec_ext in '' $ac_executable_extensions; do
3430  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3431    ac_cv_prog_ac_ct_CC="gcc"
3432    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3433    break 2
3434  fi
3435done
3436  done
3437IFS=$as_save_IFS
3438
3439fi ;;
3440esac
3441fi
3442ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443if test -n "$ac_ct_CC"; then
3444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445printf "%s\n" "$ac_ct_CC" >&6; }
3446else
3447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448printf "%s\n" "no" >&6; }
3449fi
3450
3451  if test "x$ac_ct_CC" = x; then
3452    CC=""
3453  else
3454    case $cross_compiling:$ac_tool_warned in
3455yes:)
3456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458ac_tool_warned=yes ;;
3459esac
3460    CC=$ac_ct_CC
3461  fi
3462else
3463  CC="$ac_cv_prog_CC"
3464fi
3465
3466if test -z "$CC"; then
3467          if test -n "$ac_tool_prefix"; then
3468    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469set dummy ${ac_tool_prefix}cc; ac_word=$2
3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471printf %s "checking for $ac_word... " >&6; }
3472if test ${ac_cv_prog_CC+y}
3473then :
3474  printf %s "(cached) " >&6
3475else case e in #(
3476  e) if test -n "$CC"; then
3477  ac_cv_prog_CC="$CC" # Let the user override the test.
3478else
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482  IFS=$as_save_IFS
3483  case $as_dir in #(((
3484    '') as_dir=./ ;;
3485    */) ;;
3486    *) as_dir=$as_dir/ ;;
3487  esac
3488    for ac_exec_ext in '' $ac_executable_extensions; do
3489  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3490    ac_cv_prog_CC="${ac_tool_prefix}cc"
3491    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3492    break 2
3493  fi
3494done
3495  done
3496IFS=$as_save_IFS
3497
3498fi ;;
3499esac
3500fi
3501CC=$ac_cv_prog_CC
3502if test -n "$CC"; then
3503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504printf "%s\n" "$CC" >&6; }
3505else
3506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507printf "%s\n" "no" >&6; }
3508fi
3509
3510
3511  fi
3512fi
3513if test -z "$CC"; then
3514  # Extract the first word of "cc", so it can be a program name with args.
3515set dummy cc; ac_word=$2
3516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517printf %s "checking for $ac_word... " >&6; }
3518if test ${ac_cv_prog_CC+y}
3519then :
3520  printf %s "(cached) " >&6
3521else case e in #(
3522  e) if test -n "$CC"; then
3523  ac_cv_prog_CC="$CC" # Let the user override the test.
3524else
3525  ac_prog_rejected=no
3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH
3528do
3529  IFS=$as_save_IFS
3530  case $as_dir in #(((
3531    '') as_dir=./ ;;
3532    */) ;;
3533    *) as_dir=$as_dir/ ;;
3534  esac
3535    for ac_exec_ext in '' $ac_executable_extensions; do
3536  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3537    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3538       ac_prog_rejected=yes
3539       continue
3540     fi
3541    ac_cv_prog_CC="cc"
3542    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3543    break 2
3544  fi
3545done
3546  done
3547IFS=$as_save_IFS
3548
3549if test $ac_prog_rejected = yes; then
3550  # We found a bogon in the path, so make sure we never use it.
3551  set dummy $ac_cv_prog_CC
3552  shift
3553  if test $# != 0; then
3554    # We chose a different compiler from the bogus one.
3555    # However, it has the same basename, so the bogon will be chosen
3556    # first if we set CC to just the basename; use the full file name.
3557    shift
3558    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3559  fi
3560fi
3561fi ;;
3562esac
3563fi
3564CC=$ac_cv_prog_CC
3565if test -n "$CC"; then
3566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567printf "%s\n" "$CC" >&6; }
3568else
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570printf "%s\n" "no" >&6; }
3571fi
3572
3573
3574fi
3575if test -z "$CC"; then
3576  if test -n "$ac_tool_prefix"; then
3577  for ac_prog in cl.exe
3578  do
3579    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3580set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582printf %s "checking for $ac_word... " >&6; }
3583if test ${ac_cv_prog_CC+y}
3584then :
3585  printf %s "(cached) " >&6
3586else case e in #(
3587  e) if test -n "$CC"; then
3588  ac_cv_prog_CC="$CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593  IFS=$as_save_IFS
3594  case $as_dir in #(((
3595    '') as_dir=./ ;;
3596    */) ;;
3597    *) as_dir=$as_dir/ ;;
3598  esac
3599    for ac_exec_ext in '' $ac_executable_extensions; do
3600  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3601    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3602    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3603    break 2
3604  fi
3605done
3606  done
3607IFS=$as_save_IFS
3608
3609fi ;;
3610esac
3611fi
3612CC=$ac_cv_prog_CC
3613if test -n "$CC"; then
3614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615printf "%s\n" "$CC" >&6; }
3616else
3617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618printf "%s\n" "no" >&6; }
3619fi
3620
3621
3622    test -n "$CC" && break
3623  done
3624fi
3625if test -z "$CC"; then
3626  ac_ct_CC=$CC
3627  for ac_prog in cl.exe
3628do
3629  # Extract the first word of "$ac_prog", so it can be a program name with args.
3630set dummy $ac_prog; ac_word=$2
3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632printf %s "checking for $ac_word... " >&6; }
3633if test ${ac_cv_prog_ac_ct_CC+y}
3634then :
3635  printf %s "(cached) " >&6
3636else case e in #(
3637  e) if test -n "$ac_ct_CC"; then
3638  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3639else
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643  IFS=$as_save_IFS
3644  case $as_dir in #(((
3645    '') as_dir=./ ;;
3646    */) ;;
3647    *) as_dir=$as_dir/ ;;
3648  esac
3649    for ac_exec_ext in '' $ac_executable_extensions; do
3650  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3651    ac_cv_prog_ac_ct_CC="$ac_prog"
3652    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3653    break 2
3654  fi
3655done
3656  done
3657IFS=$as_save_IFS
3658
3659fi ;;
3660esac
3661fi
3662ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663if test -n "$ac_ct_CC"; then
3664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665printf "%s\n" "$ac_ct_CC" >&6; }
3666else
3667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668printf "%s\n" "no" >&6; }
3669fi
3670
3671
3672  test -n "$ac_ct_CC" && break
3673done
3674
3675  if test "x$ac_ct_CC" = x; then
3676    CC=""
3677  else
3678    case $cross_compiling:$ac_tool_warned in
3679yes:)
3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682ac_tool_warned=yes ;;
3683esac
3684    CC=$ac_ct_CC
3685  fi
3686fi
3687
3688fi
3689if test -z "$CC"; then
3690  if test -n "$ac_tool_prefix"; then
3691  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3692set dummy ${ac_tool_prefix}clang; ac_word=$2
3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694printf %s "checking for $ac_word... " >&6; }
3695if test ${ac_cv_prog_CC+y}
3696then :
3697  printf %s "(cached) " >&6
3698else case e in #(
3699  e) if test -n "$CC"; then
3700  ac_cv_prog_CC="$CC" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705  IFS=$as_save_IFS
3706  case $as_dir in #(((
3707    '') as_dir=./ ;;
3708    */) ;;
3709    *) as_dir=$as_dir/ ;;
3710  esac
3711    for ac_exec_ext in '' $ac_executable_extensions; do
3712  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713    ac_cv_prog_CC="${ac_tool_prefix}clang"
3714    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3715    break 2
3716  fi
3717done
3718  done
3719IFS=$as_save_IFS
3720
3721fi ;;
3722esac
3723fi
3724CC=$ac_cv_prog_CC
3725if test -n "$CC"; then
3726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727printf "%s\n" "$CC" >&6; }
3728else
3729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730printf "%s\n" "no" >&6; }
3731fi
3732
3733
3734fi
3735if test -z "$ac_cv_prog_CC"; then
3736  ac_ct_CC=$CC
3737  # Extract the first word of "clang", so it can be a program name with args.
3738set dummy clang; ac_word=$2
3739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740printf %s "checking for $ac_word... " >&6; }
3741if test ${ac_cv_prog_ac_ct_CC+y}
3742then :
3743  printf %s "(cached) " >&6
3744else case e in #(
3745  e) if test -n "$ac_ct_CC"; then
3746  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751  IFS=$as_save_IFS
3752  case $as_dir in #(((
3753    '') as_dir=./ ;;
3754    */) ;;
3755    *) as_dir=$as_dir/ ;;
3756  esac
3757    for ac_exec_ext in '' $ac_executable_extensions; do
3758  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3759    ac_cv_prog_ac_ct_CC="clang"
3760    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763done
3764  done
3765IFS=$as_save_IFS
3766
3767fi ;;
3768esac
3769fi
3770ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771if test -n "$ac_ct_CC"; then
3772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773printf "%s\n" "$ac_ct_CC" >&6; }
3774else
3775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776printf "%s\n" "no" >&6; }
3777fi
3778
3779  if test "x$ac_ct_CC" = x; then
3780    CC=""
3781  else
3782    case $cross_compiling:$ac_tool_warned in
3783yes:)
3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786ac_tool_warned=yes ;;
3787esac
3788    CC=$ac_ct_CC
3789  fi
3790else
3791  CC="$ac_cv_prog_CC"
3792fi
3793
3794fi
3795
3796
3797test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3798printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3799as_fn_error $? "no acceptable C compiler found in \$PATH
3800See 'config.log' for more details" "$LINENO" 5; }
3801
3802# Provide some information about the compiler.
3803printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3804set X $ac_compile
3805ac_compiler=$2
3806for ac_option in --version -v -V -qversion -version; do
3807  { { ac_try="$ac_compiler $ac_option >&5"
3808case "(($ac_try" in
3809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810  *) ac_try_echo=$ac_try;;
3811esac
3812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813printf "%s\n" "$ac_try_echo"; } >&5
3814  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3815  ac_status=$?
3816  if test -s conftest.err; then
3817    sed '10a\
3818... rest of stderr output deleted ...
3819         10q' conftest.err >conftest.er1
3820    cat conftest.er1 >&5
3821  fi
3822  rm -f conftest.er1 conftest.err
3823  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824  test $ac_status = 0; }
3825done
3826
3827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h.  */
3829
3830int
3831main (void)
3832{
3833
3834  ;
3835  return 0;
3836}
3837_ACEOF
3838ac_clean_files_save=$ac_clean_files
3839ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3840# Try to create an executable without -o first, disregard a.out.
3841# It will help us diagnose broken compilers, and finding out an intuition
3842# of exeext.
3843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3844printf %s "checking whether the C compiler works... " >&6; }
3845ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3846
3847# The possible output files:
3848ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3849
3850ac_rmfiles=
3851for ac_file in $ac_files
3852do
3853  case $ac_file in
3854    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3855    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3856  esac
3857done
3858rm -f $ac_rmfiles
3859
3860if { { ac_try="$ac_link_default"
3861case "(($ac_try" in
3862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863  *) ac_try_echo=$ac_try;;
3864esac
3865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866printf "%s\n" "$ac_try_echo"; } >&5
3867  (eval "$ac_link_default") 2>&5
3868  ac_status=$?
3869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870  test $ac_status = 0; }
3871then :
3872  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3873# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3874# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3875# so that the user can short-circuit this test for compilers unknown to
3876# Autoconf.
3877for ac_file in $ac_files ''
3878do
3879  test -f "$ac_file" || continue
3880  case $ac_file in
3881    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3882	;;
3883    [ab].out )
3884	# We found the default executable, but exeext='' is most
3885	# certainly right.
3886	break;;
3887    *.* )
3888	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3889	then :; else
3890	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891	fi
3892	# We set ac_cv_exeext here because the later test for it is not
3893	# safe: cross compilers may not add the suffix if given an '-o'
3894	# argument, so we may need to know it at that point already.
3895	# Even if this section looks crufty: it has the advantage of
3896	# actually working.
3897	break;;
3898    * )
3899	break;;
3900  esac
3901done
3902test "$ac_cv_exeext" = no && ac_cv_exeext=
3903
3904else case e in #(
3905  e) ac_file='' ;;
3906esac
3907fi
3908if test -z "$ac_file"
3909then :
3910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911printf "%s\n" "no" >&6; }
3912printf "%s\n" "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3916printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3917as_fn_error 77 "C compiler cannot create executables
3918See 'config.log' for more details" "$LINENO" 5; }
3919else case e in #(
3920  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3921printf "%s\n" "yes" >&6; } ;;
3922esac
3923fi
3924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3925printf %s "checking for C compiler default output file name... " >&6; }
3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3927printf "%s\n" "$ac_file" >&6; }
3928ac_exeext=$ac_cv_exeext
3929
3930rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3931ac_clean_files=$ac_clean_files_save
3932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3933printf %s "checking for suffix of executables... " >&6; }
3934if { { ac_try="$ac_link"
3935case "(($ac_try" in
3936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937  *) ac_try_echo=$ac_try;;
3938esac
3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940printf "%s\n" "$ac_try_echo"; } >&5
3941  (eval "$ac_link") 2>&5
3942  ac_status=$?
3943  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944  test $ac_status = 0; }
3945then :
3946  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3947# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3948# work properly (i.e., refer to 'conftest.exe'), while it won't with
3949# 'rm'.
3950for ac_file in conftest.exe conftest conftest.*; do
3951  test -f "$ac_file" || continue
3952  case $ac_file in
3953    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3954    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3955	  break;;
3956    * ) break;;
3957  esac
3958done
3959else case e in #(
3960  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3961printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3962as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3963See 'config.log' for more details" "$LINENO" 5; } ;;
3964esac
3965fi
3966rm -f conftest conftest$ac_cv_exeext
3967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3968printf "%s\n" "$ac_cv_exeext" >&6; }
3969
3970rm -f conftest.$ac_ext
3971EXEEXT=$ac_cv_exeext
3972ac_exeext=$EXEEXT
3973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h.  */
3975#include <stdio.h>
3976int
3977main (void)
3978{
3979FILE *f = fopen ("conftest.out", "w");
3980 if (!f)
3981  return 1;
3982 return ferror (f) || fclose (f) != 0;
3983
3984  ;
3985  return 0;
3986}
3987_ACEOF
3988ac_clean_files="$ac_clean_files conftest.out"
3989# Check that the compiler produces executables we can run.  If not, either
3990# the compiler is broken, or we cross compile.
3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3992printf %s "checking whether we are cross compiling... " >&6; }
3993if test "$cross_compiling" != yes; then
3994  { { ac_try="$ac_link"
3995case "(($ac_try" in
3996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997  *) ac_try_echo=$ac_try;;
3998esac
3999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000printf "%s\n" "$ac_try_echo"; } >&5
4001  (eval "$ac_link") 2>&5
4002  ac_status=$?
4003  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004  test $ac_status = 0; }
4005  if { ac_try='./conftest$ac_cv_exeext'
4006  { { case "(($ac_try" in
4007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008  *) ac_try_echo=$ac_try;;
4009esac
4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011printf "%s\n" "$ac_try_echo"; } >&5
4012  (eval "$ac_try") 2>&5
4013  ac_status=$?
4014  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015  test $ac_status = 0; }; }; then
4016    cross_compiling=no
4017  else
4018    if test "$cross_compiling" = maybe; then
4019	cross_compiling=yes
4020    else
4021	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4022printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4023as_fn_error 77 "cannot run C compiled programs.
4024If you meant to cross compile, use '--host'.
4025See 'config.log' for more details" "$LINENO" 5; }
4026    fi
4027  fi
4028fi
4029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4030printf "%s\n" "$cross_compiling" >&6; }
4031
4032rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4033  conftest.o conftest.obj conftest.out
4034ac_clean_files=$ac_clean_files_save
4035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4036printf %s "checking for suffix of object files... " >&6; }
4037if test ${ac_cv_objext+y}
4038then :
4039  printf %s "(cached) " >&6
4040else case e in #(
4041  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042/* end confdefs.h.  */
4043
4044int
4045main (void)
4046{
4047
4048  ;
4049  return 0;
4050}
4051_ACEOF
4052rm -f conftest.o conftest.obj
4053if { { ac_try="$ac_compile"
4054case "(($ac_try" in
4055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056  *) ac_try_echo=$ac_try;;
4057esac
4058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059printf "%s\n" "$ac_try_echo"; } >&5
4060  (eval "$ac_compile") 2>&5
4061  ac_status=$?
4062  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063  test $ac_status = 0; }
4064then :
4065  for ac_file in conftest.o conftest.obj conftest.*; do
4066  test -f "$ac_file" || continue;
4067  case $ac_file in
4068    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4069    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4070       break;;
4071  esac
4072done
4073else case e in #(
4074  e) printf "%s\n" "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4078printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4079as_fn_error $? "cannot compute suffix of object files: cannot compile
4080See 'config.log' for more details" "$LINENO" 5; } ;;
4081esac
4082fi
4083rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4084esac
4085fi
4086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4087printf "%s\n" "$ac_cv_objext" >&6; }
4088OBJEXT=$ac_cv_objext
4089ac_objext=$OBJEXT
4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4091printf %s "checking whether the compiler supports GNU C... " >&6; }
4092if test ${ac_cv_c_compiler_gnu+y}
4093then :
4094  printf %s "(cached) " >&6
4095else case e in #(
4096  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h.  */
4098
4099int
4100main (void)
4101{
4102#ifndef __GNUC__
4103       choke me
4104#endif
4105
4106  ;
4107  return 0;
4108}
4109_ACEOF
4110if ac_fn_c_try_compile "$LINENO"
4111then :
4112  ac_compiler_gnu=yes
4113else case e in #(
4114  e) ac_compiler_gnu=no ;;
4115esac
4116fi
4117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4118ac_cv_c_compiler_gnu=$ac_compiler_gnu
4119 ;;
4120esac
4121fi
4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4123printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4124ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125
4126if test $ac_compiler_gnu = yes; then
4127  GCC=yes
4128else
4129  GCC=
4130fi
4131ac_test_CFLAGS=${CFLAGS+y}
4132ac_save_CFLAGS=$CFLAGS
4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4134printf %s "checking whether $CC accepts -g... " >&6; }
4135if test ${ac_cv_prog_cc_g+y}
4136then :
4137  printf %s "(cached) " >&6
4138else case e in #(
4139  e) ac_save_c_werror_flag=$ac_c_werror_flag
4140   ac_c_werror_flag=yes
4141   ac_cv_prog_cc_g=no
4142   CFLAGS="-g"
4143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h.  */
4145
4146int
4147main (void)
4148{
4149
4150  ;
4151  return 0;
4152}
4153_ACEOF
4154if ac_fn_c_try_compile "$LINENO"
4155then :
4156  ac_cv_prog_cc_g=yes
4157else case e in #(
4158  e) CFLAGS=""
4159      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h.  */
4161
4162int
4163main (void)
4164{
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170if ac_fn_c_try_compile "$LINENO"
4171then :
4172
4173else case e in #(
4174  e) ac_c_werror_flag=$ac_save_c_werror_flag
4175	 CFLAGS="-g"
4176	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177/* end confdefs.h.  */
4178
4179int
4180main (void)
4181{
4182
4183  ;
4184  return 0;
4185}
4186_ACEOF
4187if ac_fn_c_try_compile "$LINENO"
4188then :
4189  ac_cv_prog_cc_g=yes
4190fi
4191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4192esac
4193fi
4194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4195esac
4196fi
4197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4198   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4199esac
4200fi
4201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4202printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4203if test $ac_test_CFLAGS; then
4204  CFLAGS=$ac_save_CFLAGS
4205elif test $ac_cv_prog_cc_g = yes; then
4206  if test "$GCC" = yes; then
4207    CFLAGS="-g -O2"
4208  else
4209    CFLAGS="-g"
4210  fi
4211else
4212  if test "$GCC" = yes; then
4213    CFLAGS="-O2"
4214  else
4215    CFLAGS=
4216  fi
4217fi
4218ac_prog_cc_stdc=no
4219if test x$ac_prog_cc_stdc = xno
4220then :
4221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4222printf %s "checking for $CC option to enable C11 features... " >&6; }
4223if test ${ac_cv_prog_cc_c11+y}
4224then :
4225  printf %s "(cached) " >&6
4226else case e in #(
4227  e) ac_cv_prog_cc_c11=no
4228ac_save_CC=$CC
4229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231$ac_c_conftest_c11_program
4232_ACEOF
4233for ac_arg in '' -std=gnu11
4234do
4235  CC="$ac_save_CC $ac_arg"
4236  if ac_fn_c_try_compile "$LINENO"
4237then :
4238  ac_cv_prog_cc_c11=$ac_arg
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.beam
4241  test "x$ac_cv_prog_cc_c11" != "xno" && break
4242done
4243rm -f conftest.$ac_ext
4244CC=$ac_save_CC ;;
4245esac
4246fi
4247
4248if test "x$ac_cv_prog_cc_c11" = xno
4249then :
4250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4251printf "%s\n" "unsupported" >&6; }
4252else case e in #(
4253  e) if test "x$ac_cv_prog_cc_c11" = x
4254then :
4255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4256printf "%s\n" "none needed" >&6; }
4257else case e in #(
4258  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4259printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4260     CC="$CC $ac_cv_prog_cc_c11" ;;
4261esac
4262fi
4263  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4264  ac_prog_cc_stdc=c11 ;;
4265esac
4266fi
4267fi
4268if test x$ac_prog_cc_stdc = xno
4269then :
4270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4271printf %s "checking for $CC option to enable C99 features... " >&6; }
4272if test ${ac_cv_prog_cc_c99+y}
4273then :
4274  printf %s "(cached) " >&6
4275else case e in #(
4276  e) ac_cv_prog_cc_c99=no
4277ac_save_CC=$CC
4278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h.  */
4280$ac_c_conftest_c99_program
4281_ACEOF
4282for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4283do
4284  CC="$ac_save_CC $ac_arg"
4285  if ac_fn_c_try_compile "$LINENO"
4286then :
4287  ac_cv_prog_cc_c99=$ac_arg
4288fi
4289rm -f core conftest.err conftest.$ac_objext conftest.beam
4290  test "x$ac_cv_prog_cc_c99" != "xno" && break
4291done
4292rm -f conftest.$ac_ext
4293CC=$ac_save_CC ;;
4294esac
4295fi
4296
4297if test "x$ac_cv_prog_cc_c99" = xno
4298then :
4299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300printf "%s\n" "unsupported" >&6; }
4301else case e in #(
4302  e) if test "x$ac_cv_prog_cc_c99" = x
4303then :
4304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305printf "%s\n" "none needed" >&6; }
4306else case e in #(
4307  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4308printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4309     CC="$CC $ac_cv_prog_cc_c99" ;;
4310esac
4311fi
4312  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4313  ac_prog_cc_stdc=c99 ;;
4314esac
4315fi
4316fi
4317if test x$ac_prog_cc_stdc = xno
4318then :
4319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4320printf %s "checking for $CC option to enable C89 features... " >&6; }
4321if test ${ac_cv_prog_cc_c89+y}
4322then :
4323  printf %s "(cached) " >&6
4324else case e in #(
4325  e) ac_cv_prog_cc_c89=no
4326ac_save_CC=$CC
4327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328/* end confdefs.h.  */
4329$ac_c_conftest_c89_program
4330_ACEOF
4331for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4332do
4333  CC="$ac_save_CC $ac_arg"
4334  if ac_fn_c_try_compile "$LINENO"
4335then :
4336  ac_cv_prog_cc_c89=$ac_arg
4337fi
4338rm -f core conftest.err conftest.$ac_objext conftest.beam
4339  test "x$ac_cv_prog_cc_c89" != "xno" && break
4340done
4341rm -f conftest.$ac_ext
4342CC=$ac_save_CC ;;
4343esac
4344fi
4345
4346if test "x$ac_cv_prog_cc_c89" = xno
4347then :
4348  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4349printf "%s\n" "unsupported" >&6; }
4350else case e in #(
4351  e) if test "x$ac_cv_prog_cc_c89" = x
4352then :
4353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354printf "%s\n" "none needed" >&6; }
4355else case e in #(
4356  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4357printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4358     CC="$CC $ac_cv_prog_cc_c89" ;;
4359esac
4360fi
4361  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4362  ac_prog_cc_stdc=c89 ;;
4363esac
4364fi
4365fi
4366
4367ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
4373
4374  ac_ext=c
4375ac_cpp='$CPP $CPPFLAGS'
4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4380printf %s "checking whether $CC understands -c and -o together... " >&6; }
4381if test ${am_cv_prog_cc_c_o+y}
4382then :
4383  printf %s "(cached) " >&6
4384else case e in #(
4385  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h.  */
4387
4388int
4389main (void)
4390{
4391
4392  ;
4393  return 0;
4394}
4395_ACEOF
4396  # Make sure it works both with $CC and with simple cc.
4397  # Following AC_PROG_CC_C_O, we do the test twice because some
4398  # compilers refuse to overwrite an existing .o file with -o,
4399  # though they will create one.
4400  am_cv_prog_cc_c_o=yes
4401  for am_i in 1 2; do
4402    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4403   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } \
4407         && test -f conftest2.$ac_objext; then
4408      : OK
4409    else
4410      am_cv_prog_cc_c_o=no
4411      break
4412    fi
4413  done
4414  rm -f core conftest*
4415  unset am_i ;;
4416esac
4417fi
4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4419printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4420if test "$am_cv_prog_cc_c_o" != yes; then
4421   # Losing compiler, so override with the script.
4422   # FIXME: It is wrong to rewrite CC.
4423   # But if we don't then we get into trouble of one sort or another.
4424   # A longer-term fix would be to have automake use am__CC in this case,
4425   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4426   CC="$am_aux_dir/compile $CC"
4427fi
4428ac_ext=c
4429ac_cpp='$CPP $CPPFLAGS'
4430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433
4434
4435depcc="$CC"   am_compiler_list=
4436
4437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4438printf %s "checking dependency style of $depcc... " >&6; }
4439if test ${am_cv_CC_dependencies_compiler_type+y}
4440then :
4441  printf %s "(cached) " >&6
4442else case e in #(
4443  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4444  # We make a subdir and do the tests there.  Otherwise we can end up
4445  # making bogus files that we don't know about and never remove.  For
4446  # instance it was reported that on HP-UX the gcc test will end up
4447  # making a dummy file named 'D' -- because '-MD' means "put the output
4448  # in D".
4449  rm -rf conftest.dir
4450  mkdir conftest.dir
4451  # Copy depcomp to subdir because otherwise we won't find it if we're
4452  # using a relative directory.
4453  cp "$am_depcomp" conftest.dir
4454  cd conftest.dir
4455  # We will build objects and dependencies in a subdirectory because
4456  # it helps to detect inapplicable dependency modes.  For instance
4457  # both Tru64's cc and ICC support -MD to output dependencies as a
4458  # side effect of compilation, but ICC will put the dependencies in
4459  # the current directory while Tru64 will put them in the object
4460  # directory.
4461  mkdir sub
4462
4463  am_cv_CC_dependencies_compiler_type=none
4464  if test "$am_compiler_list" = ""; then
4465     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4466  fi
4467  am__universal=false
4468  case " $depcc " in #(
4469     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4470     esac
4471
4472  for depmode in $am_compiler_list; do
4473    # Setup a source with many dependencies, because some compilers
4474    # like to wrap large dependency lists on column 80 (with \), and
4475    # we should not choose a depcomp mode which is confused by this.
4476    #
4477    # We need to recreate these files for each test, as the compiler may
4478    # overwrite some of them when testing with obscure command lines.
4479    # This happens at least with the AIX C compiler.
4480    : > sub/conftest.c
4481    for i in 1 2 3 4 5 6; do
4482      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4483      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4484      # Solaris 10 /bin/sh.
4485      echo '/* dummy */' > sub/conftst$i.h
4486    done
4487    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4488
4489    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4490    # mode.  It turns out that the SunPro C++ compiler does not properly
4491    # handle '-M -o', and we need to detect this.  Also, some Intel
4492    # versions had trouble with output in subdirs.
4493    am__obj=sub/conftest.${OBJEXT-o}
4494    am__minus_obj="-o $am__obj"
4495    case $depmode in
4496    gcc)
4497      # This depmode causes a compiler race in universal mode.
4498      test "$am__universal" = false || continue
4499      ;;
4500    nosideeffect)
4501      # After this tag, mechanisms are not by side-effect, so they'll
4502      # only be used when explicitly requested.
4503      if test "x$enable_dependency_tracking" = xyes; then
4504	continue
4505      else
4506	break
4507      fi
4508      ;;
4509    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4510      # This compiler won't grok '-c -o', but also, the minuso test has
4511      # not run yet.  These depmodes are late enough in the game, and
4512      # so weak that their functioning should not be impacted.
4513      am__obj=conftest.${OBJEXT-o}
4514      am__minus_obj=
4515      ;;
4516    none) break ;;
4517    esac
4518    if depmode=$depmode \
4519       source=sub/conftest.c object=$am__obj \
4520       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4521       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4522         >/dev/null 2>conftest.err &&
4523       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4524       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4525       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4526       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4527      # icc doesn't choke on unknown options, it will just issue warnings
4528      # or remarks (even with -Werror).  So we grep stderr for any message
4529      # that says an option was ignored or not supported.
4530      # When given -MP, icc 7.0 and 7.1 complain thusly:
4531      #   icc: Command line warning: ignoring option '-M'; no argument required
4532      # The diagnosis changed in icc 8.0:
4533      #   icc: Command line remark: option '-MP' not supported
4534      if (grep 'ignoring option' conftest.err ||
4535          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4536        am_cv_CC_dependencies_compiler_type=$depmode
4537        break
4538      fi
4539    fi
4540  done
4541
4542  cd ..
4543  rm -rf conftest.dir
4544else
4545  am_cv_CC_dependencies_compiler_type=none
4546fi
4547 ;;
4548esac
4549fi
4550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4551printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4552CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4553
4554 if
4555  test "x$enable_dependency_tracking" != xno \
4556  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4557  am__fastdepCC_TRUE=
4558  am__fastdepCC_FALSE='#'
4559else
4560  am__fastdepCC_TRUE='#'
4561  am__fastdepCC_FALSE=
4562fi
4563
4564
4565
4566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4567printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4568if test ${ac_cv_c_undeclared_builtin_options+y}
4569then :
4570  printf %s "(cached) " >&6
4571else case e in #(
4572  e) ac_save_CFLAGS=$CFLAGS
4573   ac_cv_c_undeclared_builtin_options='cannot detect'
4574   for ac_arg in '' -fno-builtin; do
4575     CFLAGS="$ac_save_CFLAGS $ac_arg"
4576     # This test program should *not* compile successfully.
4577     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578/* end confdefs.h.  */
4579
4580int
4581main (void)
4582{
4583(void) strchr;
4584  ;
4585  return 0;
4586}
4587_ACEOF
4588if ac_fn_c_try_compile "$LINENO"
4589then :
4590
4591else case e in #(
4592  e) # This test program should compile successfully.
4593        # No library function is consistently available on
4594        # freestanding implementations, so test against a dummy
4595        # declaration.  Include always-available headers on the
4596        # off chance that they somehow elicit warnings.
4597        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598/* end confdefs.h.  */
4599#include <float.h>
4600#include <limits.h>
4601#include <stdarg.h>
4602#include <stddef.h>
4603extern void ac_decl (int, char *);
4604
4605int
4606main (void)
4607{
4608(void) ac_decl (0, (char *) 0);
4609  (void) ac_decl;
4610
4611  ;
4612  return 0;
4613}
4614_ACEOF
4615if ac_fn_c_try_compile "$LINENO"
4616then :
4617  if test x"$ac_arg" = x
4618then :
4619  ac_cv_c_undeclared_builtin_options='none needed'
4620else case e in #(
4621  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4622esac
4623fi
4624          break
4625fi
4626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4627esac
4628fi
4629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4630    done
4631    CFLAGS=$ac_save_CFLAGS
4632   ;;
4633esac
4634fi
4635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4636printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4637  case $ac_cv_c_undeclared_builtin_options in #(
4638  'cannot detect') :
4639    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4640printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4641as_fn_error $? "cannot make $CC report undeclared builtins
4642See 'config.log' for more details" "$LINENO" 5; } ;; #(
4643  'none needed') :
4644    ac_c_undeclared_builtin_options='' ;; #(
4645  *) :
4646    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4647esac
4648
4649ac_header= ac_cache=
4650for ac_item in $ac_header_c_list
4651do
4652  if test $ac_cache; then
4653    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4654    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4655      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4656    fi
4657    ac_header= ac_cache=
4658  elif test $ac_header; then
4659    ac_cache=$ac_item
4660  else
4661    ac_header=$ac_item
4662  fi
4663done
4664
4665
4666
4667
4668
4669
4670
4671
4672if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4673then :
4674
4675printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4676
4677fi
4678
4679
4680
4681
4682ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4683if test "x$ac_cv_have_decl___clang__" = xyes
4684then :
4685  CLANGCC="yes"
4686else case e in #(
4687  e) CLANGCC="no" ;;
4688esac
4689fi
4690ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4691if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4692then :
4693  INTELCC="yes"
4694else case e in #(
4695  e) INTELCC="no" ;;
4696esac
4697fi
4698ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4699if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4700then :
4701  SUNCC="yes"
4702else case e in #(
4703  e) SUNCC="no" ;;
4704esac
4705fi
4706
4707
4708
4709
4710
4711
4712
4713
4714if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4715	if test -n "$ac_tool_prefix"; then
4716  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4717set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719printf %s "checking for $ac_word... " >&6; }
4720if test ${ac_cv_path_PKG_CONFIG+y}
4721then :
4722  printf %s "(cached) " >&6
4723else case e in #(
4724  e) case $PKG_CONFIG in
4725  [\\/]* | ?:[\\/]*)
4726  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4727  ;;
4728  *)
4729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732  IFS=$as_save_IFS
4733  case $as_dir in #(((
4734    '') as_dir=./ ;;
4735    */) ;;
4736    *) as_dir=$as_dir/ ;;
4737  esac
4738    for ac_exec_ext in '' $ac_executable_extensions; do
4739  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4740    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4741    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4742    break 2
4743  fi
4744done
4745  done
4746IFS=$as_save_IFS
4747
4748  ;;
4749esac ;;
4750esac
4751fi
4752PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4753if test -n "$PKG_CONFIG"; then
4754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4755printf "%s\n" "$PKG_CONFIG" >&6; }
4756else
4757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758printf "%s\n" "no" >&6; }
4759fi
4760
4761
4762fi
4763if test -z "$ac_cv_path_PKG_CONFIG"; then
4764  ac_pt_PKG_CONFIG=$PKG_CONFIG
4765  # Extract the first word of "pkg-config", so it can be a program name with args.
4766set dummy pkg-config; ac_word=$2
4767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768printf %s "checking for $ac_word... " >&6; }
4769if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4770then :
4771  printf %s "(cached) " >&6
4772else case e in #(
4773  e) case $ac_pt_PKG_CONFIG in
4774  [\\/]* | ?:[\\/]*)
4775  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4776  ;;
4777  *)
4778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781  IFS=$as_save_IFS
4782  case $as_dir in #(((
4783    '') as_dir=./ ;;
4784    */) ;;
4785    *) as_dir=$as_dir/ ;;
4786  esac
4787    for ac_exec_ext in '' $ac_executable_extensions; do
4788  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4789    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4790    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4791    break 2
4792  fi
4793done
4794  done
4795IFS=$as_save_IFS
4796
4797  ;;
4798esac ;;
4799esac
4800fi
4801ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4802if test -n "$ac_pt_PKG_CONFIG"; then
4803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4804printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4805else
4806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807printf "%s\n" "no" >&6; }
4808fi
4809
4810  if test "x$ac_pt_PKG_CONFIG" = x; then
4811    PKG_CONFIG=""
4812  else
4813    case $cross_compiling:$ac_tool_warned in
4814yes:)
4815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817ac_tool_warned=yes ;;
4818esac
4819    PKG_CONFIG=$ac_pt_PKG_CONFIG
4820  fi
4821else
4822  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4823fi
4824
4825fi
4826if test -n "$PKG_CONFIG"; then
4827	_pkg_min_version=0.9.0
4828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4829printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4830	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4832printf "%s\n" "yes" >&6; }
4833	else
4834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835printf "%s\n" "no" >&6; }
4836		PKG_CONFIG=""
4837	fi
4838fi
4839
4840
4841  # Make sure we can run config.sub.
4842$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4843  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4844
4845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4846printf %s "checking build system type... " >&6; }
4847if test ${ac_cv_build+y}
4848then :
4849  printf %s "(cached) " >&6
4850else case e in #(
4851  e) ac_build_alias=$build_alias
4852test "x$ac_build_alias" = x &&
4853  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4854test "x$ac_build_alias" = x &&
4855  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4856ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4857  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4858 ;;
4859esac
4860fi
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4862printf "%s\n" "$ac_cv_build" >&6; }
4863case $ac_cv_build in
4864*-*-*) ;;
4865*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4866esac
4867build=$ac_cv_build
4868ac_save_IFS=$IFS; IFS='-'
4869set x $ac_cv_build
4870shift
4871build_cpu=$1
4872build_vendor=$2
4873shift; shift
4874# Remember, the first character of IFS is used to create $*,
4875# except with old shells:
4876build_os=$*
4877IFS=$ac_save_IFS
4878case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4879
4880
4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4882printf %s "checking host system type... " >&6; }
4883if test ${ac_cv_host+y}
4884then :
4885  printf %s "(cached) " >&6
4886else case e in #(
4887  e) if test "x$host_alias" = x; then
4888  ac_cv_host=$ac_cv_build
4889else
4890  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4891    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4892fi
4893 ;;
4894esac
4895fi
4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4897printf "%s\n" "$ac_cv_host" >&6; }
4898case $ac_cv_host in
4899*-*-*) ;;
4900*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4901esac
4902host=$ac_cv_host
4903ac_save_IFS=$IFS; IFS='-'
4904set x $ac_cv_host
4905shift
4906host_cpu=$1
4907host_vendor=$2
4908shift; shift
4909# Remember, the first character of IFS is used to create $*,
4910# except with old shells:
4911host_os=$*
4912IFS=$ac_save_IFS
4913case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4914
4915
4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4917printf %s "checking for a sed that does not truncate output... " >&6; }
4918if test ${ac_cv_path_SED+y}
4919then :
4920  printf %s "(cached) " >&6
4921else case e in #(
4922  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4923     for ac_i in 1 2 3 4 5 6 7; do
4924       ac_script="$ac_script$as_nl$ac_script"
4925     done
4926     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4927     { ac_script=; unset ac_script;}
4928     if test -z "$SED"; then
4929  ac_path_SED_found=false
4930  # Loop through the user's path and test for each of PROGNAME-LIST
4931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932for as_dir in $PATH
4933do
4934  IFS=$as_save_IFS
4935  case $as_dir in #(((
4936    '') as_dir=./ ;;
4937    */) ;;
4938    *) as_dir=$as_dir/ ;;
4939  esac
4940    for ac_prog in sed gsed
4941   do
4942    for ac_exec_ext in '' $ac_executable_extensions; do
4943      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4944      as_fn_executable_p "$ac_path_SED" || continue
4945# Check for GNU ac_path_SED and select it if it is found.
4946  # Check for GNU $ac_path_SED
4947case `"$ac_path_SED" --version 2>&1` in #(
4948*GNU*)
4949  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4950#(
4951*)
4952  ac_count=0
4953  printf %s 0123456789 >"conftest.in"
4954  while :
4955  do
4956    cat "conftest.in" "conftest.in" >"conftest.tmp"
4957    mv "conftest.tmp" "conftest.in"
4958    cp "conftest.in" "conftest.nl"
4959    printf "%s\n" '' >> "conftest.nl"
4960    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962    as_fn_arith $ac_count + 1 && ac_count=$as_val
4963    if test $ac_count -gt ${ac_path_SED_max-0}; then
4964      # Best one so far, save it but keep looking for a better one
4965      ac_cv_path_SED="$ac_path_SED"
4966      ac_path_SED_max=$ac_count
4967    fi
4968    # 10*(2^10) chars as input seems more than enough
4969    test $ac_count -gt 10 && break
4970  done
4971  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972esac
4973
4974      $ac_path_SED_found && break 3
4975    done
4976  done
4977  done
4978IFS=$as_save_IFS
4979  if test -z "$ac_cv_path_SED"; then
4980    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4981  fi
4982else
4983  ac_cv_path_SED=$SED
4984fi
4985 ;;
4986esac
4987fi
4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4989printf "%s\n" "$ac_cv_path_SED" >&6; }
4990 SED="$ac_cv_path_SED"
4991  rm -f conftest.sed
4992
4993
4994
4995
4996
4997
4998# Check whether --enable-selective-werror was given.
4999if test ${enable_selective_werror+y}
5000then :
5001  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5002else case e in #(
5003  e) SELECTIVE_WERROR=yes ;;
5004esac
5005fi
5006
5007
5008
5009
5010
5011# -v is too short to test reliably with XORG_TESTSET_CFLAG
5012if test "x$SUNCC" = "xyes"; then
5013    BASE_CFLAGS="-v"
5014else
5015    BASE_CFLAGS=""
5016fi
5017
5018# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032xorg_testset_save_CFLAGS="$CFLAGS"
5033
5034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5038if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5039then :
5040  printf %s "(cached) " >&6
5041else case e in #(
5042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043/* end confdefs.h.  */
5044int i;
5045_ACEOF
5046if ac_fn_c_try_compile "$LINENO"
5047then :
5048  xorg_cv_cc_flag_unknown_warning_option=yes
5049else case e in #(
5050  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5051esac
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5054esac
5055fi
5056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5059	CFLAGS="$xorg_testset_save_CFLAGS"
5060fi
5061
5062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5065	fi
5066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5069if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5070then :
5071  printf %s "(cached) " >&6
5072else case e in #(
5073  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h.  */
5075int i;
5076_ACEOF
5077if ac_fn_c_try_compile "$LINENO"
5078then :
5079  xorg_cv_cc_flag_unused_command_line_argument=yes
5080else case e in #(
5081  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5082esac
5083fi
5084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5085esac
5086fi
5087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5090	CFLAGS="$xorg_testset_save_CFLAGS"
5091fi
5092
5093found="no"
5094
5095	if test $found = "no" ; then
5096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098		fi
5099
5100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5102		fi
5103
5104		CFLAGS="$CFLAGS -Wall"
5105
5106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5107printf %s "checking if $CC supports -Wall... " >&6; }
5108		cacheid=xorg_cv_cc_flag__Wall
5109		if eval test \${$cacheid+y}
5110then :
5111  printf %s "(cached) " >&6
5112else case e in #(
5113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h.  */
5115int i;
5116int
5117main (void)
5118{
5119
5120  ;
5121  return 0;
5122}
5123_ACEOF
5124if ac_fn_c_try_link "$LINENO"
5125then :
5126  eval $cacheid=yes
5127else case e in #(
5128  e) eval $cacheid=no ;;
5129esac
5130fi
5131rm -f core conftest.err conftest.$ac_objext conftest.beam \
5132    conftest$ac_exeext conftest.$ac_ext ;;
5133esac
5134fi
5135
5136
5137		CFLAGS="$xorg_testset_save_CFLAGS"
5138
5139		eval supported=\$$cacheid
5140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5141printf "%s\n" "$supported" >&6; }
5142		if test "$supported" = "yes" ; then
5143			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5144			found="yes"
5145		fi
5146	fi
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162xorg_testset_save_CFLAGS="$CFLAGS"
5163
5164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5167printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5168if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5169then :
5170  printf %s "(cached) " >&6
5171else case e in #(
5172  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174int i;
5175_ACEOF
5176if ac_fn_c_try_compile "$LINENO"
5177then :
5178  xorg_cv_cc_flag_unknown_warning_option=yes
5179else case e in #(
5180  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5181esac
5182fi
5183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5184esac
5185fi
5186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5189	CFLAGS="$xorg_testset_save_CFLAGS"
5190fi
5191
5192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195	fi
5196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5199if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5200then :
5201  printf %s "(cached) " >&6
5202else case e in #(
5203  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h.  */
5205int i;
5206_ACEOF
5207if ac_fn_c_try_compile "$LINENO"
5208then :
5209  xorg_cv_cc_flag_unused_command_line_argument=yes
5210else case e in #(
5211  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5212esac
5213fi
5214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5215esac
5216fi
5217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5220	CFLAGS="$xorg_testset_save_CFLAGS"
5221fi
5222
5223found="no"
5224
5225	if test $found = "no" ; then
5226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5228		fi
5229
5230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232		fi
5233
5234		CFLAGS="$CFLAGS -Wpointer-arith"
5235
5236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5237printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5238		cacheid=xorg_cv_cc_flag__Wpointer_arith
5239		if eval test \${$cacheid+y}
5240then :
5241  printf %s "(cached) " >&6
5242else case e in #(
5243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h.  */
5245int i;
5246int
5247main (void)
5248{
5249
5250  ;
5251  return 0;
5252}
5253_ACEOF
5254if ac_fn_c_try_link "$LINENO"
5255then :
5256  eval $cacheid=yes
5257else case e in #(
5258  e) eval $cacheid=no ;;
5259esac
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.beam \
5262    conftest$ac_exeext conftest.$ac_ext ;;
5263esac
5264fi
5265
5266
5267		CFLAGS="$xorg_testset_save_CFLAGS"
5268
5269		eval supported=\$$cacheid
5270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5271printf "%s\n" "$supported" >&6; }
5272		if test "$supported" = "yes" ; then
5273			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5274			found="yes"
5275		fi
5276	fi
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292xorg_testset_save_CFLAGS="$CFLAGS"
5293
5294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5297printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5298if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5299then :
5300  printf %s "(cached) " >&6
5301else case e in #(
5302  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303/* end confdefs.h.  */
5304int i;
5305_ACEOF
5306if ac_fn_c_try_compile "$LINENO"
5307then :
5308  xorg_cv_cc_flag_unknown_warning_option=yes
5309else case e in #(
5310  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5311esac
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5314esac
5315fi
5316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5319	CFLAGS="$xorg_testset_save_CFLAGS"
5320fi
5321
5322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325	fi
5326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5329if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5330then :
5331  printf %s "(cached) " >&6
5332else case e in #(
5333  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335int i;
5336_ACEOF
5337if ac_fn_c_try_compile "$LINENO"
5338then :
5339  xorg_cv_cc_flag_unused_command_line_argument=yes
5340else case e in #(
5341  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5342esac
5343fi
5344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5345esac
5346fi
5347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5350	CFLAGS="$xorg_testset_save_CFLAGS"
5351fi
5352
5353found="no"
5354
5355	if test $found = "no" ; then
5356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358		fi
5359
5360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5362		fi
5363
5364		CFLAGS="$CFLAGS -Wmissing-declarations"
5365
5366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5367printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5368		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5369		if eval test \${$cacheid+y}
5370then :
5371  printf %s "(cached) " >&6
5372else case e in #(
5373  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375int i;
5376int
5377main (void)
5378{
5379
5380  ;
5381  return 0;
5382}
5383_ACEOF
5384if ac_fn_c_try_link "$LINENO"
5385then :
5386  eval $cacheid=yes
5387else case e in #(
5388  e) eval $cacheid=no ;;
5389esac
5390fi
5391rm -f core conftest.err conftest.$ac_objext conftest.beam \
5392    conftest$ac_exeext conftest.$ac_ext ;;
5393esac
5394fi
5395
5396
5397		CFLAGS="$xorg_testset_save_CFLAGS"
5398
5399		eval supported=\$$cacheid
5400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5401printf "%s\n" "$supported" >&6; }
5402		if test "$supported" = "yes" ; then
5403			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5404			found="yes"
5405		fi
5406	fi
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422xorg_testset_save_CFLAGS="$CFLAGS"
5423
5424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5427printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5428if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5429then :
5430  printf %s "(cached) " >&6
5431else case e in #(
5432  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h.  */
5434int i;
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"
5437then :
5438  xorg_cv_cc_flag_unknown_warning_option=yes
5439else case e in #(
5440  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5441esac
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5444esac
5445fi
5446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5449	CFLAGS="$xorg_testset_save_CFLAGS"
5450fi
5451
5452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455	fi
5456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5460then :
5461  printf %s "(cached) " >&6
5462else case e in #(
5463  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h.  */
5465int i;
5466_ACEOF
5467if ac_fn_c_try_compile "$LINENO"
5468then :
5469  xorg_cv_cc_flag_unused_command_line_argument=yes
5470else case e in #(
5471  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5472esac
5473fi
5474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5475esac
5476fi
5477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5478printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5480	CFLAGS="$xorg_testset_save_CFLAGS"
5481fi
5482
5483found="no"
5484
5485	if test $found = "no" ; then
5486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488		fi
5489
5490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5492		fi
5493
5494		CFLAGS="$CFLAGS -Wformat=2"
5495
5496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5497printf %s "checking if $CC supports -Wformat=2... " >&6; }
5498		cacheid=xorg_cv_cc_flag__Wformat_2
5499		if eval test \${$cacheid+y}
5500then :
5501  printf %s "(cached) " >&6
5502else case e in #(
5503  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504/* end confdefs.h.  */
5505int i;
5506int
5507main (void)
5508{
5509
5510  ;
5511  return 0;
5512}
5513_ACEOF
5514if ac_fn_c_try_link "$LINENO"
5515then :
5516  eval $cacheid=yes
5517else case e in #(
5518  e) eval $cacheid=no ;;
5519esac
5520fi
5521rm -f core conftest.err conftest.$ac_objext conftest.beam \
5522    conftest$ac_exeext conftest.$ac_ext ;;
5523esac
5524fi
5525
5526
5527		CFLAGS="$xorg_testset_save_CFLAGS"
5528
5529		eval supported=\$$cacheid
5530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5531printf "%s\n" "$supported" >&6; }
5532		if test "$supported" = "yes" ; then
5533			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5534			found="yes"
5535		fi
5536	fi
5537
5538	if test $found = "no" ; then
5539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541		fi
5542
5543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545		fi
5546
5547		CFLAGS="$CFLAGS -Wformat"
5548
5549		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5550printf %s "checking if $CC supports -Wformat... " >&6; }
5551		cacheid=xorg_cv_cc_flag__Wformat
5552		if eval test \${$cacheid+y}
5553then :
5554  printf %s "(cached) " >&6
5555else case e in #(
5556  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558int i;
5559int
5560main (void)
5561{
5562
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567if ac_fn_c_try_link "$LINENO"
5568then :
5569  eval $cacheid=yes
5570else case e in #(
5571  e) eval $cacheid=no ;;
5572esac
5573fi
5574rm -f core conftest.err conftest.$ac_objext conftest.beam \
5575    conftest$ac_exeext conftest.$ac_ext ;;
5576esac
5577fi
5578
5579
5580		CFLAGS="$xorg_testset_save_CFLAGS"
5581
5582		eval supported=\$$cacheid
5583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5584printf "%s\n" "$supported" >&6; }
5585		if test "$supported" = "yes" ; then
5586			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5587			found="yes"
5588		fi
5589	fi
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607xorg_testset_save_CFLAGS="$CFLAGS"
5608
5609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5613if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5614then :
5615  printf %s "(cached) " >&6
5616else case e in #(
5617  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618/* end confdefs.h.  */
5619int i;
5620_ACEOF
5621if ac_fn_c_try_compile "$LINENO"
5622then :
5623  xorg_cv_cc_flag_unknown_warning_option=yes
5624else case e in #(
5625  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5626esac
5627fi
5628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5629esac
5630fi
5631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5634	CFLAGS="$xorg_testset_save_CFLAGS"
5635fi
5636
5637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640	fi
5641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5644if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5645then :
5646  printf %s "(cached) " >&6
5647else case e in #(
5648  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650int i;
5651_ACEOF
5652if ac_fn_c_try_compile "$LINENO"
5653then :
5654  xorg_cv_cc_flag_unused_command_line_argument=yes
5655else case e in #(
5656  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5657esac
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5660esac
5661fi
5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665	CFLAGS="$xorg_testset_save_CFLAGS"
5666fi
5667
5668found="no"
5669
5670	if test $found = "no" ; then
5671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673		fi
5674
5675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677		fi
5678
5679		CFLAGS="$CFLAGS -Wstrict-prototypes"
5680
5681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5682printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5683		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5684		if eval test \${$cacheid+y}
5685then :
5686  printf %s "(cached) " >&6
5687else case e in #(
5688  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h.  */
5690int i;
5691int
5692main (void)
5693{
5694
5695  ;
5696  return 0;
5697}
5698_ACEOF
5699if ac_fn_c_try_link "$LINENO"
5700then :
5701  eval $cacheid=yes
5702else case e in #(
5703  e) eval $cacheid=no ;;
5704esac
5705fi
5706rm -f core conftest.err conftest.$ac_objext conftest.beam \
5707    conftest$ac_exeext conftest.$ac_ext ;;
5708esac
5709fi
5710
5711
5712		CFLAGS="$xorg_testset_save_CFLAGS"
5713
5714		eval supported=\$$cacheid
5715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5716printf "%s\n" "$supported" >&6; }
5717		if test "$supported" = "yes" ; then
5718			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5719			found="yes"
5720		fi
5721	fi
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737xorg_testset_save_CFLAGS="$CFLAGS"
5738
5739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5743if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5744then :
5745  printf %s "(cached) " >&6
5746else case e in #(
5747  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h.  */
5749int i;
5750_ACEOF
5751if ac_fn_c_try_compile "$LINENO"
5752then :
5753  xorg_cv_cc_flag_unknown_warning_option=yes
5754else case e in #(
5755  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5756esac
5757fi
5758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5759esac
5760fi
5761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764	CFLAGS="$xorg_testset_save_CFLAGS"
5765fi
5766
5767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770	fi
5771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5775then :
5776  printf %s "(cached) " >&6
5777else case e in #(
5778  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780int i;
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"
5783then :
5784  xorg_cv_cc_flag_unused_command_line_argument=yes
5785else case e in #(
5786  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5787esac
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5790esac
5791fi
5792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5795	CFLAGS="$xorg_testset_save_CFLAGS"
5796fi
5797
5798found="no"
5799
5800	if test $found = "no" ; then
5801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803		fi
5804
5805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5807		fi
5808
5809		CFLAGS="$CFLAGS -Wmissing-prototypes"
5810
5811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5812printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5813		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5814		if eval test \${$cacheid+y}
5815then :
5816  printf %s "(cached) " >&6
5817else case e in #(
5818  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819/* end confdefs.h.  */
5820int i;
5821int
5822main (void)
5823{
5824
5825  ;
5826  return 0;
5827}
5828_ACEOF
5829if ac_fn_c_try_link "$LINENO"
5830then :
5831  eval $cacheid=yes
5832else case e in #(
5833  e) eval $cacheid=no ;;
5834esac
5835fi
5836rm -f core conftest.err conftest.$ac_objext conftest.beam \
5837    conftest$ac_exeext conftest.$ac_ext ;;
5838esac
5839fi
5840
5841
5842		CFLAGS="$xorg_testset_save_CFLAGS"
5843
5844		eval supported=\$$cacheid
5845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5846printf "%s\n" "$supported" >&6; }
5847		if test "$supported" = "yes" ; then
5848			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5849			found="yes"
5850		fi
5851	fi
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867xorg_testset_save_CFLAGS="$CFLAGS"
5868
5869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5870	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5873if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5874then :
5875  printf %s "(cached) " >&6
5876else case e in #(
5877  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879int i;
5880_ACEOF
5881if ac_fn_c_try_compile "$LINENO"
5882then :
5883  xorg_cv_cc_flag_unknown_warning_option=yes
5884else case e in #(
5885  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5886esac
5887fi
5888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5889esac
5890fi
5891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5893	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5894	CFLAGS="$xorg_testset_save_CFLAGS"
5895fi
5896
5897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5898	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5899		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5900	fi
5901	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5904if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5905then :
5906  printf %s "(cached) " >&6
5907else case e in #(
5908  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h.  */
5910int i;
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"
5913then :
5914  xorg_cv_cc_flag_unused_command_line_argument=yes
5915else case e in #(
5916  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5917esac
5918fi
5919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5920esac
5921fi
5922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5925	CFLAGS="$xorg_testset_save_CFLAGS"
5926fi
5927
5928found="no"
5929
5930	if test $found = "no" ; then
5931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5933		fi
5934
5935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5937		fi
5938
5939		CFLAGS="$CFLAGS -Wnested-externs"
5940
5941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5942printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5943		cacheid=xorg_cv_cc_flag__Wnested_externs
5944		if eval test \${$cacheid+y}
5945then :
5946  printf %s "(cached) " >&6
5947else case e in #(
5948  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949/* end confdefs.h.  */
5950int i;
5951int
5952main (void)
5953{
5954
5955  ;
5956  return 0;
5957}
5958_ACEOF
5959if ac_fn_c_try_link "$LINENO"
5960then :
5961  eval $cacheid=yes
5962else case e in #(
5963  e) eval $cacheid=no ;;
5964esac
5965fi
5966rm -f core conftest.err conftest.$ac_objext conftest.beam \
5967    conftest$ac_exeext conftest.$ac_ext ;;
5968esac
5969fi
5970
5971
5972		CFLAGS="$xorg_testset_save_CFLAGS"
5973
5974		eval supported=\$$cacheid
5975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5976printf "%s\n" "$supported" >&6; }
5977		if test "$supported" = "yes" ; then
5978			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5979			found="yes"
5980		fi
5981	fi
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997xorg_testset_save_CFLAGS="$CFLAGS"
5998
5999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6003if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6004then :
6005  printf %s "(cached) " >&6
6006else case e in #(
6007  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009int i;
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"
6012then :
6013  xorg_cv_cc_flag_unknown_warning_option=yes
6014else case e in #(
6015  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6016esac
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6019esac
6020fi
6021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6022printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6024	CFLAGS="$xorg_testset_save_CFLAGS"
6025fi
6026
6027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6030	fi
6031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6032	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6033printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6034if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6035then :
6036  printf %s "(cached) " >&6
6037else case e in #(
6038  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040int i;
6041_ACEOF
6042if ac_fn_c_try_compile "$LINENO"
6043then :
6044  xorg_cv_cc_flag_unused_command_line_argument=yes
6045else case e in #(
6046  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6047esac
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6050esac
6051fi
6052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6053printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6055	CFLAGS="$xorg_testset_save_CFLAGS"
6056fi
6057
6058found="no"
6059
6060	if test $found = "no" ; then
6061		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6063		fi
6064
6065		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067		fi
6068
6069		CFLAGS="$CFLAGS -Wbad-function-cast"
6070
6071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6072printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6073		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6074		if eval test \${$cacheid+y}
6075then :
6076  printf %s "(cached) " >&6
6077else case e in #(
6078  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080int i;
6081int
6082main (void)
6083{
6084
6085  ;
6086  return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_link "$LINENO"
6090then :
6091  eval $cacheid=yes
6092else case e in #(
6093  e) eval $cacheid=no ;;
6094esac
6095fi
6096rm -f core conftest.err conftest.$ac_objext conftest.beam \
6097    conftest$ac_exeext conftest.$ac_ext ;;
6098esac
6099fi
6100
6101
6102		CFLAGS="$xorg_testset_save_CFLAGS"
6103
6104		eval supported=\$$cacheid
6105		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6106printf "%s\n" "$supported" >&6; }
6107		if test "$supported" = "yes" ; then
6108			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6109			found="yes"
6110		fi
6111	fi
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127xorg_testset_save_CFLAGS="$CFLAGS"
6128
6129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6130	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6132printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6133if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6134then :
6135  printf %s "(cached) " >&6
6136else case e in #(
6137  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h.  */
6139int i;
6140_ACEOF
6141if ac_fn_c_try_compile "$LINENO"
6142then :
6143  xorg_cv_cc_flag_unknown_warning_option=yes
6144else case e in #(
6145  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6146esac
6147fi
6148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6149esac
6150fi
6151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6154	CFLAGS="$xorg_testset_save_CFLAGS"
6155fi
6156
6157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6160	fi
6161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6162	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6164if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6165then :
6166  printf %s "(cached) " >&6
6167else case e in #(
6168  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169/* end confdefs.h.  */
6170int i;
6171_ACEOF
6172if ac_fn_c_try_compile "$LINENO"
6173then :
6174  xorg_cv_cc_flag_unused_command_line_argument=yes
6175else case e in #(
6176  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6177esac
6178fi
6179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6180esac
6181fi
6182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6183printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6185	CFLAGS="$xorg_testset_save_CFLAGS"
6186fi
6187
6188found="no"
6189
6190	if test $found = "no" ; then
6191		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6193		fi
6194
6195		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6197		fi
6198
6199		CFLAGS="$CFLAGS -Wold-style-definition"
6200
6201		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6202printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6203		cacheid=xorg_cv_cc_flag__Wold_style_definition
6204		if eval test \${$cacheid+y}
6205then :
6206  printf %s "(cached) " >&6
6207else case e in #(
6208  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209/* end confdefs.h.  */
6210int i;
6211int
6212main (void)
6213{
6214
6215  ;
6216  return 0;
6217}
6218_ACEOF
6219if ac_fn_c_try_link "$LINENO"
6220then :
6221  eval $cacheid=yes
6222else case e in #(
6223  e) eval $cacheid=no ;;
6224esac
6225fi
6226rm -f core conftest.err conftest.$ac_objext conftest.beam \
6227    conftest$ac_exeext conftest.$ac_ext ;;
6228esac
6229fi
6230
6231
6232		CFLAGS="$xorg_testset_save_CFLAGS"
6233
6234		eval supported=\$$cacheid
6235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6236printf "%s\n" "$supported" >&6; }
6237		if test "$supported" = "yes" ; then
6238			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6239			found="yes"
6240		fi
6241	fi
6242
6243	if test $found = "no" ; then
6244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6246		fi
6247
6248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6250		fi
6251
6252		CFLAGS="$CFLAGS -fd"
6253
6254		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6255printf %s "checking if $CC supports -fd... " >&6; }
6256		cacheid=xorg_cv_cc_flag__fd
6257		if eval test \${$cacheid+y}
6258then :
6259  printf %s "(cached) " >&6
6260else case e in #(
6261  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263int i;
6264int
6265main (void)
6266{
6267
6268  ;
6269  return 0;
6270}
6271_ACEOF
6272if ac_fn_c_try_link "$LINENO"
6273then :
6274  eval $cacheid=yes
6275else case e in #(
6276  e) eval $cacheid=no ;;
6277esac
6278fi
6279rm -f core conftest.err conftest.$ac_objext conftest.beam \
6280    conftest$ac_exeext conftest.$ac_ext ;;
6281esac
6282fi
6283
6284
6285		CFLAGS="$xorg_testset_save_CFLAGS"
6286
6287		eval supported=\$$cacheid
6288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6289printf "%s\n" "$supported" >&6; }
6290		if test "$supported" = "yes" ; then
6291			BASE_CFLAGS="$BASE_CFLAGS -fd"
6292			found="yes"
6293		fi
6294	fi
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310xorg_testset_save_CFLAGS="$CFLAGS"
6311
6312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6314	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6316if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6317then :
6318  printf %s "(cached) " >&6
6319else case e in #(
6320  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321/* end confdefs.h.  */
6322int i;
6323_ACEOF
6324if ac_fn_c_try_compile "$LINENO"
6325then :
6326  xorg_cv_cc_flag_unknown_warning_option=yes
6327else case e in #(
6328  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6329esac
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6332esac
6333fi
6334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337	CFLAGS="$xorg_testset_save_CFLAGS"
6338fi
6339
6340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6343	fi
6344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6348then :
6349  printf %s "(cached) " >&6
6350else case e in #(
6351  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352/* end confdefs.h.  */
6353int i;
6354_ACEOF
6355if ac_fn_c_try_compile "$LINENO"
6356then :
6357  xorg_cv_cc_flag_unused_command_line_argument=yes
6358else case e in #(
6359  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6360esac
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6363esac
6364fi
6365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368	CFLAGS="$xorg_testset_save_CFLAGS"
6369fi
6370
6371found="no"
6372
6373	if test $found = "no" ; then
6374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376		fi
6377
6378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380		fi
6381
6382		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6383
6384		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6385printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6386		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6387		if eval test \${$cacheid+y}
6388then :
6389  printf %s "(cached) " >&6
6390else case e in #(
6391  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h.  */
6393int i;
6394int
6395main (void)
6396{
6397
6398  ;
6399  return 0;
6400}
6401_ACEOF
6402if ac_fn_c_try_link "$LINENO"
6403then :
6404  eval $cacheid=yes
6405else case e in #(
6406  e) eval $cacheid=no ;;
6407esac
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.beam \
6410    conftest$ac_exeext conftest.$ac_ext ;;
6411esac
6412fi
6413
6414
6415		CFLAGS="$xorg_testset_save_CFLAGS"
6416
6417		eval supported=\$$cacheid
6418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6419printf "%s\n" "$supported" >&6; }
6420		if test "$supported" = "yes" ; then
6421			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6422			found="yes"
6423		fi
6424	fi
6425
6426
6427
6428
6429
6430# This chunk adds additional warnings that could catch undesired effects.
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444xorg_testset_save_CFLAGS="$CFLAGS"
6445
6446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6450if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6451then :
6452  printf %s "(cached) " >&6
6453else case e in #(
6454  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457_ACEOF
6458if ac_fn_c_try_compile "$LINENO"
6459then :
6460  xorg_cv_cc_flag_unknown_warning_option=yes
6461else case e in #(
6462  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6463esac
6464fi
6465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6466esac
6467fi
6468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6469printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6471	CFLAGS="$xorg_testset_save_CFLAGS"
6472fi
6473
6474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6477	fi
6478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6480printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6481if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6482then :
6483  printf %s "(cached) " >&6
6484else case e in #(
6485  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486/* end confdefs.h.  */
6487int i;
6488_ACEOF
6489if ac_fn_c_try_compile "$LINENO"
6490then :
6491  xorg_cv_cc_flag_unused_command_line_argument=yes
6492else case e in #(
6493  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6494esac
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6497esac
6498fi
6499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6500printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6502	CFLAGS="$xorg_testset_save_CFLAGS"
6503fi
6504
6505found="no"
6506
6507	if test $found = "no" ; then
6508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510		fi
6511
6512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6514		fi
6515
6516		CFLAGS="$CFLAGS -Wunused"
6517
6518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6519printf %s "checking if $CC supports -Wunused... " >&6; }
6520		cacheid=xorg_cv_cc_flag__Wunused
6521		if eval test \${$cacheid+y}
6522then :
6523  printf %s "(cached) " >&6
6524else case e in #(
6525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526/* end confdefs.h.  */
6527int i;
6528int
6529main (void)
6530{
6531
6532  ;
6533  return 0;
6534}
6535_ACEOF
6536if ac_fn_c_try_link "$LINENO"
6537then :
6538  eval $cacheid=yes
6539else case e in #(
6540  e) eval $cacheid=no ;;
6541esac
6542fi
6543rm -f core conftest.err conftest.$ac_objext conftest.beam \
6544    conftest$ac_exeext conftest.$ac_ext ;;
6545esac
6546fi
6547
6548
6549		CFLAGS="$xorg_testset_save_CFLAGS"
6550
6551		eval supported=\$$cacheid
6552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6553printf "%s\n" "$supported" >&6; }
6554		if test "$supported" = "yes" ; then
6555			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6556			found="yes"
6557		fi
6558	fi
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574xorg_testset_save_CFLAGS="$CFLAGS"
6575
6576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6580if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6581then :
6582  printf %s "(cached) " >&6
6583else case e in #(
6584  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585/* end confdefs.h.  */
6586int i;
6587_ACEOF
6588if ac_fn_c_try_compile "$LINENO"
6589then :
6590  xorg_cv_cc_flag_unknown_warning_option=yes
6591else case e in #(
6592  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6593esac
6594fi
6595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6596esac
6597fi
6598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6599printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6601	CFLAGS="$xorg_testset_save_CFLAGS"
6602fi
6603
6604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607	fi
6608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6610printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6611if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6612then :
6613  printf %s "(cached) " >&6
6614else case e in #(
6615  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h.  */
6617int i;
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"
6620then :
6621  xorg_cv_cc_flag_unused_command_line_argument=yes
6622else case e in #(
6623  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6624esac
6625fi
6626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6627esac
6628fi
6629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6632	CFLAGS="$xorg_testset_save_CFLAGS"
6633fi
6634
6635found="no"
6636
6637	if test $found = "no" ; then
6638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640		fi
6641
6642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6644		fi
6645
6646		CFLAGS="$CFLAGS -Wuninitialized"
6647
6648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6649printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6650		cacheid=xorg_cv_cc_flag__Wuninitialized
6651		if eval test \${$cacheid+y}
6652then :
6653  printf %s "(cached) " >&6
6654else case e in #(
6655  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656/* end confdefs.h.  */
6657int i;
6658int
6659main (void)
6660{
6661
6662  ;
6663  return 0;
6664}
6665_ACEOF
6666if ac_fn_c_try_link "$LINENO"
6667then :
6668  eval $cacheid=yes
6669else case e in #(
6670  e) eval $cacheid=no ;;
6671esac
6672fi
6673rm -f core conftest.err conftest.$ac_objext conftest.beam \
6674    conftest$ac_exeext conftest.$ac_ext ;;
6675esac
6676fi
6677
6678
6679		CFLAGS="$xorg_testset_save_CFLAGS"
6680
6681		eval supported=\$$cacheid
6682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6683printf "%s\n" "$supported" >&6; }
6684		if test "$supported" = "yes" ; then
6685			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6686			found="yes"
6687		fi
6688	fi
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704xorg_testset_save_CFLAGS="$CFLAGS"
6705
6706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6710if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6711then :
6712  printf %s "(cached) " >&6
6713else case e in #(
6714  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716int i;
6717_ACEOF
6718if ac_fn_c_try_compile "$LINENO"
6719then :
6720  xorg_cv_cc_flag_unknown_warning_option=yes
6721else case e in #(
6722  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6723esac
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6726esac
6727fi
6728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6731	CFLAGS="$xorg_testset_save_CFLAGS"
6732fi
6733
6734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737	fi
6738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6741if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6742then :
6743  printf %s "(cached) " >&6
6744else case e in #(
6745  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747int i;
6748_ACEOF
6749if ac_fn_c_try_compile "$LINENO"
6750then :
6751  xorg_cv_cc_flag_unused_command_line_argument=yes
6752else case e in #(
6753  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6754esac
6755fi
6756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6757esac
6758fi
6759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6760printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6761	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6762	CFLAGS="$xorg_testset_save_CFLAGS"
6763fi
6764
6765found="no"
6766
6767	if test $found = "no" ; then
6768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770		fi
6771
6772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6774		fi
6775
6776		CFLAGS="$CFLAGS -Wshadow"
6777
6778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6779printf %s "checking if $CC supports -Wshadow... " >&6; }
6780		cacheid=xorg_cv_cc_flag__Wshadow
6781		if eval test \${$cacheid+y}
6782then :
6783  printf %s "(cached) " >&6
6784else case e in #(
6785  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h.  */
6787int i;
6788int
6789main (void)
6790{
6791
6792  ;
6793  return 0;
6794}
6795_ACEOF
6796if ac_fn_c_try_link "$LINENO"
6797then :
6798  eval $cacheid=yes
6799else case e in #(
6800  e) eval $cacheid=no ;;
6801esac
6802fi
6803rm -f core conftest.err conftest.$ac_objext conftest.beam \
6804    conftest$ac_exeext conftest.$ac_ext ;;
6805esac
6806fi
6807
6808
6809		CFLAGS="$xorg_testset_save_CFLAGS"
6810
6811		eval supported=\$$cacheid
6812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6813printf "%s\n" "$supported" >&6; }
6814		if test "$supported" = "yes" ; then
6815			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6816			found="yes"
6817		fi
6818	fi
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834xorg_testset_save_CFLAGS="$CFLAGS"
6835
6836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6839printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6840if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6841then :
6842  printf %s "(cached) " >&6
6843else case e in #(
6844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846int i;
6847_ACEOF
6848if ac_fn_c_try_compile "$LINENO"
6849then :
6850  xorg_cv_cc_flag_unknown_warning_option=yes
6851else case e in #(
6852  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6853esac
6854fi
6855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6856esac
6857fi
6858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6861	CFLAGS="$xorg_testset_save_CFLAGS"
6862fi
6863
6864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6867	fi
6868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6871if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6872then :
6873  printf %s "(cached) " >&6
6874else case e in #(
6875  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876/* end confdefs.h.  */
6877int i;
6878_ACEOF
6879if ac_fn_c_try_compile "$LINENO"
6880then :
6881  xorg_cv_cc_flag_unused_command_line_argument=yes
6882else case e in #(
6883  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6884esac
6885fi
6886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6887esac
6888fi
6889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892	CFLAGS="$xorg_testset_save_CFLAGS"
6893fi
6894
6895found="no"
6896
6897	if test $found = "no" ; then
6898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900		fi
6901
6902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904		fi
6905
6906		CFLAGS="$CFLAGS -Wmissing-noreturn"
6907
6908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6909printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6910		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6911		if eval test \${$cacheid+y}
6912then :
6913  printf %s "(cached) " >&6
6914else case e in #(
6915  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917int i;
6918int
6919main (void)
6920{
6921
6922  ;
6923  return 0;
6924}
6925_ACEOF
6926if ac_fn_c_try_link "$LINENO"
6927then :
6928  eval $cacheid=yes
6929else case e in #(
6930  e) eval $cacheid=no ;;
6931esac
6932fi
6933rm -f core conftest.err conftest.$ac_objext conftest.beam \
6934    conftest$ac_exeext conftest.$ac_ext ;;
6935esac
6936fi
6937
6938
6939		CFLAGS="$xorg_testset_save_CFLAGS"
6940
6941		eval supported=\$$cacheid
6942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6943printf "%s\n" "$supported" >&6; }
6944		if test "$supported" = "yes" ; then
6945			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6946			found="yes"
6947		fi
6948	fi
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964xorg_testset_save_CFLAGS="$CFLAGS"
6965
6966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6970if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6971then :
6972  printf %s "(cached) " >&6
6973else case e in #(
6974  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975/* end confdefs.h.  */
6976int i;
6977_ACEOF
6978if ac_fn_c_try_compile "$LINENO"
6979then :
6980  xorg_cv_cc_flag_unknown_warning_option=yes
6981else case e in #(
6982  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6983esac
6984fi
6985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6986esac
6987fi
6988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6991	CFLAGS="$xorg_testset_save_CFLAGS"
6992fi
6993
6994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997	fi
6998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7002then :
7003  printf %s "(cached) " >&6
7004else case e in #(
7005  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h.  */
7007int i;
7008_ACEOF
7009if ac_fn_c_try_compile "$LINENO"
7010then :
7011  xorg_cv_cc_flag_unused_command_line_argument=yes
7012else case e in #(
7013  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7014esac
7015fi
7016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7017esac
7018fi
7019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7022	CFLAGS="$xorg_testset_save_CFLAGS"
7023fi
7024
7025found="no"
7026
7027	if test $found = "no" ; then
7028		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030		fi
7031
7032		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7034		fi
7035
7036		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7037
7038		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7039printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7040		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7041		if eval test \${$cacheid+y}
7042then :
7043  printf %s "(cached) " >&6
7044else case e in #(
7045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046/* end confdefs.h.  */
7047int i;
7048int
7049main (void)
7050{
7051
7052  ;
7053  return 0;
7054}
7055_ACEOF
7056if ac_fn_c_try_link "$LINENO"
7057then :
7058  eval $cacheid=yes
7059else case e in #(
7060  e) eval $cacheid=no ;;
7061esac
7062fi
7063rm -f core conftest.err conftest.$ac_objext conftest.beam \
7064    conftest$ac_exeext conftest.$ac_ext ;;
7065esac
7066fi
7067
7068
7069		CFLAGS="$xorg_testset_save_CFLAGS"
7070
7071		eval supported=\$$cacheid
7072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7073printf "%s\n" "$supported" >&6; }
7074		if test "$supported" = "yes" ; then
7075			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7076			found="yes"
7077		fi
7078	fi
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094xorg_testset_save_CFLAGS="$CFLAGS"
7095
7096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7101then :
7102  printf %s "(cached) " >&6
7103else case e in #(
7104  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105/* end confdefs.h.  */
7106int i;
7107_ACEOF
7108if ac_fn_c_try_compile "$LINENO"
7109then :
7110  xorg_cv_cc_flag_unknown_warning_option=yes
7111else case e in #(
7112  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7113esac
7114fi
7115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7116esac
7117fi
7118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7121	CFLAGS="$xorg_testset_save_CFLAGS"
7122fi
7123
7124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127	fi
7128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7131if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7132then :
7133  printf %s "(cached) " >&6
7134else case e in #(
7135  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"
7140then :
7141  xorg_cv_cc_flag_unused_command_line_argument=yes
7142else case e in #(
7143  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7144esac
7145fi
7146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7147esac
7148fi
7149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7152	CFLAGS="$xorg_testset_save_CFLAGS"
7153fi
7154
7155found="no"
7156
7157	if test $found = "no" ; then
7158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7160		fi
7161
7162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7164		fi
7165
7166		CFLAGS="$CFLAGS -Wredundant-decls"
7167
7168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7169printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7170		cacheid=xorg_cv_cc_flag__Wredundant_decls
7171		if eval test \${$cacheid+y}
7172then :
7173  printf %s "(cached) " >&6
7174else case e in #(
7175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h.  */
7177int i;
7178int
7179main (void)
7180{
7181
7182  ;
7183  return 0;
7184}
7185_ACEOF
7186if ac_fn_c_try_link "$LINENO"
7187then :
7188  eval $cacheid=yes
7189else case e in #(
7190  e) eval $cacheid=no ;;
7191esac
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.beam \
7194    conftest$ac_exeext conftest.$ac_ext ;;
7195esac
7196fi
7197
7198
7199		CFLAGS="$xorg_testset_save_CFLAGS"
7200
7201		eval supported=\$$cacheid
7202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7203printf "%s\n" "$supported" >&6; }
7204		if test "$supported" = "yes" ; then
7205			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7206			found="yes"
7207		fi
7208	fi
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224xorg_testset_save_CFLAGS="$CFLAGS"
7225
7226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7230if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7231then :
7232  printf %s "(cached) " >&6
7233else case e in #(
7234  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236int i;
7237_ACEOF
7238if ac_fn_c_try_compile "$LINENO"
7239then :
7240  xorg_cv_cc_flag_unknown_warning_option=yes
7241else case e in #(
7242  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7243esac
7244fi
7245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7246esac
7247fi
7248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7251	CFLAGS="$xorg_testset_save_CFLAGS"
7252fi
7253
7254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257	fi
7258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7261if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7262then :
7263  printf %s "(cached) " >&6
7264else case e in #(
7265  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h.  */
7267int i;
7268_ACEOF
7269if ac_fn_c_try_compile "$LINENO"
7270then :
7271  xorg_cv_cc_flag_unused_command_line_argument=yes
7272else case e in #(
7273  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7274esac
7275fi
7276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7277esac
7278fi
7279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7282	CFLAGS="$xorg_testset_save_CFLAGS"
7283fi
7284
7285found="no"
7286
7287	if test $found = "no" ; then
7288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7290		fi
7291
7292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7294		fi
7295
7296		CFLAGS="$CFLAGS -Wlogical-op"
7297
7298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7299printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7300		cacheid=xorg_cv_cc_flag__Wlogical_op
7301		if eval test \${$cacheid+y}
7302then :
7303  printf %s "(cached) " >&6
7304else case e in #(
7305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307int i;
7308int
7309main (void)
7310{
7311
7312  ;
7313  return 0;
7314}
7315_ACEOF
7316if ac_fn_c_try_link "$LINENO"
7317then :
7318  eval $cacheid=yes
7319else case e in #(
7320  e) eval $cacheid=no ;;
7321esac
7322fi
7323rm -f core conftest.err conftest.$ac_objext conftest.beam \
7324    conftest$ac_exeext conftest.$ac_ext ;;
7325esac
7326fi
7327
7328
7329		CFLAGS="$xorg_testset_save_CFLAGS"
7330
7331		eval supported=\$$cacheid
7332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333printf "%s\n" "$supported" >&6; }
7334		if test "$supported" = "yes" ; then
7335			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7336			found="yes"
7337		fi
7338	fi
7339
7340
7341
7342# These are currently disabled because they are noisy.  They will be enabled
7343# in the future once the codebase is sufficiently modernized to silence
7344# them.  For now, I don't want them to drown out the other warnings.
7345# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7346# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7347# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7348
7349# Turn some warnings into errors, so we don't accidentally get successful builds
7350# when there are problems that should be fixed.
7351
7352if test "x$SELECTIVE_WERROR" = "xyes" ; then
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366xorg_testset_save_CFLAGS="$CFLAGS"
7367
7368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7372if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7373then :
7374  printf %s "(cached) " >&6
7375else case e in #(
7376  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377/* end confdefs.h.  */
7378int i;
7379_ACEOF
7380if ac_fn_c_try_compile "$LINENO"
7381then :
7382  xorg_cv_cc_flag_unknown_warning_option=yes
7383else case e in #(
7384  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7385esac
7386fi
7387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7388esac
7389fi
7390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7393	CFLAGS="$xorg_testset_save_CFLAGS"
7394fi
7395
7396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399	fi
7400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7403if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7404then :
7405  printf %s "(cached) " >&6
7406else case e in #(
7407  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"
7412then :
7413  xorg_cv_cc_flag_unused_command_line_argument=yes
7414else case e in #(
7415  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7416esac
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7419esac
7420fi
7421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7424	CFLAGS="$xorg_testset_save_CFLAGS"
7425fi
7426
7427found="no"
7428
7429	if test $found = "no" ; then
7430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7432		fi
7433
7434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7436		fi
7437
7438		CFLAGS="$CFLAGS -Werror=implicit"
7439
7440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7441printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7442		cacheid=xorg_cv_cc_flag__Werror_implicit
7443		if eval test \${$cacheid+y}
7444then :
7445  printf %s "(cached) " >&6
7446else case e in #(
7447  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449int i;
7450int
7451main (void)
7452{
7453
7454  ;
7455  return 0;
7456}
7457_ACEOF
7458if ac_fn_c_try_link "$LINENO"
7459then :
7460  eval $cacheid=yes
7461else case e in #(
7462  e) eval $cacheid=no ;;
7463esac
7464fi
7465rm -f core conftest.err conftest.$ac_objext conftest.beam \
7466    conftest$ac_exeext conftest.$ac_ext ;;
7467esac
7468fi
7469
7470
7471		CFLAGS="$xorg_testset_save_CFLAGS"
7472
7473		eval supported=\$$cacheid
7474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7475printf "%s\n" "$supported" >&6; }
7476		if test "$supported" = "yes" ; then
7477			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7478			found="yes"
7479		fi
7480	fi
7481
7482	if test $found = "no" ; then
7483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485		fi
7486
7487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7489		fi
7490
7491		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7492
7493		{ 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
7494printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7495		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7496		if eval test \${$cacheid+y}
7497then :
7498  printf %s "(cached) " >&6
7499else case e in #(
7500  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501/* end confdefs.h.  */
7502int i;
7503int
7504main (void)
7505{
7506
7507  ;
7508  return 0;
7509}
7510_ACEOF
7511if ac_fn_c_try_link "$LINENO"
7512then :
7513  eval $cacheid=yes
7514else case e in #(
7515  e) eval $cacheid=no ;;
7516esac
7517fi
7518rm -f core conftest.err conftest.$ac_objext conftest.beam \
7519    conftest$ac_exeext conftest.$ac_ext ;;
7520esac
7521fi
7522
7523
7524		CFLAGS="$xorg_testset_save_CFLAGS"
7525
7526		eval supported=\$$cacheid
7527		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7528printf "%s\n" "$supported" >&6; }
7529		if test "$supported" = "yes" ; then
7530			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7531			found="yes"
7532		fi
7533	fi
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549xorg_testset_save_CFLAGS="$CFLAGS"
7550
7551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7554printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7555if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7556then :
7557  printf %s "(cached) " >&6
7558else case e in #(
7559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560/* end confdefs.h.  */
7561int i;
7562_ACEOF
7563if ac_fn_c_try_compile "$LINENO"
7564then :
7565  xorg_cv_cc_flag_unknown_warning_option=yes
7566else case e in #(
7567  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7568esac
7569fi
7570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7571esac
7572fi
7573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7574printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7576	CFLAGS="$xorg_testset_save_CFLAGS"
7577fi
7578
7579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7582	fi
7583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7584	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7585printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7586if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7587then :
7588  printf %s "(cached) " >&6
7589else case e in #(
7590  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591/* end confdefs.h.  */
7592int i;
7593_ACEOF
7594if ac_fn_c_try_compile "$LINENO"
7595then :
7596  xorg_cv_cc_flag_unused_command_line_argument=yes
7597else case e in #(
7598  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7599esac
7600fi
7601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7602esac
7603fi
7604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7607	CFLAGS="$xorg_testset_save_CFLAGS"
7608fi
7609
7610found="no"
7611
7612	if test $found = "no" ; then
7613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615		fi
7616
7617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619		fi
7620
7621		CFLAGS="$CFLAGS -Werror=nonnull"
7622
7623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7624printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7625		cacheid=xorg_cv_cc_flag__Werror_nonnull
7626		if eval test \${$cacheid+y}
7627then :
7628  printf %s "(cached) " >&6
7629else case e in #(
7630  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h.  */
7632int i;
7633int
7634main (void)
7635{
7636
7637  ;
7638  return 0;
7639}
7640_ACEOF
7641if ac_fn_c_try_link "$LINENO"
7642then :
7643  eval $cacheid=yes
7644else case e in #(
7645  e) eval $cacheid=no ;;
7646esac
7647fi
7648rm -f core conftest.err conftest.$ac_objext conftest.beam \
7649    conftest$ac_exeext conftest.$ac_ext ;;
7650esac
7651fi
7652
7653
7654		CFLAGS="$xorg_testset_save_CFLAGS"
7655
7656		eval supported=\$$cacheid
7657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7658printf "%s\n" "$supported" >&6; }
7659		if test "$supported" = "yes" ; then
7660			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7661			found="yes"
7662		fi
7663	fi
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679xorg_testset_save_CFLAGS="$CFLAGS"
7680
7681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7684printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7685if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7686then :
7687  printf %s "(cached) " >&6
7688else case e in #(
7689  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691int i;
7692_ACEOF
7693if ac_fn_c_try_compile "$LINENO"
7694then :
7695  xorg_cv_cc_flag_unknown_warning_option=yes
7696else case e in #(
7697  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7698esac
7699fi
7700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7701esac
7702fi
7703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7704printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7706	CFLAGS="$xorg_testset_save_CFLAGS"
7707fi
7708
7709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712	fi
7713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7715printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7716if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7717then :
7718  printf %s "(cached) " >&6
7719else case e in #(
7720  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h.  */
7722int i;
7723_ACEOF
7724if ac_fn_c_try_compile "$LINENO"
7725then :
7726  xorg_cv_cc_flag_unused_command_line_argument=yes
7727else case e in #(
7728  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7729esac
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7732esac
7733fi
7734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7737	CFLAGS="$xorg_testset_save_CFLAGS"
7738fi
7739
7740found="no"
7741
7742	if test $found = "no" ; then
7743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745		fi
7746
7747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7749		fi
7750
7751		CFLAGS="$CFLAGS -Werror=init-self"
7752
7753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7754printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7755		cacheid=xorg_cv_cc_flag__Werror_init_self
7756		if eval test \${$cacheid+y}
7757then :
7758  printf %s "(cached) " >&6
7759else case e in #(
7760  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762int i;
7763int
7764main (void)
7765{
7766
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771if ac_fn_c_try_link "$LINENO"
7772then :
7773  eval $cacheid=yes
7774else case e in #(
7775  e) eval $cacheid=no ;;
7776esac
7777fi
7778rm -f core conftest.err conftest.$ac_objext conftest.beam \
7779    conftest$ac_exeext conftest.$ac_ext ;;
7780esac
7781fi
7782
7783
7784		CFLAGS="$xorg_testset_save_CFLAGS"
7785
7786		eval supported=\$$cacheid
7787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7788printf "%s\n" "$supported" >&6; }
7789		if test "$supported" = "yes" ; then
7790			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7791			found="yes"
7792		fi
7793	fi
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809xorg_testset_save_CFLAGS="$CFLAGS"
7810
7811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7813	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7815if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7816then :
7817  printf %s "(cached) " >&6
7818else case e in #(
7819  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820/* end confdefs.h.  */
7821int i;
7822_ACEOF
7823if ac_fn_c_try_compile "$LINENO"
7824then :
7825  xorg_cv_cc_flag_unknown_warning_option=yes
7826else case e in #(
7827  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7828esac
7829fi
7830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7831esac
7832fi
7833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7836	CFLAGS="$xorg_testset_save_CFLAGS"
7837fi
7838
7839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7842	fi
7843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7846if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7847then :
7848  printf %s "(cached) " >&6
7849else case e in #(
7850  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852int i;
7853_ACEOF
7854if ac_fn_c_try_compile "$LINENO"
7855then :
7856  xorg_cv_cc_flag_unused_command_line_argument=yes
7857else case e in #(
7858  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7859esac
7860fi
7861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7862esac
7863fi
7864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7867	CFLAGS="$xorg_testset_save_CFLAGS"
7868fi
7869
7870found="no"
7871
7872	if test $found = "no" ; then
7873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7875		fi
7876
7877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879		fi
7880
7881		CFLAGS="$CFLAGS -Werror=main"
7882
7883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7884printf %s "checking if $CC supports -Werror=main... " >&6; }
7885		cacheid=xorg_cv_cc_flag__Werror_main
7886		if eval test \${$cacheid+y}
7887then :
7888  printf %s "(cached) " >&6
7889else case e in #(
7890  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892int i;
7893int
7894main (void)
7895{
7896
7897  ;
7898  return 0;
7899}
7900_ACEOF
7901if ac_fn_c_try_link "$LINENO"
7902then :
7903  eval $cacheid=yes
7904else case e in #(
7905  e) eval $cacheid=no ;;
7906esac
7907fi
7908rm -f core conftest.err conftest.$ac_objext conftest.beam \
7909    conftest$ac_exeext conftest.$ac_ext ;;
7910esac
7911fi
7912
7913
7914		CFLAGS="$xorg_testset_save_CFLAGS"
7915
7916		eval supported=\$$cacheid
7917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7918printf "%s\n" "$supported" >&6; }
7919		if test "$supported" = "yes" ; then
7920			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7921			found="yes"
7922		fi
7923	fi
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939xorg_testset_save_CFLAGS="$CFLAGS"
7940
7941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7945if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7946then :
7947  printf %s "(cached) " >&6
7948else case e in #(
7949  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950/* end confdefs.h.  */
7951int i;
7952_ACEOF
7953if ac_fn_c_try_compile "$LINENO"
7954then :
7955  xorg_cv_cc_flag_unknown_warning_option=yes
7956else case e in #(
7957  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7958esac
7959fi
7960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7961esac
7962fi
7963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7966	CFLAGS="$xorg_testset_save_CFLAGS"
7967fi
7968
7969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7972	fi
7973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7976if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7977then :
7978  printf %s "(cached) " >&6
7979else case e in #(
7980  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982int i;
7983_ACEOF
7984if ac_fn_c_try_compile "$LINENO"
7985then :
7986  xorg_cv_cc_flag_unused_command_line_argument=yes
7987else case e in #(
7988  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7989esac
7990fi
7991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7992esac
7993fi
7994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7997	CFLAGS="$xorg_testset_save_CFLAGS"
7998fi
7999
8000found="no"
8001
8002	if test $found = "no" ; then
8003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8005		fi
8006
8007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8009		fi
8010
8011		CFLAGS="$CFLAGS -Werror=missing-braces"
8012
8013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8014printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8015		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8016		if eval test \${$cacheid+y}
8017then :
8018  printf %s "(cached) " >&6
8019else case e in #(
8020  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021/* end confdefs.h.  */
8022int i;
8023int
8024main (void)
8025{
8026
8027  ;
8028  return 0;
8029}
8030_ACEOF
8031if ac_fn_c_try_link "$LINENO"
8032then :
8033  eval $cacheid=yes
8034else case e in #(
8035  e) eval $cacheid=no ;;
8036esac
8037fi
8038rm -f core conftest.err conftest.$ac_objext conftest.beam \
8039    conftest$ac_exeext conftest.$ac_ext ;;
8040esac
8041fi
8042
8043
8044		CFLAGS="$xorg_testset_save_CFLAGS"
8045
8046		eval supported=\$$cacheid
8047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8048printf "%s\n" "$supported" >&6; }
8049		if test "$supported" = "yes" ; then
8050			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8051			found="yes"
8052		fi
8053	fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069xorg_testset_save_CFLAGS="$CFLAGS"
8070
8071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8075if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8076then :
8077  printf %s "(cached) " >&6
8078else case e in #(
8079  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080/* end confdefs.h.  */
8081int i;
8082_ACEOF
8083if ac_fn_c_try_compile "$LINENO"
8084then :
8085  xorg_cv_cc_flag_unknown_warning_option=yes
8086else case e in #(
8087  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8088esac
8089fi
8090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8091esac
8092fi
8093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8096	CFLAGS="$xorg_testset_save_CFLAGS"
8097fi
8098
8099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102	fi
8103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8106if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8107then :
8108  printf %s "(cached) " >&6
8109else case e in #(
8110  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112int i;
8113_ACEOF
8114if ac_fn_c_try_compile "$LINENO"
8115then :
8116  xorg_cv_cc_flag_unused_command_line_argument=yes
8117else case e in #(
8118  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8119esac
8120fi
8121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8122esac
8123fi
8124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8127	CFLAGS="$xorg_testset_save_CFLAGS"
8128fi
8129
8130found="no"
8131
8132	if test $found = "no" ; then
8133		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8135		fi
8136
8137		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8139		fi
8140
8141		CFLAGS="$CFLAGS -Werror=sequence-point"
8142
8143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8144printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8145		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8146		if eval test \${$cacheid+y}
8147then :
8148  printf %s "(cached) " >&6
8149else case e in #(
8150  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152int i;
8153int
8154main (void)
8155{
8156
8157  ;
8158  return 0;
8159}
8160_ACEOF
8161if ac_fn_c_try_link "$LINENO"
8162then :
8163  eval $cacheid=yes
8164else case e in #(
8165  e) eval $cacheid=no ;;
8166esac
8167fi
8168rm -f core conftest.err conftest.$ac_objext conftest.beam \
8169    conftest$ac_exeext conftest.$ac_ext ;;
8170esac
8171fi
8172
8173
8174		CFLAGS="$xorg_testset_save_CFLAGS"
8175
8176		eval supported=\$$cacheid
8177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8178printf "%s\n" "$supported" >&6; }
8179		if test "$supported" = "yes" ; then
8180			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8181			found="yes"
8182		fi
8183	fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199xorg_testset_save_CFLAGS="$CFLAGS"
8200
8201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8205if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8206then :
8207  printf %s "(cached) " >&6
8208else case e in #(
8209  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211int i;
8212_ACEOF
8213if ac_fn_c_try_compile "$LINENO"
8214then :
8215  xorg_cv_cc_flag_unknown_warning_option=yes
8216else case e in #(
8217  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8218esac
8219fi
8220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8221esac
8222fi
8223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8226	CFLAGS="$xorg_testset_save_CFLAGS"
8227fi
8228
8229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232	fi
8233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8236if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8237then :
8238  printf %s "(cached) " >&6
8239else case e in #(
8240  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243_ACEOF
8244if ac_fn_c_try_compile "$LINENO"
8245then :
8246  xorg_cv_cc_flag_unused_command_line_argument=yes
8247else case e in #(
8248  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8249esac
8250fi
8251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8252esac
8253fi
8254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8257	CFLAGS="$xorg_testset_save_CFLAGS"
8258fi
8259
8260found="no"
8261
8262	if test $found = "no" ; then
8263		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265		fi
8266
8267		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269		fi
8270
8271		CFLAGS="$CFLAGS -Werror=return-type"
8272
8273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8274printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8275		cacheid=xorg_cv_cc_flag__Werror_return_type
8276		if eval test \${$cacheid+y}
8277then :
8278  printf %s "(cached) " >&6
8279else case e in #(
8280  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281/* end confdefs.h.  */
8282int i;
8283int
8284main (void)
8285{
8286
8287  ;
8288  return 0;
8289}
8290_ACEOF
8291if ac_fn_c_try_link "$LINENO"
8292then :
8293  eval $cacheid=yes
8294else case e in #(
8295  e) eval $cacheid=no ;;
8296esac
8297fi
8298rm -f core conftest.err conftest.$ac_objext conftest.beam \
8299    conftest$ac_exeext conftest.$ac_ext ;;
8300esac
8301fi
8302
8303
8304		CFLAGS="$xorg_testset_save_CFLAGS"
8305
8306		eval supported=\$$cacheid
8307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8308printf "%s\n" "$supported" >&6; }
8309		if test "$supported" = "yes" ; then
8310			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8311			found="yes"
8312		fi
8313	fi
8314
8315	if test $found = "no" ; then
8316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8318		fi
8319
8320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8322		fi
8323
8324		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8325
8326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8327printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8328		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8329		if eval test \${$cacheid+y}
8330then :
8331  printf %s "(cached) " >&6
8332else case e in #(
8333  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h.  */
8335int i;
8336int
8337main (void)
8338{
8339
8340  ;
8341  return 0;
8342}
8343_ACEOF
8344if ac_fn_c_try_link "$LINENO"
8345then :
8346  eval $cacheid=yes
8347else case e in #(
8348  e) eval $cacheid=no ;;
8349esac
8350fi
8351rm -f core conftest.err conftest.$ac_objext conftest.beam \
8352    conftest$ac_exeext conftest.$ac_ext ;;
8353esac
8354fi
8355
8356
8357		CFLAGS="$xorg_testset_save_CFLAGS"
8358
8359		eval supported=\$$cacheid
8360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8361printf "%s\n" "$supported" >&6; }
8362		if test "$supported" = "yes" ; then
8363			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8364			found="yes"
8365		fi
8366	fi
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382xorg_testset_save_CFLAGS="$CFLAGS"
8383
8384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8388if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8389then :
8390  printf %s "(cached) " >&6
8391else case e in #(
8392  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h.  */
8394int i;
8395_ACEOF
8396if ac_fn_c_try_compile "$LINENO"
8397then :
8398  xorg_cv_cc_flag_unknown_warning_option=yes
8399else case e in #(
8400  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8401esac
8402fi
8403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8404esac
8405fi
8406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8407printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8409	CFLAGS="$xorg_testset_save_CFLAGS"
8410fi
8411
8412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415	fi
8416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8417	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8418printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8419if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8420then :
8421  printf %s "(cached) " >&6
8422else case e in #(
8423  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h.  */
8425int i;
8426_ACEOF
8427if ac_fn_c_try_compile "$LINENO"
8428then :
8429  xorg_cv_cc_flag_unused_command_line_argument=yes
8430else case e in #(
8431  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8432esac
8433fi
8434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8435esac
8436fi
8437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8438printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8439	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8440	CFLAGS="$xorg_testset_save_CFLAGS"
8441fi
8442
8443found="no"
8444
8445	if test $found = "no" ; then
8446		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448		fi
8449
8450		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8452		fi
8453
8454		CFLAGS="$CFLAGS -Werror=trigraphs"
8455
8456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8457printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8458		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8459		if eval test \${$cacheid+y}
8460then :
8461  printf %s "(cached) " >&6
8462else case e in #(
8463  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h.  */
8465int i;
8466int
8467main (void)
8468{
8469
8470  ;
8471  return 0;
8472}
8473_ACEOF
8474if ac_fn_c_try_link "$LINENO"
8475then :
8476  eval $cacheid=yes
8477else case e in #(
8478  e) eval $cacheid=no ;;
8479esac
8480fi
8481rm -f core conftest.err conftest.$ac_objext conftest.beam \
8482    conftest$ac_exeext conftest.$ac_ext ;;
8483esac
8484fi
8485
8486
8487		CFLAGS="$xorg_testset_save_CFLAGS"
8488
8489		eval supported=\$$cacheid
8490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8491printf "%s\n" "$supported" >&6; }
8492		if test "$supported" = "yes" ; then
8493			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8494			found="yes"
8495		fi
8496	fi
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512xorg_testset_save_CFLAGS="$CFLAGS"
8513
8514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8515	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8517printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8518if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8519then :
8520  printf %s "(cached) " >&6
8521else case e in #(
8522  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524int i;
8525_ACEOF
8526if ac_fn_c_try_compile "$LINENO"
8527then :
8528  xorg_cv_cc_flag_unknown_warning_option=yes
8529else case e in #(
8530  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8531esac
8532fi
8533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8534esac
8535fi
8536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8537printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8539	CFLAGS="$xorg_testset_save_CFLAGS"
8540fi
8541
8542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8545	fi
8546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8547	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8548printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8549if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8550then :
8551  printf %s "(cached) " >&6
8552else case e in #(
8553  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h.  */
8555int i;
8556_ACEOF
8557if ac_fn_c_try_compile "$LINENO"
8558then :
8559  xorg_cv_cc_flag_unused_command_line_argument=yes
8560else case e in #(
8561  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8562esac
8563fi
8564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8565esac
8566fi
8567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8568printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8570	CFLAGS="$xorg_testset_save_CFLAGS"
8571fi
8572
8573found="no"
8574
8575	if test $found = "no" ; then
8576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578		fi
8579
8580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8582		fi
8583
8584		CFLAGS="$CFLAGS -Werror=array-bounds"
8585
8586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8587printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8588		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8589		if eval test \${$cacheid+y}
8590then :
8591  printf %s "(cached) " >&6
8592else case e in #(
8593  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595int i;
8596int
8597main (void)
8598{
8599
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"
8605then :
8606  eval $cacheid=yes
8607else case e in #(
8608  e) eval $cacheid=no ;;
8609esac
8610fi
8611rm -f core conftest.err conftest.$ac_objext conftest.beam \
8612    conftest$ac_exeext conftest.$ac_ext ;;
8613esac
8614fi
8615
8616
8617		CFLAGS="$xorg_testset_save_CFLAGS"
8618
8619		eval supported=\$$cacheid
8620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8621printf "%s\n" "$supported" >&6; }
8622		if test "$supported" = "yes" ; then
8623			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8624			found="yes"
8625		fi
8626	fi
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642xorg_testset_save_CFLAGS="$CFLAGS"
8643
8644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8649then :
8650  printf %s "(cached) " >&6
8651else case e in #(
8652  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653/* end confdefs.h.  */
8654int i;
8655_ACEOF
8656if ac_fn_c_try_compile "$LINENO"
8657then :
8658  xorg_cv_cc_flag_unknown_warning_option=yes
8659else case e in #(
8660  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8661esac
8662fi
8663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8664esac
8665fi
8666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8667printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8669	CFLAGS="$xorg_testset_save_CFLAGS"
8670fi
8671
8672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8675	fi
8676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8677	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8678printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8679if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8680then :
8681  printf %s "(cached) " >&6
8682else case e in #(
8683  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684/* end confdefs.h.  */
8685int i;
8686_ACEOF
8687if ac_fn_c_try_compile "$LINENO"
8688then :
8689  xorg_cv_cc_flag_unused_command_line_argument=yes
8690else case e in #(
8691  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8692esac
8693fi
8694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8695esac
8696fi
8697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8698printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8700	CFLAGS="$xorg_testset_save_CFLAGS"
8701fi
8702
8703found="no"
8704
8705	if test $found = "no" ; then
8706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708		fi
8709
8710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8712		fi
8713
8714		CFLAGS="$CFLAGS -Werror=write-strings"
8715
8716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8717printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8718		cacheid=xorg_cv_cc_flag__Werror_write_strings
8719		if eval test \${$cacheid+y}
8720then :
8721  printf %s "(cached) " >&6
8722else case e in #(
8723  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h.  */
8725int i;
8726int
8727main (void)
8728{
8729
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734if ac_fn_c_try_link "$LINENO"
8735then :
8736  eval $cacheid=yes
8737else case e in #(
8738  e) eval $cacheid=no ;;
8739esac
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.beam \
8742    conftest$ac_exeext conftest.$ac_ext ;;
8743esac
8744fi
8745
8746
8747		CFLAGS="$xorg_testset_save_CFLAGS"
8748
8749		eval supported=\$$cacheid
8750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8751printf "%s\n" "$supported" >&6; }
8752		if test "$supported" = "yes" ; then
8753			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8754			found="yes"
8755		fi
8756	fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8779then :
8780  printf %s "(cached) " >&6
8781else case e in #(
8782  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h.  */
8784int i;
8785_ACEOF
8786if ac_fn_c_try_compile "$LINENO"
8787then :
8788  xorg_cv_cc_flag_unknown_warning_option=yes
8789else case e in #(
8790  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8791esac
8792fi
8793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8794esac
8795fi
8796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8799	CFLAGS="$xorg_testset_save_CFLAGS"
8800fi
8801
8802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805	fi
8806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8809if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8810then :
8811  printf %s "(cached) " >&6
8812else case e in #(
8813  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h.  */
8815int i;
8816_ACEOF
8817if ac_fn_c_try_compile "$LINENO"
8818then :
8819  xorg_cv_cc_flag_unused_command_line_argument=yes
8820else case e in #(
8821  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8822esac
8823fi
8824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8825esac
8826fi
8827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8828printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8829	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8830	CFLAGS="$xorg_testset_save_CFLAGS"
8831fi
8832
8833found="no"
8834
8835	if test $found = "no" ; then
8836		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8837			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838		fi
8839
8840		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8841			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8842		fi
8843
8844		CFLAGS="$CFLAGS -Werror=address"
8845
8846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8847printf %s "checking if $CC supports -Werror=address... " >&6; }
8848		cacheid=xorg_cv_cc_flag__Werror_address
8849		if eval test \${$cacheid+y}
8850then :
8851  printf %s "(cached) " >&6
8852else case e in #(
8853  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854/* end confdefs.h.  */
8855int i;
8856int
8857main (void)
8858{
8859
8860  ;
8861  return 0;
8862}
8863_ACEOF
8864if ac_fn_c_try_link "$LINENO"
8865then :
8866  eval $cacheid=yes
8867else case e in #(
8868  e) eval $cacheid=no ;;
8869esac
8870fi
8871rm -f core conftest.err conftest.$ac_objext conftest.beam \
8872    conftest$ac_exeext conftest.$ac_ext ;;
8873esac
8874fi
8875
8876
8877		CFLAGS="$xorg_testset_save_CFLAGS"
8878
8879		eval supported=\$$cacheid
8880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8881printf "%s\n" "$supported" >&6; }
8882		if test "$supported" = "yes" ; then
8883			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8884			found="yes"
8885		fi
8886	fi
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902xorg_testset_save_CFLAGS="$CFLAGS"
8903
8904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8908if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8909then :
8910  printf %s "(cached) " >&6
8911else case e in #(
8912  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915_ACEOF
8916if ac_fn_c_try_compile "$LINENO"
8917then :
8918  xorg_cv_cc_flag_unknown_warning_option=yes
8919else case e in #(
8920  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8921esac
8922fi
8923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8924esac
8925fi
8926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8927printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8929	CFLAGS="$xorg_testset_save_CFLAGS"
8930fi
8931
8932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935	fi
8936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8938printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8939if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8940then :
8941  printf %s "(cached) " >&6
8942else case e in #(
8943  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h.  */
8945int i;
8946_ACEOF
8947if ac_fn_c_try_compile "$LINENO"
8948then :
8949  xorg_cv_cc_flag_unused_command_line_argument=yes
8950else case e in #(
8951  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8952esac
8953fi
8954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8955esac
8956fi
8957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8960	CFLAGS="$xorg_testset_save_CFLAGS"
8961fi
8962
8963found="no"
8964
8965	if test $found = "no" ; then
8966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968		fi
8969
8970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8972		fi
8973
8974		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8975
8976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8977printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8978		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8979		if eval test \${$cacheid+y}
8980then :
8981  printf %s "(cached) " >&6
8982else case e in #(
8983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h.  */
8985int i;
8986int
8987main (void)
8988{
8989
8990  ;
8991  return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_link "$LINENO"
8995then :
8996  eval $cacheid=yes
8997else case e in #(
8998  e) eval $cacheid=no ;;
8999esac
9000fi
9001rm -f core conftest.err conftest.$ac_objext conftest.beam \
9002    conftest$ac_exeext conftest.$ac_ext ;;
9003esac
9004fi
9005
9006
9007		CFLAGS="$xorg_testset_save_CFLAGS"
9008
9009		eval supported=\$$cacheid
9010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9011printf "%s\n" "$supported" >&6; }
9012		if test "$supported" = "yes" ; then
9013			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9014			found="yes"
9015		fi
9016	fi
9017
9018	if test $found = "no" ; then
9019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021		fi
9022
9023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025		fi
9026
9027		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9028
9029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9030printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9031		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9032		if eval test \${$cacheid+y}
9033then :
9034  printf %s "(cached) " >&6
9035else case e in #(
9036  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h.  */
9038int i;
9039int
9040main (void)
9041{
9042
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_link "$LINENO"
9048then :
9049  eval $cacheid=yes
9050else case e in #(
9051  e) eval $cacheid=no ;;
9052esac
9053fi
9054rm -f core conftest.err conftest.$ac_objext conftest.beam \
9055    conftest$ac_exeext conftest.$ac_ext ;;
9056esac
9057fi
9058
9059
9060		CFLAGS="$xorg_testset_save_CFLAGS"
9061
9062		eval supported=\$$cacheid
9063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9064printf "%s\n" "$supported" >&6; }
9065		if test "$supported" = "yes" ; then
9066			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9067			found="yes"
9068		fi
9069	fi
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085xorg_testset_save_CFLAGS="$CFLAGS"
9086
9087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9091if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9092then :
9093  printf %s "(cached) " >&6
9094else case e in #(
9095  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096/* end confdefs.h.  */
9097int i;
9098_ACEOF
9099if ac_fn_c_try_compile "$LINENO"
9100then :
9101  xorg_cv_cc_flag_unknown_warning_option=yes
9102else case e in #(
9103  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9104esac
9105fi
9106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9107esac
9108fi
9109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9112	CFLAGS="$xorg_testset_save_CFLAGS"
9113fi
9114
9115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118	fi
9119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9123then :
9124  printf %s "(cached) " >&6
9125else case e in #(
9126  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128int i;
9129_ACEOF
9130if ac_fn_c_try_compile "$LINENO"
9131then :
9132  xorg_cv_cc_flag_unused_command_line_argument=yes
9133else case e in #(
9134  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9135esac
9136fi
9137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9138esac
9139fi
9140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9143	CFLAGS="$xorg_testset_save_CFLAGS"
9144fi
9145
9146found="no"
9147
9148	if test $found = "no" ; then
9149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151		fi
9152
9153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9155		fi
9156
9157		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9158
9159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9160printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9161		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9162		if eval test \${$cacheid+y}
9163then :
9164  printf %s "(cached) " >&6
9165else case e in #(
9166  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h.  */
9168int i;
9169int
9170main (void)
9171{
9172
9173  ;
9174  return 0;
9175}
9176_ACEOF
9177if ac_fn_c_try_link "$LINENO"
9178then :
9179  eval $cacheid=yes
9180else case e in #(
9181  e) eval $cacheid=no ;;
9182esac
9183fi
9184rm -f core conftest.err conftest.$ac_objext conftest.beam \
9185    conftest$ac_exeext conftest.$ac_ext ;;
9186esac
9187fi
9188
9189
9190		CFLAGS="$xorg_testset_save_CFLAGS"
9191
9192		eval supported=\$$cacheid
9193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9194printf "%s\n" "$supported" >&6; }
9195		if test "$supported" = "yes" ; then
9196			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9197			found="yes"
9198		fi
9199	fi
9200
9201 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9202else
9203{ 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
9204printf "%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;}
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218xorg_testset_save_CFLAGS="$CFLAGS"
9219
9220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9224if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9225then :
9226  printf %s "(cached) " >&6
9227else case e in #(
9228  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229/* end confdefs.h.  */
9230int i;
9231_ACEOF
9232if ac_fn_c_try_compile "$LINENO"
9233then :
9234  xorg_cv_cc_flag_unknown_warning_option=yes
9235else case e in #(
9236  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9237esac
9238fi
9239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9240esac
9241fi
9242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9245	CFLAGS="$xorg_testset_save_CFLAGS"
9246fi
9247
9248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9251	fi
9252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9255if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9256then :
9257  printf %s "(cached) " >&6
9258else case e in #(
9259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260/* end confdefs.h.  */
9261int i;
9262_ACEOF
9263if ac_fn_c_try_compile "$LINENO"
9264then :
9265  xorg_cv_cc_flag_unused_command_line_argument=yes
9266else case e in #(
9267  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9268esac
9269fi
9270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9271esac
9272fi
9273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9276	CFLAGS="$xorg_testset_save_CFLAGS"
9277fi
9278
9279found="no"
9280
9281	if test $found = "no" ; then
9282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9284		fi
9285
9286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9288		fi
9289
9290		CFLAGS="$CFLAGS -Wimplicit"
9291
9292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9293printf %s "checking if $CC supports -Wimplicit... " >&6; }
9294		cacheid=xorg_cv_cc_flag__Wimplicit
9295		if eval test \${$cacheid+y}
9296then :
9297  printf %s "(cached) " >&6
9298else case e in #(
9299  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300/* end confdefs.h.  */
9301int i;
9302int
9303main (void)
9304{
9305
9306  ;
9307  return 0;
9308}
9309_ACEOF
9310if ac_fn_c_try_link "$LINENO"
9311then :
9312  eval $cacheid=yes
9313else case e in #(
9314  e) eval $cacheid=no ;;
9315esac
9316fi
9317rm -f core conftest.err conftest.$ac_objext conftest.beam \
9318    conftest$ac_exeext conftest.$ac_ext ;;
9319esac
9320fi
9321
9322
9323		CFLAGS="$xorg_testset_save_CFLAGS"
9324
9325		eval supported=\$$cacheid
9326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9327printf "%s\n" "$supported" >&6; }
9328		if test "$supported" = "yes" ; then
9329			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9330			found="yes"
9331		fi
9332	fi
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348xorg_testset_save_CFLAGS="$CFLAGS"
9349
9350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9354if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9355then :
9356  printf %s "(cached) " >&6
9357else case e in #(
9358  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360int i;
9361_ACEOF
9362if ac_fn_c_try_compile "$LINENO"
9363then :
9364  xorg_cv_cc_flag_unknown_warning_option=yes
9365else case e in #(
9366  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9367esac
9368fi
9369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9370esac
9371fi
9372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9375	CFLAGS="$xorg_testset_save_CFLAGS"
9376fi
9377
9378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381	fi
9382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9385if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9386then :
9387  printf %s "(cached) " >&6
9388else case e in #(
9389  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390/* end confdefs.h.  */
9391int i;
9392_ACEOF
9393if ac_fn_c_try_compile "$LINENO"
9394then :
9395  xorg_cv_cc_flag_unused_command_line_argument=yes
9396else case e in #(
9397  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9398esac
9399fi
9400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9401esac
9402fi
9403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9406	CFLAGS="$xorg_testset_save_CFLAGS"
9407fi
9408
9409found="no"
9410
9411	if test $found = "no" ; then
9412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9414		fi
9415
9416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418		fi
9419
9420		CFLAGS="$CFLAGS -Wnonnull"
9421
9422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9423printf %s "checking if $CC supports -Wnonnull... " >&6; }
9424		cacheid=xorg_cv_cc_flag__Wnonnull
9425		if eval test \${$cacheid+y}
9426then :
9427  printf %s "(cached) " >&6
9428else case e in #(
9429  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430/* end confdefs.h.  */
9431int i;
9432int
9433main (void)
9434{
9435
9436  ;
9437  return 0;
9438}
9439_ACEOF
9440if ac_fn_c_try_link "$LINENO"
9441then :
9442  eval $cacheid=yes
9443else case e in #(
9444  e) eval $cacheid=no ;;
9445esac
9446fi
9447rm -f core conftest.err conftest.$ac_objext conftest.beam \
9448    conftest$ac_exeext conftest.$ac_ext ;;
9449esac
9450fi
9451
9452
9453		CFLAGS="$xorg_testset_save_CFLAGS"
9454
9455		eval supported=\$$cacheid
9456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9457printf "%s\n" "$supported" >&6; }
9458		if test "$supported" = "yes" ; then
9459			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9460			found="yes"
9461		fi
9462	fi
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478xorg_testset_save_CFLAGS="$CFLAGS"
9479
9480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9485then :
9486  printf %s "(cached) " >&6
9487else case e in #(
9488  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h.  */
9490int i;
9491_ACEOF
9492if ac_fn_c_try_compile "$LINENO"
9493then :
9494  xorg_cv_cc_flag_unknown_warning_option=yes
9495else case e in #(
9496  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9497esac
9498fi
9499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9500esac
9501fi
9502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9504	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9505	CFLAGS="$xorg_testset_save_CFLAGS"
9506fi
9507
9508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9509	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9510		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9511	fi
9512	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9513	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9515if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9516then :
9517  printf %s "(cached) " >&6
9518else case e in #(
9519  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520/* end confdefs.h.  */
9521int i;
9522_ACEOF
9523if ac_fn_c_try_compile "$LINENO"
9524then :
9525  xorg_cv_cc_flag_unused_command_line_argument=yes
9526else case e in #(
9527  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9528esac
9529fi
9530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9531esac
9532fi
9533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9536	CFLAGS="$xorg_testset_save_CFLAGS"
9537fi
9538
9539found="no"
9540
9541	if test $found = "no" ; then
9542		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9544		fi
9545
9546		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9548		fi
9549
9550		CFLAGS="$CFLAGS -Winit-self"
9551
9552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9553printf %s "checking if $CC supports -Winit-self... " >&6; }
9554		cacheid=xorg_cv_cc_flag__Winit_self
9555		if eval test \${$cacheid+y}
9556then :
9557  printf %s "(cached) " >&6
9558else case e in #(
9559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560/* end confdefs.h.  */
9561int i;
9562int
9563main (void)
9564{
9565
9566  ;
9567  return 0;
9568}
9569_ACEOF
9570if ac_fn_c_try_link "$LINENO"
9571then :
9572  eval $cacheid=yes
9573else case e in #(
9574  e) eval $cacheid=no ;;
9575esac
9576fi
9577rm -f core conftest.err conftest.$ac_objext conftest.beam \
9578    conftest$ac_exeext conftest.$ac_ext ;;
9579esac
9580fi
9581
9582
9583		CFLAGS="$xorg_testset_save_CFLAGS"
9584
9585		eval supported=\$$cacheid
9586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9587printf "%s\n" "$supported" >&6; }
9588		if test "$supported" = "yes" ; then
9589			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9590			found="yes"
9591		fi
9592	fi
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608xorg_testset_save_CFLAGS="$CFLAGS"
9609
9610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9614if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9615then :
9616  printf %s "(cached) " >&6
9617else case e in #(
9618  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619/* end confdefs.h.  */
9620int i;
9621_ACEOF
9622if ac_fn_c_try_compile "$LINENO"
9623then :
9624  xorg_cv_cc_flag_unknown_warning_option=yes
9625else case e in #(
9626  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9627esac
9628fi
9629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9630esac
9631fi
9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641	fi
9642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9646then :
9647  printf %s "(cached) " >&6
9648else case e in #(
9649  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652_ACEOF
9653if ac_fn_c_try_compile "$LINENO"
9654then :
9655  xorg_cv_cc_flag_unused_command_line_argument=yes
9656else case e in #(
9657  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9658esac
9659fi
9660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9661esac
9662fi
9663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9666	CFLAGS="$xorg_testset_save_CFLAGS"
9667fi
9668
9669found="no"
9670
9671	if test $found = "no" ; then
9672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9674		fi
9675
9676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9678		fi
9679
9680		CFLAGS="$CFLAGS -Wmain"
9681
9682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9683printf %s "checking if $CC supports -Wmain... " >&6; }
9684		cacheid=xorg_cv_cc_flag__Wmain
9685		if eval test \${$cacheid+y}
9686then :
9687  printf %s "(cached) " >&6
9688else case e in #(
9689  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690/* end confdefs.h.  */
9691int i;
9692int
9693main (void)
9694{
9695
9696  ;
9697  return 0;
9698}
9699_ACEOF
9700if ac_fn_c_try_link "$LINENO"
9701then :
9702  eval $cacheid=yes
9703else case e in #(
9704  e) eval $cacheid=no ;;
9705esac
9706fi
9707rm -f core conftest.err conftest.$ac_objext conftest.beam \
9708    conftest$ac_exeext conftest.$ac_ext ;;
9709esac
9710fi
9711
9712
9713		CFLAGS="$xorg_testset_save_CFLAGS"
9714
9715		eval supported=\$$cacheid
9716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9717printf "%s\n" "$supported" >&6; }
9718		if test "$supported" = "yes" ; then
9719			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9720			found="yes"
9721		fi
9722	fi
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738xorg_testset_save_CFLAGS="$CFLAGS"
9739
9740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9745then :
9746  printf %s "(cached) " >&6
9747else case e in #(
9748  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749/* end confdefs.h.  */
9750int i;
9751_ACEOF
9752if ac_fn_c_try_compile "$LINENO"
9753then :
9754  xorg_cv_cc_flag_unknown_warning_option=yes
9755else case e in #(
9756  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9757esac
9758fi
9759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9760esac
9761fi
9762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9765	CFLAGS="$xorg_testset_save_CFLAGS"
9766fi
9767
9768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771	fi
9772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9776then :
9777  printf %s "(cached) " >&6
9778else case e in #(
9779  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780/* end confdefs.h.  */
9781int i;
9782_ACEOF
9783if ac_fn_c_try_compile "$LINENO"
9784then :
9785  xorg_cv_cc_flag_unused_command_line_argument=yes
9786else case e in #(
9787  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9788esac
9789fi
9790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9791esac
9792fi
9793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9796	CFLAGS="$xorg_testset_save_CFLAGS"
9797fi
9798
9799found="no"
9800
9801	if test $found = "no" ; then
9802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804		fi
9805
9806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9808		fi
9809
9810		CFLAGS="$CFLAGS -Wmissing-braces"
9811
9812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9813printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9814		cacheid=xorg_cv_cc_flag__Wmissing_braces
9815		if eval test \${$cacheid+y}
9816then :
9817  printf %s "(cached) " >&6
9818else case e in #(
9819  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820/* end confdefs.h.  */
9821int i;
9822int
9823main (void)
9824{
9825
9826  ;
9827  return 0;
9828}
9829_ACEOF
9830if ac_fn_c_try_link "$LINENO"
9831then :
9832  eval $cacheid=yes
9833else case e in #(
9834  e) eval $cacheid=no ;;
9835esac
9836fi
9837rm -f core conftest.err conftest.$ac_objext conftest.beam \
9838    conftest$ac_exeext conftest.$ac_ext ;;
9839esac
9840fi
9841
9842
9843		CFLAGS="$xorg_testset_save_CFLAGS"
9844
9845		eval supported=\$$cacheid
9846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9847printf "%s\n" "$supported" >&6; }
9848		if test "$supported" = "yes" ; then
9849			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9850			found="yes"
9851		fi
9852	fi
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868xorg_testset_save_CFLAGS="$CFLAGS"
9869
9870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9873printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9874if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9875then :
9876  printf %s "(cached) " >&6
9877else case e in #(
9878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879/* end confdefs.h.  */
9880int i;
9881_ACEOF
9882if ac_fn_c_try_compile "$LINENO"
9883then :
9884  xorg_cv_cc_flag_unknown_warning_option=yes
9885else case e in #(
9886  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9887esac
9888fi
9889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9890esac
9891fi
9892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9895	CFLAGS="$xorg_testset_save_CFLAGS"
9896fi
9897
9898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9901	fi
9902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9905if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9906then :
9907  printf %s "(cached) " >&6
9908else case e in #(
9909  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910/* end confdefs.h.  */
9911int i;
9912_ACEOF
9913if ac_fn_c_try_compile "$LINENO"
9914then :
9915  xorg_cv_cc_flag_unused_command_line_argument=yes
9916else case e in #(
9917  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9918esac
9919fi
9920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9921esac
9922fi
9923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9924printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9926	CFLAGS="$xorg_testset_save_CFLAGS"
9927fi
9928
9929found="no"
9930
9931	if test $found = "no" ; then
9932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9934		fi
9935
9936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9938		fi
9939
9940		CFLAGS="$CFLAGS -Wsequence-point"
9941
9942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9943printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9944		cacheid=xorg_cv_cc_flag__Wsequence_point
9945		if eval test \${$cacheid+y}
9946then :
9947  printf %s "(cached) " >&6
9948else case e in #(
9949  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952int
9953main (void)
9954{
9955
9956  ;
9957  return 0;
9958}
9959_ACEOF
9960if ac_fn_c_try_link "$LINENO"
9961then :
9962  eval $cacheid=yes
9963else case e in #(
9964  e) eval $cacheid=no ;;
9965esac
9966fi
9967rm -f core conftest.err conftest.$ac_objext conftest.beam \
9968    conftest$ac_exeext conftest.$ac_ext ;;
9969esac
9970fi
9971
9972
9973		CFLAGS="$xorg_testset_save_CFLAGS"
9974
9975		eval supported=\$$cacheid
9976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9977printf "%s\n" "$supported" >&6; }
9978		if test "$supported" = "yes" ; then
9979			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9980			found="yes"
9981		fi
9982	fi
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998xorg_testset_save_CFLAGS="$CFLAGS"
9999
10000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10004if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10005then :
10006  printf %s "(cached) " >&6
10007else case e in #(
10008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h.  */
10010int i;
10011_ACEOF
10012if ac_fn_c_try_compile "$LINENO"
10013then :
10014  xorg_cv_cc_flag_unknown_warning_option=yes
10015else case e in #(
10016  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10017esac
10018fi
10019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10020esac
10021fi
10022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10025	CFLAGS="$xorg_testset_save_CFLAGS"
10026fi
10027
10028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031	fi
10032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10035if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10036then :
10037  printf %s "(cached) " >&6
10038else case e in #(
10039  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040/* end confdefs.h.  */
10041int i;
10042_ACEOF
10043if ac_fn_c_try_compile "$LINENO"
10044then :
10045  xorg_cv_cc_flag_unused_command_line_argument=yes
10046else case e in #(
10047  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10048esac
10049fi
10050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10051esac
10052fi
10053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10054printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10056	CFLAGS="$xorg_testset_save_CFLAGS"
10057fi
10058
10059found="no"
10060
10061	if test $found = "no" ; then
10062		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10064		fi
10065
10066		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10068		fi
10069
10070		CFLAGS="$CFLAGS -Wreturn-type"
10071
10072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10073printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10074		cacheid=xorg_cv_cc_flag__Wreturn_type
10075		if eval test \${$cacheid+y}
10076then :
10077  printf %s "(cached) " >&6
10078else case e in #(
10079  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081int i;
10082int
10083main (void)
10084{
10085
10086  ;
10087  return 0;
10088}
10089_ACEOF
10090if ac_fn_c_try_link "$LINENO"
10091then :
10092  eval $cacheid=yes
10093else case e in #(
10094  e) eval $cacheid=no ;;
10095esac
10096fi
10097rm -f core conftest.err conftest.$ac_objext conftest.beam \
10098    conftest$ac_exeext conftest.$ac_ext ;;
10099esac
10100fi
10101
10102
10103		CFLAGS="$xorg_testset_save_CFLAGS"
10104
10105		eval supported=\$$cacheid
10106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10107printf "%s\n" "$supported" >&6; }
10108		if test "$supported" = "yes" ; then
10109			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10110			found="yes"
10111		fi
10112	fi
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128xorg_testset_save_CFLAGS="$CFLAGS"
10129
10130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10134if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10135then :
10136  printf %s "(cached) " >&6
10137else case e in #(
10138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h.  */
10140int i;
10141_ACEOF
10142if ac_fn_c_try_compile "$LINENO"
10143then :
10144  xorg_cv_cc_flag_unknown_warning_option=yes
10145else case e in #(
10146  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10147esac
10148fi
10149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10150esac
10151fi
10152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10155	CFLAGS="$xorg_testset_save_CFLAGS"
10156fi
10157
10158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161	fi
10162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10165if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10166then :
10167  printf %s "(cached) " >&6
10168else case e in #(
10169  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170/* end confdefs.h.  */
10171int i;
10172_ACEOF
10173if ac_fn_c_try_compile "$LINENO"
10174then :
10175  xorg_cv_cc_flag_unused_command_line_argument=yes
10176else case e in #(
10177  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10178esac
10179fi
10180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10181esac
10182fi
10183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10186	CFLAGS="$xorg_testset_save_CFLAGS"
10187fi
10188
10189found="no"
10190
10191	if test $found = "no" ; then
10192		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10194		fi
10195
10196		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10198		fi
10199
10200		CFLAGS="$CFLAGS -Wtrigraphs"
10201
10202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10203printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10204		cacheid=xorg_cv_cc_flag__Wtrigraphs
10205		if eval test \${$cacheid+y}
10206then :
10207  printf %s "(cached) " >&6
10208else case e in #(
10209  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210/* end confdefs.h.  */
10211int i;
10212int
10213main (void)
10214{
10215
10216  ;
10217  return 0;
10218}
10219_ACEOF
10220if ac_fn_c_try_link "$LINENO"
10221then :
10222  eval $cacheid=yes
10223else case e in #(
10224  e) eval $cacheid=no ;;
10225esac
10226fi
10227rm -f core conftest.err conftest.$ac_objext conftest.beam \
10228    conftest$ac_exeext conftest.$ac_ext ;;
10229esac
10230fi
10231
10232
10233		CFLAGS="$xorg_testset_save_CFLAGS"
10234
10235		eval supported=\$$cacheid
10236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10237printf "%s\n" "$supported" >&6; }
10238		if test "$supported" = "yes" ; then
10239			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10240			found="yes"
10241		fi
10242	fi
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258xorg_testset_save_CFLAGS="$CFLAGS"
10259
10260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10264if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10265then :
10266  printf %s "(cached) " >&6
10267else case e in #(
10268  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269/* end confdefs.h.  */
10270int i;
10271_ACEOF
10272if ac_fn_c_try_compile "$LINENO"
10273then :
10274  xorg_cv_cc_flag_unknown_warning_option=yes
10275else case e in #(
10276  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10277esac
10278fi
10279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10280esac
10281fi
10282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10283printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10285	CFLAGS="$xorg_testset_save_CFLAGS"
10286fi
10287
10288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10291	fi
10292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10294printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10295if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10296then :
10297  printf %s "(cached) " >&6
10298else case e in #(
10299  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h.  */
10301int i;
10302_ACEOF
10303if ac_fn_c_try_compile "$LINENO"
10304then :
10305  xorg_cv_cc_flag_unused_command_line_argument=yes
10306else case e in #(
10307  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10308esac
10309fi
10310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10311esac
10312fi
10313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10316	CFLAGS="$xorg_testset_save_CFLAGS"
10317fi
10318
10319found="no"
10320
10321	if test $found = "no" ; then
10322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324		fi
10325
10326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10328		fi
10329
10330		CFLAGS="$CFLAGS -Warray-bounds"
10331
10332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10333printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10334		cacheid=xorg_cv_cc_flag__Warray_bounds
10335		if eval test \${$cacheid+y}
10336then :
10337  printf %s "(cached) " >&6
10338else case e in #(
10339  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340/* end confdefs.h.  */
10341int i;
10342int
10343main (void)
10344{
10345
10346  ;
10347  return 0;
10348}
10349_ACEOF
10350if ac_fn_c_try_link "$LINENO"
10351then :
10352  eval $cacheid=yes
10353else case e in #(
10354  e) eval $cacheid=no ;;
10355esac
10356fi
10357rm -f core conftest.err conftest.$ac_objext conftest.beam \
10358    conftest$ac_exeext conftest.$ac_ext ;;
10359esac
10360fi
10361
10362
10363		CFLAGS="$xorg_testset_save_CFLAGS"
10364
10365		eval supported=\$$cacheid
10366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10367printf "%s\n" "$supported" >&6; }
10368		if test "$supported" = "yes" ; then
10369			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10370			found="yes"
10371		fi
10372	fi
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388xorg_testset_save_CFLAGS="$CFLAGS"
10389
10390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10394if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10395then :
10396  printf %s "(cached) " >&6
10397else case e in #(
10398  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h.  */
10400int i;
10401_ACEOF
10402if ac_fn_c_try_compile "$LINENO"
10403then :
10404  xorg_cv_cc_flag_unknown_warning_option=yes
10405else case e in #(
10406  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10407esac
10408fi
10409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10410esac
10411fi
10412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10414	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10415	CFLAGS="$xorg_testset_save_CFLAGS"
10416fi
10417
10418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10419	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10420		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10421	fi
10422	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10425if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10426then :
10427  printf %s "(cached) " >&6
10428else case e in #(
10429  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430/* end confdefs.h.  */
10431int i;
10432_ACEOF
10433if ac_fn_c_try_compile "$LINENO"
10434then :
10435  xorg_cv_cc_flag_unused_command_line_argument=yes
10436else case e in #(
10437  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10438esac
10439fi
10440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10441esac
10442fi
10443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10446	CFLAGS="$xorg_testset_save_CFLAGS"
10447fi
10448
10449found="no"
10450
10451	if test $found = "no" ; then
10452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10454		fi
10455
10456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10458		fi
10459
10460		CFLAGS="$CFLAGS -Wwrite-strings"
10461
10462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10463printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10464		cacheid=xorg_cv_cc_flag__Wwrite_strings
10465		if eval test \${$cacheid+y}
10466then :
10467  printf %s "(cached) " >&6
10468else case e in #(
10469  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470/* end confdefs.h.  */
10471int i;
10472int
10473main (void)
10474{
10475
10476  ;
10477  return 0;
10478}
10479_ACEOF
10480if ac_fn_c_try_link "$LINENO"
10481then :
10482  eval $cacheid=yes
10483else case e in #(
10484  e) eval $cacheid=no ;;
10485esac
10486fi
10487rm -f core conftest.err conftest.$ac_objext conftest.beam \
10488    conftest$ac_exeext conftest.$ac_ext ;;
10489esac
10490fi
10491
10492
10493		CFLAGS="$xorg_testset_save_CFLAGS"
10494
10495		eval supported=\$$cacheid
10496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10497printf "%s\n" "$supported" >&6; }
10498		if test "$supported" = "yes" ; then
10499			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10500			found="yes"
10501		fi
10502	fi
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518xorg_testset_save_CFLAGS="$CFLAGS"
10519
10520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10524if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10525then :
10526  printf %s "(cached) " >&6
10527else case e in #(
10528  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h.  */
10530int i;
10531_ACEOF
10532if ac_fn_c_try_compile "$LINENO"
10533then :
10534  xorg_cv_cc_flag_unknown_warning_option=yes
10535else case e in #(
10536  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10537esac
10538fi
10539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10540esac
10541fi
10542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10545	CFLAGS="$xorg_testset_save_CFLAGS"
10546fi
10547
10548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10551	fi
10552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10555if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10556then :
10557  printf %s "(cached) " >&6
10558else case e in #(
10559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560/* end confdefs.h.  */
10561int i;
10562_ACEOF
10563if ac_fn_c_try_compile "$LINENO"
10564then :
10565  xorg_cv_cc_flag_unused_command_line_argument=yes
10566else case e in #(
10567  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10568esac
10569fi
10570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10571esac
10572fi
10573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10576	CFLAGS="$xorg_testset_save_CFLAGS"
10577fi
10578
10579found="no"
10580
10581	if test $found = "no" ; then
10582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10584		fi
10585
10586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10588		fi
10589
10590		CFLAGS="$CFLAGS -Waddress"
10591
10592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10593printf %s "checking if $CC supports -Waddress... " >&6; }
10594		cacheid=xorg_cv_cc_flag__Waddress
10595		if eval test \${$cacheid+y}
10596then :
10597  printf %s "(cached) " >&6
10598else case e in #(
10599  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600/* end confdefs.h.  */
10601int i;
10602int
10603main (void)
10604{
10605
10606  ;
10607  return 0;
10608}
10609_ACEOF
10610if ac_fn_c_try_link "$LINENO"
10611then :
10612  eval $cacheid=yes
10613else case e in #(
10614  e) eval $cacheid=no ;;
10615esac
10616fi
10617rm -f core conftest.err conftest.$ac_objext conftest.beam \
10618    conftest$ac_exeext conftest.$ac_ext ;;
10619esac
10620fi
10621
10622
10623		CFLAGS="$xorg_testset_save_CFLAGS"
10624
10625		eval supported=\$$cacheid
10626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10627printf "%s\n" "$supported" >&6; }
10628		if test "$supported" = "yes" ; then
10629			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10630			found="yes"
10631		fi
10632	fi
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648xorg_testset_save_CFLAGS="$CFLAGS"
10649
10650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10654if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10655then :
10656  printf %s "(cached) " >&6
10657else case e in #(
10658  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659/* end confdefs.h.  */
10660int i;
10661_ACEOF
10662if ac_fn_c_try_compile "$LINENO"
10663then :
10664  xorg_cv_cc_flag_unknown_warning_option=yes
10665else case e in #(
10666  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10667esac
10668fi
10669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10670esac
10671fi
10672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10675	CFLAGS="$xorg_testset_save_CFLAGS"
10676fi
10677
10678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10681	fi
10682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10685if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10686then :
10687  printf %s "(cached) " >&6
10688else case e in #(
10689  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h.  */
10691int i;
10692_ACEOF
10693if ac_fn_c_try_compile "$LINENO"
10694then :
10695  xorg_cv_cc_flag_unused_command_line_argument=yes
10696else case e in #(
10697  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10698esac
10699fi
10700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10701esac
10702fi
10703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10704printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10705	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10706	CFLAGS="$xorg_testset_save_CFLAGS"
10707fi
10708
10709found="no"
10710
10711	if test $found = "no" ; then
10712		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10713			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10714		fi
10715
10716		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10717			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10718		fi
10719
10720		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10721
10722		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10723printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10724		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10725		if eval test \${$cacheid+y}
10726then :
10727  printf %s "(cached) " >&6
10728else case e in #(
10729  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h.  */
10731int i;
10732int
10733main (void)
10734{
10735
10736  ;
10737  return 0;
10738}
10739_ACEOF
10740if ac_fn_c_try_link "$LINENO"
10741then :
10742  eval $cacheid=yes
10743else case e in #(
10744  e) eval $cacheid=no ;;
10745esac
10746fi
10747rm -f core conftest.err conftest.$ac_objext conftest.beam \
10748    conftest$ac_exeext conftest.$ac_ext ;;
10749esac
10750fi
10751
10752
10753		CFLAGS="$xorg_testset_save_CFLAGS"
10754
10755		eval supported=\$$cacheid
10756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10757printf "%s\n" "$supported" >&6; }
10758		if test "$supported" = "yes" ; then
10759			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10760			found="yes"
10761		fi
10762	fi
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778xorg_testset_save_CFLAGS="$CFLAGS"
10779
10780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10781	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10783printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10784if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10785then :
10786  printf %s "(cached) " >&6
10787else case e in #(
10788  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789/* end confdefs.h.  */
10790int i;
10791_ACEOF
10792if ac_fn_c_try_compile "$LINENO"
10793then :
10794  xorg_cv_cc_flag_unknown_warning_option=yes
10795else case e in #(
10796  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10797esac
10798fi
10799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10800esac
10801fi
10802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10803printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10804	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10805	CFLAGS="$xorg_testset_save_CFLAGS"
10806fi
10807
10808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10809	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10810		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10811	fi
10812	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10813	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10814printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10815if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10816then :
10817  printf %s "(cached) " >&6
10818else case e in #(
10819  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820/* end confdefs.h.  */
10821int i;
10822_ACEOF
10823if ac_fn_c_try_compile "$LINENO"
10824then :
10825  xorg_cv_cc_flag_unused_command_line_argument=yes
10826else case e in #(
10827  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10828esac
10829fi
10830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10831esac
10832fi
10833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10834printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10836	CFLAGS="$xorg_testset_save_CFLAGS"
10837fi
10838
10839found="no"
10840
10841	if test $found = "no" ; then
10842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10844		fi
10845
10846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10848		fi
10849
10850		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10851
10852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10853printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10854		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10855		if eval test \${$cacheid+y}
10856then :
10857  printf %s "(cached) " >&6
10858else case e in #(
10859  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860/* end confdefs.h.  */
10861int i;
10862int
10863main (void)
10864{
10865
10866  ;
10867  return 0;
10868}
10869_ACEOF
10870if ac_fn_c_try_link "$LINENO"
10871then :
10872  eval $cacheid=yes
10873else case e in #(
10874  e) eval $cacheid=no ;;
10875esac
10876fi
10877rm -f core conftest.err conftest.$ac_objext conftest.beam \
10878    conftest$ac_exeext conftest.$ac_ext ;;
10879esac
10880fi
10881
10882
10883		CFLAGS="$xorg_testset_save_CFLAGS"
10884
10885		eval supported=\$$cacheid
10886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10887printf "%s\n" "$supported" >&6; }
10888		if test "$supported" = "yes" ; then
10889			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10890			found="yes"
10891		fi
10892	fi
10893
10894
10895fi
10896
10897
10898
10899
10900
10901
10902
10903		CWARNFLAGS="$BASE_CFLAGS"
10904		if  test "x$GCC" = xyes ; then
10905		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10906		fi
10907
10908
10909
10910
10911
10912
10913
10914
10915# Check whether --enable-strict-compilation was given.
10916if test ${enable_strict_compilation+y}
10917then :
10918  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10919else case e in #(
10920  e) STRICT_COMPILE=no ;;
10921esac
10922fi
10923
10924
10925
10926
10927
10928
10929STRICT_CFLAGS=""
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943xorg_testset_save_CFLAGS="$CFLAGS"
10944
10945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10949if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10950then :
10951  printf %s "(cached) " >&6
10952else case e in #(
10953  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954/* end confdefs.h.  */
10955int i;
10956_ACEOF
10957if ac_fn_c_try_compile "$LINENO"
10958then :
10959  xorg_cv_cc_flag_unknown_warning_option=yes
10960else case e in #(
10961  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10962esac
10963fi
10964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10965esac
10966fi
10967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10970	CFLAGS="$xorg_testset_save_CFLAGS"
10971fi
10972
10973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10976	fi
10977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10980if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10981then :
10982  printf %s "(cached) " >&6
10983else case e in #(
10984  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985/* end confdefs.h.  */
10986int i;
10987_ACEOF
10988if ac_fn_c_try_compile "$LINENO"
10989then :
10990  xorg_cv_cc_flag_unused_command_line_argument=yes
10991else case e in #(
10992  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10993esac
10994fi
10995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10996esac
10997fi
10998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11001	CFLAGS="$xorg_testset_save_CFLAGS"
11002fi
11003
11004found="no"
11005
11006	if test $found = "no" ; then
11007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11009		fi
11010
11011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11013		fi
11014
11015		CFLAGS="$CFLAGS -pedantic"
11016
11017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11018printf %s "checking if $CC supports -pedantic... " >&6; }
11019		cacheid=xorg_cv_cc_flag__pedantic
11020		if eval test \${$cacheid+y}
11021then :
11022  printf %s "(cached) " >&6
11023else case e in #(
11024  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025/* end confdefs.h.  */
11026int i;
11027int
11028main (void)
11029{
11030
11031  ;
11032  return 0;
11033}
11034_ACEOF
11035if ac_fn_c_try_link "$LINENO"
11036then :
11037  eval $cacheid=yes
11038else case e in #(
11039  e) eval $cacheid=no ;;
11040esac
11041fi
11042rm -f core conftest.err conftest.$ac_objext conftest.beam \
11043    conftest$ac_exeext conftest.$ac_ext ;;
11044esac
11045fi
11046
11047
11048		CFLAGS="$xorg_testset_save_CFLAGS"
11049
11050		eval supported=\$$cacheid
11051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11052printf "%s\n" "$supported" >&6; }
11053		if test "$supported" = "yes" ; then
11054			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11055			found="yes"
11056		fi
11057	fi
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073xorg_testset_save_CFLAGS="$CFLAGS"
11074
11075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11079if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11080then :
11081  printf %s "(cached) " >&6
11082else case e in #(
11083  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084/* end confdefs.h.  */
11085int i;
11086_ACEOF
11087if ac_fn_c_try_compile "$LINENO"
11088then :
11089  xorg_cv_cc_flag_unknown_warning_option=yes
11090else case e in #(
11091  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11092esac
11093fi
11094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11095esac
11096fi
11097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11100	CFLAGS="$xorg_testset_save_CFLAGS"
11101fi
11102
11103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11106	fi
11107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11111then :
11112  printf %s "(cached) " >&6
11113else case e in #(
11114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115/* end confdefs.h.  */
11116int i;
11117_ACEOF
11118if ac_fn_c_try_compile "$LINENO"
11119then :
11120  xorg_cv_cc_flag_unused_command_line_argument=yes
11121else case e in #(
11122  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11123esac
11124fi
11125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11126esac
11127fi
11128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11129printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11131	CFLAGS="$xorg_testset_save_CFLAGS"
11132fi
11133
11134found="no"
11135
11136	if test $found = "no" ; then
11137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11139		fi
11140
11141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11143		fi
11144
11145		CFLAGS="$CFLAGS -Werror"
11146
11147		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11148printf %s "checking if $CC supports -Werror... " >&6; }
11149		cacheid=xorg_cv_cc_flag__Werror
11150		if eval test \${$cacheid+y}
11151then :
11152  printf %s "(cached) " >&6
11153else case e in #(
11154  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h.  */
11156int i;
11157int
11158main (void)
11159{
11160
11161  ;
11162  return 0;
11163}
11164_ACEOF
11165if ac_fn_c_try_link "$LINENO"
11166then :
11167  eval $cacheid=yes
11168else case e in #(
11169  e) eval $cacheid=no ;;
11170esac
11171fi
11172rm -f core conftest.err conftest.$ac_objext conftest.beam \
11173    conftest$ac_exeext conftest.$ac_ext ;;
11174esac
11175fi
11176
11177
11178		CFLAGS="$xorg_testset_save_CFLAGS"
11179
11180		eval supported=\$$cacheid
11181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11182printf "%s\n" "$supported" >&6; }
11183		if test "$supported" = "yes" ; then
11184			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11185			found="yes"
11186		fi
11187	fi
11188
11189	if test $found = "no" ; then
11190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11192		fi
11193
11194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11196		fi
11197
11198		CFLAGS="$CFLAGS -errwarn"
11199
11200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11201printf %s "checking if $CC supports -errwarn... " >&6; }
11202		cacheid=xorg_cv_cc_flag__errwarn
11203		if eval test \${$cacheid+y}
11204then :
11205  printf %s "(cached) " >&6
11206else case e in #(
11207  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208/* end confdefs.h.  */
11209int i;
11210int
11211main (void)
11212{
11213
11214  ;
11215  return 0;
11216}
11217_ACEOF
11218if ac_fn_c_try_link "$LINENO"
11219then :
11220  eval $cacheid=yes
11221else case e in #(
11222  e) eval $cacheid=no ;;
11223esac
11224fi
11225rm -f core conftest.err conftest.$ac_objext conftest.beam \
11226    conftest$ac_exeext conftest.$ac_ext ;;
11227esac
11228fi
11229
11230
11231		CFLAGS="$xorg_testset_save_CFLAGS"
11232
11233		eval supported=\$$cacheid
11234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11235printf "%s\n" "$supported" >&6; }
11236		if test "$supported" = "yes" ; then
11237			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11238			found="yes"
11239		fi
11240	fi
11241
11242
11243
11244# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11245# activate it with -Werror, so we add it here explicitly.
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259xorg_testset_save_CFLAGS="$CFLAGS"
11260
11261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11265if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11266then :
11267  printf %s "(cached) " >&6
11268else case e in #(
11269  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270/* end confdefs.h.  */
11271int i;
11272_ACEOF
11273if ac_fn_c_try_compile "$LINENO"
11274then :
11275  xorg_cv_cc_flag_unknown_warning_option=yes
11276else case e in #(
11277  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11278esac
11279fi
11280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11281esac
11282fi
11283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11285	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11286	CFLAGS="$xorg_testset_save_CFLAGS"
11287fi
11288
11289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11290	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11292	fi
11293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11296if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11297then :
11298  printf %s "(cached) " >&6
11299else case e in #(
11300  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h.  */
11302int i;
11303_ACEOF
11304if ac_fn_c_try_compile "$LINENO"
11305then :
11306  xorg_cv_cc_flag_unused_command_line_argument=yes
11307else case e in #(
11308  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11309esac
11310fi
11311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11312esac
11313fi
11314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11315printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11316	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11317	CFLAGS="$xorg_testset_save_CFLAGS"
11318fi
11319
11320found="no"
11321
11322	if test $found = "no" ; then
11323		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11325		fi
11326
11327		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11329		fi
11330
11331		CFLAGS="$CFLAGS -Werror=attributes"
11332
11333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11334printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11335		cacheid=xorg_cv_cc_flag__Werror_attributes
11336		if eval test \${$cacheid+y}
11337then :
11338  printf %s "(cached) " >&6
11339else case e in #(
11340  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341/* end confdefs.h.  */
11342int i;
11343int
11344main (void)
11345{
11346
11347  ;
11348  return 0;
11349}
11350_ACEOF
11351if ac_fn_c_try_link "$LINENO"
11352then :
11353  eval $cacheid=yes
11354else case e in #(
11355  e) eval $cacheid=no ;;
11356esac
11357fi
11358rm -f core conftest.err conftest.$ac_objext conftest.beam \
11359    conftest$ac_exeext conftest.$ac_ext ;;
11360esac
11361fi
11362
11363
11364		CFLAGS="$xorg_testset_save_CFLAGS"
11365
11366		eval supported=\$$cacheid
11367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11368printf "%s\n" "$supported" >&6; }
11369		if test "$supported" = "yes" ; then
11370			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11371			found="yes"
11372		fi
11373	fi
11374
11375
11376
11377if test "x$STRICT_COMPILE" = "xyes"; then
11378    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11379    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11380fi
11381
11382
11383
11384
11385
11386
11387
11388
11389cat >>confdefs.h <<_ACEOF
11390#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11391_ACEOF
11392
11393	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11394	if test "x$PVM" = "x"; then
11395		PVM="0"
11396	fi
11397
11398printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11399
11400	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11401	if test "x$PVP" = "x"; then
11402		PVP="0"
11403	fi
11404
11405printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11406
11407
11408
11409CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11410mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11411|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11412touch \$(top_srcdir)/ChangeLog; \
11413echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11414
11415
11416
11417
11418macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11419INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11420mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11421|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11422touch \$(top_srcdir)/INSTALL; \
11423echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11424
11425
11426
11427
11428
11429
11430case $host_os in
11431    solaris*)
11432        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11433        # check for a man page file found in later versions that use
11434        # traditional section numbers instead
11435        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11436printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11437if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11438then :
11439  printf %s "(cached) " >&6
11440else case e in #(
11441  e) test "$cross_compiling" = yes &&
11442  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11443if test -r "/usr/share/man/man7/attributes.7"; then
11444  ac_cv_file__usr_share_man_man7_attributes_7=yes
11445else
11446  ac_cv_file__usr_share_man_man7_attributes_7=no
11447fi ;;
11448esac
11449fi
11450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11451printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11452if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11453then :
11454  SYSV_MAN_SECTIONS=false
11455else case e in #(
11456  e) SYSV_MAN_SECTIONS=true ;;
11457esac
11458fi
11459
11460        ;;
11461    *) SYSV_MAN_SECTIONS=false ;;
11462esac
11463
11464if test x$APP_MAN_SUFFIX = x    ; then
11465    APP_MAN_SUFFIX=1
11466fi
11467if test x$APP_MAN_DIR = x    ; then
11468    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11469fi
11470
11471if test x$LIB_MAN_SUFFIX = x    ; then
11472    LIB_MAN_SUFFIX=3
11473fi
11474if test x$LIB_MAN_DIR = x    ; then
11475    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11476fi
11477
11478if test x$FILE_MAN_SUFFIX = x    ; then
11479    case $SYSV_MAN_SECTIONS in
11480	true)				FILE_MAN_SUFFIX=4  ;;
11481	*)				FILE_MAN_SUFFIX=5  ;;
11482    esac
11483fi
11484if test x$FILE_MAN_DIR = x    ; then
11485    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11486fi
11487
11488if test x$MISC_MAN_SUFFIX = x    ; then
11489    case $SYSV_MAN_SECTIONS in
11490	true)				MISC_MAN_SUFFIX=5  ;;
11491	*)				MISC_MAN_SUFFIX=7  ;;
11492    esac
11493fi
11494if test x$MISC_MAN_DIR = x    ; then
11495    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11496fi
11497
11498if test x$DRIVER_MAN_SUFFIX = x    ; then
11499    case $SYSV_MAN_SECTIONS in
11500	true)				DRIVER_MAN_SUFFIX=7  ;;
11501	*)				DRIVER_MAN_SUFFIX=4  ;;
11502    esac
11503fi
11504if test x$DRIVER_MAN_DIR = x    ; then
11505    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11506fi
11507
11508if test x$ADMIN_MAN_SUFFIX = x    ; then
11509    case $SYSV_MAN_SECTIONS in
11510	true)				ADMIN_MAN_SUFFIX=1m ;;
11511	*)				ADMIN_MAN_SUFFIX=8  ;;
11512    esac
11513fi
11514if test x$ADMIN_MAN_DIR = x    ; then
11515    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11516fi
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532XORG_MAN_PAGE="X Version 11"
11533
11534MAN_SUBSTS="\
11535	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11536	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11537	-e 's|__xservername__|Xorg|g' \
11538	-e 's|__xconfigfile__|xorg.conf|g' \
11539	-e 's|__projectroot__|\$(prefix)|g' \
11540	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11541	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11542	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11543	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11544	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11545	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11546	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11547
11548
11549
11550# Check whether --enable-silent-rules was given.
11551if test ${enable_silent_rules+y}
11552then :
11553  enableval=$enable_silent_rules;
11554fi
11555
11556case $enable_silent_rules in # (((
11557  yes) AM_DEFAULT_VERBOSITY=0;;
11558   no) AM_DEFAULT_VERBOSITY=1;;
11559    *) AM_DEFAULT_VERBOSITY=0;;
11560esac
11561am_make=${MAKE-make}
11562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11563printf %s "checking whether $am_make supports nested variables... " >&6; }
11564if test ${am_cv_make_support_nested_variables+y}
11565then :
11566  printf %s "(cached) " >&6
11567else case e in #(
11568  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11569BAR0=false
11570BAR1=true
11571V=1
11572am__doit:
11573	@$(TRUE)
11574.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11575  am_cv_make_support_nested_variables=yes
11576else
11577  am_cv_make_support_nested_variables=no
11578fi ;;
11579esac
11580fi
11581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11582printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11583if test $am_cv_make_support_nested_variables = yes; then
11584    AM_V='$(V)'
11585  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11586else
11587  AM_V=$AM_DEFAULT_VERBOSITY
11588  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11589fi
11590AM_BACKSLASH='\'
11591
11592
11593
11594
11595# Disable some of the warnings xorg-macros.m4 sets by default that cause
11596# too much noise here
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610xorg_testset_save_CFLAGS="$CFLAGS"
11611
11612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11617then :
11618  printf %s "(cached) " >&6
11619else case e in #(
11620  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621/* end confdefs.h.  */
11622int i;
11623_ACEOF
11624if ac_fn_c_try_compile "$LINENO"
11625then :
11626  xorg_cv_cc_flag_unknown_warning_option=yes
11627else case e in #(
11628  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11629esac
11630fi
11631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11632esac
11633fi
11634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11637	CFLAGS="$xorg_testset_save_CFLAGS"
11638fi
11639
11640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11643	fi
11644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11647if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11648then :
11649  printf %s "(cached) " >&6
11650else case e in #(
11651  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h.  */
11653int i;
11654_ACEOF
11655if ac_fn_c_try_compile "$LINENO"
11656then :
11657  xorg_cv_cc_flag_unused_command_line_argument=yes
11658else case e in #(
11659  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11660esac
11661fi
11662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11663esac
11664fi
11665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11668	CFLAGS="$xorg_testset_save_CFLAGS"
11669fi
11670
11671found="no"
11672
11673	if test $found = "no" ; then
11674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11676		fi
11677
11678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11680		fi
11681
11682		CFLAGS="$CFLAGS -Wno-declaration-after-statement"
11683
11684		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-declaration-after-statement" >&5
11685printf %s "checking if $CC supports -Wno-declaration-after-statement... " >&6; }
11686		cacheid=xorg_cv_cc_flag__Wno_declaration_after_statement
11687		if eval test \${$cacheid+y}
11688then :
11689  printf %s "(cached) " >&6
11690else case e in #(
11691  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692/* end confdefs.h.  */
11693int i;
11694int
11695main (void)
11696{
11697
11698  ;
11699  return 0;
11700}
11701_ACEOF
11702if ac_fn_c_try_link "$LINENO"
11703then :
11704  eval $cacheid=yes
11705else case e in #(
11706  e) eval $cacheid=no ;;
11707esac
11708fi
11709rm -f core conftest.err conftest.$ac_objext conftest.beam \
11710    conftest$ac_exeext conftest.$ac_ext ;;
11711esac
11712fi
11713
11714
11715		CFLAGS="$xorg_testset_save_CFLAGS"
11716
11717		eval supported=\$$cacheid
11718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11719printf "%s\n" "$supported" >&6; }
11720		if test "$supported" = "yes" ; then
11721			BASE_CFLAGS="$BASE_CFLAGS -Wno-declaration-after-statement"
11722			found="yes"
11723		fi
11724	fi
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740xorg_testset_save_CFLAGS="$CFLAGS"
11741
11742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11747then :
11748  printf %s "(cached) " >&6
11749else case e in #(
11750  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751/* end confdefs.h.  */
11752int i;
11753_ACEOF
11754if ac_fn_c_try_compile "$LINENO"
11755then :
11756  xorg_cv_cc_flag_unknown_warning_option=yes
11757else case e in #(
11758  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11759esac
11760fi
11761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11762esac
11763fi
11764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11767	CFLAGS="$xorg_testset_save_CFLAGS"
11768fi
11769
11770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11773	fi
11774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11777if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11778then :
11779  printf %s "(cached) " >&6
11780else case e in #(
11781  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782/* end confdefs.h.  */
11783int i;
11784_ACEOF
11785if ac_fn_c_try_compile "$LINENO"
11786then :
11787  xorg_cv_cc_flag_unused_command_line_argument=yes
11788else case e in #(
11789  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11790esac
11791fi
11792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11793esac
11794fi
11795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11796printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11798	CFLAGS="$xorg_testset_save_CFLAGS"
11799fi
11800
11801found="no"
11802
11803	if test $found = "no" ; then
11804		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11806		fi
11807
11808		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11810		fi
11811
11812		CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
11813
11814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-but-set-variable" >&5
11815printf %s "checking if $CC supports -Wno-unused-but-set-variable... " >&6; }
11816		cacheid=xorg_cv_cc_flag__Wno_unused_but_set_variable
11817		if eval test \${$cacheid+y}
11818then :
11819  printf %s "(cached) " >&6
11820else case e in #(
11821  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822/* end confdefs.h.  */
11823int i;
11824int
11825main (void)
11826{
11827
11828  ;
11829  return 0;
11830}
11831_ACEOF
11832if ac_fn_c_try_link "$LINENO"
11833then :
11834  eval $cacheid=yes
11835else case e in #(
11836  e) eval $cacheid=no ;;
11837esac
11838fi
11839rm -f core conftest.err conftest.$ac_objext conftest.beam \
11840    conftest$ac_exeext conftest.$ac_ext ;;
11841esac
11842fi
11843
11844
11845		CFLAGS="$xorg_testset_save_CFLAGS"
11846
11847		eval supported=\$$cacheid
11848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11849printf "%s\n" "$supported" >&6; }
11850		if test "$supported" = "yes" ; then
11851			BASE_CFLAGS="$BASE_CFLAGS -Wno-unused-but-set-variable"
11852			found="yes"
11853		fi
11854	fi
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870xorg_testset_save_CFLAGS="$CFLAGS"
11871
11872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11875printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11876if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11877then :
11878  printf %s "(cached) " >&6
11879else case e in #(
11880  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881/* end confdefs.h.  */
11882int i;
11883_ACEOF
11884if ac_fn_c_try_compile "$LINENO"
11885then :
11886  xorg_cv_cc_flag_unknown_warning_option=yes
11887else case e in #(
11888  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11889esac
11890fi
11891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11892esac
11893fi
11894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11895printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11896	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11897	CFLAGS="$xorg_testset_save_CFLAGS"
11898fi
11899
11900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11901	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11902		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11903	fi
11904	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11905	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11906printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11907if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11908then :
11909  printf %s "(cached) " >&6
11910else case e in #(
11911  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912/* end confdefs.h.  */
11913int i;
11914_ACEOF
11915if ac_fn_c_try_compile "$LINENO"
11916then :
11917  xorg_cv_cc_flag_unused_command_line_argument=yes
11918else case e in #(
11919  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11920esac
11921fi
11922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11923esac
11924fi
11925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11927	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11928	CFLAGS="$xorg_testset_save_CFLAGS"
11929fi
11930
11931found="no"
11932
11933	if test $found = "no" ; then
11934		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11936		fi
11937
11938		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11940		fi
11941
11942		CFLAGS="$CFLAGS -Wno-unused-value"
11943
11944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-value" >&5
11945printf %s "checking if $CC supports -Wno-unused-value... " >&6; }
11946		cacheid=xorg_cv_cc_flag__Wno_unused_value
11947		if eval test \${$cacheid+y}
11948then :
11949  printf %s "(cached) " >&6
11950else case e in #(
11951  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h.  */
11953int i;
11954int
11955main (void)
11956{
11957
11958  ;
11959  return 0;
11960}
11961_ACEOF
11962if ac_fn_c_try_link "$LINENO"
11963then :
11964  eval $cacheid=yes
11965else case e in #(
11966  e) eval $cacheid=no ;;
11967esac
11968fi
11969rm -f core conftest.err conftest.$ac_objext conftest.beam \
11970    conftest$ac_exeext conftest.$ac_ext ;;
11971esac
11972fi
11973
11974
11975		CFLAGS="$xorg_testset_save_CFLAGS"
11976
11977		eval supported=\$$cacheid
11978		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11979printf "%s\n" "$supported" >&6; }
11980		if test "$supported" = "yes" ; then
11981			BASE_CFLAGS="$BASE_CFLAGS -Wno-unused-value"
11982			found="yes"
11983		fi
11984	fi
11985
11986
11987
11988# Initialize libtool
11989case `pwd` in
11990  *\ * | *\	*)
11991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11992printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11993esac
11994
11995
11996
11997macro_version='2.4.7'
11998macro_revision='2.4.7'
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013ltmain=$ac_aux_dir/ltmain.sh
12014
12015# Backslashify metacharacters that are still active within
12016# double-quoted strings.
12017sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12018
12019# Same as above, but do not quote variable references.
12020double_quote_subst='s/\(["`\\]\)/\\\1/g'
12021
12022# Sed substitution to delay expansion of an escaped shell variable in a
12023# double_quote_subst'ed string.
12024delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12025
12026# Sed substitution to delay expansion of an escaped single quote.
12027delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12028
12029# Sed substitution to avoid accidental globbing in evaled expressions
12030no_glob_subst='s/\*/\\\*/g'
12031
12032ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12033ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12034ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12035
12036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12037printf %s "checking how to print strings... " >&6; }
12038# Test print first, because it will be a builtin if present.
12039if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
12040   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12041  ECHO='print -r --'
12042elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12043  ECHO='printf %s\n'
12044else
12045  # Use this function as a fallback that always works.
12046  func_fallback_echo ()
12047  {
12048    eval 'cat <<_LTECHO_EOF
12049$1
12050_LTECHO_EOF'
12051  }
12052  ECHO='func_fallback_echo'
12053fi
12054
12055# func_echo_all arg...
12056# Invoke $ECHO with all args, space-separated.
12057func_echo_all ()
12058{
12059    $ECHO ""
12060}
12061
12062case $ECHO in
12063  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12064printf "%s\n" "printf" >&6; } ;;
12065  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12066printf "%s\n" "print -r" >&6; } ;;
12067  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12068printf "%s\n" "cat" >&6; } ;;
12069esac
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12085printf %s "checking for a sed that does not truncate output... " >&6; }
12086if test ${ac_cv_path_SED+y}
12087then :
12088  printf %s "(cached) " >&6
12089else case e in #(
12090  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12091     for ac_i in 1 2 3 4 5 6 7; do
12092       ac_script="$ac_script$as_nl$ac_script"
12093     done
12094     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12095     { ac_script=; unset ac_script;}
12096     if test -z "$SED"; then
12097  ac_path_SED_found=false
12098  # Loop through the user's path and test for each of PROGNAME-LIST
12099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100for as_dir in $PATH
12101do
12102  IFS=$as_save_IFS
12103  case $as_dir in #(((
12104    '') as_dir=./ ;;
12105    */) ;;
12106    *) as_dir=$as_dir/ ;;
12107  esac
12108    for ac_prog in sed gsed
12109   do
12110    for ac_exec_ext in '' $ac_executable_extensions; do
12111      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
12112      as_fn_executable_p "$ac_path_SED" || continue
12113# Check for GNU ac_path_SED and select it if it is found.
12114  # Check for GNU $ac_path_SED
12115case `"$ac_path_SED" --version 2>&1` in #(
12116*GNU*)
12117  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12118#(
12119*)
12120  ac_count=0
12121  printf %s 0123456789 >"conftest.in"
12122  while :
12123  do
12124    cat "conftest.in" "conftest.in" >"conftest.tmp"
12125    mv "conftest.tmp" "conftest.in"
12126    cp "conftest.in" "conftest.nl"
12127    printf "%s\n" '' >> "conftest.nl"
12128    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12129    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12130    as_fn_arith $ac_count + 1 && ac_count=$as_val
12131    if test $ac_count -gt ${ac_path_SED_max-0}; then
12132      # Best one so far, save it but keep looking for a better one
12133      ac_cv_path_SED="$ac_path_SED"
12134      ac_path_SED_max=$ac_count
12135    fi
12136    # 10*(2^10) chars as input seems more than enough
12137    test $ac_count -gt 10 && break
12138  done
12139  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12140esac
12141
12142      $ac_path_SED_found && break 3
12143    done
12144  done
12145  done
12146IFS=$as_save_IFS
12147  if test -z "$ac_cv_path_SED"; then
12148    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12149  fi
12150else
12151  ac_cv_path_SED=$SED
12152fi
12153 ;;
12154esac
12155fi
12156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12157printf "%s\n" "$ac_cv_path_SED" >&6; }
12158 SED="$ac_cv_path_SED"
12159  rm -f conftest.sed
12160
12161test -z "$SED" && SED=sed
12162Xsed="$SED -e 1s/^X//"
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12175printf %s "checking for grep that handles long lines and -e... " >&6; }
12176if test ${ac_cv_path_GREP+y}
12177then :
12178  printf %s "(cached) " >&6
12179else case e in #(
12180  e) if test -z "$GREP"; then
12181  ac_path_GREP_found=false
12182  # Loop through the user's path and test for each of PROGNAME-LIST
12183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12185do
12186  IFS=$as_save_IFS
12187  case $as_dir in #(((
12188    '') as_dir=./ ;;
12189    */) ;;
12190    *) as_dir=$as_dir/ ;;
12191  esac
12192    for ac_prog in grep ggrep
12193   do
12194    for ac_exec_ext in '' $ac_executable_extensions; do
12195      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
12196      as_fn_executable_p "$ac_path_GREP" || continue
12197# Check for GNU ac_path_GREP and select it if it is found.
12198  # Check for GNU $ac_path_GREP
12199case `"$ac_path_GREP" --version 2>&1` in #(
12200*GNU*)
12201  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12202#(
12203*)
12204  ac_count=0
12205  printf %s 0123456789 >"conftest.in"
12206  while :
12207  do
12208    cat "conftest.in" "conftest.in" >"conftest.tmp"
12209    mv "conftest.tmp" "conftest.in"
12210    cp "conftest.in" "conftest.nl"
12211    printf "%s\n" 'GREP' >> "conftest.nl"
12212    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12213    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12214    as_fn_arith $ac_count + 1 && ac_count=$as_val
12215    if test $ac_count -gt ${ac_path_GREP_max-0}; then
12216      # Best one so far, save it but keep looking for a better one
12217      ac_cv_path_GREP="$ac_path_GREP"
12218      ac_path_GREP_max=$ac_count
12219    fi
12220    # 10*(2^10) chars as input seems more than enough
12221    test $ac_count -gt 10 && break
12222  done
12223  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12224esac
12225
12226      $ac_path_GREP_found && break 3
12227    done
12228  done
12229  done
12230IFS=$as_save_IFS
12231  if test -z "$ac_cv_path_GREP"; then
12232    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12233  fi
12234else
12235  ac_cv_path_GREP=$GREP
12236fi
12237 ;;
12238esac
12239fi
12240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12241printf "%s\n" "$ac_cv_path_GREP" >&6; }
12242 GREP="$ac_cv_path_GREP"
12243
12244
12245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12246printf %s "checking for egrep... " >&6; }
12247if test ${ac_cv_path_EGREP+y}
12248then :
12249  printf %s "(cached) " >&6
12250else case e in #(
12251  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12252   then ac_cv_path_EGREP="$GREP -E"
12253   else
12254     if test -z "$EGREP"; then
12255  ac_path_EGREP_found=false
12256  # Loop through the user's path and test for each of PROGNAME-LIST
12257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12259do
12260  IFS=$as_save_IFS
12261  case $as_dir in #(((
12262    '') as_dir=./ ;;
12263    */) ;;
12264    *) as_dir=$as_dir/ ;;
12265  esac
12266    for ac_prog in egrep
12267   do
12268    for ac_exec_ext in '' $ac_executable_extensions; do
12269      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
12270      as_fn_executable_p "$ac_path_EGREP" || continue
12271# Check for GNU ac_path_EGREP and select it if it is found.
12272  # Check for GNU $ac_path_EGREP
12273case `"$ac_path_EGREP" --version 2>&1` in #(
12274*GNU*)
12275  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12276#(
12277*)
12278  ac_count=0
12279  printf %s 0123456789 >"conftest.in"
12280  while :
12281  do
12282    cat "conftest.in" "conftest.in" >"conftest.tmp"
12283    mv "conftest.tmp" "conftest.in"
12284    cp "conftest.in" "conftest.nl"
12285    printf "%s\n" 'EGREP' >> "conftest.nl"
12286    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12287    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12288    as_fn_arith $ac_count + 1 && ac_count=$as_val
12289    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12290      # Best one so far, save it but keep looking for a better one
12291      ac_cv_path_EGREP="$ac_path_EGREP"
12292      ac_path_EGREP_max=$ac_count
12293    fi
12294    # 10*(2^10) chars as input seems more than enough
12295    test $ac_count -gt 10 && break
12296  done
12297  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12298esac
12299
12300      $ac_path_EGREP_found && break 3
12301    done
12302  done
12303  done
12304IFS=$as_save_IFS
12305  if test -z "$ac_cv_path_EGREP"; then
12306    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12307  fi
12308else
12309  ac_cv_path_EGREP=$EGREP
12310fi
12311
12312   fi ;;
12313esac
12314fi
12315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12316printf "%s\n" "$ac_cv_path_EGREP" >&6; }
12317 EGREP="$ac_cv_path_EGREP"
12318
12319         EGREP_TRADITIONAL=$EGREP
12320 ac_cv_path_EGREP_TRADITIONAL=$EGREP
12321
12322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12323printf %s "checking for fgrep... " >&6; }
12324if test ${ac_cv_path_FGREP+y}
12325then :
12326  printf %s "(cached) " >&6
12327else case e in #(
12328  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12329   then ac_cv_path_FGREP="$GREP -F"
12330   else
12331     if test -z "$FGREP"; then
12332  ac_path_FGREP_found=false
12333  # Loop through the user's path and test for each of PROGNAME-LIST
12334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12336do
12337  IFS=$as_save_IFS
12338  case $as_dir in #(((
12339    '') as_dir=./ ;;
12340    */) ;;
12341    *) as_dir=$as_dir/ ;;
12342  esac
12343    for ac_prog in fgrep
12344   do
12345    for ac_exec_ext in '' $ac_executable_extensions; do
12346      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
12347      as_fn_executable_p "$ac_path_FGREP" || continue
12348# Check for GNU ac_path_FGREP and select it if it is found.
12349  # Check for GNU $ac_path_FGREP
12350case `"$ac_path_FGREP" --version 2>&1` in #(
12351*GNU*)
12352  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12353#(
12354*)
12355  ac_count=0
12356  printf %s 0123456789 >"conftest.in"
12357  while :
12358  do
12359    cat "conftest.in" "conftest.in" >"conftest.tmp"
12360    mv "conftest.tmp" "conftest.in"
12361    cp "conftest.in" "conftest.nl"
12362    printf "%s\n" 'FGREP' >> "conftest.nl"
12363    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12364    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12365    as_fn_arith $ac_count + 1 && ac_count=$as_val
12366    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12367      # Best one so far, save it but keep looking for a better one
12368      ac_cv_path_FGREP="$ac_path_FGREP"
12369      ac_path_FGREP_max=$ac_count
12370    fi
12371    # 10*(2^10) chars as input seems more than enough
12372    test $ac_count -gt 10 && break
12373  done
12374  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12375esac
12376
12377      $ac_path_FGREP_found && break 3
12378    done
12379  done
12380  done
12381IFS=$as_save_IFS
12382  if test -z "$ac_cv_path_FGREP"; then
12383    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12384  fi
12385else
12386  ac_cv_path_FGREP=$FGREP
12387fi
12388
12389   fi ;;
12390esac
12391fi
12392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12393printf "%s\n" "$ac_cv_path_FGREP" >&6; }
12394 FGREP="$ac_cv_path_FGREP"
12395
12396
12397test -z "$GREP" && GREP=grep
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417# Check whether --with-gnu-ld was given.
12418if test ${with_gnu_ld+y}
12419then :
12420  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12421else case e in #(
12422  e) with_gnu_ld=no ;;
12423esac
12424fi
12425
12426ac_prog=ld
12427if test yes = "$GCC"; then
12428  # Check if gcc -print-prog-name=ld gives a path.
12429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12430printf %s "checking for ld used by $CC... " >&6; }
12431  case $host in
12432  *-*-mingw*)
12433    # gcc leaves a trailing carriage return, which upsets mingw
12434    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12435  *)
12436    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12437  esac
12438  case $ac_prog in
12439    # Accept absolute paths.
12440    [\\/]* | ?:[\\/]*)
12441      re_direlt='/[^/][^/]*/\.\./'
12442      # Canonicalize the pathname of ld
12443      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12444      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12445	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12446      done
12447      test -z "$LD" && LD=$ac_prog
12448      ;;
12449  "")
12450    # If it fails, then pretend we aren't using GCC.
12451    ac_prog=ld
12452    ;;
12453  *)
12454    # If it is relative, then search for the first ld in PATH.
12455    with_gnu_ld=unknown
12456    ;;
12457  esac
12458elif test yes = "$with_gnu_ld"; then
12459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12460printf %s "checking for GNU ld... " >&6; }
12461else
12462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12463printf %s "checking for non-GNU ld... " >&6; }
12464fi
12465if test ${lt_cv_path_LD+y}
12466then :
12467  printf %s "(cached) " >&6
12468else case e in #(
12469  e) if test -z "$LD"; then
12470  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12471  for ac_dir in $PATH; do
12472    IFS=$lt_save_ifs
12473    test -z "$ac_dir" && ac_dir=.
12474    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12475      lt_cv_path_LD=$ac_dir/$ac_prog
12476      # Check to see if the program is GNU ld.  I'd rather use --version,
12477      # but apparently some variants of GNU ld only accept -v.
12478      # Break only if it was the GNU/non-GNU ld that we prefer.
12479      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12480      *GNU* | *'with BFD'*)
12481	test no != "$with_gnu_ld" && break
12482	;;
12483      *)
12484	test yes != "$with_gnu_ld" && break
12485	;;
12486      esac
12487    fi
12488  done
12489  IFS=$lt_save_ifs
12490else
12491  lt_cv_path_LD=$LD # Let the user override the test with a path.
12492fi ;;
12493esac
12494fi
12495
12496LD=$lt_cv_path_LD
12497if test -n "$LD"; then
12498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12499printf "%s\n" "$LD" >&6; }
12500else
12501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502printf "%s\n" "no" >&6; }
12503fi
12504test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12506printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12507if test ${lt_cv_prog_gnu_ld+y}
12508then :
12509  printf %s "(cached) " >&6
12510else case e in #(
12511  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
12512case `$LD -v 2>&1 </dev/null` in
12513*GNU* | *'with BFD'*)
12514  lt_cv_prog_gnu_ld=yes
12515  ;;
12516*)
12517  lt_cv_prog_gnu_ld=no
12518  ;;
12519esac ;;
12520esac
12521fi
12522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12523printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12524with_gnu_ld=$lt_cv_prog_gnu_ld
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12535printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12536if test ${lt_cv_path_NM+y}
12537then :
12538  printf %s "(cached) " >&6
12539else case e in #(
12540  e) if test -n "$NM"; then
12541  # Let the user override the test.
12542  lt_cv_path_NM=$NM
12543else
12544  lt_nm_to_check=${ac_tool_prefix}nm
12545  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12546    lt_nm_to_check="$lt_nm_to_check nm"
12547  fi
12548  for lt_tmp_nm in $lt_nm_to_check; do
12549    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12550    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12551      IFS=$lt_save_ifs
12552      test -z "$ac_dir" && ac_dir=.
12553      tmp_nm=$ac_dir/$lt_tmp_nm
12554      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12555	# Check to see if the nm accepts a BSD-compat flag.
12556	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12557	#   nm: unknown option "B" ignored
12558	# Tru64's nm complains that /dev/null is an invalid object file
12559	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12560	case $build_os in
12561	mingw*) lt_bad_file=conftest.nm/nofile ;;
12562	*) lt_bad_file=/dev/null ;;
12563	esac
12564	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12565	*$lt_bad_file* | *'Invalid file or object type'*)
12566	  lt_cv_path_NM="$tmp_nm -B"
12567	  break 2
12568	  ;;
12569	*)
12570	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12571	  */dev/null*)
12572	    lt_cv_path_NM="$tmp_nm -p"
12573	    break 2
12574	    ;;
12575	  *)
12576	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12577	    continue # so that we can try to find one that supports BSD flags
12578	    ;;
12579	  esac
12580	  ;;
12581	esac
12582      fi
12583    done
12584    IFS=$lt_save_ifs
12585  done
12586  : ${lt_cv_path_NM=no}
12587fi ;;
12588esac
12589fi
12590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12591printf "%s\n" "$lt_cv_path_NM" >&6; }
12592if test no != "$lt_cv_path_NM"; then
12593  NM=$lt_cv_path_NM
12594else
12595  # Didn't find any BSD compatible name lister, look for dumpbin.
12596  if test -n "$DUMPBIN"; then :
12597    # Let the user override the test.
12598  else
12599    if test -n "$ac_tool_prefix"; then
12600  for ac_prog in dumpbin "link -dump"
12601  do
12602    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605printf %s "checking for $ac_word... " >&6; }
12606if test ${ac_cv_prog_DUMPBIN+y}
12607then :
12608  printf %s "(cached) " >&6
12609else case e in #(
12610  e) if test -n "$DUMPBIN"; then
12611  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12612else
12613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614for as_dir in $PATH
12615do
12616  IFS=$as_save_IFS
12617  case $as_dir in #(((
12618    '') as_dir=./ ;;
12619    */) ;;
12620    *) as_dir=$as_dir/ ;;
12621  esac
12622    for ac_exec_ext in '' $ac_executable_extensions; do
12623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12624    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12626    break 2
12627  fi
12628done
12629  done
12630IFS=$as_save_IFS
12631
12632fi ;;
12633esac
12634fi
12635DUMPBIN=$ac_cv_prog_DUMPBIN
12636if test -n "$DUMPBIN"; then
12637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12638printf "%s\n" "$DUMPBIN" >&6; }
12639else
12640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641printf "%s\n" "no" >&6; }
12642fi
12643
12644
12645    test -n "$DUMPBIN" && break
12646  done
12647fi
12648if test -z "$DUMPBIN"; then
12649  ac_ct_DUMPBIN=$DUMPBIN
12650  for ac_prog in dumpbin "link -dump"
12651do
12652  # Extract the first word of "$ac_prog", so it can be a program name with args.
12653set dummy $ac_prog; ac_word=$2
12654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655printf %s "checking for $ac_word... " >&6; }
12656if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12657then :
12658  printf %s "(cached) " >&6
12659else case e in #(
12660  e) if test -n "$ac_ct_DUMPBIN"; then
12661  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12662else
12663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664for as_dir in $PATH
12665do
12666  IFS=$as_save_IFS
12667  case $as_dir in #(((
12668    '') as_dir=./ ;;
12669    */) ;;
12670    *) as_dir=$as_dir/ ;;
12671  esac
12672    for ac_exec_ext in '' $ac_executable_extensions; do
12673  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12674    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12675    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12676    break 2
12677  fi
12678done
12679  done
12680IFS=$as_save_IFS
12681
12682fi ;;
12683esac
12684fi
12685ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12686if test -n "$ac_ct_DUMPBIN"; then
12687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12688printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12689else
12690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691printf "%s\n" "no" >&6; }
12692fi
12693
12694
12695  test -n "$ac_ct_DUMPBIN" && break
12696done
12697
12698  if test "x$ac_ct_DUMPBIN" = x; then
12699    DUMPBIN=":"
12700  else
12701    case $cross_compiling:$ac_tool_warned in
12702yes:)
12703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12704printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12705ac_tool_warned=yes ;;
12706esac
12707    DUMPBIN=$ac_ct_DUMPBIN
12708  fi
12709fi
12710
12711    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12712    *COFF*)
12713      DUMPBIN="$DUMPBIN -symbols -headers"
12714      ;;
12715    *)
12716      DUMPBIN=:
12717      ;;
12718    esac
12719  fi
12720
12721  if test : != "$DUMPBIN"; then
12722    NM=$DUMPBIN
12723  fi
12724fi
12725test -z "$NM" && NM=nm
12726
12727
12728
12729
12730
12731
12732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12733printf %s "checking the name lister ($NM) interface... " >&6; }
12734if test ${lt_cv_nm_interface+y}
12735then :
12736  printf %s "(cached) " >&6
12737else case e in #(
12738  e) lt_cv_nm_interface="BSD nm"
12739  echo "int some_variable = 0;" > conftest.$ac_ext
12740  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12741  (eval "$ac_compile" 2>conftest.err)
12742  cat conftest.err >&5
12743  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12744  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12745  cat conftest.err >&5
12746  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12747  cat conftest.out >&5
12748  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12749    lt_cv_nm_interface="MS dumpbin"
12750  fi
12751  rm -f conftest* ;;
12752esac
12753fi
12754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12755printf "%s\n" "$lt_cv_nm_interface" >&6; }
12756
12757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12758printf %s "checking whether ln -s works... " >&6; }
12759LN_S=$as_ln_s
12760if test "$LN_S" = "ln -s"; then
12761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762printf "%s\n" "yes" >&6; }
12763else
12764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12765printf "%s\n" "no, using $LN_S" >&6; }
12766fi
12767
12768# find the maximum length of command line arguments
12769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12770printf %s "checking the maximum length of command line arguments... " >&6; }
12771if test ${lt_cv_sys_max_cmd_len+y}
12772then :
12773  printf %s "(cached) " >&6
12774else case e in #(
12775  e)   i=0
12776  teststring=ABCD
12777
12778  case $build_os in
12779  msdosdjgpp*)
12780    # On DJGPP, this test can blow up pretty badly due to problems in libc
12781    # (any single argument exceeding 2000 bytes causes a buffer overrun
12782    # during glob expansion).  Even if it were fixed, the result of this
12783    # check would be larger than it should be.
12784    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12785    ;;
12786
12787  gnu*)
12788    # Under GNU Hurd, this test is not required because there is
12789    # no limit to the length of command line arguments.
12790    # Libtool will interpret -1 as no limit whatsoever
12791    lt_cv_sys_max_cmd_len=-1;
12792    ;;
12793
12794  cygwin* | mingw* | cegcc*)
12795    # On Win9x/ME, this test blows up -- it succeeds, but takes
12796    # about 5 minutes as the teststring grows exponentially.
12797    # Worse, since 9x/ME are not pre-emptively multitasking,
12798    # you end up with a "frozen" computer, even though with patience
12799    # the test eventually succeeds (with a max line length of 256k).
12800    # Instead, let's just punt: use the minimum linelength reported by
12801    # all of the supported platforms: 8192 (on NT/2K/XP).
12802    lt_cv_sys_max_cmd_len=8192;
12803    ;;
12804
12805  mint*)
12806    # On MiNT this can take a long time and run out of memory.
12807    lt_cv_sys_max_cmd_len=8192;
12808    ;;
12809
12810  amigaos*)
12811    # On AmigaOS with pdksh, this test takes hours, literally.
12812    # So we just punt and use a minimum line length of 8192.
12813    lt_cv_sys_max_cmd_len=8192;
12814    ;;
12815
12816  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12817    # This has been around since 386BSD, at least.  Likely further.
12818    if test -x /sbin/sysctl; then
12819      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12820    elif test -x /usr/sbin/sysctl; then
12821      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12822    else
12823      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12824    fi
12825    # And add a safety zone
12826    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12827    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12828    ;;
12829
12830  interix*)
12831    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12832    lt_cv_sys_max_cmd_len=196608
12833    ;;
12834
12835  os2*)
12836    # The test takes a long time on OS/2.
12837    lt_cv_sys_max_cmd_len=8192
12838    ;;
12839
12840  osf*)
12841    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12842    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12843    # nice to cause kernel panics so lets avoid the loop below.
12844    # First set a reasonable default.
12845    lt_cv_sys_max_cmd_len=16384
12846    #
12847    if test -x /sbin/sysconfig; then
12848      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12849        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12850      esac
12851    fi
12852    ;;
12853  sco3.2v5*)
12854    lt_cv_sys_max_cmd_len=102400
12855    ;;
12856  sysv5* | sco5v6* | sysv4.2uw2*)
12857    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12858    if test -n "$kargmax"; then
12859      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12860    else
12861      lt_cv_sys_max_cmd_len=32768
12862    fi
12863    ;;
12864  *)
12865    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12866    if test -n "$lt_cv_sys_max_cmd_len" && \
12867       test undefined != "$lt_cv_sys_max_cmd_len"; then
12868      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12869      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12870    else
12871      # Make teststring a little bigger before we do anything with it.
12872      # a 1K string should be a reasonable start.
12873      for i in 1 2 3 4 5 6 7 8; do
12874        teststring=$teststring$teststring
12875      done
12876      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12877      # If test is not a shell built-in, we'll probably end up computing a
12878      # maximum length that is only half of the actual maximum length, but
12879      # we can't tell.
12880      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12881	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12882	      test 17 != "$i" # 1/2 MB should be enough
12883      do
12884        i=`expr $i + 1`
12885        teststring=$teststring$teststring
12886      done
12887      # Only check the string length outside the loop.
12888      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12889      teststring=
12890      # Add a significant safety factor because C++ compilers can tack on
12891      # massive amounts of additional arguments before passing them to the
12892      # linker.  It appears as though 1/2 is a usable value.
12893      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12894    fi
12895    ;;
12896  esac
12897 ;;
12898esac
12899fi
12900
12901if test -n "$lt_cv_sys_max_cmd_len"; then
12902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12903printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12904else
12905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12906printf "%s\n" "none" >&6; }
12907fi
12908max_cmd_len=$lt_cv_sys_max_cmd_len
12909
12910
12911
12912
12913
12914
12915: ${CP="cp -f"}
12916: ${MV="mv -f"}
12917: ${RM="rm -f"}
12918
12919if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12920  lt_unset=unset
12921else
12922  lt_unset=false
12923fi
12924
12925
12926
12927
12928
12929# test EBCDIC or ASCII
12930case `echo X|tr X '\101'` in
12931 A) # ASCII based system
12932    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12933  lt_SP2NL='tr \040 \012'
12934  lt_NL2SP='tr \015\012 \040\040'
12935  ;;
12936 *) # EBCDIC based system
12937  lt_SP2NL='tr \100 \n'
12938  lt_NL2SP='tr \r\n \100\100'
12939  ;;
12940esac
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12951printf %s "checking how to convert $build file names to $host format... " >&6; }
12952if test ${lt_cv_to_host_file_cmd+y}
12953then :
12954  printf %s "(cached) " >&6
12955else case e in #(
12956  e) case $host in
12957  *-*-mingw* )
12958    case $build in
12959      *-*-mingw* ) # actually msys
12960        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12961        ;;
12962      *-*-cygwin* )
12963        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12964        ;;
12965      * ) # otherwise, assume *nix
12966        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12967        ;;
12968    esac
12969    ;;
12970  *-*-cygwin* )
12971    case $build in
12972      *-*-mingw* ) # actually msys
12973        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12974        ;;
12975      *-*-cygwin* )
12976        lt_cv_to_host_file_cmd=func_convert_file_noop
12977        ;;
12978      * ) # otherwise, assume *nix
12979        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12980        ;;
12981    esac
12982    ;;
12983  * ) # unhandled hosts (and "normal" native builds)
12984    lt_cv_to_host_file_cmd=func_convert_file_noop
12985    ;;
12986esac
12987 ;;
12988esac
12989fi
12990
12991to_host_file_cmd=$lt_cv_to_host_file_cmd
12992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12993printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12994
12995
12996
12997
12998
12999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13000printf %s "checking how to convert $build file names to toolchain format... " >&6; }
13001if test ${lt_cv_to_tool_file_cmd+y}
13002then :
13003  printf %s "(cached) " >&6
13004else case e in #(
13005  e) #assume ordinary cross tools, or native build.
13006lt_cv_to_tool_file_cmd=func_convert_file_noop
13007case $host in
13008  *-*-mingw* )
13009    case $build in
13010      *-*-mingw* ) # actually msys
13011        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13012        ;;
13013    esac
13014    ;;
13015esac
13016 ;;
13017esac
13018fi
13019
13020to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13022printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
13023
13024
13025
13026
13027
13028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13029printf %s "checking for $LD option to reload object files... " >&6; }
13030if test ${lt_cv_ld_reload_flag+y}
13031then :
13032  printf %s "(cached) " >&6
13033else case e in #(
13034  e) lt_cv_ld_reload_flag='-r' ;;
13035esac
13036fi
13037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13038printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
13039reload_flag=$lt_cv_ld_reload_flag
13040case $reload_flag in
13041"" | " "*) ;;
13042*) reload_flag=" $reload_flag" ;;
13043esac
13044reload_cmds='$LD$reload_flag -o $output$reload_objs'
13045case $host_os in
13046  cygwin* | mingw* | pw32* | cegcc*)
13047    if test yes != "$GCC"; then
13048      reload_cmds=false
13049    fi
13050    ;;
13051  darwin*)
13052    if test yes = "$GCC"; then
13053      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
13054    else
13055      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13056    fi
13057    ;;
13058esac
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068if test -n "$ac_tool_prefix"; then
13069  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
13070set dummy ${ac_tool_prefix}file; ac_word=$2
13071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13072printf %s "checking for $ac_word... " >&6; }
13073if test ${ac_cv_prog_FILECMD+y}
13074then :
13075  printf %s "(cached) " >&6
13076else case e in #(
13077  e) if test -n "$FILECMD"; then
13078  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
13079else
13080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081for as_dir in $PATH
13082do
13083  IFS=$as_save_IFS
13084  case $as_dir in #(((
13085    '') as_dir=./ ;;
13086    */) ;;
13087    *) as_dir=$as_dir/ ;;
13088  esac
13089    for ac_exec_ext in '' $ac_executable_extensions; do
13090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13091    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
13092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13093    break 2
13094  fi
13095done
13096  done
13097IFS=$as_save_IFS
13098
13099fi ;;
13100esac
13101fi
13102FILECMD=$ac_cv_prog_FILECMD
13103if test -n "$FILECMD"; then
13104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
13105printf "%s\n" "$FILECMD" >&6; }
13106else
13107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108printf "%s\n" "no" >&6; }
13109fi
13110
13111
13112fi
13113if test -z "$ac_cv_prog_FILECMD"; then
13114  ac_ct_FILECMD=$FILECMD
13115  # Extract the first word of "file", so it can be a program name with args.
13116set dummy file; ac_word=$2
13117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118printf %s "checking for $ac_word... " >&6; }
13119if test ${ac_cv_prog_ac_ct_FILECMD+y}
13120then :
13121  printf %s "(cached) " >&6
13122else case e in #(
13123  e) if test -n "$ac_ct_FILECMD"; then
13124  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $PATH
13128do
13129  IFS=$as_save_IFS
13130  case $as_dir in #(((
13131    '') as_dir=./ ;;
13132    */) ;;
13133    *) as_dir=$as_dir/ ;;
13134  esac
13135    for ac_exec_ext in '' $ac_executable_extensions; do
13136  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13137    ac_cv_prog_ac_ct_FILECMD="file"
13138    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13139    break 2
13140  fi
13141done
13142  done
13143IFS=$as_save_IFS
13144
13145fi ;;
13146esac
13147fi
13148ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
13149if test -n "$ac_ct_FILECMD"; then
13150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
13151printf "%s\n" "$ac_ct_FILECMD" >&6; }
13152else
13153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154printf "%s\n" "no" >&6; }
13155fi
13156
13157  if test "x$ac_ct_FILECMD" = x; then
13158    FILECMD=":"
13159  else
13160    case $cross_compiling:$ac_tool_warned in
13161yes:)
13162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13163printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13164ac_tool_warned=yes ;;
13165esac
13166    FILECMD=$ac_ct_FILECMD
13167  fi
13168else
13169  FILECMD="$ac_cv_prog_FILECMD"
13170fi
13171
13172
13173
13174
13175
13176
13177
13178if test -n "$ac_tool_prefix"; then
13179  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13180set dummy ${ac_tool_prefix}objdump; ac_word=$2
13181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182printf %s "checking for $ac_word... " >&6; }
13183if test ${ac_cv_prog_OBJDUMP+y}
13184then :
13185  printf %s "(cached) " >&6
13186else case e in #(
13187  e) if test -n "$OBJDUMP"; then
13188  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13189else
13190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191for as_dir in $PATH
13192do
13193  IFS=$as_save_IFS
13194  case $as_dir in #(((
13195    '') as_dir=./ ;;
13196    */) ;;
13197    *) as_dir=$as_dir/ ;;
13198  esac
13199    for ac_exec_ext in '' $ac_executable_extensions; do
13200  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13201    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13202    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13203    break 2
13204  fi
13205done
13206  done
13207IFS=$as_save_IFS
13208
13209fi ;;
13210esac
13211fi
13212OBJDUMP=$ac_cv_prog_OBJDUMP
13213if test -n "$OBJDUMP"; then
13214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13215printf "%s\n" "$OBJDUMP" >&6; }
13216else
13217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218printf "%s\n" "no" >&6; }
13219fi
13220
13221
13222fi
13223if test -z "$ac_cv_prog_OBJDUMP"; then
13224  ac_ct_OBJDUMP=$OBJDUMP
13225  # Extract the first word of "objdump", so it can be a program name with args.
13226set dummy objdump; ac_word=$2
13227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228printf %s "checking for $ac_word... " >&6; }
13229if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
13230then :
13231  printf %s "(cached) " >&6
13232else case e in #(
13233  e) if test -n "$ac_ct_OBJDUMP"; then
13234  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13235else
13236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237for as_dir in $PATH
13238do
13239  IFS=$as_save_IFS
13240  case $as_dir in #(((
13241    '') as_dir=./ ;;
13242    */) ;;
13243    *) as_dir=$as_dir/ ;;
13244  esac
13245    for ac_exec_ext in '' $ac_executable_extensions; do
13246  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13247    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13248    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13249    break 2
13250  fi
13251done
13252  done
13253IFS=$as_save_IFS
13254
13255fi ;;
13256esac
13257fi
13258ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13259if test -n "$ac_ct_OBJDUMP"; then
13260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13261printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
13262else
13263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264printf "%s\n" "no" >&6; }
13265fi
13266
13267  if test "x$ac_ct_OBJDUMP" = x; then
13268    OBJDUMP="false"
13269  else
13270    case $cross_compiling:$ac_tool_warned in
13271yes:)
13272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13273printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13274ac_tool_warned=yes ;;
13275esac
13276    OBJDUMP=$ac_ct_OBJDUMP
13277  fi
13278else
13279  OBJDUMP="$ac_cv_prog_OBJDUMP"
13280fi
13281
13282test -z "$OBJDUMP" && OBJDUMP=objdump
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13293printf %s "checking how to recognize dependent libraries... " >&6; }
13294if test ${lt_cv_deplibs_check_method+y}
13295then :
13296  printf %s "(cached) " >&6
13297else case e in #(
13298  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
13299lt_cv_file_magic_test_file=
13300lt_cv_deplibs_check_method='unknown'
13301# Need to set the preceding variable on all platforms that support
13302# interlibrary dependencies.
13303# 'none' -- dependencies not supported.
13304# 'unknown' -- same as none, but documents that we really don't know.
13305# 'pass_all' -- all dependencies passed with no checks.
13306# 'test_compile' -- check by making test program.
13307# 'file_magic [[regex]]' -- check by looking for files in library path
13308# that responds to the $file_magic_cmd with a given extended regex.
13309# If you have 'file' or equivalent on your system and you're not sure
13310# whether 'pass_all' will *always* work, you probably want this one.
13311
13312case $host_os in
13313aix[4-9]*)
13314  lt_cv_deplibs_check_method=pass_all
13315  ;;
13316
13317beos*)
13318  lt_cv_deplibs_check_method=pass_all
13319  ;;
13320
13321bsdi[45]*)
13322  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13323  lt_cv_file_magic_cmd='$FILECMD -L'
13324  lt_cv_file_magic_test_file=/shlib/libc.so
13325  ;;
13326
13327cygwin*)
13328  # func_win32_libid is a shell function defined in ltmain.sh
13329  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13330  lt_cv_file_magic_cmd='func_win32_libid'
13331  ;;
13332
13333mingw* | pw32*)
13334  # Base MSYS/MinGW do not provide the 'file' command needed by
13335  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13336  # unless we find 'file', for example because we are cross-compiling.
13337  if ( file / ) >/dev/null 2>&1; then
13338    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13339    lt_cv_file_magic_cmd='func_win32_libid'
13340  else
13341    # Keep this pattern in sync with the one in func_win32_libid.
13342    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
13343    lt_cv_file_magic_cmd='$OBJDUMP -f'
13344  fi
13345  ;;
13346
13347cegcc*)
13348  # use the weaker test based on 'objdump'. See mingw*.
13349  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13350  lt_cv_file_magic_cmd='$OBJDUMP -f'
13351  ;;
13352
13353darwin* | rhapsody*)
13354  lt_cv_deplibs_check_method=pass_all
13355  ;;
13356
13357freebsd* | dragonfly* | midnightbsd*)
13358  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13359    case $host_cpu in
13360    i*86 )
13361      # Not sure whether the presence of OpenBSD here was a mistake.
13362      # Let's accept both of them until this is cleared up.
13363      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13364      lt_cv_file_magic_cmd=$FILECMD
13365      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13366      ;;
13367    esac
13368  else
13369    lt_cv_deplibs_check_method=pass_all
13370  fi
13371  ;;
13372
13373haiku*)
13374  lt_cv_deplibs_check_method=pass_all
13375  ;;
13376
13377hpux10.20* | hpux11*)
13378  lt_cv_file_magic_cmd=$FILECMD
13379  case $host_cpu in
13380  ia64*)
13381    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13382    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13383    ;;
13384  hppa*64*)
13385    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]'
13386    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13387    ;;
13388  *)
13389    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13390    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13391    ;;
13392  esac
13393  ;;
13394
13395interix[3-9]*)
13396  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13397  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13398  ;;
13399
13400irix5* | irix6* | nonstopux*)
13401  case $LD in
13402  *-32|*"-32 ") libmagic=32-bit;;
13403  *-n32|*"-n32 ") libmagic=N32;;
13404  *-64|*"-64 ") libmagic=64-bit;;
13405  *) libmagic=never-match;;
13406  esac
13407  lt_cv_deplibs_check_method=pass_all
13408  ;;
13409
13410# This must be glibc/ELF.
13411linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13412  lt_cv_deplibs_check_method=pass_all
13413  ;;
13414
13415netbsd*)
13416  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13417    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13418  else
13419    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13420  fi
13421  ;;
13422
13423newos6*)
13424  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13425  lt_cv_file_magic_cmd=$FILECMD
13426  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13427  ;;
13428
13429*nto* | *qnx*)
13430  lt_cv_deplibs_check_method=pass_all
13431  ;;
13432
13433openbsd* | bitrig*)
13434  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13435    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13436  else
13437    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13438  fi
13439  ;;
13440
13441osf3* | osf4* | osf5*)
13442  lt_cv_deplibs_check_method=pass_all
13443  ;;
13444
13445rdos*)
13446  lt_cv_deplibs_check_method=pass_all
13447  ;;
13448
13449solaris*)
13450  lt_cv_deplibs_check_method=pass_all
13451  ;;
13452
13453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13454  lt_cv_deplibs_check_method=pass_all
13455  ;;
13456
13457sysv4 | sysv4.3*)
13458  case $host_vendor in
13459  motorola)
13460    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]'
13461    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13462    ;;
13463  ncr)
13464    lt_cv_deplibs_check_method=pass_all
13465    ;;
13466  sequent)
13467    lt_cv_file_magic_cmd='/bin/file'
13468    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13469    ;;
13470  sni)
13471    lt_cv_file_magic_cmd='/bin/file'
13472    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13473    lt_cv_file_magic_test_file=/lib/libc.so
13474    ;;
13475  siemens)
13476    lt_cv_deplibs_check_method=pass_all
13477    ;;
13478  pc)
13479    lt_cv_deplibs_check_method=pass_all
13480    ;;
13481  esac
13482  ;;
13483
13484tpf*)
13485  lt_cv_deplibs_check_method=pass_all
13486  ;;
13487os2*)
13488  lt_cv_deplibs_check_method=pass_all
13489  ;;
13490esac
13491 ;;
13492esac
13493fi
13494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13495printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13496
13497file_magic_glob=
13498want_nocaseglob=no
13499if test "$build" = "$host"; then
13500  case $host_os in
13501  mingw* | pw32*)
13502    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13503      want_nocaseglob=yes
13504    else
13505      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13506    fi
13507    ;;
13508  esac
13509fi
13510
13511file_magic_cmd=$lt_cv_file_magic_cmd
13512deplibs_check_method=$lt_cv_deplibs_check_method
13513test -z "$deplibs_check_method" && deplibs_check_method=unknown
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536if test -n "$ac_tool_prefix"; then
13537  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13538set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540printf %s "checking for $ac_word... " >&6; }
13541if test ${ac_cv_prog_DLLTOOL+y}
13542then :
13543  printf %s "(cached) " >&6
13544else case e in #(
13545  e) if test -n "$DLLTOOL"; then
13546  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13547else
13548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH
13550do
13551  IFS=$as_save_IFS
13552  case $as_dir in #(((
13553    '') as_dir=./ ;;
13554    */) ;;
13555    *) as_dir=$as_dir/ ;;
13556  esac
13557    for ac_exec_ext in '' $ac_executable_extensions; do
13558  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13559    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13560    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13561    break 2
13562  fi
13563done
13564  done
13565IFS=$as_save_IFS
13566
13567fi ;;
13568esac
13569fi
13570DLLTOOL=$ac_cv_prog_DLLTOOL
13571if test -n "$DLLTOOL"; then
13572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13573printf "%s\n" "$DLLTOOL" >&6; }
13574else
13575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576printf "%s\n" "no" >&6; }
13577fi
13578
13579
13580fi
13581if test -z "$ac_cv_prog_DLLTOOL"; then
13582  ac_ct_DLLTOOL=$DLLTOOL
13583  # Extract the first word of "dlltool", so it can be a program name with args.
13584set dummy dlltool; ac_word=$2
13585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13586printf %s "checking for $ac_word... " >&6; }
13587if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13588then :
13589  printf %s "(cached) " >&6
13590else case e in #(
13591  e) if test -n "$ac_ct_DLLTOOL"; then
13592  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13593else
13594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595for as_dir in $PATH
13596do
13597  IFS=$as_save_IFS
13598  case $as_dir in #(((
13599    '') as_dir=./ ;;
13600    */) ;;
13601    *) as_dir=$as_dir/ ;;
13602  esac
13603    for ac_exec_ext in '' $ac_executable_extensions; do
13604  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13605    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13606    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13607    break 2
13608  fi
13609done
13610  done
13611IFS=$as_save_IFS
13612
13613fi ;;
13614esac
13615fi
13616ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13617if test -n "$ac_ct_DLLTOOL"; then
13618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13619printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13620else
13621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622printf "%s\n" "no" >&6; }
13623fi
13624
13625  if test "x$ac_ct_DLLTOOL" = x; then
13626    DLLTOOL="false"
13627  else
13628    case $cross_compiling:$ac_tool_warned in
13629yes:)
13630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13631printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13632ac_tool_warned=yes ;;
13633esac
13634    DLLTOOL=$ac_ct_DLLTOOL
13635  fi
13636else
13637  DLLTOOL="$ac_cv_prog_DLLTOOL"
13638fi
13639
13640test -z "$DLLTOOL" && DLLTOOL=dlltool
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13652printf %s "checking how to associate runtime and link libraries... " >&6; }
13653if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13654then :
13655  printf %s "(cached) " >&6
13656else case e in #(
13657  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13658
13659case $host_os in
13660cygwin* | mingw* | pw32* | cegcc*)
13661  # two different shell functions defined in ltmain.sh;
13662  # decide which one to use based on capabilities of $DLLTOOL
13663  case `$DLLTOOL --help 2>&1` in
13664  *--identify-strict*)
13665    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13666    ;;
13667  *)
13668    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13669    ;;
13670  esac
13671  ;;
13672*)
13673  # fallback: assume linklib IS sharedlib
13674  lt_cv_sharedlib_from_linklib_cmd=$ECHO
13675  ;;
13676esac
13677 ;;
13678esac
13679fi
13680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13681printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13682sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13683test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13684
13685
13686
13687
13688
13689
13690
13691if test -n "$ac_tool_prefix"; then
13692  for ac_prog in ar
13693  do
13694    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697printf %s "checking for $ac_word... " >&6; }
13698if test ${ac_cv_prog_AR+y}
13699then :
13700  printf %s "(cached) " >&6
13701else case e in #(
13702  e) if test -n "$AR"; then
13703  ac_cv_prog_AR="$AR" # Let the user override the test.
13704else
13705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706for as_dir in $PATH
13707do
13708  IFS=$as_save_IFS
13709  case $as_dir in #(((
13710    '') as_dir=./ ;;
13711    */) ;;
13712    *) as_dir=$as_dir/ ;;
13713  esac
13714    for ac_exec_ext in '' $ac_executable_extensions; do
13715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13716    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13718    break 2
13719  fi
13720done
13721  done
13722IFS=$as_save_IFS
13723
13724fi ;;
13725esac
13726fi
13727AR=$ac_cv_prog_AR
13728if test -n "$AR"; then
13729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13730printf "%s\n" "$AR" >&6; }
13731else
13732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733printf "%s\n" "no" >&6; }
13734fi
13735
13736
13737    test -n "$AR" && break
13738  done
13739fi
13740if test -z "$AR"; then
13741  ac_ct_AR=$AR
13742  for ac_prog in ar
13743do
13744  # Extract the first word of "$ac_prog", so it can be a program name with args.
13745set dummy $ac_prog; ac_word=$2
13746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747printf %s "checking for $ac_word... " >&6; }
13748if test ${ac_cv_prog_ac_ct_AR+y}
13749then :
13750  printf %s "(cached) " >&6
13751else case e in #(
13752  e) if test -n "$ac_ct_AR"; then
13753  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13754else
13755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756for as_dir in $PATH
13757do
13758  IFS=$as_save_IFS
13759  case $as_dir in #(((
13760    '') as_dir=./ ;;
13761    */) ;;
13762    *) as_dir=$as_dir/ ;;
13763  esac
13764    for ac_exec_ext in '' $ac_executable_extensions; do
13765  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13766    ac_cv_prog_ac_ct_AR="$ac_prog"
13767    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13768    break 2
13769  fi
13770done
13771  done
13772IFS=$as_save_IFS
13773
13774fi ;;
13775esac
13776fi
13777ac_ct_AR=$ac_cv_prog_ac_ct_AR
13778if test -n "$ac_ct_AR"; then
13779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13780printf "%s\n" "$ac_ct_AR" >&6; }
13781else
13782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783printf "%s\n" "no" >&6; }
13784fi
13785
13786
13787  test -n "$ac_ct_AR" && break
13788done
13789
13790  if test "x$ac_ct_AR" = x; then
13791    AR="false"
13792  else
13793    case $cross_compiling:$ac_tool_warned in
13794yes:)
13795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13796printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13797ac_tool_warned=yes ;;
13798esac
13799    AR=$ac_ct_AR
13800  fi
13801fi
13802
13803: ${AR=ar}
13804
13805
13806
13807
13808
13809
13810# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13811# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13812# higher priority because thats what people were doing historically (setting
13813# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13814# variable obsoleted/removed.
13815
13816test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13817lt_ar_flags=$AR_FLAGS
13818
13819
13820
13821
13822
13823
13824# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13825# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13826
13827
13828
13829
13830
13831
13832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13833printf %s "checking for archiver @FILE support... " >&6; }
13834if test ${lt_cv_ar_at_file+y}
13835then :
13836  printf %s "(cached) " >&6
13837else case e in #(
13838  e) lt_cv_ar_at_file=no
13839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840/* end confdefs.h.  */
13841
13842int
13843main (void)
13844{
13845
13846  ;
13847  return 0;
13848}
13849_ACEOF
13850if ac_fn_c_try_compile "$LINENO"
13851then :
13852  echo conftest.$ac_objext > conftest.lst
13853      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13854      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13855  (eval $lt_ar_try) 2>&5
13856  ac_status=$?
13857  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13858  test $ac_status = 0; }
13859      if test 0 -eq "$ac_status"; then
13860	# Ensure the archiver fails upon bogus file names.
13861	rm -f conftest.$ac_objext libconftest.a
13862	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13863  (eval $lt_ar_try) 2>&5
13864  ac_status=$?
13865  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13866  test $ac_status = 0; }
13867	if test 0 -ne "$ac_status"; then
13868          lt_cv_ar_at_file=@
13869        fi
13870      fi
13871      rm -f conftest.* libconftest.a
13872
13873fi
13874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13875   ;;
13876esac
13877fi
13878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13879printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13880
13881if test no = "$lt_cv_ar_at_file"; then
13882  archiver_list_spec=
13883else
13884  archiver_list_spec=$lt_cv_ar_at_file
13885fi
13886
13887
13888
13889
13890
13891
13892
13893if test -n "$ac_tool_prefix"; then
13894  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13895set dummy ${ac_tool_prefix}strip; ac_word=$2
13896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13897printf %s "checking for $ac_word... " >&6; }
13898if test ${ac_cv_prog_STRIP+y}
13899then :
13900  printf %s "(cached) " >&6
13901else case e in #(
13902  e) if test -n "$STRIP"; then
13903  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13904else
13905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906for as_dir in $PATH
13907do
13908  IFS=$as_save_IFS
13909  case $as_dir in #(((
13910    '') as_dir=./ ;;
13911    */) ;;
13912    *) as_dir=$as_dir/ ;;
13913  esac
13914    for ac_exec_ext in '' $ac_executable_extensions; do
13915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13916    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13918    break 2
13919  fi
13920done
13921  done
13922IFS=$as_save_IFS
13923
13924fi ;;
13925esac
13926fi
13927STRIP=$ac_cv_prog_STRIP
13928if test -n "$STRIP"; then
13929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13930printf "%s\n" "$STRIP" >&6; }
13931else
13932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933printf "%s\n" "no" >&6; }
13934fi
13935
13936
13937fi
13938if test -z "$ac_cv_prog_STRIP"; then
13939  ac_ct_STRIP=$STRIP
13940  # Extract the first word of "strip", so it can be a program name with args.
13941set dummy strip; ac_word=$2
13942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13943printf %s "checking for $ac_word... " >&6; }
13944if test ${ac_cv_prog_ac_ct_STRIP+y}
13945then :
13946  printf %s "(cached) " >&6
13947else case e in #(
13948  e) if test -n "$ac_ct_STRIP"; then
13949  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13950else
13951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952for as_dir in $PATH
13953do
13954  IFS=$as_save_IFS
13955  case $as_dir in #(((
13956    '') as_dir=./ ;;
13957    */) ;;
13958    *) as_dir=$as_dir/ ;;
13959  esac
13960    for ac_exec_ext in '' $ac_executable_extensions; do
13961  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13962    ac_cv_prog_ac_ct_STRIP="strip"
13963    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13964    break 2
13965  fi
13966done
13967  done
13968IFS=$as_save_IFS
13969
13970fi ;;
13971esac
13972fi
13973ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13974if test -n "$ac_ct_STRIP"; then
13975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13976printf "%s\n" "$ac_ct_STRIP" >&6; }
13977else
13978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979printf "%s\n" "no" >&6; }
13980fi
13981
13982  if test "x$ac_ct_STRIP" = x; then
13983    STRIP=":"
13984  else
13985    case $cross_compiling:$ac_tool_warned in
13986yes:)
13987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13988printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13989ac_tool_warned=yes ;;
13990esac
13991    STRIP=$ac_ct_STRIP
13992  fi
13993else
13994  STRIP="$ac_cv_prog_STRIP"
13995fi
13996
13997test -z "$STRIP" && STRIP=:
13998
13999
14000
14001
14002
14003
14004if test -n "$ac_tool_prefix"; then
14005  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14006set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008printf %s "checking for $ac_word... " >&6; }
14009if test ${ac_cv_prog_RANLIB+y}
14010then :
14011  printf %s "(cached) " >&6
14012else case e in #(
14013  e) if test -n "$RANLIB"; then
14014  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14015else
14016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017for as_dir in $PATH
14018do
14019  IFS=$as_save_IFS
14020  case $as_dir in #(((
14021    '') as_dir=./ ;;
14022    */) ;;
14023    *) as_dir=$as_dir/ ;;
14024  esac
14025    for ac_exec_ext in '' $ac_executable_extensions; do
14026  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14027    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14028    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14029    break 2
14030  fi
14031done
14032  done
14033IFS=$as_save_IFS
14034
14035fi ;;
14036esac
14037fi
14038RANLIB=$ac_cv_prog_RANLIB
14039if test -n "$RANLIB"; then
14040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14041printf "%s\n" "$RANLIB" >&6; }
14042else
14043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14044printf "%s\n" "no" >&6; }
14045fi
14046
14047
14048fi
14049if test -z "$ac_cv_prog_RANLIB"; then
14050  ac_ct_RANLIB=$RANLIB
14051  # Extract the first word of "ranlib", so it can be a program name with args.
14052set dummy ranlib; ac_word=$2
14053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14054printf %s "checking for $ac_word... " >&6; }
14055if test ${ac_cv_prog_ac_ct_RANLIB+y}
14056then :
14057  printf %s "(cached) " >&6
14058else case e in #(
14059  e) if test -n "$ac_ct_RANLIB"; then
14060  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14061else
14062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063for as_dir in $PATH
14064do
14065  IFS=$as_save_IFS
14066  case $as_dir in #(((
14067    '') as_dir=./ ;;
14068    */) ;;
14069    *) as_dir=$as_dir/ ;;
14070  esac
14071    for ac_exec_ext in '' $ac_executable_extensions; do
14072  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14073    ac_cv_prog_ac_ct_RANLIB="ranlib"
14074    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14075    break 2
14076  fi
14077done
14078  done
14079IFS=$as_save_IFS
14080
14081fi ;;
14082esac
14083fi
14084ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14085if test -n "$ac_ct_RANLIB"; then
14086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14087printf "%s\n" "$ac_ct_RANLIB" >&6; }
14088else
14089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090printf "%s\n" "no" >&6; }
14091fi
14092
14093  if test "x$ac_ct_RANLIB" = x; then
14094    RANLIB=":"
14095  else
14096    case $cross_compiling:$ac_tool_warned in
14097yes:)
14098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14099printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14100ac_tool_warned=yes ;;
14101esac
14102    RANLIB=$ac_ct_RANLIB
14103  fi
14104else
14105  RANLIB="$ac_cv_prog_RANLIB"
14106fi
14107
14108test -z "$RANLIB" && RANLIB=:
14109
14110
14111
14112
14113
14114
14115# Determine commands to create old-style static archives.
14116old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14117old_postinstall_cmds='chmod 644 $oldlib'
14118old_postuninstall_cmds=
14119
14120if test -n "$RANLIB"; then
14121  case $host_os in
14122  bitrig* | openbsd*)
14123    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14124    ;;
14125  *)
14126    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14127    ;;
14128  esac
14129  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14130fi
14131
14132case $host_os in
14133  darwin*)
14134    lock_old_archive_extraction=yes ;;
14135  *)
14136    lock_old_archive_extraction=no ;;
14137esac
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177# If no C compiler was specified, use CC.
14178LTCC=${LTCC-"$CC"}
14179
14180# If no C compiler flags were specified, use CFLAGS.
14181LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14182
14183# Allow CC to be a program name with arguments.
14184compiler=$CC
14185
14186
14187# Check for command to grab the raw symbol name followed by C symbol from nm.
14188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14189printf %s "checking command to parse $NM output from $compiler object... " >&6; }
14190if test ${lt_cv_sys_global_symbol_pipe+y}
14191then :
14192  printf %s "(cached) " >&6
14193else case e in #(
14194  e)
14195# These are sane defaults that work on at least a few old systems.
14196# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14197
14198# Character class describing NM global symbol codes.
14199symcode='[BCDEGRST]'
14200
14201# Regexp to match symbols that can be accessed directly from C.
14202sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14203
14204# Define system-specific variables.
14205case $host_os in
14206aix*)
14207  symcode='[BCDT]'
14208  ;;
14209cygwin* | mingw* | pw32* | cegcc*)
14210  symcode='[ABCDGISTW]'
14211  ;;
14212hpux*)
14213  if test ia64 = "$host_cpu"; then
14214    symcode='[ABCDEGRST]'
14215  fi
14216  ;;
14217irix* | nonstopux*)
14218  symcode='[BCDEGRST]'
14219  ;;
14220osf*)
14221  symcode='[BCDEGQRST]'
14222  ;;
14223solaris*)
14224  symcode='[BDRT]'
14225  ;;
14226sco3.2v5*)
14227  symcode='[DT]'
14228  ;;
14229sysv4.2uw2*)
14230  symcode='[DT]'
14231  ;;
14232sysv5* | sco5v6* | unixware* | OpenUNIX*)
14233  symcode='[ABDT]'
14234  ;;
14235sysv4)
14236  symcode='[DFNSTU]'
14237  ;;
14238esac
14239
14240# If we're using GNU nm, then use its standard symbol codes.
14241case `$NM -V 2>&1` in
14242*GNU* | *'with BFD'*)
14243  symcode='[ABCDGIRSTW]' ;;
14244esac
14245
14246if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14247  # Gets list of data symbols to import.
14248  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
14249  # Adjust the below global symbol transforms to fixup imported variables.
14250  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
14251  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
14252  lt_c_name_lib_hook="\
14253  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
14254  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
14255else
14256  # Disable hooks by default.
14257  lt_cv_sys_global_symbol_to_import=
14258  lt_cdecl_hook=
14259  lt_c_name_hook=
14260  lt_c_name_lib_hook=
14261fi
14262
14263# Transform an extracted symbol line into a proper C declaration.
14264# Some systems (esp. on ia64) link data and code symbols differently,
14265# so use this general approach.
14266lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
14267$lt_cdecl_hook\
14268" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
14269" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
14270
14271# Transform an extracted symbol line into symbol name and symbol address
14272lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
14273$lt_c_name_hook\
14274" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
14275" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
14276
14277# Transform an extracted symbol line into symbol name with lib prefix and
14278# symbol address.
14279lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
14280$lt_c_name_lib_hook\
14281" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
14282" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
14283" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
14284
14285# Handle CRLF in mingw tool chain
14286opt_cr=
14287case $build_os in
14288mingw*)
14289  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14290  ;;
14291esac
14292
14293# Try without a prefix underscore, then with it.
14294for ac_symprfx in "" "_"; do
14295
14296  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14297  symxfrm="\\1 $ac_symprfx\\2 \\2"
14298
14299  # Write the raw and C identifiers.
14300  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14301    # Fake it for dumpbin and say T for any non-static function,
14302    # D for any global variable and I for any imported variable.
14303    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
14304    # which start with @ or ?.
14305    lt_cv_sys_global_symbol_pipe="$AWK '"\
14306"     {last_section=section; section=\$ 3};"\
14307"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
14308"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14309"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
14310"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
14311"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
14312"     \$ 0!~/External *\|/{next};"\
14313"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14314"     {if(hide[section]) next};"\
14315"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
14316"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
14317"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
14318"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
14319"     ' prfx=^$ac_symprfx"
14320  else
14321    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14322  fi
14323  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
14324
14325  # Check to see that the pipe works correctly.
14326  pipe_works=no
14327
14328  rm -f conftest*
14329  cat > conftest.$ac_ext <<_LT_EOF
14330#ifdef __cplusplus
14331extern "C" {
14332#endif
14333char nm_test_var;
14334void nm_test_func(void);
14335void nm_test_func(void){}
14336#ifdef __cplusplus
14337}
14338#endif
14339int main(){nm_test_var='a';nm_test_func();return(0);}
14340_LT_EOF
14341
14342  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14343  (eval $ac_compile) 2>&5
14344  ac_status=$?
14345  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14346  test $ac_status = 0; }; then
14347    # Now try to grab the symbols.
14348    nlist=conftest.nm
14349    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14350  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14351  ac_status=$?
14352  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14353  test $ac_status = 0; } && test -s "$nlist"; then
14354      # Try sorting and uniquifying the output.
14355      if sort "$nlist" | uniq > "$nlist"T; then
14356	mv -f "$nlist"T "$nlist"
14357      else
14358	rm -f "$nlist"T
14359      fi
14360
14361      # Make sure that we snagged all the symbols we need.
14362      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14363	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14364	  cat <<_LT_EOF > conftest.$ac_ext
14365/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
14366#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14367/* DATA imports from DLLs on WIN32 can't be const, because runtime
14368   relocations are performed -- see ld's documentation on pseudo-relocs.  */
14369# define LT_DLSYM_CONST
14370#elif defined __osf__
14371/* This system does not cope well with relocations in const data.  */
14372# define LT_DLSYM_CONST
14373#else
14374# define LT_DLSYM_CONST const
14375#endif
14376
14377#ifdef __cplusplus
14378extern "C" {
14379#endif
14380
14381_LT_EOF
14382	  # Now generate the symbol file.
14383	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14384
14385	  cat <<_LT_EOF >> conftest.$ac_ext
14386
14387/* The mapping between symbol names and symbols.  */
14388LT_DLSYM_CONST struct {
14389  const char *name;
14390  void       *address;
14391}
14392lt__PROGRAM__LTX_preloaded_symbols[] =
14393{
14394  { "@PROGRAM@", (void *) 0 },
14395_LT_EOF
14396	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14397	  cat <<\_LT_EOF >> conftest.$ac_ext
14398  {0, (void *) 0}
14399};
14400
14401/* This works around a problem in FreeBSD linker */
14402#ifdef FREEBSD_WORKAROUND
14403static const void *lt_preloaded_setup() {
14404  return lt__PROGRAM__LTX_preloaded_symbols;
14405}
14406#endif
14407
14408#ifdef __cplusplus
14409}
14410#endif
14411_LT_EOF
14412	  # Now try linking the two files.
14413	  mv conftest.$ac_objext conftstm.$ac_objext
14414	  lt_globsym_save_LIBS=$LIBS
14415	  lt_globsym_save_CFLAGS=$CFLAGS
14416	  LIBS=conftstm.$ac_objext
14417	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14418	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14419  (eval $ac_link) 2>&5
14420  ac_status=$?
14421  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14422  test $ac_status = 0; } && test -s conftest$ac_exeext; then
14423	    pipe_works=yes
14424	  fi
14425	  LIBS=$lt_globsym_save_LIBS
14426	  CFLAGS=$lt_globsym_save_CFLAGS
14427	else
14428	  echo "cannot find nm_test_func in $nlist" >&5
14429	fi
14430      else
14431	echo "cannot find nm_test_var in $nlist" >&5
14432      fi
14433    else
14434      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14435    fi
14436  else
14437    echo "$progname: failed program was:" >&5
14438    cat conftest.$ac_ext >&5
14439  fi
14440  rm -rf conftest* conftst*
14441
14442  # Do not use the global_symbol_pipe unless it works.
14443  if test yes = "$pipe_works"; then
14444    break
14445  else
14446    lt_cv_sys_global_symbol_pipe=
14447  fi
14448done
14449 ;;
14450esac
14451fi
14452
14453if test -z "$lt_cv_sys_global_symbol_pipe"; then
14454  lt_cv_sys_global_symbol_to_cdecl=
14455fi
14456if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14458printf "%s\n" "failed" >&6; }
14459else
14460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14461printf "%s\n" "ok" >&6; }
14462fi
14463
14464# Response file support.
14465if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14466  nm_file_list_spec='@'
14467elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14468  nm_file_list_spec='@'
14469fi
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14508printf %s "checking for sysroot... " >&6; }
14509
14510# Check whether --with-sysroot was given.
14511if test ${with_sysroot+y}
14512then :
14513  withval=$with_sysroot;
14514else case e in #(
14515  e) with_sysroot=no ;;
14516esac
14517fi
14518
14519
14520lt_sysroot=
14521case $with_sysroot in #(
14522 yes)
14523   if test yes = "$GCC"; then
14524     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14525   fi
14526   ;; #(
14527 /*)
14528   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14529   ;; #(
14530 no|'')
14531   ;; #(
14532 *)
14533   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14534printf "%s\n" "$with_sysroot" >&6; }
14535   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14536   ;;
14537esac
14538
14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14540printf "%s\n" "${lt_sysroot:-no}" >&6; }
14541
14542
14543
14544
14545
14546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14547printf %s "checking for a working dd... " >&6; }
14548if test ${ac_cv_path_lt_DD+y}
14549then :
14550  printf %s "(cached) " >&6
14551else case e in #(
14552  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14553cat conftest.i conftest.i >conftest2.i
14554: ${lt_DD:=$DD}
14555if test -z "$lt_DD"; then
14556  ac_path_lt_DD_found=false
14557  # Loop through the user's path and test for each of PROGNAME-LIST
14558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559for as_dir in $PATH
14560do
14561  IFS=$as_save_IFS
14562  case $as_dir in #(((
14563    '') as_dir=./ ;;
14564    */) ;;
14565    *) as_dir=$as_dir/ ;;
14566  esac
14567    for ac_prog in dd
14568   do
14569    for ac_exec_ext in '' $ac_executable_extensions; do
14570      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14571      as_fn_executable_p "$ac_path_lt_DD" || continue
14572if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14573  cmp -s conftest.i conftest.out \
14574  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14575fi
14576      $ac_path_lt_DD_found && break 3
14577    done
14578  done
14579  done
14580IFS=$as_save_IFS
14581  if test -z "$ac_cv_path_lt_DD"; then
14582    :
14583  fi
14584else
14585  ac_cv_path_lt_DD=$lt_DD
14586fi
14587
14588rm -f conftest.i conftest2.i conftest.out ;;
14589esac
14590fi
14591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14592printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14593
14594
14595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14596printf %s "checking how to truncate binary pipes... " >&6; }
14597if test ${lt_cv_truncate_bin+y}
14598then :
14599  printf %s "(cached) " >&6
14600else case e in #(
14601  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14602cat conftest.i conftest.i >conftest2.i
14603lt_cv_truncate_bin=
14604if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14605  cmp -s conftest.i conftest.out \
14606  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14607fi
14608rm -f conftest.i conftest2.i conftest.out
14609test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14610esac
14611fi
14612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14613printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14614
14615
14616
14617
14618
14619
14620
14621# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14622func_cc_basename ()
14623{
14624    for cc_temp in $*""; do
14625      case $cc_temp in
14626        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14627        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14628        \-*) ;;
14629        *) break;;
14630      esac
14631    done
14632    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14633}
14634
14635# Check whether --enable-libtool-lock was given.
14636if test ${enable_libtool_lock+y}
14637then :
14638  enableval=$enable_libtool_lock;
14639fi
14640
14641test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14642
14643# Some flags need to be propagated to the compiler or linker for good
14644# libtool support.
14645case $host in
14646ia64-*-hpux*)
14647  # Find out what ABI is being produced by ac_compile, and set mode
14648  # options accordingly.
14649  echo 'int i;' > conftest.$ac_ext
14650  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14651  (eval $ac_compile) 2>&5
14652  ac_status=$?
14653  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654  test $ac_status = 0; }; then
14655    case `$FILECMD conftest.$ac_objext` in
14656      *ELF-32*)
14657	HPUX_IA64_MODE=32
14658	;;
14659      *ELF-64*)
14660	HPUX_IA64_MODE=64
14661	;;
14662    esac
14663  fi
14664  rm -rf conftest*
14665  ;;
14666*-*-irix6*)
14667  # Find out what ABI is being produced by ac_compile, and set linker
14668  # options accordingly.
14669  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14670  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14671  (eval $ac_compile) 2>&5
14672  ac_status=$?
14673  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14674  test $ac_status = 0; }; then
14675    if test yes = "$lt_cv_prog_gnu_ld"; then
14676      case `$FILECMD conftest.$ac_objext` in
14677	*32-bit*)
14678	  LD="${LD-ld} -melf32bsmip"
14679	  ;;
14680	*N32*)
14681	  LD="${LD-ld} -melf32bmipn32"
14682	  ;;
14683	*64-bit*)
14684	  LD="${LD-ld} -melf64bmip"
14685	;;
14686      esac
14687    else
14688      case `$FILECMD conftest.$ac_objext` in
14689	*32-bit*)
14690	  LD="${LD-ld} -32"
14691	  ;;
14692	*N32*)
14693	  LD="${LD-ld} -n32"
14694	  ;;
14695	*64-bit*)
14696	  LD="${LD-ld} -64"
14697	  ;;
14698      esac
14699    fi
14700  fi
14701  rm -rf conftest*
14702  ;;
14703
14704mips64*-*linux*)
14705  # Find out what ABI is being produced by ac_compile, and set linker
14706  # options accordingly.
14707  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14708  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14709  (eval $ac_compile) 2>&5
14710  ac_status=$?
14711  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712  test $ac_status = 0; }; then
14713    emul=elf
14714    case `$FILECMD conftest.$ac_objext` in
14715      *32-bit*)
14716	emul="${emul}32"
14717	;;
14718      *64-bit*)
14719	emul="${emul}64"
14720	;;
14721    esac
14722    case `$FILECMD conftest.$ac_objext` in
14723      *MSB*)
14724	emul="${emul}btsmip"
14725	;;
14726      *LSB*)
14727	emul="${emul}ltsmip"
14728	;;
14729    esac
14730    case `$FILECMD conftest.$ac_objext` in
14731      *N32*)
14732	emul="${emul}n32"
14733	;;
14734    esac
14735    LD="${LD-ld} -m $emul"
14736  fi
14737  rm -rf conftest*
14738  ;;
14739
14740x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14741s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14742  # Find out what ABI is being produced by ac_compile, and set linker
14743  # options accordingly.  Note that the listed cases only cover the
14744  # situations where additional linker options are needed (such as when
14745  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14746  # vice versa); the common cases where no linker options are needed do
14747  # not appear in the list.
14748  echo 'int i;' > conftest.$ac_ext
14749  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14750  (eval $ac_compile) 2>&5
14751  ac_status=$?
14752  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14753  test $ac_status = 0; }; then
14754    case `$FILECMD conftest.o` in
14755      *32-bit*)
14756	case $host in
14757	  x86_64-*kfreebsd*-gnu)
14758	    LD="${LD-ld} -m elf_i386_fbsd"
14759	    ;;
14760	  x86_64-*linux*)
14761	    case `$FILECMD conftest.o` in
14762	      *x86-64*)
14763		LD="${LD-ld} -m elf32_x86_64"
14764		;;
14765	      *)
14766		LD="${LD-ld} -m elf_i386"
14767		;;
14768	    esac
14769	    ;;
14770	  powerpc64le-*linux*)
14771	    LD="${LD-ld} -m elf32lppclinux"
14772	    ;;
14773	  powerpc64-*linux*)
14774	    LD="${LD-ld} -m elf32ppclinux"
14775	    ;;
14776	  s390x-*linux*)
14777	    LD="${LD-ld} -m elf_s390"
14778	    ;;
14779	  sparc64-*linux*)
14780	    LD="${LD-ld} -m elf32_sparc"
14781	    ;;
14782	esac
14783	;;
14784      *64-bit*)
14785	case $host in
14786	  x86_64-*kfreebsd*-gnu)
14787	    LD="${LD-ld} -m elf_x86_64_fbsd"
14788	    ;;
14789	  x86_64-*linux*)
14790	    LD="${LD-ld} -m elf_x86_64"
14791	    ;;
14792	  powerpcle-*linux*)
14793	    LD="${LD-ld} -m elf64lppc"
14794	    ;;
14795	  powerpc-*linux*)
14796	    LD="${LD-ld} -m elf64ppc"
14797	    ;;
14798	  s390*-*linux*|s390*-*tpf*)
14799	    LD="${LD-ld} -m elf64_s390"
14800	    ;;
14801	  sparc*-*linux*)
14802	    LD="${LD-ld} -m elf64_sparc"
14803	    ;;
14804	esac
14805	;;
14806    esac
14807  fi
14808  rm -rf conftest*
14809  ;;
14810
14811*-*-sco3.2v5*)
14812  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14813  SAVE_CFLAGS=$CFLAGS
14814  CFLAGS="$CFLAGS -belf"
14815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14816printf %s "checking whether the C compiler needs -belf... " >&6; }
14817if test ${lt_cv_cc_needs_belf+y}
14818then :
14819  printf %s "(cached) " >&6
14820else case e in #(
14821  e) ac_ext=c
14822ac_cpp='$CPP $CPPFLAGS'
14823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825ac_compiler_gnu=$ac_cv_c_compiler_gnu
14826
14827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828/* end confdefs.h.  */
14829
14830int
14831main (void)
14832{
14833
14834  ;
14835  return 0;
14836}
14837_ACEOF
14838if ac_fn_c_try_link "$LINENO"
14839then :
14840  lt_cv_cc_needs_belf=yes
14841else case e in #(
14842  e) lt_cv_cc_needs_belf=no ;;
14843esac
14844fi
14845rm -f core conftest.err conftest.$ac_objext conftest.beam \
14846    conftest$ac_exeext conftest.$ac_ext
14847     ac_ext=c
14848ac_cpp='$CPP $CPPFLAGS'
14849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14851ac_compiler_gnu=$ac_cv_c_compiler_gnu
14852 ;;
14853esac
14854fi
14855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14856printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14857  if test yes != "$lt_cv_cc_needs_belf"; then
14858    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14859    CFLAGS=$SAVE_CFLAGS
14860  fi
14861  ;;
14862*-*solaris*)
14863  # Find out what ABI is being produced by ac_compile, and set linker
14864  # options accordingly.
14865  echo 'int i;' > conftest.$ac_ext
14866  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14867  (eval $ac_compile) 2>&5
14868  ac_status=$?
14869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14870  test $ac_status = 0; }; then
14871    case `$FILECMD conftest.o` in
14872    *64-bit*)
14873      case $lt_cv_prog_gnu_ld in
14874      yes*)
14875        case $host in
14876        i?86-*-solaris*|x86_64-*-solaris*)
14877          LD="${LD-ld} -m elf_x86_64"
14878          ;;
14879        sparc*-*-solaris*)
14880          LD="${LD-ld} -m elf64_sparc"
14881          ;;
14882        esac
14883        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14884        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14885          LD=${LD-ld}_sol2
14886        fi
14887        ;;
14888      *)
14889	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14890	  LD="${LD-ld} -64"
14891	fi
14892	;;
14893      esac
14894      ;;
14895    esac
14896  fi
14897  rm -rf conftest*
14898  ;;
14899esac
14900
14901need_locks=$enable_libtool_lock
14902
14903if test -n "$ac_tool_prefix"; then
14904  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14905set dummy ${ac_tool_prefix}mt; ac_word=$2
14906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14907printf %s "checking for $ac_word... " >&6; }
14908if test ${ac_cv_prog_MANIFEST_TOOL+y}
14909then :
14910  printf %s "(cached) " >&6
14911else case e in #(
14912  e) if test -n "$MANIFEST_TOOL"; then
14913  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14914else
14915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14916for as_dir in $PATH
14917do
14918  IFS=$as_save_IFS
14919  case $as_dir in #(((
14920    '') as_dir=./ ;;
14921    */) ;;
14922    *) as_dir=$as_dir/ ;;
14923  esac
14924    for ac_exec_ext in '' $ac_executable_extensions; do
14925  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14926    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14927    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14928    break 2
14929  fi
14930done
14931  done
14932IFS=$as_save_IFS
14933
14934fi ;;
14935esac
14936fi
14937MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14938if test -n "$MANIFEST_TOOL"; then
14939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14940printf "%s\n" "$MANIFEST_TOOL" >&6; }
14941else
14942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943printf "%s\n" "no" >&6; }
14944fi
14945
14946
14947fi
14948if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14949  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14950  # Extract the first word of "mt", so it can be a program name with args.
14951set dummy mt; ac_word=$2
14952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14953printf %s "checking for $ac_word... " >&6; }
14954if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14955then :
14956  printf %s "(cached) " >&6
14957else case e in #(
14958  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
14959  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14960else
14961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14962for as_dir in $PATH
14963do
14964  IFS=$as_save_IFS
14965  case $as_dir in #(((
14966    '') as_dir=./ ;;
14967    */) ;;
14968    *) as_dir=$as_dir/ ;;
14969  esac
14970    for ac_exec_ext in '' $ac_executable_extensions; do
14971  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14972    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14973    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14974    break 2
14975  fi
14976done
14977  done
14978IFS=$as_save_IFS
14979
14980fi ;;
14981esac
14982fi
14983ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14984if test -n "$ac_ct_MANIFEST_TOOL"; then
14985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14986printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14987else
14988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14989printf "%s\n" "no" >&6; }
14990fi
14991
14992  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14993    MANIFEST_TOOL=":"
14994  else
14995    case $cross_compiling:$ac_tool_warned in
14996yes:)
14997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14998printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14999ac_tool_warned=yes ;;
15000esac
15001    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15002  fi
15003else
15004  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15005fi
15006
15007test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15009printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15010if test ${lt_cv_path_mainfest_tool+y}
15011then :
15012  printf %s "(cached) " >&6
15013else case e in #(
15014  e) lt_cv_path_mainfest_tool=no
15015  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15016  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15017  cat conftest.err >&5
15018  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15019    lt_cv_path_mainfest_tool=yes
15020  fi
15021  rm -f conftest* ;;
15022esac
15023fi
15024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
15025printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
15026if test yes != "$lt_cv_path_mainfest_tool"; then
15027  MANIFEST_TOOL=:
15028fi
15029
15030
15031
15032
15033
15034
15035  case $host_os in
15036    rhapsody* | darwin*)
15037    if test -n "$ac_tool_prefix"; then
15038  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15039set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041printf %s "checking for $ac_word... " >&6; }
15042if test ${ac_cv_prog_DSYMUTIL+y}
15043then :
15044  printf %s "(cached) " >&6
15045else case e in #(
15046  e) if test -n "$DSYMUTIL"; then
15047  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15048else
15049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050for as_dir in $PATH
15051do
15052  IFS=$as_save_IFS
15053  case $as_dir in #(((
15054    '') as_dir=./ ;;
15055    */) ;;
15056    *) as_dir=$as_dir/ ;;
15057  esac
15058    for ac_exec_ext in '' $ac_executable_extensions; do
15059  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15060    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15061    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15062    break 2
15063  fi
15064done
15065  done
15066IFS=$as_save_IFS
15067
15068fi ;;
15069esac
15070fi
15071DSYMUTIL=$ac_cv_prog_DSYMUTIL
15072if test -n "$DSYMUTIL"; then
15073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15074printf "%s\n" "$DSYMUTIL" >&6; }
15075else
15076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15077printf "%s\n" "no" >&6; }
15078fi
15079
15080
15081fi
15082if test -z "$ac_cv_prog_DSYMUTIL"; then
15083  ac_ct_DSYMUTIL=$DSYMUTIL
15084  # Extract the first word of "dsymutil", so it can be a program name with args.
15085set dummy dsymutil; ac_word=$2
15086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15087printf %s "checking for $ac_word... " >&6; }
15088if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
15089then :
15090  printf %s "(cached) " >&6
15091else case e in #(
15092  e) if test -n "$ac_ct_DSYMUTIL"; then
15093  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15094else
15095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15096for as_dir in $PATH
15097do
15098  IFS=$as_save_IFS
15099  case $as_dir in #(((
15100    '') as_dir=./ ;;
15101    */) ;;
15102    *) as_dir=$as_dir/ ;;
15103  esac
15104    for ac_exec_ext in '' $ac_executable_extensions; do
15105  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15106    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15107    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15108    break 2
15109  fi
15110done
15111  done
15112IFS=$as_save_IFS
15113
15114fi ;;
15115esac
15116fi
15117ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15118if test -n "$ac_ct_DSYMUTIL"; then
15119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15120printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
15121else
15122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15123printf "%s\n" "no" >&6; }
15124fi
15125
15126  if test "x$ac_ct_DSYMUTIL" = x; then
15127    DSYMUTIL=":"
15128  else
15129    case $cross_compiling:$ac_tool_warned in
15130yes:)
15131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15132printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15133ac_tool_warned=yes ;;
15134esac
15135    DSYMUTIL=$ac_ct_DSYMUTIL
15136  fi
15137else
15138  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15139fi
15140
15141    if test -n "$ac_tool_prefix"; then
15142  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15143set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15145printf %s "checking for $ac_word... " >&6; }
15146if test ${ac_cv_prog_NMEDIT+y}
15147then :
15148  printf %s "(cached) " >&6
15149else case e in #(
15150  e) if test -n "$NMEDIT"; then
15151  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15152else
15153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15154for as_dir in $PATH
15155do
15156  IFS=$as_save_IFS
15157  case $as_dir in #(((
15158    '') as_dir=./ ;;
15159    */) ;;
15160    *) as_dir=$as_dir/ ;;
15161  esac
15162    for ac_exec_ext in '' $ac_executable_extensions; do
15163  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15164    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15165    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15166    break 2
15167  fi
15168done
15169  done
15170IFS=$as_save_IFS
15171
15172fi ;;
15173esac
15174fi
15175NMEDIT=$ac_cv_prog_NMEDIT
15176if test -n "$NMEDIT"; then
15177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15178printf "%s\n" "$NMEDIT" >&6; }
15179else
15180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181printf "%s\n" "no" >&6; }
15182fi
15183
15184
15185fi
15186if test -z "$ac_cv_prog_NMEDIT"; then
15187  ac_ct_NMEDIT=$NMEDIT
15188  # Extract the first word of "nmedit", so it can be a program name with args.
15189set dummy nmedit; ac_word=$2
15190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15191printf %s "checking for $ac_word... " >&6; }
15192if test ${ac_cv_prog_ac_ct_NMEDIT+y}
15193then :
15194  printf %s "(cached) " >&6
15195else case e in #(
15196  e) if test -n "$ac_ct_NMEDIT"; then
15197  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15198else
15199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200for as_dir in $PATH
15201do
15202  IFS=$as_save_IFS
15203  case $as_dir in #(((
15204    '') as_dir=./ ;;
15205    */) ;;
15206    *) as_dir=$as_dir/ ;;
15207  esac
15208    for ac_exec_ext in '' $ac_executable_extensions; do
15209  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15210    ac_cv_prog_ac_ct_NMEDIT="nmedit"
15211    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15212    break 2
15213  fi
15214done
15215  done
15216IFS=$as_save_IFS
15217
15218fi ;;
15219esac
15220fi
15221ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15222if test -n "$ac_ct_NMEDIT"; then
15223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15224printf "%s\n" "$ac_ct_NMEDIT" >&6; }
15225else
15226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15227printf "%s\n" "no" >&6; }
15228fi
15229
15230  if test "x$ac_ct_NMEDIT" = x; then
15231    NMEDIT=":"
15232  else
15233    case $cross_compiling:$ac_tool_warned in
15234yes:)
15235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15236printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15237ac_tool_warned=yes ;;
15238esac
15239    NMEDIT=$ac_ct_NMEDIT
15240  fi
15241else
15242  NMEDIT="$ac_cv_prog_NMEDIT"
15243fi
15244
15245    if test -n "$ac_tool_prefix"; then
15246  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15247set dummy ${ac_tool_prefix}lipo; ac_word=$2
15248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15249printf %s "checking for $ac_word... " >&6; }
15250if test ${ac_cv_prog_LIPO+y}
15251then :
15252  printf %s "(cached) " >&6
15253else case e in #(
15254  e) if test -n "$LIPO"; then
15255  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15256else
15257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258for as_dir in $PATH
15259do
15260  IFS=$as_save_IFS
15261  case $as_dir in #(((
15262    '') as_dir=./ ;;
15263    */) ;;
15264    *) as_dir=$as_dir/ ;;
15265  esac
15266    for ac_exec_ext in '' $ac_executable_extensions; do
15267  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15268    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15269    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15270    break 2
15271  fi
15272done
15273  done
15274IFS=$as_save_IFS
15275
15276fi ;;
15277esac
15278fi
15279LIPO=$ac_cv_prog_LIPO
15280if test -n "$LIPO"; then
15281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15282printf "%s\n" "$LIPO" >&6; }
15283else
15284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15285printf "%s\n" "no" >&6; }
15286fi
15287
15288
15289fi
15290if test -z "$ac_cv_prog_LIPO"; then
15291  ac_ct_LIPO=$LIPO
15292  # Extract the first word of "lipo", so it can be a program name with args.
15293set dummy lipo; ac_word=$2
15294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15295printf %s "checking for $ac_word... " >&6; }
15296if test ${ac_cv_prog_ac_ct_LIPO+y}
15297then :
15298  printf %s "(cached) " >&6
15299else case e in #(
15300  e) if test -n "$ac_ct_LIPO"; then
15301  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15302else
15303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304for as_dir in $PATH
15305do
15306  IFS=$as_save_IFS
15307  case $as_dir in #(((
15308    '') as_dir=./ ;;
15309    */) ;;
15310    *) as_dir=$as_dir/ ;;
15311  esac
15312    for ac_exec_ext in '' $ac_executable_extensions; do
15313  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15314    ac_cv_prog_ac_ct_LIPO="lipo"
15315    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15316    break 2
15317  fi
15318done
15319  done
15320IFS=$as_save_IFS
15321
15322fi ;;
15323esac
15324fi
15325ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15326if test -n "$ac_ct_LIPO"; then
15327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15328printf "%s\n" "$ac_ct_LIPO" >&6; }
15329else
15330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15331printf "%s\n" "no" >&6; }
15332fi
15333
15334  if test "x$ac_ct_LIPO" = x; then
15335    LIPO=":"
15336  else
15337    case $cross_compiling:$ac_tool_warned in
15338yes:)
15339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15340printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15341ac_tool_warned=yes ;;
15342esac
15343    LIPO=$ac_ct_LIPO
15344  fi
15345else
15346  LIPO="$ac_cv_prog_LIPO"
15347fi
15348
15349    if test -n "$ac_tool_prefix"; then
15350  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15351set dummy ${ac_tool_prefix}otool; ac_word=$2
15352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15353printf %s "checking for $ac_word... " >&6; }
15354if test ${ac_cv_prog_OTOOL+y}
15355then :
15356  printf %s "(cached) " >&6
15357else case e in #(
15358  e) if test -n "$OTOOL"; then
15359  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15360else
15361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362for as_dir in $PATH
15363do
15364  IFS=$as_save_IFS
15365  case $as_dir in #(((
15366    '') as_dir=./ ;;
15367    */) ;;
15368    *) as_dir=$as_dir/ ;;
15369  esac
15370    for ac_exec_ext in '' $ac_executable_extensions; do
15371  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15372    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15373    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15374    break 2
15375  fi
15376done
15377  done
15378IFS=$as_save_IFS
15379
15380fi ;;
15381esac
15382fi
15383OTOOL=$ac_cv_prog_OTOOL
15384if test -n "$OTOOL"; then
15385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15386printf "%s\n" "$OTOOL" >&6; }
15387else
15388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15389printf "%s\n" "no" >&6; }
15390fi
15391
15392
15393fi
15394if test -z "$ac_cv_prog_OTOOL"; then
15395  ac_ct_OTOOL=$OTOOL
15396  # Extract the first word of "otool", so it can be a program name with args.
15397set dummy otool; ac_word=$2
15398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15399printf %s "checking for $ac_word... " >&6; }
15400if test ${ac_cv_prog_ac_ct_OTOOL+y}
15401then :
15402  printf %s "(cached) " >&6
15403else case e in #(
15404  e) if test -n "$ac_ct_OTOOL"; then
15405  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15406else
15407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15408for as_dir in $PATH
15409do
15410  IFS=$as_save_IFS
15411  case $as_dir in #(((
15412    '') as_dir=./ ;;
15413    */) ;;
15414    *) as_dir=$as_dir/ ;;
15415  esac
15416    for ac_exec_ext in '' $ac_executable_extensions; do
15417  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15418    ac_cv_prog_ac_ct_OTOOL="otool"
15419    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15420    break 2
15421  fi
15422done
15423  done
15424IFS=$as_save_IFS
15425
15426fi ;;
15427esac
15428fi
15429ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15430if test -n "$ac_ct_OTOOL"; then
15431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15432printf "%s\n" "$ac_ct_OTOOL" >&6; }
15433else
15434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435printf "%s\n" "no" >&6; }
15436fi
15437
15438  if test "x$ac_ct_OTOOL" = x; then
15439    OTOOL=":"
15440  else
15441    case $cross_compiling:$ac_tool_warned in
15442yes:)
15443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15444printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15445ac_tool_warned=yes ;;
15446esac
15447    OTOOL=$ac_ct_OTOOL
15448  fi
15449else
15450  OTOOL="$ac_cv_prog_OTOOL"
15451fi
15452
15453    if test -n "$ac_tool_prefix"; then
15454  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15455set dummy ${ac_tool_prefix}otool64; ac_word=$2
15456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15457printf %s "checking for $ac_word... " >&6; }
15458if test ${ac_cv_prog_OTOOL64+y}
15459then :
15460  printf %s "(cached) " >&6
15461else case e in #(
15462  e) if test -n "$OTOOL64"; then
15463  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15464else
15465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15466for as_dir in $PATH
15467do
15468  IFS=$as_save_IFS
15469  case $as_dir in #(((
15470    '') as_dir=./ ;;
15471    */) ;;
15472    *) as_dir=$as_dir/ ;;
15473  esac
15474    for ac_exec_ext in '' $ac_executable_extensions; do
15475  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15476    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15477    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15478    break 2
15479  fi
15480done
15481  done
15482IFS=$as_save_IFS
15483
15484fi ;;
15485esac
15486fi
15487OTOOL64=$ac_cv_prog_OTOOL64
15488if test -n "$OTOOL64"; then
15489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15490printf "%s\n" "$OTOOL64" >&6; }
15491else
15492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493printf "%s\n" "no" >&6; }
15494fi
15495
15496
15497fi
15498if test -z "$ac_cv_prog_OTOOL64"; then
15499  ac_ct_OTOOL64=$OTOOL64
15500  # Extract the first word of "otool64", so it can be a program name with args.
15501set dummy otool64; ac_word=$2
15502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15503printf %s "checking for $ac_word... " >&6; }
15504if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15505then :
15506  printf %s "(cached) " >&6
15507else case e in #(
15508  e) if test -n "$ac_ct_OTOOL64"; then
15509  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15510else
15511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512for as_dir in $PATH
15513do
15514  IFS=$as_save_IFS
15515  case $as_dir in #(((
15516    '') as_dir=./ ;;
15517    */) ;;
15518    *) as_dir=$as_dir/ ;;
15519  esac
15520    for ac_exec_ext in '' $ac_executable_extensions; do
15521  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15522    ac_cv_prog_ac_ct_OTOOL64="otool64"
15523    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15524    break 2
15525  fi
15526done
15527  done
15528IFS=$as_save_IFS
15529
15530fi ;;
15531esac
15532fi
15533ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15534if test -n "$ac_ct_OTOOL64"; then
15535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15536printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15537else
15538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539printf "%s\n" "no" >&6; }
15540fi
15541
15542  if test "x$ac_ct_OTOOL64" = x; then
15543    OTOOL64=":"
15544  else
15545    case $cross_compiling:$ac_tool_warned in
15546yes:)
15547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15548printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15549ac_tool_warned=yes ;;
15550esac
15551    OTOOL64=$ac_ct_OTOOL64
15552  fi
15553else
15554  OTOOL64="$ac_cv_prog_OTOOL64"
15555fi
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15584printf %s "checking for -single_module linker flag... " >&6; }
15585if test ${lt_cv_apple_cc_single_mod+y}
15586then :
15587  printf %s "(cached) " >&6
15588else case e in #(
15589  e) lt_cv_apple_cc_single_mod=no
15590      if test -z "$LT_MULTI_MODULE"; then
15591	# By default we will add the -single_module flag. You can override
15592	# by either setting the environment variable LT_MULTI_MODULE
15593	# non-empty at configure time, or by adding -multi_module to the
15594	# link flags.
15595	rm -rf libconftest.dylib*
15596	echo "int foo(void){return 1;}" > conftest.c
15597	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15598-dynamiclib -Wl,-single_module conftest.c" >&5
15599	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15600	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15601        _lt_result=$?
15602	# If there is a non-empty error log, and "single_module"
15603	# appears in it, assume the flag caused a linker warning
15604        if test -s conftest.err && $GREP single_module conftest.err; then
15605	  cat conftest.err >&5
15606	# Otherwise, if the output was created with a 0 exit code from
15607	# the compiler, it worked.
15608	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15609	  lt_cv_apple_cc_single_mod=yes
15610	else
15611	  cat conftest.err >&5
15612	fi
15613	rm -rf libconftest.dylib*
15614	rm -f conftest.*
15615      fi ;;
15616esac
15617fi
15618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15619printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15620
15621    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15622printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15623if test ${lt_cv_ld_exported_symbols_list+y}
15624then :
15625  printf %s "(cached) " >&6
15626else case e in #(
15627  e) lt_cv_ld_exported_symbols_list=no
15628      save_LDFLAGS=$LDFLAGS
15629      echo "_main" > conftest.sym
15630      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15631      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632/* end confdefs.h.  */
15633
15634int
15635main (void)
15636{
15637
15638  ;
15639  return 0;
15640}
15641_ACEOF
15642if ac_fn_c_try_link "$LINENO"
15643then :
15644  lt_cv_ld_exported_symbols_list=yes
15645else case e in #(
15646  e) lt_cv_ld_exported_symbols_list=no ;;
15647esac
15648fi
15649rm -f core conftest.err conftest.$ac_objext conftest.beam \
15650    conftest$ac_exeext conftest.$ac_ext
15651	LDFLAGS=$save_LDFLAGS
15652     ;;
15653esac
15654fi
15655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15656printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15657
15658    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15659printf %s "checking for -force_load linker flag... " >&6; }
15660if test ${lt_cv_ld_force_load+y}
15661then :
15662  printf %s "(cached) " >&6
15663else case e in #(
15664  e) lt_cv_ld_force_load=no
15665      cat > conftest.c << _LT_EOF
15666int forced_loaded() { return 2;}
15667_LT_EOF
15668      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15669      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15670      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15671      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15672      echo "$RANLIB libconftest.a" >&5
15673      $RANLIB libconftest.a 2>&5
15674      cat > conftest.c << _LT_EOF
15675int main() { return 0;}
15676_LT_EOF
15677      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15678      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15679      _lt_result=$?
15680      if test -s conftest.err && $GREP force_load conftest.err; then
15681	cat conftest.err >&5
15682      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15683	lt_cv_ld_force_load=yes
15684      else
15685	cat conftest.err >&5
15686      fi
15687        rm -f conftest.err libconftest.a conftest conftest.c
15688        rm -rf conftest.dSYM
15689     ;;
15690esac
15691fi
15692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15693printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15694    case $host_os in
15695    rhapsody* | darwin1.[012])
15696      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15697    darwin1.*)
15698      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15699    darwin*)
15700      case $MACOSX_DEPLOYMENT_TARGET,$host in
15701        10.[012],*|,*powerpc*-darwin[5-8]*)
15702          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15703        *)
15704          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15705      esac
15706    ;;
15707  esac
15708    if test yes = "$lt_cv_apple_cc_single_mod"; then
15709      _lt_dar_single_mod='$single_module'
15710    fi
15711    if test yes = "$lt_cv_ld_exported_symbols_list"; then
15712      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15713    else
15714      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15715    fi
15716    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15717      _lt_dsymutil='~$DSYMUTIL $lib || :'
15718    else
15719      _lt_dsymutil=
15720    fi
15721    ;;
15722  esac
15723
15724# func_munge_path_list VARIABLE PATH
15725# -----------------------------------
15726# VARIABLE is name of variable containing _space_ separated list of
15727# directories to be munged by the contents of PATH, which is string
15728# having a format:
15729# "DIR[:DIR]:"
15730#       string "DIR[ DIR]" will be prepended to VARIABLE
15731# ":DIR[:DIR]"
15732#       string "DIR[ DIR]" will be appended to VARIABLE
15733# "DIRP[:DIRP]::[DIRA:]DIRA"
15734#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15735#       "DIRA[ DIRA]" will be appended to VARIABLE
15736# "DIR[:DIR]"
15737#       VARIABLE will be replaced by "DIR[ DIR]"
15738func_munge_path_list ()
15739{
15740    case x$2 in
15741    x)
15742        ;;
15743    *:)
15744        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15745        ;;
15746    x:*)
15747        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15748        ;;
15749    *::*)
15750        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15751        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15752        ;;
15753    *)
15754        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15755        ;;
15756    esac
15757}
15758
15759ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15760"
15761if test "x$ac_cv_header_dlfcn_h" = xyes
15762then :
15763  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15764
15765fi
15766
15767
15768
15769
15770
15771# Set options
15772# Check whether --enable-static was given.
15773if test ${enable_static+y}
15774then :
15775  enableval=$enable_static; p=${PACKAGE-default}
15776    case $enableval in
15777    yes) enable_static=yes ;;
15778    no) enable_static=no ;;
15779    *)
15780     enable_static=no
15781      # Look at the argument we got.  We use all the common list separators.
15782      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15783      for pkg in $enableval; do
15784	IFS=$lt_save_ifs
15785	if test "X$pkg" = "X$p"; then
15786	  enable_static=yes
15787	fi
15788      done
15789      IFS=$lt_save_ifs
15790      ;;
15791    esac
15792else case e in #(
15793  e) enable_static=no ;;
15794esac
15795fi
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806        enable_dlopen=no
15807
15808
15809  enable_win32_dll=no
15810
15811
15812            # Check whether --enable-shared was given.
15813if test ${enable_shared+y}
15814then :
15815  enableval=$enable_shared; p=${PACKAGE-default}
15816    case $enableval in
15817    yes) enable_shared=yes ;;
15818    no) enable_shared=no ;;
15819    *)
15820      enable_shared=no
15821      # Look at the argument we got.  We use all the common list separators.
15822      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15823      for pkg in $enableval; do
15824	IFS=$lt_save_ifs
15825	if test "X$pkg" = "X$p"; then
15826	  enable_shared=yes
15827	fi
15828      done
15829      IFS=$lt_save_ifs
15830      ;;
15831    esac
15832else case e in #(
15833  e) enable_shared=yes ;;
15834esac
15835fi
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847# Check whether --with-pic was given.
15848if test ${with_pic+y}
15849then :
15850  withval=$with_pic; lt_p=${PACKAGE-default}
15851    case $withval in
15852    yes|no) pic_mode=$withval ;;
15853    *)
15854      pic_mode=default
15855      # Look at the argument we got.  We use all the common list separators.
15856      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15857      for lt_pkg in $withval; do
15858	IFS=$lt_save_ifs
15859	if test "X$lt_pkg" = "X$lt_p"; then
15860	  pic_mode=yes
15861	fi
15862      done
15863      IFS=$lt_save_ifs
15864      ;;
15865    esac
15866else case e in #(
15867  e) pic_mode=default ;;
15868esac
15869fi
15870
15871
15872
15873
15874
15875
15876
15877
15878  # Check whether --enable-fast-install was given.
15879if test ${enable_fast_install+y}
15880then :
15881  enableval=$enable_fast_install; p=${PACKAGE-default}
15882    case $enableval in
15883    yes) enable_fast_install=yes ;;
15884    no) enable_fast_install=no ;;
15885    *)
15886      enable_fast_install=no
15887      # Look at the argument we got.  We use all the common list separators.
15888      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15889      for pkg in $enableval; do
15890	IFS=$lt_save_ifs
15891	if test "X$pkg" = "X$p"; then
15892	  enable_fast_install=yes
15893	fi
15894      done
15895      IFS=$lt_save_ifs
15896      ;;
15897    esac
15898else case e in #(
15899  e) enable_fast_install=yes ;;
15900esac
15901fi
15902
15903
15904
15905
15906
15907
15908
15909
15910  shared_archive_member_spec=
15911case $host,$enable_shared in
15912power*-*-aix[5-9]*,yes)
15913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15914printf %s "checking which variant of shared library versioning to provide... " >&6; }
15915
15916# Check whether --with-aix-soname was given.
15917if test ${with_aix_soname+y}
15918then :
15919  withval=$with_aix_soname; case $withval in
15920    aix|svr4|both)
15921      ;;
15922    *)
15923      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15924      ;;
15925    esac
15926    lt_cv_with_aix_soname=$with_aix_soname
15927else case e in #(
15928  e) if test ${lt_cv_with_aix_soname+y}
15929then :
15930  printf %s "(cached) " >&6
15931else case e in #(
15932  e) lt_cv_with_aix_soname=aix ;;
15933esac
15934fi
15935
15936    with_aix_soname=$lt_cv_with_aix_soname ;;
15937esac
15938fi
15939
15940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15941printf "%s\n" "$with_aix_soname" >&6; }
15942  if test aix != "$with_aix_soname"; then
15943    # For the AIX way of multilib, we name the shared archive member
15944    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15945    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15946    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15947    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15948    if test 64 = "${OBJECT_MODE-32}"; then
15949      shared_archive_member_spec=shr_64
15950    else
15951      shared_archive_member_spec=shr
15952    fi
15953  fi
15954  ;;
15955*)
15956  with_aix_soname=aix
15957  ;;
15958esac
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969# This can be used to rebuild libtool when needed
15970LIBTOOL_DEPS=$ltmain
15971
15972# Always use our own libtool.
15973LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004test -z "$LN_S" && LN_S="ln -s"
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019if test -n "${ZSH_VERSION+set}"; then
16020   setopt NO_GLOB_SUBST
16021fi
16022
16023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16024printf %s "checking for objdir... " >&6; }
16025if test ${lt_cv_objdir+y}
16026then :
16027  printf %s "(cached) " >&6
16028else case e in #(
16029  e) rm -f .libs 2>/dev/null
16030mkdir .libs 2>/dev/null
16031if test -d .libs; then
16032  lt_cv_objdir=.libs
16033else
16034  # MS-DOS does not allow filenames that begin with a dot.
16035  lt_cv_objdir=_libs
16036fi
16037rmdir .libs 2>/dev/null ;;
16038esac
16039fi
16040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16041printf "%s\n" "$lt_cv_objdir" >&6; }
16042objdir=$lt_cv_objdir
16043
16044
16045
16046
16047
16048printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
16049
16050
16051
16052
16053case $host_os in
16054aix3*)
16055  # AIX sometimes has problems with the GCC collect2 program.  For some
16056  # reason, if we set the COLLECT_NAMES environment variable, the problems
16057  # vanish in a puff of smoke.
16058  if test set != "${COLLECT_NAMES+set}"; then
16059    COLLECT_NAMES=
16060    export COLLECT_NAMES
16061  fi
16062  ;;
16063esac
16064
16065# Global variables:
16066ofile=libtool
16067can_build_shared=yes
16068
16069# All known linkers require a '.a' archive for static linking (except MSVC and
16070# ICC, which need '.lib').
16071libext=a
16072
16073with_gnu_ld=$lt_cv_prog_gnu_ld
16074
16075old_CC=$CC
16076old_CFLAGS=$CFLAGS
16077
16078# Set sane defaults for various variables
16079test -z "$CC" && CC=cc
16080test -z "$LTCC" && LTCC=$CC
16081test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16082test -z "$LD" && LD=ld
16083test -z "$ac_objext" && ac_objext=o
16084
16085func_cc_basename $compiler
16086cc_basename=$func_cc_basename_result
16087
16088
16089# Only perform the check for file, if the check method requires it
16090test -z "$MAGIC_CMD" && MAGIC_CMD=file
16091case $deplibs_check_method in
16092file_magic*)
16093  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16094    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16095printf %s "checking for ${ac_tool_prefix}file... " >&6; }
16096if test ${lt_cv_path_MAGIC_CMD+y}
16097then :
16098  printf %s "(cached) " >&6
16099else case e in #(
16100  e) case $MAGIC_CMD in
16101[\\/*] |  ?:[\\/]*)
16102  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16103  ;;
16104*)
16105  lt_save_MAGIC_CMD=$MAGIC_CMD
16106  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16107  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16108  for ac_dir in $ac_dummy; do
16109    IFS=$lt_save_ifs
16110    test -z "$ac_dir" && ac_dir=.
16111    if test -f "$ac_dir/${ac_tool_prefix}file"; then
16112      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
16113      if test -n "$file_magic_test_file"; then
16114	case $deplibs_check_method in
16115	"file_magic "*)
16116	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16117	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16118	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16119	    $EGREP "$file_magic_regex" > /dev/null; then
16120	    :
16121	  else
16122	    cat <<_LT_EOF 1>&2
16123
16124*** Warning: the command libtool uses to detect shared libraries,
16125*** $file_magic_cmd, produces output that libtool cannot recognize.
16126*** The result is that libtool may fail to recognize shared libraries
16127*** as such.  This will affect the creation of libtool libraries that
16128*** depend on shared libraries, but programs linked with such libtool
16129*** libraries will work regardless of this problem.  Nevertheless, you
16130*** may want to report the problem to your system manager and/or to
16131*** bug-libtool@gnu.org
16132
16133_LT_EOF
16134	  fi ;;
16135	esac
16136      fi
16137      break
16138    fi
16139  done
16140  IFS=$lt_save_ifs
16141  MAGIC_CMD=$lt_save_MAGIC_CMD
16142  ;;
16143esac ;;
16144esac
16145fi
16146
16147MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16148if test -n "$MAGIC_CMD"; then
16149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16150printf "%s\n" "$MAGIC_CMD" >&6; }
16151else
16152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16153printf "%s\n" "no" >&6; }
16154fi
16155
16156
16157
16158
16159
16160if test -z "$lt_cv_path_MAGIC_CMD"; then
16161  if test -n "$ac_tool_prefix"; then
16162    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16163printf %s "checking for file... " >&6; }
16164if test ${lt_cv_path_MAGIC_CMD+y}
16165then :
16166  printf %s "(cached) " >&6
16167else case e in #(
16168  e) case $MAGIC_CMD in
16169[\\/*] |  ?:[\\/]*)
16170  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16171  ;;
16172*)
16173  lt_save_MAGIC_CMD=$MAGIC_CMD
16174  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16175  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16176  for ac_dir in $ac_dummy; do
16177    IFS=$lt_save_ifs
16178    test -z "$ac_dir" && ac_dir=.
16179    if test -f "$ac_dir/file"; then
16180      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
16181      if test -n "$file_magic_test_file"; then
16182	case $deplibs_check_method in
16183	"file_magic "*)
16184	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16185	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16186	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16187	    $EGREP "$file_magic_regex" > /dev/null; then
16188	    :
16189	  else
16190	    cat <<_LT_EOF 1>&2
16191
16192*** Warning: the command libtool uses to detect shared libraries,
16193*** $file_magic_cmd, produces output that libtool cannot recognize.
16194*** The result is that libtool may fail to recognize shared libraries
16195*** as such.  This will affect the creation of libtool libraries that
16196*** depend on shared libraries, but programs linked with such libtool
16197*** libraries will work regardless of this problem.  Nevertheless, you
16198*** may want to report the problem to your system manager and/or to
16199*** bug-libtool@gnu.org
16200
16201_LT_EOF
16202	  fi ;;
16203	esac
16204      fi
16205      break
16206    fi
16207  done
16208  IFS=$lt_save_ifs
16209  MAGIC_CMD=$lt_save_MAGIC_CMD
16210  ;;
16211esac ;;
16212esac
16213fi
16214
16215MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16216if test -n "$MAGIC_CMD"; then
16217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16218printf "%s\n" "$MAGIC_CMD" >&6; }
16219else
16220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16221printf "%s\n" "no" >&6; }
16222fi
16223
16224
16225  else
16226    MAGIC_CMD=:
16227  fi
16228fi
16229
16230  fi
16231  ;;
16232esac
16233
16234# Use C for the default configuration in the libtool script
16235
16236lt_save_CC=$CC
16237ac_ext=c
16238ac_cpp='$CPP $CPPFLAGS'
16239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16241ac_compiler_gnu=$ac_cv_c_compiler_gnu
16242
16243
16244# Source file extension for C test sources.
16245ac_ext=c
16246
16247# Object file extension for compiled C test sources.
16248objext=o
16249objext=$objext
16250
16251# Code to be used in simple compile tests
16252lt_simple_compile_test_code="int some_variable = 0;"
16253
16254# Code to be used in simple link tests
16255lt_simple_link_test_code='int main(){return(0);}'
16256
16257
16258
16259
16260
16261
16262
16263# If no C compiler was specified, use CC.
16264LTCC=${LTCC-"$CC"}
16265
16266# If no C compiler flags were specified, use CFLAGS.
16267LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16268
16269# Allow CC to be a program name with arguments.
16270compiler=$CC
16271
16272# Save the default compiler, since it gets overwritten when the other
16273# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16274compiler_DEFAULT=$CC
16275
16276# save warnings/boilerplate of simple test code
16277ac_outfile=conftest.$ac_objext
16278echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16279eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16280_lt_compiler_boilerplate=`cat conftest.err`
16281$RM conftest*
16282
16283ac_outfile=conftest.$ac_objext
16284echo "$lt_simple_link_test_code" >conftest.$ac_ext
16285eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16286_lt_linker_boilerplate=`cat conftest.err`
16287$RM -r conftest*
16288
16289
16290if test -n "$compiler"; then
16291
16292lt_prog_compiler_no_builtin_flag=
16293
16294if test yes = "$GCC"; then
16295  case $cc_basename in
16296  nvcc*)
16297    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16298  *)
16299    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16300  esac
16301
16302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16303printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16304if test ${lt_cv_prog_compiler_rtti_exceptions+y}
16305then :
16306  printf %s "(cached) " >&6
16307else case e in #(
16308  e) lt_cv_prog_compiler_rtti_exceptions=no
16309   ac_outfile=conftest.$ac_objext
16310   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16311   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
16312   # Insert the option either (1) after the last *FLAGS variable, or
16313   # (2) before a word containing "conftest.", or (3) at the end.
16314   # Note that $ac_compile itself does not contain backslashes and begins
16315   # with a dollar sign (not a hyphen), so the echo should work correctly.
16316   # The option is referenced via a variable to avoid confusing sed.
16317   lt_compile=`echo "$ac_compile" | $SED \
16318   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16319   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16320   -e 's:$: $lt_compiler_flag:'`
16321   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16322   (eval "$lt_compile" 2>conftest.err)
16323   ac_status=$?
16324   cat conftest.err >&5
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   if (exit $ac_status) && test -s "$ac_outfile"; then
16327     # The compiler can only warn and ignore the option if not recognized
16328     # So say no if there are warnings other than the usual output.
16329     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16330     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16331     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16332       lt_cv_prog_compiler_rtti_exceptions=yes
16333     fi
16334   fi
16335   $RM conftest*
16336 ;;
16337esac
16338fi
16339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16340printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16341
16342if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16343    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16344else
16345    :
16346fi
16347
16348fi
16349
16350
16351
16352
16353
16354
16355  lt_prog_compiler_wl=
16356lt_prog_compiler_pic=
16357lt_prog_compiler_static=
16358
16359
16360  if test yes = "$GCC"; then
16361    lt_prog_compiler_wl='-Wl,'
16362    lt_prog_compiler_static='-static'
16363
16364    case $host_os in
16365      aix*)
16366      # All AIX code is PIC.
16367      if test ia64 = "$host_cpu"; then
16368	# AIX 5 now supports IA64 processor
16369	lt_prog_compiler_static='-Bstatic'
16370      fi
16371      lt_prog_compiler_pic='-fPIC'
16372      ;;
16373
16374    amigaos*)
16375      case $host_cpu in
16376      powerpc)
16377            # see comment about AmigaOS4 .so support
16378            lt_prog_compiler_pic='-fPIC'
16379        ;;
16380      m68k)
16381            # FIXME: we need at least 68020 code to build shared libraries, but
16382            # adding the '-m68020' flag to GCC prevents building anything better,
16383            # like '-m68040'.
16384            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16385        ;;
16386      esac
16387      ;;
16388
16389    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16390      # PIC is the default for these OSes.
16391      ;;
16392
16393    mingw* | cygwin* | pw32* | os2* | cegcc*)
16394      # This hack is so that the source file can tell whether it is being
16395      # built for inclusion in a dll (and should export symbols for example).
16396      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16397      # (--disable-auto-import) libraries
16398      lt_prog_compiler_pic='-DDLL_EXPORT'
16399      case $host_os in
16400      os2*)
16401	lt_prog_compiler_static='$wl-static'
16402	;;
16403      esac
16404      ;;
16405
16406    darwin* | rhapsody*)
16407      # PIC is the default on this platform
16408      # Common symbols not allowed in MH_DYLIB files
16409      lt_prog_compiler_pic='-fno-common'
16410      ;;
16411
16412    haiku*)
16413      # PIC is the default for Haiku.
16414      # The "-static" flag exists, but is broken.
16415      lt_prog_compiler_static=
16416      ;;
16417
16418    hpux*)
16419      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16420      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16421      # sets the default TLS model and affects inlining.
16422      case $host_cpu in
16423      hppa*64*)
16424	# +Z the default
16425	;;
16426      *)
16427	lt_prog_compiler_pic='-fPIC'
16428	;;
16429      esac
16430      ;;
16431
16432    interix[3-9]*)
16433      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16434      # Instead, we relocate shared libraries at runtime.
16435      ;;
16436
16437    msdosdjgpp*)
16438      # Just because we use GCC doesn't mean we suddenly get shared libraries
16439      # on systems that don't support them.
16440      lt_prog_compiler_can_build_shared=no
16441      enable_shared=no
16442      ;;
16443
16444    *nto* | *qnx*)
16445      # QNX uses GNU C++, but need to define -shared option too, otherwise
16446      # it will coredump.
16447      lt_prog_compiler_pic='-fPIC -shared'
16448      ;;
16449
16450    sysv4*MP*)
16451      if test -d /usr/nec; then
16452	lt_prog_compiler_pic=-Kconform_pic
16453      fi
16454      ;;
16455
16456    *)
16457      lt_prog_compiler_pic='-fPIC'
16458      ;;
16459    esac
16460
16461    case $cc_basename in
16462    nvcc*) # Cuda Compiler Driver 2.2
16463      lt_prog_compiler_wl='-Xlinker '
16464      if test -n "$lt_prog_compiler_pic"; then
16465        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16466      fi
16467      ;;
16468    esac
16469  else
16470    # PORTME Check for flag to pass linker flags through the system compiler.
16471    case $host_os in
16472    aix*)
16473      lt_prog_compiler_wl='-Wl,'
16474      if test ia64 = "$host_cpu"; then
16475	# AIX 5 now supports IA64 processor
16476	lt_prog_compiler_static='-Bstatic'
16477      else
16478	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16479      fi
16480      ;;
16481
16482    darwin* | rhapsody*)
16483      # PIC is the default on this platform
16484      # Common symbols not allowed in MH_DYLIB files
16485      lt_prog_compiler_pic='-fno-common'
16486      case $cc_basename in
16487      nagfor*)
16488        # NAG Fortran compiler
16489        lt_prog_compiler_wl='-Wl,-Wl,,'
16490        lt_prog_compiler_pic='-PIC'
16491        lt_prog_compiler_static='-Bstatic'
16492        ;;
16493      esac
16494      ;;
16495
16496    mingw* | cygwin* | pw32* | os2* | cegcc*)
16497      # This hack is so that the source file can tell whether it is being
16498      # built for inclusion in a dll (and should export symbols for example).
16499      lt_prog_compiler_pic='-DDLL_EXPORT'
16500      case $host_os in
16501      os2*)
16502	lt_prog_compiler_static='$wl-static'
16503	;;
16504      esac
16505      ;;
16506
16507    hpux9* | hpux10* | hpux11*)
16508      lt_prog_compiler_wl='-Wl,'
16509      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16510      # not for PA HP-UX.
16511      case $host_cpu in
16512      hppa*64*|ia64*)
16513	# +Z the default
16514	;;
16515      *)
16516	lt_prog_compiler_pic='+Z'
16517	;;
16518      esac
16519      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16520      lt_prog_compiler_static='$wl-a ${wl}archive'
16521      ;;
16522
16523    irix5* | irix6* | nonstopux*)
16524      lt_prog_compiler_wl='-Wl,'
16525      # PIC (with -KPIC) is the default.
16526      lt_prog_compiler_static='-non_shared'
16527      ;;
16528
16529    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16530      case $cc_basename in
16531      # old Intel for x86_64, which still supported -KPIC.
16532      ecc*)
16533	lt_prog_compiler_wl='-Wl,'
16534	lt_prog_compiler_pic='-KPIC'
16535	lt_prog_compiler_static='-static'
16536        ;;
16537      # icc used to be incompatible with GCC.
16538      # ICC 10 doesn't accept -KPIC any more.
16539      icc* | ifort*)
16540	lt_prog_compiler_wl='-Wl,'
16541	lt_prog_compiler_pic='-fPIC'
16542	lt_prog_compiler_static='-static'
16543        ;;
16544      # Lahey Fortran 8.1.
16545      lf95*)
16546	lt_prog_compiler_wl='-Wl,'
16547	lt_prog_compiler_pic='--shared'
16548	lt_prog_compiler_static='--static'
16549	;;
16550      nagfor*)
16551	# NAG Fortran compiler
16552	lt_prog_compiler_wl='-Wl,-Wl,,'
16553	lt_prog_compiler_pic='-PIC'
16554	lt_prog_compiler_static='-Bstatic'
16555	;;
16556      tcc*)
16557	# Fabrice Bellard et al's Tiny C Compiler
16558	lt_prog_compiler_wl='-Wl,'
16559	lt_prog_compiler_pic='-fPIC'
16560	lt_prog_compiler_static='-static'
16561	;;
16562      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16563        # Portland Group compilers (*not* the Pentium gcc compiler,
16564	# which looks to be a dead project)
16565	lt_prog_compiler_wl='-Wl,'
16566	lt_prog_compiler_pic='-fpic'
16567	lt_prog_compiler_static='-Bstatic'
16568        ;;
16569      ccc*)
16570        lt_prog_compiler_wl='-Wl,'
16571        # All Alpha code is PIC.
16572        lt_prog_compiler_static='-non_shared'
16573        ;;
16574      xl* | bgxl* | bgf* | mpixl*)
16575	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16576	lt_prog_compiler_wl='-Wl,'
16577	lt_prog_compiler_pic='-qpic'
16578	lt_prog_compiler_static='-qstaticlink'
16579	;;
16580      *)
16581	case `$CC -V 2>&1 | $SED 5q` in
16582	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16583	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16584	  lt_prog_compiler_pic='-KPIC'
16585	  lt_prog_compiler_static='-Bstatic'
16586	  lt_prog_compiler_wl=''
16587	  ;;
16588	*Sun\ F* | *Sun*Fortran*)
16589	  lt_prog_compiler_pic='-KPIC'
16590	  lt_prog_compiler_static='-Bstatic'
16591	  lt_prog_compiler_wl='-Qoption ld '
16592	  ;;
16593	*Sun\ C*)
16594	  # Sun C 5.9
16595	  lt_prog_compiler_pic='-KPIC'
16596	  lt_prog_compiler_static='-Bstatic'
16597	  lt_prog_compiler_wl='-Wl,'
16598	  ;;
16599        *Intel*\ [CF]*Compiler*)
16600	  lt_prog_compiler_wl='-Wl,'
16601	  lt_prog_compiler_pic='-fPIC'
16602	  lt_prog_compiler_static='-static'
16603	  ;;
16604	*Portland\ Group*)
16605	  lt_prog_compiler_wl='-Wl,'
16606	  lt_prog_compiler_pic='-fpic'
16607	  lt_prog_compiler_static='-Bstatic'
16608	  ;;
16609	esac
16610	;;
16611      esac
16612      ;;
16613
16614    newsos6)
16615      lt_prog_compiler_pic='-KPIC'
16616      lt_prog_compiler_static='-Bstatic'
16617      ;;
16618
16619    *nto* | *qnx*)
16620      # QNX uses GNU C++, but need to define -shared option too, otherwise
16621      # it will coredump.
16622      lt_prog_compiler_pic='-fPIC -shared'
16623      ;;
16624
16625    osf3* | osf4* | osf5*)
16626      lt_prog_compiler_wl='-Wl,'
16627      # All OSF/1 code is PIC.
16628      lt_prog_compiler_static='-non_shared'
16629      ;;
16630
16631    rdos*)
16632      lt_prog_compiler_static='-non_shared'
16633      ;;
16634
16635    solaris*)
16636      lt_prog_compiler_pic='-KPIC'
16637      lt_prog_compiler_static='-Bstatic'
16638      case $cc_basename in
16639      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16640	lt_prog_compiler_wl='-Qoption ld ';;
16641      *)
16642	lt_prog_compiler_wl='-Wl,';;
16643      esac
16644      ;;
16645
16646    sunos4*)
16647      lt_prog_compiler_wl='-Qoption ld '
16648      lt_prog_compiler_pic='-PIC'
16649      lt_prog_compiler_static='-Bstatic'
16650      ;;
16651
16652    sysv4 | sysv4.2uw2* | sysv4.3*)
16653      lt_prog_compiler_wl='-Wl,'
16654      lt_prog_compiler_pic='-KPIC'
16655      lt_prog_compiler_static='-Bstatic'
16656      ;;
16657
16658    sysv4*MP*)
16659      if test -d /usr/nec; then
16660	lt_prog_compiler_pic='-Kconform_pic'
16661	lt_prog_compiler_static='-Bstatic'
16662      fi
16663      ;;
16664
16665    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16666      lt_prog_compiler_wl='-Wl,'
16667      lt_prog_compiler_pic='-KPIC'
16668      lt_prog_compiler_static='-Bstatic'
16669      ;;
16670
16671    unicos*)
16672      lt_prog_compiler_wl='-Wl,'
16673      lt_prog_compiler_can_build_shared=no
16674      ;;
16675
16676    uts4*)
16677      lt_prog_compiler_pic='-pic'
16678      lt_prog_compiler_static='-Bstatic'
16679      ;;
16680
16681    *)
16682      lt_prog_compiler_can_build_shared=no
16683      ;;
16684    esac
16685  fi
16686
16687case $host_os in
16688  # For platforms that do not support PIC, -DPIC is meaningless:
16689  *djgpp*)
16690    lt_prog_compiler_pic=
16691    ;;
16692  *)
16693    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16694    ;;
16695esac
16696
16697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16698printf %s "checking for $compiler option to produce PIC... " >&6; }
16699if test ${lt_cv_prog_compiler_pic+y}
16700then :
16701  printf %s "(cached) " >&6
16702else case e in #(
16703  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
16704esac
16705fi
16706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16707printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16708lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16709
16710#
16711# Check to make sure the PIC flag actually works.
16712#
16713if test -n "$lt_prog_compiler_pic"; then
16714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16715printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16716if test ${lt_cv_prog_compiler_pic_works+y}
16717then :
16718  printf %s "(cached) " >&6
16719else case e in #(
16720  e) lt_cv_prog_compiler_pic_works=no
16721   ac_outfile=conftest.$ac_objext
16722   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16723   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16724   # Insert the option either (1) after the last *FLAGS variable, or
16725   # (2) before a word containing "conftest.", or (3) at the end.
16726   # Note that $ac_compile itself does not contain backslashes and begins
16727   # with a dollar sign (not a hyphen), so the echo should work correctly.
16728   # The option is referenced via a variable to avoid confusing sed.
16729   lt_compile=`echo "$ac_compile" | $SED \
16730   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16731   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16732   -e 's:$: $lt_compiler_flag:'`
16733   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16734   (eval "$lt_compile" 2>conftest.err)
16735   ac_status=$?
16736   cat conftest.err >&5
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   if (exit $ac_status) && test -s "$ac_outfile"; then
16739     # The compiler can only warn and ignore the option if not recognized
16740     # So say no if there are warnings other than the usual output.
16741     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16742     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16743     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16744       lt_cv_prog_compiler_pic_works=yes
16745     fi
16746   fi
16747   $RM conftest*
16748 ;;
16749esac
16750fi
16751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16752printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16753
16754if test yes = "$lt_cv_prog_compiler_pic_works"; then
16755    case $lt_prog_compiler_pic in
16756     "" | " "*) ;;
16757     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16758     esac
16759else
16760    lt_prog_compiler_pic=
16761     lt_prog_compiler_can_build_shared=no
16762fi
16763
16764fi
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776#
16777# Check to make sure the static flag actually works.
16778#
16779wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16781printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16782if test ${lt_cv_prog_compiler_static_works+y}
16783then :
16784  printf %s "(cached) " >&6
16785else case e in #(
16786  e) lt_cv_prog_compiler_static_works=no
16787   save_LDFLAGS=$LDFLAGS
16788   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16789   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16790   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16791     # The linker can only warn and ignore the option if not recognized
16792     # So say no if there are warnings
16793     if test -s conftest.err; then
16794       # Append any errors to the config.log.
16795       cat conftest.err 1>&5
16796       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16797       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16798       if diff conftest.exp conftest.er2 >/dev/null; then
16799         lt_cv_prog_compiler_static_works=yes
16800       fi
16801     else
16802       lt_cv_prog_compiler_static_works=yes
16803     fi
16804   fi
16805   $RM -r conftest*
16806   LDFLAGS=$save_LDFLAGS
16807 ;;
16808esac
16809fi
16810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16811printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16812
16813if test yes = "$lt_cv_prog_compiler_static_works"; then
16814    :
16815else
16816    lt_prog_compiler_static=
16817fi
16818
16819
16820
16821
16822
16823
16824
16825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16826printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16827if test ${lt_cv_prog_compiler_c_o+y}
16828then :
16829  printf %s "(cached) " >&6
16830else case e in #(
16831  e) lt_cv_prog_compiler_c_o=no
16832   $RM -r conftest 2>/dev/null
16833   mkdir conftest
16834   cd conftest
16835   mkdir out
16836   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16837
16838   lt_compiler_flag="-o out/conftest2.$ac_objext"
16839   # Insert the option either (1) after the last *FLAGS variable, or
16840   # (2) before a word containing "conftest.", or (3) at the end.
16841   # Note that $ac_compile itself does not contain backslashes and begins
16842   # with a dollar sign (not a hyphen), so the echo should work correctly.
16843   lt_compile=`echo "$ac_compile" | $SED \
16844   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16845   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16846   -e 's:$: $lt_compiler_flag:'`
16847   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16848   (eval "$lt_compile" 2>out/conftest.err)
16849   ac_status=$?
16850   cat out/conftest.err >&5
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16853   then
16854     # The compiler can only warn and ignore the option if not recognized
16855     # So say no if there are warnings
16856     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16857     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16858     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16859       lt_cv_prog_compiler_c_o=yes
16860     fi
16861   fi
16862   chmod u+w . 2>&5
16863   $RM conftest*
16864   # SGI C++ compiler will create directory out/ii_files/ for
16865   # template instantiation
16866   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16867   $RM out/* && rmdir out
16868   cd ..
16869   $RM -r conftest
16870   $RM conftest*
16871 ;;
16872esac
16873fi
16874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16875printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16876
16877
16878
16879
16880
16881
16882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16883printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16884if test ${lt_cv_prog_compiler_c_o+y}
16885then :
16886  printf %s "(cached) " >&6
16887else case e in #(
16888  e) lt_cv_prog_compiler_c_o=no
16889   $RM -r conftest 2>/dev/null
16890   mkdir conftest
16891   cd conftest
16892   mkdir out
16893   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16894
16895   lt_compiler_flag="-o out/conftest2.$ac_objext"
16896   # Insert the option either (1) after the last *FLAGS variable, or
16897   # (2) before a word containing "conftest.", or (3) at the end.
16898   # Note that $ac_compile itself does not contain backslashes and begins
16899   # with a dollar sign (not a hyphen), so the echo should work correctly.
16900   lt_compile=`echo "$ac_compile" | $SED \
16901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16903   -e 's:$: $lt_compiler_flag:'`
16904   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16905   (eval "$lt_compile" 2>out/conftest.err)
16906   ac_status=$?
16907   cat out/conftest.err >&5
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16910   then
16911     # The compiler can only warn and ignore the option if not recognized
16912     # So say no if there are warnings
16913     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16914     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16915     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16916       lt_cv_prog_compiler_c_o=yes
16917     fi
16918   fi
16919   chmod u+w . 2>&5
16920   $RM conftest*
16921   # SGI C++ compiler will create directory out/ii_files/ for
16922   # template instantiation
16923   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16924   $RM out/* && rmdir out
16925   cd ..
16926   $RM -r conftest
16927   $RM conftest*
16928 ;;
16929esac
16930fi
16931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16932printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16933
16934
16935
16936
16937hard_links=nottested
16938if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16939  # do not overwrite the value of need_locks provided by the user
16940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16941printf %s "checking if we can lock with hard links... " >&6; }
16942  hard_links=yes
16943  $RM conftest*
16944  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16945  touch conftest.a
16946  ln conftest.a conftest.b 2>&5 || hard_links=no
16947  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16949printf "%s\n" "$hard_links" >&6; }
16950  if test no = "$hard_links"; then
16951    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16952printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16953    need_locks=warn
16954  fi
16955else
16956  need_locks=no
16957fi
16958
16959
16960
16961
16962
16963
16964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16965printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16966
16967  runpath_var=
16968  allow_undefined_flag=
16969  always_export_symbols=no
16970  archive_cmds=
16971  archive_expsym_cmds=
16972  compiler_needs_object=no
16973  enable_shared_with_static_runtimes=no
16974  export_dynamic_flag_spec=
16975  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16976  hardcode_automatic=no
16977  hardcode_direct=no
16978  hardcode_direct_absolute=no
16979  hardcode_libdir_flag_spec=
16980  hardcode_libdir_separator=
16981  hardcode_minus_L=no
16982  hardcode_shlibpath_var=unsupported
16983  inherit_rpath=no
16984  link_all_deplibs=unknown
16985  module_cmds=
16986  module_expsym_cmds=
16987  old_archive_from_new_cmds=
16988  old_archive_from_expsyms_cmds=
16989  thread_safe_flag_spec=
16990  whole_archive_flag_spec=
16991  # include_expsyms should be a list of space-separated symbols to be *always*
16992  # included in the symbol list
16993  include_expsyms=
16994  # exclude_expsyms can be an extended regexp of symbols to exclude
16995  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16996  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16997  # as well as any symbol that contains 'd'.
16998  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16999  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17000  # platforms (ab)use it in PIC code, but their linkers get confused if
17001  # the symbol is explicitly referenced.  Since portable code cannot
17002  # rely on this symbol name, it's probably fine to never include it in
17003  # preloaded symbol tables.
17004  # Exclude shared library initialization/finalization symbols.
17005  extract_expsyms_cmds=
17006
17007  case $host_os in
17008  cygwin* | mingw* | pw32* | cegcc*)
17009    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
17010    # When not using gcc, we currently assume that we are using
17011    # Microsoft Visual C++ or Intel C++ Compiler.
17012    if test yes != "$GCC"; then
17013      with_gnu_ld=no
17014    fi
17015    ;;
17016  interix*)
17017    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
17018    with_gnu_ld=yes
17019    ;;
17020  openbsd* | bitrig*)
17021    with_gnu_ld=no
17022    ;;
17023  esac
17024
17025  ld_shlibs=yes
17026
17027  # On some targets, GNU ld is compatible enough with the native linker
17028  # that we're better off using the native interface for both.
17029  lt_use_gnu_ld_interface=no
17030  if test yes = "$with_gnu_ld"; then
17031    case $host_os in
17032      aix*)
17033	# The AIX port of GNU ld has always aspired to compatibility
17034	# with the native linker.  However, as the warning in the GNU ld
17035	# block says, versions before 2.19.5* couldn't really create working
17036	# shared libraries, regardless of the interface used.
17037	case `$LD -v 2>&1` in
17038	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17039	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17040	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17041	  *)
17042	    lt_use_gnu_ld_interface=yes
17043	    ;;
17044	esac
17045	;;
17046      *)
17047	lt_use_gnu_ld_interface=yes
17048	;;
17049    esac
17050  fi
17051
17052  if test yes = "$lt_use_gnu_ld_interface"; then
17053    # If archive_cmds runs LD, not CC, wlarc should be empty
17054    wlarc='$wl'
17055
17056    # Set some defaults for GNU ld with shared library support. These
17057    # are reset later if shared libraries are not supported. Putting them
17058    # here allows them to be overridden if necessary.
17059    runpath_var=LD_RUN_PATH
17060    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17061    export_dynamic_flag_spec='$wl--export-dynamic'
17062    # ancient GNU ld didn't support --whole-archive et. al.
17063    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17064      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17065    else
17066      whole_archive_flag_spec=
17067    fi
17068    supports_anon_versioning=no
17069    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
17070      *GNU\ gold*) supports_anon_versioning=yes ;;
17071      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17072      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17073      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17074      *\ 2.11.*) ;; # other 2.11 versions
17075      *) supports_anon_versioning=yes ;;
17076    esac
17077
17078    # See if GNU ld supports shared libraries.
17079    case $host_os in
17080    aix[3-9]*)
17081      # On AIX/PPC, the GNU linker is very broken
17082      if test ia64 != "$host_cpu"; then
17083	ld_shlibs=no
17084	cat <<_LT_EOF 1>&2
17085
17086*** Warning: the GNU linker, at least up to release 2.19, is reported
17087*** to be unable to reliably create shared libraries on AIX.
17088*** Therefore, libtool is disabling shared libraries support.  If you
17089*** really care for shared libraries, you may want to install binutils
17090*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17091*** You will then need to restart the configuration process.
17092
17093_LT_EOF
17094      fi
17095      ;;
17096
17097    amigaos*)
17098      case $host_cpu in
17099      powerpc)
17100            # see comment about AmigaOS4 .so support
17101            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17102            archive_expsym_cmds=''
17103        ;;
17104      m68k)
17105            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)'
17106            hardcode_libdir_flag_spec='-L$libdir'
17107            hardcode_minus_L=yes
17108        ;;
17109      esac
17110      ;;
17111
17112    beos*)
17113      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17114	allow_undefined_flag=unsupported
17115	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17116	# support --undefined.  This deserves some investigation.  FIXME
17117	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17118      else
17119	ld_shlibs=no
17120      fi
17121      ;;
17122
17123    cygwin* | mingw* | pw32* | cegcc*)
17124      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17125      # as there is no search path for DLLs.
17126      hardcode_libdir_flag_spec='-L$libdir'
17127      export_dynamic_flag_spec='$wl--export-all-symbols'
17128      allow_undefined_flag=unsupported
17129      always_export_symbols=no
17130      enable_shared_with_static_runtimes=yes
17131      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'
17132      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17133
17134      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17135        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17136	# If the export-symbols file already is a .def file, use it as
17137	# is; otherwise, prepend EXPORTS...
17138	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17139          cp $export_symbols $output_objdir/$soname.def;
17140        else
17141          echo EXPORTS > $output_objdir/$soname.def;
17142          cat $export_symbols >> $output_objdir/$soname.def;
17143        fi~
17144        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17145      else
17146	ld_shlibs=no
17147      fi
17148      ;;
17149
17150    haiku*)
17151      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17152      link_all_deplibs=yes
17153      ;;
17154
17155    os2*)
17156      hardcode_libdir_flag_spec='-L$libdir'
17157      hardcode_minus_L=yes
17158      allow_undefined_flag=unsupported
17159      shrext_cmds=.dll
17160      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17161	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17162	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17163	$ECHO EXPORTS >> $output_objdir/$libname.def~
17164	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17165	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17166	emximp -o $lib $output_objdir/$libname.def'
17167      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17168	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17169	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17170	$ECHO EXPORTS >> $output_objdir/$libname.def~
17171	prefix_cmds="$SED"~
17172	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17173	  prefix_cmds="$prefix_cmds -e 1d";
17174	fi~
17175	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17176	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17177	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17178	emximp -o $lib $output_objdir/$libname.def'
17179      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17180      enable_shared_with_static_runtimes=yes
17181      file_list_spec='@'
17182      ;;
17183
17184    interix[3-9]*)
17185      hardcode_direct=no
17186      hardcode_shlibpath_var=no
17187      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17188      export_dynamic_flag_spec='$wl-E'
17189      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17190      # Instead, shared libraries are loaded at an image base (0x10000000 by
17191      # default) and relocated if they conflict, which is a slow very memory
17192      # consuming and fragmenting process.  To avoid this, we pick a random,
17193      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17194      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17195      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17196      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'
17197      ;;
17198
17199    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17200      tmp_diet=no
17201      if test linux-dietlibc = "$host_os"; then
17202	case $cc_basename in
17203	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
17204	esac
17205      fi
17206      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17207	 && test no = "$tmp_diet"
17208      then
17209	tmp_addflag=' $pic_flag'
17210	tmp_sharedflag='-shared'
17211	case $cc_basename,$host_cpu in
17212        pgcc*)				# Portland Group C compiler
17213	  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'
17214	  tmp_addflag=' $pic_flag'
17215	  ;;
17216	pgf77* | pgf90* | pgf95* | pgfortran*)
17217					# Portland Group f77 and f90 compilers
17218	  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'
17219	  tmp_addflag=' $pic_flag -Mnomain' ;;
17220	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
17221	  tmp_addflag=' -i_dynamic' ;;
17222	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17223	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17224	ifc* | ifort*)			# Intel Fortran compiler
17225	  tmp_addflag=' -nofor_main' ;;
17226	lf95*)				# Lahey Fortran 8.1
17227	  whole_archive_flag_spec=
17228	  tmp_sharedflag='--shared' ;;
17229        nagfor*)                        # NAGFOR 5.3
17230          tmp_sharedflag='-Wl,-shared' ;;
17231	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17232	  tmp_sharedflag='-qmkshrobj'
17233	  tmp_addflag= ;;
17234	nvcc*)	# Cuda Compiler Driver 2.2
17235	  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'
17236	  compiler_needs_object=yes
17237	  ;;
17238	esac
17239	case `$CC -V 2>&1 | $SED 5q` in
17240	*Sun\ C*)			# Sun C 5.9
17241	  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'
17242	  compiler_needs_object=yes
17243	  tmp_sharedflag='-G' ;;
17244	*Sun\ F*)			# Sun Fortran 8.3
17245	  tmp_sharedflag='-G' ;;
17246	esac
17247	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17248
17249        if test yes = "$supports_anon_versioning"; then
17250          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17251            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17252            echo "local: *; };" >> $output_objdir/$libname.ver~
17253            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17254        fi
17255
17256	case $cc_basename in
17257	tcc*)
17258	  export_dynamic_flag_spec='-rdynamic'
17259	  ;;
17260	xlf* | bgf* | bgxlf* | mpixlf*)
17261	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17262	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17263	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17264	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17265	  if test yes = "$supports_anon_versioning"; then
17266	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17267              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17268              echo "local: *; };" >> $output_objdir/$libname.ver~
17269              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17270	  fi
17271	  ;;
17272	esac
17273      else
17274        ld_shlibs=no
17275      fi
17276      ;;
17277
17278    netbsd*)
17279      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17280	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17281	wlarc=
17282      else
17283	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17284	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17285      fi
17286      ;;
17287
17288    solaris*)
17289      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17290	ld_shlibs=no
17291	cat <<_LT_EOF 1>&2
17292
17293*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17294*** create shared libraries on Solaris systems.  Therefore, libtool
17295*** is disabling shared libraries support.  We urge you to upgrade GNU
17296*** binutils to release 2.9.1 or newer.  Another option is to modify
17297*** your PATH or compiler configuration so that the native linker is
17298*** used, and then restart.
17299
17300_LT_EOF
17301      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17302	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17303	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17304      else
17305	ld_shlibs=no
17306      fi
17307      ;;
17308
17309    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17310      case `$LD -v 2>&1` in
17311        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17312	ld_shlibs=no
17313	cat <<_LT_EOF 1>&2
17314
17315*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
17316*** reliably create shared libraries on SCO systems.  Therefore, libtool
17317*** is disabling shared libraries support.  We urge you to upgrade GNU
17318*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17319*** your PATH or compiler configuration so that the native linker is
17320*** used, and then restart.
17321
17322_LT_EOF
17323	;;
17324	*)
17325	  # For security reasons, it is highly recommended that you always
17326	  # use absolute paths for naming shared libraries, and exclude the
17327	  # DT_RUNPATH tag from executables and libraries.  But doing so
17328	  # requires that you compile everything twice, which is a pain.
17329	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17330	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17331	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17332	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17333	  else
17334	    ld_shlibs=no
17335	  fi
17336	;;
17337      esac
17338      ;;
17339
17340    sunos4*)
17341      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17342      wlarc=
17343      hardcode_direct=yes
17344      hardcode_shlibpath_var=no
17345      ;;
17346
17347    *)
17348      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17349	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17350	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17351      else
17352	ld_shlibs=no
17353      fi
17354      ;;
17355    esac
17356
17357    if test no = "$ld_shlibs"; then
17358      runpath_var=
17359      hardcode_libdir_flag_spec=
17360      export_dynamic_flag_spec=
17361      whole_archive_flag_spec=
17362    fi
17363  else
17364    # PORTME fill in a description of your system's linker (not GNU ld)
17365    case $host_os in
17366    aix3*)
17367      allow_undefined_flag=unsupported
17368      always_export_symbols=yes
17369      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'
17370      # Note: this linker hardcodes the directories in LIBPATH if there
17371      # are no directories specified by -L.
17372      hardcode_minus_L=yes
17373      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17374	# Neither direct hardcoding nor static linking is supported with a
17375	# broken collect2.
17376	hardcode_direct=unsupported
17377      fi
17378      ;;
17379
17380    aix[4-9]*)
17381      if test ia64 = "$host_cpu"; then
17382	# On IA64, the linker does run time linking by default, so we don't
17383	# have to do anything special.
17384	aix_use_runtimelinking=no
17385	exp_sym_flag='-Bexport'
17386	no_entry_flag=
17387      else
17388	# If we're using GNU nm, then we don't want the "-C" option.
17389	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
17390	# Without the "-l" option, or with the "-B" option, AIX nm treats
17391	# weak defined symbols like other global defined symbols, whereas
17392	# GNU nm marks them as "W".
17393	# While the 'weak' keyword is ignored in the Export File, we need
17394	# it in the Import File for the 'aix-soname' feature, so we have
17395	# to replace the "-B" option with "-P" for AIX nm.
17396	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17397	  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'
17398	else
17399	  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'
17400	fi
17401	aix_use_runtimelinking=no
17402
17403	# Test if we are trying to use run time linking or normal
17404	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17405	# have runtime linking enabled, and use it for executables.
17406	# For shared libraries, we enable/disable runtime linking
17407	# depending on the kind of the shared library created -
17408	# when "with_aix_soname,aix_use_runtimelinking" is:
17409	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
17410	# "aix,yes"  lib.so          shared, rtl:yes, for executables
17411	#            lib.a           static archive
17412	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
17413	#            lib.a(lib.so.V) shared, rtl:no,  for executables
17414	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17415	#            lib.a(lib.so.V) shared, rtl:no
17416	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
17417	#            lib.a           static archive
17418	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17419	  for ld_flag in $LDFLAGS; do
17420	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17421	    aix_use_runtimelinking=yes
17422	    break
17423	  fi
17424	  done
17425	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17426	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
17427	    # so we don't have lib.a shared libs to link our executables.
17428	    # We have to force runtime linking in this case.
17429	    aix_use_runtimelinking=yes
17430	    LDFLAGS="$LDFLAGS -Wl,-brtl"
17431	  fi
17432	  ;;
17433	esac
17434
17435	exp_sym_flag='-bexport'
17436	no_entry_flag='-bnoentry'
17437      fi
17438
17439      # When large executables or shared objects are built, AIX ld can
17440      # have problems creating the table of contents.  If linking a library
17441      # or program results in "error TOC overflow" add -mminimal-toc to
17442      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17443      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17444
17445      archive_cmds=''
17446      hardcode_direct=yes
17447      hardcode_direct_absolute=yes
17448      hardcode_libdir_separator=':'
17449      link_all_deplibs=yes
17450      file_list_spec='$wl-f,'
17451      case $with_aix_soname,$aix_use_runtimelinking in
17452      aix,*) ;; # traditional, no import file
17453      svr4,* | *,yes) # use import file
17454	# The Import File defines what to hardcode.
17455	hardcode_direct=no
17456	hardcode_direct_absolute=no
17457	;;
17458      esac
17459
17460      if test yes = "$GCC"; then
17461	case $host_os in aix4.[012]|aix4.[012].*)
17462	# We only want to do this on AIX 4.2 and lower, the check
17463	# below for broken collect2 doesn't work under 4.3+
17464	  collect2name=`$CC -print-prog-name=collect2`
17465	  if test -f "$collect2name" &&
17466	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17467	  then
17468	  # We have reworked collect2
17469	  :
17470	  else
17471	  # We have old collect2
17472	  hardcode_direct=unsupported
17473	  # It fails to find uninstalled libraries when the uninstalled
17474	  # path is not listed in the libpath.  Setting hardcode_minus_L
17475	  # to unsupported forces relinking
17476	  hardcode_minus_L=yes
17477	  hardcode_libdir_flag_spec='-L$libdir'
17478	  hardcode_libdir_separator=
17479	  fi
17480	  ;;
17481	esac
17482	shared_flag='-shared'
17483	if test yes = "$aix_use_runtimelinking"; then
17484	  shared_flag="$shared_flag "'$wl-G'
17485	fi
17486	# Need to ensure runtime linking is disabled for the traditional
17487	# shared library, or the linker may eventually find shared libraries
17488	# /with/ Import File - we do not want to mix them.
17489	shared_flag_aix='-shared'
17490	shared_flag_svr4='-shared $wl-G'
17491      else
17492	# not using gcc
17493	if test ia64 = "$host_cpu"; then
17494	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17495	# chokes on -Wl,-G. The following line is correct:
17496	  shared_flag='-G'
17497	else
17498	  if test yes = "$aix_use_runtimelinking"; then
17499	    shared_flag='$wl-G'
17500	  else
17501	    shared_flag='$wl-bM:SRE'
17502	  fi
17503	  shared_flag_aix='$wl-bM:SRE'
17504	  shared_flag_svr4='$wl-G'
17505	fi
17506      fi
17507
17508      export_dynamic_flag_spec='$wl-bexpall'
17509      # It seems that -bexpall does not export symbols beginning with
17510      # underscore (_), so it is better to generate a list of symbols to export.
17511      always_export_symbols=yes
17512      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17513	# Warning - without using the other runtime loading flags (-brtl),
17514	# -berok will link without error, but may produce a broken library.
17515	allow_undefined_flag='-berok'
17516        # Determine the default libpath from the value encoded in an
17517        # empty executable.
17518        if test set = "${lt_cv_aix_libpath+set}"; then
17519  aix_libpath=$lt_cv_aix_libpath
17520else
17521  if test ${lt_cv_aix_libpath_+y}
17522then :
17523  printf %s "(cached) " >&6
17524else case e in #(
17525  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526/* end confdefs.h.  */
17527
17528int
17529main (void)
17530{
17531
17532  ;
17533  return 0;
17534}
17535_ACEOF
17536if ac_fn_c_try_link "$LINENO"
17537then :
17538
17539  lt_aix_libpath_sed='
17540      /Import File Strings/,/^$/ {
17541	  /^0/ {
17542	      s/^0  *\([^ ]*\) *$/\1/
17543	      p
17544	  }
17545      }'
17546  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17547  # Check for a 64-bit object if we didn't find anything.
17548  if test -z "$lt_cv_aix_libpath_"; then
17549    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17550  fi
17551fi
17552rm -f core conftest.err conftest.$ac_objext conftest.beam \
17553    conftest$ac_exeext conftest.$ac_ext
17554  if test -z "$lt_cv_aix_libpath_"; then
17555    lt_cv_aix_libpath_=/usr/lib:/lib
17556  fi
17557   ;;
17558esac
17559fi
17560
17561  aix_libpath=$lt_cv_aix_libpath_
17562fi
17563
17564        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17565        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
17566      else
17567	if test ia64 = "$host_cpu"; then
17568	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17569	  allow_undefined_flag="-z nodefs"
17570	  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"
17571	else
17572	 # Determine the default libpath from the value encoded in an
17573	 # empty executable.
17574	 if test set = "${lt_cv_aix_libpath+set}"; then
17575  aix_libpath=$lt_cv_aix_libpath
17576else
17577  if test ${lt_cv_aix_libpath_+y}
17578then :
17579  printf %s "(cached) " >&6
17580else case e in #(
17581  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582/* end confdefs.h.  */
17583
17584int
17585main (void)
17586{
17587
17588  ;
17589  return 0;
17590}
17591_ACEOF
17592if ac_fn_c_try_link "$LINENO"
17593then :
17594
17595  lt_aix_libpath_sed='
17596      /Import File Strings/,/^$/ {
17597	  /^0/ {
17598	      s/^0  *\([^ ]*\) *$/\1/
17599	      p
17600	  }
17601      }'
17602  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17603  # Check for a 64-bit object if we didn't find anything.
17604  if test -z "$lt_cv_aix_libpath_"; then
17605    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17606  fi
17607fi
17608rm -f core conftest.err conftest.$ac_objext conftest.beam \
17609    conftest$ac_exeext conftest.$ac_ext
17610  if test -z "$lt_cv_aix_libpath_"; then
17611    lt_cv_aix_libpath_=/usr/lib:/lib
17612  fi
17613   ;;
17614esac
17615fi
17616
17617  aix_libpath=$lt_cv_aix_libpath_
17618fi
17619
17620	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17621	  # Warning - without using the other run time loading flags,
17622	  # -berok will link without error, but may produce a broken library.
17623	  no_undefined_flag=' $wl-bernotok'
17624	  allow_undefined_flag=' $wl-berok'
17625	  if test yes = "$with_gnu_ld"; then
17626	    # We only use this code for GNU lds that support --whole-archive.
17627	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17628	  else
17629	    # Exported symbols can be pulled into shared objects from archives
17630	    whole_archive_flag_spec='$convenience'
17631	  fi
17632	  archive_cmds_need_lc=yes
17633	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17634	  # -brtl affects multiple linker settings, -berok does not and is overridden later
17635	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17636	  if test svr4 != "$with_aix_soname"; then
17637	    # This is similar to how AIX traditionally builds its shared libraries.
17638	    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'
17639	  fi
17640	  if test aix != "$with_aix_soname"; then
17641	    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'
17642	  else
17643	    # used by -dlpreopen to get the symbols
17644	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17645	  fi
17646	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17647	fi
17648      fi
17649      ;;
17650
17651    amigaos*)
17652      case $host_cpu in
17653      powerpc)
17654            # see comment about AmigaOS4 .so support
17655            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17656            archive_expsym_cmds=''
17657        ;;
17658      m68k)
17659            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)'
17660            hardcode_libdir_flag_spec='-L$libdir'
17661            hardcode_minus_L=yes
17662        ;;
17663      esac
17664      ;;
17665
17666    bsdi[45]*)
17667      export_dynamic_flag_spec=-rdynamic
17668      ;;
17669
17670    cygwin* | mingw* | pw32* | cegcc*)
17671      # When not using gcc, we currently assume that we are using
17672      # Microsoft Visual C++ or Intel C++ Compiler.
17673      # hardcode_libdir_flag_spec is actually meaningless, as there is
17674      # no search path for DLLs.
17675      case $cc_basename in
17676      cl* | icl*)
17677	# Native MSVC or ICC
17678	hardcode_libdir_flag_spec=' '
17679	allow_undefined_flag=unsupported
17680	always_export_symbols=yes
17681	file_list_spec='@'
17682	# Tell ltmain to make .lib files, not .a files.
17683	libext=lib
17684	# Tell ltmain to make .dll files, not .so files.
17685	shrext_cmds=.dll
17686	# FIXME: Setting linknames here is a bad hack.
17687	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17688	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17689            cp "$export_symbols" "$output_objdir/$soname.def";
17690            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17691          else
17692            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17693          fi~
17694          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17695          linknames='
17696	# The linker will not automatically build a static lib if we build a DLL.
17697	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17698	enable_shared_with_static_runtimes=yes
17699	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17700	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17701	# Don't use ranlib
17702	old_postinstall_cmds='chmod 644 $oldlib'
17703	postlink_cmds='lt_outputfile="@OUTPUT@"~
17704          lt_tool_outputfile="@TOOL_OUTPUT@"~
17705          case $lt_outputfile in
17706            *.exe|*.EXE) ;;
17707            *)
17708              lt_outputfile=$lt_outputfile.exe
17709              lt_tool_outputfile=$lt_tool_outputfile.exe
17710              ;;
17711          esac~
17712          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17713            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17714            $RM "$lt_outputfile.manifest";
17715          fi'
17716	;;
17717      *)
17718	# Assume MSVC and ICC wrapper
17719	hardcode_libdir_flag_spec=' '
17720	allow_undefined_flag=unsupported
17721	# Tell ltmain to make .lib files, not .a files.
17722	libext=lib
17723	# Tell ltmain to make .dll files, not .so files.
17724	shrext_cmds=.dll
17725	# FIXME: Setting linknames here is a bad hack.
17726	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17727	# The linker will automatically build a .lib file if we build a DLL.
17728	old_archive_from_new_cmds='true'
17729	# FIXME: Should let the user specify the lib program.
17730	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17731	enable_shared_with_static_runtimes=yes
17732	;;
17733      esac
17734      ;;
17735
17736    darwin* | rhapsody*)
17737
17738
17739  archive_cmds_need_lc=no
17740  hardcode_direct=no
17741  hardcode_automatic=yes
17742  hardcode_shlibpath_var=unsupported
17743  if test yes = "$lt_cv_ld_force_load"; then
17744    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\"`'
17745
17746  else
17747    whole_archive_flag_spec=''
17748  fi
17749  link_all_deplibs=yes
17750  allow_undefined_flag=$_lt_dar_allow_undefined
17751  case $cc_basename in
17752     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17753     *) _lt_dar_can_shared=$GCC ;;
17754  esac
17755  if test yes = "$_lt_dar_can_shared"; then
17756    output_verbose_link_cmd=func_echo_all
17757    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17758    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17759    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"
17760    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"
17761
17762  else
17763  ld_shlibs=no
17764  fi
17765
17766      ;;
17767
17768    dgux*)
17769      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770      hardcode_libdir_flag_spec='-L$libdir'
17771      hardcode_shlibpath_var=no
17772      ;;
17773
17774    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17775    # support.  Future versions do this automatically, but an explicit c++rt0.o
17776    # does not break anything, and helps significantly (at the cost of a little
17777    # extra space).
17778    freebsd2.2*)
17779      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17780      hardcode_libdir_flag_spec='-R$libdir'
17781      hardcode_direct=yes
17782      hardcode_shlibpath_var=no
17783      ;;
17784
17785    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17786    freebsd2.*)
17787      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17788      hardcode_direct=yes
17789      hardcode_minus_L=yes
17790      hardcode_shlibpath_var=no
17791      ;;
17792
17793    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17794    freebsd* | dragonfly* | midnightbsd*)
17795      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17796      hardcode_libdir_flag_spec='-R$libdir'
17797      hardcode_direct=yes
17798      hardcode_shlibpath_var=no
17799      ;;
17800
17801    hpux9*)
17802      if test yes = "$GCC"; then
17803	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'
17804      else
17805	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'
17806      fi
17807      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17808      hardcode_libdir_separator=:
17809      hardcode_direct=yes
17810
17811      # hardcode_minus_L: Not really in the search PATH,
17812      # but as the default location of the library.
17813      hardcode_minus_L=yes
17814      export_dynamic_flag_spec='$wl-E'
17815      ;;
17816
17817    hpux10*)
17818      if test yes,no = "$GCC,$with_gnu_ld"; then
17819	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17820      else
17821	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17822      fi
17823      if test no = "$with_gnu_ld"; then
17824	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17825	hardcode_libdir_separator=:
17826	hardcode_direct=yes
17827	hardcode_direct_absolute=yes
17828	export_dynamic_flag_spec='$wl-E'
17829	# hardcode_minus_L: Not really in the search PATH,
17830	# but as the default location of the library.
17831	hardcode_minus_L=yes
17832      fi
17833      ;;
17834
17835    hpux11*)
17836      if test yes,no = "$GCC,$with_gnu_ld"; then
17837	case $host_cpu in
17838	hppa*64*)
17839	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17840	  ;;
17841	ia64*)
17842	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17843	  ;;
17844	*)
17845	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17846	  ;;
17847	esac
17848      else
17849	case $host_cpu in
17850	hppa*64*)
17851	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17852	  ;;
17853	ia64*)
17854	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17855	  ;;
17856	*)
17857
17858	  # Older versions of the 11.00 compiler do not understand -b yet
17859	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17860	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17861printf %s "checking if $CC understands -b... " >&6; }
17862if test ${lt_cv_prog_compiler__b+y}
17863then :
17864  printf %s "(cached) " >&6
17865else case e in #(
17866  e) lt_cv_prog_compiler__b=no
17867   save_LDFLAGS=$LDFLAGS
17868   LDFLAGS="$LDFLAGS -b"
17869   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17870   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17871     # The linker can only warn and ignore the option if not recognized
17872     # So say no if there are warnings
17873     if test -s conftest.err; then
17874       # Append any errors to the config.log.
17875       cat conftest.err 1>&5
17876       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17877       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17878       if diff conftest.exp conftest.er2 >/dev/null; then
17879         lt_cv_prog_compiler__b=yes
17880       fi
17881     else
17882       lt_cv_prog_compiler__b=yes
17883     fi
17884   fi
17885   $RM -r conftest*
17886   LDFLAGS=$save_LDFLAGS
17887 ;;
17888esac
17889fi
17890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17891printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17892
17893if test yes = "$lt_cv_prog_compiler__b"; then
17894    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17895else
17896    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17897fi
17898
17899	  ;;
17900	esac
17901      fi
17902      if test no = "$with_gnu_ld"; then
17903	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17904	hardcode_libdir_separator=:
17905
17906	case $host_cpu in
17907	hppa*64*|ia64*)
17908	  hardcode_direct=no
17909	  hardcode_shlibpath_var=no
17910	  ;;
17911	*)
17912	  hardcode_direct=yes
17913	  hardcode_direct_absolute=yes
17914	  export_dynamic_flag_spec='$wl-E'
17915
17916	  # hardcode_minus_L: Not really in the search PATH,
17917	  # but as the default location of the library.
17918	  hardcode_minus_L=yes
17919	  ;;
17920	esac
17921      fi
17922      ;;
17923
17924    irix5* | irix6* | nonstopux*)
17925      if test yes = "$GCC"; then
17926	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'
17927	# Try to use the -exported_symbol ld option, if it does not
17928	# work, assume that -exports_file does not work either and
17929	# implicitly export all symbols.
17930	# This should be the same for all languages, so no per-tag cache variable.
17931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17932printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17933if test ${lt_cv_irix_exported_symbol+y}
17934then :
17935  printf %s "(cached) " >&6
17936else case e in #(
17937  e) save_LDFLAGS=$LDFLAGS
17938	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17939	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940/* end confdefs.h.  */
17941int foo (void) { return 0; }
17942_ACEOF
17943if ac_fn_c_try_link "$LINENO"
17944then :
17945  lt_cv_irix_exported_symbol=yes
17946else case e in #(
17947  e) lt_cv_irix_exported_symbol=no ;;
17948esac
17949fi
17950rm -f core conftest.err conftest.$ac_objext conftest.beam \
17951    conftest$ac_exeext conftest.$ac_ext
17952           LDFLAGS=$save_LDFLAGS ;;
17953esac
17954fi
17955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17956printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17957	if test yes = "$lt_cv_irix_exported_symbol"; then
17958          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'
17959	fi
17960      else
17961	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'
17962	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'
17963      fi
17964      archive_cmds_need_lc='no'
17965      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17966      hardcode_libdir_separator=:
17967      inherit_rpath=yes
17968      link_all_deplibs=yes
17969      ;;
17970
17971    linux*)
17972      case $cc_basename in
17973      tcc*)
17974	# Fabrice Bellard et al's Tiny C Compiler
17975	ld_shlibs=yes
17976	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17977	;;
17978      esac
17979      ;;
17980
17981    netbsd*)
17982      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17983	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17984      else
17985	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17986      fi
17987      hardcode_libdir_flag_spec='-R$libdir'
17988      hardcode_direct=yes
17989      hardcode_shlibpath_var=no
17990      ;;
17991
17992    newsos6)
17993      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17994      hardcode_direct=yes
17995      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17996      hardcode_libdir_separator=:
17997      hardcode_shlibpath_var=no
17998      ;;
17999
18000    *nto* | *qnx*)
18001      ;;
18002
18003    openbsd* | bitrig*)
18004      if test -f /usr/libexec/ld.so; then
18005	hardcode_direct=yes
18006	hardcode_shlibpath_var=no
18007	hardcode_direct_absolute=yes
18008	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18009	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18010	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
18011	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18012	  export_dynamic_flag_spec='$wl-E'
18013	else
18014	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18015	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18016	fi
18017      else
18018	ld_shlibs=no
18019      fi
18020      ;;
18021
18022    os2*)
18023      hardcode_libdir_flag_spec='-L$libdir'
18024      hardcode_minus_L=yes
18025      allow_undefined_flag=unsupported
18026      shrext_cmds=.dll
18027      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18028	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18029	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18030	$ECHO EXPORTS >> $output_objdir/$libname.def~
18031	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18032	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18033	emximp -o $lib $output_objdir/$libname.def'
18034      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18035	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18036	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18037	$ECHO EXPORTS >> $output_objdir/$libname.def~
18038	prefix_cmds="$SED"~
18039	if test EXPORTS = "`$SED 1q $export_symbols`"; then
18040	  prefix_cmds="$prefix_cmds -e 1d";
18041	fi~
18042	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18043	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18044	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18045	emximp -o $lib $output_objdir/$libname.def'
18046      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18047      enable_shared_with_static_runtimes=yes
18048      file_list_spec='@'
18049      ;;
18050
18051    osf3*)
18052      if test yes = "$GCC"; then
18053	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18054	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'
18055      else
18056	allow_undefined_flag=' -expect_unresolved \*'
18057	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'
18058      fi
18059      archive_cmds_need_lc='no'
18060      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18061      hardcode_libdir_separator=:
18062      ;;
18063
18064    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18065      if test yes = "$GCC"; then
18066	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18067	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'
18068	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18069      else
18070	allow_undefined_flag=' -expect_unresolved \*'
18071	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'
18072	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~
18073          $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'
18074
18075	# Both c and cxx compiler support -rpath directly
18076	hardcode_libdir_flag_spec='-rpath $libdir'
18077      fi
18078      archive_cmds_need_lc='no'
18079      hardcode_libdir_separator=:
18080      ;;
18081
18082    solaris*)
18083      no_undefined_flag=' -z defs'
18084      if test yes = "$GCC"; then
18085	wlarc='$wl'
18086	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18087	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18088          $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'
18089      else
18090	case `$CC -V 2>&1` in
18091	*"Compilers 5.0"*)
18092	  wlarc=''
18093	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
18094	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18095            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18096	  ;;
18097	*)
18098	  wlarc='$wl'
18099	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18100	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18101            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18102	  ;;
18103	esac
18104      fi
18105      hardcode_libdir_flag_spec='-R$libdir'
18106      hardcode_shlibpath_var=no
18107      case $host_os in
18108      solaris2.[0-5] | solaris2.[0-5].*) ;;
18109      *)
18110	# The compiler driver will combine and reorder linker options,
18111	# but understands '-z linker_flag'.  GCC discards it without '$wl',
18112	# but is careful enough not to reorder.
18113	# Supported since Solaris 2.6 (maybe 2.5.1?)
18114	if test yes = "$GCC"; then
18115	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18116	else
18117	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18118	fi
18119	;;
18120      esac
18121      link_all_deplibs=yes
18122      ;;
18123
18124    sunos4*)
18125      if test sequent = "$host_vendor"; then
18126	# Use $CC to link under sequent, because it throws in some extra .o
18127	# files that make .init and .fini sections work.
18128	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18129      else
18130	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18131      fi
18132      hardcode_libdir_flag_spec='-L$libdir'
18133      hardcode_direct=yes
18134      hardcode_minus_L=yes
18135      hardcode_shlibpath_var=no
18136      ;;
18137
18138    sysv4)
18139      case $host_vendor in
18140	sni)
18141	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18142	  hardcode_direct=yes # is this really true???
18143	;;
18144	siemens)
18145	  ## LD is ld it makes a PLAMLIB
18146	  ## CC just makes a GrossModule.
18147	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18148	  reload_cmds='$CC -r -o $output$reload_objs'
18149	  hardcode_direct=no
18150        ;;
18151	motorola)
18152	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18153	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18154	;;
18155      esac
18156      runpath_var='LD_RUN_PATH'
18157      hardcode_shlibpath_var=no
18158      ;;
18159
18160    sysv4.3*)
18161      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18162      hardcode_shlibpath_var=no
18163      export_dynamic_flag_spec='-Bexport'
18164      ;;
18165
18166    sysv4*MP*)
18167      if test -d /usr/nec; then
18168	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18169	hardcode_shlibpath_var=no
18170	runpath_var=LD_RUN_PATH
18171	hardcode_runpath_var=yes
18172	ld_shlibs=yes
18173      fi
18174      ;;
18175
18176    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18177      no_undefined_flag='$wl-z,text'
18178      archive_cmds_need_lc=no
18179      hardcode_shlibpath_var=no
18180      runpath_var='LD_RUN_PATH'
18181
18182      if test yes = "$GCC"; then
18183	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18184	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18185      else
18186	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18187	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18188      fi
18189      ;;
18190
18191    sysv5* | sco3.2v5* | sco5v6*)
18192      # Note: We CANNOT use -z defs as we might desire, because we do not
18193      # link with -lc, and that would cause any symbols used from libc to
18194      # always be unresolved, which means just about no library would
18195      # ever link correctly.  If we're not using GNU ld we use -z text
18196      # though, which does catch some bad symbols but isn't as heavy-handed
18197      # as -z defs.
18198      no_undefined_flag='$wl-z,text'
18199      allow_undefined_flag='$wl-z,nodefs'
18200      archive_cmds_need_lc=no
18201      hardcode_shlibpath_var=no
18202      hardcode_libdir_flag_spec='$wl-R,$libdir'
18203      hardcode_libdir_separator=':'
18204      link_all_deplibs=yes
18205      export_dynamic_flag_spec='$wl-Bexport'
18206      runpath_var='LD_RUN_PATH'
18207
18208      if test yes = "$GCC"; then
18209	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18210	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18211      else
18212	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18213	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18214      fi
18215      ;;
18216
18217    uts4*)
18218      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18219      hardcode_libdir_flag_spec='-L$libdir'
18220      hardcode_shlibpath_var=no
18221      ;;
18222
18223    *)
18224      ld_shlibs=no
18225      ;;
18226    esac
18227
18228    if test sni = "$host_vendor"; then
18229      case $host in
18230      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18231	export_dynamic_flag_spec='$wl-Blargedynsym'
18232	;;
18233      esac
18234    fi
18235  fi
18236
18237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18238printf "%s\n" "$ld_shlibs" >&6; }
18239test no = "$ld_shlibs" && can_build_shared=no
18240
18241with_gnu_ld=$with_gnu_ld
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257#
18258# Do we need to explicitly link libc?
18259#
18260case "x$archive_cmds_need_lc" in
18261x|xyes)
18262  # Assume -lc should be added
18263  archive_cmds_need_lc=yes
18264
18265  if test yes,yes = "$GCC,$enable_shared"; then
18266    case $archive_cmds in
18267    *'~'*)
18268      # FIXME: we may have to deal with multi-command sequences.
18269      ;;
18270    '$CC '*)
18271      # Test whether the compiler implicitly links with -lc since on some
18272      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18273      # to ld, don't add -lc before -lgcc.
18274      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18275printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18276if test ${lt_cv_archive_cmds_need_lc+y}
18277then :
18278  printf %s "(cached) " >&6
18279else case e in #(
18280  e) $RM conftest*
18281	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18282
18283	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18284  (eval $ac_compile) 2>&5
18285  ac_status=$?
18286  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18287  test $ac_status = 0; } 2>conftest.err; then
18288	  soname=conftest
18289	  lib=conftest
18290	  libobjs=conftest.$ac_objext
18291	  deplibs=
18292	  wl=$lt_prog_compiler_wl
18293	  pic_flag=$lt_prog_compiler_pic
18294	  compiler_flags=-v
18295	  linker_flags=-v
18296	  verstring=
18297	  output_objdir=.
18298	  libname=conftest
18299	  lt_save_allow_undefined_flag=$allow_undefined_flag
18300	  allow_undefined_flag=
18301	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18302  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18303  ac_status=$?
18304  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18305  test $ac_status = 0; }
18306	  then
18307	    lt_cv_archive_cmds_need_lc=no
18308	  else
18309	    lt_cv_archive_cmds_need_lc=yes
18310	  fi
18311	  allow_undefined_flag=$lt_save_allow_undefined_flag
18312	else
18313	  cat conftest.err 1>&5
18314	fi
18315	$RM conftest*
18316	 ;;
18317esac
18318fi
18319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18320printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
18321      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18322      ;;
18323    esac
18324  fi
18325  ;;
18326esac
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18480printf %s "checking dynamic linker characteristics... " >&6; }
18481
18482if test yes = "$GCC"; then
18483  case $host_os in
18484    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18485    *) lt_awk_arg='/^libraries:/' ;;
18486  esac
18487  case $host_os in
18488    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18489    *) lt_sed_strip_eq='s|=/|/|g' ;;
18490  esac
18491  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18492  case $lt_search_path_spec in
18493  *\;*)
18494    # if the path contains ";" then we assume it to be the separator
18495    # otherwise default to the standard path separator (i.e. ":") - it is
18496    # assumed that no part of a normal pathname contains ";" but that should
18497    # okay in the real world where ";" in dirpaths is itself problematic.
18498    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18499    ;;
18500  *)
18501    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18502    ;;
18503  esac
18504  # Ok, now we have the path, separated by spaces, we can step through it
18505  # and add multilib dir if necessary...
18506  lt_tmp_lt_search_path_spec=
18507  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18508  # ...but if some path component already ends with the multilib dir we assume
18509  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18510  case "$lt_multi_os_dir; $lt_search_path_spec " in
18511  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18512    lt_multi_os_dir=
18513    ;;
18514  esac
18515  for lt_sys_path in $lt_search_path_spec; do
18516    if test -d "$lt_sys_path$lt_multi_os_dir"; then
18517      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18518    elif test -n "$lt_multi_os_dir"; then
18519      test -d "$lt_sys_path" && \
18520	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18521    fi
18522  done
18523  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18524BEGIN {RS = " "; FS = "/|\n";} {
18525  lt_foo = "";
18526  lt_count = 0;
18527  for (lt_i = NF; lt_i > 0; lt_i--) {
18528    if ($lt_i != "" && $lt_i != ".") {
18529      if ($lt_i == "..") {
18530        lt_count++;
18531      } else {
18532        if (lt_count == 0) {
18533          lt_foo = "/" $lt_i lt_foo;
18534        } else {
18535          lt_count--;
18536        }
18537      }
18538    }
18539  }
18540  if (lt_foo != "") { lt_freq[lt_foo]++; }
18541  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18542}'`
18543  # AWK program above erroneously prepends '/' to C:/dos/paths
18544  # for these hosts.
18545  case $host_os in
18546    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18547      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18548  esac
18549  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18550else
18551  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18552fi
18553library_names_spec=
18554libname_spec='lib$name'
18555soname_spec=
18556shrext_cmds=.so
18557postinstall_cmds=
18558postuninstall_cmds=
18559finish_cmds=
18560finish_eval=
18561shlibpath_var=
18562shlibpath_overrides_runpath=unknown
18563version_type=none
18564dynamic_linker="$host_os ld.so"
18565sys_lib_dlsearch_path_spec="/lib /usr/lib"
18566need_lib_prefix=unknown
18567hardcode_into_libs=no
18568
18569# when you set need_version to no, make sure it does not cause -set_version
18570# flags to be left without arguments
18571need_version=unknown
18572
18573
18574
18575case $host_os in
18576aix3*)
18577  version_type=linux # correct to gnu/linux during the next big refactor
18578  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18579  shlibpath_var=LIBPATH
18580
18581  # AIX 3 has no versioning support, so we append a major version to the name.
18582  soname_spec='$libname$release$shared_ext$major'
18583  ;;
18584
18585aix[4-9]*)
18586  version_type=linux # correct to gnu/linux during the next big refactor
18587  need_lib_prefix=no
18588  need_version=no
18589  hardcode_into_libs=yes
18590  if test ia64 = "$host_cpu"; then
18591    # AIX 5 supports IA64
18592    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18593    shlibpath_var=LD_LIBRARY_PATH
18594  else
18595    # With GCC up to 2.95.x, collect2 would create an import file
18596    # for dependence libraries.  The import file would start with
18597    # the line '#! .'.  This would cause the generated library to
18598    # depend on '.', always an invalid library.  This was fixed in
18599    # development snapshots of GCC prior to 3.0.
18600    case $host_os in
18601      aix4 | aix4.[01] | aix4.[01].*)
18602      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18603	   echo ' yes '
18604	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18605	:
18606      else
18607	can_build_shared=no
18608      fi
18609      ;;
18610    esac
18611    # Using Import Files as archive members, it is possible to support
18612    # filename-based versioning of shared library archives on AIX. While
18613    # this would work for both with and without runtime linking, it will
18614    # prevent static linking of such archives. So we do filename-based
18615    # shared library versioning with .so extension only, which is used
18616    # when both runtime linking and shared linking is enabled.
18617    # Unfortunately, runtime linking may impact performance, so we do
18618    # not want this to be the default eventually. Also, we use the
18619    # versioned .so libs for executables only if there is the -brtl
18620    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18621    # To allow for filename-based versioning support, we need to create
18622    # libNAME.so.V as an archive file, containing:
18623    # *) an Import File, referring to the versioned filename of the
18624    #    archive as well as the shared archive member, telling the
18625    #    bitwidth (32 or 64) of that shared object, and providing the
18626    #    list of exported symbols of that shared object, eventually
18627    #    decorated with the 'weak' keyword
18628    # *) the shared object with the F_LOADONLY flag set, to really avoid
18629    #    it being seen by the linker.
18630    # At run time we better use the real file rather than another symlink,
18631    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18632
18633    case $with_aix_soname,$aix_use_runtimelinking in
18634    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18635    # soname into executable. Probably we can add versioning support to
18636    # collect2, so additional links can be useful in future.
18637    aix,yes) # traditional libtool
18638      dynamic_linker='AIX unversionable lib.so'
18639      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18640      # instead of lib<name>.a to let people know that these are not
18641      # typical AIX shared libraries.
18642      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18643      ;;
18644    aix,no) # traditional AIX only
18645      dynamic_linker='AIX lib.a(lib.so.V)'
18646      # We preserve .a as extension for shared libraries through AIX4.2
18647      # and later when we are not doing run time linking.
18648      library_names_spec='$libname$release.a $libname.a'
18649      soname_spec='$libname$release$shared_ext$major'
18650      ;;
18651    svr4,*) # full svr4 only
18652      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18653      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18654      # We do not specify a path in Import Files, so LIBPATH fires.
18655      shlibpath_overrides_runpath=yes
18656      ;;
18657    *,yes) # both, prefer svr4
18658      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18659      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18660      # unpreferred sharedlib libNAME.a needs extra handling
18661      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"'
18662      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"'
18663      # We do not specify a path in Import Files, so LIBPATH fires.
18664      shlibpath_overrides_runpath=yes
18665      ;;
18666    *,no) # both, prefer aix
18667      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18668      library_names_spec='$libname$release.a $libname.a'
18669      soname_spec='$libname$release$shared_ext$major'
18670      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18671      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)'
18672      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"'
18673      ;;
18674    esac
18675    shlibpath_var=LIBPATH
18676  fi
18677  ;;
18678
18679amigaos*)
18680  case $host_cpu in
18681  powerpc)
18682    # Since July 2007 AmigaOS4 officially supports .so libraries.
18683    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18684    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18685    ;;
18686  m68k)
18687    library_names_spec='$libname.ixlibrary $libname.a'
18688    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18689    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'
18690    ;;
18691  esac
18692  ;;
18693
18694beos*)
18695  library_names_spec='$libname$shared_ext'
18696  dynamic_linker="$host_os ld.so"
18697  shlibpath_var=LIBRARY_PATH
18698  ;;
18699
18700bsdi[45]*)
18701  version_type=linux # correct to gnu/linux during the next big refactor
18702  need_version=no
18703  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18704  soname_spec='$libname$release$shared_ext$major'
18705  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18706  shlibpath_var=LD_LIBRARY_PATH
18707  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18708  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18709  # the default ld.so.conf also contains /usr/contrib/lib and
18710  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18711  # libtool to hard-code these into programs
18712  ;;
18713
18714cygwin* | mingw* | pw32* | cegcc*)
18715  version_type=windows
18716  shrext_cmds=.dll
18717  need_version=no
18718  need_lib_prefix=no
18719
18720  case $GCC,$cc_basename in
18721  yes,*)
18722    # gcc
18723    library_names_spec='$libname.dll.a'
18724    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18725    postinstall_cmds='base_file=`basename \$file`~
18726      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18727      dldir=$destdir/`dirname \$dlpath`~
18728      test -d \$dldir || mkdir -p \$dldir~
18729      $install_prog $dir/$dlname \$dldir/$dlname~
18730      chmod a+x \$dldir/$dlname~
18731      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18732        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18733      fi'
18734    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18735      dlpath=$dir/\$dldll~
18736       $RM \$dlpath'
18737    shlibpath_overrides_runpath=yes
18738
18739    case $host_os in
18740    cygwin*)
18741      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18742      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18743
18744      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18745      ;;
18746    mingw* | cegcc*)
18747      # MinGW DLLs use traditional 'lib' prefix
18748      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18749      ;;
18750    pw32*)
18751      # pw32 DLLs use 'pw' prefix rather than 'lib'
18752      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18753      ;;
18754    esac
18755    dynamic_linker='Win32 ld.exe'
18756    ;;
18757
18758  *,cl* | *,icl*)
18759    # Native MSVC or ICC
18760    libname_spec='$name'
18761    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18762    library_names_spec='$libname.dll.lib'
18763
18764    case $build_os in
18765    mingw*)
18766      sys_lib_search_path_spec=
18767      lt_save_ifs=$IFS
18768      IFS=';'
18769      for lt_path in $LIB
18770      do
18771        IFS=$lt_save_ifs
18772        # Let DOS variable expansion print the short 8.3 style file name.
18773        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18774        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18775      done
18776      IFS=$lt_save_ifs
18777      # Convert to MSYS style.
18778      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18779      ;;
18780    cygwin*)
18781      # Convert to unix form, then to dos form, then back to unix form
18782      # but this time dos style (no spaces!) so that the unix form looks
18783      # like /cygdrive/c/PROGRA~1:/cygdr...
18784      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18785      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18786      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18787      ;;
18788    *)
18789      sys_lib_search_path_spec=$LIB
18790      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18791        # It is most probably a Windows format PATH.
18792        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18793      else
18794        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18795      fi
18796      # FIXME: find the short name or the path components, as spaces are
18797      # common. (e.g. "Program Files" -> "PROGRA~1")
18798      ;;
18799    esac
18800
18801    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18802    postinstall_cmds='base_file=`basename \$file`~
18803      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18804      dldir=$destdir/`dirname \$dlpath`~
18805      test -d \$dldir || mkdir -p \$dldir~
18806      $install_prog $dir/$dlname \$dldir/$dlname'
18807    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18808      dlpath=$dir/\$dldll~
18809       $RM \$dlpath'
18810    shlibpath_overrides_runpath=yes
18811    dynamic_linker='Win32 link.exe'
18812    ;;
18813
18814  *)
18815    # Assume MSVC and ICC wrapper
18816    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18817    dynamic_linker='Win32 ld.exe'
18818    ;;
18819  esac
18820  # FIXME: first we should search . and the directory the executable is in
18821  shlibpath_var=PATH
18822  ;;
18823
18824darwin* | rhapsody*)
18825  dynamic_linker="$host_os dyld"
18826  version_type=darwin
18827  need_lib_prefix=no
18828  need_version=no
18829  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18830  soname_spec='$libname$release$major$shared_ext'
18831  shlibpath_overrides_runpath=yes
18832  shlibpath_var=DYLD_LIBRARY_PATH
18833  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18834
18835  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18836  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18837  ;;
18838
18839dgux*)
18840  version_type=linux # correct to gnu/linux during the next big refactor
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  ;;
18847
18848freebsd* | dragonfly* | midnightbsd*)
18849  # DragonFly does not have aout.  When/if they implement a new
18850  # versioning mechanism, adjust this.
18851  if test -x /usr/bin/objformat; then
18852    objformat=`/usr/bin/objformat`
18853  else
18854    case $host_os in
18855    freebsd[23].*) objformat=aout ;;
18856    *) objformat=elf ;;
18857    esac
18858  fi
18859  version_type=freebsd-$objformat
18860  case $version_type in
18861    freebsd-elf*)
18862      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18863      soname_spec='$libname$release$shared_ext$major'
18864      need_version=no
18865      need_lib_prefix=no
18866      ;;
18867    freebsd-*)
18868      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18869      need_version=yes
18870      ;;
18871  esac
18872  shlibpath_var=LD_LIBRARY_PATH
18873  case $host_os in
18874  freebsd2.*)
18875    shlibpath_overrides_runpath=yes
18876    ;;
18877  freebsd3.[01]* | freebsdelf3.[01]*)
18878    shlibpath_overrides_runpath=yes
18879    hardcode_into_libs=yes
18880    ;;
18881  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18882  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18883    shlibpath_overrides_runpath=no
18884    hardcode_into_libs=yes
18885    ;;
18886  *) # from 4.6 on, and DragonFly
18887    shlibpath_overrides_runpath=yes
18888    hardcode_into_libs=yes
18889    ;;
18890  esac
18891  ;;
18892
18893haiku*)
18894  version_type=linux # correct to gnu/linux during the next big refactor
18895  need_lib_prefix=no
18896  need_version=no
18897  dynamic_linker="$host_os runtime_loader"
18898  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18899  soname_spec='$libname$release$shared_ext$major'
18900  shlibpath_var=LIBRARY_PATH
18901  shlibpath_overrides_runpath=no
18902  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18903  hardcode_into_libs=yes
18904  ;;
18905
18906hpux9* | hpux10* | hpux11*)
18907  # Give a soname corresponding to the major version so that dld.sl refuses to
18908  # link against other versions.
18909  version_type=sunos
18910  need_lib_prefix=no
18911  need_version=no
18912  case $host_cpu in
18913  ia64*)
18914    shrext_cmds='.so'
18915    hardcode_into_libs=yes
18916    dynamic_linker="$host_os dld.so"
18917    shlibpath_var=LD_LIBRARY_PATH
18918    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18919    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18920    soname_spec='$libname$release$shared_ext$major'
18921    if test 32 = "$HPUX_IA64_MODE"; then
18922      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18923      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18924    else
18925      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18926      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18927    fi
18928    ;;
18929  hppa*64*)
18930    shrext_cmds='.sl'
18931    hardcode_into_libs=yes
18932    dynamic_linker="$host_os dld.sl"
18933    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18934    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18935    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18936    soname_spec='$libname$release$shared_ext$major'
18937    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18938    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18939    ;;
18940  *)
18941    shrext_cmds='.sl'
18942    dynamic_linker="$host_os dld.sl"
18943    shlibpath_var=SHLIB_PATH
18944    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18945    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18946    soname_spec='$libname$release$shared_ext$major'
18947    ;;
18948  esac
18949  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18950  postinstall_cmds='chmod 555 $lib'
18951  # or fails outright, so override atomically:
18952  install_override_mode=555
18953  ;;
18954
18955interix[3-9]*)
18956  version_type=linux # correct to gnu/linux during the next big refactor
18957  need_lib_prefix=no
18958  need_version=no
18959  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18960  soname_spec='$libname$release$shared_ext$major'
18961  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18962  shlibpath_var=LD_LIBRARY_PATH
18963  shlibpath_overrides_runpath=no
18964  hardcode_into_libs=yes
18965  ;;
18966
18967irix5* | irix6* | nonstopux*)
18968  case $host_os in
18969    nonstopux*) version_type=nonstopux ;;
18970    *)
18971	if test yes = "$lt_cv_prog_gnu_ld"; then
18972		version_type=linux # correct to gnu/linux during the next big refactor
18973	else
18974		version_type=irix
18975	fi ;;
18976  esac
18977  need_lib_prefix=no
18978  need_version=no
18979  soname_spec='$libname$release$shared_ext$major'
18980  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18981  case $host_os in
18982  irix5* | nonstopux*)
18983    libsuff= shlibsuff=
18984    ;;
18985  *)
18986    case $LD in # libtool.m4 will add one of these switches to LD
18987    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18988      libsuff= shlibsuff= libmagic=32-bit;;
18989    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18990      libsuff=32 shlibsuff=N32 libmagic=N32;;
18991    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18992      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18993    *) libsuff= shlibsuff= libmagic=never-match;;
18994    esac
18995    ;;
18996  esac
18997  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18998  shlibpath_overrides_runpath=no
18999  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19000  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19001  hardcode_into_libs=yes
19002  ;;
19003
19004# No shared lib support for Linux oldld, aout, or coff.
19005linux*oldld* | linux*aout* | linux*coff*)
19006  dynamic_linker=no
19007  ;;
19008
19009linux*android*)
19010  version_type=none # Android doesn't support versioned libraries.
19011  need_lib_prefix=no
19012  need_version=no
19013  library_names_spec='$libname$release$shared_ext'
19014  soname_spec='$libname$release$shared_ext'
19015  finish_cmds=
19016  shlibpath_var=LD_LIBRARY_PATH
19017  shlibpath_overrides_runpath=yes
19018
19019  # This implies no fast_install, which is unacceptable.
19020  # Some rework will be needed to allow for fast_install
19021  # before this can be enabled.
19022  hardcode_into_libs=yes
19023
19024  dynamic_linker='Android linker'
19025  # Don't embed -rpath directories since the linker doesn't support them.
19026  hardcode_libdir_flag_spec='-L$libdir'
19027  ;;
19028
19029# This must be glibc/ELF.
19030linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19031  version_type=linux # correct to gnu/linux during the next big refactor
19032  need_lib_prefix=no
19033  need_version=no
19034  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19035  soname_spec='$libname$release$shared_ext$major'
19036  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19037  shlibpath_var=LD_LIBRARY_PATH
19038  shlibpath_overrides_runpath=no
19039
19040  # Some binutils ld are patched to set DT_RUNPATH
19041  if test ${lt_cv_shlibpath_overrides_runpath+y}
19042then :
19043  printf %s "(cached) " >&6
19044else case e in #(
19045  e) lt_cv_shlibpath_overrides_runpath=no
19046    save_LDFLAGS=$LDFLAGS
19047    save_libdir=$libdir
19048    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19049	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19050    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051/* end confdefs.h.  */
19052
19053int
19054main (void)
19055{
19056
19057  ;
19058  return 0;
19059}
19060_ACEOF
19061if ac_fn_c_try_link "$LINENO"
19062then :
19063  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19064then :
19065  lt_cv_shlibpath_overrides_runpath=yes
19066fi
19067fi
19068rm -f core conftest.err conftest.$ac_objext conftest.beam \
19069    conftest$ac_exeext conftest.$ac_ext
19070    LDFLAGS=$save_LDFLAGS
19071    libdir=$save_libdir
19072     ;;
19073esac
19074fi
19075
19076  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19077
19078  # This implies no fast_install, which is unacceptable.
19079  # Some rework will be needed to allow for fast_install
19080  # before this can be enabled.
19081  hardcode_into_libs=yes
19082
19083  # Ideally, we could use ldconfig to report *all* directores which are
19084  # searched for libraries, however this is still not possible.  Aside from not
19085  # being certain /sbin/ldconfig is available, command
19086  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19087  # even though it is searched at run-time.  Try to do the best guess by
19088  # appending ld.so.conf contents (and includes) to the search path.
19089  if test -f /etc/ld.so.conf; then
19090    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' ' '`
19091    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19092  fi
19093
19094  # We used to test for /lib/ld.so.1 and disable shared libraries on
19095  # powerpc, because MkLinux only supported shared libraries with the
19096  # GNU dynamic linker.  Since this was broken with cross compilers,
19097  # most powerpc-linux boxes support dynamic linking these days and
19098  # people can always --disable-shared, the test was removed, and we
19099  # assume the GNU/Linux dynamic linker is in use.
19100  dynamic_linker='GNU/Linux ld.so'
19101  ;;
19102
19103netbsd*)
19104  version_type=sunos
19105  need_lib_prefix=no
19106  need_version=no
19107  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19108    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19109    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19110    dynamic_linker='NetBSD (a.out) ld.so'
19111  else
19112    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19113    soname_spec='$libname$release$shared_ext$major'
19114    dynamic_linker='NetBSD ld.elf_so'
19115  fi
19116  shlibpath_var=LD_LIBRARY_PATH
19117  shlibpath_overrides_runpath=yes
19118  hardcode_into_libs=yes
19119  ;;
19120
19121newsos6)
19122  version_type=linux # correct to gnu/linux during the next big refactor
19123  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19124  shlibpath_var=LD_LIBRARY_PATH
19125  shlibpath_overrides_runpath=yes
19126  ;;
19127
19128*nto* | *qnx*)
19129  version_type=qnx
19130  need_lib_prefix=no
19131  need_version=no
19132  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19133  soname_spec='$libname$release$shared_ext$major'
19134  shlibpath_var=LD_LIBRARY_PATH
19135  shlibpath_overrides_runpath=no
19136  hardcode_into_libs=yes
19137  dynamic_linker='ldqnx.so'
19138  ;;
19139
19140openbsd* | bitrig*)
19141  version_type=sunos
19142  sys_lib_dlsearch_path_spec=/usr/lib
19143  need_lib_prefix=no
19144  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19145    need_version=no
19146  else
19147    need_version=yes
19148  fi
19149  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19150  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19151  shlibpath_var=LD_LIBRARY_PATH
19152  shlibpath_overrides_runpath=yes
19153  ;;
19154
19155os2*)
19156  libname_spec='$name'
19157  version_type=windows
19158  shrext_cmds=.dll
19159  need_version=no
19160  need_lib_prefix=no
19161  # OS/2 can only load a DLL with a base name of 8 characters or less.
19162  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19163    v=$($ECHO $release$versuffix | tr -d .-);
19164    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19165    $ECHO $n$v`$shared_ext'
19166  library_names_spec='${libname}_dll.$libext'
19167  dynamic_linker='OS/2 ld.exe'
19168  shlibpath_var=BEGINLIBPATH
19169  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19170  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19171  postinstall_cmds='base_file=`basename \$file`~
19172    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19173    dldir=$destdir/`dirname \$dlpath`~
19174    test -d \$dldir || mkdir -p \$dldir~
19175    $install_prog $dir/$dlname \$dldir/$dlname~
19176    chmod a+x \$dldir/$dlname~
19177    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19178      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19179    fi'
19180  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19181    dlpath=$dir/\$dldll~
19182    $RM \$dlpath'
19183  ;;
19184
19185osf3* | osf4* | osf5*)
19186  version_type=osf
19187  need_lib_prefix=no
19188  need_version=no
19189  soname_spec='$libname$release$shared_ext$major'
19190  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19191  shlibpath_var=LD_LIBRARY_PATH
19192  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19193  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19194  ;;
19195
19196rdos*)
19197  dynamic_linker=no
19198  ;;
19199
19200solaris*)
19201  version_type=linux # correct to gnu/linux during the next big refactor
19202  need_lib_prefix=no
19203  need_version=no
19204  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19205  soname_spec='$libname$release$shared_ext$major'
19206  shlibpath_var=LD_LIBRARY_PATH
19207  shlibpath_overrides_runpath=yes
19208  hardcode_into_libs=yes
19209  # ldd complains unless libraries are executable
19210  postinstall_cmds='chmod +x $lib'
19211  ;;
19212
19213sunos4*)
19214  version_type=sunos
19215  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19216  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19217  shlibpath_var=LD_LIBRARY_PATH
19218  shlibpath_overrides_runpath=yes
19219  if test yes = "$with_gnu_ld"; then
19220    need_lib_prefix=no
19221  fi
19222  need_version=yes
19223  ;;
19224
19225sysv4 | sysv4.3*)
19226  version_type=linux # correct to gnu/linux during the next big refactor
19227  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19228  soname_spec='$libname$release$shared_ext$major'
19229  shlibpath_var=LD_LIBRARY_PATH
19230  case $host_vendor in
19231    sni)
19232      shlibpath_overrides_runpath=no
19233      need_lib_prefix=no
19234      runpath_var=LD_RUN_PATH
19235      ;;
19236    siemens)
19237      need_lib_prefix=no
19238      ;;
19239    motorola)
19240      need_lib_prefix=no
19241      need_version=no
19242      shlibpath_overrides_runpath=no
19243      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19244      ;;
19245  esac
19246  ;;
19247
19248sysv4*MP*)
19249  if test -d /usr/nec; then
19250    version_type=linux # correct to gnu/linux during the next big refactor
19251    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19252    soname_spec='$libname$shared_ext.$major'
19253    shlibpath_var=LD_LIBRARY_PATH
19254  fi
19255  ;;
19256
19257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19258  version_type=sco
19259  need_lib_prefix=no
19260  need_version=no
19261  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19262  soname_spec='$libname$release$shared_ext$major'
19263  shlibpath_var=LD_LIBRARY_PATH
19264  shlibpath_overrides_runpath=yes
19265  hardcode_into_libs=yes
19266  if test yes = "$with_gnu_ld"; then
19267    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19268  else
19269    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19270    case $host_os in
19271      sco3.2v5*)
19272        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19273	;;
19274    esac
19275  fi
19276  sys_lib_dlsearch_path_spec='/usr/lib'
19277  ;;
19278
19279tpf*)
19280  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19281  version_type=linux # correct to gnu/linux during the next big refactor
19282  need_lib_prefix=no
19283  need_version=no
19284  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19285  shlibpath_var=LD_LIBRARY_PATH
19286  shlibpath_overrides_runpath=no
19287  hardcode_into_libs=yes
19288  ;;
19289
19290uts4*)
19291  version_type=linux # correct to gnu/linux during the next big refactor
19292  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19293  soname_spec='$libname$release$shared_ext$major'
19294  shlibpath_var=LD_LIBRARY_PATH
19295  ;;
19296
19297*)
19298  dynamic_linker=no
19299  ;;
19300esac
19301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19302printf "%s\n" "$dynamic_linker" >&6; }
19303test no = "$dynamic_linker" && can_build_shared=no
19304
19305variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19306if test yes = "$GCC"; then
19307  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19308fi
19309
19310if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19311  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19312fi
19313
19314if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19315  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19316fi
19317
19318# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19319configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19320
19321# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19322func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19323
19324# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19325configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19424printf %s "checking how to hardcode library paths into programs... " >&6; }
19425hardcode_action=
19426if test -n "$hardcode_libdir_flag_spec" ||
19427   test -n "$runpath_var" ||
19428   test yes = "$hardcode_automatic"; then
19429
19430  # We can hardcode non-existent directories.
19431  if test no != "$hardcode_direct" &&
19432     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19433     # have to relink, otherwise we might link with an installed library
19434     # when we should be linking with a yet-to-be-installed one
19435     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19436     test no != "$hardcode_minus_L"; then
19437    # Linking always hardcodes the temporary library directory.
19438    hardcode_action=relink
19439  else
19440    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19441    hardcode_action=immediate
19442  fi
19443else
19444  # We cannot hardcode anything, or else we can only hardcode existing
19445  # directories.
19446  hardcode_action=unsupported
19447fi
19448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19449printf "%s\n" "$hardcode_action" >&6; }
19450
19451if test relink = "$hardcode_action" ||
19452   test yes = "$inherit_rpath"; then
19453  # Fast installation is not supported
19454  enable_fast_install=no
19455elif test yes = "$shlibpath_overrides_runpath" ||
19456     test no = "$enable_shared"; then
19457  # Fast installation is not necessary
19458  enable_fast_install=needless
19459fi
19460
19461
19462
19463
19464
19465
19466  if test yes != "$enable_dlopen"; then
19467  enable_dlopen=unknown
19468  enable_dlopen_self=unknown
19469  enable_dlopen_self_static=unknown
19470else
19471  lt_cv_dlopen=no
19472  lt_cv_dlopen_libs=
19473
19474  case $host_os in
19475  beos*)
19476    lt_cv_dlopen=load_add_on
19477    lt_cv_dlopen_libs=
19478    lt_cv_dlopen_self=yes
19479    ;;
19480
19481  mingw* | pw32* | cegcc*)
19482    lt_cv_dlopen=LoadLibrary
19483    lt_cv_dlopen_libs=
19484    ;;
19485
19486  cygwin*)
19487    lt_cv_dlopen=dlopen
19488    lt_cv_dlopen_libs=
19489    ;;
19490
19491  darwin*)
19492    # if libdl is installed we need to link against it
19493    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19494printf %s "checking for dlopen in -ldl... " >&6; }
19495if test ${ac_cv_lib_dl_dlopen+y}
19496then :
19497  printf %s "(cached) " >&6
19498else case e in #(
19499  e) ac_check_lib_save_LIBS=$LIBS
19500LIBS="-ldl  $LIBS"
19501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502/* end confdefs.h.  */
19503
19504/* Override any GCC internal prototype to avoid an error.
19505   Use char because int might match the return type of a GCC
19506   builtin and then its argument prototype would still apply.
19507   The 'extern "C"' is for builds by C++ compilers;
19508   although this is not generally supported in C code supporting it here
19509   has little cost and some practical benefit (sr 110532).  */
19510#ifdef __cplusplus
19511extern "C"
19512#endif
19513char dlopen (void);
19514int
19515main (void)
19516{
19517return dlopen ();
19518  ;
19519  return 0;
19520}
19521_ACEOF
19522if ac_fn_c_try_link "$LINENO"
19523then :
19524  ac_cv_lib_dl_dlopen=yes
19525else case e in #(
19526  e) ac_cv_lib_dl_dlopen=no ;;
19527esac
19528fi
19529rm -f core conftest.err conftest.$ac_objext conftest.beam \
19530    conftest$ac_exeext conftest.$ac_ext
19531LIBS=$ac_check_lib_save_LIBS ;;
19532esac
19533fi
19534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19535printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19536if test "x$ac_cv_lib_dl_dlopen" = xyes
19537then :
19538  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19539else case e in #(
19540  e)
19541    lt_cv_dlopen=dyld
19542    lt_cv_dlopen_libs=
19543    lt_cv_dlopen_self=yes
19544     ;;
19545esac
19546fi
19547
19548    ;;
19549
19550  tpf*)
19551    # Don't try to run any link tests for TPF.  We know it's impossible
19552    # because TPF is a cross-compiler, and we know how we open DSOs.
19553    lt_cv_dlopen=dlopen
19554    lt_cv_dlopen_libs=
19555    lt_cv_dlopen_self=no
19556    ;;
19557
19558  *)
19559    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19560if test "x$ac_cv_func_shl_load" = xyes
19561then :
19562  lt_cv_dlopen=shl_load
19563else case e in #(
19564  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19565printf %s "checking for shl_load in -ldld... " >&6; }
19566if test ${ac_cv_lib_dld_shl_load+y}
19567then :
19568  printf %s "(cached) " >&6
19569else case e in #(
19570  e) ac_check_lib_save_LIBS=$LIBS
19571LIBS="-ldld  $LIBS"
19572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19573/* end confdefs.h.  */
19574
19575/* Override any GCC internal prototype to avoid an error.
19576   Use char because int might match the return type of a GCC
19577   builtin and then its argument prototype would still apply.
19578   The 'extern "C"' is for builds by C++ compilers;
19579   although this is not generally supported in C code supporting it here
19580   has little cost and some practical benefit (sr 110532).  */
19581#ifdef __cplusplus
19582extern "C"
19583#endif
19584char shl_load (void);
19585int
19586main (void)
19587{
19588return shl_load ();
19589  ;
19590  return 0;
19591}
19592_ACEOF
19593if ac_fn_c_try_link "$LINENO"
19594then :
19595  ac_cv_lib_dld_shl_load=yes
19596else case e in #(
19597  e) ac_cv_lib_dld_shl_load=no ;;
19598esac
19599fi
19600rm -f core conftest.err conftest.$ac_objext conftest.beam \
19601    conftest$ac_exeext conftest.$ac_ext
19602LIBS=$ac_check_lib_save_LIBS ;;
19603esac
19604fi
19605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19606printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19607if test "x$ac_cv_lib_dld_shl_load" = xyes
19608then :
19609  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19610else case e in #(
19611  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19612if test "x$ac_cv_func_dlopen" = xyes
19613then :
19614  lt_cv_dlopen=dlopen
19615else case e in #(
19616  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19617printf %s "checking for dlopen in -ldl... " >&6; }
19618if test ${ac_cv_lib_dl_dlopen+y}
19619then :
19620  printf %s "(cached) " >&6
19621else case e in #(
19622  e) ac_check_lib_save_LIBS=$LIBS
19623LIBS="-ldl  $LIBS"
19624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625/* end confdefs.h.  */
19626
19627/* Override any GCC internal prototype to avoid an error.
19628   Use char because int might match the return type of a GCC
19629   builtin and then its argument prototype would still apply.
19630   The 'extern "C"' is for builds by C++ compilers;
19631   although this is not generally supported in C code supporting it here
19632   has little cost and some practical benefit (sr 110532).  */
19633#ifdef __cplusplus
19634extern "C"
19635#endif
19636char dlopen (void);
19637int
19638main (void)
19639{
19640return dlopen ();
19641  ;
19642  return 0;
19643}
19644_ACEOF
19645if ac_fn_c_try_link "$LINENO"
19646then :
19647  ac_cv_lib_dl_dlopen=yes
19648else case e in #(
19649  e) ac_cv_lib_dl_dlopen=no ;;
19650esac
19651fi
19652rm -f core conftest.err conftest.$ac_objext conftest.beam \
19653    conftest$ac_exeext conftest.$ac_ext
19654LIBS=$ac_check_lib_save_LIBS ;;
19655esac
19656fi
19657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19658printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19659if test "x$ac_cv_lib_dl_dlopen" = xyes
19660then :
19661  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19662else case e in #(
19663  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19664printf %s "checking for dlopen in -lsvld... " >&6; }
19665if test ${ac_cv_lib_svld_dlopen+y}
19666then :
19667  printf %s "(cached) " >&6
19668else case e in #(
19669  e) ac_check_lib_save_LIBS=$LIBS
19670LIBS="-lsvld  $LIBS"
19671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672/* end confdefs.h.  */
19673
19674/* Override any GCC internal prototype to avoid an error.
19675   Use char because int might match the return type of a GCC
19676   builtin and then its argument prototype would still apply.
19677   The 'extern "C"' is for builds by C++ compilers;
19678   although this is not generally supported in C code supporting it here
19679   has little cost and some practical benefit (sr 110532).  */
19680#ifdef __cplusplus
19681extern "C"
19682#endif
19683char dlopen (void);
19684int
19685main (void)
19686{
19687return dlopen ();
19688  ;
19689  return 0;
19690}
19691_ACEOF
19692if ac_fn_c_try_link "$LINENO"
19693then :
19694  ac_cv_lib_svld_dlopen=yes
19695else case e in #(
19696  e) ac_cv_lib_svld_dlopen=no ;;
19697esac
19698fi
19699rm -f core conftest.err conftest.$ac_objext conftest.beam \
19700    conftest$ac_exeext conftest.$ac_ext
19701LIBS=$ac_check_lib_save_LIBS ;;
19702esac
19703fi
19704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19705printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19706if test "x$ac_cv_lib_svld_dlopen" = xyes
19707then :
19708  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19709else case e in #(
19710  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19711printf %s "checking for dld_link in -ldld... " >&6; }
19712if test ${ac_cv_lib_dld_dld_link+y}
19713then :
19714  printf %s "(cached) " >&6
19715else case e in #(
19716  e) ac_check_lib_save_LIBS=$LIBS
19717LIBS="-ldld  $LIBS"
19718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19719/* end confdefs.h.  */
19720
19721/* Override any GCC internal prototype to avoid an error.
19722   Use char because int might match the return type of a GCC
19723   builtin and then its argument prototype would still apply.
19724   The 'extern "C"' is for builds by C++ compilers;
19725   although this is not generally supported in C code supporting it here
19726   has little cost and some practical benefit (sr 110532).  */
19727#ifdef __cplusplus
19728extern "C"
19729#endif
19730char dld_link (void);
19731int
19732main (void)
19733{
19734return dld_link ();
19735  ;
19736  return 0;
19737}
19738_ACEOF
19739if ac_fn_c_try_link "$LINENO"
19740then :
19741  ac_cv_lib_dld_dld_link=yes
19742else case e in #(
19743  e) ac_cv_lib_dld_dld_link=no ;;
19744esac
19745fi
19746rm -f core conftest.err conftest.$ac_objext conftest.beam \
19747    conftest$ac_exeext conftest.$ac_ext
19748LIBS=$ac_check_lib_save_LIBS ;;
19749esac
19750fi
19751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19752printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19753if test "x$ac_cv_lib_dld_dld_link" = xyes
19754then :
19755  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19756fi
19757
19758	       ;;
19759esac
19760fi
19761
19762	     ;;
19763esac
19764fi
19765
19766	   ;;
19767esac
19768fi
19769
19770	 ;;
19771esac
19772fi
19773
19774       ;;
19775esac
19776fi
19777
19778    ;;
19779  esac
19780
19781  if test no = "$lt_cv_dlopen"; then
19782    enable_dlopen=no
19783  else
19784    enable_dlopen=yes
19785  fi
19786
19787  case $lt_cv_dlopen in
19788  dlopen)
19789    save_CPPFLAGS=$CPPFLAGS
19790    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19791
19792    save_LDFLAGS=$LDFLAGS
19793    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19794
19795    save_LIBS=$LIBS
19796    LIBS="$lt_cv_dlopen_libs $LIBS"
19797
19798    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19799printf %s "checking whether a program can dlopen itself... " >&6; }
19800if test ${lt_cv_dlopen_self+y}
19801then :
19802  printf %s "(cached) " >&6
19803else case e in #(
19804  e) 	  if test yes = "$cross_compiling"; then :
19805  lt_cv_dlopen_self=cross
19806else
19807  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19808  lt_status=$lt_dlunknown
19809  cat > conftest.$ac_ext <<_LT_EOF
19810#line $LINENO "configure"
19811#include "confdefs.h"
19812
19813#if HAVE_DLFCN_H
19814#include <dlfcn.h>
19815#endif
19816
19817#include <stdio.h>
19818
19819#ifdef RTLD_GLOBAL
19820#  define LT_DLGLOBAL		RTLD_GLOBAL
19821#else
19822#  ifdef DL_GLOBAL
19823#    define LT_DLGLOBAL		DL_GLOBAL
19824#  else
19825#    define LT_DLGLOBAL		0
19826#  endif
19827#endif
19828
19829/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19830   find out it does not work in some platform. */
19831#ifndef LT_DLLAZY_OR_NOW
19832#  ifdef RTLD_LAZY
19833#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19834#  else
19835#    ifdef DL_LAZY
19836#      define LT_DLLAZY_OR_NOW		DL_LAZY
19837#    else
19838#      ifdef RTLD_NOW
19839#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19840#      else
19841#        ifdef DL_NOW
19842#          define LT_DLLAZY_OR_NOW	DL_NOW
19843#        else
19844#          define LT_DLLAZY_OR_NOW	0
19845#        endif
19846#      endif
19847#    endif
19848#  endif
19849#endif
19850
19851/* When -fvisibility=hidden is used, assume the code has been annotated
19852   correspondingly for the symbols needed.  */
19853#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19854int fnord () __attribute__((visibility("default")));
19855#endif
19856
19857int fnord () { return 42; }
19858int main ()
19859{
19860  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19861  int status = $lt_dlunknown;
19862
19863  if (self)
19864    {
19865      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19866      else
19867        {
19868	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19869          else puts (dlerror ());
19870	}
19871      /* dlclose (self); */
19872    }
19873  else
19874    puts (dlerror ());
19875
19876  return status;
19877}
19878_LT_EOF
19879  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19880  (eval $ac_link) 2>&5
19881  ac_status=$?
19882  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19883  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19884    (./conftest; exit; ) >&5 2>/dev/null
19885    lt_status=$?
19886    case x$lt_status in
19887      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19888      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19889      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19890    esac
19891  else :
19892    # compilation failed
19893    lt_cv_dlopen_self=no
19894  fi
19895fi
19896rm -fr conftest*
19897
19898     ;;
19899esac
19900fi
19901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19902printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19903
19904    if test yes = "$lt_cv_dlopen_self"; then
19905      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19906      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19907printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19908if test ${lt_cv_dlopen_self_static+y}
19909then :
19910  printf %s "(cached) " >&6
19911else case e in #(
19912  e) 	  if test yes = "$cross_compiling"; then :
19913  lt_cv_dlopen_self_static=cross
19914else
19915  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19916  lt_status=$lt_dlunknown
19917  cat > conftest.$ac_ext <<_LT_EOF
19918#line $LINENO "configure"
19919#include "confdefs.h"
19920
19921#if HAVE_DLFCN_H
19922#include <dlfcn.h>
19923#endif
19924
19925#include <stdio.h>
19926
19927#ifdef RTLD_GLOBAL
19928#  define LT_DLGLOBAL		RTLD_GLOBAL
19929#else
19930#  ifdef DL_GLOBAL
19931#    define LT_DLGLOBAL		DL_GLOBAL
19932#  else
19933#    define LT_DLGLOBAL		0
19934#  endif
19935#endif
19936
19937/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19938   find out it does not work in some platform. */
19939#ifndef LT_DLLAZY_OR_NOW
19940#  ifdef RTLD_LAZY
19941#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19942#  else
19943#    ifdef DL_LAZY
19944#      define LT_DLLAZY_OR_NOW		DL_LAZY
19945#    else
19946#      ifdef RTLD_NOW
19947#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19948#      else
19949#        ifdef DL_NOW
19950#          define LT_DLLAZY_OR_NOW	DL_NOW
19951#        else
19952#          define LT_DLLAZY_OR_NOW	0
19953#        endif
19954#      endif
19955#    endif
19956#  endif
19957#endif
19958
19959/* When -fvisibility=hidden is used, assume the code has been annotated
19960   correspondingly for the symbols needed.  */
19961#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19962int fnord () __attribute__((visibility("default")));
19963#endif
19964
19965int fnord () { return 42; }
19966int main ()
19967{
19968  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19969  int status = $lt_dlunknown;
19970
19971  if (self)
19972    {
19973      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19974      else
19975        {
19976	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19977          else puts (dlerror ());
19978	}
19979      /* dlclose (self); */
19980    }
19981  else
19982    puts (dlerror ());
19983
19984  return status;
19985}
19986_LT_EOF
19987  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19988  (eval $ac_link) 2>&5
19989  ac_status=$?
19990  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19991  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19992    (./conftest; exit; ) >&5 2>/dev/null
19993    lt_status=$?
19994    case x$lt_status in
19995      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19996      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19997      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19998    esac
19999  else :
20000    # compilation failed
20001    lt_cv_dlopen_self_static=no
20002  fi
20003fi
20004rm -fr conftest*
20005
20006       ;;
20007esac
20008fi
20009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20010printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
20011    fi
20012
20013    CPPFLAGS=$save_CPPFLAGS
20014    LDFLAGS=$save_LDFLAGS
20015    LIBS=$save_LIBS
20016    ;;
20017  esac
20018
20019  case $lt_cv_dlopen_self in
20020  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20021  *) enable_dlopen_self=unknown ;;
20022  esac
20023
20024  case $lt_cv_dlopen_self_static in
20025  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20026  *) enable_dlopen_self_static=unknown ;;
20027  esac
20028fi
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046striplib=
20047old_striplib=
20048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20049printf %s "checking whether stripping libraries is possible... " >&6; }
20050if test -z "$STRIP"; then
20051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20052printf "%s\n" "no" >&6; }
20053else
20054  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20055    old_striplib="$STRIP --strip-debug"
20056    striplib="$STRIP --strip-unneeded"
20057    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20058printf "%s\n" "yes" >&6; }
20059  else
20060    case $host_os in
20061    darwin*)
20062      # FIXME - insert some real tests, host_os isn't really good enough
20063      striplib="$STRIP -x"
20064      old_striplib="$STRIP -S"
20065      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20066printf "%s\n" "yes" >&6; }
20067      ;;
20068    freebsd*)
20069      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
20070        old_striplib="$STRIP --strip-debug"
20071        striplib="$STRIP --strip-unneeded"
20072        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20073printf "%s\n" "yes" >&6; }
20074      else
20075        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20076printf "%s\n" "no" >&6; }
20077      fi
20078      ;;
20079    *)
20080      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081printf "%s\n" "no" >&6; }
20082      ;;
20083    esac
20084  fi
20085fi
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098  # Report what library types will actually be built
20099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20100printf %s "checking if libtool supports shared libraries... " >&6; }
20101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20102printf "%s\n" "$can_build_shared" >&6; }
20103
20104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20105printf %s "checking whether to build shared libraries... " >&6; }
20106  test no = "$can_build_shared" && enable_shared=no
20107
20108  # On AIX, shared libraries and static libraries use the same namespace, and
20109  # are all built from PIC.
20110  case $host_os in
20111  aix3*)
20112    test yes = "$enable_shared" && enable_static=no
20113    if test -n "$RANLIB"; then
20114      archive_cmds="$archive_cmds~\$RANLIB \$lib"
20115      postinstall_cmds='$RANLIB $lib'
20116    fi
20117    ;;
20118
20119  aix[4-9]*)
20120    if test ia64 != "$host_cpu"; then
20121      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
20122      yes,aix,yes) ;;			# shared object as lib.so file only
20123      yes,svr4,*) ;;			# shared object as lib.so archive member only
20124      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
20125      esac
20126    fi
20127    ;;
20128  esac
20129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20130printf "%s\n" "$enable_shared" >&6; }
20131
20132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20133printf %s "checking whether to build static libraries... " >&6; }
20134  # Make sure either enable_shared or enable_static is yes.
20135  test yes = "$enable_shared" || enable_static=yes
20136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20137printf "%s\n" "$enable_static" >&6; }
20138
20139
20140
20141
20142fi
20143ac_ext=c
20144ac_cpp='$CPP $CPPFLAGS'
20145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20147ac_compiler_gnu=$ac_cv_c_compiler_gnu
20148
20149CC=$lt_save_CC
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165        ac_config_commands="$ac_config_commands libtool"
20166
20167
20168
20169
20170# Only expand once:
20171
20172
20173
20174
20175
20176# Define a configure option for an alternate module directory
20177
20178# Check whether --with-xorg-module-dir was given.
20179if test ${with_xorg_module_dir+y}
20180then :
20181  withval=$with_xorg_module_dir;  moduledir="$withval"
20182else case e in #(
20183  e)  moduledir="$libdir/xorg/modules"  ;;
20184esac
20185fi
20186
20187
20188
20189# Store the list of server defined optional extensions in REQUIRED_MODULES
20190
20191
20192	SAVE_CFLAGS="$CFLAGS"
20193	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
20194	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195/* end confdefs.h.  */
20196
20197#include "xorg-server.h"
20198#if !defined RANDR
20199#error RANDR not defined
20200#endif
20201
20202int
20203main (void)
20204{
20205
20206  ;
20207  return 0;
20208}
20209_ACEOF
20210if ac_fn_c_try_compile "$LINENO"
20211then :
20212  _EXT_CHECK=yes
20213else case e in #(
20214  e) _EXT_CHECK=no ;;
20215esac
20216fi
20217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20218	CFLAGS="$SAVE_CFLAGS"
20219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
20220printf %s "checking if RANDR is defined... " >&6; }
20221	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20222printf "%s\n" "$_EXT_CHECK" >&6; }
20223	if test "$_EXT_CHECK" != no; then
20224		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20225	fi
20226
20227
20228
20229	SAVE_CFLAGS="$CFLAGS"
20230	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
20231	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232/* end confdefs.h.  */
20233
20234#include "xorg-server.h"
20235#if !defined RENDER
20236#error RENDER not defined
20237#endif
20238
20239int
20240main (void)
20241{
20242
20243  ;
20244  return 0;
20245}
20246_ACEOF
20247if ac_fn_c_try_compile "$LINENO"
20248then :
20249  _EXT_CHECK=yes
20250else case e in #(
20251  e) _EXT_CHECK=no ;;
20252esac
20253fi
20254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20255	CFLAGS="$SAVE_CFLAGS"
20256	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
20257printf %s "checking if RENDER is defined... " >&6; }
20258	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20259printf "%s\n" "$_EXT_CHECK" >&6; }
20260	if test "$_EXT_CHECK" != no; then
20261		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20262	fi
20263
20264
20265
20266	SAVE_CFLAGS="$CFLAGS"
20267	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
20268	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269/* end confdefs.h.  */
20270
20271#include "xorg-server.h"
20272#if !defined DPMSExtension
20273#error DPMSExtension not defined
20274#endif
20275
20276int
20277main (void)
20278{
20279
20280  ;
20281  return 0;
20282}
20283_ACEOF
20284if ac_fn_c_try_compile "$LINENO"
20285then :
20286  _EXT_CHECK=yes
20287else case e in #(
20288  e) _EXT_CHECK=no ;;
20289esac
20290fi
20291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20292	CFLAGS="$SAVE_CFLAGS"
20293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
20294printf %s "checking if DPMSExtension is defined... " >&6; }
20295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20296printf "%s\n" "$_EXT_CHECK" >&6; }
20297	if test "$_EXT_CHECK" != no; then
20298		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20299	fi
20300
20301
20302# Obtain compiler/linker options for the driver dependencies
20303
20304pkg_failed=no
20305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
20306printf %s "checking for XORG... " >&6; }
20307
20308if test -n "$XORG_CFLAGS"; then
20309    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20310 elif test -n "$PKG_CONFIG"; then
20311    if test -n "$PKG_CONFIG" && \
20312    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
20313  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
20314  ac_status=$?
20315  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20316  test $ac_status = 0; }; then
20317  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20318		      test "x$?" != "x0" && pkg_failed=yes
20319else
20320  pkg_failed=yes
20321fi
20322 else
20323    pkg_failed=untried
20324fi
20325if test -n "$XORG_LIBS"; then
20326    pkg_cv_XORG_LIBS="$XORG_LIBS"
20327 elif test -n "$PKG_CONFIG"; then
20328    if test -n "$PKG_CONFIG" && \
20329    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
20330  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
20331  ac_status=$?
20332  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20333  test $ac_status = 0; }; then
20334  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20335		      test "x$?" != "x0" && pkg_failed=yes
20336else
20337  pkg_failed=yes
20338fi
20339 else
20340    pkg_failed=untried
20341fi
20342
20343
20344
20345if test $pkg_failed = yes; then
20346   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20347printf "%s\n" "no" >&6; }
20348
20349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20350        _pkg_short_errors_supported=yes
20351else
20352        _pkg_short_errors_supported=no
20353fi
20354        if test $_pkg_short_errors_supported = yes; then
20355	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20356        else
20357	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20358        fi
20359	# Put the nasty error message in config.log where it belongs
20360	echo "$XORG_PKG_ERRORS" >&5
20361
20362	as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
20363
20364$XORG_PKG_ERRORS
20365
20366Consider adjusting the PKG_CONFIG_PATH environment variable if you
20367installed software in a non-standard prefix.
20368
20369Alternatively, you may set the environment variables XORG_CFLAGS
20370and XORG_LIBS to avoid the need to call pkg-config.
20371See the pkg-config man page for more details." "$LINENO" 5
20372elif test $pkg_failed = untried; then
20373     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20374printf "%s\n" "no" >&6; }
20375	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20376printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20377as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20378is in your PATH or set the PKG_CONFIG environment variable to the full
20379path to pkg-config.
20380
20381Alternatively, you may set the environment variables XORG_CFLAGS
20382and XORG_LIBS to avoid the need to call pkg-config.
20383See the pkg-config man page for more details.
20384
20385To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20386See 'config.log' for more details" "$LINENO" 5; }
20387else
20388	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20389	XORG_LIBS=$pkg_cv_XORG_LIBS
20390        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20391printf "%s\n" "yes" >&6; }
20392
20393fi
20394
20395pkg_failed=no
20396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
20397printf %s "checking for XEXT... " >&6; }
20398
20399if test -n "$XEXT_CFLAGS"; then
20400    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
20401 elif test -n "$PKG_CONFIG"; then
20402    if test -n "$PKG_CONFIG" && \
20403    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20404  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20405  ac_status=$?
20406  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20407  test $ac_status = 0; }; then
20408  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
20409		      test "x$?" != "x0" && pkg_failed=yes
20410else
20411  pkg_failed=yes
20412fi
20413 else
20414    pkg_failed=untried
20415fi
20416if test -n "$XEXT_LIBS"; then
20417    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20418 elif test -n "$PKG_CONFIG"; then
20419    if test -n "$PKG_CONFIG" && \
20420    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20421  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20422  ac_status=$?
20423  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20424  test $ac_status = 0; }; then
20425  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
20426		      test "x$?" != "x0" && pkg_failed=yes
20427else
20428  pkg_failed=yes
20429fi
20430 else
20431    pkg_failed=untried
20432fi
20433
20434
20435
20436if test $pkg_failed = yes; then
20437   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20438printf "%s\n" "no" >&6; }
20439
20440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20441        _pkg_short_errors_supported=yes
20442else
20443        _pkg_short_errors_supported=no
20444fi
20445        if test $_pkg_short_errors_supported = yes; then
20446	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20447        else
20448	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20449        fi
20450	# Put the nasty error message in config.log where it belongs
20451	echo "$XEXT_PKG_ERRORS" >&5
20452
20453	HAVE_XEXTPROTO_71="no"
20454elif test $pkg_failed = untried; then
20455     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20456printf "%s\n" "no" >&6; }
20457	HAVE_XEXTPROTO_71="no"
20458else
20459	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20460	XEXT_LIBS=$pkg_cv_XEXT_LIBS
20461        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20462printf "%s\n" "yes" >&6; }
20463	HAVE_XEXTPROTO_71="yes"
20464fi
20465
20466if test "x$HAVE_XEXTPROTO_71" = xyes; then
20467
20468printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
20469
20470fi
20471
20472save_CFLAGS="$CFLAGS"
20473CFLAGS="$XORG_CFLAGS"
20474ac_fn_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
20475" "$ac_c_undeclared_builtin_options" "CFLAGS"
20476if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes
20477then :
20478
20479printf "%s\n" "#define HAVE_ISA 1" >>confdefs.h
20480
20481fi
20482CFLAGS="$save_CFLAGS"
20483
20484save_CFLAGS="$CFLAGS"
20485CFLAGS="$XORG_CFLAGS"
20486ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
20487" "$ac_c_undeclared_builtin_options" "CFLAGS"
20488if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
20489then :
20490  XSERVER_LIBPCIACCESS=yes
20491else case e in #(
20492  e) XSERVER_LIBPCIACCESS=no ;;
20493esac
20494fi
20495CFLAGS="$save_CFLAGS"
20496
20497if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20498
20499pkg_failed=no
20500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20501printf %s "checking for PCIACCESS... " >&6; }
20502
20503if test -n "$PCIACCESS_CFLAGS"; then
20504    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20505 elif test -n "$PKG_CONFIG"; then
20506    if test -n "$PKG_CONFIG" && \
20507    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
20508  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
20509  ac_status=$?
20510  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20511  test $ac_status = 0; }; then
20512  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
20513		      test "x$?" != "x0" && pkg_failed=yes
20514else
20515  pkg_failed=yes
20516fi
20517 else
20518    pkg_failed=untried
20519fi
20520if test -n "$PCIACCESS_LIBS"; then
20521    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20522 elif test -n "$PKG_CONFIG"; then
20523    if test -n "$PKG_CONFIG" && \
20524    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
20525  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
20526  ac_status=$?
20527  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20528  test $ac_status = 0; }; then
20529  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
20530		      test "x$?" != "x0" && pkg_failed=yes
20531else
20532  pkg_failed=yes
20533fi
20534 else
20535    pkg_failed=untried
20536fi
20537
20538
20539
20540if test $pkg_failed = yes; then
20541   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20542printf "%s\n" "no" >&6; }
20543
20544if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20545        _pkg_short_errors_supported=yes
20546else
20547        _pkg_short_errors_supported=no
20548fi
20549        if test $_pkg_short_errors_supported = yes; then
20550	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
20551        else
20552	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
20553        fi
20554	# Put the nasty error message in config.log where it belongs
20555	echo "$PCIACCESS_PKG_ERRORS" >&5
20556
20557	as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
20558
20559$PCIACCESS_PKG_ERRORS
20560
20561Consider adjusting the PKG_CONFIG_PATH environment variable if you
20562installed software in a non-standard prefix.
20563
20564Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20565and PCIACCESS_LIBS to avoid the need to call pkg-config.
20566See the pkg-config man page for more details." "$LINENO" 5
20567elif test $pkg_failed = untried; then
20568     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20569printf "%s\n" "no" >&6; }
20570	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20571printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20572as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20573is in your PATH or set the PKG_CONFIG environment variable to the full
20574path to pkg-config.
20575
20576Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20577and PCIACCESS_LIBS to avoid the need to call pkg-config.
20578See the pkg-config man page for more details.
20579
20580To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20581See 'config.log' for more details" "$LINENO" 5; }
20582else
20583	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20584	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20585        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20586printf "%s\n" "yes" >&6; }
20587
20588fi
20589fi
20590
20591# Checks for library functions
20592# We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet
20593# -Wredundant-decls warning from xorg/os.h which will otherwise redefine them.
20594ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20595if test "x$ac_cv_func_strlcat" = xyes
20596then :
20597  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
20598
20599fi
20600ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20601if test "x$ac_cv_func_strlcpy" = xyes
20602then :
20603  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20604
20605fi
20606ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
20607if test "x$ac_cv_func_timingsafe_memcmp" = xyes
20608then :
20609  printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
20610
20611fi
20612
20613
20614DRIVER_NAME=vboxvideo
20615
20616
20617ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20618
20619cat >confcache <<\_ACEOF
20620# This file is a shell script that caches the results of configure
20621# tests run on this system so they can be shared between configure
20622# scripts and configure runs, see configure's option --config-cache.
20623# It is not useful on other systems.  If it contains results you don't
20624# want to keep, you may remove or edit it.
20625#
20626# config.status only pays attention to the cache file if you give it
20627# the --recheck option to rerun configure.
20628#
20629# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20630# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20631# following values.
20632
20633_ACEOF
20634
20635# The following way of writing the cache mishandles newlines in values,
20636# but we know of no workaround that is simple, portable, and efficient.
20637# So, we kill variables containing newlines.
20638# Ultrix sh set writes to stderr and can't be redirected directly,
20639# and sets the high bit in the cache file unless we assign to the vars.
20640(
20641  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20642    eval ac_val=\$$ac_var
20643    case $ac_val in #(
20644    *${as_nl}*)
20645      case $ac_var in #(
20646      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20647printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20648      esac
20649      case $ac_var in #(
20650      _ | IFS | as_nl) ;; #(
20651      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20652      *) { eval $ac_var=; unset $ac_var;} ;;
20653      esac ;;
20654    esac
20655  done
20656
20657  (set) 2>&1 |
20658    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20659    *${as_nl}ac_space=\ *)
20660      # 'set' does not quote correctly, so add quotes: double-quote
20661      # substitution turns \\\\ into \\, and sed turns \\ into \.
20662      sed -n \
20663	"s/'/'\\\\''/g;
20664	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20665      ;; #(
20666    *)
20667      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20668      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20669      ;;
20670    esac |
20671    sort
20672) |
20673  sed '
20674     /^ac_cv_env_/b end
20675     t clear
20676     :clear
20677     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20678     t end
20679     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20680     :end' >>confcache
20681if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20682  if test -w "$cache_file"; then
20683    if test "x$cache_file" != "x/dev/null"; then
20684      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20685printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20686      if test ! -f "$cache_file" || test -h "$cache_file"; then
20687	cat confcache >"$cache_file"
20688      else
20689        case $cache_file in #(
20690        */* | ?:*)
20691	  mv -f confcache "$cache_file"$$ &&
20692	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20693        *)
20694	  mv -f confcache "$cache_file" ;;
20695	esac
20696      fi
20697    fi
20698  else
20699    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20700printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20701  fi
20702fi
20703rm -f confcache
20704
20705test "x$prefix" = xNONE && prefix=$ac_default_prefix
20706# Let make expand exec_prefix.
20707test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20708
20709DEFS=-DHAVE_CONFIG_H
20710
20711ac_libobjs=
20712ac_ltlibobjs=
20713U=
20714for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20715  # 1. Remove the extension, and $U if already installed.
20716  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20717  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20718  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20719  #    will be set to the directory where LIBOBJS objects are built.
20720  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20721  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20722done
20723LIBOBJS=$ac_libobjs
20724
20725LTLIBOBJS=$ac_ltlibobjs
20726
20727
20728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20729printf %s "checking that generated files are newer than configure... " >&6; }
20730   if test -n "$am_sleep_pid"; then
20731     # Hide warnings about reused PIDs.
20732     wait $am_sleep_pid 2>/dev/null
20733   fi
20734   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20735printf "%s\n" "done" >&6; }
20736 if test -n "$EXEEXT"; then
20737  am__EXEEXT_TRUE=
20738  am__EXEEXT_FALSE='#'
20739else
20740  am__EXEEXT_TRUE='#'
20741  am__EXEEXT_FALSE=
20742fi
20743
20744if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20745  as_fn_error $? "conditional \"AMDEP\" was never defined.
20746Usually this means the macro was only invoked conditionally." "$LINENO" 5
20747fi
20748if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20749  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20750Usually this means the macro was only invoked conditionally." "$LINENO" 5
20751fi
20752
20753: "${CONFIG_STATUS=./config.status}"
20754ac_write_fail=0
20755ac_clean_files_save=$ac_clean_files
20756ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20758printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20759as_write_fail=0
20760cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20761#! $SHELL
20762# Generated by $as_me.
20763# Run this file to recreate the current configuration.
20764# Compiler output produced by configure, useful for debugging
20765# configure, is in config.log if it exists.
20766
20767debug=false
20768ac_cs_recheck=false
20769ac_cs_silent=false
20770
20771SHELL=\${CONFIG_SHELL-$SHELL}
20772export SHELL
20773_ASEOF
20774cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20775## -------------------- ##
20776## M4sh Initialization. ##
20777## -------------------- ##
20778
20779# Be more Bourne compatible
20780DUALCASE=1; export DUALCASE # for MKS sh
20781if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20782then :
20783  emulate sh
20784  NULLCMD=:
20785  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20786  # is contrary to our usage.  Disable this feature.
20787  alias -g '${1+"$@"}'='"$@"'
20788  setopt NO_GLOB_SUBST
20789else case e in #(
20790  e) case `(set -o) 2>/dev/null` in #(
20791  *posix*) :
20792    set -o posix ;; #(
20793  *) :
20794     ;;
20795esac ;;
20796esac
20797fi
20798
20799
20800
20801# Reset variables that may have inherited troublesome values from
20802# the environment.
20803
20804# IFS needs to be set, to space, tab, and newline, in precisely that order.
20805# (If _AS_PATH_WALK were called with IFS unset, it would have the
20806# side effect of setting IFS to empty, thus disabling word splitting.)
20807# Quoting is to prevent editors from complaining about space-tab.
20808as_nl='
20809'
20810export as_nl
20811IFS=" ""	$as_nl"
20812
20813PS1='$ '
20814PS2='> '
20815PS4='+ '
20816
20817# Ensure predictable behavior from utilities with locale-dependent output.
20818LC_ALL=C
20819export LC_ALL
20820LANGUAGE=C
20821export LANGUAGE
20822
20823# We cannot yet rely on "unset" to work, but we need these variables
20824# to be unset--not just set to an empty or harmless value--now, to
20825# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20826# also avoids known problems related to "unset" and subshell syntax
20827# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20828for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20829do eval test \${$as_var+y} \
20830  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20831done
20832
20833# Ensure that fds 0, 1, and 2 are open.
20834if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20835if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20836if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20837
20838# The user is always right.
20839if ${PATH_SEPARATOR+false} :; then
20840  PATH_SEPARATOR=:
20841  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20842    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20843      PATH_SEPARATOR=';'
20844  }
20845fi
20846
20847
20848# Find who we are.  Look in the path if we contain no directory separator.
20849as_myself=
20850case $0 in #((
20851  *[\\/]* ) as_myself=$0 ;;
20852  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20853for as_dir in $PATH
20854do
20855  IFS=$as_save_IFS
20856  case $as_dir in #(((
20857    '') as_dir=./ ;;
20858    */) ;;
20859    *) as_dir=$as_dir/ ;;
20860  esac
20861    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20862  done
20863IFS=$as_save_IFS
20864
20865     ;;
20866esac
20867# We did not find ourselves, most probably we were run as 'sh COMMAND'
20868# in which case we are not to be found in the path.
20869if test "x$as_myself" = x; then
20870  as_myself=$0
20871fi
20872if test ! -f "$as_myself"; then
20873  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20874  exit 1
20875fi
20876
20877
20878
20879# as_fn_error STATUS ERROR [LINENO LOG_FD]
20880# ----------------------------------------
20881# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20882# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20883# script with STATUS, using 1 if that was 0.
20884as_fn_error ()
20885{
20886  as_status=$1; test $as_status -eq 0 && as_status=1
20887  if test "$4"; then
20888    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20890  fi
20891  printf "%s\n" "$as_me: error: $2" >&2
20892  as_fn_exit $as_status
20893} # as_fn_error
20894
20895
20896# as_fn_set_status STATUS
20897# -----------------------
20898# Set $? to STATUS, without forking.
20899as_fn_set_status ()
20900{
20901  return $1
20902} # as_fn_set_status
20903
20904# as_fn_exit STATUS
20905# -----------------
20906# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20907as_fn_exit ()
20908{
20909  set +e
20910  as_fn_set_status $1
20911  exit $1
20912} # as_fn_exit
20913
20914# as_fn_unset VAR
20915# ---------------
20916# Portably unset VAR.
20917as_fn_unset ()
20918{
20919  { eval $1=; unset $1;}
20920}
20921as_unset=as_fn_unset
20922
20923# as_fn_append VAR VALUE
20924# ----------------------
20925# Append the text in VALUE to the end of the definition contained in VAR. Take
20926# advantage of any shell optimizations that allow amortized linear growth over
20927# repeated appends, instead of the typical quadratic growth present in naive
20928# implementations.
20929if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20930then :
20931  eval 'as_fn_append ()
20932  {
20933    eval $1+=\$2
20934  }'
20935else case e in #(
20936  e) as_fn_append ()
20937  {
20938    eval $1=\$$1\$2
20939  } ;;
20940esac
20941fi # as_fn_append
20942
20943# as_fn_arith ARG...
20944# ------------------
20945# Perform arithmetic evaluation on the ARGs, and store the result in the
20946# global $as_val. Take advantage of shells that can avoid forks. The arguments
20947# must be portable across $(()) and expr.
20948if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20949then :
20950  eval 'as_fn_arith ()
20951  {
20952    as_val=$(( $* ))
20953  }'
20954else case e in #(
20955  e) as_fn_arith ()
20956  {
20957    as_val=`expr "$@" || test $? -eq 1`
20958  } ;;
20959esac
20960fi # as_fn_arith
20961
20962
20963if expr a : '\(a\)' >/dev/null 2>&1 &&
20964   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20965  as_expr=expr
20966else
20967  as_expr=false
20968fi
20969
20970if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20971  as_basename=basename
20972else
20973  as_basename=false
20974fi
20975
20976if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20977  as_dirname=dirname
20978else
20979  as_dirname=false
20980fi
20981
20982as_me=`$as_basename -- "$0" ||
20983$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20984	 X"$0" : 'X\(//\)$' \| \
20985	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20986printf "%s\n" X/"$0" |
20987    sed '/^.*\/\([^/][^/]*\)\/*$/{
20988	    s//\1/
20989	    q
20990	  }
20991	  /^X\/\(\/\/\)$/{
20992	    s//\1/
20993	    q
20994	  }
20995	  /^X\/\(\/\).*/{
20996	    s//\1/
20997	    q
20998	  }
20999	  s/.*/./; q'`
21000
21001# Avoid depending upon Character Ranges.
21002as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21003as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21004as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21005as_cr_digits='0123456789'
21006as_cr_alnum=$as_cr_Letters$as_cr_digits
21007
21008
21009# Determine whether it's possible to make 'echo' print without a newline.
21010# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21011# for compatibility with existing Makefiles.
21012ECHO_C= ECHO_N= ECHO_T=
21013case `echo -n x` in #(((((
21014-n*)
21015  case `echo 'xy\c'` in
21016  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21017  xy)  ECHO_C='\c';;
21018  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21019       ECHO_T='	';;
21020  esac;;
21021*)
21022  ECHO_N='-n';;
21023esac
21024
21025# For backward compatibility with old third-party macros, we provide
21026# the shell variables $as_echo and $as_echo_n.  New code should use
21027# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21028as_echo='printf %s\n'
21029as_echo_n='printf %s'
21030
21031rm -f conf$$ conf$$.exe conf$$.file
21032if test -d conf$$.dir; then
21033  rm -f conf$$.dir/conf$$.file
21034else
21035  rm -f conf$$.dir
21036  mkdir conf$$.dir 2>/dev/null
21037fi
21038if (echo >conf$$.file) 2>/dev/null; then
21039  if ln -s conf$$.file conf$$ 2>/dev/null; then
21040    as_ln_s='ln -s'
21041    # ... but there are two gotchas:
21042    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21043    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21044    # In both cases, we have to default to 'cp -pR'.
21045    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21046      as_ln_s='cp -pR'
21047  elif ln conf$$.file conf$$ 2>/dev/null; then
21048    as_ln_s=ln
21049  else
21050    as_ln_s='cp -pR'
21051  fi
21052else
21053  as_ln_s='cp -pR'
21054fi
21055rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21056rmdir conf$$.dir 2>/dev/null
21057
21058
21059# as_fn_mkdir_p
21060# -------------
21061# Create "$as_dir" as a directory, including parents if necessary.
21062as_fn_mkdir_p ()
21063{
21064
21065  case $as_dir in #(
21066  -*) as_dir=./$as_dir;;
21067  esac
21068  test -d "$as_dir" || eval $as_mkdir_p || {
21069    as_dirs=
21070    while :; do
21071      case $as_dir in #(
21072      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21073      *) as_qdir=$as_dir;;
21074      esac
21075      as_dirs="'$as_qdir' $as_dirs"
21076      as_dir=`$as_dirname -- "$as_dir" ||
21077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21078	 X"$as_dir" : 'X\(//\)[^/]' \| \
21079	 X"$as_dir" : 'X\(//\)$' \| \
21080	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21081printf "%s\n" X"$as_dir" |
21082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21083	    s//\1/
21084	    q
21085	  }
21086	  /^X\(\/\/\)[^/].*/{
21087	    s//\1/
21088	    q
21089	  }
21090	  /^X\(\/\/\)$/{
21091	    s//\1/
21092	    q
21093	  }
21094	  /^X\(\/\).*/{
21095	    s//\1/
21096	    q
21097	  }
21098	  s/.*/./; q'`
21099      test -d "$as_dir" && break
21100    done
21101    test -z "$as_dirs" || eval "mkdir $as_dirs"
21102  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21103
21104
21105} # as_fn_mkdir_p
21106if mkdir -p . 2>/dev/null; then
21107  as_mkdir_p='mkdir -p "$as_dir"'
21108else
21109  test -d ./-p && rmdir ./-p
21110  as_mkdir_p=false
21111fi
21112
21113
21114# as_fn_executable_p FILE
21115# -----------------------
21116# Test if FILE is an executable regular file.
21117as_fn_executable_p ()
21118{
21119  test -f "$1" && test -x "$1"
21120} # as_fn_executable_p
21121as_test_x='test -x'
21122as_executable_p=as_fn_executable_p
21123
21124# Sed expression to map a string onto a valid CPP name.
21125as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21126as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21127
21128# Sed expression to map a string onto a valid variable name.
21129as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21130as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21131
21132
21133exec 6>&1
21134## ----------------------------------- ##
21135## Main body of $CONFIG_STATUS script. ##
21136## ----------------------------------- ##
21137_ASEOF
21138test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21139
21140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21141# Save the log message, to keep $0 and so on meaningful, and to
21142# report actual input values of CONFIG_FILES etc. instead of their
21143# values after options handling.
21144ac_log="
21145This file was extended by xf86-video-vboxvideo $as_me 1.0.1, which was
21146generated by GNU Autoconf 2.72.  Invocation command line was
21147
21148  CONFIG_FILES    = $CONFIG_FILES
21149  CONFIG_HEADERS  = $CONFIG_HEADERS
21150  CONFIG_LINKS    = $CONFIG_LINKS
21151  CONFIG_COMMANDS = $CONFIG_COMMANDS
21152  $ $0 $@
21153
21154on `(hostname || uname -n) 2>/dev/null | sed 1q`
21155"
21156
21157_ACEOF
21158
21159case $ac_config_files in *"
21160"*) set x $ac_config_files; shift; ac_config_files=$*;;
21161esac
21162
21163case $ac_config_headers in *"
21164"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21165esac
21166
21167
21168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21169# Files that config.status was made for.
21170config_files="$ac_config_files"
21171config_headers="$ac_config_headers"
21172config_commands="$ac_config_commands"
21173
21174_ACEOF
21175
21176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21177ac_cs_usage="\
21178'$as_me' instantiates files and other configuration actions
21179from templates according to the current configuration.  Unless the files
21180and actions are specified as TAGs, all are instantiated by default.
21181
21182Usage: $0 [OPTION]... [TAG]...
21183
21184  -h, --help       print this help, then exit
21185  -V, --version    print version number and configuration settings, then exit
21186      --config     print configuration, then exit
21187  -q, --quiet, --silent
21188                   do not print progress messages
21189  -d, --debug      don't remove temporary files
21190      --recheck    update $as_me by reconfiguring in the same conditions
21191      --file=FILE[:TEMPLATE]
21192                   instantiate the configuration file FILE
21193      --header=FILE[:TEMPLATE]
21194                   instantiate the configuration header FILE
21195
21196Configuration files:
21197$config_files
21198
21199Configuration headers:
21200$config_headers
21201
21202Configuration commands:
21203$config_commands
21204
21205Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vbox/-/issues>."
21206
21207_ACEOF
21208ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21209ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21211ac_cs_config='$ac_cs_config_escaped'
21212ac_cs_version="\\
21213xf86-video-vboxvideo config.status 1.0.1
21214configured by $0, generated by GNU Autoconf 2.72,
21215  with options \\"\$ac_cs_config\\"
21216
21217Copyright (C) 2023 Free Software Foundation, Inc.
21218This config.status script is free software; the Free Software Foundation
21219gives unlimited permission to copy, distribute and modify it."
21220
21221ac_pwd='$ac_pwd'
21222srcdir='$srcdir'
21223INSTALL='$INSTALL'
21224MKDIR_P='$MKDIR_P'
21225AWK='$AWK'
21226test -n "\$AWK" || AWK=awk
21227_ACEOF
21228
21229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21230# The default lists apply if the user does not specify any file.
21231ac_need_defaults=:
21232while test $# != 0
21233do
21234  case $1 in
21235  --*=?*)
21236    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21237    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21238    ac_shift=:
21239    ;;
21240  --*=)
21241    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21242    ac_optarg=
21243    ac_shift=:
21244    ;;
21245  *)
21246    ac_option=$1
21247    ac_optarg=$2
21248    ac_shift=shift
21249    ;;
21250  esac
21251
21252  case $ac_option in
21253  # Handling of the options.
21254  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21255    ac_cs_recheck=: ;;
21256  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21257    printf "%s\n" "$ac_cs_version"; exit ;;
21258  --config | --confi | --conf | --con | --co | --c )
21259    printf "%s\n" "$ac_cs_config"; exit ;;
21260  --debug | --debu | --deb | --de | --d | -d )
21261    debug=: ;;
21262  --file | --fil | --fi | --f )
21263    $ac_shift
21264    case $ac_optarg in
21265    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21266    '') as_fn_error $? "missing file argument" ;;
21267    esac
21268    as_fn_append CONFIG_FILES " '$ac_optarg'"
21269    ac_need_defaults=false;;
21270  --header | --heade | --head | --hea )
21271    $ac_shift
21272    case $ac_optarg in
21273    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21274    esac
21275    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21276    ac_need_defaults=false;;
21277  --he | --h)
21278    # Conflict between --help and --header
21279    as_fn_error $? "ambiguous option: '$1'
21280Try '$0 --help' for more information.";;
21281  --help | --hel | -h )
21282    printf "%s\n" "$ac_cs_usage"; exit ;;
21283  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21284  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21285    ac_cs_silent=: ;;
21286
21287  # This is an error.
21288  -*) as_fn_error $? "unrecognized option: '$1'
21289Try '$0 --help' for more information." ;;
21290
21291  *) as_fn_append ac_config_targets " $1"
21292     ac_need_defaults=false ;;
21293
21294  esac
21295  shift
21296done
21297
21298ac_configure_extra_args=
21299
21300if $ac_cs_silent; then
21301  exec 6>/dev/null
21302  ac_configure_extra_args="$ac_configure_extra_args --silent"
21303fi
21304
21305_ACEOF
21306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21307if \$ac_cs_recheck; then
21308  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21309  shift
21310  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21311  CONFIG_SHELL='$SHELL'
21312  export CONFIG_SHELL
21313  exec "\$@"
21314fi
21315
21316_ACEOF
21317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21318exec 5>>config.log
21319{
21320  echo
21321  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21322## Running $as_me. ##
21323_ASBOX
21324  printf "%s\n" "$ac_log"
21325} >&5
21326
21327_ACEOF
21328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21329#
21330# INIT-COMMANDS
21331#
21332AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21333
21334
21335# The HP-UX ksh and POSIX shell print the target directory to stdout
21336# if CDPATH is set.
21337(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21338
21339sed_quote_subst='$sed_quote_subst'
21340double_quote_subst='$double_quote_subst'
21341delay_variable_subst='$delay_variable_subst'
21342macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21343macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21344enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21345enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21346pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21347enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21348shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21349SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21350ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21351PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21352host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21353host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21354host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21355build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21356build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21357build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21358SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21359Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21360GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21361EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21362FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21363LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21364NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21365LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21366max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21367ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21368exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21369lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21370lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21371lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21372lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21373lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21374reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21375reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21376FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21377OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21378deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21379file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21380file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21381want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21382DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21383sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21384AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21385lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21386AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21387archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21388STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21389RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21390old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21391old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21392old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21393lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21394CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21395CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21396compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21397GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21398lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21399lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21400lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21401lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21402lt_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"`'
21403lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21404nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21405lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21406lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21407objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21408MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21409lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21410lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21411lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21412lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21413lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21414need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21415MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21416DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21417NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21418LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21419OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21420OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21421libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21422shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21423extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21424archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21425enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21426export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21427whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21428compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21429old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21430old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21431archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21432archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21433module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21434module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21435with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21436allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21437no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21438hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21439hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21440hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21441hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21442hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21443hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21444hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21445inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21446link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21447always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21448export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21449exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21450include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21451prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21452postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21453file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21454variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21455need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21456need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21457version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21458runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21459shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21460shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21461libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21462library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21463soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21464install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21465postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21466postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21467finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21468finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21469hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21470sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21471configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21472configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21473hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21474enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21475enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21476enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21477old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21478striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21479
21480LTCC='$LTCC'
21481LTCFLAGS='$LTCFLAGS'
21482compiler='$compiler_DEFAULT'
21483
21484# A function that is used when there is no print builtin or printf.
21485func_fallback_echo ()
21486{
21487  eval 'cat <<_LTECHO_EOF
21488\$1
21489_LTECHO_EOF'
21490}
21491
21492# Quote evaled strings.
21493for var in SHELL \
21494ECHO \
21495PATH_SEPARATOR \
21496SED \
21497GREP \
21498EGREP \
21499FGREP \
21500LD \
21501NM \
21502LN_S \
21503lt_SP2NL \
21504lt_NL2SP \
21505reload_flag \
21506FILECMD \
21507OBJDUMP \
21508deplibs_check_method \
21509file_magic_cmd \
21510file_magic_glob \
21511want_nocaseglob \
21512DLLTOOL \
21513sharedlib_from_linklib_cmd \
21514AR \
21515archiver_list_spec \
21516STRIP \
21517RANLIB \
21518CC \
21519CFLAGS \
21520compiler \
21521lt_cv_sys_global_symbol_pipe \
21522lt_cv_sys_global_symbol_to_cdecl \
21523lt_cv_sys_global_symbol_to_import \
21524lt_cv_sys_global_symbol_to_c_name_address \
21525lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21526lt_cv_nm_interface \
21527nm_file_list_spec \
21528lt_cv_truncate_bin \
21529lt_prog_compiler_no_builtin_flag \
21530lt_prog_compiler_pic \
21531lt_prog_compiler_wl \
21532lt_prog_compiler_static \
21533lt_cv_prog_compiler_c_o \
21534need_locks \
21535MANIFEST_TOOL \
21536DSYMUTIL \
21537NMEDIT \
21538LIPO \
21539OTOOL \
21540OTOOL64 \
21541shrext_cmds \
21542export_dynamic_flag_spec \
21543whole_archive_flag_spec \
21544compiler_needs_object \
21545with_gnu_ld \
21546allow_undefined_flag \
21547no_undefined_flag \
21548hardcode_libdir_flag_spec \
21549hardcode_libdir_separator \
21550exclude_expsyms \
21551include_expsyms \
21552file_list_spec \
21553variables_saved_for_relink \
21554libname_spec \
21555library_names_spec \
21556soname_spec \
21557install_override_mode \
21558finish_eval \
21559old_striplib \
21560striplib; do
21561    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21562    *[\\\\\\\`\\"\\\$]*)
21563      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21564      ;;
21565    *)
21566      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21567      ;;
21568    esac
21569done
21570
21571# Double-quote double-evaled strings.
21572for var in reload_cmds \
21573old_postinstall_cmds \
21574old_postuninstall_cmds \
21575old_archive_cmds \
21576extract_expsyms_cmds \
21577old_archive_from_new_cmds \
21578old_archive_from_expsyms_cmds \
21579archive_cmds \
21580archive_expsym_cmds \
21581module_cmds \
21582module_expsym_cmds \
21583export_symbols_cmds \
21584prelink_cmds \
21585postlink_cmds \
21586postinstall_cmds \
21587postuninstall_cmds \
21588finish_cmds \
21589sys_lib_search_path_spec \
21590configure_time_dlsearch_path \
21591configure_time_lt_sys_library_path; do
21592    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21593    *[\\\\\\\`\\"\\\$]*)
21594      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21595      ;;
21596    *)
21597      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21598      ;;
21599    esac
21600done
21601
21602ac_aux_dir='$ac_aux_dir'
21603
21604# See if we are running on zsh, and set the options that allow our
21605# commands through without removal of \ escapes INIT.
21606if test -n "\${ZSH_VERSION+set}"; then
21607   setopt NO_GLOB_SUBST
21608fi
21609
21610
21611    PACKAGE='$PACKAGE'
21612    VERSION='$VERSION'
21613    RM='$RM'
21614    ofile='$ofile'
21615
21616
21617
21618
21619_ACEOF
21620
21621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21622
21623# Handling of arguments.
21624for ac_config_target in $ac_config_targets
21625do
21626  case $ac_config_target in
21627    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21628    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21629    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21630    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21631    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21632    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21633
21634  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21635  esac
21636done
21637
21638
21639# If the user did not use the arguments to specify the items to instantiate,
21640# then the envvar interface is used.  Set only those that are not.
21641# We use the long form for the default assignment because of an extremely
21642# bizarre bug on SunOS 4.1.3.
21643if $ac_need_defaults; then
21644  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21645  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21646  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21647fi
21648
21649# Have a temporary directory for convenience.  Make it in the build tree
21650# simply because there is no reason against having it here, and in addition,
21651# creating and moving files from /tmp can sometimes cause problems.
21652# Hook for its removal unless debugging.
21653# Note that there is a small window in which the directory will not be cleaned:
21654# after its creation but before its name has been assigned to '$tmp'.
21655$debug ||
21656{
21657  tmp= ac_tmp=
21658  trap 'exit_status=$?
21659  : "${ac_tmp:=$tmp}"
21660  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21661' 0
21662  trap 'as_fn_exit 1' 1 2 13 15
21663}
21664# Create a (secure) tmp directory for tmp files.
21665
21666{
21667  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21668  test -d "$tmp"
21669}  ||
21670{
21671  tmp=./conf$$-$RANDOM
21672  (umask 077 && mkdir "$tmp")
21673} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21674ac_tmp=$tmp
21675
21676# Set up the scripts for CONFIG_FILES section.
21677# No need to generate them if there are no CONFIG_FILES.
21678# This happens for instance with './config.status config.h'.
21679if test -n "$CONFIG_FILES"; then
21680
21681
21682ac_cr=`echo X | tr X '\015'`
21683# On cygwin, bash can eat \r inside `` if the user requested igncr.
21684# But we know of no other shell where ac_cr would be empty at this
21685# point, so we can use a bashism as a fallback.
21686if test "x$ac_cr" = x; then
21687  eval ac_cr=\$\'\\r\'
21688fi
21689ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21690if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21691  ac_cs_awk_cr='\\r'
21692else
21693  ac_cs_awk_cr=$ac_cr
21694fi
21695
21696echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21697_ACEOF
21698
21699
21700{
21701  echo "cat >conf$$subs.awk <<_ACEOF" &&
21702  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21703  echo "_ACEOF"
21704} >conf$$subs.sh ||
21705  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21706ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21707ac_delim='%!_!# '
21708for ac_last_try in false false false false false :; do
21709  . ./conf$$subs.sh ||
21710    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21711
21712  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21713  if test $ac_delim_n = $ac_delim_num; then
21714    break
21715  elif $ac_last_try; then
21716    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21717  else
21718    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21719  fi
21720done
21721rm -f conf$$subs.sh
21722
21723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21724cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21725_ACEOF
21726sed -n '
21727h
21728s/^/S["/; s/!.*/"]=/
21729p
21730g
21731s/^[^!]*!//
21732:repl
21733t repl
21734s/'"$ac_delim"'$//
21735t delim
21736:nl
21737h
21738s/\(.\{148\}\)..*/\1/
21739t more1
21740s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21741p
21742n
21743b repl
21744:more1
21745s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21746p
21747g
21748s/.\{148\}//
21749t nl
21750:delim
21751h
21752s/\(.\{148\}\)..*/\1/
21753t more2
21754s/["\\]/\\&/g; s/^/"/; s/$/"/
21755p
21756b
21757:more2
21758s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21759p
21760g
21761s/.\{148\}//
21762t delim
21763' <conf$$subs.awk | sed '
21764/^[^""]/{
21765  N
21766  s/\n//
21767}
21768' >>$CONFIG_STATUS || ac_write_fail=1
21769rm -f conf$$subs.awk
21770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21771_ACAWK
21772cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21773  for (key in S) S_is_set[key] = 1
21774  FS = ""
21775
21776}
21777{
21778  line = $ 0
21779  nfields = split(line, field, "@")
21780  substed = 0
21781  len = length(field[1])
21782  for (i = 2; i < nfields; i++) {
21783    key = field[i]
21784    keylen = length(key)
21785    if (S_is_set[key]) {
21786      value = S[key]
21787      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21788      len += length(value) + length(field[++i])
21789      substed = 1
21790    } else
21791      len += 1 + keylen
21792  }
21793
21794  print line
21795}
21796
21797_ACAWK
21798_ACEOF
21799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21800if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21801  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21802else
21803  cat
21804fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21805  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21806_ACEOF
21807
21808# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21809# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21810# trailing colons and then remove the whole line if VPATH becomes empty
21811# (actually we leave an empty line to preserve line numbers).
21812if test "x$srcdir" = x.; then
21813  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21814h
21815s///
21816s/^/:/
21817s/[	 ]*$/:/
21818s/:\$(srcdir):/:/g
21819s/:\${srcdir}:/:/g
21820s/:@srcdir@:/:/g
21821s/^:*//
21822s/:*$//
21823x
21824s/\(=[	 ]*\).*/\1/
21825G
21826s/\n//
21827s/^[^=]*=[	 ]*$//
21828}'
21829fi
21830
21831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21832fi # test -n "$CONFIG_FILES"
21833
21834# Set up the scripts for CONFIG_HEADERS section.
21835# No need to generate them if there are no CONFIG_HEADERS.
21836# This happens for instance with './config.status Makefile'.
21837if test -n "$CONFIG_HEADERS"; then
21838cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21839BEGIN {
21840_ACEOF
21841
21842# Transform confdefs.h into an awk script 'defines.awk', embedded as
21843# here-document in config.status, that substitutes the proper values into
21844# config.h.in to produce config.h.
21845
21846# Create a delimiter string that does not exist in confdefs.h, to ease
21847# handling of long lines.
21848ac_delim='%!_!# '
21849for ac_last_try in false false :; do
21850  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21851  if test -z "$ac_tt"; then
21852    break
21853  elif $ac_last_try; then
21854    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21855  else
21856    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21857  fi
21858done
21859
21860# For the awk script, D is an array of macro values keyed by name,
21861# likewise P contains macro parameters if any.  Preserve backslash
21862# newline sequences.
21863
21864ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21865sed -n '
21866s/.\{148\}/&'"$ac_delim"'/g
21867t rset
21868:rset
21869s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21870t def
21871d
21872:def
21873s/\\$//
21874t bsnl
21875s/["\\]/\\&/g
21876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21877D["\1"]=" \3"/p
21878s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21879d
21880:bsnl
21881s/["\\]/\\&/g
21882s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21883D["\1"]=" \3\\\\\\n"\\/p
21884t cont
21885s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21886t cont
21887d
21888:cont
21889n
21890s/.\{148\}/&'"$ac_delim"'/g
21891t clear
21892:clear
21893s/\\$//
21894t bsnlc
21895s/["\\]/\\&/g; s/^/"/; s/$/"/p
21896d
21897:bsnlc
21898s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21899b cont
21900' <confdefs.h | sed '
21901s/'"$ac_delim"'/"\\\
21902"/g' >>$CONFIG_STATUS || ac_write_fail=1
21903
21904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21905  for (key in D) D_is_set[key] = 1
21906  FS = ""
21907}
21908/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21909  line = \$ 0
21910  split(line, arg, " ")
21911  if (arg[1] == "#") {
21912    defundef = arg[2]
21913    mac1 = arg[3]
21914  } else {
21915    defundef = substr(arg[1], 2)
21916    mac1 = arg[2]
21917  }
21918  split(mac1, mac2, "(") #)
21919  macro = mac2[1]
21920  prefix = substr(line, 1, index(line, defundef) - 1)
21921  if (D_is_set[macro]) {
21922    # Preserve the white space surrounding the "#".
21923    print prefix "define", macro P[macro] D[macro]
21924    next
21925  } else {
21926    # Replace #undef with comments.  This is necessary, for example,
21927    # in the case of _POSIX_SOURCE, which is predefined and required
21928    # on some systems where configure will not decide to define it.
21929    if (defundef == "undef") {
21930      print "/*", prefix defundef, macro, "*/"
21931      next
21932    }
21933  }
21934}
21935{ print }
21936_ACAWK
21937_ACEOF
21938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21939  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21940fi # test -n "$CONFIG_HEADERS"
21941
21942
21943eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21944shift
21945for ac_tag
21946do
21947  case $ac_tag in
21948  :[FHLC]) ac_mode=$ac_tag; continue;;
21949  esac
21950  case $ac_mode$ac_tag in
21951  :[FHL]*:*);;
21952  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21953  :[FH]-) ac_tag=-:-;;
21954  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21955  esac
21956  ac_save_IFS=$IFS
21957  IFS=:
21958  set x $ac_tag
21959  IFS=$ac_save_IFS
21960  shift
21961  ac_file=$1
21962  shift
21963
21964  case $ac_mode in
21965  :L) ac_source=$1;;
21966  :[FH])
21967    ac_file_inputs=
21968    for ac_f
21969    do
21970      case $ac_f in
21971      -) ac_f="$ac_tmp/stdin";;
21972      *) # Look for the file first in the build tree, then in the source tree
21973	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21974	 # because $ac_f cannot contain ':'.
21975	 test -f "$ac_f" ||
21976	   case $ac_f in
21977	   [\\/$]*) false;;
21978	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21979	   esac ||
21980	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21981      esac
21982      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21983      as_fn_append ac_file_inputs " '$ac_f'"
21984    done
21985
21986    # Let's still pretend it is 'configure' which instantiates (i.e., don't
21987    # use $as_me), people would be surprised to read:
21988    #    /* config.h.  Generated by config.status.  */
21989    configure_input='Generated from '`
21990	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21991	`' by configure.'
21992    if test x"$ac_file" != x-; then
21993      configure_input="$ac_file.  $configure_input"
21994      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21995printf "%s\n" "$as_me: creating $ac_file" >&6;}
21996    fi
21997    # Neutralize special characters interpreted by sed in replacement strings.
21998    case $configure_input in #(
21999    *\&* | *\|* | *\\* )
22000       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22001       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22002    *) ac_sed_conf_input=$configure_input;;
22003    esac
22004
22005    case $ac_tag in
22006    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22007      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22008    esac
22009    ;;
22010  esac
22011
22012  ac_dir=`$as_dirname -- "$ac_file" ||
22013$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22014	 X"$ac_file" : 'X\(//\)[^/]' \| \
22015	 X"$ac_file" : 'X\(//\)$' \| \
22016	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22017printf "%s\n" X"$ac_file" |
22018    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22019	    s//\1/
22020	    q
22021	  }
22022	  /^X\(\/\/\)[^/].*/{
22023	    s//\1/
22024	    q
22025	  }
22026	  /^X\(\/\/\)$/{
22027	    s//\1/
22028	    q
22029	  }
22030	  /^X\(\/\).*/{
22031	    s//\1/
22032	    q
22033	  }
22034	  s/.*/./; q'`
22035  as_dir="$ac_dir"; as_fn_mkdir_p
22036  ac_builddir=.
22037
22038case "$ac_dir" in
22039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22040*)
22041  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22042  # A ".." for each directory in $ac_dir_suffix.
22043  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22044  case $ac_top_builddir_sub in
22045  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22046  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22047  esac ;;
22048esac
22049ac_abs_top_builddir=$ac_pwd
22050ac_abs_builddir=$ac_pwd$ac_dir_suffix
22051# for backward compatibility:
22052ac_top_builddir=$ac_top_build_prefix
22053
22054case $srcdir in
22055  .)  # We are building in place.
22056    ac_srcdir=.
22057    ac_top_srcdir=$ac_top_builddir_sub
22058    ac_abs_top_srcdir=$ac_pwd ;;
22059  [\\/]* | ?:[\\/]* )  # Absolute name.
22060    ac_srcdir=$srcdir$ac_dir_suffix;
22061    ac_top_srcdir=$srcdir
22062    ac_abs_top_srcdir=$srcdir ;;
22063  *) # Relative name.
22064    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22065    ac_top_srcdir=$ac_top_build_prefix$srcdir
22066    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22067esac
22068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22069
22070
22071  case $ac_mode in
22072  :F)
22073  #
22074  # CONFIG_FILE
22075  #
22076
22077  case $INSTALL in
22078  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22079  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22080  esac
22081  ac_MKDIR_P=$MKDIR_P
22082  case $MKDIR_P in
22083  [\\/$]* | ?:[\\/]* ) ;;
22084  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22085  esac
22086_ACEOF
22087
22088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22089# If the template does not know about datarootdir, expand it.
22090# FIXME: This hack should be removed a few years after 2.60.
22091ac_datarootdir_hack=; ac_datarootdir_seen=
22092ac_sed_dataroot='
22093/datarootdir/ {
22094  p
22095  q
22096}
22097/@datadir@/p
22098/@docdir@/p
22099/@infodir@/p
22100/@localedir@/p
22101/@mandir@/p'
22102case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22103*datarootdir*) ac_datarootdir_seen=yes;;
22104*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22106printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22107_ACEOF
22108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22109  ac_datarootdir_hack='
22110  s&@datadir@&$datadir&g
22111  s&@docdir@&$docdir&g
22112  s&@infodir@&$infodir&g
22113  s&@localedir@&$localedir&g
22114  s&@mandir@&$mandir&g
22115  s&\\\${datarootdir}&$datarootdir&g' ;;
22116esac
22117_ACEOF
22118
22119# Neutralize VPATH when '$srcdir' = '.'.
22120# Shell code in configure.ac might set extrasub.
22121# FIXME: do we really want to maintain this feature?
22122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22123ac_sed_extra="$ac_vpsub
22124$extrasub
22125_ACEOF
22126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22127:t
22128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22129s|@configure_input@|$ac_sed_conf_input|;t t
22130s&@top_builddir@&$ac_top_builddir_sub&;t t
22131s&@top_build_prefix@&$ac_top_build_prefix&;t t
22132s&@srcdir@&$ac_srcdir&;t t
22133s&@abs_srcdir@&$ac_abs_srcdir&;t t
22134s&@top_srcdir@&$ac_top_srcdir&;t t
22135s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22136s&@builddir@&$ac_builddir&;t t
22137s&@abs_builddir@&$ac_abs_builddir&;t t
22138s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22139s&@INSTALL@&$ac_INSTALL&;t t
22140s&@MKDIR_P@&$ac_MKDIR_P&;t t
22141$ac_datarootdir_hack
22142"
22143eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22144  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22145
22146test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22147  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22148  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22149      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22151which seems to be undefined.  Please make sure it is defined" >&5
22152printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22153which seems to be undefined.  Please make sure it is defined" >&2;}
22154
22155  rm -f "$ac_tmp/stdin"
22156  case $ac_file in
22157  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22158  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22159  esac \
22160  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22161 ;;
22162  :H)
22163  #
22164  # CONFIG_HEADER
22165  #
22166  if test x"$ac_file" != x-; then
22167    {
22168      printf "%s\n" "/* $configure_input  */" >&1 \
22169      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22170    } >"$ac_tmp/config.h" \
22171      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22172    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22173      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22174printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22175    else
22176      rm -f "$ac_file"
22177      mv "$ac_tmp/config.h" "$ac_file" \
22178	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22179    fi
22180  else
22181    printf "%s\n" "/* $configure_input  */" >&1 \
22182      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22183      || as_fn_error $? "could not create -" "$LINENO" 5
22184  fi
22185# Compute "$ac_file"'s index in $config_headers.
22186_am_arg="$ac_file"
22187_am_stamp_count=1
22188for _am_header in $config_headers :; do
22189  case $_am_header in
22190    $_am_arg | $_am_arg:* )
22191      break ;;
22192    * )
22193      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22194  esac
22195done
22196echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22197$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22198	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22199	 X"$_am_arg" : 'X\(//\)$' \| \
22200	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22201printf "%s\n" X"$_am_arg" |
22202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22203	    s//\1/
22204	    q
22205	  }
22206	  /^X\(\/\/\)[^/].*/{
22207	    s//\1/
22208	    q
22209	  }
22210	  /^X\(\/\/\)$/{
22211	    s//\1/
22212	    q
22213	  }
22214	  /^X\(\/\).*/{
22215	    s//\1/
22216	    q
22217	  }
22218	  s/.*/./; q'`/stamp-h$_am_stamp_count
22219 ;;
22220
22221  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22222printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22223 ;;
22224  esac
22225
22226
22227  case $ac_file$ac_mode in
22228    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22229  # Older Autoconf quotes --file arguments for eval, but not when files
22230  # are listed without --file.  Let's play safe and only enable the eval
22231  # if we detect the quoting.
22232  # TODO: see whether this extra hack can be removed once we start
22233  # requiring Autoconf 2.70 or later.
22234  case $CONFIG_FILES in #(
22235  *\'*) :
22236    eval set x "$CONFIG_FILES" ;; #(
22237  *) :
22238    set x $CONFIG_FILES ;; #(
22239  *) :
22240     ;;
22241esac
22242  shift
22243  # Used to flag and report bootstrapping failures.
22244  am_rc=0
22245  for am_mf
22246  do
22247    # Strip MF so we end up with the name of the file.
22248    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22249    # Check whether this is an Automake generated Makefile which includes
22250    # dependency-tracking related rules and includes.
22251    # Grep'ing the whole file directly is not great: AIX grep has a line
22252    # limit of 2048, but all sed's we know have understand at least 4000.
22253    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22254      || continue
22255    am_dirpart=`$as_dirname -- "$am_mf" ||
22256$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22257	 X"$am_mf" : 'X\(//\)[^/]' \| \
22258	 X"$am_mf" : 'X\(//\)$' \| \
22259	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22260printf "%s\n" X"$am_mf" |
22261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22262	    s//\1/
22263	    q
22264	  }
22265	  /^X\(\/\/\)[^/].*/{
22266	    s//\1/
22267	    q
22268	  }
22269	  /^X\(\/\/\)$/{
22270	    s//\1/
22271	    q
22272	  }
22273	  /^X\(\/\).*/{
22274	    s//\1/
22275	    q
22276	  }
22277	  s/.*/./; q'`
22278    am_filepart=`$as_basename -- "$am_mf" ||
22279$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22280	 X"$am_mf" : 'X\(//\)$' \| \
22281	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22282printf "%s\n" X/"$am_mf" |
22283    sed '/^.*\/\([^/][^/]*\)\/*$/{
22284	    s//\1/
22285	    q
22286	  }
22287	  /^X\/\(\/\/\)$/{
22288	    s//\1/
22289	    q
22290	  }
22291	  /^X\/\(\/\).*/{
22292	    s//\1/
22293	    q
22294	  }
22295	  s/.*/./; q'`
22296    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22297      && sed -e '/# am--include-marker/d' "$am_filepart" \
22298        | $MAKE -f - am--depfiles" >&5
22299   (cd "$am_dirpart" \
22300      && sed -e '/# am--include-marker/d' "$am_filepart" \
22301        | $MAKE -f - am--depfiles) >&5 2>&5
22302   ac_status=$?
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } || am_rc=$?
22305  done
22306  if test $am_rc -ne 0; then
22307    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22308printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22309as_fn_error $? "Something went wrong bootstrapping makefile fragments
22310    for automatic dependency tracking.  If GNU make was not used, consider
22311    re-running the configure script with MAKE=\"gmake\" (or whatever is
22312    necessary).  You can also try re-running configure with the
22313    '--disable-dependency-tracking' option to at least be able to build
22314    the package (albeit without support for automatic dependency tracking).
22315See 'config.log' for more details" "$LINENO" 5; }
22316  fi
22317  { am_dirpart=; unset am_dirpart;}
22318  { am_filepart=; unset am_filepart;}
22319  { am_mf=; unset am_mf;}
22320  { am_rc=; unset am_rc;}
22321  rm -f conftest-deps.mk
22322}
22323 ;;
22324    "libtool":C)
22325
22326    # See if we are running on zsh, and set the options that allow our
22327    # commands through without removal of \ escapes.
22328    if test -n "${ZSH_VERSION+set}"; then
22329      setopt NO_GLOB_SUBST
22330    fi
22331
22332    cfgfile=${ofile}T
22333    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22334    $RM "$cfgfile"
22335
22336    cat <<_LT_EOF >> "$cfgfile"
22337#! $SHELL
22338# Generated automatically by $as_me ($PACKAGE) $VERSION
22339# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22340# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22341
22342# Provide generalized library-building support services.
22343# Written by Gordon Matzigkeit, 1996
22344
22345# Copyright (C) 2014 Free Software Foundation, Inc.
22346# This is free software; see the source for copying conditions.  There is NO
22347# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22348
22349# GNU Libtool is free software; you can redistribute it and/or modify
22350# it under the terms of the GNU General Public License as published by
22351# the Free Software Foundation; either version 2 of of the License, or
22352# (at your option) any later version.
22353#
22354# As a special exception to the GNU General Public License, if you
22355# distribute this file as part of a program or library that is built
22356# using GNU Libtool, you may include this file under the  same
22357# distribution terms that you use for the rest of that program.
22358#
22359# GNU Libtool is distributed in the hope that it will be useful, but
22360# WITHOUT ANY WARRANTY; without even the implied warranty of
22361# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22362# GNU General Public License for more details.
22363#
22364# You should have received a copy of the GNU General Public License
22365# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22366
22367
22368# The names of the tagged configurations supported by this script.
22369available_tags=''
22370
22371# Configured defaults for sys_lib_dlsearch_path munging.
22372: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22373
22374# ### BEGIN LIBTOOL CONFIG
22375
22376# Which release of libtool.m4 was used?
22377macro_version=$macro_version
22378macro_revision=$macro_revision
22379
22380# Whether or not to build static libraries.
22381build_old_libs=$enable_static
22382
22383# Whether or not to build shared libraries.
22384build_libtool_libs=$enable_shared
22385
22386# What type of objects to build.
22387pic_mode=$pic_mode
22388
22389# Whether or not to optimize for fast installation.
22390fast_install=$enable_fast_install
22391
22392# Shared archive member basename,for filename based shared library versioning on AIX.
22393shared_archive_member_spec=$shared_archive_member_spec
22394
22395# Shell to use when invoking shell scripts.
22396SHELL=$lt_SHELL
22397
22398# An echo program that protects backslashes.
22399ECHO=$lt_ECHO
22400
22401# The PATH separator for the build system.
22402PATH_SEPARATOR=$lt_PATH_SEPARATOR
22403
22404# The host system.
22405host_alias=$host_alias
22406host=$host
22407host_os=$host_os
22408
22409# The build system.
22410build_alias=$build_alias
22411build=$build
22412build_os=$build_os
22413
22414# A sed program that does not truncate output.
22415SED=$lt_SED
22416
22417# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22418Xsed="\$SED -e 1s/^X//"
22419
22420# A grep program that handles long lines.
22421GREP=$lt_GREP
22422
22423# An ERE matcher.
22424EGREP=$lt_EGREP
22425
22426# A literal string matcher.
22427FGREP=$lt_FGREP
22428
22429# A BSD- or MS-compatible name lister.
22430NM=$lt_NM
22431
22432# Whether we need soft or hard links.
22433LN_S=$lt_LN_S
22434
22435# What is the maximum length of a command?
22436max_cmd_len=$max_cmd_len
22437
22438# Object file suffix (normally "o").
22439objext=$ac_objext
22440
22441# Executable file suffix (normally "").
22442exeext=$exeext
22443
22444# whether the shell understands "unset".
22445lt_unset=$lt_unset
22446
22447# turn spaces into newlines.
22448SP2NL=$lt_lt_SP2NL
22449
22450# turn newlines into spaces.
22451NL2SP=$lt_lt_NL2SP
22452
22453# convert \$build file names to \$host format.
22454to_host_file_cmd=$lt_cv_to_host_file_cmd
22455
22456# convert \$build files to toolchain format.
22457to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22458
22459# A file(cmd) program that detects file types.
22460FILECMD=$lt_FILECMD
22461
22462# An object symbol dumper.
22463OBJDUMP=$lt_OBJDUMP
22464
22465# Method to check whether dependent libraries are shared objects.
22466deplibs_check_method=$lt_deplibs_check_method
22467
22468# Command to use when deplibs_check_method = "file_magic".
22469file_magic_cmd=$lt_file_magic_cmd
22470
22471# How to find potential files when deplibs_check_method = "file_magic".
22472file_magic_glob=$lt_file_magic_glob
22473
22474# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22475want_nocaseglob=$lt_want_nocaseglob
22476
22477# DLL creation program.
22478DLLTOOL=$lt_DLLTOOL
22479
22480# Command to associate shared and link libraries.
22481sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22482
22483# The archiver.
22484AR=$lt_AR
22485
22486# Flags to create an archive (by configure).
22487lt_ar_flags=$lt_ar_flags
22488
22489# Flags to create an archive.
22490AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22491
22492# How to feed a file listing to the archiver.
22493archiver_list_spec=$lt_archiver_list_spec
22494
22495# A symbol stripping program.
22496STRIP=$lt_STRIP
22497
22498# Commands used to install an old-style archive.
22499RANLIB=$lt_RANLIB
22500old_postinstall_cmds=$lt_old_postinstall_cmds
22501old_postuninstall_cmds=$lt_old_postuninstall_cmds
22502
22503# Whether to use a lock for old archive extraction.
22504lock_old_archive_extraction=$lock_old_archive_extraction
22505
22506# A C compiler.
22507LTCC=$lt_CC
22508
22509# LTCC compiler flags.
22510LTCFLAGS=$lt_CFLAGS
22511
22512# Take the output of nm and produce a listing of raw symbols and C names.
22513global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22514
22515# Transform the output of nm in a proper C declaration.
22516global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22517
22518# Transform the output of nm into a list of symbols to manually relocate.
22519global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22520
22521# Transform the output of nm in a C name address pair.
22522global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22523
22524# Transform the output of nm in a C name address pair when lib prefix is needed.
22525global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22526
22527# The name lister interface.
22528nm_interface=$lt_lt_cv_nm_interface
22529
22530# Specify filename containing input files for \$NM.
22531nm_file_list_spec=$lt_nm_file_list_spec
22532
22533# The root where to search for dependent libraries,and where our libraries should be installed.
22534lt_sysroot=$lt_sysroot
22535
22536# Command to truncate a binary pipe.
22537lt_truncate_bin=$lt_lt_cv_truncate_bin
22538
22539# The name of the directory that contains temporary libtool files.
22540objdir=$objdir
22541
22542# Used to examine libraries when file_magic_cmd begins with "file".
22543MAGIC_CMD=$MAGIC_CMD
22544
22545# Must we lock files when doing compilation?
22546need_locks=$lt_need_locks
22547
22548# Manifest tool.
22549MANIFEST_TOOL=$lt_MANIFEST_TOOL
22550
22551# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22552DSYMUTIL=$lt_DSYMUTIL
22553
22554# Tool to change global to local symbols on Mac OS X.
22555NMEDIT=$lt_NMEDIT
22556
22557# Tool to manipulate fat objects and archives on Mac OS X.
22558LIPO=$lt_LIPO
22559
22560# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22561OTOOL=$lt_OTOOL
22562
22563# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22564OTOOL64=$lt_OTOOL64
22565
22566# Old archive suffix (normally "a").
22567libext=$libext
22568
22569# Shared library suffix (normally ".so").
22570shrext_cmds=$lt_shrext_cmds
22571
22572# The commands to extract the exported symbol list from a shared archive.
22573extract_expsyms_cmds=$lt_extract_expsyms_cmds
22574
22575# Variables whose values should be saved in libtool wrapper scripts and
22576# restored at link time.
22577variables_saved_for_relink=$lt_variables_saved_for_relink
22578
22579# Do we need the "lib" prefix for modules?
22580need_lib_prefix=$need_lib_prefix
22581
22582# Do we need a version for libraries?
22583need_version=$need_version
22584
22585# Library versioning type.
22586version_type=$version_type
22587
22588# Shared library runtime path variable.
22589runpath_var=$runpath_var
22590
22591# Shared library path variable.
22592shlibpath_var=$shlibpath_var
22593
22594# Is shlibpath searched before the hard-coded library search path?
22595shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22596
22597# Format of library name prefix.
22598libname_spec=$lt_libname_spec
22599
22600# List of archive names.  First name is the real one, the rest are links.
22601# The last name is the one that the linker finds with -lNAME
22602library_names_spec=$lt_library_names_spec
22603
22604# The coded name of the library, if different from the real name.
22605soname_spec=$lt_soname_spec
22606
22607# Permission mode override for installation of shared libraries.
22608install_override_mode=$lt_install_override_mode
22609
22610# Command to use after installation of a shared archive.
22611postinstall_cmds=$lt_postinstall_cmds
22612
22613# Command to use after uninstallation of a shared archive.
22614postuninstall_cmds=$lt_postuninstall_cmds
22615
22616# Commands used to finish a libtool library installation in a directory.
22617finish_cmds=$lt_finish_cmds
22618
22619# As "finish_cmds", except a single script fragment to be evaled but
22620# not shown.
22621finish_eval=$lt_finish_eval
22622
22623# Whether we should hardcode library paths into libraries.
22624hardcode_into_libs=$hardcode_into_libs
22625
22626# Compile-time system search path for libraries.
22627sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22628
22629# Detected run-time system search path for libraries.
22630sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22631
22632# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22633configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22634
22635# Whether dlopen is supported.
22636dlopen_support=$enable_dlopen
22637
22638# Whether dlopen of programs is supported.
22639dlopen_self=$enable_dlopen_self
22640
22641# Whether dlopen of statically linked programs is supported.
22642dlopen_self_static=$enable_dlopen_self_static
22643
22644# Commands to strip libraries.
22645old_striplib=$lt_old_striplib
22646striplib=$lt_striplib
22647
22648
22649# The linker used to build libraries.
22650LD=$lt_LD
22651
22652# How to create reloadable object files.
22653reload_flag=$lt_reload_flag
22654reload_cmds=$lt_reload_cmds
22655
22656# Commands used to build an old-style archive.
22657old_archive_cmds=$lt_old_archive_cmds
22658
22659# A language specific compiler.
22660CC=$lt_compiler
22661
22662# Is the compiler the GNU compiler?
22663with_gcc=$GCC
22664
22665# Compiler flag to turn off builtin functions.
22666no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22667
22668# Additional compiler flags for building library objects.
22669pic_flag=$lt_lt_prog_compiler_pic
22670
22671# How to pass a linker flag through the compiler.
22672wl=$lt_lt_prog_compiler_wl
22673
22674# Compiler flag to prevent dynamic linking.
22675link_static_flag=$lt_lt_prog_compiler_static
22676
22677# Does compiler simultaneously support -c and -o options?
22678compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22679
22680# Whether or not to add -lc for building shared libraries.
22681build_libtool_need_lc=$archive_cmds_need_lc
22682
22683# Whether or not to disallow shared libs when runtime libs are static.
22684allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22685
22686# Compiler flag to allow reflexive dlopens.
22687export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22688
22689# Compiler flag to generate shared objects directly from archives.
22690whole_archive_flag_spec=$lt_whole_archive_flag_spec
22691
22692# Whether the compiler copes with passing no objects directly.
22693compiler_needs_object=$lt_compiler_needs_object
22694
22695# Create an old-style archive from a shared archive.
22696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22697
22698# Create a temporary old-style archive to link instead of a shared archive.
22699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22700
22701# Commands used to build a shared archive.
22702archive_cmds=$lt_archive_cmds
22703archive_expsym_cmds=$lt_archive_expsym_cmds
22704
22705# Commands used to build a loadable module if different from building
22706# a shared archive.
22707module_cmds=$lt_module_cmds
22708module_expsym_cmds=$lt_module_expsym_cmds
22709
22710# Whether we are building with GNU ld or not.
22711with_gnu_ld=$lt_with_gnu_ld
22712
22713# Flag that allows shared libraries with undefined symbols to be built.
22714allow_undefined_flag=$lt_allow_undefined_flag
22715
22716# Flag that enforces no undefined symbols.
22717no_undefined_flag=$lt_no_undefined_flag
22718
22719# Flag to hardcode \$libdir into a binary during linking.
22720# This must work even if \$libdir does not exist
22721hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22722
22723# Whether we need a single "-rpath" flag with a separated argument.
22724hardcode_libdir_separator=$lt_hardcode_libdir_separator
22725
22726# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22727# DIR into the resulting binary.
22728hardcode_direct=$hardcode_direct
22729
22730# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22731# DIR into the resulting binary and the resulting library dependency is
22732# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22733# library is relocated.
22734hardcode_direct_absolute=$hardcode_direct_absolute
22735
22736# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22737# into the resulting binary.
22738hardcode_minus_L=$hardcode_minus_L
22739
22740# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22741# into the resulting binary.
22742hardcode_shlibpath_var=$hardcode_shlibpath_var
22743
22744# Set to "yes" if building a shared library automatically hardcodes DIR
22745# into the library and all subsequent libraries and executables linked
22746# against it.
22747hardcode_automatic=$hardcode_automatic
22748
22749# Set to yes if linker adds runtime paths of dependent libraries
22750# to runtime path list.
22751inherit_rpath=$inherit_rpath
22752
22753# Whether libtool must link a program against all its dependency libraries.
22754link_all_deplibs=$link_all_deplibs
22755
22756# Set to "yes" if exported symbols are required.
22757always_export_symbols=$always_export_symbols
22758
22759# The commands to list exported symbols.
22760export_symbols_cmds=$lt_export_symbols_cmds
22761
22762# Symbols that should not be listed in the preloaded symbols.
22763exclude_expsyms=$lt_exclude_expsyms
22764
22765# Symbols that must always be exported.
22766include_expsyms=$lt_include_expsyms
22767
22768# Commands necessary for linking programs (against libraries) with templates.
22769prelink_cmds=$lt_prelink_cmds
22770
22771# Commands necessary for finishing linking programs.
22772postlink_cmds=$lt_postlink_cmds
22773
22774# Specify filename containing input files.
22775file_list_spec=$lt_file_list_spec
22776
22777# How to hardcode a shared library path into an executable.
22778hardcode_action=$hardcode_action
22779
22780# ### END LIBTOOL CONFIG
22781
22782_LT_EOF
22783
22784    cat <<'_LT_EOF' >> "$cfgfile"
22785
22786# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22787
22788# func_munge_path_list VARIABLE PATH
22789# -----------------------------------
22790# VARIABLE is name of variable containing _space_ separated list of
22791# directories to be munged by the contents of PATH, which is string
22792# having a format:
22793# "DIR[:DIR]:"
22794#       string "DIR[ DIR]" will be prepended to VARIABLE
22795# ":DIR[:DIR]"
22796#       string "DIR[ DIR]" will be appended to VARIABLE
22797# "DIRP[:DIRP]::[DIRA:]DIRA"
22798#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22799#       "DIRA[ DIRA]" will be appended to VARIABLE
22800# "DIR[:DIR]"
22801#       VARIABLE will be replaced by "DIR[ DIR]"
22802func_munge_path_list ()
22803{
22804    case x$2 in
22805    x)
22806        ;;
22807    *:)
22808        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22809        ;;
22810    x:*)
22811        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22812        ;;
22813    *::*)
22814        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22815        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22816        ;;
22817    *)
22818        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22819        ;;
22820    esac
22821}
22822
22823
22824# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22825func_cc_basename ()
22826{
22827    for cc_temp in $*""; do
22828      case $cc_temp in
22829        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22830        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22831        \-*) ;;
22832        *) break;;
22833      esac
22834    done
22835    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22836}
22837
22838
22839# ### END FUNCTIONS SHARED WITH CONFIGURE
22840
22841_LT_EOF
22842
22843  case $host_os in
22844  aix3*)
22845    cat <<\_LT_EOF >> "$cfgfile"
22846# AIX sometimes has problems with the GCC collect2 program.  For some
22847# reason, if we set the COLLECT_NAMES environment variable, the problems
22848# vanish in a puff of smoke.
22849if test set != "${COLLECT_NAMES+set}"; then
22850  COLLECT_NAMES=
22851  export COLLECT_NAMES
22852fi
22853_LT_EOF
22854    ;;
22855  esac
22856
22857
22858
22859ltmain=$ac_aux_dir/ltmain.sh
22860
22861
22862  # We use sed instead of cat because bash on DJGPP gets confused if
22863  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22864  # text mode, it properly converts lines to CR/LF.  This bash problem
22865  # is reportedly fixed, but why not run on old versions too?
22866  $SED '$q' "$ltmain" >> "$cfgfile" \
22867     || (rm -f "$cfgfile"; exit 1)
22868
22869   mv -f "$cfgfile" "$ofile" ||
22870    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22871  chmod +x "$ofile"
22872
22873 ;;
22874
22875  esac
22876done # for ac_tag
22877
22878
22879as_fn_exit 0
22880_ACEOF
22881ac_clean_files=$ac_clean_files_save
22882
22883test $ac_write_fail = 0 ||
22884  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22885
22886
22887# configure is writing to config.log, and then calls config.status.
22888# config.status does its own redirection, appending to config.log.
22889# Unfortunately, on DOS this fails, as config.log is still kept open
22890# by configure, so config.status won't be able to write to it; its
22891# output is simply discarded.  So we exec the FD to /dev/null,
22892# effectively closing config.log, so it can be properly (re)opened and
22893# appended to by config.status.  When coming back to configure, we
22894# need to make the FD available again.
22895if test "$no_create" != yes; then
22896  ac_cs_success=:
22897  ac_config_status_args=
22898  test "$silent" = yes &&
22899    ac_config_status_args="$ac_config_status_args --quiet"
22900  exec 5>/dev/null
22901  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22902  exec 5>>config.log
22903  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22904  # would make configure fail if this is the last instruction.
22905  $ac_cs_success || as_fn_exit 1
22906fi
22907if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22909printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22910fi
22911
22912
22913