1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-vmware 13.4.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='xf86-video-vmware'
624PACKAGE_TARNAME='xf86-video-vmware'
625PACKAGE_VERSION='13.4.0'
626PACKAGE_STRING='xf86-video-vmware 13.4.0'
627PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667BUILD_VMWGFX_FALSE
668BUILD_VMWGFX_TRUE
669LIBUDEV_LIBS
670LIBUDEV_CFLAGS
671DRIVER_NAME
672XATRACKER_LIBS
673XATRACKER_CFLAGS
674LIBDRM_LIBS
675LIBDRM_CFLAGS
676moduledir
677XSERVER_LIBPCIACCESS_FALSE
678XSERVER_LIBPCIACCESS_TRUE
679PCIACCESS_LIBS
680PCIACCESS_CFLAGS
681X11_LIBS
682X11_CFLAGS
683XORG_LIBS
684XORG_CFLAGS
685BUILD_VMWARECTRL_FALSE
686BUILD_VMWARECTRL_TRUE
687LT_SYS_LIBRARY_PATH
688OTOOL64
689OTOOL
690LIPO
691NMEDIT
692DSYMUTIL
693MANIFEST_TOOL
694RANLIB
695ac_ct_AR
696AR
697DLLTOOL
698OBJDUMP
699FILECMD
700LN_S
701NM
702ac_ct_DUMPBIN
703DUMPBIN
704LD
705FGREP
706EGREP
707GREP
708LIBTOOL
709MAN_SUBSTS
710XORG_MAN_PAGE
711ADMIN_MAN_DIR
712DRIVER_MAN_DIR
713MISC_MAN_DIR
714FILE_MAN_DIR
715LIB_MAN_DIR
716APP_MAN_DIR
717ADMIN_MAN_SUFFIX
718DRIVER_MAN_SUFFIX
719MISC_MAN_SUFFIX
720FILE_MAN_SUFFIX
721LIB_MAN_SUFFIX
722APP_MAN_SUFFIX
723SED
724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
732INSTALL_CMD
733PKG_CONFIG_LIBDIR
734PKG_CONFIG_PATH
735PKG_CONFIG
736CHANGELOG_CMD
737STRICT_CFLAGS
738CWARNFLAGS
739BASE_CFLAGS
740AM_BACKSLASH
741AM_DEFAULT_VERBOSITY
742AM_DEFAULT_V
743AM_V
744CSCOPE
745ETAGS
746CTAGS
747am__fastdepCC_FALSE
748am__fastdepCC_TRUE
749CCDEPMODE
750am__nodep
751AMDEPBACKSLASH
752AMDEP_FALSE
753AMDEP_TRUE
754am__include
755DEPDIR
756am__untar
757am__tar
758AMTAR
759am__leading_dot
760SET_MAKE
761AWK
762mkdir_p
763MKDIR_P
764INSTALL_STRIP_PROGRAM
765STRIP
766install_sh
767MAKEINFO
768AUTOHEADER
769AUTOMAKE
770AUTOCONF
771ACLOCAL
772VERSION
773PACKAGE
774CYGPATH_W
775am__isrc
776INSTALL_DATA
777INSTALL_SCRIPT
778INSTALL_PROGRAM
779OBJEXT
780EXEEXT
781ac_ct_CC
782CPPFLAGS
783LDFLAGS
784CFLAGS
785CC
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805runstatedir
806localstatedir
807sharedstatedir
808sysconfdir
809datadir
810datarootdir
811libexecdir
812sbindir
813bindir
814program_transform_name
815prefix
816exec_prefix
817PACKAGE_URL
818PACKAGE_BUGREPORT
819PACKAGE_STRING
820PACKAGE_VERSION
821PACKAGE_TARNAME
822PACKAGE_NAME
823PATH_SEPARATOR
824SHELL
825am__quote'
826ac_subst_files=''
827ac_user_opts='
828enable_option_checking
829enable_largefile
830enable_dependency_tracking
831enable_silent_rules
832enable_selective_werror
833enable_strict_compilation
834enable_static
835enable_shared
836with_pic
837enable_fast_install
838with_aix_soname
839with_gnu_ld
840with_sysroot
841enable_libtool_lock
842with_xorg_module_dir
843enable_vmwarectrl_client
844with_libudev
845'
846      ac_precious_vars='build_alias
847host_alias
848target_alias
849CC
850CFLAGS
851LDFLAGS
852LIBS
853CPPFLAGS
854PKG_CONFIG
855PKG_CONFIG_PATH
856PKG_CONFIG_LIBDIR
857LT_SYS_LIBRARY_PATH
858XORG_CFLAGS
859XORG_LIBS
860X11_CFLAGS
861X11_LIBS
862PCIACCESS_CFLAGS
863PCIACCESS_LIBS
864LIBDRM_CFLAGS
865LIBDRM_LIBS
866XATRACKER_CFLAGS
867XATRACKER_LIBS
868LIBUDEV_CFLAGS
869LIBUDEV_LIBS'
870
871
872# Initialize some variables set by options.
873ac_init_help=
874ac_init_version=false
875ac_unrecognized_opts=
876ac_unrecognized_sep=
877# The variables have the same names as the options, with
878# dashes changed to underlines.
879cache_file=/dev/null
880exec_prefix=NONE
881no_create=
882no_recursion=
883prefix=NONE
884program_prefix=NONE
885program_suffix=NONE
886program_transform_name=s,x,x,
887silent=
888site=
889srcdir=
890verbose=
891x_includes=NONE
892x_libraries=NONE
893
894# Installation directory options.
895# These are left unexpanded so users can "make install exec_prefix=/foo"
896# and all the variables that are supposed to be based on exec_prefix
897# by default will actually change.
898# Use braces instead of parens because sh, perl, etc. also accept them.
899# (The list follows the same order as the GNU Coding Standards.)
900bindir='${exec_prefix}/bin'
901sbindir='${exec_prefix}/sbin'
902libexecdir='${exec_prefix}/libexec'
903datarootdir='${prefix}/share'
904datadir='${datarootdir}'
905sysconfdir='${prefix}/etc'
906sharedstatedir='${prefix}/com'
907localstatedir='${prefix}/var'
908runstatedir='${localstatedir}/run'
909includedir='${prefix}/include'
910oldincludedir='/usr/include'
911docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912infodir='${datarootdir}/info'
913htmldir='${docdir}'
914dvidir='${docdir}'
915pdfdir='${docdir}'
916psdir='${docdir}'
917libdir='${exec_prefix}/lib'
918localedir='${datarootdir}/locale'
919mandir='${datarootdir}/man'
920
921ac_prev=
922ac_dashdash=
923for ac_option
924do
925  # If the previous option needs an argument, assign it.
926  if test -n "$ac_prev"; then
927    eval $ac_prev=\$ac_option
928    ac_prev=
929    continue
930  fi
931
932  case $ac_option in
933  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934  *=)   ac_optarg= ;;
935  *)    ac_optarg=yes ;;
936  esac
937
938  case $ac_dashdash$ac_option in
939  --)
940    ac_dashdash=yes ;;
941
942  -bindir | --bindir | --bindi | --bind | --bin | --bi)
943    ac_prev=bindir ;;
944  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
945    bindir=$ac_optarg ;;
946
947  -build | --build | --buil | --bui | --bu)
948    ac_prev=build_alias ;;
949  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950    build_alias=$ac_optarg ;;
951
952  -cache-file | --cache-file | --cache-fil | --cache-fi \
953  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954    ac_prev=cache_file ;;
955  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957    cache_file=$ac_optarg ;;
958
959  --config-cache | -C)
960    cache_file=config.cache ;;
961
962  -datadir | --datadir | --datadi | --datad)
963    ac_prev=datadir ;;
964  -datadir=* | --datadir=* | --datadi=* | --datad=*)
965    datadir=$ac_optarg ;;
966
967  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968  | --dataroo | --dataro | --datar)
969    ac_prev=datarootdir ;;
970  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972    datarootdir=$ac_optarg ;;
973
974  -disable-* | --disable-*)
975    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976    # Reject names that are not valid shell variable names.
977    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978      as_fn_error $? "invalid feature name: \`$ac_useropt'"
979    ac_useropt_orig=$ac_useropt
980    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
981    case $ac_user_opts in
982      *"
983"enable_$ac_useropt"
984"*) ;;
985      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986	 ac_unrecognized_sep=', ';;
987    esac
988    eval enable_$ac_useropt=no ;;
989
990  -docdir | --docdir | --docdi | --doc | --do)
991    ac_prev=docdir ;;
992  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993    docdir=$ac_optarg ;;
994
995  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996    ac_prev=dvidir ;;
997  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998    dvidir=$ac_optarg ;;
999
1000  -enable-* | --enable-*)
1001    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002    # Reject names that are not valid shell variable names.
1003    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1005    ac_useropt_orig=$ac_useropt
1006    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1007    case $ac_user_opts in
1008      *"
1009"enable_$ac_useropt"
1010"*) ;;
1011      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012	 ac_unrecognized_sep=', ';;
1013    esac
1014    eval enable_$ac_useropt=\$ac_optarg ;;
1015
1016  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018  | --exec | --exe | --ex)
1019    ac_prev=exec_prefix ;;
1020  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022  | --exec=* | --exe=* | --ex=*)
1023    exec_prefix=$ac_optarg ;;
1024
1025  -gas | --gas | --ga | --g)
1026    # Obsolete; use --with-gas.
1027    with_gas=yes ;;
1028
1029  -help | --help | --hel | --he | -h)
1030    ac_init_help=long ;;
1031  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032    ac_init_help=recursive ;;
1033  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034    ac_init_help=short ;;
1035
1036  -host | --host | --hos | --ho)
1037    ac_prev=host_alias ;;
1038  -host=* | --host=* | --hos=* | --ho=*)
1039    host_alias=$ac_optarg ;;
1040
1041  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042    ac_prev=htmldir ;;
1043  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044  | --ht=*)
1045    htmldir=$ac_optarg ;;
1046
1047  -includedir | --includedir | --includedi | --included | --include \
1048  | --includ | --inclu | --incl | --inc)
1049    ac_prev=includedir ;;
1050  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051  | --includ=* | --inclu=* | --incl=* | --inc=*)
1052    includedir=$ac_optarg ;;
1053
1054  -infodir | --infodir | --infodi | --infod | --info | --inf)
1055    ac_prev=infodir ;;
1056  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057    infodir=$ac_optarg ;;
1058
1059  -libdir | --libdir | --libdi | --libd)
1060    ac_prev=libdir ;;
1061  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062    libdir=$ac_optarg ;;
1063
1064  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065  | --libexe | --libex | --libe)
1066    ac_prev=libexecdir ;;
1067  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068  | --libexe=* | --libex=* | --libe=*)
1069    libexecdir=$ac_optarg ;;
1070
1071  -localedir | --localedir | --localedi | --localed | --locale)
1072    ac_prev=localedir ;;
1073  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074    localedir=$ac_optarg ;;
1075
1076  -localstatedir | --localstatedir | --localstatedi | --localstated \
1077  | --localstate | --localstat | --localsta | --localst | --locals)
1078    ac_prev=localstatedir ;;
1079  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081    localstatedir=$ac_optarg ;;
1082
1083  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084    ac_prev=mandir ;;
1085  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086    mandir=$ac_optarg ;;
1087
1088  -nfp | --nfp | --nf)
1089    # Obsolete; use --without-fp.
1090    with_fp=no ;;
1091
1092  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093  | --no-cr | --no-c | -n)
1094    no_create=yes ;;
1095
1096  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1098    no_recursion=yes ;;
1099
1100  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102  | --oldin | --oldi | --old | --ol | --o)
1103    ac_prev=oldincludedir ;;
1104  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107    oldincludedir=$ac_optarg ;;
1108
1109  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110    ac_prev=prefix ;;
1111  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112    prefix=$ac_optarg ;;
1113
1114  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115  | --program-pre | --program-pr | --program-p)
1116    ac_prev=program_prefix ;;
1117  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119    program_prefix=$ac_optarg ;;
1120
1121  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122  | --program-suf | --program-su | --program-s)
1123    ac_prev=program_suffix ;;
1124  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126    program_suffix=$ac_optarg ;;
1127
1128  -program-transform-name | --program-transform-name \
1129  | --program-transform-nam | --program-transform-na \
1130  | --program-transform-n | --program-transform- \
1131  | --program-transform | --program-transfor \
1132  | --program-transfo | --program-transf \
1133  | --program-trans | --program-tran \
1134  | --progr-tra | --program-tr | --program-t)
1135    ac_prev=program_transform_name ;;
1136  -program-transform-name=* | --program-transform-name=* \
1137  | --program-transform-nam=* | --program-transform-na=* \
1138  | --program-transform-n=* | --program-transform-=* \
1139  | --program-transform=* | --program-transfor=* \
1140  | --program-transfo=* | --program-transf=* \
1141  | --program-trans=* | --program-tran=* \
1142  | --progr-tra=* | --program-tr=* | --program-t=*)
1143    program_transform_name=$ac_optarg ;;
1144
1145  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146    ac_prev=pdfdir ;;
1147  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148    pdfdir=$ac_optarg ;;
1149
1150  -psdir | --psdir | --psdi | --psd | --ps)
1151    ac_prev=psdir ;;
1152  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1153    psdir=$ac_optarg ;;
1154
1155  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156  | -silent | --silent | --silen | --sile | --sil)
1157    silent=yes ;;
1158
1159  -runstatedir | --runstatedir | --runstatedi | --runstated \
1160  | --runstate | --runstat | --runsta | --runst | --runs \
1161  | --run | --ru | --r)
1162    ac_prev=runstatedir ;;
1163  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1164  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1165  | --run=* | --ru=* | --r=*)
1166    runstatedir=$ac_optarg ;;
1167
1168  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169    ac_prev=sbindir ;;
1170  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171  | --sbi=* | --sb=*)
1172    sbindir=$ac_optarg ;;
1173
1174  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176  | --sharedst | --shareds | --shared | --share | --shar \
1177  | --sha | --sh)
1178    ac_prev=sharedstatedir ;;
1179  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182  | --sha=* | --sh=*)
1183    sharedstatedir=$ac_optarg ;;
1184
1185  -site | --site | --sit)
1186    ac_prev=site ;;
1187  -site=* | --site=* | --sit=*)
1188    site=$ac_optarg ;;
1189
1190  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191    ac_prev=srcdir ;;
1192  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193    srcdir=$ac_optarg ;;
1194
1195  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196  | --syscon | --sysco | --sysc | --sys | --sy)
1197    ac_prev=sysconfdir ;;
1198  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200    sysconfdir=$ac_optarg ;;
1201
1202  -target | --target | --targe | --targ | --tar | --ta | --t)
1203    ac_prev=target_alias ;;
1204  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205    target_alias=$ac_optarg ;;
1206
1207  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208    verbose=yes ;;
1209
1210  -version | --version | --versio | --versi | --vers | -V)
1211    ac_init_version=: ;;
1212
1213  -with-* | --with-*)
1214    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217      as_fn_error $? "invalid package name: \`$ac_useropt'"
1218    ac_useropt_orig=$ac_useropt
1219    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220    case $ac_user_opts in
1221      *"
1222"with_$ac_useropt"
1223"*) ;;
1224      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225	 ac_unrecognized_sep=', ';;
1226    esac
1227    eval with_$ac_useropt=\$ac_optarg ;;
1228
1229  -without-* | --without-*)
1230    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231    # Reject names that are not valid shell variable names.
1232    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233      as_fn_error $? "invalid package name: \`$ac_useropt'"
1234    ac_useropt_orig=$ac_useropt
1235    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1236    case $ac_user_opts in
1237      *"
1238"with_$ac_useropt"
1239"*) ;;
1240      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241	 ac_unrecognized_sep=', ';;
1242    esac
1243    eval with_$ac_useropt=no ;;
1244
1245  --x)
1246    # Obsolete; use --with-x.
1247    with_x=yes ;;
1248
1249  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250  | --x-incl | --x-inc | --x-in | --x-i)
1251    ac_prev=x_includes ;;
1252  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254    x_includes=$ac_optarg ;;
1255
1256  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258    ac_prev=x_libraries ;;
1259  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261    x_libraries=$ac_optarg ;;
1262
1263  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
1265    ;;
1266
1267  *=*)
1268    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269    # Reject names that are not valid shell variable names.
1270    case $ac_envvar in #(
1271      '' | [0-9]* | *[!_$as_cr_alnum]* )
1272      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273    esac
1274    eval $ac_envvar=\$ac_optarg
1275    export $ac_envvar ;;
1276
1277  *)
1278    # FIXME: should be removed in autoconf 3.0.
1279    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1280    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1282    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283    ;;
1284
1285  esac
1286done
1287
1288if test -n "$ac_prev"; then
1289  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290  as_fn_error $? "missing argument to $ac_option"
1291fi
1292
1293if test -n "$ac_unrecognized_opts"; then
1294  case $enable_option_checking in
1295    no) ;;
1296    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298  esac
1299fi
1300
1301# Check all directory arguments for consistency.
1302for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303		datadir sysconfdir sharedstatedir localstatedir includedir \
1304		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305		libdir localedir mandir runstatedir
1306do
1307  eval ac_val=\$$ac_var
1308  # Remove trailing slashes.
1309  case $ac_val in
1310    */ )
1311      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312      eval $ac_var=\$ac_val;;
1313  esac
1314  # Be sure to have absolute directory names.
1315  case $ac_val in
1316    [\\/$]* | ?:[\\/]* )  continue;;
1317    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318  esac
1319  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320done
1321
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331  if test "x$build_alias" = x; then
1332    cross_compiling=maybe
1333  elif test "x$build_alias" != "x$host_alias"; then
1334    cross_compiling=yes
1335  fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347  as_fn_error $? "working directory cannot be determined"
1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349  as_fn_error $? "pwd does not report name of working directory"
1350
1351
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354  ac_srcdir_defaulted=yes
1355  # Try the directory containing this script, then the parent directory.
1356  ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358	 X"$as_myself" : 'X\(//\)[^/]' \| \
1359	 X"$as_myself" : 'X\(//\)$' \| \
1360	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361printf "%s\n" X"$as_myself" |
1362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363	    s//\1/
1364	    q
1365	  }
1366	  /^X\(\/\/\)[^/].*/{
1367	    s//\1/
1368	    q
1369	  }
1370	  /^X\(\/\/\)$/{
1371	    s//\1/
1372	    q
1373	  }
1374	  /^X\(\/\).*/{
1375	    s//\1/
1376	    q
1377	  }
1378	  s/.*/./; q'`
1379  srcdir=$ac_confdir
1380  if test ! -r "$srcdir/$ac_unique_file"; then
1381    srcdir=..
1382  fi
1383else
1384  ac_srcdir_defaulted=no
1385fi
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393	pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396  srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404for ac_var in $ac_precious_vars; do
1405  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406  eval ac_env_${ac_var}_value=\$${ac_var}
1407  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409done
1410
1411#
1412# Report the --help message.
1413#
1414if test "$ac_init_help" = "long"; then
1415  # Omit some internal or obsolete options to make the list less imposing.
1416  # This message is too long to be a string in the A/UX 3.1 sh.
1417  cat <<_ACEOF
1418\`configure' configures xf86-video-vmware 13.4.0 to adapt to many kinds of systems.
1419
1420Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423VAR=VALUE.  See below for descriptions of some of the useful variables.
1424
1425Defaults for the options are specified in brackets.
1426
1427Configuration:
1428  -h, --help              display this help and exit
1429      --help=short        display options specific to this package
1430      --help=recursive    display the short help of all the included packages
1431  -V, --version           display version information and exit
1432  -q, --quiet, --silent   do not print \`checking ...' messages
1433      --cache-file=FILE   cache test results in FILE [disabled]
1434  -C, --config-cache      alias for \`--cache-file=config.cache'
1435  -n, --no-create         do not create output files
1436      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1437
1438Installation directories:
1439  --prefix=PREFIX         install architecture-independent files in PREFIX
1440                          [$ac_default_prefix]
1441  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1442                          [PREFIX]
1443
1444By default, \`make install' will install all the files in
1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1446an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447for instance \`--prefix=\$HOME'.
1448
1449For better control, use the options below.
1450
1451Fine tuning of the installation directories:
1452  --bindir=DIR            user executables [EPREFIX/bin]
1453  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1454  --libexecdir=DIR        program executables [EPREFIX/libexec]
1455  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1456  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1457  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1458  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1459  --libdir=DIR            object code libraries [EPREFIX/lib]
1460  --includedir=DIR        C header files [PREFIX/include]
1461  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1462  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1463  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1464  --infodir=DIR           info documentation [DATAROOTDIR/info]
1465  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1466  --mandir=DIR            man documentation [DATAROOTDIR/man]
1467  --docdir=DIR            documentation root
1468                          [DATAROOTDIR/doc/xf86-video-vmware]
1469  --htmldir=DIR           html documentation [DOCDIR]
1470  --dvidir=DIR            dvi documentation [DOCDIR]
1471  --pdfdir=DIR            pdf documentation [DOCDIR]
1472  --psdir=DIR             ps documentation [DOCDIR]
1473_ACEOF
1474
1475  cat <<\_ACEOF
1476
1477Program names:
1478  --program-prefix=PREFIX            prepend PREFIX to installed program names
1479  --program-suffix=SUFFIX            append SUFFIX to installed program names
1480  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1481
1482System types:
1483  --build=BUILD     configure for building on BUILD [guessed]
1484  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1485_ACEOF
1486fi
1487
1488if test -n "$ac_init_help"; then
1489  case $ac_init_help in
1490     short | recursive ) echo "Configuration of xf86-video-vmware 13.4.0:";;
1491   esac
1492  cat <<\_ACEOF
1493
1494Optional Features:
1495  --disable-option-checking  ignore unrecognized --enable/--with options
1496  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1497  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1498  --disable-largefile     omit support for large files
1499  --enable-dependency-tracking
1500                          do not reject slow dependency extractors
1501  --disable-dependency-tracking
1502                          speeds up one-time build
1503  --enable-silent-rules   less verbose build output (undo: "make V=1")
1504  --disable-silent-rules  verbose build output (undo: "make V=0")
1505  --disable-selective-werror
1506                          Turn off selective compiler errors. (default:
1507                          enabled)
1508  --enable-strict-compilation
1509                          Enable all warnings from compiler and make them
1510                          errors (default: disabled)
1511  --enable-static[=PKGS]  build static libraries [default=no]
1512  --enable-shared[=PKGS]  build shared libraries [default=yes]
1513  --enable-fast-install[=PKGS]
1514                          optimize for fast installation [default=yes]
1515  --disable-libtool-lock  avoid locking (might break parallel builds)
1516  --enable-vmwarectrl-client
1517                          Enable vmwarectrl client (default: disabled)
1518
1519Optional Packages:
1520  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1521  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1522  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1523                          both]
1524  --with-aix-soname=aix|svr4|both
1525                          shared library versioning (aka "SONAME") variant to
1526                          provide on AIX, [default=aix].
1527  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1528  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1529                          compiler's sysroot if not specified).
1530  --with-xorg-module-dir=DIR
1531                          Default xorg module directory
1532                          [[default=$libdir/xorg/modules]]
1533  --without-libudev       Use to build without libudev on linux
1534
1535Some influential environment variables:
1536  CC          C compiler command
1537  CFLAGS      C compiler flags
1538  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1539              nonstandard directory <lib dir>
1540  LIBS        libraries to pass to the linker, e.g. -l<library>
1541  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542              you have headers in a nonstandard directory <include dir>
1543  PKG_CONFIG  path to pkg-config utility
1544  PKG_CONFIG_PATH
1545              directories to add to pkg-config's search path
1546  PKG_CONFIG_LIBDIR
1547              path overriding pkg-config's built-in search path
1548  LT_SYS_LIBRARY_PATH
1549              User-defined run-time library search path.
1550  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1551  XORG_LIBS   linker flags for XORG, overriding pkg-config
1552  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1553  X11_LIBS    linker flags for X11, overriding pkg-config
1554  PCIACCESS_CFLAGS
1555              C compiler flags for PCIACCESS, overriding pkg-config
1556  PCIACCESS_LIBS
1557              linker flags for PCIACCESS, overriding pkg-config
1558  LIBDRM_CFLAGS
1559              C compiler flags for LIBDRM, overriding pkg-config
1560  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1561  XATRACKER_CFLAGS
1562              C compiler flags for XATRACKER, overriding pkg-config
1563  XATRACKER_LIBS
1564              linker flags for XATRACKER, overriding pkg-config
1565  LIBUDEV_CFLAGS
1566              C compiler flags for LIBUDEV, overriding pkg-config
1567  LIBUDEV_LIBS
1568              linker flags for LIBUDEV, overriding pkg-config
1569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
1573Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1574_ACEOF
1575ac_status=$?
1576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579  # If there are subdirs, report their specific --help.
1580  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581    test -d "$ac_dir" ||
1582      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583      continue
1584    ac_builddir=.
1585
1586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
1589  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1590  # A ".." for each directory in $ac_dir_suffix.
1591  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592  case $ac_top_builddir_sub in
1593  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595  esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
1601
1602case $srcdir in
1603  .)  # We are building in place.
1604    ac_srcdir=.
1605    ac_top_srcdir=$ac_top_builddir_sub
1606    ac_abs_top_srcdir=$ac_pwd ;;
1607  [\\/]* | ?:[\\/]* )  # Absolute name.
1608    ac_srcdir=$srcdir$ac_dir_suffix;
1609    ac_top_srcdir=$srcdir
1610    ac_abs_top_srcdir=$srcdir ;;
1611  *) # Relative name.
1612    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613    ac_top_srcdir=$ac_top_build_prefix$srcdir
1614    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615esac
1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618    cd "$ac_dir" || { ac_status=$?; continue; }
1619    # Check for configure.gnu first; this name is used for a wrapper for
1620    # Metaconfig's "Configure" on case-insensitive file systems.
1621    if test -f "$ac_srcdir/configure.gnu"; then
1622      echo &&
1623      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624    elif test -f "$ac_srcdir/configure"; then
1625      echo &&
1626      $SHELL "$ac_srcdir/configure" --help=recursive
1627    else
1628      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629    fi || ac_status=$?
1630    cd "$ac_pwd" || { ac_status=$?; break; }
1631  done
1632fi
1633
1634test -n "$ac_init_help" && exit $ac_status
1635if $ac_init_version; then
1636  cat <<\_ACEOF
1637xf86-video-vmware configure 13.4.0
1638generated by GNU Autoconf 2.71
1639
1640Copyright (C) 2021 Free Software Foundation, Inc.
1641This configure script is free software; the Free Software Foundation
1642gives unlimited permission to copy, distribute and modify it.
1643_ACEOF
1644  exit
1645fi
1646
1647## ------------------------ ##
1648## Autoconf initialization. ##
1649## ------------------------ ##
1650
1651# ac_fn_c_try_compile LINENO
1652# --------------------------
1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_compile ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  rm -f conftest.$ac_objext conftest.beam
1658  if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664printf "%s\n" "$ac_try_echo"; } >&5
1665  (eval "$ac_compile") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && {
1674	 test -z "$ac_c_werror_flag" ||
1675	 test ! -s conftest.err
1676       } && test -s conftest.$ac_objext
1677then :
1678  ac_retval=0
1679else $as_nop
1680  printf "%s\n" "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683	ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_compile
1689
1690# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1691# ------------------------------------------------------------------
1692# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1693# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1694ac_fn_check_decl ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  as_decl_name=`echo $2|sed 's/ *(.*//'`
1698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1699printf %s "checking whether $as_decl_name is declared... " >&6; }
1700if eval test \${$3+y}
1701then :
1702  printf %s "(cached) " >&6
1703else $as_nop
1704  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1705  eval ac_save_FLAGS=\$$6
1706  as_fn_append $6 " $5"
1707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h.  */
1709$4
1710int
1711main (void)
1712{
1713#ifndef $as_decl_name
1714#ifdef __cplusplus
1715  (void) $as_decl_use;
1716#else
1717  (void) $as_decl_name;
1718#endif
1719#endif
1720
1721  ;
1722  return 0;
1723}
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"
1726then :
1727  eval "$3=yes"
1728else $as_nop
1729  eval "$3=no"
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732  eval $6=\$ac_save_FLAGS
1733
1734fi
1735eval ac_res=\$$3
1736	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737printf "%s\n" "$ac_res" >&6; }
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740} # ac_fn_check_decl
1741
1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743# -------------------------------------------------------
1744# Tests whether HEADER exists and can be compiled using the include files in
1745# INCLUDES, setting the cache variable VAR accordingly.
1746ac_fn_c_check_header_compile ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750printf %s "checking for $2... " >&6; }
1751if eval test \${$3+y}
1752then :
1753  printf %s "(cached) " >&6
1754else $as_nop
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"
1761then :
1762  eval "$3=yes"
1763else $as_nop
1764  eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770printf "%s\n" "$ac_res" >&6; }
1771  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_link LINENO
1776# -----------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_link ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1782  if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785  *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788printf "%s\n" "$ac_try_echo"; } >&5
1789  (eval "$ac_link") 2>conftest.err
1790  ac_status=$?
1791  if test -s conftest.err; then
1792    grep -v '^ *+' conftest.err >conftest.er1
1793    cat conftest.er1 >&5
1794    mv -f conftest.er1 conftest.err
1795  fi
1796  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797  test $ac_status = 0; } && {
1798	 test -z "$ac_c_werror_flag" ||
1799	 test ! -s conftest.err
1800       } && test -s conftest$ac_exeext && {
1801	 test "$cross_compiling" = yes ||
1802	 test -x conftest$ac_exeext
1803       }
1804then :
1805  ac_retval=0
1806else $as_nop
1807  printf "%s\n" "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810	ac_retval=1
1811fi
1812  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814  # interfere with the next link command; also delete a directory that is
1815  # left behind by Apple's compiler.  We do this before executing the actions.
1816  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818  as_fn_set_status $ac_retval
1819
1820} # ac_fn_c_try_link
1821
1822# ac_fn_c_check_func LINENO FUNC VAR
1823# ----------------------------------
1824# Tests whether FUNC exists, setting the cache variable VAR accordingly
1825ac_fn_c_check_func ()
1826{
1827  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829printf %s "checking for $2... " >&6; }
1830if eval test \${$3+y}
1831then :
1832  printf %s "(cached) " >&6
1833else $as_nop
1834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h.  */
1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1838#define $2 innocuous_$2
1839
1840/* System header to define __stub macros and hopefully few prototypes,
1841   which can conflict with char $2 (); below.  */
1842
1843#include <limits.h>
1844#undef $2
1845
1846/* Override any GCC internal prototype to avoid an error.
1847   Use char because int might match the return type of a GCC
1848   builtin and then its argument prototype would still apply.  */
1849#ifdef __cplusplus
1850extern "C"
1851#endif
1852char $2 ();
1853/* The GNU C library defines this for functions which it implements
1854    to always fail with ENOSYS.  Some functions are actually named
1855    something starting with __ and the normal name is an alias.  */
1856#if defined __stub_$2 || defined __stub___$2
1857choke me
1858#endif
1859
1860int
1861main (void)
1862{
1863return $2 ();
1864  ;
1865  return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_link "$LINENO"
1869then :
1870  eval "$3=yes"
1871else $as_nop
1872  eval "$3=no"
1873fi
1874rm -f core conftest.err conftest.$ac_objext conftest.beam \
1875    conftest$ac_exeext conftest.$ac_ext
1876fi
1877eval ac_res=\$$3
1878	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879printf "%s\n" "$ac_res" >&6; }
1880  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882} # ac_fn_c_check_func
1883ac_configure_args_raw=
1884for ac_arg
1885do
1886  case $ac_arg in
1887  *\'*)
1888    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1889  esac
1890  as_fn_append ac_configure_args_raw " '$ac_arg'"
1891done
1892
1893case $ac_configure_args_raw in
1894  *$as_nl*)
1895    ac_safe_unquote= ;;
1896  *)
1897    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1898    ac_unsafe_a="$ac_unsafe_z#~"
1899    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1900    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1901esac
1902
1903cat >config.log <<_ACEOF
1904This file contains any messages produced by compilers while
1905running configure, to aid debugging if configure makes a mistake.
1906
1907It was created by xf86-video-vmware $as_me 13.4.0, which was
1908generated by GNU Autoconf 2.71.  Invocation command line was
1909
1910  $ $0$ac_configure_args_raw
1911
1912_ACEOF
1913exec 5>>config.log
1914{
1915cat <<_ASUNAME
1916## --------- ##
1917## Platform. ##
1918## --------- ##
1919
1920hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925
1926/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1928
1929/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1930/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1931/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1932/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1933/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1934/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1935/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1936
1937_ASUNAME
1938
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942  IFS=$as_save_IFS
1943  case $as_dir in #(((
1944    '') as_dir=./ ;;
1945    */) ;;
1946    *) as_dir=$as_dir/ ;;
1947  esac
1948    printf "%s\n" "PATH: $as_dir"
1949  done
1950IFS=$as_save_IFS
1951
1952} >&5
1953
1954cat >&5 <<_ACEOF
1955
1956
1957## ----------- ##
1958## Core tests. ##
1959## ----------- ##
1960
1961_ACEOF
1962
1963
1964# Keep a trace of the command line.
1965# Strip out --no-create and --no-recursion so they do not pile up.
1966# Strip out --silent because we don't want to record it for future runs.
1967# Also quote any args containing shell meta-characters.
1968# Make two passes to allow for proper duplicate-argument suppression.
1969ac_configure_args=
1970ac_configure_args0=
1971ac_configure_args1=
1972ac_must_keep_next=false
1973for ac_pass in 1 2
1974do
1975  for ac_arg
1976  do
1977    case $ac_arg in
1978    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980    | -silent | --silent | --silen | --sile | --sil)
1981      continue ;;
1982    *\'*)
1983      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984    esac
1985    case $ac_pass in
1986    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987    2)
1988      as_fn_append ac_configure_args1 " '$ac_arg'"
1989      if test $ac_must_keep_next = true; then
1990	ac_must_keep_next=false # Got value, back to normal.
1991      else
1992	case $ac_arg in
1993	  *=* | --config-cache | -C | -disable-* | --disable-* \
1994	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996	  | -with-* | --with-* | -without-* | --without-* | --x)
1997	    case "$ac_configure_args0 " in
1998	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999	    esac
2000	    ;;
2001	  -* ) ac_must_keep_next=true ;;
2002	esac
2003      fi
2004      as_fn_append ac_configure_args " '$ac_arg'"
2005      ;;
2006    esac
2007  done
2008done
2009{ ac_configure_args0=; unset ac_configure_args0;}
2010{ ac_configure_args1=; unset ac_configure_args1;}
2011
2012# When interrupted or exit'd, cleanup temporary files, and complete
2013# config.log.  We remove comments because anyway the quotes in there
2014# would cause problems or look ugly.
2015# WARNING: Use '\'' to represent an apostrophe within the trap.
2016# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017trap 'exit_status=$?
2018  # Sanitize IFS.
2019  IFS=" ""	$as_nl"
2020  # Save into config.log some information that might help in debugging.
2021  {
2022    echo
2023
2024    printf "%s\n" "## ---------------- ##
2025## Cache variables. ##
2026## ---------------- ##"
2027    echo
2028    # The following way of writing the cache mishandles newlines in values,
2029(
2030  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031    eval ac_val=\$$ac_var
2032    case $ac_val in #(
2033    *${as_nl}*)
2034      case $ac_var in #(
2035      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037      esac
2038      case $ac_var in #(
2039      _ | IFS | as_nl) ;; #(
2040      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041      *) { eval $ac_var=; unset $ac_var;} ;;
2042      esac ;;
2043    esac
2044  done
2045  (set) 2>&1 |
2046    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047    *${as_nl}ac_space=\ *)
2048      sed -n \
2049	"s/'\''/'\''\\\\'\'''\''/g;
2050	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051      ;; #(
2052    *)
2053      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054      ;;
2055    esac |
2056    sort
2057)
2058    echo
2059
2060    printf "%s\n" "## ----------------- ##
2061## Output variables. ##
2062## ----------------- ##"
2063    echo
2064    for ac_var in $ac_subst_vars
2065    do
2066      eval ac_val=\$$ac_var
2067      case $ac_val in
2068      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069      esac
2070      printf "%s\n" "$ac_var='\''$ac_val'\''"
2071    done | sort
2072    echo
2073
2074    if test -n "$ac_subst_files"; then
2075      printf "%s\n" "## ------------------- ##
2076## File substitutions. ##
2077## ------------------- ##"
2078      echo
2079      for ac_var in $ac_subst_files
2080      do
2081	eval ac_val=\$$ac_var
2082	case $ac_val in
2083	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084	esac
2085	printf "%s\n" "$ac_var='\''$ac_val'\''"
2086      done | sort
2087      echo
2088    fi
2089
2090    if test -s confdefs.h; then
2091      printf "%s\n" "## ----------- ##
2092## confdefs.h. ##
2093## ----------- ##"
2094      echo
2095      cat confdefs.h
2096      echo
2097    fi
2098    test "$ac_signal" != 0 &&
2099      printf "%s\n" "$as_me: caught signal $ac_signal"
2100    printf "%s\n" "$as_me: exit $exit_status"
2101  } >&5
2102  rm -f core *.core core.conftest.* &&
2103    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104    exit $exit_status
2105' 0
2106for ac_signal in 1 2 13 15; do
2107  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108done
2109ac_signal=0
2110
2111# confdefs.h avoids OS command line length limits that DEFS can exceed.
2112rm -f -r conftest* confdefs.h
2113
2114printf "%s\n" "/* confdefs.h */" > confdefs.h
2115
2116# Predefined preprocessor variables.
2117
2118printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2119
2120printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2121
2122printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2123
2124printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2125
2126printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2127
2128printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2129
2130
2131# Let the site file select an alternate cache file if it wants to.
2132# Prefer an explicitly selected file to automatically selected ones.
2133if test -n "$CONFIG_SITE"; then
2134  ac_site_files="$CONFIG_SITE"
2135elif test "x$prefix" != xNONE; then
2136  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2137else
2138  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2139fi
2140
2141for ac_site_file in $ac_site_files
2142do
2143  case $ac_site_file in #(
2144  */*) :
2145     ;; #(
2146  *) :
2147    ac_site_file=./$ac_site_file ;;
2148esac
2149  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2150    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2152    sed 's/^/| /' "$ac_site_file" >&5
2153    . "$ac_site_file" \
2154      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2156as_fn_error $? "failed to load site script $ac_site_file
2157See \`config.log' for more details" "$LINENO" 5; }
2158  fi
2159done
2160
2161if test -r "$cache_file"; then
2162  # Some versions of bash will fail to source /dev/null (special files
2163  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2164  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2165    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2166printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2167    case $cache_file in
2168      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2169      *)                      . "./$cache_file";;
2170    esac
2171  fi
2172else
2173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2174printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2175  >$cache_file
2176fi
2177
2178# Test code for whether the C compiler supports C89 (global declarations)
2179ac_c_conftest_c89_globals='
2180/* Does the compiler advertise C89 conformance?
2181   Do not test the value of __STDC__, because some compilers set it to 0
2182   while being otherwise adequately conformant. */
2183#if !defined __STDC__
2184# error "Compiler does not advertise C89 conformance"
2185#endif
2186
2187#include <stddef.h>
2188#include <stdarg.h>
2189struct stat;
2190/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2191struct buf { int x; };
2192struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2193static char *e (p, i)
2194     char **p;
2195     int i;
2196{
2197  return p[i];
2198}
2199static char *f (char * (*g) (char **, int), char **p, ...)
2200{
2201  char *s;
2202  va_list v;
2203  va_start (v,p);
2204  s = g (p, va_arg (v,int));
2205  va_end (v);
2206  return s;
2207}
2208
2209/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2210   function prototypes and stuff, but not \xHH hex character constants.
2211   These do not provoke an error unfortunately, instead are silently treated
2212   as an "x".  The following induces an error, until -std is added to get
2213   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2214   array size at least.  It is necessary to write \x00 == 0 to get something
2215   that is true only with -std.  */
2216int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2217
2218/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2219   inside strings and character constants.  */
2220#define FOO(x) '\''x'\''
2221int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2222
2223int test (int i, double x);
2224struct s1 {int (*f) (int a);};
2225struct s2 {int (*f) (double a);};
2226int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2227               int, int);'
2228
2229# Test code for whether the C compiler supports C89 (body of main).
2230ac_c_conftest_c89_main='
2231ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2232'
2233
2234# Test code for whether the C compiler supports C99 (global declarations)
2235ac_c_conftest_c99_globals='
2236// Does the compiler advertise C99 conformance?
2237#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2238# error "Compiler does not advertise C99 conformance"
2239#endif
2240
2241#include <stdbool.h>
2242extern int puts (const char *);
2243extern int printf (const char *, ...);
2244extern int dprintf (int, const char *, ...);
2245extern void *malloc (size_t);
2246
2247// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2248// dprintf is used instead of fprintf to avoid needing to declare
2249// FILE and stderr.
2250#define debug(...) dprintf (2, __VA_ARGS__)
2251#define showlist(...) puts (#__VA_ARGS__)
2252#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2253static void
2254test_varargs_macros (void)
2255{
2256  int x = 1234;
2257  int y = 5678;
2258  debug ("Flag");
2259  debug ("X = %d\n", x);
2260  showlist (The first, second, and third items.);
2261  report (x>y, "x is %d but y is %d", x, y);
2262}
2263
2264// Check long long types.
2265#define BIG64 18446744073709551615ull
2266#define BIG32 4294967295ul
2267#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2268#if !BIG_OK
2269  #error "your preprocessor is broken"
2270#endif
2271#if BIG_OK
2272#else
2273  #error "your preprocessor is broken"
2274#endif
2275static long long int bignum = -9223372036854775807LL;
2276static unsigned long long int ubignum = BIG64;
2277
2278struct incomplete_array
2279{
2280  int datasize;
2281  double data[];
2282};
2283
2284struct named_init {
2285  int number;
2286  const wchar_t *name;
2287  double average;
2288};
2289
2290typedef const char *ccp;
2291
2292static inline int
2293test_restrict (ccp restrict text)
2294{
2295  // See if C++-style comments work.
2296  // Iterate through items via the restricted pointer.
2297  // Also check for declarations in for loops.
2298  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2299    continue;
2300  return 0;
2301}
2302
2303// Check varargs and va_copy.
2304static bool
2305test_varargs (const char *format, ...)
2306{
2307  va_list args;
2308  va_start (args, format);
2309  va_list args_copy;
2310  va_copy (args_copy, args);
2311
2312  const char *str = "";
2313  int number = 0;
2314  float fnumber = 0;
2315
2316  while (*format)
2317    {
2318      switch (*format++)
2319	{
2320	case '\''s'\'': // string
2321	  str = va_arg (args_copy, const char *);
2322	  break;
2323	case '\''d'\'': // int
2324	  number = va_arg (args_copy, int);
2325	  break;
2326	case '\''f'\'': // float
2327	  fnumber = va_arg (args_copy, double);
2328	  break;
2329	default:
2330	  break;
2331	}
2332    }
2333  va_end (args_copy);
2334  va_end (args);
2335
2336  return *str && number && fnumber;
2337}
2338'
2339
2340# Test code for whether the C compiler supports C99 (body of main).
2341ac_c_conftest_c99_main='
2342  // Check bool.
2343  _Bool success = false;
2344  success |= (argc != 0);
2345
2346  // Check restrict.
2347  if (test_restrict ("String literal") == 0)
2348    success = true;
2349  char *restrict newvar = "Another string";
2350
2351  // Check varargs.
2352  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2353  test_varargs_macros ();
2354
2355  // Check flexible array members.
2356  struct incomplete_array *ia =
2357    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2358  ia->datasize = 10;
2359  for (int i = 0; i < ia->datasize; ++i)
2360    ia->data[i] = i * 1.234;
2361
2362  // Check named initializers.
2363  struct named_init ni = {
2364    .number = 34,
2365    .name = L"Test wide string",
2366    .average = 543.34343,
2367  };
2368
2369  ni.number = 58;
2370
2371  int dynamic_array[ni.number];
2372  dynamic_array[0] = argv[0][0];
2373  dynamic_array[ni.number - 1] = 543;
2374
2375  // work around unused variable warnings
2376  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2377	 || dynamic_array[ni.number - 1] != 543);
2378'
2379
2380# Test code for whether the C compiler supports C11 (global declarations)
2381ac_c_conftest_c11_globals='
2382// Does the compiler advertise C11 conformance?
2383#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2384# error "Compiler does not advertise C11 conformance"
2385#endif
2386
2387// Check _Alignas.
2388char _Alignas (double) aligned_as_double;
2389char _Alignas (0) no_special_alignment;
2390extern char aligned_as_int;
2391char _Alignas (0) _Alignas (int) aligned_as_int;
2392
2393// Check _Alignof.
2394enum
2395{
2396  int_alignment = _Alignof (int),
2397  int_array_alignment = _Alignof (int[100]),
2398  char_alignment = _Alignof (char)
2399};
2400_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2401
2402// Check _Noreturn.
2403int _Noreturn does_not_return (void) { for (;;) continue; }
2404
2405// Check _Static_assert.
2406struct test_static_assert
2407{
2408  int x;
2409  _Static_assert (sizeof (int) <= sizeof (long int),
2410                  "_Static_assert does not work in struct");
2411  long int y;
2412};
2413
2414// Check UTF-8 literals.
2415#define u8 syntax error!
2416char const utf8_literal[] = u8"happens to be ASCII" "another string";
2417
2418// Check duplicate typedefs.
2419typedef long *long_ptr;
2420typedef long int *long_ptr;
2421typedef long_ptr long_ptr;
2422
2423// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2424struct anonymous
2425{
2426  union {
2427    struct { int i; int j; };
2428    struct { int k; long int l; } w;
2429  };
2430  int m;
2431} v1;
2432'
2433
2434# Test code for whether the C compiler supports C11 (body of main).
2435ac_c_conftest_c11_main='
2436  _Static_assert ((offsetof (struct anonymous, i)
2437		   == offsetof (struct anonymous, w.k)),
2438		  "Anonymous union alignment botch");
2439  v1.i = 2;
2440  v1.w.k = 5;
2441  ok |= v1.i != 5;
2442'
2443
2444# Test code for whether the C compiler supports C11 (complete).
2445ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2446${ac_c_conftest_c99_globals}
2447${ac_c_conftest_c11_globals}
2448
2449int
2450main (int argc, char **argv)
2451{
2452  int ok = 0;
2453  ${ac_c_conftest_c89_main}
2454  ${ac_c_conftest_c99_main}
2455  ${ac_c_conftest_c11_main}
2456  return ok;
2457}
2458"
2459
2460# Test code for whether the C compiler supports C99 (complete).
2461ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2462${ac_c_conftest_c99_globals}
2463
2464int
2465main (int argc, char **argv)
2466{
2467  int ok = 0;
2468  ${ac_c_conftest_c89_main}
2469  ${ac_c_conftest_c99_main}
2470  return ok;
2471}
2472"
2473
2474# Test code for whether the C compiler supports C89 (complete).
2475ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2476
2477int
2478main (int argc, char **argv)
2479{
2480  int ok = 0;
2481  ${ac_c_conftest_c89_main}
2482  return ok;
2483}
2484"
2485
2486as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2487as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2488as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2489as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2490as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2491as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2492as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2493as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2494as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2495
2496# Auxiliary files required by this configure script.
2497ac_aux_files="ltmain.sh config.guess config.sub missing install-sh compile"
2498
2499# Locations in which to look for auxiliary files.
2500ac_aux_dir_candidates="${srcdir}/."
2501
2502# Search for a directory containing all of the required auxiliary files,
2503# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2504# If we don't find one directory that contains all the files we need,
2505# we report the set of missing files from the *first* directory in
2506# $ac_aux_dir_candidates and give up.
2507ac_missing_aux_files=""
2508ac_first_candidate=:
2509printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511as_found=false
2512for as_dir in $ac_aux_dir_candidates
2513do
2514  IFS=$as_save_IFS
2515  case $as_dir in #(((
2516    '') as_dir=./ ;;
2517    */) ;;
2518    *) as_dir=$as_dir/ ;;
2519  esac
2520  as_found=:
2521
2522  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2523  ac_aux_dir_found=yes
2524  ac_install_sh=
2525  for ac_aux in $ac_aux_files
2526  do
2527    # As a special case, if "install-sh" is required, that requirement
2528    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2529    # and $ac_install_sh is set appropriately for whichever one is found.
2530    if test x"$ac_aux" = x"install-sh"
2531    then
2532      if test -f "${as_dir}install-sh"; then
2533        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2534        ac_install_sh="${as_dir}install-sh -c"
2535      elif test -f "${as_dir}install.sh"; then
2536        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2537        ac_install_sh="${as_dir}install.sh -c"
2538      elif test -f "${as_dir}shtool"; then
2539        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2540        ac_install_sh="${as_dir}shtool install -c"
2541      else
2542        ac_aux_dir_found=no
2543        if $ac_first_candidate; then
2544          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2545        else
2546          break
2547        fi
2548      fi
2549    else
2550      if test -f "${as_dir}${ac_aux}"; then
2551        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2552      else
2553        ac_aux_dir_found=no
2554        if $ac_first_candidate; then
2555          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2556        else
2557          break
2558        fi
2559      fi
2560    fi
2561  done
2562  if test "$ac_aux_dir_found" = yes; then
2563    ac_aux_dir="$as_dir"
2564    break
2565  fi
2566  ac_first_candidate=false
2567
2568  as_found=false
2569done
2570IFS=$as_save_IFS
2571if $as_found
2572then :
2573
2574else $as_nop
2575  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2576fi
2577
2578
2579# These three variables are undocumented and unsupported,
2580# and are intended to be withdrawn in a future Autoconf release.
2581# They can cause serious problems if a builder's source tree is in a directory
2582# whose full name contains unusual characters.
2583if test -f "${ac_aux_dir}config.guess"; then
2584  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2585fi
2586if test -f "${ac_aux_dir}config.sub"; then
2587  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2588fi
2589if test -f "$ac_aux_dir/configure"; then
2590  ac_configure="$SHELL ${ac_aux_dir}configure"
2591fi
2592
2593# Check that the precious variables saved in the cache have kept the same
2594# value.
2595ac_cache_corrupted=false
2596for ac_var in $ac_precious_vars; do
2597  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2598  eval ac_new_set=\$ac_env_${ac_var}_set
2599  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2600  eval ac_new_val=\$ac_env_${ac_var}_value
2601  case $ac_old_set,$ac_new_set in
2602    set,)
2603      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2604printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2605      ac_cache_corrupted=: ;;
2606    ,set)
2607      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2608printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2609      ac_cache_corrupted=: ;;
2610    ,);;
2611    *)
2612      if test "x$ac_old_val" != "x$ac_new_val"; then
2613	# differences in whitespace do not lead to failure.
2614	ac_old_val_w=`echo x $ac_old_val`
2615	ac_new_val_w=`echo x $ac_new_val`
2616	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2617	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2618printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2619	  ac_cache_corrupted=:
2620	else
2621	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2622printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2623	  eval $ac_var=\$ac_old_val
2624	fi
2625	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2626printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2628printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2629      fi;;
2630  esac
2631  # Pass precious variables to config.status.
2632  if test "$ac_new_set" = set; then
2633    case $ac_new_val in
2634    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2635    *) ac_arg=$ac_var=$ac_new_val ;;
2636    esac
2637    case " $ac_configure_args " in
2638      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2639      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2640    esac
2641  fi
2642done
2643if $ac_cache_corrupted; then
2644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2647printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2648  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2649	    and start over" "$LINENO" 5
2650fi
2651## -------------------- ##
2652## Main body of script. ##
2653## -------------------- ##
2654
2655ac_ext=c
2656ac_cpp='$CPP $CPPFLAGS'
2657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
2661
2662
2663ac_config_headers="$ac_config_headers config.h"
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677# Expand $ac_aux_dir to an absolute path.
2678am_aux_dir=`cd "$ac_aux_dir" && pwd`
2679
2680ac_ext=c
2681ac_cpp='$CPP $CPPFLAGS'
2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685if test -n "$ac_tool_prefix"; then
2686  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2687set dummy ${ac_tool_prefix}gcc; ac_word=$2
2688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689printf %s "checking for $ac_word... " >&6; }
2690if test ${ac_cv_prog_CC+y}
2691then :
2692  printf %s "(cached) " >&6
2693else $as_nop
2694  if test -n "$CC"; then
2695  ac_cv_prog_CC="$CC" # Let the user override the test.
2696else
2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  case $as_dir in #(((
2702    '') as_dir=./ ;;
2703    */) ;;
2704    *) as_dir=$as_dir/ ;;
2705  esac
2706    for ac_exec_ext in '' $ac_executable_extensions; do
2707  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2708    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2709    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2710    break 2
2711  fi
2712done
2713  done
2714IFS=$as_save_IFS
2715
2716fi
2717fi
2718CC=$ac_cv_prog_CC
2719if test -n "$CC"; then
2720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2721printf "%s\n" "$CC" >&6; }
2722else
2723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724printf "%s\n" "no" >&6; }
2725fi
2726
2727
2728fi
2729if test -z "$ac_cv_prog_CC"; then
2730  ac_ct_CC=$CC
2731  # Extract the first word of "gcc", so it can be a program name with args.
2732set dummy gcc; ac_word=$2
2733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734printf %s "checking for $ac_word... " >&6; }
2735if test ${ac_cv_prog_ac_ct_CC+y}
2736then :
2737  printf %s "(cached) " >&6
2738else $as_nop
2739  if test -n "$ac_ct_CC"; then
2740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745  IFS=$as_save_IFS
2746  case $as_dir in #(((
2747    '') as_dir=./ ;;
2748    */) ;;
2749    *) as_dir=$as_dir/ ;;
2750  esac
2751    for ac_exec_ext in '' $ac_executable_extensions; do
2752  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2753    ac_cv_prog_ac_ct_CC="gcc"
2754    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2755    break 2
2756  fi
2757done
2758  done
2759IFS=$as_save_IFS
2760
2761fi
2762fi
2763ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764if test -n "$ac_ct_CC"; then
2765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2766printf "%s\n" "$ac_ct_CC" >&6; }
2767else
2768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769printf "%s\n" "no" >&6; }
2770fi
2771
2772  if test "x$ac_ct_CC" = x; then
2773    CC=""
2774  else
2775    case $cross_compiling:$ac_tool_warned in
2776yes:)
2777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779ac_tool_warned=yes ;;
2780esac
2781    CC=$ac_ct_CC
2782  fi
2783else
2784  CC="$ac_cv_prog_CC"
2785fi
2786
2787if test -z "$CC"; then
2788          if test -n "$ac_tool_prefix"; then
2789    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2790set dummy ${ac_tool_prefix}cc; ac_word=$2
2791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792printf %s "checking for $ac_word... " >&6; }
2793if test ${ac_cv_prog_CC+y}
2794then :
2795  printf %s "(cached) " >&6
2796else $as_nop
2797  if test -n "$CC"; then
2798  ac_cv_prog_CC="$CC" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  case $as_dir in #(((
2805    '') as_dir=./ ;;
2806    */) ;;
2807    *) as_dir=$as_dir/ ;;
2808  esac
2809    for ac_exec_ext in '' $ac_executable_extensions; do
2810  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2811    ac_cv_prog_CC="${ac_tool_prefix}cc"
2812    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2813    break 2
2814  fi
2815done
2816  done
2817IFS=$as_save_IFS
2818
2819fi
2820fi
2821CC=$ac_cv_prog_CC
2822if test -n "$CC"; then
2823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824printf "%s\n" "$CC" >&6; }
2825else
2826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827printf "%s\n" "no" >&6; }
2828fi
2829
2830
2831  fi
2832fi
2833if test -z "$CC"; then
2834  # Extract the first word of "cc", so it can be a program name with args.
2835set dummy cc; ac_word=$2
2836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837printf %s "checking for $ac_word... " >&6; }
2838if test ${ac_cv_prog_CC+y}
2839then :
2840  printf %s "(cached) " >&6
2841else $as_nop
2842  if test -n "$CC"; then
2843  ac_cv_prog_CC="$CC" # Let the user override the test.
2844else
2845  ac_prog_rejected=no
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849  IFS=$as_save_IFS
2850  case $as_dir in #(((
2851    '') as_dir=./ ;;
2852    */) ;;
2853    *) as_dir=$as_dir/ ;;
2854  esac
2855    for ac_exec_ext in '' $ac_executable_extensions; do
2856  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2857    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2858       ac_prog_rejected=yes
2859       continue
2860     fi
2861    ac_cv_prog_CC="cc"
2862    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2863    break 2
2864  fi
2865done
2866  done
2867IFS=$as_save_IFS
2868
2869if test $ac_prog_rejected = yes; then
2870  # We found a bogon in the path, so make sure we never use it.
2871  set dummy $ac_cv_prog_CC
2872  shift
2873  if test $# != 0; then
2874    # We chose a different compiler from the bogus one.
2875    # However, it has the same basename, so the bogon will be chosen
2876    # first if we set CC to just the basename; use the full file name.
2877    shift
2878    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2879  fi
2880fi
2881fi
2882fi
2883CC=$ac_cv_prog_CC
2884if test -n "$CC"; then
2885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886printf "%s\n" "$CC" >&6; }
2887else
2888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889printf "%s\n" "no" >&6; }
2890fi
2891
2892
2893fi
2894if test -z "$CC"; then
2895  if test -n "$ac_tool_prefix"; then
2896  for ac_prog in cl.exe
2897  do
2898    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901printf %s "checking for $ac_word... " >&6; }
2902if test ${ac_cv_prog_CC+y}
2903then :
2904  printf %s "(cached) " >&6
2905else $as_nop
2906  if test -n "$CC"; then
2907  ac_cv_prog_CC="$CC" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912  IFS=$as_save_IFS
2913  case $as_dir in #(((
2914    '') as_dir=./ ;;
2915    */) ;;
2916    *) as_dir=$as_dir/ ;;
2917  esac
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2920    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2921    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933printf "%s\n" "$CC" >&6; }
2934else
2935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936printf "%s\n" "no" >&6; }
2937fi
2938
2939
2940    test -n "$CC" && break
2941  done
2942fi
2943if test -z "$CC"; then
2944  ac_ct_CC=$CC
2945  for ac_prog in cl.exe
2946do
2947  # Extract the first word of "$ac_prog", so it can be a program name with args.
2948set dummy $ac_prog; ac_word=$2
2949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950printf %s "checking for $ac_word... " >&6; }
2951if test ${ac_cv_prog_ac_ct_CC+y}
2952then :
2953  printf %s "(cached) " >&6
2954else $as_nop
2955  if test -n "$ac_ct_CC"; then
2956  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961  IFS=$as_save_IFS
2962  case $as_dir in #(((
2963    '') as_dir=./ ;;
2964    */) ;;
2965    *) as_dir=$as_dir/ ;;
2966  esac
2967    for ac_exec_ext in '' $ac_executable_extensions; do
2968  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2969    ac_cv_prog_ac_ct_CC="$ac_prog"
2970    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974  done
2975IFS=$as_save_IFS
2976
2977fi
2978fi
2979ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980if test -n "$ac_ct_CC"; then
2981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2982printf "%s\n" "$ac_ct_CC" >&6; }
2983else
2984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985printf "%s\n" "no" >&6; }
2986fi
2987
2988
2989  test -n "$ac_ct_CC" && break
2990done
2991
2992  if test "x$ac_ct_CC" = x; then
2993    CC=""
2994  else
2995    case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
3000esac
3001    CC=$ac_ct_CC
3002  fi
3003fi
3004
3005fi
3006if test -z "$CC"; then
3007  if test -n "$ac_tool_prefix"; then
3008  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3009set dummy ${ac_tool_prefix}clang; ac_word=$2
3010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011printf %s "checking for $ac_word... " >&6; }
3012if test ${ac_cv_prog_CC+y}
3013then :
3014  printf %s "(cached) " >&6
3015else $as_nop
3016  if test -n "$CC"; then
3017  ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  case $as_dir in #(((
3024    '') as_dir=./ ;;
3025    */) ;;
3026    *) as_dir=$as_dir/ ;;
3027  esac
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3030    ac_cv_prog_CC="${ac_tool_prefix}clang"
3031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035  done
3036IFS=$as_save_IFS
3037
3038fi
3039fi
3040CC=$ac_cv_prog_CC
3041if test -n "$CC"; then
3042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043printf "%s\n" "$CC" >&6; }
3044else
3045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046printf "%s\n" "no" >&6; }
3047fi
3048
3049
3050fi
3051if test -z "$ac_cv_prog_CC"; then
3052  ac_ct_CC=$CC
3053  # Extract the first word of "clang", so it can be a program name with args.
3054set dummy clang; ac_word=$2
3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056printf %s "checking for $ac_word... " >&6; }
3057if test ${ac_cv_prog_ac_ct_CC+y}
3058then :
3059  printf %s "(cached) " >&6
3060else $as_nop
3061  if test -n "$ac_ct_CC"; then
3062  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  case $as_dir in #(((
3069    '') as_dir=./ ;;
3070    */) ;;
3071    *) as_dir=$as_dir/ ;;
3072  esac
3073    for ac_exec_ext in '' $ac_executable_extensions; do
3074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3075    ac_cv_prog_ac_ct_CC="clang"
3076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3077    break 2
3078  fi
3079done
3080  done
3081IFS=$as_save_IFS
3082
3083fi
3084fi
3085ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086if test -n "$ac_ct_CC"; then
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3088printf "%s\n" "$ac_ct_CC" >&6; }
3089else
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091printf "%s\n" "no" >&6; }
3092fi
3093
3094  if test "x$ac_ct_CC" = x; then
3095    CC=""
3096  else
3097    case $cross_compiling:$ac_tool_warned in
3098yes:)
3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101ac_tool_warned=yes ;;
3102esac
3103    CC=$ac_ct_CC
3104  fi
3105else
3106  CC="$ac_cv_prog_CC"
3107fi
3108
3109fi
3110
3111
3112test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3114as_fn_error $? "no acceptable C compiler found in \$PATH
3115See \`config.log' for more details" "$LINENO" 5; }
3116
3117# Provide some information about the compiler.
3118printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3119set X $ac_compile
3120ac_compiler=$2
3121for ac_option in --version -v -V -qversion -version; do
3122  { { ac_try="$ac_compiler $ac_option >&5"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128printf "%s\n" "$ac_try_echo"; } >&5
3129  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3130  ac_status=$?
3131  if test -s conftest.err; then
3132    sed '10a\
3133... rest of stderr output deleted ...
3134         10q' conftest.err >conftest.er1
3135    cat conftest.er1 >&5
3136  fi
3137  rm -f conftest.er1 conftest.err
3138  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139  test $ac_status = 0; }
3140done
3141
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144
3145int
3146main (void)
3147{
3148
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153ac_clean_files_save=$ac_clean_files
3154ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3155# Try to create an executable without -o first, disregard a.out.
3156# It will help us diagnose broken compilers, and finding out an intuition
3157# of exeext.
3158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3159printf %s "checking whether the C compiler works... " >&6; }
3160ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3161
3162# The possible output files:
3163ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3164
3165ac_rmfiles=
3166for ac_file in $ac_files
3167do
3168  case $ac_file in
3169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3171  esac
3172done
3173rm -f $ac_rmfiles
3174
3175if { { ac_try="$ac_link_default"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181printf "%s\n" "$ac_try_echo"; } >&5
3182  (eval "$ac_link_default") 2>&5
3183  ac_status=$?
3184  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185  test $ac_status = 0; }
3186then :
3187  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3188# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3189# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3190# so that the user can short-circuit this test for compilers unknown to
3191# Autoconf.
3192for ac_file in $ac_files ''
3193do
3194  test -f "$ac_file" || continue
3195  case $ac_file in
3196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3197	;;
3198    [ab].out )
3199	# We found the default executable, but exeext='' is most
3200	# certainly right.
3201	break;;
3202    *.* )
3203	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3204	then :; else
3205	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206	fi
3207	# We set ac_cv_exeext here because the later test for it is not
3208	# safe: cross compilers may not add the suffix if given an `-o'
3209	# argument, so we may need to know it at that point already.
3210	# Even if this section looks crufty: it has the advantage of
3211	# actually working.
3212	break;;
3213    * )
3214	break;;
3215  esac
3216done
3217test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219else $as_nop
3220  ac_file=''
3221fi
3222if test -z "$ac_file"
3223then :
3224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225printf "%s\n" "no" >&6; }
3226printf "%s\n" "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3229{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3231as_fn_error 77 "C compiler cannot create executables
3232See \`config.log' for more details" "$LINENO" 5; }
3233else $as_nop
3234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3235printf "%s\n" "yes" >&6; }
3236fi
3237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3238printf %s "checking for C compiler default output file name... " >&6; }
3239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3240printf "%s\n" "$ac_file" >&6; }
3241ac_exeext=$ac_cv_exeext
3242
3243rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3244ac_clean_files=$ac_clean_files_save
3245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3246printf %s "checking for suffix of executables... " >&6; }
3247if { { ac_try="$ac_link"
3248case "(($ac_try" in
3249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250  *) ac_try_echo=$ac_try;;
3251esac
3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253printf "%s\n" "$ac_try_echo"; } >&5
3254  (eval "$ac_link") 2>&5
3255  ac_status=$?
3256  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257  test $ac_status = 0; }
3258then :
3259  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3260# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3261# work properly (i.e., refer to `conftest.exe'), while it won't with
3262# `rm'.
3263for ac_file in conftest.exe conftest conftest.*; do
3264  test -f "$ac_file" || continue
3265  case $ac_file in
3266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3267    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268	  break;;
3269    * ) break;;
3270  esac
3271done
3272else $as_nop
3273  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3275as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3276See \`config.log' for more details" "$LINENO" 5; }
3277fi
3278rm -f conftest conftest$ac_cv_exeext
3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3280printf "%s\n" "$ac_cv_exeext" >&6; }
3281
3282rm -f conftest.$ac_ext
3283EXEEXT=$ac_cv_exeext
3284ac_exeext=$EXEEXT
3285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287#include <stdio.h>
3288int
3289main (void)
3290{
3291FILE *f = fopen ("conftest.out", "w");
3292 return ferror (f) || fclose (f) != 0;
3293
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298ac_clean_files="$ac_clean_files conftest.out"
3299# Check that the compiler produces executables we can run.  If not, either
3300# the compiler is broken, or we cross compile.
3301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3302printf %s "checking whether we are cross compiling... " >&6; }
3303if test "$cross_compiling" != yes; then
3304  { { ac_try="$ac_link"
3305case "(($ac_try" in
3306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307  *) ac_try_echo=$ac_try;;
3308esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310printf "%s\n" "$ac_try_echo"; } >&5
3311  (eval "$ac_link") 2>&5
3312  ac_status=$?
3313  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314  test $ac_status = 0; }
3315  if { ac_try='./conftest$ac_cv_exeext'
3316  { { case "(($ac_try" in
3317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318  *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321printf "%s\n" "$ac_try_echo"; } >&5
3322  (eval "$ac_try") 2>&5
3323  ac_status=$?
3324  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325  test $ac_status = 0; }; }; then
3326    cross_compiling=no
3327  else
3328    if test "$cross_compiling" = maybe; then
3329	cross_compiling=yes
3330    else
3331	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3333as_fn_error 77 "cannot run C compiled programs.
3334If you meant to cross compile, use \`--host'.
3335See \`config.log' for more details" "$LINENO" 5; }
3336    fi
3337  fi
3338fi
3339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3340printf "%s\n" "$cross_compiling" >&6; }
3341
3342rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3343ac_clean_files=$ac_clean_files_save
3344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345printf %s "checking for suffix of object files... " >&6; }
3346if test ${ac_cv_objext+y}
3347then :
3348  printf %s "(cached) " >&6
3349else $as_nop
3350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352
3353int
3354main (void)
3355{
3356
3357  ;
3358  return 0;
3359}
3360_ACEOF
3361rm -f conftest.o conftest.obj
3362if { { ac_try="$ac_compile"
3363case "(($ac_try" in
3364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365  *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368printf "%s\n" "$ac_try_echo"; } >&5
3369  (eval "$ac_compile") 2>&5
3370  ac_status=$?
3371  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372  test $ac_status = 0; }
3373then :
3374  for ac_file in conftest.o conftest.obj conftest.*; do
3375  test -f "$ac_file" || continue;
3376  case $ac_file in
3377    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3378    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3379       break;;
3380  esac
3381done
3382else $as_nop
3383  printf "%s\n" "$as_me: failed program was:" >&5
3384sed 's/^/| /' conftest.$ac_ext >&5
3385
3386{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3388as_fn_error $? "cannot compute suffix of object files: cannot compile
3389See \`config.log' for more details" "$LINENO" 5; }
3390fi
3391rm -f conftest.$ac_cv_objext conftest.$ac_ext
3392fi
3393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3394printf "%s\n" "$ac_cv_objext" >&6; }
3395OBJEXT=$ac_cv_objext
3396ac_objext=$OBJEXT
3397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3398printf %s "checking whether the compiler supports GNU C... " >&6; }
3399if test ${ac_cv_c_compiler_gnu+y}
3400then :
3401  printf %s "(cached) " >&6
3402else $as_nop
3403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h.  */
3405
3406int
3407main (void)
3408{
3409#ifndef __GNUC__
3410       choke me
3411#endif
3412
3413  ;
3414  return 0;
3415}
3416_ACEOF
3417if ac_fn_c_try_compile "$LINENO"
3418then :
3419  ac_compiler_gnu=yes
3420else $as_nop
3421  ac_compiler_gnu=no
3422fi
3423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3424ac_cv_c_compiler_gnu=$ac_compiler_gnu
3425
3426fi
3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3428printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
3431if test $ac_compiler_gnu = yes; then
3432  GCC=yes
3433else
3434  GCC=
3435fi
3436ac_test_CFLAGS=${CFLAGS+y}
3437ac_save_CFLAGS=$CFLAGS
3438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3439printf %s "checking whether $CC accepts -g... " >&6; }
3440if test ${ac_cv_prog_cc_g+y}
3441then :
3442  printf %s "(cached) " >&6
3443else $as_nop
3444  ac_save_c_werror_flag=$ac_c_werror_flag
3445   ac_c_werror_flag=yes
3446   ac_cv_prog_cc_g=no
3447   CFLAGS="-g"
3448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450
3451int
3452main (void)
3453{
3454
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459if ac_fn_c_try_compile "$LINENO"
3460then :
3461  ac_cv_prog_cc_g=yes
3462else $as_nop
3463  CFLAGS=""
3464      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465/* end confdefs.h.  */
3466
3467int
3468main (void)
3469{
3470
3471  ;
3472  return 0;
3473}
3474_ACEOF
3475if ac_fn_c_try_compile "$LINENO"
3476then :
3477
3478else $as_nop
3479  ac_c_werror_flag=$ac_save_c_werror_flag
3480	 CFLAGS="-g"
3481	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482/* end confdefs.h.  */
3483
3484int
3485main (void)
3486{
3487
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492if ac_fn_c_try_compile "$LINENO"
3493then :
3494  ac_cv_prog_cc_g=yes
3495fi
3496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3497fi
3498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3499fi
3500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3501   ac_c_werror_flag=$ac_save_c_werror_flag
3502fi
3503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3504printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3505if test $ac_test_CFLAGS; then
3506  CFLAGS=$ac_save_CFLAGS
3507elif test $ac_cv_prog_cc_g = yes; then
3508  if test "$GCC" = yes; then
3509    CFLAGS="-g -O2"
3510  else
3511    CFLAGS="-g"
3512  fi
3513else
3514  if test "$GCC" = yes; then
3515    CFLAGS="-O2"
3516  else
3517    CFLAGS=
3518  fi
3519fi
3520ac_prog_cc_stdc=no
3521if test x$ac_prog_cc_stdc = xno
3522then :
3523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3524printf %s "checking for $CC option to enable C11 features... " >&6; }
3525if test ${ac_cv_prog_cc_c11+y}
3526then :
3527  printf %s "(cached) " >&6
3528else $as_nop
3529  ac_cv_prog_cc_c11=no
3530ac_save_CC=$CC
3531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h.  */
3533$ac_c_conftest_c11_program
3534_ACEOF
3535for ac_arg in '' -std=gnu11
3536do
3537  CC="$ac_save_CC $ac_arg"
3538  if ac_fn_c_try_compile "$LINENO"
3539then :
3540  ac_cv_prog_cc_c11=$ac_arg
3541fi
3542rm -f core conftest.err conftest.$ac_objext conftest.beam
3543  test "x$ac_cv_prog_cc_c11" != "xno" && break
3544done
3545rm -f conftest.$ac_ext
3546CC=$ac_save_CC
3547fi
3548
3549if test "x$ac_cv_prog_cc_c11" = xno
3550then :
3551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3552printf "%s\n" "unsupported" >&6; }
3553else $as_nop
3554  if test "x$ac_cv_prog_cc_c11" = x
3555then :
3556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557printf "%s\n" "none needed" >&6; }
3558else $as_nop
3559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3560printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3561     CC="$CC $ac_cv_prog_cc_c11"
3562fi
3563  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3564  ac_prog_cc_stdc=c11
3565fi
3566fi
3567if test x$ac_prog_cc_stdc = xno
3568then :
3569  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3570printf %s "checking for $CC option to enable C99 features... " >&6; }
3571if test ${ac_cv_prog_cc_c99+y}
3572then :
3573  printf %s "(cached) " >&6
3574else $as_nop
3575  ac_cv_prog_cc_c99=no
3576ac_save_CC=$CC
3577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579$ac_c_conftest_c99_program
3580_ACEOF
3581for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3582do
3583  CC="$ac_save_CC $ac_arg"
3584  if ac_fn_c_try_compile "$LINENO"
3585then :
3586  ac_cv_prog_cc_c99=$ac_arg
3587fi
3588rm -f core conftest.err conftest.$ac_objext conftest.beam
3589  test "x$ac_cv_prog_cc_c99" != "xno" && break
3590done
3591rm -f conftest.$ac_ext
3592CC=$ac_save_CC
3593fi
3594
3595if test "x$ac_cv_prog_cc_c99" = xno
3596then :
3597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598printf "%s\n" "unsupported" >&6; }
3599else $as_nop
3600  if test "x$ac_cv_prog_cc_c99" = x
3601then :
3602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3603printf "%s\n" "none needed" >&6; }
3604else $as_nop
3605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3606printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3607     CC="$CC $ac_cv_prog_cc_c99"
3608fi
3609  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3610  ac_prog_cc_stdc=c99
3611fi
3612fi
3613if test x$ac_prog_cc_stdc = xno
3614then :
3615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3616printf %s "checking for $CC option to enable C89 features... " >&6; }
3617if test ${ac_cv_prog_cc_c89+y}
3618then :
3619  printf %s "(cached) " >&6
3620else $as_nop
3621  ac_cv_prog_cc_c89=no
3622ac_save_CC=$CC
3623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h.  */
3625$ac_c_conftest_c89_program
3626_ACEOF
3627for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3628do
3629  CC="$ac_save_CC $ac_arg"
3630  if ac_fn_c_try_compile "$LINENO"
3631then :
3632  ac_cv_prog_cc_c89=$ac_arg
3633fi
3634rm -f core conftest.err conftest.$ac_objext conftest.beam
3635  test "x$ac_cv_prog_cc_c89" != "xno" && break
3636done
3637rm -f conftest.$ac_ext
3638CC=$ac_save_CC
3639fi
3640
3641if test "x$ac_cv_prog_cc_c89" = xno
3642then :
3643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3644printf "%s\n" "unsupported" >&6; }
3645else $as_nop
3646  if test "x$ac_cv_prog_cc_c89" = x
3647then :
3648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3649printf "%s\n" "none needed" >&6; }
3650else $as_nop
3651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3652printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3653     CC="$CC $ac_cv_prog_cc_c89"
3654fi
3655  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3656  ac_prog_cc_stdc=c89
3657fi
3658fi
3659
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666
3667  ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3673printf %s "checking whether $CC understands -c and -o together... " >&6; }
3674if test ${am_cv_prog_cc_c_o+y}
3675then :
3676  printf %s "(cached) " >&6
3677else $as_nop
3678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679/* end confdefs.h.  */
3680
3681int
3682main (void)
3683{
3684
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689  # Make sure it works both with $CC and with simple cc.
3690  # Following AC_PROG_CC_C_O, we do the test twice because some
3691  # compilers refuse to overwrite an existing .o file with -o,
3692  # though they will create one.
3693  am_cv_prog_cc_c_o=yes
3694  for am_i in 1 2; do
3695    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3696   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); } \
3700         && test -f conftest2.$ac_objext; then
3701      : OK
3702    else
3703      am_cv_prog_cc_c_o=no
3704      break
3705    fi
3706  done
3707  rm -f core conftest*
3708  unset am_i
3709fi
3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3711printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3712if test "$am_cv_prog_cc_c_o" != yes; then
3713   # Losing compiler, so override with the script.
3714   # FIXME: It is wrong to rewrite CC.
3715   # But if we don't then we get into trouble of one sort or another.
3716   # A longer-term fix would be to have automake use am__CC in this case,
3717   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3718   CC="$am_aux_dir/compile $CC"
3719fi
3720ac_ext=c
3721ac_cpp='$CPP $CPPFLAGS'
3722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725
3726
3727
3728# Check whether --enable-largefile was given.
3729if test ${enable_largefile+y}
3730then :
3731  enableval=$enable_largefile;
3732fi
3733
3734if test "$enable_largefile" != no; then
3735
3736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3737printf %s "checking for special C compiler options needed for large files... " >&6; }
3738if test ${ac_cv_sys_largefile_CC+y}
3739then :
3740  printf %s "(cached) " >&6
3741else $as_nop
3742  ac_cv_sys_largefile_CC=no
3743     if test "$GCC" != yes; then
3744       ac_save_CC=$CC
3745       while :; do
3746	 # IRIX 6.2 and later do not support large files by default,
3747	 # so use the C compiler's -n32 option if that helps.
3748	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h.  */
3750#include <sys/types.h>
3751 /* Check that off_t can represent 2**63 - 1 correctly.
3752    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3753    since some C++ compilers masquerading as C compilers
3754    incorrectly reject 9223372036854775807.  */
3755#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3756  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3757		       && LARGE_OFF_T % 2147483647 == 1)
3758		      ? 1 : -1];
3759int
3760main (void)
3761{
3762
3763  ;
3764  return 0;
3765}
3766_ACEOF
3767	 if ac_fn_c_try_compile "$LINENO"
3768then :
3769  break
3770fi
3771rm -f core conftest.err conftest.$ac_objext conftest.beam
3772	 CC="$CC -n32"
3773	 if ac_fn_c_try_compile "$LINENO"
3774then :
3775  ac_cv_sys_largefile_CC=' -n32'; break
3776fi
3777rm -f core conftest.err conftest.$ac_objext conftest.beam
3778	 break
3779       done
3780       CC=$ac_save_CC
3781       rm -f conftest.$ac_ext
3782    fi
3783fi
3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3785printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
3786  if test "$ac_cv_sys_largefile_CC" != no; then
3787    CC=$CC$ac_cv_sys_largefile_CC
3788  fi
3789
3790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3791printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3792if test ${ac_cv_sys_file_offset_bits+y}
3793then :
3794  printf %s "(cached) " >&6
3795else $as_nop
3796  while :; do
3797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799#include <sys/types.h>
3800 /* Check that off_t can represent 2**63 - 1 correctly.
3801    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3802    since some C++ compilers masquerading as C compilers
3803    incorrectly reject 9223372036854775807.  */
3804#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3805  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3806		       && LARGE_OFF_T % 2147483647 == 1)
3807		      ? 1 : -1];
3808int
3809main (void)
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816if ac_fn_c_try_compile "$LINENO"
3817then :
3818  ac_cv_sys_file_offset_bits=no; break
3819fi
3820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823#define _FILE_OFFSET_BITS 64
3824#include <sys/types.h>
3825 /* Check that off_t can represent 2**63 - 1 correctly.
3826    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3827    since some C++ compilers masquerading as C compilers
3828    incorrectly reject 9223372036854775807.  */
3829#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3830  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3831		       && LARGE_OFF_T % 2147483647 == 1)
3832		      ? 1 : -1];
3833int
3834main (void)
3835{
3836
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841if ac_fn_c_try_compile "$LINENO"
3842then :
3843  ac_cv_sys_file_offset_bits=64; break
3844fi
3845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3846  ac_cv_sys_file_offset_bits=unknown
3847  break
3848done
3849fi
3850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3851printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
3852case $ac_cv_sys_file_offset_bits in #(
3853  no | unknown) ;;
3854  *)
3855printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
3856;;
3857esac
3858rm -rf conftest*
3859  if test $ac_cv_sys_file_offset_bits = unknown; then
3860    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3861printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
3862if test ${ac_cv_sys_large_files+y}
3863then :
3864  printf %s "(cached) " >&6
3865else $as_nop
3866  while :; do
3867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h.  */
3869#include <sys/types.h>
3870 /* Check that off_t can represent 2**63 - 1 correctly.
3871    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3872    since some C++ compilers masquerading as C compilers
3873    incorrectly reject 9223372036854775807.  */
3874#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3875  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3876		       && LARGE_OFF_T % 2147483647 == 1)
3877		      ? 1 : -1];
3878int
3879main (void)
3880{
3881
3882  ;
3883  return 0;
3884}
3885_ACEOF
3886if ac_fn_c_try_compile "$LINENO"
3887then :
3888  ac_cv_sys_large_files=no; break
3889fi
3890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892/* end confdefs.h.  */
3893#define _LARGE_FILES 1
3894#include <sys/types.h>
3895 /* Check that off_t can represent 2**63 - 1 correctly.
3896    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3897    since some C++ compilers masquerading as C compilers
3898    incorrectly reject 9223372036854775807.  */
3899#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3900  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3901		       && LARGE_OFF_T % 2147483647 == 1)
3902		      ? 1 : -1];
3903int
3904main (void)
3905{
3906
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911if ac_fn_c_try_compile "$LINENO"
3912then :
3913  ac_cv_sys_large_files=1; break
3914fi
3915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3916  ac_cv_sys_large_files=unknown
3917  break
3918done
3919fi
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3921printf "%s\n" "$ac_cv_sys_large_files" >&6; }
3922case $ac_cv_sys_large_files in #(
3923  no | unknown) ;;
3924  *)
3925printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
3926;;
3927esac
3928rm -rf conftest*
3929  fi
3930fi
3931
3932
3933# Initialize Automake
3934am__api_version='1.16'
3935
3936
3937  # Find a good install program.  We prefer a C program (faster),
3938# so one script is as good as another.  But avoid the broken or
3939# incompatible versions:
3940# SysV /etc/install, /usr/sbin/install
3941# SunOS /usr/etc/install
3942# IRIX /sbin/install
3943# AIX /bin/install
3944# AmigaOS /C/install, which installs bootblocks on floppy discs
3945# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3946# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3947# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3948# OS/2's system install, which has a completely different semantic
3949# ./install, which can be erroneously created by make from ./install.sh.
3950# Reject install programs that cannot install multiple files.
3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3952printf %s "checking for a BSD-compatible install... " >&6; }
3953if test -z "$INSTALL"; then
3954if test ${ac_cv_path_install+y}
3955then :
3956  printf %s "(cached) " >&6
3957else $as_nop
3958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961  IFS=$as_save_IFS
3962  case $as_dir in #(((
3963    '') as_dir=./ ;;
3964    */) ;;
3965    *) as_dir=$as_dir/ ;;
3966  esac
3967    # Account for fact that we put trailing slashes in our PATH walk.
3968case $as_dir in #((
3969  ./ | /[cC]/* | \
3970  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3971  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3972  /usr/ucb/* ) ;;
3973  *)
3974    # OSF1 and SCO ODT 3.0 have their own names for install.
3975    # Don't use installbsd from OSF since it installs stuff as root
3976    # by default.
3977    for ac_prog in ginstall scoinst install; do
3978      for ac_exec_ext in '' $ac_executable_extensions; do
3979	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3980	  if test $ac_prog = install &&
3981	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3982	    # AIX install.  It has an incompatible calling convention.
3983	    :
3984	  elif test $ac_prog = install &&
3985	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3986	    # program-specific install script used by HP pwplus--don't use.
3987	    :
3988	  else
3989	    rm -rf conftest.one conftest.two conftest.dir
3990	    echo one > conftest.one
3991	    echo two > conftest.two
3992	    mkdir conftest.dir
3993	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3994	      test -s conftest.one && test -s conftest.two &&
3995	      test -s conftest.dir/conftest.one &&
3996	      test -s conftest.dir/conftest.two
3997	    then
3998	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3999	      break 3
4000	    fi
4001	  fi
4002	fi
4003      done
4004    done
4005    ;;
4006esac
4007
4008  done
4009IFS=$as_save_IFS
4010
4011rm -rf conftest.one conftest.two conftest.dir
4012
4013fi
4014  if test ${ac_cv_path_install+y}; then
4015    INSTALL=$ac_cv_path_install
4016  else
4017    # As a last resort, use the slow shell script.  Don't cache a
4018    # value for INSTALL within a source directory, because that will
4019    # break other packages using the cache if that directory is
4020    # removed, or if the value is a relative name.
4021    INSTALL=$ac_install_sh
4022  fi
4023fi
4024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4025printf "%s\n" "$INSTALL" >&6; }
4026
4027# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4028# It thinks the first close brace ends the variable substitution.
4029test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4030
4031test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4032
4033test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4034
4035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4036printf %s "checking whether build environment is sane... " >&6; }
4037# Reject unsafe characters in $srcdir or the absolute working directory
4038# name.  Accept space and tab only in the latter.
4039am_lf='
4040'
4041case `pwd` in
4042  *[\\\"\#\$\&\'\`$am_lf]*)
4043    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4044esac
4045case $srcdir in
4046  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4047    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4048esac
4049
4050# Do 'set' in a subshell so we don't clobber the current shell's
4051# arguments.  Must try -L first in case configure is actually a
4052# symlink; some systems play weird games with the mod time of symlinks
4053# (eg FreeBSD returns the mod time of the symlink's containing
4054# directory).
4055if (
4056   am_has_slept=no
4057   for am_try in 1 2; do
4058     echo "timestamp, slept: $am_has_slept" > conftest.file
4059     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4060     if test "$*" = "X"; then
4061	# -L didn't work.
4062	set X `ls -t "$srcdir/configure" conftest.file`
4063     fi
4064     if test "$*" != "X $srcdir/configure conftest.file" \
4065	&& test "$*" != "X conftest.file $srcdir/configure"; then
4066
4067	# If neither matched, then we have a broken ls.  This can happen
4068	# if, for instance, CONFIG_SHELL is bash and it inherits a
4069	# broken ls alias from the environment.  This has actually
4070	# happened.  Such a system could not be considered "sane".
4071	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4072  alias in your environment" "$LINENO" 5
4073     fi
4074     if test "$2" = conftest.file || test $am_try -eq 2; then
4075       break
4076     fi
4077     # Just in case.
4078     sleep 1
4079     am_has_slept=yes
4080   done
4081   test "$2" = conftest.file
4082   )
4083then
4084   # Ok.
4085   :
4086else
4087   as_fn_error $? "newly created file is older than distributed files!
4088Check your system clock" "$LINENO" 5
4089fi
4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091printf "%s\n" "yes" >&6; }
4092# If we didn't sleep, we still need to ensure time stamps of config.status and
4093# generated files are strictly newer.
4094am_sleep_pid=
4095if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4096  ( sleep 1 ) &
4097  am_sleep_pid=$!
4098fi
4099
4100rm -f conftest.file
4101
4102test "$program_prefix" != NONE &&
4103  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4104# Use a double $ so make ignores it.
4105test "$program_suffix" != NONE &&
4106  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4107# Double any \ or $.
4108# By default was `s,x,x', remove it if useless.
4109ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4110program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4111
4112
4113  if test x"${MISSING+set}" != xset; then
4114  MISSING="\${SHELL} '$am_aux_dir/missing'"
4115fi
4116# Use eval to expand $SHELL
4117if eval "$MISSING --is-lightweight"; then
4118  am_missing_run="$MISSING "
4119else
4120  am_missing_run=
4121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4122printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4123fi
4124
4125if test x"${install_sh+set}" != xset; then
4126  case $am_aux_dir in
4127  *\ * | *\	*)
4128    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4129  *)
4130    install_sh="\${SHELL} $am_aux_dir/install-sh"
4131  esac
4132fi
4133
4134# Installed binaries are usually stripped using 'strip' when the user
4135# run "make install-strip".  However 'strip' might not be the right
4136# tool to use in cross-compilation environments, therefore Automake
4137# will honor the 'STRIP' environment variable to overrule this program.
4138if test "$cross_compiling" != no; then
4139  if test -n "$ac_tool_prefix"; then
4140  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4141set dummy ${ac_tool_prefix}strip; ac_word=$2
4142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143printf %s "checking for $ac_word... " >&6; }
4144if test ${ac_cv_prog_STRIP+y}
4145then :
4146  printf %s "(cached) " >&6
4147else $as_nop
4148  if test -n "$STRIP"; then
4149  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154  IFS=$as_save_IFS
4155  case $as_dir in #(((
4156    '') as_dir=./ ;;
4157    */) ;;
4158    *) as_dir=$as_dir/ ;;
4159  esac
4160    for ac_exec_ext in '' $ac_executable_extensions; do
4161  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4162    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4163    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4164    break 2
4165  fi
4166done
4167  done
4168IFS=$as_save_IFS
4169
4170fi
4171fi
4172STRIP=$ac_cv_prog_STRIP
4173if test -n "$STRIP"; then
4174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4175printf "%s\n" "$STRIP" >&6; }
4176else
4177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178printf "%s\n" "no" >&6; }
4179fi
4180
4181
4182fi
4183if test -z "$ac_cv_prog_STRIP"; then
4184  ac_ct_STRIP=$STRIP
4185  # Extract the first word of "strip", so it can be a program name with args.
4186set dummy strip; ac_word=$2
4187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188printf %s "checking for $ac_word... " >&6; }
4189if test ${ac_cv_prog_ac_ct_STRIP+y}
4190then :
4191  printf %s "(cached) " >&6
4192else $as_nop
4193  if test -n "$ac_ct_STRIP"; then
4194  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4195else
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199  IFS=$as_save_IFS
4200  case $as_dir in #(((
4201    '') as_dir=./ ;;
4202    */) ;;
4203    *) as_dir=$as_dir/ ;;
4204  esac
4205    for ac_exec_ext in '' $ac_executable_extensions; do
4206  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4207    ac_cv_prog_ac_ct_STRIP="strip"
4208    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4209    break 2
4210  fi
4211done
4212  done
4213IFS=$as_save_IFS
4214
4215fi
4216fi
4217ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4218if test -n "$ac_ct_STRIP"; then
4219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4220printf "%s\n" "$ac_ct_STRIP" >&6; }
4221else
4222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223printf "%s\n" "no" >&6; }
4224fi
4225
4226  if test "x$ac_ct_STRIP" = x; then
4227    STRIP=":"
4228  else
4229    case $cross_compiling:$ac_tool_warned in
4230yes:)
4231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233ac_tool_warned=yes ;;
4234esac
4235    STRIP=$ac_ct_STRIP
4236  fi
4237else
4238  STRIP="$ac_cv_prog_STRIP"
4239fi
4240
4241fi
4242INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4243
4244
4245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4246printf %s "checking for a race-free mkdir -p... " >&6; }
4247if test -z "$MKDIR_P"; then
4248  if test ${ac_cv_path_mkdir+y}
4249then :
4250  printf %s "(cached) " >&6
4251else $as_nop
4252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4254do
4255  IFS=$as_save_IFS
4256  case $as_dir in #(((
4257    '') as_dir=./ ;;
4258    */) ;;
4259    *) as_dir=$as_dir/ ;;
4260  esac
4261    for ac_prog in mkdir gmkdir; do
4262	 for ac_exec_ext in '' $ac_executable_extensions; do
4263	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4264	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4265	     'mkdir ('*'coreutils) '* | \
4266	     'BusyBox '* | \
4267	     'mkdir (fileutils) '4.1*)
4268	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4269	       break 3;;
4270	   esac
4271	 done
4272       done
4273  done
4274IFS=$as_save_IFS
4275
4276fi
4277
4278  test -d ./--version && rmdir ./--version
4279  if test ${ac_cv_path_mkdir+y}; then
4280    MKDIR_P="$ac_cv_path_mkdir -p"
4281  else
4282    # As a last resort, use the slow shell script.  Don't cache a
4283    # value for MKDIR_P within a source directory, because that will
4284    # break other packages using the cache if that directory is
4285    # removed, or if the value is a relative name.
4286    MKDIR_P="$ac_install_sh -d"
4287  fi
4288fi
4289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4290printf "%s\n" "$MKDIR_P" >&6; }
4291
4292for ac_prog in gawk mawk nawk awk
4293do
4294  # Extract the first word of "$ac_prog", so it can be a program name with args.
4295set dummy $ac_prog; ac_word=$2
4296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297printf %s "checking for $ac_word... " >&6; }
4298if test ${ac_cv_prog_AWK+y}
4299then :
4300  printf %s "(cached) " >&6
4301else $as_nop
4302  if test -n "$AWK"; then
4303  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4304else
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308  IFS=$as_save_IFS
4309  case $as_dir in #(((
4310    '') as_dir=./ ;;
4311    */) ;;
4312    *) as_dir=$as_dir/ ;;
4313  esac
4314    for ac_exec_ext in '' $ac_executable_extensions; do
4315  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4316    ac_cv_prog_AWK="$ac_prog"
4317    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4318    break 2
4319  fi
4320done
4321  done
4322IFS=$as_save_IFS
4323
4324fi
4325fi
4326AWK=$ac_cv_prog_AWK
4327if test -n "$AWK"; then
4328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4329printf "%s\n" "$AWK" >&6; }
4330else
4331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332printf "%s\n" "no" >&6; }
4333fi
4334
4335
4336  test -n "$AWK" && break
4337done
4338
4339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4340printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4341set x ${MAKE-make}
4342ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4343if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4344then :
4345  printf %s "(cached) " >&6
4346else $as_nop
4347  cat >conftest.make <<\_ACEOF
4348SHELL = /bin/sh
4349all:
4350	@echo '@@@%%%=$(MAKE)=@@@%%%'
4351_ACEOF
4352# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4353case `${MAKE-make} -f conftest.make 2>/dev/null` in
4354  *@@@%%%=?*=@@@%%%*)
4355    eval ac_cv_prog_make_${ac_make}_set=yes;;
4356  *)
4357    eval ac_cv_prog_make_${ac_make}_set=no;;
4358esac
4359rm -f conftest.make
4360fi
4361if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363printf "%s\n" "yes" >&6; }
4364  SET_MAKE=
4365else
4366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367printf "%s\n" "no" >&6; }
4368  SET_MAKE="MAKE=${MAKE-make}"
4369fi
4370
4371rm -rf .tst 2>/dev/null
4372mkdir .tst 2>/dev/null
4373if test -d .tst; then
4374  am__leading_dot=.
4375else
4376  am__leading_dot=_
4377fi
4378rmdir .tst 2>/dev/null
4379
4380DEPDIR="${am__leading_dot}deps"
4381
4382ac_config_commands="$ac_config_commands depfiles"
4383
4384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4385printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4386cat > confinc.mk << 'END'
4387am__doit:
4388	@echo this is the am__doit target >confinc.out
4389.PHONY: am__doit
4390END
4391am__include="#"
4392am__quote=
4393# BSD make does it like this.
4394echo '.include "confinc.mk" # ignored' > confmf.BSD
4395# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4396echo 'include confinc.mk # ignored' > confmf.GNU
4397_am_result=no
4398for s in GNU BSD; do
4399  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4400   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }
4404  case $?:`cat confinc.out 2>/dev/null` in #(
4405  '0:this is the am__doit target') :
4406    case $s in #(
4407  BSD) :
4408    am__include='.include' am__quote='"' ;; #(
4409  *) :
4410    am__include='include' am__quote='' ;;
4411esac ;; #(
4412  *) :
4413     ;;
4414esac
4415  if test "$am__include" != "#"; then
4416    _am_result="yes ($s style)"
4417    break
4418  fi
4419done
4420rm -f confinc.* confmf.*
4421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4422printf "%s\n" "${_am_result}" >&6; }
4423
4424# Check whether --enable-dependency-tracking was given.
4425if test ${enable_dependency_tracking+y}
4426then :
4427  enableval=$enable_dependency_tracking;
4428fi
4429
4430if test "x$enable_dependency_tracking" != xno; then
4431  am_depcomp="$ac_aux_dir/depcomp"
4432  AMDEPBACKSLASH='\'
4433  am__nodep='_no'
4434fi
4435 if test "x$enable_dependency_tracking" != xno; then
4436  AMDEP_TRUE=
4437  AMDEP_FALSE='#'
4438else
4439  AMDEP_TRUE='#'
4440  AMDEP_FALSE=
4441fi
4442
4443
4444# Check whether --enable-silent-rules was given.
4445if test ${enable_silent_rules+y}
4446then :
4447  enableval=$enable_silent_rules;
4448fi
4449
4450case $enable_silent_rules in # (((
4451  yes) AM_DEFAULT_VERBOSITY=0;;
4452   no) AM_DEFAULT_VERBOSITY=1;;
4453    *) AM_DEFAULT_VERBOSITY=1;;
4454esac
4455am_make=${MAKE-make}
4456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4457printf %s "checking whether $am_make supports nested variables... " >&6; }
4458if test ${am_cv_make_support_nested_variables+y}
4459then :
4460  printf %s "(cached) " >&6
4461else $as_nop
4462  if printf "%s\n" 'TRUE=$(BAR$(V))
4463BAR0=false
4464BAR1=true
4465V=1
4466am__doit:
4467	@$(TRUE)
4468.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4469  am_cv_make_support_nested_variables=yes
4470else
4471  am_cv_make_support_nested_variables=no
4472fi
4473fi
4474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4475printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4476if test $am_cv_make_support_nested_variables = yes; then
4477    AM_V='$(V)'
4478  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4479else
4480  AM_V=$AM_DEFAULT_VERBOSITY
4481  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4482fi
4483AM_BACKSLASH='\'
4484
4485if test "`cd $srcdir && pwd`" != "`pwd`"; then
4486  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4487  # is not polluted with repeated "-I."
4488  am__isrc=' -I$(srcdir)'
4489  # test to see if srcdir already configured
4490  if test -f $srcdir/config.status; then
4491    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4492  fi
4493fi
4494
4495# test whether we have cygpath
4496if test -z "$CYGPATH_W"; then
4497  if (cygpath --version) >/dev/null 2>/dev/null; then
4498    CYGPATH_W='cygpath -w'
4499  else
4500    CYGPATH_W=echo
4501  fi
4502fi
4503
4504
4505# Define the identity of the package.
4506 PACKAGE='xf86-video-vmware'
4507 VERSION='13.4.0'
4508
4509
4510printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4511
4512
4513printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4514
4515# Some tools Automake needs.
4516
4517ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4518
4519
4520AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4521
4522
4523AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4524
4525
4526AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4527
4528
4529MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4530
4531# For better backward compatibility.  To be removed once Automake 1.9.x
4532# dies out for good.  For more background, see:
4533# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4534# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4535mkdir_p='$(MKDIR_P)'
4536
4537# We need awk for the "check" target (and possibly the TAP driver).  The
4538# system "awk" is bad on some platforms.
4539# Always define AMTAR for backward compatibility.  Yes, it's still used
4540# in the wild :-(  We should find a proper way to deprecate it ...
4541AMTAR='$${TAR-tar}'
4542
4543
4544# We'll loop over all known methods to create a tar archive until one works.
4545_am_tools='gnutar  pax cpio none'
4546
4547am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4548
4549
4550
4551
4552
4553depcc="$CC"   am_compiler_list=
4554
4555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4556printf %s "checking dependency style of $depcc... " >&6; }
4557if test ${am_cv_CC_dependencies_compiler_type+y}
4558then :
4559  printf %s "(cached) " >&6
4560else $as_nop
4561  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4562  # We make a subdir and do the tests there.  Otherwise we can end up
4563  # making bogus files that we don't know about and never remove.  For
4564  # instance it was reported that on HP-UX the gcc test will end up
4565  # making a dummy file named 'D' -- because '-MD' means "put the output
4566  # in D".
4567  rm -rf conftest.dir
4568  mkdir conftest.dir
4569  # Copy depcomp to subdir because otherwise we won't find it if we're
4570  # using a relative directory.
4571  cp "$am_depcomp" conftest.dir
4572  cd conftest.dir
4573  # We will build objects and dependencies in a subdirectory because
4574  # it helps to detect inapplicable dependency modes.  For instance
4575  # both Tru64's cc and ICC support -MD to output dependencies as a
4576  # side effect of compilation, but ICC will put the dependencies in
4577  # the current directory while Tru64 will put them in the object
4578  # directory.
4579  mkdir sub
4580
4581  am_cv_CC_dependencies_compiler_type=none
4582  if test "$am_compiler_list" = ""; then
4583     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4584  fi
4585  am__universal=false
4586  case " $depcc " in #(
4587     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4588     esac
4589
4590  for depmode in $am_compiler_list; do
4591    # Setup a source with many dependencies, because some compilers
4592    # like to wrap large dependency lists on column 80 (with \), and
4593    # we should not choose a depcomp mode which is confused by this.
4594    #
4595    # We need to recreate these files for each test, as the compiler may
4596    # overwrite some of them when testing with obscure command lines.
4597    # This happens at least with the AIX C compiler.
4598    : > sub/conftest.c
4599    for i in 1 2 3 4 5 6; do
4600      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4601      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4602      # Solaris 10 /bin/sh.
4603      echo '/* dummy */' > sub/conftst$i.h
4604    done
4605    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4606
4607    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4608    # mode.  It turns out that the SunPro C++ compiler does not properly
4609    # handle '-M -o', and we need to detect this.  Also, some Intel
4610    # versions had trouble with output in subdirs.
4611    am__obj=sub/conftest.${OBJEXT-o}
4612    am__minus_obj="-o $am__obj"
4613    case $depmode in
4614    gcc)
4615      # This depmode causes a compiler race in universal mode.
4616      test "$am__universal" = false || continue
4617      ;;
4618    nosideeffect)
4619      # After this tag, mechanisms are not by side-effect, so they'll
4620      # only be used when explicitly requested.
4621      if test "x$enable_dependency_tracking" = xyes; then
4622	continue
4623      else
4624	break
4625      fi
4626      ;;
4627    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4628      # This compiler won't grok '-c -o', but also, the minuso test has
4629      # not run yet.  These depmodes are late enough in the game, and
4630      # so weak that their functioning should not be impacted.
4631      am__obj=conftest.${OBJEXT-o}
4632      am__minus_obj=
4633      ;;
4634    none) break ;;
4635    esac
4636    if depmode=$depmode \
4637       source=sub/conftest.c object=$am__obj \
4638       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4639       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4640         >/dev/null 2>conftest.err &&
4641       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4642       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4643       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4644       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4645      # icc doesn't choke on unknown options, it will just issue warnings
4646      # or remarks (even with -Werror).  So we grep stderr for any message
4647      # that says an option was ignored or not supported.
4648      # When given -MP, icc 7.0 and 7.1 complain thusly:
4649      #   icc: Command line warning: ignoring option '-M'; no argument required
4650      # The diagnosis changed in icc 8.0:
4651      #   icc: Command line remark: option '-MP' not supported
4652      if (grep 'ignoring option' conftest.err ||
4653          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4654        am_cv_CC_dependencies_compiler_type=$depmode
4655        break
4656      fi
4657    fi
4658  done
4659
4660  cd ..
4661  rm -rf conftest.dir
4662else
4663  am_cv_CC_dependencies_compiler_type=none
4664fi
4665
4666fi
4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4668printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4669CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4670
4671 if
4672  test "x$enable_dependency_tracking" != xno \
4673  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4674  am__fastdepCC_TRUE=
4675  am__fastdepCC_FALSE='#'
4676else
4677  am__fastdepCC_TRUE='#'
4678  am__fastdepCC_FALSE=
4679fi
4680
4681
4682# Variables for tags utilities; see am/tags.am
4683if test -z "$CTAGS"; then
4684  CTAGS=ctags
4685fi
4686
4687if test -z "$ETAGS"; then
4688  ETAGS=etags
4689fi
4690
4691if test -z "$CSCOPE"; then
4692  CSCOPE=cscope
4693fi
4694
4695
4696
4697# POSIX will say in a future version that running "rm -f" with no argument
4698# is OK; and we want to be able to make that assumption in our Makefile
4699# recipes.  So use an aggressive probe to check that the usage we want is
4700# actually supported "in the wild" to an acceptable degree.
4701# See automake bug#10828.
4702# To make any issue more visible, cause the running configure to be aborted
4703# by default if the 'rm' program in use doesn't match our expectations; the
4704# user can still override this though.
4705if rm -f && rm -fr && rm -rf; then : OK; else
4706  cat >&2 <<'END'
4707Oops!
4708
4709Your 'rm' program seems unable to run without file operands specified
4710on the command line, even when the '-f' option is present.  This is contrary
4711to the behaviour of most rm programs out there, and not conforming with
4712the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4713
4714Please tell bug-automake@gnu.org about your system, including the value
4715of your $PATH and any error possibly output before this message.  This
4716can help us improve future automake versions.
4717
4718END
4719  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4720    echo 'Configuration will proceed anyway, since you have set the' >&2
4721    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4722    echo >&2
4723  else
4724    cat >&2 <<'END'
4725Aborting the configuration process, to ensure you take notice of the issue.
4726
4727You can download and install GNU coreutils to get an 'rm' implementation
4728that behaves properly: <https://www.gnu.org/software/coreutils/>.
4729
4730If you want to complete the configuration process using your problematic
4731'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4732to "yes", and re-run configure.
4733
4734END
4735    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4736  fi
4737fi
4738
4739
4740# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4754printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4755if test ${ac_cv_c_undeclared_builtin_options+y}
4756then :
4757  printf %s "(cached) " >&6
4758else $as_nop
4759  ac_save_CFLAGS=$CFLAGS
4760   ac_cv_c_undeclared_builtin_options='cannot detect'
4761   for ac_arg in '' -fno-builtin; do
4762     CFLAGS="$ac_save_CFLAGS $ac_arg"
4763     # This test program should *not* compile successfully.
4764     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h.  */
4766
4767int
4768main (void)
4769{
4770(void) strchr;
4771  ;
4772  return 0;
4773}
4774_ACEOF
4775if ac_fn_c_try_compile "$LINENO"
4776then :
4777
4778else $as_nop
4779  # This test program should compile successfully.
4780        # No library function is consistently available on
4781        # freestanding implementations, so test against a dummy
4782        # declaration.  Include always-available headers on the
4783        # off chance that they somehow elicit warnings.
4784        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h.  */
4786#include <float.h>
4787#include <limits.h>
4788#include <stdarg.h>
4789#include <stddef.h>
4790extern void ac_decl (int, char *);
4791
4792int
4793main (void)
4794{
4795(void) ac_decl (0, (char *) 0);
4796  (void) ac_decl;
4797
4798  ;
4799  return 0;
4800}
4801_ACEOF
4802if ac_fn_c_try_compile "$LINENO"
4803then :
4804  if test x"$ac_arg" = x
4805then :
4806  ac_cv_c_undeclared_builtin_options='none needed'
4807else $as_nop
4808  ac_cv_c_undeclared_builtin_options=$ac_arg
4809fi
4810          break
4811fi
4812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4815    done
4816    CFLAGS=$ac_save_CFLAGS
4817
4818fi
4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4820printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4821  case $ac_cv_c_undeclared_builtin_options in #(
4822  'cannot detect') :
4823    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4824printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4825as_fn_error $? "cannot make $CC report undeclared builtins
4826See \`config.log' for more details" "$LINENO" 5; } ;; #(
4827  'none needed') :
4828    ac_c_undeclared_builtin_options='' ;; #(
4829  *) :
4830    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4831esac
4832
4833ac_header= ac_cache=
4834for ac_item in $ac_header_c_list
4835do
4836  if test $ac_cache; then
4837    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4838    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4839      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4840    fi
4841    ac_header= ac_cache=
4842  elif test $ac_header; then
4843    ac_cache=$ac_item
4844  else
4845    ac_header=$ac_item
4846  fi
4847done
4848
4849
4850
4851
4852
4853
4854
4855
4856if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4857then :
4858
4859printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4860
4861fi
4862
4863
4864
4865
4866ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4867if test "x$ac_cv_have_decl___clang__" = xyes
4868then :
4869  CLANGCC="yes"
4870else $as_nop
4871  CLANGCC="no"
4872fi
4873ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4874if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4875then :
4876  INTELCC="yes"
4877else $as_nop
4878  INTELCC="no"
4879fi
4880ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4881if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4882then :
4883  SUNCC="yes"
4884else $as_nop
4885  SUNCC="no"
4886fi
4887
4888
4889
4890
4891
4892
4893
4894
4895if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4896	if test -n "$ac_tool_prefix"; then
4897  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4898set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900printf %s "checking for $ac_word... " >&6; }
4901if test ${ac_cv_path_PKG_CONFIG+y}
4902then :
4903  printf %s "(cached) " >&6
4904else $as_nop
4905  case $PKG_CONFIG in
4906  [\\/]* | ?:[\\/]*)
4907  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4908  ;;
4909  *)
4910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913  IFS=$as_save_IFS
4914  case $as_dir in #(((
4915    '') as_dir=./ ;;
4916    */) ;;
4917    *) as_dir=$as_dir/ ;;
4918  esac
4919    for ac_exec_ext in '' $ac_executable_extensions; do
4920  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4921    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4922    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4923    break 2
4924  fi
4925done
4926  done
4927IFS=$as_save_IFS
4928
4929  ;;
4930esac
4931fi
4932PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4933if test -n "$PKG_CONFIG"; then
4934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4935printf "%s\n" "$PKG_CONFIG" >&6; }
4936else
4937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938printf "%s\n" "no" >&6; }
4939fi
4940
4941
4942fi
4943if test -z "$ac_cv_path_PKG_CONFIG"; then
4944  ac_pt_PKG_CONFIG=$PKG_CONFIG
4945  # Extract the first word of "pkg-config", so it can be a program name with args.
4946set dummy pkg-config; ac_word=$2
4947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948printf %s "checking for $ac_word... " >&6; }
4949if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4950then :
4951  printf %s "(cached) " >&6
4952else $as_nop
4953  case $ac_pt_PKG_CONFIG in
4954  [\\/]* | ?:[\\/]*)
4955  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4956  ;;
4957  *)
4958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961  IFS=$as_save_IFS
4962  case $as_dir in #(((
4963    '') as_dir=./ ;;
4964    */) ;;
4965    *) as_dir=$as_dir/ ;;
4966  esac
4967    for ac_exec_ext in '' $ac_executable_extensions; do
4968  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4969    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4970    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4971    break 2
4972  fi
4973done
4974  done
4975IFS=$as_save_IFS
4976
4977  ;;
4978esac
4979fi
4980ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4981if test -n "$ac_pt_PKG_CONFIG"; then
4982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4983printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4984else
4985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986printf "%s\n" "no" >&6; }
4987fi
4988
4989  if test "x$ac_pt_PKG_CONFIG" = x; then
4990    PKG_CONFIG=""
4991  else
4992    case $cross_compiling:$ac_tool_warned in
4993yes:)
4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4995printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4996ac_tool_warned=yes ;;
4997esac
4998    PKG_CONFIG=$ac_pt_PKG_CONFIG
4999  fi
5000else
5001  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5002fi
5003
5004fi
5005if test -n "$PKG_CONFIG"; then
5006	_pkg_min_version=0.9.0
5007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5008printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5009	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5011printf "%s\n" "yes" >&6; }
5012	else
5013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014printf "%s\n" "no" >&6; }
5015		PKG_CONFIG=""
5016	fi
5017fi
5018
5019
5020  # Make sure we can run config.sub.
5021$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5022  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5023
5024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5025printf %s "checking build system type... " >&6; }
5026if test ${ac_cv_build+y}
5027then :
5028  printf %s "(cached) " >&6
5029else $as_nop
5030  ac_build_alias=$build_alias
5031test "x$ac_build_alias" = x &&
5032  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5033test "x$ac_build_alias" = x &&
5034  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5035ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5036  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5037
5038fi
5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5040printf "%s\n" "$ac_cv_build" >&6; }
5041case $ac_cv_build in
5042*-*-*) ;;
5043*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5044esac
5045build=$ac_cv_build
5046ac_save_IFS=$IFS; IFS='-'
5047set x $ac_cv_build
5048shift
5049build_cpu=$1
5050build_vendor=$2
5051shift; shift
5052# Remember, the first character of IFS is used to create $*,
5053# except with old shells:
5054build_os=$*
5055IFS=$ac_save_IFS
5056case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5057
5058
5059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5060printf %s "checking host system type... " >&6; }
5061if test ${ac_cv_host+y}
5062then :
5063  printf %s "(cached) " >&6
5064else $as_nop
5065  if test "x$host_alias" = x; then
5066  ac_cv_host=$ac_cv_build
5067else
5068  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5069    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5070fi
5071
5072fi
5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5074printf "%s\n" "$ac_cv_host" >&6; }
5075case $ac_cv_host in
5076*-*-*) ;;
5077*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5078esac
5079host=$ac_cv_host
5080ac_save_IFS=$IFS; IFS='-'
5081set x $ac_cv_host
5082shift
5083host_cpu=$1
5084host_vendor=$2
5085shift; shift
5086# Remember, the first character of IFS is used to create $*,
5087# except with old shells:
5088host_os=$*
5089IFS=$ac_save_IFS
5090case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5091
5092
5093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5094printf %s "checking for a sed that does not truncate output... " >&6; }
5095if test ${ac_cv_path_SED+y}
5096then :
5097  printf %s "(cached) " >&6
5098else $as_nop
5099            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5100     for ac_i in 1 2 3 4 5 6 7; do
5101       ac_script="$ac_script$as_nl$ac_script"
5102     done
5103     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5104     { ac_script=; unset ac_script;}
5105     if test -z "$SED"; then
5106  ac_path_SED_found=false
5107  # Loop through the user's path and test for each of PROGNAME-LIST
5108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111  IFS=$as_save_IFS
5112  case $as_dir in #(((
5113    '') as_dir=./ ;;
5114    */) ;;
5115    *) as_dir=$as_dir/ ;;
5116  esac
5117    for ac_prog in sed gsed
5118   do
5119    for ac_exec_ext in '' $ac_executable_extensions; do
5120      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5121      as_fn_executable_p "$ac_path_SED" || continue
5122# Check for GNU ac_path_SED and select it if it is found.
5123  # Check for GNU $ac_path_SED
5124case `"$ac_path_SED" --version 2>&1` in
5125*GNU*)
5126  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5127*)
5128  ac_count=0
5129  printf %s 0123456789 >"conftest.in"
5130  while :
5131  do
5132    cat "conftest.in" "conftest.in" >"conftest.tmp"
5133    mv "conftest.tmp" "conftest.in"
5134    cp "conftest.in" "conftest.nl"
5135    printf "%s\n" '' >> "conftest.nl"
5136    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5137    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5138    as_fn_arith $ac_count + 1 && ac_count=$as_val
5139    if test $ac_count -gt ${ac_path_SED_max-0}; then
5140      # Best one so far, save it but keep looking for a better one
5141      ac_cv_path_SED="$ac_path_SED"
5142      ac_path_SED_max=$ac_count
5143    fi
5144    # 10*(2^10) chars as input seems more than enough
5145    test $ac_count -gt 10 && break
5146  done
5147  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5148esac
5149
5150      $ac_path_SED_found && break 3
5151    done
5152  done
5153  done
5154IFS=$as_save_IFS
5155  if test -z "$ac_cv_path_SED"; then
5156    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5157  fi
5158else
5159  ac_cv_path_SED=$SED
5160fi
5161
5162fi
5163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5164printf "%s\n" "$ac_cv_path_SED" >&6; }
5165 SED="$ac_cv_path_SED"
5166  rm -f conftest.sed
5167
5168
5169
5170
5171
5172
5173# Check whether --enable-selective-werror was given.
5174if test ${enable_selective_werror+y}
5175then :
5176  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5177else $as_nop
5178  SELECTIVE_WERROR=yes
5179fi
5180
5181
5182
5183
5184
5185# -v is too short to test reliably with XORG_TESTSET_CFLAG
5186if test "x$SUNCC" = "xyes"; then
5187    BASE_CFLAGS="-v"
5188else
5189    BASE_CFLAGS=""
5190fi
5191
5192# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206xorg_testset_save_CFLAGS="$CFLAGS"
5207
5208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5212if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5213then :
5214  printf %s "(cached) " >&6
5215else $as_nop
5216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217/* end confdefs.h.  */
5218int i;
5219_ACEOF
5220if ac_fn_c_try_compile "$LINENO"
5221then :
5222  xorg_cv_cc_flag_unknown_warning_option=yes
5223else $as_nop
5224  xorg_cv_cc_flag_unknown_warning_option=no
5225fi
5226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5227fi
5228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5231	CFLAGS="$xorg_testset_save_CFLAGS"
5232fi
5233
5234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5237	fi
5238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5241if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5242then :
5243  printf %s "(cached) " >&6
5244else $as_nop
5245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246/* end confdefs.h.  */
5247int i;
5248_ACEOF
5249if ac_fn_c_try_compile "$LINENO"
5250then :
5251  xorg_cv_cc_flag_unused_command_line_argument=yes
5252else $as_nop
5253  xorg_cv_cc_flag_unused_command_line_argument=no
5254fi
5255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5256fi
5257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5260	CFLAGS="$xorg_testset_save_CFLAGS"
5261fi
5262
5263found="no"
5264
5265	if test $found = "no" ; then
5266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268		fi
5269
5270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5272		fi
5273
5274		CFLAGS="$CFLAGS -Wall"
5275
5276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5277printf %s "checking if $CC supports -Wall... " >&6; }
5278		cacheid=xorg_cv_cc_flag__Wall
5279		if eval test \${$cacheid+y}
5280then :
5281  printf %s "(cached) " >&6
5282else $as_nop
5283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284/* end confdefs.h.  */
5285int i;
5286int
5287main (void)
5288{
5289
5290  ;
5291  return 0;
5292}
5293_ACEOF
5294if ac_fn_c_try_link "$LINENO"
5295then :
5296  eval $cacheid=yes
5297else $as_nop
5298  eval $cacheid=no
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.beam \
5301    conftest$ac_exeext conftest.$ac_ext
5302fi
5303
5304
5305		CFLAGS="$xorg_testset_save_CFLAGS"
5306
5307		eval supported=\$$cacheid
5308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5309printf "%s\n" "$supported" >&6; }
5310		if test "$supported" = "yes" ; then
5311			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5312			found="yes"
5313		fi
5314	fi
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330xorg_testset_save_CFLAGS="$CFLAGS"
5331
5332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5335printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5336if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5337then :
5338  printf %s "(cached) " >&6
5339else $as_nop
5340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h.  */
5342int i;
5343_ACEOF
5344if ac_fn_c_try_compile "$LINENO"
5345then :
5346  xorg_cv_cc_flag_unknown_warning_option=yes
5347else $as_nop
5348  xorg_cv_cc_flag_unknown_warning_option=no
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5351fi
5352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5355	CFLAGS="$xorg_testset_save_CFLAGS"
5356fi
5357
5358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361	fi
5362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5365if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5366then :
5367  printf %s "(cached) " >&6
5368else $as_nop
5369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h.  */
5371int i;
5372_ACEOF
5373if ac_fn_c_try_compile "$LINENO"
5374then :
5375  xorg_cv_cc_flag_unused_command_line_argument=yes
5376else $as_nop
5377  xorg_cv_cc_flag_unused_command_line_argument=no
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5380fi
5381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5384	CFLAGS="$xorg_testset_save_CFLAGS"
5385fi
5386
5387found="no"
5388
5389	if test $found = "no" ; then
5390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5392		fi
5393
5394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5396		fi
5397
5398		CFLAGS="$CFLAGS -Wpointer-arith"
5399
5400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5401printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5402		cacheid=xorg_cv_cc_flag__Wpointer_arith
5403		if eval test \${$cacheid+y}
5404then :
5405  printf %s "(cached) " >&6
5406else $as_nop
5407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h.  */
5409int i;
5410int
5411main (void)
5412{
5413
5414  ;
5415  return 0;
5416}
5417_ACEOF
5418if ac_fn_c_try_link "$LINENO"
5419then :
5420  eval $cacheid=yes
5421else $as_nop
5422  eval $cacheid=no
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.beam \
5425    conftest$ac_exeext conftest.$ac_ext
5426fi
5427
5428
5429		CFLAGS="$xorg_testset_save_CFLAGS"
5430
5431		eval supported=\$$cacheid
5432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5433printf "%s\n" "$supported" >&6; }
5434		if test "$supported" = "yes" ; then
5435			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5436			found="yes"
5437		fi
5438	fi
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454xorg_testset_save_CFLAGS="$CFLAGS"
5455
5456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5458	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5460if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5461then :
5462  printf %s "(cached) " >&6
5463else $as_nop
5464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465/* end confdefs.h.  */
5466int i;
5467_ACEOF
5468if ac_fn_c_try_compile "$LINENO"
5469then :
5470  xorg_cv_cc_flag_unknown_warning_option=yes
5471else $as_nop
5472  xorg_cv_cc_flag_unknown_warning_option=no
5473fi
5474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5475fi
5476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5477printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5479	CFLAGS="$xorg_testset_save_CFLAGS"
5480fi
5481
5482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5485	fi
5486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5488printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5489if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5490then :
5491  printf %s "(cached) " >&6
5492else $as_nop
5493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495int i;
5496_ACEOF
5497if ac_fn_c_try_compile "$LINENO"
5498then :
5499  xorg_cv_cc_flag_unused_command_line_argument=yes
5500else $as_nop
5501  xorg_cv_cc_flag_unused_command_line_argument=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5504fi
5505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5507	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5508	CFLAGS="$xorg_testset_save_CFLAGS"
5509fi
5510
5511found="no"
5512
5513	if test $found = "no" ; then
5514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516		fi
5517
5518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520		fi
5521
5522		CFLAGS="$CFLAGS -Wmissing-declarations"
5523
5524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5525printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5526		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5527		if eval test \${$cacheid+y}
5528then :
5529  printf %s "(cached) " >&6
5530else $as_nop
5531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533int i;
5534int
5535main (void)
5536{
5537
5538  ;
5539  return 0;
5540}
5541_ACEOF
5542if ac_fn_c_try_link "$LINENO"
5543then :
5544  eval $cacheid=yes
5545else $as_nop
5546  eval $cacheid=no
5547fi
5548rm -f core conftest.err conftest.$ac_objext conftest.beam \
5549    conftest$ac_exeext conftest.$ac_ext
5550fi
5551
5552
5553		CFLAGS="$xorg_testset_save_CFLAGS"
5554
5555		eval supported=\$$cacheid
5556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5557printf "%s\n" "$supported" >&6; }
5558		if test "$supported" = "yes" ; then
5559			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5560			found="yes"
5561		fi
5562	fi
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578xorg_testset_save_CFLAGS="$CFLAGS"
5579
5580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5584if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5585then :
5586  printf %s "(cached) " >&6
5587else $as_nop
5588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h.  */
5590int i;
5591_ACEOF
5592if ac_fn_c_try_compile "$LINENO"
5593then :
5594  xorg_cv_cc_flag_unknown_warning_option=yes
5595else $as_nop
5596  xorg_cv_cc_flag_unknown_warning_option=no
5597fi
5598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5599fi
5600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5602	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5603	CFLAGS="$xorg_testset_save_CFLAGS"
5604fi
5605
5606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5607	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609	fi
5610	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5613if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5614then :
5615  printf %s "(cached) " >&6
5616else $as_nop
5617  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_unused_command_line_argument=yes
5624else $as_nop
5625  xorg_cv_cc_flag_unused_command_line_argument=no
5626fi
5627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5628fi
5629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5632	CFLAGS="$xorg_testset_save_CFLAGS"
5633fi
5634
5635found="no"
5636
5637	if test $found = "no" ; then
5638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640		fi
5641
5642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644		fi
5645
5646		CFLAGS="$CFLAGS -Wformat=2"
5647
5648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5649printf %s "checking if $CC supports -Wformat=2... " >&6; }
5650		cacheid=xorg_cv_cc_flag__Wformat_2
5651		if eval test \${$cacheid+y}
5652then :
5653  printf %s "(cached) " >&6
5654else $as_nop
5655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h.  */
5657int i;
5658int
5659main (void)
5660{
5661
5662  ;
5663  return 0;
5664}
5665_ACEOF
5666if ac_fn_c_try_link "$LINENO"
5667then :
5668  eval $cacheid=yes
5669else $as_nop
5670  eval $cacheid=no
5671fi
5672rm -f core conftest.err conftest.$ac_objext conftest.beam \
5673    conftest$ac_exeext conftest.$ac_ext
5674fi
5675
5676
5677		CFLAGS="$xorg_testset_save_CFLAGS"
5678
5679		eval supported=\$$cacheid
5680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5681printf "%s\n" "$supported" >&6; }
5682		if test "$supported" = "yes" ; then
5683			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5684			found="yes"
5685		fi
5686	fi
5687
5688	if test $found = "no" ; then
5689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691		fi
5692
5693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5695		fi
5696
5697		CFLAGS="$CFLAGS -Wformat"
5698
5699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5700printf %s "checking if $CC supports -Wformat... " >&6; }
5701		cacheid=xorg_cv_cc_flag__Wformat
5702		if eval test \${$cacheid+y}
5703then :
5704  printf %s "(cached) " >&6
5705else $as_nop
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709int
5710main (void)
5711{
5712
5713  ;
5714  return 0;
5715}
5716_ACEOF
5717if ac_fn_c_try_link "$LINENO"
5718then :
5719  eval $cacheid=yes
5720else $as_nop
5721  eval $cacheid=no
5722fi
5723rm -f core conftest.err conftest.$ac_objext conftest.beam \
5724    conftest$ac_exeext conftest.$ac_ext
5725fi
5726
5727
5728		CFLAGS="$xorg_testset_save_CFLAGS"
5729
5730		eval supported=\$$cacheid
5731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5732printf "%s\n" "$supported" >&6; }
5733		if test "$supported" = "yes" ; then
5734			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5735			found="yes"
5736		fi
5737	fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755xorg_testset_save_CFLAGS="$CFLAGS"
5756
5757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5761if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5762then :
5763  printf %s "(cached) " >&6
5764else $as_nop
5765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h.  */
5767int i;
5768_ACEOF
5769if ac_fn_c_try_compile "$LINENO"
5770then :
5771  xorg_cv_cc_flag_unknown_warning_option=yes
5772else $as_nop
5773  xorg_cv_cc_flag_unknown_warning_option=no
5774fi
5775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5776fi
5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5780	CFLAGS="$xorg_testset_save_CFLAGS"
5781fi
5782
5783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5786	fi
5787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5790if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5791then :
5792  printf %s "(cached) " >&6
5793else $as_nop
5794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796int i;
5797_ACEOF
5798if ac_fn_c_try_compile "$LINENO"
5799then :
5800  xorg_cv_cc_flag_unused_command_line_argument=yes
5801else $as_nop
5802  xorg_cv_cc_flag_unused_command_line_argument=no
5803fi
5804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5805fi
5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5809	CFLAGS="$xorg_testset_save_CFLAGS"
5810fi
5811
5812found="no"
5813
5814	if test $found = "no" ; then
5815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5817		fi
5818
5819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5821		fi
5822
5823		CFLAGS="$CFLAGS -Wstrict-prototypes"
5824
5825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5826printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5827		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5828		if eval test \${$cacheid+y}
5829then :
5830  printf %s "(cached) " >&6
5831else $as_nop
5832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h.  */
5834int i;
5835int
5836main (void)
5837{
5838
5839  ;
5840  return 0;
5841}
5842_ACEOF
5843if ac_fn_c_try_link "$LINENO"
5844then :
5845  eval $cacheid=yes
5846else $as_nop
5847  eval $cacheid=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.beam \
5850    conftest$ac_exeext conftest.$ac_ext
5851fi
5852
5853
5854		CFLAGS="$xorg_testset_save_CFLAGS"
5855
5856		eval supported=\$$cacheid
5857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5858printf "%s\n" "$supported" >&6; }
5859		if test "$supported" = "yes" ; then
5860			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5861			found="yes"
5862		fi
5863	fi
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879xorg_testset_save_CFLAGS="$CFLAGS"
5880
5881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5882	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5884printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5885if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5886then :
5887  printf %s "(cached) " >&6
5888else $as_nop
5889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h.  */
5891int i;
5892_ACEOF
5893if ac_fn_c_try_compile "$LINENO"
5894then :
5895  xorg_cv_cc_flag_unknown_warning_option=yes
5896else $as_nop
5897  xorg_cv_cc_flag_unknown_warning_option=no
5898fi
5899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5900fi
5901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5902printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5904	CFLAGS="$xorg_testset_save_CFLAGS"
5905fi
5906
5907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5910	fi
5911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5912	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5913printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5914if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5915then :
5916  printf %s "(cached) " >&6
5917else $as_nop
5918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h.  */
5920int i;
5921_ACEOF
5922if ac_fn_c_try_compile "$LINENO"
5923then :
5924  xorg_cv_cc_flag_unused_command_line_argument=yes
5925else $as_nop
5926  xorg_cv_cc_flag_unused_command_line_argument=no
5927fi
5928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5929fi
5930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5931printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5933	CFLAGS="$xorg_testset_save_CFLAGS"
5934fi
5935
5936found="no"
5937
5938	if test $found = "no" ; then
5939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5941		fi
5942
5943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945		fi
5946
5947		CFLAGS="$CFLAGS -Wmissing-prototypes"
5948
5949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5950printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5951		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5952		if eval test \${$cacheid+y}
5953then :
5954  printf %s "(cached) " >&6
5955else $as_nop
5956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958int i;
5959int
5960main (void)
5961{
5962
5963  ;
5964  return 0;
5965}
5966_ACEOF
5967if ac_fn_c_try_link "$LINENO"
5968then :
5969  eval $cacheid=yes
5970else $as_nop
5971  eval $cacheid=no
5972fi
5973rm -f core conftest.err conftest.$ac_objext conftest.beam \
5974    conftest$ac_exeext conftest.$ac_ext
5975fi
5976
5977
5978		CFLAGS="$xorg_testset_save_CFLAGS"
5979
5980		eval supported=\$$cacheid
5981		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5982printf "%s\n" "$supported" >&6; }
5983		if test "$supported" = "yes" ; then
5984			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5985			found="yes"
5986		fi
5987	fi
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003xorg_testset_save_CFLAGS="$CFLAGS"
6004
6005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6008printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6009if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6010then :
6011  printf %s "(cached) " >&6
6012else $as_nop
6013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014/* end confdefs.h.  */
6015int i;
6016_ACEOF
6017if ac_fn_c_try_compile "$LINENO"
6018then :
6019  xorg_cv_cc_flag_unknown_warning_option=yes
6020else $as_nop
6021  xorg_cv_cc_flag_unknown_warning_option=no
6022fi
6023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6024fi
6025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6026printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6028	CFLAGS="$xorg_testset_save_CFLAGS"
6029fi
6030
6031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6034	fi
6035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6037printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6038if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6039then :
6040  printf %s "(cached) " >&6
6041else $as_nop
6042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h.  */
6044int i;
6045_ACEOF
6046if ac_fn_c_try_compile "$LINENO"
6047then :
6048  xorg_cv_cc_flag_unused_command_line_argument=yes
6049else $as_nop
6050  xorg_cv_cc_flag_unused_command_line_argument=no
6051fi
6052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6053fi
6054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6055printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6056	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6057	CFLAGS="$xorg_testset_save_CFLAGS"
6058fi
6059
6060found="no"
6061
6062	if test $found = "no" ; then
6063		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065		fi
6066
6067		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6069		fi
6070
6071		CFLAGS="$CFLAGS -Wnested-externs"
6072
6073		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6074printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6075		cacheid=xorg_cv_cc_flag__Wnested_externs
6076		if eval test \${$cacheid+y}
6077then :
6078  printf %s "(cached) " >&6
6079else $as_nop
6080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h.  */
6082int i;
6083int
6084main (void)
6085{
6086
6087  ;
6088  return 0;
6089}
6090_ACEOF
6091if ac_fn_c_try_link "$LINENO"
6092then :
6093  eval $cacheid=yes
6094else $as_nop
6095  eval $cacheid=no
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.beam \
6098    conftest$ac_exeext conftest.$ac_ext
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 -Wnested-externs"
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 $as_nop
6137  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 $as_nop
6145  xorg_cv_cc_flag_unknown_warning_option=no
6146fi
6147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6148fi
6149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6150printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6152	CFLAGS="$xorg_testset_save_CFLAGS"
6153fi
6154
6155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158	fi
6159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6160	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6161printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6162if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6163then :
6164  printf %s "(cached) " >&6
6165else $as_nop
6166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168int i;
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"
6171then :
6172  xorg_cv_cc_flag_unused_command_line_argument=yes
6173else $as_nop
6174  xorg_cv_cc_flag_unused_command_line_argument=no
6175fi
6176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6177fi
6178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6179printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6180	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6181	CFLAGS="$xorg_testset_save_CFLAGS"
6182fi
6183
6184found="no"
6185
6186	if test $found = "no" ; then
6187		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6189		fi
6190
6191		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6193		fi
6194
6195		CFLAGS="$CFLAGS -Wbad-function-cast"
6196
6197		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6198printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6199		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6200		if eval test \${$cacheid+y}
6201then :
6202  printf %s "(cached) " >&6
6203else $as_nop
6204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h.  */
6206int i;
6207int
6208main (void)
6209{
6210
6211  ;
6212  return 0;
6213}
6214_ACEOF
6215if ac_fn_c_try_link "$LINENO"
6216then :
6217  eval $cacheid=yes
6218else $as_nop
6219  eval $cacheid=no
6220fi
6221rm -f core conftest.err conftest.$ac_objext conftest.beam \
6222    conftest$ac_exeext conftest.$ac_ext
6223fi
6224
6225
6226		CFLAGS="$xorg_testset_save_CFLAGS"
6227
6228		eval supported=\$$cacheid
6229		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6230printf "%s\n" "$supported" >&6; }
6231		if test "$supported" = "yes" ; then
6232			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6233			found="yes"
6234		fi
6235	fi
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251xorg_testset_save_CFLAGS="$CFLAGS"
6252
6253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6254	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6257if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6258then :
6259  printf %s "(cached) " >&6
6260else $as_nop
6261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263int i;
6264_ACEOF
6265if ac_fn_c_try_compile "$LINENO"
6266then :
6267  xorg_cv_cc_flag_unknown_warning_option=yes
6268else $as_nop
6269  xorg_cv_cc_flag_unknown_warning_option=no
6270fi
6271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6272fi
6273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6275	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6276	CFLAGS="$xorg_testset_save_CFLAGS"
6277fi
6278
6279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6280	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282	fi
6283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6286if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6287then :
6288  printf %s "(cached) " >&6
6289else $as_nop
6290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h.  */
6292int i;
6293_ACEOF
6294if ac_fn_c_try_compile "$LINENO"
6295then :
6296  xorg_cv_cc_flag_unused_command_line_argument=yes
6297else $as_nop
6298  xorg_cv_cc_flag_unused_command_line_argument=no
6299fi
6300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6301fi
6302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6305	CFLAGS="$xorg_testset_save_CFLAGS"
6306fi
6307
6308found="no"
6309
6310	if test $found = "no" ; then
6311		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313		fi
6314
6315		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317		fi
6318
6319		CFLAGS="$CFLAGS -Wold-style-definition"
6320
6321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6322printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6323		cacheid=xorg_cv_cc_flag__Wold_style_definition
6324		if eval test \${$cacheid+y}
6325then :
6326  printf %s "(cached) " >&6
6327else $as_nop
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331int
6332main (void)
6333{
6334
6335  ;
6336  return 0;
6337}
6338_ACEOF
6339if ac_fn_c_try_link "$LINENO"
6340then :
6341  eval $cacheid=yes
6342else $as_nop
6343  eval $cacheid=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.beam \
6346    conftest$ac_exeext conftest.$ac_ext
6347fi
6348
6349
6350		CFLAGS="$xorg_testset_save_CFLAGS"
6351
6352		eval supported=\$$cacheid
6353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6354printf "%s\n" "$supported" >&6; }
6355		if test "$supported" = "yes" ; then
6356			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6357			found="yes"
6358		fi
6359	fi
6360
6361	if test $found = "no" ; then
6362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6364		fi
6365
6366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6368		fi
6369
6370		CFLAGS="$CFLAGS -fd"
6371
6372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6373printf %s "checking if $CC supports -fd... " >&6; }
6374		cacheid=xorg_cv_cc_flag__fd
6375		if eval test \${$cacheid+y}
6376then :
6377  printf %s "(cached) " >&6
6378else $as_nop
6379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381int i;
6382int
6383main (void)
6384{
6385
6386  ;
6387  return 0;
6388}
6389_ACEOF
6390if ac_fn_c_try_link "$LINENO"
6391then :
6392  eval $cacheid=yes
6393else $as_nop
6394  eval $cacheid=no
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.beam \
6397    conftest$ac_exeext conftest.$ac_ext
6398fi
6399
6400
6401		CFLAGS="$xorg_testset_save_CFLAGS"
6402
6403		eval supported=\$$cacheid
6404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6405printf "%s\n" "$supported" >&6; }
6406		if test "$supported" = "yes" ; then
6407			BASE_CFLAGS="$BASE_CFLAGS -fd"
6408			found="yes"
6409		fi
6410	fi
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426xorg_testset_save_CFLAGS="$CFLAGS"
6427
6428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6431printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6432if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6433then :
6434  printf %s "(cached) " >&6
6435else $as_nop
6436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h.  */
6438int i;
6439_ACEOF
6440if ac_fn_c_try_compile "$LINENO"
6441then :
6442  xorg_cv_cc_flag_unknown_warning_option=yes
6443else $as_nop
6444  xorg_cv_cc_flag_unknown_warning_option=no
6445fi
6446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6447fi
6448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6449printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6451	CFLAGS="$xorg_testset_save_CFLAGS"
6452fi
6453
6454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6457	fi
6458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6460printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6461if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6462then :
6463  printf %s "(cached) " >&6
6464else $as_nop
6465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h.  */
6467int i;
6468_ACEOF
6469if ac_fn_c_try_compile "$LINENO"
6470then :
6471  xorg_cv_cc_flag_unused_command_line_argument=yes
6472else $as_nop
6473  xorg_cv_cc_flag_unused_command_line_argument=no
6474fi
6475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6476fi
6477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6478printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6480	CFLAGS="$xorg_testset_save_CFLAGS"
6481fi
6482
6483found="no"
6484
6485	if test $found = "no" ; then
6486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488		fi
6489
6490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492		fi
6493
6494		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6495
6496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6497printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6498		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6499		if eval test \${$cacheid+y}
6500then :
6501  printf %s "(cached) " >&6
6502else $as_nop
6503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504/* end confdefs.h.  */
6505int i;
6506int
6507main (void)
6508{
6509
6510  ;
6511  return 0;
6512}
6513_ACEOF
6514if ac_fn_c_try_link "$LINENO"
6515then :
6516  eval $cacheid=yes
6517else $as_nop
6518  eval $cacheid=no
6519fi
6520rm -f core conftest.err conftest.$ac_objext conftest.beam \
6521    conftest$ac_exeext conftest.$ac_ext
6522fi
6523
6524
6525		CFLAGS="$xorg_testset_save_CFLAGS"
6526
6527		eval supported=\$$cacheid
6528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529printf "%s\n" "$supported" >&6; }
6530		if test "$supported" = "yes" ; then
6531			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6532			found="yes"
6533		fi
6534	fi
6535
6536
6537
6538
6539
6540# This chunk adds additional warnings that could catch undesired effects.
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554xorg_testset_save_CFLAGS="$CFLAGS"
6555
6556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6560if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6561then :
6562  printf %s "(cached) " >&6
6563else $as_nop
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566int i;
6567_ACEOF
6568if ac_fn_c_try_compile "$LINENO"
6569then :
6570  xorg_cv_cc_flag_unknown_warning_option=yes
6571else $as_nop
6572  xorg_cv_cc_flag_unknown_warning_option=no
6573fi
6574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6575fi
6576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6579	CFLAGS="$xorg_testset_save_CFLAGS"
6580fi
6581
6582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585	fi
6586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6589if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6590then :
6591  printf %s "(cached) " >&6
6592else $as_nop
6593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594/* end confdefs.h.  */
6595int i;
6596_ACEOF
6597if ac_fn_c_try_compile "$LINENO"
6598then :
6599  xorg_cv_cc_flag_unused_command_line_argument=yes
6600else $as_nop
6601  xorg_cv_cc_flag_unused_command_line_argument=no
6602fi
6603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6604fi
6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6608	CFLAGS="$xorg_testset_save_CFLAGS"
6609fi
6610
6611found="no"
6612
6613	if test $found = "no" ; then
6614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616		fi
6617
6618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620		fi
6621
6622		CFLAGS="$CFLAGS -Wunused"
6623
6624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6625printf %s "checking if $CC supports -Wunused... " >&6; }
6626		cacheid=xorg_cv_cc_flag__Wunused
6627		if eval test \${$cacheid+y}
6628then :
6629  printf %s "(cached) " >&6
6630else $as_nop
6631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632/* end confdefs.h.  */
6633int i;
6634int
6635main (void)
6636{
6637
6638  ;
6639  return 0;
6640}
6641_ACEOF
6642if ac_fn_c_try_link "$LINENO"
6643then :
6644  eval $cacheid=yes
6645else $as_nop
6646  eval $cacheid=no
6647fi
6648rm -f core conftest.err conftest.$ac_objext conftest.beam \
6649    conftest$ac_exeext conftest.$ac_ext
6650fi
6651
6652
6653		CFLAGS="$xorg_testset_save_CFLAGS"
6654
6655		eval supported=\$$cacheid
6656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6657printf "%s\n" "$supported" >&6; }
6658		if test "$supported" = "yes" ; then
6659			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6660			found="yes"
6661		fi
6662	fi
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678xorg_testset_save_CFLAGS="$CFLAGS"
6679
6680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6683printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6684if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6685then :
6686  printf %s "(cached) " >&6
6687else $as_nop
6688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h.  */
6690int i;
6691_ACEOF
6692if ac_fn_c_try_compile "$LINENO"
6693then :
6694  xorg_cv_cc_flag_unknown_warning_option=yes
6695else $as_nop
6696  xorg_cv_cc_flag_unknown_warning_option=no
6697fi
6698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6699fi
6700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6703	CFLAGS="$xorg_testset_save_CFLAGS"
6704fi
6705
6706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6709	fi
6710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6714then :
6715  printf %s "(cached) " >&6
6716else $as_nop
6717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719int i;
6720_ACEOF
6721if ac_fn_c_try_compile "$LINENO"
6722then :
6723  xorg_cv_cc_flag_unused_command_line_argument=yes
6724else $as_nop
6725  xorg_cv_cc_flag_unused_command_line_argument=no
6726fi
6727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6728fi
6729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6731	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6732	CFLAGS="$xorg_testset_save_CFLAGS"
6733fi
6734
6735found="no"
6736
6737	if test $found = "no" ; then
6738		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6739			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740		fi
6741
6742		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6743			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6744		fi
6745
6746		CFLAGS="$CFLAGS -Wuninitialized"
6747
6748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6749printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6750		cacheid=xorg_cv_cc_flag__Wuninitialized
6751		if eval test \${$cacheid+y}
6752then :
6753  printf %s "(cached) " >&6
6754else $as_nop
6755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757int i;
6758int
6759main (void)
6760{
6761
6762  ;
6763  return 0;
6764}
6765_ACEOF
6766if ac_fn_c_try_link "$LINENO"
6767then :
6768  eval $cacheid=yes
6769else $as_nop
6770  eval $cacheid=no
6771fi
6772rm -f core conftest.err conftest.$ac_objext conftest.beam \
6773    conftest$ac_exeext conftest.$ac_ext
6774fi
6775
6776
6777		CFLAGS="$xorg_testset_save_CFLAGS"
6778
6779		eval supported=\$$cacheid
6780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6781printf "%s\n" "$supported" >&6; }
6782		if test "$supported" = "yes" ; then
6783			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6784			found="yes"
6785		fi
6786	fi
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802xorg_testset_save_CFLAGS="$CFLAGS"
6803
6804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6805	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6807printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6808if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6809then :
6810  printf %s "(cached) " >&6
6811else $as_nop
6812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813/* end confdefs.h.  */
6814int i;
6815_ACEOF
6816if ac_fn_c_try_compile "$LINENO"
6817then :
6818  xorg_cv_cc_flag_unknown_warning_option=yes
6819else $as_nop
6820  xorg_cv_cc_flag_unknown_warning_option=no
6821fi
6822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6823fi
6824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6825printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6827	CFLAGS="$xorg_testset_save_CFLAGS"
6828fi
6829
6830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6833	fi
6834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6838then :
6839  printf %s "(cached) " >&6
6840else $as_nop
6841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842/* end confdefs.h.  */
6843int i;
6844_ACEOF
6845if ac_fn_c_try_compile "$LINENO"
6846then :
6847  xorg_cv_cc_flag_unused_command_line_argument=yes
6848else $as_nop
6849  xorg_cv_cc_flag_unused_command_line_argument=no
6850fi
6851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6852fi
6853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6854printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6856	CFLAGS="$xorg_testset_save_CFLAGS"
6857fi
6858
6859found="no"
6860
6861	if test $found = "no" ; then
6862		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864		fi
6865
6866		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6868		fi
6869
6870		CFLAGS="$CFLAGS -Wshadow"
6871
6872		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6873printf %s "checking if $CC supports -Wshadow... " >&6; }
6874		cacheid=xorg_cv_cc_flag__Wshadow
6875		if eval test \${$cacheid+y}
6876then :
6877  printf %s "(cached) " >&6
6878else $as_nop
6879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880/* end confdefs.h.  */
6881int i;
6882int
6883main (void)
6884{
6885
6886  ;
6887  return 0;
6888}
6889_ACEOF
6890if ac_fn_c_try_link "$LINENO"
6891then :
6892  eval $cacheid=yes
6893else $as_nop
6894  eval $cacheid=no
6895fi
6896rm -f core conftest.err conftest.$ac_objext conftest.beam \
6897    conftest$ac_exeext conftest.$ac_ext
6898fi
6899
6900
6901		CFLAGS="$xorg_testset_save_CFLAGS"
6902
6903		eval supported=\$$cacheid
6904		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6905printf "%s\n" "$supported" >&6; }
6906		if test "$supported" = "yes" ; then
6907			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6908			found="yes"
6909		fi
6910	fi
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926xorg_testset_save_CFLAGS="$CFLAGS"
6927
6928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6932if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6933then :
6934  printf %s "(cached) " >&6
6935else $as_nop
6936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938int i;
6939_ACEOF
6940if ac_fn_c_try_compile "$LINENO"
6941then :
6942  xorg_cv_cc_flag_unknown_warning_option=yes
6943else $as_nop
6944  xorg_cv_cc_flag_unknown_warning_option=no
6945fi
6946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6947fi
6948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6951	CFLAGS="$xorg_testset_save_CFLAGS"
6952fi
6953
6954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6957	fi
6958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6961if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6962then :
6963  printf %s "(cached) " >&6
6964else $as_nop
6965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966/* end confdefs.h.  */
6967int i;
6968_ACEOF
6969if ac_fn_c_try_compile "$LINENO"
6970then :
6971  xorg_cv_cc_flag_unused_command_line_argument=yes
6972else $as_nop
6973  xorg_cv_cc_flag_unused_command_line_argument=no
6974fi
6975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6976fi
6977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6979	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6980	CFLAGS="$xorg_testset_save_CFLAGS"
6981fi
6982
6983found="no"
6984
6985	if test $found = "no" ; then
6986		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6987			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988		fi
6989
6990		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6991			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6992		fi
6993
6994		CFLAGS="$CFLAGS -Wmissing-noreturn"
6995
6996		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6997printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6998		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6999		if eval test \${$cacheid+y}
7000then :
7001  printf %s "(cached) " >&6
7002else $as_nop
7003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004/* end confdefs.h.  */
7005int i;
7006int
7007main (void)
7008{
7009
7010  ;
7011  return 0;
7012}
7013_ACEOF
7014if ac_fn_c_try_link "$LINENO"
7015then :
7016  eval $cacheid=yes
7017else $as_nop
7018  eval $cacheid=no
7019fi
7020rm -f core conftest.err conftest.$ac_objext conftest.beam \
7021    conftest$ac_exeext conftest.$ac_ext
7022fi
7023
7024
7025		CFLAGS="$xorg_testset_save_CFLAGS"
7026
7027		eval supported=\$$cacheid
7028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7029printf "%s\n" "$supported" >&6; }
7030		if test "$supported" = "yes" ; then
7031			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7032			found="yes"
7033		fi
7034	fi
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050xorg_testset_save_CFLAGS="$CFLAGS"
7051
7052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7055printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7056if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7057then :
7058  printf %s "(cached) " >&6
7059else $as_nop
7060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062int i;
7063_ACEOF
7064if ac_fn_c_try_compile "$LINENO"
7065then :
7066  xorg_cv_cc_flag_unknown_warning_option=yes
7067else $as_nop
7068  xorg_cv_cc_flag_unknown_warning_option=no
7069fi
7070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7071fi
7072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7073printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7075	CFLAGS="$xorg_testset_save_CFLAGS"
7076fi
7077
7078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7081	fi
7082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7084printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7085if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7086then :
7087  printf %s "(cached) " >&6
7088else $as_nop
7089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090/* end confdefs.h.  */
7091int i;
7092_ACEOF
7093if ac_fn_c_try_compile "$LINENO"
7094then :
7095  xorg_cv_cc_flag_unused_command_line_argument=yes
7096else $as_nop
7097  xorg_cv_cc_flag_unused_command_line_argument=no
7098fi
7099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7100fi
7101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7103	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7104	CFLAGS="$xorg_testset_save_CFLAGS"
7105fi
7106
7107found="no"
7108
7109	if test $found = "no" ; then
7110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112		fi
7113
7114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7116		fi
7117
7118		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7119
7120		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7121printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7122		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7123		if eval test \${$cacheid+y}
7124then :
7125  printf %s "(cached) " >&6
7126else $as_nop
7127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h.  */
7129int i;
7130int
7131main (void)
7132{
7133
7134  ;
7135  return 0;
7136}
7137_ACEOF
7138if ac_fn_c_try_link "$LINENO"
7139then :
7140  eval $cacheid=yes
7141else $as_nop
7142  eval $cacheid=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.beam \
7145    conftest$ac_exeext conftest.$ac_ext
7146fi
7147
7148
7149		CFLAGS="$xorg_testset_save_CFLAGS"
7150
7151		eval supported=\$$cacheid
7152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7153printf "%s\n" "$supported" >&6; }
7154		if test "$supported" = "yes" ; then
7155			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7156			found="yes"
7157		fi
7158	fi
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174xorg_testset_save_CFLAGS="$CFLAGS"
7175
7176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7178	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7179printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7180if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7181then :
7182  printf %s "(cached) " >&6
7183else $as_nop
7184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h.  */
7186int i;
7187_ACEOF
7188if ac_fn_c_try_compile "$LINENO"
7189then :
7190  xorg_cv_cc_flag_unknown_warning_option=yes
7191else $as_nop
7192  xorg_cv_cc_flag_unknown_warning_option=no
7193fi
7194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7195fi
7196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7197printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7199	CFLAGS="$xorg_testset_save_CFLAGS"
7200fi
7201
7202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205	fi
7206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7207	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7208printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7209if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7210then :
7211  printf %s "(cached) " >&6
7212else $as_nop
7213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h.  */
7215int i;
7216_ACEOF
7217if ac_fn_c_try_compile "$LINENO"
7218then :
7219  xorg_cv_cc_flag_unused_command_line_argument=yes
7220else $as_nop
7221  xorg_cv_cc_flag_unused_command_line_argument=no
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7224fi
7225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7228	CFLAGS="$xorg_testset_save_CFLAGS"
7229fi
7230
7231found="no"
7232
7233	if test $found = "no" ; then
7234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7236		fi
7237
7238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7240		fi
7241
7242		CFLAGS="$CFLAGS -Wredundant-decls"
7243
7244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7245printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7246		cacheid=xorg_cv_cc_flag__Wredundant_decls
7247		if eval test \${$cacheid+y}
7248then :
7249  printf %s "(cached) " >&6
7250else $as_nop
7251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253int i;
7254int
7255main (void)
7256{
7257
7258  ;
7259  return 0;
7260}
7261_ACEOF
7262if ac_fn_c_try_link "$LINENO"
7263then :
7264  eval $cacheid=yes
7265else $as_nop
7266  eval $cacheid=no
7267fi
7268rm -f core conftest.err conftest.$ac_objext conftest.beam \
7269    conftest$ac_exeext conftest.$ac_ext
7270fi
7271
7272
7273		CFLAGS="$xorg_testset_save_CFLAGS"
7274
7275		eval supported=\$$cacheid
7276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7277printf "%s\n" "$supported" >&6; }
7278		if test "$supported" = "yes" ; then
7279			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7280			found="yes"
7281		fi
7282	fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298xorg_testset_save_CFLAGS="$CFLAGS"
7299
7300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7305then :
7306  printf %s "(cached) " >&6
7307else $as_nop
7308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310int i;
7311_ACEOF
7312if ac_fn_c_try_compile "$LINENO"
7313then :
7314  xorg_cv_cc_flag_unknown_warning_option=yes
7315else $as_nop
7316  xorg_cv_cc_flag_unknown_warning_option=no
7317fi
7318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7319fi
7320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7321printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7323	CFLAGS="$xorg_testset_save_CFLAGS"
7324fi
7325
7326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7329	fi
7330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7331	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7332printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7333if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7334then :
7335  printf %s "(cached) " >&6
7336else $as_nop
7337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h.  */
7339int i;
7340_ACEOF
7341if ac_fn_c_try_compile "$LINENO"
7342then :
7343  xorg_cv_cc_flag_unused_command_line_argument=yes
7344else $as_nop
7345  xorg_cv_cc_flag_unused_command_line_argument=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7348fi
7349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7350printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7351	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7352	CFLAGS="$xorg_testset_save_CFLAGS"
7353fi
7354
7355found="no"
7356
7357	if test $found = "no" ; then
7358		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360		fi
7361
7362		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7364		fi
7365
7366		CFLAGS="$CFLAGS -Wlogical-op"
7367
7368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7369printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7370		cacheid=xorg_cv_cc_flag__Wlogical_op
7371		if eval test \${$cacheid+y}
7372then :
7373  printf %s "(cached) " >&6
7374else $as_nop
7375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h.  */
7377int i;
7378int
7379main (void)
7380{
7381
7382  ;
7383  return 0;
7384}
7385_ACEOF
7386if ac_fn_c_try_link "$LINENO"
7387then :
7388  eval $cacheid=yes
7389else $as_nop
7390  eval $cacheid=no
7391fi
7392rm -f core conftest.err conftest.$ac_objext conftest.beam \
7393    conftest$ac_exeext conftest.$ac_ext
7394fi
7395
7396
7397		CFLAGS="$xorg_testset_save_CFLAGS"
7398
7399		eval supported=\$$cacheid
7400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7401printf "%s\n" "$supported" >&6; }
7402		if test "$supported" = "yes" ; then
7403			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7404			found="yes"
7405		fi
7406	fi
7407
7408
7409
7410# These are currently disabled because they are noisy.  They will be enabled
7411# in the future once the codebase is sufficiently modernized to silence
7412# them.  For now, I don't want them to drown out the other warnings.
7413# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7414# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7415# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7416
7417# Turn some warnings into errors, so we don't accidently get successful builds
7418# when there are problems that should be fixed.
7419
7420if test "x$SELECTIVE_WERROR" = "xyes" ; then
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434xorg_testset_save_CFLAGS="$CFLAGS"
7435
7436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7439printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7440if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7441then :
7442  printf %s "(cached) " >&6
7443else $as_nop
7444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h.  */
7446int i;
7447_ACEOF
7448if ac_fn_c_try_compile "$LINENO"
7449then :
7450  xorg_cv_cc_flag_unknown_warning_option=yes
7451else $as_nop
7452  xorg_cv_cc_flag_unknown_warning_option=no
7453fi
7454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7455fi
7456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7459	CFLAGS="$xorg_testset_save_CFLAGS"
7460fi
7461
7462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7465	fi
7466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7469if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7470then :
7471  printf %s "(cached) " >&6
7472else $as_nop
7473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474/* end confdefs.h.  */
7475int i;
7476_ACEOF
7477if ac_fn_c_try_compile "$LINENO"
7478then :
7479  xorg_cv_cc_flag_unused_command_line_argument=yes
7480else $as_nop
7481  xorg_cv_cc_flag_unused_command_line_argument=no
7482fi
7483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7484fi
7485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7486printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7488	CFLAGS="$xorg_testset_save_CFLAGS"
7489fi
7490
7491found="no"
7492
7493	if test $found = "no" ; then
7494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496		fi
7497
7498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500		fi
7501
7502		CFLAGS="$CFLAGS -Werror=implicit"
7503
7504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7505printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7506		cacheid=xorg_cv_cc_flag__Werror_implicit
7507		if eval test \${$cacheid+y}
7508then :
7509  printf %s "(cached) " >&6
7510else $as_nop
7511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513int i;
7514int
7515main (void)
7516{
7517
7518  ;
7519  return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_link "$LINENO"
7523then :
7524  eval $cacheid=yes
7525else $as_nop
7526  eval $cacheid=no
7527fi
7528rm -f core conftest.err conftest.$ac_objext conftest.beam \
7529    conftest$ac_exeext conftest.$ac_ext
7530fi
7531
7532
7533		CFLAGS="$xorg_testset_save_CFLAGS"
7534
7535		eval supported=\$$cacheid
7536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7537printf "%s\n" "$supported" >&6; }
7538		if test "$supported" = "yes" ; then
7539			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7540			found="yes"
7541		fi
7542	fi
7543
7544	if test $found = "no" ; then
7545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547		fi
7548
7549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7551		fi
7552
7553		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7554
7555		{ 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
7556printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7557		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7558		if eval test \${$cacheid+y}
7559then :
7560  printf %s "(cached) " >&6
7561else $as_nop
7562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563/* end confdefs.h.  */
7564int i;
7565int
7566main (void)
7567{
7568
7569  ;
7570  return 0;
7571}
7572_ACEOF
7573if ac_fn_c_try_link "$LINENO"
7574then :
7575  eval $cacheid=yes
7576else $as_nop
7577  eval $cacheid=no
7578fi
7579rm -f core conftest.err conftest.$ac_objext conftest.beam \
7580    conftest$ac_exeext conftest.$ac_ext
7581fi
7582
7583
7584		CFLAGS="$xorg_testset_save_CFLAGS"
7585
7586		eval supported=\$$cacheid
7587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7588printf "%s\n" "$supported" >&6; }
7589		if test "$supported" = "yes" ; then
7590			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7591			found="yes"
7592		fi
7593	fi
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609xorg_testset_save_CFLAGS="$CFLAGS"
7610
7611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7612	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7615if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7616then :
7617  printf %s "(cached) " >&6
7618else $as_nop
7619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620/* end confdefs.h.  */
7621int i;
7622_ACEOF
7623if ac_fn_c_try_compile "$LINENO"
7624then :
7625  xorg_cv_cc_flag_unknown_warning_option=yes
7626else $as_nop
7627  xorg_cv_cc_flag_unknown_warning_option=no
7628fi
7629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7630fi
7631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7634	CFLAGS="$xorg_testset_save_CFLAGS"
7635fi
7636
7637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640	fi
7641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7644if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7645then :
7646  printf %s "(cached) " >&6
7647else $as_nop
7648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649/* end confdefs.h.  */
7650int i;
7651_ACEOF
7652if ac_fn_c_try_compile "$LINENO"
7653then :
7654  xorg_cv_cc_flag_unused_command_line_argument=yes
7655else $as_nop
7656  xorg_cv_cc_flag_unused_command_line_argument=no
7657fi
7658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7659fi
7660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7663	CFLAGS="$xorg_testset_save_CFLAGS"
7664fi
7665
7666found="no"
7667
7668	if test $found = "no" ; then
7669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671		fi
7672
7673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7675		fi
7676
7677		CFLAGS="$CFLAGS -Werror=nonnull"
7678
7679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7680printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7681		cacheid=xorg_cv_cc_flag__Werror_nonnull
7682		if eval test \${$cacheid+y}
7683then :
7684  printf %s "(cached) " >&6
7685else $as_nop
7686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h.  */
7688int i;
7689int
7690main (void)
7691{
7692
7693  ;
7694  return 0;
7695}
7696_ACEOF
7697if ac_fn_c_try_link "$LINENO"
7698then :
7699  eval $cacheid=yes
7700else $as_nop
7701  eval $cacheid=no
7702fi
7703rm -f core conftest.err conftest.$ac_objext conftest.beam \
7704    conftest$ac_exeext conftest.$ac_ext
7705fi
7706
7707
7708		CFLAGS="$xorg_testset_save_CFLAGS"
7709
7710		eval supported=\$$cacheid
7711		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7712printf "%s\n" "$supported" >&6; }
7713		if test "$supported" = "yes" ; then
7714			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7715			found="yes"
7716		fi
7717	fi
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733xorg_testset_save_CFLAGS="$CFLAGS"
7734
7735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7739if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7740then :
7741  printf %s "(cached) " >&6
7742else $as_nop
7743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h.  */
7745int i;
7746_ACEOF
7747if ac_fn_c_try_compile "$LINENO"
7748then :
7749  xorg_cv_cc_flag_unknown_warning_option=yes
7750else $as_nop
7751  xorg_cv_cc_flag_unknown_warning_option=no
7752fi
7753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7754fi
7755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7758	CFLAGS="$xorg_testset_save_CFLAGS"
7759fi
7760
7761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7764	fi
7765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7768if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7769then :
7770  printf %s "(cached) " >&6
7771else $as_nop
7772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773/* end confdefs.h.  */
7774int i;
7775_ACEOF
7776if ac_fn_c_try_compile "$LINENO"
7777then :
7778  xorg_cv_cc_flag_unused_command_line_argument=yes
7779else $as_nop
7780  xorg_cv_cc_flag_unused_command_line_argument=no
7781fi
7782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7783fi
7784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7787	CFLAGS="$xorg_testset_save_CFLAGS"
7788fi
7789
7790found="no"
7791
7792	if test $found = "no" ; then
7793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7795		fi
7796
7797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7799		fi
7800
7801		CFLAGS="$CFLAGS -Werror=init-self"
7802
7803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7804printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7805		cacheid=xorg_cv_cc_flag__Werror_init_self
7806		if eval test \${$cacheid+y}
7807then :
7808  printf %s "(cached) " >&6
7809else $as_nop
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812int i;
7813int
7814main (void)
7815{
7816
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_link "$LINENO"
7822then :
7823  eval $cacheid=yes
7824else $as_nop
7825  eval $cacheid=no
7826fi
7827rm -f core conftest.err conftest.$ac_objext conftest.beam \
7828    conftest$ac_exeext conftest.$ac_ext
7829fi
7830
7831
7832		CFLAGS="$xorg_testset_save_CFLAGS"
7833
7834		eval supported=\$$cacheid
7835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7836printf "%s\n" "$supported" >&6; }
7837		if test "$supported" = "yes" ; then
7838			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7839			found="yes"
7840		fi
7841	fi
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857xorg_testset_save_CFLAGS="$CFLAGS"
7858
7859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7861	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7862printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7863if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7864then :
7865  printf %s "(cached) " >&6
7866else $as_nop
7867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h.  */
7869int i;
7870_ACEOF
7871if ac_fn_c_try_compile "$LINENO"
7872then :
7873  xorg_cv_cc_flag_unknown_warning_option=yes
7874else $as_nop
7875  xorg_cv_cc_flag_unknown_warning_option=no
7876fi
7877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7878fi
7879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7882	CFLAGS="$xorg_testset_save_CFLAGS"
7883fi
7884
7885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7888	fi
7889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7892if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7893then :
7894  printf %s "(cached) " >&6
7895else $as_nop
7896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897/* end confdefs.h.  */
7898int i;
7899_ACEOF
7900if ac_fn_c_try_compile "$LINENO"
7901then :
7902  xorg_cv_cc_flag_unused_command_line_argument=yes
7903else $as_nop
7904  xorg_cv_cc_flag_unused_command_line_argument=no
7905fi
7906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7907fi
7908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7909printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7911	CFLAGS="$xorg_testset_save_CFLAGS"
7912fi
7913
7914found="no"
7915
7916	if test $found = "no" ; then
7917		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919		fi
7920
7921		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7923		fi
7924
7925		CFLAGS="$CFLAGS -Werror=main"
7926
7927		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7928printf %s "checking if $CC supports -Werror=main... " >&6; }
7929		cacheid=xorg_cv_cc_flag__Werror_main
7930		if eval test \${$cacheid+y}
7931then :
7932  printf %s "(cached) " >&6
7933else $as_nop
7934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h.  */
7936int i;
7937int
7938main (void)
7939{
7940
7941  ;
7942  return 0;
7943}
7944_ACEOF
7945if ac_fn_c_try_link "$LINENO"
7946then :
7947  eval $cacheid=yes
7948else $as_nop
7949  eval $cacheid=no
7950fi
7951rm -f core conftest.err conftest.$ac_objext conftest.beam \
7952    conftest$ac_exeext conftest.$ac_ext
7953fi
7954
7955
7956		CFLAGS="$xorg_testset_save_CFLAGS"
7957
7958		eval supported=\$$cacheid
7959		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7960printf "%s\n" "$supported" >&6; }
7961		if test "$supported" = "yes" ; then
7962			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7963			found="yes"
7964		fi
7965	fi
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981xorg_testset_save_CFLAGS="$CFLAGS"
7982
7983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7986printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7987if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7988then :
7989  printf %s "(cached) " >&6
7990else $as_nop
7991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993int i;
7994_ACEOF
7995if ac_fn_c_try_compile "$LINENO"
7996then :
7997  xorg_cv_cc_flag_unknown_warning_option=yes
7998else $as_nop
7999  xorg_cv_cc_flag_unknown_warning_option=no
8000fi
8001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8002fi
8003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8004printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8006	CFLAGS="$xorg_testset_save_CFLAGS"
8007fi
8008
8009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8012	fi
8013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8015printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8016if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8017then :
8018  printf %s "(cached) " >&6
8019else $as_nop
8020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021/* end confdefs.h.  */
8022int i;
8023_ACEOF
8024if ac_fn_c_try_compile "$LINENO"
8025then :
8026  xorg_cv_cc_flag_unused_command_line_argument=yes
8027else $as_nop
8028  xorg_cv_cc_flag_unused_command_line_argument=no
8029fi
8030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8031fi
8032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8033printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8035	CFLAGS="$xorg_testset_save_CFLAGS"
8036fi
8037
8038found="no"
8039
8040	if test $found = "no" ; then
8041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8043		fi
8044
8045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8047		fi
8048
8049		CFLAGS="$CFLAGS -Werror=missing-braces"
8050
8051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8052printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8053		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8054		if eval test \${$cacheid+y}
8055then :
8056  printf %s "(cached) " >&6
8057else $as_nop
8058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059/* end confdefs.h.  */
8060int i;
8061int
8062main (void)
8063{
8064
8065  ;
8066  return 0;
8067}
8068_ACEOF
8069if ac_fn_c_try_link "$LINENO"
8070then :
8071  eval $cacheid=yes
8072else $as_nop
8073  eval $cacheid=no
8074fi
8075rm -f core conftest.err conftest.$ac_objext conftest.beam \
8076    conftest$ac_exeext conftest.$ac_ext
8077fi
8078
8079
8080		CFLAGS="$xorg_testset_save_CFLAGS"
8081
8082		eval supported=\$$cacheid
8083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8084printf "%s\n" "$supported" >&6; }
8085		if test "$supported" = "yes" ; then
8086			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8087			found="yes"
8088		fi
8089	fi
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105xorg_testset_save_CFLAGS="$CFLAGS"
8106
8107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8111if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8112then :
8113  printf %s "(cached) " >&6
8114else $as_nop
8115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116/* end confdefs.h.  */
8117int i;
8118_ACEOF
8119if ac_fn_c_try_compile "$LINENO"
8120then :
8121  xorg_cv_cc_flag_unknown_warning_option=yes
8122else $as_nop
8123  xorg_cv_cc_flag_unknown_warning_option=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8126fi
8127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8130	CFLAGS="$xorg_testset_save_CFLAGS"
8131fi
8132
8133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8136	fi
8137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8141then :
8142  printf %s "(cached) " >&6
8143else $as_nop
8144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146int i;
8147_ACEOF
8148if ac_fn_c_try_compile "$LINENO"
8149then :
8150  xorg_cv_cc_flag_unused_command_line_argument=yes
8151else $as_nop
8152  xorg_cv_cc_flag_unused_command_line_argument=no
8153fi
8154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8155fi
8156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8159	CFLAGS="$xorg_testset_save_CFLAGS"
8160fi
8161
8162found="no"
8163
8164	if test $found = "no" ; then
8165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167		fi
8168
8169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8171		fi
8172
8173		CFLAGS="$CFLAGS -Werror=sequence-point"
8174
8175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8176printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8177		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8178		if eval test \${$cacheid+y}
8179then :
8180  printf %s "(cached) " >&6
8181else $as_nop
8182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h.  */
8184int i;
8185int
8186main (void)
8187{
8188
8189  ;
8190  return 0;
8191}
8192_ACEOF
8193if ac_fn_c_try_link "$LINENO"
8194then :
8195  eval $cacheid=yes
8196else $as_nop
8197  eval $cacheid=no
8198fi
8199rm -f core conftest.err conftest.$ac_objext conftest.beam \
8200    conftest$ac_exeext conftest.$ac_ext
8201fi
8202
8203
8204		CFLAGS="$xorg_testset_save_CFLAGS"
8205
8206		eval supported=\$$cacheid
8207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8208printf "%s\n" "$supported" >&6; }
8209		if test "$supported" = "yes" ; then
8210			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8211			found="yes"
8212		fi
8213	fi
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229xorg_testset_save_CFLAGS="$CFLAGS"
8230
8231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8235if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8236then :
8237  printf %s "(cached) " >&6
8238else $as_nop
8239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240/* end confdefs.h.  */
8241int i;
8242_ACEOF
8243if ac_fn_c_try_compile "$LINENO"
8244then :
8245  xorg_cv_cc_flag_unknown_warning_option=yes
8246else $as_nop
8247  xorg_cv_cc_flag_unknown_warning_option=no
8248fi
8249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8250fi
8251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8252printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8254	CFLAGS="$xorg_testset_save_CFLAGS"
8255fi
8256
8257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260	fi
8261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8263printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8264if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8265then :
8266  printf %s "(cached) " >&6
8267else $as_nop
8268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270int i;
8271_ACEOF
8272if ac_fn_c_try_compile "$LINENO"
8273then :
8274  xorg_cv_cc_flag_unused_command_line_argument=yes
8275else $as_nop
8276  xorg_cv_cc_flag_unused_command_line_argument=no
8277fi
8278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8279fi
8280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8281printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8283	CFLAGS="$xorg_testset_save_CFLAGS"
8284fi
8285
8286found="no"
8287
8288	if test $found = "no" ; then
8289		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8291		fi
8292
8293		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8295		fi
8296
8297		CFLAGS="$CFLAGS -Werror=return-type"
8298
8299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8300printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8301		cacheid=xorg_cv_cc_flag__Werror_return_type
8302		if eval test \${$cacheid+y}
8303then :
8304  printf %s "(cached) " >&6
8305else $as_nop
8306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h.  */
8308int i;
8309int
8310main (void)
8311{
8312
8313  ;
8314  return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_link "$LINENO"
8318then :
8319  eval $cacheid=yes
8320else $as_nop
8321  eval $cacheid=no
8322fi
8323rm -f core conftest.err conftest.$ac_objext conftest.beam \
8324    conftest$ac_exeext conftest.$ac_ext
8325fi
8326
8327
8328		CFLAGS="$xorg_testset_save_CFLAGS"
8329
8330		eval supported=\$$cacheid
8331		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8332printf "%s\n" "$supported" >&6; }
8333		if test "$supported" = "yes" ; then
8334			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8335			found="yes"
8336		fi
8337	fi
8338
8339	if test $found = "no" ; then
8340		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8341			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8342		fi
8343
8344		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8345			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8346		fi
8347
8348		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8349
8350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8351printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8352		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8353		if eval test \${$cacheid+y}
8354then :
8355  printf %s "(cached) " >&6
8356else $as_nop
8357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359int i;
8360int
8361main (void)
8362{
8363
8364  ;
8365  return 0;
8366}
8367_ACEOF
8368if ac_fn_c_try_link "$LINENO"
8369then :
8370  eval $cacheid=yes
8371else $as_nop
8372  eval $cacheid=no
8373fi
8374rm -f core conftest.err conftest.$ac_objext conftest.beam \
8375    conftest$ac_exeext conftest.$ac_ext
8376fi
8377
8378
8379		CFLAGS="$xorg_testset_save_CFLAGS"
8380
8381		eval supported=\$$cacheid
8382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8383printf "%s\n" "$supported" >&6; }
8384		if test "$supported" = "yes" ; then
8385			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8386			found="yes"
8387		fi
8388	fi
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404xorg_testset_save_CFLAGS="$CFLAGS"
8405
8406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8409printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8410if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8411then :
8412  printf %s "(cached) " >&6
8413else $as_nop
8414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415/* end confdefs.h.  */
8416int i;
8417_ACEOF
8418if ac_fn_c_try_compile "$LINENO"
8419then :
8420  xorg_cv_cc_flag_unknown_warning_option=yes
8421else $as_nop
8422  xorg_cv_cc_flag_unknown_warning_option=no
8423fi
8424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8425fi
8426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8429	CFLAGS="$xorg_testset_save_CFLAGS"
8430fi
8431
8432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8435	fi
8436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8437	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8439if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8440then :
8441  printf %s "(cached) " >&6
8442else $as_nop
8443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445int i;
8446_ACEOF
8447if ac_fn_c_try_compile "$LINENO"
8448then :
8449  xorg_cv_cc_flag_unused_command_line_argument=yes
8450else $as_nop
8451  xorg_cv_cc_flag_unused_command_line_argument=no
8452fi
8453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8454fi
8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8458	CFLAGS="$xorg_testset_save_CFLAGS"
8459fi
8460
8461found="no"
8462
8463	if test $found = "no" ; then
8464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466		fi
8467
8468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470		fi
8471
8472		CFLAGS="$CFLAGS -Werror=trigraphs"
8473
8474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8475printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8476		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8477		if eval test \${$cacheid+y}
8478then :
8479  printf %s "(cached) " >&6
8480else $as_nop
8481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482/* end confdefs.h.  */
8483int i;
8484int
8485main (void)
8486{
8487
8488  ;
8489  return 0;
8490}
8491_ACEOF
8492if ac_fn_c_try_link "$LINENO"
8493then :
8494  eval $cacheid=yes
8495else $as_nop
8496  eval $cacheid=no
8497fi
8498rm -f core conftest.err conftest.$ac_objext conftest.beam \
8499    conftest$ac_exeext conftest.$ac_ext
8500fi
8501
8502
8503		CFLAGS="$xorg_testset_save_CFLAGS"
8504
8505		eval supported=\$$cacheid
8506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8507printf "%s\n" "$supported" >&6; }
8508		if test "$supported" = "yes" ; then
8509			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8510			found="yes"
8511		fi
8512	fi
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528xorg_testset_save_CFLAGS="$CFLAGS"
8529
8530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8533printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8534if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8535then :
8536  printf %s "(cached) " >&6
8537else $as_nop
8538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539/* end confdefs.h.  */
8540int i;
8541_ACEOF
8542if ac_fn_c_try_compile "$LINENO"
8543then :
8544  xorg_cv_cc_flag_unknown_warning_option=yes
8545else $as_nop
8546  xorg_cv_cc_flag_unknown_warning_option=no
8547fi
8548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8549fi
8550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8553	CFLAGS="$xorg_testset_save_CFLAGS"
8554fi
8555
8556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559	fi
8560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8561	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8563if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8564then :
8565  printf %s "(cached) " >&6
8566else $as_nop
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569int i;
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"
8572then :
8573  xorg_cv_cc_flag_unused_command_line_argument=yes
8574else $as_nop
8575  xorg_cv_cc_flag_unused_command_line_argument=no
8576fi
8577rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8578fi
8579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8580printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8581	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8582	CFLAGS="$xorg_testset_save_CFLAGS"
8583fi
8584
8585found="no"
8586
8587	if test $found = "no" ; then
8588		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8589			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590		fi
8591
8592		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8593			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8594		fi
8595
8596		CFLAGS="$CFLAGS -Werror=array-bounds"
8597
8598		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8599printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8600		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8601		if eval test \${$cacheid+y}
8602then :
8603  printf %s "(cached) " >&6
8604else $as_nop
8605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606/* end confdefs.h.  */
8607int i;
8608int
8609main (void)
8610{
8611
8612  ;
8613  return 0;
8614}
8615_ACEOF
8616if ac_fn_c_try_link "$LINENO"
8617then :
8618  eval $cacheid=yes
8619else $as_nop
8620  eval $cacheid=no
8621fi
8622rm -f core conftest.err conftest.$ac_objext conftest.beam \
8623    conftest$ac_exeext conftest.$ac_ext
8624fi
8625
8626
8627		CFLAGS="$xorg_testset_save_CFLAGS"
8628
8629		eval supported=\$$cacheid
8630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8631printf "%s\n" "$supported" >&6; }
8632		if test "$supported" = "yes" ; then
8633			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8634			found="yes"
8635		fi
8636	fi
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652xorg_testset_save_CFLAGS="$CFLAGS"
8653
8654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8657printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8658if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8659then :
8660  printf %s "(cached) " >&6
8661else $as_nop
8662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663/* end confdefs.h.  */
8664int i;
8665_ACEOF
8666if ac_fn_c_try_compile "$LINENO"
8667then :
8668  xorg_cv_cc_flag_unknown_warning_option=yes
8669else $as_nop
8670  xorg_cv_cc_flag_unknown_warning_option=no
8671fi
8672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8673fi
8674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8675printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8677	CFLAGS="$xorg_testset_save_CFLAGS"
8678fi
8679
8680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683	fi
8684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8685	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8686printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8687if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8688then :
8689  printf %s "(cached) " >&6
8690else $as_nop
8691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692/* end confdefs.h.  */
8693int i;
8694_ACEOF
8695if ac_fn_c_try_compile "$LINENO"
8696then :
8697  xorg_cv_cc_flag_unused_command_line_argument=yes
8698else $as_nop
8699  xorg_cv_cc_flag_unused_command_line_argument=no
8700fi
8701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8702fi
8703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8704printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8705	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8706	CFLAGS="$xorg_testset_save_CFLAGS"
8707fi
8708
8709found="no"
8710
8711	if test $found = "no" ; then
8712		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8713			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8714		fi
8715
8716		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8717			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8718		fi
8719
8720		CFLAGS="$CFLAGS -Werror=write-strings"
8721
8722		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8723printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8724		cacheid=xorg_cv_cc_flag__Werror_write_strings
8725		if eval test \${$cacheid+y}
8726then :
8727  printf %s "(cached) " >&6
8728else $as_nop
8729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h.  */
8731int i;
8732int
8733main (void)
8734{
8735
8736  ;
8737  return 0;
8738}
8739_ACEOF
8740if ac_fn_c_try_link "$LINENO"
8741then :
8742  eval $cacheid=yes
8743else $as_nop
8744  eval $cacheid=no
8745fi
8746rm -f core conftest.err conftest.$ac_objext conftest.beam \
8747    conftest$ac_exeext conftest.$ac_ext
8748fi
8749
8750
8751		CFLAGS="$xorg_testset_save_CFLAGS"
8752
8753		eval supported=\$$cacheid
8754		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8755printf "%s\n" "$supported" >&6; }
8756		if test "$supported" = "yes" ; then
8757			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8758			found="yes"
8759		fi
8760	fi
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776xorg_testset_save_CFLAGS="$CFLAGS"
8777
8778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8779	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8781printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8782if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8783then :
8784  printf %s "(cached) " >&6
8785else $as_nop
8786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h.  */
8788int i;
8789_ACEOF
8790if ac_fn_c_try_compile "$LINENO"
8791then :
8792  xorg_cv_cc_flag_unknown_warning_option=yes
8793else $as_nop
8794  xorg_cv_cc_flag_unknown_warning_option=no
8795fi
8796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8797fi
8798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8799printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8800	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8801	CFLAGS="$xorg_testset_save_CFLAGS"
8802fi
8803
8804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8805	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8806		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8807	fi
8808	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8809	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8810printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8811if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8812then :
8813  printf %s "(cached) " >&6
8814else $as_nop
8815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816/* end confdefs.h.  */
8817int i;
8818_ACEOF
8819if ac_fn_c_try_compile "$LINENO"
8820then :
8821  xorg_cv_cc_flag_unused_command_line_argument=yes
8822else $as_nop
8823  xorg_cv_cc_flag_unused_command_line_argument=no
8824fi
8825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 $as_nop
8853  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 $as_nop
8868  eval $cacheid=no
8869fi
8870rm -f core conftest.err conftest.$ac_objext conftest.beam \
8871    conftest$ac_exeext conftest.$ac_ext
8872fi
8873
8874
8875		CFLAGS="$xorg_testset_save_CFLAGS"
8876
8877		eval supported=\$$cacheid
8878		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8879printf "%s\n" "$supported" >&6; }
8880		if test "$supported" = "yes" ; then
8881			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8882			found="yes"
8883		fi
8884	fi
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900xorg_testset_save_CFLAGS="$CFLAGS"
8901
8902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8905printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8906if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8907then :
8908  printf %s "(cached) " >&6
8909else $as_nop
8910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911/* end confdefs.h.  */
8912int i;
8913_ACEOF
8914if ac_fn_c_try_compile "$LINENO"
8915then :
8916  xorg_cv_cc_flag_unknown_warning_option=yes
8917else $as_nop
8918  xorg_cv_cc_flag_unknown_warning_option=no
8919fi
8920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8921fi
8922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8923printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8925	CFLAGS="$xorg_testset_save_CFLAGS"
8926fi
8927
8928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8931	fi
8932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8933	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8934printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8935if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8936then :
8937  printf %s "(cached) " >&6
8938else $as_nop
8939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h.  */
8941int i;
8942_ACEOF
8943if ac_fn_c_try_compile "$LINENO"
8944then :
8945  xorg_cv_cc_flag_unused_command_line_argument=yes
8946else $as_nop
8947  xorg_cv_cc_flag_unused_command_line_argument=no
8948fi
8949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8950fi
8951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8952printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8954	CFLAGS="$xorg_testset_save_CFLAGS"
8955fi
8956
8957found="no"
8958
8959	if test $found = "no" ; then
8960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962		fi
8963
8964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8966		fi
8967
8968		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8969
8970		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8971printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8972		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8973		if eval test \${$cacheid+y}
8974then :
8975  printf %s "(cached) " >&6
8976else $as_nop
8977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978/* end confdefs.h.  */
8979int i;
8980int
8981main (void)
8982{
8983
8984  ;
8985  return 0;
8986}
8987_ACEOF
8988if ac_fn_c_try_link "$LINENO"
8989then :
8990  eval $cacheid=yes
8991else $as_nop
8992  eval $cacheid=no
8993fi
8994rm -f core conftest.err conftest.$ac_objext conftest.beam \
8995    conftest$ac_exeext conftest.$ac_ext
8996fi
8997
8998
8999		CFLAGS="$xorg_testset_save_CFLAGS"
9000
9001		eval supported=\$$cacheid
9002		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9003printf "%s\n" "$supported" >&6; }
9004		if test "$supported" = "yes" ; then
9005			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9006			found="yes"
9007		fi
9008	fi
9009
9010	if test $found = "no" ; then
9011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013		fi
9014
9015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9017		fi
9018
9019		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9020
9021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9022printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9023		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9024		if eval test \${$cacheid+y}
9025then :
9026  printf %s "(cached) " >&6
9027else $as_nop
9028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h.  */
9030int i;
9031int
9032main (void)
9033{
9034
9035  ;
9036  return 0;
9037}
9038_ACEOF
9039if ac_fn_c_try_link "$LINENO"
9040then :
9041  eval $cacheid=yes
9042else $as_nop
9043  eval $cacheid=no
9044fi
9045rm -f core conftest.err conftest.$ac_objext conftest.beam \
9046    conftest$ac_exeext conftest.$ac_ext
9047fi
9048
9049
9050		CFLAGS="$xorg_testset_save_CFLAGS"
9051
9052		eval supported=\$$cacheid
9053		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9054printf "%s\n" "$supported" >&6; }
9055		if test "$supported" = "yes" ; then
9056			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9057			found="yes"
9058		fi
9059	fi
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075xorg_testset_save_CFLAGS="$CFLAGS"
9076
9077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9081if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9082then :
9083  printf %s "(cached) " >&6
9084else $as_nop
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088_ACEOF
9089if ac_fn_c_try_compile "$LINENO"
9090then :
9091  xorg_cv_cc_flag_unknown_warning_option=yes
9092else $as_nop
9093  xorg_cv_cc_flag_unknown_warning_option=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9096fi
9097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9100	CFLAGS="$xorg_testset_save_CFLAGS"
9101fi
9102
9103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106	fi
9107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9111then :
9112  printf %s "(cached) " >&6
9113else $as_nop
9114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115/* end confdefs.h.  */
9116int i;
9117_ACEOF
9118if ac_fn_c_try_compile "$LINENO"
9119then :
9120  xorg_cv_cc_flag_unused_command_line_argument=yes
9121else $as_nop
9122  xorg_cv_cc_flag_unused_command_line_argument=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9125fi
9126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129	CFLAGS="$xorg_testset_save_CFLAGS"
9130fi
9131
9132found="no"
9133
9134	if test $found = "no" ; then
9135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137		fi
9138
9139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141		fi
9142
9143		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9144
9145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9146printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9147		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9148		if eval test \${$cacheid+y}
9149then :
9150  printf %s "(cached) " >&6
9151else $as_nop
9152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h.  */
9154int i;
9155int
9156main (void)
9157{
9158
9159  ;
9160  return 0;
9161}
9162_ACEOF
9163if ac_fn_c_try_link "$LINENO"
9164then :
9165  eval $cacheid=yes
9166else $as_nop
9167  eval $cacheid=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext conftest.beam \
9170    conftest$ac_exeext conftest.$ac_ext
9171fi
9172
9173
9174		CFLAGS="$xorg_testset_save_CFLAGS"
9175
9176		eval supported=\$$cacheid
9177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9178printf "%s\n" "$supported" >&6; }
9179		if test "$supported" = "yes" ; then
9180			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9181			found="yes"
9182		fi
9183	fi
9184
9185 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9186else
9187{ 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
9188printf "%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;}
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202xorg_testset_save_CFLAGS="$CFLAGS"
9203
9204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9208if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9209then :
9210  printf %s "(cached) " >&6
9211else $as_nop
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215_ACEOF
9216if ac_fn_c_try_compile "$LINENO"
9217then :
9218  xorg_cv_cc_flag_unknown_warning_option=yes
9219else $as_nop
9220  xorg_cv_cc_flag_unknown_warning_option=no
9221fi
9222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9223fi
9224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9227	CFLAGS="$xorg_testset_save_CFLAGS"
9228fi
9229
9230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9233	fi
9234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9237if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9238then :
9239  printf %s "(cached) " >&6
9240else $as_nop
9241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h.  */
9243int i;
9244_ACEOF
9245if ac_fn_c_try_compile "$LINENO"
9246then :
9247  xorg_cv_cc_flag_unused_command_line_argument=yes
9248else $as_nop
9249  xorg_cv_cc_flag_unused_command_line_argument=no
9250fi
9251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9252fi
9253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9256	CFLAGS="$xorg_testset_save_CFLAGS"
9257fi
9258
9259found="no"
9260
9261	if test $found = "no" ; then
9262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9264		fi
9265
9266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9268		fi
9269
9270		CFLAGS="$CFLAGS -Wimplicit"
9271
9272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9273printf %s "checking if $CC supports -Wimplicit... " >&6; }
9274		cacheid=xorg_cv_cc_flag__Wimplicit
9275		if eval test \${$cacheid+y}
9276then :
9277  printf %s "(cached) " >&6
9278else $as_nop
9279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h.  */
9281int i;
9282int
9283main (void)
9284{
9285
9286  ;
9287  return 0;
9288}
9289_ACEOF
9290if ac_fn_c_try_link "$LINENO"
9291then :
9292  eval $cacheid=yes
9293else $as_nop
9294  eval $cacheid=no
9295fi
9296rm -f core conftest.err conftest.$ac_objext conftest.beam \
9297    conftest$ac_exeext conftest.$ac_ext
9298fi
9299
9300
9301		CFLAGS="$xorg_testset_save_CFLAGS"
9302
9303		eval supported=\$$cacheid
9304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9305printf "%s\n" "$supported" >&6; }
9306		if test "$supported" = "yes" ; then
9307			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9308			found="yes"
9309		fi
9310	fi
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326xorg_testset_save_CFLAGS="$CFLAGS"
9327
9328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9332if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9333then :
9334  printf %s "(cached) " >&6
9335else $as_nop
9336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h.  */
9338int i;
9339_ACEOF
9340if ac_fn_c_try_compile "$LINENO"
9341then :
9342  xorg_cv_cc_flag_unknown_warning_option=yes
9343else $as_nop
9344  xorg_cv_cc_flag_unknown_warning_option=no
9345fi
9346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9347fi
9348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9351	CFLAGS="$xorg_testset_save_CFLAGS"
9352fi
9353
9354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357	fi
9358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9361if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9362then :
9363  printf %s "(cached) " >&6
9364else $as_nop
9365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366/* end confdefs.h.  */
9367int i;
9368_ACEOF
9369if ac_fn_c_try_compile "$LINENO"
9370then :
9371  xorg_cv_cc_flag_unused_command_line_argument=yes
9372else $as_nop
9373  xorg_cv_cc_flag_unused_command_line_argument=no
9374fi
9375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9376fi
9377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9380	CFLAGS="$xorg_testset_save_CFLAGS"
9381fi
9382
9383found="no"
9384
9385	if test $found = "no" ; then
9386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388		fi
9389
9390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9392		fi
9393
9394		CFLAGS="$CFLAGS -Wnonnull"
9395
9396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9397printf %s "checking if $CC supports -Wnonnull... " >&6; }
9398		cacheid=xorg_cv_cc_flag__Wnonnull
9399		if eval test \${$cacheid+y}
9400then :
9401  printf %s "(cached) " >&6
9402else $as_nop
9403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h.  */
9405int i;
9406int
9407main (void)
9408{
9409
9410  ;
9411  return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"
9415then :
9416  eval $cacheid=yes
9417else $as_nop
9418  eval $cacheid=no
9419fi
9420rm -f core conftest.err conftest.$ac_objext conftest.beam \
9421    conftest$ac_exeext conftest.$ac_ext
9422fi
9423
9424
9425		CFLAGS="$xorg_testset_save_CFLAGS"
9426
9427		eval supported=\$$cacheid
9428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9429printf "%s\n" "$supported" >&6; }
9430		if test "$supported" = "yes" ; then
9431			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9432			found="yes"
9433		fi
9434	fi
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450xorg_testset_save_CFLAGS="$CFLAGS"
9451
9452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9456if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9457then :
9458  printf %s "(cached) " >&6
9459else $as_nop
9460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461/* end confdefs.h.  */
9462int i;
9463_ACEOF
9464if ac_fn_c_try_compile "$LINENO"
9465then :
9466  xorg_cv_cc_flag_unknown_warning_option=yes
9467else $as_nop
9468  xorg_cv_cc_flag_unknown_warning_option=no
9469fi
9470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9471fi
9472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9475	CFLAGS="$xorg_testset_save_CFLAGS"
9476fi
9477
9478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9481	fi
9482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9485if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9486then :
9487  printf %s "(cached) " >&6
9488else $as_nop
9489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490/* end confdefs.h.  */
9491int i;
9492_ACEOF
9493if ac_fn_c_try_compile "$LINENO"
9494then :
9495  xorg_cv_cc_flag_unused_command_line_argument=yes
9496else $as_nop
9497  xorg_cv_cc_flag_unused_command_line_argument=no
9498fi
9499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9500fi
9501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9502printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9504	CFLAGS="$xorg_testset_save_CFLAGS"
9505fi
9506
9507found="no"
9508
9509	if test $found = "no" ; then
9510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9512		fi
9513
9514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9516		fi
9517
9518		CFLAGS="$CFLAGS -Winit-self"
9519
9520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9521printf %s "checking if $CC supports -Winit-self... " >&6; }
9522		cacheid=xorg_cv_cc_flag__Winit_self
9523		if eval test \${$cacheid+y}
9524then :
9525  printf %s "(cached) " >&6
9526else $as_nop
9527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h.  */
9529int i;
9530int
9531main (void)
9532{
9533
9534  ;
9535  return 0;
9536}
9537_ACEOF
9538if ac_fn_c_try_link "$LINENO"
9539then :
9540  eval $cacheid=yes
9541else $as_nop
9542  eval $cacheid=no
9543fi
9544rm -f core conftest.err conftest.$ac_objext conftest.beam \
9545    conftest$ac_exeext conftest.$ac_ext
9546fi
9547
9548
9549		CFLAGS="$xorg_testset_save_CFLAGS"
9550
9551		eval supported=\$$cacheid
9552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9553printf "%s\n" "$supported" >&6; }
9554		if test "$supported" = "yes" ; then
9555			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9556			found="yes"
9557		fi
9558	fi
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574xorg_testset_save_CFLAGS="$CFLAGS"
9575
9576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9580if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9581then :
9582  printf %s "(cached) " >&6
9583else $as_nop
9584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586int i;
9587_ACEOF
9588if ac_fn_c_try_compile "$LINENO"
9589then :
9590  xorg_cv_cc_flag_unknown_warning_option=yes
9591else $as_nop
9592  xorg_cv_cc_flag_unknown_warning_option=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9595fi
9596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599	CFLAGS="$xorg_testset_save_CFLAGS"
9600fi
9601
9602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605	fi
9606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9610then :
9611  printf %s "(cached) " >&6
9612else $as_nop
9613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614/* end confdefs.h.  */
9615int i;
9616_ACEOF
9617if ac_fn_c_try_compile "$LINENO"
9618then :
9619  xorg_cv_cc_flag_unused_command_line_argument=yes
9620else $as_nop
9621  xorg_cv_cc_flag_unused_command_line_argument=no
9622fi
9623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9624fi
9625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9628	CFLAGS="$xorg_testset_save_CFLAGS"
9629fi
9630
9631found="no"
9632
9633	if test $found = "no" ; then
9634		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9636		fi
9637
9638		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9640		fi
9641
9642		CFLAGS="$CFLAGS -Wmain"
9643
9644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9645printf %s "checking if $CC supports -Wmain... " >&6; }
9646		cacheid=xorg_cv_cc_flag__Wmain
9647		if eval test \${$cacheid+y}
9648then :
9649  printf %s "(cached) " >&6
9650else $as_nop
9651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h.  */
9653int i;
9654int
9655main (void)
9656{
9657
9658  ;
9659  return 0;
9660}
9661_ACEOF
9662if ac_fn_c_try_link "$LINENO"
9663then :
9664  eval $cacheid=yes
9665else $as_nop
9666  eval $cacheid=no
9667fi
9668rm -f core conftest.err conftest.$ac_objext conftest.beam \
9669    conftest$ac_exeext conftest.$ac_ext
9670fi
9671
9672
9673		CFLAGS="$xorg_testset_save_CFLAGS"
9674
9675		eval supported=\$$cacheid
9676		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9677printf "%s\n" "$supported" >&6; }
9678		if test "$supported" = "yes" ; then
9679			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9680			found="yes"
9681		fi
9682	fi
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698xorg_testset_save_CFLAGS="$CFLAGS"
9699
9700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9701	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9702	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9703printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9704if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9705then :
9706  printf %s "(cached) " >&6
9707else $as_nop
9708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710int i;
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"
9713then :
9714  xorg_cv_cc_flag_unknown_warning_option=yes
9715else $as_nop
9716  xorg_cv_cc_flag_unknown_warning_option=no
9717fi
9718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9719fi
9720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9722	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9723	CFLAGS="$xorg_testset_save_CFLAGS"
9724fi
9725
9726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9727	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9728		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9729	fi
9730	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9733if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9734then :
9735  printf %s "(cached) " >&6
9736else $as_nop
9737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738/* end confdefs.h.  */
9739int i;
9740_ACEOF
9741if ac_fn_c_try_compile "$LINENO"
9742then :
9743  xorg_cv_cc_flag_unused_command_line_argument=yes
9744else $as_nop
9745  xorg_cv_cc_flag_unused_command_line_argument=no
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9748fi
9749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9750printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9751	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9752	CFLAGS="$xorg_testset_save_CFLAGS"
9753fi
9754
9755found="no"
9756
9757	if test $found = "no" ; then
9758		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9759			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9760		fi
9761
9762		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9763			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9764		fi
9765
9766		CFLAGS="$CFLAGS -Wmissing-braces"
9767
9768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9769printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9770		cacheid=xorg_cv_cc_flag__Wmissing_braces
9771		if eval test \${$cacheid+y}
9772then :
9773  printf %s "(cached) " >&6
9774else $as_nop
9775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h.  */
9777int i;
9778int
9779main (void)
9780{
9781
9782  ;
9783  return 0;
9784}
9785_ACEOF
9786if ac_fn_c_try_link "$LINENO"
9787then :
9788  eval $cacheid=yes
9789else $as_nop
9790  eval $cacheid=no
9791fi
9792rm -f core conftest.err conftest.$ac_objext conftest.beam \
9793    conftest$ac_exeext conftest.$ac_ext
9794fi
9795
9796
9797		CFLAGS="$xorg_testset_save_CFLAGS"
9798
9799		eval supported=\$$cacheid
9800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9801printf "%s\n" "$supported" >&6; }
9802		if test "$supported" = "yes" ; then
9803			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9804			found="yes"
9805		fi
9806	fi
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822xorg_testset_save_CFLAGS="$CFLAGS"
9823
9824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9828if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9829then :
9830  printf %s "(cached) " >&6
9831else $as_nop
9832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834int i;
9835_ACEOF
9836if ac_fn_c_try_compile "$LINENO"
9837then :
9838  xorg_cv_cc_flag_unknown_warning_option=yes
9839else $as_nop
9840  xorg_cv_cc_flag_unknown_warning_option=no
9841fi
9842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9843fi
9844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9847	CFLAGS="$xorg_testset_save_CFLAGS"
9848fi
9849
9850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853	fi
9854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9857if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9858then :
9859  printf %s "(cached) " >&6
9860else $as_nop
9861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h.  */
9863int i;
9864_ACEOF
9865if ac_fn_c_try_compile "$LINENO"
9866then :
9867  xorg_cv_cc_flag_unused_command_line_argument=yes
9868else $as_nop
9869  xorg_cv_cc_flag_unused_command_line_argument=no
9870fi
9871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9872fi
9873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9874printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9875	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9876	CFLAGS="$xorg_testset_save_CFLAGS"
9877fi
9878
9879found="no"
9880
9881	if test $found = "no" ; then
9882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9884		fi
9885
9886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9888		fi
9889
9890		CFLAGS="$CFLAGS -Wsequence-point"
9891
9892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9893printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9894		cacheid=xorg_cv_cc_flag__Wsequence_point
9895		if eval test \${$cacheid+y}
9896then :
9897  printf %s "(cached) " >&6
9898else $as_nop
9899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h.  */
9901int i;
9902int
9903main (void)
9904{
9905
9906  ;
9907  return 0;
9908}
9909_ACEOF
9910if ac_fn_c_try_link "$LINENO"
9911then :
9912  eval $cacheid=yes
9913else $as_nop
9914  eval $cacheid=no
9915fi
9916rm -f core conftest.err conftest.$ac_objext conftest.beam \
9917    conftest$ac_exeext conftest.$ac_ext
9918fi
9919
9920
9921		CFLAGS="$xorg_testset_save_CFLAGS"
9922
9923		eval supported=\$$cacheid
9924		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9925printf "%s\n" "$supported" >&6; }
9926		if test "$supported" = "yes" ; then
9927			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9928			found="yes"
9929		fi
9930	fi
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946xorg_testset_save_CFLAGS="$CFLAGS"
9947
9948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9951printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9952if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9953then :
9954  printf %s "(cached) " >&6
9955else $as_nop
9956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h.  */
9958int i;
9959_ACEOF
9960if ac_fn_c_try_compile "$LINENO"
9961then :
9962  xorg_cv_cc_flag_unknown_warning_option=yes
9963else $as_nop
9964  xorg_cv_cc_flag_unknown_warning_option=no
9965fi
9966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9967fi
9968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9969printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9971	CFLAGS="$xorg_testset_save_CFLAGS"
9972fi
9973
9974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9977	fi
9978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9980printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9981if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9982then :
9983  printf %s "(cached) " >&6
9984else $as_nop
9985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986/* end confdefs.h.  */
9987int i;
9988_ACEOF
9989if ac_fn_c_try_compile "$LINENO"
9990then :
9991  xorg_cv_cc_flag_unused_command_line_argument=yes
9992else $as_nop
9993  xorg_cv_cc_flag_unused_command_line_argument=no
9994fi
9995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9996fi
9997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9999	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10000	CFLAGS="$xorg_testset_save_CFLAGS"
10001fi
10002
10003found="no"
10004
10005	if test $found = "no" ; then
10006		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10007			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10008		fi
10009
10010		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10011			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10012		fi
10013
10014		CFLAGS="$CFLAGS -Wreturn-type"
10015
10016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10017printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10018		cacheid=xorg_cv_cc_flag__Wreturn_type
10019		if eval test \${$cacheid+y}
10020then :
10021  printf %s "(cached) " >&6
10022else $as_nop
10023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025int i;
10026int
10027main (void)
10028{
10029
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034if ac_fn_c_try_link "$LINENO"
10035then :
10036  eval $cacheid=yes
10037else $as_nop
10038  eval $cacheid=no
10039fi
10040rm -f core conftest.err conftest.$ac_objext conftest.beam \
10041    conftest$ac_exeext conftest.$ac_ext
10042fi
10043
10044
10045		CFLAGS="$xorg_testset_save_CFLAGS"
10046
10047		eval supported=\$$cacheid
10048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10049printf "%s\n" "$supported" >&6; }
10050		if test "$supported" = "yes" ; then
10051			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10052			found="yes"
10053		fi
10054	fi
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070xorg_testset_save_CFLAGS="$CFLAGS"
10071
10072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10073	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10075printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10076if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10077then :
10078  printf %s "(cached) " >&6
10079else $as_nop
10080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081/* end confdefs.h.  */
10082int i;
10083_ACEOF
10084if ac_fn_c_try_compile "$LINENO"
10085then :
10086  xorg_cv_cc_flag_unknown_warning_option=yes
10087else $as_nop
10088  xorg_cv_cc_flag_unknown_warning_option=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10091fi
10092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10093printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10094	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10095	CFLAGS="$xorg_testset_save_CFLAGS"
10096fi
10097
10098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10099	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10100		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10101	fi
10102	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10103	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10104printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10105if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10106then :
10107  printf %s "(cached) " >&6
10108else $as_nop
10109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110/* end confdefs.h.  */
10111int i;
10112_ACEOF
10113if ac_fn_c_try_compile "$LINENO"
10114then :
10115  xorg_cv_cc_flag_unused_command_line_argument=yes
10116else $as_nop
10117  xorg_cv_cc_flag_unused_command_line_argument=no
10118fi
10119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10120fi
10121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10122printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10124	CFLAGS="$xorg_testset_save_CFLAGS"
10125fi
10126
10127found="no"
10128
10129	if test $found = "no" ; then
10130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10132		fi
10133
10134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10136		fi
10137
10138		CFLAGS="$CFLAGS -Wtrigraphs"
10139
10140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10141printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10142		cacheid=xorg_cv_cc_flag__Wtrigraphs
10143		if eval test \${$cacheid+y}
10144then :
10145  printf %s "(cached) " >&6
10146else $as_nop
10147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148/* end confdefs.h.  */
10149int i;
10150int
10151main (void)
10152{
10153
10154  ;
10155  return 0;
10156}
10157_ACEOF
10158if ac_fn_c_try_link "$LINENO"
10159then :
10160  eval $cacheid=yes
10161else $as_nop
10162  eval $cacheid=no
10163fi
10164rm -f core conftest.err conftest.$ac_objext conftest.beam \
10165    conftest$ac_exeext conftest.$ac_ext
10166fi
10167
10168
10169		CFLAGS="$xorg_testset_save_CFLAGS"
10170
10171		eval supported=\$$cacheid
10172		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10173printf "%s\n" "$supported" >&6; }
10174		if test "$supported" = "yes" ; then
10175			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10176			found="yes"
10177		fi
10178	fi
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194xorg_testset_save_CFLAGS="$CFLAGS"
10195
10196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10200if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10201then :
10202  printf %s "(cached) " >&6
10203else $as_nop
10204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205/* end confdefs.h.  */
10206int i;
10207_ACEOF
10208if ac_fn_c_try_compile "$LINENO"
10209then :
10210  xorg_cv_cc_flag_unknown_warning_option=yes
10211else $as_nop
10212  xorg_cv_cc_flag_unknown_warning_option=no
10213fi
10214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10215fi
10216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10219	CFLAGS="$xorg_testset_save_CFLAGS"
10220fi
10221
10222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225	fi
10226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10229if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10230then :
10231  printf %s "(cached) " >&6
10232else $as_nop
10233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234/* end confdefs.h.  */
10235int i;
10236_ACEOF
10237if ac_fn_c_try_compile "$LINENO"
10238then :
10239  xorg_cv_cc_flag_unused_command_line_argument=yes
10240else $as_nop
10241  xorg_cv_cc_flag_unused_command_line_argument=no
10242fi
10243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10244fi
10245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10248	CFLAGS="$xorg_testset_save_CFLAGS"
10249fi
10250
10251found="no"
10252
10253	if test $found = "no" ; then
10254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10256		fi
10257
10258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10260		fi
10261
10262		CFLAGS="$CFLAGS -Warray-bounds"
10263
10264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10265printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10266		cacheid=xorg_cv_cc_flag__Warray_bounds
10267		if eval test \${$cacheid+y}
10268then :
10269  printf %s "(cached) " >&6
10270else $as_nop
10271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273int i;
10274int
10275main (void)
10276{
10277
10278  ;
10279  return 0;
10280}
10281_ACEOF
10282if ac_fn_c_try_link "$LINENO"
10283then :
10284  eval $cacheid=yes
10285else $as_nop
10286  eval $cacheid=no
10287fi
10288rm -f core conftest.err conftest.$ac_objext conftest.beam \
10289    conftest$ac_exeext conftest.$ac_ext
10290fi
10291
10292
10293		CFLAGS="$xorg_testset_save_CFLAGS"
10294
10295		eval supported=\$$cacheid
10296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10297printf "%s\n" "$supported" >&6; }
10298		if test "$supported" = "yes" ; then
10299			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10300			found="yes"
10301		fi
10302	fi
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318xorg_testset_save_CFLAGS="$CFLAGS"
10319
10320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10324if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10325then :
10326  printf %s "(cached) " >&6
10327else $as_nop
10328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h.  */
10330int i;
10331_ACEOF
10332if ac_fn_c_try_compile "$LINENO"
10333then :
10334  xorg_cv_cc_flag_unknown_warning_option=yes
10335else $as_nop
10336  xorg_cv_cc_flag_unknown_warning_option=no
10337fi
10338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10339fi
10340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10341printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10343	CFLAGS="$xorg_testset_save_CFLAGS"
10344fi
10345
10346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349	fi
10350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10351	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10352printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10353if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10354then :
10355  printf %s "(cached) " >&6
10356else $as_nop
10357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358/* end confdefs.h.  */
10359int i;
10360_ACEOF
10361if ac_fn_c_try_compile "$LINENO"
10362then :
10363  xorg_cv_cc_flag_unused_command_line_argument=yes
10364else $as_nop
10365  xorg_cv_cc_flag_unused_command_line_argument=no
10366fi
10367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10368fi
10369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10371	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10372	CFLAGS="$xorg_testset_save_CFLAGS"
10373fi
10374
10375found="no"
10376
10377	if test $found = "no" ; then
10378		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10380		fi
10381
10382		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10384		fi
10385
10386		CFLAGS="$CFLAGS -Wwrite-strings"
10387
10388		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10389printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10390		cacheid=xorg_cv_cc_flag__Wwrite_strings
10391		if eval test \${$cacheid+y}
10392then :
10393  printf %s "(cached) " >&6
10394else $as_nop
10395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10396/* end confdefs.h.  */
10397int i;
10398int
10399main (void)
10400{
10401
10402  ;
10403  return 0;
10404}
10405_ACEOF
10406if ac_fn_c_try_link "$LINENO"
10407then :
10408  eval $cacheid=yes
10409else $as_nop
10410  eval $cacheid=no
10411fi
10412rm -f core conftest.err conftest.$ac_objext conftest.beam \
10413    conftest$ac_exeext conftest.$ac_ext
10414fi
10415
10416
10417		CFLAGS="$xorg_testset_save_CFLAGS"
10418
10419		eval supported=\$$cacheid
10420		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10421printf "%s\n" "$supported" >&6; }
10422		if test "$supported" = "yes" ; then
10423			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10424			found="yes"
10425		fi
10426	fi
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442xorg_testset_save_CFLAGS="$CFLAGS"
10443
10444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10448if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10449then :
10450  printf %s "(cached) " >&6
10451else $as_nop
10452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453/* end confdefs.h.  */
10454int i;
10455_ACEOF
10456if ac_fn_c_try_compile "$LINENO"
10457then :
10458  xorg_cv_cc_flag_unknown_warning_option=yes
10459else $as_nop
10460  xorg_cv_cc_flag_unknown_warning_option=no
10461fi
10462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10463fi
10464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10467	CFLAGS="$xorg_testset_save_CFLAGS"
10468fi
10469
10470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10473	fi
10474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10477if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10478then :
10479  printf %s "(cached) " >&6
10480else $as_nop
10481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482/* end confdefs.h.  */
10483int i;
10484_ACEOF
10485if ac_fn_c_try_compile "$LINENO"
10486then :
10487  xorg_cv_cc_flag_unused_command_line_argument=yes
10488else $as_nop
10489  xorg_cv_cc_flag_unused_command_line_argument=no
10490fi
10491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10492fi
10493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10494printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10495	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10496	CFLAGS="$xorg_testset_save_CFLAGS"
10497fi
10498
10499found="no"
10500
10501	if test $found = "no" ; then
10502		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10504		fi
10505
10506		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10508		fi
10509
10510		CFLAGS="$CFLAGS -Waddress"
10511
10512		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10513printf %s "checking if $CC supports -Waddress... " >&6; }
10514		cacheid=xorg_cv_cc_flag__Waddress
10515		if eval test \${$cacheid+y}
10516then :
10517  printf %s "(cached) " >&6
10518else $as_nop
10519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h.  */
10521int i;
10522int
10523main (void)
10524{
10525
10526  ;
10527  return 0;
10528}
10529_ACEOF
10530if ac_fn_c_try_link "$LINENO"
10531then :
10532  eval $cacheid=yes
10533else $as_nop
10534  eval $cacheid=no
10535fi
10536rm -f core conftest.err conftest.$ac_objext conftest.beam \
10537    conftest$ac_exeext conftest.$ac_ext
10538fi
10539
10540
10541		CFLAGS="$xorg_testset_save_CFLAGS"
10542
10543		eval supported=\$$cacheid
10544		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10545printf "%s\n" "$supported" >&6; }
10546		if test "$supported" = "yes" ; then
10547			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10548			found="yes"
10549		fi
10550	fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566xorg_testset_save_CFLAGS="$CFLAGS"
10567
10568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10569	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10570	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10572if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10573then :
10574  printf %s "(cached) " >&6
10575else $as_nop
10576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577/* end confdefs.h.  */
10578int i;
10579_ACEOF
10580if ac_fn_c_try_compile "$LINENO"
10581then :
10582  xorg_cv_cc_flag_unknown_warning_option=yes
10583else $as_nop
10584  xorg_cv_cc_flag_unknown_warning_option=no
10585fi
10586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10587fi
10588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10589printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10591	CFLAGS="$xorg_testset_save_CFLAGS"
10592fi
10593
10594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10597	fi
10598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10600printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10601if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10602then :
10603  printf %s "(cached) " >&6
10604else $as_nop
10605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606/* end confdefs.h.  */
10607int i;
10608_ACEOF
10609if ac_fn_c_try_compile "$LINENO"
10610then :
10611  xorg_cv_cc_flag_unused_command_line_argument=yes
10612else $as_nop
10613  xorg_cv_cc_flag_unused_command_line_argument=no
10614fi
10615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10616fi
10617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10620	CFLAGS="$xorg_testset_save_CFLAGS"
10621fi
10622
10623found="no"
10624
10625	if test $found = "no" ; then
10626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10628		fi
10629
10630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10632		fi
10633
10634		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10635
10636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10637printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10638		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10639		if eval test \${$cacheid+y}
10640then :
10641  printf %s "(cached) " >&6
10642else $as_nop
10643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644/* end confdefs.h.  */
10645int i;
10646int
10647main (void)
10648{
10649
10650  ;
10651  return 0;
10652}
10653_ACEOF
10654if ac_fn_c_try_link "$LINENO"
10655then :
10656  eval $cacheid=yes
10657else $as_nop
10658  eval $cacheid=no
10659fi
10660rm -f core conftest.err conftest.$ac_objext conftest.beam \
10661    conftest$ac_exeext conftest.$ac_ext
10662fi
10663
10664
10665		CFLAGS="$xorg_testset_save_CFLAGS"
10666
10667		eval supported=\$$cacheid
10668		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10669printf "%s\n" "$supported" >&6; }
10670		if test "$supported" = "yes" ; then
10671			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10672			found="yes"
10673		fi
10674	fi
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690xorg_testset_save_CFLAGS="$CFLAGS"
10691
10692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10696if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10697then :
10698  printf %s "(cached) " >&6
10699else $as_nop
10700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701/* end confdefs.h.  */
10702int i;
10703_ACEOF
10704if ac_fn_c_try_compile "$LINENO"
10705then :
10706  xorg_cv_cc_flag_unknown_warning_option=yes
10707else $as_nop
10708  xorg_cv_cc_flag_unknown_warning_option=no
10709fi
10710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10711fi
10712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10713printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10715	CFLAGS="$xorg_testset_save_CFLAGS"
10716fi
10717
10718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10721	fi
10722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10723	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10724printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10725if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10726then :
10727  printf %s "(cached) " >&6
10728else $as_nop
10729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h.  */
10731int i;
10732_ACEOF
10733if ac_fn_c_try_compile "$LINENO"
10734then :
10735  xorg_cv_cc_flag_unused_command_line_argument=yes
10736else $as_nop
10737  xorg_cv_cc_flag_unused_command_line_argument=no
10738fi
10739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10740fi
10741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10742printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10743	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10744	CFLAGS="$xorg_testset_save_CFLAGS"
10745fi
10746
10747found="no"
10748
10749	if test $found = "no" ; then
10750		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10751			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10752		fi
10753
10754		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10755			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10756		fi
10757
10758		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10759
10760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10761printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10762		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10763		if eval test \${$cacheid+y}
10764then :
10765  printf %s "(cached) " >&6
10766else $as_nop
10767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768/* end confdefs.h.  */
10769int i;
10770int
10771main (void)
10772{
10773
10774  ;
10775  return 0;
10776}
10777_ACEOF
10778if ac_fn_c_try_link "$LINENO"
10779then :
10780  eval $cacheid=yes
10781else $as_nop
10782  eval $cacheid=no
10783fi
10784rm -f core conftest.err conftest.$ac_objext conftest.beam \
10785    conftest$ac_exeext conftest.$ac_ext
10786fi
10787
10788
10789		CFLAGS="$xorg_testset_save_CFLAGS"
10790
10791		eval supported=\$$cacheid
10792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10793printf "%s\n" "$supported" >&6; }
10794		if test "$supported" = "yes" ; then
10795			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10796			found="yes"
10797		fi
10798	fi
10799
10800
10801fi
10802
10803
10804
10805
10806
10807
10808
10809		CWARNFLAGS="$BASE_CFLAGS"
10810		if  test "x$GCC" = xyes ; then
10811		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10812		fi
10813
10814
10815
10816
10817
10818
10819
10820
10821# Check whether --enable-strict-compilation was given.
10822if test ${enable_strict_compilation+y}
10823then :
10824  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10825else $as_nop
10826  STRICT_COMPILE=no
10827fi
10828
10829
10830
10831
10832
10833
10834STRICT_CFLAGS=""
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848xorg_testset_save_CFLAGS="$CFLAGS"
10849
10850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10852	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10854if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10855then :
10856  printf %s "(cached) " >&6
10857else $as_nop
10858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859/* end confdefs.h.  */
10860int i;
10861_ACEOF
10862if ac_fn_c_try_compile "$LINENO"
10863then :
10864  xorg_cv_cc_flag_unknown_warning_option=yes
10865else $as_nop
10866  xorg_cv_cc_flag_unknown_warning_option=no
10867fi
10868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10869fi
10870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10871printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10872	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10873	CFLAGS="$xorg_testset_save_CFLAGS"
10874fi
10875
10876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10877	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10878		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10879	fi
10880	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10882printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10883if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10884then :
10885  printf %s "(cached) " >&6
10886else $as_nop
10887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h.  */
10889int i;
10890_ACEOF
10891if ac_fn_c_try_compile "$LINENO"
10892then :
10893  xorg_cv_cc_flag_unused_command_line_argument=yes
10894else $as_nop
10895  xorg_cv_cc_flag_unused_command_line_argument=no
10896fi
10897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10898fi
10899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10900printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10902	CFLAGS="$xorg_testset_save_CFLAGS"
10903fi
10904
10905found="no"
10906
10907	if test $found = "no" ; then
10908		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10910		fi
10911
10912		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10914		fi
10915
10916		CFLAGS="$CFLAGS -pedantic"
10917
10918		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10919printf %s "checking if $CC supports -pedantic... " >&6; }
10920		cacheid=xorg_cv_cc_flag__pedantic
10921		if eval test \${$cacheid+y}
10922then :
10923  printf %s "(cached) " >&6
10924else $as_nop
10925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926/* end confdefs.h.  */
10927int i;
10928int
10929main (void)
10930{
10931
10932  ;
10933  return 0;
10934}
10935_ACEOF
10936if ac_fn_c_try_link "$LINENO"
10937then :
10938  eval $cacheid=yes
10939else $as_nop
10940  eval $cacheid=no
10941fi
10942rm -f core conftest.err conftest.$ac_objext conftest.beam \
10943    conftest$ac_exeext conftest.$ac_ext
10944fi
10945
10946
10947		CFLAGS="$xorg_testset_save_CFLAGS"
10948
10949		eval supported=\$$cacheid
10950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10951printf "%s\n" "$supported" >&6; }
10952		if test "$supported" = "yes" ; then
10953			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10954			found="yes"
10955		fi
10956	fi
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972xorg_testset_save_CFLAGS="$CFLAGS"
10973
10974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10978if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10979then :
10980  printf %s "(cached) " >&6
10981else $as_nop
10982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983/* end confdefs.h.  */
10984int i;
10985_ACEOF
10986if ac_fn_c_try_compile "$LINENO"
10987then :
10988  xorg_cv_cc_flag_unknown_warning_option=yes
10989else $as_nop
10990  xorg_cv_cc_flag_unknown_warning_option=no
10991fi
10992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10993fi
10994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10997	CFLAGS="$xorg_testset_save_CFLAGS"
10998fi
10999
11000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11003	fi
11004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11007if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11008then :
11009  printf %s "(cached) " >&6
11010else $as_nop
11011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012/* end confdefs.h.  */
11013int i;
11014_ACEOF
11015if ac_fn_c_try_compile "$LINENO"
11016then :
11017  xorg_cv_cc_flag_unused_command_line_argument=yes
11018else $as_nop
11019  xorg_cv_cc_flag_unused_command_line_argument=no
11020fi
11021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11022fi
11023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11026	CFLAGS="$xorg_testset_save_CFLAGS"
11027fi
11028
11029found="no"
11030
11031	if test $found = "no" ; then
11032		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11034		fi
11035
11036		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11038		fi
11039
11040		CFLAGS="$CFLAGS -Werror"
11041
11042		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11043printf %s "checking if $CC supports -Werror... " >&6; }
11044		cacheid=xorg_cv_cc_flag__Werror
11045		if eval test \${$cacheid+y}
11046then :
11047  printf %s "(cached) " >&6
11048else $as_nop
11049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050/* end confdefs.h.  */
11051int i;
11052int
11053main (void)
11054{
11055
11056  ;
11057  return 0;
11058}
11059_ACEOF
11060if ac_fn_c_try_link "$LINENO"
11061then :
11062  eval $cacheid=yes
11063else $as_nop
11064  eval $cacheid=no
11065fi
11066rm -f core conftest.err conftest.$ac_objext conftest.beam \
11067    conftest$ac_exeext conftest.$ac_ext
11068fi
11069
11070
11071		CFLAGS="$xorg_testset_save_CFLAGS"
11072
11073		eval supported=\$$cacheid
11074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11075printf "%s\n" "$supported" >&6; }
11076		if test "$supported" = "yes" ; then
11077			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11078			found="yes"
11079		fi
11080	fi
11081
11082	if test $found = "no" ; then
11083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11085		fi
11086
11087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11089		fi
11090
11091		CFLAGS="$CFLAGS -errwarn"
11092
11093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11094printf %s "checking if $CC supports -errwarn... " >&6; }
11095		cacheid=xorg_cv_cc_flag__errwarn
11096		if eval test \${$cacheid+y}
11097then :
11098  printf %s "(cached) " >&6
11099else $as_nop
11100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101/* end confdefs.h.  */
11102int i;
11103int
11104main (void)
11105{
11106
11107  ;
11108  return 0;
11109}
11110_ACEOF
11111if ac_fn_c_try_link "$LINENO"
11112then :
11113  eval $cacheid=yes
11114else $as_nop
11115  eval $cacheid=no
11116fi
11117rm -f core conftest.err conftest.$ac_objext conftest.beam \
11118    conftest$ac_exeext conftest.$ac_ext
11119fi
11120
11121
11122		CFLAGS="$xorg_testset_save_CFLAGS"
11123
11124		eval supported=\$$cacheid
11125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11126printf "%s\n" "$supported" >&6; }
11127		if test "$supported" = "yes" ; then
11128			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11129			found="yes"
11130		fi
11131	fi
11132
11133
11134
11135# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11136# activate it with -Werror, so we add it here explicitly.
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150xorg_testset_save_CFLAGS="$CFLAGS"
11151
11152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11157then :
11158  printf %s "(cached) " >&6
11159else $as_nop
11160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161/* end confdefs.h.  */
11162int i;
11163_ACEOF
11164if ac_fn_c_try_compile "$LINENO"
11165then :
11166  xorg_cv_cc_flag_unknown_warning_option=yes
11167else $as_nop
11168  xorg_cv_cc_flag_unknown_warning_option=no
11169fi
11170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11171fi
11172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11175	CFLAGS="$xorg_testset_save_CFLAGS"
11176fi
11177
11178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11181	fi
11182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11185if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11186then :
11187  printf %s "(cached) " >&6
11188else $as_nop
11189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h.  */
11191int i;
11192_ACEOF
11193if ac_fn_c_try_compile "$LINENO"
11194then :
11195  xorg_cv_cc_flag_unused_command_line_argument=yes
11196else $as_nop
11197  xorg_cv_cc_flag_unused_command_line_argument=no
11198fi
11199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11200fi
11201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11204	CFLAGS="$xorg_testset_save_CFLAGS"
11205fi
11206
11207found="no"
11208
11209	if test $found = "no" ; then
11210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11212		fi
11213
11214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11216		fi
11217
11218		CFLAGS="$CFLAGS -Werror=attributes"
11219
11220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11221printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11222		cacheid=xorg_cv_cc_flag__Werror_attributes
11223		if eval test \${$cacheid+y}
11224then :
11225  printf %s "(cached) " >&6
11226else $as_nop
11227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228/* end confdefs.h.  */
11229int i;
11230int
11231main (void)
11232{
11233
11234  ;
11235  return 0;
11236}
11237_ACEOF
11238if ac_fn_c_try_link "$LINENO"
11239then :
11240  eval $cacheid=yes
11241else $as_nop
11242  eval $cacheid=no
11243fi
11244rm -f core conftest.err conftest.$ac_objext conftest.beam \
11245    conftest$ac_exeext conftest.$ac_ext
11246fi
11247
11248
11249		CFLAGS="$xorg_testset_save_CFLAGS"
11250
11251		eval supported=\$$cacheid
11252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11253printf "%s\n" "$supported" >&6; }
11254		if test "$supported" = "yes" ; then
11255			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11256			found="yes"
11257		fi
11258	fi
11259
11260
11261
11262if test "x$STRICT_COMPILE" = "xyes"; then
11263    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11264    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11265fi
11266
11267
11268
11269
11270
11271
11272cat >>confdefs.h <<_ACEOF
11273#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11274_ACEOF
11275
11276	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11277	if test "x$PVM" = "x"; then
11278		PVM="0"
11279	fi
11280
11281printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11282
11283	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11284	if test "x$PVP" = "x"; then
11285		PVP="0"
11286	fi
11287
11288printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11289
11290
11291
11292CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11293mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11294|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11295touch \$(top_srcdir)/ChangeLog; \
11296echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11297
11298
11299
11300
11301macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11302INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11303mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11304|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11305touch \$(top_srcdir)/INSTALL; \
11306echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11307
11308
11309
11310
11311
11312
11313case $host_os in
11314    solaris*)
11315        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11316        # check for a man page file found in later versions that use
11317        # traditional section numbers instead
11318        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11319printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11320if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11321then :
11322  printf %s "(cached) " >&6
11323else $as_nop
11324  test "$cross_compiling" = yes &&
11325  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11326if test -r "/usr/share/man/man7/attributes.7"; then
11327  ac_cv_file__usr_share_man_man7_attributes_7=yes
11328else
11329  ac_cv_file__usr_share_man_man7_attributes_7=no
11330fi
11331fi
11332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11333printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11334if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11335then :
11336  SYSV_MAN_SECTIONS=false
11337else $as_nop
11338  SYSV_MAN_SECTIONS=true
11339fi
11340
11341        ;;
11342    *) SYSV_MAN_SECTIONS=false ;;
11343esac
11344
11345if test x$APP_MAN_SUFFIX = x    ; then
11346    APP_MAN_SUFFIX=1
11347fi
11348if test x$APP_MAN_DIR = x    ; then
11349    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11350fi
11351
11352if test x$LIB_MAN_SUFFIX = x    ; then
11353    LIB_MAN_SUFFIX=3
11354fi
11355if test x$LIB_MAN_DIR = x    ; then
11356    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11357fi
11358
11359if test x$FILE_MAN_SUFFIX = x    ; then
11360    case $SYSV_MAN_SECTIONS in
11361	true)				FILE_MAN_SUFFIX=4  ;;
11362	*)				FILE_MAN_SUFFIX=5  ;;
11363    esac
11364fi
11365if test x$FILE_MAN_DIR = x    ; then
11366    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11367fi
11368
11369if test x$MISC_MAN_SUFFIX = x    ; then
11370    case $SYSV_MAN_SECTIONS in
11371	true)				MISC_MAN_SUFFIX=5  ;;
11372	*)				MISC_MAN_SUFFIX=7  ;;
11373    esac
11374fi
11375if test x$MISC_MAN_DIR = x    ; then
11376    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11377fi
11378
11379if test x$DRIVER_MAN_SUFFIX = x    ; then
11380    case $SYSV_MAN_SECTIONS in
11381	true)				DRIVER_MAN_SUFFIX=7  ;;
11382	*)				DRIVER_MAN_SUFFIX=4  ;;
11383    esac
11384fi
11385if test x$DRIVER_MAN_DIR = x    ; then
11386    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11387fi
11388
11389if test x$ADMIN_MAN_SUFFIX = x    ; then
11390    case $SYSV_MAN_SECTIONS in
11391	true)				ADMIN_MAN_SUFFIX=1m ;;
11392	*)				ADMIN_MAN_SUFFIX=8  ;;
11393    esac
11394fi
11395if test x$ADMIN_MAN_DIR = x    ; then
11396    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11397fi
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413XORG_MAN_PAGE="X Version 11"
11414
11415MAN_SUBSTS="\
11416	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11417	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11418	-e 's|__xservername__|Xorg|g' \
11419	-e 's|__xconfigfile__|xorg.conf|g' \
11420	-e 's|__projectroot__|\$(prefix)|g' \
11421	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11422	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11423	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11424	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11425	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11426	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11427	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11428
11429
11430
11431# Check whether --enable-silent-rules was given.
11432if test ${enable_silent_rules+y}
11433then :
11434  enableval=$enable_silent_rules;
11435fi
11436
11437case $enable_silent_rules in # (((
11438  yes) AM_DEFAULT_VERBOSITY=0;;
11439   no) AM_DEFAULT_VERBOSITY=1;;
11440    *) AM_DEFAULT_VERBOSITY=0;;
11441esac
11442am_make=${MAKE-make}
11443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11444printf %s "checking whether $am_make supports nested variables... " >&6; }
11445if test ${am_cv_make_support_nested_variables+y}
11446then :
11447  printf %s "(cached) " >&6
11448else $as_nop
11449  if printf "%s\n" 'TRUE=$(BAR$(V))
11450BAR0=false
11451BAR1=true
11452V=1
11453am__doit:
11454	@$(TRUE)
11455.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11456  am_cv_make_support_nested_variables=yes
11457else
11458  am_cv_make_support_nested_variables=no
11459fi
11460fi
11461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11462printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11463if test $am_cv_make_support_nested_variables = yes; then
11464    AM_V='$(V)'
11465  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11466else
11467  AM_V=$AM_DEFAULT_VERBOSITY
11468  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11469fi
11470AM_BACKSLASH='\'
11471
11472
11473
11474# Initialize libtool
11475# Check whether --enable-static was given.
11476if test ${enable_static+y}
11477then :
11478  enableval=$enable_static; p=${PACKAGE-default}
11479    case $enableval in
11480    yes) enable_static=yes ;;
11481    no) enable_static=no ;;
11482    *)
11483     enable_static=no
11484      # Look at the argument we got.  We use all the common list separators.
11485      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11486      for pkg in $enableval; do
11487	IFS=$lt_save_ifs
11488	if test "X$pkg" = "X$p"; then
11489	  enable_static=yes
11490	fi
11491      done
11492      IFS=$lt_save_ifs
11493      ;;
11494    esac
11495else $as_nop
11496  enable_static=no
11497fi
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507case `pwd` in
11508  *\ * | *\	*)
11509    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11510printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11511esac
11512
11513
11514
11515macro_version='2.4.7'
11516macro_revision='2.4.7'
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531ltmain=$ac_aux_dir/ltmain.sh
11532
11533# Backslashify metacharacters that are still active within
11534# double-quoted strings.
11535sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11536
11537# Same as above, but do not quote variable references.
11538double_quote_subst='s/\(["`\\]\)/\\\1/g'
11539
11540# Sed substitution to delay expansion of an escaped shell variable in a
11541# double_quote_subst'ed string.
11542delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11543
11544# Sed substitution to delay expansion of an escaped single quote.
11545delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11546
11547# Sed substitution to avoid accidental globbing in evaled expressions
11548no_glob_subst='s/\*/\\\*/g'
11549
11550ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11551ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11552ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11553
11554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11555printf %s "checking how to print strings... " >&6; }
11556# Test print first, because it will be a builtin if present.
11557if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11558   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11559  ECHO='print -r --'
11560elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11561  ECHO='printf %s\n'
11562else
11563  # Use this function as a fallback that always works.
11564  func_fallback_echo ()
11565  {
11566    eval 'cat <<_LTECHO_EOF
11567$1
11568_LTECHO_EOF'
11569  }
11570  ECHO='func_fallback_echo'
11571fi
11572
11573# func_echo_all arg...
11574# Invoke $ECHO with all args, space-separated.
11575func_echo_all ()
11576{
11577    $ECHO ""
11578}
11579
11580case $ECHO in
11581  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11582printf "%s\n" "printf" >&6; } ;;
11583  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11584printf "%s\n" "print -r" >&6; } ;;
11585  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11586printf "%s\n" "cat" >&6; } ;;
11587esac
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11603printf %s "checking for a sed that does not truncate output... " >&6; }
11604if test ${ac_cv_path_SED+y}
11605then :
11606  printf %s "(cached) " >&6
11607else $as_nop
11608            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11609     for ac_i in 1 2 3 4 5 6 7; do
11610       ac_script="$ac_script$as_nl$ac_script"
11611     done
11612     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11613     { ac_script=; unset ac_script;}
11614     if test -z "$SED"; then
11615  ac_path_SED_found=false
11616  # Loop through the user's path and test for each of PROGNAME-LIST
11617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620  IFS=$as_save_IFS
11621  case $as_dir in #(((
11622    '') as_dir=./ ;;
11623    */) ;;
11624    *) as_dir=$as_dir/ ;;
11625  esac
11626    for ac_prog in sed gsed
11627   do
11628    for ac_exec_ext in '' $ac_executable_extensions; do
11629      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11630      as_fn_executable_p "$ac_path_SED" || continue
11631# Check for GNU ac_path_SED and select it if it is found.
11632  # Check for GNU $ac_path_SED
11633case `"$ac_path_SED" --version 2>&1` in
11634*GNU*)
11635  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11636*)
11637  ac_count=0
11638  printf %s 0123456789 >"conftest.in"
11639  while :
11640  do
11641    cat "conftest.in" "conftest.in" >"conftest.tmp"
11642    mv "conftest.tmp" "conftest.in"
11643    cp "conftest.in" "conftest.nl"
11644    printf "%s\n" '' >> "conftest.nl"
11645    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11646    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11647    as_fn_arith $ac_count + 1 && ac_count=$as_val
11648    if test $ac_count -gt ${ac_path_SED_max-0}; then
11649      # Best one so far, save it but keep looking for a better one
11650      ac_cv_path_SED="$ac_path_SED"
11651      ac_path_SED_max=$ac_count
11652    fi
11653    # 10*(2^10) chars as input seems more than enough
11654    test $ac_count -gt 10 && break
11655  done
11656  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11657esac
11658
11659      $ac_path_SED_found && break 3
11660    done
11661  done
11662  done
11663IFS=$as_save_IFS
11664  if test -z "$ac_cv_path_SED"; then
11665    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11666  fi
11667else
11668  ac_cv_path_SED=$SED
11669fi
11670
11671fi
11672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11673printf "%s\n" "$ac_cv_path_SED" >&6; }
11674 SED="$ac_cv_path_SED"
11675  rm -f conftest.sed
11676
11677test -z "$SED" && SED=sed
11678Xsed="$SED -e 1s/^X//"
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11691printf %s "checking for grep that handles long lines and -e... " >&6; }
11692if test ${ac_cv_path_GREP+y}
11693then :
11694  printf %s "(cached) " >&6
11695else $as_nop
11696  if test -z "$GREP"; then
11697  ac_path_GREP_found=false
11698  # Loop through the user's path and test for each of PROGNAME-LIST
11699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11701do
11702  IFS=$as_save_IFS
11703  case $as_dir in #(((
11704    '') as_dir=./ ;;
11705    */) ;;
11706    *) as_dir=$as_dir/ ;;
11707  esac
11708    for ac_prog in grep ggrep
11709   do
11710    for ac_exec_ext in '' $ac_executable_extensions; do
11711      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11712      as_fn_executable_p "$ac_path_GREP" || continue
11713# Check for GNU ac_path_GREP and select it if it is found.
11714  # Check for GNU $ac_path_GREP
11715case `"$ac_path_GREP" --version 2>&1` in
11716*GNU*)
11717  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11718*)
11719  ac_count=0
11720  printf %s 0123456789 >"conftest.in"
11721  while :
11722  do
11723    cat "conftest.in" "conftest.in" >"conftest.tmp"
11724    mv "conftest.tmp" "conftest.in"
11725    cp "conftest.in" "conftest.nl"
11726    printf "%s\n" 'GREP' >> "conftest.nl"
11727    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11728    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11729    as_fn_arith $ac_count + 1 && ac_count=$as_val
11730    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11731      # Best one so far, save it but keep looking for a better one
11732      ac_cv_path_GREP="$ac_path_GREP"
11733      ac_path_GREP_max=$ac_count
11734    fi
11735    # 10*(2^10) chars as input seems more than enough
11736    test $ac_count -gt 10 && break
11737  done
11738  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11739esac
11740
11741      $ac_path_GREP_found && break 3
11742    done
11743  done
11744  done
11745IFS=$as_save_IFS
11746  if test -z "$ac_cv_path_GREP"; then
11747    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11748  fi
11749else
11750  ac_cv_path_GREP=$GREP
11751fi
11752
11753fi
11754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11755printf "%s\n" "$ac_cv_path_GREP" >&6; }
11756 GREP="$ac_cv_path_GREP"
11757
11758
11759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11760printf %s "checking for egrep... " >&6; }
11761if test ${ac_cv_path_EGREP+y}
11762then :
11763  printf %s "(cached) " >&6
11764else $as_nop
11765  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11766   then ac_cv_path_EGREP="$GREP -E"
11767   else
11768     if test -z "$EGREP"; then
11769  ac_path_EGREP_found=false
11770  # Loop through the user's path and test for each of PROGNAME-LIST
11771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11773do
11774  IFS=$as_save_IFS
11775  case $as_dir in #(((
11776    '') as_dir=./ ;;
11777    */) ;;
11778    *) as_dir=$as_dir/ ;;
11779  esac
11780    for ac_prog in egrep
11781   do
11782    for ac_exec_ext in '' $ac_executable_extensions; do
11783      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11784      as_fn_executable_p "$ac_path_EGREP" || continue
11785# Check for GNU ac_path_EGREP and select it if it is found.
11786  # Check for GNU $ac_path_EGREP
11787case `"$ac_path_EGREP" --version 2>&1` in
11788*GNU*)
11789  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11790*)
11791  ac_count=0
11792  printf %s 0123456789 >"conftest.in"
11793  while :
11794  do
11795    cat "conftest.in" "conftest.in" >"conftest.tmp"
11796    mv "conftest.tmp" "conftest.in"
11797    cp "conftest.in" "conftest.nl"
11798    printf "%s\n" 'EGREP' >> "conftest.nl"
11799    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11800    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11801    as_fn_arith $ac_count + 1 && ac_count=$as_val
11802    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11803      # Best one so far, save it but keep looking for a better one
11804      ac_cv_path_EGREP="$ac_path_EGREP"
11805      ac_path_EGREP_max=$ac_count
11806    fi
11807    # 10*(2^10) chars as input seems more than enough
11808    test $ac_count -gt 10 && break
11809  done
11810  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11811esac
11812
11813      $ac_path_EGREP_found && break 3
11814    done
11815  done
11816  done
11817IFS=$as_save_IFS
11818  if test -z "$ac_cv_path_EGREP"; then
11819    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11820  fi
11821else
11822  ac_cv_path_EGREP=$EGREP
11823fi
11824
11825   fi
11826fi
11827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11828printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11829 EGREP="$ac_cv_path_EGREP"
11830
11831
11832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11833printf %s "checking for fgrep... " >&6; }
11834if test ${ac_cv_path_FGREP+y}
11835then :
11836  printf %s "(cached) " >&6
11837else $as_nop
11838  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11839   then ac_cv_path_FGREP="$GREP -F"
11840   else
11841     if test -z "$FGREP"; then
11842  ac_path_FGREP_found=false
11843  # Loop through the user's path and test for each of PROGNAME-LIST
11844  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11846do
11847  IFS=$as_save_IFS
11848  case $as_dir in #(((
11849    '') as_dir=./ ;;
11850    */) ;;
11851    *) as_dir=$as_dir/ ;;
11852  esac
11853    for ac_prog in fgrep
11854   do
11855    for ac_exec_ext in '' $ac_executable_extensions; do
11856      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11857      as_fn_executable_p "$ac_path_FGREP" || continue
11858# Check for GNU ac_path_FGREP and select it if it is found.
11859  # Check for GNU $ac_path_FGREP
11860case `"$ac_path_FGREP" --version 2>&1` in
11861*GNU*)
11862  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11863*)
11864  ac_count=0
11865  printf %s 0123456789 >"conftest.in"
11866  while :
11867  do
11868    cat "conftest.in" "conftest.in" >"conftest.tmp"
11869    mv "conftest.tmp" "conftest.in"
11870    cp "conftest.in" "conftest.nl"
11871    printf "%s\n" 'FGREP' >> "conftest.nl"
11872    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11873    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11874    as_fn_arith $ac_count + 1 && ac_count=$as_val
11875    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11876      # Best one so far, save it but keep looking for a better one
11877      ac_cv_path_FGREP="$ac_path_FGREP"
11878      ac_path_FGREP_max=$ac_count
11879    fi
11880    # 10*(2^10) chars as input seems more than enough
11881    test $ac_count -gt 10 && break
11882  done
11883  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11884esac
11885
11886      $ac_path_FGREP_found && break 3
11887    done
11888  done
11889  done
11890IFS=$as_save_IFS
11891  if test -z "$ac_cv_path_FGREP"; then
11892    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11893  fi
11894else
11895  ac_cv_path_FGREP=$FGREP
11896fi
11897
11898   fi
11899fi
11900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11901printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11902 FGREP="$ac_cv_path_FGREP"
11903
11904
11905test -z "$GREP" && GREP=grep
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925# Check whether --with-gnu-ld was given.
11926if test ${with_gnu_ld+y}
11927then :
11928  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11929else $as_nop
11930  with_gnu_ld=no
11931fi
11932
11933ac_prog=ld
11934if test yes = "$GCC"; then
11935  # Check if gcc -print-prog-name=ld gives a path.
11936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11937printf %s "checking for ld used by $CC... " >&6; }
11938  case $host in
11939  *-*-mingw*)
11940    # gcc leaves a trailing carriage return, which upsets mingw
11941    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11942  *)
11943    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11944  esac
11945  case $ac_prog in
11946    # Accept absolute paths.
11947    [\\/]* | ?:[\\/]*)
11948      re_direlt='/[^/][^/]*/\.\./'
11949      # Canonicalize the pathname of ld
11950      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11951      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11952	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11953      done
11954      test -z "$LD" && LD=$ac_prog
11955      ;;
11956  "")
11957    # If it fails, then pretend we aren't using GCC.
11958    ac_prog=ld
11959    ;;
11960  *)
11961    # If it is relative, then search for the first ld in PATH.
11962    with_gnu_ld=unknown
11963    ;;
11964  esac
11965elif test yes = "$with_gnu_ld"; then
11966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11967printf %s "checking for GNU ld... " >&6; }
11968else
11969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11970printf %s "checking for non-GNU ld... " >&6; }
11971fi
11972if test ${lt_cv_path_LD+y}
11973then :
11974  printf %s "(cached) " >&6
11975else $as_nop
11976  if test -z "$LD"; then
11977  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11978  for ac_dir in $PATH; do
11979    IFS=$lt_save_ifs
11980    test -z "$ac_dir" && ac_dir=.
11981    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11982      lt_cv_path_LD=$ac_dir/$ac_prog
11983      # Check to see if the program is GNU ld.  I'd rather use --version,
11984      # but apparently some variants of GNU ld only accept -v.
11985      # Break only if it was the GNU/non-GNU ld that we prefer.
11986      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11987      *GNU* | *'with BFD'*)
11988	test no != "$with_gnu_ld" && break
11989	;;
11990      *)
11991	test yes != "$with_gnu_ld" && break
11992	;;
11993      esac
11994    fi
11995  done
11996  IFS=$lt_save_ifs
11997else
11998  lt_cv_path_LD=$LD # Let the user override the test with a path.
11999fi
12000fi
12001
12002LD=$lt_cv_path_LD
12003if test -n "$LD"; then
12004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12005printf "%s\n" "$LD" >&6; }
12006else
12007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008printf "%s\n" "no" >&6; }
12009fi
12010test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12012printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12013if test ${lt_cv_prog_gnu_ld+y}
12014then :
12015  printf %s "(cached) " >&6
12016else $as_nop
12017  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12018case `$LD -v 2>&1 </dev/null` in
12019*GNU* | *'with BFD'*)
12020  lt_cv_prog_gnu_ld=yes
12021  ;;
12022*)
12023  lt_cv_prog_gnu_ld=no
12024  ;;
12025esac
12026fi
12027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12028printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12029with_gnu_ld=$lt_cv_prog_gnu_ld
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12040printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12041if test ${lt_cv_path_NM+y}
12042then :
12043  printf %s "(cached) " >&6
12044else $as_nop
12045  if test -n "$NM"; then
12046  # Let the user override the test.
12047  lt_cv_path_NM=$NM
12048else
12049  lt_nm_to_check=${ac_tool_prefix}nm
12050  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12051    lt_nm_to_check="$lt_nm_to_check nm"
12052  fi
12053  for lt_tmp_nm in $lt_nm_to_check; do
12054    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12055    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12056      IFS=$lt_save_ifs
12057      test -z "$ac_dir" && ac_dir=.
12058      tmp_nm=$ac_dir/$lt_tmp_nm
12059      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12060	# Check to see if the nm accepts a BSD-compat flag.
12061	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12062	#   nm: unknown option "B" ignored
12063	# Tru64's nm complains that /dev/null is an invalid object file
12064	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12065	case $build_os in
12066	mingw*) lt_bad_file=conftest.nm/nofile ;;
12067	*) lt_bad_file=/dev/null ;;
12068	esac
12069	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12070	*$lt_bad_file* | *'Invalid file or object type'*)
12071	  lt_cv_path_NM="$tmp_nm -B"
12072	  break 2
12073	  ;;
12074	*)
12075	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12076	  */dev/null*)
12077	    lt_cv_path_NM="$tmp_nm -p"
12078	    break 2
12079	    ;;
12080	  *)
12081	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12082	    continue # so that we can try to find one that supports BSD flags
12083	    ;;
12084	  esac
12085	  ;;
12086	esac
12087      fi
12088    done
12089    IFS=$lt_save_ifs
12090  done
12091  : ${lt_cv_path_NM=no}
12092fi
12093fi
12094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12095printf "%s\n" "$lt_cv_path_NM" >&6; }
12096if test no != "$lt_cv_path_NM"; then
12097  NM=$lt_cv_path_NM
12098else
12099  # Didn't find any BSD compatible name lister, look for dumpbin.
12100  if test -n "$DUMPBIN"; then :
12101    # Let the user override the test.
12102  else
12103    if test -n "$ac_tool_prefix"; then
12104  for ac_prog in dumpbin "link -dump"
12105  do
12106    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12107set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109printf %s "checking for $ac_word... " >&6; }
12110if test ${ac_cv_prog_DUMPBIN+y}
12111then :
12112  printf %s "(cached) " >&6
12113else $as_nop
12114  if test -n "$DUMPBIN"; then
12115  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12116else
12117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118for as_dir in $PATH
12119do
12120  IFS=$as_save_IFS
12121  case $as_dir in #(((
12122    '') as_dir=./ ;;
12123    */) ;;
12124    *) as_dir=$as_dir/ ;;
12125  esac
12126    for ac_exec_ext in '' $ac_executable_extensions; do
12127  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12128    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12129    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12130    break 2
12131  fi
12132done
12133  done
12134IFS=$as_save_IFS
12135
12136fi
12137fi
12138DUMPBIN=$ac_cv_prog_DUMPBIN
12139if test -n "$DUMPBIN"; then
12140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12141printf "%s\n" "$DUMPBIN" >&6; }
12142else
12143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144printf "%s\n" "no" >&6; }
12145fi
12146
12147
12148    test -n "$DUMPBIN" && break
12149  done
12150fi
12151if test -z "$DUMPBIN"; then
12152  ac_ct_DUMPBIN=$DUMPBIN
12153  for ac_prog in dumpbin "link -dump"
12154do
12155  # Extract the first word of "$ac_prog", so it can be a program name with args.
12156set dummy $ac_prog; ac_word=$2
12157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12158printf %s "checking for $ac_word... " >&6; }
12159if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12160then :
12161  printf %s "(cached) " >&6
12162else $as_nop
12163  if test -n "$ac_ct_DUMPBIN"; then
12164  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12165else
12166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12167for as_dir in $PATH
12168do
12169  IFS=$as_save_IFS
12170  case $as_dir in #(((
12171    '') as_dir=./ ;;
12172    */) ;;
12173    *) as_dir=$as_dir/ ;;
12174  esac
12175    for ac_exec_ext in '' $ac_executable_extensions; do
12176  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12177    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12178    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12179    break 2
12180  fi
12181done
12182  done
12183IFS=$as_save_IFS
12184
12185fi
12186fi
12187ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12188if test -n "$ac_ct_DUMPBIN"; then
12189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12190printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12191else
12192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193printf "%s\n" "no" >&6; }
12194fi
12195
12196
12197  test -n "$ac_ct_DUMPBIN" && break
12198done
12199
12200  if test "x$ac_ct_DUMPBIN" = x; then
12201    DUMPBIN=":"
12202  else
12203    case $cross_compiling:$ac_tool_warned in
12204yes:)
12205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12206printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12207ac_tool_warned=yes ;;
12208esac
12209    DUMPBIN=$ac_ct_DUMPBIN
12210  fi
12211fi
12212
12213    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12214    *COFF*)
12215      DUMPBIN="$DUMPBIN -symbols -headers"
12216      ;;
12217    *)
12218      DUMPBIN=:
12219      ;;
12220    esac
12221  fi
12222
12223  if test : != "$DUMPBIN"; then
12224    NM=$DUMPBIN
12225  fi
12226fi
12227test -z "$NM" && NM=nm
12228
12229
12230
12231
12232
12233
12234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12235printf %s "checking the name lister ($NM) interface... " >&6; }
12236if test ${lt_cv_nm_interface+y}
12237then :
12238  printf %s "(cached) " >&6
12239else $as_nop
12240  lt_cv_nm_interface="BSD nm"
12241  echo "int some_variable = 0;" > conftest.$ac_ext
12242  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12243  (eval "$ac_compile" 2>conftest.err)
12244  cat conftest.err >&5
12245  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12246  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12247  cat conftest.err >&5
12248  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12249  cat conftest.out >&5
12250  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12251    lt_cv_nm_interface="MS dumpbin"
12252  fi
12253  rm -f conftest*
12254fi
12255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12256printf "%s\n" "$lt_cv_nm_interface" >&6; }
12257
12258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12259printf %s "checking whether ln -s works... " >&6; }
12260LN_S=$as_ln_s
12261if test "$LN_S" = "ln -s"; then
12262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263printf "%s\n" "yes" >&6; }
12264else
12265  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12266printf "%s\n" "no, using $LN_S" >&6; }
12267fi
12268
12269# find the maximum length of command line arguments
12270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12271printf %s "checking the maximum length of command line arguments... " >&6; }
12272if test ${lt_cv_sys_max_cmd_len+y}
12273then :
12274  printf %s "(cached) " >&6
12275else $as_nop
12276    i=0
12277  teststring=ABCD
12278
12279  case $build_os in
12280  msdosdjgpp*)
12281    # On DJGPP, this test can blow up pretty badly due to problems in libc
12282    # (any single argument exceeding 2000 bytes causes a buffer overrun
12283    # during glob expansion).  Even if it were fixed, the result of this
12284    # check would be larger than it should be.
12285    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12286    ;;
12287
12288  gnu*)
12289    # Under GNU Hurd, this test is not required because there is
12290    # no limit to the length of command line arguments.
12291    # Libtool will interpret -1 as no limit whatsoever
12292    lt_cv_sys_max_cmd_len=-1;
12293    ;;
12294
12295  cygwin* | mingw* | cegcc*)
12296    # On Win9x/ME, this test blows up -- it succeeds, but takes
12297    # about 5 minutes as the teststring grows exponentially.
12298    # Worse, since 9x/ME are not pre-emptively multitasking,
12299    # you end up with a "frozen" computer, even though with patience
12300    # the test eventually succeeds (with a max line length of 256k).
12301    # Instead, let's just punt: use the minimum linelength reported by
12302    # all of the supported platforms: 8192 (on NT/2K/XP).
12303    lt_cv_sys_max_cmd_len=8192;
12304    ;;
12305
12306  mint*)
12307    # On MiNT this can take a long time and run out of memory.
12308    lt_cv_sys_max_cmd_len=8192;
12309    ;;
12310
12311  amigaos*)
12312    # On AmigaOS with pdksh, this test takes hours, literally.
12313    # So we just punt and use a minimum line length of 8192.
12314    lt_cv_sys_max_cmd_len=8192;
12315    ;;
12316
12317  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12318    # This has been around since 386BSD, at least.  Likely further.
12319    if test -x /sbin/sysctl; then
12320      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12321    elif test -x /usr/sbin/sysctl; then
12322      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12323    else
12324      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12325    fi
12326    # And add a safety zone
12327    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12328    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12329    ;;
12330
12331  interix*)
12332    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12333    lt_cv_sys_max_cmd_len=196608
12334    ;;
12335
12336  os2*)
12337    # The test takes a long time on OS/2.
12338    lt_cv_sys_max_cmd_len=8192
12339    ;;
12340
12341  osf*)
12342    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12343    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12344    # nice to cause kernel panics so lets avoid the loop below.
12345    # First set a reasonable default.
12346    lt_cv_sys_max_cmd_len=16384
12347    #
12348    if test -x /sbin/sysconfig; then
12349      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12350        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12351      esac
12352    fi
12353    ;;
12354  sco3.2v5*)
12355    lt_cv_sys_max_cmd_len=102400
12356    ;;
12357  sysv5* | sco5v6* | sysv4.2uw2*)
12358    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12359    if test -n "$kargmax"; then
12360      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12361    else
12362      lt_cv_sys_max_cmd_len=32768
12363    fi
12364    ;;
12365  *)
12366    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12367    if test -n "$lt_cv_sys_max_cmd_len" && \
12368       test undefined != "$lt_cv_sys_max_cmd_len"; then
12369      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12370      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12371    else
12372      # Make teststring a little bigger before we do anything with it.
12373      # a 1K string should be a reasonable start.
12374      for i in 1 2 3 4 5 6 7 8; do
12375        teststring=$teststring$teststring
12376      done
12377      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12378      # If test is not a shell built-in, we'll probably end up computing a
12379      # maximum length that is only half of the actual maximum length, but
12380      # we can't tell.
12381      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12382	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12383	      test 17 != "$i" # 1/2 MB should be enough
12384      do
12385        i=`expr $i + 1`
12386        teststring=$teststring$teststring
12387      done
12388      # Only check the string length outside the loop.
12389      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12390      teststring=
12391      # Add a significant safety factor because C++ compilers can tack on
12392      # massive amounts of additional arguments before passing them to the
12393      # linker.  It appears as though 1/2 is a usable value.
12394      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12395    fi
12396    ;;
12397  esac
12398
12399fi
12400
12401if test -n "$lt_cv_sys_max_cmd_len"; then
12402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12403printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12404else
12405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12406printf "%s\n" "none" >&6; }
12407fi
12408max_cmd_len=$lt_cv_sys_max_cmd_len
12409
12410
12411
12412
12413
12414
12415: ${CP="cp -f"}
12416: ${MV="mv -f"}
12417: ${RM="rm -f"}
12418
12419if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12420  lt_unset=unset
12421else
12422  lt_unset=false
12423fi
12424
12425
12426
12427
12428
12429# test EBCDIC or ASCII
12430case `echo X|tr X '\101'` in
12431 A) # ASCII based system
12432    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12433  lt_SP2NL='tr \040 \012'
12434  lt_NL2SP='tr \015\012 \040\040'
12435  ;;
12436 *) # EBCDIC based system
12437  lt_SP2NL='tr \100 \n'
12438  lt_NL2SP='tr \r\n \100\100'
12439  ;;
12440esac
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12451printf %s "checking how to convert $build file names to $host format... " >&6; }
12452if test ${lt_cv_to_host_file_cmd+y}
12453then :
12454  printf %s "(cached) " >&6
12455else $as_nop
12456  case $host in
12457  *-*-mingw* )
12458    case $build in
12459      *-*-mingw* ) # actually msys
12460        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12461        ;;
12462      *-*-cygwin* )
12463        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12464        ;;
12465      * ) # otherwise, assume *nix
12466        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12467        ;;
12468    esac
12469    ;;
12470  *-*-cygwin* )
12471    case $build in
12472      *-*-mingw* ) # actually msys
12473        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12474        ;;
12475      *-*-cygwin* )
12476        lt_cv_to_host_file_cmd=func_convert_file_noop
12477        ;;
12478      * ) # otherwise, assume *nix
12479        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12480        ;;
12481    esac
12482    ;;
12483  * ) # unhandled hosts (and "normal" native builds)
12484    lt_cv_to_host_file_cmd=func_convert_file_noop
12485    ;;
12486esac
12487
12488fi
12489
12490to_host_file_cmd=$lt_cv_to_host_file_cmd
12491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12492printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12493
12494
12495
12496
12497
12498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12499printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12500if test ${lt_cv_to_tool_file_cmd+y}
12501then :
12502  printf %s "(cached) " >&6
12503else $as_nop
12504  #assume ordinary cross tools, or native build.
12505lt_cv_to_tool_file_cmd=func_convert_file_noop
12506case $host in
12507  *-*-mingw* )
12508    case $build in
12509      *-*-mingw* ) # actually msys
12510        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12511        ;;
12512    esac
12513    ;;
12514esac
12515
12516fi
12517
12518to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12520printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12521
12522
12523
12524
12525
12526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12527printf %s "checking for $LD option to reload object files... " >&6; }
12528if test ${lt_cv_ld_reload_flag+y}
12529then :
12530  printf %s "(cached) " >&6
12531else $as_nop
12532  lt_cv_ld_reload_flag='-r'
12533fi
12534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12535printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12536reload_flag=$lt_cv_ld_reload_flag
12537case $reload_flag in
12538"" | " "*) ;;
12539*) reload_flag=" $reload_flag" ;;
12540esac
12541reload_cmds='$LD$reload_flag -o $output$reload_objs'
12542case $host_os in
12543  cygwin* | mingw* | pw32* | cegcc*)
12544    if test yes != "$GCC"; then
12545      reload_cmds=false
12546    fi
12547    ;;
12548  darwin*)
12549    if test yes = "$GCC"; then
12550      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12551    else
12552      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12553    fi
12554    ;;
12555esac
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565if test -n "$ac_tool_prefix"; then
12566  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12567set dummy ${ac_tool_prefix}file; ac_word=$2
12568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569printf %s "checking for $ac_word... " >&6; }
12570if test ${ac_cv_prog_FILECMD+y}
12571then :
12572  printf %s "(cached) " >&6
12573else $as_nop
12574  if test -n "$FILECMD"; then
12575  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12576else
12577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578for as_dir in $PATH
12579do
12580  IFS=$as_save_IFS
12581  case $as_dir in #(((
12582    '') as_dir=./ ;;
12583    */) ;;
12584    *) as_dir=$as_dir/ ;;
12585  esac
12586    for ac_exec_ext in '' $ac_executable_extensions; do
12587  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12588    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12589    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12590    break 2
12591  fi
12592done
12593  done
12594IFS=$as_save_IFS
12595
12596fi
12597fi
12598FILECMD=$ac_cv_prog_FILECMD
12599if test -n "$FILECMD"; then
12600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12601printf "%s\n" "$FILECMD" >&6; }
12602else
12603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604printf "%s\n" "no" >&6; }
12605fi
12606
12607
12608fi
12609if test -z "$ac_cv_prog_FILECMD"; then
12610  ac_ct_FILECMD=$FILECMD
12611  # Extract the first word of "file", so it can be a program name with args.
12612set dummy file; ac_word=$2
12613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614printf %s "checking for $ac_word... " >&6; }
12615if test ${ac_cv_prog_ac_ct_FILECMD+y}
12616then :
12617  printf %s "(cached) " >&6
12618else $as_nop
12619  if test -n "$ac_ct_FILECMD"; then
12620  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12621else
12622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623for as_dir in $PATH
12624do
12625  IFS=$as_save_IFS
12626  case $as_dir in #(((
12627    '') as_dir=./ ;;
12628    */) ;;
12629    *) as_dir=$as_dir/ ;;
12630  esac
12631    for ac_exec_ext in '' $ac_executable_extensions; do
12632  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12633    ac_cv_prog_ac_ct_FILECMD="file"
12634    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12635    break 2
12636  fi
12637done
12638  done
12639IFS=$as_save_IFS
12640
12641fi
12642fi
12643ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12644if test -n "$ac_ct_FILECMD"; then
12645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12646printf "%s\n" "$ac_ct_FILECMD" >&6; }
12647else
12648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649printf "%s\n" "no" >&6; }
12650fi
12651
12652  if test "x$ac_ct_FILECMD" = x; then
12653    FILECMD=":"
12654  else
12655    case $cross_compiling:$ac_tool_warned in
12656yes:)
12657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12658printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12659ac_tool_warned=yes ;;
12660esac
12661    FILECMD=$ac_ct_FILECMD
12662  fi
12663else
12664  FILECMD="$ac_cv_prog_FILECMD"
12665fi
12666
12667
12668
12669
12670
12671
12672
12673if test -n "$ac_tool_prefix"; then
12674  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12675set dummy ${ac_tool_prefix}objdump; ac_word=$2
12676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12677printf %s "checking for $ac_word... " >&6; }
12678if test ${ac_cv_prog_OBJDUMP+y}
12679then :
12680  printf %s "(cached) " >&6
12681else $as_nop
12682  if test -n "$OBJDUMP"; then
12683  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12684else
12685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688  IFS=$as_save_IFS
12689  case $as_dir in #(((
12690    '') as_dir=./ ;;
12691    */) ;;
12692    *) as_dir=$as_dir/ ;;
12693  esac
12694    for ac_exec_ext in '' $ac_executable_extensions; do
12695  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12696    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12697    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12698    break 2
12699  fi
12700done
12701  done
12702IFS=$as_save_IFS
12703
12704fi
12705fi
12706OBJDUMP=$ac_cv_prog_OBJDUMP
12707if test -n "$OBJDUMP"; then
12708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12709printf "%s\n" "$OBJDUMP" >&6; }
12710else
12711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712printf "%s\n" "no" >&6; }
12713fi
12714
12715
12716fi
12717if test -z "$ac_cv_prog_OBJDUMP"; then
12718  ac_ct_OBJDUMP=$OBJDUMP
12719  # Extract the first word of "objdump", so it can be a program name with args.
12720set dummy objdump; ac_word=$2
12721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722printf %s "checking for $ac_word... " >&6; }
12723if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12724then :
12725  printf %s "(cached) " >&6
12726else $as_nop
12727  if test -n "$ac_ct_OBJDUMP"; then
12728  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12729else
12730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731for as_dir in $PATH
12732do
12733  IFS=$as_save_IFS
12734  case $as_dir in #(((
12735    '') as_dir=./ ;;
12736    */) ;;
12737    *) as_dir=$as_dir/ ;;
12738  esac
12739    for ac_exec_ext in '' $ac_executable_extensions; do
12740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12741    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12743    break 2
12744  fi
12745done
12746  done
12747IFS=$as_save_IFS
12748
12749fi
12750fi
12751ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12752if test -n "$ac_ct_OBJDUMP"; then
12753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12754printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12755else
12756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757printf "%s\n" "no" >&6; }
12758fi
12759
12760  if test "x$ac_ct_OBJDUMP" = x; then
12761    OBJDUMP="false"
12762  else
12763    case $cross_compiling:$ac_tool_warned in
12764yes:)
12765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12766printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12767ac_tool_warned=yes ;;
12768esac
12769    OBJDUMP=$ac_ct_OBJDUMP
12770  fi
12771else
12772  OBJDUMP="$ac_cv_prog_OBJDUMP"
12773fi
12774
12775test -z "$OBJDUMP" && OBJDUMP=objdump
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12786printf %s "checking how to recognize dependent libraries... " >&6; }
12787if test ${lt_cv_deplibs_check_method+y}
12788then :
12789  printf %s "(cached) " >&6
12790else $as_nop
12791  lt_cv_file_magic_cmd='$MAGIC_CMD'
12792lt_cv_file_magic_test_file=
12793lt_cv_deplibs_check_method='unknown'
12794# Need to set the preceding variable on all platforms that support
12795# interlibrary dependencies.
12796# 'none' -- dependencies not supported.
12797# 'unknown' -- same as none, but documents that we really don't know.
12798# 'pass_all' -- all dependencies passed with no checks.
12799# 'test_compile' -- check by making test program.
12800# 'file_magic [[regex]]' -- check by looking for files in library path
12801# that responds to the $file_magic_cmd with a given extended regex.
12802# If you have 'file' or equivalent on your system and you're not sure
12803# whether 'pass_all' will *always* work, you probably want this one.
12804
12805case $host_os in
12806aix[4-9]*)
12807  lt_cv_deplibs_check_method=pass_all
12808  ;;
12809
12810beos*)
12811  lt_cv_deplibs_check_method=pass_all
12812  ;;
12813
12814bsdi[45]*)
12815  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12816  lt_cv_file_magic_cmd='$FILECMD -L'
12817  lt_cv_file_magic_test_file=/shlib/libc.so
12818  ;;
12819
12820cygwin*)
12821  # func_win32_libid is a shell function defined in ltmain.sh
12822  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12823  lt_cv_file_magic_cmd='func_win32_libid'
12824  ;;
12825
12826mingw* | pw32*)
12827  # Base MSYS/MinGW do not provide the 'file' command needed by
12828  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12829  # unless we find 'file', for example because we are cross-compiling.
12830  if ( file / ) >/dev/null 2>&1; then
12831    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12832    lt_cv_file_magic_cmd='func_win32_libid'
12833  else
12834    # Keep this pattern in sync with the one in func_win32_libid.
12835    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12836    lt_cv_file_magic_cmd='$OBJDUMP -f'
12837  fi
12838  ;;
12839
12840cegcc*)
12841  # use the weaker test based on 'objdump'. See mingw*.
12842  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12843  lt_cv_file_magic_cmd='$OBJDUMP -f'
12844  ;;
12845
12846darwin* | rhapsody*)
12847  lt_cv_deplibs_check_method=pass_all
12848  ;;
12849
12850freebsd* | dragonfly* | midnightbsd*)
12851  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12852    case $host_cpu in
12853    i*86 )
12854      # Not sure whether the presence of OpenBSD here was a mistake.
12855      # Let's accept both of them until this is cleared up.
12856      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12857      lt_cv_file_magic_cmd=$FILECMD
12858      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12859      ;;
12860    esac
12861  else
12862    lt_cv_deplibs_check_method=pass_all
12863  fi
12864  ;;
12865
12866haiku*)
12867  lt_cv_deplibs_check_method=pass_all
12868  ;;
12869
12870hpux10.20* | hpux11*)
12871  lt_cv_file_magic_cmd=$FILECMD
12872  case $host_cpu in
12873  ia64*)
12874    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12875    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12876    ;;
12877  hppa*64*)
12878    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]'
12879    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12880    ;;
12881  *)
12882    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12883    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12884    ;;
12885  esac
12886  ;;
12887
12888interix[3-9]*)
12889  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12890  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12891  ;;
12892
12893irix5* | irix6* | nonstopux*)
12894  case $LD in
12895  *-32|*"-32 ") libmagic=32-bit;;
12896  *-n32|*"-n32 ") libmagic=N32;;
12897  *-64|*"-64 ") libmagic=64-bit;;
12898  *) libmagic=never-match;;
12899  esac
12900  lt_cv_deplibs_check_method=pass_all
12901  ;;
12902
12903# This must be glibc/ELF.
12904linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12905  lt_cv_deplibs_check_method=pass_all
12906  ;;
12907
12908netbsd*)
12909  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12910    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12911  else
12912    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12913  fi
12914  ;;
12915
12916newos6*)
12917  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12918  lt_cv_file_magic_cmd=$FILECMD
12919  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12920  ;;
12921
12922*nto* | *qnx*)
12923  lt_cv_deplibs_check_method=pass_all
12924  ;;
12925
12926openbsd* | bitrig*)
12927  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12928    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12929  else
12930    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12931  fi
12932  ;;
12933
12934osf3* | osf4* | osf5*)
12935  lt_cv_deplibs_check_method=pass_all
12936  ;;
12937
12938rdos*)
12939  lt_cv_deplibs_check_method=pass_all
12940  ;;
12941
12942solaris*)
12943  lt_cv_deplibs_check_method=pass_all
12944  ;;
12945
12946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12947  lt_cv_deplibs_check_method=pass_all
12948  ;;
12949
12950sysv4 | sysv4.3*)
12951  case $host_vendor in
12952  motorola)
12953    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]'
12954    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12955    ;;
12956  ncr)
12957    lt_cv_deplibs_check_method=pass_all
12958    ;;
12959  sequent)
12960    lt_cv_file_magic_cmd='/bin/file'
12961    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12962    ;;
12963  sni)
12964    lt_cv_file_magic_cmd='/bin/file'
12965    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12966    lt_cv_file_magic_test_file=/lib/libc.so
12967    ;;
12968  siemens)
12969    lt_cv_deplibs_check_method=pass_all
12970    ;;
12971  pc)
12972    lt_cv_deplibs_check_method=pass_all
12973    ;;
12974  esac
12975  ;;
12976
12977tpf*)
12978  lt_cv_deplibs_check_method=pass_all
12979  ;;
12980os2*)
12981  lt_cv_deplibs_check_method=pass_all
12982  ;;
12983esac
12984
12985fi
12986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12987printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12988
12989file_magic_glob=
12990want_nocaseglob=no
12991if test "$build" = "$host"; then
12992  case $host_os in
12993  mingw* | pw32*)
12994    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12995      want_nocaseglob=yes
12996    else
12997      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12998    fi
12999    ;;
13000  esac
13001fi
13002
13003file_magic_cmd=$lt_cv_file_magic_cmd
13004deplibs_check_method=$lt_cv_deplibs_check_method
13005test -z "$deplibs_check_method" && deplibs_check_method=unknown
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028if test -n "$ac_tool_prefix"; then
13029  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13030set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13032printf %s "checking for $ac_word... " >&6; }
13033if test ${ac_cv_prog_DLLTOOL+y}
13034then :
13035  printf %s "(cached) " >&6
13036else $as_nop
13037  if test -n "$DLLTOOL"; then
13038  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13039else
13040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041for as_dir in $PATH
13042do
13043  IFS=$as_save_IFS
13044  case $as_dir in #(((
13045    '') as_dir=./ ;;
13046    */) ;;
13047    *) as_dir=$as_dir/ ;;
13048  esac
13049    for ac_exec_ext in '' $ac_executable_extensions; do
13050  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13051    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13052    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13053    break 2
13054  fi
13055done
13056  done
13057IFS=$as_save_IFS
13058
13059fi
13060fi
13061DLLTOOL=$ac_cv_prog_DLLTOOL
13062if test -n "$DLLTOOL"; then
13063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13064printf "%s\n" "$DLLTOOL" >&6; }
13065else
13066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067printf "%s\n" "no" >&6; }
13068fi
13069
13070
13071fi
13072if test -z "$ac_cv_prog_DLLTOOL"; then
13073  ac_ct_DLLTOOL=$DLLTOOL
13074  # Extract the first word of "dlltool", so it can be a program name with args.
13075set dummy dlltool; ac_word=$2
13076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077printf %s "checking for $ac_word... " >&6; }
13078if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13079then :
13080  printf %s "(cached) " >&6
13081else $as_nop
13082  if test -n "$ac_ct_DLLTOOL"; then
13083  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13084else
13085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086for as_dir in $PATH
13087do
13088  IFS=$as_save_IFS
13089  case $as_dir in #(((
13090    '') as_dir=./ ;;
13091    */) ;;
13092    *) as_dir=$as_dir/ ;;
13093  esac
13094    for ac_exec_ext in '' $ac_executable_extensions; do
13095  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13096    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13098    break 2
13099  fi
13100done
13101  done
13102IFS=$as_save_IFS
13103
13104fi
13105fi
13106ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13107if test -n "$ac_ct_DLLTOOL"; then
13108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13109printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13110else
13111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112printf "%s\n" "no" >&6; }
13113fi
13114
13115  if test "x$ac_ct_DLLTOOL" = x; then
13116    DLLTOOL="false"
13117  else
13118    case $cross_compiling:$ac_tool_warned in
13119yes:)
13120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13121printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13122ac_tool_warned=yes ;;
13123esac
13124    DLLTOOL=$ac_ct_DLLTOOL
13125  fi
13126else
13127  DLLTOOL="$ac_cv_prog_DLLTOOL"
13128fi
13129
13130test -z "$DLLTOOL" && DLLTOOL=dlltool
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13142printf %s "checking how to associate runtime and link libraries... " >&6; }
13143if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13144then :
13145  printf %s "(cached) " >&6
13146else $as_nop
13147  lt_cv_sharedlib_from_linklib_cmd='unknown'
13148
13149case $host_os in
13150cygwin* | mingw* | pw32* | cegcc*)
13151  # two different shell functions defined in ltmain.sh;
13152  # decide which one to use based on capabilities of $DLLTOOL
13153  case `$DLLTOOL --help 2>&1` in
13154  *--identify-strict*)
13155    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13156    ;;
13157  *)
13158    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13159    ;;
13160  esac
13161  ;;
13162*)
13163  # fallback: assume linklib IS sharedlib
13164  lt_cv_sharedlib_from_linklib_cmd=$ECHO
13165  ;;
13166esac
13167
13168fi
13169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13170printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13171sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13172test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13173
13174
13175
13176
13177
13178
13179
13180if test -n "$ac_tool_prefix"; then
13181  for ac_prog in ar
13182  do
13183    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13186printf %s "checking for $ac_word... " >&6; }
13187if test ${ac_cv_prog_AR+y}
13188then :
13189  printf %s "(cached) " >&6
13190else $as_nop
13191  if test -n "$AR"; then
13192  ac_cv_prog_AR="$AR" # Let the user override the test.
13193else
13194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195for as_dir in $PATH
13196do
13197  IFS=$as_save_IFS
13198  case $as_dir in #(((
13199    '') as_dir=./ ;;
13200    */) ;;
13201    *) as_dir=$as_dir/ ;;
13202  esac
13203    for ac_exec_ext in '' $ac_executable_extensions; do
13204  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13205    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13206    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13207    break 2
13208  fi
13209done
13210  done
13211IFS=$as_save_IFS
13212
13213fi
13214fi
13215AR=$ac_cv_prog_AR
13216if test -n "$AR"; then
13217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13218printf "%s\n" "$AR" >&6; }
13219else
13220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221printf "%s\n" "no" >&6; }
13222fi
13223
13224
13225    test -n "$AR" && break
13226  done
13227fi
13228if test -z "$AR"; then
13229  ac_ct_AR=$AR
13230  for ac_prog in ar
13231do
13232  # Extract the first word of "$ac_prog", so it can be a program name with args.
13233set dummy $ac_prog; ac_word=$2
13234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235printf %s "checking for $ac_word... " >&6; }
13236if test ${ac_cv_prog_ac_ct_AR+y}
13237then :
13238  printf %s "(cached) " >&6
13239else $as_nop
13240  if test -n "$ac_ct_AR"; then
13241  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13242else
13243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244for as_dir in $PATH
13245do
13246  IFS=$as_save_IFS
13247  case $as_dir in #(((
13248    '') as_dir=./ ;;
13249    */) ;;
13250    *) as_dir=$as_dir/ ;;
13251  esac
13252    for ac_exec_ext in '' $ac_executable_extensions; do
13253  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13254    ac_cv_prog_ac_ct_AR="$ac_prog"
13255    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13256    break 2
13257  fi
13258done
13259  done
13260IFS=$as_save_IFS
13261
13262fi
13263fi
13264ac_ct_AR=$ac_cv_prog_ac_ct_AR
13265if test -n "$ac_ct_AR"; then
13266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13267printf "%s\n" "$ac_ct_AR" >&6; }
13268else
13269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270printf "%s\n" "no" >&6; }
13271fi
13272
13273
13274  test -n "$ac_ct_AR" && break
13275done
13276
13277  if test "x$ac_ct_AR" = x; then
13278    AR="false"
13279  else
13280    case $cross_compiling:$ac_tool_warned in
13281yes:)
13282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13283printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13284ac_tool_warned=yes ;;
13285esac
13286    AR=$ac_ct_AR
13287  fi
13288fi
13289
13290: ${AR=ar}
13291
13292
13293
13294
13295
13296
13297# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13298# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13299# higher priority because thats what people were doing historically (setting
13300# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13301# variable obsoleted/removed.
13302
13303test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13304lt_ar_flags=$AR_FLAGS
13305
13306
13307
13308
13309
13310
13311# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13312# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13313
13314
13315
13316
13317
13318
13319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13320printf %s "checking for archiver @FILE support... " >&6; }
13321if test ${lt_cv_ar_at_file+y}
13322then :
13323  printf %s "(cached) " >&6
13324else $as_nop
13325  lt_cv_ar_at_file=no
13326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327/* end confdefs.h.  */
13328
13329int
13330main (void)
13331{
13332
13333  ;
13334  return 0;
13335}
13336_ACEOF
13337if ac_fn_c_try_compile "$LINENO"
13338then :
13339  echo conftest.$ac_objext > conftest.lst
13340      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13341      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13342  (eval $lt_ar_try) 2>&5
13343  ac_status=$?
13344  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13345  test $ac_status = 0; }
13346      if test 0 -eq "$ac_status"; then
13347	# Ensure the archiver fails upon bogus file names.
13348	rm -f conftest.$ac_objext libconftest.a
13349	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13350  (eval $lt_ar_try) 2>&5
13351  ac_status=$?
13352  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13353  test $ac_status = 0; }
13354	if test 0 -ne "$ac_status"; then
13355          lt_cv_ar_at_file=@
13356        fi
13357      fi
13358      rm -f conftest.* libconftest.a
13359
13360fi
13361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13362
13363fi
13364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13365printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13366
13367if test no = "$lt_cv_ar_at_file"; then
13368  archiver_list_spec=
13369else
13370  archiver_list_spec=$lt_cv_ar_at_file
13371fi
13372
13373
13374
13375
13376
13377
13378
13379if test -n "$ac_tool_prefix"; then
13380  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13381set dummy ${ac_tool_prefix}strip; ac_word=$2
13382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383printf %s "checking for $ac_word... " >&6; }
13384if test ${ac_cv_prog_STRIP+y}
13385then :
13386  printf %s "(cached) " >&6
13387else $as_nop
13388  if test -n "$STRIP"; then
13389  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13390else
13391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392for as_dir in $PATH
13393do
13394  IFS=$as_save_IFS
13395  case $as_dir in #(((
13396    '') as_dir=./ ;;
13397    */) ;;
13398    *) as_dir=$as_dir/ ;;
13399  esac
13400    for ac_exec_ext in '' $ac_executable_extensions; do
13401  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13402    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13403    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13404    break 2
13405  fi
13406done
13407  done
13408IFS=$as_save_IFS
13409
13410fi
13411fi
13412STRIP=$ac_cv_prog_STRIP
13413if test -n "$STRIP"; then
13414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13415printf "%s\n" "$STRIP" >&6; }
13416else
13417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418printf "%s\n" "no" >&6; }
13419fi
13420
13421
13422fi
13423if test -z "$ac_cv_prog_STRIP"; then
13424  ac_ct_STRIP=$STRIP
13425  # Extract the first word of "strip", so it can be a program name with args.
13426set dummy strip; ac_word=$2
13427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13428printf %s "checking for $ac_word... " >&6; }
13429if test ${ac_cv_prog_ac_ct_STRIP+y}
13430then :
13431  printf %s "(cached) " >&6
13432else $as_nop
13433  if test -n "$ac_ct_STRIP"; then
13434  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13435else
13436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437for as_dir in $PATH
13438do
13439  IFS=$as_save_IFS
13440  case $as_dir in #(((
13441    '') as_dir=./ ;;
13442    */) ;;
13443    *) as_dir=$as_dir/ ;;
13444  esac
13445    for ac_exec_ext in '' $ac_executable_extensions; do
13446  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13447    ac_cv_prog_ac_ct_STRIP="strip"
13448    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13449    break 2
13450  fi
13451done
13452  done
13453IFS=$as_save_IFS
13454
13455fi
13456fi
13457ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13458if test -n "$ac_ct_STRIP"; then
13459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13460printf "%s\n" "$ac_ct_STRIP" >&6; }
13461else
13462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463printf "%s\n" "no" >&6; }
13464fi
13465
13466  if test "x$ac_ct_STRIP" = x; then
13467    STRIP=":"
13468  else
13469    case $cross_compiling:$ac_tool_warned in
13470yes:)
13471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13472printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13473ac_tool_warned=yes ;;
13474esac
13475    STRIP=$ac_ct_STRIP
13476  fi
13477else
13478  STRIP="$ac_cv_prog_STRIP"
13479fi
13480
13481test -z "$STRIP" && STRIP=:
13482
13483
13484
13485
13486
13487
13488if test -n "$ac_tool_prefix"; then
13489  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13490set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13492printf %s "checking for $ac_word... " >&6; }
13493if test ${ac_cv_prog_RANLIB+y}
13494then :
13495  printf %s "(cached) " >&6
13496else $as_nop
13497  if test -n "$RANLIB"; then
13498  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13499else
13500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13501for as_dir in $PATH
13502do
13503  IFS=$as_save_IFS
13504  case $as_dir in #(((
13505    '') as_dir=./ ;;
13506    */) ;;
13507    *) as_dir=$as_dir/ ;;
13508  esac
13509    for ac_exec_ext in '' $ac_executable_extensions; do
13510  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13511    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13512    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13513    break 2
13514  fi
13515done
13516  done
13517IFS=$as_save_IFS
13518
13519fi
13520fi
13521RANLIB=$ac_cv_prog_RANLIB
13522if test -n "$RANLIB"; then
13523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13524printf "%s\n" "$RANLIB" >&6; }
13525else
13526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527printf "%s\n" "no" >&6; }
13528fi
13529
13530
13531fi
13532if test -z "$ac_cv_prog_RANLIB"; then
13533  ac_ct_RANLIB=$RANLIB
13534  # Extract the first word of "ranlib", so it can be a program name with args.
13535set dummy ranlib; ac_word=$2
13536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537printf %s "checking for $ac_word... " >&6; }
13538if test ${ac_cv_prog_ac_ct_RANLIB+y}
13539then :
13540  printf %s "(cached) " >&6
13541else $as_nop
13542  if test -n "$ac_ct_RANLIB"; then
13543  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13544else
13545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546for as_dir in $PATH
13547do
13548  IFS=$as_save_IFS
13549  case $as_dir in #(((
13550    '') as_dir=./ ;;
13551    */) ;;
13552    *) as_dir=$as_dir/ ;;
13553  esac
13554    for ac_exec_ext in '' $ac_executable_extensions; do
13555  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13556    ac_cv_prog_ac_ct_RANLIB="ranlib"
13557    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13558    break 2
13559  fi
13560done
13561  done
13562IFS=$as_save_IFS
13563
13564fi
13565fi
13566ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13567if test -n "$ac_ct_RANLIB"; then
13568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13569printf "%s\n" "$ac_ct_RANLIB" >&6; }
13570else
13571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572printf "%s\n" "no" >&6; }
13573fi
13574
13575  if test "x$ac_ct_RANLIB" = x; then
13576    RANLIB=":"
13577  else
13578    case $cross_compiling:$ac_tool_warned in
13579yes:)
13580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13581printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13582ac_tool_warned=yes ;;
13583esac
13584    RANLIB=$ac_ct_RANLIB
13585  fi
13586else
13587  RANLIB="$ac_cv_prog_RANLIB"
13588fi
13589
13590test -z "$RANLIB" && RANLIB=:
13591
13592
13593
13594
13595
13596
13597# Determine commands to create old-style static archives.
13598old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13599old_postinstall_cmds='chmod 644 $oldlib'
13600old_postuninstall_cmds=
13601
13602if test -n "$RANLIB"; then
13603  case $host_os in
13604  bitrig* | openbsd*)
13605    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13606    ;;
13607  *)
13608    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13609    ;;
13610  esac
13611  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13612fi
13613
13614case $host_os in
13615  darwin*)
13616    lock_old_archive_extraction=yes ;;
13617  *)
13618    lock_old_archive_extraction=no ;;
13619esac
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659# If no C compiler was specified, use CC.
13660LTCC=${LTCC-"$CC"}
13661
13662# If no C compiler flags were specified, use CFLAGS.
13663LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13664
13665# Allow CC to be a program name with arguments.
13666compiler=$CC
13667
13668
13669# Check for command to grab the raw symbol name followed by C symbol from nm.
13670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13671printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13672if test ${lt_cv_sys_global_symbol_pipe+y}
13673then :
13674  printf %s "(cached) " >&6
13675else $as_nop
13676
13677# These are sane defaults that work on at least a few old systems.
13678# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13679
13680# Character class describing NM global symbol codes.
13681symcode='[BCDEGRST]'
13682
13683# Regexp to match symbols that can be accessed directly from C.
13684sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13685
13686# Define system-specific variables.
13687case $host_os in
13688aix*)
13689  symcode='[BCDT]'
13690  ;;
13691cygwin* | mingw* | pw32* | cegcc*)
13692  symcode='[ABCDGISTW]'
13693  ;;
13694hpux*)
13695  if test ia64 = "$host_cpu"; then
13696    symcode='[ABCDEGRST]'
13697  fi
13698  ;;
13699irix* | nonstopux*)
13700  symcode='[BCDEGRST]'
13701  ;;
13702osf*)
13703  symcode='[BCDEGQRST]'
13704  ;;
13705solaris*)
13706  symcode='[BDRT]'
13707  ;;
13708sco3.2v5*)
13709  symcode='[DT]'
13710  ;;
13711sysv4.2uw2*)
13712  symcode='[DT]'
13713  ;;
13714sysv5* | sco5v6* | unixware* | OpenUNIX*)
13715  symcode='[ABDT]'
13716  ;;
13717sysv4)
13718  symcode='[DFNSTU]'
13719  ;;
13720esac
13721
13722# If we're using GNU nm, then use its standard symbol codes.
13723case `$NM -V 2>&1` in
13724*GNU* | *'with BFD'*)
13725  symcode='[ABCDGIRSTW]' ;;
13726esac
13727
13728if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13729  # Gets list of data symbols to import.
13730  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13731  # Adjust the below global symbol transforms to fixup imported variables.
13732  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13733  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13734  lt_c_name_lib_hook="\
13735  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13736  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13737else
13738  # Disable hooks by default.
13739  lt_cv_sys_global_symbol_to_import=
13740  lt_cdecl_hook=
13741  lt_c_name_hook=
13742  lt_c_name_lib_hook=
13743fi
13744
13745# Transform an extracted symbol line into a proper C declaration.
13746# Some systems (esp. on ia64) link data and code symbols differently,
13747# so use this general approach.
13748lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13749$lt_cdecl_hook\
13750" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13751" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13752
13753# Transform an extracted symbol line into symbol name and symbol address
13754lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13755$lt_c_name_hook\
13756" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13757" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13758
13759# Transform an extracted symbol line into symbol name with lib prefix and
13760# symbol address.
13761lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13762$lt_c_name_lib_hook\
13763" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13764" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13765" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13766
13767# Handle CRLF in mingw tool chain
13768opt_cr=
13769case $build_os in
13770mingw*)
13771  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13772  ;;
13773esac
13774
13775# Try without a prefix underscore, then with it.
13776for ac_symprfx in "" "_"; do
13777
13778  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13779  symxfrm="\\1 $ac_symprfx\\2 \\2"
13780
13781  # Write the raw and C identifiers.
13782  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13783    # Fake it for dumpbin and say T for any non-static function,
13784    # D for any global variable and I for any imported variable.
13785    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13786    # which start with @ or ?.
13787    lt_cv_sys_global_symbol_pipe="$AWK '"\
13788"     {last_section=section; section=\$ 3};"\
13789"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13790"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13791"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13792"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13793"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13794"     \$ 0!~/External *\|/{next};"\
13795"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13796"     {if(hide[section]) next};"\
13797"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13798"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13799"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13800"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13801"     ' prfx=^$ac_symprfx"
13802  else
13803    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13804  fi
13805  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13806
13807  # Check to see that the pipe works correctly.
13808  pipe_works=no
13809
13810  rm -f conftest*
13811  cat > conftest.$ac_ext <<_LT_EOF
13812#ifdef __cplusplus
13813extern "C" {
13814#endif
13815char nm_test_var;
13816void nm_test_func(void);
13817void nm_test_func(void){}
13818#ifdef __cplusplus
13819}
13820#endif
13821int main(){nm_test_var='a';nm_test_func();return(0);}
13822_LT_EOF
13823
13824  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13825  (eval $ac_compile) 2>&5
13826  ac_status=$?
13827  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828  test $ac_status = 0; }; then
13829    # Now try to grab the symbols.
13830    nlist=conftest.nm
13831    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13832  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13833  ac_status=$?
13834  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13835  test $ac_status = 0; } && test -s "$nlist"; then
13836      # Try sorting and uniquifying the output.
13837      if sort "$nlist" | uniq > "$nlist"T; then
13838	mv -f "$nlist"T "$nlist"
13839      else
13840	rm -f "$nlist"T
13841      fi
13842
13843      # Make sure that we snagged all the symbols we need.
13844      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13845	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13846	  cat <<_LT_EOF > conftest.$ac_ext
13847/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13848#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13849/* DATA imports from DLLs on WIN32 can't be const, because runtime
13850   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13851# define LT_DLSYM_CONST
13852#elif defined __osf__
13853/* This system does not cope well with relocations in const data.  */
13854# define LT_DLSYM_CONST
13855#else
13856# define LT_DLSYM_CONST const
13857#endif
13858
13859#ifdef __cplusplus
13860extern "C" {
13861#endif
13862
13863_LT_EOF
13864	  # Now generate the symbol file.
13865	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13866
13867	  cat <<_LT_EOF >> conftest.$ac_ext
13868
13869/* The mapping between symbol names and symbols.  */
13870LT_DLSYM_CONST struct {
13871  const char *name;
13872  void       *address;
13873}
13874lt__PROGRAM__LTX_preloaded_symbols[] =
13875{
13876  { "@PROGRAM@", (void *) 0 },
13877_LT_EOF
13878	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13879	  cat <<\_LT_EOF >> conftest.$ac_ext
13880  {0, (void *) 0}
13881};
13882
13883/* This works around a problem in FreeBSD linker */
13884#ifdef FREEBSD_WORKAROUND
13885static const void *lt_preloaded_setup() {
13886  return lt__PROGRAM__LTX_preloaded_symbols;
13887}
13888#endif
13889
13890#ifdef __cplusplus
13891}
13892#endif
13893_LT_EOF
13894	  # Now try linking the two files.
13895	  mv conftest.$ac_objext conftstm.$ac_objext
13896	  lt_globsym_save_LIBS=$LIBS
13897	  lt_globsym_save_CFLAGS=$CFLAGS
13898	  LIBS=conftstm.$ac_objext
13899	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13900	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13901  (eval $ac_link) 2>&5
13902  ac_status=$?
13903  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13904  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13905	    pipe_works=yes
13906	  fi
13907	  LIBS=$lt_globsym_save_LIBS
13908	  CFLAGS=$lt_globsym_save_CFLAGS
13909	else
13910	  echo "cannot find nm_test_func in $nlist" >&5
13911	fi
13912      else
13913	echo "cannot find nm_test_var in $nlist" >&5
13914      fi
13915    else
13916      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13917    fi
13918  else
13919    echo "$progname: failed program was:" >&5
13920    cat conftest.$ac_ext >&5
13921  fi
13922  rm -rf conftest* conftst*
13923
13924  # Do not use the global_symbol_pipe unless it works.
13925  if test yes = "$pipe_works"; then
13926    break
13927  else
13928    lt_cv_sys_global_symbol_pipe=
13929  fi
13930done
13931
13932fi
13933
13934if test -z "$lt_cv_sys_global_symbol_pipe"; then
13935  lt_cv_sys_global_symbol_to_cdecl=
13936fi
13937if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13939printf "%s\n" "failed" >&6; }
13940else
13941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13942printf "%s\n" "ok" >&6; }
13943fi
13944
13945# Response file support.
13946if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13947  nm_file_list_spec='@'
13948elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13949  nm_file_list_spec='@'
13950fi
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13989printf %s "checking for sysroot... " >&6; }
13990
13991# Check whether --with-sysroot was given.
13992if test ${with_sysroot+y}
13993then :
13994  withval=$with_sysroot;
13995else $as_nop
13996  with_sysroot=no
13997fi
13998
13999
14000lt_sysroot=
14001case $with_sysroot in #(
14002 yes)
14003   if test yes = "$GCC"; then
14004     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14005   fi
14006   ;; #(
14007 /*)
14008   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14009   ;; #(
14010 no|'')
14011   ;; #(
14012 *)
14013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14014printf "%s\n" "$with_sysroot" >&6; }
14015   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14016   ;;
14017esac
14018
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14020printf "%s\n" "${lt_sysroot:-no}" >&6; }
14021
14022
14023
14024
14025
14026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14027printf %s "checking for a working dd... " >&6; }
14028if test ${ac_cv_path_lt_DD+y}
14029then :
14030  printf %s "(cached) " >&6
14031else $as_nop
14032  printf 0123456789abcdef0123456789abcdef >conftest.i
14033cat conftest.i conftest.i >conftest2.i
14034: ${lt_DD:=$DD}
14035if test -z "$lt_DD"; then
14036  ac_path_lt_DD_found=false
14037  # Loop through the user's path and test for each of PROGNAME-LIST
14038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039for as_dir in $PATH
14040do
14041  IFS=$as_save_IFS
14042  case $as_dir in #(((
14043    '') as_dir=./ ;;
14044    */) ;;
14045    *) as_dir=$as_dir/ ;;
14046  esac
14047    for ac_prog in dd
14048   do
14049    for ac_exec_ext in '' $ac_executable_extensions; do
14050      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14051      as_fn_executable_p "$ac_path_lt_DD" || continue
14052if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14053  cmp -s conftest.i conftest.out \
14054  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14055fi
14056      $ac_path_lt_DD_found && break 3
14057    done
14058  done
14059  done
14060IFS=$as_save_IFS
14061  if test -z "$ac_cv_path_lt_DD"; then
14062    :
14063  fi
14064else
14065  ac_cv_path_lt_DD=$lt_DD
14066fi
14067
14068rm -f conftest.i conftest2.i conftest.out
14069fi
14070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14071printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14072
14073
14074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14075printf %s "checking how to truncate binary pipes... " >&6; }
14076if test ${lt_cv_truncate_bin+y}
14077then :
14078  printf %s "(cached) " >&6
14079else $as_nop
14080  printf 0123456789abcdef0123456789abcdef >conftest.i
14081cat conftest.i conftest.i >conftest2.i
14082lt_cv_truncate_bin=
14083if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14084  cmp -s conftest.i conftest.out \
14085  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14086fi
14087rm -f conftest.i conftest2.i conftest.out
14088test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
14089fi
14090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14091printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14092
14093
14094
14095
14096
14097
14098
14099# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14100func_cc_basename ()
14101{
14102    for cc_temp in $*""; do
14103      case $cc_temp in
14104        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14105        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14106        \-*) ;;
14107        *) break;;
14108      esac
14109    done
14110    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14111}
14112
14113# Check whether --enable-libtool-lock was given.
14114if test ${enable_libtool_lock+y}
14115then :
14116  enableval=$enable_libtool_lock;
14117fi
14118
14119test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14120
14121# Some flags need to be propagated to the compiler or linker for good
14122# libtool support.
14123case $host in
14124ia64-*-hpux*)
14125  # Find out what ABI is being produced by ac_compile, and set mode
14126  # options accordingly.
14127  echo 'int i;' > conftest.$ac_ext
14128  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14129  (eval $ac_compile) 2>&5
14130  ac_status=$?
14131  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14132  test $ac_status = 0; }; then
14133    case `$FILECMD conftest.$ac_objext` in
14134      *ELF-32*)
14135	HPUX_IA64_MODE=32
14136	;;
14137      *ELF-64*)
14138	HPUX_IA64_MODE=64
14139	;;
14140    esac
14141  fi
14142  rm -rf conftest*
14143  ;;
14144*-*-irix6*)
14145  # Find out what ABI is being produced by ac_compile, and set linker
14146  # options accordingly.
14147  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14148  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14149  (eval $ac_compile) 2>&5
14150  ac_status=$?
14151  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14152  test $ac_status = 0; }; then
14153    if test yes = "$lt_cv_prog_gnu_ld"; then
14154      case `$FILECMD conftest.$ac_objext` in
14155	*32-bit*)
14156	  LD="${LD-ld} -melf32bsmip"
14157	  ;;
14158	*N32*)
14159	  LD="${LD-ld} -melf32bmipn32"
14160	  ;;
14161	*64-bit*)
14162	  LD="${LD-ld} -melf64bmip"
14163	;;
14164      esac
14165    else
14166      case `$FILECMD conftest.$ac_objext` in
14167	*32-bit*)
14168	  LD="${LD-ld} -32"
14169	  ;;
14170	*N32*)
14171	  LD="${LD-ld} -n32"
14172	  ;;
14173	*64-bit*)
14174	  LD="${LD-ld} -64"
14175	  ;;
14176      esac
14177    fi
14178  fi
14179  rm -rf conftest*
14180  ;;
14181
14182mips64*-*linux*)
14183  # Find out what ABI is being produced by ac_compile, and set linker
14184  # options accordingly.
14185  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14186  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14187  (eval $ac_compile) 2>&5
14188  ac_status=$?
14189  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14190  test $ac_status = 0; }; then
14191    emul=elf
14192    case `$FILECMD conftest.$ac_objext` in
14193      *32-bit*)
14194	emul="${emul}32"
14195	;;
14196      *64-bit*)
14197	emul="${emul}64"
14198	;;
14199    esac
14200    case `$FILECMD conftest.$ac_objext` in
14201      *MSB*)
14202	emul="${emul}btsmip"
14203	;;
14204      *LSB*)
14205	emul="${emul}ltsmip"
14206	;;
14207    esac
14208    case `$FILECMD conftest.$ac_objext` in
14209      *N32*)
14210	emul="${emul}n32"
14211	;;
14212    esac
14213    LD="${LD-ld} -m $emul"
14214  fi
14215  rm -rf conftest*
14216  ;;
14217
14218x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14219s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14220  # Find out what ABI is being produced by ac_compile, and set linker
14221  # options accordingly.  Note that the listed cases only cover the
14222  # situations where additional linker options are needed (such as when
14223  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14224  # vice versa); the common cases where no linker options are needed do
14225  # not appear in the list.
14226  echo 'int i;' > conftest.$ac_ext
14227  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14228  (eval $ac_compile) 2>&5
14229  ac_status=$?
14230  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14231  test $ac_status = 0; }; then
14232    case `$FILECMD conftest.o` in
14233      *32-bit*)
14234	case $host in
14235	  x86_64-*kfreebsd*-gnu)
14236	    LD="${LD-ld} -m elf_i386_fbsd"
14237	    ;;
14238	  x86_64-*linux*)
14239	    case `$FILECMD conftest.o` in
14240	      *x86-64*)
14241		LD="${LD-ld} -m elf32_x86_64"
14242		;;
14243	      *)
14244		LD="${LD-ld} -m elf_i386"
14245		;;
14246	    esac
14247	    ;;
14248	  powerpc64le-*linux*)
14249	    LD="${LD-ld} -m elf32lppclinux"
14250	    ;;
14251	  powerpc64-*linux*)
14252	    LD="${LD-ld} -m elf32ppclinux"
14253	    ;;
14254	  s390x-*linux*)
14255	    LD="${LD-ld} -m elf_s390"
14256	    ;;
14257	  sparc64-*linux*)
14258	    LD="${LD-ld} -m elf32_sparc"
14259	    ;;
14260	esac
14261	;;
14262      *64-bit*)
14263	case $host in
14264	  x86_64-*kfreebsd*-gnu)
14265	    LD="${LD-ld} -m elf_x86_64_fbsd"
14266	    ;;
14267	  x86_64-*linux*)
14268	    LD="${LD-ld} -m elf_x86_64"
14269	    ;;
14270	  powerpcle-*linux*)
14271	    LD="${LD-ld} -m elf64lppc"
14272	    ;;
14273	  powerpc-*linux*)
14274	    LD="${LD-ld} -m elf64ppc"
14275	    ;;
14276	  s390*-*linux*|s390*-*tpf*)
14277	    LD="${LD-ld} -m elf64_s390"
14278	    ;;
14279	  sparc*-*linux*)
14280	    LD="${LD-ld} -m elf64_sparc"
14281	    ;;
14282	esac
14283	;;
14284    esac
14285  fi
14286  rm -rf conftest*
14287  ;;
14288
14289*-*-sco3.2v5*)
14290  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14291  SAVE_CFLAGS=$CFLAGS
14292  CFLAGS="$CFLAGS -belf"
14293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14294printf %s "checking whether the C compiler needs -belf... " >&6; }
14295if test ${lt_cv_cc_needs_belf+y}
14296then :
14297  printf %s "(cached) " >&6
14298else $as_nop
14299  ac_ext=c
14300ac_cpp='$CPP $CPPFLAGS'
14301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304
14305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306/* end confdefs.h.  */
14307
14308int
14309main (void)
14310{
14311
14312  ;
14313  return 0;
14314}
14315_ACEOF
14316if ac_fn_c_try_link "$LINENO"
14317then :
14318  lt_cv_cc_needs_belf=yes
14319else $as_nop
14320  lt_cv_cc_needs_belf=no
14321fi
14322rm -f core conftest.err conftest.$ac_objext conftest.beam \
14323    conftest$ac_exeext conftest.$ac_ext
14324     ac_ext=c
14325ac_cpp='$CPP $CPPFLAGS'
14326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329
14330fi
14331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14332printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14333  if test yes != "$lt_cv_cc_needs_belf"; then
14334    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14335    CFLAGS=$SAVE_CFLAGS
14336  fi
14337  ;;
14338*-*solaris*)
14339  # Find out what ABI is being produced by ac_compile, and set linker
14340  # options accordingly.
14341  echo 'int i;' > conftest.$ac_ext
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    case `$FILECMD conftest.o` in
14348    *64-bit*)
14349      case $lt_cv_prog_gnu_ld in
14350      yes*)
14351        case $host in
14352        i?86-*-solaris*|x86_64-*-solaris*)
14353          LD="${LD-ld} -m elf_x86_64"
14354          ;;
14355        sparc*-*-solaris*)
14356          LD="${LD-ld} -m elf64_sparc"
14357          ;;
14358        esac
14359        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14360        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14361          LD=${LD-ld}_sol2
14362        fi
14363        ;;
14364      *)
14365	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14366	  LD="${LD-ld} -64"
14367	fi
14368	;;
14369      esac
14370      ;;
14371    esac
14372  fi
14373  rm -rf conftest*
14374  ;;
14375esac
14376
14377need_locks=$enable_libtool_lock
14378
14379if test -n "$ac_tool_prefix"; then
14380  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14381set dummy ${ac_tool_prefix}mt; ac_word=$2
14382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14383printf %s "checking for $ac_word... " >&6; }
14384if test ${ac_cv_prog_MANIFEST_TOOL+y}
14385then :
14386  printf %s "(cached) " >&6
14387else $as_nop
14388  if test -n "$MANIFEST_TOOL"; then
14389  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14390else
14391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392for as_dir in $PATH
14393do
14394  IFS=$as_save_IFS
14395  case $as_dir in #(((
14396    '') as_dir=./ ;;
14397    */) ;;
14398    *) as_dir=$as_dir/ ;;
14399  esac
14400    for ac_exec_ext in '' $ac_executable_extensions; do
14401  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14402    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14403    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14404    break 2
14405  fi
14406done
14407  done
14408IFS=$as_save_IFS
14409
14410fi
14411fi
14412MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14413if test -n "$MANIFEST_TOOL"; then
14414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14415printf "%s\n" "$MANIFEST_TOOL" >&6; }
14416else
14417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14418printf "%s\n" "no" >&6; }
14419fi
14420
14421
14422fi
14423if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14424  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14425  # Extract the first word of "mt", so it can be a program name with args.
14426set dummy mt; ac_word=$2
14427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14428printf %s "checking for $ac_word... " >&6; }
14429if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14430then :
14431  printf %s "(cached) " >&6
14432else $as_nop
14433  if test -n "$ac_ct_MANIFEST_TOOL"; then
14434  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14435else
14436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14437for as_dir in $PATH
14438do
14439  IFS=$as_save_IFS
14440  case $as_dir in #(((
14441    '') as_dir=./ ;;
14442    */) ;;
14443    *) as_dir=$as_dir/ ;;
14444  esac
14445    for ac_exec_ext in '' $ac_executable_extensions; do
14446  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14447    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14448    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14449    break 2
14450  fi
14451done
14452  done
14453IFS=$as_save_IFS
14454
14455fi
14456fi
14457ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14458if test -n "$ac_ct_MANIFEST_TOOL"; then
14459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14460printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14461else
14462  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463printf "%s\n" "no" >&6; }
14464fi
14465
14466  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14467    MANIFEST_TOOL=":"
14468  else
14469    case $cross_compiling:$ac_tool_warned in
14470yes:)
14471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14472printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14473ac_tool_warned=yes ;;
14474esac
14475    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14476  fi
14477else
14478  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14479fi
14480
14481test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14483printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14484if test ${lt_cv_path_mainfest_tool+y}
14485then :
14486  printf %s "(cached) " >&6
14487else $as_nop
14488  lt_cv_path_mainfest_tool=no
14489  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14490  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14491  cat conftest.err >&5
14492  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14493    lt_cv_path_mainfest_tool=yes
14494  fi
14495  rm -f conftest*
14496fi
14497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14498printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14499if test yes != "$lt_cv_path_mainfest_tool"; then
14500  MANIFEST_TOOL=:
14501fi
14502
14503
14504
14505
14506
14507
14508  case $host_os in
14509    rhapsody* | darwin*)
14510    if test -n "$ac_tool_prefix"; then
14511  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14512set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14514printf %s "checking for $ac_word... " >&6; }
14515if test ${ac_cv_prog_DSYMUTIL+y}
14516then :
14517  printf %s "(cached) " >&6
14518else $as_nop
14519  if test -n "$DSYMUTIL"; then
14520  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14521else
14522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14523for as_dir in $PATH
14524do
14525  IFS=$as_save_IFS
14526  case $as_dir in #(((
14527    '') as_dir=./ ;;
14528    */) ;;
14529    *) as_dir=$as_dir/ ;;
14530  esac
14531    for ac_exec_ext in '' $ac_executable_extensions; do
14532  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14533    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14534    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14535    break 2
14536  fi
14537done
14538  done
14539IFS=$as_save_IFS
14540
14541fi
14542fi
14543DSYMUTIL=$ac_cv_prog_DSYMUTIL
14544if test -n "$DSYMUTIL"; then
14545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14546printf "%s\n" "$DSYMUTIL" >&6; }
14547else
14548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549printf "%s\n" "no" >&6; }
14550fi
14551
14552
14553fi
14554if test -z "$ac_cv_prog_DSYMUTIL"; then
14555  ac_ct_DSYMUTIL=$DSYMUTIL
14556  # Extract the first word of "dsymutil", so it can be a program name with args.
14557set dummy dsymutil; ac_word=$2
14558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14559printf %s "checking for $ac_word... " >&6; }
14560if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14561then :
14562  printf %s "(cached) " >&6
14563else $as_nop
14564  if test -n "$ac_ct_DSYMUTIL"; then
14565  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14566else
14567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568for as_dir in $PATH
14569do
14570  IFS=$as_save_IFS
14571  case $as_dir in #(((
14572    '') as_dir=./ ;;
14573    */) ;;
14574    *) as_dir=$as_dir/ ;;
14575  esac
14576    for ac_exec_ext in '' $ac_executable_extensions; do
14577  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14578    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14579    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14580    break 2
14581  fi
14582done
14583  done
14584IFS=$as_save_IFS
14585
14586fi
14587fi
14588ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14589if test -n "$ac_ct_DSYMUTIL"; then
14590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14591printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14592else
14593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594printf "%s\n" "no" >&6; }
14595fi
14596
14597  if test "x$ac_ct_DSYMUTIL" = x; then
14598    DSYMUTIL=":"
14599  else
14600    case $cross_compiling:$ac_tool_warned in
14601yes:)
14602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14603printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14604ac_tool_warned=yes ;;
14605esac
14606    DSYMUTIL=$ac_ct_DSYMUTIL
14607  fi
14608else
14609  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14610fi
14611
14612    if test -n "$ac_tool_prefix"; then
14613  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14614set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14616printf %s "checking for $ac_word... " >&6; }
14617if test ${ac_cv_prog_NMEDIT+y}
14618then :
14619  printf %s "(cached) " >&6
14620else $as_nop
14621  if test -n "$NMEDIT"; then
14622  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14623else
14624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625for as_dir in $PATH
14626do
14627  IFS=$as_save_IFS
14628  case $as_dir in #(((
14629    '') as_dir=./ ;;
14630    */) ;;
14631    *) as_dir=$as_dir/ ;;
14632  esac
14633    for ac_exec_ext in '' $ac_executable_extensions; do
14634  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14635    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14637    break 2
14638  fi
14639done
14640  done
14641IFS=$as_save_IFS
14642
14643fi
14644fi
14645NMEDIT=$ac_cv_prog_NMEDIT
14646if test -n "$NMEDIT"; then
14647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14648printf "%s\n" "$NMEDIT" >&6; }
14649else
14650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651printf "%s\n" "no" >&6; }
14652fi
14653
14654
14655fi
14656if test -z "$ac_cv_prog_NMEDIT"; then
14657  ac_ct_NMEDIT=$NMEDIT
14658  # Extract the first word of "nmedit", so it can be a program name with args.
14659set dummy nmedit; ac_word=$2
14660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661printf %s "checking for $ac_word... " >&6; }
14662if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14663then :
14664  printf %s "(cached) " >&6
14665else $as_nop
14666  if test -n "$ac_ct_NMEDIT"; then
14667  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14668else
14669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670for as_dir in $PATH
14671do
14672  IFS=$as_save_IFS
14673  case $as_dir in #(((
14674    '') as_dir=./ ;;
14675    */) ;;
14676    *) as_dir=$as_dir/ ;;
14677  esac
14678    for ac_exec_ext in '' $ac_executable_extensions; do
14679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14680    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14682    break 2
14683  fi
14684done
14685  done
14686IFS=$as_save_IFS
14687
14688fi
14689fi
14690ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14691if test -n "$ac_ct_NMEDIT"; then
14692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14693printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14694else
14695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14696printf "%s\n" "no" >&6; }
14697fi
14698
14699  if test "x$ac_ct_NMEDIT" = x; then
14700    NMEDIT=":"
14701  else
14702    case $cross_compiling:$ac_tool_warned in
14703yes:)
14704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14705printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14706ac_tool_warned=yes ;;
14707esac
14708    NMEDIT=$ac_ct_NMEDIT
14709  fi
14710else
14711  NMEDIT="$ac_cv_prog_NMEDIT"
14712fi
14713
14714    if test -n "$ac_tool_prefix"; then
14715  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14716set dummy ${ac_tool_prefix}lipo; ac_word=$2
14717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14718printf %s "checking for $ac_word... " >&6; }
14719if test ${ac_cv_prog_LIPO+y}
14720then :
14721  printf %s "(cached) " >&6
14722else $as_nop
14723  if test -n "$LIPO"; then
14724  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14725else
14726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727for as_dir in $PATH
14728do
14729  IFS=$as_save_IFS
14730  case $as_dir in #(((
14731    '') as_dir=./ ;;
14732    */) ;;
14733    *) as_dir=$as_dir/ ;;
14734  esac
14735    for ac_exec_ext in '' $ac_executable_extensions; do
14736  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14737    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14738    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14739    break 2
14740  fi
14741done
14742  done
14743IFS=$as_save_IFS
14744
14745fi
14746fi
14747LIPO=$ac_cv_prog_LIPO
14748if test -n "$LIPO"; then
14749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14750printf "%s\n" "$LIPO" >&6; }
14751else
14752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14753printf "%s\n" "no" >&6; }
14754fi
14755
14756
14757fi
14758if test -z "$ac_cv_prog_LIPO"; then
14759  ac_ct_LIPO=$LIPO
14760  # Extract the first word of "lipo", so it can be a program name with args.
14761set dummy lipo; ac_word=$2
14762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14763printf %s "checking for $ac_word... " >&6; }
14764if test ${ac_cv_prog_ac_ct_LIPO+y}
14765then :
14766  printf %s "(cached) " >&6
14767else $as_nop
14768  if test -n "$ac_ct_LIPO"; then
14769  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14770else
14771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772for as_dir in $PATH
14773do
14774  IFS=$as_save_IFS
14775  case $as_dir in #(((
14776    '') as_dir=./ ;;
14777    */) ;;
14778    *) as_dir=$as_dir/ ;;
14779  esac
14780    for ac_exec_ext in '' $ac_executable_extensions; do
14781  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14782    ac_cv_prog_ac_ct_LIPO="lipo"
14783    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14784    break 2
14785  fi
14786done
14787  done
14788IFS=$as_save_IFS
14789
14790fi
14791fi
14792ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14793if test -n "$ac_ct_LIPO"; then
14794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14795printf "%s\n" "$ac_ct_LIPO" >&6; }
14796else
14797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798printf "%s\n" "no" >&6; }
14799fi
14800
14801  if test "x$ac_ct_LIPO" = x; then
14802    LIPO=":"
14803  else
14804    case $cross_compiling:$ac_tool_warned in
14805yes:)
14806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14807printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14808ac_tool_warned=yes ;;
14809esac
14810    LIPO=$ac_ct_LIPO
14811  fi
14812else
14813  LIPO="$ac_cv_prog_LIPO"
14814fi
14815
14816    if test -n "$ac_tool_prefix"; then
14817  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14818set dummy ${ac_tool_prefix}otool; ac_word=$2
14819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14820printf %s "checking for $ac_word... " >&6; }
14821if test ${ac_cv_prog_OTOOL+y}
14822then :
14823  printf %s "(cached) " >&6
14824else $as_nop
14825  if test -n "$OTOOL"; then
14826  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14827else
14828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14829for as_dir in $PATH
14830do
14831  IFS=$as_save_IFS
14832  case $as_dir in #(((
14833    '') as_dir=./ ;;
14834    */) ;;
14835    *) as_dir=$as_dir/ ;;
14836  esac
14837    for ac_exec_ext in '' $ac_executable_extensions; do
14838  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14839    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14840    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14841    break 2
14842  fi
14843done
14844  done
14845IFS=$as_save_IFS
14846
14847fi
14848fi
14849OTOOL=$ac_cv_prog_OTOOL
14850if test -n "$OTOOL"; then
14851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14852printf "%s\n" "$OTOOL" >&6; }
14853else
14854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14855printf "%s\n" "no" >&6; }
14856fi
14857
14858
14859fi
14860if test -z "$ac_cv_prog_OTOOL"; then
14861  ac_ct_OTOOL=$OTOOL
14862  # Extract the first word of "otool", so it can be a program name with args.
14863set dummy otool; ac_word=$2
14864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14865printf %s "checking for $ac_word... " >&6; }
14866if test ${ac_cv_prog_ac_ct_OTOOL+y}
14867then :
14868  printf %s "(cached) " >&6
14869else $as_nop
14870  if test -n "$ac_ct_OTOOL"; then
14871  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14872else
14873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874for as_dir in $PATH
14875do
14876  IFS=$as_save_IFS
14877  case $as_dir in #(((
14878    '') as_dir=./ ;;
14879    */) ;;
14880    *) as_dir=$as_dir/ ;;
14881  esac
14882    for ac_exec_ext in '' $ac_executable_extensions; do
14883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14884    ac_cv_prog_ac_ct_OTOOL="otool"
14885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14886    break 2
14887  fi
14888done
14889  done
14890IFS=$as_save_IFS
14891
14892fi
14893fi
14894ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14895if test -n "$ac_ct_OTOOL"; then
14896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14897printf "%s\n" "$ac_ct_OTOOL" >&6; }
14898else
14899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14900printf "%s\n" "no" >&6; }
14901fi
14902
14903  if test "x$ac_ct_OTOOL" = x; then
14904    OTOOL=":"
14905  else
14906    case $cross_compiling:$ac_tool_warned in
14907yes:)
14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14909printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14910ac_tool_warned=yes ;;
14911esac
14912    OTOOL=$ac_ct_OTOOL
14913  fi
14914else
14915  OTOOL="$ac_cv_prog_OTOOL"
14916fi
14917
14918    if test -n "$ac_tool_prefix"; then
14919  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14920set dummy ${ac_tool_prefix}otool64; ac_word=$2
14921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14922printf %s "checking for $ac_word... " >&6; }
14923if test ${ac_cv_prog_OTOOL64+y}
14924then :
14925  printf %s "(cached) " >&6
14926else $as_nop
14927  if test -n "$OTOOL64"; then
14928  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14929else
14930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14931for as_dir in $PATH
14932do
14933  IFS=$as_save_IFS
14934  case $as_dir in #(((
14935    '') as_dir=./ ;;
14936    */) ;;
14937    *) as_dir=$as_dir/ ;;
14938  esac
14939    for ac_exec_ext in '' $ac_executable_extensions; do
14940  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14941    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14942    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14943    break 2
14944  fi
14945done
14946  done
14947IFS=$as_save_IFS
14948
14949fi
14950fi
14951OTOOL64=$ac_cv_prog_OTOOL64
14952if test -n "$OTOOL64"; then
14953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14954printf "%s\n" "$OTOOL64" >&6; }
14955else
14956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14957printf "%s\n" "no" >&6; }
14958fi
14959
14960
14961fi
14962if test -z "$ac_cv_prog_OTOOL64"; then
14963  ac_ct_OTOOL64=$OTOOL64
14964  # Extract the first word of "otool64", so it can be a program name with args.
14965set dummy otool64; ac_word=$2
14966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14967printf %s "checking for $ac_word... " >&6; }
14968if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14969then :
14970  printf %s "(cached) " >&6
14971else $as_nop
14972  if test -n "$ac_ct_OTOOL64"; then
14973  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14974else
14975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976for as_dir in $PATH
14977do
14978  IFS=$as_save_IFS
14979  case $as_dir in #(((
14980    '') as_dir=./ ;;
14981    */) ;;
14982    *) as_dir=$as_dir/ ;;
14983  esac
14984    for ac_exec_ext in '' $ac_executable_extensions; do
14985  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14986    ac_cv_prog_ac_ct_OTOOL64="otool64"
14987    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14988    break 2
14989  fi
14990done
14991  done
14992IFS=$as_save_IFS
14993
14994fi
14995fi
14996ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14997if test -n "$ac_ct_OTOOL64"; then
14998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14999printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15000else
15001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15002printf "%s\n" "no" >&6; }
15003fi
15004
15005  if test "x$ac_ct_OTOOL64" = x; then
15006    OTOOL64=":"
15007  else
15008    case $cross_compiling:$ac_tool_warned in
15009yes:)
15010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15011printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15012ac_tool_warned=yes ;;
15013esac
15014    OTOOL64=$ac_ct_OTOOL64
15015  fi
15016else
15017  OTOOL64="$ac_cv_prog_OTOOL64"
15018fi
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15047printf %s "checking for -single_module linker flag... " >&6; }
15048if test ${lt_cv_apple_cc_single_mod+y}
15049then :
15050  printf %s "(cached) " >&6
15051else $as_nop
15052  lt_cv_apple_cc_single_mod=no
15053      if test -z "$LT_MULTI_MODULE"; then
15054	# By default we will add the -single_module flag. You can override
15055	# by either setting the environment variable LT_MULTI_MODULE
15056	# non-empty at configure time, or by adding -multi_module to the
15057	# link flags.
15058	rm -rf libconftest.dylib*
15059	echo "int foo(void){return 1;}" > conftest.c
15060	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15061-dynamiclib -Wl,-single_module conftest.c" >&5
15062	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15063	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15064        _lt_result=$?
15065	# If there is a non-empty error log, and "single_module"
15066	# appears in it, assume the flag caused a linker warning
15067        if test -s conftest.err && $GREP single_module conftest.err; then
15068	  cat conftest.err >&5
15069	# Otherwise, if the output was created with a 0 exit code from
15070	# the compiler, it worked.
15071	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15072	  lt_cv_apple_cc_single_mod=yes
15073	else
15074	  cat conftest.err >&5
15075	fi
15076	rm -rf libconftest.dylib*
15077	rm -f conftest.*
15078      fi
15079fi
15080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15081printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15082
15083    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15084printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15085if test ${lt_cv_ld_exported_symbols_list+y}
15086then :
15087  printf %s "(cached) " >&6
15088else $as_nop
15089  lt_cv_ld_exported_symbols_list=no
15090      save_LDFLAGS=$LDFLAGS
15091      echo "_main" > conftest.sym
15092      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15093      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094/* end confdefs.h.  */
15095
15096int
15097main (void)
15098{
15099
15100  ;
15101  return 0;
15102}
15103_ACEOF
15104if ac_fn_c_try_link "$LINENO"
15105then :
15106  lt_cv_ld_exported_symbols_list=yes
15107else $as_nop
15108  lt_cv_ld_exported_symbols_list=no
15109fi
15110rm -f core conftest.err conftest.$ac_objext conftest.beam \
15111    conftest$ac_exeext conftest.$ac_ext
15112	LDFLAGS=$save_LDFLAGS
15113
15114fi
15115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15116printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15117
15118    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15119printf %s "checking for -force_load linker flag... " >&6; }
15120if test ${lt_cv_ld_force_load+y}
15121then :
15122  printf %s "(cached) " >&6
15123else $as_nop
15124  lt_cv_ld_force_load=no
15125      cat > conftest.c << _LT_EOF
15126int forced_loaded() { return 2;}
15127_LT_EOF
15128      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15129      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15130      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15131      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15132      echo "$RANLIB libconftest.a" >&5
15133      $RANLIB libconftest.a 2>&5
15134      cat > conftest.c << _LT_EOF
15135int main() { return 0;}
15136_LT_EOF
15137      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15138      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15139      _lt_result=$?
15140      if test -s conftest.err && $GREP force_load conftest.err; then
15141	cat conftest.err >&5
15142      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15143	lt_cv_ld_force_load=yes
15144      else
15145	cat conftest.err >&5
15146      fi
15147        rm -f conftest.err libconftest.a conftest conftest.c
15148        rm -rf conftest.dSYM
15149
15150fi
15151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15152printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15153    case $host_os in
15154    rhapsody* | darwin1.[012])
15155      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15156    darwin1.*)
15157      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15158    darwin*)
15159      case $MACOSX_DEPLOYMENT_TARGET,$host in
15160        10.[012],*|,*powerpc*-darwin[5-8]*)
15161          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15162        *)
15163          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15164      esac
15165    ;;
15166  esac
15167    if test yes = "$lt_cv_apple_cc_single_mod"; then
15168      _lt_dar_single_mod='$single_module'
15169    fi
15170    if test yes = "$lt_cv_ld_exported_symbols_list"; then
15171      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15172    else
15173      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15174    fi
15175    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15176      _lt_dsymutil='~$DSYMUTIL $lib || :'
15177    else
15178      _lt_dsymutil=
15179    fi
15180    ;;
15181  esac
15182
15183# func_munge_path_list VARIABLE PATH
15184# -----------------------------------
15185# VARIABLE is name of variable containing _space_ separated list of
15186# directories to be munged by the contents of PATH, which is string
15187# having a format:
15188# "DIR[:DIR]:"
15189#       string "DIR[ DIR]" will be prepended to VARIABLE
15190# ":DIR[:DIR]"
15191#       string "DIR[ DIR]" will be appended to VARIABLE
15192# "DIRP[:DIRP]::[DIRA:]DIRA"
15193#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15194#       "DIRA[ DIRA]" will be appended to VARIABLE
15195# "DIR[:DIR]"
15196#       VARIABLE will be replaced by "DIR[ DIR]"
15197func_munge_path_list ()
15198{
15199    case x$2 in
15200    x)
15201        ;;
15202    *:)
15203        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15204        ;;
15205    x:*)
15206        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15207        ;;
15208    *::*)
15209        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15210        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15211        ;;
15212    *)
15213        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15214        ;;
15215    esac
15216}
15217
15218ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15219"
15220if test "x$ac_cv_header_dlfcn_h" = xyes
15221then :
15222  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15223
15224fi
15225
15226
15227
15228
15229
15230# Set options
15231
15232
15233
15234        enable_dlopen=no
15235
15236
15237  enable_win32_dll=no
15238
15239
15240            # Check whether --enable-shared was given.
15241if test ${enable_shared+y}
15242then :
15243  enableval=$enable_shared; p=${PACKAGE-default}
15244    case $enableval in
15245    yes) enable_shared=yes ;;
15246    no) enable_shared=no ;;
15247    *)
15248      enable_shared=no
15249      # Look at the argument we got.  We use all the common list separators.
15250      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15251      for pkg in $enableval; do
15252	IFS=$lt_save_ifs
15253	if test "X$pkg" = "X$p"; then
15254	  enable_shared=yes
15255	fi
15256      done
15257      IFS=$lt_save_ifs
15258      ;;
15259    esac
15260else $as_nop
15261  enable_shared=yes
15262fi
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274# Check whether --with-pic was given.
15275if test ${with_pic+y}
15276then :
15277  withval=$with_pic; lt_p=${PACKAGE-default}
15278    case $withval in
15279    yes|no) pic_mode=$withval ;;
15280    *)
15281      pic_mode=default
15282      # Look at the argument we got.  We use all the common list separators.
15283      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15284      for lt_pkg in $withval; do
15285	IFS=$lt_save_ifs
15286	if test "X$lt_pkg" = "X$lt_p"; then
15287	  pic_mode=yes
15288	fi
15289      done
15290      IFS=$lt_save_ifs
15291      ;;
15292    esac
15293else $as_nop
15294  pic_mode=default
15295fi
15296
15297
15298
15299
15300
15301
15302
15303
15304  # Check whether --enable-fast-install was given.
15305if test ${enable_fast_install+y}
15306then :
15307  enableval=$enable_fast_install; p=${PACKAGE-default}
15308    case $enableval in
15309    yes) enable_fast_install=yes ;;
15310    no) enable_fast_install=no ;;
15311    *)
15312      enable_fast_install=no
15313      # Look at the argument we got.  We use all the common list separators.
15314      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15315      for pkg in $enableval; do
15316	IFS=$lt_save_ifs
15317	if test "X$pkg" = "X$p"; then
15318	  enable_fast_install=yes
15319	fi
15320      done
15321      IFS=$lt_save_ifs
15322      ;;
15323    esac
15324else $as_nop
15325  enable_fast_install=yes
15326fi
15327
15328
15329
15330
15331
15332
15333
15334
15335  shared_archive_member_spec=
15336case $host,$enable_shared in
15337power*-*-aix[5-9]*,yes)
15338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15339printf %s "checking which variant of shared library versioning to provide... " >&6; }
15340
15341# Check whether --with-aix-soname was given.
15342if test ${with_aix_soname+y}
15343then :
15344  withval=$with_aix_soname; case $withval in
15345    aix|svr4|both)
15346      ;;
15347    *)
15348      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15349      ;;
15350    esac
15351    lt_cv_with_aix_soname=$with_aix_soname
15352else $as_nop
15353  if test ${lt_cv_with_aix_soname+y}
15354then :
15355  printf %s "(cached) " >&6
15356else $as_nop
15357  lt_cv_with_aix_soname=aix
15358fi
15359
15360    with_aix_soname=$lt_cv_with_aix_soname
15361fi
15362
15363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15364printf "%s\n" "$with_aix_soname" >&6; }
15365  if test aix != "$with_aix_soname"; then
15366    # For the AIX way of multilib, we name the shared archive member
15367    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15368    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15369    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15370    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15371    if test 64 = "${OBJECT_MODE-32}"; then
15372      shared_archive_member_spec=shr_64
15373    else
15374      shared_archive_member_spec=shr
15375    fi
15376  fi
15377  ;;
15378*)
15379  with_aix_soname=aix
15380  ;;
15381esac
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392# This can be used to rebuild libtool when needed
15393LIBTOOL_DEPS=$ltmain
15394
15395# Always use our own libtool.
15396LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427test -z "$LN_S" && LN_S="ln -s"
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442if test -n "${ZSH_VERSION+set}"; then
15443   setopt NO_GLOB_SUBST
15444fi
15445
15446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15447printf %s "checking for objdir... " >&6; }
15448if test ${lt_cv_objdir+y}
15449then :
15450  printf %s "(cached) " >&6
15451else $as_nop
15452  rm -f .libs 2>/dev/null
15453mkdir .libs 2>/dev/null
15454if test -d .libs; then
15455  lt_cv_objdir=.libs
15456else
15457  # MS-DOS does not allow filenames that begin with a dot.
15458  lt_cv_objdir=_libs
15459fi
15460rmdir .libs 2>/dev/null
15461fi
15462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15463printf "%s\n" "$lt_cv_objdir" >&6; }
15464objdir=$lt_cv_objdir
15465
15466
15467
15468
15469
15470printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15471
15472
15473
15474
15475case $host_os in
15476aix3*)
15477  # AIX sometimes has problems with the GCC collect2 program.  For some
15478  # reason, if we set the COLLECT_NAMES environment variable, the problems
15479  # vanish in a puff of smoke.
15480  if test set != "${COLLECT_NAMES+set}"; then
15481    COLLECT_NAMES=
15482    export COLLECT_NAMES
15483  fi
15484  ;;
15485esac
15486
15487# Global variables:
15488ofile=libtool
15489can_build_shared=yes
15490
15491# All known linkers require a '.a' archive for static linking (except MSVC and
15492# ICC, which need '.lib').
15493libext=a
15494
15495with_gnu_ld=$lt_cv_prog_gnu_ld
15496
15497old_CC=$CC
15498old_CFLAGS=$CFLAGS
15499
15500# Set sane defaults for various variables
15501test -z "$CC" && CC=cc
15502test -z "$LTCC" && LTCC=$CC
15503test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15504test -z "$LD" && LD=ld
15505test -z "$ac_objext" && ac_objext=o
15506
15507func_cc_basename $compiler
15508cc_basename=$func_cc_basename_result
15509
15510
15511# Only perform the check for file, if the check method requires it
15512test -z "$MAGIC_CMD" && MAGIC_CMD=file
15513case $deplibs_check_method in
15514file_magic*)
15515  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15516    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15517printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15518if test ${lt_cv_path_MAGIC_CMD+y}
15519then :
15520  printf %s "(cached) " >&6
15521else $as_nop
15522  case $MAGIC_CMD in
15523[\\/*] |  ?:[\\/]*)
15524  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15525  ;;
15526*)
15527  lt_save_MAGIC_CMD=$MAGIC_CMD
15528  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15529  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15530  for ac_dir in $ac_dummy; do
15531    IFS=$lt_save_ifs
15532    test -z "$ac_dir" && ac_dir=.
15533    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15534      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15535      if test -n "$file_magic_test_file"; then
15536	case $deplibs_check_method in
15537	"file_magic "*)
15538	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15539	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15540	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15541	    $EGREP "$file_magic_regex" > /dev/null; then
15542	    :
15543	  else
15544	    cat <<_LT_EOF 1>&2
15545
15546*** Warning: the command libtool uses to detect shared libraries,
15547*** $file_magic_cmd, produces output that libtool cannot recognize.
15548*** The result is that libtool may fail to recognize shared libraries
15549*** as such.  This will affect the creation of libtool libraries that
15550*** depend on shared libraries, but programs linked with such libtool
15551*** libraries will work regardless of this problem.  Nevertheless, you
15552*** may want to report the problem to your system manager and/or to
15553*** bug-libtool@gnu.org
15554
15555_LT_EOF
15556	  fi ;;
15557	esac
15558      fi
15559      break
15560    fi
15561  done
15562  IFS=$lt_save_ifs
15563  MAGIC_CMD=$lt_save_MAGIC_CMD
15564  ;;
15565esac
15566fi
15567
15568MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15569if test -n "$MAGIC_CMD"; then
15570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15571printf "%s\n" "$MAGIC_CMD" >&6; }
15572else
15573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574printf "%s\n" "no" >&6; }
15575fi
15576
15577
15578
15579
15580
15581if test -z "$lt_cv_path_MAGIC_CMD"; then
15582  if test -n "$ac_tool_prefix"; then
15583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15584printf %s "checking for file... " >&6; }
15585if test ${lt_cv_path_MAGIC_CMD+y}
15586then :
15587  printf %s "(cached) " >&6
15588else $as_nop
15589  case $MAGIC_CMD in
15590[\\/*] |  ?:[\\/]*)
15591  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15592  ;;
15593*)
15594  lt_save_MAGIC_CMD=$MAGIC_CMD
15595  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15596  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15597  for ac_dir in $ac_dummy; do
15598    IFS=$lt_save_ifs
15599    test -z "$ac_dir" && ac_dir=.
15600    if test -f "$ac_dir/file"; then
15601      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15602      if test -n "$file_magic_test_file"; then
15603	case $deplibs_check_method in
15604	"file_magic "*)
15605	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15606	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15607	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15608	    $EGREP "$file_magic_regex" > /dev/null; then
15609	    :
15610	  else
15611	    cat <<_LT_EOF 1>&2
15612
15613*** Warning: the command libtool uses to detect shared libraries,
15614*** $file_magic_cmd, produces output that libtool cannot recognize.
15615*** The result is that libtool may fail to recognize shared libraries
15616*** as such.  This will affect the creation of libtool libraries that
15617*** depend on shared libraries, but programs linked with such libtool
15618*** libraries will work regardless of this problem.  Nevertheless, you
15619*** may want to report the problem to your system manager and/or to
15620*** bug-libtool@gnu.org
15621
15622_LT_EOF
15623	  fi ;;
15624	esac
15625      fi
15626      break
15627    fi
15628  done
15629  IFS=$lt_save_ifs
15630  MAGIC_CMD=$lt_save_MAGIC_CMD
15631  ;;
15632esac
15633fi
15634
15635MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15636if test -n "$MAGIC_CMD"; then
15637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15638printf "%s\n" "$MAGIC_CMD" >&6; }
15639else
15640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15641printf "%s\n" "no" >&6; }
15642fi
15643
15644
15645  else
15646    MAGIC_CMD=:
15647  fi
15648fi
15649
15650  fi
15651  ;;
15652esac
15653
15654# Use C for the default configuration in the libtool script
15655
15656lt_save_CC=$CC
15657ac_ext=c
15658ac_cpp='$CPP $CPPFLAGS'
15659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15661ac_compiler_gnu=$ac_cv_c_compiler_gnu
15662
15663
15664# Source file extension for C test sources.
15665ac_ext=c
15666
15667# Object file extension for compiled C test sources.
15668objext=o
15669objext=$objext
15670
15671# Code to be used in simple compile tests
15672lt_simple_compile_test_code="int some_variable = 0;"
15673
15674# Code to be used in simple link tests
15675lt_simple_link_test_code='int main(){return(0);}'
15676
15677
15678
15679
15680
15681
15682
15683# If no C compiler was specified, use CC.
15684LTCC=${LTCC-"$CC"}
15685
15686# If no C compiler flags were specified, use CFLAGS.
15687LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15688
15689# Allow CC to be a program name with arguments.
15690compiler=$CC
15691
15692# Save the default compiler, since it gets overwritten when the other
15693# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15694compiler_DEFAULT=$CC
15695
15696# save warnings/boilerplate of simple test code
15697ac_outfile=conftest.$ac_objext
15698echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15699eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15700_lt_compiler_boilerplate=`cat conftest.err`
15701$RM conftest*
15702
15703ac_outfile=conftest.$ac_objext
15704echo "$lt_simple_link_test_code" >conftest.$ac_ext
15705eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15706_lt_linker_boilerplate=`cat conftest.err`
15707$RM -r conftest*
15708
15709
15710if test -n "$compiler"; then
15711
15712lt_prog_compiler_no_builtin_flag=
15713
15714if test yes = "$GCC"; then
15715  case $cc_basename in
15716  nvcc*)
15717    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15718  *)
15719    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15720  esac
15721
15722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15723printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15724if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15725then :
15726  printf %s "(cached) " >&6
15727else $as_nop
15728  lt_cv_prog_compiler_rtti_exceptions=no
15729   ac_outfile=conftest.$ac_objext
15730   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15731   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15732   # Insert the option either (1) after the last *FLAGS variable, or
15733   # (2) before a word containing "conftest.", or (3) at the end.
15734   # Note that $ac_compile itself does not contain backslashes and begins
15735   # with a dollar sign (not a hyphen), so the echo should work correctly.
15736   # The option is referenced via a variable to avoid confusing sed.
15737   lt_compile=`echo "$ac_compile" | $SED \
15738   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15739   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15740   -e 's:$: $lt_compiler_flag:'`
15741   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15742   (eval "$lt_compile" 2>conftest.err)
15743   ac_status=$?
15744   cat conftest.err >&5
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   if (exit $ac_status) && test -s "$ac_outfile"; then
15747     # The compiler can only warn and ignore the option if not recognized
15748     # So say no if there are warnings other than the usual output.
15749     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15750     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15751     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15752       lt_cv_prog_compiler_rtti_exceptions=yes
15753     fi
15754   fi
15755   $RM conftest*
15756
15757fi
15758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15759printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15760
15761if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15762    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15763else
15764    :
15765fi
15766
15767fi
15768
15769
15770
15771
15772
15773
15774  lt_prog_compiler_wl=
15775lt_prog_compiler_pic=
15776lt_prog_compiler_static=
15777
15778
15779  if test yes = "$GCC"; then
15780    lt_prog_compiler_wl='-Wl,'
15781    lt_prog_compiler_static='-static'
15782
15783    case $host_os in
15784      aix*)
15785      # All AIX code is PIC.
15786      if test ia64 = "$host_cpu"; then
15787	# AIX 5 now supports IA64 processor
15788	lt_prog_compiler_static='-Bstatic'
15789      fi
15790      lt_prog_compiler_pic='-fPIC'
15791      ;;
15792
15793    amigaos*)
15794      case $host_cpu in
15795      powerpc)
15796            # see comment about AmigaOS4 .so support
15797            lt_prog_compiler_pic='-fPIC'
15798        ;;
15799      m68k)
15800            # FIXME: we need at least 68020 code to build shared libraries, but
15801            # adding the '-m68020' flag to GCC prevents building anything better,
15802            # like '-m68040'.
15803            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15804        ;;
15805      esac
15806      ;;
15807
15808    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15809      # PIC is the default for these OSes.
15810      ;;
15811
15812    mingw* | cygwin* | pw32* | os2* | cegcc*)
15813      # This hack is so that the source file can tell whether it is being
15814      # built for inclusion in a dll (and should export symbols for example).
15815      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15816      # (--disable-auto-import) libraries
15817      lt_prog_compiler_pic='-DDLL_EXPORT'
15818      case $host_os in
15819      os2*)
15820	lt_prog_compiler_static='$wl-static'
15821	;;
15822      esac
15823      ;;
15824
15825    darwin* | rhapsody*)
15826      # PIC is the default on this platform
15827      # Common symbols not allowed in MH_DYLIB files
15828      lt_prog_compiler_pic='-fno-common'
15829      ;;
15830
15831    haiku*)
15832      # PIC is the default for Haiku.
15833      # The "-static" flag exists, but is broken.
15834      lt_prog_compiler_static=
15835      ;;
15836
15837    hpux*)
15838      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15839      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15840      # sets the default TLS model and affects inlining.
15841      case $host_cpu in
15842      hppa*64*)
15843	# +Z the default
15844	;;
15845      *)
15846	lt_prog_compiler_pic='-fPIC'
15847	;;
15848      esac
15849      ;;
15850
15851    interix[3-9]*)
15852      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15853      # Instead, we relocate shared libraries at runtime.
15854      ;;
15855
15856    msdosdjgpp*)
15857      # Just because we use GCC doesn't mean we suddenly get shared libraries
15858      # on systems that don't support them.
15859      lt_prog_compiler_can_build_shared=no
15860      enable_shared=no
15861      ;;
15862
15863    *nto* | *qnx*)
15864      # QNX uses GNU C++, but need to define -shared option too, otherwise
15865      # it will coredump.
15866      lt_prog_compiler_pic='-fPIC -shared'
15867      ;;
15868
15869    sysv4*MP*)
15870      if test -d /usr/nec; then
15871	lt_prog_compiler_pic=-Kconform_pic
15872      fi
15873      ;;
15874
15875    *)
15876      lt_prog_compiler_pic='-fPIC'
15877      ;;
15878    esac
15879
15880    case $cc_basename in
15881    nvcc*) # Cuda Compiler Driver 2.2
15882      lt_prog_compiler_wl='-Xlinker '
15883      if test -n "$lt_prog_compiler_pic"; then
15884        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15885      fi
15886      ;;
15887    esac
15888  else
15889    # PORTME Check for flag to pass linker flags through the system compiler.
15890    case $host_os in
15891    aix*)
15892      lt_prog_compiler_wl='-Wl,'
15893      if test ia64 = "$host_cpu"; then
15894	# AIX 5 now supports IA64 processor
15895	lt_prog_compiler_static='-Bstatic'
15896      else
15897	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15898      fi
15899      ;;
15900
15901    darwin* | rhapsody*)
15902      # PIC is the default on this platform
15903      # Common symbols not allowed in MH_DYLIB files
15904      lt_prog_compiler_pic='-fno-common'
15905      case $cc_basename in
15906      nagfor*)
15907        # NAG Fortran compiler
15908        lt_prog_compiler_wl='-Wl,-Wl,,'
15909        lt_prog_compiler_pic='-PIC'
15910        lt_prog_compiler_static='-Bstatic'
15911        ;;
15912      esac
15913      ;;
15914
15915    mingw* | cygwin* | pw32* | os2* | cegcc*)
15916      # This hack is so that the source file can tell whether it is being
15917      # built for inclusion in a dll (and should export symbols for example).
15918      lt_prog_compiler_pic='-DDLL_EXPORT'
15919      case $host_os in
15920      os2*)
15921	lt_prog_compiler_static='$wl-static'
15922	;;
15923      esac
15924      ;;
15925
15926    hpux9* | hpux10* | hpux11*)
15927      lt_prog_compiler_wl='-Wl,'
15928      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15929      # not for PA HP-UX.
15930      case $host_cpu in
15931      hppa*64*|ia64*)
15932	# +Z the default
15933	;;
15934      *)
15935	lt_prog_compiler_pic='+Z'
15936	;;
15937      esac
15938      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15939      lt_prog_compiler_static='$wl-a ${wl}archive'
15940      ;;
15941
15942    irix5* | irix6* | nonstopux*)
15943      lt_prog_compiler_wl='-Wl,'
15944      # PIC (with -KPIC) is the default.
15945      lt_prog_compiler_static='-non_shared'
15946      ;;
15947
15948    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15949      case $cc_basename in
15950      # old Intel for x86_64, which still supported -KPIC.
15951      ecc*)
15952	lt_prog_compiler_wl='-Wl,'
15953	lt_prog_compiler_pic='-KPIC'
15954	lt_prog_compiler_static='-static'
15955        ;;
15956      # icc used to be incompatible with GCC.
15957      # ICC 10 doesn't accept -KPIC any more.
15958      icc* | ifort*)
15959	lt_prog_compiler_wl='-Wl,'
15960	lt_prog_compiler_pic='-fPIC'
15961	lt_prog_compiler_static='-static'
15962        ;;
15963      # Lahey Fortran 8.1.
15964      lf95*)
15965	lt_prog_compiler_wl='-Wl,'
15966	lt_prog_compiler_pic='--shared'
15967	lt_prog_compiler_static='--static'
15968	;;
15969      nagfor*)
15970	# NAG Fortran compiler
15971	lt_prog_compiler_wl='-Wl,-Wl,,'
15972	lt_prog_compiler_pic='-PIC'
15973	lt_prog_compiler_static='-Bstatic'
15974	;;
15975      tcc*)
15976	# Fabrice Bellard et al's Tiny C Compiler
15977	lt_prog_compiler_wl='-Wl,'
15978	lt_prog_compiler_pic='-fPIC'
15979	lt_prog_compiler_static='-static'
15980	;;
15981      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15982        # Portland Group compilers (*not* the Pentium gcc compiler,
15983	# which looks to be a dead project)
15984	lt_prog_compiler_wl='-Wl,'
15985	lt_prog_compiler_pic='-fpic'
15986	lt_prog_compiler_static='-Bstatic'
15987        ;;
15988      ccc*)
15989        lt_prog_compiler_wl='-Wl,'
15990        # All Alpha code is PIC.
15991        lt_prog_compiler_static='-non_shared'
15992        ;;
15993      xl* | bgxl* | bgf* | mpixl*)
15994	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15995	lt_prog_compiler_wl='-Wl,'
15996	lt_prog_compiler_pic='-qpic'
15997	lt_prog_compiler_static='-qstaticlink'
15998	;;
15999      *)
16000	case `$CC -V 2>&1 | $SED 5q` in
16001	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16002	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16003	  lt_prog_compiler_pic='-KPIC'
16004	  lt_prog_compiler_static='-Bstatic'
16005	  lt_prog_compiler_wl=''
16006	  ;;
16007	*Sun\ F* | *Sun*Fortran*)
16008	  lt_prog_compiler_pic='-KPIC'
16009	  lt_prog_compiler_static='-Bstatic'
16010	  lt_prog_compiler_wl='-Qoption ld '
16011	  ;;
16012	*Sun\ C*)
16013	  # Sun C 5.9
16014	  lt_prog_compiler_pic='-KPIC'
16015	  lt_prog_compiler_static='-Bstatic'
16016	  lt_prog_compiler_wl='-Wl,'
16017	  ;;
16018        *Intel*\ [CF]*Compiler*)
16019	  lt_prog_compiler_wl='-Wl,'
16020	  lt_prog_compiler_pic='-fPIC'
16021	  lt_prog_compiler_static='-static'
16022	  ;;
16023	*Portland\ Group*)
16024	  lt_prog_compiler_wl='-Wl,'
16025	  lt_prog_compiler_pic='-fpic'
16026	  lt_prog_compiler_static='-Bstatic'
16027	  ;;
16028	esac
16029	;;
16030      esac
16031      ;;
16032
16033    newsos6)
16034      lt_prog_compiler_pic='-KPIC'
16035      lt_prog_compiler_static='-Bstatic'
16036      ;;
16037
16038    *nto* | *qnx*)
16039      # QNX uses GNU C++, but need to define -shared option too, otherwise
16040      # it will coredump.
16041      lt_prog_compiler_pic='-fPIC -shared'
16042      ;;
16043
16044    osf3* | osf4* | osf5*)
16045      lt_prog_compiler_wl='-Wl,'
16046      # All OSF/1 code is PIC.
16047      lt_prog_compiler_static='-non_shared'
16048      ;;
16049
16050    rdos*)
16051      lt_prog_compiler_static='-non_shared'
16052      ;;
16053
16054    solaris*)
16055      lt_prog_compiler_pic='-KPIC'
16056      lt_prog_compiler_static='-Bstatic'
16057      case $cc_basename in
16058      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16059	lt_prog_compiler_wl='-Qoption ld ';;
16060      *)
16061	lt_prog_compiler_wl='-Wl,';;
16062      esac
16063      ;;
16064
16065    sunos4*)
16066      lt_prog_compiler_wl='-Qoption ld '
16067      lt_prog_compiler_pic='-PIC'
16068      lt_prog_compiler_static='-Bstatic'
16069      ;;
16070
16071    sysv4 | sysv4.2uw2* | sysv4.3*)
16072      lt_prog_compiler_wl='-Wl,'
16073      lt_prog_compiler_pic='-KPIC'
16074      lt_prog_compiler_static='-Bstatic'
16075      ;;
16076
16077    sysv4*MP*)
16078      if test -d /usr/nec; then
16079	lt_prog_compiler_pic='-Kconform_pic'
16080	lt_prog_compiler_static='-Bstatic'
16081      fi
16082      ;;
16083
16084    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16085      lt_prog_compiler_wl='-Wl,'
16086      lt_prog_compiler_pic='-KPIC'
16087      lt_prog_compiler_static='-Bstatic'
16088      ;;
16089
16090    unicos*)
16091      lt_prog_compiler_wl='-Wl,'
16092      lt_prog_compiler_can_build_shared=no
16093      ;;
16094
16095    uts4*)
16096      lt_prog_compiler_pic='-pic'
16097      lt_prog_compiler_static='-Bstatic'
16098      ;;
16099
16100    *)
16101      lt_prog_compiler_can_build_shared=no
16102      ;;
16103    esac
16104  fi
16105
16106case $host_os in
16107  # For platforms that do not support PIC, -DPIC is meaningless:
16108  *djgpp*)
16109    lt_prog_compiler_pic=
16110    ;;
16111  *)
16112    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16113    ;;
16114esac
16115
16116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16117printf %s "checking for $compiler option to produce PIC... " >&6; }
16118if test ${lt_cv_prog_compiler_pic+y}
16119then :
16120  printf %s "(cached) " >&6
16121else $as_nop
16122  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
16123fi
16124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16125printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16126lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16127
16128#
16129# Check to make sure the PIC flag actually works.
16130#
16131if test -n "$lt_prog_compiler_pic"; then
16132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16133printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16134if test ${lt_cv_prog_compiler_pic_works+y}
16135then :
16136  printf %s "(cached) " >&6
16137else $as_nop
16138  lt_cv_prog_compiler_pic_works=no
16139   ac_outfile=conftest.$ac_objext
16140   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16141   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16142   # Insert the option either (1) after the last *FLAGS variable, or
16143   # (2) before a word containing "conftest.", or (3) at the end.
16144   # Note that $ac_compile itself does not contain backslashes and begins
16145   # with a dollar sign (not a hyphen), so the echo should work correctly.
16146   # The option is referenced via a variable to avoid confusing sed.
16147   lt_compile=`echo "$ac_compile" | $SED \
16148   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16149   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16150   -e 's:$: $lt_compiler_flag:'`
16151   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16152   (eval "$lt_compile" 2>conftest.err)
16153   ac_status=$?
16154   cat conftest.err >&5
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   if (exit $ac_status) && test -s "$ac_outfile"; then
16157     # The compiler can only warn and ignore the option if not recognized
16158     # So say no if there are warnings other than the usual output.
16159     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16160     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16161     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16162       lt_cv_prog_compiler_pic_works=yes
16163     fi
16164   fi
16165   $RM conftest*
16166
16167fi
16168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16169printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16170
16171if test yes = "$lt_cv_prog_compiler_pic_works"; then
16172    case $lt_prog_compiler_pic in
16173     "" | " "*) ;;
16174     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16175     esac
16176else
16177    lt_prog_compiler_pic=
16178     lt_prog_compiler_can_build_shared=no
16179fi
16180
16181fi
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193#
16194# Check to make sure the static flag actually works.
16195#
16196wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16198printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16199if test ${lt_cv_prog_compiler_static_works+y}
16200then :
16201  printf %s "(cached) " >&6
16202else $as_nop
16203  lt_cv_prog_compiler_static_works=no
16204   save_LDFLAGS=$LDFLAGS
16205   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16206   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16207   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16208     # The linker can only warn and ignore the option if not recognized
16209     # So say no if there are warnings
16210     if test -s conftest.err; then
16211       # Append any errors to the config.log.
16212       cat conftest.err 1>&5
16213       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16214       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16215       if diff conftest.exp conftest.er2 >/dev/null; then
16216         lt_cv_prog_compiler_static_works=yes
16217       fi
16218     else
16219       lt_cv_prog_compiler_static_works=yes
16220     fi
16221   fi
16222   $RM -r conftest*
16223   LDFLAGS=$save_LDFLAGS
16224
16225fi
16226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16227printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16228
16229if test yes = "$lt_cv_prog_compiler_static_works"; then
16230    :
16231else
16232    lt_prog_compiler_static=
16233fi
16234
16235
16236
16237
16238
16239
16240
16241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16242printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16243if test ${lt_cv_prog_compiler_c_o+y}
16244then :
16245  printf %s "(cached) " >&6
16246else $as_nop
16247  lt_cv_prog_compiler_c_o=no
16248   $RM -r conftest 2>/dev/null
16249   mkdir conftest
16250   cd conftest
16251   mkdir out
16252   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16253
16254   lt_compiler_flag="-o out/conftest2.$ac_objext"
16255   # Insert the option either (1) after the last *FLAGS variable, or
16256   # (2) before a word containing "conftest.", or (3) at the end.
16257   # Note that $ac_compile itself does not contain backslashes and begins
16258   # with a dollar sign (not a hyphen), so the echo should work correctly.
16259   lt_compile=`echo "$ac_compile" | $SED \
16260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16262   -e 's:$: $lt_compiler_flag:'`
16263   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16264   (eval "$lt_compile" 2>out/conftest.err)
16265   ac_status=$?
16266   cat out/conftest.err >&5
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16269   then
16270     # The compiler can only warn and ignore the option if not recognized
16271     # So say no if there are warnings
16272     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16273     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16274     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16275       lt_cv_prog_compiler_c_o=yes
16276     fi
16277   fi
16278   chmod u+w . 2>&5
16279   $RM conftest*
16280   # SGI C++ compiler will create directory out/ii_files/ for
16281   # template instantiation
16282   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16283   $RM out/* && rmdir out
16284   cd ..
16285   $RM -r conftest
16286   $RM conftest*
16287
16288fi
16289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16290printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16291
16292
16293
16294
16295
16296
16297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16298printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16299if test ${lt_cv_prog_compiler_c_o+y}
16300then :
16301  printf %s "(cached) " >&6
16302else $as_nop
16303  lt_cv_prog_compiler_c_o=no
16304   $RM -r conftest 2>/dev/null
16305   mkdir conftest
16306   cd conftest
16307   mkdir out
16308   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16309
16310   lt_compiler_flag="-o out/conftest2.$ac_objext"
16311   # Insert the option either (1) after the last *FLAGS variable, or
16312   # (2) before a word containing "conftest.", or (3) at the end.
16313   # Note that $ac_compile itself does not contain backslashes and begins
16314   # with a dollar sign (not a hyphen), so the echo should work correctly.
16315   lt_compile=`echo "$ac_compile" | $SED \
16316   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16317   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16318   -e 's:$: $lt_compiler_flag:'`
16319   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16320   (eval "$lt_compile" 2>out/conftest.err)
16321   ac_status=$?
16322   cat out/conftest.err >&5
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16325   then
16326     # The compiler can only warn and ignore the option if not recognized
16327     # So say no if there are warnings
16328     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16329     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16330     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16331       lt_cv_prog_compiler_c_o=yes
16332     fi
16333   fi
16334   chmod u+w . 2>&5
16335   $RM conftest*
16336   # SGI C++ compiler will create directory out/ii_files/ for
16337   # template instantiation
16338   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16339   $RM out/* && rmdir out
16340   cd ..
16341   $RM -r conftest
16342   $RM conftest*
16343
16344fi
16345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16346printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16347
16348
16349
16350
16351hard_links=nottested
16352if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16353  # do not overwrite the value of need_locks provided by the user
16354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16355printf %s "checking if we can lock with hard links... " >&6; }
16356  hard_links=yes
16357  $RM conftest*
16358  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16359  touch conftest.a
16360  ln conftest.a conftest.b 2>&5 || hard_links=no
16361  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16363printf "%s\n" "$hard_links" >&6; }
16364  if test no = "$hard_links"; then
16365    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16366printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16367    need_locks=warn
16368  fi
16369else
16370  need_locks=no
16371fi
16372
16373
16374
16375
16376
16377
16378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16379printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16380
16381  runpath_var=
16382  allow_undefined_flag=
16383  always_export_symbols=no
16384  archive_cmds=
16385  archive_expsym_cmds=
16386  compiler_needs_object=no
16387  enable_shared_with_static_runtimes=no
16388  export_dynamic_flag_spec=
16389  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16390  hardcode_automatic=no
16391  hardcode_direct=no
16392  hardcode_direct_absolute=no
16393  hardcode_libdir_flag_spec=
16394  hardcode_libdir_separator=
16395  hardcode_minus_L=no
16396  hardcode_shlibpath_var=unsupported
16397  inherit_rpath=no
16398  link_all_deplibs=unknown
16399  module_cmds=
16400  module_expsym_cmds=
16401  old_archive_from_new_cmds=
16402  old_archive_from_expsyms_cmds=
16403  thread_safe_flag_spec=
16404  whole_archive_flag_spec=
16405  # include_expsyms should be a list of space-separated symbols to be *always*
16406  # included in the symbol list
16407  include_expsyms=
16408  # exclude_expsyms can be an extended regexp of symbols to exclude
16409  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16410  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16411  # as well as any symbol that contains 'd'.
16412  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16413  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16414  # platforms (ab)use it in PIC code, but their linkers get confused if
16415  # the symbol is explicitly referenced.  Since portable code cannot
16416  # rely on this symbol name, it's probably fine to never include it in
16417  # preloaded symbol tables.
16418  # Exclude shared library initialization/finalization symbols.
16419  extract_expsyms_cmds=
16420
16421  case $host_os in
16422  cygwin* | mingw* | pw32* | cegcc*)
16423    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16424    # When not using gcc, we currently assume that we are using
16425    # Microsoft Visual C++ or Intel C++ Compiler.
16426    if test yes != "$GCC"; then
16427      with_gnu_ld=no
16428    fi
16429    ;;
16430  interix*)
16431    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16432    with_gnu_ld=yes
16433    ;;
16434  openbsd* | bitrig*)
16435    with_gnu_ld=no
16436    ;;
16437  esac
16438
16439  ld_shlibs=yes
16440
16441  # On some targets, GNU ld is compatible enough with the native linker
16442  # that we're better off using the native interface for both.
16443  lt_use_gnu_ld_interface=no
16444  if test yes = "$with_gnu_ld"; then
16445    case $host_os in
16446      aix*)
16447	# The AIX port of GNU ld has always aspired to compatibility
16448	# with the native linker.  However, as the warning in the GNU ld
16449	# block says, versions before 2.19.5* couldn't really create working
16450	# shared libraries, regardless of the interface used.
16451	case `$LD -v 2>&1` in
16452	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16453	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16454	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16455	  *)
16456	    lt_use_gnu_ld_interface=yes
16457	    ;;
16458	esac
16459	;;
16460      *)
16461	lt_use_gnu_ld_interface=yes
16462	;;
16463    esac
16464  fi
16465
16466  if test yes = "$lt_use_gnu_ld_interface"; then
16467    # If archive_cmds runs LD, not CC, wlarc should be empty
16468    wlarc='$wl'
16469
16470    # Set some defaults for GNU ld with shared library support. These
16471    # are reset later if shared libraries are not supported. Putting them
16472    # here allows them to be overridden if necessary.
16473    runpath_var=LD_RUN_PATH
16474    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16475    export_dynamic_flag_spec='$wl--export-dynamic'
16476    # ancient GNU ld didn't support --whole-archive et. al.
16477    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16478      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16479    else
16480      whole_archive_flag_spec=
16481    fi
16482    supports_anon_versioning=no
16483    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16484      *GNU\ gold*) supports_anon_versioning=yes ;;
16485      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16486      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16487      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16488      *\ 2.11.*) ;; # other 2.11 versions
16489      *) supports_anon_versioning=yes ;;
16490    esac
16491
16492    # See if GNU ld supports shared libraries.
16493    case $host_os in
16494    aix[3-9]*)
16495      # On AIX/PPC, the GNU linker is very broken
16496      if test ia64 != "$host_cpu"; then
16497	ld_shlibs=no
16498	cat <<_LT_EOF 1>&2
16499
16500*** Warning: the GNU linker, at least up to release 2.19, is reported
16501*** to be unable to reliably create shared libraries on AIX.
16502*** Therefore, libtool is disabling shared libraries support.  If you
16503*** really care for shared libraries, you may want to install binutils
16504*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16505*** You will then need to restart the configuration process.
16506
16507_LT_EOF
16508      fi
16509      ;;
16510
16511    amigaos*)
16512      case $host_cpu in
16513      powerpc)
16514            # see comment about AmigaOS4 .so support
16515            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16516            archive_expsym_cmds=''
16517        ;;
16518      m68k)
16519            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)'
16520            hardcode_libdir_flag_spec='-L$libdir'
16521            hardcode_minus_L=yes
16522        ;;
16523      esac
16524      ;;
16525
16526    beos*)
16527      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16528	allow_undefined_flag=unsupported
16529	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16530	# support --undefined.  This deserves some investigation.  FIXME
16531	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16532      else
16533	ld_shlibs=no
16534      fi
16535      ;;
16536
16537    cygwin* | mingw* | pw32* | cegcc*)
16538      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16539      # as there is no search path for DLLs.
16540      hardcode_libdir_flag_spec='-L$libdir'
16541      export_dynamic_flag_spec='$wl--export-all-symbols'
16542      allow_undefined_flag=unsupported
16543      always_export_symbols=no
16544      enable_shared_with_static_runtimes=yes
16545      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'
16546      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16547
16548      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16549        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16550	# If the export-symbols file already is a .def file, use it as
16551	# is; otherwise, prepend EXPORTS...
16552	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16553          cp $export_symbols $output_objdir/$soname.def;
16554        else
16555          echo EXPORTS > $output_objdir/$soname.def;
16556          cat $export_symbols >> $output_objdir/$soname.def;
16557        fi~
16558        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16559      else
16560	ld_shlibs=no
16561      fi
16562      ;;
16563
16564    haiku*)
16565      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16566      link_all_deplibs=yes
16567      ;;
16568
16569    os2*)
16570      hardcode_libdir_flag_spec='-L$libdir'
16571      hardcode_minus_L=yes
16572      allow_undefined_flag=unsupported
16573      shrext_cmds=.dll
16574      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16575	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16576	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16577	$ECHO EXPORTS >> $output_objdir/$libname.def~
16578	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16579	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16580	emximp -o $lib $output_objdir/$libname.def'
16581      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16582	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16583	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16584	$ECHO EXPORTS >> $output_objdir/$libname.def~
16585	prefix_cmds="$SED"~
16586	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16587	  prefix_cmds="$prefix_cmds -e 1d";
16588	fi~
16589	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16590	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16591	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16592	emximp -o $lib $output_objdir/$libname.def'
16593      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16594      enable_shared_with_static_runtimes=yes
16595      file_list_spec='@'
16596      ;;
16597
16598    interix[3-9]*)
16599      hardcode_direct=no
16600      hardcode_shlibpath_var=no
16601      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16602      export_dynamic_flag_spec='$wl-E'
16603      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16604      # Instead, shared libraries are loaded at an image base (0x10000000 by
16605      # default) and relocated if they conflict, which is a slow very memory
16606      # consuming and fragmenting process.  To avoid this, we pick a random,
16607      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16608      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16609      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16610      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'
16611      ;;
16612
16613    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16614      tmp_diet=no
16615      if test linux-dietlibc = "$host_os"; then
16616	case $cc_basename in
16617	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16618	esac
16619      fi
16620      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16621	 && test no = "$tmp_diet"
16622      then
16623	tmp_addflag=' $pic_flag'
16624	tmp_sharedflag='-shared'
16625	case $cc_basename,$host_cpu in
16626        pgcc*)				# Portland Group C compiler
16627	  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'
16628	  tmp_addflag=' $pic_flag'
16629	  ;;
16630	pgf77* | pgf90* | pgf95* | pgfortran*)
16631					# Portland Group f77 and f90 compilers
16632	  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'
16633	  tmp_addflag=' $pic_flag -Mnomain' ;;
16634	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16635	  tmp_addflag=' -i_dynamic' ;;
16636	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16637	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16638	ifc* | ifort*)			# Intel Fortran compiler
16639	  tmp_addflag=' -nofor_main' ;;
16640	lf95*)				# Lahey Fortran 8.1
16641	  whole_archive_flag_spec=
16642	  tmp_sharedflag='--shared' ;;
16643        nagfor*)                        # NAGFOR 5.3
16644          tmp_sharedflag='-Wl,-shared' ;;
16645	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16646	  tmp_sharedflag='-qmkshrobj'
16647	  tmp_addflag= ;;
16648	nvcc*)	# Cuda Compiler Driver 2.2
16649	  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'
16650	  compiler_needs_object=yes
16651	  ;;
16652	esac
16653	case `$CC -V 2>&1 | $SED 5q` in
16654	*Sun\ C*)			# Sun C 5.9
16655	  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'
16656	  compiler_needs_object=yes
16657	  tmp_sharedflag='-G' ;;
16658	*Sun\ F*)			# Sun Fortran 8.3
16659	  tmp_sharedflag='-G' ;;
16660	esac
16661	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16662
16663        if test yes = "$supports_anon_versioning"; then
16664          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16665            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16666            echo "local: *; };" >> $output_objdir/$libname.ver~
16667            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16668        fi
16669
16670	case $cc_basename in
16671	tcc*)
16672	  export_dynamic_flag_spec='-rdynamic'
16673	  ;;
16674	xlf* | bgf* | bgxlf* | mpixlf*)
16675	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16676	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16677	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16678	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16679	  if test yes = "$supports_anon_versioning"; then
16680	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16681              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16682              echo "local: *; };" >> $output_objdir/$libname.ver~
16683              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16684	  fi
16685	  ;;
16686	esac
16687      else
16688        ld_shlibs=no
16689      fi
16690      ;;
16691
16692    netbsd*)
16693      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16694	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16695	wlarc=
16696      else
16697	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16698	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16699      fi
16700      ;;
16701
16702    solaris*)
16703      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16704	ld_shlibs=no
16705	cat <<_LT_EOF 1>&2
16706
16707*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16708*** create shared libraries on Solaris systems.  Therefore, libtool
16709*** is disabling shared libraries support.  We urge you to upgrade GNU
16710*** binutils to release 2.9.1 or newer.  Another option is to modify
16711*** your PATH or compiler configuration so that the native linker is
16712*** used, and then restart.
16713
16714_LT_EOF
16715      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16716	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16717	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16718      else
16719	ld_shlibs=no
16720      fi
16721      ;;
16722
16723    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16724      case `$LD -v 2>&1` in
16725        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16726	ld_shlibs=no
16727	cat <<_LT_EOF 1>&2
16728
16729*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16730*** reliably create shared libraries on SCO systems.  Therefore, libtool
16731*** is disabling shared libraries support.  We urge you to upgrade GNU
16732*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16733*** your PATH or compiler configuration so that the native linker is
16734*** used, and then restart.
16735
16736_LT_EOF
16737	;;
16738	*)
16739	  # For security reasons, it is highly recommended that you always
16740	  # use absolute paths for naming shared libraries, and exclude the
16741	  # DT_RUNPATH tag from executables and libraries.  But doing so
16742	  # requires that you compile everything twice, which is a pain.
16743	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16744	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16745	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16746	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16747	  else
16748	    ld_shlibs=no
16749	  fi
16750	;;
16751      esac
16752      ;;
16753
16754    sunos4*)
16755      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16756      wlarc=
16757      hardcode_direct=yes
16758      hardcode_shlibpath_var=no
16759      ;;
16760
16761    *)
16762      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16763	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16764	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16765      else
16766	ld_shlibs=no
16767      fi
16768      ;;
16769    esac
16770
16771    if test no = "$ld_shlibs"; then
16772      runpath_var=
16773      hardcode_libdir_flag_spec=
16774      export_dynamic_flag_spec=
16775      whole_archive_flag_spec=
16776    fi
16777  else
16778    # PORTME fill in a description of your system's linker (not GNU ld)
16779    case $host_os in
16780    aix3*)
16781      allow_undefined_flag=unsupported
16782      always_export_symbols=yes
16783      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'
16784      # Note: this linker hardcodes the directories in LIBPATH if there
16785      # are no directories specified by -L.
16786      hardcode_minus_L=yes
16787      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16788	# Neither direct hardcoding nor static linking is supported with a
16789	# broken collect2.
16790	hardcode_direct=unsupported
16791      fi
16792      ;;
16793
16794    aix[4-9]*)
16795      if test ia64 = "$host_cpu"; then
16796	# On IA64, the linker does run time linking by default, so we don't
16797	# have to do anything special.
16798	aix_use_runtimelinking=no
16799	exp_sym_flag='-Bexport'
16800	no_entry_flag=
16801      else
16802	# If we're using GNU nm, then we don't want the "-C" option.
16803	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16804	# Without the "-l" option, or with the "-B" option, AIX nm treats
16805	# weak defined symbols like other global defined symbols, whereas
16806	# GNU nm marks them as "W".
16807	# While the 'weak' keyword is ignored in the Export File, we need
16808	# it in the Import File for the 'aix-soname' feature, so we have
16809	# to replace the "-B" option with "-P" for AIX nm.
16810	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16811	  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'
16812	else
16813	  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'
16814	fi
16815	aix_use_runtimelinking=no
16816
16817	# Test if we are trying to use run time linking or normal
16818	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16819	# have runtime linking enabled, and use it for executables.
16820	# For shared libraries, we enable/disable runtime linking
16821	# depending on the kind of the shared library created -
16822	# when "with_aix_soname,aix_use_runtimelinking" is:
16823	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16824	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16825	#            lib.a           static archive
16826	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16827	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16828	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16829	#            lib.a(lib.so.V) shared, rtl:no
16830	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16831	#            lib.a           static archive
16832	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16833	  for ld_flag in $LDFLAGS; do
16834	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16835	    aix_use_runtimelinking=yes
16836	    break
16837	  fi
16838	  done
16839	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16840	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16841	    # so we don't have lib.a shared libs to link our executables.
16842	    # We have to force runtime linking in this case.
16843	    aix_use_runtimelinking=yes
16844	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16845	  fi
16846	  ;;
16847	esac
16848
16849	exp_sym_flag='-bexport'
16850	no_entry_flag='-bnoentry'
16851      fi
16852
16853      # When large executables or shared objects are built, AIX ld can
16854      # have problems creating the table of contents.  If linking a library
16855      # or program results in "error TOC overflow" add -mminimal-toc to
16856      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16857      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16858
16859      archive_cmds=''
16860      hardcode_direct=yes
16861      hardcode_direct_absolute=yes
16862      hardcode_libdir_separator=':'
16863      link_all_deplibs=yes
16864      file_list_spec='$wl-f,'
16865      case $with_aix_soname,$aix_use_runtimelinking in
16866      aix,*) ;; # traditional, no import file
16867      svr4,* | *,yes) # use import file
16868	# The Import File defines what to hardcode.
16869	hardcode_direct=no
16870	hardcode_direct_absolute=no
16871	;;
16872      esac
16873
16874      if test yes = "$GCC"; then
16875	case $host_os in aix4.[012]|aix4.[012].*)
16876	# We only want to do this on AIX 4.2 and lower, the check
16877	# below for broken collect2 doesn't work under 4.3+
16878	  collect2name=`$CC -print-prog-name=collect2`
16879	  if test -f "$collect2name" &&
16880	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16881	  then
16882	  # We have reworked collect2
16883	  :
16884	  else
16885	  # We have old collect2
16886	  hardcode_direct=unsupported
16887	  # It fails to find uninstalled libraries when the uninstalled
16888	  # path is not listed in the libpath.  Setting hardcode_minus_L
16889	  # to unsupported forces relinking
16890	  hardcode_minus_L=yes
16891	  hardcode_libdir_flag_spec='-L$libdir'
16892	  hardcode_libdir_separator=
16893	  fi
16894	  ;;
16895	esac
16896	shared_flag='-shared'
16897	if test yes = "$aix_use_runtimelinking"; then
16898	  shared_flag="$shared_flag "'$wl-G'
16899	fi
16900	# Need to ensure runtime linking is disabled for the traditional
16901	# shared library, or the linker may eventually find shared libraries
16902	# /with/ Import File - we do not want to mix them.
16903	shared_flag_aix='-shared'
16904	shared_flag_svr4='-shared $wl-G'
16905      else
16906	# not using gcc
16907	if test ia64 = "$host_cpu"; then
16908	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16909	# chokes on -Wl,-G. The following line is correct:
16910	  shared_flag='-G'
16911	else
16912	  if test yes = "$aix_use_runtimelinking"; then
16913	    shared_flag='$wl-G'
16914	  else
16915	    shared_flag='$wl-bM:SRE'
16916	  fi
16917	  shared_flag_aix='$wl-bM:SRE'
16918	  shared_flag_svr4='$wl-G'
16919	fi
16920      fi
16921
16922      export_dynamic_flag_spec='$wl-bexpall'
16923      # It seems that -bexpall does not export symbols beginning with
16924      # underscore (_), so it is better to generate a list of symbols to export.
16925      always_export_symbols=yes
16926      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16927	# Warning - without using the other runtime loading flags (-brtl),
16928	# -berok will link without error, but may produce a broken library.
16929	allow_undefined_flag='-berok'
16930        # Determine the default libpath from the value encoded in an
16931        # empty executable.
16932        if test set = "${lt_cv_aix_libpath+set}"; then
16933  aix_libpath=$lt_cv_aix_libpath
16934else
16935  if test ${lt_cv_aix_libpath_+y}
16936then :
16937  printf %s "(cached) " >&6
16938else $as_nop
16939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940/* end confdefs.h.  */
16941
16942int
16943main (void)
16944{
16945
16946  ;
16947  return 0;
16948}
16949_ACEOF
16950if ac_fn_c_try_link "$LINENO"
16951then :
16952
16953  lt_aix_libpath_sed='
16954      /Import File Strings/,/^$/ {
16955	  /^0/ {
16956	      s/^0  *\([^ ]*\) *$/\1/
16957	      p
16958	  }
16959      }'
16960  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16961  # Check for a 64-bit object if we didn't find anything.
16962  if test -z "$lt_cv_aix_libpath_"; then
16963    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16964  fi
16965fi
16966rm -f core conftest.err conftest.$ac_objext conftest.beam \
16967    conftest$ac_exeext conftest.$ac_ext
16968  if test -z "$lt_cv_aix_libpath_"; then
16969    lt_cv_aix_libpath_=/usr/lib:/lib
16970  fi
16971
16972fi
16973
16974  aix_libpath=$lt_cv_aix_libpath_
16975fi
16976
16977        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16978        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
16979      else
16980	if test ia64 = "$host_cpu"; then
16981	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16982	  allow_undefined_flag="-z nodefs"
16983	  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"
16984	else
16985	 # Determine the default libpath from the value encoded in an
16986	 # empty executable.
16987	 if test set = "${lt_cv_aix_libpath+set}"; then
16988  aix_libpath=$lt_cv_aix_libpath
16989else
16990  if test ${lt_cv_aix_libpath_+y}
16991then :
16992  printf %s "(cached) " >&6
16993else $as_nop
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996
16997int
16998main (void)
16999{
17000
17001  ;
17002  return 0;
17003}
17004_ACEOF
17005if ac_fn_c_try_link "$LINENO"
17006then :
17007
17008  lt_aix_libpath_sed='
17009      /Import File Strings/,/^$/ {
17010	  /^0/ {
17011	      s/^0  *\([^ ]*\) *$/\1/
17012	      p
17013	  }
17014      }'
17015  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17016  # Check for a 64-bit object if we didn't find anything.
17017  if test -z "$lt_cv_aix_libpath_"; then
17018    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17019  fi
17020fi
17021rm -f core conftest.err conftest.$ac_objext conftest.beam \
17022    conftest$ac_exeext conftest.$ac_ext
17023  if test -z "$lt_cv_aix_libpath_"; then
17024    lt_cv_aix_libpath_=/usr/lib:/lib
17025  fi
17026
17027fi
17028
17029  aix_libpath=$lt_cv_aix_libpath_
17030fi
17031
17032	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17033	  # Warning - without using the other run time loading flags,
17034	  # -berok will link without error, but may produce a broken library.
17035	  no_undefined_flag=' $wl-bernotok'
17036	  allow_undefined_flag=' $wl-berok'
17037	  if test yes = "$with_gnu_ld"; then
17038	    # We only use this code for GNU lds that support --whole-archive.
17039	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17040	  else
17041	    # Exported symbols can be pulled into shared objects from archives
17042	    whole_archive_flag_spec='$convenience'
17043	  fi
17044	  archive_cmds_need_lc=yes
17045	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17046	  # -brtl affects multiple linker settings, -berok does not and is overridden later
17047	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17048	  if test svr4 != "$with_aix_soname"; then
17049	    # This is similar to how AIX traditionally builds its shared libraries.
17050	    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'
17051	  fi
17052	  if test aix != "$with_aix_soname"; then
17053	    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'
17054	  else
17055	    # used by -dlpreopen to get the symbols
17056	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17057	  fi
17058	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17059	fi
17060      fi
17061      ;;
17062
17063    amigaos*)
17064      case $host_cpu in
17065      powerpc)
17066            # see comment about AmigaOS4 .so support
17067            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17068            archive_expsym_cmds=''
17069        ;;
17070      m68k)
17071            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)'
17072            hardcode_libdir_flag_spec='-L$libdir'
17073            hardcode_minus_L=yes
17074        ;;
17075      esac
17076      ;;
17077
17078    bsdi[45]*)
17079      export_dynamic_flag_spec=-rdynamic
17080      ;;
17081
17082    cygwin* | mingw* | pw32* | cegcc*)
17083      # When not using gcc, we currently assume that we are using
17084      # Microsoft Visual C++ or Intel C++ Compiler.
17085      # hardcode_libdir_flag_spec is actually meaningless, as there is
17086      # no search path for DLLs.
17087      case $cc_basename in
17088      cl* | icl*)
17089	# Native MSVC or ICC
17090	hardcode_libdir_flag_spec=' '
17091	allow_undefined_flag=unsupported
17092	always_export_symbols=yes
17093	file_list_spec='@'
17094	# Tell ltmain to make .lib files, not .a files.
17095	libext=lib
17096	# Tell ltmain to make .dll files, not .so files.
17097	shrext_cmds=.dll
17098	# FIXME: Setting linknames here is a bad hack.
17099	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17100	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17101            cp "$export_symbols" "$output_objdir/$soname.def";
17102            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17103          else
17104            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17105          fi~
17106          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17107          linknames='
17108	# The linker will not automatically build a static lib if we build a DLL.
17109	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17110	enable_shared_with_static_runtimes=yes
17111	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17112	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17113	# Don't use ranlib
17114	old_postinstall_cmds='chmod 644 $oldlib'
17115	postlink_cmds='lt_outputfile="@OUTPUT@"~
17116          lt_tool_outputfile="@TOOL_OUTPUT@"~
17117          case $lt_outputfile in
17118            *.exe|*.EXE) ;;
17119            *)
17120              lt_outputfile=$lt_outputfile.exe
17121              lt_tool_outputfile=$lt_tool_outputfile.exe
17122              ;;
17123          esac~
17124          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17125            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17126            $RM "$lt_outputfile.manifest";
17127          fi'
17128	;;
17129      *)
17130	# Assume MSVC and ICC wrapper
17131	hardcode_libdir_flag_spec=' '
17132	allow_undefined_flag=unsupported
17133	# Tell ltmain to make .lib files, not .a files.
17134	libext=lib
17135	# Tell ltmain to make .dll files, not .so files.
17136	shrext_cmds=.dll
17137	# FIXME: Setting linknames here is a bad hack.
17138	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17139	# The linker will automatically build a .lib file if we build a DLL.
17140	old_archive_from_new_cmds='true'
17141	# FIXME: Should let the user specify the lib program.
17142	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17143	enable_shared_with_static_runtimes=yes
17144	;;
17145      esac
17146      ;;
17147
17148    darwin* | rhapsody*)
17149
17150
17151  archive_cmds_need_lc=no
17152  hardcode_direct=no
17153  hardcode_automatic=yes
17154  hardcode_shlibpath_var=unsupported
17155  if test yes = "$lt_cv_ld_force_load"; then
17156    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\"`'
17157
17158  else
17159    whole_archive_flag_spec=''
17160  fi
17161  link_all_deplibs=yes
17162  allow_undefined_flag=$_lt_dar_allow_undefined
17163  case $cc_basename in
17164     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17165     *) _lt_dar_can_shared=$GCC ;;
17166  esac
17167  if test yes = "$_lt_dar_can_shared"; then
17168    output_verbose_link_cmd=func_echo_all
17169    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17170    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17171    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"
17172    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"
17173
17174  else
17175  ld_shlibs=no
17176  fi
17177
17178      ;;
17179
17180    dgux*)
17181      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17182      hardcode_libdir_flag_spec='-L$libdir'
17183      hardcode_shlibpath_var=no
17184      ;;
17185
17186    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17187    # support.  Future versions do this automatically, but an explicit c++rt0.o
17188    # does not break anything, and helps significantly (at the cost of a little
17189    # extra space).
17190    freebsd2.2*)
17191      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17192      hardcode_libdir_flag_spec='-R$libdir'
17193      hardcode_direct=yes
17194      hardcode_shlibpath_var=no
17195      ;;
17196
17197    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17198    freebsd2.*)
17199      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17200      hardcode_direct=yes
17201      hardcode_minus_L=yes
17202      hardcode_shlibpath_var=no
17203      ;;
17204
17205    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17206    freebsd* | dragonfly* | midnightbsd*)
17207      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17208      hardcode_libdir_flag_spec='-R$libdir'
17209      hardcode_direct=yes
17210      hardcode_shlibpath_var=no
17211      ;;
17212
17213    hpux9*)
17214      if test yes = "$GCC"; then
17215	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'
17216      else
17217	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'
17218      fi
17219      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17220      hardcode_libdir_separator=:
17221      hardcode_direct=yes
17222
17223      # hardcode_minus_L: Not really in the search PATH,
17224      # but as the default location of the library.
17225      hardcode_minus_L=yes
17226      export_dynamic_flag_spec='$wl-E'
17227      ;;
17228
17229    hpux10*)
17230      if test yes,no = "$GCC,$with_gnu_ld"; then
17231	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17232      else
17233	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17234      fi
17235      if test no = "$with_gnu_ld"; then
17236	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17237	hardcode_libdir_separator=:
17238	hardcode_direct=yes
17239	hardcode_direct_absolute=yes
17240	export_dynamic_flag_spec='$wl-E'
17241	# hardcode_minus_L: Not really in the search PATH,
17242	# but as the default location of the library.
17243	hardcode_minus_L=yes
17244      fi
17245      ;;
17246
17247    hpux11*)
17248      if test yes,no = "$GCC,$with_gnu_ld"; then
17249	case $host_cpu in
17250	hppa*64*)
17251	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17252	  ;;
17253	ia64*)
17254	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17255	  ;;
17256	*)
17257	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17258	  ;;
17259	esac
17260      else
17261	case $host_cpu in
17262	hppa*64*)
17263	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17264	  ;;
17265	ia64*)
17266	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17267	  ;;
17268	*)
17269
17270	  # Older versions of the 11.00 compiler do not understand -b yet
17271	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17272	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17273printf %s "checking if $CC understands -b... " >&6; }
17274if test ${lt_cv_prog_compiler__b+y}
17275then :
17276  printf %s "(cached) " >&6
17277else $as_nop
17278  lt_cv_prog_compiler__b=no
17279   save_LDFLAGS=$LDFLAGS
17280   LDFLAGS="$LDFLAGS -b"
17281   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17282   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17283     # The linker can only warn and ignore the option if not recognized
17284     # So say no if there are warnings
17285     if test -s conftest.err; then
17286       # Append any errors to the config.log.
17287       cat conftest.err 1>&5
17288       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17289       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17290       if diff conftest.exp conftest.er2 >/dev/null; then
17291         lt_cv_prog_compiler__b=yes
17292       fi
17293     else
17294       lt_cv_prog_compiler__b=yes
17295     fi
17296   fi
17297   $RM -r conftest*
17298   LDFLAGS=$save_LDFLAGS
17299
17300fi
17301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17302printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17303
17304if test yes = "$lt_cv_prog_compiler__b"; then
17305    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17306else
17307    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17308fi
17309
17310	  ;;
17311	esac
17312      fi
17313      if test no = "$with_gnu_ld"; then
17314	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17315	hardcode_libdir_separator=:
17316
17317	case $host_cpu in
17318	hppa*64*|ia64*)
17319	  hardcode_direct=no
17320	  hardcode_shlibpath_var=no
17321	  ;;
17322	*)
17323	  hardcode_direct=yes
17324	  hardcode_direct_absolute=yes
17325	  export_dynamic_flag_spec='$wl-E'
17326
17327	  # hardcode_minus_L: Not really in the search PATH,
17328	  # but as the default location of the library.
17329	  hardcode_minus_L=yes
17330	  ;;
17331	esac
17332      fi
17333      ;;
17334
17335    irix5* | irix6* | nonstopux*)
17336      if test yes = "$GCC"; then
17337	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'
17338	# Try to use the -exported_symbol ld option, if it does not
17339	# work, assume that -exports_file does not work either and
17340	# implicitly export all symbols.
17341	# This should be the same for all languages, so no per-tag cache variable.
17342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17343printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17344if test ${lt_cv_irix_exported_symbol+y}
17345then :
17346  printf %s "(cached) " >&6
17347else $as_nop
17348  save_LDFLAGS=$LDFLAGS
17349	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17350	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17351/* end confdefs.h.  */
17352int foo (void) { return 0; }
17353_ACEOF
17354if ac_fn_c_try_link "$LINENO"
17355then :
17356  lt_cv_irix_exported_symbol=yes
17357else $as_nop
17358  lt_cv_irix_exported_symbol=no
17359fi
17360rm -f core conftest.err conftest.$ac_objext conftest.beam \
17361    conftest$ac_exeext conftest.$ac_ext
17362           LDFLAGS=$save_LDFLAGS
17363fi
17364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17365printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17366	if test yes = "$lt_cv_irix_exported_symbol"; then
17367          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'
17368	fi
17369      else
17370	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'
17371	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'
17372      fi
17373      archive_cmds_need_lc='no'
17374      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17375      hardcode_libdir_separator=:
17376      inherit_rpath=yes
17377      link_all_deplibs=yes
17378      ;;
17379
17380    linux*)
17381      case $cc_basename in
17382      tcc*)
17383	# Fabrice Bellard et al's Tiny C Compiler
17384	ld_shlibs=yes
17385	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17386	;;
17387      esac
17388      ;;
17389
17390    netbsd*)
17391      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17392	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17393      else
17394	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17395      fi
17396      hardcode_libdir_flag_spec='-R$libdir'
17397      hardcode_direct=yes
17398      hardcode_shlibpath_var=no
17399      ;;
17400
17401    newsos6)
17402      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403      hardcode_direct=yes
17404      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17405      hardcode_libdir_separator=:
17406      hardcode_shlibpath_var=no
17407      ;;
17408
17409    *nto* | *qnx*)
17410      ;;
17411
17412    openbsd* | bitrig*)
17413      if test -f /usr/libexec/ld.so; then
17414	hardcode_direct=yes
17415	hardcode_shlibpath_var=no
17416	hardcode_direct_absolute=yes
17417	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17418	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17419	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17420	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17421	  export_dynamic_flag_spec='$wl-E'
17422	else
17423	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17424	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17425	fi
17426      else
17427	ld_shlibs=no
17428      fi
17429      ;;
17430
17431    os2*)
17432      hardcode_libdir_flag_spec='-L$libdir'
17433      hardcode_minus_L=yes
17434      allow_undefined_flag=unsupported
17435      shrext_cmds=.dll
17436      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17437	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17438	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17439	$ECHO EXPORTS >> $output_objdir/$libname.def~
17440	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17441	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17442	emximp -o $lib $output_objdir/$libname.def'
17443      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17444	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17445	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17446	$ECHO EXPORTS >> $output_objdir/$libname.def~
17447	prefix_cmds="$SED"~
17448	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17449	  prefix_cmds="$prefix_cmds -e 1d";
17450	fi~
17451	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17452	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17453	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17454	emximp -o $lib $output_objdir/$libname.def'
17455      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17456      enable_shared_with_static_runtimes=yes
17457      file_list_spec='@'
17458      ;;
17459
17460    osf3*)
17461      if test yes = "$GCC"; then
17462	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17463	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'
17464      else
17465	allow_undefined_flag=' -expect_unresolved \*'
17466	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'
17467      fi
17468      archive_cmds_need_lc='no'
17469      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17470      hardcode_libdir_separator=:
17471      ;;
17472
17473    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17474      if test yes = "$GCC"; then
17475	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17476	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'
17477	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17478      else
17479	allow_undefined_flag=' -expect_unresolved \*'
17480	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'
17481	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~
17482          $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'
17483
17484	# Both c and cxx compiler support -rpath directly
17485	hardcode_libdir_flag_spec='-rpath $libdir'
17486      fi
17487      archive_cmds_need_lc='no'
17488      hardcode_libdir_separator=:
17489      ;;
17490
17491    solaris*)
17492      no_undefined_flag=' -z defs'
17493      if test yes = "$GCC"; then
17494	wlarc='$wl'
17495	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17496	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17497          $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'
17498      else
17499	case `$CC -V 2>&1` in
17500	*"Compilers 5.0"*)
17501	  wlarc=''
17502	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17503	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17504            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17505	  ;;
17506	*)
17507	  wlarc='$wl'
17508	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17509	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17510            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17511	  ;;
17512	esac
17513      fi
17514      hardcode_libdir_flag_spec='-R$libdir'
17515      hardcode_shlibpath_var=no
17516      case $host_os in
17517      solaris2.[0-5] | solaris2.[0-5].*) ;;
17518      *)
17519	# The compiler driver will combine and reorder linker options,
17520	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17521	# but is careful enough not to reorder.
17522	# Supported since Solaris 2.6 (maybe 2.5.1?)
17523	if test yes = "$GCC"; then
17524	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17525	else
17526	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17527	fi
17528	;;
17529      esac
17530      link_all_deplibs=yes
17531      ;;
17532
17533    sunos4*)
17534      if test sequent = "$host_vendor"; then
17535	# Use $CC to link under sequent, because it throws in some extra .o
17536	# files that make .init and .fini sections work.
17537	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17538      else
17539	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17540      fi
17541      hardcode_libdir_flag_spec='-L$libdir'
17542      hardcode_direct=yes
17543      hardcode_minus_L=yes
17544      hardcode_shlibpath_var=no
17545      ;;
17546
17547    sysv4)
17548      case $host_vendor in
17549	sni)
17550	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551	  hardcode_direct=yes # is this really true???
17552	;;
17553	siemens)
17554	  ## LD is ld it makes a PLAMLIB
17555	  ## CC just makes a GrossModule.
17556	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17557	  reload_cmds='$CC -r -o $output$reload_objs'
17558	  hardcode_direct=no
17559        ;;
17560	motorola)
17561	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17563	;;
17564      esac
17565      runpath_var='LD_RUN_PATH'
17566      hardcode_shlibpath_var=no
17567      ;;
17568
17569    sysv4.3*)
17570      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17571      hardcode_shlibpath_var=no
17572      export_dynamic_flag_spec='-Bexport'
17573      ;;
17574
17575    sysv4*MP*)
17576      if test -d /usr/nec; then
17577	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578	hardcode_shlibpath_var=no
17579	runpath_var=LD_RUN_PATH
17580	hardcode_runpath_var=yes
17581	ld_shlibs=yes
17582      fi
17583      ;;
17584
17585    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17586      no_undefined_flag='$wl-z,text'
17587      archive_cmds_need_lc=no
17588      hardcode_shlibpath_var=no
17589      runpath_var='LD_RUN_PATH'
17590
17591      if test yes = "$GCC"; then
17592	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17593	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17594      else
17595	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17596	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17597      fi
17598      ;;
17599
17600    sysv5* | sco3.2v5* | sco5v6*)
17601      # Note: We CANNOT use -z defs as we might desire, because we do not
17602      # link with -lc, and that would cause any symbols used from libc to
17603      # always be unresolved, which means just about no library would
17604      # ever link correctly.  If we're not using GNU ld we use -z text
17605      # though, which does catch some bad symbols but isn't as heavy-handed
17606      # as -z defs.
17607      no_undefined_flag='$wl-z,text'
17608      allow_undefined_flag='$wl-z,nodefs'
17609      archive_cmds_need_lc=no
17610      hardcode_shlibpath_var=no
17611      hardcode_libdir_flag_spec='$wl-R,$libdir'
17612      hardcode_libdir_separator=':'
17613      link_all_deplibs=yes
17614      export_dynamic_flag_spec='$wl-Bexport'
17615      runpath_var='LD_RUN_PATH'
17616
17617      if test yes = "$GCC"; then
17618	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17619	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17620      else
17621	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17622	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17623      fi
17624      ;;
17625
17626    uts4*)
17627      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17628      hardcode_libdir_flag_spec='-L$libdir'
17629      hardcode_shlibpath_var=no
17630      ;;
17631
17632    *)
17633      ld_shlibs=no
17634      ;;
17635    esac
17636
17637    if test sni = "$host_vendor"; then
17638      case $host in
17639      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17640	export_dynamic_flag_spec='$wl-Blargedynsym'
17641	;;
17642      esac
17643    fi
17644  fi
17645
17646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17647printf "%s\n" "$ld_shlibs" >&6; }
17648test no = "$ld_shlibs" && can_build_shared=no
17649
17650with_gnu_ld=$with_gnu_ld
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666#
17667# Do we need to explicitly link libc?
17668#
17669case "x$archive_cmds_need_lc" in
17670x|xyes)
17671  # Assume -lc should be added
17672  archive_cmds_need_lc=yes
17673
17674  if test yes,yes = "$GCC,$enable_shared"; then
17675    case $archive_cmds in
17676    *'~'*)
17677      # FIXME: we may have to deal with multi-command sequences.
17678      ;;
17679    '$CC '*)
17680      # Test whether the compiler implicitly links with -lc since on some
17681      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17682      # to ld, don't add -lc before -lgcc.
17683      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17684printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17685if test ${lt_cv_archive_cmds_need_lc+y}
17686then :
17687  printf %s "(cached) " >&6
17688else $as_nop
17689  $RM conftest*
17690	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17691
17692	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17693  (eval $ac_compile) 2>&5
17694  ac_status=$?
17695  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17696  test $ac_status = 0; } 2>conftest.err; then
17697	  soname=conftest
17698	  lib=conftest
17699	  libobjs=conftest.$ac_objext
17700	  deplibs=
17701	  wl=$lt_prog_compiler_wl
17702	  pic_flag=$lt_prog_compiler_pic
17703	  compiler_flags=-v
17704	  linker_flags=-v
17705	  verstring=
17706	  output_objdir=.
17707	  libname=conftest
17708	  lt_save_allow_undefined_flag=$allow_undefined_flag
17709	  allow_undefined_flag=
17710	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17711  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17712  ac_status=$?
17713  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17714  test $ac_status = 0; }
17715	  then
17716	    lt_cv_archive_cmds_need_lc=no
17717	  else
17718	    lt_cv_archive_cmds_need_lc=yes
17719	  fi
17720	  allow_undefined_flag=$lt_save_allow_undefined_flag
17721	else
17722	  cat conftest.err 1>&5
17723	fi
17724	$RM conftest*
17725
17726fi
17727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17728printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17729      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17730      ;;
17731    esac
17732  fi
17733  ;;
17734esac
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17888printf %s "checking dynamic linker characteristics... " >&6; }
17889
17890if test yes = "$GCC"; then
17891  case $host_os in
17892    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17893    *) lt_awk_arg='/^libraries:/' ;;
17894  esac
17895  case $host_os in
17896    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17897    *) lt_sed_strip_eq='s|=/|/|g' ;;
17898  esac
17899  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17900  case $lt_search_path_spec in
17901  *\;*)
17902    # if the path contains ";" then we assume it to be the separator
17903    # otherwise default to the standard path separator (i.e. ":") - it is
17904    # assumed that no part of a normal pathname contains ";" but that should
17905    # okay in the real world where ";" in dirpaths is itself problematic.
17906    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17907    ;;
17908  *)
17909    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17910    ;;
17911  esac
17912  # Ok, now we have the path, separated by spaces, we can step through it
17913  # and add multilib dir if necessary...
17914  lt_tmp_lt_search_path_spec=
17915  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17916  # ...but if some path component already ends with the multilib dir we assume
17917  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17918  case "$lt_multi_os_dir; $lt_search_path_spec " in
17919  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17920    lt_multi_os_dir=
17921    ;;
17922  esac
17923  for lt_sys_path in $lt_search_path_spec; do
17924    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17925      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17926    elif test -n "$lt_multi_os_dir"; then
17927      test -d "$lt_sys_path" && \
17928	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17929    fi
17930  done
17931  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17932BEGIN {RS = " "; FS = "/|\n";} {
17933  lt_foo = "";
17934  lt_count = 0;
17935  for (lt_i = NF; lt_i > 0; lt_i--) {
17936    if ($lt_i != "" && $lt_i != ".") {
17937      if ($lt_i == "..") {
17938        lt_count++;
17939      } else {
17940        if (lt_count == 0) {
17941          lt_foo = "/" $lt_i lt_foo;
17942        } else {
17943          lt_count--;
17944        }
17945      }
17946    }
17947  }
17948  if (lt_foo != "") { lt_freq[lt_foo]++; }
17949  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17950}'`
17951  # AWK program above erroneously prepends '/' to C:/dos/paths
17952  # for these hosts.
17953  case $host_os in
17954    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17955      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17956  esac
17957  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17958else
17959  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17960fi
17961library_names_spec=
17962libname_spec='lib$name'
17963soname_spec=
17964shrext_cmds=.so
17965postinstall_cmds=
17966postuninstall_cmds=
17967finish_cmds=
17968finish_eval=
17969shlibpath_var=
17970shlibpath_overrides_runpath=unknown
17971version_type=none
17972dynamic_linker="$host_os ld.so"
17973sys_lib_dlsearch_path_spec="/lib /usr/lib"
17974need_lib_prefix=unknown
17975hardcode_into_libs=no
17976
17977# when you set need_version to no, make sure it does not cause -set_version
17978# flags to be left without arguments
17979need_version=unknown
17980
17981
17982
17983case $host_os in
17984aix3*)
17985  version_type=linux # correct to gnu/linux during the next big refactor
17986  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17987  shlibpath_var=LIBPATH
17988
17989  # AIX 3 has no versioning support, so we append a major version to the name.
17990  soname_spec='$libname$release$shared_ext$major'
17991  ;;
17992
17993aix[4-9]*)
17994  version_type=linux # correct to gnu/linux during the next big refactor
17995  need_lib_prefix=no
17996  need_version=no
17997  hardcode_into_libs=yes
17998  if test ia64 = "$host_cpu"; then
17999    # AIX 5 supports IA64
18000    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18001    shlibpath_var=LD_LIBRARY_PATH
18002  else
18003    # With GCC up to 2.95.x, collect2 would create an import file
18004    # for dependence libraries.  The import file would start with
18005    # the line '#! .'.  This would cause the generated library to
18006    # depend on '.', always an invalid library.  This was fixed in
18007    # development snapshots of GCC prior to 3.0.
18008    case $host_os in
18009      aix4 | aix4.[01] | aix4.[01].*)
18010      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18011	   echo ' yes '
18012	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18013	:
18014      else
18015	can_build_shared=no
18016      fi
18017      ;;
18018    esac
18019    # Using Import Files as archive members, it is possible to support
18020    # filename-based versioning of shared library archives on AIX. While
18021    # this would work for both with and without runtime linking, it will
18022    # prevent static linking of such archives. So we do filename-based
18023    # shared library versioning with .so extension only, which is used
18024    # when both runtime linking and shared linking is enabled.
18025    # Unfortunately, runtime linking may impact performance, so we do
18026    # not want this to be the default eventually. Also, we use the
18027    # versioned .so libs for executables only if there is the -brtl
18028    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18029    # To allow for filename-based versioning support, we need to create
18030    # libNAME.so.V as an archive file, containing:
18031    # *) an Import File, referring to the versioned filename of the
18032    #    archive as well as the shared archive member, telling the
18033    #    bitwidth (32 or 64) of that shared object, and providing the
18034    #    list of exported symbols of that shared object, eventually
18035    #    decorated with the 'weak' keyword
18036    # *) the shared object with the F_LOADONLY flag set, to really avoid
18037    #    it being seen by the linker.
18038    # At run time we better use the real file rather than another symlink,
18039    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18040
18041    case $with_aix_soname,$aix_use_runtimelinking in
18042    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18043    # soname into executable. Probably we can add versioning support to
18044    # collect2, so additional links can be useful in future.
18045    aix,yes) # traditional libtool
18046      dynamic_linker='AIX unversionable lib.so'
18047      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18048      # instead of lib<name>.a to let people know that these are not
18049      # typical AIX shared libraries.
18050      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18051      ;;
18052    aix,no) # traditional AIX only
18053      dynamic_linker='AIX lib.a(lib.so.V)'
18054      # We preserve .a as extension for shared libraries through AIX4.2
18055      # and later when we are not doing run time linking.
18056      library_names_spec='$libname$release.a $libname.a'
18057      soname_spec='$libname$release$shared_ext$major'
18058      ;;
18059    svr4,*) # full svr4 only
18060      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18061      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18062      # We do not specify a path in Import Files, so LIBPATH fires.
18063      shlibpath_overrides_runpath=yes
18064      ;;
18065    *,yes) # both, prefer svr4
18066      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18067      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18068      # unpreferred sharedlib libNAME.a needs extra handling
18069      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"'
18070      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"'
18071      # We do not specify a path in Import Files, so LIBPATH fires.
18072      shlibpath_overrides_runpath=yes
18073      ;;
18074    *,no) # both, prefer aix
18075      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18076      library_names_spec='$libname$release.a $libname.a'
18077      soname_spec='$libname$release$shared_ext$major'
18078      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18079      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)'
18080      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"'
18081      ;;
18082    esac
18083    shlibpath_var=LIBPATH
18084  fi
18085  ;;
18086
18087amigaos*)
18088  case $host_cpu in
18089  powerpc)
18090    # Since July 2007 AmigaOS4 officially supports .so libraries.
18091    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18092    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18093    ;;
18094  m68k)
18095    library_names_spec='$libname.ixlibrary $libname.a'
18096    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18097    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'
18098    ;;
18099  esac
18100  ;;
18101
18102beos*)
18103  library_names_spec='$libname$shared_ext'
18104  dynamic_linker="$host_os ld.so"
18105  shlibpath_var=LIBRARY_PATH
18106  ;;
18107
18108bsdi[45]*)
18109  version_type=linux # correct to gnu/linux during the next big refactor
18110  need_version=no
18111  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18112  soname_spec='$libname$release$shared_ext$major'
18113  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18114  shlibpath_var=LD_LIBRARY_PATH
18115  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18116  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18117  # the default ld.so.conf also contains /usr/contrib/lib and
18118  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18119  # libtool to hard-code these into programs
18120  ;;
18121
18122cygwin* | mingw* | pw32* | cegcc*)
18123  version_type=windows
18124  shrext_cmds=.dll
18125  need_version=no
18126  need_lib_prefix=no
18127
18128  case $GCC,$cc_basename in
18129  yes,*)
18130    # gcc
18131    library_names_spec='$libname.dll.a'
18132    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18133    postinstall_cmds='base_file=`basename \$file`~
18134      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18135      dldir=$destdir/`dirname \$dlpath`~
18136      test -d \$dldir || mkdir -p \$dldir~
18137      $install_prog $dir/$dlname \$dldir/$dlname~
18138      chmod a+x \$dldir/$dlname~
18139      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18140        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18141      fi'
18142    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18143      dlpath=$dir/\$dldll~
18144       $RM \$dlpath'
18145    shlibpath_overrides_runpath=yes
18146
18147    case $host_os in
18148    cygwin*)
18149      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18150      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18151
18152      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18153      ;;
18154    mingw* | cegcc*)
18155      # MinGW DLLs use traditional 'lib' prefix
18156      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18157      ;;
18158    pw32*)
18159      # pw32 DLLs use 'pw' prefix rather than 'lib'
18160      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18161      ;;
18162    esac
18163    dynamic_linker='Win32 ld.exe'
18164    ;;
18165
18166  *,cl* | *,icl*)
18167    # Native MSVC or ICC
18168    libname_spec='$name'
18169    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18170    library_names_spec='$libname.dll.lib'
18171
18172    case $build_os in
18173    mingw*)
18174      sys_lib_search_path_spec=
18175      lt_save_ifs=$IFS
18176      IFS=';'
18177      for lt_path in $LIB
18178      do
18179        IFS=$lt_save_ifs
18180        # Let DOS variable expansion print the short 8.3 style file name.
18181        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18182        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18183      done
18184      IFS=$lt_save_ifs
18185      # Convert to MSYS style.
18186      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18187      ;;
18188    cygwin*)
18189      # Convert to unix form, then to dos form, then back to unix form
18190      # but this time dos style (no spaces!) so that the unix form looks
18191      # like /cygdrive/c/PROGRA~1:/cygdr...
18192      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18193      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18194      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18195      ;;
18196    *)
18197      sys_lib_search_path_spec=$LIB
18198      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18199        # It is most probably a Windows format PATH.
18200        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18201      else
18202        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18203      fi
18204      # FIXME: find the short name or the path components, as spaces are
18205      # common. (e.g. "Program Files" -> "PROGRA~1")
18206      ;;
18207    esac
18208
18209    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18210    postinstall_cmds='base_file=`basename \$file`~
18211      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18212      dldir=$destdir/`dirname \$dlpath`~
18213      test -d \$dldir || mkdir -p \$dldir~
18214      $install_prog $dir/$dlname \$dldir/$dlname'
18215    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18216      dlpath=$dir/\$dldll~
18217       $RM \$dlpath'
18218    shlibpath_overrides_runpath=yes
18219    dynamic_linker='Win32 link.exe'
18220    ;;
18221
18222  *)
18223    # Assume MSVC and ICC wrapper
18224    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18225    dynamic_linker='Win32 ld.exe'
18226    ;;
18227  esac
18228  # FIXME: first we should search . and the directory the executable is in
18229  shlibpath_var=PATH
18230  ;;
18231
18232darwin* | rhapsody*)
18233  dynamic_linker="$host_os dyld"
18234  version_type=darwin
18235  need_lib_prefix=no
18236  need_version=no
18237  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18238  soname_spec='$libname$release$major$shared_ext'
18239  shlibpath_overrides_runpath=yes
18240  shlibpath_var=DYLD_LIBRARY_PATH
18241  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18242
18243  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18244  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18245  ;;
18246
18247dgux*)
18248  version_type=linux # correct to gnu/linux during the next big refactor
18249  need_lib_prefix=no
18250  need_version=no
18251  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18252  soname_spec='$libname$release$shared_ext$major'
18253  shlibpath_var=LD_LIBRARY_PATH
18254  ;;
18255
18256freebsd* | dragonfly* | midnightbsd*)
18257  # DragonFly does not have aout.  When/if they implement a new
18258  # versioning mechanism, adjust this.
18259  if test -x /usr/bin/objformat; then
18260    objformat=`/usr/bin/objformat`
18261  else
18262    case $host_os in
18263    freebsd[23].*) objformat=aout ;;
18264    *) objformat=elf ;;
18265    esac
18266  fi
18267  version_type=freebsd-$objformat
18268  case $version_type in
18269    freebsd-elf*)
18270      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18271      soname_spec='$libname$release$shared_ext$major'
18272      need_version=no
18273      need_lib_prefix=no
18274      ;;
18275    freebsd-*)
18276      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18277      need_version=yes
18278      ;;
18279  esac
18280  shlibpath_var=LD_LIBRARY_PATH
18281  case $host_os in
18282  freebsd2.*)
18283    shlibpath_overrides_runpath=yes
18284    ;;
18285  freebsd3.[01]* | freebsdelf3.[01]*)
18286    shlibpath_overrides_runpath=yes
18287    hardcode_into_libs=yes
18288    ;;
18289  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18290  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18291    shlibpath_overrides_runpath=no
18292    hardcode_into_libs=yes
18293    ;;
18294  *) # from 4.6 on, and DragonFly
18295    shlibpath_overrides_runpath=yes
18296    hardcode_into_libs=yes
18297    ;;
18298  esac
18299  ;;
18300
18301haiku*)
18302  version_type=linux # correct to gnu/linux during the next big refactor
18303  need_lib_prefix=no
18304  need_version=no
18305  dynamic_linker="$host_os runtime_loader"
18306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18307  soname_spec='$libname$release$shared_ext$major'
18308  shlibpath_var=LIBRARY_PATH
18309  shlibpath_overrides_runpath=no
18310  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18311  hardcode_into_libs=yes
18312  ;;
18313
18314hpux9* | hpux10* | hpux11*)
18315  # Give a soname corresponding to the major version so that dld.sl refuses to
18316  # link against other versions.
18317  version_type=sunos
18318  need_lib_prefix=no
18319  need_version=no
18320  case $host_cpu in
18321  ia64*)
18322    shrext_cmds='.so'
18323    hardcode_into_libs=yes
18324    dynamic_linker="$host_os dld.so"
18325    shlibpath_var=LD_LIBRARY_PATH
18326    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18327    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18328    soname_spec='$libname$release$shared_ext$major'
18329    if test 32 = "$HPUX_IA64_MODE"; then
18330      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18331      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18332    else
18333      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18334      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18335    fi
18336    ;;
18337  hppa*64*)
18338    shrext_cmds='.sl'
18339    hardcode_into_libs=yes
18340    dynamic_linker="$host_os dld.sl"
18341    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18342    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18343    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18344    soname_spec='$libname$release$shared_ext$major'
18345    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18346    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18347    ;;
18348  *)
18349    shrext_cmds='.sl'
18350    dynamic_linker="$host_os dld.sl"
18351    shlibpath_var=SHLIB_PATH
18352    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18353    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18354    soname_spec='$libname$release$shared_ext$major'
18355    ;;
18356  esac
18357  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18358  postinstall_cmds='chmod 555 $lib'
18359  # or fails outright, so override atomically:
18360  install_override_mode=555
18361  ;;
18362
18363interix[3-9]*)
18364  version_type=linux # correct to gnu/linux during the next big refactor
18365  need_lib_prefix=no
18366  need_version=no
18367  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18368  soname_spec='$libname$release$shared_ext$major'
18369  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18370  shlibpath_var=LD_LIBRARY_PATH
18371  shlibpath_overrides_runpath=no
18372  hardcode_into_libs=yes
18373  ;;
18374
18375irix5* | irix6* | nonstopux*)
18376  case $host_os in
18377    nonstopux*) version_type=nonstopux ;;
18378    *)
18379	if test yes = "$lt_cv_prog_gnu_ld"; then
18380		version_type=linux # correct to gnu/linux during the next big refactor
18381	else
18382		version_type=irix
18383	fi ;;
18384  esac
18385  need_lib_prefix=no
18386  need_version=no
18387  soname_spec='$libname$release$shared_ext$major'
18388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18389  case $host_os in
18390  irix5* | nonstopux*)
18391    libsuff= shlibsuff=
18392    ;;
18393  *)
18394    case $LD in # libtool.m4 will add one of these switches to LD
18395    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18396      libsuff= shlibsuff= libmagic=32-bit;;
18397    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18398      libsuff=32 shlibsuff=N32 libmagic=N32;;
18399    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18400      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18401    *) libsuff= shlibsuff= libmagic=never-match;;
18402    esac
18403    ;;
18404  esac
18405  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18406  shlibpath_overrides_runpath=no
18407  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18408  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18409  hardcode_into_libs=yes
18410  ;;
18411
18412# No shared lib support for Linux oldld, aout, or coff.
18413linux*oldld* | linux*aout* | linux*coff*)
18414  dynamic_linker=no
18415  ;;
18416
18417linux*android*)
18418  version_type=none # Android doesn't support versioned libraries.
18419  need_lib_prefix=no
18420  need_version=no
18421  library_names_spec='$libname$release$shared_ext'
18422  soname_spec='$libname$release$shared_ext'
18423  finish_cmds=
18424  shlibpath_var=LD_LIBRARY_PATH
18425  shlibpath_overrides_runpath=yes
18426
18427  # This implies no fast_install, which is unacceptable.
18428  # Some rework will be needed to allow for fast_install
18429  # before this can be enabled.
18430  hardcode_into_libs=yes
18431
18432  dynamic_linker='Android linker'
18433  # Don't embed -rpath directories since the linker doesn't support them.
18434  hardcode_libdir_flag_spec='-L$libdir'
18435  ;;
18436
18437# This must be glibc/ELF.
18438linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18439  version_type=linux # correct to gnu/linux during the next big refactor
18440  need_lib_prefix=no
18441  need_version=no
18442  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18443  soname_spec='$libname$release$shared_ext$major'
18444  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18445  shlibpath_var=LD_LIBRARY_PATH
18446  shlibpath_overrides_runpath=no
18447
18448  # Some binutils ld are patched to set DT_RUNPATH
18449  if test ${lt_cv_shlibpath_overrides_runpath+y}
18450then :
18451  printf %s "(cached) " >&6
18452else $as_nop
18453  lt_cv_shlibpath_overrides_runpath=no
18454    save_LDFLAGS=$LDFLAGS
18455    save_libdir=$libdir
18456    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18457	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18458    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18459/* end confdefs.h.  */
18460
18461int
18462main (void)
18463{
18464
18465  ;
18466  return 0;
18467}
18468_ACEOF
18469if ac_fn_c_try_link "$LINENO"
18470then :
18471  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18472then :
18473  lt_cv_shlibpath_overrides_runpath=yes
18474fi
18475fi
18476rm -f core conftest.err conftest.$ac_objext conftest.beam \
18477    conftest$ac_exeext conftest.$ac_ext
18478    LDFLAGS=$save_LDFLAGS
18479    libdir=$save_libdir
18480
18481fi
18482
18483  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18484
18485  # This implies no fast_install, which is unacceptable.
18486  # Some rework will be needed to allow for fast_install
18487  # before this can be enabled.
18488  hardcode_into_libs=yes
18489
18490  # Add ABI-specific directories to the system library path.
18491  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18492
18493  # Ideally, we could use ldconfig to report *all* directores which are
18494  # searched for libraries, however this is still not possible.  Aside from not
18495  # being certain /sbin/ldconfig is available, command
18496  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18497  # even though it is searched at run-time.  Try to do the best guess by
18498  # appending ld.so.conf contents (and includes) to the search path.
18499  if test -f /etc/ld.so.conf; then
18500    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' ' '`
18501    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18502  fi
18503
18504  # We used to test for /lib/ld.so.1 and disable shared libraries on
18505  # powerpc, because MkLinux only supported shared libraries with the
18506  # GNU dynamic linker.  Since this was broken with cross compilers,
18507  # most powerpc-linux boxes support dynamic linking these days and
18508  # people can always --disable-shared, the test was removed, and we
18509  # assume the GNU/Linux dynamic linker is in use.
18510  dynamic_linker='GNU/Linux ld.so'
18511  ;;
18512
18513netbsd*)
18514  version_type=sunos
18515  need_lib_prefix=no
18516  need_version=no
18517  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18518    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18519    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18520    dynamic_linker='NetBSD (a.out) ld.so'
18521  else
18522    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18523    soname_spec='$libname$release$shared_ext$major'
18524    dynamic_linker='NetBSD ld.elf_so'
18525  fi
18526  shlibpath_var=LD_LIBRARY_PATH
18527  shlibpath_overrides_runpath=yes
18528  hardcode_into_libs=yes
18529  ;;
18530
18531newsos6)
18532  version_type=linux # correct to gnu/linux during the next big refactor
18533  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18534  shlibpath_var=LD_LIBRARY_PATH
18535  shlibpath_overrides_runpath=yes
18536  ;;
18537
18538*nto* | *qnx*)
18539  version_type=qnx
18540  need_lib_prefix=no
18541  need_version=no
18542  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18543  soname_spec='$libname$release$shared_ext$major'
18544  shlibpath_var=LD_LIBRARY_PATH
18545  shlibpath_overrides_runpath=no
18546  hardcode_into_libs=yes
18547  dynamic_linker='ldqnx.so'
18548  ;;
18549
18550openbsd* | bitrig*)
18551  version_type=sunos
18552  sys_lib_dlsearch_path_spec=/usr/lib
18553  need_lib_prefix=no
18554  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18555    need_version=no
18556  else
18557    need_version=yes
18558  fi
18559  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18560  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18561  shlibpath_var=LD_LIBRARY_PATH
18562  shlibpath_overrides_runpath=yes
18563  ;;
18564
18565os2*)
18566  libname_spec='$name'
18567  version_type=windows
18568  shrext_cmds=.dll
18569  need_version=no
18570  need_lib_prefix=no
18571  # OS/2 can only load a DLL with a base name of 8 characters or less.
18572  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18573    v=$($ECHO $release$versuffix | tr -d .-);
18574    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18575    $ECHO $n$v`$shared_ext'
18576  library_names_spec='${libname}_dll.$libext'
18577  dynamic_linker='OS/2 ld.exe'
18578  shlibpath_var=BEGINLIBPATH
18579  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18580  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18581  postinstall_cmds='base_file=`basename \$file`~
18582    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18583    dldir=$destdir/`dirname \$dlpath`~
18584    test -d \$dldir || mkdir -p \$dldir~
18585    $install_prog $dir/$dlname \$dldir/$dlname~
18586    chmod a+x \$dldir/$dlname~
18587    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18588      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18589    fi'
18590  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18591    dlpath=$dir/\$dldll~
18592    $RM \$dlpath'
18593  ;;
18594
18595osf3* | osf4* | osf5*)
18596  version_type=osf
18597  need_lib_prefix=no
18598  need_version=no
18599  soname_spec='$libname$release$shared_ext$major'
18600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18601  shlibpath_var=LD_LIBRARY_PATH
18602  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18603  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18604  ;;
18605
18606rdos*)
18607  dynamic_linker=no
18608  ;;
18609
18610solaris*)
18611  version_type=linux # correct to gnu/linux during the next big refactor
18612  need_lib_prefix=no
18613  need_version=no
18614  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18615  soname_spec='$libname$release$shared_ext$major'
18616  shlibpath_var=LD_LIBRARY_PATH
18617  shlibpath_overrides_runpath=yes
18618  hardcode_into_libs=yes
18619  # ldd complains unless libraries are executable
18620  postinstall_cmds='chmod +x $lib'
18621  ;;
18622
18623sunos4*)
18624  version_type=sunos
18625  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18626  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18627  shlibpath_var=LD_LIBRARY_PATH
18628  shlibpath_overrides_runpath=yes
18629  if test yes = "$with_gnu_ld"; then
18630    need_lib_prefix=no
18631  fi
18632  need_version=yes
18633  ;;
18634
18635sysv4 | sysv4.3*)
18636  version_type=linux # correct to gnu/linux during the next big refactor
18637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18638  soname_spec='$libname$release$shared_ext$major'
18639  shlibpath_var=LD_LIBRARY_PATH
18640  case $host_vendor in
18641    sni)
18642      shlibpath_overrides_runpath=no
18643      need_lib_prefix=no
18644      runpath_var=LD_RUN_PATH
18645      ;;
18646    siemens)
18647      need_lib_prefix=no
18648      ;;
18649    motorola)
18650      need_lib_prefix=no
18651      need_version=no
18652      shlibpath_overrides_runpath=no
18653      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18654      ;;
18655  esac
18656  ;;
18657
18658sysv4*MP*)
18659  if test -d /usr/nec; then
18660    version_type=linux # correct to gnu/linux during the next big refactor
18661    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18662    soname_spec='$libname$shared_ext.$major'
18663    shlibpath_var=LD_LIBRARY_PATH
18664  fi
18665  ;;
18666
18667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18668  version_type=sco
18669  need_lib_prefix=no
18670  need_version=no
18671  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18672  soname_spec='$libname$release$shared_ext$major'
18673  shlibpath_var=LD_LIBRARY_PATH
18674  shlibpath_overrides_runpath=yes
18675  hardcode_into_libs=yes
18676  if test yes = "$with_gnu_ld"; then
18677    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18678  else
18679    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18680    case $host_os in
18681      sco3.2v5*)
18682        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18683	;;
18684    esac
18685  fi
18686  sys_lib_dlsearch_path_spec='/usr/lib'
18687  ;;
18688
18689tpf*)
18690  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18691  version_type=linux # correct to gnu/linux during the next big refactor
18692  need_lib_prefix=no
18693  need_version=no
18694  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18695  shlibpath_var=LD_LIBRARY_PATH
18696  shlibpath_overrides_runpath=no
18697  hardcode_into_libs=yes
18698  ;;
18699
18700uts4*)
18701  version_type=linux # correct to gnu/linux during the next big refactor
18702  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18703  soname_spec='$libname$release$shared_ext$major'
18704  shlibpath_var=LD_LIBRARY_PATH
18705  ;;
18706
18707*)
18708  dynamic_linker=no
18709  ;;
18710esac
18711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18712printf "%s\n" "$dynamic_linker" >&6; }
18713test no = "$dynamic_linker" && can_build_shared=no
18714
18715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18716if test yes = "$GCC"; then
18717  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18718fi
18719
18720if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18721  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18722fi
18723
18724if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18725  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18726fi
18727
18728# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18729configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18730
18731# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18732func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18733
18734# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18735configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18834printf %s "checking how to hardcode library paths into programs... " >&6; }
18835hardcode_action=
18836if test -n "$hardcode_libdir_flag_spec" ||
18837   test -n "$runpath_var" ||
18838   test yes = "$hardcode_automatic"; then
18839
18840  # We can hardcode non-existent directories.
18841  if test no != "$hardcode_direct" &&
18842     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18843     # have to relink, otherwise we might link with an installed library
18844     # when we should be linking with a yet-to-be-installed one
18845     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18846     test no != "$hardcode_minus_L"; then
18847    # Linking always hardcodes the temporary library directory.
18848    hardcode_action=relink
18849  else
18850    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18851    hardcode_action=immediate
18852  fi
18853else
18854  # We cannot hardcode anything, or else we can only hardcode existing
18855  # directories.
18856  hardcode_action=unsupported
18857fi
18858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18859printf "%s\n" "$hardcode_action" >&6; }
18860
18861if test relink = "$hardcode_action" ||
18862   test yes = "$inherit_rpath"; then
18863  # Fast installation is not supported
18864  enable_fast_install=no
18865elif test yes = "$shlibpath_overrides_runpath" ||
18866     test no = "$enable_shared"; then
18867  # Fast installation is not necessary
18868  enable_fast_install=needless
18869fi
18870
18871
18872
18873
18874
18875
18876  if test yes != "$enable_dlopen"; then
18877  enable_dlopen=unknown
18878  enable_dlopen_self=unknown
18879  enable_dlopen_self_static=unknown
18880else
18881  lt_cv_dlopen=no
18882  lt_cv_dlopen_libs=
18883
18884  case $host_os in
18885  beos*)
18886    lt_cv_dlopen=load_add_on
18887    lt_cv_dlopen_libs=
18888    lt_cv_dlopen_self=yes
18889    ;;
18890
18891  mingw* | pw32* | cegcc*)
18892    lt_cv_dlopen=LoadLibrary
18893    lt_cv_dlopen_libs=
18894    ;;
18895
18896  cygwin*)
18897    lt_cv_dlopen=dlopen
18898    lt_cv_dlopen_libs=
18899    ;;
18900
18901  darwin*)
18902    # if libdl is installed we need to link against it
18903    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18904printf %s "checking for dlopen in -ldl... " >&6; }
18905if test ${ac_cv_lib_dl_dlopen+y}
18906then :
18907  printf %s "(cached) " >&6
18908else $as_nop
18909  ac_check_lib_save_LIBS=$LIBS
18910LIBS="-ldl  $LIBS"
18911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18912/* end confdefs.h.  */
18913
18914/* Override any GCC internal prototype to avoid an error.
18915   Use char because int might match the return type of a GCC
18916   builtin and then its argument prototype would still apply.  */
18917char dlopen ();
18918int
18919main (void)
18920{
18921return dlopen ();
18922  ;
18923  return 0;
18924}
18925_ACEOF
18926if ac_fn_c_try_link "$LINENO"
18927then :
18928  ac_cv_lib_dl_dlopen=yes
18929else $as_nop
18930  ac_cv_lib_dl_dlopen=no
18931fi
18932rm -f core conftest.err conftest.$ac_objext conftest.beam \
18933    conftest$ac_exeext conftest.$ac_ext
18934LIBS=$ac_check_lib_save_LIBS
18935fi
18936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18937printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18938if test "x$ac_cv_lib_dl_dlopen" = xyes
18939then :
18940  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18941else $as_nop
18942
18943    lt_cv_dlopen=dyld
18944    lt_cv_dlopen_libs=
18945    lt_cv_dlopen_self=yes
18946
18947fi
18948
18949    ;;
18950
18951  tpf*)
18952    # Don't try to run any link tests for TPF.  We know it's impossible
18953    # because TPF is a cross-compiler, and we know how we open DSOs.
18954    lt_cv_dlopen=dlopen
18955    lt_cv_dlopen_libs=
18956    lt_cv_dlopen_self=no
18957    ;;
18958
18959  *)
18960    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18961if test "x$ac_cv_func_shl_load" = xyes
18962then :
18963  lt_cv_dlopen=shl_load
18964else $as_nop
18965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18966printf %s "checking for shl_load in -ldld... " >&6; }
18967if test ${ac_cv_lib_dld_shl_load+y}
18968then :
18969  printf %s "(cached) " >&6
18970else $as_nop
18971  ac_check_lib_save_LIBS=$LIBS
18972LIBS="-ldld  $LIBS"
18973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18974/* end confdefs.h.  */
18975
18976/* Override any GCC internal prototype to avoid an error.
18977   Use char because int might match the return type of a GCC
18978   builtin and then its argument prototype would still apply.  */
18979char shl_load ();
18980int
18981main (void)
18982{
18983return shl_load ();
18984  ;
18985  return 0;
18986}
18987_ACEOF
18988if ac_fn_c_try_link "$LINENO"
18989then :
18990  ac_cv_lib_dld_shl_load=yes
18991else $as_nop
18992  ac_cv_lib_dld_shl_load=no
18993fi
18994rm -f core conftest.err conftest.$ac_objext conftest.beam \
18995    conftest$ac_exeext conftest.$ac_ext
18996LIBS=$ac_check_lib_save_LIBS
18997fi
18998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18999printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19000if test "x$ac_cv_lib_dld_shl_load" = xyes
19001then :
19002  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19003else $as_nop
19004  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19005if test "x$ac_cv_func_dlopen" = xyes
19006then :
19007  lt_cv_dlopen=dlopen
19008else $as_nop
19009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19010printf %s "checking for dlopen in -ldl... " >&6; }
19011if test ${ac_cv_lib_dl_dlopen+y}
19012then :
19013  printf %s "(cached) " >&6
19014else $as_nop
19015  ac_check_lib_save_LIBS=$LIBS
19016LIBS="-ldl  $LIBS"
19017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018/* end confdefs.h.  */
19019
19020/* Override any GCC internal prototype to avoid an error.
19021   Use char because int might match the return type of a GCC
19022   builtin and then its argument prototype would still apply.  */
19023char dlopen ();
19024int
19025main (void)
19026{
19027return dlopen ();
19028  ;
19029  return 0;
19030}
19031_ACEOF
19032if ac_fn_c_try_link "$LINENO"
19033then :
19034  ac_cv_lib_dl_dlopen=yes
19035else $as_nop
19036  ac_cv_lib_dl_dlopen=no
19037fi
19038rm -f core conftest.err conftest.$ac_objext conftest.beam \
19039    conftest$ac_exeext conftest.$ac_ext
19040LIBS=$ac_check_lib_save_LIBS
19041fi
19042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19043printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19044if test "x$ac_cv_lib_dl_dlopen" = xyes
19045then :
19046  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19047else $as_nop
19048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19049printf %s "checking for dlopen in -lsvld... " >&6; }
19050if test ${ac_cv_lib_svld_dlopen+y}
19051then :
19052  printf %s "(cached) " >&6
19053else $as_nop
19054  ac_check_lib_save_LIBS=$LIBS
19055LIBS="-lsvld  $LIBS"
19056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057/* end confdefs.h.  */
19058
19059/* Override any GCC internal prototype to avoid an error.
19060   Use char because int might match the return type of a GCC
19061   builtin and then its argument prototype would still apply.  */
19062char dlopen ();
19063int
19064main (void)
19065{
19066return dlopen ();
19067  ;
19068  return 0;
19069}
19070_ACEOF
19071if ac_fn_c_try_link "$LINENO"
19072then :
19073  ac_cv_lib_svld_dlopen=yes
19074else $as_nop
19075  ac_cv_lib_svld_dlopen=no
19076fi
19077rm -f core conftest.err conftest.$ac_objext conftest.beam \
19078    conftest$ac_exeext conftest.$ac_ext
19079LIBS=$ac_check_lib_save_LIBS
19080fi
19081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19082printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19083if test "x$ac_cv_lib_svld_dlopen" = xyes
19084then :
19085  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19086else $as_nop
19087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19088printf %s "checking for dld_link in -ldld... " >&6; }
19089if test ${ac_cv_lib_dld_dld_link+y}
19090then :
19091  printf %s "(cached) " >&6
19092else $as_nop
19093  ac_check_lib_save_LIBS=$LIBS
19094LIBS="-ldld  $LIBS"
19095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096/* end confdefs.h.  */
19097
19098/* Override any GCC internal prototype to avoid an error.
19099   Use char because int might match the return type of a GCC
19100   builtin and then its argument prototype would still apply.  */
19101char dld_link ();
19102int
19103main (void)
19104{
19105return dld_link ();
19106  ;
19107  return 0;
19108}
19109_ACEOF
19110if ac_fn_c_try_link "$LINENO"
19111then :
19112  ac_cv_lib_dld_dld_link=yes
19113else $as_nop
19114  ac_cv_lib_dld_dld_link=no
19115fi
19116rm -f core conftest.err conftest.$ac_objext conftest.beam \
19117    conftest$ac_exeext conftest.$ac_ext
19118LIBS=$ac_check_lib_save_LIBS
19119fi
19120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19121printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19122if test "x$ac_cv_lib_dld_dld_link" = xyes
19123then :
19124  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19125fi
19126
19127
19128fi
19129
19130
19131fi
19132
19133
19134fi
19135
19136
19137fi
19138
19139
19140fi
19141
19142    ;;
19143  esac
19144
19145  if test no = "$lt_cv_dlopen"; then
19146    enable_dlopen=no
19147  else
19148    enable_dlopen=yes
19149  fi
19150
19151  case $lt_cv_dlopen in
19152  dlopen)
19153    save_CPPFLAGS=$CPPFLAGS
19154    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19155
19156    save_LDFLAGS=$LDFLAGS
19157    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19158
19159    save_LIBS=$LIBS
19160    LIBS="$lt_cv_dlopen_libs $LIBS"
19161
19162    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19163printf %s "checking whether a program can dlopen itself... " >&6; }
19164if test ${lt_cv_dlopen_self+y}
19165then :
19166  printf %s "(cached) " >&6
19167else $as_nop
19168  	  if test yes = "$cross_compiling"; then :
19169  lt_cv_dlopen_self=cross
19170else
19171  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19172  lt_status=$lt_dlunknown
19173  cat > conftest.$ac_ext <<_LT_EOF
19174#line $LINENO "configure"
19175#include "confdefs.h"
19176
19177#if HAVE_DLFCN_H
19178#include <dlfcn.h>
19179#endif
19180
19181#include <stdio.h>
19182
19183#ifdef RTLD_GLOBAL
19184#  define LT_DLGLOBAL		RTLD_GLOBAL
19185#else
19186#  ifdef DL_GLOBAL
19187#    define LT_DLGLOBAL		DL_GLOBAL
19188#  else
19189#    define LT_DLGLOBAL		0
19190#  endif
19191#endif
19192
19193/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19194   find out it does not work in some platform. */
19195#ifndef LT_DLLAZY_OR_NOW
19196#  ifdef RTLD_LAZY
19197#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19198#  else
19199#    ifdef DL_LAZY
19200#      define LT_DLLAZY_OR_NOW		DL_LAZY
19201#    else
19202#      ifdef RTLD_NOW
19203#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19204#      else
19205#        ifdef DL_NOW
19206#          define LT_DLLAZY_OR_NOW	DL_NOW
19207#        else
19208#          define LT_DLLAZY_OR_NOW	0
19209#        endif
19210#      endif
19211#    endif
19212#  endif
19213#endif
19214
19215/* When -fvisibility=hidden is used, assume the code has been annotated
19216   correspondingly for the symbols needed.  */
19217#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19218int fnord () __attribute__((visibility("default")));
19219#endif
19220
19221int fnord () { return 42; }
19222int main ()
19223{
19224  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19225  int status = $lt_dlunknown;
19226
19227  if (self)
19228    {
19229      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19230      else
19231        {
19232	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19233          else puts (dlerror ());
19234	}
19235      /* dlclose (self); */
19236    }
19237  else
19238    puts (dlerror ());
19239
19240  return status;
19241}
19242_LT_EOF
19243  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19244  (eval $ac_link) 2>&5
19245  ac_status=$?
19246  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19247  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19248    (./conftest; exit; ) >&5 2>/dev/null
19249    lt_status=$?
19250    case x$lt_status in
19251      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19252      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19253      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19254    esac
19255  else :
19256    # compilation failed
19257    lt_cv_dlopen_self=no
19258  fi
19259fi
19260rm -fr conftest*
19261
19262
19263fi
19264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19265printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19266
19267    if test yes = "$lt_cv_dlopen_self"; then
19268      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19269      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19270printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19271if test ${lt_cv_dlopen_self_static+y}
19272then :
19273  printf %s "(cached) " >&6
19274else $as_nop
19275  	  if test yes = "$cross_compiling"; then :
19276  lt_cv_dlopen_self_static=cross
19277else
19278  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19279  lt_status=$lt_dlunknown
19280  cat > conftest.$ac_ext <<_LT_EOF
19281#line $LINENO "configure"
19282#include "confdefs.h"
19283
19284#if HAVE_DLFCN_H
19285#include <dlfcn.h>
19286#endif
19287
19288#include <stdio.h>
19289
19290#ifdef RTLD_GLOBAL
19291#  define LT_DLGLOBAL		RTLD_GLOBAL
19292#else
19293#  ifdef DL_GLOBAL
19294#    define LT_DLGLOBAL		DL_GLOBAL
19295#  else
19296#    define LT_DLGLOBAL		0
19297#  endif
19298#endif
19299
19300/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19301   find out it does not work in some platform. */
19302#ifndef LT_DLLAZY_OR_NOW
19303#  ifdef RTLD_LAZY
19304#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19305#  else
19306#    ifdef DL_LAZY
19307#      define LT_DLLAZY_OR_NOW		DL_LAZY
19308#    else
19309#      ifdef RTLD_NOW
19310#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19311#      else
19312#        ifdef DL_NOW
19313#          define LT_DLLAZY_OR_NOW	DL_NOW
19314#        else
19315#          define LT_DLLAZY_OR_NOW	0
19316#        endif
19317#      endif
19318#    endif
19319#  endif
19320#endif
19321
19322/* When -fvisibility=hidden is used, assume the code has been annotated
19323   correspondingly for the symbols needed.  */
19324#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19325int fnord () __attribute__((visibility("default")));
19326#endif
19327
19328int fnord () { return 42; }
19329int main ()
19330{
19331  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19332  int status = $lt_dlunknown;
19333
19334  if (self)
19335    {
19336      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19337      else
19338        {
19339	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19340          else puts (dlerror ());
19341	}
19342      /* dlclose (self); */
19343    }
19344  else
19345    puts (dlerror ());
19346
19347  return status;
19348}
19349_LT_EOF
19350  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19351  (eval $ac_link) 2>&5
19352  ac_status=$?
19353  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19354  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19355    (./conftest; exit; ) >&5 2>/dev/null
19356    lt_status=$?
19357    case x$lt_status in
19358      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19359      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19360      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19361    esac
19362  else :
19363    # compilation failed
19364    lt_cv_dlopen_self_static=no
19365  fi
19366fi
19367rm -fr conftest*
19368
19369
19370fi
19371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19372printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19373    fi
19374
19375    CPPFLAGS=$save_CPPFLAGS
19376    LDFLAGS=$save_LDFLAGS
19377    LIBS=$save_LIBS
19378    ;;
19379  esac
19380
19381  case $lt_cv_dlopen_self in
19382  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19383  *) enable_dlopen_self=unknown ;;
19384  esac
19385
19386  case $lt_cv_dlopen_self_static in
19387  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19388  *) enable_dlopen_self_static=unknown ;;
19389  esac
19390fi
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408striplib=
19409old_striplib=
19410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19411printf %s "checking whether stripping libraries is possible... " >&6; }
19412if test -z "$STRIP"; then
19413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19414printf "%s\n" "no" >&6; }
19415else
19416  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19417    old_striplib="$STRIP --strip-debug"
19418    striplib="$STRIP --strip-unneeded"
19419    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19420printf "%s\n" "yes" >&6; }
19421  else
19422    case $host_os in
19423    darwin*)
19424      # FIXME - insert some real tests, host_os isn't really good enough
19425      striplib="$STRIP -x"
19426      old_striplib="$STRIP -S"
19427      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19428printf "%s\n" "yes" >&6; }
19429      ;;
19430    freebsd*)
19431      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19432        old_striplib="$STRIP --strip-debug"
19433        striplib="$STRIP --strip-unneeded"
19434        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19435printf "%s\n" "yes" >&6; }
19436      else
19437        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19438printf "%s\n" "no" >&6; }
19439      fi
19440      ;;
19441    *)
19442      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19443printf "%s\n" "no" >&6; }
19444      ;;
19445    esac
19446  fi
19447fi
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460  # Report what library types will actually be built
19461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19462printf %s "checking if libtool supports shared libraries... " >&6; }
19463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19464printf "%s\n" "$can_build_shared" >&6; }
19465
19466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19467printf %s "checking whether to build shared libraries... " >&6; }
19468  test no = "$can_build_shared" && enable_shared=no
19469
19470  # On AIX, shared libraries and static libraries use the same namespace, and
19471  # are all built from PIC.
19472  case $host_os in
19473  aix3*)
19474    test yes = "$enable_shared" && enable_static=no
19475    if test -n "$RANLIB"; then
19476      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19477      postinstall_cmds='$RANLIB $lib'
19478    fi
19479    ;;
19480
19481  aix[4-9]*)
19482    if test ia64 != "$host_cpu"; then
19483      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19484      yes,aix,yes) ;;			# shared object as lib.so file only
19485      yes,svr4,*) ;;			# shared object as lib.so archive member only
19486      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19487      esac
19488    fi
19489    ;;
19490  esac
19491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19492printf "%s\n" "$enable_shared" >&6; }
19493
19494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19495printf %s "checking whether to build static libraries... " >&6; }
19496  # Make sure either enable_shared or enable_static is yes.
19497  test yes = "$enable_shared" || enable_static=yes
19498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19499printf "%s\n" "$enable_static" >&6; }
19500
19501
19502
19503
19504fi
19505ac_ext=c
19506ac_cpp='$CPP $CPPFLAGS'
19507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509ac_compiler_gnu=$ac_cv_c_compiler_gnu
19510
19511CC=$lt_save_CC
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527        ac_config_commands="$ac_config_commands libtool"
19528
19529
19530
19531
19532# Only expand once:
19533
19534
19535
19536# Checks for programs.
19537
19538
19539
19540
19541# Define a configure option for an alternate module directory
19542
19543# Check whether --with-xorg-module-dir was given.
19544if test ${with_xorg_module_dir+y}
19545then :
19546  withval=$with_xorg_module_dir; moduledir="$withval"
19547else $as_nop
19548  moduledir="$libdir/xorg/modules"
19549fi
19550
19551
19552# Define a configure option to build the vmwarectrl client tool
19553# Check whether --enable-vmwarectrl-client was given.
19554if test ${enable_vmwarectrl_client+y}
19555then :
19556  enableval=$enable_vmwarectrl_client; VMWARECTRL=$enableval
19557else $as_nop
19558  VMWARECTRL=no
19559fi
19560
19561 if test "x$VMWARECTRL" = xyes; then
19562  BUILD_VMWARECTRL_TRUE=
19563  BUILD_VMWARECTRL_FALSE='#'
19564else
19565  BUILD_VMWARECTRL_TRUE='#'
19566  BUILD_VMWARECTRL_FALSE=
19567fi
19568
19569
19570# Store the list of server defined optional extensions in REQUIRED_MODULES
19571
19572
19573	SAVE_CFLAGS="$CFLAGS"
19574	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19575	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576/* end confdefs.h.  */
19577
19578#include "xorg-server.h"
19579#if !defined RANDR
19580#error RANDR not defined
19581#endif
19582
19583int
19584main (void)
19585{
19586
19587  ;
19588  return 0;
19589}
19590_ACEOF
19591if ac_fn_c_try_compile "$LINENO"
19592then :
19593  _EXT_CHECK=yes
19594else $as_nop
19595  _EXT_CHECK=no
19596fi
19597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19598	CFLAGS="$SAVE_CFLAGS"
19599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19600printf %s "checking if RANDR is defined... " >&6; }
19601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19602printf "%s\n" "$_EXT_CHECK" >&6; }
19603	if test "$_EXT_CHECK" != no; then
19604		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19605	fi
19606
19607
19608
19609	SAVE_CFLAGS="$CFLAGS"
19610	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19611	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612/* end confdefs.h.  */
19613
19614#include "xorg-server.h"
19615#if !defined RENDER
19616#error RENDER not defined
19617#endif
19618
19619int
19620main (void)
19621{
19622
19623  ;
19624  return 0;
19625}
19626_ACEOF
19627if ac_fn_c_try_compile "$LINENO"
19628then :
19629  _EXT_CHECK=yes
19630else $as_nop
19631  _EXT_CHECK=no
19632fi
19633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19634	CFLAGS="$SAVE_CFLAGS"
19635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19636printf %s "checking if RENDER is defined... " >&6; }
19637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19638printf "%s\n" "$_EXT_CHECK" >&6; }
19639	if test "$_EXT_CHECK" != no; then
19640		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19641	fi
19642
19643
19644
19645	SAVE_CFLAGS="$CFLAGS"
19646	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19647	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648/* end confdefs.h.  */
19649
19650#include "xorg-server.h"
19651#if !defined DPMSExtension
19652#error DPMSExtension not defined
19653#endif
19654
19655int
19656main (void)
19657{
19658
19659  ;
19660  return 0;
19661}
19662_ACEOF
19663if ac_fn_c_try_compile "$LINENO"
19664then :
19665  _EXT_CHECK=yes
19666else $as_nop
19667  _EXT_CHECK=no
19668fi
19669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19670	CFLAGS="$SAVE_CFLAGS"
19671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19672printf %s "checking if DPMSExtension is defined... " >&6; }
19673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19674printf "%s\n" "$_EXT_CHECK" >&6; }
19675	if test "$_EXT_CHECK" != no; then
19676		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19677	fi
19678
19679
19680
19681	SAVE_CFLAGS="$CFLAGS"
19682	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19683	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684/* end confdefs.h.  */
19685
19686#include "xorg-server.h"
19687#if !defined XINERAMA
19688#error XINERAMA not defined
19689#endif
19690
19691int
19692main (void)
19693{
19694
19695  ;
19696  return 0;
19697}
19698_ACEOF
19699if ac_fn_c_try_compile "$LINENO"
19700then :
19701  _EXT_CHECK=yes
19702else $as_nop
19703  _EXT_CHECK=no
19704fi
19705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19706	CFLAGS="$SAVE_CFLAGS"
19707	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5
19708printf %s "checking if XINERAMA is defined... " >&6; }
19709	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19710printf "%s\n" "$_EXT_CHECK" >&6; }
19711	if test "$_EXT_CHECK" != no; then
19712		REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
19713	fi
19714
19715
19716
19717	SAVE_CFLAGS="$CFLAGS"
19718	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19719	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720/* end confdefs.h.  */
19721
19722#include "xorg-server.h"
19723#if !defined XV
19724#error XV not defined
19725#endif
19726
19727int
19728main (void)
19729{
19730
19731  ;
19732  return 0;
19733}
19734_ACEOF
19735if ac_fn_c_try_compile "$LINENO"
19736then :
19737  _EXT_CHECK=yes
19738else $as_nop
19739  _EXT_CHECK=no
19740fi
19741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19742	CFLAGS="$SAVE_CFLAGS"
19743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19744printf %s "checking if XV is defined... " >&6; }
19745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19746printf "%s\n" "$_EXT_CHECK" >&6; }
19747	if test "$_EXT_CHECK" != no; then
19748		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19749	fi
19750
19751
19752# Obtain compiler/linker options for the driver dependencies
19753
19754pkg_failed=no
19755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19756printf %s "checking for XORG... " >&6; }
19757
19758if test -n "$XORG_CFLAGS"; then
19759    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19760 elif test -n "$PKG_CONFIG"; then
19761    if test -n "$PKG_CONFIG" && \
19762    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19763  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
19764  ac_status=$?
19765  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19766  test $ac_status = 0; }; then
19767  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19768		      test "x$?" != "x0" && pkg_failed=yes
19769else
19770  pkg_failed=yes
19771fi
19772 else
19773    pkg_failed=untried
19774fi
19775if test -n "$XORG_LIBS"; then
19776    pkg_cv_XORG_LIBS="$XORG_LIBS"
19777 elif test -n "$PKG_CONFIG"; then
19778    if test -n "$PKG_CONFIG" && \
19779    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19780  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
19781  ac_status=$?
19782  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19783  test $ac_status = 0; }; then
19784  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19785		      test "x$?" != "x0" && pkg_failed=yes
19786else
19787  pkg_failed=yes
19788fi
19789 else
19790    pkg_failed=untried
19791fi
19792
19793
19794
19795if test $pkg_failed = yes; then
19796   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19797printf "%s\n" "no" >&6; }
19798
19799if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19800        _pkg_short_errors_supported=yes
19801else
19802        _pkg_short_errors_supported=no
19803fi
19804        if test $_pkg_short_errors_supported = yes; then
19805	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19806        else
19807	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19808        fi
19809	# Put the nasty error message in config.log where it belongs
19810	echo "$XORG_PKG_ERRORS" >&5
19811
19812	as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
19813
19814$XORG_PKG_ERRORS
19815
19816Consider adjusting the PKG_CONFIG_PATH environment variable if you
19817installed software in a non-standard prefix.
19818
19819Alternatively, you may set the environment variables XORG_CFLAGS
19820and XORG_LIBS to avoid the need to call pkg-config.
19821See the pkg-config man page for more details." "$LINENO" 5
19822elif test $pkg_failed = untried; then
19823     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824printf "%s\n" "no" >&6; }
19825	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19826printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19827as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19828is in your PATH or set the PKG_CONFIG environment variable to the full
19829path to pkg-config.
19830
19831Alternatively, you may set the environment variables XORG_CFLAGS
19832and XORG_LIBS to avoid the need to call pkg-config.
19833See the pkg-config man page for more details.
19834
19835To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19836See \`config.log' for more details" "$LINENO" 5; }
19837else
19838	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19839	XORG_LIBS=$pkg_cv_XORG_LIBS
19840        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19841printf "%s\n" "yes" >&6; }
19842
19843fi
19844if test -n "$PKG_CONFIG" && \
19845    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5
19846  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
19847  ac_status=$?
19848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19849  test $ac_status = 0; }; then
19850
19851printf "%s\n" "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h
19852
19853fi
19854
19855if test -n "$PKG_CONFIG" && \
19856    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\""; } >&5
19857  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5
19858  ac_status=$?
19859  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860  test $ac_status = 0; }; then
19861
19862printf "%s\n" "#define HAVE_XORG_SERVER_1_2_0 1" >>confdefs.h
19863
19864fi
19865
19866if test -n "$PKG_CONFIG" && \
19867    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4.99\""; } >&5
19868  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4.99") 2>&5
19869  ac_status=$?
19870  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871  test $ac_status = 0; }; then
19872
19873printf "%s\n" "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h
19874
19875fi
19876
19877if test -n "$PKG_CONFIG" && \
19878    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\""; } >&5
19879  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5
19880  ac_status=$?
19881  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19882  test $ac_status = 0; }; then
19883
19884printf "%s\n" "#define HAVE_XORG_SERVER_1_7_0 1" >>confdefs.h
19885
19886		 BUILD_VMWGFX=yes
19887else
19888  BUILD_VMWGFX=no
19889fi
19890
19891if test -n "$PKG_CONFIG" && \
19892    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.12.0\""; } >&5
19893  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.12.0") 2>&5
19894  ac_status=$?
19895  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19896  test $ac_status = 0; }; then
19897
19898printf "%s\n" "#define HAVE_XORG_SERVER_1_12_0 1" >>confdefs.h
19899
19900fi
19901
19902# Obtain compiler/linker options for the vmwarectrl client tool
19903
19904pkg_failed=no
19905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
19906printf %s "checking for X11... " >&6; }
19907
19908if test -n "$X11_CFLAGS"; then
19909    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
19910 elif test -n "$PKG_CONFIG"; then
19911    if test -n "$PKG_CONFIG" && \
19912    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
19913  ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
19914  ac_status=$?
19915  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19916  test $ac_status = 0; }; then
19917  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null`
19918		      test "x$?" != "x0" && pkg_failed=yes
19919else
19920  pkg_failed=yes
19921fi
19922 else
19923    pkg_failed=untried
19924fi
19925if test -n "$X11_LIBS"; then
19926    pkg_cv_X11_LIBS="$X11_LIBS"
19927 elif test -n "$PKG_CONFIG"; then
19928    if test -n "$PKG_CONFIG" && \
19929    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
19930  ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
19931  ac_status=$?
19932  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19933  test $ac_status = 0; }; then
19934  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null`
19935		      test "x$?" != "x0" && pkg_failed=yes
19936else
19937  pkg_failed=yes
19938fi
19939 else
19940    pkg_failed=untried
19941fi
19942
19943
19944
19945if test $pkg_failed = yes; then
19946   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19947printf "%s\n" "no" >&6; }
19948
19949if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19950        _pkg_short_errors_supported=yes
19951else
19952        _pkg_short_errors_supported=no
19953fi
19954        if test $_pkg_short_errors_supported = yes; then
19955	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext" 2>&1`
19956        else
19957	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext" 2>&1`
19958        fi
19959	# Put the nasty error message in config.log where it belongs
19960	echo "$X11_PKG_ERRORS" >&5
19961
19962	as_fn_error $? "Package requirements (x11 xext) were not met:
19963
19964$X11_PKG_ERRORS
19965
19966Consider adjusting the PKG_CONFIG_PATH environment variable if you
19967installed software in a non-standard prefix.
19968
19969Alternatively, you may set the environment variables X11_CFLAGS
19970and X11_LIBS to avoid the need to call pkg-config.
19971See the pkg-config man page for more details." "$LINENO" 5
19972elif test $pkg_failed = untried; then
19973     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19974printf "%s\n" "no" >&6; }
19975	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19976printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19977as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19978is in your PATH or set the PKG_CONFIG environment variable to the full
19979path to pkg-config.
19980
19981Alternatively, you may set the environment variables X11_CFLAGS
19982and X11_LIBS to avoid the need to call pkg-config.
19983See the pkg-config man page for more details.
19984
19985To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19986See \`config.log' for more details" "$LINENO" 5; }
19987else
19988	X11_CFLAGS=$pkg_cv_X11_CFLAGS
19989	X11_LIBS=$pkg_cv_X11_LIBS
19990        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19991printf "%s\n" "yes" >&6; }
19992
19993fi
19994
19995# Checks for libraries.
19996
19997save_CFLAGS="$CFLAGS"
19998CFLAGS="$XORG_CFLAGS"
19999ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
20000" "$ac_c_undeclared_builtin_options" "CFLAGS"
20001if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
20002then :
20003  XSERVER_LIBPCIACCESS=yes
20004else $as_nop
20005  XSERVER_LIBPCIACCESS=no
20006fi
20007CFLAGS="$save_CFLAGS"
20008
20009if test x$XSERVER_LIBPCIACCESS = xyes; then
20010
20011pkg_failed=no
20012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20013printf %s "checking for PCIACCESS... " >&6; }
20014
20015if test -n "$PCIACCESS_CFLAGS"; then
20016    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20017 elif test -n "$PKG_CONFIG"; then
20018    if test -n "$PKG_CONFIG" && \
20019    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20020  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20021  ac_status=$?
20022  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20023  test $ac_status = 0; }; then
20024  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20025		      test "x$?" != "x0" && pkg_failed=yes
20026else
20027  pkg_failed=yes
20028fi
20029 else
20030    pkg_failed=untried
20031fi
20032if test -n "$PCIACCESS_LIBS"; then
20033    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20034 elif test -n "$PKG_CONFIG"; then
20035    if test -n "$PKG_CONFIG" && \
20036    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20037  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20038  ac_status=$?
20039  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20040  test $ac_status = 0; }; then
20041  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20042		      test "x$?" != "x0" && pkg_failed=yes
20043else
20044  pkg_failed=yes
20045fi
20046 else
20047    pkg_failed=untried
20048fi
20049
20050
20051
20052if test $pkg_failed = yes; then
20053   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20054printf "%s\n" "no" >&6; }
20055
20056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20057        _pkg_short_errors_supported=yes
20058else
20059        _pkg_short_errors_supported=no
20060fi
20061        if test $_pkg_short_errors_supported = yes; then
20062	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20063        else
20064	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20065        fi
20066	# Put the nasty error message in config.log where it belongs
20067	echo "$PCIACCESS_PKG_ERRORS" >&5
20068
20069	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
20070
20071$PCIACCESS_PKG_ERRORS
20072
20073Consider adjusting the PKG_CONFIG_PATH environment variable if you
20074installed software in a non-standard prefix.
20075
20076Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20077and PCIACCESS_LIBS to avoid the need to call pkg-config.
20078See the pkg-config man page for more details." "$LINENO" 5
20079elif test $pkg_failed = untried; then
20080     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081printf "%s\n" "no" >&6; }
20082	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20083printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20084as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20085is in your PATH or set the PKG_CONFIG environment variable to the full
20086path to pkg-config.
20087
20088Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20089and PCIACCESS_LIBS to avoid the need to call pkg-config.
20090See the pkg-config man page for more details.
20091
20092To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20093See \`config.log' for more details" "$LINENO" 5; }
20094else
20095	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20096	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20097        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20098printf "%s\n" "yes" >&6; }
20099
20100fi
20101fi
20102
20103 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20104  XSERVER_LIBPCIACCESS_TRUE=
20105  XSERVER_LIBPCIACCESS_FALSE='#'
20106else
20107  XSERVER_LIBPCIACCESS_TRUE='#'
20108  XSERVER_LIBPCIACCESS_FALSE=
20109fi
20110
20111
20112
20113
20114if test x$BUILD_VMWGFX = xyes; then
20115
20116pkg_failed=no
20117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
20118printf %s "checking for LIBDRM... " >&6; }
20119
20120if test -n "$LIBDRM_CFLAGS"; then
20121    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
20122 elif test -n "$PKG_CONFIG"; then
20123    if test -n "$PKG_CONFIG" && \
20124    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
20125  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
20126  ac_status=$?
20127  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20128  test $ac_status = 0; }; then
20129  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null`
20130		      test "x$?" != "x0" && pkg_failed=yes
20131else
20132  pkg_failed=yes
20133fi
20134 else
20135    pkg_failed=untried
20136fi
20137if test -n "$LIBDRM_LIBS"; then
20138    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
20139 elif test -n "$PKG_CONFIG"; then
20140    if test -n "$PKG_CONFIG" && \
20141    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
20142  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
20143  ac_status=$?
20144  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20145  test $ac_status = 0; }; then
20146  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null`
20147		      test "x$?" != "x0" && pkg_failed=yes
20148else
20149  pkg_failed=yes
20150fi
20151 else
20152    pkg_failed=untried
20153fi
20154
20155
20156
20157if test $pkg_failed = yes; then
20158   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20159printf "%s\n" "no" >&6; }
20160
20161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20162        _pkg_short_errors_supported=yes
20163else
20164        _pkg_short_errors_supported=no
20165fi
20166        if test $_pkg_short_errors_supported = yes; then
20167	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm" 2>&1`
20168        else
20169	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm" 2>&1`
20170        fi
20171	# Put the nasty error message in config.log where it belongs
20172	echo "$LIBDRM_PKG_ERRORS" >&5
20173
20174	BUILD_VMWGFX=no
20175elif test $pkg_failed = untried; then
20176     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177printf "%s\n" "no" >&6; }
20178	BUILD_VMWGFX=no
20179else
20180	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
20181	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
20182        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20183printf "%s\n" "yes" >&6; }
20184
20185fi
20186fi
20187if test x$BUILD_VMWGFX = xyes; then
20188#
20189# Early versions of mesa 10 forgot to bump the XA major version number in
20190# the xa_tracker.h header
20191#
20192
20193pkg_failed=no
20194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XATRACKER" >&5
20195printf %s "checking for XATRACKER... " >&6; }
20196
20197if test -n "$XATRACKER_CFLAGS"; then
20198    pkg_cv_XATRACKER_CFLAGS="$XATRACKER_CFLAGS"
20199 elif test -n "$PKG_CONFIG"; then
20200    if test -n "$PKG_CONFIG" && \
20201    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5
20202  ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5
20203  ac_status=$?
20204  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20205  test $ac_status = 0; }; then
20206  pkg_cv_XATRACKER_CFLAGS=`$PKG_CONFIG --cflags "xatracker >= 0.4.0" 2>/dev/null`
20207		      test "x$?" != "x0" && pkg_failed=yes
20208else
20209  pkg_failed=yes
20210fi
20211 else
20212    pkg_failed=untried
20213fi
20214if test -n "$XATRACKER_LIBS"; then
20215    pkg_cv_XATRACKER_LIBS="$XATRACKER_LIBS"
20216 elif test -n "$PKG_CONFIG"; then
20217    if test -n "$PKG_CONFIG" && \
20218    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5
20219  ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5
20220  ac_status=$?
20221  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20222  test $ac_status = 0; }; then
20223  pkg_cv_XATRACKER_LIBS=`$PKG_CONFIG --libs "xatracker >= 0.4.0" 2>/dev/null`
20224		      test "x$?" != "x0" && pkg_failed=yes
20225else
20226  pkg_failed=yes
20227fi
20228 else
20229    pkg_failed=untried
20230fi
20231
20232
20233
20234if test $pkg_failed = yes; then
20235   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236printf "%s\n" "no" >&6; }
20237
20238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20239        _pkg_short_errors_supported=yes
20240else
20241        _pkg_short_errors_supported=no
20242fi
20243        if test $_pkg_short_errors_supported = yes; then
20244	        XATRACKER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xatracker >= 0.4.0" 2>&1`
20245        else
20246	        XATRACKER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xatracker >= 0.4.0" 2>&1`
20247        fi
20248	# Put the nasty error message in config.log where it belongs
20249	echo "$XATRACKER_PKG_ERRORS" >&5
20250
20251	BUILD_VMWGFX=no
20252elif test $pkg_failed = untried; then
20253     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20254printf "%s\n" "no" >&6; }
20255	BUILD_VMWGFX=no
20256else
20257	XATRACKER_CFLAGS=$pkg_cv_XATRACKER_CFLAGS
20258	XATRACKER_LIBS=$pkg_cv_XATRACKER_LIBS
20259        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20260printf "%s\n" "yes" >&6; }
20261	if test -n "$PKG_CONFIG" && \
20262    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker = 2.0.0\""; } >&5
20263  ($PKG_CONFIG --exists --print-errors "xatracker = 2.0.0") 2>&5
20264  ac_status=$?
20265  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20266  test $ac_status = 0; }; then
20267
20268printf "%s\n" "#define HAVE_XA_2 1" >>confdefs.h
20269
20270fi
20271fi
20272#
20273# Check for prime.
20274#
20275	if test -n "$PKG_CONFIG" && \
20276    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.38\""; } >&5
20277  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.38") 2>&5
20278  ac_status=$?
20279  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20280  test $ac_status = 0; }; then
20281
20282printf "%s\n" "#define HAVE_LIBDRM_2_4_38 1" >>confdefs.h
20283
20284fi
20285#
20286# Check for drmGetDeviceNameFromFd2. On linux we need
20287# 2.4.96 for compatibility with the standalone vmwgfx driver
20288#
20289	if test -n "$PKG_CONFIG" && \
20290    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.74\""; } >&5
20291  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.74") 2>&5
20292  ac_status=$?
20293  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20294  test $ac_status = 0; }; then
20295
20296printf "%s\n" "#define HAVE_LIBDRM_2_4_74 1" >>confdefs.h
20297
20298fi
20299	if test -n "$PKG_CONFIG" && \
20300    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.96\""; } >&5
20301  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.96") 2>&5
20302  ac_status=$?
20303  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20304  test $ac_status = 0; }; then
20305
20306printf "%s\n" "#define HAVE_LIBDRM_2_4_96 1" >>confdefs.h
20307
20308fi
20309fi
20310
20311DRIVER_NAME=vmware
20312
20313
20314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Kernel Mode Setting and 3D" >&5
20315printf %s "checking whether to build Kernel Mode Setting and 3D... " >&6; }
20316if test x$BUILD_VMWGFX = xyes; then
20317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20318printf "%s\n" "yes" >&6; }
20319
20320printf "%s\n" "#define BUILD_VMWGFX 1" >>confdefs.h
20321
20322	libudev_check=yes
20323
20324# Check whether --with-libudev was given.
20325if test ${with_libudev+y}
20326then :
20327  withval=$with_libudev; if test x$withval = xno; then libudev_check=no; fi
20328
20329fi
20330
20331	if test $libudev_check != no; then
20332
20333pkg_failed=no
20334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
20335printf %s "checking for LIBUDEV... " >&6; }
20336
20337if test -n "$LIBUDEV_CFLAGS"; then
20338    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
20339 elif test -n "$PKG_CONFIG"; then
20340    if test -n "$PKG_CONFIG" && \
20341    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20342  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20343  ac_status=$?
20344  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20345  test $ac_status = 0; }; then
20346  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
20347		      test "x$?" != "x0" && pkg_failed=yes
20348else
20349  pkg_failed=yes
20350fi
20351 else
20352    pkg_failed=untried
20353fi
20354if test -n "$LIBUDEV_LIBS"; then
20355    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
20356 elif test -n "$PKG_CONFIG"; then
20357    if test -n "$PKG_CONFIG" && \
20358    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
20359  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
20360  ac_status=$?
20361  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20362  test $ac_status = 0; }; then
20363  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
20364		      test "x$?" != "x0" && pkg_failed=yes
20365else
20366  pkg_failed=yes
20367fi
20368 else
20369    pkg_failed=untried
20370fi
20371
20372
20373
20374if test $pkg_failed = yes; then
20375   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20376printf "%s\n" "no" >&6; }
20377
20378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20379        _pkg_short_errors_supported=yes
20380else
20381        _pkg_short_errors_supported=no
20382fi
20383        if test $_pkg_short_errors_supported = yes; then
20384	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
20385        else
20386	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
20387        fi
20388	# Put the nasty error message in config.log where it belongs
20389	echo "$LIBUDEV_PKG_ERRORS" >&5
20390
20391	as_fn_error $? "Package requirements (libudev) were not met:
20392
20393$LIBUDEV_PKG_ERRORS
20394
20395Consider adjusting the PKG_CONFIG_PATH environment variable if you
20396installed software in a non-standard prefix.
20397
20398Alternatively, you may set the environment variables LIBUDEV_CFLAGS
20399and LIBUDEV_LIBS to avoid the need to call pkg-config.
20400See the pkg-config man page for more details." "$LINENO" 5
20401elif test $pkg_failed = untried; then
20402     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20403printf "%s\n" "no" >&6; }
20404	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20405printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20406as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20407is in your PATH or set the PKG_CONFIG environment variable to the full
20408path to pkg-config.
20409
20410Alternatively, you may set the environment variables LIBUDEV_CFLAGS
20411and LIBUDEV_LIBS to avoid the need to call pkg-config.
20412See the pkg-config man page for more details.
20413
20414To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20415See \`config.log' for more details" "$LINENO" 5; }
20416else
20417	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
20418	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
20419        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20420printf "%s\n" "yes" >&6; }
20421
20422printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h
20423
20424fi;
20425        fi
20426else
20427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20428printf "%s\n" "no" >&6; }
20429fi
20430
20431 if test "x$BUILD_VMWGFX" = xyes; then
20432  BUILD_VMWGFX_TRUE=
20433  BUILD_VMWGFX_FALSE='#'
20434else
20435  BUILD_VMWGFX_TRUE='#'
20436  BUILD_VMWGFX_FALSE=
20437fi
20438
20439
20440ac_config_files="$ac_config_files Makefile man/Makefile saa/Makefile vmwgfx/Makefile src/Makefile vmwarectrl/Makefile"
20441
20442
20443cat >confcache <<\_ACEOF
20444# This file is a shell script that caches the results of configure
20445# tests run on this system so they can be shared between configure
20446# scripts and configure runs, see configure's option --config-cache.
20447# It is not useful on other systems.  If it contains results you don't
20448# want to keep, you may remove or edit it.
20449#
20450# config.status only pays attention to the cache file if you give it
20451# the --recheck option to rerun configure.
20452#
20453# `ac_cv_env_foo' variables (set or unset) will be overridden when
20454# loading this file, other *unset* `ac_cv_foo' will be assigned the
20455# following values.
20456
20457_ACEOF
20458
20459# The following way of writing the cache mishandles newlines in values,
20460# but we know of no workaround that is simple, portable, and efficient.
20461# So, we kill variables containing newlines.
20462# Ultrix sh set writes to stderr and can't be redirected directly,
20463# and sets the high bit in the cache file unless we assign to the vars.
20464(
20465  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20466    eval ac_val=\$$ac_var
20467    case $ac_val in #(
20468    *${as_nl}*)
20469      case $ac_var in #(
20470      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20471printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20472      esac
20473      case $ac_var in #(
20474      _ | IFS | as_nl) ;; #(
20475      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20476      *) { eval $ac_var=; unset $ac_var;} ;;
20477      esac ;;
20478    esac
20479  done
20480
20481  (set) 2>&1 |
20482    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20483    *${as_nl}ac_space=\ *)
20484      # `set' does not quote correctly, so add quotes: double-quote
20485      # substitution turns \\\\ into \\, and sed turns \\ into \.
20486      sed -n \
20487	"s/'/'\\\\''/g;
20488	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20489      ;; #(
20490    *)
20491      # `set' quotes correctly as required by POSIX, so do not add quotes.
20492      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20493      ;;
20494    esac |
20495    sort
20496) |
20497  sed '
20498     /^ac_cv_env_/b end
20499     t clear
20500     :clear
20501     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20502     t end
20503     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20504     :end' >>confcache
20505if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20506  if test -w "$cache_file"; then
20507    if test "x$cache_file" != "x/dev/null"; then
20508      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20509printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20510      if test ! -f "$cache_file" || test -h "$cache_file"; then
20511	cat confcache >"$cache_file"
20512      else
20513        case $cache_file in #(
20514        */* | ?:*)
20515	  mv -f confcache "$cache_file"$$ &&
20516	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20517        *)
20518	  mv -f confcache "$cache_file" ;;
20519	esac
20520      fi
20521    fi
20522  else
20523    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20524printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20525  fi
20526fi
20527rm -f confcache
20528
20529test "x$prefix" = xNONE && prefix=$ac_default_prefix
20530# Let make expand exec_prefix.
20531test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20532
20533DEFS=-DHAVE_CONFIG_H
20534
20535ac_libobjs=
20536ac_ltlibobjs=
20537U=
20538for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20539  # 1. Remove the extension, and $U if already installed.
20540  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20541  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20542  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20543  #    will be set to the directory where LIBOBJS objects are built.
20544  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20545  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20546done
20547LIBOBJS=$ac_libobjs
20548
20549LTLIBOBJS=$ac_ltlibobjs
20550
20551
20552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20553printf %s "checking that generated files are newer than configure... " >&6; }
20554   if test -n "$am_sleep_pid"; then
20555     # Hide warnings about reused PIDs.
20556     wait $am_sleep_pid 2>/dev/null
20557   fi
20558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20559printf "%s\n" "done" >&6; }
20560if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20561  as_fn_error $? "conditional \"AMDEP\" was never defined.
20562Usually this means the macro was only invoked conditionally." "$LINENO" 5
20563fi
20564if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20565  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20566Usually this means the macro was only invoked conditionally." "$LINENO" 5
20567fi
20568 if test -n "$EXEEXT"; then
20569  am__EXEEXT_TRUE=
20570  am__EXEEXT_FALSE='#'
20571else
20572  am__EXEEXT_TRUE='#'
20573  am__EXEEXT_FALSE=
20574fi
20575
20576if test -z "${BUILD_VMWARECTRL_TRUE}" && test -z "${BUILD_VMWARECTRL_FALSE}"; then
20577  as_fn_error $? "conditional \"BUILD_VMWARECTRL\" was never defined.
20578Usually this means the macro was only invoked conditionally." "$LINENO" 5
20579fi
20580if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
20581  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
20582Usually this means the macro was only invoked conditionally." "$LINENO" 5
20583fi
20584if test -z "${BUILD_VMWGFX_TRUE}" && test -z "${BUILD_VMWGFX_FALSE}"; then
20585  as_fn_error $? "conditional \"BUILD_VMWGFX\" was never defined.
20586Usually this means the macro was only invoked conditionally." "$LINENO" 5
20587fi
20588
20589: "${CONFIG_STATUS=./config.status}"
20590ac_write_fail=0
20591ac_clean_files_save=$ac_clean_files
20592ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20594printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20595as_write_fail=0
20596cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20597#! $SHELL
20598# Generated by $as_me.
20599# Run this file to recreate the current configuration.
20600# Compiler output produced by configure, useful for debugging
20601# configure, is in config.log if it exists.
20602
20603debug=false
20604ac_cs_recheck=false
20605ac_cs_silent=false
20606
20607SHELL=\${CONFIG_SHELL-$SHELL}
20608export SHELL
20609_ASEOF
20610cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20611## -------------------- ##
20612## M4sh Initialization. ##
20613## -------------------- ##
20614
20615# Be more Bourne compatible
20616DUALCASE=1; export DUALCASE # for MKS sh
20617as_nop=:
20618if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20619then :
20620  emulate sh
20621  NULLCMD=:
20622  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20623  # is contrary to our usage.  Disable this feature.
20624  alias -g '${1+"$@"}'='"$@"'
20625  setopt NO_GLOB_SUBST
20626else $as_nop
20627  case `(set -o) 2>/dev/null` in #(
20628  *posix*) :
20629    set -o posix ;; #(
20630  *) :
20631     ;;
20632esac
20633fi
20634
20635
20636
20637# Reset variables that may have inherited troublesome values from
20638# the environment.
20639
20640# IFS needs to be set, to space, tab, and newline, in precisely that order.
20641# (If _AS_PATH_WALK were called with IFS unset, it would have the
20642# side effect of setting IFS to empty, thus disabling word splitting.)
20643# Quoting is to prevent editors from complaining about space-tab.
20644as_nl='
20645'
20646export as_nl
20647IFS=" ""	$as_nl"
20648
20649PS1='$ '
20650PS2='> '
20651PS4='+ '
20652
20653# Ensure predictable behavior from utilities with locale-dependent output.
20654LC_ALL=C
20655export LC_ALL
20656LANGUAGE=C
20657export LANGUAGE
20658
20659# We cannot yet rely on "unset" to work, but we need these variables
20660# to be unset--not just set to an empty or harmless value--now, to
20661# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20662# also avoids known problems related to "unset" and subshell syntax
20663# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20664for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20665do eval test \${$as_var+y} \
20666  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20667done
20668
20669# Ensure that fds 0, 1, and 2 are open.
20670if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20671if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20672if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20673
20674# The user is always right.
20675if ${PATH_SEPARATOR+false} :; then
20676  PATH_SEPARATOR=:
20677  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20678    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20679      PATH_SEPARATOR=';'
20680  }
20681fi
20682
20683
20684# Find who we are.  Look in the path if we contain no directory separator.
20685as_myself=
20686case $0 in #((
20687  *[\\/]* ) as_myself=$0 ;;
20688  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20689for as_dir in $PATH
20690do
20691  IFS=$as_save_IFS
20692  case $as_dir in #(((
20693    '') as_dir=./ ;;
20694    */) ;;
20695    *) as_dir=$as_dir/ ;;
20696  esac
20697    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20698  done
20699IFS=$as_save_IFS
20700
20701     ;;
20702esac
20703# We did not find ourselves, most probably we were run as `sh COMMAND'
20704# in which case we are not to be found in the path.
20705if test "x$as_myself" = x; then
20706  as_myself=$0
20707fi
20708if test ! -f "$as_myself"; then
20709  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20710  exit 1
20711fi
20712
20713
20714
20715# as_fn_error STATUS ERROR [LINENO LOG_FD]
20716# ----------------------------------------
20717# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20718# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20719# script with STATUS, using 1 if that was 0.
20720as_fn_error ()
20721{
20722  as_status=$1; test $as_status -eq 0 && as_status=1
20723  if test "$4"; then
20724    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20725    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20726  fi
20727  printf "%s\n" "$as_me: error: $2" >&2
20728  as_fn_exit $as_status
20729} # as_fn_error
20730
20731
20732
20733# as_fn_set_status STATUS
20734# -----------------------
20735# Set $? to STATUS, without forking.
20736as_fn_set_status ()
20737{
20738  return $1
20739} # as_fn_set_status
20740
20741# as_fn_exit STATUS
20742# -----------------
20743# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20744as_fn_exit ()
20745{
20746  set +e
20747  as_fn_set_status $1
20748  exit $1
20749} # as_fn_exit
20750
20751# as_fn_unset VAR
20752# ---------------
20753# Portably unset VAR.
20754as_fn_unset ()
20755{
20756  { eval $1=; unset $1;}
20757}
20758as_unset=as_fn_unset
20759
20760# as_fn_append VAR VALUE
20761# ----------------------
20762# Append the text in VALUE to the end of the definition contained in VAR. Take
20763# advantage of any shell optimizations that allow amortized linear growth over
20764# repeated appends, instead of the typical quadratic growth present in naive
20765# implementations.
20766if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20767then :
20768  eval 'as_fn_append ()
20769  {
20770    eval $1+=\$2
20771  }'
20772else $as_nop
20773  as_fn_append ()
20774  {
20775    eval $1=\$$1\$2
20776  }
20777fi # as_fn_append
20778
20779# as_fn_arith ARG...
20780# ------------------
20781# Perform arithmetic evaluation on the ARGs, and store the result in the
20782# global $as_val. Take advantage of shells that can avoid forks. The arguments
20783# must be portable across $(()) and expr.
20784if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20785then :
20786  eval 'as_fn_arith ()
20787  {
20788    as_val=$(( $* ))
20789  }'
20790else $as_nop
20791  as_fn_arith ()
20792  {
20793    as_val=`expr "$@" || test $? -eq 1`
20794  }
20795fi # as_fn_arith
20796
20797
20798if expr a : '\(a\)' >/dev/null 2>&1 &&
20799   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20800  as_expr=expr
20801else
20802  as_expr=false
20803fi
20804
20805if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20806  as_basename=basename
20807else
20808  as_basename=false
20809fi
20810
20811if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20812  as_dirname=dirname
20813else
20814  as_dirname=false
20815fi
20816
20817as_me=`$as_basename -- "$0" ||
20818$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20819	 X"$0" : 'X\(//\)$' \| \
20820	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20821printf "%s\n" X/"$0" |
20822    sed '/^.*\/\([^/][^/]*\)\/*$/{
20823	    s//\1/
20824	    q
20825	  }
20826	  /^X\/\(\/\/\)$/{
20827	    s//\1/
20828	    q
20829	  }
20830	  /^X\/\(\/\).*/{
20831	    s//\1/
20832	    q
20833	  }
20834	  s/.*/./; q'`
20835
20836# Avoid depending upon Character Ranges.
20837as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20838as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20839as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20840as_cr_digits='0123456789'
20841as_cr_alnum=$as_cr_Letters$as_cr_digits
20842
20843
20844# Determine whether it's possible to make 'echo' print without a newline.
20845# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20846# for compatibility with existing Makefiles.
20847ECHO_C= ECHO_N= ECHO_T=
20848case `echo -n x` in #(((((
20849-n*)
20850  case `echo 'xy\c'` in
20851  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20852  xy)  ECHO_C='\c';;
20853  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20854       ECHO_T='	';;
20855  esac;;
20856*)
20857  ECHO_N='-n';;
20858esac
20859
20860# For backward compatibility with old third-party macros, we provide
20861# the shell variables $as_echo and $as_echo_n.  New code should use
20862# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20863as_echo='printf %s\n'
20864as_echo_n='printf %s'
20865
20866rm -f conf$$ conf$$.exe conf$$.file
20867if test -d conf$$.dir; then
20868  rm -f conf$$.dir/conf$$.file
20869else
20870  rm -f conf$$.dir
20871  mkdir conf$$.dir 2>/dev/null
20872fi
20873if (echo >conf$$.file) 2>/dev/null; then
20874  if ln -s conf$$.file conf$$ 2>/dev/null; then
20875    as_ln_s='ln -s'
20876    # ... but there are two gotchas:
20877    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20878    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20879    # In both cases, we have to default to `cp -pR'.
20880    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20881      as_ln_s='cp -pR'
20882  elif ln conf$$.file conf$$ 2>/dev/null; then
20883    as_ln_s=ln
20884  else
20885    as_ln_s='cp -pR'
20886  fi
20887else
20888  as_ln_s='cp -pR'
20889fi
20890rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20891rmdir conf$$.dir 2>/dev/null
20892
20893
20894# as_fn_mkdir_p
20895# -------------
20896# Create "$as_dir" as a directory, including parents if necessary.
20897as_fn_mkdir_p ()
20898{
20899
20900  case $as_dir in #(
20901  -*) as_dir=./$as_dir;;
20902  esac
20903  test -d "$as_dir" || eval $as_mkdir_p || {
20904    as_dirs=
20905    while :; do
20906      case $as_dir in #(
20907      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20908      *) as_qdir=$as_dir;;
20909      esac
20910      as_dirs="'$as_qdir' $as_dirs"
20911      as_dir=`$as_dirname -- "$as_dir" ||
20912$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20913	 X"$as_dir" : 'X\(//\)[^/]' \| \
20914	 X"$as_dir" : 'X\(//\)$' \| \
20915	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20916printf "%s\n" X"$as_dir" |
20917    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20918	    s//\1/
20919	    q
20920	  }
20921	  /^X\(\/\/\)[^/].*/{
20922	    s//\1/
20923	    q
20924	  }
20925	  /^X\(\/\/\)$/{
20926	    s//\1/
20927	    q
20928	  }
20929	  /^X\(\/\).*/{
20930	    s//\1/
20931	    q
20932	  }
20933	  s/.*/./; q'`
20934      test -d "$as_dir" && break
20935    done
20936    test -z "$as_dirs" || eval "mkdir $as_dirs"
20937  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20938
20939
20940} # as_fn_mkdir_p
20941if mkdir -p . 2>/dev/null; then
20942  as_mkdir_p='mkdir -p "$as_dir"'
20943else
20944  test -d ./-p && rmdir ./-p
20945  as_mkdir_p=false
20946fi
20947
20948
20949# as_fn_executable_p FILE
20950# -----------------------
20951# Test if FILE is an executable regular file.
20952as_fn_executable_p ()
20953{
20954  test -f "$1" && test -x "$1"
20955} # as_fn_executable_p
20956as_test_x='test -x'
20957as_executable_p=as_fn_executable_p
20958
20959# Sed expression to map a string onto a valid CPP name.
20960as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20961
20962# Sed expression to map a string onto a valid variable name.
20963as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20964
20965
20966exec 6>&1
20967## ----------------------------------- ##
20968## Main body of $CONFIG_STATUS script. ##
20969## ----------------------------------- ##
20970_ASEOF
20971test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20972
20973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20974# Save the log message, to keep $0 and so on meaningful, and to
20975# report actual input values of CONFIG_FILES etc. instead of their
20976# values after options handling.
20977ac_log="
20978This file was extended by xf86-video-vmware $as_me 13.4.0, which was
20979generated by GNU Autoconf 2.71.  Invocation command line was
20980
20981  CONFIG_FILES    = $CONFIG_FILES
20982  CONFIG_HEADERS  = $CONFIG_HEADERS
20983  CONFIG_LINKS    = $CONFIG_LINKS
20984  CONFIG_COMMANDS = $CONFIG_COMMANDS
20985  $ $0 $@
20986
20987on `(hostname || uname -n) 2>/dev/null | sed 1q`
20988"
20989
20990_ACEOF
20991
20992case $ac_config_files in *"
20993"*) set x $ac_config_files; shift; ac_config_files=$*;;
20994esac
20995
20996case $ac_config_headers in *"
20997"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20998esac
20999
21000
21001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21002# Files that config.status was made for.
21003config_files="$ac_config_files"
21004config_headers="$ac_config_headers"
21005config_commands="$ac_config_commands"
21006
21007_ACEOF
21008
21009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21010ac_cs_usage="\
21011\`$as_me' instantiates files and other configuration actions
21012from templates according to the current configuration.  Unless the files
21013and actions are specified as TAGs, all are instantiated by default.
21014
21015Usage: $0 [OPTION]... [TAG]...
21016
21017  -h, --help       print this help, then exit
21018  -V, --version    print version number and configuration settings, then exit
21019      --config     print configuration, then exit
21020  -q, --quiet, --silent
21021                   do not print progress messages
21022  -d, --debug      don't remove temporary files
21023      --recheck    update $as_me by reconfiguring in the same conditions
21024      --file=FILE[:TEMPLATE]
21025                   instantiate the configuration file FILE
21026      --header=FILE[:TEMPLATE]
21027                   instantiate the configuration header FILE
21028
21029Configuration files:
21030$config_files
21031
21032Configuration headers:
21033$config_headers
21034
21035Configuration commands:
21036$config_commands
21037
21038Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
21039
21040_ACEOF
21041ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21042ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21044ac_cs_config='$ac_cs_config_escaped'
21045ac_cs_version="\\
21046xf86-video-vmware config.status 13.4.0
21047configured by $0, generated by GNU Autoconf 2.71,
21048  with options \\"\$ac_cs_config\\"
21049
21050Copyright (C) 2021 Free Software Foundation, Inc.
21051This config.status script is free software; the Free Software Foundation
21052gives unlimited permission to copy, distribute and modify it."
21053
21054ac_pwd='$ac_pwd'
21055srcdir='$srcdir'
21056INSTALL='$INSTALL'
21057MKDIR_P='$MKDIR_P'
21058AWK='$AWK'
21059test -n "\$AWK" || AWK=awk
21060_ACEOF
21061
21062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21063# The default lists apply if the user does not specify any file.
21064ac_need_defaults=:
21065while test $# != 0
21066do
21067  case $1 in
21068  --*=?*)
21069    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21070    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21071    ac_shift=:
21072    ;;
21073  --*=)
21074    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21075    ac_optarg=
21076    ac_shift=:
21077    ;;
21078  *)
21079    ac_option=$1
21080    ac_optarg=$2
21081    ac_shift=shift
21082    ;;
21083  esac
21084
21085  case $ac_option in
21086  # Handling of the options.
21087  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21088    ac_cs_recheck=: ;;
21089  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21090    printf "%s\n" "$ac_cs_version"; exit ;;
21091  --config | --confi | --conf | --con | --co | --c )
21092    printf "%s\n" "$ac_cs_config"; exit ;;
21093  --debug | --debu | --deb | --de | --d | -d )
21094    debug=: ;;
21095  --file | --fil | --fi | --f )
21096    $ac_shift
21097    case $ac_optarg in
21098    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21099    '') as_fn_error $? "missing file argument" ;;
21100    esac
21101    as_fn_append CONFIG_FILES " '$ac_optarg'"
21102    ac_need_defaults=false;;
21103  --header | --heade | --head | --hea )
21104    $ac_shift
21105    case $ac_optarg in
21106    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21107    esac
21108    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21109    ac_need_defaults=false;;
21110  --he | --h)
21111    # Conflict between --help and --header
21112    as_fn_error $? "ambiguous option: \`$1'
21113Try \`$0 --help' for more information.";;
21114  --help | --hel | -h )
21115    printf "%s\n" "$ac_cs_usage"; exit ;;
21116  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21117  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21118    ac_cs_silent=: ;;
21119
21120  # This is an error.
21121  -*) as_fn_error $? "unrecognized option: \`$1'
21122Try \`$0 --help' for more information." ;;
21123
21124  *) as_fn_append ac_config_targets " $1"
21125     ac_need_defaults=false ;;
21126
21127  esac
21128  shift
21129done
21130
21131ac_configure_extra_args=
21132
21133if $ac_cs_silent; then
21134  exec 6>/dev/null
21135  ac_configure_extra_args="$ac_configure_extra_args --silent"
21136fi
21137
21138_ACEOF
21139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21140if \$ac_cs_recheck; then
21141  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21142  shift
21143  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21144  CONFIG_SHELL='$SHELL'
21145  export CONFIG_SHELL
21146  exec "\$@"
21147fi
21148
21149_ACEOF
21150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21151exec 5>>config.log
21152{
21153  echo
21154  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21155## Running $as_me. ##
21156_ASBOX
21157  printf "%s\n" "$ac_log"
21158} >&5
21159
21160_ACEOF
21161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21162#
21163# INIT-COMMANDS
21164#
21165AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21166
21167
21168# The HP-UX ksh and POSIX shell print the target directory to stdout
21169# if CDPATH is set.
21170(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21171
21172sed_quote_subst='$sed_quote_subst'
21173double_quote_subst='$double_quote_subst'
21174delay_variable_subst='$delay_variable_subst'
21175enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21176macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21177macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21178enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21179pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21180enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21181shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21182SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21183ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21184PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21185host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21186host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21187host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21188build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21189build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21190build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21191SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21192Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21193GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21194EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21195FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21196LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21197NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21198LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21199max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21200ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21201exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21202lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21203lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21204lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21205lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21206lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21207reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21208reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21209FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21210OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21211deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21212file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21213file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21214want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21215DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21216sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21217AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21218lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21219AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21220archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21221STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21222RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21223old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21224old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21225old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21226lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21227CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21228CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21229compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21230GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21231lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21232lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21233lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21234lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21235lt_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"`'
21236lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21237nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21238lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21239lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21240objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21241MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21242lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21243lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21244lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21245lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21246lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21247need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21248MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21249DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21250NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21251LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21252OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21253OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21254libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21255shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21256extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21257archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21258enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21259export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21260whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21261compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21262old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21263old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21264archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21265archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21266module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21267module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21268with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21269allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21270no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21271hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21272hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21273hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21274hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21275hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21276hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21277hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21278inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21279link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21280always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21281export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21282exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21283include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21284prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21285postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21286file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21287variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21288need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21289need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21290version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21291runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21292shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21293shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21294libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21295library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21296soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21297install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21298postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21299postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21300finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21301finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21302hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21303sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21304configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21305configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21306hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21307enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21308enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21309enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21310old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21311striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21312
21313LTCC='$LTCC'
21314LTCFLAGS='$LTCFLAGS'
21315compiler='$compiler_DEFAULT'
21316
21317# A function that is used when there is no print builtin or printf.
21318func_fallback_echo ()
21319{
21320  eval 'cat <<_LTECHO_EOF
21321\$1
21322_LTECHO_EOF'
21323}
21324
21325# Quote evaled strings.
21326for var in SHELL \
21327ECHO \
21328PATH_SEPARATOR \
21329SED \
21330GREP \
21331EGREP \
21332FGREP \
21333LD \
21334NM \
21335LN_S \
21336lt_SP2NL \
21337lt_NL2SP \
21338reload_flag \
21339FILECMD \
21340OBJDUMP \
21341deplibs_check_method \
21342file_magic_cmd \
21343file_magic_glob \
21344want_nocaseglob \
21345DLLTOOL \
21346sharedlib_from_linklib_cmd \
21347AR \
21348archiver_list_spec \
21349STRIP \
21350RANLIB \
21351CC \
21352CFLAGS \
21353compiler \
21354lt_cv_sys_global_symbol_pipe \
21355lt_cv_sys_global_symbol_to_cdecl \
21356lt_cv_sys_global_symbol_to_import \
21357lt_cv_sys_global_symbol_to_c_name_address \
21358lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21359lt_cv_nm_interface \
21360nm_file_list_spec \
21361lt_cv_truncate_bin \
21362lt_prog_compiler_no_builtin_flag \
21363lt_prog_compiler_pic \
21364lt_prog_compiler_wl \
21365lt_prog_compiler_static \
21366lt_cv_prog_compiler_c_o \
21367need_locks \
21368MANIFEST_TOOL \
21369DSYMUTIL \
21370NMEDIT \
21371LIPO \
21372OTOOL \
21373OTOOL64 \
21374shrext_cmds \
21375export_dynamic_flag_spec \
21376whole_archive_flag_spec \
21377compiler_needs_object \
21378with_gnu_ld \
21379allow_undefined_flag \
21380no_undefined_flag \
21381hardcode_libdir_flag_spec \
21382hardcode_libdir_separator \
21383exclude_expsyms \
21384include_expsyms \
21385file_list_spec \
21386variables_saved_for_relink \
21387libname_spec \
21388library_names_spec \
21389soname_spec \
21390install_override_mode \
21391finish_eval \
21392old_striplib \
21393striplib; do
21394    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21395    *[\\\\\\\`\\"\\\$]*)
21396      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21397      ;;
21398    *)
21399      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21400      ;;
21401    esac
21402done
21403
21404# Double-quote double-evaled strings.
21405for var in reload_cmds \
21406old_postinstall_cmds \
21407old_postuninstall_cmds \
21408old_archive_cmds \
21409extract_expsyms_cmds \
21410old_archive_from_new_cmds \
21411old_archive_from_expsyms_cmds \
21412archive_cmds \
21413archive_expsym_cmds \
21414module_cmds \
21415module_expsym_cmds \
21416export_symbols_cmds \
21417prelink_cmds \
21418postlink_cmds \
21419postinstall_cmds \
21420postuninstall_cmds \
21421finish_cmds \
21422sys_lib_search_path_spec \
21423configure_time_dlsearch_path \
21424configure_time_lt_sys_library_path; do
21425    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21426    *[\\\\\\\`\\"\\\$]*)
21427      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21428      ;;
21429    *)
21430      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21431      ;;
21432    esac
21433done
21434
21435ac_aux_dir='$ac_aux_dir'
21436
21437# See if we are running on zsh, and set the options that allow our
21438# commands through without removal of \ escapes INIT.
21439if test -n "\${ZSH_VERSION+set}"; then
21440   setopt NO_GLOB_SUBST
21441fi
21442
21443
21444    PACKAGE='$PACKAGE'
21445    VERSION='$VERSION'
21446    RM='$RM'
21447    ofile='$ofile'
21448
21449
21450
21451
21452_ACEOF
21453
21454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21455
21456# Handling of arguments.
21457for ac_config_target in $ac_config_targets
21458do
21459  case $ac_config_target in
21460    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21461    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21462    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21463    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21464    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21465    "saa/Makefile") CONFIG_FILES="$CONFIG_FILES saa/Makefile" ;;
21466    "vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES vmwgfx/Makefile" ;;
21467    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21468    "vmwarectrl/Makefile") CONFIG_FILES="$CONFIG_FILES vmwarectrl/Makefile" ;;
21469
21470  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21471  esac
21472done
21473
21474
21475# If the user did not use the arguments to specify the items to instantiate,
21476# then the envvar interface is used.  Set only those that are not.
21477# We use the long form for the default assignment because of an extremely
21478# bizarre bug on SunOS 4.1.3.
21479if $ac_need_defaults; then
21480  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21481  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21482  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21483fi
21484
21485# Have a temporary directory for convenience.  Make it in the build tree
21486# simply because there is no reason against having it here, and in addition,
21487# creating and moving files from /tmp can sometimes cause problems.
21488# Hook for its removal unless debugging.
21489# Note that there is a small window in which the directory will not be cleaned:
21490# after its creation but before its name has been assigned to `$tmp'.
21491$debug ||
21492{
21493  tmp= ac_tmp=
21494  trap 'exit_status=$?
21495  : "${ac_tmp:=$tmp}"
21496  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21497' 0
21498  trap 'as_fn_exit 1' 1 2 13 15
21499}
21500# Create a (secure) tmp directory for tmp files.
21501
21502{
21503  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21504  test -d "$tmp"
21505}  ||
21506{
21507  tmp=./conf$$-$RANDOM
21508  (umask 077 && mkdir "$tmp")
21509} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21510ac_tmp=$tmp
21511
21512# Set up the scripts for CONFIG_FILES section.
21513# No need to generate them if there are no CONFIG_FILES.
21514# This happens for instance with `./config.status config.h'.
21515if test -n "$CONFIG_FILES"; then
21516
21517
21518ac_cr=`echo X | tr X '\015'`
21519# On cygwin, bash can eat \r inside `` if the user requested igncr.
21520# But we know of no other shell where ac_cr would be empty at this
21521# point, so we can use a bashism as a fallback.
21522if test "x$ac_cr" = x; then
21523  eval ac_cr=\$\'\\r\'
21524fi
21525ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21526if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21527  ac_cs_awk_cr='\\r'
21528else
21529  ac_cs_awk_cr=$ac_cr
21530fi
21531
21532echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21533_ACEOF
21534
21535
21536{
21537  echo "cat >conf$$subs.awk <<_ACEOF" &&
21538  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21539  echo "_ACEOF"
21540} >conf$$subs.sh ||
21541  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21542ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21543ac_delim='%!_!# '
21544for ac_last_try in false false false false false :; do
21545  . ./conf$$subs.sh ||
21546    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21547
21548  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21549  if test $ac_delim_n = $ac_delim_num; then
21550    break
21551  elif $ac_last_try; then
21552    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21553  else
21554    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21555  fi
21556done
21557rm -f conf$$subs.sh
21558
21559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21560cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21561_ACEOF
21562sed -n '
21563h
21564s/^/S["/; s/!.*/"]=/
21565p
21566g
21567s/^[^!]*!//
21568:repl
21569t repl
21570s/'"$ac_delim"'$//
21571t delim
21572:nl
21573h
21574s/\(.\{148\}\)..*/\1/
21575t more1
21576s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21577p
21578n
21579b repl
21580:more1
21581s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21582p
21583g
21584s/.\{148\}//
21585t nl
21586:delim
21587h
21588s/\(.\{148\}\)..*/\1/
21589t more2
21590s/["\\]/\\&/g; s/^/"/; s/$/"/
21591p
21592b
21593:more2
21594s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21595p
21596g
21597s/.\{148\}//
21598t delim
21599' <conf$$subs.awk | sed '
21600/^[^""]/{
21601  N
21602  s/\n//
21603}
21604' >>$CONFIG_STATUS || ac_write_fail=1
21605rm -f conf$$subs.awk
21606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21607_ACAWK
21608cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21609  for (key in S) S_is_set[key] = 1
21610  FS = ""
21611
21612}
21613{
21614  line = $ 0
21615  nfields = split(line, field, "@")
21616  substed = 0
21617  len = length(field[1])
21618  for (i = 2; i < nfields; i++) {
21619    key = field[i]
21620    keylen = length(key)
21621    if (S_is_set[key]) {
21622      value = S[key]
21623      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21624      len += length(value) + length(field[++i])
21625      substed = 1
21626    } else
21627      len += 1 + keylen
21628  }
21629
21630  print line
21631}
21632
21633_ACAWK
21634_ACEOF
21635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21636if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21637  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21638else
21639  cat
21640fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21641  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21642_ACEOF
21643
21644# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21645# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21646# trailing colons and then remove the whole line if VPATH becomes empty
21647# (actually we leave an empty line to preserve line numbers).
21648if test "x$srcdir" = x.; then
21649  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21650h
21651s///
21652s/^/:/
21653s/[	 ]*$/:/
21654s/:\$(srcdir):/:/g
21655s/:\${srcdir}:/:/g
21656s/:@srcdir@:/:/g
21657s/^:*//
21658s/:*$//
21659x
21660s/\(=[	 ]*\).*/\1/
21661G
21662s/\n//
21663s/^[^=]*=[	 ]*$//
21664}'
21665fi
21666
21667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21668fi # test -n "$CONFIG_FILES"
21669
21670# Set up the scripts for CONFIG_HEADERS section.
21671# No need to generate them if there are no CONFIG_HEADERS.
21672# This happens for instance with `./config.status Makefile'.
21673if test -n "$CONFIG_HEADERS"; then
21674cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21675BEGIN {
21676_ACEOF
21677
21678# Transform confdefs.h into an awk script `defines.awk', embedded as
21679# here-document in config.status, that substitutes the proper values into
21680# config.h.in to produce config.h.
21681
21682# Create a delimiter string that does not exist in confdefs.h, to ease
21683# handling of long lines.
21684ac_delim='%!_!# '
21685for ac_last_try in false false :; do
21686  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21687  if test -z "$ac_tt"; then
21688    break
21689  elif $ac_last_try; then
21690    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21691  else
21692    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21693  fi
21694done
21695
21696# For the awk script, D is an array of macro values keyed by name,
21697# likewise P contains macro parameters if any.  Preserve backslash
21698# newline sequences.
21699
21700ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21701sed -n '
21702s/.\{148\}/&'"$ac_delim"'/g
21703t rset
21704:rset
21705s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21706t def
21707d
21708:def
21709s/\\$//
21710t bsnl
21711s/["\\]/\\&/g
21712s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21713D["\1"]=" \3"/p
21714s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21715d
21716:bsnl
21717s/["\\]/\\&/g
21718s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21719D["\1"]=" \3\\\\\\n"\\/p
21720t cont
21721s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21722t cont
21723d
21724:cont
21725n
21726s/.\{148\}/&'"$ac_delim"'/g
21727t clear
21728:clear
21729s/\\$//
21730t bsnlc
21731s/["\\]/\\&/g; s/^/"/; s/$/"/p
21732d
21733:bsnlc
21734s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21735b cont
21736' <confdefs.h | sed '
21737s/'"$ac_delim"'/"\\\
21738"/g' >>$CONFIG_STATUS || ac_write_fail=1
21739
21740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21741  for (key in D) D_is_set[key] = 1
21742  FS = ""
21743}
21744/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21745  line = \$ 0
21746  split(line, arg, " ")
21747  if (arg[1] == "#") {
21748    defundef = arg[2]
21749    mac1 = arg[3]
21750  } else {
21751    defundef = substr(arg[1], 2)
21752    mac1 = arg[2]
21753  }
21754  split(mac1, mac2, "(") #)
21755  macro = mac2[1]
21756  prefix = substr(line, 1, index(line, defundef) - 1)
21757  if (D_is_set[macro]) {
21758    # Preserve the white space surrounding the "#".
21759    print prefix "define", macro P[macro] D[macro]
21760    next
21761  } else {
21762    # Replace #undef with comments.  This is necessary, for example,
21763    # in the case of _POSIX_SOURCE, which is predefined and required
21764    # on some systems where configure will not decide to define it.
21765    if (defundef == "undef") {
21766      print "/*", prefix defundef, macro, "*/"
21767      next
21768    }
21769  }
21770}
21771{ print }
21772_ACAWK
21773_ACEOF
21774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21775  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21776fi # test -n "$CONFIG_HEADERS"
21777
21778
21779eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21780shift
21781for ac_tag
21782do
21783  case $ac_tag in
21784  :[FHLC]) ac_mode=$ac_tag; continue;;
21785  esac
21786  case $ac_mode$ac_tag in
21787  :[FHL]*:*);;
21788  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21789  :[FH]-) ac_tag=-:-;;
21790  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21791  esac
21792  ac_save_IFS=$IFS
21793  IFS=:
21794  set x $ac_tag
21795  IFS=$ac_save_IFS
21796  shift
21797  ac_file=$1
21798  shift
21799
21800  case $ac_mode in
21801  :L) ac_source=$1;;
21802  :[FH])
21803    ac_file_inputs=
21804    for ac_f
21805    do
21806      case $ac_f in
21807      -) ac_f="$ac_tmp/stdin";;
21808      *) # Look for the file first in the build tree, then in the source tree
21809	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21810	 # because $ac_f cannot contain `:'.
21811	 test -f "$ac_f" ||
21812	   case $ac_f in
21813	   [\\/$]*) false;;
21814	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21815	   esac ||
21816	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21817      esac
21818      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21819      as_fn_append ac_file_inputs " '$ac_f'"
21820    done
21821
21822    # Let's still pretend it is `configure' which instantiates (i.e., don't
21823    # use $as_me), people would be surprised to read:
21824    #    /* config.h.  Generated by config.status.  */
21825    configure_input='Generated from '`
21826	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21827	`' by configure.'
21828    if test x"$ac_file" != x-; then
21829      configure_input="$ac_file.  $configure_input"
21830      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21831printf "%s\n" "$as_me: creating $ac_file" >&6;}
21832    fi
21833    # Neutralize special characters interpreted by sed in replacement strings.
21834    case $configure_input in #(
21835    *\&* | *\|* | *\\* )
21836       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21837       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21838    *) ac_sed_conf_input=$configure_input;;
21839    esac
21840
21841    case $ac_tag in
21842    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21843      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21844    esac
21845    ;;
21846  esac
21847
21848  ac_dir=`$as_dirname -- "$ac_file" ||
21849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21850	 X"$ac_file" : 'X\(//\)[^/]' \| \
21851	 X"$ac_file" : 'X\(//\)$' \| \
21852	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21853printf "%s\n" X"$ac_file" |
21854    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21855	    s//\1/
21856	    q
21857	  }
21858	  /^X\(\/\/\)[^/].*/{
21859	    s//\1/
21860	    q
21861	  }
21862	  /^X\(\/\/\)$/{
21863	    s//\1/
21864	    q
21865	  }
21866	  /^X\(\/\).*/{
21867	    s//\1/
21868	    q
21869	  }
21870	  s/.*/./; q'`
21871  as_dir="$ac_dir"; as_fn_mkdir_p
21872  ac_builddir=.
21873
21874case "$ac_dir" in
21875.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21876*)
21877  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21878  # A ".." for each directory in $ac_dir_suffix.
21879  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21880  case $ac_top_builddir_sub in
21881  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21882  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21883  esac ;;
21884esac
21885ac_abs_top_builddir=$ac_pwd
21886ac_abs_builddir=$ac_pwd$ac_dir_suffix
21887# for backward compatibility:
21888ac_top_builddir=$ac_top_build_prefix
21889
21890case $srcdir in
21891  .)  # We are building in place.
21892    ac_srcdir=.
21893    ac_top_srcdir=$ac_top_builddir_sub
21894    ac_abs_top_srcdir=$ac_pwd ;;
21895  [\\/]* | ?:[\\/]* )  # Absolute name.
21896    ac_srcdir=$srcdir$ac_dir_suffix;
21897    ac_top_srcdir=$srcdir
21898    ac_abs_top_srcdir=$srcdir ;;
21899  *) # Relative name.
21900    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21901    ac_top_srcdir=$ac_top_build_prefix$srcdir
21902    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21903esac
21904ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21905
21906
21907  case $ac_mode in
21908  :F)
21909  #
21910  # CONFIG_FILE
21911  #
21912
21913  case $INSTALL in
21914  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21915  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21916  esac
21917  ac_MKDIR_P=$MKDIR_P
21918  case $MKDIR_P in
21919  [\\/$]* | ?:[\\/]* ) ;;
21920  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21921  esac
21922_ACEOF
21923
21924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21925# If the template does not know about datarootdir, expand it.
21926# FIXME: This hack should be removed a few years after 2.60.
21927ac_datarootdir_hack=; ac_datarootdir_seen=
21928ac_sed_dataroot='
21929/datarootdir/ {
21930  p
21931  q
21932}
21933/@datadir@/p
21934/@docdir@/p
21935/@infodir@/p
21936/@localedir@/p
21937/@mandir@/p'
21938case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21939*datarootdir*) ac_datarootdir_seen=yes;;
21940*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21942printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21943_ACEOF
21944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21945  ac_datarootdir_hack='
21946  s&@datadir@&$datadir&g
21947  s&@docdir@&$docdir&g
21948  s&@infodir@&$infodir&g
21949  s&@localedir@&$localedir&g
21950  s&@mandir@&$mandir&g
21951  s&\\\${datarootdir}&$datarootdir&g' ;;
21952esac
21953_ACEOF
21954
21955# Neutralize VPATH when `$srcdir' = `.'.
21956# Shell code in configure.ac might set extrasub.
21957# FIXME: do we really want to maintain this feature?
21958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21959ac_sed_extra="$ac_vpsub
21960$extrasub
21961_ACEOF
21962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21963:t
21964/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21965s|@configure_input@|$ac_sed_conf_input|;t t
21966s&@top_builddir@&$ac_top_builddir_sub&;t t
21967s&@top_build_prefix@&$ac_top_build_prefix&;t t
21968s&@srcdir@&$ac_srcdir&;t t
21969s&@abs_srcdir@&$ac_abs_srcdir&;t t
21970s&@top_srcdir@&$ac_top_srcdir&;t t
21971s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21972s&@builddir@&$ac_builddir&;t t
21973s&@abs_builddir@&$ac_abs_builddir&;t t
21974s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21975s&@INSTALL@&$ac_INSTALL&;t t
21976s&@MKDIR_P@&$ac_MKDIR_P&;t t
21977$ac_datarootdir_hack
21978"
21979eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21980  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21981
21982test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21983  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21984  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21985      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21987which seems to be undefined.  Please make sure it is defined" >&5
21988printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21989which seems to be undefined.  Please make sure it is defined" >&2;}
21990
21991  rm -f "$ac_tmp/stdin"
21992  case $ac_file in
21993  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21994  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21995  esac \
21996  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21997 ;;
21998  :H)
21999  #
22000  # CONFIG_HEADER
22001  #
22002  if test x"$ac_file" != x-; then
22003    {
22004      printf "%s\n" "/* $configure_input  */" >&1 \
22005      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22006    } >"$ac_tmp/config.h" \
22007      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22008    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22009      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22010printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22011    else
22012      rm -f "$ac_file"
22013      mv "$ac_tmp/config.h" "$ac_file" \
22014	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22015    fi
22016  else
22017    printf "%s\n" "/* $configure_input  */" >&1 \
22018      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22019      || as_fn_error $? "could not create -" "$LINENO" 5
22020  fi
22021# Compute "$ac_file"'s index in $config_headers.
22022_am_arg="$ac_file"
22023_am_stamp_count=1
22024for _am_header in $config_headers :; do
22025  case $_am_header in
22026    $_am_arg | $_am_arg:* )
22027      break ;;
22028    * )
22029      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22030  esac
22031done
22032echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22033$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22034	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22035	 X"$_am_arg" : 'X\(//\)$' \| \
22036	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22037printf "%s\n" X"$_am_arg" |
22038    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22039	    s//\1/
22040	    q
22041	  }
22042	  /^X\(\/\/\)[^/].*/{
22043	    s//\1/
22044	    q
22045	  }
22046	  /^X\(\/\/\)$/{
22047	    s//\1/
22048	    q
22049	  }
22050	  /^X\(\/\).*/{
22051	    s//\1/
22052	    q
22053	  }
22054	  s/.*/./; q'`/stamp-h$_am_stamp_count
22055 ;;
22056
22057  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22058printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22059 ;;
22060  esac
22061
22062
22063  case $ac_file$ac_mode in
22064    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22065  # Older Autoconf quotes --file arguments for eval, but not when files
22066  # are listed without --file.  Let's play safe and only enable the eval
22067  # if we detect the quoting.
22068  # TODO: see whether this extra hack can be removed once we start
22069  # requiring Autoconf 2.70 or later.
22070  case $CONFIG_FILES in #(
22071  *\'*) :
22072    eval set x "$CONFIG_FILES" ;; #(
22073  *) :
22074    set x $CONFIG_FILES ;; #(
22075  *) :
22076     ;;
22077esac
22078  shift
22079  # Used to flag and report bootstrapping failures.
22080  am_rc=0
22081  for am_mf
22082  do
22083    # Strip MF so we end up with the name of the file.
22084    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22085    # Check whether this is an Automake generated Makefile which includes
22086    # dependency-tracking related rules and includes.
22087    # Grep'ing the whole file directly is not great: AIX grep has a line
22088    # limit of 2048, but all sed's we know have understand at least 4000.
22089    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22090      || continue
22091    am_dirpart=`$as_dirname -- "$am_mf" ||
22092$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22093	 X"$am_mf" : 'X\(//\)[^/]' \| \
22094	 X"$am_mf" : 'X\(//\)$' \| \
22095	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22096printf "%s\n" X"$am_mf" |
22097    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22098	    s//\1/
22099	    q
22100	  }
22101	  /^X\(\/\/\)[^/].*/{
22102	    s//\1/
22103	    q
22104	  }
22105	  /^X\(\/\/\)$/{
22106	    s//\1/
22107	    q
22108	  }
22109	  /^X\(\/\).*/{
22110	    s//\1/
22111	    q
22112	  }
22113	  s/.*/./; q'`
22114    am_filepart=`$as_basename -- "$am_mf" ||
22115$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22116	 X"$am_mf" : 'X\(//\)$' \| \
22117	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22118printf "%s\n" X/"$am_mf" |
22119    sed '/^.*\/\([^/][^/]*\)\/*$/{
22120	    s//\1/
22121	    q
22122	  }
22123	  /^X\/\(\/\/\)$/{
22124	    s//\1/
22125	    q
22126	  }
22127	  /^X\/\(\/\).*/{
22128	    s//\1/
22129	    q
22130	  }
22131	  s/.*/./; q'`
22132    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22133      && sed -e '/# am--include-marker/d' "$am_filepart" \
22134        | $MAKE -f - am--depfiles" >&5
22135   (cd "$am_dirpart" \
22136      && sed -e '/# am--include-marker/d' "$am_filepart" \
22137        | $MAKE -f - am--depfiles) >&5 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } || am_rc=$?
22141  done
22142  if test $am_rc -ne 0; then
22143    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22144printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22145as_fn_error $? "Something went wrong bootstrapping makefile fragments
22146    for automatic dependency tracking.  If GNU make was not used, consider
22147    re-running the configure script with MAKE=\"gmake\" (or whatever is
22148    necessary).  You can also try re-running configure with the
22149    '--disable-dependency-tracking' option to at least be able to build
22150    the package (albeit without support for automatic dependency tracking).
22151See \`config.log' for more details" "$LINENO" 5; }
22152  fi
22153  { am_dirpart=; unset am_dirpart;}
22154  { am_filepart=; unset am_filepart;}
22155  { am_mf=; unset am_mf;}
22156  { am_rc=; unset am_rc;}
22157  rm -f conftest-deps.mk
22158}
22159 ;;
22160    "libtool":C)
22161
22162    # See if we are running on zsh, and set the options that allow our
22163    # commands through without removal of \ escapes.
22164    if test -n "${ZSH_VERSION+set}"; then
22165      setopt NO_GLOB_SUBST
22166    fi
22167
22168    cfgfile=${ofile}T
22169    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22170    $RM "$cfgfile"
22171
22172    cat <<_LT_EOF >> "$cfgfile"
22173#! $SHELL
22174# Generated automatically by $as_me ($PACKAGE) $VERSION
22175# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22176# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22177
22178# Provide generalized library-building support services.
22179# Written by Gordon Matzigkeit, 1996
22180
22181# Copyright (C) 2014 Free Software Foundation, Inc.
22182# This is free software; see the source for copying conditions.  There is NO
22183# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22184
22185# GNU Libtool is free software; you can redistribute it and/or modify
22186# it under the terms of the GNU General Public License as published by
22187# the Free Software Foundation; either version 2 of of the License, or
22188# (at your option) any later version.
22189#
22190# As a special exception to the GNU General Public License, if you
22191# distribute this file as part of a program or library that is built
22192# using GNU Libtool, you may include this file under the  same
22193# distribution terms that you use for the rest of that program.
22194#
22195# GNU Libtool is distributed in the hope that it will be useful, but
22196# WITHOUT ANY WARRANTY; without even the implied warranty of
22197# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22198# GNU General Public License for more details.
22199#
22200# You should have received a copy of the GNU General Public License
22201# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22202
22203
22204# The names of the tagged configurations supported by this script.
22205available_tags=''
22206
22207# Configured defaults for sys_lib_dlsearch_path munging.
22208: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22209
22210# ### BEGIN LIBTOOL CONFIG
22211
22212# Whether or not to build static libraries.
22213build_old_libs=$enable_static
22214
22215# Which release of libtool.m4 was used?
22216macro_version=$macro_version
22217macro_revision=$macro_revision
22218
22219# Whether or not to build shared libraries.
22220build_libtool_libs=$enable_shared
22221
22222# What type of objects to build.
22223pic_mode=$pic_mode
22224
22225# Whether or not to optimize for fast installation.
22226fast_install=$enable_fast_install
22227
22228# Shared archive member basename,for filename based shared library versioning on AIX.
22229shared_archive_member_spec=$shared_archive_member_spec
22230
22231# Shell to use when invoking shell scripts.
22232SHELL=$lt_SHELL
22233
22234# An echo program that protects backslashes.
22235ECHO=$lt_ECHO
22236
22237# The PATH separator for the build system.
22238PATH_SEPARATOR=$lt_PATH_SEPARATOR
22239
22240# The host system.
22241host_alias=$host_alias
22242host=$host
22243host_os=$host_os
22244
22245# The build system.
22246build_alias=$build_alias
22247build=$build
22248build_os=$build_os
22249
22250# A sed program that does not truncate output.
22251SED=$lt_SED
22252
22253# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22254Xsed="\$SED -e 1s/^X//"
22255
22256# A grep program that handles long lines.
22257GREP=$lt_GREP
22258
22259# An ERE matcher.
22260EGREP=$lt_EGREP
22261
22262# A literal string matcher.
22263FGREP=$lt_FGREP
22264
22265# A BSD- or MS-compatible name lister.
22266NM=$lt_NM
22267
22268# Whether we need soft or hard links.
22269LN_S=$lt_LN_S
22270
22271# What is the maximum length of a command?
22272max_cmd_len=$max_cmd_len
22273
22274# Object file suffix (normally "o").
22275objext=$ac_objext
22276
22277# Executable file suffix (normally "").
22278exeext=$exeext
22279
22280# whether the shell understands "unset".
22281lt_unset=$lt_unset
22282
22283# turn spaces into newlines.
22284SP2NL=$lt_lt_SP2NL
22285
22286# turn newlines into spaces.
22287NL2SP=$lt_lt_NL2SP
22288
22289# convert \$build file names to \$host format.
22290to_host_file_cmd=$lt_cv_to_host_file_cmd
22291
22292# convert \$build files to toolchain format.
22293to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22294
22295# A file(cmd) program that detects file types.
22296FILECMD=$lt_FILECMD
22297
22298# An object symbol dumper.
22299OBJDUMP=$lt_OBJDUMP
22300
22301# Method to check whether dependent libraries are shared objects.
22302deplibs_check_method=$lt_deplibs_check_method
22303
22304# Command to use when deplibs_check_method = "file_magic".
22305file_magic_cmd=$lt_file_magic_cmd
22306
22307# How to find potential files when deplibs_check_method = "file_magic".
22308file_magic_glob=$lt_file_magic_glob
22309
22310# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22311want_nocaseglob=$lt_want_nocaseglob
22312
22313# DLL creation program.
22314DLLTOOL=$lt_DLLTOOL
22315
22316# Command to associate shared and link libraries.
22317sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22318
22319# The archiver.
22320AR=$lt_AR
22321
22322# Flags to create an archive (by configure).
22323lt_ar_flags=$lt_ar_flags
22324
22325# Flags to create an archive.
22326AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22327
22328# How to feed a file listing to the archiver.
22329archiver_list_spec=$lt_archiver_list_spec
22330
22331# A symbol stripping program.
22332STRIP=$lt_STRIP
22333
22334# Commands used to install an old-style archive.
22335RANLIB=$lt_RANLIB
22336old_postinstall_cmds=$lt_old_postinstall_cmds
22337old_postuninstall_cmds=$lt_old_postuninstall_cmds
22338
22339# Whether to use a lock for old archive extraction.
22340lock_old_archive_extraction=$lock_old_archive_extraction
22341
22342# A C compiler.
22343LTCC=$lt_CC
22344
22345# LTCC compiler flags.
22346LTCFLAGS=$lt_CFLAGS
22347
22348# Take the output of nm and produce a listing of raw symbols and C names.
22349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22350
22351# Transform the output of nm in a proper C declaration.
22352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22353
22354# Transform the output of nm into a list of symbols to manually relocate.
22355global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22356
22357# Transform the output of nm in a C name address pair.
22358global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22359
22360# Transform the output of nm in a C name address pair when lib prefix is needed.
22361global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22362
22363# The name lister interface.
22364nm_interface=$lt_lt_cv_nm_interface
22365
22366# Specify filename containing input files for \$NM.
22367nm_file_list_spec=$lt_nm_file_list_spec
22368
22369# The root where to search for dependent libraries,and where our libraries should be installed.
22370lt_sysroot=$lt_sysroot
22371
22372# Command to truncate a binary pipe.
22373lt_truncate_bin=$lt_lt_cv_truncate_bin
22374
22375# The name of the directory that contains temporary libtool files.
22376objdir=$objdir
22377
22378# Used to examine libraries when file_magic_cmd begins with "file".
22379MAGIC_CMD=$MAGIC_CMD
22380
22381# Must we lock files when doing compilation?
22382need_locks=$lt_need_locks
22383
22384# Manifest tool.
22385MANIFEST_TOOL=$lt_MANIFEST_TOOL
22386
22387# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22388DSYMUTIL=$lt_DSYMUTIL
22389
22390# Tool to change global to local symbols on Mac OS X.
22391NMEDIT=$lt_NMEDIT
22392
22393# Tool to manipulate fat objects and archives on Mac OS X.
22394LIPO=$lt_LIPO
22395
22396# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22397OTOOL=$lt_OTOOL
22398
22399# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22400OTOOL64=$lt_OTOOL64
22401
22402# Old archive suffix (normally "a").
22403libext=$libext
22404
22405# Shared library suffix (normally ".so").
22406shrext_cmds=$lt_shrext_cmds
22407
22408# The commands to extract the exported symbol list from a shared archive.
22409extract_expsyms_cmds=$lt_extract_expsyms_cmds
22410
22411# Variables whose values should be saved in libtool wrapper scripts and
22412# restored at link time.
22413variables_saved_for_relink=$lt_variables_saved_for_relink
22414
22415# Do we need the "lib" prefix for modules?
22416need_lib_prefix=$need_lib_prefix
22417
22418# Do we need a version for libraries?
22419need_version=$need_version
22420
22421# Library versioning type.
22422version_type=$version_type
22423
22424# Shared library runtime path variable.
22425runpath_var=$runpath_var
22426
22427# Shared library path variable.
22428shlibpath_var=$shlibpath_var
22429
22430# Is shlibpath searched before the hard-coded library search path?
22431shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22432
22433# Format of library name prefix.
22434libname_spec=$lt_libname_spec
22435
22436# List of archive names.  First name is the real one, the rest are links.
22437# The last name is the one that the linker finds with -lNAME
22438library_names_spec=$lt_library_names_spec
22439
22440# The coded name of the library, if different from the real name.
22441soname_spec=$lt_soname_spec
22442
22443# Permission mode override for installation of shared libraries.
22444install_override_mode=$lt_install_override_mode
22445
22446# Command to use after installation of a shared archive.
22447postinstall_cmds=$lt_postinstall_cmds
22448
22449# Command to use after uninstallation of a shared archive.
22450postuninstall_cmds=$lt_postuninstall_cmds
22451
22452# Commands used to finish a libtool library installation in a directory.
22453finish_cmds=$lt_finish_cmds
22454
22455# As "finish_cmds", except a single script fragment to be evaled but
22456# not shown.
22457finish_eval=$lt_finish_eval
22458
22459# Whether we should hardcode library paths into libraries.
22460hardcode_into_libs=$hardcode_into_libs
22461
22462# Compile-time system search path for libraries.
22463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22464
22465# Detected run-time system search path for libraries.
22466sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22467
22468# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22469configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22470
22471# Whether dlopen is supported.
22472dlopen_support=$enable_dlopen
22473
22474# Whether dlopen of programs is supported.
22475dlopen_self=$enable_dlopen_self
22476
22477# Whether dlopen of statically linked programs is supported.
22478dlopen_self_static=$enable_dlopen_self_static
22479
22480# Commands to strip libraries.
22481old_striplib=$lt_old_striplib
22482striplib=$lt_striplib
22483
22484
22485# The linker used to build libraries.
22486LD=$lt_LD
22487
22488# How to create reloadable object files.
22489reload_flag=$lt_reload_flag
22490reload_cmds=$lt_reload_cmds
22491
22492# Commands used to build an old-style archive.
22493old_archive_cmds=$lt_old_archive_cmds
22494
22495# A language specific compiler.
22496CC=$lt_compiler
22497
22498# Is the compiler the GNU compiler?
22499with_gcc=$GCC
22500
22501# Compiler flag to turn off builtin functions.
22502no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22503
22504# Additional compiler flags for building library objects.
22505pic_flag=$lt_lt_prog_compiler_pic
22506
22507# How to pass a linker flag through the compiler.
22508wl=$lt_lt_prog_compiler_wl
22509
22510# Compiler flag to prevent dynamic linking.
22511link_static_flag=$lt_lt_prog_compiler_static
22512
22513# Does compiler simultaneously support -c and -o options?
22514compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22515
22516# Whether or not to add -lc for building shared libraries.
22517build_libtool_need_lc=$archive_cmds_need_lc
22518
22519# Whether or not to disallow shared libs when runtime libs are static.
22520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22521
22522# Compiler flag to allow reflexive dlopens.
22523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22524
22525# Compiler flag to generate shared objects directly from archives.
22526whole_archive_flag_spec=$lt_whole_archive_flag_spec
22527
22528# Whether the compiler copes with passing no objects directly.
22529compiler_needs_object=$lt_compiler_needs_object
22530
22531# Create an old-style archive from a shared archive.
22532old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22533
22534# Create a temporary old-style archive to link instead of a shared archive.
22535old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22536
22537# Commands used to build a shared archive.
22538archive_cmds=$lt_archive_cmds
22539archive_expsym_cmds=$lt_archive_expsym_cmds
22540
22541# Commands used to build a loadable module if different from building
22542# a shared archive.
22543module_cmds=$lt_module_cmds
22544module_expsym_cmds=$lt_module_expsym_cmds
22545
22546# Whether we are building with GNU ld or not.
22547with_gnu_ld=$lt_with_gnu_ld
22548
22549# Flag that allows shared libraries with undefined symbols to be built.
22550allow_undefined_flag=$lt_allow_undefined_flag
22551
22552# Flag that enforces no undefined symbols.
22553no_undefined_flag=$lt_no_undefined_flag
22554
22555# Flag to hardcode \$libdir into a binary during linking.
22556# This must work even if \$libdir does not exist
22557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22558
22559# Whether we need a single "-rpath" flag with a separated argument.
22560hardcode_libdir_separator=$lt_hardcode_libdir_separator
22561
22562# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22563# DIR into the resulting binary.
22564hardcode_direct=$hardcode_direct
22565
22566# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22567# DIR into the resulting binary and the resulting library dependency is
22568# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22569# library is relocated.
22570hardcode_direct_absolute=$hardcode_direct_absolute
22571
22572# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22573# into the resulting binary.
22574hardcode_minus_L=$hardcode_minus_L
22575
22576# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22577# into the resulting binary.
22578hardcode_shlibpath_var=$hardcode_shlibpath_var
22579
22580# Set to "yes" if building a shared library automatically hardcodes DIR
22581# into the library and all subsequent libraries and executables linked
22582# against it.
22583hardcode_automatic=$hardcode_automatic
22584
22585# Set to yes if linker adds runtime paths of dependent libraries
22586# to runtime path list.
22587inherit_rpath=$inherit_rpath
22588
22589# Whether libtool must link a program against all its dependency libraries.
22590link_all_deplibs=$link_all_deplibs
22591
22592# Set to "yes" if exported symbols are required.
22593always_export_symbols=$always_export_symbols
22594
22595# The commands to list exported symbols.
22596export_symbols_cmds=$lt_export_symbols_cmds
22597
22598# Symbols that should not be listed in the preloaded symbols.
22599exclude_expsyms=$lt_exclude_expsyms
22600
22601# Symbols that must always be exported.
22602include_expsyms=$lt_include_expsyms
22603
22604# Commands necessary for linking programs (against libraries) with templates.
22605prelink_cmds=$lt_prelink_cmds
22606
22607# Commands necessary for finishing linking programs.
22608postlink_cmds=$lt_postlink_cmds
22609
22610# Specify filename containing input files.
22611file_list_spec=$lt_file_list_spec
22612
22613# How to hardcode a shared library path into an executable.
22614hardcode_action=$hardcode_action
22615
22616# ### END LIBTOOL CONFIG
22617
22618_LT_EOF
22619
22620    cat <<'_LT_EOF' >> "$cfgfile"
22621
22622# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22623
22624# func_munge_path_list VARIABLE PATH
22625# -----------------------------------
22626# VARIABLE is name of variable containing _space_ separated list of
22627# directories to be munged by the contents of PATH, which is string
22628# having a format:
22629# "DIR[:DIR]:"
22630#       string "DIR[ DIR]" will be prepended to VARIABLE
22631# ":DIR[:DIR]"
22632#       string "DIR[ DIR]" will be appended to VARIABLE
22633# "DIRP[:DIRP]::[DIRA:]DIRA"
22634#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22635#       "DIRA[ DIRA]" will be appended to VARIABLE
22636# "DIR[:DIR]"
22637#       VARIABLE will be replaced by "DIR[ DIR]"
22638func_munge_path_list ()
22639{
22640    case x$2 in
22641    x)
22642        ;;
22643    *:)
22644        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22645        ;;
22646    x:*)
22647        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22648        ;;
22649    *::*)
22650        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22651        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22652        ;;
22653    *)
22654        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22655        ;;
22656    esac
22657}
22658
22659
22660# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22661func_cc_basename ()
22662{
22663    for cc_temp in $*""; do
22664      case $cc_temp in
22665        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22666        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22667        \-*) ;;
22668        *) break;;
22669      esac
22670    done
22671    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22672}
22673
22674
22675# ### END FUNCTIONS SHARED WITH CONFIGURE
22676
22677_LT_EOF
22678
22679  case $host_os in
22680  aix3*)
22681    cat <<\_LT_EOF >> "$cfgfile"
22682# AIX sometimes has problems with the GCC collect2 program.  For some
22683# reason, if we set the COLLECT_NAMES environment variable, the problems
22684# vanish in a puff of smoke.
22685if test set != "${COLLECT_NAMES+set}"; then
22686  COLLECT_NAMES=
22687  export COLLECT_NAMES
22688fi
22689_LT_EOF
22690    ;;
22691  esac
22692
22693
22694
22695ltmain=$ac_aux_dir/ltmain.sh
22696
22697
22698  # We use sed instead of cat because bash on DJGPP gets confused if
22699  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22700  # text mode, it properly converts lines to CR/LF.  This bash problem
22701  # is reportedly fixed, but why not run on old versions too?
22702  $SED '$q' "$ltmain" >> "$cfgfile" \
22703     || (rm -f "$cfgfile"; exit 1)
22704
22705   mv -f "$cfgfile" "$ofile" ||
22706    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22707  chmod +x "$ofile"
22708
22709 ;;
22710
22711  esac
22712done # for ac_tag
22713
22714
22715as_fn_exit 0
22716_ACEOF
22717ac_clean_files=$ac_clean_files_save
22718
22719test $ac_write_fail = 0 ||
22720  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22721
22722
22723# configure is writing to config.log, and then calls config.status.
22724# config.status does its own redirection, appending to config.log.
22725# Unfortunately, on DOS this fails, as config.log is still kept open
22726# by configure, so config.status won't be able to write to it; its
22727# output is simply discarded.  So we exec the FD to /dev/null,
22728# effectively closing config.log, so it can be properly (re)opened and
22729# appended to by config.status.  When coming back to configure, we
22730# need to make the FD available again.
22731if test "$no_create" != yes; then
22732  ac_cs_success=:
22733  ac_config_status_args=
22734  test "$silent" = yes &&
22735    ac_config_status_args="$ac_config_status_args --quiet"
22736  exec 5>/dev/null
22737  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22738  exec 5>>config.log
22739  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22740  # would make configure fail if this is the last instruction.
22741  $ac_cs_success || as_fn_exit 1
22742fi
22743if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22745printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22746fi
22747
22748
22749