configure revision 2b2b4fcb
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-savage 2.4.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues>.
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://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues
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-savage'
624PACKAGE_TARNAME='xf86-video-savage'
625PACKAGE_VERSION='2.4.0'
626PACKAGE_STRING='xf86-video-savage 2.4.0'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667DRIVER_NAME
668moduledir
669XSERVER_LIBPCIACCESS_FALSE
670XSERVER_LIBPCIACCESS_TRUE
671PCIACCESS_LIBS
672PCIACCESS_CFLAGS
673XAA_FALSE
674XAA_TRUE
675DRI_LIBS
676DRI_CFLAGS
677DRI_FALSE
678DRI_TRUE
679HAVE_XEXTPROTO_71_FALSE
680HAVE_XEXTPROTO_71_TRUE
681XEXT_LIBS
682XEXT_CFLAGS
683XORG_LIBS
684XORG_CFLAGS
685LT_SYS_LIBRARY_PATH
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
691MANIFEST_TOOL
692RANLIB
693ac_ct_AR
694AR
695DLLTOOL
696OBJDUMP
697FILECMD
698LN_S
699NM
700ac_ct_DUMPBIN
701DUMPBIN
702LD
703FGREP
704EGREP
705GREP
706LIBTOOL
707MAN_SUBSTS
708XORG_MAN_PAGE
709ADMIN_MAN_DIR
710DRIVER_MAN_DIR
711MISC_MAN_DIR
712FILE_MAN_DIR
713LIB_MAN_DIR
714APP_MAN_DIR
715ADMIN_MAN_SUFFIX
716DRIVER_MAN_SUFFIX
717MISC_MAN_SUFFIX
718FILE_MAN_SUFFIX
719LIB_MAN_SUFFIX
720APP_MAN_SUFFIX
721SED
722host_os
723host_vendor
724host_cpu
725host
726build_os
727build_vendor
728build_cpu
729build
730INSTALL_CMD
731PKG_CONFIG_LIBDIR
732PKG_CONFIG_PATH
733PKG_CONFIG
734CHANGELOG_CMD
735STRICT_CFLAGS
736CWARNFLAGS
737BASE_CFLAGS
738am__fastdepCC_FALSE
739am__fastdepCC_TRUE
740CCDEPMODE
741am__nodep
742AMDEPBACKSLASH
743AMDEP_FALSE
744AMDEP_TRUE
745am__include
746DEPDIR
747OBJEXT
748EXEEXT
749ac_ct_CC
750CPPFLAGS
751LDFLAGS
752CFLAGS
753CC
754AM_BACKSLASH
755AM_DEFAULT_VERBOSITY
756AM_DEFAULT_V
757AM_V
758CSCOPE
759ETAGS
760CTAGS
761am__untar
762am__tar
763AMTAR
764am__leading_dot
765SET_MAKE
766AWK
767mkdir_p
768MKDIR_P
769INSTALL_STRIP_PROGRAM
770STRIP
771install_sh
772MAKEINFO
773AUTOHEADER
774AUTOMAKE
775AUTOCONF
776ACLOCAL
777VERSION
778PACKAGE
779CYGPATH_W
780am__isrc
781INSTALL_DATA
782INSTALL_SCRIPT
783INSTALL_PROGRAM
784target_alias
785host_alias
786build_alias
787LIBS
788ECHO_T
789ECHO_N
790ECHO_C
791DEFS
792mandir
793localedir
794libdir
795psdir
796pdfdir
797dvidir
798htmldir
799infodir
800docdir
801oldincludedir
802includedir
803runstatedir
804localstatedir
805sharedstatedir
806sysconfdir
807datadir
808datarootdir
809libexecdir
810sbindir
811bindir
812program_transform_name
813prefix
814exec_prefix
815PACKAGE_URL
816PACKAGE_BUGREPORT
817PACKAGE_STRING
818PACKAGE_VERSION
819PACKAGE_TARNAME
820PACKAGE_NAME
821PATH_SEPARATOR
822SHELL
823am__quote'
824ac_subst_files=''
825ac_user_opts='
826enable_option_checking
827enable_silent_rules
828enable_dependency_tracking
829enable_selective_werror
830enable_strict_compilation
831enable_static
832enable_shared
833with_pic
834enable_fast_install
835with_aix_soname
836with_gnu_ld
837with_sysroot
838enable_libtool_lock
839with_xorg_module_dir
840enable_dri
841enable_xaa
842'
843      ac_precious_vars='build_alias
844host_alias
845target_alias
846CC
847CFLAGS
848LDFLAGS
849LIBS
850CPPFLAGS
851PKG_CONFIG
852PKG_CONFIG_PATH
853PKG_CONFIG_LIBDIR
854LT_SYS_LIBRARY_PATH
855XORG_CFLAGS
856XORG_LIBS
857XEXT_CFLAGS
858XEXT_LIBS
859DRI_CFLAGS
860DRI_LIBS
861PCIACCESS_CFLAGS
862PCIACCESS_LIBS'
863
864
865# Initialize some variables set by options.
866ac_init_help=
867ac_init_version=false
868ac_unrecognized_opts=
869ac_unrecognized_sep=
870# The variables have the same names as the options, with
871# dashes changed to underlines.
872cache_file=/dev/null
873exec_prefix=NONE
874no_create=
875no_recursion=
876prefix=NONE
877program_prefix=NONE
878program_suffix=NONE
879program_transform_name=s,x,x,
880silent=
881site=
882srcdir=
883verbose=
884x_includes=NONE
885x_libraries=NONE
886
887# Installation directory options.
888# These are left unexpanded so users can "make install exec_prefix=/foo"
889# and all the variables that are supposed to be based on exec_prefix
890# by default will actually change.
891# Use braces instead of parens because sh, perl, etc. also accept them.
892# (The list follows the same order as the GNU Coding Standards.)
893bindir='${exec_prefix}/bin'
894sbindir='${exec_prefix}/sbin'
895libexecdir='${exec_prefix}/libexec'
896datarootdir='${prefix}/share'
897datadir='${datarootdir}'
898sysconfdir='${prefix}/etc'
899sharedstatedir='${prefix}/com'
900localstatedir='${prefix}/var'
901runstatedir='${localstatedir}/run'
902includedir='${prefix}/include'
903oldincludedir='/usr/include'
904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905infodir='${datarootdir}/info'
906htmldir='${docdir}'
907dvidir='${docdir}'
908pdfdir='${docdir}'
909psdir='${docdir}'
910libdir='${exec_prefix}/lib'
911localedir='${datarootdir}/locale'
912mandir='${datarootdir}/man'
913
914ac_prev=
915ac_dashdash=
916for ac_option
917do
918  # If the previous option needs an argument, assign it.
919  if test -n "$ac_prev"; then
920    eval $ac_prev=\$ac_option
921    ac_prev=
922    continue
923  fi
924
925  case $ac_option in
926  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927  *=)   ac_optarg= ;;
928  *)    ac_optarg=yes ;;
929  esac
930
931  case $ac_dashdash$ac_option in
932  --)
933    ac_dashdash=yes ;;
934
935  -bindir | --bindir | --bindi | --bind | --bin | --bi)
936    ac_prev=bindir ;;
937  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938    bindir=$ac_optarg ;;
939
940  -build | --build | --buil | --bui | --bu)
941    ac_prev=build_alias ;;
942  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943    build_alias=$ac_optarg ;;
944
945  -cache-file | --cache-file | --cache-fil | --cache-fi \
946  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947    ac_prev=cache_file ;;
948  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950    cache_file=$ac_optarg ;;
951
952  --config-cache | -C)
953    cache_file=config.cache ;;
954
955  -datadir | --datadir | --datadi | --datad)
956    ac_prev=datadir ;;
957  -datadir=* | --datadir=* | --datadi=* | --datad=*)
958    datadir=$ac_optarg ;;
959
960  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961  | --dataroo | --dataro | --datar)
962    ac_prev=datarootdir ;;
963  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965    datarootdir=$ac_optarg ;;
966
967  -disable-* | --disable-*)
968    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969    # Reject names that are not valid shell variable names.
970    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971      as_fn_error $? "invalid feature name: \`$ac_useropt'"
972    ac_useropt_orig=$ac_useropt
973    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974    case $ac_user_opts in
975      *"
976"enable_$ac_useropt"
977"*) ;;
978      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979	 ac_unrecognized_sep=', ';;
980    esac
981    eval enable_$ac_useropt=no ;;
982
983  -docdir | --docdir | --docdi | --doc | --do)
984    ac_prev=docdir ;;
985  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986    docdir=$ac_optarg ;;
987
988  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989    ac_prev=dvidir ;;
990  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991    dvidir=$ac_optarg ;;
992
993  -enable-* | --enable-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error $? "invalid feature name: \`$ac_useropt'"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"enable_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011  | --exec | --exe | --ex)
1012    ac_prev=exec_prefix ;;
1013  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015  | --exec=* | --exe=* | --ex=*)
1016    exec_prefix=$ac_optarg ;;
1017
1018  -gas | --gas | --ga | --g)
1019    # Obsolete; use --with-gas.
1020    with_gas=yes ;;
1021
1022  -help | --help | --hel | --he | -h)
1023    ac_init_help=long ;;
1024  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025    ac_init_help=recursive ;;
1026  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027    ac_init_help=short ;;
1028
1029  -host | --host | --hos | --ho)
1030    ac_prev=host_alias ;;
1031  -host=* | --host=* | --hos=* | --ho=*)
1032    host_alias=$ac_optarg ;;
1033
1034  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035    ac_prev=htmldir ;;
1036  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037  | --ht=*)
1038    htmldir=$ac_optarg ;;
1039
1040  -includedir | --includedir | --includedi | --included | --include \
1041  | --includ | --inclu | --incl | --inc)
1042    ac_prev=includedir ;;
1043  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044  | --includ=* | --inclu=* | --incl=* | --inc=*)
1045    includedir=$ac_optarg ;;
1046
1047  -infodir | --infodir | --infodi | --infod | --info | --inf)
1048    ac_prev=infodir ;;
1049  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050    infodir=$ac_optarg ;;
1051
1052  -libdir | --libdir | --libdi | --libd)
1053    ac_prev=libdir ;;
1054  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055    libdir=$ac_optarg ;;
1056
1057  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058  | --libexe | --libex | --libe)
1059    ac_prev=libexecdir ;;
1060  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061  | --libexe=* | --libex=* | --libe=*)
1062    libexecdir=$ac_optarg ;;
1063
1064  -localedir | --localedir | --localedi | --localed | --locale)
1065    ac_prev=localedir ;;
1066  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067    localedir=$ac_optarg ;;
1068
1069  -localstatedir | --localstatedir | --localstatedi | --localstated \
1070  | --localstate | --localstat | --localsta | --localst | --locals)
1071    ac_prev=localstatedir ;;
1072  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074    localstatedir=$ac_optarg ;;
1075
1076  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077    ac_prev=mandir ;;
1078  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079    mandir=$ac_optarg ;;
1080
1081  -nfp | --nfp | --nf)
1082    # Obsolete; use --without-fp.
1083    with_fp=no ;;
1084
1085  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086  | --no-cr | --no-c | -n)
1087    no_create=yes ;;
1088
1089  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091    no_recursion=yes ;;
1092
1093  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095  | --oldin | --oldi | --old | --ol | --o)
1096    ac_prev=oldincludedir ;;
1097  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100    oldincludedir=$ac_optarg ;;
1101
1102  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103    ac_prev=prefix ;;
1104  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105    prefix=$ac_optarg ;;
1106
1107  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108  | --program-pre | --program-pr | --program-p)
1109    ac_prev=program_prefix ;;
1110  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112    program_prefix=$ac_optarg ;;
1113
1114  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115  | --program-suf | --program-su | --program-s)
1116    ac_prev=program_suffix ;;
1117  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119    program_suffix=$ac_optarg ;;
1120
1121  -program-transform-name | --program-transform-name \
1122  | --program-transform-nam | --program-transform-na \
1123  | --program-transform-n | --program-transform- \
1124  | --program-transform | --program-transfor \
1125  | --program-transfo | --program-transf \
1126  | --program-trans | --program-tran \
1127  | --progr-tra | --program-tr | --program-t)
1128    ac_prev=program_transform_name ;;
1129  -program-transform-name=* | --program-transform-name=* \
1130  | --program-transform-nam=* | --program-transform-na=* \
1131  | --program-transform-n=* | --program-transform-=* \
1132  | --program-transform=* | --program-transfor=* \
1133  | --program-transfo=* | --program-transf=* \
1134  | --program-trans=* | --program-tran=* \
1135  | --progr-tra=* | --program-tr=* | --program-t=*)
1136    program_transform_name=$ac_optarg ;;
1137
1138  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139    ac_prev=pdfdir ;;
1140  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141    pdfdir=$ac_optarg ;;
1142
1143  -psdir | --psdir | --psdi | --psd | --ps)
1144    ac_prev=psdir ;;
1145  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146    psdir=$ac_optarg ;;
1147
1148  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149  | -silent | --silent | --silen | --sile | --sil)
1150    silent=yes ;;
1151
1152  -runstatedir | --runstatedir | --runstatedi | --runstated \
1153  | --runstate | --runstat | --runsta | --runst | --runs \
1154  | --run | --ru | --r)
1155    ac_prev=runstatedir ;;
1156  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1157  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1158  | --run=* | --ru=* | --r=*)
1159    runstatedir=$ac_optarg ;;
1160
1161  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162    ac_prev=sbindir ;;
1163  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164  | --sbi=* | --sb=*)
1165    sbindir=$ac_optarg ;;
1166
1167  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169  | --sharedst | --shareds | --shared | --share | --shar \
1170  | --sha | --sh)
1171    ac_prev=sharedstatedir ;;
1172  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175  | --sha=* | --sh=*)
1176    sharedstatedir=$ac_optarg ;;
1177
1178  -site | --site | --sit)
1179    ac_prev=site ;;
1180  -site=* | --site=* | --sit=*)
1181    site=$ac_optarg ;;
1182
1183  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184    ac_prev=srcdir ;;
1185  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186    srcdir=$ac_optarg ;;
1187
1188  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189  | --syscon | --sysco | --sysc | --sys | --sy)
1190    ac_prev=sysconfdir ;;
1191  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193    sysconfdir=$ac_optarg ;;
1194
1195  -target | --target | --targe | --targ | --tar | --ta | --t)
1196    ac_prev=target_alias ;;
1197  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198    target_alias=$ac_optarg ;;
1199
1200  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201    verbose=yes ;;
1202
1203  -version | --version | --versio | --versi | --vers | -V)
1204    ac_init_version=: ;;
1205
1206  -with-* | --with-*)
1207    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208    # Reject names that are not valid shell variable names.
1209    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210      as_fn_error $? "invalid package name: \`$ac_useropt'"
1211    ac_useropt_orig=$ac_useropt
1212    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213    case $ac_user_opts in
1214      *"
1215"with_$ac_useropt"
1216"*) ;;
1217      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218	 ac_unrecognized_sep=', ';;
1219    esac
1220    eval with_$ac_useropt=\$ac_optarg ;;
1221
1222  -without-* | --without-*)
1223    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224    # Reject names that are not valid shell variable names.
1225    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226      as_fn_error $? "invalid package name: \`$ac_useropt'"
1227    ac_useropt_orig=$ac_useropt
1228    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229    case $ac_user_opts in
1230      *"
1231"with_$ac_useropt"
1232"*) ;;
1233      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234	 ac_unrecognized_sep=', ';;
1235    esac
1236    eval with_$ac_useropt=no ;;
1237
1238  --x)
1239    # Obsolete; use --with-x.
1240    with_x=yes ;;
1241
1242  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243  | --x-incl | --x-inc | --x-in | --x-i)
1244    ac_prev=x_includes ;;
1245  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247    x_includes=$ac_optarg ;;
1248
1249  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251    ac_prev=x_libraries ;;
1252  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254    x_libraries=$ac_optarg ;;
1255
1256  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257Try \`$0 --help' for more information"
1258    ;;
1259
1260  *=*)
1261    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262    # Reject names that are not valid shell variable names.
1263    case $ac_envvar in #(
1264      '' | [0-9]* | *[!_$as_cr_alnum]* )
1265      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266    esac
1267    eval $ac_envvar=\$ac_optarg
1268    export $ac_envvar ;;
1269
1270  *)
1271    # FIXME: should be removed in autoconf 3.0.
1272    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1273    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1275    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276    ;;
1277
1278  esac
1279done
1280
1281if test -n "$ac_prev"; then
1282  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283  as_fn_error $? "missing argument to $ac_option"
1284fi
1285
1286if test -n "$ac_unrecognized_opts"; then
1287  case $enable_option_checking in
1288    no) ;;
1289    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291  esac
1292fi
1293
1294# Check all directory arguments for consistency.
1295for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296		datadir sysconfdir sharedstatedir localstatedir includedir \
1297		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298		libdir localedir mandir runstatedir
1299do
1300  eval ac_val=\$$ac_var
1301  # Remove trailing slashes.
1302  case $ac_val in
1303    */ )
1304      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305      eval $ac_var=\$ac_val;;
1306  esac
1307  # Be sure to have absolute directory names.
1308  case $ac_val in
1309    [\\/$]* | ?:[\\/]* )  continue;;
1310    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311  esac
1312  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313done
1314
1315# There might be people who depend on the old broken behavior: `$host'
1316# used to hold the argument of --host etc.
1317# FIXME: To remove some day.
1318build=$build_alias
1319host=$host_alias
1320target=$target_alias
1321
1322# FIXME: To remove some day.
1323if test "x$host_alias" != x; then
1324  if test "x$build_alias" = x; then
1325    cross_compiling=maybe
1326  elif test "x$build_alias" != "x$host_alias"; then
1327    cross_compiling=yes
1328  fi
1329fi
1330
1331ac_tool_prefix=
1332test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334test "$silent" = yes && exec 6>/dev/null
1335
1336
1337ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338ac_ls_di=`ls -di .` &&
1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340  as_fn_error $? "working directory cannot be determined"
1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342  as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345# Find the source files, if location was not specified.
1346if test -z "$srcdir"; then
1347  ac_srcdir_defaulted=yes
1348  # Try the directory containing this script, then the parent directory.
1349  ac_confdir=`$as_dirname -- "$as_myself" ||
1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351	 X"$as_myself" : 'X\(//\)[^/]' \| \
1352	 X"$as_myself" : 'X\(//\)$' \| \
1353	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354printf "%s\n" X"$as_myself" |
1355    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\/\)[^/].*/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\/\)$/{
1364	    s//\1/
1365	    q
1366	  }
1367	  /^X\(\/\).*/{
1368	    s//\1/
1369	    q
1370	  }
1371	  s/.*/./; q'`
1372  srcdir=$ac_confdir
1373  if test ! -r "$srcdir/$ac_unique_file"; then
1374    srcdir=..
1375  fi
1376else
1377  ac_srcdir_defaulted=no
1378fi
1379if test ! -r "$srcdir/$ac_unique_file"; then
1380  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382fi
1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384ac_abs_confdir=`(
1385	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386	pwd)`
1387# When building in place, set srcdir=.
1388if test "$ac_abs_confdir" = "$ac_pwd"; then
1389  srcdir=.
1390fi
1391# Remove unnecessary trailing slashes from srcdir.
1392# Double slashes in file names in object file debugging info
1393# mess up M-x gdb in Emacs.
1394case $srcdir in
1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396esac
1397for ac_var in $ac_precious_vars; do
1398  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_env_${ac_var}_value=\$${ac_var}
1400  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402done
1403
1404#
1405# Report the --help message.
1406#
1407if test "$ac_init_help" = "long"; then
1408  # Omit some internal or obsolete options to make the list less imposing.
1409  # This message is too long to be a string in the A/UX 3.1 sh.
1410  cat <<_ACEOF
1411\`configure' configures xf86-video-savage 2.4.0 to adapt to many kinds of systems.
1412
1413Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416VAR=VALUE.  See below for descriptions of some of the useful variables.
1417
1418Defaults for the options are specified in brackets.
1419
1420Configuration:
1421  -h, --help              display this help and exit
1422      --help=short        display options specific to this package
1423      --help=recursive    display the short help of all the included packages
1424  -V, --version           display version information and exit
1425  -q, --quiet, --silent   do not print \`checking ...' messages
1426      --cache-file=FILE   cache test results in FILE [disabled]
1427  -C, --config-cache      alias for \`--cache-file=config.cache'
1428  -n, --no-create         do not create output files
1429      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1430
1431Installation directories:
1432  --prefix=PREFIX         install architecture-independent files in PREFIX
1433                          [$ac_default_prefix]
1434  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1435                          [PREFIX]
1436
1437By default, \`make install' will install all the files in
1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1439an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440for instance \`--prefix=\$HOME'.
1441
1442For better control, use the options below.
1443
1444Fine tuning of the installation directories:
1445  --bindir=DIR            user executables [EPREFIX/bin]
1446  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1447  --libexecdir=DIR        program executables [EPREFIX/libexec]
1448  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1449  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1450  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1451  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1452  --libdir=DIR            object code libraries [EPREFIX/lib]
1453  --includedir=DIR        C header files [PREFIX/include]
1454  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1455  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1456  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1457  --infodir=DIR           info documentation [DATAROOTDIR/info]
1458  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1459  --mandir=DIR            man documentation [DATAROOTDIR/man]
1460  --docdir=DIR            documentation root
1461                          [DATAROOTDIR/doc/xf86-video-savage]
1462  --htmldir=DIR           html documentation [DOCDIR]
1463  --dvidir=DIR            dvi documentation [DOCDIR]
1464  --pdfdir=DIR            pdf documentation [DOCDIR]
1465  --psdir=DIR             ps documentation [DOCDIR]
1466_ACEOF
1467
1468  cat <<\_ACEOF
1469
1470Program names:
1471  --program-prefix=PREFIX            prepend PREFIX to installed program names
1472  --program-suffix=SUFFIX            append SUFFIX to installed program names
1473  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1474
1475System types:
1476  --build=BUILD     configure for building on BUILD [guessed]
1477  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1478_ACEOF
1479fi
1480
1481if test -n "$ac_init_help"; then
1482  case $ac_init_help in
1483     short | recursive ) echo "Configuration of xf86-video-savage 2.4.0:";;
1484   esac
1485  cat <<\_ACEOF
1486
1487Optional Features:
1488  --disable-option-checking  ignore unrecognized --enable/--with options
1489  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491  --enable-silent-rules   less verbose build output (undo: "make V=1")
1492  --disable-silent-rules  verbose build output (undo: "make V=0")
1493  --enable-dependency-tracking
1494                          do not reject slow dependency extractors
1495  --disable-dependency-tracking
1496                          speeds up one-time build
1497  --disable-selective-werror
1498                          Turn off selective compiler errors. (default:
1499                          enabled)
1500  --enable-strict-compilation
1501                          Enable all warnings from compiler and make them
1502                          errors (default: disabled)
1503  --enable-static[=PKGS]  build static libraries [default=no]
1504  --enable-shared[=PKGS]  build shared libraries [default=yes]
1505  --enable-fast-install[=PKGS]
1506                          optimize for fast installation [default=yes]
1507  --disable-libtool-lock  avoid locking (might break parallel builds)
1508  --disable-dri           Disable DRI support [[default=auto]]
1509  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1510                          [default=auto]
1511
1512Optional Packages:
1513  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1516                          both]
1517  --with-aix-soname=aix|svr4|both
1518                          shared library versioning (aka "SONAME") variant to
1519                          provide on AIX, [default=aix].
1520  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1521  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1522                          compiler's sysroot if not specified).
1523  --with-xorg-module-dir=DIR
1524                          Default xorg module directory
1525                          [[default=$libdir/xorg/modules]]
1526
1527Some influential environment variables:
1528  CC          C compiler command
1529  CFLAGS      C compiler flags
1530  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1531              nonstandard directory <lib dir>
1532  LIBS        libraries to pass to the linker, e.g. -l<library>
1533  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534              you have headers in a nonstandard directory <include dir>
1535  PKG_CONFIG  path to pkg-config utility
1536  PKG_CONFIG_PATH
1537              directories to add to pkg-config's search path
1538  PKG_CONFIG_LIBDIR
1539              path overriding pkg-config's built-in search path
1540  LT_SYS_LIBRARY_PATH
1541              User-defined run-time library search path.
1542  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1543  XORG_LIBS   linker flags for XORG, overriding pkg-config
1544  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1545  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1546  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1547  DRI_LIBS    linker flags for DRI, overriding pkg-config
1548  PCIACCESS_CFLAGS
1549              C compiler flags for PCIACCESS, overriding pkg-config
1550  PCIACCESS_LIBS
1551              linker flags for PCIACCESS, overriding pkg-config
1552
1553Use these variables to override the choices made by `configure' or to help
1554it to find libraries and programs with nonstandard names/locations.
1555
1556Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues>.
1557_ACEOF
1558ac_status=$?
1559fi
1560
1561if test "$ac_init_help" = "recursive"; then
1562  # If there are subdirs, report their specific --help.
1563  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564    test -d "$ac_dir" ||
1565      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566      continue
1567    ac_builddir=.
1568
1569case "$ac_dir" in
1570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571*)
1572  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1573  # A ".." for each directory in $ac_dir_suffix.
1574  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575  case $ac_top_builddir_sub in
1576  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578  esac ;;
1579esac
1580ac_abs_top_builddir=$ac_pwd
1581ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582# for backward compatibility:
1583ac_top_builddir=$ac_top_build_prefix
1584
1585case $srcdir in
1586  .)  # We are building in place.
1587    ac_srcdir=.
1588    ac_top_srcdir=$ac_top_builddir_sub
1589    ac_abs_top_srcdir=$ac_pwd ;;
1590  [\\/]* | ?:[\\/]* )  # Absolute name.
1591    ac_srcdir=$srcdir$ac_dir_suffix;
1592    ac_top_srcdir=$srcdir
1593    ac_abs_top_srcdir=$srcdir ;;
1594  *) # Relative name.
1595    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596    ac_top_srcdir=$ac_top_build_prefix$srcdir
1597    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598esac
1599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601    cd "$ac_dir" || { ac_status=$?; continue; }
1602    # Check for configure.gnu first; this name is used for a wrapper for
1603    # Metaconfig's "Configure" on case-insensitive file systems.
1604    if test -f "$ac_srcdir/configure.gnu"; then
1605      echo &&
1606      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607    elif test -f "$ac_srcdir/configure"; then
1608      echo &&
1609      $SHELL "$ac_srcdir/configure" --help=recursive
1610    else
1611      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612    fi || ac_status=$?
1613    cd "$ac_pwd" || { ac_status=$?; break; }
1614  done
1615fi
1616
1617test -n "$ac_init_help" && exit $ac_status
1618if $ac_init_version; then
1619  cat <<\_ACEOF
1620xf86-video-savage configure 2.4.0
1621generated by GNU Autoconf 2.71
1622
1623Copyright (C) 2021 Free Software Foundation, Inc.
1624This configure script is free software; the Free Software Foundation
1625gives unlimited permission to copy, distribute and modify it.
1626_ACEOF
1627  exit
1628fi
1629
1630## ------------------------ ##
1631## Autoconf initialization. ##
1632## ------------------------ ##
1633
1634# ac_fn_c_try_compile LINENO
1635# --------------------------
1636# Try to compile conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_compile ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  rm -f conftest.$ac_objext conftest.beam
1641  if { { ac_try="$ac_compile"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647printf "%s\n" "$ac_try_echo"; } >&5
1648  (eval "$ac_compile") 2>conftest.err
1649  ac_status=$?
1650  if test -s conftest.err; then
1651    grep -v '^ *+' conftest.err >conftest.er1
1652    cat conftest.er1 >&5
1653    mv -f conftest.er1 conftest.err
1654  fi
1655  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } && {
1657	 test -z "$ac_c_werror_flag" ||
1658	 test ! -s conftest.err
1659       } && test -s conftest.$ac_objext
1660then :
1661  ac_retval=0
1662else $as_nop
1663  printf "%s\n" "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666	ac_retval=1
1667fi
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_compile
1672
1673# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1674# ------------------------------------------------------------------
1675# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1676# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1677ac_fn_check_decl ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  as_decl_name=`echo $2|sed 's/ *(.*//'`
1681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1682printf %s "checking whether $as_decl_name is declared... " >&6; }
1683if eval test \${$3+y}
1684then :
1685  printf %s "(cached) " >&6
1686else $as_nop
1687  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1688  eval ac_save_FLAGS=\$$6
1689  as_fn_append $6 " $5"
1690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691/* end confdefs.h.  */
1692$4
1693int
1694main (void)
1695{
1696#ifndef $as_decl_name
1697#ifdef __cplusplus
1698  (void) $as_decl_use;
1699#else
1700  (void) $as_decl_name;
1701#endif
1702#endif
1703
1704  ;
1705  return 0;
1706}
1707_ACEOF
1708if ac_fn_c_try_compile "$LINENO"
1709then :
1710  eval "$3=yes"
1711else $as_nop
1712  eval "$3=no"
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1715  eval $6=\$ac_save_FLAGS
1716
1717fi
1718eval ac_res=\$$3
1719	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720printf "%s\n" "$ac_res" >&6; }
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_check_decl
1724
1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists and can be compiled using the include files in
1728# INCLUDES, setting the cache variable VAR accordingly.
1729ac_fn_c_check_header_compile ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733printf %s "checking for $2... " >&6; }
1734if eval test \${$3+y}
1735then :
1736  printf %s "(cached) " >&6
1737else $as_nop
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740$4
1741#include <$2>
1742_ACEOF
1743if ac_fn_c_try_compile "$LINENO"
1744then :
1745  eval "$3=yes"
1746else $as_nop
1747  eval "$3=no"
1748fi
1749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1750fi
1751eval ac_res=\$$3
1752	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753printf "%s\n" "$ac_res" >&6; }
1754  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756} # ac_fn_c_check_header_compile
1757
1758# ac_fn_c_try_link LINENO
1759# -----------------------
1760# Try to link conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_c_try_link ()
1762{
1763  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1765  if { { ac_try="$ac_link"
1766case "(($ac_try" in
1767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768  *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771printf "%s\n" "$ac_try_echo"; } >&5
1772  (eval "$ac_link") 2>conftest.err
1773  ac_status=$?
1774  if test -s conftest.err; then
1775    grep -v '^ *+' conftest.err >conftest.er1
1776    cat conftest.er1 >&5
1777    mv -f conftest.er1 conftest.err
1778  fi
1779  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780  test $ac_status = 0; } && {
1781	 test -z "$ac_c_werror_flag" ||
1782	 test ! -s conftest.err
1783       } && test -s conftest$ac_exeext && {
1784	 test "$cross_compiling" = yes ||
1785	 test -x conftest$ac_exeext
1786       }
1787then :
1788  ac_retval=0
1789else $as_nop
1790  printf "%s\n" "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793	ac_retval=1
1794fi
1795  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797  # interfere with the next link command; also delete a directory that is
1798  # left behind by Apple's compiler.  We do this before executing the actions.
1799  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_c_try_link
1804
1805# ac_fn_c_check_func LINENO FUNC VAR
1806# ----------------------------------
1807# Tests whether FUNC exists, setting the cache variable VAR accordingly
1808ac_fn_c_check_func ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812printf %s "checking for $2... " >&6; }
1813if eval test \${$3+y}
1814then :
1815  printf %s "(cached) " >&6
1816else $as_nop
1817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h.  */
1819/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1821#define $2 innocuous_$2
1822
1823/* System header to define __stub macros and hopefully few prototypes,
1824   which can conflict with char $2 (); below.  */
1825
1826#include <limits.h>
1827#undef $2
1828
1829/* Override any GCC internal prototype to avoid an error.
1830   Use char because int might match the return type of a GCC
1831   builtin and then its argument prototype would still apply.  */
1832#ifdef __cplusplus
1833extern "C"
1834#endif
1835char $2 ();
1836/* The GNU C library defines this for functions which it implements
1837    to always fail with ENOSYS.  Some functions are actually named
1838    something starting with __ and the normal name is an alias.  */
1839#if defined __stub_$2 || defined __stub___$2
1840choke me
1841#endif
1842
1843int
1844main (void)
1845{
1846return $2 ();
1847  ;
1848  return 0;
1849}
1850_ACEOF
1851if ac_fn_c_try_link "$LINENO"
1852then :
1853  eval "$3=yes"
1854else $as_nop
1855  eval "$3=no"
1856fi
1857rm -f core conftest.err conftest.$ac_objext conftest.beam \
1858    conftest$ac_exeext conftest.$ac_ext
1859fi
1860eval ac_res=\$$3
1861	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862printf "%s\n" "$ac_res" >&6; }
1863  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865} # ac_fn_c_check_func
1866ac_configure_args_raw=
1867for ac_arg
1868do
1869  case $ac_arg in
1870  *\'*)
1871    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1872  esac
1873  as_fn_append ac_configure_args_raw " '$ac_arg'"
1874done
1875
1876case $ac_configure_args_raw in
1877  *$as_nl*)
1878    ac_safe_unquote= ;;
1879  *)
1880    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1881    ac_unsafe_a="$ac_unsafe_z#~"
1882    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1883    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1884esac
1885
1886cat >config.log <<_ACEOF
1887This file contains any messages produced by compilers while
1888running configure, to aid debugging if configure makes a mistake.
1889
1890It was created by xf86-video-savage $as_me 2.4.0, which was
1891generated by GNU Autoconf 2.71.  Invocation command line was
1892
1893  $ $0$ac_configure_args_raw
1894
1895_ACEOF
1896exec 5>>config.log
1897{
1898cat <<_ASUNAME
1899## --------- ##
1900## Platform. ##
1901## --------- ##
1902
1903hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1911
1912/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1913/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1914/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1916/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1917/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1918/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1919
1920_ASUNAME
1921
1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923for as_dir in $PATH
1924do
1925  IFS=$as_save_IFS
1926  case $as_dir in #(((
1927    '') as_dir=./ ;;
1928    */) ;;
1929    *) as_dir=$as_dir/ ;;
1930  esac
1931    printf "%s\n" "PATH: $as_dir"
1932  done
1933IFS=$as_save_IFS
1934
1935} >&5
1936
1937cat >&5 <<_ACEOF
1938
1939
1940## ----------- ##
1941## Core tests. ##
1942## ----------- ##
1943
1944_ACEOF
1945
1946
1947# Keep a trace of the command line.
1948# Strip out --no-create and --no-recursion so they do not pile up.
1949# Strip out --silent because we don't want to record it for future runs.
1950# Also quote any args containing shell meta-characters.
1951# Make two passes to allow for proper duplicate-argument suppression.
1952ac_configure_args=
1953ac_configure_args0=
1954ac_configure_args1=
1955ac_must_keep_next=false
1956for ac_pass in 1 2
1957do
1958  for ac_arg
1959  do
1960    case $ac_arg in
1961    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963    | -silent | --silent | --silen | --sile | --sil)
1964      continue ;;
1965    *\'*)
1966      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967    esac
1968    case $ac_pass in
1969    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970    2)
1971      as_fn_append ac_configure_args1 " '$ac_arg'"
1972      if test $ac_must_keep_next = true; then
1973	ac_must_keep_next=false # Got value, back to normal.
1974      else
1975	case $ac_arg in
1976	  *=* | --config-cache | -C | -disable-* | --disable-* \
1977	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979	  | -with-* | --with-* | -without-* | --without-* | --x)
1980	    case "$ac_configure_args0 " in
1981	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982	    esac
1983	    ;;
1984	  -* ) ac_must_keep_next=true ;;
1985	esac
1986      fi
1987      as_fn_append ac_configure_args " '$ac_arg'"
1988      ;;
1989    esac
1990  done
1991done
1992{ ac_configure_args0=; unset ac_configure_args0;}
1993{ ac_configure_args1=; unset ac_configure_args1;}
1994
1995# When interrupted or exit'd, cleanup temporary files, and complete
1996# config.log.  We remove comments because anyway the quotes in there
1997# would cause problems or look ugly.
1998# WARNING: Use '\'' to represent an apostrophe within the trap.
1999# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000trap 'exit_status=$?
2001  # Sanitize IFS.
2002  IFS=" ""	$as_nl"
2003  # Save into config.log some information that might help in debugging.
2004  {
2005    echo
2006
2007    printf "%s\n" "## ---------------- ##
2008## Cache variables. ##
2009## ---------------- ##"
2010    echo
2011    # The following way of writing the cache mishandles newlines in values,
2012(
2013  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014    eval ac_val=\$$ac_var
2015    case $ac_val in #(
2016    *${as_nl}*)
2017      case $ac_var in #(
2018      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020      esac
2021      case $ac_var in #(
2022      _ | IFS | as_nl) ;; #(
2023      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024      *) { eval $ac_var=; unset $ac_var;} ;;
2025      esac ;;
2026    esac
2027  done
2028  (set) 2>&1 |
2029    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030    *${as_nl}ac_space=\ *)
2031      sed -n \
2032	"s/'\''/'\''\\\\'\'''\''/g;
2033	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034      ;; #(
2035    *)
2036      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037      ;;
2038    esac |
2039    sort
2040)
2041    echo
2042
2043    printf "%s\n" "## ----------------- ##
2044## Output variables. ##
2045## ----------------- ##"
2046    echo
2047    for ac_var in $ac_subst_vars
2048    do
2049      eval ac_val=\$$ac_var
2050      case $ac_val in
2051      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052      esac
2053      printf "%s\n" "$ac_var='\''$ac_val'\''"
2054    done | sort
2055    echo
2056
2057    if test -n "$ac_subst_files"; then
2058      printf "%s\n" "## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##"
2061      echo
2062      for ac_var in $ac_subst_files
2063      do
2064	eval ac_val=\$$ac_var
2065	case $ac_val in
2066	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067	esac
2068	printf "%s\n" "$ac_var='\''$ac_val'\''"
2069      done | sort
2070      echo
2071    fi
2072
2073    if test -s confdefs.h; then
2074      printf "%s\n" "## ----------- ##
2075## confdefs.h. ##
2076## ----------- ##"
2077      echo
2078      cat confdefs.h
2079      echo
2080    fi
2081    test "$ac_signal" != 0 &&
2082      printf "%s\n" "$as_me: caught signal $ac_signal"
2083    printf "%s\n" "$as_me: exit $exit_status"
2084  } >&5
2085  rm -f core *.core core.conftest.* &&
2086    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087    exit $exit_status
2088' 0
2089for ac_signal in 1 2 13 15; do
2090  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091done
2092ac_signal=0
2093
2094# confdefs.h avoids OS command line length limits that DEFS can exceed.
2095rm -f -r conftest* confdefs.h
2096
2097printf "%s\n" "/* confdefs.h */" > confdefs.h
2098
2099# Predefined preprocessor variables.
2100
2101printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2102
2103printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2104
2105printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2106
2107printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2108
2109printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2110
2111printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2112
2113
2114# Let the site file select an alternate cache file if it wants to.
2115# Prefer an explicitly selected file to automatically selected ones.
2116if test -n "$CONFIG_SITE"; then
2117  ac_site_files="$CONFIG_SITE"
2118elif test "x$prefix" != xNONE; then
2119  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2120else
2121  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2122fi
2123
2124for ac_site_file in $ac_site_files
2125do
2126  case $ac_site_file in #(
2127  */*) :
2128     ;; #(
2129  *) :
2130    ac_site_file=./$ac_site_file ;;
2131esac
2132  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2133    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2135    sed 's/^/| /' "$ac_site_file" >&5
2136    . "$ac_site_file" \
2137      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2139as_fn_error $? "failed to load site script $ac_site_file
2140See \`config.log' for more details" "$LINENO" 5; }
2141  fi
2142done
2143
2144if test -r "$cache_file"; then
2145  # Some versions of bash will fail to source /dev/null (special files
2146  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2147  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2150    case $cache_file in
2151      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152      *)                      . "./$cache_file";;
2153    esac
2154  fi
2155else
2156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2158  >$cache_file
2159fi
2160
2161# Test code for whether the C compiler supports C89 (global declarations)
2162ac_c_conftest_c89_globals='
2163/* Does the compiler advertise C89 conformance?
2164   Do not test the value of __STDC__, because some compilers set it to 0
2165   while being otherwise adequately conformant. */
2166#if !defined __STDC__
2167# error "Compiler does not advertise C89 conformance"
2168#endif
2169
2170#include <stddef.h>
2171#include <stdarg.h>
2172struct stat;
2173/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2174struct buf { int x; };
2175struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2176static char *e (p, i)
2177     char **p;
2178     int i;
2179{
2180  return p[i];
2181}
2182static char *f (char * (*g) (char **, int), char **p, ...)
2183{
2184  char *s;
2185  va_list v;
2186  va_start (v,p);
2187  s = g (p, va_arg (v,int));
2188  va_end (v);
2189  return s;
2190}
2191
2192/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2193   function prototypes and stuff, but not \xHH hex character constants.
2194   These do not provoke an error unfortunately, instead are silently treated
2195   as an "x".  The following induces an error, until -std is added to get
2196   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2197   array size at least.  It is necessary to write \x00 == 0 to get something
2198   that is true only with -std.  */
2199int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2200
2201/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2202   inside strings and character constants.  */
2203#define FOO(x) '\''x'\''
2204int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2205
2206int test (int i, double x);
2207struct s1 {int (*f) (int a);};
2208struct s2 {int (*f) (double a);};
2209int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2210               int, int);'
2211
2212# Test code for whether the C compiler supports C89 (body of main).
2213ac_c_conftest_c89_main='
2214ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2215'
2216
2217# Test code for whether the C compiler supports C99 (global declarations)
2218ac_c_conftest_c99_globals='
2219// Does the compiler advertise C99 conformance?
2220#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2221# error "Compiler does not advertise C99 conformance"
2222#endif
2223
2224#include <stdbool.h>
2225extern int puts (const char *);
2226extern int printf (const char *, ...);
2227extern int dprintf (int, const char *, ...);
2228extern void *malloc (size_t);
2229
2230// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2231// dprintf is used instead of fprintf to avoid needing to declare
2232// FILE and stderr.
2233#define debug(...) dprintf (2, __VA_ARGS__)
2234#define showlist(...) puts (#__VA_ARGS__)
2235#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2236static void
2237test_varargs_macros (void)
2238{
2239  int x = 1234;
2240  int y = 5678;
2241  debug ("Flag");
2242  debug ("X = %d\n", x);
2243  showlist (The first, second, and third items.);
2244  report (x>y, "x is %d but y is %d", x, y);
2245}
2246
2247// Check long long types.
2248#define BIG64 18446744073709551615ull
2249#define BIG32 4294967295ul
2250#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2251#if !BIG_OK
2252  #error "your preprocessor is broken"
2253#endif
2254#if BIG_OK
2255#else
2256  #error "your preprocessor is broken"
2257#endif
2258static long long int bignum = -9223372036854775807LL;
2259static unsigned long long int ubignum = BIG64;
2260
2261struct incomplete_array
2262{
2263  int datasize;
2264  double data[];
2265};
2266
2267struct named_init {
2268  int number;
2269  const wchar_t *name;
2270  double average;
2271};
2272
2273typedef const char *ccp;
2274
2275static inline int
2276test_restrict (ccp restrict text)
2277{
2278  // See if C++-style comments work.
2279  // Iterate through items via the restricted pointer.
2280  // Also check for declarations in for loops.
2281  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2282    continue;
2283  return 0;
2284}
2285
2286// Check varargs and va_copy.
2287static bool
2288test_varargs (const char *format, ...)
2289{
2290  va_list args;
2291  va_start (args, format);
2292  va_list args_copy;
2293  va_copy (args_copy, args);
2294
2295  const char *str = "";
2296  int number = 0;
2297  float fnumber = 0;
2298
2299  while (*format)
2300    {
2301      switch (*format++)
2302	{
2303	case '\''s'\'': // string
2304	  str = va_arg (args_copy, const char *);
2305	  break;
2306	case '\''d'\'': // int
2307	  number = va_arg (args_copy, int);
2308	  break;
2309	case '\''f'\'': // float
2310	  fnumber = va_arg (args_copy, double);
2311	  break;
2312	default:
2313	  break;
2314	}
2315    }
2316  va_end (args_copy);
2317  va_end (args);
2318
2319  return *str && number && fnumber;
2320}
2321'
2322
2323# Test code for whether the C compiler supports C99 (body of main).
2324ac_c_conftest_c99_main='
2325  // Check bool.
2326  _Bool success = false;
2327  success |= (argc != 0);
2328
2329  // Check restrict.
2330  if (test_restrict ("String literal") == 0)
2331    success = true;
2332  char *restrict newvar = "Another string";
2333
2334  // Check varargs.
2335  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2336  test_varargs_macros ();
2337
2338  // Check flexible array members.
2339  struct incomplete_array *ia =
2340    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2341  ia->datasize = 10;
2342  for (int i = 0; i < ia->datasize; ++i)
2343    ia->data[i] = i * 1.234;
2344
2345  // Check named initializers.
2346  struct named_init ni = {
2347    .number = 34,
2348    .name = L"Test wide string",
2349    .average = 543.34343,
2350  };
2351
2352  ni.number = 58;
2353
2354  int dynamic_array[ni.number];
2355  dynamic_array[0] = argv[0][0];
2356  dynamic_array[ni.number - 1] = 543;
2357
2358  // work around unused variable warnings
2359  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2360	 || dynamic_array[ni.number - 1] != 543);
2361'
2362
2363# Test code for whether the C compiler supports C11 (global declarations)
2364ac_c_conftest_c11_globals='
2365// Does the compiler advertise C11 conformance?
2366#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2367# error "Compiler does not advertise C11 conformance"
2368#endif
2369
2370// Check _Alignas.
2371char _Alignas (double) aligned_as_double;
2372char _Alignas (0) no_special_alignment;
2373extern char aligned_as_int;
2374char _Alignas (0) _Alignas (int) aligned_as_int;
2375
2376// Check _Alignof.
2377enum
2378{
2379  int_alignment = _Alignof (int),
2380  int_array_alignment = _Alignof (int[100]),
2381  char_alignment = _Alignof (char)
2382};
2383_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2384
2385// Check _Noreturn.
2386int _Noreturn does_not_return (void) { for (;;) continue; }
2387
2388// Check _Static_assert.
2389struct test_static_assert
2390{
2391  int x;
2392  _Static_assert (sizeof (int) <= sizeof (long int),
2393                  "_Static_assert does not work in struct");
2394  long int y;
2395};
2396
2397// Check UTF-8 literals.
2398#define u8 syntax error!
2399char const utf8_literal[] = u8"happens to be ASCII" "another string";
2400
2401// Check duplicate typedefs.
2402typedef long *long_ptr;
2403typedef long int *long_ptr;
2404typedef long_ptr long_ptr;
2405
2406// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2407struct anonymous
2408{
2409  union {
2410    struct { int i; int j; };
2411    struct { int k; long int l; } w;
2412  };
2413  int m;
2414} v1;
2415'
2416
2417# Test code for whether the C compiler supports C11 (body of main).
2418ac_c_conftest_c11_main='
2419  _Static_assert ((offsetof (struct anonymous, i)
2420		   == offsetof (struct anonymous, w.k)),
2421		  "Anonymous union alignment botch");
2422  v1.i = 2;
2423  v1.w.k = 5;
2424  ok |= v1.i != 5;
2425'
2426
2427# Test code for whether the C compiler supports C11 (complete).
2428ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2429${ac_c_conftest_c99_globals}
2430${ac_c_conftest_c11_globals}
2431
2432int
2433main (int argc, char **argv)
2434{
2435  int ok = 0;
2436  ${ac_c_conftest_c89_main}
2437  ${ac_c_conftest_c99_main}
2438  ${ac_c_conftest_c11_main}
2439  return ok;
2440}
2441"
2442
2443# Test code for whether the C compiler supports C99 (complete).
2444ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2445${ac_c_conftest_c99_globals}
2446
2447int
2448main (int argc, char **argv)
2449{
2450  int ok = 0;
2451  ${ac_c_conftest_c89_main}
2452  ${ac_c_conftest_c99_main}
2453  return ok;
2454}
2455"
2456
2457# Test code for whether the C compiler supports C89 (complete).
2458ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2459
2460int
2461main (int argc, char **argv)
2462{
2463  int ok = 0;
2464  ${ac_c_conftest_c89_main}
2465  return ok;
2466}
2467"
2468
2469as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2470as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2471as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2472as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2473as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2474as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2475as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2476as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2477as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2478
2479# Auxiliary files required by this configure script.
2480ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2481
2482# Locations in which to look for auxiliary files.
2483ac_aux_dir_candidates="${srcdir}/."
2484
2485# Search for a directory containing all of the required auxiliary files,
2486# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2487# If we don't find one directory that contains all the files we need,
2488# we report the set of missing files from the *first* directory in
2489# $ac_aux_dir_candidates and give up.
2490ac_missing_aux_files=""
2491ac_first_candidate=:
2492printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494as_found=false
2495for as_dir in $ac_aux_dir_candidates
2496do
2497  IFS=$as_save_IFS
2498  case $as_dir in #(((
2499    '') as_dir=./ ;;
2500    */) ;;
2501    *) as_dir=$as_dir/ ;;
2502  esac
2503  as_found=:
2504
2505  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2506  ac_aux_dir_found=yes
2507  ac_install_sh=
2508  for ac_aux in $ac_aux_files
2509  do
2510    # As a special case, if "install-sh" is required, that requirement
2511    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2512    # and $ac_install_sh is set appropriately for whichever one is found.
2513    if test x"$ac_aux" = x"install-sh"
2514    then
2515      if test -f "${as_dir}install-sh"; then
2516        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2517        ac_install_sh="${as_dir}install-sh -c"
2518      elif test -f "${as_dir}install.sh"; then
2519        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2520        ac_install_sh="${as_dir}install.sh -c"
2521      elif test -f "${as_dir}shtool"; then
2522        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2523        ac_install_sh="${as_dir}shtool install -c"
2524      else
2525        ac_aux_dir_found=no
2526        if $ac_first_candidate; then
2527          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2528        else
2529          break
2530        fi
2531      fi
2532    else
2533      if test -f "${as_dir}${ac_aux}"; then
2534        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2535      else
2536        ac_aux_dir_found=no
2537        if $ac_first_candidate; then
2538          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2539        else
2540          break
2541        fi
2542      fi
2543    fi
2544  done
2545  if test "$ac_aux_dir_found" = yes; then
2546    ac_aux_dir="$as_dir"
2547    break
2548  fi
2549  ac_first_candidate=false
2550
2551  as_found=false
2552done
2553IFS=$as_save_IFS
2554if $as_found
2555then :
2556
2557else $as_nop
2558  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2559fi
2560
2561
2562# These three variables are undocumented and unsupported,
2563# and are intended to be withdrawn in a future Autoconf release.
2564# They can cause serious problems if a builder's source tree is in a directory
2565# whose full name contains unusual characters.
2566if test -f "${ac_aux_dir}config.guess"; then
2567  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2568fi
2569if test -f "${ac_aux_dir}config.sub"; then
2570  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2571fi
2572if test -f "$ac_aux_dir/configure"; then
2573  ac_configure="$SHELL ${ac_aux_dir}configure"
2574fi
2575
2576# Check that the precious variables saved in the cache have kept the same
2577# value.
2578ac_cache_corrupted=false
2579for ac_var in $ac_precious_vars; do
2580  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581  eval ac_new_set=\$ac_env_${ac_var}_set
2582  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583  eval ac_new_val=\$ac_env_${ac_var}_value
2584  case $ac_old_set,$ac_new_set in
2585    set,)
2586      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2587printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588      ac_cache_corrupted=: ;;
2589    ,set)
2590      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2591printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592      ac_cache_corrupted=: ;;
2593    ,);;
2594    *)
2595      if test "x$ac_old_val" != "x$ac_new_val"; then
2596	# differences in whitespace do not lead to failure.
2597	ac_old_val_w=`echo x $ac_old_val`
2598	ac_new_val_w=`echo x $ac_new_val`
2599	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2600	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2601printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602	  ac_cache_corrupted=:
2603	else
2604	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2605printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606	  eval $ac_var=\$ac_old_val
2607	fi
2608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2609printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2610	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2611printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2612      fi;;
2613  esac
2614  # Pass precious variables to config.status.
2615  if test "$ac_new_set" = set; then
2616    case $ac_new_val in
2617    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618    *) ac_arg=$ac_var=$ac_new_val ;;
2619    esac
2620    case " $ac_configure_args " in
2621      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2622      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2623    esac
2624  fi
2625done
2626if $ac_cache_corrupted; then
2627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2630printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2631  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2632	    and start over" "$LINENO" 5
2633fi
2634## -------------------- ##
2635## Main body of script. ##
2636## -------------------- ##
2637
2638ac_ext=c
2639ac_cpp='$CPP $CPPFLAGS'
2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645
2646ac_config_headers="$ac_config_headers config.h"
2647
2648
2649
2650# Initialize Automake
2651am__api_version='1.16'
2652
2653
2654
2655  # Find a good install program.  We prefer a C program (faster),
2656# so one script is as good as another.  But avoid the broken or
2657# incompatible versions:
2658# SysV /etc/install, /usr/sbin/install
2659# SunOS /usr/etc/install
2660# IRIX /sbin/install
2661# AIX /bin/install
2662# AmigaOS /C/install, which installs bootblocks on floppy discs
2663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2664# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2666# OS/2's system install, which has a completely different semantic
2667# ./install, which can be erroneously created by make from ./install.sh.
2668# Reject install programs that cannot install multiple files.
2669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2670printf %s "checking for a BSD-compatible install... " >&6; }
2671if test -z "$INSTALL"; then
2672if test ${ac_cv_path_install+y}
2673then :
2674  printf %s "(cached) " >&6
2675else $as_nop
2676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679  IFS=$as_save_IFS
2680  case $as_dir in #(((
2681    '') as_dir=./ ;;
2682    */) ;;
2683    *) as_dir=$as_dir/ ;;
2684  esac
2685    # Account for fact that we put trailing slashes in our PATH walk.
2686case $as_dir in #((
2687  ./ | /[cC]/* | \
2688  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2689  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2690  /usr/ucb/* ) ;;
2691  *)
2692    # OSF1 and SCO ODT 3.0 have their own names for install.
2693    # Don't use installbsd from OSF since it installs stuff as root
2694    # by default.
2695    for ac_prog in ginstall scoinst install; do
2696      for ac_exec_ext in '' $ac_executable_extensions; do
2697	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2698	  if test $ac_prog = install &&
2699	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2700	    # AIX install.  It has an incompatible calling convention.
2701	    :
2702	  elif test $ac_prog = install &&
2703	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704	    # program-specific install script used by HP pwplus--don't use.
2705	    :
2706	  else
2707	    rm -rf conftest.one conftest.two conftest.dir
2708	    echo one > conftest.one
2709	    echo two > conftest.two
2710	    mkdir conftest.dir
2711	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2712	      test -s conftest.one && test -s conftest.two &&
2713	      test -s conftest.dir/conftest.one &&
2714	      test -s conftest.dir/conftest.two
2715	    then
2716	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2717	      break 3
2718	    fi
2719	  fi
2720	fi
2721      done
2722    done
2723    ;;
2724esac
2725
2726  done
2727IFS=$as_save_IFS
2728
2729rm -rf conftest.one conftest.two conftest.dir
2730
2731fi
2732  if test ${ac_cv_path_install+y}; then
2733    INSTALL=$ac_cv_path_install
2734  else
2735    # As a last resort, use the slow shell script.  Don't cache a
2736    # value for INSTALL within a source directory, because that will
2737    # break other packages using the cache if that directory is
2738    # removed, or if the value is a relative name.
2739    INSTALL=$ac_install_sh
2740  fi
2741fi
2742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2743printf "%s\n" "$INSTALL" >&6; }
2744
2745# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2746# It thinks the first close brace ends the variable substitution.
2747test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2748
2749test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2750
2751test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2752
2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2754printf %s "checking whether build environment is sane... " >&6; }
2755# Reject unsafe characters in $srcdir or the absolute working directory
2756# name.  Accept space and tab only in the latter.
2757am_lf='
2758'
2759case `pwd` in
2760  *[\\\"\#\$\&\'\`$am_lf]*)
2761    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2762esac
2763case $srcdir in
2764  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2765    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2766esac
2767
2768# Do 'set' in a subshell so we don't clobber the current shell's
2769# arguments.  Must try -L first in case configure is actually a
2770# symlink; some systems play weird games with the mod time of symlinks
2771# (eg FreeBSD returns the mod time of the symlink's containing
2772# directory).
2773if (
2774   am_has_slept=no
2775   for am_try in 1 2; do
2776     echo "timestamp, slept: $am_has_slept" > conftest.file
2777     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2778     if test "$*" = "X"; then
2779	# -L didn't work.
2780	set X `ls -t "$srcdir/configure" conftest.file`
2781     fi
2782     if test "$*" != "X $srcdir/configure conftest.file" \
2783	&& test "$*" != "X conftest.file $srcdir/configure"; then
2784
2785	# If neither matched, then we have a broken ls.  This can happen
2786	# if, for instance, CONFIG_SHELL is bash and it inherits a
2787	# broken ls alias from the environment.  This has actually
2788	# happened.  Such a system could not be considered "sane".
2789	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2790  alias in your environment" "$LINENO" 5
2791     fi
2792     if test "$2" = conftest.file || test $am_try -eq 2; then
2793       break
2794     fi
2795     # Just in case.
2796     sleep 1
2797     am_has_slept=yes
2798   done
2799   test "$2" = conftest.file
2800   )
2801then
2802   # Ok.
2803   :
2804else
2805   as_fn_error $? "newly created file is older than distributed files!
2806Check your system clock" "$LINENO" 5
2807fi
2808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2809printf "%s\n" "yes" >&6; }
2810# If we didn't sleep, we still need to ensure time stamps of config.status and
2811# generated files are strictly newer.
2812am_sleep_pid=
2813if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2814  ( sleep 1 ) &
2815  am_sleep_pid=$!
2816fi
2817
2818rm -f conftest.file
2819
2820test "$program_prefix" != NONE &&
2821  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2822# Use a double $ so make ignores it.
2823test "$program_suffix" != NONE &&
2824  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2825# Double any \ or $.
2826# By default was `s,x,x', remove it if useless.
2827ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2828program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2829
2830
2831# Expand $ac_aux_dir to an absolute path.
2832am_aux_dir=`cd "$ac_aux_dir" && pwd`
2833
2834
2835  if test x"${MISSING+set}" != xset; then
2836  MISSING="\${SHELL} '$am_aux_dir/missing'"
2837fi
2838# Use eval to expand $SHELL
2839if eval "$MISSING --is-lightweight"; then
2840  am_missing_run="$MISSING "
2841else
2842  am_missing_run=
2843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2844printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2845fi
2846
2847if test x"${install_sh+set}" != xset; then
2848  case $am_aux_dir in
2849  *\ * | *\	*)
2850    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2851  *)
2852    install_sh="\${SHELL} $am_aux_dir/install-sh"
2853  esac
2854fi
2855
2856# Installed binaries are usually stripped using 'strip' when the user
2857# run "make install-strip".  However 'strip' might not be the right
2858# tool to use in cross-compilation environments, therefore Automake
2859# will honor the 'STRIP' environment variable to overrule this program.
2860if test "$cross_compiling" != no; then
2861  if test -n "$ac_tool_prefix"; then
2862  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863set dummy ${ac_tool_prefix}strip; ac_word=$2
2864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865printf %s "checking for $ac_word... " >&6; }
2866if test ${ac_cv_prog_STRIP+y}
2867then :
2868  printf %s "(cached) " >&6
2869else $as_nop
2870  if test -n "$STRIP"; then
2871  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872else
2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874for as_dir in $PATH
2875do
2876  IFS=$as_save_IFS
2877  case $as_dir in #(((
2878    '') as_dir=./ ;;
2879    */) ;;
2880    *) as_dir=$as_dir/ ;;
2881  esac
2882    for ac_exec_ext in '' $ac_executable_extensions; do
2883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2884    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2886    break 2
2887  fi
2888done
2889  done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894STRIP=$ac_cv_prog_STRIP
2895if test -n "$STRIP"; then
2896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897printf "%s\n" "$STRIP" >&6; }
2898else
2899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900printf "%s\n" "no" >&6; }
2901fi
2902
2903
2904fi
2905if test -z "$ac_cv_prog_STRIP"; then
2906  ac_ct_STRIP=$STRIP
2907  # Extract the first word of "strip", so it can be a program name with args.
2908set dummy strip; ac_word=$2
2909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910printf %s "checking for $ac_word... " >&6; }
2911if test ${ac_cv_prog_ac_ct_STRIP+y}
2912then :
2913  printf %s "(cached) " >&6
2914else $as_nop
2915  if test -n "$ac_ct_STRIP"; then
2916  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  case $as_dir in #(((
2923    '') as_dir=./ ;;
2924    */) ;;
2925    *) as_dir=$as_dir/ ;;
2926  esac
2927    for ac_exec_ext in '' $ac_executable_extensions; do
2928  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2929    ac_cv_prog_ac_ct_STRIP="strip"
2930    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934  done
2935IFS=$as_save_IFS
2936
2937fi
2938fi
2939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940if test -n "$ac_ct_STRIP"; then
2941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2942printf "%s\n" "$ac_ct_STRIP" >&6; }
2943else
2944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945printf "%s\n" "no" >&6; }
2946fi
2947
2948  if test "x$ac_ct_STRIP" = x; then
2949    STRIP=":"
2950  else
2951    case $cross_compiling:$ac_tool_warned in
2952yes:)
2953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955ac_tool_warned=yes ;;
2956esac
2957    STRIP=$ac_ct_STRIP
2958  fi
2959else
2960  STRIP="$ac_cv_prog_STRIP"
2961fi
2962
2963fi
2964INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2965
2966
2967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2968printf %s "checking for a race-free mkdir -p... " >&6; }
2969if test -z "$MKDIR_P"; then
2970  if test ${ac_cv_path_mkdir+y}
2971then :
2972  printf %s "(cached) " >&6
2973else $as_nop
2974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2976do
2977  IFS=$as_save_IFS
2978  case $as_dir in #(((
2979    '') as_dir=./ ;;
2980    */) ;;
2981    *) as_dir=$as_dir/ ;;
2982  esac
2983    for ac_prog in mkdir gmkdir; do
2984	 for ac_exec_ext in '' $ac_executable_extensions; do
2985	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2986	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2987	     'mkdir ('*'coreutils) '* | \
2988	     'BusyBox '* | \
2989	     'mkdir (fileutils) '4.1*)
2990	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2991	       break 3;;
2992	   esac
2993	 done
2994       done
2995  done
2996IFS=$as_save_IFS
2997
2998fi
2999
3000  test -d ./--version && rmdir ./--version
3001  if test ${ac_cv_path_mkdir+y}; then
3002    MKDIR_P="$ac_cv_path_mkdir -p"
3003  else
3004    # As a last resort, use the slow shell script.  Don't cache a
3005    # value for MKDIR_P within a source directory, because that will
3006    # break other packages using the cache if that directory is
3007    # removed, or if the value is a relative name.
3008    MKDIR_P="$ac_install_sh -d"
3009  fi
3010fi
3011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3012printf "%s\n" "$MKDIR_P" >&6; }
3013
3014for ac_prog in gawk mawk nawk awk
3015do
3016  # Extract the first word of "$ac_prog", so it can be a program name with args.
3017set dummy $ac_prog; ac_word=$2
3018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019printf %s "checking for $ac_word... " >&6; }
3020if test ${ac_cv_prog_AWK+y}
3021then :
3022  printf %s "(cached) " >&6
3023else $as_nop
3024  if test -n "$AWK"; then
3025  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030  IFS=$as_save_IFS
3031  case $as_dir in #(((
3032    '') as_dir=./ ;;
3033    */) ;;
3034    *) as_dir=$as_dir/ ;;
3035  esac
3036    for ac_exec_ext in '' $ac_executable_extensions; do
3037  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3038    ac_cv_prog_AWK="$ac_prog"
3039    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048AWK=$ac_cv_prog_AWK
3049if test -n "$AWK"; then
3050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3051printf "%s\n" "$AWK" >&6; }
3052else
3053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054printf "%s\n" "no" >&6; }
3055fi
3056
3057
3058  test -n "$AWK" && break
3059done
3060
3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3062printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3063set x ${MAKE-make}
3064ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3065if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3066then :
3067  printf %s "(cached) " >&6
3068else $as_nop
3069  cat >conftest.make <<\_ACEOF
3070SHELL = /bin/sh
3071all:
3072	@echo '@@@%%%=$(MAKE)=@@@%%%'
3073_ACEOF
3074# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3075case `${MAKE-make} -f conftest.make 2>/dev/null` in
3076  *@@@%%%=?*=@@@%%%*)
3077    eval ac_cv_prog_make_${ac_make}_set=yes;;
3078  *)
3079    eval ac_cv_prog_make_${ac_make}_set=no;;
3080esac
3081rm -f conftest.make
3082fi
3083if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085printf "%s\n" "yes" >&6; }
3086  SET_MAKE=
3087else
3088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089printf "%s\n" "no" >&6; }
3090  SET_MAKE="MAKE=${MAKE-make}"
3091fi
3092
3093rm -rf .tst 2>/dev/null
3094mkdir .tst 2>/dev/null
3095if test -d .tst; then
3096  am__leading_dot=.
3097else
3098  am__leading_dot=_
3099fi
3100rmdir .tst 2>/dev/null
3101
3102# Check whether --enable-silent-rules was given.
3103if test ${enable_silent_rules+y}
3104then :
3105  enableval=$enable_silent_rules;
3106fi
3107
3108case $enable_silent_rules in # (((
3109  yes) AM_DEFAULT_VERBOSITY=0;;
3110   no) AM_DEFAULT_VERBOSITY=1;;
3111    *) AM_DEFAULT_VERBOSITY=1;;
3112esac
3113am_make=${MAKE-make}
3114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3115printf %s "checking whether $am_make supports nested variables... " >&6; }
3116if test ${am_cv_make_support_nested_variables+y}
3117then :
3118  printf %s "(cached) " >&6
3119else $as_nop
3120  if printf "%s\n" 'TRUE=$(BAR$(V))
3121BAR0=false
3122BAR1=true
3123V=1
3124am__doit:
3125	@$(TRUE)
3126.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3127  am_cv_make_support_nested_variables=yes
3128else
3129  am_cv_make_support_nested_variables=no
3130fi
3131fi
3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3133printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3134if test $am_cv_make_support_nested_variables = yes; then
3135    AM_V='$(V)'
3136  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3137else
3138  AM_V=$AM_DEFAULT_VERBOSITY
3139  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3140fi
3141AM_BACKSLASH='\'
3142
3143if test "`cd $srcdir && pwd`" != "`pwd`"; then
3144  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3145  # is not polluted with repeated "-I."
3146  am__isrc=' -I$(srcdir)'
3147  # test to see if srcdir already configured
3148  if test -f $srcdir/config.status; then
3149    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3150  fi
3151fi
3152
3153# test whether we have cygpath
3154if test -z "$CYGPATH_W"; then
3155  if (cygpath --version) >/dev/null 2>/dev/null; then
3156    CYGPATH_W='cygpath -w'
3157  else
3158    CYGPATH_W=echo
3159  fi
3160fi
3161
3162
3163# Define the identity of the package.
3164 PACKAGE='xf86-video-savage'
3165 VERSION='2.4.0'
3166
3167
3168printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3169
3170
3171printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3172
3173# Some tools Automake needs.
3174
3175ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3176
3177
3178AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3179
3180
3181AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3182
3183
3184AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3185
3186
3187MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3188
3189# For better backward compatibility.  To be removed once Automake 1.9.x
3190# dies out for good.  For more background, see:
3191# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3192# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3193mkdir_p='$(MKDIR_P)'
3194
3195# We need awk for the "check" target (and possibly the TAP driver).  The
3196# system "awk" is bad on some platforms.
3197# Always define AMTAR for backward compatibility.  Yes, it's still used
3198# in the wild :-(  We should find a proper way to deprecate it ...
3199AMTAR='$${TAR-tar}'
3200
3201
3202# We'll loop over all known methods to create a tar archive until one works.
3203_am_tools='gnutar  pax cpio none'
3204
3205am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3206
3207
3208
3209
3210
3211# Variables for tags utilities; see am/tags.am
3212if test -z "$CTAGS"; then
3213  CTAGS=ctags
3214fi
3215
3216if test -z "$ETAGS"; then
3217  ETAGS=etags
3218fi
3219
3220if test -z "$CSCOPE"; then
3221  CSCOPE=cscope
3222fi
3223
3224
3225
3226# POSIX will say in a future version that running "rm -f" with no argument
3227# is OK; and we want to be able to make that assumption in our Makefile
3228# recipes.  So use an aggressive probe to check that the usage we want is
3229# actually supported "in the wild" to an acceptable degree.
3230# See automake bug#10828.
3231# To make any issue more visible, cause the running configure to be aborted
3232# by default if the 'rm' program in use doesn't match our expectations; the
3233# user can still override this though.
3234if rm -f && rm -fr && rm -rf; then : OK; else
3235  cat >&2 <<'END'
3236Oops!
3237
3238Your 'rm' program seems unable to run without file operands specified
3239on the command line, even when the '-f' option is present.  This is contrary
3240to the behaviour of most rm programs out there, and not conforming with
3241the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3242
3243Please tell bug-automake@gnu.org about your system, including the value
3244of your $PATH and any error possibly output before this message.  This
3245can help us improve future automake versions.
3246
3247END
3248  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3249    echo 'Configuration will proceed anyway, since you have set the' >&2
3250    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3251    echo >&2
3252  else
3253    cat >&2 <<'END'
3254Aborting the configuration process, to ensure you take notice of the issue.
3255
3256You can download and install GNU coreutils to get an 'rm' implementation
3257that behaves properly: <https://www.gnu.org/software/coreutils/>.
3258
3259If you want to complete the configuration process using your problematic
3260'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3261to "yes", and re-run configure.
3262
3263END
3264    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3265  fi
3266fi
3267
3268
3269# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290DEPDIR="${am__leading_dot}deps"
3291
3292ac_config_commands="$ac_config_commands depfiles"
3293
3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3295printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3296cat > confinc.mk << 'END'
3297am__doit:
3298	@echo this is the am__doit target >confinc.out
3299.PHONY: am__doit
3300END
3301am__include="#"
3302am__quote=
3303# BSD make does it like this.
3304echo '.include "confinc.mk" # ignored' > confmf.BSD
3305# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3306echo 'include confinc.mk # ignored' > confmf.GNU
3307_am_result=no
3308for s in GNU BSD; do
3309  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3310   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3311   ac_status=$?
3312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); }
3314  case $?:`cat confinc.out 2>/dev/null` in #(
3315  '0:this is the am__doit target') :
3316    case $s in #(
3317  BSD) :
3318    am__include='.include' am__quote='"' ;; #(
3319  *) :
3320    am__include='include' am__quote='' ;;
3321esac ;; #(
3322  *) :
3323     ;;
3324esac
3325  if test "$am__include" != "#"; then
3326    _am_result="yes ($s style)"
3327    break
3328  fi
3329done
3330rm -f confinc.* confmf.*
3331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3332printf "%s\n" "${_am_result}" >&6; }
3333
3334# Check whether --enable-dependency-tracking was given.
3335if test ${enable_dependency_tracking+y}
3336then :
3337  enableval=$enable_dependency_tracking;
3338fi
3339
3340if test "x$enable_dependency_tracking" != xno; then
3341  am_depcomp="$ac_aux_dir/depcomp"
3342  AMDEPBACKSLASH='\'
3343  am__nodep='_no'
3344fi
3345 if test "x$enable_dependency_tracking" != xno; then
3346  AMDEP_TRUE=
3347  AMDEP_FALSE='#'
3348else
3349  AMDEP_TRUE='#'
3350  AMDEP_FALSE=
3351fi
3352
3353
3354ac_ext=c
3355ac_cpp='$CPP $CPPFLAGS'
3356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359if test -n "$ac_tool_prefix"; then
3360  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3361set dummy ${ac_tool_prefix}gcc; ac_word=$2
3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363printf %s "checking for $ac_word... " >&6; }
3364if test ${ac_cv_prog_CC+y}
3365then :
3366  printf %s "(cached) " >&6
3367else $as_nop
3368  if test -n "$CC"; then
3369  ac_cv_prog_CC="$CC" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  case $as_dir in #(((
3376    '') as_dir=./ ;;
3377    */) ;;
3378    *) as_dir=$as_dir/ ;;
3379  esac
3380    for ac_exec_ext in '' $ac_executable_extensions; do
3381  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3382    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3383    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3384    break 2
3385  fi
3386done
3387  done
3388IFS=$as_save_IFS
3389
3390fi
3391fi
3392CC=$ac_cv_prog_CC
3393if test -n "$CC"; then
3394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395printf "%s\n" "$CC" >&6; }
3396else
3397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398printf "%s\n" "no" >&6; }
3399fi
3400
3401
3402fi
3403if test -z "$ac_cv_prog_CC"; then
3404  ac_ct_CC=$CC
3405  # Extract the first word of "gcc", so it can be a program name with args.
3406set dummy gcc; ac_word=$2
3407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408printf %s "checking for $ac_word... " >&6; }
3409if test ${ac_cv_prog_ac_ct_CC+y}
3410then :
3411  printf %s "(cached) " >&6
3412else $as_nop
3413  if test -n "$ac_ct_CC"; then
3414  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419  IFS=$as_save_IFS
3420  case $as_dir in #(((
3421    '') as_dir=./ ;;
3422    */) ;;
3423    *) as_dir=$as_dir/ ;;
3424  esac
3425    for ac_exec_ext in '' $ac_executable_extensions; do
3426  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3427    ac_cv_prog_ac_ct_CC="gcc"
3428    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3429    break 2
3430  fi
3431done
3432  done
3433IFS=$as_save_IFS
3434
3435fi
3436fi
3437ac_ct_CC=$ac_cv_prog_ac_ct_CC
3438if test -n "$ac_ct_CC"; then
3439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3440printf "%s\n" "$ac_ct_CC" >&6; }
3441else
3442  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443printf "%s\n" "no" >&6; }
3444fi
3445
3446  if test "x$ac_ct_CC" = x; then
3447    CC=""
3448  else
3449    case $cross_compiling:$ac_tool_warned in
3450yes:)
3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453ac_tool_warned=yes ;;
3454esac
3455    CC=$ac_ct_CC
3456  fi
3457else
3458  CC="$ac_cv_prog_CC"
3459fi
3460
3461if test -z "$CC"; then
3462          if test -n "$ac_tool_prefix"; then
3463    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3464set dummy ${ac_tool_prefix}cc; ac_word=$2
3465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466printf %s "checking for $ac_word... " >&6; }
3467if test ${ac_cv_prog_CC+y}
3468then :
3469  printf %s "(cached) " >&6
3470else $as_nop
3471  if test -n "$CC"; then
3472  ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  case $as_dir in #(((
3479    '') as_dir=./ ;;
3480    */) ;;
3481    *) as_dir=$as_dir/ ;;
3482  esac
3483    for ac_exec_ext in '' $ac_executable_extensions; do
3484  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3485    ac_cv_prog_CC="${ac_tool_prefix}cc"
3486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3487    break 2
3488  fi
3489done
3490  done
3491IFS=$as_save_IFS
3492
3493fi
3494fi
3495CC=$ac_cv_prog_CC
3496if test -n "$CC"; then
3497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498printf "%s\n" "$CC" >&6; }
3499else
3500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501printf "%s\n" "no" >&6; }
3502fi
3503
3504
3505  fi
3506fi
3507if test -z "$CC"; then
3508  # Extract the first word of "cc", so it can be a program name with args.
3509set dummy cc; ac_word=$2
3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511printf %s "checking for $ac_word... " >&6; }
3512if test ${ac_cv_prog_CC+y}
3513then :
3514  printf %s "(cached) " >&6
3515else $as_nop
3516  if test -n "$CC"; then
3517  ac_cv_prog_CC="$CC" # Let the user override the test.
3518else
3519  ac_prog_rejected=no
3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521for as_dir in $PATH
3522do
3523  IFS=$as_save_IFS
3524  case $as_dir in #(((
3525    '') as_dir=./ ;;
3526    */) ;;
3527    *) as_dir=$as_dir/ ;;
3528  esac
3529    for ac_exec_ext in '' $ac_executable_extensions; do
3530  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3531    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532       ac_prog_rejected=yes
3533       continue
3534     fi
3535    ac_cv_prog_CC="cc"
3536    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3537    break 2
3538  fi
3539done
3540  done
3541IFS=$as_save_IFS
3542
3543if test $ac_prog_rejected = yes; then
3544  # We found a bogon in the path, so make sure we never use it.
3545  set dummy $ac_cv_prog_CC
3546  shift
3547  if test $# != 0; then
3548    # We chose a different compiler from the bogus one.
3549    # However, it has the same basename, so the bogon will be chosen
3550    # first if we set CC to just the basename; use the full file name.
3551    shift
3552    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3553  fi
3554fi
3555fi
3556fi
3557CC=$ac_cv_prog_CC
3558if test -n "$CC"; then
3559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560printf "%s\n" "$CC" >&6; }
3561else
3562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563printf "%s\n" "no" >&6; }
3564fi
3565
3566
3567fi
3568if test -z "$CC"; then
3569  if test -n "$ac_tool_prefix"; then
3570  for ac_prog in cl.exe
3571  do
3572    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575printf %s "checking for $ac_word... " >&6; }
3576if test ${ac_cv_prog_CC+y}
3577then :
3578  printf %s "(cached) " >&6
3579else $as_nop
3580  if test -n "$CC"; then
3581  ac_cv_prog_CC="$CC" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586  IFS=$as_save_IFS
3587  case $as_dir in #(((
3588    '') as_dir=./ ;;
3589    */) ;;
3590    *) as_dir=$as_dir/ ;;
3591  esac
3592    for ac_exec_ext in '' $ac_executable_extensions; do
3593  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3594    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3595    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3596    break 2
3597  fi
3598done
3599  done
3600IFS=$as_save_IFS
3601
3602fi
3603fi
3604CC=$ac_cv_prog_CC
3605if test -n "$CC"; then
3606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607printf "%s\n" "$CC" >&6; }
3608else
3609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610printf "%s\n" "no" >&6; }
3611fi
3612
3613
3614    test -n "$CC" && break
3615  done
3616fi
3617if test -z "$CC"; then
3618  ac_ct_CC=$CC
3619  for ac_prog in cl.exe
3620do
3621  # Extract the first word of "$ac_prog", so it can be a program name with args.
3622set dummy $ac_prog; ac_word=$2
3623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624printf %s "checking for $ac_word... " >&6; }
3625if test ${ac_cv_prog_ac_ct_CC+y}
3626then :
3627  printf %s "(cached) " >&6
3628else $as_nop
3629  if test -n "$ac_ct_CC"; then
3630  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3631else
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635  IFS=$as_save_IFS
3636  case $as_dir in #(((
3637    '') as_dir=./ ;;
3638    */) ;;
3639    *) as_dir=$as_dir/ ;;
3640  esac
3641    for ac_exec_ext in '' $ac_executable_extensions; do
3642  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3643    ac_cv_prog_ac_ct_CC="$ac_prog"
3644    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3645    break 2
3646  fi
3647done
3648  done
3649IFS=$as_save_IFS
3650
3651fi
3652fi
3653ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654if test -n "$ac_ct_CC"; then
3655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656printf "%s\n" "$ac_ct_CC" >&6; }
3657else
3658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659printf "%s\n" "no" >&6; }
3660fi
3661
3662
3663  test -n "$ac_ct_CC" && break
3664done
3665
3666  if test "x$ac_ct_CC" = x; then
3667    CC=""
3668  else
3669    case $cross_compiling:$ac_tool_warned in
3670yes:)
3671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673ac_tool_warned=yes ;;
3674esac
3675    CC=$ac_ct_CC
3676  fi
3677fi
3678
3679fi
3680if test -z "$CC"; then
3681  if test -n "$ac_tool_prefix"; then
3682  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3683set dummy ${ac_tool_prefix}clang; ac_word=$2
3684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685printf %s "checking for $ac_word... " >&6; }
3686if test ${ac_cv_prog_CC+y}
3687then :
3688  printf %s "(cached) " >&6
3689else $as_nop
3690  if test -n "$CC"; then
3691  ac_cv_prog_CC="$CC" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696  IFS=$as_save_IFS
3697  case $as_dir in #(((
3698    '') as_dir=./ ;;
3699    */) ;;
3700    *) as_dir=$as_dir/ ;;
3701  esac
3702    for ac_exec_ext in '' $ac_executable_extensions; do
3703  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3704    ac_cv_prog_CC="${ac_tool_prefix}clang"
3705    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3706    break 2
3707  fi
3708done
3709  done
3710IFS=$as_save_IFS
3711
3712fi
3713fi
3714CC=$ac_cv_prog_CC
3715if test -n "$CC"; then
3716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717printf "%s\n" "$CC" >&6; }
3718else
3719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720printf "%s\n" "no" >&6; }
3721fi
3722
3723
3724fi
3725if test -z "$ac_cv_prog_CC"; then
3726  ac_ct_CC=$CC
3727  # Extract the first word of "clang", so it can be a program name with args.
3728set dummy clang; ac_word=$2
3729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730printf %s "checking for $ac_word... " >&6; }
3731if test ${ac_cv_prog_ac_ct_CC+y}
3732then :
3733  printf %s "(cached) " >&6
3734else $as_nop
3735  if test -n "$ac_ct_CC"; then
3736  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3737else
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741  IFS=$as_save_IFS
3742  case $as_dir in #(((
3743    '') as_dir=./ ;;
3744    */) ;;
3745    *) as_dir=$as_dir/ ;;
3746  esac
3747    for ac_exec_ext in '' $ac_executable_extensions; do
3748  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3749    ac_cv_prog_ac_ct_CC="clang"
3750    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3751    break 2
3752  fi
3753done
3754  done
3755IFS=$as_save_IFS
3756
3757fi
3758fi
3759ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760if test -n "$ac_ct_CC"; then
3761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3762printf "%s\n" "$ac_ct_CC" >&6; }
3763else
3764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765printf "%s\n" "no" >&6; }
3766fi
3767
3768  if test "x$ac_ct_CC" = x; then
3769    CC=""
3770  else
3771    case $cross_compiling:$ac_tool_warned in
3772yes:)
3773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3774printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3775ac_tool_warned=yes ;;
3776esac
3777    CC=$ac_ct_CC
3778  fi
3779else
3780  CC="$ac_cv_prog_CC"
3781fi
3782
3783fi
3784
3785
3786test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3788as_fn_error $? "no acceptable C compiler found in \$PATH
3789See \`config.log' for more details" "$LINENO" 5; }
3790
3791# Provide some information about the compiler.
3792printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793set X $ac_compile
3794ac_compiler=$2
3795for ac_option in --version -v -V -qversion -version; do
3796  { { ac_try="$ac_compiler $ac_option >&5"
3797case "(($ac_try" in
3798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799  *) ac_try_echo=$ac_try;;
3800esac
3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802printf "%s\n" "$ac_try_echo"; } >&5
3803  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804  ac_status=$?
3805  if test -s conftest.err; then
3806    sed '10a\
3807... rest of stderr output deleted ...
3808         10q' conftest.err >conftest.er1
3809    cat conftest.er1 >&5
3810  fi
3811  rm -f conftest.er1 conftest.err
3812  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813  test $ac_status = 0; }
3814done
3815
3816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818
3819int
3820main (void)
3821{
3822
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827ac_clean_files_save=$ac_clean_files
3828ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3829# Try to create an executable without -o first, disregard a.out.
3830# It will help us diagnose broken compilers, and finding out an intuition
3831# of exeext.
3832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3833printf %s "checking whether the C compiler works... " >&6; }
3834ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835
3836# The possible output files:
3837ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838
3839ac_rmfiles=
3840for ac_file in $ac_files
3841do
3842  case $ac_file in
3843    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845  esac
3846done
3847rm -f $ac_rmfiles
3848
3849if { { ac_try="$ac_link_default"
3850case "(($ac_try" in
3851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852  *) ac_try_echo=$ac_try;;
3853esac
3854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855printf "%s\n" "$ac_try_echo"; } >&5
3856  (eval "$ac_link_default") 2>&5
3857  ac_status=$?
3858  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859  test $ac_status = 0; }
3860then :
3861  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3864# so that the user can short-circuit this test for compilers unknown to
3865# Autoconf.
3866for ac_file in $ac_files ''
3867do
3868  test -f "$ac_file" || continue
3869  case $ac_file in
3870    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871	;;
3872    [ab].out )
3873	# We found the default executable, but exeext='' is most
3874	# certainly right.
3875	break;;
3876    *.* )
3877	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3878	then :; else
3879	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880	fi
3881	# We set ac_cv_exeext here because the later test for it is not
3882	# safe: cross compilers may not add the suffix if given an `-o'
3883	# argument, so we may need to know it at that point already.
3884	# Even if this section looks crufty: it has the advantage of
3885	# actually working.
3886	break;;
3887    * )
3888	break;;
3889  esac
3890done
3891test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893else $as_nop
3894  ac_file=''
3895fi
3896if test -z "$ac_file"
3897then :
3898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899printf "%s\n" "no" >&6; }
3900printf "%s\n" "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3905as_fn_error 77 "C compiler cannot create executables
3906See \`config.log' for more details" "$LINENO" 5; }
3907else $as_nop
3908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909printf "%s\n" "yes" >&6; }
3910fi
3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3912printf %s "checking for C compiler default output file name... " >&6; }
3913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3914printf "%s\n" "$ac_file" >&6; }
3915ac_exeext=$ac_cv_exeext
3916
3917rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3918ac_clean_files=$ac_clean_files_save
3919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3920printf %s "checking for suffix of executables... " >&6; }
3921if { { ac_try="$ac_link"
3922case "(($ac_try" in
3923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924  *) ac_try_echo=$ac_try;;
3925esac
3926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927printf "%s\n" "$ac_try_echo"; } >&5
3928  (eval "$ac_link") 2>&5
3929  ac_status=$?
3930  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931  test $ac_status = 0; }
3932then :
3933  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3934# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3935# work properly (i.e., refer to `conftest.exe'), while it won't with
3936# `rm'.
3937for ac_file in conftest.exe conftest conftest.*; do
3938  test -f "$ac_file" || continue
3939  case $ac_file in
3940    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3941    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942	  break;;
3943    * ) break;;
3944  esac
3945done
3946else $as_nop
3947  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3949as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3950See \`config.log' for more details" "$LINENO" 5; }
3951fi
3952rm -f conftest conftest$ac_cv_exeext
3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3954printf "%s\n" "$ac_cv_exeext" >&6; }
3955
3956rm -f conftest.$ac_ext
3957EXEEXT=$ac_cv_exeext
3958ac_exeext=$EXEEXT
3959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h.  */
3961#include <stdio.h>
3962int
3963main (void)
3964{
3965FILE *f = fopen ("conftest.out", "w");
3966 return ferror (f) || fclose (f) != 0;
3967
3968  ;
3969  return 0;
3970}
3971_ACEOF
3972ac_clean_files="$ac_clean_files conftest.out"
3973# Check that the compiler produces executables we can run.  If not, either
3974# the compiler is broken, or we cross compile.
3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3976printf %s "checking whether we are cross compiling... " >&6; }
3977if test "$cross_compiling" != yes; then
3978  { { ac_try="$ac_link"
3979case "(($ac_try" in
3980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981  *) ac_try_echo=$ac_try;;
3982esac
3983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984printf "%s\n" "$ac_try_echo"; } >&5
3985  (eval "$ac_link") 2>&5
3986  ac_status=$?
3987  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3988  test $ac_status = 0; }
3989  if { ac_try='./conftest$ac_cv_exeext'
3990  { { case "(($ac_try" in
3991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992  *) ac_try_echo=$ac_try;;
3993esac
3994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3995printf "%s\n" "$ac_try_echo"; } >&5
3996  (eval "$ac_try") 2>&5
3997  ac_status=$?
3998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3999  test $ac_status = 0; }; }; then
4000    cross_compiling=no
4001  else
4002    if test "$cross_compiling" = maybe; then
4003	cross_compiling=yes
4004    else
4005	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4007as_fn_error 77 "cannot run C compiled programs.
4008If you meant to cross compile, use \`--host'.
4009See \`config.log' for more details" "$LINENO" 5; }
4010    fi
4011  fi
4012fi
4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4014printf "%s\n" "$cross_compiling" >&6; }
4015
4016rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4017ac_clean_files=$ac_clean_files_save
4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4019printf %s "checking for suffix of object files... " >&6; }
4020if test ${ac_cv_objext+y}
4021then :
4022  printf %s "(cached) " >&6
4023else $as_nop
4024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h.  */
4026
4027int
4028main (void)
4029{
4030
4031  ;
4032  return 0;
4033}
4034_ACEOF
4035rm -f conftest.o conftest.obj
4036if { { ac_try="$ac_compile"
4037case "(($ac_try" in
4038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039  *) ac_try_echo=$ac_try;;
4040esac
4041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042printf "%s\n" "$ac_try_echo"; } >&5
4043  (eval "$ac_compile") 2>&5
4044  ac_status=$?
4045  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046  test $ac_status = 0; }
4047then :
4048  for ac_file in conftest.o conftest.obj conftest.*; do
4049  test -f "$ac_file" || continue;
4050  case $ac_file in
4051    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4052    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4053       break;;
4054  esac
4055done
4056else $as_nop
4057  printf "%s\n" "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4062as_fn_error $? "cannot compute suffix of object files: cannot compile
4063See \`config.log' for more details" "$LINENO" 5; }
4064fi
4065rm -f conftest.$ac_cv_objext conftest.$ac_ext
4066fi
4067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4068printf "%s\n" "$ac_cv_objext" >&6; }
4069OBJEXT=$ac_cv_objext
4070ac_objext=$OBJEXT
4071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4072printf %s "checking whether the compiler supports GNU C... " >&6; }
4073if test ${ac_cv_c_compiler_gnu+y}
4074then :
4075  printf %s "(cached) " >&6
4076else $as_nop
4077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h.  */
4079
4080int
4081main (void)
4082{
4083#ifndef __GNUC__
4084       choke me
4085#endif
4086
4087  ;
4088  return 0;
4089}
4090_ACEOF
4091if ac_fn_c_try_compile "$LINENO"
4092then :
4093  ac_compiler_gnu=yes
4094else $as_nop
4095  ac_compiler_gnu=no
4096fi
4097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098ac_cv_c_compiler_gnu=$ac_compiler_gnu
4099
4100fi
4101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4102printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105if test $ac_compiler_gnu = yes; then
4106  GCC=yes
4107else
4108  GCC=
4109fi
4110ac_test_CFLAGS=${CFLAGS+y}
4111ac_save_CFLAGS=$CFLAGS
4112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4113printf %s "checking whether $CC accepts -g... " >&6; }
4114if test ${ac_cv_prog_cc_g+y}
4115then :
4116  printf %s "(cached) " >&6
4117else $as_nop
4118  ac_save_c_werror_flag=$ac_c_werror_flag
4119   ac_c_werror_flag=yes
4120   ac_cv_prog_cc_g=no
4121   CFLAGS="-g"
4122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124
4125int
4126main (void)
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_compile "$LINENO"
4134then :
4135  ac_cv_prog_cc_g=yes
4136else $as_nop
4137  CFLAGS=""
4138      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h.  */
4140
4141int
4142main (void)
4143{
4144
4145  ;
4146  return 0;
4147}
4148_ACEOF
4149if ac_fn_c_try_compile "$LINENO"
4150then :
4151
4152else $as_nop
4153  ac_c_werror_flag=$ac_save_c_werror_flag
4154	 CFLAGS="-g"
4155	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h.  */
4157
4158int
4159main (void)
4160{
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166if ac_fn_c_try_compile "$LINENO"
4167then :
4168  ac_cv_prog_cc_g=yes
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171fi
4172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4175   ac_c_werror_flag=$ac_save_c_werror_flag
4176fi
4177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4179if test $ac_test_CFLAGS; then
4180  CFLAGS=$ac_save_CFLAGS
4181elif test $ac_cv_prog_cc_g = yes; then
4182  if test "$GCC" = yes; then
4183    CFLAGS="-g -O2"
4184  else
4185    CFLAGS="-g"
4186  fi
4187else
4188  if test "$GCC" = yes; then
4189    CFLAGS="-O2"
4190  else
4191    CFLAGS=
4192  fi
4193fi
4194ac_prog_cc_stdc=no
4195if test x$ac_prog_cc_stdc = xno
4196then :
4197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4198printf %s "checking for $CC option to enable C11 features... " >&6; }
4199if test ${ac_cv_prog_cc_c11+y}
4200then :
4201  printf %s "(cached) " >&6
4202else $as_nop
4203  ac_cv_prog_cc_c11=no
4204ac_save_CC=$CC
4205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206/* end confdefs.h.  */
4207$ac_c_conftest_c11_program
4208_ACEOF
4209for ac_arg in '' -std=gnu11
4210do
4211  CC="$ac_save_CC $ac_arg"
4212  if ac_fn_c_try_compile "$LINENO"
4213then :
4214  ac_cv_prog_cc_c11=$ac_arg
4215fi
4216rm -f core conftest.err conftest.$ac_objext conftest.beam
4217  test "x$ac_cv_prog_cc_c11" != "xno" && break
4218done
4219rm -f conftest.$ac_ext
4220CC=$ac_save_CC
4221fi
4222
4223if test "x$ac_cv_prog_cc_c11" = xno
4224then :
4225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226printf "%s\n" "unsupported" >&6; }
4227else $as_nop
4228  if test "x$ac_cv_prog_cc_c11" = x
4229then :
4230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231printf "%s\n" "none needed" >&6; }
4232else $as_nop
4233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4234printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4235     CC="$CC $ac_cv_prog_cc_c11"
4236fi
4237  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4238  ac_prog_cc_stdc=c11
4239fi
4240fi
4241if test x$ac_prog_cc_stdc = xno
4242then :
4243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4244printf %s "checking for $CC option to enable C99 features... " >&6; }
4245if test ${ac_cv_prog_cc_c99+y}
4246then :
4247  printf %s "(cached) " >&6
4248else $as_nop
4249  ac_cv_prog_cc_c99=no
4250ac_save_CC=$CC
4251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252/* end confdefs.h.  */
4253$ac_c_conftest_c99_program
4254_ACEOF
4255for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4256do
4257  CC="$ac_save_CC $ac_arg"
4258  if ac_fn_c_try_compile "$LINENO"
4259then :
4260  ac_cv_prog_cc_c99=$ac_arg
4261fi
4262rm -f core conftest.err conftest.$ac_objext conftest.beam
4263  test "x$ac_cv_prog_cc_c99" != "xno" && break
4264done
4265rm -f conftest.$ac_ext
4266CC=$ac_save_CC
4267fi
4268
4269if test "x$ac_cv_prog_cc_c99" = xno
4270then :
4271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4272printf "%s\n" "unsupported" >&6; }
4273else $as_nop
4274  if test "x$ac_cv_prog_cc_c99" = x
4275then :
4276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277printf "%s\n" "none needed" >&6; }
4278else $as_nop
4279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4280printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4281     CC="$CC $ac_cv_prog_cc_c99"
4282fi
4283  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4284  ac_prog_cc_stdc=c99
4285fi
4286fi
4287if test x$ac_prog_cc_stdc = xno
4288then :
4289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4290printf %s "checking for $CC option to enable C89 features... " >&6; }
4291if test ${ac_cv_prog_cc_c89+y}
4292then :
4293  printf %s "(cached) " >&6
4294else $as_nop
4295  ac_cv_prog_cc_c89=no
4296ac_save_CC=$CC
4297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298/* end confdefs.h.  */
4299$ac_c_conftest_c89_program
4300_ACEOF
4301for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4302do
4303  CC="$ac_save_CC $ac_arg"
4304  if ac_fn_c_try_compile "$LINENO"
4305then :
4306  ac_cv_prog_cc_c89=$ac_arg
4307fi
4308rm -f core conftest.err conftest.$ac_objext conftest.beam
4309  test "x$ac_cv_prog_cc_c89" != "xno" && break
4310done
4311rm -f conftest.$ac_ext
4312CC=$ac_save_CC
4313fi
4314
4315if test "x$ac_cv_prog_cc_c89" = xno
4316then :
4317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318printf "%s\n" "unsupported" >&6; }
4319else $as_nop
4320  if test "x$ac_cv_prog_cc_c89" = x
4321then :
4322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4323printf "%s\n" "none needed" >&6; }
4324else $as_nop
4325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4326printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4327     CC="$CC $ac_cv_prog_cc_c89"
4328fi
4329  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4330  ac_prog_cc_stdc=c89
4331fi
4332fi
4333
4334ac_ext=c
4335ac_cpp='$CPP $CPPFLAGS'
4336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340
4341  ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4347printf %s "checking whether $CC understands -c and -o together... " >&6; }
4348if test ${am_cv_prog_cc_c_o+y}
4349then :
4350  printf %s "(cached) " >&6
4351else $as_nop
4352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353/* end confdefs.h.  */
4354
4355int
4356main (void)
4357{
4358
4359  ;
4360  return 0;
4361}
4362_ACEOF
4363  # Make sure it works both with $CC and with simple cc.
4364  # Following AC_PROG_CC_C_O, we do the test twice because some
4365  # compilers refuse to overwrite an existing .o file with -o,
4366  # though they will create one.
4367  am_cv_prog_cc_c_o=yes
4368  for am_i in 1 2; do
4369    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4370   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } \
4374         && test -f conftest2.$ac_objext; then
4375      : OK
4376    else
4377      am_cv_prog_cc_c_o=no
4378      break
4379    fi
4380  done
4381  rm -f core conftest*
4382  unset am_i
4383fi
4384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4385printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4386if test "$am_cv_prog_cc_c_o" != yes; then
4387   # Losing compiler, so override with the script.
4388   # FIXME: It is wrong to rewrite CC.
4389   # But if we don't then we get into trouble of one sort or another.
4390   # A longer-term fix would be to have automake use am__CC in this case,
4391   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4392   CC="$am_aux_dir/compile $CC"
4393fi
4394ac_ext=c
4395ac_cpp='$CPP $CPPFLAGS'
4396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398ac_compiler_gnu=$ac_cv_c_compiler_gnu
4399
4400
4401depcc="$CC"   am_compiler_list=
4402
4403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4404printf %s "checking dependency style of $depcc... " >&6; }
4405if test ${am_cv_CC_dependencies_compiler_type+y}
4406then :
4407  printf %s "(cached) " >&6
4408else $as_nop
4409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4410  # We make a subdir and do the tests there.  Otherwise we can end up
4411  # making bogus files that we don't know about and never remove.  For
4412  # instance it was reported that on HP-UX the gcc test will end up
4413  # making a dummy file named 'D' -- because '-MD' means "put the output
4414  # in D".
4415  rm -rf conftest.dir
4416  mkdir conftest.dir
4417  # Copy depcomp to subdir because otherwise we won't find it if we're
4418  # using a relative directory.
4419  cp "$am_depcomp" conftest.dir
4420  cd conftest.dir
4421  # We will build objects and dependencies in a subdirectory because
4422  # it helps to detect inapplicable dependency modes.  For instance
4423  # both Tru64's cc and ICC support -MD to output dependencies as a
4424  # side effect of compilation, but ICC will put the dependencies in
4425  # the current directory while Tru64 will put them in the object
4426  # directory.
4427  mkdir sub
4428
4429  am_cv_CC_dependencies_compiler_type=none
4430  if test "$am_compiler_list" = ""; then
4431     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4432  fi
4433  am__universal=false
4434  case " $depcc " in #(
4435     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4436     esac
4437
4438  for depmode in $am_compiler_list; do
4439    # Setup a source with many dependencies, because some compilers
4440    # like to wrap large dependency lists on column 80 (with \), and
4441    # we should not choose a depcomp mode which is confused by this.
4442    #
4443    # We need to recreate these files for each test, as the compiler may
4444    # overwrite some of them when testing with obscure command lines.
4445    # This happens at least with the AIX C compiler.
4446    : > sub/conftest.c
4447    for i in 1 2 3 4 5 6; do
4448      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4449      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4450      # Solaris 10 /bin/sh.
4451      echo '/* dummy */' > sub/conftst$i.h
4452    done
4453    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4454
4455    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4456    # mode.  It turns out that the SunPro C++ compiler does not properly
4457    # handle '-M -o', and we need to detect this.  Also, some Intel
4458    # versions had trouble with output in subdirs.
4459    am__obj=sub/conftest.${OBJEXT-o}
4460    am__minus_obj="-o $am__obj"
4461    case $depmode in
4462    gcc)
4463      # This depmode causes a compiler race in universal mode.
4464      test "$am__universal" = false || continue
4465      ;;
4466    nosideeffect)
4467      # After this tag, mechanisms are not by side-effect, so they'll
4468      # only be used when explicitly requested.
4469      if test "x$enable_dependency_tracking" = xyes; then
4470	continue
4471      else
4472	break
4473      fi
4474      ;;
4475    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4476      # This compiler won't grok '-c -o', but also, the minuso test has
4477      # not run yet.  These depmodes are late enough in the game, and
4478      # so weak that their functioning should not be impacted.
4479      am__obj=conftest.${OBJEXT-o}
4480      am__minus_obj=
4481      ;;
4482    none) break ;;
4483    esac
4484    if depmode=$depmode \
4485       source=sub/conftest.c object=$am__obj \
4486       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4487       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4488         >/dev/null 2>conftest.err &&
4489       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4490       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4491       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4492       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4493      # icc doesn't choke on unknown options, it will just issue warnings
4494      # or remarks (even with -Werror).  So we grep stderr for any message
4495      # that says an option was ignored or not supported.
4496      # When given -MP, icc 7.0 and 7.1 complain thusly:
4497      #   icc: Command line warning: ignoring option '-M'; no argument required
4498      # The diagnosis changed in icc 8.0:
4499      #   icc: Command line remark: option '-MP' not supported
4500      if (grep 'ignoring option' conftest.err ||
4501          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4502        am_cv_CC_dependencies_compiler_type=$depmode
4503        break
4504      fi
4505    fi
4506  done
4507
4508  cd ..
4509  rm -rf conftest.dir
4510else
4511  am_cv_CC_dependencies_compiler_type=none
4512fi
4513
4514fi
4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4516printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4517CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4518
4519 if
4520  test "x$enable_dependency_tracking" != xno \
4521  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4522  am__fastdepCC_TRUE=
4523  am__fastdepCC_FALSE='#'
4524else
4525  am__fastdepCC_TRUE='#'
4526  am__fastdepCC_FALSE=
4527fi
4528
4529
4530
4531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4532printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4533if test ${ac_cv_c_undeclared_builtin_options+y}
4534then :
4535  printf %s "(cached) " >&6
4536else $as_nop
4537  ac_save_CFLAGS=$CFLAGS
4538   ac_cv_c_undeclared_builtin_options='cannot detect'
4539   for ac_arg in '' -fno-builtin; do
4540     CFLAGS="$ac_save_CFLAGS $ac_arg"
4541     # This test program should *not* compile successfully.
4542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h.  */
4544
4545int
4546main (void)
4547{
4548(void) strchr;
4549  ;
4550  return 0;
4551}
4552_ACEOF
4553if ac_fn_c_try_compile "$LINENO"
4554then :
4555
4556else $as_nop
4557  # This test program should compile successfully.
4558        # No library function is consistently available on
4559        # freestanding implementations, so test against a dummy
4560        # declaration.  Include always-available headers on the
4561        # off chance that they somehow elicit warnings.
4562        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563/* end confdefs.h.  */
4564#include <float.h>
4565#include <limits.h>
4566#include <stdarg.h>
4567#include <stddef.h>
4568extern void ac_decl (int, char *);
4569
4570int
4571main (void)
4572{
4573(void) ac_decl (0, (char *) 0);
4574  (void) ac_decl;
4575
4576  ;
4577  return 0;
4578}
4579_ACEOF
4580if ac_fn_c_try_compile "$LINENO"
4581then :
4582  if test x"$ac_arg" = x
4583then :
4584  ac_cv_c_undeclared_builtin_options='none needed'
4585else $as_nop
4586  ac_cv_c_undeclared_builtin_options=$ac_arg
4587fi
4588          break
4589fi
4590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4591fi
4592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4593    done
4594    CFLAGS=$ac_save_CFLAGS
4595
4596fi
4597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4598printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4599  case $ac_cv_c_undeclared_builtin_options in #(
4600  'cannot detect') :
4601    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4603as_fn_error $? "cannot make $CC report undeclared builtins
4604See \`config.log' for more details" "$LINENO" 5; } ;; #(
4605  'none needed') :
4606    ac_c_undeclared_builtin_options='' ;; #(
4607  *) :
4608    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4609esac
4610
4611ac_header= ac_cache=
4612for ac_item in $ac_header_c_list
4613do
4614  if test $ac_cache; then
4615    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4616    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4617      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4618    fi
4619    ac_header= ac_cache=
4620  elif test $ac_header; then
4621    ac_cache=$ac_item
4622  else
4623    ac_header=$ac_item
4624  fi
4625done
4626
4627
4628
4629
4630
4631
4632
4633
4634if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4635then :
4636
4637printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4638
4639fi
4640
4641
4642
4643
4644ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4645if test "x$ac_cv_have_decl___clang__" = xyes
4646then :
4647  CLANGCC="yes"
4648else $as_nop
4649  CLANGCC="no"
4650fi
4651ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4652if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4653then :
4654  INTELCC="yes"
4655else $as_nop
4656  INTELCC="no"
4657fi
4658ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4659if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4660then :
4661  SUNCC="yes"
4662else $as_nop
4663  SUNCC="no"
4664fi
4665
4666
4667
4668
4669
4670
4671
4672
4673if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4674	if test -n "$ac_tool_prefix"; then
4675  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4676set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678printf %s "checking for $ac_word... " >&6; }
4679if test ${ac_cv_path_PKG_CONFIG+y}
4680then :
4681  printf %s "(cached) " >&6
4682else $as_nop
4683  case $PKG_CONFIG in
4684  [\\/]* | ?:[\\/]*)
4685  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4686  ;;
4687  *)
4688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691  IFS=$as_save_IFS
4692  case $as_dir in #(((
4693    '') as_dir=./ ;;
4694    */) ;;
4695    *) as_dir=$as_dir/ ;;
4696  esac
4697    for ac_exec_ext in '' $ac_executable_extensions; do
4698  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4699    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4700    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4701    break 2
4702  fi
4703done
4704  done
4705IFS=$as_save_IFS
4706
4707  ;;
4708esac
4709fi
4710PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4711if test -n "$PKG_CONFIG"; then
4712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4713printf "%s\n" "$PKG_CONFIG" >&6; }
4714else
4715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716printf "%s\n" "no" >&6; }
4717fi
4718
4719
4720fi
4721if test -z "$ac_cv_path_PKG_CONFIG"; then
4722  ac_pt_PKG_CONFIG=$PKG_CONFIG
4723  # Extract the first word of "pkg-config", so it can be a program name with args.
4724set dummy pkg-config; ac_word=$2
4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726printf %s "checking for $ac_word... " >&6; }
4727if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4728then :
4729  printf %s "(cached) " >&6
4730else $as_nop
4731  case $ac_pt_PKG_CONFIG in
4732  [\\/]* | ?:[\\/]*)
4733  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4734  ;;
4735  *)
4736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  case $as_dir in #(((
4741    '') as_dir=./ ;;
4742    */) ;;
4743    *) as_dir=$as_dir/ ;;
4744  esac
4745    for ac_exec_ext in '' $ac_executable_extensions; do
4746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4747    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752  done
4753IFS=$as_save_IFS
4754
4755  ;;
4756esac
4757fi
4758ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4759if test -n "$ac_pt_PKG_CONFIG"; then
4760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4761printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4762else
4763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764printf "%s\n" "no" >&6; }
4765fi
4766
4767  if test "x$ac_pt_PKG_CONFIG" = x; then
4768    PKG_CONFIG=""
4769  else
4770    case $cross_compiling:$ac_tool_warned in
4771yes:)
4772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774ac_tool_warned=yes ;;
4775esac
4776    PKG_CONFIG=$ac_pt_PKG_CONFIG
4777  fi
4778else
4779  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4780fi
4781
4782fi
4783if test -n "$PKG_CONFIG"; then
4784	_pkg_min_version=0.9.0
4785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4786printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4787	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789printf "%s\n" "yes" >&6; }
4790	else
4791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792printf "%s\n" "no" >&6; }
4793		PKG_CONFIG=""
4794	fi
4795fi
4796
4797
4798  # Make sure we can run config.sub.
4799$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4800  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4801
4802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4803printf %s "checking build system type... " >&6; }
4804if test ${ac_cv_build+y}
4805then :
4806  printf %s "(cached) " >&6
4807else $as_nop
4808  ac_build_alias=$build_alias
4809test "x$ac_build_alias" = x &&
4810  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4811test "x$ac_build_alias" = x &&
4812  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4813ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4814  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4815
4816fi
4817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4818printf "%s\n" "$ac_cv_build" >&6; }
4819case $ac_cv_build in
4820*-*-*) ;;
4821*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4822esac
4823build=$ac_cv_build
4824ac_save_IFS=$IFS; IFS='-'
4825set x $ac_cv_build
4826shift
4827build_cpu=$1
4828build_vendor=$2
4829shift; shift
4830# Remember, the first character of IFS is used to create $*,
4831# except with old shells:
4832build_os=$*
4833IFS=$ac_save_IFS
4834case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4835
4836
4837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4838printf %s "checking host system type... " >&6; }
4839if test ${ac_cv_host+y}
4840then :
4841  printf %s "(cached) " >&6
4842else $as_nop
4843  if test "x$host_alias" = x; then
4844  ac_cv_host=$ac_cv_build
4845else
4846  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4847    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4848fi
4849
4850fi
4851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4852printf "%s\n" "$ac_cv_host" >&6; }
4853case $ac_cv_host in
4854*-*-*) ;;
4855*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4856esac
4857host=$ac_cv_host
4858ac_save_IFS=$IFS; IFS='-'
4859set x $ac_cv_host
4860shift
4861host_cpu=$1
4862host_vendor=$2
4863shift; shift
4864# Remember, the first character of IFS is used to create $*,
4865# except with old shells:
4866host_os=$*
4867IFS=$ac_save_IFS
4868case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4869
4870
4871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4872printf %s "checking for a sed that does not truncate output... " >&6; }
4873if test ${ac_cv_path_SED+y}
4874then :
4875  printf %s "(cached) " >&6
4876else $as_nop
4877            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4878     for ac_i in 1 2 3 4 5 6 7; do
4879       ac_script="$ac_script$as_nl$ac_script"
4880     done
4881     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4882     { ac_script=; unset ac_script;}
4883     if test -z "$SED"; then
4884  ac_path_SED_found=false
4885  # Loop through the user's path and test for each of PROGNAME-LIST
4886  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889  IFS=$as_save_IFS
4890  case $as_dir in #(((
4891    '') as_dir=./ ;;
4892    */) ;;
4893    *) as_dir=$as_dir/ ;;
4894  esac
4895    for ac_prog in sed gsed
4896   do
4897    for ac_exec_ext in '' $ac_executable_extensions; do
4898      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4899      as_fn_executable_p "$ac_path_SED" || continue
4900# Check for GNU ac_path_SED and select it if it is found.
4901  # Check for GNU $ac_path_SED
4902case `"$ac_path_SED" --version 2>&1` in
4903*GNU*)
4904  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4905*)
4906  ac_count=0
4907  printf %s 0123456789 >"conftest.in"
4908  while :
4909  do
4910    cat "conftest.in" "conftest.in" >"conftest.tmp"
4911    mv "conftest.tmp" "conftest.in"
4912    cp "conftest.in" "conftest.nl"
4913    printf "%s\n" '' >> "conftest.nl"
4914    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916    as_fn_arith $ac_count + 1 && ac_count=$as_val
4917    if test $ac_count -gt ${ac_path_SED_max-0}; then
4918      # Best one so far, save it but keep looking for a better one
4919      ac_cv_path_SED="$ac_path_SED"
4920      ac_path_SED_max=$ac_count
4921    fi
4922    # 10*(2^10) chars as input seems more than enough
4923    test $ac_count -gt 10 && break
4924  done
4925  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926esac
4927
4928      $ac_path_SED_found && break 3
4929    done
4930  done
4931  done
4932IFS=$as_save_IFS
4933  if test -z "$ac_cv_path_SED"; then
4934    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4935  fi
4936else
4937  ac_cv_path_SED=$SED
4938fi
4939
4940fi
4941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4942printf "%s\n" "$ac_cv_path_SED" >&6; }
4943 SED="$ac_cv_path_SED"
4944  rm -f conftest.sed
4945
4946
4947
4948
4949
4950
4951# Check whether --enable-selective-werror was given.
4952if test ${enable_selective_werror+y}
4953then :
4954  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4955else $as_nop
4956  SELECTIVE_WERROR=yes
4957fi
4958
4959
4960
4961
4962
4963# -v is too short to test reliably with XORG_TESTSET_CFLAG
4964if test "x$SUNCC" = "xyes"; then
4965    BASE_CFLAGS="-v"
4966else
4967    BASE_CFLAGS=""
4968fi
4969
4970# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984xorg_testset_save_CFLAGS="$CFLAGS"
4985
4986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4990if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4991then :
4992  printf %s "(cached) " >&6
4993else $as_nop
4994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996int i;
4997_ACEOF
4998if ac_fn_c_try_compile "$LINENO"
4999then :
5000  xorg_cv_cc_flag_unknown_warning_option=yes
5001else $as_nop
5002  xorg_cv_cc_flag_unknown_warning_option=no
5003fi
5004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5005fi
5006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5009	CFLAGS="$xorg_testset_save_CFLAGS"
5010fi
5011
5012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015	fi
5016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5019if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5020then :
5021  printf %s "(cached) " >&6
5022else $as_nop
5023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h.  */
5025int i;
5026_ACEOF
5027if ac_fn_c_try_compile "$LINENO"
5028then :
5029  xorg_cv_cc_flag_unused_command_line_argument=yes
5030else $as_nop
5031  xorg_cv_cc_flag_unused_command_line_argument=no
5032fi
5033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5034fi
5035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5036printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5038	CFLAGS="$xorg_testset_save_CFLAGS"
5039fi
5040
5041found="no"
5042
5043	if test $found = "no" ; then
5044		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5046		fi
5047
5048		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5050		fi
5051
5052		CFLAGS="$CFLAGS -Wall"
5053
5054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5055printf %s "checking if $CC supports -Wall... " >&6; }
5056		cacheid=xorg_cv_cc_flag__Wall
5057		if eval test \${$cacheid+y}
5058then :
5059  printf %s "(cached) " >&6
5060else $as_nop
5061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062/* end confdefs.h.  */
5063int i;
5064int
5065main (void)
5066{
5067
5068  ;
5069  return 0;
5070}
5071_ACEOF
5072if ac_fn_c_try_link "$LINENO"
5073then :
5074  eval $cacheid=yes
5075else $as_nop
5076  eval $cacheid=no
5077fi
5078rm -f core conftest.err conftest.$ac_objext conftest.beam \
5079    conftest$ac_exeext conftest.$ac_ext
5080fi
5081
5082
5083		CFLAGS="$xorg_testset_save_CFLAGS"
5084
5085		eval supported=\$$cacheid
5086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5087printf "%s\n" "$supported" >&6; }
5088		if test "$supported" = "yes" ; then
5089			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5090			found="yes"
5091		fi
5092	fi
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108xorg_testset_save_CFLAGS="$CFLAGS"
5109
5110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5114if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5115then :
5116  printf %s "(cached) " >&6
5117else $as_nop
5118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h.  */
5120int i;
5121_ACEOF
5122if ac_fn_c_try_compile "$LINENO"
5123then :
5124  xorg_cv_cc_flag_unknown_warning_option=yes
5125else $as_nop
5126  xorg_cv_cc_flag_unknown_warning_option=no
5127fi
5128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5129fi
5130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5133	CFLAGS="$xorg_testset_save_CFLAGS"
5134fi
5135
5136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139	fi
5140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5143if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5144then :
5145  printf %s "(cached) " >&6
5146else $as_nop
5147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148/* end confdefs.h.  */
5149int i;
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"
5152then :
5153  xorg_cv_cc_flag_unused_command_line_argument=yes
5154else $as_nop
5155  xorg_cv_cc_flag_unused_command_line_argument=no
5156fi
5157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5158fi
5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5162	CFLAGS="$xorg_testset_save_CFLAGS"
5163fi
5164
5165found="no"
5166
5167	if test $found = "no" ; then
5168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5170		fi
5171
5172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5174		fi
5175
5176		CFLAGS="$CFLAGS -Wpointer-arith"
5177
5178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5179printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5180		cacheid=xorg_cv_cc_flag__Wpointer_arith
5181		if eval test \${$cacheid+y}
5182then :
5183  printf %s "(cached) " >&6
5184else $as_nop
5185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h.  */
5187int i;
5188int
5189main (void)
5190{
5191
5192  ;
5193  return 0;
5194}
5195_ACEOF
5196if ac_fn_c_try_link "$LINENO"
5197then :
5198  eval $cacheid=yes
5199else $as_nop
5200  eval $cacheid=no
5201fi
5202rm -f core conftest.err conftest.$ac_objext conftest.beam \
5203    conftest$ac_exeext conftest.$ac_ext
5204fi
5205
5206
5207		CFLAGS="$xorg_testset_save_CFLAGS"
5208
5209		eval supported=\$$cacheid
5210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5211printf "%s\n" "$supported" >&6; }
5212		if test "$supported" = "yes" ; then
5213			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5214			found="yes"
5215		fi
5216	fi
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232xorg_testset_save_CFLAGS="$CFLAGS"
5233
5234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5235	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5238if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5239then :
5240  printf %s "(cached) " >&6
5241else $as_nop
5242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h.  */
5244int i;
5245_ACEOF
5246if ac_fn_c_try_compile "$LINENO"
5247then :
5248  xorg_cv_cc_flag_unknown_warning_option=yes
5249else $as_nop
5250  xorg_cv_cc_flag_unknown_warning_option=no
5251fi
5252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5253fi
5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5257	CFLAGS="$xorg_testset_save_CFLAGS"
5258fi
5259
5260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5263	fi
5264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5265	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5267if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5268then :
5269  printf %s "(cached) " >&6
5270else $as_nop
5271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273int i;
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"
5276then :
5277  xorg_cv_cc_flag_unused_command_line_argument=yes
5278else $as_nop
5279  xorg_cv_cc_flag_unused_command_line_argument=no
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5282fi
5283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5286	CFLAGS="$xorg_testset_save_CFLAGS"
5287fi
5288
5289found="no"
5290
5291	if test $found = "no" ; then
5292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294		fi
5295
5296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298		fi
5299
5300		CFLAGS="$CFLAGS -Wmissing-declarations"
5301
5302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5303printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5304		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5305		if eval test \${$cacheid+y}
5306then :
5307  printf %s "(cached) " >&6
5308else $as_nop
5309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311int i;
5312int
5313main (void)
5314{
5315
5316  ;
5317  return 0;
5318}
5319_ACEOF
5320if ac_fn_c_try_link "$LINENO"
5321then :
5322  eval $cacheid=yes
5323else $as_nop
5324  eval $cacheid=no
5325fi
5326rm -f core conftest.err conftest.$ac_objext conftest.beam \
5327    conftest$ac_exeext conftest.$ac_ext
5328fi
5329
5330
5331		CFLAGS="$xorg_testset_save_CFLAGS"
5332
5333		eval supported=\$$cacheid
5334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5335printf "%s\n" "$supported" >&6; }
5336		if test "$supported" = "yes" ; then
5337			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5338			found="yes"
5339		fi
5340	fi
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356xorg_testset_save_CFLAGS="$CFLAGS"
5357
5358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5362if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5363then :
5364  printf %s "(cached) " >&6
5365else $as_nop
5366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367/* end confdefs.h.  */
5368int i;
5369_ACEOF
5370if ac_fn_c_try_compile "$LINENO"
5371then :
5372  xorg_cv_cc_flag_unknown_warning_option=yes
5373else $as_nop
5374  xorg_cv_cc_flag_unknown_warning_option=no
5375fi
5376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5377fi
5378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5380	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5381	CFLAGS="$xorg_testset_save_CFLAGS"
5382fi
5383
5384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5385	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5386		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387	fi
5388	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5391if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5392then :
5393  printf %s "(cached) " >&6
5394else $as_nop
5395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h.  */
5397int i;
5398_ACEOF
5399if ac_fn_c_try_compile "$LINENO"
5400then :
5401  xorg_cv_cc_flag_unused_command_line_argument=yes
5402else $as_nop
5403  xorg_cv_cc_flag_unused_command_line_argument=no
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5406fi
5407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5410	CFLAGS="$xorg_testset_save_CFLAGS"
5411fi
5412
5413found="no"
5414
5415	if test $found = "no" ; then
5416		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418		fi
5419
5420		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5422		fi
5423
5424		CFLAGS="$CFLAGS -Wformat=2"
5425
5426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5427printf %s "checking if $CC supports -Wformat=2... " >&6; }
5428		cacheid=xorg_cv_cc_flag__Wformat_2
5429		if eval test \${$cacheid+y}
5430then :
5431  printf %s "(cached) " >&6
5432else $as_nop
5433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435int i;
5436int
5437main (void)
5438{
5439
5440  ;
5441  return 0;
5442}
5443_ACEOF
5444if ac_fn_c_try_link "$LINENO"
5445then :
5446  eval $cacheid=yes
5447else $as_nop
5448  eval $cacheid=no
5449fi
5450rm -f core conftest.err conftest.$ac_objext conftest.beam \
5451    conftest$ac_exeext conftest.$ac_ext
5452fi
5453
5454
5455		CFLAGS="$xorg_testset_save_CFLAGS"
5456
5457		eval supported=\$$cacheid
5458		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5459printf "%s\n" "$supported" >&6; }
5460		if test "$supported" = "yes" ; then
5461			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5462			found="yes"
5463		fi
5464	fi
5465
5466	if test $found = "no" ; then
5467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469		fi
5470
5471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473		fi
5474
5475		CFLAGS="$CFLAGS -Wformat"
5476
5477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5478printf %s "checking if $CC supports -Wformat... " >&6; }
5479		cacheid=xorg_cv_cc_flag__Wformat
5480		if eval test \${$cacheid+y}
5481then :
5482  printf %s "(cached) " >&6
5483else $as_nop
5484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485/* end confdefs.h.  */
5486int i;
5487int
5488main (void)
5489{
5490
5491  ;
5492  return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_link "$LINENO"
5496then :
5497  eval $cacheid=yes
5498else $as_nop
5499  eval $cacheid=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext conftest.beam \
5502    conftest$ac_exeext conftest.$ac_ext
5503fi
5504
5505
5506		CFLAGS="$xorg_testset_save_CFLAGS"
5507
5508		eval supported=\$$cacheid
5509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5510printf "%s\n" "$supported" >&6; }
5511		if test "$supported" = "yes" ; then
5512			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5513			found="yes"
5514		fi
5515	fi
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533xorg_testset_save_CFLAGS="$CFLAGS"
5534
5535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5539if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5540then :
5541  printf %s "(cached) " >&6
5542else $as_nop
5543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544/* end confdefs.h.  */
5545int i;
5546_ACEOF
5547if ac_fn_c_try_compile "$LINENO"
5548then :
5549  xorg_cv_cc_flag_unknown_warning_option=yes
5550else $as_nop
5551  xorg_cv_cc_flag_unknown_warning_option=no
5552fi
5553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5554fi
5555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5558	CFLAGS="$xorg_testset_save_CFLAGS"
5559fi
5560
5561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564	fi
5565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5568if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5569then :
5570  printf %s "(cached) " >&6
5571else $as_nop
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574int i;
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"
5577then :
5578  xorg_cv_cc_flag_unused_command_line_argument=yes
5579else $as_nop
5580  xorg_cv_cc_flag_unused_command_line_argument=no
5581fi
5582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5583fi
5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5587	CFLAGS="$xorg_testset_save_CFLAGS"
5588fi
5589
5590found="no"
5591
5592	if test $found = "no" ; then
5593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5595		fi
5596
5597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599		fi
5600
5601		CFLAGS="$CFLAGS -Wstrict-prototypes"
5602
5603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5604printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5605		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5606		if eval test \${$cacheid+y}
5607then :
5608  printf %s "(cached) " >&6
5609else $as_nop
5610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h.  */
5612int i;
5613int
5614main (void)
5615{
5616
5617  ;
5618  return 0;
5619}
5620_ACEOF
5621if ac_fn_c_try_link "$LINENO"
5622then :
5623  eval $cacheid=yes
5624else $as_nop
5625  eval $cacheid=no
5626fi
5627rm -f core conftest.err conftest.$ac_objext conftest.beam \
5628    conftest$ac_exeext conftest.$ac_ext
5629fi
5630
5631
5632		CFLAGS="$xorg_testset_save_CFLAGS"
5633
5634		eval supported=\$$cacheid
5635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5636printf "%s\n" "$supported" >&6; }
5637		if test "$supported" = "yes" ; then
5638			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5639			found="yes"
5640		fi
5641	fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657xorg_testset_save_CFLAGS="$CFLAGS"
5658
5659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5662printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5663if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5664then :
5665  printf %s "(cached) " >&6
5666else $as_nop
5667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h.  */
5669int i;
5670_ACEOF
5671if ac_fn_c_try_compile "$LINENO"
5672then :
5673  xorg_cv_cc_flag_unknown_warning_option=yes
5674else $as_nop
5675  xorg_cv_cc_flag_unknown_warning_option=no
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5678fi
5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5680printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5682	CFLAGS="$xorg_testset_save_CFLAGS"
5683fi
5684
5685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5688	fi
5689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5691printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5692if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5693then :
5694  printf %s "(cached) " >&6
5695else $as_nop
5696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h.  */
5698int i;
5699_ACEOF
5700if ac_fn_c_try_compile "$LINENO"
5701then :
5702  xorg_cv_cc_flag_unused_command_line_argument=yes
5703else $as_nop
5704  xorg_cv_cc_flag_unused_command_line_argument=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5707fi
5708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5709printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5711	CFLAGS="$xorg_testset_save_CFLAGS"
5712fi
5713
5714found="no"
5715
5716	if test $found = "no" ; then
5717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5719		fi
5720
5721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5723		fi
5724
5725		CFLAGS="$CFLAGS -Wmissing-prototypes"
5726
5727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5728printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5729		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5730		if eval test \${$cacheid+y}
5731then :
5732  printf %s "(cached) " >&6
5733else $as_nop
5734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h.  */
5736int i;
5737int
5738main (void)
5739{
5740
5741  ;
5742  return 0;
5743}
5744_ACEOF
5745if ac_fn_c_try_link "$LINENO"
5746then :
5747  eval $cacheid=yes
5748else $as_nop
5749  eval $cacheid=no
5750fi
5751rm -f core conftest.err conftest.$ac_objext conftest.beam \
5752    conftest$ac_exeext conftest.$ac_ext
5753fi
5754
5755
5756		CFLAGS="$xorg_testset_save_CFLAGS"
5757
5758		eval supported=\$$cacheid
5759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5760printf "%s\n" "$supported" >&6; }
5761		if test "$supported" = "yes" ; then
5762			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5763			found="yes"
5764		fi
5765	fi
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781xorg_testset_save_CFLAGS="$CFLAGS"
5782
5783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5786printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5787if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5788then :
5789  printf %s "(cached) " >&6
5790else $as_nop
5791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792/* end confdefs.h.  */
5793int i;
5794_ACEOF
5795if ac_fn_c_try_compile "$LINENO"
5796then :
5797  xorg_cv_cc_flag_unknown_warning_option=yes
5798else $as_nop
5799  xorg_cv_cc_flag_unknown_warning_option=no
5800fi
5801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5802fi
5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5804printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5806	CFLAGS="$xorg_testset_save_CFLAGS"
5807fi
5808
5809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5812	fi
5813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5815printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5816if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5817then :
5818  printf %s "(cached) " >&6
5819else $as_nop
5820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h.  */
5822int i;
5823_ACEOF
5824if ac_fn_c_try_compile "$LINENO"
5825then :
5826  xorg_cv_cc_flag_unused_command_line_argument=yes
5827else $as_nop
5828  xorg_cv_cc_flag_unused_command_line_argument=no
5829fi
5830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5831fi
5832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5833printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5835	CFLAGS="$xorg_testset_save_CFLAGS"
5836fi
5837
5838found="no"
5839
5840	if test $found = "no" ; then
5841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5843		fi
5844
5845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5847		fi
5848
5849		CFLAGS="$CFLAGS -Wnested-externs"
5850
5851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5852printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5853		cacheid=xorg_cv_cc_flag__Wnested_externs
5854		if eval test \${$cacheid+y}
5855then :
5856  printf %s "(cached) " >&6
5857else $as_nop
5858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860int i;
5861int
5862main (void)
5863{
5864
5865  ;
5866  return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_link "$LINENO"
5870then :
5871  eval $cacheid=yes
5872else $as_nop
5873  eval $cacheid=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext conftest.beam \
5876    conftest$ac_exeext conftest.$ac_ext
5877fi
5878
5879
5880		CFLAGS="$xorg_testset_save_CFLAGS"
5881
5882		eval supported=\$$cacheid
5883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5884printf "%s\n" "$supported" >&6; }
5885		if test "$supported" = "yes" ; then
5886			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5887			found="yes"
5888		fi
5889	fi
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905xorg_testset_save_CFLAGS="$CFLAGS"
5906
5907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5910printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5911if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5912then :
5913  printf %s "(cached) " >&6
5914else $as_nop
5915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h.  */
5917int i;
5918_ACEOF
5919if ac_fn_c_try_compile "$LINENO"
5920then :
5921  xorg_cv_cc_flag_unknown_warning_option=yes
5922else $as_nop
5923  xorg_cv_cc_flag_unknown_warning_option=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5926fi
5927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5930	CFLAGS="$xorg_testset_save_CFLAGS"
5931fi
5932
5933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5936	fi
5937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5940if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5941then :
5942  printf %s "(cached) " >&6
5943else $as_nop
5944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945/* end confdefs.h.  */
5946int i;
5947_ACEOF
5948if ac_fn_c_try_compile "$LINENO"
5949then :
5950  xorg_cv_cc_flag_unused_command_line_argument=yes
5951else $as_nop
5952  xorg_cv_cc_flag_unused_command_line_argument=no
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5955fi
5956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5959	CFLAGS="$xorg_testset_save_CFLAGS"
5960fi
5961
5962found="no"
5963
5964	if test $found = "no" ; then
5965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5967		fi
5968
5969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5971		fi
5972
5973		CFLAGS="$CFLAGS -Wbad-function-cast"
5974
5975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5976printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5977		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5978		if eval test \${$cacheid+y}
5979then :
5980  printf %s "(cached) " >&6
5981else $as_nop
5982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984int i;
5985int
5986main (void)
5987{
5988
5989  ;
5990  return 0;
5991}
5992_ACEOF
5993if ac_fn_c_try_link "$LINENO"
5994then :
5995  eval $cacheid=yes
5996else $as_nop
5997  eval $cacheid=no
5998fi
5999rm -f core conftest.err conftest.$ac_objext conftest.beam \
6000    conftest$ac_exeext conftest.$ac_ext
6001fi
6002
6003
6004		CFLAGS="$xorg_testset_save_CFLAGS"
6005
6006		eval supported=\$$cacheid
6007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6008printf "%s\n" "$supported" >&6; }
6009		if test "$supported" = "yes" ; then
6010			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6011			found="yes"
6012		fi
6013	fi
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029xorg_testset_save_CFLAGS="$CFLAGS"
6030
6031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6034printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6035if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6036then :
6037  printf %s "(cached) " >&6
6038else $as_nop
6039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041int i;
6042_ACEOF
6043if ac_fn_c_try_compile "$LINENO"
6044then :
6045  xorg_cv_cc_flag_unknown_warning_option=yes
6046else $as_nop
6047  xorg_cv_cc_flag_unknown_warning_option=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6050fi
6051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6053	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6054	CFLAGS="$xorg_testset_save_CFLAGS"
6055fi
6056
6057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6058	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6060	fi
6061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6064if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6065then :
6066  printf %s "(cached) " >&6
6067else $as_nop
6068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h.  */
6070int i;
6071_ACEOF
6072if ac_fn_c_try_compile "$LINENO"
6073then :
6074  xorg_cv_cc_flag_unused_command_line_argument=yes
6075else $as_nop
6076  xorg_cv_cc_flag_unused_command_line_argument=no
6077fi
6078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6079fi
6080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6083	CFLAGS="$xorg_testset_save_CFLAGS"
6084fi
6085
6086found="no"
6087
6088	if test $found = "no" ; then
6089		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6091		fi
6092
6093		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6095		fi
6096
6097		CFLAGS="$CFLAGS -Wold-style-definition"
6098
6099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6100printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6101		cacheid=xorg_cv_cc_flag__Wold_style_definition
6102		if eval test \${$cacheid+y}
6103then :
6104  printf %s "(cached) " >&6
6105else $as_nop
6106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h.  */
6108int i;
6109int
6110main (void)
6111{
6112
6113  ;
6114  return 0;
6115}
6116_ACEOF
6117if ac_fn_c_try_link "$LINENO"
6118then :
6119  eval $cacheid=yes
6120else $as_nop
6121  eval $cacheid=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext conftest.beam \
6124    conftest$ac_exeext conftest.$ac_ext
6125fi
6126
6127
6128		CFLAGS="$xorg_testset_save_CFLAGS"
6129
6130		eval supported=\$$cacheid
6131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6132printf "%s\n" "$supported" >&6; }
6133		if test "$supported" = "yes" ; then
6134			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6135			found="yes"
6136		fi
6137	fi
6138
6139	if test $found = "no" ; then
6140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142		fi
6143
6144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6146		fi
6147
6148		CFLAGS="$CFLAGS -fd"
6149
6150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6151printf %s "checking if $CC supports -fd... " >&6; }
6152		cacheid=xorg_cv_cc_flag__fd
6153		if eval test \${$cacheid+y}
6154then :
6155  printf %s "(cached) " >&6
6156else $as_nop
6157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158/* end confdefs.h.  */
6159int i;
6160int
6161main (void)
6162{
6163
6164  ;
6165  return 0;
6166}
6167_ACEOF
6168if ac_fn_c_try_link "$LINENO"
6169then :
6170  eval $cacheid=yes
6171else $as_nop
6172  eval $cacheid=no
6173fi
6174rm -f core conftest.err conftest.$ac_objext conftest.beam \
6175    conftest$ac_exeext conftest.$ac_ext
6176fi
6177
6178
6179		CFLAGS="$xorg_testset_save_CFLAGS"
6180
6181		eval supported=\$$cacheid
6182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6183printf "%s\n" "$supported" >&6; }
6184		if test "$supported" = "yes" ; then
6185			BASE_CFLAGS="$BASE_CFLAGS -fd"
6186			found="yes"
6187		fi
6188	fi
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204xorg_testset_save_CFLAGS="$CFLAGS"
6205
6206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6208	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6209printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6210if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6211then :
6212  printf %s "(cached) " >&6
6213else $as_nop
6214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216int i;
6217_ACEOF
6218if ac_fn_c_try_compile "$LINENO"
6219then :
6220  xorg_cv_cc_flag_unknown_warning_option=yes
6221else $as_nop
6222  xorg_cv_cc_flag_unknown_warning_option=no
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6225fi
6226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6227printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6229	CFLAGS="$xorg_testset_save_CFLAGS"
6230fi
6231
6232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235	fi
6236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6238printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6239if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6240then :
6241  printf %s "(cached) " >&6
6242else $as_nop
6243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245int i;
6246_ACEOF
6247if ac_fn_c_try_compile "$LINENO"
6248then :
6249  xorg_cv_cc_flag_unused_command_line_argument=yes
6250else $as_nop
6251  xorg_cv_cc_flag_unused_command_line_argument=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6254fi
6255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6256printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6257	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6258	CFLAGS="$xorg_testset_save_CFLAGS"
6259fi
6260
6261found="no"
6262
6263	if test $found = "no" ; then
6264		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6265			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266		fi
6267
6268		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6269			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6270		fi
6271
6272		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6273
6274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6275printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6276		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6277		if eval test \${$cacheid+y}
6278then :
6279  printf %s "(cached) " >&6
6280else $as_nop
6281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282/* end confdefs.h.  */
6283int i;
6284int
6285main (void)
6286{
6287
6288  ;
6289  return 0;
6290}
6291_ACEOF
6292if ac_fn_c_try_link "$LINENO"
6293then :
6294  eval $cacheid=yes
6295else $as_nop
6296  eval $cacheid=no
6297fi
6298rm -f core conftest.err conftest.$ac_objext conftest.beam \
6299    conftest$ac_exeext conftest.$ac_ext
6300fi
6301
6302
6303		CFLAGS="$xorg_testset_save_CFLAGS"
6304
6305		eval supported=\$$cacheid
6306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6307printf "%s\n" "$supported" >&6; }
6308		if test "$supported" = "yes" ; then
6309			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6310			found="yes"
6311		fi
6312	fi
6313
6314
6315
6316
6317
6318# This chunk adds additional warnings that could catch undesired effects.
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332xorg_testset_save_CFLAGS="$CFLAGS"
6333
6334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6338if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6339then :
6340  printf %s "(cached) " >&6
6341else $as_nop
6342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343/* end confdefs.h.  */
6344int i;
6345_ACEOF
6346if ac_fn_c_try_compile "$LINENO"
6347then :
6348  xorg_cv_cc_flag_unknown_warning_option=yes
6349else $as_nop
6350  xorg_cv_cc_flag_unknown_warning_option=no
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6353fi
6354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6355printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6356	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6357	CFLAGS="$xorg_testset_save_CFLAGS"
6358fi
6359
6360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6361	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6362		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363	fi
6364	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6366printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6367if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6368then :
6369  printf %s "(cached) " >&6
6370else $as_nop
6371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373int i;
6374_ACEOF
6375if ac_fn_c_try_compile "$LINENO"
6376then :
6377  xorg_cv_cc_flag_unused_command_line_argument=yes
6378else $as_nop
6379  xorg_cv_cc_flag_unused_command_line_argument=no
6380fi
6381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6382fi
6383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6385	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6386	CFLAGS="$xorg_testset_save_CFLAGS"
6387fi
6388
6389found="no"
6390
6391	if test $found = "no" ; then
6392		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394		fi
6395
6396		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398		fi
6399
6400		CFLAGS="$CFLAGS -Wunused"
6401
6402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6403printf %s "checking if $CC supports -Wunused... " >&6; }
6404		cacheid=xorg_cv_cc_flag__Wunused
6405		if eval test \${$cacheid+y}
6406then :
6407  printf %s "(cached) " >&6
6408else $as_nop
6409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h.  */
6411int i;
6412int
6413main (void)
6414{
6415
6416  ;
6417  return 0;
6418}
6419_ACEOF
6420if ac_fn_c_try_link "$LINENO"
6421then :
6422  eval $cacheid=yes
6423else $as_nop
6424  eval $cacheid=no
6425fi
6426rm -f core conftest.err conftest.$ac_objext conftest.beam \
6427    conftest$ac_exeext conftest.$ac_ext
6428fi
6429
6430
6431		CFLAGS="$xorg_testset_save_CFLAGS"
6432
6433		eval supported=\$$cacheid
6434		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6435printf "%s\n" "$supported" >&6; }
6436		if test "$supported" = "yes" ; then
6437			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6438			found="yes"
6439		fi
6440	fi
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456xorg_testset_save_CFLAGS="$CFLAGS"
6457
6458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6462if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6463then :
6464  printf %s "(cached) " >&6
6465else $as_nop
6466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h.  */
6468int i;
6469_ACEOF
6470if ac_fn_c_try_compile "$LINENO"
6471then :
6472  xorg_cv_cc_flag_unknown_warning_option=yes
6473else $as_nop
6474  xorg_cv_cc_flag_unknown_warning_option=no
6475fi
6476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6477fi
6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6480	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6481	CFLAGS="$xorg_testset_save_CFLAGS"
6482fi
6483
6484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6485	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6487	fi
6488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6491if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6492then :
6493  printf %s "(cached) " >&6
6494else $as_nop
6495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h.  */
6497int i;
6498_ACEOF
6499if ac_fn_c_try_compile "$LINENO"
6500then :
6501  xorg_cv_cc_flag_unused_command_line_argument=yes
6502else $as_nop
6503  xorg_cv_cc_flag_unused_command_line_argument=no
6504fi
6505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6506fi
6507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6510	CFLAGS="$xorg_testset_save_CFLAGS"
6511fi
6512
6513found="no"
6514
6515	if test $found = "no" ; then
6516		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6518		fi
6519
6520		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6522		fi
6523
6524		CFLAGS="$CFLAGS -Wuninitialized"
6525
6526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6527printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6528		cacheid=xorg_cv_cc_flag__Wuninitialized
6529		if eval test \${$cacheid+y}
6530then :
6531  printf %s "(cached) " >&6
6532else $as_nop
6533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535int i;
6536int
6537main (void)
6538{
6539
6540  ;
6541  return 0;
6542}
6543_ACEOF
6544if ac_fn_c_try_link "$LINENO"
6545then :
6546  eval $cacheid=yes
6547else $as_nop
6548  eval $cacheid=no
6549fi
6550rm -f core conftest.err conftest.$ac_objext conftest.beam \
6551    conftest$ac_exeext conftest.$ac_ext
6552fi
6553
6554
6555		CFLAGS="$xorg_testset_save_CFLAGS"
6556
6557		eval supported=\$$cacheid
6558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6559printf "%s\n" "$supported" >&6; }
6560		if test "$supported" = "yes" ; then
6561			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6562			found="yes"
6563		fi
6564	fi
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580xorg_testset_save_CFLAGS="$CFLAGS"
6581
6582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6583	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6585printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6586if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6587then :
6588  printf %s "(cached) " >&6
6589else $as_nop
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592int i;
6593_ACEOF
6594if ac_fn_c_try_compile "$LINENO"
6595then :
6596  xorg_cv_cc_flag_unknown_warning_option=yes
6597else $as_nop
6598  xorg_cv_cc_flag_unknown_warning_option=no
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6601fi
6602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6603printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6604	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6605	CFLAGS="$xorg_testset_save_CFLAGS"
6606fi
6607
6608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6609	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6610		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611	fi
6612	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6614printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6615if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6616then :
6617  printf %s "(cached) " >&6
6618else $as_nop
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621int i;
6622_ACEOF
6623if ac_fn_c_try_compile "$LINENO"
6624then :
6625  xorg_cv_cc_flag_unused_command_line_argument=yes
6626else $as_nop
6627  xorg_cv_cc_flag_unused_command_line_argument=no
6628fi
6629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6630fi
6631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6632printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6633	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6634	CFLAGS="$xorg_testset_save_CFLAGS"
6635fi
6636
6637found="no"
6638
6639	if test $found = "no" ; then
6640		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6642		fi
6643
6644		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6646		fi
6647
6648		CFLAGS="$CFLAGS -Wshadow"
6649
6650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6651printf %s "checking if $CC supports -Wshadow... " >&6; }
6652		cacheid=xorg_cv_cc_flag__Wshadow
6653		if eval test \${$cacheid+y}
6654then :
6655  printf %s "(cached) " >&6
6656else $as_nop
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659int i;
6660int
6661main (void)
6662{
6663
6664  ;
6665  return 0;
6666}
6667_ACEOF
6668if ac_fn_c_try_link "$LINENO"
6669then :
6670  eval $cacheid=yes
6671else $as_nop
6672  eval $cacheid=no
6673fi
6674rm -f core conftest.err conftest.$ac_objext conftest.beam \
6675    conftest$ac_exeext conftest.$ac_ext
6676fi
6677
6678
6679		CFLAGS="$xorg_testset_save_CFLAGS"
6680
6681		eval supported=\$$cacheid
6682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6683printf "%s\n" "$supported" >&6; }
6684		if test "$supported" = "yes" ; then
6685			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6686			found="yes"
6687		fi
6688	fi
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704xorg_testset_save_CFLAGS="$CFLAGS"
6705
6706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6710if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6711then :
6712  printf %s "(cached) " >&6
6713else $as_nop
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716int i;
6717_ACEOF
6718if ac_fn_c_try_compile "$LINENO"
6719then :
6720  xorg_cv_cc_flag_unknown_warning_option=yes
6721else $as_nop
6722  xorg_cv_cc_flag_unknown_warning_option=no
6723fi
6724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6725fi
6726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6729	CFLAGS="$xorg_testset_save_CFLAGS"
6730fi
6731
6732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6735	fi
6736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6739if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6740then :
6741  printf %s "(cached) " >&6
6742else $as_nop
6743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h.  */
6745int i;
6746_ACEOF
6747if ac_fn_c_try_compile "$LINENO"
6748then :
6749  xorg_cv_cc_flag_unused_command_line_argument=yes
6750else $as_nop
6751  xorg_cv_cc_flag_unused_command_line_argument=no
6752fi
6753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6754fi
6755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6758	CFLAGS="$xorg_testset_save_CFLAGS"
6759fi
6760
6761found="no"
6762
6763	if test $found = "no" ; then
6764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6766		fi
6767
6768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6770		fi
6771
6772		CFLAGS="$CFLAGS -Wmissing-noreturn"
6773
6774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6775printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6776		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6777		if eval test \${$cacheid+y}
6778then :
6779  printf %s "(cached) " >&6
6780else $as_nop
6781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h.  */
6783int i;
6784int
6785main (void)
6786{
6787
6788  ;
6789  return 0;
6790}
6791_ACEOF
6792if ac_fn_c_try_link "$LINENO"
6793then :
6794  eval $cacheid=yes
6795else $as_nop
6796  eval $cacheid=no
6797fi
6798rm -f core conftest.err conftest.$ac_objext conftest.beam \
6799    conftest$ac_exeext conftest.$ac_ext
6800fi
6801
6802
6803		CFLAGS="$xorg_testset_save_CFLAGS"
6804
6805		eval supported=\$$cacheid
6806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6807printf "%s\n" "$supported" >&6; }
6808		if test "$supported" = "yes" ; then
6809			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6810			found="yes"
6811		fi
6812	fi
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828xorg_testset_save_CFLAGS="$CFLAGS"
6829
6830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6833printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6834if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6835then :
6836  printf %s "(cached) " >&6
6837else $as_nop
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840int i;
6841_ACEOF
6842if ac_fn_c_try_compile "$LINENO"
6843then :
6844  xorg_cv_cc_flag_unknown_warning_option=yes
6845else $as_nop
6846  xorg_cv_cc_flag_unknown_warning_option=no
6847fi
6848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6849fi
6850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6852	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6853	CFLAGS="$xorg_testset_save_CFLAGS"
6854fi
6855
6856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6857	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6858		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859	fi
6860	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6863if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6864then :
6865  printf %s "(cached) " >&6
6866else $as_nop
6867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868/* end confdefs.h.  */
6869int i;
6870_ACEOF
6871if ac_fn_c_try_compile "$LINENO"
6872then :
6873  xorg_cv_cc_flag_unused_command_line_argument=yes
6874else $as_nop
6875  xorg_cv_cc_flag_unused_command_line_argument=no
6876fi
6877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6878fi
6879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6881	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6882	CFLAGS="$xorg_testset_save_CFLAGS"
6883fi
6884
6885found="no"
6886
6887	if test $found = "no" ; then
6888		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6889			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6890		fi
6891
6892		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6893			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6894		fi
6895
6896		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6897
6898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6899printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6900		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6901		if eval test \${$cacheid+y}
6902then :
6903  printf %s "(cached) " >&6
6904else $as_nop
6905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906/* end confdefs.h.  */
6907int i;
6908int
6909main (void)
6910{
6911
6912  ;
6913  return 0;
6914}
6915_ACEOF
6916if ac_fn_c_try_link "$LINENO"
6917then :
6918  eval $cacheid=yes
6919else $as_nop
6920  eval $cacheid=no
6921fi
6922rm -f core conftest.err conftest.$ac_objext conftest.beam \
6923    conftest$ac_exeext conftest.$ac_ext
6924fi
6925
6926
6927		CFLAGS="$xorg_testset_save_CFLAGS"
6928
6929		eval supported=\$$cacheid
6930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6931printf "%s\n" "$supported" >&6; }
6932		if test "$supported" = "yes" ; then
6933			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6934			found="yes"
6935		fi
6936	fi
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952xorg_testset_save_CFLAGS="$CFLAGS"
6953
6954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6958if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6959then :
6960  printf %s "(cached) " >&6
6961else $as_nop
6962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965_ACEOF
6966if ac_fn_c_try_compile "$LINENO"
6967then :
6968  xorg_cv_cc_flag_unknown_warning_option=yes
6969else $as_nop
6970  xorg_cv_cc_flag_unknown_warning_option=no
6971fi
6972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6973fi
6974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6977	CFLAGS="$xorg_testset_save_CFLAGS"
6978fi
6979
6980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6983	fi
6984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6987if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6988then :
6989  printf %s "(cached) " >&6
6990else $as_nop
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993int i;
6994_ACEOF
6995if ac_fn_c_try_compile "$LINENO"
6996then :
6997  xorg_cv_cc_flag_unused_command_line_argument=yes
6998else $as_nop
6999  xorg_cv_cc_flag_unused_command_line_argument=no
7000fi
7001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7002fi
7003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7006	CFLAGS="$xorg_testset_save_CFLAGS"
7007fi
7008
7009found="no"
7010
7011	if test $found = "no" ; then
7012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7014		fi
7015
7016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7018		fi
7019
7020		CFLAGS="$CFLAGS -Wredundant-decls"
7021
7022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7023printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7024		cacheid=xorg_cv_cc_flag__Wredundant_decls
7025		if eval test \${$cacheid+y}
7026then :
7027  printf %s "(cached) " >&6
7028else $as_nop
7029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030/* end confdefs.h.  */
7031int i;
7032int
7033main (void)
7034{
7035
7036  ;
7037  return 0;
7038}
7039_ACEOF
7040if ac_fn_c_try_link "$LINENO"
7041then :
7042  eval $cacheid=yes
7043else $as_nop
7044  eval $cacheid=no
7045fi
7046rm -f core conftest.err conftest.$ac_objext conftest.beam \
7047    conftest$ac_exeext conftest.$ac_ext
7048fi
7049
7050
7051		CFLAGS="$xorg_testset_save_CFLAGS"
7052
7053		eval supported=\$$cacheid
7054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7055printf "%s\n" "$supported" >&6; }
7056		if test "$supported" = "yes" ; then
7057			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7058			found="yes"
7059		fi
7060	fi
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076xorg_testset_save_CFLAGS="$CFLAGS"
7077
7078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7082if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7083then :
7084  printf %s "(cached) " >&6
7085else $as_nop
7086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087/* end confdefs.h.  */
7088int i;
7089_ACEOF
7090if ac_fn_c_try_compile "$LINENO"
7091then :
7092  xorg_cv_cc_flag_unknown_warning_option=yes
7093else $as_nop
7094  xorg_cv_cc_flag_unknown_warning_option=no
7095fi
7096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7097fi
7098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7101	CFLAGS="$xorg_testset_save_CFLAGS"
7102fi
7103
7104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107	fi
7108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7111if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7112then :
7113  printf %s "(cached) " >&6
7114else $as_nop
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117int i;
7118_ACEOF
7119if ac_fn_c_try_compile "$LINENO"
7120then :
7121  xorg_cv_cc_flag_unused_command_line_argument=yes
7122else $as_nop
7123  xorg_cv_cc_flag_unused_command_line_argument=no
7124fi
7125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7126fi
7127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7130	CFLAGS="$xorg_testset_save_CFLAGS"
7131fi
7132
7133found="no"
7134
7135	if test $found = "no" ; then
7136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7138		fi
7139
7140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7142		fi
7143
7144		CFLAGS="$CFLAGS -Wlogical-op"
7145
7146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7147printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7148		cacheid=xorg_cv_cc_flag__Wlogical_op
7149		if eval test \${$cacheid+y}
7150then :
7151  printf %s "(cached) " >&6
7152else $as_nop
7153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h.  */
7155int i;
7156int
7157main (void)
7158{
7159
7160  ;
7161  return 0;
7162}
7163_ACEOF
7164if ac_fn_c_try_link "$LINENO"
7165then :
7166  eval $cacheid=yes
7167else $as_nop
7168  eval $cacheid=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.beam \
7171    conftest$ac_exeext conftest.$ac_ext
7172fi
7173
7174
7175		CFLAGS="$xorg_testset_save_CFLAGS"
7176
7177		eval supported=\$$cacheid
7178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7179printf "%s\n" "$supported" >&6; }
7180		if test "$supported" = "yes" ; then
7181			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7182			found="yes"
7183		fi
7184	fi
7185
7186
7187
7188# These are currently disabled because they are noisy.  They will be enabled
7189# in the future once the codebase is sufficiently modernized to silence
7190# them.  For now, I don't want them to drown out the other warnings.
7191# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7192# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7193# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7194
7195# Turn some warnings into errors, so we don't accidentally get successful builds
7196# when there are problems that should be fixed.
7197
7198if test "x$SELECTIVE_WERROR" = "xyes" ; then
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212xorg_testset_save_CFLAGS="$CFLAGS"
7213
7214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7217printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7218if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7219then :
7220  printf %s "(cached) " >&6
7221else $as_nop
7222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h.  */
7224int i;
7225_ACEOF
7226if ac_fn_c_try_compile "$LINENO"
7227then :
7228  xorg_cv_cc_flag_unknown_warning_option=yes
7229else $as_nop
7230  xorg_cv_cc_flag_unknown_warning_option=no
7231fi
7232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7233fi
7234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7235printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7237	CFLAGS="$xorg_testset_save_CFLAGS"
7238fi
7239
7240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243	fi
7244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7246printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7247if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7248then :
7249  printf %s "(cached) " >&6
7250else $as_nop
7251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253int i;
7254_ACEOF
7255if ac_fn_c_try_compile "$LINENO"
7256then :
7257  xorg_cv_cc_flag_unused_command_line_argument=yes
7258else $as_nop
7259  xorg_cv_cc_flag_unused_command_line_argument=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7262fi
7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7264printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7266	CFLAGS="$xorg_testset_save_CFLAGS"
7267fi
7268
7269found="no"
7270
7271	if test $found = "no" ; then
7272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7274		fi
7275
7276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7278		fi
7279
7280		CFLAGS="$CFLAGS -Werror=implicit"
7281
7282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7283printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7284		cacheid=xorg_cv_cc_flag__Werror_implicit
7285		if eval test \${$cacheid+y}
7286then :
7287  printf %s "(cached) " >&6
7288else $as_nop
7289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291int i;
7292int
7293main (void)
7294{
7295
7296  ;
7297  return 0;
7298}
7299_ACEOF
7300if ac_fn_c_try_link "$LINENO"
7301then :
7302  eval $cacheid=yes
7303else $as_nop
7304  eval $cacheid=no
7305fi
7306rm -f core conftest.err conftest.$ac_objext conftest.beam \
7307    conftest$ac_exeext conftest.$ac_ext
7308fi
7309
7310
7311		CFLAGS="$xorg_testset_save_CFLAGS"
7312
7313		eval supported=\$$cacheid
7314		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7315printf "%s\n" "$supported" >&6; }
7316		if test "$supported" = "yes" ; then
7317			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7318			found="yes"
7319		fi
7320	fi
7321
7322	if test $found = "no" ; then
7323		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325		fi
7326
7327		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329		fi
7330
7331		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7332
7333		{ 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
7334printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7335		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7336		if eval test \${$cacheid+y}
7337then :
7338  printf %s "(cached) " >&6
7339else $as_nop
7340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h.  */
7342int i;
7343int
7344main (void)
7345{
7346
7347  ;
7348  return 0;
7349}
7350_ACEOF
7351if ac_fn_c_try_link "$LINENO"
7352then :
7353  eval $cacheid=yes
7354else $as_nop
7355  eval $cacheid=no
7356fi
7357rm -f core conftest.err conftest.$ac_objext conftest.beam \
7358    conftest$ac_exeext conftest.$ac_ext
7359fi
7360
7361
7362		CFLAGS="$xorg_testset_save_CFLAGS"
7363
7364		eval supported=\$$cacheid
7365		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7366printf "%s\n" "$supported" >&6; }
7367		if test "$supported" = "yes" ; then
7368			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7369			found="yes"
7370		fi
7371	fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387xorg_testset_save_CFLAGS="$CFLAGS"
7388
7389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7393if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7394then :
7395  printf %s "(cached) " >&6
7396else $as_nop
7397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h.  */
7399int i;
7400_ACEOF
7401if ac_fn_c_try_compile "$LINENO"
7402then :
7403  xorg_cv_cc_flag_unknown_warning_option=yes
7404else $as_nop
7405  xorg_cv_cc_flag_unknown_warning_option=no
7406fi
7407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7408fi
7409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7412	CFLAGS="$xorg_testset_save_CFLAGS"
7413fi
7414
7415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418	fi
7419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7422if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7423then :
7424  printf %s "(cached) " >&6
7425else $as_nop
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428int i;
7429_ACEOF
7430if ac_fn_c_try_compile "$LINENO"
7431then :
7432  xorg_cv_cc_flag_unused_command_line_argument=yes
7433else $as_nop
7434  xorg_cv_cc_flag_unused_command_line_argument=no
7435fi
7436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7437fi
7438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7441	CFLAGS="$xorg_testset_save_CFLAGS"
7442fi
7443
7444found="no"
7445
7446	if test $found = "no" ; then
7447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7449		fi
7450
7451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7453		fi
7454
7455		CFLAGS="$CFLAGS -Werror=nonnull"
7456
7457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7458printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7459		cacheid=xorg_cv_cc_flag__Werror_nonnull
7460		if eval test \${$cacheid+y}
7461then :
7462  printf %s "(cached) " >&6
7463else $as_nop
7464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465/* end confdefs.h.  */
7466int i;
7467int
7468main (void)
7469{
7470
7471  ;
7472  return 0;
7473}
7474_ACEOF
7475if ac_fn_c_try_link "$LINENO"
7476then :
7477  eval $cacheid=yes
7478else $as_nop
7479  eval $cacheid=no
7480fi
7481rm -f core conftest.err conftest.$ac_objext conftest.beam \
7482    conftest$ac_exeext conftest.$ac_ext
7483fi
7484
7485
7486		CFLAGS="$xorg_testset_save_CFLAGS"
7487
7488		eval supported=\$$cacheid
7489		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7490printf "%s\n" "$supported" >&6; }
7491		if test "$supported" = "yes" ; then
7492			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7493			found="yes"
7494		fi
7495	fi
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511xorg_testset_save_CFLAGS="$CFLAGS"
7512
7513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7516printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7517if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7518then :
7519  printf %s "(cached) " >&6
7520else $as_nop
7521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523int i;
7524_ACEOF
7525if ac_fn_c_try_compile "$LINENO"
7526then :
7527  xorg_cv_cc_flag_unknown_warning_option=yes
7528else $as_nop
7529  xorg_cv_cc_flag_unknown_warning_option=no
7530fi
7531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7532fi
7533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7534printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7536	CFLAGS="$xorg_testset_save_CFLAGS"
7537fi
7538
7539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542	fi
7543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7545printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7546if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7547then :
7548  printf %s "(cached) " >&6
7549else $as_nop
7550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h.  */
7552int i;
7553_ACEOF
7554if ac_fn_c_try_compile "$LINENO"
7555then :
7556  xorg_cv_cc_flag_unused_command_line_argument=yes
7557else $as_nop
7558  xorg_cv_cc_flag_unused_command_line_argument=no
7559fi
7560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7561fi
7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7563printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7564	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7565	CFLAGS="$xorg_testset_save_CFLAGS"
7566fi
7567
7568found="no"
7569
7570	if test $found = "no" ; then
7571		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7572			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7573		fi
7574
7575		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7576			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7577		fi
7578
7579		CFLAGS="$CFLAGS -Werror=init-self"
7580
7581		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7582printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7583		cacheid=xorg_cv_cc_flag__Werror_init_self
7584		if eval test \${$cacheid+y}
7585then :
7586  printf %s "(cached) " >&6
7587else $as_nop
7588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590int i;
7591int
7592main (void)
7593{
7594
7595  ;
7596  return 0;
7597}
7598_ACEOF
7599if ac_fn_c_try_link "$LINENO"
7600then :
7601  eval $cacheid=yes
7602else $as_nop
7603  eval $cacheid=no
7604fi
7605rm -f core conftest.err conftest.$ac_objext conftest.beam \
7606    conftest$ac_exeext conftest.$ac_ext
7607fi
7608
7609
7610		CFLAGS="$xorg_testset_save_CFLAGS"
7611
7612		eval supported=\$$cacheid
7613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7614printf "%s\n" "$supported" >&6; }
7615		if test "$supported" = "yes" ; then
7616			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7617			found="yes"
7618		fi
7619	fi
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635xorg_testset_save_CFLAGS="$CFLAGS"
7636
7637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7641if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7642then :
7643  printf %s "(cached) " >&6
7644else $as_nop
7645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h.  */
7647int i;
7648_ACEOF
7649if ac_fn_c_try_compile "$LINENO"
7650then :
7651  xorg_cv_cc_flag_unknown_warning_option=yes
7652else $as_nop
7653  xorg_cv_cc_flag_unknown_warning_option=no
7654fi
7655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7656fi
7657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7658printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7659	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7660	CFLAGS="$xorg_testset_save_CFLAGS"
7661fi
7662
7663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7664	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7665		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666	fi
7667	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7669printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7670if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7671then :
7672  printf %s "(cached) " >&6
7673else $as_nop
7674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676int i;
7677_ACEOF
7678if ac_fn_c_try_compile "$LINENO"
7679then :
7680  xorg_cv_cc_flag_unused_command_line_argument=yes
7681else $as_nop
7682  xorg_cv_cc_flag_unused_command_line_argument=no
7683fi
7684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7685fi
7686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7687printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7688	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7689	CFLAGS="$xorg_testset_save_CFLAGS"
7690fi
7691
7692found="no"
7693
7694	if test $found = "no" ; then
7695		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7696			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697		fi
7698
7699		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7700			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7701		fi
7702
7703		CFLAGS="$CFLAGS -Werror=main"
7704
7705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7706printf %s "checking if $CC supports -Werror=main... " >&6; }
7707		cacheid=xorg_cv_cc_flag__Werror_main
7708		if eval test \${$cacheid+y}
7709then :
7710  printf %s "(cached) " >&6
7711else $as_nop
7712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714int i;
7715int
7716main (void)
7717{
7718
7719  ;
7720  return 0;
7721}
7722_ACEOF
7723if ac_fn_c_try_link "$LINENO"
7724then :
7725  eval $cacheid=yes
7726else $as_nop
7727  eval $cacheid=no
7728fi
7729rm -f core conftest.err conftest.$ac_objext conftest.beam \
7730    conftest$ac_exeext conftest.$ac_ext
7731fi
7732
7733
7734		CFLAGS="$xorg_testset_save_CFLAGS"
7735
7736		eval supported=\$$cacheid
7737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7738printf "%s\n" "$supported" >&6; }
7739		if test "$supported" = "yes" ; then
7740			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7741			found="yes"
7742		fi
7743	fi
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759xorg_testset_save_CFLAGS="$CFLAGS"
7760
7761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7763	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7765if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7766then :
7767  printf %s "(cached) " >&6
7768else $as_nop
7769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770/* end confdefs.h.  */
7771int i;
7772_ACEOF
7773if ac_fn_c_try_compile "$LINENO"
7774then :
7775  xorg_cv_cc_flag_unknown_warning_option=yes
7776else $as_nop
7777  xorg_cv_cc_flag_unknown_warning_option=no
7778fi
7779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7780fi
7781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7782printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7783	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7784	CFLAGS="$xorg_testset_save_CFLAGS"
7785fi
7786
7787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7788	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7789		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7790	fi
7791	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7793printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7794if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7795then :
7796  printf %s "(cached) " >&6
7797else $as_nop
7798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h.  */
7800int i;
7801_ACEOF
7802if ac_fn_c_try_compile "$LINENO"
7803then :
7804  xorg_cv_cc_flag_unused_command_line_argument=yes
7805else $as_nop
7806  xorg_cv_cc_flag_unused_command_line_argument=no
7807fi
7808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7809fi
7810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7813	CFLAGS="$xorg_testset_save_CFLAGS"
7814fi
7815
7816found="no"
7817
7818	if test $found = "no" ; then
7819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821		fi
7822
7823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825		fi
7826
7827		CFLAGS="$CFLAGS -Werror=missing-braces"
7828
7829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7830printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7831		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7832		if eval test \${$cacheid+y}
7833then :
7834  printf %s "(cached) " >&6
7835else $as_nop
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838int i;
7839int
7840main (void)
7841{
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847if ac_fn_c_try_link "$LINENO"
7848then :
7849  eval $cacheid=yes
7850else $as_nop
7851  eval $cacheid=no
7852fi
7853rm -f core conftest.err conftest.$ac_objext conftest.beam \
7854    conftest$ac_exeext conftest.$ac_ext
7855fi
7856
7857
7858		CFLAGS="$xorg_testset_save_CFLAGS"
7859
7860		eval supported=\$$cacheid
7861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7862printf "%s\n" "$supported" >&6; }
7863		if test "$supported" = "yes" ; then
7864			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7865			found="yes"
7866		fi
7867	fi
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883xorg_testset_save_CFLAGS="$CFLAGS"
7884
7885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7887	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7889if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7890then :
7891  printf %s "(cached) " >&6
7892else $as_nop
7893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894/* end confdefs.h.  */
7895int i;
7896_ACEOF
7897if ac_fn_c_try_compile "$LINENO"
7898then :
7899  xorg_cv_cc_flag_unknown_warning_option=yes
7900else $as_nop
7901  xorg_cv_cc_flag_unknown_warning_option=no
7902fi
7903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7904fi
7905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7908	CFLAGS="$xorg_testset_save_CFLAGS"
7909fi
7910
7911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914	fi
7915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7918if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7919then :
7920  printf %s "(cached) " >&6
7921else $as_nop
7922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924int i;
7925_ACEOF
7926if ac_fn_c_try_compile "$LINENO"
7927then :
7928  xorg_cv_cc_flag_unused_command_line_argument=yes
7929else $as_nop
7930  xorg_cv_cc_flag_unused_command_line_argument=no
7931fi
7932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7933fi
7934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7935printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7937	CFLAGS="$xorg_testset_save_CFLAGS"
7938fi
7939
7940found="no"
7941
7942	if test $found = "no" ; then
7943		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945		fi
7946
7947		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7949		fi
7950
7951		CFLAGS="$CFLAGS -Werror=sequence-point"
7952
7953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7954printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7955		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7956		if eval test \${$cacheid+y}
7957then :
7958  printf %s "(cached) " >&6
7959else $as_nop
7960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h.  */
7962int i;
7963int
7964main (void)
7965{
7966
7967  ;
7968  return 0;
7969}
7970_ACEOF
7971if ac_fn_c_try_link "$LINENO"
7972then :
7973  eval $cacheid=yes
7974else $as_nop
7975  eval $cacheid=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext conftest.beam \
7978    conftest$ac_exeext conftest.$ac_ext
7979fi
7980
7981
7982		CFLAGS="$xorg_testset_save_CFLAGS"
7983
7984		eval supported=\$$cacheid
7985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7986printf "%s\n" "$supported" >&6; }
7987		if test "$supported" = "yes" ; then
7988			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7989			found="yes"
7990		fi
7991	fi
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007xorg_testset_save_CFLAGS="$CFLAGS"
8008
8009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8011	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8012printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8013if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8014then :
8015  printf %s "(cached) " >&6
8016else $as_nop
8017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019int i;
8020_ACEOF
8021if ac_fn_c_try_compile "$LINENO"
8022then :
8023  xorg_cv_cc_flag_unknown_warning_option=yes
8024else $as_nop
8025  xorg_cv_cc_flag_unknown_warning_option=no
8026fi
8027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8028fi
8029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8030printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8032	CFLAGS="$xorg_testset_save_CFLAGS"
8033fi
8034
8035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038	fi
8039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8041printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8042if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8043then :
8044  printf %s "(cached) " >&6
8045else $as_nop
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"
8051then :
8052  xorg_cv_cc_flag_unused_command_line_argument=yes
8053else $as_nop
8054  xorg_cv_cc_flag_unused_command_line_argument=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8057fi
8058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8059printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8061	CFLAGS="$xorg_testset_save_CFLAGS"
8062fi
8063
8064found="no"
8065
8066	if test $found = "no" ; then
8067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8069		fi
8070
8071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8073		fi
8074
8075		CFLAGS="$CFLAGS -Werror=return-type"
8076
8077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8078printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8079		cacheid=xorg_cv_cc_flag__Werror_return_type
8080		if eval test \${$cacheid+y}
8081then :
8082  printf %s "(cached) " >&6
8083else $as_nop
8084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085/* end confdefs.h.  */
8086int i;
8087int
8088main (void)
8089{
8090
8091  ;
8092  return 0;
8093}
8094_ACEOF
8095if ac_fn_c_try_link "$LINENO"
8096then :
8097  eval $cacheid=yes
8098else $as_nop
8099  eval $cacheid=no
8100fi
8101rm -f core conftest.err conftest.$ac_objext conftest.beam \
8102    conftest$ac_exeext conftest.$ac_ext
8103fi
8104
8105
8106		CFLAGS="$xorg_testset_save_CFLAGS"
8107
8108		eval supported=\$$cacheid
8109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8110printf "%s\n" "$supported" >&6; }
8111		if test "$supported" = "yes" ; then
8112			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8113			found="yes"
8114		fi
8115	fi
8116
8117	if test $found = "no" ; then
8118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120		fi
8121
8122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124		fi
8125
8126		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8127
8128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8129printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8130		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8131		if eval test \${$cacheid+y}
8132then :
8133  printf %s "(cached) " >&6
8134else $as_nop
8135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h.  */
8137int i;
8138int
8139main (void)
8140{
8141
8142  ;
8143  return 0;
8144}
8145_ACEOF
8146if ac_fn_c_try_link "$LINENO"
8147then :
8148  eval $cacheid=yes
8149else $as_nop
8150  eval $cacheid=no
8151fi
8152rm -f core conftest.err conftest.$ac_objext conftest.beam \
8153    conftest$ac_exeext conftest.$ac_ext
8154fi
8155
8156
8157		CFLAGS="$xorg_testset_save_CFLAGS"
8158
8159		eval supported=\$$cacheid
8160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8161printf "%s\n" "$supported" >&6; }
8162		if test "$supported" = "yes" ; then
8163			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8164			found="yes"
8165		fi
8166	fi
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182xorg_testset_save_CFLAGS="$CFLAGS"
8183
8184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8186	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8187printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8188if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8189then :
8190  printf %s "(cached) " >&6
8191else $as_nop
8192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193/* end confdefs.h.  */
8194int i;
8195_ACEOF
8196if ac_fn_c_try_compile "$LINENO"
8197then :
8198  xorg_cv_cc_flag_unknown_warning_option=yes
8199else $as_nop
8200  xorg_cv_cc_flag_unknown_warning_option=no
8201fi
8202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8203fi
8204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8205printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8206	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8207	CFLAGS="$xorg_testset_save_CFLAGS"
8208fi
8209
8210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8211	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8212		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213	fi
8214	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8216printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8217if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8218then :
8219  printf %s "(cached) " >&6
8220else $as_nop
8221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222/* end confdefs.h.  */
8223int i;
8224_ACEOF
8225if ac_fn_c_try_compile "$LINENO"
8226then :
8227  xorg_cv_cc_flag_unused_command_line_argument=yes
8228else $as_nop
8229  xorg_cv_cc_flag_unused_command_line_argument=no
8230fi
8231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8232fi
8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8234printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8236	CFLAGS="$xorg_testset_save_CFLAGS"
8237fi
8238
8239found="no"
8240
8241	if test $found = "no" ; then
8242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8244		fi
8245
8246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248		fi
8249
8250		CFLAGS="$CFLAGS -Werror=trigraphs"
8251
8252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8253printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8254		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8255		if eval test \${$cacheid+y}
8256then :
8257  printf %s "(cached) " >&6
8258else $as_nop
8259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260/* end confdefs.h.  */
8261int i;
8262int
8263main (void)
8264{
8265
8266  ;
8267  return 0;
8268}
8269_ACEOF
8270if ac_fn_c_try_link "$LINENO"
8271then :
8272  eval $cacheid=yes
8273else $as_nop
8274  eval $cacheid=no
8275fi
8276rm -f core conftest.err conftest.$ac_objext conftest.beam \
8277    conftest$ac_exeext conftest.$ac_ext
8278fi
8279
8280
8281		CFLAGS="$xorg_testset_save_CFLAGS"
8282
8283		eval supported=\$$cacheid
8284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8285printf "%s\n" "$supported" >&6; }
8286		if test "$supported" = "yes" ; then
8287			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8288			found="yes"
8289		fi
8290	fi
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306xorg_testset_save_CFLAGS="$CFLAGS"
8307
8308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8310	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8312if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8313then :
8314  printf %s "(cached) " >&6
8315else $as_nop
8316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317/* end confdefs.h.  */
8318int i;
8319_ACEOF
8320if ac_fn_c_try_compile "$LINENO"
8321then :
8322  xorg_cv_cc_flag_unknown_warning_option=yes
8323else $as_nop
8324  xorg_cv_cc_flag_unknown_warning_option=no
8325fi
8326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8327fi
8328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8329printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8331	CFLAGS="$xorg_testset_save_CFLAGS"
8332fi
8333
8334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8337	fi
8338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8340printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8341if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8342then :
8343  printf %s "(cached) " >&6
8344else $as_nop
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347int i;
8348_ACEOF
8349if ac_fn_c_try_compile "$LINENO"
8350then :
8351  xorg_cv_cc_flag_unused_command_line_argument=yes
8352else $as_nop
8353  xorg_cv_cc_flag_unused_command_line_argument=no
8354fi
8355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8356fi
8357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8360	CFLAGS="$xorg_testset_save_CFLAGS"
8361fi
8362
8363found="no"
8364
8365	if test $found = "no" ; then
8366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368		fi
8369
8370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8372		fi
8373
8374		CFLAGS="$CFLAGS -Werror=array-bounds"
8375
8376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8377printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8378		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8379		if eval test \${$cacheid+y}
8380then :
8381  printf %s "(cached) " >&6
8382else $as_nop
8383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h.  */
8385int i;
8386int
8387main (void)
8388{
8389
8390  ;
8391  return 0;
8392}
8393_ACEOF
8394if ac_fn_c_try_link "$LINENO"
8395then :
8396  eval $cacheid=yes
8397else $as_nop
8398  eval $cacheid=no
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.beam \
8401    conftest$ac_exeext conftest.$ac_ext
8402fi
8403
8404
8405		CFLAGS="$xorg_testset_save_CFLAGS"
8406
8407		eval supported=\$$cacheid
8408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8409printf "%s\n" "$supported" >&6; }
8410		if test "$supported" = "yes" ; then
8411			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8412			found="yes"
8413		fi
8414	fi
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430xorg_testset_save_CFLAGS="$CFLAGS"
8431
8432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8435printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8436if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8437then :
8438  printf %s "(cached) " >&6
8439else $as_nop
8440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441/* end confdefs.h.  */
8442int i;
8443_ACEOF
8444if ac_fn_c_try_compile "$LINENO"
8445then :
8446  xorg_cv_cc_flag_unknown_warning_option=yes
8447else $as_nop
8448  xorg_cv_cc_flag_unknown_warning_option=no
8449fi
8450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8451fi
8452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8453printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8455	CFLAGS="$xorg_testset_save_CFLAGS"
8456fi
8457
8458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461	fi
8462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8464printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8465if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8466then :
8467  printf %s "(cached) " >&6
8468else $as_nop
8469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h.  */
8471int i;
8472_ACEOF
8473if ac_fn_c_try_compile "$LINENO"
8474then :
8475  xorg_cv_cc_flag_unused_command_line_argument=yes
8476else $as_nop
8477  xorg_cv_cc_flag_unused_command_line_argument=no
8478fi
8479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8480fi
8481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8482printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8484	CFLAGS="$xorg_testset_save_CFLAGS"
8485fi
8486
8487found="no"
8488
8489	if test $found = "no" ; then
8490		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8492		fi
8493
8494		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8496		fi
8497
8498		CFLAGS="$CFLAGS -Werror=write-strings"
8499
8500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8501printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8502		cacheid=xorg_cv_cc_flag__Werror_write_strings
8503		if eval test \${$cacheid+y}
8504then :
8505  printf %s "(cached) " >&6
8506else $as_nop
8507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h.  */
8509int i;
8510int
8511main (void)
8512{
8513
8514  ;
8515  return 0;
8516}
8517_ACEOF
8518if ac_fn_c_try_link "$LINENO"
8519then :
8520  eval $cacheid=yes
8521else $as_nop
8522  eval $cacheid=no
8523fi
8524rm -f core conftest.err conftest.$ac_objext conftest.beam \
8525    conftest$ac_exeext conftest.$ac_ext
8526fi
8527
8528
8529		CFLAGS="$xorg_testset_save_CFLAGS"
8530
8531		eval supported=\$$cacheid
8532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8533printf "%s\n" "$supported" >&6; }
8534		if test "$supported" = "yes" ; then
8535			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8536			found="yes"
8537		fi
8538	fi
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554xorg_testset_save_CFLAGS="$CFLAGS"
8555
8556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8560if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8561then :
8562  printf %s "(cached) " >&6
8563else $as_nop
8564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h.  */
8566int i;
8567_ACEOF
8568if ac_fn_c_try_compile "$LINENO"
8569then :
8570  xorg_cv_cc_flag_unknown_warning_option=yes
8571else $as_nop
8572  xorg_cv_cc_flag_unknown_warning_option=no
8573fi
8574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8575fi
8576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8579	CFLAGS="$xorg_testset_save_CFLAGS"
8580fi
8581
8582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585	fi
8586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8589if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8590then :
8591  printf %s "(cached) " >&6
8592else $as_nop
8593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595int i;
8596_ACEOF
8597if ac_fn_c_try_compile "$LINENO"
8598then :
8599  xorg_cv_cc_flag_unused_command_line_argument=yes
8600else $as_nop
8601  xorg_cv_cc_flag_unused_command_line_argument=no
8602fi
8603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8604fi
8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8608	CFLAGS="$xorg_testset_save_CFLAGS"
8609fi
8610
8611found="no"
8612
8613	if test $found = "no" ; then
8614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616		fi
8617
8618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620		fi
8621
8622		CFLAGS="$CFLAGS -Werror=address"
8623
8624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8625printf %s "checking if $CC supports -Werror=address... " >&6; }
8626		cacheid=xorg_cv_cc_flag__Werror_address
8627		if eval test \${$cacheid+y}
8628then :
8629  printf %s "(cached) " >&6
8630else $as_nop
8631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632/* end confdefs.h.  */
8633int i;
8634int
8635main (void)
8636{
8637
8638  ;
8639  return 0;
8640}
8641_ACEOF
8642if ac_fn_c_try_link "$LINENO"
8643then :
8644  eval $cacheid=yes
8645else $as_nop
8646  eval $cacheid=no
8647fi
8648rm -f core conftest.err conftest.$ac_objext conftest.beam \
8649    conftest$ac_exeext conftest.$ac_ext
8650fi
8651
8652
8653		CFLAGS="$xorg_testset_save_CFLAGS"
8654
8655		eval supported=\$$cacheid
8656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8657printf "%s\n" "$supported" >&6; }
8658		if test "$supported" = "yes" ; then
8659			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8660			found="yes"
8661		fi
8662	fi
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678xorg_testset_save_CFLAGS="$CFLAGS"
8679
8680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8683printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8684if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8685then :
8686  printf %s "(cached) " >&6
8687else $as_nop
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"
8693then :
8694  xorg_cv_cc_flag_unknown_warning_option=yes
8695else $as_nop
8696  xorg_cv_cc_flag_unknown_warning_option=no
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8699fi
8700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8703	CFLAGS="$xorg_testset_save_CFLAGS"
8704fi
8705
8706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709	fi
8710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8714then :
8715  printf %s "(cached) " >&6
8716else $as_nop
8717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h.  */
8719int i;
8720_ACEOF
8721if ac_fn_c_try_compile "$LINENO"
8722then :
8723  xorg_cv_cc_flag_unused_command_line_argument=yes
8724else $as_nop
8725  xorg_cv_cc_flag_unused_command_line_argument=no
8726fi
8727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728fi
8729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8730printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8731	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8732	CFLAGS="$xorg_testset_save_CFLAGS"
8733fi
8734
8735found="no"
8736
8737	if test $found = "no" ; then
8738		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8739			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8740		fi
8741
8742		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8743			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8744		fi
8745
8746		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8747
8748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8749printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8750		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8751		if eval test \${$cacheid+y}
8752then :
8753  printf %s "(cached) " >&6
8754else $as_nop
8755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756/* end confdefs.h.  */
8757int i;
8758int
8759main (void)
8760{
8761
8762  ;
8763  return 0;
8764}
8765_ACEOF
8766if ac_fn_c_try_link "$LINENO"
8767then :
8768  eval $cacheid=yes
8769else $as_nop
8770  eval $cacheid=no
8771fi
8772rm -f core conftest.err conftest.$ac_objext conftest.beam \
8773    conftest$ac_exeext conftest.$ac_ext
8774fi
8775
8776
8777		CFLAGS="$xorg_testset_save_CFLAGS"
8778
8779		eval supported=\$$cacheid
8780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8781printf "%s\n" "$supported" >&6; }
8782		if test "$supported" = "yes" ; then
8783			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8784			found="yes"
8785		fi
8786	fi
8787
8788	if test $found = "no" ; then
8789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791		fi
8792
8793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795		fi
8796
8797		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8798
8799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8800printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8801		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8802		if eval test \${$cacheid+y}
8803then :
8804  printf %s "(cached) " >&6
8805else $as_nop
8806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809int
8810main (void)
8811{
8812
8813  ;
8814  return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_link "$LINENO"
8818then :
8819  eval $cacheid=yes
8820else $as_nop
8821  eval $cacheid=no
8822fi
8823rm -f core conftest.err conftest.$ac_objext conftest.beam \
8824    conftest$ac_exeext conftest.$ac_ext
8825fi
8826
8827
8828		CFLAGS="$xorg_testset_save_CFLAGS"
8829
8830		eval supported=\$$cacheid
8831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8832printf "%s\n" "$supported" >&6; }
8833		if test "$supported" = "yes" ; then
8834			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8835			found="yes"
8836		fi
8837	fi
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853xorg_testset_save_CFLAGS="$CFLAGS"
8854
8855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8858printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8859if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8860then :
8861  printf %s "(cached) " >&6
8862else $as_nop
8863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864/* end confdefs.h.  */
8865int i;
8866_ACEOF
8867if ac_fn_c_try_compile "$LINENO"
8868then :
8869  xorg_cv_cc_flag_unknown_warning_option=yes
8870else $as_nop
8871  xorg_cv_cc_flag_unknown_warning_option=no
8872fi
8873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8874fi
8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8876printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8878	CFLAGS="$xorg_testset_save_CFLAGS"
8879fi
8880
8881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8884	fi
8885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8887printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8888if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8889then :
8890  printf %s "(cached) " >&6
8891else $as_nop
8892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893/* end confdefs.h.  */
8894int i;
8895_ACEOF
8896if ac_fn_c_try_compile "$LINENO"
8897then :
8898  xorg_cv_cc_flag_unused_command_line_argument=yes
8899else $as_nop
8900  xorg_cv_cc_flag_unused_command_line_argument=no
8901fi
8902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8903fi
8904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8907	CFLAGS="$xorg_testset_save_CFLAGS"
8908fi
8909
8910found="no"
8911
8912	if test $found = "no" ; then
8913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915		fi
8916
8917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8919		fi
8920
8921		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8922
8923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8924printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8925		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8926		if eval test \${$cacheid+y}
8927then :
8928  printf %s "(cached) " >&6
8929else $as_nop
8930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931/* end confdefs.h.  */
8932int i;
8933int
8934main (void)
8935{
8936
8937  ;
8938  return 0;
8939}
8940_ACEOF
8941if ac_fn_c_try_link "$LINENO"
8942then :
8943  eval $cacheid=yes
8944else $as_nop
8945  eval $cacheid=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.beam \
8948    conftest$ac_exeext conftest.$ac_ext
8949fi
8950
8951
8952		CFLAGS="$xorg_testset_save_CFLAGS"
8953
8954		eval supported=\$$cacheid
8955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8956printf "%s\n" "$supported" >&6; }
8957		if test "$supported" = "yes" ; then
8958			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8959			found="yes"
8960		fi
8961	fi
8962
8963 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8964else
8965{ 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
8966printf "%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;}
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980xorg_testset_save_CFLAGS="$CFLAGS"
8981
8982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8983	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8985printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8986if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8987then :
8988  printf %s "(cached) " >&6
8989else $as_nop
8990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991/* end confdefs.h.  */
8992int i;
8993_ACEOF
8994if ac_fn_c_try_compile "$LINENO"
8995then :
8996  xorg_cv_cc_flag_unknown_warning_option=yes
8997else $as_nop
8998  xorg_cv_cc_flag_unknown_warning_option=no
8999fi
9000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9001fi
9002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9005	CFLAGS="$xorg_testset_save_CFLAGS"
9006fi
9007
9008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011	fi
9012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9015if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9016then :
9017  printf %s "(cached) " >&6
9018else $as_nop
9019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h.  */
9021int i;
9022_ACEOF
9023if ac_fn_c_try_compile "$LINENO"
9024then :
9025  xorg_cv_cc_flag_unused_command_line_argument=yes
9026else $as_nop
9027  xorg_cv_cc_flag_unused_command_line_argument=no
9028fi
9029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9030fi
9031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9032printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9034	CFLAGS="$xorg_testset_save_CFLAGS"
9035fi
9036
9037found="no"
9038
9039	if test $found = "no" ; then
9040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9042		fi
9043
9044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9046		fi
9047
9048		CFLAGS="$CFLAGS -Wimplicit"
9049
9050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9051printf %s "checking if $CC supports -Wimplicit... " >&6; }
9052		cacheid=xorg_cv_cc_flag__Wimplicit
9053		if eval test \${$cacheid+y}
9054then :
9055  printf %s "(cached) " >&6
9056else $as_nop
9057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h.  */
9059int i;
9060int
9061main (void)
9062{
9063
9064  ;
9065  return 0;
9066}
9067_ACEOF
9068if ac_fn_c_try_link "$LINENO"
9069then :
9070  eval $cacheid=yes
9071else $as_nop
9072  eval $cacheid=no
9073fi
9074rm -f core conftest.err conftest.$ac_objext conftest.beam \
9075    conftest$ac_exeext conftest.$ac_ext
9076fi
9077
9078
9079		CFLAGS="$xorg_testset_save_CFLAGS"
9080
9081		eval supported=\$$cacheid
9082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9083printf "%s\n" "$supported" >&6; }
9084		if test "$supported" = "yes" ; then
9085			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9086			found="yes"
9087		fi
9088	fi
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104xorg_testset_save_CFLAGS="$CFLAGS"
9105
9106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9109printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9110if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
9121else $as_nop
9122  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
9127printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9128	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9129	CFLAGS="$xorg_testset_save_CFLAGS"
9130fi
9131
9132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9133	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9134		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135	fi
9136	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9138printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9139if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9140then :
9141  printf %s "(cached) " >&6
9142else $as_nop
9143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145int i;
9146_ACEOF
9147if ac_fn_c_try_compile "$LINENO"
9148then :
9149  xorg_cv_cc_flag_unused_command_line_argument=yes
9150else $as_nop
9151  xorg_cv_cc_flag_unused_command_line_argument=no
9152fi
9153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9154fi
9155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9156printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9158	CFLAGS="$xorg_testset_save_CFLAGS"
9159fi
9160
9161found="no"
9162
9163	if test $found = "no" ; then
9164		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9166		fi
9167
9168		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9170		fi
9171
9172		CFLAGS="$CFLAGS -Wnonnull"
9173
9174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9175printf %s "checking if $CC supports -Wnonnull... " >&6; }
9176		cacheid=xorg_cv_cc_flag__Wnonnull
9177		if eval test \${$cacheid+y}
9178then :
9179  printf %s "(cached) " >&6
9180else $as_nop
9181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182/* end confdefs.h.  */
9183int i;
9184int
9185main (void)
9186{
9187
9188  ;
9189  return 0;
9190}
9191_ACEOF
9192if ac_fn_c_try_link "$LINENO"
9193then :
9194  eval $cacheid=yes
9195else $as_nop
9196  eval $cacheid=no
9197fi
9198rm -f core conftest.err conftest.$ac_objext conftest.beam \
9199    conftest$ac_exeext conftest.$ac_ext
9200fi
9201
9202
9203		CFLAGS="$xorg_testset_save_CFLAGS"
9204
9205		eval supported=\$$cacheid
9206		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9207printf "%s\n" "$supported" >&6; }
9208		if test "$supported" = "yes" ; then
9209			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9210			found="yes"
9211		fi
9212	fi
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228xorg_testset_save_CFLAGS="$CFLAGS"
9229
9230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9231	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9233printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9234if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9235then :
9236  printf %s "(cached) " >&6
9237else $as_nop
9238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239/* end confdefs.h.  */
9240int i;
9241_ACEOF
9242if ac_fn_c_try_compile "$LINENO"
9243then :
9244  xorg_cv_cc_flag_unknown_warning_option=yes
9245else $as_nop
9246  xorg_cv_cc_flag_unknown_warning_option=no
9247fi
9248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9249fi
9250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9253	CFLAGS="$xorg_testset_save_CFLAGS"
9254fi
9255
9256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259	fi
9260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9263if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9264then :
9265  printf %s "(cached) " >&6
9266else $as_nop
9267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h.  */
9269int i;
9270_ACEOF
9271if ac_fn_c_try_compile "$LINENO"
9272then :
9273  xorg_cv_cc_flag_unused_command_line_argument=yes
9274else $as_nop
9275  xorg_cv_cc_flag_unused_command_line_argument=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9278fi
9279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9280printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9282	CFLAGS="$xorg_testset_save_CFLAGS"
9283fi
9284
9285found="no"
9286
9287	if test $found = "no" ; then
9288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290		fi
9291
9292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9294		fi
9295
9296		CFLAGS="$CFLAGS -Winit-self"
9297
9298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9299printf %s "checking if $CC supports -Winit-self... " >&6; }
9300		cacheid=xorg_cv_cc_flag__Winit_self
9301		if eval test \${$cacheid+y}
9302then :
9303  printf %s "(cached) " >&6
9304else $as_nop
9305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308int
9309main (void)
9310{
9311
9312  ;
9313  return 0;
9314}
9315_ACEOF
9316if ac_fn_c_try_link "$LINENO"
9317then :
9318  eval $cacheid=yes
9319else $as_nop
9320  eval $cacheid=no
9321fi
9322rm -f core conftest.err conftest.$ac_objext conftest.beam \
9323    conftest$ac_exeext conftest.$ac_ext
9324fi
9325
9326
9327		CFLAGS="$xorg_testset_save_CFLAGS"
9328
9329		eval supported=\$$cacheid
9330		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9331printf "%s\n" "$supported" >&6; }
9332		if test "$supported" = "yes" ; then
9333			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9334			found="yes"
9335		fi
9336	fi
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352xorg_testset_save_CFLAGS="$CFLAGS"
9353
9354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9358if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9359then :
9360  printf %s "(cached) " >&6
9361else $as_nop
9362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363/* end confdefs.h.  */
9364int i;
9365_ACEOF
9366if ac_fn_c_try_compile "$LINENO"
9367then :
9368  xorg_cv_cc_flag_unknown_warning_option=yes
9369else $as_nop
9370  xorg_cv_cc_flag_unknown_warning_option=no
9371fi
9372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9373fi
9374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9377	CFLAGS="$xorg_testset_save_CFLAGS"
9378fi
9379
9380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383	fi
9384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9387if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9388then :
9389  printf %s "(cached) " >&6
9390else $as_nop
9391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392/* end confdefs.h.  */
9393int i;
9394_ACEOF
9395if ac_fn_c_try_compile "$LINENO"
9396then :
9397  xorg_cv_cc_flag_unused_command_line_argument=yes
9398else $as_nop
9399  xorg_cv_cc_flag_unused_command_line_argument=no
9400fi
9401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9402fi
9403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9406	CFLAGS="$xorg_testset_save_CFLAGS"
9407fi
9408
9409found="no"
9410
9411	if test $found = "no" ; then
9412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9414		fi
9415
9416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418		fi
9419
9420		CFLAGS="$CFLAGS -Wmain"
9421
9422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9423printf %s "checking if $CC supports -Wmain... " >&6; }
9424		cacheid=xorg_cv_cc_flag__Wmain
9425		if eval test \${$cacheid+y}
9426then :
9427  printf %s "(cached) " >&6
9428else $as_nop
9429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430/* end confdefs.h.  */
9431int i;
9432int
9433main (void)
9434{
9435
9436  ;
9437  return 0;
9438}
9439_ACEOF
9440if ac_fn_c_try_link "$LINENO"
9441then :
9442  eval $cacheid=yes
9443else $as_nop
9444  eval $cacheid=no
9445fi
9446rm -f core conftest.err conftest.$ac_objext conftest.beam \
9447    conftest$ac_exeext conftest.$ac_ext
9448fi
9449
9450
9451		CFLAGS="$xorg_testset_save_CFLAGS"
9452
9453		eval supported=\$$cacheid
9454		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9455printf "%s\n" "$supported" >&6; }
9456		if test "$supported" = "yes" ; then
9457			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9458			found="yes"
9459		fi
9460	fi
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476xorg_testset_save_CFLAGS="$CFLAGS"
9477
9478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9479	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9480	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9482if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9483then :
9484  printf %s "(cached) " >&6
9485else $as_nop
9486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487/* end confdefs.h.  */
9488int i;
9489_ACEOF
9490if ac_fn_c_try_compile "$LINENO"
9491then :
9492  xorg_cv_cc_flag_unknown_warning_option=yes
9493else $as_nop
9494  xorg_cv_cc_flag_unknown_warning_option=no
9495fi
9496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9497fi
9498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9499printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9500	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9501	CFLAGS="$xorg_testset_save_CFLAGS"
9502fi
9503
9504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9505	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9506		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9507	fi
9508	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9510printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9511if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9512then :
9513  printf %s "(cached) " >&6
9514else $as_nop
9515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h.  */
9517int i;
9518_ACEOF
9519if ac_fn_c_try_compile "$LINENO"
9520then :
9521  xorg_cv_cc_flag_unused_command_line_argument=yes
9522else $as_nop
9523  xorg_cv_cc_flag_unused_command_line_argument=no
9524fi
9525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9526fi
9527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9530	CFLAGS="$xorg_testset_save_CFLAGS"
9531fi
9532
9533found="no"
9534
9535	if test $found = "no" ; then
9536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9538		fi
9539
9540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9542		fi
9543
9544		CFLAGS="$CFLAGS -Wmissing-braces"
9545
9546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9547printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9548		cacheid=xorg_cv_cc_flag__Wmissing_braces
9549		if eval test \${$cacheid+y}
9550then :
9551  printf %s "(cached) " >&6
9552else $as_nop
9553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554/* end confdefs.h.  */
9555int i;
9556int
9557main (void)
9558{
9559
9560  ;
9561  return 0;
9562}
9563_ACEOF
9564if ac_fn_c_try_link "$LINENO"
9565then :
9566  eval $cacheid=yes
9567else $as_nop
9568  eval $cacheid=no
9569fi
9570rm -f core conftest.err conftest.$ac_objext conftest.beam \
9571    conftest$ac_exeext conftest.$ac_ext
9572fi
9573
9574
9575		CFLAGS="$xorg_testset_save_CFLAGS"
9576
9577		eval supported=\$$cacheid
9578		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9579printf "%s\n" "$supported" >&6; }
9580		if test "$supported" = "yes" ; then
9581			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9582			found="yes"
9583		fi
9584	fi
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600xorg_testset_save_CFLAGS="$CFLAGS"
9601
9602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9603	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9606if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9607then :
9608  printf %s "(cached) " >&6
9609else $as_nop
9610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611/* end confdefs.h.  */
9612int i;
9613_ACEOF
9614if ac_fn_c_try_compile "$LINENO"
9615then :
9616  xorg_cv_cc_flag_unknown_warning_option=yes
9617else $as_nop
9618  xorg_cv_cc_flag_unknown_warning_option=no
9619fi
9620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9621fi
9622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9623printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9625	CFLAGS="$xorg_testset_save_CFLAGS"
9626fi
9627
9628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631	fi
9632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9634printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9635if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9636then :
9637  printf %s "(cached) " >&6
9638else $as_nop
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641int i;
9642_ACEOF
9643if ac_fn_c_try_compile "$LINENO"
9644then :
9645  xorg_cv_cc_flag_unused_command_line_argument=yes
9646else $as_nop
9647  xorg_cv_cc_flag_unused_command_line_argument=no
9648fi
9649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9650fi
9651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9652printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9654	CFLAGS="$xorg_testset_save_CFLAGS"
9655fi
9656
9657found="no"
9658
9659	if test $found = "no" ; then
9660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9662		fi
9663
9664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666		fi
9667
9668		CFLAGS="$CFLAGS -Wsequence-point"
9669
9670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9671printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9672		cacheid=xorg_cv_cc_flag__Wsequence_point
9673		if eval test \${$cacheid+y}
9674then :
9675  printf %s "(cached) " >&6
9676else $as_nop
9677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h.  */
9679int i;
9680int
9681main (void)
9682{
9683
9684  ;
9685  return 0;
9686}
9687_ACEOF
9688if ac_fn_c_try_link "$LINENO"
9689then :
9690  eval $cacheid=yes
9691else $as_nop
9692  eval $cacheid=no
9693fi
9694rm -f core conftest.err conftest.$ac_objext conftest.beam \
9695    conftest$ac_exeext conftest.$ac_ext
9696fi
9697
9698
9699		CFLAGS="$xorg_testset_save_CFLAGS"
9700
9701		eval supported=\$$cacheid
9702		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9703printf "%s\n" "$supported" >&6; }
9704		if test "$supported" = "yes" ; then
9705			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9706			found="yes"
9707		fi
9708	fi
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724xorg_testset_save_CFLAGS="$CFLAGS"
9725
9726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9729printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9730if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9731then :
9732  printf %s "(cached) " >&6
9733else $as_nop
9734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735/* end confdefs.h.  */
9736int i;
9737_ACEOF
9738if ac_fn_c_try_compile "$LINENO"
9739then :
9740  xorg_cv_cc_flag_unknown_warning_option=yes
9741else $as_nop
9742  xorg_cv_cc_flag_unknown_warning_option=no
9743fi
9744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9745fi
9746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9747printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9749	CFLAGS="$xorg_testset_save_CFLAGS"
9750fi
9751
9752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755	fi
9756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9758printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9759if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9760then :
9761  printf %s "(cached) " >&6
9762else $as_nop
9763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766_ACEOF
9767if ac_fn_c_try_compile "$LINENO"
9768then :
9769  xorg_cv_cc_flag_unused_command_line_argument=yes
9770else $as_nop
9771  xorg_cv_cc_flag_unused_command_line_argument=no
9772fi
9773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9774fi
9775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9776printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9778	CFLAGS="$xorg_testset_save_CFLAGS"
9779fi
9780
9781found="no"
9782
9783	if test $found = "no" ; then
9784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786		fi
9787
9788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9790		fi
9791
9792		CFLAGS="$CFLAGS -Wreturn-type"
9793
9794		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9795printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9796		cacheid=xorg_cv_cc_flag__Wreturn_type
9797		if eval test \${$cacheid+y}
9798then :
9799  printf %s "(cached) " >&6
9800else $as_nop
9801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802/* end confdefs.h.  */
9803int i;
9804int
9805main (void)
9806{
9807
9808  ;
9809  return 0;
9810}
9811_ACEOF
9812if ac_fn_c_try_link "$LINENO"
9813then :
9814  eval $cacheid=yes
9815else $as_nop
9816  eval $cacheid=no
9817fi
9818rm -f core conftest.err conftest.$ac_objext conftest.beam \
9819    conftest$ac_exeext conftest.$ac_ext
9820fi
9821
9822
9823		CFLAGS="$xorg_testset_save_CFLAGS"
9824
9825		eval supported=\$$cacheid
9826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9827printf "%s\n" "$supported" >&6; }
9828		if test "$supported" = "yes" ; then
9829			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9830			found="yes"
9831		fi
9832	fi
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848xorg_testset_save_CFLAGS="$CFLAGS"
9849
9850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9851	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9852	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9854if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9855then :
9856  printf %s "(cached) " >&6
9857else $as_nop
9858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h.  */
9860int i;
9861_ACEOF
9862if ac_fn_c_try_compile "$LINENO"
9863then :
9864  xorg_cv_cc_flag_unknown_warning_option=yes
9865else $as_nop
9866  xorg_cv_cc_flag_unknown_warning_option=no
9867fi
9868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9869fi
9870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9871printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9872	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9873	CFLAGS="$xorg_testset_save_CFLAGS"
9874fi
9875
9876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9877	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9878		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879	fi
9880	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9882printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9883if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9884then :
9885  printf %s "(cached) " >&6
9886else $as_nop
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889int i;
9890_ACEOF
9891if ac_fn_c_try_compile "$LINENO"
9892then :
9893  xorg_cv_cc_flag_unused_command_line_argument=yes
9894else $as_nop
9895  xorg_cv_cc_flag_unused_command_line_argument=no
9896fi
9897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9898fi
9899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9900printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9902	CFLAGS="$xorg_testset_save_CFLAGS"
9903fi
9904
9905found="no"
9906
9907	if test $found = "no" ; then
9908		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9910		fi
9911
9912		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9914		fi
9915
9916		CFLAGS="$CFLAGS -Wtrigraphs"
9917
9918		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9919printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9920		cacheid=xorg_cv_cc_flag__Wtrigraphs
9921		if eval test \${$cacheid+y}
9922then :
9923  printf %s "(cached) " >&6
9924else $as_nop
9925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926/* end confdefs.h.  */
9927int i;
9928int
9929main (void)
9930{
9931
9932  ;
9933  return 0;
9934}
9935_ACEOF
9936if ac_fn_c_try_link "$LINENO"
9937then :
9938  eval $cacheid=yes
9939else $as_nop
9940  eval $cacheid=no
9941fi
9942rm -f core conftest.err conftest.$ac_objext conftest.beam \
9943    conftest$ac_exeext conftest.$ac_ext
9944fi
9945
9946
9947		CFLAGS="$xorg_testset_save_CFLAGS"
9948
9949		eval supported=\$$cacheid
9950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9951printf "%s\n" "$supported" >&6; }
9952		if test "$supported" = "yes" ; then
9953			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9954			found="yes"
9955		fi
9956	fi
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972xorg_testset_save_CFLAGS="$CFLAGS"
9973
9974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9978if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9979then :
9980  printf %s "(cached) " >&6
9981else $as_nop
9982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983/* end confdefs.h.  */
9984int i;
9985_ACEOF
9986if ac_fn_c_try_compile "$LINENO"
9987then :
9988  xorg_cv_cc_flag_unknown_warning_option=yes
9989else $as_nop
9990  xorg_cv_cc_flag_unknown_warning_option=no
9991fi
9992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9993fi
9994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9997	CFLAGS="$xorg_testset_save_CFLAGS"
9998fi
9999
10000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003	fi
10004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10007if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10008then :
10009  printf %s "(cached) " >&6
10010else $as_nop
10011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014_ACEOF
10015if ac_fn_c_try_compile "$LINENO"
10016then :
10017  xorg_cv_cc_flag_unused_command_line_argument=yes
10018else $as_nop
10019  xorg_cv_cc_flag_unused_command_line_argument=no
10020fi
10021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10022fi
10023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10026	CFLAGS="$xorg_testset_save_CFLAGS"
10027fi
10028
10029found="no"
10030
10031	if test $found = "no" ; then
10032		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10034		fi
10035
10036		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10038		fi
10039
10040		CFLAGS="$CFLAGS -Warray-bounds"
10041
10042		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10043printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10044		cacheid=xorg_cv_cc_flag__Warray_bounds
10045		if eval test \${$cacheid+y}
10046then :
10047  printf %s "(cached) " >&6
10048else $as_nop
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051int i;
10052int
10053main (void)
10054{
10055
10056  ;
10057  return 0;
10058}
10059_ACEOF
10060if ac_fn_c_try_link "$LINENO"
10061then :
10062  eval $cacheid=yes
10063else $as_nop
10064  eval $cacheid=no
10065fi
10066rm -f core conftest.err conftest.$ac_objext conftest.beam \
10067    conftest$ac_exeext conftest.$ac_ext
10068fi
10069
10070
10071		CFLAGS="$xorg_testset_save_CFLAGS"
10072
10073		eval supported=\$$cacheid
10074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10075printf "%s\n" "$supported" >&6; }
10076		if test "$supported" = "yes" ; then
10077			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10078			found="yes"
10079		fi
10080	fi
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096xorg_testset_save_CFLAGS="$CFLAGS"
10097
10098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10102if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10103then :
10104  printf %s "(cached) " >&6
10105else $as_nop
10106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107/* end confdefs.h.  */
10108int i;
10109_ACEOF
10110if ac_fn_c_try_compile "$LINENO"
10111then :
10112  xorg_cv_cc_flag_unknown_warning_option=yes
10113else $as_nop
10114  xorg_cv_cc_flag_unknown_warning_option=no
10115fi
10116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10117fi
10118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10121	CFLAGS="$xorg_testset_save_CFLAGS"
10122fi
10123
10124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127	fi
10128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10131if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10132then :
10133  printf %s "(cached) " >&6
10134else $as_nop
10135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136/* end confdefs.h.  */
10137int i;
10138_ACEOF
10139if ac_fn_c_try_compile "$LINENO"
10140then :
10141  xorg_cv_cc_flag_unused_command_line_argument=yes
10142else $as_nop
10143  xorg_cv_cc_flag_unused_command_line_argument=no
10144fi
10145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10146fi
10147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10149	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10150	CFLAGS="$xorg_testset_save_CFLAGS"
10151fi
10152
10153found="no"
10154
10155	if test $found = "no" ; then
10156		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10157			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158		fi
10159
10160		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10161			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162		fi
10163
10164		CFLAGS="$CFLAGS -Wwrite-strings"
10165
10166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10167printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10168		cacheid=xorg_cv_cc_flag__Wwrite_strings
10169		if eval test \${$cacheid+y}
10170then :
10171  printf %s "(cached) " >&6
10172else $as_nop
10173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174/* end confdefs.h.  */
10175int i;
10176int
10177main (void)
10178{
10179
10180  ;
10181  return 0;
10182}
10183_ACEOF
10184if ac_fn_c_try_link "$LINENO"
10185then :
10186  eval $cacheid=yes
10187else $as_nop
10188  eval $cacheid=no
10189fi
10190rm -f core conftest.err conftest.$ac_objext conftest.beam \
10191    conftest$ac_exeext conftest.$ac_ext
10192fi
10193
10194
10195		CFLAGS="$xorg_testset_save_CFLAGS"
10196
10197		eval supported=\$$cacheid
10198		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10199printf "%s\n" "$supported" >&6; }
10200		if test "$supported" = "yes" ; then
10201			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10202			found="yes"
10203		fi
10204	fi
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220xorg_testset_save_CFLAGS="$CFLAGS"
10221
10222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10223	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10226if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10227then :
10228  printf %s "(cached) " >&6
10229else $as_nop
10230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h.  */
10232int i;
10233_ACEOF
10234if ac_fn_c_try_compile "$LINENO"
10235then :
10236  xorg_cv_cc_flag_unknown_warning_option=yes
10237else $as_nop
10238  xorg_cv_cc_flag_unknown_warning_option=no
10239fi
10240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10241fi
10242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10244	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10245	CFLAGS="$xorg_testset_save_CFLAGS"
10246fi
10247
10248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10249	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10251	fi
10252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10255if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10256then :
10257  printf %s "(cached) " >&6
10258else $as_nop
10259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h.  */
10261int i;
10262_ACEOF
10263if ac_fn_c_try_compile "$LINENO"
10264then :
10265  xorg_cv_cc_flag_unused_command_line_argument=yes
10266else $as_nop
10267  xorg_cv_cc_flag_unused_command_line_argument=no
10268fi
10269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10270fi
10271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10274	CFLAGS="$xorg_testset_save_CFLAGS"
10275fi
10276
10277found="no"
10278
10279	if test $found = "no" ; then
10280		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10282		fi
10283
10284		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10286		fi
10287
10288		CFLAGS="$CFLAGS -Waddress"
10289
10290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10291printf %s "checking if $CC supports -Waddress... " >&6; }
10292		cacheid=xorg_cv_cc_flag__Waddress
10293		if eval test \${$cacheid+y}
10294then :
10295  printf %s "(cached) " >&6
10296else $as_nop
10297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298/* end confdefs.h.  */
10299int i;
10300int
10301main (void)
10302{
10303
10304  ;
10305  return 0;
10306}
10307_ACEOF
10308if ac_fn_c_try_link "$LINENO"
10309then :
10310  eval $cacheid=yes
10311else $as_nop
10312  eval $cacheid=no
10313fi
10314rm -f core conftest.err conftest.$ac_objext conftest.beam \
10315    conftest$ac_exeext conftest.$ac_ext
10316fi
10317
10318
10319		CFLAGS="$xorg_testset_save_CFLAGS"
10320
10321		eval supported=\$$cacheid
10322		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10323printf "%s\n" "$supported" >&6; }
10324		if test "$supported" = "yes" ; then
10325			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10326			found="yes"
10327		fi
10328	fi
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344xorg_testset_save_CFLAGS="$CFLAGS"
10345
10346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10347	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10350if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10351then :
10352  printf %s "(cached) " >&6
10353else $as_nop
10354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h.  */
10356int i;
10357_ACEOF
10358if ac_fn_c_try_compile "$LINENO"
10359then :
10360  xorg_cv_cc_flag_unknown_warning_option=yes
10361else $as_nop
10362  xorg_cv_cc_flag_unknown_warning_option=no
10363fi
10364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10365fi
10366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10368	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10369	CFLAGS="$xorg_testset_save_CFLAGS"
10370fi
10371
10372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10373	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10375	fi
10376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10379if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10380then :
10381  printf %s "(cached) " >&6
10382else $as_nop
10383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h.  */
10385int i;
10386_ACEOF
10387if ac_fn_c_try_compile "$LINENO"
10388then :
10389  xorg_cv_cc_flag_unused_command_line_argument=yes
10390else $as_nop
10391  xorg_cv_cc_flag_unused_command_line_argument=no
10392fi
10393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10394fi
10395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10397	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10398	CFLAGS="$xorg_testset_save_CFLAGS"
10399fi
10400
10401found="no"
10402
10403	if test $found = "no" ; then
10404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10406		fi
10407
10408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10410		fi
10411
10412		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10413
10414		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10415printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10416		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10417		if eval test \${$cacheid+y}
10418then :
10419  printf %s "(cached) " >&6
10420else $as_nop
10421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h.  */
10423int i;
10424int
10425main (void)
10426{
10427
10428  ;
10429  return 0;
10430}
10431_ACEOF
10432if ac_fn_c_try_link "$LINENO"
10433then :
10434  eval $cacheid=yes
10435else $as_nop
10436  eval $cacheid=no
10437fi
10438rm -f core conftest.err conftest.$ac_objext conftest.beam \
10439    conftest$ac_exeext conftest.$ac_ext
10440fi
10441
10442
10443		CFLAGS="$xorg_testset_save_CFLAGS"
10444
10445		eval supported=\$$cacheid
10446		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10447printf "%s\n" "$supported" >&6; }
10448		if test "$supported" = "yes" ; then
10449			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10450			found="yes"
10451		fi
10452	fi
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468xorg_testset_save_CFLAGS="$CFLAGS"
10469
10470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10471	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10472	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10473printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10474if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10475then :
10476  printf %s "(cached) " >&6
10477else $as_nop
10478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479/* end confdefs.h.  */
10480int i;
10481_ACEOF
10482if ac_fn_c_try_compile "$LINENO"
10483then :
10484  xorg_cv_cc_flag_unknown_warning_option=yes
10485else $as_nop
10486  xorg_cv_cc_flag_unknown_warning_option=no
10487fi
10488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10489fi
10490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10493	CFLAGS="$xorg_testset_save_CFLAGS"
10494fi
10495
10496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499	fi
10500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10503if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10504then :
10505  printf %s "(cached) " >&6
10506else $as_nop
10507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508/* end confdefs.h.  */
10509int i;
10510_ACEOF
10511if ac_fn_c_try_compile "$LINENO"
10512then :
10513  xorg_cv_cc_flag_unused_command_line_argument=yes
10514else $as_nop
10515  xorg_cv_cc_flag_unused_command_line_argument=no
10516fi
10517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10518fi
10519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10522	CFLAGS="$xorg_testset_save_CFLAGS"
10523fi
10524
10525found="no"
10526
10527	if test $found = "no" ; then
10528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530		fi
10531
10532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10534		fi
10535
10536		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10537
10538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10539printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10540		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10541		if eval test \${$cacheid+y}
10542then :
10543  printf %s "(cached) " >&6
10544else $as_nop
10545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546/* end confdefs.h.  */
10547int i;
10548int
10549main (void)
10550{
10551
10552  ;
10553  return 0;
10554}
10555_ACEOF
10556if ac_fn_c_try_link "$LINENO"
10557then :
10558  eval $cacheid=yes
10559else $as_nop
10560  eval $cacheid=no
10561fi
10562rm -f core conftest.err conftest.$ac_objext conftest.beam \
10563    conftest$ac_exeext conftest.$ac_ext
10564fi
10565
10566
10567		CFLAGS="$xorg_testset_save_CFLAGS"
10568
10569		eval supported=\$$cacheid
10570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10571printf "%s\n" "$supported" >&6; }
10572		if test "$supported" = "yes" ; then
10573			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10574			found="yes"
10575		fi
10576	fi
10577
10578
10579fi
10580
10581
10582
10583
10584
10585
10586
10587		CWARNFLAGS="$BASE_CFLAGS"
10588		if  test "x$GCC" = xyes ; then
10589		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10590		fi
10591
10592
10593
10594
10595
10596
10597
10598
10599# Check whether --enable-strict-compilation was given.
10600if test ${enable_strict_compilation+y}
10601then :
10602  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10603else $as_nop
10604  STRICT_COMPILE=no
10605fi
10606
10607
10608
10609
10610
10611
10612STRICT_CFLAGS=""
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626xorg_testset_save_CFLAGS="$CFLAGS"
10627
10628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10629	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10631printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10632if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10633then :
10634  printf %s "(cached) " >&6
10635else $as_nop
10636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637/* end confdefs.h.  */
10638int i;
10639_ACEOF
10640if ac_fn_c_try_compile "$LINENO"
10641then :
10642  xorg_cv_cc_flag_unknown_warning_option=yes
10643else $as_nop
10644  xorg_cv_cc_flag_unknown_warning_option=no
10645fi
10646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10647fi
10648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10649printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10650	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10651	CFLAGS="$xorg_testset_save_CFLAGS"
10652fi
10653
10654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10655	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10656		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10657	fi
10658	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10659	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10660printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10661if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10662then :
10663  printf %s "(cached) " >&6
10664else $as_nop
10665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h.  */
10667int i;
10668_ACEOF
10669if ac_fn_c_try_compile "$LINENO"
10670then :
10671  xorg_cv_cc_flag_unused_command_line_argument=yes
10672else $as_nop
10673  xorg_cv_cc_flag_unused_command_line_argument=no
10674fi
10675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10676fi
10677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10678printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10679	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10680	CFLAGS="$xorg_testset_save_CFLAGS"
10681fi
10682
10683found="no"
10684
10685	if test $found = "no" ; then
10686		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10687			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10688		fi
10689
10690		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10691			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10692		fi
10693
10694		CFLAGS="$CFLAGS -pedantic"
10695
10696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10697printf %s "checking if $CC supports -pedantic... " >&6; }
10698		cacheid=xorg_cv_cc_flag__pedantic
10699		if eval test \${$cacheid+y}
10700then :
10701  printf %s "(cached) " >&6
10702else $as_nop
10703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704/* end confdefs.h.  */
10705int i;
10706int
10707main (void)
10708{
10709
10710  ;
10711  return 0;
10712}
10713_ACEOF
10714if ac_fn_c_try_link "$LINENO"
10715then :
10716  eval $cacheid=yes
10717else $as_nop
10718  eval $cacheid=no
10719fi
10720rm -f core conftest.err conftest.$ac_objext conftest.beam \
10721    conftest$ac_exeext conftest.$ac_ext
10722fi
10723
10724
10725		CFLAGS="$xorg_testset_save_CFLAGS"
10726
10727		eval supported=\$$cacheid
10728		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10729printf "%s\n" "$supported" >&6; }
10730		if test "$supported" = "yes" ; then
10731			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10732			found="yes"
10733		fi
10734	fi
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750xorg_testset_save_CFLAGS="$CFLAGS"
10751
10752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10754	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10755printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10756if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10757then :
10758  printf %s "(cached) " >&6
10759else $as_nop
10760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761/* end confdefs.h.  */
10762int i;
10763_ACEOF
10764if ac_fn_c_try_compile "$LINENO"
10765then :
10766  xorg_cv_cc_flag_unknown_warning_option=yes
10767else $as_nop
10768  xorg_cv_cc_flag_unknown_warning_option=no
10769fi
10770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10771fi
10772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10775	CFLAGS="$xorg_testset_save_CFLAGS"
10776fi
10777
10778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10781	fi
10782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10785if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10786then :
10787  printf %s "(cached) " >&6
10788else $as_nop
10789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h.  */
10791int i;
10792_ACEOF
10793if ac_fn_c_try_compile "$LINENO"
10794then :
10795  xorg_cv_cc_flag_unused_command_line_argument=yes
10796else $as_nop
10797  xorg_cv_cc_flag_unused_command_line_argument=no
10798fi
10799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10800fi
10801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10802printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10804	CFLAGS="$xorg_testset_save_CFLAGS"
10805fi
10806
10807found="no"
10808
10809	if test $found = "no" ; then
10810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10812		fi
10813
10814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10816		fi
10817
10818		CFLAGS="$CFLAGS -Werror"
10819
10820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10821printf %s "checking if $CC supports -Werror... " >&6; }
10822		cacheid=xorg_cv_cc_flag__Werror
10823		if eval test \${$cacheid+y}
10824then :
10825  printf %s "(cached) " >&6
10826else $as_nop
10827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828/* end confdefs.h.  */
10829int i;
10830int
10831main (void)
10832{
10833
10834  ;
10835  return 0;
10836}
10837_ACEOF
10838if ac_fn_c_try_link "$LINENO"
10839then :
10840  eval $cacheid=yes
10841else $as_nop
10842  eval $cacheid=no
10843fi
10844rm -f core conftest.err conftest.$ac_objext conftest.beam \
10845    conftest$ac_exeext conftest.$ac_ext
10846fi
10847
10848
10849		CFLAGS="$xorg_testset_save_CFLAGS"
10850
10851		eval supported=\$$cacheid
10852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10853printf "%s\n" "$supported" >&6; }
10854		if test "$supported" = "yes" ; then
10855			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10856			found="yes"
10857		fi
10858	fi
10859
10860	if test $found = "no" ; then
10861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10863		fi
10864
10865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10867		fi
10868
10869		CFLAGS="$CFLAGS -errwarn"
10870
10871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10872printf %s "checking if $CC supports -errwarn... " >&6; }
10873		cacheid=xorg_cv_cc_flag__errwarn
10874		if eval test \${$cacheid+y}
10875then :
10876  printf %s "(cached) " >&6
10877else $as_nop
10878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879/* end confdefs.h.  */
10880int i;
10881int
10882main (void)
10883{
10884
10885  ;
10886  return 0;
10887}
10888_ACEOF
10889if ac_fn_c_try_link "$LINENO"
10890then :
10891  eval $cacheid=yes
10892else $as_nop
10893  eval $cacheid=no
10894fi
10895rm -f core conftest.err conftest.$ac_objext conftest.beam \
10896    conftest$ac_exeext conftest.$ac_ext
10897fi
10898
10899
10900		CFLAGS="$xorg_testset_save_CFLAGS"
10901
10902		eval supported=\$$cacheid
10903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10904printf "%s\n" "$supported" >&6; }
10905		if test "$supported" = "yes" ; then
10906			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10907			found="yes"
10908		fi
10909	fi
10910
10911
10912
10913# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10914# activate it with -Werror, so we add it here explicitly.
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928xorg_testset_save_CFLAGS="$CFLAGS"
10929
10930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10933printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10934if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10935then :
10936  printf %s "(cached) " >&6
10937else $as_nop
10938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940int i;
10941_ACEOF
10942if ac_fn_c_try_compile "$LINENO"
10943then :
10944  xorg_cv_cc_flag_unknown_warning_option=yes
10945else $as_nop
10946  xorg_cv_cc_flag_unknown_warning_option=no
10947fi
10948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10949fi
10950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10951printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10952	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10953	CFLAGS="$xorg_testset_save_CFLAGS"
10954fi
10955
10956if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10957	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10958		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10959	fi
10960	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10962printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10963if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10964then :
10965  printf %s "(cached) " >&6
10966else $as_nop
10967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969int i;
10970_ACEOF
10971if ac_fn_c_try_compile "$LINENO"
10972then :
10973  xorg_cv_cc_flag_unused_command_line_argument=yes
10974else $as_nop
10975  xorg_cv_cc_flag_unused_command_line_argument=no
10976fi
10977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10978fi
10979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10980printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10982	CFLAGS="$xorg_testset_save_CFLAGS"
10983fi
10984
10985found="no"
10986
10987	if test $found = "no" ; then
10988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10990		fi
10991
10992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10994		fi
10995
10996		CFLAGS="$CFLAGS -Werror=attributes"
10997
10998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10999printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11000		cacheid=xorg_cv_cc_flag__Werror_attributes
11001		if eval test \${$cacheid+y}
11002then :
11003  printf %s "(cached) " >&6
11004else $as_nop
11005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h.  */
11007int i;
11008int
11009main (void)
11010{
11011
11012  ;
11013  return 0;
11014}
11015_ACEOF
11016if ac_fn_c_try_link "$LINENO"
11017then :
11018  eval $cacheid=yes
11019else $as_nop
11020  eval $cacheid=no
11021fi
11022rm -f core conftest.err conftest.$ac_objext conftest.beam \
11023    conftest$ac_exeext conftest.$ac_ext
11024fi
11025
11026
11027		CFLAGS="$xorg_testset_save_CFLAGS"
11028
11029		eval supported=\$$cacheid
11030		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11031printf "%s\n" "$supported" >&6; }
11032		if test "$supported" = "yes" ; then
11033			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11034			found="yes"
11035		fi
11036	fi
11037
11038
11039
11040if test "x$STRICT_COMPILE" = "xyes"; then
11041    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11042    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11043fi
11044
11045
11046
11047
11048
11049
11050
11051
11052cat >>confdefs.h <<_ACEOF
11053#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11054_ACEOF
11055
11056	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11057	if test "x$PVM" = "x"; then
11058		PVM="0"
11059	fi
11060
11061printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11062
11063	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11064	if test "x$PVP" = "x"; then
11065		PVP="0"
11066	fi
11067
11068printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11069
11070
11071
11072CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11073mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11074|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11075touch \$(top_srcdir)/ChangeLog; \
11076echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11077
11078
11079
11080
11081macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11082INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11083mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11084|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11085touch \$(top_srcdir)/INSTALL; \
11086echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11087
11088
11089
11090
11091
11092
11093case $host_os in
11094    solaris*)
11095        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11096        # check for a man page file found in later versions that use
11097        # traditional section numbers instead
11098        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11099printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11100if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11101then :
11102  printf %s "(cached) " >&6
11103else $as_nop
11104  test "$cross_compiling" = yes &&
11105  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11106if test -r "/usr/share/man/man7/attributes.7"; then
11107  ac_cv_file__usr_share_man_man7_attributes_7=yes
11108else
11109  ac_cv_file__usr_share_man_man7_attributes_7=no
11110fi
11111fi
11112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11113printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11114if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11115then :
11116  SYSV_MAN_SECTIONS=false
11117else $as_nop
11118  SYSV_MAN_SECTIONS=true
11119fi
11120
11121        ;;
11122    *) SYSV_MAN_SECTIONS=false ;;
11123esac
11124
11125if test x$APP_MAN_SUFFIX = x    ; then
11126    APP_MAN_SUFFIX=1
11127fi
11128if test x$APP_MAN_DIR = x    ; then
11129    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11130fi
11131
11132if test x$LIB_MAN_SUFFIX = x    ; then
11133    LIB_MAN_SUFFIX=3
11134fi
11135if test x$LIB_MAN_DIR = x    ; then
11136    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11137fi
11138
11139if test x$FILE_MAN_SUFFIX = x    ; then
11140    case $SYSV_MAN_SECTIONS in
11141	true)				FILE_MAN_SUFFIX=4  ;;
11142	*)				FILE_MAN_SUFFIX=5  ;;
11143    esac
11144fi
11145if test x$FILE_MAN_DIR = x    ; then
11146    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11147fi
11148
11149if test x$MISC_MAN_SUFFIX = x    ; then
11150    case $SYSV_MAN_SECTIONS in
11151	true)				MISC_MAN_SUFFIX=5  ;;
11152	*)				MISC_MAN_SUFFIX=7  ;;
11153    esac
11154fi
11155if test x$MISC_MAN_DIR = x    ; then
11156    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11157fi
11158
11159if test x$DRIVER_MAN_SUFFIX = x    ; then
11160    case $SYSV_MAN_SECTIONS in
11161	true)				DRIVER_MAN_SUFFIX=7  ;;
11162	*)				DRIVER_MAN_SUFFIX=4  ;;
11163    esac
11164fi
11165if test x$DRIVER_MAN_DIR = x    ; then
11166    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11167fi
11168
11169if test x$ADMIN_MAN_SUFFIX = x    ; then
11170    case $SYSV_MAN_SECTIONS in
11171	true)				ADMIN_MAN_SUFFIX=1m ;;
11172	*)				ADMIN_MAN_SUFFIX=8  ;;
11173    esac
11174fi
11175if test x$ADMIN_MAN_DIR = x    ; then
11176    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11177fi
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193XORG_MAN_PAGE="X Version 11"
11194
11195MAN_SUBSTS="\
11196	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11197	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11198	-e 's|__xservername__|Xorg|g' \
11199	-e 's|__xconfigfile__|xorg.conf|g' \
11200	-e 's|__projectroot__|\$(prefix)|g' \
11201	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11202	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11203	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11204	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11205	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11206	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11207	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11208
11209
11210
11211# Check whether --enable-silent-rules was given.
11212if test ${enable_silent_rules+y}
11213then :
11214  enableval=$enable_silent_rules;
11215fi
11216
11217case $enable_silent_rules in # (((
11218  yes) AM_DEFAULT_VERBOSITY=0;;
11219   no) AM_DEFAULT_VERBOSITY=1;;
11220    *) AM_DEFAULT_VERBOSITY=0;;
11221esac
11222am_make=${MAKE-make}
11223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11224printf %s "checking whether $am_make supports nested variables... " >&6; }
11225if test ${am_cv_make_support_nested_variables+y}
11226then :
11227  printf %s "(cached) " >&6
11228else $as_nop
11229  if printf "%s\n" 'TRUE=$(BAR$(V))
11230BAR0=false
11231BAR1=true
11232V=1
11233am__doit:
11234	@$(TRUE)
11235.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11236  am_cv_make_support_nested_variables=yes
11237else
11238  am_cv_make_support_nested_variables=no
11239fi
11240fi
11241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11242printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11243if test $am_cv_make_support_nested_variables = yes; then
11244    AM_V='$(V)'
11245  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11246else
11247  AM_V=$AM_DEFAULT_VERBOSITY
11248  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11249fi
11250AM_BACKSLASH='\'
11251
11252
11253
11254
11255# Initialize libtool
11256# Check whether --enable-static was given.
11257if test ${enable_static+y}
11258then :
11259  enableval=$enable_static; p=${PACKAGE-default}
11260    case $enableval in
11261    yes) enable_static=yes ;;
11262    no) enable_static=no ;;
11263    *)
11264     enable_static=no
11265      # Look at the argument we got.  We use all the common list separators.
11266      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11267      for pkg in $enableval; do
11268	IFS=$lt_save_ifs
11269	if test "X$pkg" = "X$p"; then
11270	  enable_static=yes
11271	fi
11272      done
11273      IFS=$lt_save_ifs
11274      ;;
11275    esac
11276else $as_nop
11277  enable_static=no
11278fi
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288case `pwd` in
11289  *\ * | *\	*)
11290    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11291printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11292esac
11293
11294
11295
11296macro_version='2.4.7'
11297macro_revision='2.4.7'
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312ltmain=$ac_aux_dir/ltmain.sh
11313
11314# Backslashify metacharacters that are still active within
11315# double-quoted strings.
11316sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11317
11318# Same as above, but do not quote variable references.
11319double_quote_subst='s/\(["`\\]\)/\\\1/g'
11320
11321# Sed substitution to delay expansion of an escaped shell variable in a
11322# double_quote_subst'ed string.
11323delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11324
11325# Sed substitution to delay expansion of an escaped single quote.
11326delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11327
11328# Sed substitution to avoid accidental globbing in evaled expressions
11329no_glob_subst='s/\*/\\\*/g'
11330
11331ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11332ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11333ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11334
11335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11336printf %s "checking how to print strings... " >&6; }
11337# Test print first, because it will be a builtin if present.
11338if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11339   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11340  ECHO='print -r --'
11341elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11342  ECHO='printf %s\n'
11343else
11344  # Use this function as a fallback that always works.
11345  func_fallback_echo ()
11346  {
11347    eval 'cat <<_LTECHO_EOF
11348$1
11349_LTECHO_EOF'
11350  }
11351  ECHO='func_fallback_echo'
11352fi
11353
11354# func_echo_all arg...
11355# Invoke $ECHO with all args, space-separated.
11356func_echo_all ()
11357{
11358    $ECHO ""
11359}
11360
11361case $ECHO in
11362  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11363printf "%s\n" "printf" >&6; } ;;
11364  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11365printf "%s\n" "print -r" >&6; } ;;
11366  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11367printf "%s\n" "cat" >&6; } ;;
11368esac
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11384printf %s "checking for a sed that does not truncate output... " >&6; }
11385if test ${ac_cv_path_SED+y}
11386then :
11387  printf %s "(cached) " >&6
11388else $as_nop
11389            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11390     for ac_i in 1 2 3 4 5 6 7; do
11391       ac_script="$ac_script$as_nl$ac_script"
11392     done
11393     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11394     { ac_script=; unset ac_script;}
11395     if test -z "$SED"; then
11396  ac_path_SED_found=false
11397  # Loop through the user's path and test for each of PROGNAME-LIST
11398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in $PATH
11400do
11401  IFS=$as_save_IFS
11402  case $as_dir in #(((
11403    '') as_dir=./ ;;
11404    */) ;;
11405    *) as_dir=$as_dir/ ;;
11406  esac
11407    for ac_prog in sed gsed
11408   do
11409    for ac_exec_ext in '' $ac_executable_extensions; do
11410      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11411      as_fn_executable_p "$ac_path_SED" || continue
11412# Check for GNU ac_path_SED and select it if it is found.
11413  # Check for GNU $ac_path_SED
11414case `"$ac_path_SED" --version 2>&1` in
11415*GNU*)
11416  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11417*)
11418  ac_count=0
11419  printf %s 0123456789 >"conftest.in"
11420  while :
11421  do
11422    cat "conftest.in" "conftest.in" >"conftest.tmp"
11423    mv "conftest.tmp" "conftest.in"
11424    cp "conftest.in" "conftest.nl"
11425    printf "%s\n" '' >> "conftest.nl"
11426    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11427    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11428    as_fn_arith $ac_count + 1 && ac_count=$as_val
11429    if test $ac_count -gt ${ac_path_SED_max-0}; then
11430      # Best one so far, save it but keep looking for a better one
11431      ac_cv_path_SED="$ac_path_SED"
11432      ac_path_SED_max=$ac_count
11433    fi
11434    # 10*(2^10) chars as input seems more than enough
11435    test $ac_count -gt 10 && break
11436  done
11437  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11438esac
11439
11440      $ac_path_SED_found && break 3
11441    done
11442  done
11443  done
11444IFS=$as_save_IFS
11445  if test -z "$ac_cv_path_SED"; then
11446    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11447  fi
11448else
11449  ac_cv_path_SED=$SED
11450fi
11451
11452fi
11453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11454printf "%s\n" "$ac_cv_path_SED" >&6; }
11455 SED="$ac_cv_path_SED"
11456  rm -f conftest.sed
11457
11458test -z "$SED" && SED=sed
11459Xsed="$SED -e 1s/^X//"
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11472printf %s "checking for grep that handles long lines and -e... " >&6; }
11473if test ${ac_cv_path_GREP+y}
11474then :
11475  printf %s "(cached) " >&6
11476else $as_nop
11477  if test -z "$GREP"; then
11478  ac_path_GREP_found=false
11479  # Loop through the user's path and test for each of PROGNAME-LIST
11480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11482do
11483  IFS=$as_save_IFS
11484  case $as_dir in #(((
11485    '') as_dir=./ ;;
11486    */) ;;
11487    *) as_dir=$as_dir/ ;;
11488  esac
11489    for ac_prog in grep ggrep
11490   do
11491    for ac_exec_ext in '' $ac_executable_extensions; do
11492      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11493      as_fn_executable_p "$ac_path_GREP" || continue
11494# Check for GNU ac_path_GREP and select it if it is found.
11495  # Check for GNU $ac_path_GREP
11496case `"$ac_path_GREP" --version 2>&1` in
11497*GNU*)
11498  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11499*)
11500  ac_count=0
11501  printf %s 0123456789 >"conftest.in"
11502  while :
11503  do
11504    cat "conftest.in" "conftest.in" >"conftest.tmp"
11505    mv "conftest.tmp" "conftest.in"
11506    cp "conftest.in" "conftest.nl"
11507    printf "%s\n" 'GREP' >> "conftest.nl"
11508    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11509    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11510    as_fn_arith $ac_count + 1 && ac_count=$as_val
11511    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11512      # Best one so far, save it but keep looking for a better one
11513      ac_cv_path_GREP="$ac_path_GREP"
11514      ac_path_GREP_max=$ac_count
11515    fi
11516    # 10*(2^10) chars as input seems more than enough
11517    test $ac_count -gt 10 && break
11518  done
11519  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11520esac
11521
11522      $ac_path_GREP_found && break 3
11523    done
11524  done
11525  done
11526IFS=$as_save_IFS
11527  if test -z "$ac_cv_path_GREP"; then
11528    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11529  fi
11530else
11531  ac_cv_path_GREP=$GREP
11532fi
11533
11534fi
11535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11536printf "%s\n" "$ac_cv_path_GREP" >&6; }
11537 GREP="$ac_cv_path_GREP"
11538
11539
11540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11541printf %s "checking for egrep... " >&6; }
11542if test ${ac_cv_path_EGREP+y}
11543then :
11544  printf %s "(cached) " >&6
11545else $as_nop
11546  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11547   then ac_cv_path_EGREP="$GREP -E"
11548   else
11549     if test -z "$EGREP"; then
11550  ac_path_EGREP_found=false
11551  # Loop through the user's path and test for each of PROGNAME-LIST
11552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11554do
11555  IFS=$as_save_IFS
11556  case $as_dir in #(((
11557    '') as_dir=./ ;;
11558    */) ;;
11559    *) as_dir=$as_dir/ ;;
11560  esac
11561    for ac_prog in egrep
11562   do
11563    for ac_exec_ext in '' $ac_executable_extensions; do
11564      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11565      as_fn_executable_p "$ac_path_EGREP" || continue
11566# Check for GNU ac_path_EGREP and select it if it is found.
11567  # Check for GNU $ac_path_EGREP
11568case `"$ac_path_EGREP" --version 2>&1` in
11569*GNU*)
11570  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11571*)
11572  ac_count=0
11573  printf %s 0123456789 >"conftest.in"
11574  while :
11575  do
11576    cat "conftest.in" "conftest.in" >"conftest.tmp"
11577    mv "conftest.tmp" "conftest.in"
11578    cp "conftest.in" "conftest.nl"
11579    printf "%s\n" 'EGREP' >> "conftest.nl"
11580    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11581    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11582    as_fn_arith $ac_count + 1 && ac_count=$as_val
11583    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11584      # Best one so far, save it but keep looking for a better one
11585      ac_cv_path_EGREP="$ac_path_EGREP"
11586      ac_path_EGREP_max=$ac_count
11587    fi
11588    # 10*(2^10) chars as input seems more than enough
11589    test $ac_count -gt 10 && break
11590  done
11591  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11592esac
11593
11594      $ac_path_EGREP_found && break 3
11595    done
11596  done
11597  done
11598IFS=$as_save_IFS
11599  if test -z "$ac_cv_path_EGREP"; then
11600    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11601  fi
11602else
11603  ac_cv_path_EGREP=$EGREP
11604fi
11605
11606   fi
11607fi
11608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11609printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11610 EGREP="$ac_cv_path_EGREP"
11611
11612
11613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11614printf %s "checking for fgrep... " >&6; }
11615if test ${ac_cv_path_FGREP+y}
11616then :
11617  printf %s "(cached) " >&6
11618else $as_nop
11619  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11620   then ac_cv_path_FGREP="$GREP -F"
11621   else
11622     if test -z "$FGREP"; then
11623  ac_path_FGREP_found=false
11624  # Loop through the user's path and test for each of PROGNAME-LIST
11625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11627do
11628  IFS=$as_save_IFS
11629  case $as_dir in #(((
11630    '') as_dir=./ ;;
11631    */) ;;
11632    *) as_dir=$as_dir/ ;;
11633  esac
11634    for ac_prog in fgrep
11635   do
11636    for ac_exec_ext in '' $ac_executable_extensions; do
11637      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11638      as_fn_executable_p "$ac_path_FGREP" || continue
11639# Check for GNU ac_path_FGREP and select it if it is found.
11640  # Check for GNU $ac_path_FGREP
11641case `"$ac_path_FGREP" --version 2>&1` in
11642*GNU*)
11643  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11644*)
11645  ac_count=0
11646  printf %s 0123456789 >"conftest.in"
11647  while :
11648  do
11649    cat "conftest.in" "conftest.in" >"conftest.tmp"
11650    mv "conftest.tmp" "conftest.in"
11651    cp "conftest.in" "conftest.nl"
11652    printf "%s\n" 'FGREP' >> "conftest.nl"
11653    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11654    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11655    as_fn_arith $ac_count + 1 && ac_count=$as_val
11656    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11657      # Best one so far, save it but keep looking for a better one
11658      ac_cv_path_FGREP="$ac_path_FGREP"
11659      ac_path_FGREP_max=$ac_count
11660    fi
11661    # 10*(2^10) chars as input seems more than enough
11662    test $ac_count -gt 10 && break
11663  done
11664  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11665esac
11666
11667      $ac_path_FGREP_found && break 3
11668    done
11669  done
11670  done
11671IFS=$as_save_IFS
11672  if test -z "$ac_cv_path_FGREP"; then
11673    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11674  fi
11675else
11676  ac_cv_path_FGREP=$FGREP
11677fi
11678
11679   fi
11680fi
11681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11682printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11683 FGREP="$ac_cv_path_FGREP"
11684
11685
11686test -z "$GREP" && GREP=grep
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706# Check whether --with-gnu-ld was given.
11707if test ${with_gnu_ld+y}
11708then :
11709  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11710else $as_nop
11711  with_gnu_ld=no
11712fi
11713
11714ac_prog=ld
11715if test yes = "$GCC"; then
11716  # Check if gcc -print-prog-name=ld gives a path.
11717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11718printf %s "checking for ld used by $CC... " >&6; }
11719  case $host in
11720  *-*-mingw*)
11721    # gcc leaves a trailing carriage return, which upsets mingw
11722    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11723  *)
11724    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11725  esac
11726  case $ac_prog in
11727    # Accept absolute paths.
11728    [\\/]* | ?:[\\/]*)
11729      re_direlt='/[^/][^/]*/\.\./'
11730      # Canonicalize the pathname of ld
11731      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11732      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11733	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11734      done
11735      test -z "$LD" && LD=$ac_prog
11736      ;;
11737  "")
11738    # If it fails, then pretend we aren't using GCC.
11739    ac_prog=ld
11740    ;;
11741  *)
11742    # If it is relative, then search for the first ld in PATH.
11743    with_gnu_ld=unknown
11744    ;;
11745  esac
11746elif test yes = "$with_gnu_ld"; then
11747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11748printf %s "checking for GNU ld... " >&6; }
11749else
11750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11751printf %s "checking for non-GNU ld... " >&6; }
11752fi
11753if test ${lt_cv_path_LD+y}
11754then :
11755  printf %s "(cached) " >&6
11756else $as_nop
11757  if test -z "$LD"; then
11758  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11759  for ac_dir in $PATH; do
11760    IFS=$lt_save_ifs
11761    test -z "$ac_dir" && ac_dir=.
11762    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11763      lt_cv_path_LD=$ac_dir/$ac_prog
11764      # Check to see if the program is GNU ld.  I'd rather use --version,
11765      # but apparently some variants of GNU ld only accept -v.
11766      # Break only if it was the GNU/non-GNU ld that we prefer.
11767      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11768      *GNU* | *'with BFD'*)
11769	test no != "$with_gnu_ld" && break
11770	;;
11771      *)
11772	test yes != "$with_gnu_ld" && break
11773	;;
11774      esac
11775    fi
11776  done
11777  IFS=$lt_save_ifs
11778else
11779  lt_cv_path_LD=$LD # Let the user override the test with a path.
11780fi
11781fi
11782
11783LD=$lt_cv_path_LD
11784if test -n "$LD"; then
11785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11786printf "%s\n" "$LD" >&6; }
11787else
11788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789printf "%s\n" "no" >&6; }
11790fi
11791test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11793printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11794if test ${lt_cv_prog_gnu_ld+y}
11795then :
11796  printf %s "(cached) " >&6
11797else $as_nop
11798  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11799case `$LD -v 2>&1 </dev/null` in
11800*GNU* | *'with BFD'*)
11801  lt_cv_prog_gnu_ld=yes
11802  ;;
11803*)
11804  lt_cv_prog_gnu_ld=no
11805  ;;
11806esac
11807fi
11808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11809printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11810with_gnu_ld=$lt_cv_prog_gnu_ld
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11821printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11822if test ${lt_cv_path_NM+y}
11823then :
11824  printf %s "(cached) " >&6
11825else $as_nop
11826  if test -n "$NM"; then
11827  # Let the user override the test.
11828  lt_cv_path_NM=$NM
11829else
11830  lt_nm_to_check=${ac_tool_prefix}nm
11831  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11832    lt_nm_to_check="$lt_nm_to_check nm"
11833  fi
11834  for lt_tmp_nm in $lt_nm_to_check; do
11835    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11836    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11837      IFS=$lt_save_ifs
11838      test -z "$ac_dir" && ac_dir=.
11839      tmp_nm=$ac_dir/$lt_tmp_nm
11840      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11841	# Check to see if the nm accepts a BSD-compat flag.
11842	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11843	#   nm: unknown option "B" ignored
11844	# Tru64's nm complains that /dev/null is an invalid object file
11845	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11846	case $build_os in
11847	mingw*) lt_bad_file=conftest.nm/nofile ;;
11848	*) lt_bad_file=/dev/null ;;
11849	esac
11850	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11851	*$lt_bad_file* | *'Invalid file or object type'*)
11852	  lt_cv_path_NM="$tmp_nm -B"
11853	  break 2
11854	  ;;
11855	*)
11856	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11857	  */dev/null*)
11858	    lt_cv_path_NM="$tmp_nm -p"
11859	    break 2
11860	    ;;
11861	  *)
11862	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11863	    continue # so that we can try to find one that supports BSD flags
11864	    ;;
11865	  esac
11866	  ;;
11867	esac
11868      fi
11869    done
11870    IFS=$lt_save_ifs
11871  done
11872  : ${lt_cv_path_NM=no}
11873fi
11874fi
11875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11876printf "%s\n" "$lt_cv_path_NM" >&6; }
11877if test no != "$lt_cv_path_NM"; then
11878  NM=$lt_cv_path_NM
11879else
11880  # Didn't find any BSD compatible name lister, look for dumpbin.
11881  if test -n "$DUMPBIN"; then :
11882    # Let the user override the test.
11883  else
11884    if test -n "$ac_tool_prefix"; then
11885  for ac_prog in dumpbin "link -dump"
11886  do
11887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890printf %s "checking for $ac_word... " >&6; }
11891if test ${ac_cv_prog_DUMPBIN+y}
11892then :
11893  printf %s "(cached) " >&6
11894else $as_nop
11895  if test -n "$DUMPBIN"; then
11896  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11897else
11898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $PATH
11900do
11901  IFS=$as_save_IFS
11902  case $as_dir in #(((
11903    '') as_dir=./ ;;
11904    */) ;;
11905    *) as_dir=$as_dir/ ;;
11906  esac
11907    for ac_exec_ext in '' $ac_executable_extensions; do
11908  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11909    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11910    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11911    break 2
11912  fi
11913done
11914  done
11915IFS=$as_save_IFS
11916
11917fi
11918fi
11919DUMPBIN=$ac_cv_prog_DUMPBIN
11920if test -n "$DUMPBIN"; then
11921  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11922printf "%s\n" "$DUMPBIN" >&6; }
11923else
11924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925printf "%s\n" "no" >&6; }
11926fi
11927
11928
11929    test -n "$DUMPBIN" && break
11930  done
11931fi
11932if test -z "$DUMPBIN"; then
11933  ac_ct_DUMPBIN=$DUMPBIN
11934  for ac_prog in dumpbin "link -dump"
11935do
11936  # Extract the first word of "$ac_prog", so it can be a program name with args.
11937set dummy $ac_prog; ac_word=$2
11938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939printf %s "checking for $ac_word... " >&6; }
11940if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11941then :
11942  printf %s "(cached) " >&6
11943else $as_nop
11944  if test -n "$ac_ct_DUMPBIN"; then
11945  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11946else
11947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948for as_dir in $PATH
11949do
11950  IFS=$as_save_IFS
11951  case $as_dir in #(((
11952    '') as_dir=./ ;;
11953    */) ;;
11954    *) as_dir=$as_dir/ ;;
11955  esac
11956    for ac_exec_ext in '' $ac_executable_extensions; do
11957  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11958    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11959    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11960    break 2
11961  fi
11962done
11963  done
11964IFS=$as_save_IFS
11965
11966fi
11967fi
11968ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11969if test -n "$ac_ct_DUMPBIN"; then
11970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11971printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11972else
11973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974printf "%s\n" "no" >&6; }
11975fi
11976
11977
11978  test -n "$ac_ct_DUMPBIN" && break
11979done
11980
11981  if test "x$ac_ct_DUMPBIN" = x; then
11982    DUMPBIN=":"
11983  else
11984    case $cross_compiling:$ac_tool_warned in
11985yes:)
11986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11987printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11988ac_tool_warned=yes ;;
11989esac
11990    DUMPBIN=$ac_ct_DUMPBIN
11991  fi
11992fi
11993
11994    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11995    *COFF*)
11996      DUMPBIN="$DUMPBIN -symbols -headers"
11997      ;;
11998    *)
11999      DUMPBIN=:
12000      ;;
12001    esac
12002  fi
12003
12004  if test : != "$DUMPBIN"; then
12005    NM=$DUMPBIN
12006  fi
12007fi
12008test -z "$NM" && NM=nm
12009
12010
12011
12012
12013
12014
12015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12016printf %s "checking the name lister ($NM) interface... " >&6; }
12017if test ${lt_cv_nm_interface+y}
12018then :
12019  printf %s "(cached) " >&6
12020else $as_nop
12021  lt_cv_nm_interface="BSD nm"
12022  echo "int some_variable = 0;" > conftest.$ac_ext
12023  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12024  (eval "$ac_compile" 2>conftest.err)
12025  cat conftest.err >&5
12026  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12027  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12028  cat conftest.err >&5
12029  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12030  cat conftest.out >&5
12031  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12032    lt_cv_nm_interface="MS dumpbin"
12033  fi
12034  rm -f conftest*
12035fi
12036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12037printf "%s\n" "$lt_cv_nm_interface" >&6; }
12038
12039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12040printf %s "checking whether ln -s works... " >&6; }
12041LN_S=$as_ln_s
12042if test "$LN_S" = "ln -s"; then
12043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12044printf "%s\n" "yes" >&6; }
12045else
12046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12047printf "%s\n" "no, using $LN_S" >&6; }
12048fi
12049
12050# find the maximum length of command line arguments
12051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12052printf %s "checking the maximum length of command line arguments... " >&6; }
12053if test ${lt_cv_sys_max_cmd_len+y}
12054then :
12055  printf %s "(cached) " >&6
12056else $as_nop
12057    i=0
12058  teststring=ABCD
12059
12060  case $build_os in
12061  msdosdjgpp*)
12062    # On DJGPP, this test can blow up pretty badly due to problems in libc
12063    # (any single argument exceeding 2000 bytes causes a buffer overrun
12064    # during glob expansion).  Even if it were fixed, the result of this
12065    # check would be larger than it should be.
12066    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12067    ;;
12068
12069  gnu*)
12070    # Under GNU Hurd, this test is not required because there is
12071    # no limit to the length of command line arguments.
12072    # Libtool will interpret -1 as no limit whatsoever
12073    lt_cv_sys_max_cmd_len=-1;
12074    ;;
12075
12076  cygwin* | mingw* | cegcc*)
12077    # On Win9x/ME, this test blows up -- it succeeds, but takes
12078    # about 5 minutes as the teststring grows exponentially.
12079    # Worse, since 9x/ME are not pre-emptively multitasking,
12080    # you end up with a "frozen" computer, even though with patience
12081    # the test eventually succeeds (with a max line length of 256k).
12082    # Instead, let's just punt: use the minimum linelength reported by
12083    # all of the supported platforms: 8192 (on NT/2K/XP).
12084    lt_cv_sys_max_cmd_len=8192;
12085    ;;
12086
12087  mint*)
12088    # On MiNT this can take a long time and run out of memory.
12089    lt_cv_sys_max_cmd_len=8192;
12090    ;;
12091
12092  amigaos*)
12093    # On AmigaOS with pdksh, this test takes hours, literally.
12094    # So we just punt and use a minimum line length of 8192.
12095    lt_cv_sys_max_cmd_len=8192;
12096    ;;
12097
12098  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12099    # This has been around since 386BSD, at least.  Likely further.
12100    if test -x /sbin/sysctl; then
12101      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12102    elif test -x /usr/sbin/sysctl; then
12103      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12104    else
12105      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12106    fi
12107    # And add a safety zone
12108    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12109    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12110    ;;
12111
12112  interix*)
12113    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12114    lt_cv_sys_max_cmd_len=196608
12115    ;;
12116
12117  os2*)
12118    # The test takes a long time on OS/2.
12119    lt_cv_sys_max_cmd_len=8192
12120    ;;
12121
12122  osf*)
12123    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12124    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12125    # nice to cause kernel panics so lets avoid the loop below.
12126    # First set a reasonable default.
12127    lt_cv_sys_max_cmd_len=16384
12128    #
12129    if test -x /sbin/sysconfig; then
12130      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12131        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12132      esac
12133    fi
12134    ;;
12135  sco3.2v5*)
12136    lt_cv_sys_max_cmd_len=102400
12137    ;;
12138  sysv5* | sco5v6* | sysv4.2uw2*)
12139    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12140    if test -n "$kargmax"; then
12141      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12142    else
12143      lt_cv_sys_max_cmd_len=32768
12144    fi
12145    ;;
12146  *)
12147    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12148    if test -n "$lt_cv_sys_max_cmd_len" && \
12149       test undefined != "$lt_cv_sys_max_cmd_len"; then
12150      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12151      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12152    else
12153      # Make teststring a little bigger before we do anything with it.
12154      # a 1K string should be a reasonable start.
12155      for i in 1 2 3 4 5 6 7 8; do
12156        teststring=$teststring$teststring
12157      done
12158      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12159      # If test is not a shell built-in, we'll probably end up computing a
12160      # maximum length that is only half of the actual maximum length, but
12161      # we can't tell.
12162      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12163	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12164	      test 17 != "$i" # 1/2 MB should be enough
12165      do
12166        i=`expr $i + 1`
12167        teststring=$teststring$teststring
12168      done
12169      # Only check the string length outside the loop.
12170      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12171      teststring=
12172      # Add a significant safety factor because C++ compilers can tack on
12173      # massive amounts of additional arguments before passing them to the
12174      # linker.  It appears as though 1/2 is a usable value.
12175      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12176    fi
12177    ;;
12178  esac
12179
12180fi
12181
12182if test -n "$lt_cv_sys_max_cmd_len"; then
12183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12184printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12185else
12186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12187printf "%s\n" "none" >&6; }
12188fi
12189max_cmd_len=$lt_cv_sys_max_cmd_len
12190
12191
12192
12193
12194
12195
12196: ${CP="cp -f"}
12197: ${MV="mv -f"}
12198: ${RM="rm -f"}
12199
12200if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12201  lt_unset=unset
12202else
12203  lt_unset=false
12204fi
12205
12206
12207
12208
12209
12210# test EBCDIC or ASCII
12211case `echo X|tr X '\101'` in
12212 A) # ASCII based system
12213    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12214  lt_SP2NL='tr \040 \012'
12215  lt_NL2SP='tr \015\012 \040\040'
12216  ;;
12217 *) # EBCDIC based system
12218  lt_SP2NL='tr \100 \n'
12219  lt_NL2SP='tr \r\n \100\100'
12220  ;;
12221esac
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12232printf %s "checking how to convert $build file names to $host format... " >&6; }
12233if test ${lt_cv_to_host_file_cmd+y}
12234then :
12235  printf %s "(cached) " >&6
12236else $as_nop
12237  case $host in
12238  *-*-mingw* )
12239    case $build in
12240      *-*-mingw* ) # actually msys
12241        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12242        ;;
12243      *-*-cygwin* )
12244        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12245        ;;
12246      * ) # otherwise, assume *nix
12247        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12248        ;;
12249    esac
12250    ;;
12251  *-*-cygwin* )
12252    case $build in
12253      *-*-mingw* ) # actually msys
12254        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12255        ;;
12256      *-*-cygwin* )
12257        lt_cv_to_host_file_cmd=func_convert_file_noop
12258        ;;
12259      * ) # otherwise, assume *nix
12260        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12261        ;;
12262    esac
12263    ;;
12264  * ) # unhandled hosts (and "normal" native builds)
12265    lt_cv_to_host_file_cmd=func_convert_file_noop
12266    ;;
12267esac
12268
12269fi
12270
12271to_host_file_cmd=$lt_cv_to_host_file_cmd
12272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12273printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12274
12275
12276
12277
12278
12279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12280printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12281if test ${lt_cv_to_tool_file_cmd+y}
12282then :
12283  printf %s "(cached) " >&6
12284else $as_nop
12285  #assume ordinary cross tools, or native build.
12286lt_cv_to_tool_file_cmd=func_convert_file_noop
12287case $host in
12288  *-*-mingw* )
12289    case $build in
12290      *-*-mingw* ) # actually msys
12291        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12292        ;;
12293    esac
12294    ;;
12295esac
12296
12297fi
12298
12299to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12301printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12302
12303
12304
12305
12306
12307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12308printf %s "checking for $LD option to reload object files... " >&6; }
12309if test ${lt_cv_ld_reload_flag+y}
12310then :
12311  printf %s "(cached) " >&6
12312else $as_nop
12313  lt_cv_ld_reload_flag='-r'
12314fi
12315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12316printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12317reload_flag=$lt_cv_ld_reload_flag
12318case $reload_flag in
12319"" | " "*) ;;
12320*) reload_flag=" $reload_flag" ;;
12321esac
12322reload_cmds='$LD$reload_flag -o $output$reload_objs'
12323case $host_os in
12324  cygwin* | mingw* | pw32* | cegcc*)
12325    if test yes != "$GCC"; then
12326      reload_cmds=false
12327    fi
12328    ;;
12329  darwin*)
12330    if test yes = "$GCC"; then
12331      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12332    else
12333      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12334    fi
12335    ;;
12336esac
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346if test -n "$ac_tool_prefix"; then
12347  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12348set dummy ${ac_tool_prefix}file; ac_word=$2
12349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350printf %s "checking for $ac_word... " >&6; }
12351if test ${ac_cv_prog_FILECMD+y}
12352then :
12353  printf %s "(cached) " >&6
12354else $as_nop
12355  if test -n "$FILECMD"; then
12356  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12357else
12358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359for as_dir in $PATH
12360do
12361  IFS=$as_save_IFS
12362  case $as_dir in #(((
12363    '') as_dir=./ ;;
12364    */) ;;
12365    *) as_dir=$as_dir/ ;;
12366  esac
12367    for ac_exec_ext in '' $ac_executable_extensions; do
12368  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12369    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12370    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12371    break 2
12372  fi
12373done
12374  done
12375IFS=$as_save_IFS
12376
12377fi
12378fi
12379FILECMD=$ac_cv_prog_FILECMD
12380if test -n "$FILECMD"; then
12381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12382printf "%s\n" "$FILECMD" >&6; }
12383else
12384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385printf "%s\n" "no" >&6; }
12386fi
12387
12388
12389fi
12390if test -z "$ac_cv_prog_FILECMD"; then
12391  ac_ct_FILECMD=$FILECMD
12392  # Extract the first word of "file", so it can be a program name with args.
12393set dummy file; ac_word=$2
12394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395printf %s "checking for $ac_word... " >&6; }
12396if test ${ac_cv_prog_ac_ct_FILECMD+y}
12397then :
12398  printf %s "(cached) " >&6
12399else $as_nop
12400  if test -n "$ac_ct_FILECMD"; then
12401  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12402else
12403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404for as_dir in $PATH
12405do
12406  IFS=$as_save_IFS
12407  case $as_dir in #(((
12408    '') as_dir=./ ;;
12409    */) ;;
12410    *) as_dir=$as_dir/ ;;
12411  esac
12412    for ac_exec_ext in '' $ac_executable_extensions; do
12413  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12414    ac_cv_prog_ac_ct_FILECMD="file"
12415    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12416    break 2
12417  fi
12418done
12419  done
12420IFS=$as_save_IFS
12421
12422fi
12423fi
12424ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12425if test -n "$ac_ct_FILECMD"; then
12426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12427printf "%s\n" "$ac_ct_FILECMD" >&6; }
12428else
12429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430printf "%s\n" "no" >&6; }
12431fi
12432
12433  if test "x$ac_ct_FILECMD" = x; then
12434    FILECMD=":"
12435  else
12436    case $cross_compiling:$ac_tool_warned in
12437yes:)
12438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12439printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12440ac_tool_warned=yes ;;
12441esac
12442    FILECMD=$ac_ct_FILECMD
12443  fi
12444else
12445  FILECMD="$ac_cv_prog_FILECMD"
12446fi
12447
12448
12449
12450
12451
12452
12453
12454if test -n "$ac_tool_prefix"; then
12455  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12456set dummy ${ac_tool_prefix}objdump; ac_word=$2
12457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458printf %s "checking for $ac_word... " >&6; }
12459if test ${ac_cv_prog_OBJDUMP+y}
12460then :
12461  printf %s "(cached) " >&6
12462else $as_nop
12463  if test -n "$OBJDUMP"; then
12464  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12465else
12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469  IFS=$as_save_IFS
12470  case $as_dir in #(((
12471    '') as_dir=./ ;;
12472    */) ;;
12473    *) as_dir=$as_dir/ ;;
12474  esac
12475    for ac_exec_ext in '' $ac_executable_extensions; do
12476  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12477    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12478    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12479    break 2
12480  fi
12481done
12482  done
12483IFS=$as_save_IFS
12484
12485fi
12486fi
12487OBJDUMP=$ac_cv_prog_OBJDUMP
12488if test -n "$OBJDUMP"; then
12489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12490printf "%s\n" "$OBJDUMP" >&6; }
12491else
12492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493printf "%s\n" "no" >&6; }
12494fi
12495
12496
12497fi
12498if test -z "$ac_cv_prog_OBJDUMP"; then
12499  ac_ct_OBJDUMP=$OBJDUMP
12500  # Extract the first word of "objdump", so it can be a program name with args.
12501set dummy objdump; ac_word=$2
12502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503printf %s "checking for $ac_word... " >&6; }
12504if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12505then :
12506  printf %s "(cached) " >&6
12507else $as_nop
12508  if test -n "$ac_ct_OBJDUMP"; then
12509  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12510else
12511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512for as_dir in $PATH
12513do
12514  IFS=$as_save_IFS
12515  case $as_dir in #(((
12516    '') as_dir=./ ;;
12517    */) ;;
12518    *) as_dir=$as_dir/ ;;
12519  esac
12520    for ac_exec_ext in '' $ac_executable_extensions; do
12521  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12522    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12523    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12524    break 2
12525  fi
12526done
12527  done
12528IFS=$as_save_IFS
12529
12530fi
12531fi
12532ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12533if test -n "$ac_ct_OBJDUMP"; then
12534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12535printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12536else
12537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538printf "%s\n" "no" >&6; }
12539fi
12540
12541  if test "x$ac_ct_OBJDUMP" = x; then
12542    OBJDUMP="false"
12543  else
12544    case $cross_compiling:$ac_tool_warned in
12545yes:)
12546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12547printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12548ac_tool_warned=yes ;;
12549esac
12550    OBJDUMP=$ac_ct_OBJDUMP
12551  fi
12552else
12553  OBJDUMP="$ac_cv_prog_OBJDUMP"
12554fi
12555
12556test -z "$OBJDUMP" && OBJDUMP=objdump
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12567printf %s "checking how to recognize dependent libraries... " >&6; }
12568if test ${lt_cv_deplibs_check_method+y}
12569then :
12570  printf %s "(cached) " >&6
12571else $as_nop
12572  lt_cv_file_magic_cmd='$MAGIC_CMD'
12573lt_cv_file_magic_test_file=
12574lt_cv_deplibs_check_method='unknown'
12575# Need to set the preceding variable on all platforms that support
12576# interlibrary dependencies.
12577# 'none' -- dependencies not supported.
12578# 'unknown' -- same as none, but documents that we really don't know.
12579# 'pass_all' -- all dependencies passed with no checks.
12580# 'test_compile' -- check by making test program.
12581# 'file_magic [[regex]]' -- check by looking for files in library path
12582# that responds to the $file_magic_cmd with a given extended regex.
12583# If you have 'file' or equivalent on your system and you're not sure
12584# whether 'pass_all' will *always* work, you probably want this one.
12585
12586case $host_os in
12587aix[4-9]*)
12588  lt_cv_deplibs_check_method=pass_all
12589  ;;
12590
12591beos*)
12592  lt_cv_deplibs_check_method=pass_all
12593  ;;
12594
12595bsdi[45]*)
12596  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12597  lt_cv_file_magic_cmd='$FILECMD -L'
12598  lt_cv_file_magic_test_file=/shlib/libc.so
12599  ;;
12600
12601cygwin*)
12602  # func_win32_libid is a shell function defined in ltmain.sh
12603  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12604  lt_cv_file_magic_cmd='func_win32_libid'
12605  ;;
12606
12607mingw* | pw32*)
12608  # Base MSYS/MinGW do not provide the 'file' command needed by
12609  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12610  # unless we find 'file', for example because we are cross-compiling.
12611  if ( file / ) >/dev/null 2>&1; then
12612    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12613    lt_cv_file_magic_cmd='func_win32_libid'
12614  else
12615    # Keep this pattern in sync with the one in func_win32_libid.
12616    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12617    lt_cv_file_magic_cmd='$OBJDUMP -f'
12618  fi
12619  ;;
12620
12621cegcc*)
12622  # use the weaker test based on 'objdump'. See mingw*.
12623  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12624  lt_cv_file_magic_cmd='$OBJDUMP -f'
12625  ;;
12626
12627darwin* | rhapsody*)
12628  lt_cv_deplibs_check_method=pass_all
12629  ;;
12630
12631freebsd* | dragonfly* | midnightbsd*)
12632  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12633    case $host_cpu in
12634    i*86 )
12635      # Not sure whether the presence of OpenBSD here was a mistake.
12636      # Let's accept both of them until this is cleared up.
12637      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12638      lt_cv_file_magic_cmd=$FILECMD
12639      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12640      ;;
12641    esac
12642  else
12643    lt_cv_deplibs_check_method=pass_all
12644  fi
12645  ;;
12646
12647haiku*)
12648  lt_cv_deplibs_check_method=pass_all
12649  ;;
12650
12651hpux10.20* | hpux11*)
12652  lt_cv_file_magic_cmd=$FILECMD
12653  case $host_cpu in
12654  ia64*)
12655    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12656    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12657    ;;
12658  hppa*64*)
12659    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]'
12660    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12661    ;;
12662  *)
12663    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12664    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12665    ;;
12666  esac
12667  ;;
12668
12669interix[3-9]*)
12670  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12671  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12672  ;;
12673
12674irix5* | irix6* | nonstopux*)
12675  case $LD in
12676  *-32|*"-32 ") libmagic=32-bit;;
12677  *-n32|*"-n32 ") libmagic=N32;;
12678  *-64|*"-64 ") libmagic=64-bit;;
12679  *) libmagic=never-match;;
12680  esac
12681  lt_cv_deplibs_check_method=pass_all
12682  ;;
12683
12684# This must be glibc/ELF.
12685linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12686  lt_cv_deplibs_check_method=pass_all
12687  ;;
12688
12689netbsd*)
12690  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12691    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12692  else
12693    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12694  fi
12695  ;;
12696
12697newos6*)
12698  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12699  lt_cv_file_magic_cmd=$FILECMD
12700  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12701  ;;
12702
12703*nto* | *qnx*)
12704  lt_cv_deplibs_check_method=pass_all
12705  ;;
12706
12707openbsd* | bitrig*)
12708  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12709    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12710  else
12711    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12712  fi
12713  ;;
12714
12715osf3* | osf4* | osf5*)
12716  lt_cv_deplibs_check_method=pass_all
12717  ;;
12718
12719rdos*)
12720  lt_cv_deplibs_check_method=pass_all
12721  ;;
12722
12723solaris*)
12724  lt_cv_deplibs_check_method=pass_all
12725  ;;
12726
12727sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12728  lt_cv_deplibs_check_method=pass_all
12729  ;;
12730
12731sysv4 | sysv4.3*)
12732  case $host_vendor in
12733  motorola)
12734    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]'
12735    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12736    ;;
12737  ncr)
12738    lt_cv_deplibs_check_method=pass_all
12739    ;;
12740  sequent)
12741    lt_cv_file_magic_cmd='/bin/file'
12742    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12743    ;;
12744  sni)
12745    lt_cv_file_magic_cmd='/bin/file'
12746    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12747    lt_cv_file_magic_test_file=/lib/libc.so
12748    ;;
12749  siemens)
12750    lt_cv_deplibs_check_method=pass_all
12751    ;;
12752  pc)
12753    lt_cv_deplibs_check_method=pass_all
12754    ;;
12755  esac
12756  ;;
12757
12758tpf*)
12759  lt_cv_deplibs_check_method=pass_all
12760  ;;
12761os2*)
12762  lt_cv_deplibs_check_method=pass_all
12763  ;;
12764esac
12765
12766fi
12767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12768printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12769
12770file_magic_glob=
12771want_nocaseglob=no
12772if test "$build" = "$host"; then
12773  case $host_os in
12774  mingw* | pw32*)
12775    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12776      want_nocaseglob=yes
12777    else
12778      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12779    fi
12780    ;;
12781  esac
12782fi
12783
12784file_magic_cmd=$lt_cv_file_magic_cmd
12785deplibs_check_method=$lt_cv_deplibs_check_method
12786test -z "$deplibs_check_method" && deplibs_check_method=unknown
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809if test -n "$ac_tool_prefix"; then
12810  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12811set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813printf %s "checking for $ac_word... " >&6; }
12814if test ${ac_cv_prog_DLLTOOL+y}
12815then :
12816  printf %s "(cached) " >&6
12817else $as_nop
12818  if test -n "$DLLTOOL"; then
12819  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12820else
12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824  IFS=$as_save_IFS
12825  case $as_dir in #(((
12826    '') as_dir=./ ;;
12827    */) ;;
12828    *) as_dir=$as_dir/ ;;
12829  esac
12830    for ac_exec_ext in '' $ac_executable_extensions; do
12831  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12832    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12833    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12834    break 2
12835  fi
12836done
12837  done
12838IFS=$as_save_IFS
12839
12840fi
12841fi
12842DLLTOOL=$ac_cv_prog_DLLTOOL
12843if test -n "$DLLTOOL"; then
12844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12845printf "%s\n" "$DLLTOOL" >&6; }
12846else
12847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848printf "%s\n" "no" >&6; }
12849fi
12850
12851
12852fi
12853if test -z "$ac_cv_prog_DLLTOOL"; then
12854  ac_ct_DLLTOOL=$DLLTOOL
12855  # Extract the first word of "dlltool", so it can be a program name with args.
12856set dummy dlltool; ac_word=$2
12857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858printf %s "checking for $ac_word... " >&6; }
12859if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12860then :
12861  printf %s "(cached) " >&6
12862else $as_nop
12863  if test -n "$ac_ct_DLLTOOL"; then
12864  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12865else
12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869  IFS=$as_save_IFS
12870  case $as_dir in #(((
12871    '') as_dir=./ ;;
12872    */) ;;
12873    *) as_dir=$as_dir/ ;;
12874  esac
12875    for ac_exec_ext in '' $ac_executable_extensions; do
12876  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12877    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12878    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12879    break 2
12880  fi
12881done
12882  done
12883IFS=$as_save_IFS
12884
12885fi
12886fi
12887ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12888if test -n "$ac_ct_DLLTOOL"; then
12889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12890printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12891else
12892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893printf "%s\n" "no" >&6; }
12894fi
12895
12896  if test "x$ac_ct_DLLTOOL" = x; then
12897    DLLTOOL="false"
12898  else
12899    case $cross_compiling:$ac_tool_warned in
12900yes:)
12901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12902printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12903ac_tool_warned=yes ;;
12904esac
12905    DLLTOOL=$ac_ct_DLLTOOL
12906  fi
12907else
12908  DLLTOOL="$ac_cv_prog_DLLTOOL"
12909fi
12910
12911test -z "$DLLTOOL" && DLLTOOL=dlltool
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12923printf %s "checking how to associate runtime and link libraries... " >&6; }
12924if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12925then :
12926  printf %s "(cached) " >&6
12927else $as_nop
12928  lt_cv_sharedlib_from_linklib_cmd='unknown'
12929
12930case $host_os in
12931cygwin* | mingw* | pw32* | cegcc*)
12932  # two different shell functions defined in ltmain.sh;
12933  # decide which one to use based on capabilities of $DLLTOOL
12934  case `$DLLTOOL --help 2>&1` in
12935  *--identify-strict*)
12936    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12937    ;;
12938  *)
12939    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12940    ;;
12941  esac
12942  ;;
12943*)
12944  # fallback: assume linklib IS sharedlib
12945  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12946  ;;
12947esac
12948
12949fi
12950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12951printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12952sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12953test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12954
12955
12956
12957
12958
12959
12960
12961if test -n "$ac_tool_prefix"; then
12962  for ac_prog in ar
12963  do
12964    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967printf %s "checking for $ac_word... " >&6; }
12968if test ${ac_cv_prog_AR+y}
12969then :
12970  printf %s "(cached) " >&6
12971else $as_nop
12972  if test -n "$AR"; then
12973  ac_cv_prog_AR="$AR" # Let the user override the test.
12974else
12975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976for as_dir in $PATH
12977do
12978  IFS=$as_save_IFS
12979  case $as_dir in #(((
12980    '') as_dir=./ ;;
12981    */) ;;
12982    *) as_dir=$as_dir/ ;;
12983  esac
12984    for ac_exec_ext in '' $ac_executable_extensions; do
12985  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12986    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12987    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12988    break 2
12989  fi
12990done
12991  done
12992IFS=$as_save_IFS
12993
12994fi
12995fi
12996AR=$ac_cv_prog_AR
12997if test -n "$AR"; then
12998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12999printf "%s\n" "$AR" >&6; }
13000else
13001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002printf "%s\n" "no" >&6; }
13003fi
13004
13005
13006    test -n "$AR" && break
13007  done
13008fi
13009if test -z "$AR"; then
13010  ac_ct_AR=$AR
13011  for ac_prog in ar
13012do
13013  # Extract the first word of "$ac_prog", so it can be a program name with args.
13014set dummy $ac_prog; ac_word=$2
13015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13016printf %s "checking for $ac_word... " >&6; }
13017if test ${ac_cv_prog_ac_ct_AR+y}
13018then :
13019  printf %s "(cached) " >&6
13020else $as_nop
13021  if test -n "$ac_ct_AR"; then
13022  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13023else
13024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025for as_dir in $PATH
13026do
13027  IFS=$as_save_IFS
13028  case $as_dir in #(((
13029    '') as_dir=./ ;;
13030    */) ;;
13031    *) as_dir=$as_dir/ ;;
13032  esac
13033    for ac_exec_ext in '' $ac_executable_extensions; do
13034  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13035    ac_cv_prog_ac_ct_AR="$ac_prog"
13036    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13037    break 2
13038  fi
13039done
13040  done
13041IFS=$as_save_IFS
13042
13043fi
13044fi
13045ac_ct_AR=$ac_cv_prog_ac_ct_AR
13046if test -n "$ac_ct_AR"; then
13047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13048printf "%s\n" "$ac_ct_AR" >&6; }
13049else
13050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13051printf "%s\n" "no" >&6; }
13052fi
13053
13054
13055  test -n "$ac_ct_AR" && break
13056done
13057
13058  if test "x$ac_ct_AR" = x; then
13059    AR="false"
13060  else
13061    case $cross_compiling:$ac_tool_warned in
13062yes:)
13063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13064printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13065ac_tool_warned=yes ;;
13066esac
13067    AR=$ac_ct_AR
13068  fi
13069fi
13070
13071: ${AR=ar}
13072
13073
13074
13075
13076
13077
13078# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13079# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13080# higher priority because thats what people were doing historically (setting
13081# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13082# variable obsoleted/removed.
13083
13084test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13085lt_ar_flags=$AR_FLAGS
13086
13087
13088
13089
13090
13091
13092# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13093# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13094
13095
13096
13097
13098
13099
13100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13101printf %s "checking for archiver @FILE support... " >&6; }
13102if test ${lt_cv_ar_at_file+y}
13103then :
13104  printf %s "(cached) " >&6
13105else $as_nop
13106  lt_cv_ar_at_file=no
13107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108/* end confdefs.h.  */
13109
13110int
13111main (void)
13112{
13113
13114  ;
13115  return 0;
13116}
13117_ACEOF
13118if ac_fn_c_try_compile "$LINENO"
13119then :
13120  echo conftest.$ac_objext > conftest.lst
13121      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13122      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13123  (eval $lt_ar_try) 2>&5
13124  ac_status=$?
13125  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126  test $ac_status = 0; }
13127      if test 0 -eq "$ac_status"; then
13128	# Ensure the archiver fails upon bogus file names.
13129	rm -f conftest.$ac_objext libconftest.a
13130	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13131  (eval $lt_ar_try) 2>&5
13132  ac_status=$?
13133  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13134  test $ac_status = 0; }
13135	if test 0 -ne "$ac_status"; then
13136          lt_cv_ar_at_file=@
13137        fi
13138      fi
13139      rm -f conftest.* libconftest.a
13140
13141fi
13142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13143
13144fi
13145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13146printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13147
13148if test no = "$lt_cv_ar_at_file"; then
13149  archiver_list_spec=
13150else
13151  archiver_list_spec=$lt_cv_ar_at_file
13152fi
13153
13154
13155
13156
13157
13158
13159
13160if test -n "$ac_tool_prefix"; then
13161  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13162set dummy ${ac_tool_prefix}strip; ac_word=$2
13163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164printf %s "checking for $ac_word... " >&6; }
13165if test ${ac_cv_prog_STRIP+y}
13166then :
13167  printf %s "(cached) " >&6
13168else $as_nop
13169  if test -n "$STRIP"; then
13170  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13171else
13172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173for as_dir in $PATH
13174do
13175  IFS=$as_save_IFS
13176  case $as_dir in #(((
13177    '') as_dir=./ ;;
13178    */) ;;
13179    *) as_dir=$as_dir/ ;;
13180  esac
13181    for ac_exec_ext in '' $ac_executable_extensions; do
13182  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13183    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13184    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13185    break 2
13186  fi
13187done
13188  done
13189IFS=$as_save_IFS
13190
13191fi
13192fi
13193STRIP=$ac_cv_prog_STRIP
13194if test -n "$STRIP"; then
13195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13196printf "%s\n" "$STRIP" >&6; }
13197else
13198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199printf "%s\n" "no" >&6; }
13200fi
13201
13202
13203fi
13204if test -z "$ac_cv_prog_STRIP"; then
13205  ac_ct_STRIP=$STRIP
13206  # Extract the first word of "strip", so it can be a program name with args.
13207set dummy strip; ac_word=$2
13208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13209printf %s "checking for $ac_word... " >&6; }
13210if test ${ac_cv_prog_ac_ct_STRIP+y}
13211then :
13212  printf %s "(cached) " >&6
13213else $as_nop
13214  if test -n "$ac_ct_STRIP"; then
13215  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13216else
13217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218for as_dir in $PATH
13219do
13220  IFS=$as_save_IFS
13221  case $as_dir in #(((
13222    '') as_dir=./ ;;
13223    */) ;;
13224    *) as_dir=$as_dir/ ;;
13225  esac
13226    for ac_exec_ext in '' $ac_executable_extensions; do
13227  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13228    ac_cv_prog_ac_ct_STRIP="strip"
13229    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13230    break 2
13231  fi
13232done
13233  done
13234IFS=$as_save_IFS
13235
13236fi
13237fi
13238ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13239if test -n "$ac_ct_STRIP"; then
13240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13241printf "%s\n" "$ac_ct_STRIP" >&6; }
13242else
13243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244printf "%s\n" "no" >&6; }
13245fi
13246
13247  if test "x$ac_ct_STRIP" = x; then
13248    STRIP=":"
13249  else
13250    case $cross_compiling:$ac_tool_warned in
13251yes:)
13252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13253printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13254ac_tool_warned=yes ;;
13255esac
13256    STRIP=$ac_ct_STRIP
13257  fi
13258else
13259  STRIP="$ac_cv_prog_STRIP"
13260fi
13261
13262test -z "$STRIP" && STRIP=:
13263
13264
13265
13266
13267
13268
13269if test -n "$ac_tool_prefix"; then
13270  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13271set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273printf %s "checking for $ac_word... " >&6; }
13274if test ${ac_cv_prog_RANLIB+y}
13275then :
13276  printf %s "(cached) " >&6
13277else $as_nop
13278  if test -n "$RANLIB"; then
13279  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13280else
13281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282for as_dir in $PATH
13283do
13284  IFS=$as_save_IFS
13285  case $as_dir in #(((
13286    '') as_dir=./ ;;
13287    */) ;;
13288    *) as_dir=$as_dir/ ;;
13289  esac
13290    for ac_exec_ext in '' $ac_executable_extensions; do
13291  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13292    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13293    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13294    break 2
13295  fi
13296done
13297  done
13298IFS=$as_save_IFS
13299
13300fi
13301fi
13302RANLIB=$ac_cv_prog_RANLIB
13303if test -n "$RANLIB"; then
13304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13305printf "%s\n" "$RANLIB" >&6; }
13306else
13307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308printf "%s\n" "no" >&6; }
13309fi
13310
13311
13312fi
13313if test -z "$ac_cv_prog_RANLIB"; then
13314  ac_ct_RANLIB=$RANLIB
13315  # Extract the first word of "ranlib", so it can be a program name with args.
13316set dummy ranlib; ac_word=$2
13317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318printf %s "checking for $ac_word... " >&6; }
13319if test ${ac_cv_prog_ac_ct_RANLIB+y}
13320then :
13321  printf %s "(cached) " >&6
13322else $as_nop
13323  if test -n "$ac_ct_RANLIB"; then
13324  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13325else
13326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327for as_dir in $PATH
13328do
13329  IFS=$as_save_IFS
13330  case $as_dir in #(((
13331    '') as_dir=./ ;;
13332    */) ;;
13333    *) as_dir=$as_dir/ ;;
13334  esac
13335    for ac_exec_ext in '' $ac_executable_extensions; do
13336  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13337    ac_cv_prog_ac_ct_RANLIB="ranlib"
13338    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13339    break 2
13340  fi
13341done
13342  done
13343IFS=$as_save_IFS
13344
13345fi
13346fi
13347ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13348if test -n "$ac_ct_RANLIB"; then
13349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13350printf "%s\n" "$ac_ct_RANLIB" >&6; }
13351else
13352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353printf "%s\n" "no" >&6; }
13354fi
13355
13356  if test "x$ac_ct_RANLIB" = x; then
13357    RANLIB=":"
13358  else
13359    case $cross_compiling:$ac_tool_warned in
13360yes:)
13361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13362printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13363ac_tool_warned=yes ;;
13364esac
13365    RANLIB=$ac_ct_RANLIB
13366  fi
13367else
13368  RANLIB="$ac_cv_prog_RANLIB"
13369fi
13370
13371test -z "$RANLIB" && RANLIB=:
13372
13373
13374
13375
13376
13377
13378# Determine commands to create old-style static archives.
13379old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13380old_postinstall_cmds='chmod 644 $oldlib'
13381old_postuninstall_cmds=
13382
13383if test -n "$RANLIB"; then
13384  case $host_os in
13385  bitrig* | openbsd*)
13386    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13387    ;;
13388  *)
13389    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13390    ;;
13391  esac
13392  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13393fi
13394
13395case $host_os in
13396  darwin*)
13397    lock_old_archive_extraction=yes ;;
13398  *)
13399    lock_old_archive_extraction=no ;;
13400esac
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440# If no C compiler was specified, use CC.
13441LTCC=${LTCC-"$CC"}
13442
13443# If no C compiler flags were specified, use CFLAGS.
13444LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13445
13446# Allow CC to be a program name with arguments.
13447compiler=$CC
13448
13449
13450# Check for command to grab the raw symbol name followed by C symbol from nm.
13451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13452printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13453if test ${lt_cv_sys_global_symbol_pipe+y}
13454then :
13455  printf %s "(cached) " >&6
13456else $as_nop
13457
13458# These are sane defaults that work on at least a few old systems.
13459# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13460
13461# Character class describing NM global symbol codes.
13462symcode='[BCDEGRST]'
13463
13464# Regexp to match symbols that can be accessed directly from C.
13465sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13466
13467# Define system-specific variables.
13468case $host_os in
13469aix*)
13470  symcode='[BCDT]'
13471  ;;
13472cygwin* | mingw* | pw32* | cegcc*)
13473  symcode='[ABCDGISTW]'
13474  ;;
13475hpux*)
13476  if test ia64 = "$host_cpu"; then
13477    symcode='[ABCDEGRST]'
13478  fi
13479  ;;
13480irix* | nonstopux*)
13481  symcode='[BCDEGRST]'
13482  ;;
13483osf*)
13484  symcode='[BCDEGQRST]'
13485  ;;
13486solaris*)
13487  symcode='[BDRT]'
13488  ;;
13489sco3.2v5*)
13490  symcode='[DT]'
13491  ;;
13492sysv4.2uw2*)
13493  symcode='[DT]'
13494  ;;
13495sysv5* | sco5v6* | unixware* | OpenUNIX*)
13496  symcode='[ABDT]'
13497  ;;
13498sysv4)
13499  symcode='[DFNSTU]'
13500  ;;
13501esac
13502
13503# If we're using GNU nm, then use its standard symbol codes.
13504case `$NM -V 2>&1` in
13505*GNU* | *'with BFD'*)
13506  symcode='[ABCDGIRSTW]' ;;
13507esac
13508
13509if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13510  # Gets list of data symbols to import.
13511  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13512  # Adjust the below global symbol transforms to fixup imported variables.
13513  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13514  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13515  lt_c_name_lib_hook="\
13516  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13517  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13518else
13519  # Disable hooks by default.
13520  lt_cv_sys_global_symbol_to_import=
13521  lt_cdecl_hook=
13522  lt_c_name_hook=
13523  lt_c_name_lib_hook=
13524fi
13525
13526# Transform an extracted symbol line into a proper C declaration.
13527# Some systems (esp. on ia64) link data and code symbols differently,
13528# so use this general approach.
13529lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13530$lt_cdecl_hook\
13531" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13532" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13533
13534# Transform an extracted symbol line into symbol name and symbol address
13535lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13536$lt_c_name_hook\
13537" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13538" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13539
13540# Transform an extracted symbol line into symbol name with lib prefix and
13541# symbol address.
13542lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13543$lt_c_name_lib_hook\
13544" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13545" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13546" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13547
13548# Handle CRLF in mingw tool chain
13549opt_cr=
13550case $build_os in
13551mingw*)
13552  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13553  ;;
13554esac
13555
13556# Try without a prefix underscore, then with it.
13557for ac_symprfx in "" "_"; do
13558
13559  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13560  symxfrm="\\1 $ac_symprfx\\2 \\2"
13561
13562  # Write the raw and C identifiers.
13563  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13564    # Fake it for dumpbin and say T for any non-static function,
13565    # D for any global variable and I for any imported variable.
13566    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13567    # which start with @ or ?.
13568    lt_cv_sys_global_symbol_pipe="$AWK '"\
13569"     {last_section=section; section=\$ 3};"\
13570"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13571"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13572"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13573"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13574"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13575"     \$ 0!~/External *\|/{next};"\
13576"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13577"     {if(hide[section]) next};"\
13578"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13579"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13580"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13581"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13582"     ' prfx=^$ac_symprfx"
13583  else
13584    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13585  fi
13586  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13587
13588  # Check to see that the pipe works correctly.
13589  pipe_works=no
13590
13591  rm -f conftest*
13592  cat > conftest.$ac_ext <<_LT_EOF
13593#ifdef __cplusplus
13594extern "C" {
13595#endif
13596char nm_test_var;
13597void nm_test_func(void);
13598void nm_test_func(void){}
13599#ifdef __cplusplus
13600}
13601#endif
13602int main(){nm_test_var='a';nm_test_func();return(0);}
13603_LT_EOF
13604
13605  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13606  (eval $ac_compile) 2>&5
13607  ac_status=$?
13608  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609  test $ac_status = 0; }; then
13610    # Now try to grab the symbols.
13611    nlist=conftest.nm
13612    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13613  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13614  ac_status=$?
13615  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13616  test $ac_status = 0; } && test -s "$nlist"; then
13617      # Try sorting and uniquifying the output.
13618      if sort "$nlist" | uniq > "$nlist"T; then
13619	mv -f "$nlist"T "$nlist"
13620      else
13621	rm -f "$nlist"T
13622      fi
13623
13624      # Make sure that we snagged all the symbols we need.
13625      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13626	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13627	  cat <<_LT_EOF > conftest.$ac_ext
13628/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13629#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13630/* DATA imports from DLLs on WIN32 can't be const, because runtime
13631   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13632# define LT_DLSYM_CONST
13633#elif defined __osf__
13634/* This system does not cope well with relocations in const data.  */
13635# define LT_DLSYM_CONST
13636#else
13637# define LT_DLSYM_CONST const
13638#endif
13639
13640#ifdef __cplusplus
13641extern "C" {
13642#endif
13643
13644_LT_EOF
13645	  # Now generate the symbol file.
13646	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13647
13648	  cat <<_LT_EOF >> conftest.$ac_ext
13649
13650/* The mapping between symbol names and symbols.  */
13651LT_DLSYM_CONST struct {
13652  const char *name;
13653  void       *address;
13654}
13655lt__PROGRAM__LTX_preloaded_symbols[] =
13656{
13657  { "@PROGRAM@", (void *) 0 },
13658_LT_EOF
13659	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13660	  cat <<\_LT_EOF >> conftest.$ac_ext
13661  {0, (void *) 0}
13662};
13663
13664/* This works around a problem in FreeBSD linker */
13665#ifdef FREEBSD_WORKAROUND
13666static const void *lt_preloaded_setup() {
13667  return lt__PROGRAM__LTX_preloaded_symbols;
13668}
13669#endif
13670
13671#ifdef __cplusplus
13672}
13673#endif
13674_LT_EOF
13675	  # Now try linking the two files.
13676	  mv conftest.$ac_objext conftstm.$ac_objext
13677	  lt_globsym_save_LIBS=$LIBS
13678	  lt_globsym_save_CFLAGS=$CFLAGS
13679	  LIBS=conftstm.$ac_objext
13680	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13681	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13682  (eval $ac_link) 2>&5
13683  ac_status=$?
13684  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13685  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13686	    pipe_works=yes
13687	  fi
13688	  LIBS=$lt_globsym_save_LIBS
13689	  CFLAGS=$lt_globsym_save_CFLAGS
13690	else
13691	  echo "cannot find nm_test_func in $nlist" >&5
13692	fi
13693      else
13694	echo "cannot find nm_test_var in $nlist" >&5
13695      fi
13696    else
13697      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13698    fi
13699  else
13700    echo "$progname: failed program was:" >&5
13701    cat conftest.$ac_ext >&5
13702  fi
13703  rm -rf conftest* conftst*
13704
13705  # Do not use the global_symbol_pipe unless it works.
13706  if test yes = "$pipe_works"; then
13707    break
13708  else
13709    lt_cv_sys_global_symbol_pipe=
13710  fi
13711done
13712
13713fi
13714
13715if test -z "$lt_cv_sys_global_symbol_pipe"; then
13716  lt_cv_sys_global_symbol_to_cdecl=
13717fi
13718if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13720printf "%s\n" "failed" >&6; }
13721else
13722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13723printf "%s\n" "ok" >&6; }
13724fi
13725
13726# Response file support.
13727if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13728  nm_file_list_spec='@'
13729elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13730  nm_file_list_spec='@'
13731fi
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13770printf %s "checking for sysroot... " >&6; }
13771
13772# Check whether --with-sysroot was given.
13773if test ${with_sysroot+y}
13774then :
13775  withval=$with_sysroot;
13776else $as_nop
13777  with_sysroot=no
13778fi
13779
13780
13781lt_sysroot=
13782case $with_sysroot in #(
13783 yes)
13784   if test yes = "$GCC"; then
13785     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13786   fi
13787   ;; #(
13788 /*)
13789   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13790   ;; #(
13791 no|'')
13792   ;; #(
13793 *)
13794   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13795printf "%s\n" "$with_sysroot" >&6; }
13796   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13797   ;;
13798esac
13799
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13801printf "%s\n" "${lt_sysroot:-no}" >&6; }
13802
13803
13804
13805
13806
13807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13808printf %s "checking for a working dd... " >&6; }
13809if test ${ac_cv_path_lt_DD+y}
13810then :
13811  printf %s "(cached) " >&6
13812else $as_nop
13813  printf 0123456789abcdef0123456789abcdef >conftest.i
13814cat conftest.i conftest.i >conftest2.i
13815: ${lt_DD:=$DD}
13816if test -z "$lt_DD"; then
13817  ac_path_lt_DD_found=false
13818  # Loop through the user's path and test for each of PROGNAME-LIST
13819  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820for as_dir in $PATH
13821do
13822  IFS=$as_save_IFS
13823  case $as_dir in #(((
13824    '') as_dir=./ ;;
13825    */) ;;
13826    *) as_dir=$as_dir/ ;;
13827  esac
13828    for ac_prog in dd
13829   do
13830    for ac_exec_ext in '' $ac_executable_extensions; do
13831      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13832      as_fn_executable_p "$ac_path_lt_DD" || continue
13833if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13834  cmp -s conftest.i conftest.out \
13835  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13836fi
13837      $ac_path_lt_DD_found && break 3
13838    done
13839  done
13840  done
13841IFS=$as_save_IFS
13842  if test -z "$ac_cv_path_lt_DD"; then
13843    :
13844  fi
13845else
13846  ac_cv_path_lt_DD=$lt_DD
13847fi
13848
13849rm -f conftest.i conftest2.i conftest.out
13850fi
13851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13852printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13853
13854
13855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13856printf %s "checking how to truncate binary pipes... " >&6; }
13857if test ${lt_cv_truncate_bin+y}
13858then :
13859  printf %s "(cached) " >&6
13860else $as_nop
13861  printf 0123456789abcdef0123456789abcdef >conftest.i
13862cat conftest.i conftest.i >conftest2.i
13863lt_cv_truncate_bin=
13864if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13865  cmp -s conftest.i conftest.out \
13866  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13867fi
13868rm -f conftest.i conftest2.i conftest.out
13869test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13870fi
13871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13872printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13873
13874
13875
13876
13877
13878
13879
13880# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13881func_cc_basename ()
13882{
13883    for cc_temp in $*""; do
13884      case $cc_temp in
13885        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13886        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13887        \-*) ;;
13888        *) break;;
13889      esac
13890    done
13891    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13892}
13893
13894# Check whether --enable-libtool-lock was given.
13895if test ${enable_libtool_lock+y}
13896then :
13897  enableval=$enable_libtool_lock;
13898fi
13899
13900test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13901
13902# Some flags need to be propagated to the compiler or linker for good
13903# libtool support.
13904case $host in
13905ia64-*-hpux*)
13906  # Find out what ABI is being produced by ac_compile, and set mode
13907  # options accordingly.
13908  echo 'int i;' > conftest.$ac_ext
13909  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13910  (eval $ac_compile) 2>&5
13911  ac_status=$?
13912  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913  test $ac_status = 0; }; then
13914    case `$FILECMD conftest.$ac_objext` in
13915      *ELF-32*)
13916	HPUX_IA64_MODE=32
13917	;;
13918      *ELF-64*)
13919	HPUX_IA64_MODE=64
13920	;;
13921    esac
13922  fi
13923  rm -rf conftest*
13924  ;;
13925*-*-irix6*)
13926  # Find out what ABI is being produced by ac_compile, and set linker
13927  # options accordingly.
13928  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13929  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13930  (eval $ac_compile) 2>&5
13931  ac_status=$?
13932  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933  test $ac_status = 0; }; then
13934    if test yes = "$lt_cv_prog_gnu_ld"; then
13935      case `$FILECMD conftest.$ac_objext` in
13936	*32-bit*)
13937	  LD="${LD-ld} -melf32bsmip"
13938	  ;;
13939	*N32*)
13940	  LD="${LD-ld} -melf32bmipn32"
13941	  ;;
13942	*64-bit*)
13943	  LD="${LD-ld} -melf64bmip"
13944	;;
13945      esac
13946    else
13947      case `$FILECMD conftest.$ac_objext` in
13948	*32-bit*)
13949	  LD="${LD-ld} -32"
13950	  ;;
13951	*N32*)
13952	  LD="${LD-ld} -n32"
13953	  ;;
13954	*64-bit*)
13955	  LD="${LD-ld} -64"
13956	  ;;
13957      esac
13958    fi
13959  fi
13960  rm -rf conftest*
13961  ;;
13962
13963mips64*-*linux*)
13964  # Find out what ABI is being produced by ac_compile, and set linker
13965  # options accordingly.
13966  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13967  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13968  (eval $ac_compile) 2>&5
13969  ac_status=$?
13970  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13971  test $ac_status = 0; }; then
13972    emul=elf
13973    case `$FILECMD conftest.$ac_objext` in
13974      *32-bit*)
13975	emul="${emul}32"
13976	;;
13977      *64-bit*)
13978	emul="${emul}64"
13979	;;
13980    esac
13981    case `$FILECMD conftest.$ac_objext` in
13982      *MSB*)
13983	emul="${emul}btsmip"
13984	;;
13985      *LSB*)
13986	emul="${emul}ltsmip"
13987	;;
13988    esac
13989    case `$FILECMD conftest.$ac_objext` in
13990      *N32*)
13991	emul="${emul}n32"
13992	;;
13993    esac
13994    LD="${LD-ld} -m $emul"
13995  fi
13996  rm -rf conftest*
13997  ;;
13998
13999x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14000s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14001  # Find out what ABI is being produced by ac_compile, and set linker
14002  # options accordingly.  Note that the listed cases only cover the
14003  # situations where additional linker options are needed (such as when
14004  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14005  # vice versa); the common cases where no linker options are needed do
14006  # not appear in the list.
14007  echo 'int i;' > conftest.$ac_ext
14008  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14009  (eval $ac_compile) 2>&5
14010  ac_status=$?
14011  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14012  test $ac_status = 0; }; then
14013    case `$FILECMD conftest.o` in
14014      *32-bit*)
14015	case $host in
14016	  x86_64-*kfreebsd*-gnu)
14017	    LD="${LD-ld} -m elf_i386_fbsd"
14018	    ;;
14019	  x86_64-*linux*)
14020	    case `$FILECMD conftest.o` in
14021	      *x86-64*)
14022		LD="${LD-ld} -m elf32_x86_64"
14023		;;
14024	      *)
14025		LD="${LD-ld} -m elf_i386"
14026		;;
14027	    esac
14028	    ;;
14029	  powerpc64le-*linux*)
14030	    LD="${LD-ld} -m elf32lppclinux"
14031	    ;;
14032	  powerpc64-*linux*)
14033	    LD="${LD-ld} -m elf32ppclinux"
14034	    ;;
14035	  s390x-*linux*)
14036	    LD="${LD-ld} -m elf_s390"
14037	    ;;
14038	  sparc64-*linux*)
14039	    LD="${LD-ld} -m elf32_sparc"
14040	    ;;
14041	esac
14042	;;
14043      *64-bit*)
14044	case $host in
14045	  x86_64-*kfreebsd*-gnu)
14046	    LD="${LD-ld} -m elf_x86_64_fbsd"
14047	    ;;
14048	  x86_64-*linux*)
14049	    LD="${LD-ld} -m elf_x86_64"
14050	    ;;
14051	  powerpcle-*linux*)
14052	    LD="${LD-ld} -m elf64lppc"
14053	    ;;
14054	  powerpc-*linux*)
14055	    LD="${LD-ld} -m elf64ppc"
14056	    ;;
14057	  s390*-*linux*|s390*-*tpf*)
14058	    LD="${LD-ld} -m elf64_s390"
14059	    ;;
14060	  sparc*-*linux*)
14061	    LD="${LD-ld} -m elf64_sparc"
14062	    ;;
14063	esac
14064	;;
14065    esac
14066  fi
14067  rm -rf conftest*
14068  ;;
14069
14070*-*-sco3.2v5*)
14071  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14072  SAVE_CFLAGS=$CFLAGS
14073  CFLAGS="$CFLAGS -belf"
14074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14075printf %s "checking whether the C compiler needs -belf... " >&6; }
14076if test ${lt_cv_cc_needs_belf+y}
14077then :
14078  printf %s "(cached) " >&6
14079else $as_nop
14080  ac_ext=c
14081ac_cpp='$CPP $CPPFLAGS'
14082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14084ac_compiler_gnu=$ac_cv_c_compiler_gnu
14085
14086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087/* end confdefs.h.  */
14088
14089int
14090main (void)
14091{
14092
14093  ;
14094  return 0;
14095}
14096_ACEOF
14097if ac_fn_c_try_link "$LINENO"
14098then :
14099  lt_cv_cc_needs_belf=yes
14100else $as_nop
14101  lt_cv_cc_needs_belf=no
14102fi
14103rm -f core conftest.err conftest.$ac_objext conftest.beam \
14104    conftest$ac_exeext conftest.$ac_ext
14105     ac_ext=c
14106ac_cpp='$CPP $CPPFLAGS'
14107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109ac_compiler_gnu=$ac_cv_c_compiler_gnu
14110
14111fi
14112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14113printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14114  if test yes != "$lt_cv_cc_needs_belf"; then
14115    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14116    CFLAGS=$SAVE_CFLAGS
14117  fi
14118  ;;
14119*-*solaris*)
14120  # Find out what ABI is being produced by ac_compile, and set linker
14121  # options accordingly.
14122  echo 'int i;' > conftest.$ac_ext
14123  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14124  (eval $ac_compile) 2>&5
14125  ac_status=$?
14126  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14127  test $ac_status = 0; }; then
14128    case `$FILECMD conftest.o` in
14129    *64-bit*)
14130      case $lt_cv_prog_gnu_ld in
14131      yes*)
14132        case $host in
14133        i?86-*-solaris*|x86_64-*-solaris*)
14134          LD="${LD-ld} -m elf_x86_64"
14135          ;;
14136        sparc*-*-solaris*)
14137          LD="${LD-ld} -m elf64_sparc"
14138          ;;
14139        esac
14140        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14141        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14142          LD=${LD-ld}_sol2
14143        fi
14144        ;;
14145      *)
14146	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14147	  LD="${LD-ld} -64"
14148	fi
14149	;;
14150      esac
14151      ;;
14152    esac
14153  fi
14154  rm -rf conftest*
14155  ;;
14156esac
14157
14158need_locks=$enable_libtool_lock
14159
14160if test -n "$ac_tool_prefix"; then
14161  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14162set dummy ${ac_tool_prefix}mt; ac_word=$2
14163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164printf %s "checking for $ac_word... " >&6; }
14165if test ${ac_cv_prog_MANIFEST_TOOL+y}
14166then :
14167  printf %s "(cached) " >&6
14168else $as_nop
14169  if test -n "$MANIFEST_TOOL"; then
14170  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14171else
14172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173for as_dir in $PATH
14174do
14175  IFS=$as_save_IFS
14176  case $as_dir in #(((
14177    '') as_dir=./ ;;
14178    */) ;;
14179    *) as_dir=$as_dir/ ;;
14180  esac
14181    for ac_exec_ext in '' $ac_executable_extensions; do
14182  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14183    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14184    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14185    break 2
14186  fi
14187done
14188  done
14189IFS=$as_save_IFS
14190
14191fi
14192fi
14193MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14194if test -n "$MANIFEST_TOOL"; then
14195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14196printf "%s\n" "$MANIFEST_TOOL" >&6; }
14197else
14198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199printf "%s\n" "no" >&6; }
14200fi
14201
14202
14203fi
14204if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14205  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14206  # Extract the first word of "mt", so it can be a program name with args.
14207set dummy mt; ac_word=$2
14208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209printf %s "checking for $ac_word... " >&6; }
14210if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14211then :
14212  printf %s "(cached) " >&6
14213else $as_nop
14214  if test -n "$ac_ct_MANIFEST_TOOL"; then
14215  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14216else
14217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218for as_dir in $PATH
14219do
14220  IFS=$as_save_IFS
14221  case $as_dir in #(((
14222    '') as_dir=./ ;;
14223    */) ;;
14224    *) as_dir=$as_dir/ ;;
14225  esac
14226    for ac_exec_ext in '' $ac_executable_extensions; do
14227  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14228    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14229    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14230    break 2
14231  fi
14232done
14233  done
14234IFS=$as_save_IFS
14235
14236fi
14237fi
14238ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14239if test -n "$ac_ct_MANIFEST_TOOL"; then
14240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14241printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14242else
14243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14244printf "%s\n" "no" >&6; }
14245fi
14246
14247  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14248    MANIFEST_TOOL=":"
14249  else
14250    case $cross_compiling:$ac_tool_warned in
14251yes:)
14252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14253printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14254ac_tool_warned=yes ;;
14255esac
14256    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14257  fi
14258else
14259  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14260fi
14261
14262test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14264printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14265if test ${lt_cv_path_mainfest_tool+y}
14266then :
14267  printf %s "(cached) " >&6
14268else $as_nop
14269  lt_cv_path_mainfest_tool=no
14270  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14271  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14272  cat conftest.err >&5
14273  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14274    lt_cv_path_mainfest_tool=yes
14275  fi
14276  rm -f conftest*
14277fi
14278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14279printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14280if test yes != "$lt_cv_path_mainfest_tool"; then
14281  MANIFEST_TOOL=:
14282fi
14283
14284
14285
14286
14287
14288
14289  case $host_os in
14290    rhapsody* | darwin*)
14291    if test -n "$ac_tool_prefix"; then
14292  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14293set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295printf %s "checking for $ac_word... " >&6; }
14296if test ${ac_cv_prog_DSYMUTIL+y}
14297then :
14298  printf %s "(cached) " >&6
14299else $as_nop
14300  if test -n "$DSYMUTIL"; then
14301  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14302else
14303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14304for as_dir in $PATH
14305do
14306  IFS=$as_save_IFS
14307  case $as_dir in #(((
14308    '') as_dir=./ ;;
14309    */) ;;
14310    *) as_dir=$as_dir/ ;;
14311  esac
14312    for ac_exec_ext in '' $ac_executable_extensions; do
14313  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14314    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14315    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14316    break 2
14317  fi
14318done
14319  done
14320IFS=$as_save_IFS
14321
14322fi
14323fi
14324DSYMUTIL=$ac_cv_prog_DSYMUTIL
14325if test -n "$DSYMUTIL"; then
14326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14327printf "%s\n" "$DSYMUTIL" >&6; }
14328else
14329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330printf "%s\n" "no" >&6; }
14331fi
14332
14333
14334fi
14335if test -z "$ac_cv_prog_DSYMUTIL"; then
14336  ac_ct_DSYMUTIL=$DSYMUTIL
14337  # Extract the first word of "dsymutil", so it can be a program name with args.
14338set dummy dsymutil; ac_word=$2
14339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14340printf %s "checking for $ac_word... " >&6; }
14341if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14342then :
14343  printf %s "(cached) " >&6
14344else $as_nop
14345  if test -n "$ac_ct_DSYMUTIL"; then
14346  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14347else
14348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349for as_dir in $PATH
14350do
14351  IFS=$as_save_IFS
14352  case $as_dir in #(((
14353    '') as_dir=./ ;;
14354    */) ;;
14355    *) as_dir=$as_dir/ ;;
14356  esac
14357    for ac_exec_ext in '' $ac_executable_extensions; do
14358  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14359    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14360    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14361    break 2
14362  fi
14363done
14364  done
14365IFS=$as_save_IFS
14366
14367fi
14368fi
14369ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14370if test -n "$ac_ct_DSYMUTIL"; then
14371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14372printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14373else
14374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375printf "%s\n" "no" >&6; }
14376fi
14377
14378  if test "x$ac_ct_DSYMUTIL" = x; then
14379    DSYMUTIL=":"
14380  else
14381    case $cross_compiling:$ac_tool_warned in
14382yes:)
14383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14384printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14385ac_tool_warned=yes ;;
14386esac
14387    DSYMUTIL=$ac_ct_DSYMUTIL
14388  fi
14389else
14390  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14391fi
14392
14393    if test -n "$ac_tool_prefix"; then
14394  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14395set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14397printf %s "checking for $ac_word... " >&6; }
14398if test ${ac_cv_prog_NMEDIT+y}
14399then :
14400  printf %s "(cached) " >&6
14401else $as_nop
14402  if test -n "$NMEDIT"; then
14403  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14404else
14405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406for as_dir in $PATH
14407do
14408  IFS=$as_save_IFS
14409  case $as_dir in #(((
14410    '') as_dir=./ ;;
14411    */) ;;
14412    *) as_dir=$as_dir/ ;;
14413  esac
14414    for ac_exec_ext in '' $ac_executable_extensions; do
14415  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14416    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14417    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14418    break 2
14419  fi
14420done
14421  done
14422IFS=$as_save_IFS
14423
14424fi
14425fi
14426NMEDIT=$ac_cv_prog_NMEDIT
14427if test -n "$NMEDIT"; then
14428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14429printf "%s\n" "$NMEDIT" >&6; }
14430else
14431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432printf "%s\n" "no" >&6; }
14433fi
14434
14435
14436fi
14437if test -z "$ac_cv_prog_NMEDIT"; then
14438  ac_ct_NMEDIT=$NMEDIT
14439  # Extract the first word of "nmedit", so it can be a program name with args.
14440set dummy nmedit; ac_word=$2
14441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442printf %s "checking for $ac_word... " >&6; }
14443if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14444then :
14445  printf %s "(cached) " >&6
14446else $as_nop
14447  if test -n "$ac_ct_NMEDIT"; then
14448  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14449else
14450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451for as_dir in $PATH
14452do
14453  IFS=$as_save_IFS
14454  case $as_dir in #(((
14455    '') as_dir=./ ;;
14456    */) ;;
14457    *) as_dir=$as_dir/ ;;
14458  esac
14459    for ac_exec_ext in '' $ac_executable_extensions; do
14460  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14461    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14462    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14463    break 2
14464  fi
14465done
14466  done
14467IFS=$as_save_IFS
14468
14469fi
14470fi
14471ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14472if test -n "$ac_ct_NMEDIT"; then
14473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14474printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14475else
14476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477printf "%s\n" "no" >&6; }
14478fi
14479
14480  if test "x$ac_ct_NMEDIT" = x; then
14481    NMEDIT=":"
14482  else
14483    case $cross_compiling:$ac_tool_warned in
14484yes:)
14485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14486printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14487ac_tool_warned=yes ;;
14488esac
14489    NMEDIT=$ac_ct_NMEDIT
14490  fi
14491else
14492  NMEDIT="$ac_cv_prog_NMEDIT"
14493fi
14494
14495    if test -n "$ac_tool_prefix"; then
14496  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14497set dummy ${ac_tool_prefix}lipo; ac_word=$2
14498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14499printf %s "checking for $ac_word... " >&6; }
14500if test ${ac_cv_prog_LIPO+y}
14501then :
14502  printf %s "(cached) " >&6
14503else $as_nop
14504  if test -n "$LIPO"; then
14505  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14506else
14507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14508for as_dir in $PATH
14509do
14510  IFS=$as_save_IFS
14511  case $as_dir in #(((
14512    '') as_dir=./ ;;
14513    */) ;;
14514    *) as_dir=$as_dir/ ;;
14515  esac
14516    for ac_exec_ext in '' $ac_executable_extensions; do
14517  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14518    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14519    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14520    break 2
14521  fi
14522done
14523  done
14524IFS=$as_save_IFS
14525
14526fi
14527fi
14528LIPO=$ac_cv_prog_LIPO
14529if test -n "$LIPO"; then
14530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14531printf "%s\n" "$LIPO" >&6; }
14532else
14533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14534printf "%s\n" "no" >&6; }
14535fi
14536
14537
14538fi
14539if test -z "$ac_cv_prog_LIPO"; then
14540  ac_ct_LIPO=$LIPO
14541  # Extract the first word of "lipo", so it can be a program name with args.
14542set dummy lipo; ac_word=$2
14543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14544printf %s "checking for $ac_word... " >&6; }
14545if test ${ac_cv_prog_ac_ct_LIPO+y}
14546then :
14547  printf %s "(cached) " >&6
14548else $as_nop
14549  if test -n "$ac_ct_LIPO"; then
14550  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14551else
14552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553for as_dir in $PATH
14554do
14555  IFS=$as_save_IFS
14556  case $as_dir in #(((
14557    '') as_dir=./ ;;
14558    */) ;;
14559    *) as_dir=$as_dir/ ;;
14560  esac
14561    for ac_exec_ext in '' $ac_executable_extensions; do
14562  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14563    ac_cv_prog_ac_ct_LIPO="lipo"
14564    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14565    break 2
14566  fi
14567done
14568  done
14569IFS=$as_save_IFS
14570
14571fi
14572fi
14573ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14574if test -n "$ac_ct_LIPO"; then
14575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14576printf "%s\n" "$ac_ct_LIPO" >&6; }
14577else
14578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579printf "%s\n" "no" >&6; }
14580fi
14581
14582  if test "x$ac_ct_LIPO" = x; then
14583    LIPO=":"
14584  else
14585    case $cross_compiling:$ac_tool_warned in
14586yes:)
14587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14588printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14589ac_tool_warned=yes ;;
14590esac
14591    LIPO=$ac_ct_LIPO
14592  fi
14593else
14594  LIPO="$ac_cv_prog_LIPO"
14595fi
14596
14597    if test -n "$ac_tool_prefix"; then
14598  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14599set dummy ${ac_tool_prefix}otool; ac_word=$2
14600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14601printf %s "checking for $ac_word... " >&6; }
14602if test ${ac_cv_prog_OTOOL+y}
14603then :
14604  printf %s "(cached) " >&6
14605else $as_nop
14606  if test -n "$OTOOL"; then
14607  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14608else
14609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610for as_dir in $PATH
14611do
14612  IFS=$as_save_IFS
14613  case $as_dir in #(((
14614    '') as_dir=./ ;;
14615    */) ;;
14616    *) as_dir=$as_dir/ ;;
14617  esac
14618    for ac_exec_ext in '' $ac_executable_extensions; do
14619  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14620    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14621    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14622    break 2
14623  fi
14624done
14625  done
14626IFS=$as_save_IFS
14627
14628fi
14629fi
14630OTOOL=$ac_cv_prog_OTOOL
14631if test -n "$OTOOL"; then
14632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14633printf "%s\n" "$OTOOL" >&6; }
14634else
14635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636printf "%s\n" "no" >&6; }
14637fi
14638
14639
14640fi
14641if test -z "$ac_cv_prog_OTOOL"; then
14642  ac_ct_OTOOL=$OTOOL
14643  # Extract the first word of "otool", so it can be a program name with args.
14644set dummy otool; ac_word=$2
14645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14646printf %s "checking for $ac_word... " >&6; }
14647if test ${ac_cv_prog_ac_ct_OTOOL+y}
14648then :
14649  printf %s "(cached) " >&6
14650else $as_nop
14651  if test -n "$ac_ct_OTOOL"; then
14652  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14653else
14654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655for as_dir in $PATH
14656do
14657  IFS=$as_save_IFS
14658  case $as_dir in #(((
14659    '') as_dir=./ ;;
14660    */) ;;
14661    *) as_dir=$as_dir/ ;;
14662  esac
14663    for ac_exec_ext in '' $ac_executable_extensions; do
14664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14665    ac_cv_prog_ac_ct_OTOOL="otool"
14666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14667    break 2
14668  fi
14669done
14670  done
14671IFS=$as_save_IFS
14672
14673fi
14674fi
14675ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14676if test -n "$ac_ct_OTOOL"; then
14677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14678printf "%s\n" "$ac_ct_OTOOL" >&6; }
14679else
14680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681printf "%s\n" "no" >&6; }
14682fi
14683
14684  if test "x$ac_ct_OTOOL" = x; then
14685    OTOOL=":"
14686  else
14687    case $cross_compiling:$ac_tool_warned in
14688yes:)
14689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14690printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14691ac_tool_warned=yes ;;
14692esac
14693    OTOOL=$ac_ct_OTOOL
14694  fi
14695else
14696  OTOOL="$ac_cv_prog_OTOOL"
14697fi
14698
14699    if test -n "$ac_tool_prefix"; then
14700  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14701set dummy ${ac_tool_prefix}otool64; ac_word=$2
14702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703printf %s "checking for $ac_word... " >&6; }
14704if test ${ac_cv_prog_OTOOL64+y}
14705then :
14706  printf %s "(cached) " >&6
14707else $as_nop
14708  if test -n "$OTOOL64"; then
14709  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14710else
14711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712for as_dir in $PATH
14713do
14714  IFS=$as_save_IFS
14715  case $as_dir in #(((
14716    '') as_dir=./ ;;
14717    */) ;;
14718    *) as_dir=$as_dir/ ;;
14719  esac
14720    for ac_exec_ext in '' $ac_executable_extensions; do
14721  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14722    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14723    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14724    break 2
14725  fi
14726done
14727  done
14728IFS=$as_save_IFS
14729
14730fi
14731fi
14732OTOOL64=$ac_cv_prog_OTOOL64
14733if test -n "$OTOOL64"; then
14734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14735printf "%s\n" "$OTOOL64" >&6; }
14736else
14737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14738printf "%s\n" "no" >&6; }
14739fi
14740
14741
14742fi
14743if test -z "$ac_cv_prog_OTOOL64"; then
14744  ac_ct_OTOOL64=$OTOOL64
14745  # Extract the first word of "otool64", so it can be a program name with args.
14746set dummy otool64; ac_word=$2
14747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14748printf %s "checking for $ac_word... " >&6; }
14749if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14750then :
14751  printf %s "(cached) " >&6
14752else $as_nop
14753  if test -n "$ac_ct_OTOOL64"; then
14754  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14755else
14756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757for as_dir in $PATH
14758do
14759  IFS=$as_save_IFS
14760  case $as_dir in #(((
14761    '') as_dir=./ ;;
14762    */) ;;
14763    *) as_dir=$as_dir/ ;;
14764  esac
14765    for ac_exec_ext in '' $ac_executable_extensions; do
14766  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14767    ac_cv_prog_ac_ct_OTOOL64="otool64"
14768    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14769    break 2
14770  fi
14771done
14772  done
14773IFS=$as_save_IFS
14774
14775fi
14776fi
14777ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14778if test -n "$ac_ct_OTOOL64"; then
14779  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14780printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14781else
14782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783printf "%s\n" "no" >&6; }
14784fi
14785
14786  if test "x$ac_ct_OTOOL64" = x; then
14787    OTOOL64=":"
14788  else
14789    case $cross_compiling:$ac_tool_warned in
14790yes:)
14791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14792printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14793ac_tool_warned=yes ;;
14794esac
14795    OTOOL64=$ac_ct_OTOOL64
14796  fi
14797else
14798  OTOOL64="$ac_cv_prog_OTOOL64"
14799fi
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14828printf %s "checking for -single_module linker flag... " >&6; }
14829if test ${lt_cv_apple_cc_single_mod+y}
14830then :
14831  printf %s "(cached) " >&6
14832else $as_nop
14833  lt_cv_apple_cc_single_mod=no
14834      if test -z "$LT_MULTI_MODULE"; then
14835	# By default we will add the -single_module flag. You can override
14836	# by either setting the environment variable LT_MULTI_MODULE
14837	# non-empty at configure time, or by adding -multi_module to the
14838	# link flags.
14839	rm -rf libconftest.dylib*
14840	echo "int foo(void){return 1;}" > conftest.c
14841	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14842-dynamiclib -Wl,-single_module conftest.c" >&5
14843	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14844	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14845        _lt_result=$?
14846	# If there is a non-empty error log, and "single_module"
14847	# appears in it, assume the flag caused a linker warning
14848        if test -s conftest.err && $GREP single_module conftest.err; then
14849	  cat conftest.err >&5
14850	# Otherwise, if the output was created with a 0 exit code from
14851	# the compiler, it worked.
14852	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14853	  lt_cv_apple_cc_single_mod=yes
14854	else
14855	  cat conftest.err >&5
14856	fi
14857	rm -rf libconftest.dylib*
14858	rm -f conftest.*
14859      fi
14860fi
14861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14862printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14863
14864    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14865printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14866if test ${lt_cv_ld_exported_symbols_list+y}
14867then :
14868  printf %s "(cached) " >&6
14869else $as_nop
14870  lt_cv_ld_exported_symbols_list=no
14871      save_LDFLAGS=$LDFLAGS
14872      echo "_main" > conftest.sym
14873      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14874      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h.  */
14876
14877int
14878main (void)
14879{
14880
14881  ;
14882  return 0;
14883}
14884_ACEOF
14885if ac_fn_c_try_link "$LINENO"
14886then :
14887  lt_cv_ld_exported_symbols_list=yes
14888else $as_nop
14889  lt_cv_ld_exported_symbols_list=no
14890fi
14891rm -f core conftest.err conftest.$ac_objext conftest.beam \
14892    conftest$ac_exeext conftest.$ac_ext
14893	LDFLAGS=$save_LDFLAGS
14894
14895fi
14896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14897printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14898
14899    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14900printf %s "checking for -force_load linker flag... " >&6; }
14901if test ${lt_cv_ld_force_load+y}
14902then :
14903  printf %s "(cached) " >&6
14904else $as_nop
14905  lt_cv_ld_force_load=no
14906      cat > conftest.c << _LT_EOF
14907int forced_loaded() { return 2;}
14908_LT_EOF
14909      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14910      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14911      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14912      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14913      echo "$RANLIB libconftest.a" >&5
14914      $RANLIB libconftest.a 2>&5
14915      cat > conftest.c << _LT_EOF
14916int main() { return 0;}
14917_LT_EOF
14918      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14919      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14920      _lt_result=$?
14921      if test -s conftest.err && $GREP force_load conftest.err; then
14922	cat conftest.err >&5
14923      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14924	lt_cv_ld_force_load=yes
14925      else
14926	cat conftest.err >&5
14927      fi
14928        rm -f conftest.err libconftest.a conftest conftest.c
14929        rm -rf conftest.dSYM
14930
14931fi
14932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14933printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14934    case $host_os in
14935    rhapsody* | darwin1.[012])
14936      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14937    darwin1.*)
14938      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14939    darwin*)
14940      case $MACOSX_DEPLOYMENT_TARGET,$host in
14941        10.[012],*|,*powerpc*-darwin[5-8]*)
14942          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14943        *)
14944          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14945      esac
14946    ;;
14947  esac
14948    if test yes = "$lt_cv_apple_cc_single_mod"; then
14949      _lt_dar_single_mod='$single_module'
14950    fi
14951    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14952      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14953    else
14954      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14955    fi
14956    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14957      _lt_dsymutil='~$DSYMUTIL $lib || :'
14958    else
14959      _lt_dsymutil=
14960    fi
14961    ;;
14962  esac
14963
14964# func_munge_path_list VARIABLE PATH
14965# -----------------------------------
14966# VARIABLE is name of variable containing _space_ separated list of
14967# directories to be munged by the contents of PATH, which is string
14968# having a format:
14969# "DIR[:DIR]:"
14970#       string "DIR[ DIR]" will be prepended to VARIABLE
14971# ":DIR[:DIR]"
14972#       string "DIR[ DIR]" will be appended to VARIABLE
14973# "DIRP[:DIRP]::[DIRA:]DIRA"
14974#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14975#       "DIRA[ DIRA]" will be appended to VARIABLE
14976# "DIR[:DIR]"
14977#       VARIABLE will be replaced by "DIR[ DIR]"
14978func_munge_path_list ()
14979{
14980    case x$2 in
14981    x)
14982        ;;
14983    *:)
14984        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14985        ;;
14986    x:*)
14987        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14988        ;;
14989    *::*)
14990        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14991        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14992        ;;
14993    *)
14994        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14995        ;;
14996    esac
14997}
14998
14999ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15000"
15001if test "x$ac_cv_header_dlfcn_h" = xyes
15002then :
15003  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15004
15005fi
15006
15007
15008
15009
15010
15011# Set options
15012
15013
15014
15015        enable_dlopen=no
15016
15017
15018  enable_win32_dll=no
15019
15020
15021            # Check whether --enable-shared was given.
15022if test ${enable_shared+y}
15023then :
15024  enableval=$enable_shared; p=${PACKAGE-default}
15025    case $enableval in
15026    yes) enable_shared=yes ;;
15027    no) enable_shared=no ;;
15028    *)
15029      enable_shared=no
15030      # Look at the argument we got.  We use all the common list separators.
15031      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15032      for pkg in $enableval; do
15033	IFS=$lt_save_ifs
15034	if test "X$pkg" = "X$p"; then
15035	  enable_shared=yes
15036	fi
15037      done
15038      IFS=$lt_save_ifs
15039      ;;
15040    esac
15041else $as_nop
15042  enable_shared=yes
15043fi
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055# Check whether --with-pic was given.
15056if test ${with_pic+y}
15057then :
15058  withval=$with_pic; lt_p=${PACKAGE-default}
15059    case $withval in
15060    yes|no) pic_mode=$withval ;;
15061    *)
15062      pic_mode=default
15063      # Look at the argument we got.  We use all the common list separators.
15064      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15065      for lt_pkg in $withval; do
15066	IFS=$lt_save_ifs
15067	if test "X$lt_pkg" = "X$lt_p"; then
15068	  pic_mode=yes
15069	fi
15070      done
15071      IFS=$lt_save_ifs
15072      ;;
15073    esac
15074else $as_nop
15075  pic_mode=default
15076fi
15077
15078
15079
15080
15081
15082
15083
15084
15085  # Check whether --enable-fast-install was given.
15086if test ${enable_fast_install+y}
15087then :
15088  enableval=$enable_fast_install; p=${PACKAGE-default}
15089    case $enableval in
15090    yes) enable_fast_install=yes ;;
15091    no) enable_fast_install=no ;;
15092    *)
15093      enable_fast_install=no
15094      # Look at the argument we got.  We use all the common list separators.
15095      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15096      for pkg in $enableval; do
15097	IFS=$lt_save_ifs
15098	if test "X$pkg" = "X$p"; then
15099	  enable_fast_install=yes
15100	fi
15101      done
15102      IFS=$lt_save_ifs
15103      ;;
15104    esac
15105else $as_nop
15106  enable_fast_install=yes
15107fi
15108
15109
15110
15111
15112
15113
15114
15115
15116  shared_archive_member_spec=
15117case $host,$enable_shared in
15118power*-*-aix[5-9]*,yes)
15119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15120printf %s "checking which variant of shared library versioning to provide... " >&6; }
15121
15122# Check whether --with-aix-soname was given.
15123if test ${with_aix_soname+y}
15124then :
15125  withval=$with_aix_soname; case $withval in
15126    aix|svr4|both)
15127      ;;
15128    *)
15129      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15130      ;;
15131    esac
15132    lt_cv_with_aix_soname=$with_aix_soname
15133else $as_nop
15134  if test ${lt_cv_with_aix_soname+y}
15135then :
15136  printf %s "(cached) " >&6
15137else $as_nop
15138  lt_cv_with_aix_soname=aix
15139fi
15140
15141    with_aix_soname=$lt_cv_with_aix_soname
15142fi
15143
15144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15145printf "%s\n" "$with_aix_soname" >&6; }
15146  if test aix != "$with_aix_soname"; then
15147    # For the AIX way of multilib, we name the shared archive member
15148    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15149    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15150    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15151    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15152    if test 64 = "${OBJECT_MODE-32}"; then
15153      shared_archive_member_spec=shr_64
15154    else
15155      shared_archive_member_spec=shr
15156    fi
15157  fi
15158  ;;
15159*)
15160  with_aix_soname=aix
15161  ;;
15162esac
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173# This can be used to rebuild libtool when needed
15174LIBTOOL_DEPS=$ltmain
15175
15176# Always use our own libtool.
15177LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208test -z "$LN_S" && LN_S="ln -s"
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223if test -n "${ZSH_VERSION+set}"; then
15224   setopt NO_GLOB_SUBST
15225fi
15226
15227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15228printf %s "checking for objdir... " >&6; }
15229if test ${lt_cv_objdir+y}
15230then :
15231  printf %s "(cached) " >&6
15232else $as_nop
15233  rm -f .libs 2>/dev/null
15234mkdir .libs 2>/dev/null
15235if test -d .libs; then
15236  lt_cv_objdir=.libs
15237else
15238  # MS-DOS does not allow filenames that begin with a dot.
15239  lt_cv_objdir=_libs
15240fi
15241rmdir .libs 2>/dev/null
15242fi
15243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15244printf "%s\n" "$lt_cv_objdir" >&6; }
15245objdir=$lt_cv_objdir
15246
15247
15248
15249
15250
15251printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15252
15253
15254
15255
15256case $host_os in
15257aix3*)
15258  # AIX sometimes has problems with the GCC collect2 program.  For some
15259  # reason, if we set the COLLECT_NAMES environment variable, the problems
15260  # vanish in a puff of smoke.
15261  if test set != "${COLLECT_NAMES+set}"; then
15262    COLLECT_NAMES=
15263    export COLLECT_NAMES
15264  fi
15265  ;;
15266esac
15267
15268# Global variables:
15269ofile=libtool
15270can_build_shared=yes
15271
15272# All known linkers require a '.a' archive for static linking (except MSVC and
15273# ICC, which need '.lib').
15274libext=a
15275
15276with_gnu_ld=$lt_cv_prog_gnu_ld
15277
15278old_CC=$CC
15279old_CFLAGS=$CFLAGS
15280
15281# Set sane defaults for various variables
15282test -z "$CC" && CC=cc
15283test -z "$LTCC" && LTCC=$CC
15284test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15285test -z "$LD" && LD=ld
15286test -z "$ac_objext" && ac_objext=o
15287
15288func_cc_basename $compiler
15289cc_basename=$func_cc_basename_result
15290
15291
15292# Only perform the check for file, if the check method requires it
15293test -z "$MAGIC_CMD" && MAGIC_CMD=file
15294case $deplibs_check_method in
15295file_magic*)
15296  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15297    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15298printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15299if test ${lt_cv_path_MAGIC_CMD+y}
15300then :
15301  printf %s "(cached) " >&6
15302else $as_nop
15303  case $MAGIC_CMD in
15304[\\/*] |  ?:[\\/]*)
15305  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15306  ;;
15307*)
15308  lt_save_MAGIC_CMD=$MAGIC_CMD
15309  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15310  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15311  for ac_dir in $ac_dummy; do
15312    IFS=$lt_save_ifs
15313    test -z "$ac_dir" && ac_dir=.
15314    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15315      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15316      if test -n "$file_magic_test_file"; then
15317	case $deplibs_check_method in
15318	"file_magic "*)
15319	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15320	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15321	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15322	    $EGREP "$file_magic_regex" > /dev/null; then
15323	    :
15324	  else
15325	    cat <<_LT_EOF 1>&2
15326
15327*** Warning: the command libtool uses to detect shared libraries,
15328*** $file_magic_cmd, produces output that libtool cannot recognize.
15329*** The result is that libtool may fail to recognize shared libraries
15330*** as such.  This will affect the creation of libtool libraries that
15331*** depend on shared libraries, but programs linked with such libtool
15332*** libraries will work regardless of this problem.  Nevertheless, you
15333*** may want to report the problem to your system manager and/or to
15334*** bug-libtool@gnu.org
15335
15336_LT_EOF
15337	  fi ;;
15338	esac
15339      fi
15340      break
15341    fi
15342  done
15343  IFS=$lt_save_ifs
15344  MAGIC_CMD=$lt_save_MAGIC_CMD
15345  ;;
15346esac
15347fi
15348
15349MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15350if test -n "$MAGIC_CMD"; then
15351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15352printf "%s\n" "$MAGIC_CMD" >&6; }
15353else
15354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355printf "%s\n" "no" >&6; }
15356fi
15357
15358
15359
15360
15361
15362if test -z "$lt_cv_path_MAGIC_CMD"; then
15363  if test -n "$ac_tool_prefix"; then
15364    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15365printf %s "checking for file... " >&6; }
15366if test ${lt_cv_path_MAGIC_CMD+y}
15367then :
15368  printf %s "(cached) " >&6
15369else $as_nop
15370  case $MAGIC_CMD in
15371[\\/*] |  ?:[\\/]*)
15372  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15373  ;;
15374*)
15375  lt_save_MAGIC_CMD=$MAGIC_CMD
15376  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15377  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15378  for ac_dir in $ac_dummy; do
15379    IFS=$lt_save_ifs
15380    test -z "$ac_dir" && ac_dir=.
15381    if test -f "$ac_dir/file"; then
15382      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15383      if test -n "$file_magic_test_file"; then
15384	case $deplibs_check_method in
15385	"file_magic "*)
15386	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15387	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15388	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15389	    $EGREP "$file_magic_regex" > /dev/null; then
15390	    :
15391	  else
15392	    cat <<_LT_EOF 1>&2
15393
15394*** Warning: the command libtool uses to detect shared libraries,
15395*** $file_magic_cmd, produces output that libtool cannot recognize.
15396*** The result is that libtool may fail to recognize shared libraries
15397*** as such.  This will affect the creation of libtool libraries that
15398*** depend on shared libraries, but programs linked with such libtool
15399*** libraries will work regardless of this problem.  Nevertheless, you
15400*** may want to report the problem to your system manager and/or to
15401*** bug-libtool@gnu.org
15402
15403_LT_EOF
15404	  fi ;;
15405	esac
15406      fi
15407      break
15408    fi
15409  done
15410  IFS=$lt_save_ifs
15411  MAGIC_CMD=$lt_save_MAGIC_CMD
15412  ;;
15413esac
15414fi
15415
15416MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15417if test -n "$MAGIC_CMD"; then
15418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15419printf "%s\n" "$MAGIC_CMD" >&6; }
15420else
15421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15422printf "%s\n" "no" >&6; }
15423fi
15424
15425
15426  else
15427    MAGIC_CMD=:
15428  fi
15429fi
15430
15431  fi
15432  ;;
15433esac
15434
15435# Use C for the default configuration in the libtool script
15436
15437lt_save_CC=$CC
15438ac_ext=c
15439ac_cpp='$CPP $CPPFLAGS'
15440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15442ac_compiler_gnu=$ac_cv_c_compiler_gnu
15443
15444
15445# Source file extension for C test sources.
15446ac_ext=c
15447
15448# Object file extension for compiled C test sources.
15449objext=o
15450objext=$objext
15451
15452# Code to be used in simple compile tests
15453lt_simple_compile_test_code="int some_variable = 0;"
15454
15455# Code to be used in simple link tests
15456lt_simple_link_test_code='int main(){return(0);}'
15457
15458
15459
15460
15461
15462
15463
15464# If no C compiler was specified, use CC.
15465LTCC=${LTCC-"$CC"}
15466
15467# If no C compiler flags were specified, use CFLAGS.
15468LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15469
15470# Allow CC to be a program name with arguments.
15471compiler=$CC
15472
15473# Save the default compiler, since it gets overwritten when the other
15474# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15475compiler_DEFAULT=$CC
15476
15477# save warnings/boilerplate of simple test code
15478ac_outfile=conftest.$ac_objext
15479echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15480eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15481_lt_compiler_boilerplate=`cat conftest.err`
15482$RM conftest*
15483
15484ac_outfile=conftest.$ac_objext
15485echo "$lt_simple_link_test_code" >conftest.$ac_ext
15486eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15487_lt_linker_boilerplate=`cat conftest.err`
15488$RM -r conftest*
15489
15490
15491if test -n "$compiler"; then
15492
15493lt_prog_compiler_no_builtin_flag=
15494
15495if test yes = "$GCC"; then
15496  case $cc_basename in
15497  nvcc*)
15498    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15499  *)
15500    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15501  esac
15502
15503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15504printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15505if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15506then :
15507  printf %s "(cached) " >&6
15508else $as_nop
15509  lt_cv_prog_compiler_rtti_exceptions=no
15510   ac_outfile=conftest.$ac_objext
15511   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15512   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15513   # Insert the option either (1) after the last *FLAGS variable, or
15514   # (2) before a word containing "conftest.", or (3) at the end.
15515   # Note that $ac_compile itself does not contain backslashes and begins
15516   # with a dollar sign (not a hyphen), so the echo should work correctly.
15517   # The option is referenced via a variable to avoid confusing sed.
15518   lt_compile=`echo "$ac_compile" | $SED \
15519   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15520   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15521   -e 's:$: $lt_compiler_flag:'`
15522   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15523   (eval "$lt_compile" 2>conftest.err)
15524   ac_status=$?
15525   cat conftest.err >&5
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   if (exit $ac_status) && test -s "$ac_outfile"; then
15528     # The compiler can only warn and ignore the option if not recognized
15529     # So say no if there are warnings other than the usual output.
15530     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15531     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15532     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15533       lt_cv_prog_compiler_rtti_exceptions=yes
15534     fi
15535   fi
15536   $RM conftest*
15537
15538fi
15539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15540printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15541
15542if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15543    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15544else
15545    :
15546fi
15547
15548fi
15549
15550
15551
15552
15553
15554
15555  lt_prog_compiler_wl=
15556lt_prog_compiler_pic=
15557lt_prog_compiler_static=
15558
15559
15560  if test yes = "$GCC"; then
15561    lt_prog_compiler_wl='-Wl,'
15562    lt_prog_compiler_static='-static'
15563
15564    case $host_os in
15565      aix*)
15566      # All AIX code is PIC.
15567      if test ia64 = "$host_cpu"; then
15568	# AIX 5 now supports IA64 processor
15569	lt_prog_compiler_static='-Bstatic'
15570      fi
15571      lt_prog_compiler_pic='-fPIC'
15572      ;;
15573
15574    amigaos*)
15575      case $host_cpu in
15576      powerpc)
15577            # see comment about AmigaOS4 .so support
15578            lt_prog_compiler_pic='-fPIC'
15579        ;;
15580      m68k)
15581            # FIXME: we need at least 68020 code to build shared libraries, but
15582            # adding the '-m68020' flag to GCC prevents building anything better,
15583            # like '-m68040'.
15584            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15585        ;;
15586      esac
15587      ;;
15588
15589    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15590      # PIC is the default for these OSes.
15591      ;;
15592
15593    mingw* | cygwin* | pw32* | os2* | cegcc*)
15594      # This hack is so that the source file can tell whether it is being
15595      # built for inclusion in a dll (and should export symbols for example).
15596      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15597      # (--disable-auto-import) libraries
15598      lt_prog_compiler_pic='-DDLL_EXPORT'
15599      case $host_os in
15600      os2*)
15601	lt_prog_compiler_static='$wl-static'
15602	;;
15603      esac
15604      ;;
15605
15606    darwin* | rhapsody*)
15607      # PIC is the default on this platform
15608      # Common symbols not allowed in MH_DYLIB files
15609      lt_prog_compiler_pic='-fno-common'
15610      ;;
15611
15612    haiku*)
15613      # PIC is the default for Haiku.
15614      # The "-static" flag exists, but is broken.
15615      lt_prog_compiler_static=
15616      ;;
15617
15618    hpux*)
15619      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15620      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15621      # sets the default TLS model and affects inlining.
15622      case $host_cpu in
15623      hppa*64*)
15624	# +Z the default
15625	;;
15626      *)
15627	lt_prog_compiler_pic='-fPIC'
15628	;;
15629      esac
15630      ;;
15631
15632    interix[3-9]*)
15633      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15634      # Instead, we relocate shared libraries at runtime.
15635      ;;
15636
15637    msdosdjgpp*)
15638      # Just because we use GCC doesn't mean we suddenly get shared libraries
15639      # on systems that don't support them.
15640      lt_prog_compiler_can_build_shared=no
15641      enable_shared=no
15642      ;;
15643
15644    *nto* | *qnx*)
15645      # QNX uses GNU C++, but need to define -shared option too, otherwise
15646      # it will coredump.
15647      lt_prog_compiler_pic='-fPIC -shared'
15648      ;;
15649
15650    sysv4*MP*)
15651      if test -d /usr/nec; then
15652	lt_prog_compiler_pic=-Kconform_pic
15653      fi
15654      ;;
15655
15656    *)
15657      lt_prog_compiler_pic='-fPIC'
15658      ;;
15659    esac
15660
15661    case $cc_basename in
15662    nvcc*) # Cuda Compiler Driver 2.2
15663      lt_prog_compiler_wl='-Xlinker '
15664      if test -n "$lt_prog_compiler_pic"; then
15665        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15666      fi
15667      ;;
15668    esac
15669  else
15670    # PORTME Check for flag to pass linker flags through the system compiler.
15671    case $host_os in
15672    aix*)
15673      lt_prog_compiler_wl='-Wl,'
15674      if test ia64 = "$host_cpu"; then
15675	# AIX 5 now supports IA64 processor
15676	lt_prog_compiler_static='-Bstatic'
15677      else
15678	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15679      fi
15680      ;;
15681
15682    darwin* | rhapsody*)
15683      # PIC is the default on this platform
15684      # Common symbols not allowed in MH_DYLIB files
15685      lt_prog_compiler_pic='-fno-common'
15686      case $cc_basename in
15687      nagfor*)
15688        # NAG Fortran compiler
15689        lt_prog_compiler_wl='-Wl,-Wl,,'
15690        lt_prog_compiler_pic='-PIC'
15691        lt_prog_compiler_static='-Bstatic'
15692        ;;
15693      esac
15694      ;;
15695
15696    mingw* | cygwin* | pw32* | os2* | cegcc*)
15697      # This hack is so that the source file can tell whether it is being
15698      # built for inclusion in a dll (and should export symbols for example).
15699      lt_prog_compiler_pic='-DDLL_EXPORT'
15700      case $host_os in
15701      os2*)
15702	lt_prog_compiler_static='$wl-static'
15703	;;
15704      esac
15705      ;;
15706
15707    hpux9* | hpux10* | hpux11*)
15708      lt_prog_compiler_wl='-Wl,'
15709      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15710      # not for PA HP-UX.
15711      case $host_cpu in
15712      hppa*64*|ia64*)
15713	# +Z the default
15714	;;
15715      *)
15716	lt_prog_compiler_pic='+Z'
15717	;;
15718      esac
15719      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15720      lt_prog_compiler_static='$wl-a ${wl}archive'
15721      ;;
15722
15723    irix5* | irix6* | nonstopux*)
15724      lt_prog_compiler_wl='-Wl,'
15725      # PIC (with -KPIC) is the default.
15726      lt_prog_compiler_static='-non_shared'
15727      ;;
15728
15729    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15730      case $cc_basename in
15731      # old Intel for x86_64, which still supported -KPIC.
15732      ecc*)
15733	lt_prog_compiler_wl='-Wl,'
15734	lt_prog_compiler_pic='-KPIC'
15735	lt_prog_compiler_static='-static'
15736        ;;
15737      # icc used to be incompatible with GCC.
15738      # ICC 10 doesn't accept -KPIC any more.
15739      icc* | ifort*)
15740	lt_prog_compiler_wl='-Wl,'
15741	lt_prog_compiler_pic='-fPIC'
15742	lt_prog_compiler_static='-static'
15743        ;;
15744      # Lahey Fortran 8.1.
15745      lf95*)
15746	lt_prog_compiler_wl='-Wl,'
15747	lt_prog_compiler_pic='--shared'
15748	lt_prog_compiler_static='--static'
15749	;;
15750      nagfor*)
15751	# NAG Fortran compiler
15752	lt_prog_compiler_wl='-Wl,-Wl,,'
15753	lt_prog_compiler_pic='-PIC'
15754	lt_prog_compiler_static='-Bstatic'
15755	;;
15756      tcc*)
15757	# Fabrice Bellard et al's Tiny C Compiler
15758	lt_prog_compiler_wl='-Wl,'
15759	lt_prog_compiler_pic='-fPIC'
15760	lt_prog_compiler_static='-static'
15761	;;
15762      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15763        # Portland Group compilers (*not* the Pentium gcc compiler,
15764	# which looks to be a dead project)
15765	lt_prog_compiler_wl='-Wl,'
15766	lt_prog_compiler_pic='-fpic'
15767	lt_prog_compiler_static='-Bstatic'
15768        ;;
15769      ccc*)
15770        lt_prog_compiler_wl='-Wl,'
15771        # All Alpha code is PIC.
15772        lt_prog_compiler_static='-non_shared'
15773        ;;
15774      xl* | bgxl* | bgf* | mpixl*)
15775	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15776	lt_prog_compiler_wl='-Wl,'
15777	lt_prog_compiler_pic='-qpic'
15778	lt_prog_compiler_static='-qstaticlink'
15779	;;
15780      *)
15781	case `$CC -V 2>&1 | $SED 5q` in
15782	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15783	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15784	  lt_prog_compiler_pic='-KPIC'
15785	  lt_prog_compiler_static='-Bstatic'
15786	  lt_prog_compiler_wl=''
15787	  ;;
15788	*Sun\ F* | *Sun*Fortran*)
15789	  lt_prog_compiler_pic='-KPIC'
15790	  lt_prog_compiler_static='-Bstatic'
15791	  lt_prog_compiler_wl='-Qoption ld '
15792	  ;;
15793	*Sun\ C*)
15794	  # Sun C 5.9
15795	  lt_prog_compiler_pic='-KPIC'
15796	  lt_prog_compiler_static='-Bstatic'
15797	  lt_prog_compiler_wl='-Wl,'
15798	  ;;
15799        *Intel*\ [CF]*Compiler*)
15800	  lt_prog_compiler_wl='-Wl,'
15801	  lt_prog_compiler_pic='-fPIC'
15802	  lt_prog_compiler_static='-static'
15803	  ;;
15804	*Portland\ Group*)
15805	  lt_prog_compiler_wl='-Wl,'
15806	  lt_prog_compiler_pic='-fpic'
15807	  lt_prog_compiler_static='-Bstatic'
15808	  ;;
15809	esac
15810	;;
15811      esac
15812      ;;
15813
15814    newsos6)
15815      lt_prog_compiler_pic='-KPIC'
15816      lt_prog_compiler_static='-Bstatic'
15817      ;;
15818
15819    *nto* | *qnx*)
15820      # QNX uses GNU C++, but need to define -shared option too, otherwise
15821      # it will coredump.
15822      lt_prog_compiler_pic='-fPIC -shared'
15823      ;;
15824
15825    osf3* | osf4* | osf5*)
15826      lt_prog_compiler_wl='-Wl,'
15827      # All OSF/1 code is PIC.
15828      lt_prog_compiler_static='-non_shared'
15829      ;;
15830
15831    rdos*)
15832      lt_prog_compiler_static='-non_shared'
15833      ;;
15834
15835    solaris*)
15836      lt_prog_compiler_pic='-KPIC'
15837      lt_prog_compiler_static='-Bstatic'
15838      case $cc_basename in
15839      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15840	lt_prog_compiler_wl='-Qoption ld ';;
15841      *)
15842	lt_prog_compiler_wl='-Wl,';;
15843      esac
15844      ;;
15845
15846    sunos4*)
15847      lt_prog_compiler_wl='-Qoption ld '
15848      lt_prog_compiler_pic='-PIC'
15849      lt_prog_compiler_static='-Bstatic'
15850      ;;
15851
15852    sysv4 | sysv4.2uw2* | sysv4.3*)
15853      lt_prog_compiler_wl='-Wl,'
15854      lt_prog_compiler_pic='-KPIC'
15855      lt_prog_compiler_static='-Bstatic'
15856      ;;
15857
15858    sysv4*MP*)
15859      if test -d /usr/nec; then
15860	lt_prog_compiler_pic='-Kconform_pic'
15861	lt_prog_compiler_static='-Bstatic'
15862      fi
15863      ;;
15864
15865    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15866      lt_prog_compiler_wl='-Wl,'
15867      lt_prog_compiler_pic='-KPIC'
15868      lt_prog_compiler_static='-Bstatic'
15869      ;;
15870
15871    unicos*)
15872      lt_prog_compiler_wl='-Wl,'
15873      lt_prog_compiler_can_build_shared=no
15874      ;;
15875
15876    uts4*)
15877      lt_prog_compiler_pic='-pic'
15878      lt_prog_compiler_static='-Bstatic'
15879      ;;
15880
15881    *)
15882      lt_prog_compiler_can_build_shared=no
15883      ;;
15884    esac
15885  fi
15886
15887case $host_os in
15888  # For platforms that do not support PIC, -DPIC is meaningless:
15889  *djgpp*)
15890    lt_prog_compiler_pic=
15891    ;;
15892  *)
15893    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15894    ;;
15895esac
15896
15897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15898printf %s "checking for $compiler option to produce PIC... " >&6; }
15899if test ${lt_cv_prog_compiler_pic+y}
15900then :
15901  printf %s "(cached) " >&6
15902else $as_nop
15903  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15904fi
15905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15906printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15907lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15908
15909#
15910# Check to make sure the PIC flag actually works.
15911#
15912if test -n "$lt_prog_compiler_pic"; then
15913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15914printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15915if test ${lt_cv_prog_compiler_pic_works+y}
15916then :
15917  printf %s "(cached) " >&6
15918else $as_nop
15919  lt_cv_prog_compiler_pic_works=no
15920   ac_outfile=conftest.$ac_objext
15921   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15922   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15923   # Insert the option either (1) after the last *FLAGS variable, or
15924   # (2) before a word containing "conftest.", or (3) at the end.
15925   # Note that $ac_compile itself does not contain backslashes and begins
15926   # with a dollar sign (not a hyphen), so the echo should work correctly.
15927   # The option is referenced via a variable to avoid confusing sed.
15928   lt_compile=`echo "$ac_compile" | $SED \
15929   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15930   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15931   -e 's:$: $lt_compiler_flag:'`
15932   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15933   (eval "$lt_compile" 2>conftest.err)
15934   ac_status=$?
15935   cat conftest.err >&5
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   if (exit $ac_status) && test -s "$ac_outfile"; then
15938     # The compiler can only warn and ignore the option if not recognized
15939     # So say no if there are warnings other than the usual output.
15940     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15941     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15942     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15943       lt_cv_prog_compiler_pic_works=yes
15944     fi
15945   fi
15946   $RM conftest*
15947
15948fi
15949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15950printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15951
15952if test yes = "$lt_cv_prog_compiler_pic_works"; then
15953    case $lt_prog_compiler_pic in
15954     "" | " "*) ;;
15955     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15956     esac
15957else
15958    lt_prog_compiler_pic=
15959     lt_prog_compiler_can_build_shared=no
15960fi
15961
15962fi
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974#
15975# Check to make sure the static flag actually works.
15976#
15977wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15979printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15980if test ${lt_cv_prog_compiler_static_works+y}
15981then :
15982  printf %s "(cached) " >&6
15983else $as_nop
15984  lt_cv_prog_compiler_static_works=no
15985   save_LDFLAGS=$LDFLAGS
15986   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15987   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15988   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15989     # The linker can only warn and ignore the option if not recognized
15990     # So say no if there are warnings
15991     if test -s conftest.err; then
15992       # Append any errors to the config.log.
15993       cat conftest.err 1>&5
15994       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15995       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15996       if diff conftest.exp conftest.er2 >/dev/null; then
15997         lt_cv_prog_compiler_static_works=yes
15998       fi
15999     else
16000       lt_cv_prog_compiler_static_works=yes
16001     fi
16002   fi
16003   $RM -r conftest*
16004   LDFLAGS=$save_LDFLAGS
16005
16006fi
16007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16008printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16009
16010if test yes = "$lt_cv_prog_compiler_static_works"; then
16011    :
16012else
16013    lt_prog_compiler_static=
16014fi
16015
16016
16017
16018
16019
16020
16021
16022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16023printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16024if test ${lt_cv_prog_compiler_c_o+y}
16025then :
16026  printf %s "(cached) " >&6
16027else $as_nop
16028  lt_cv_prog_compiler_c_o=no
16029   $RM -r conftest 2>/dev/null
16030   mkdir conftest
16031   cd conftest
16032   mkdir out
16033   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16034
16035   lt_compiler_flag="-o out/conftest2.$ac_objext"
16036   # Insert the option either (1) after the last *FLAGS variable, or
16037   # (2) before a word containing "conftest.", or (3) at the end.
16038   # Note that $ac_compile itself does not contain backslashes and begins
16039   # with a dollar sign (not a hyphen), so the echo should work correctly.
16040   lt_compile=`echo "$ac_compile" | $SED \
16041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16043   -e 's:$: $lt_compiler_flag:'`
16044   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16045   (eval "$lt_compile" 2>out/conftest.err)
16046   ac_status=$?
16047   cat out/conftest.err >&5
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16050   then
16051     # The compiler can only warn and ignore the option if not recognized
16052     # So say no if there are warnings
16053     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16054     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16055     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16056       lt_cv_prog_compiler_c_o=yes
16057     fi
16058   fi
16059   chmod u+w . 2>&5
16060   $RM conftest*
16061   # SGI C++ compiler will create directory out/ii_files/ for
16062   # template instantiation
16063   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16064   $RM out/* && rmdir out
16065   cd ..
16066   $RM -r conftest
16067   $RM conftest*
16068
16069fi
16070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16071printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16072
16073
16074
16075
16076
16077
16078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16079printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16080if test ${lt_cv_prog_compiler_c_o+y}
16081then :
16082  printf %s "(cached) " >&6
16083else $as_nop
16084  lt_cv_prog_compiler_c_o=no
16085   $RM -r conftest 2>/dev/null
16086   mkdir conftest
16087   cd conftest
16088   mkdir out
16089   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16090
16091   lt_compiler_flag="-o out/conftest2.$ac_objext"
16092   # Insert the option either (1) after the last *FLAGS variable, or
16093   # (2) before a word containing "conftest.", or (3) at the end.
16094   # Note that $ac_compile itself does not contain backslashes and begins
16095   # with a dollar sign (not a hyphen), so the echo should work correctly.
16096   lt_compile=`echo "$ac_compile" | $SED \
16097   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16098   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16099   -e 's:$: $lt_compiler_flag:'`
16100   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16101   (eval "$lt_compile" 2>out/conftest.err)
16102   ac_status=$?
16103   cat out/conftest.err >&5
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16106   then
16107     # The compiler can only warn and ignore the option if not recognized
16108     # So say no if there are warnings
16109     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16110     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16111     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16112       lt_cv_prog_compiler_c_o=yes
16113     fi
16114   fi
16115   chmod u+w . 2>&5
16116   $RM conftest*
16117   # SGI C++ compiler will create directory out/ii_files/ for
16118   # template instantiation
16119   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16120   $RM out/* && rmdir out
16121   cd ..
16122   $RM -r conftest
16123   $RM conftest*
16124
16125fi
16126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16127printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16128
16129
16130
16131
16132hard_links=nottested
16133if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16134  # do not overwrite the value of need_locks provided by the user
16135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16136printf %s "checking if we can lock with hard links... " >&6; }
16137  hard_links=yes
16138  $RM conftest*
16139  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16140  touch conftest.a
16141  ln conftest.a conftest.b 2>&5 || hard_links=no
16142  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16144printf "%s\n" "$hard_links" >&6; }
16145  if test no = "$hard_links"; then
16146    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16147printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16148    need_locks=warn
16149  fi
16150else
16151  need_locks=no
16152fi
16153
16154
16155
16156
16157
16158
16159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16160printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16161
16162  runpath_var=
16163  allow_undefined_flag=
16164  always_export_symbols=no
16165  archive_cmds=
16166  archive_expsym_cmds=
16167  compiler_needs_object=no
16168  enable_shared_with_static_runtimes=no
16169  export_dynamic_flag_spec=
16170  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16171  hardcode_automatic=no
16172  hardcode_direct=no
16173  hardcode_direct_absolute=no
16174  hardcode_libdir_flag_spec=
16175  hardcode_libdir_separator=
16176  hardcode_minus_L=no
16177  hardcode_shlibpath_var=unsupported
16178  inherit_rpath=no
16179  link_all_deplibs=unknown
16180  module_cmds=
16181  module_expsym_cmds=
16182  old_archive_from_new_cmds=
16183  old_archive_from_expsyms_cmds=
16184  thread_safe_flag_spec=
16185  whole_archive_flag_spec=
16186  # include_expsyms should be a list of space-separated symbols to be *always*
16187  # included in the symbol list
16188  include_expsyms=
16189  # exclude_expsyms can be an extended regexp of symbols to exclude
16190  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16191  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16192  # as well as any symbol that contains 'd'.
16193  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16194  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16195  # platforms (ab)use it in PIC code, but their linkers get confused if
16196  # the symbol is explicitly referenced.  Since portable code cannot
16197  # rely on this symbol name, it's probably fine to never include it in
16198  # preloaded symbol tables.
16199  # Exclude shared library initialization/finalization symbols.
16200  extract_expsyms_cmds=
16201
16202  case $host_os in
16203  cygwin* | mingw* | pw32* | cegcc*)
16204    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16205    # When not using gcc, we currently assume that we are using
16206    # Microsoft Visual C++ or Intel C++ Compiler.
16207    if test yes != "$GCC"; then
16208      with_gnu_ld=no
16209    fi
16210    ;;
16211  interix*)
16212    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16213    with_gnu_ld=yes
16214    ;;
16215  openbsd* | bitrig*)
16216    with_gnu_ld=no
16217    ;;
16218  esac
16219
16220  ld_shlibs=yes
16221
16222  # On some targets, GNU ld is compatible enough with the native linker
16223  # that we're better off using the native interface for both.
16224  lt_use_gnu_ld_interface=no
16225  if test yes = "$with_gnu_ld"; then
16226    case $host_os in
16227      aix*)
16228	# The AIX port of GNU ld has always aspired to compatibility
16229	# with the native linker.  However, as the warning in the GNU ld
16230	# block says, versions before 2.19.5* couldn't really create working
16231	# shared libraries, regardless of the interface used.
16232	case `$LD -v 2>&1` in
16233	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16234	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16235	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16236	  *)
16237	    lt_use_gnu_ld_interface=yes
16238	    ;;
16239	esac
16240	;;
16241      *)
16242	lt_use_gnu_ld_interface=yes
16243	;;
16244    esac
16245  fi
16246
16247  if test yes = "$lt_use_gnu_ld_interface"; then
16248    # If archive_cmds runs LD, not CC, wlarc should be empty
16249    wlarc='$wl'
16250
16251    # Set some defaults for GNU ld with shared library support. These
16252    # are reset later if shared libraries are not supported. Putting them
16253    # here allows them to be overridden if necessary.
16254    runpath_var=LD_RUN_PATH
16255    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16256    export_dynamic_flag_spec='$wl--export-dynamic'
16257    # ancient GNU ld didn't support --whole-archive et. al.
16258    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16259      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16260    else
16261      whole_archive_flag_spec=
16262    fi
16263    supports_anon_versioning=no
16264    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16265      *GNU\ gold*) supports_anon_versioning=yes ;;
16266      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16267      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16268      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16269      *\ 2.11.*) ;; # other 2.11 versions
16270      *) supports_anon_versioning=yes ;;
16271    esac
16272
16273    # See if GNU ld supports shared libraries.
16274    case $host_os in
16275    aix[3-9]*)
16276      # On AIX/PPC, the GNU linker is very broken
16277      if test ia64 != "$host_cpu"; then
16278	ld_shlibs=no
16279	cat <<_LT_EOF 1>&2
16280
16281*** Warning: the GNU linker, at least up to release 2.19, is reported
16282*** to be unable to reliably create shared libraries on AIX.
16283*** Therefore, libtool is disabling shared libraries support.  If you
16284*** really care for shared libraries, you may want to install binutils
16285*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16286*** You will then need to restart the configuration process.
16287
16288_LT_EOF
16289      fi
16290      ;;
16291
16292    amigaos*)
16293      case $host_cpu in
16294      powerpc)
16295            # see comment about AmigaOS4 .so support
16296            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16297            archive_expsym_cmds=''
16298        ;;
16299      m68k)
16300            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)'
16301            hardcode_libdir_flag_spec='-L$libdir'
16302            hardcode_minus_L=yes
16303        ;;
16304      esac
16305      ;;
16306
16307    beos*)
16308      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16309	allow_undefined_flag=unsupported
16310	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16311	# support --undefined.  This deserves some investigation.  FIXME
16312	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16313      else
16314	ld_shlibs=no
16315      fi
16316      ;;
16317
16318    cygwin* | mingw* | pw32* | cegcc*)
16319      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16320      # as there is no search path for DLLs.
16321      hardcode_libdir_flag_spec='-L$libdir'
16322      export_dynamic_flag_spec='$wl--export-all-symbols'
16323      allow_undefined_flag=unsupported
16324      always_export_symbols=no
16325      enable_shared_with_static_runtimes=yes
16326      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'
16327      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16328
16329      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16330        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16331	# If the export-symbols file already is a .def file, use it as
16332	# is; otherwise, prepend EXPORTS...
16333	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16334          cp $export_symbols $output_objdir/$soname.def;
16335        else
16336          echo EXPORTS > $output_objdir/$soname.def;
16337          cat $export_symbols >> $output_objdir/$soname.def;
16338        fi~
16339        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16340      else
16341	ld_shlibs=no
16342      fi
16343      ;;
16344
16345    haiku*)
16346      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16347      link_all_deplibs=yes
16348      ;;
16349
16350    os2*)
16351      hardcode_libdir_flag_spec='-L$libdir'
16352      hardcode_minus_L=yes
16353      allow_undefined_flag=unsupported
16354      shrext_cmds=.dll
16355      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16356	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16357	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16358	$ECHO EXPORTS >> $output_objdir/$libname.def~
16359	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16360	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16361	emximp -o $lib $output_objdir/$libname.def'
16362      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16363	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16364	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16365	$ECHO EXPORTS >> $output_objdir/$libname.def~
16366	prefix_cmds="$SED"~
16367	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16368	  prefix_cmds="$prefix_cmds -e 1d";
16369	fi~
16370	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16371	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16372	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16373	emximp -o $lib $output_objdir/$libname.def'
16374      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16375      enable_shared_with_static_runtimes=yes
16376      file_list_spec='@'
16377      ;;
16378
16379    interix[3-9]*)
16380      hardcode_direct=no
16381      hardcode_shlibpath_var=no
16382      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16383      export_dynamic_flag_spec='$wl-E'
16384      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16385      # Instead, shared libraries are loaded at an image base (0x10000000 by
16386      # default) and relocated if they conflict, which is a slow very memory
16387      # consuming and fragmenting process.  To avoid this, we pick a random,
16388      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16389      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16390      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16391      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'
16392      ;;
16393
16394    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16395      tmp_diet=no
16396      if test linux-dietlibc = "$host_os"; then
16397	case $cc_basename in
16398	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16399	esac
16400      fi
16401      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16402	 && test no = "$tmp_diet"
16403      then
16404	tmp_addflag=' $pic_flag'
16405	tmp_sharedflag='-shared'
16406	case $cc_basename,$host_cpu in
16407        pgcc*)				# Portland Group C compiler
16408	  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'
16409	  tmp_addflag=' $pic_flag'
16410	  ;;
16411	pgf77* | pgf90* | pgf95* | pgfortran*)
16412					# Portland Group f77 and f90 compilers
16413	  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'
16414	  tmp_addflag=' $pic_flag -Mnomain' ;;
16415	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16416	  tmp_addflag=' -i_dynamic' ;;
16417	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16418	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16419	ifc* | ifort*)			# Intel Fortran compiler
16420	  tmp_addflag=' -nofor_main' ;;
16421	lf95*)				# Lahey Fortran 8.1
16422	  whole_archive_flag_spec=
16423	  tmp_sharedflag='--shared' ;;
16424        nagfor*)                        # NAGFOR 5.3
16425          tmp_sharedflag='-Wl,-shared' ;;
16426	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16427	  tmp_sharedflag='-qmkshrobj'
16428	  tmp_addflag= ;;
16429	nvcc*)	# Cuda Compiler Driver 2.2
16430	  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'
16431	  compiler_needs_object=yes
16432	  ;;
16433	esac
16434	case `$CC -V 2>&1 | $SED 5q` in
16435	*Sun\ C*)			# Sun C 5.9
16436	  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'
16437	  compiler_needs_object=yes
16438	  tmp_sharedflag='-G' ;;
16439	*Sun\ F*)			# Sun Fortran 8.3
16440	  tmp_sharedflag='-G' ;;
16441	esac
16442	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16443
16444        if test yes = "$supports_anon_versioning"; then
16445          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16446            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16447            echo "local: *; };" >> $output_objdir/$libname.ver~
16448            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16449        fi
16450
16451	case $cc_basename in
16452	tcc*)
16453	  export_dynamic_flag_spec='-rdynamic'
16454	  ;;
16455	xlf* | bgf* | bgxlf* | mpixlf*)
16456	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16457	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16458	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16459	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16460	  if test yes = "$supports_anon_versioning"; then
16461	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16462              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16463              echo "local: *; };" >> $output_objdir/$libname.ver~
16464              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16465	  fi
16466	  ;;
16467	esac
16468      else
16469        ld_shlibs=no
16470      fi
16471      ;;
16472
16473    netbsd*)
16474      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16475	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16476	wlarc=
16477      else
16478	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16479	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16480      fi
16481      ;;
16482
16483    solaris*)
16484      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16485	ld_shlibs=no
16486	cat <<_LT_EOF 1>&2
16487
16488*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16489*** create shared libraries on Solaris systems.  Therefore, libtool
16490*** is disabling shared libraries support.  We urge you to upgrade GNU
16491*** binutils to release 2.9.1 or newer.  Another option is to modify
16492*** your PATH or compiler configuration so that the native linker is
16493*** used, and then restart.
16494
16495_LT_EOF
16496      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16497	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16498	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16499      else
16500	ld_shlibs=no
16501      fi
16502      ;;
16503
16504    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16505      case `$LD -v 2>&1` in
16506        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16507	ld_shlibs=no
16508	cat <<_LT_EOF 1>&2
16509
16510*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16511*** reliably create shared libraries on SCO systems.  Therefore, libtool
16512*** is disabling shared libraries support.  We urge you to upgrade GNU
16513*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16514*** your PATH or compiler configuration so that the native linker is
16515*** used, and then restart.
16516
16517_LT_EOF
16518	;;
16519	*)
16520	  # For security reasons, it is highly recommended that you always
16521	  # use absolute paths for naming shared libraries, and exclude the
16522	  # DT_RUNPATH tag from executables and libraries.  But doing so
16523	  # requires that you compile everything twice, which is a pain.
16524	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16525	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16526	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16527	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16528	  else
16529	    ld_shlibs=no
16530	  fi
16531	;;
16532      esac
16533      ;;
16534
16535    sunos4*)
16536      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16537      wlarc=
16538      hardcode_direct=yes
16539      hardcode_shlibpath_var=no
16540      ;;
16541
16542    *)
16543      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16544	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16545	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16546      else
16547	ld_shlibs=no
16548      fi
16549      ;;
16550    esac
16551
16552    if test no = "$ld_shlibs"; then
16553      runpath_var=
16554      hardcode_libdir_flag_spec=
16555      export_dynamic_flag_spec=
16556      whole_archive_flag_spec=
16557    fi
16558  else
16559    # PORTME fill in a description of your system's linker (not GNU ld)
16560    case $host_os in
16561    aix3*)
16562      allow_undefined_flag=unsupported
16563      always_export_symbols=yes
16564      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'
16565      # Note: this linker hardcodes the directories in LIBPATH if there
16566      # are no directories specified by -L.
16567      hardcode_minus_L=yes
16568      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16569	# Neither direct hardcoding nor static linking is supported with a
16570	# broken collect2.
16571	hardcode_direct=unsupported
16572      fi
16573      ;;
16574
16575    aix[4-9]*)
16576      if test ia64 = "$host_cpu"; then
16577	# On IA64, the linker does run time linking by default, so we don't
16578	# have to do anything special.
16579	aix_use_runtimelinking=no
16580	exp_sym_flag='-Bexport'
16581	no_entry_flag=
16582      else
16583	# If we're using GNU nm, then we don't want the "-C" option.
16584	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16585	# Without the "-l" option, or with the "-B" option, AIX nm treats
16586	# weak defined symbols like other global defined symbols, whereas
16587	# GNU nm marks them as "W".
16588	# While the 'weak' keyword is ignored in the Export File, we need
16589	# it in the Import File for the 'aix-soname' feature, so we have
16590	# to replace the "-B" option with "-P" for AIX nm.
16591	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16592	  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'
16593	else
16594	  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'
16595	fi
16596	aix_use_runtimelinking=no
16597
16598	# Test if we are trying to use run time linking or normal
16599	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16600	# have runtime linking enabled, and use it for executables.
16601	# For shared libraries, we enable/disable runtime linking
16602	# depending on the kind of the shared library created -
16603	# when "with_aix_soname,aix_use_runtimelinking" is:
16604	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16605	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16606	#            lib.a           static archive
16607	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16608	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16609	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16610	#            lib.a(lib.so.V) shared, rtl:no
16611	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16612	#            lib.a           static archive
16613	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16614	  for ld_flag in $LDFLAGS; do
16615	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16616	    aix_use_runtimelinking=yes
16617	    break
16618	  fi
16619	  done
16620	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16621	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16622	    # so we don't have lib.a shared libs to link our executables.
16623	    # We have to force runtime linking in this case.
16624	    aix_use_runtimelinking=yes
16625	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16626	  fi
16627	  ;;
16628	esac
16629
16630	exp_sym_flag='-bexport'
16631	no_entry_flag='-bnoentry'
16632      fi
16633
16634      # When large executables or shared objects are built, AIX ld can
16635      # have problems creating the table of contents.  If linking a library
16636      # or program results in "error TOC overflow" add -mminimal-toc to
16637      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16638      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16639
16640      archive_cmds=''
16641      hardcode_direct=yes
16642      hardcode_direct_absolute=yes
16643      hardcode_libdir_separator=':'
16644      link_all_deplibs=yes
16645      file_list_spec='$wl-f,'
16646      case $with_aix_soname,$aix_use_runtimelinking in
16647      aix,*) ;; # traditional, no import file
16648      svr4,* | *,yes) # use import file
16649	# The Import File defines what to hardcode.
16650	hardcode_direct=no
16651	hardcode_direct_absolute=no
16652	;;
16653      esac
16654
16655      if test yes = "$GCC"; then
16656	case $host_os in aix4.[012]|aix4.[012].*)
16657	# We only want to do this on AIX 4.2 and lower, the check
16658	# below for broken collect2 doesn't work under 4.3+
16659	  collect2name=`$CC -print-prog-name=collect2`
16660	  if test -f "$collect2name" &&
16661	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16662	  then
16663	  # We have reworked collect2
16664	  :
16665	  else
16666	  # We have old collect2
16667	  hardcode_direct=unsupported
16668	  # It fails to find uninstalled libraries when the uninstalled
16669	  # path is not listed in the libpath.  Setting hardcode_minus_L
16670	  # to unsupported forces relinking
16671	  hardcode_minus_L=yes
16672	  hardcode_libdir_flag_spec='-L$libdir'
16673	  hardcode_libdir_separator=
16674	  fi
16675	  ;;
16676	esac
16677	shared_flag='-shared'
16678	if test yes = "$aix_use_runtimelinking"; then
16679	  shared_flag="$shared_flag "'$wl-G'
16680	fi
16681	# Need to ensure runtime linking is disabled for the traditional
16682	# shared library, or the linker may eventually find shared libraries
16683	# /with/ Import File - we do not want to mix them.
16684	shared_flag_aix='-shared'
16685	shared_flag_svr4='-shared $wl-G'
16686      else
16687	# not using gcc
16688	if test ia64 = "$host_cpu"; then
16689	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16690	# chokes on -Wl,-G. The following line is correct:
16691	  shared_flag='-G'
16692	else
16693	  if test yes = "$aix_use_runtimelinking"; then
16694	    shared_flag='$wl-G'
16695	  else
16696	    shared_flag='$wl-bM:SRE'
16697	  fi
16698	  shared_flag_aix='$wl-bM:SRE'
16699	  shared_flag_svr4='$wl-G'
16700	fi
16701      fi
16702
16703      export_dynamic_flag_spec='$wl-bexpall'
16704      # It seems that -bexpall does not export symbols beginning with
16705      # underscore (_), so it is better to generate a list of symbols to export.
16706      always_export_symbols=yes
16707      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16708	# Warning - without using the other runtime loading flags (-brtl),
16709	# -berok will link without error, but may produce a broken library.
16710	allow_undefined_flag='-berok'
16711        # Determine the default libpath from the value encoded in an
16712        # empty executable.
16713        if test set = "${lt_cv_aix_libpath+set}"; then
16714  aix_libpath=$lt_cv_aix_libpath
16715else
16716  if test ${lt_cv_aix_libpath_+y}
16717then :
16718  printf %s "(cached) " >&6
16719else $as_nop
16720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h.  */
16722
16723int
16724main (void)
16725{
16726
16727  ;
16728  return 0;
16729}
16730_ACEOF
16731if ac_fn_c_try_link "$LINENO"
16732then :
16733
16734  lt_aix_libpath_sed='
16735      /Import File Strings/,/^$/ {
16736	  /^0/ {
16737	      s/^0  *\([^ ]*\) *$/\1/
16738	      p
16739	  }
16740      }'
16741  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16742  # Check for a 64-bit object if we didn't find anything.
16743  if test -z "$lt_cv_aix_libpath_"; then
16744    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16745  fi
16746fi
16747rm -f core conftest.err conftest.$ac_objext conftest.beam \
16748    conftest$ac_exeext conftest.$ac_ext
16749  if test -z "$lt_cv_aix_libpath_"; then
16750    lt_cv_aix_libpath_=/usr/lib:/lib
16751  fi
16752
16753fi
16754
16755  aix_libpath=$lt_cv_aix_libpath_
16756fi
16757
16758        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16759        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
16760      else
16761	if test ia64 = "$host_cpu"; then
16762	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16763	  allow_undefined_flag="-z nodefs"
16764	  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"
16765	else
16766	 # Determine the default libpath from the value encoded in an
16767	 # empty executable.
16768	 if test set = "${lt_cv_aix_libpath+set}"; then
16769  aix_libpath=$lt_cv_aix_libpath
16770else
16771  if test ${lt_cv_aix_libpath_+y}
16772then :
16773  printf %s "(cached) " >&6
16774else $as_nop
16775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776/* end confdefs.h.  */
16777
16778int
16779main (void)
16780{
16781
16782  ;
16783  return 0;
16784}
16785_ACEOF
16786if ac_fn_c_try_link "$LINENO"
16787then :
16788
16789  lt_aix_libpath_sed='
16790      /Import File Strings/,/^$/ {
16791	  /^0/ {
16792	      s/^0  *\([^ ]*\) *$/\1/
16793	      p
16794	  }
16795      }'
16796  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16797  # Check for a 64-bit object if we didn't find anything.
16798  if test -z "$lt_cv_aix_libpath_"; then
16799    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16800  fi
16801fi
16802rm -f core conftest.err conftest.$ac_objext conftest.beam \
16803    conftest$ac_exeext conftest.$ac_ext
16804  if test -z "$lt_cv_aix_libpath_"; then
16805    lt_cv_aix_libpath_=/usr/lib:/lib
16806  fi
16807
16808fi
16809
16810  aix_libpath=$lt_cv_aix_libpath_
16811fi
16812
16813	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16814	  # Warning - without using the other run time loading flags,
16815	  # -berok will link without error, but may produce a broken library.
16816	  no_undefined_flag=' $wl-bernotok'
16817	  allow_undefined_flag=' $wl-berok'
16818	  if test yes = "$with_gnu_ld"; then
16819	    # We only use this code for GNU lds that support --whole-archive.
16820	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16821	  else
16822	    # Exported symbols can be pulled into shared objects from archives
16823	    whole_archive_flag_spec='$convenience'
16824	  fi
16825	  archive_cmds_need_lc=yes
16826	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16827	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16828	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16829	  if test svr4 != "$with_aix_soname"; then
16830	    # This is similar to how AIX traditionally builds its shared libraries.
16831	    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'
16832	  fi
16833	  if test aix != "$with_aix_soname"; then
16834	    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'
16835	  else
16836	    # used by -dlpreopen to get the symbols
16837	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16838	  fi
16839	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16840	fi
16841      fi
16842      ;;
16843
16844    amigaos*)
16845      case $host_cpu in
16846      powerpc)
16847            # see comment about AmigaOS4 .so support
16848            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16849            archive_expsym_cmds=''
16850        ;;
16851      m68k)
16852            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)'
16853            hardcode_libdir_flag_spec='-L$libdir'
16854            hardcode_minus_L=yes
16855        ;;
16856      esac
16857      ;;
16858
16859    bsdi[45]*)
16860      export_dynamic_flag_spec=-rdynamic
16861      ;;
16862
16863    cygwin* | mingw* | pw32* | cegcc*)
16864      # When not using gcc, we currently assume that we are using
16865      # Microsoft Visual C++ or Intel C++ Compiler.
16866      # hardcode_libdir_flag_spec is actually meaningless, as there is
16867      # no search path for DLLs.
16868      case $cc_basename in
16869      cl* | icl*)
16870	# Native MSVC or ICC
16871	hardcode_libdir_flag_spec=' '
16872	allow_undefined_flag=unsupported
16873	always_export_symbols=yes
16874	file_list_spec='@'
16875	# Tell ltmain to make .lib files, not .a files.
16876	libext=lib
16877	# Tell ltmain to make .dll files, not .so files.
16878	shrext_cmds=.dll
16879	# FIXME: Setting linknames here is a bad hack.
16880	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16881	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16882            cp "$export_symbols" "$output_objdir/$soname.def";
16883            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16884          else
16885            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16886          fi~
16887          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16888          linknames='
16889	# The linker will not automatically build a static lib if we build a DLL.
16890	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16891	enable_shared_with_static_runtimes=yes
16892	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16893	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16894	# Don't use ranlib
16895	old_postinstall_cmds='chmod 644 $oldlib'
16896	postlink_cmds='lt_outputfile="@OUTPUT@"~
16897          lt_tool_outputfile="@TOOL_OUTPUT@"~
16898          case $lt_outputfile in
16899            *.exe|*.EXE) ;;
16900            *)
16901              lt_outputfile=$lt_outputfile.exe
16902              lt_tool_outputfile=$lt_tool_outputfile.exe
16903              ;;
16904          esac~
16905          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16906            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16907            $RM "$lt_outputfile.manifest";
16908          fi'
16909	;;
16910      *)
16911	# Assume MSVC and ICC wrapper
16912	hardcode_libdir_flag_spec=' '
16913	allow_undefined_flag=unsupported
16914	# Tell ltmain to make .lib files, not .a files.
16915	libext=lib
16916	# Tell ltmain to make .dll files, not .so files.
16917	shrext_cmds=.dll
16918	# FIXME: Setting linknames here is a bad hack.
16919	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16920	# The linker will automatically build a .lib file if we build a DLL.
16921	old_archive_from_new_cmds='true'
16922	# FIXME: Should let the user specify the lib program.
16923	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16924	enable_shared_with_static_runtimes=yes
16925	;;
16926      esac
16927      ;;
16928
16929    darwin* | rhapsody*)
16930
16931
16932  archive_cmds_need_lc=no
16933  hardcode_direct=no
16934  hardcode_automatic=yes
16935  hardcode_shlibpath_var=unsupported
16936  if test yes = "$lt_cv_ld_force_load"; then
16937    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\"`'
16938
16939  else
16940    whole_archive_flag_spec=''
16941  fi
16942  link_all_deplibs=yes
16943  allow_undefined_flag=$_lt_dar_allow_undefined
16944  case $cc_basename in
16945     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16946     *) _lt_dar_can_shared=$GCC ;;
16947  esac
16948  if test yes = "$_lt_dar_can_shared"; then
16949    output_verbose_link_cmd=func_echo_all
16950    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16951    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16952    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"
16953    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"
16954
16955  else
16956  ld_shlibs=no
16957  fi
16958
16959      ;;
16960
16961    dgux*)
16962      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963      hardcode_libdir_flag_spec='-L$libdir'
16964      hardcode_shlibpath_var=no
16965      ;;
16966
16967    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16968    # support.  Future versions do this automatically, but an explicit c++rt0.o
16969    # does not break anything, and helps significantly (at the cost of a little
16970    # extra space).
16971    freebsd2.2*)
16972      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16973      hardcode_libdir_flag_spec='-R$libdir'
16974      hardcode_direct=yes
16975      hardcode_shlibpath_var=no
16976      ;;
16977
16978    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16979    freebsd2.*)
16980      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16981      hardcode_direct=yes
16982      hardcode_minus_L=yes
16983      hardcode_shlibpath_var=no
16984      ;;
16985
16986    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16987    freebsd* | dragonfly* | midnightbsd*)
16988      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16989      hardcode_libdir_flag_spec='-R$libdir'
16990      hardcode_direct=yes
16991      hardcode_shlibpath_var=no
16992      ;;
16993
16994    hpux9*)
16995      if test yes = "$GCC"; then
16996	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'
16997      else
16998	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'
16999      fi
17000      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17001      hardcode_libdir_separator=:
17002      hardcode_direct=yes
17003
17004      # hardcode_minus_L: Not really in the search PATH,
17005      # but as the default location of the library.
17006      hardcode_minus_L=yes
17007      export_dynamic_flag_spec='$wl-E'
17008      ;;
17009
17010    hpux10*)
17011      if test yes,no = "$GCC,$with_gnu_ld"; then
17012	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17013      else
17014	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17015      fi
17016      if test no = "$with_gnu_ld"; then
17017	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17018	hardcode_libdir_separator=:
17019	hardcode_direct=yes
17020	hardcode_direct_absolute=yes
17021	export_dynamic_flag_spec='$wl-E'
17022	# hardcode_minus_L: Not really in the search PATH,
17023	# but as the default location of the library.
17024	hardcode_minus_L=yes
17025      fi
17026      ;;
17027
17028    hpux11*)
17029      if test yes,no = "$GCC,$with_gnu_ld"; then
17030	case $host_cpu in
17031	hppa*64*)
17032	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17033	  ;;
17034	ia64*)
17035	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17036	  ;;
17037	*)
17038	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17039	  ;;
17040	esac
17041      else
17042	case $host_cpu in
17043	hppa*64*)
17044	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17045	  ;;
17046	ia64*)
17047	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17048	  ;;
17049	*)
17050
17051	  # Older versions of the 11.00 compiler do not understand -b yet
17052	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17053	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17054printf %s "checking if $CC understands -b... " >&6; }
17055if test ${lt_cv_prog_compiler__b+y}
17056then :
17057  printf %s "(cached) " >&6
17058else $as_nop
17059  lt_cv_prog_compiler__b=no
17060   save_LDFLAGS=$LDFLAGS
17061   LDFLAGS="$LDFLAGS -b"
17062   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17063   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17064     # The linker can only warn and ignore the option if not recognized
17065     # So say no if there are warnings
17066     if test -s conftest.err; then
17067       # Append any errors to the config.log.
17068       cat conftest.err 1>&5
17069       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17070       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17071       if diff conftest.exp conftest.er2 >/dev/null; then
17072         lt_cv_prog_compiler__b=yes
17073       fi
17074     else
17075       lt_cv_prog_compiler__b=yes
17076     fi
17077   fi
17078   $RM -r conftest*
17079   LDFLAGS=$save_LDFLAGS
17080
17081fi
17082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17083printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17084
17085if test yes = "$lt_cv_prog_compiler__b"; then
17086    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17087else
17088    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17089fi
17090
17091	  ;;
17092	esac
17093      fi
17094      if test no = "$with_gnu_ld"; then
17095	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17096	hardcode_libdir_separator=:
17097
17098	case $host_cpu in
17099	hppa*64*|ia64*)
17100	  hardcode_direct=no
17101	  hardcode_shlibpath_var=no
17102	  ;;
17103	*)
17104	  hardcode_direct=yes
17105	  hardcode_direct_absolute=yes
17106	  export_dynamic_flag_spec='$wl-E'
17107
17108	  # hardcode_minus_L: Not really in the search PATH,
17109	  # but as the default location of the library.
17110	  hardcode_minus_L=yes
17111	  ;;
17112	esac
17113      fi
17114      ;;
17115
17116    irix5* | irix6* | nonstopux*)
17117      if test yes = "$GCC"; then
17118	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'
17119	# Try to use the -exported_symbol ld option, if it does not
17120	# work, assume that -exports_file does not work either and
17121	# implicitly export all symbols.
17122	# This should be the same for all languages, so no per-tag cache variable.
17123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17124printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17125if test ${lt_cv_irix_exported_symbol+y}
17126then :
17127  printf %s "(cached) " >&6
17128else $as_nop
17129  save_LDFLAGS=$LDFLAGS
17130	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17131	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132/* end confdefs.h.  */
17133int foo (void) { return 0; }
17134_ACEOF
17135if ac_fn_c_try_link "$LINENO"
17136then :
17137  lt_cv_irix_exported_symbol=yes
17138else $as_nop
17139  lt_cv_irix_exported_symbol=no
17140fi
17141rm -f core conftest.err conftest.$ac_objext conftest.beam \
17142    conftest$ac_exeext conftest.$ac_ext
17143           LDFLAGS=$save_LDFLAGS
17144fi
17145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17146printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17147	if test yes = "$lt_cv_irix_exported_symbol"; then
17148          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'
17149	fi
17150      else
17151	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'
17152	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'
17153      fi
17154      archive_cmds_need_lc='no'
17155      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17156      hardcode_libdir_separator=:
17157      inherit_rpath=yes
17158      link_all_deplibs=yes
17159      ;;
17160
17161    linux*)
17162      case $cc_basename in
17163      tcc*)
17164	# Fabrice Bellard et al's Tiny C Compiler
17165	ld_shlibs=yes
17166	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17167	;;
17168      esac
17169      ;;
17170
17171    netbsd*)
17172      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17173	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17174      else
17175	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17176      fi
17177      hardcode_libdir_flag_spec='-R$libdir'
17178      hardcode_direct=yes
17179      hardcode_shlibpath_var=no
17180      ;;
17181
17182    newsos6)
17183      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17184      hardcode_direct=yes
17185      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17186      hardcode_libdir_separator=:
17187      hardcode_shlibpath_var=no
17188      ;;
17189
17190    *nto* | *qnx*)
17191      ;;
17192
17193    openbsd* | bitrig*)
17194      if test -f /usr/libexec/ld.so; then
17195	hardcode_direct=yes
17196	hardcode_shlibpath_var=no
17197	hardcode_direct_absolute=yes
17198	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17199	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17200	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17201	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17202	  export_dynamic_flag_spec='$wl-E'
17203	else
17204	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17205	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17206	fi
17207      else
17208	ld_shlibs=no
17209      fi
17210      ;;
17211
17212    os2*)
17213      hardcode_libdir_flag_spec='-L$libdir'
17214      hardcode_minus_L=yes
17215      allow_undefined_flag=unsupported
17216      shrext_cmds=.dll
17217      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17218	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17219	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17220	$ECHO EXPORTS >> $output_objdir/$libname.def~
17221	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17222	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17223	emximp -o $lib $output_objdir/$libname.def'
17224      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17225	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17226	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17227	$ECHO EXPORTS >> $output_objdir/$libname.def~
17228	prefix_cmds="$SED"~
17229	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17230	  prefix_cmds="$prefix_cmds -e 1d";
17231	fi~
17232	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17233	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17234	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17235	emximp -o $lib $output_objdir/$libname.def'
17236      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17237      enable_shared_with_static_runtimes=yes
17238      file_list_spec='@'
17239      ;;
17240
17241    osf3*)
17242      if test yes = "$GCC"; then
17243	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17244	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'
17245      else
17246	allow_undefined_flag=' -expect_unresolved \*'
17247	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'
17248      fi
17249      archive_cmds_need_lc='no'
17250      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17251      hardcode_libdir_separator=:
17252      ;;
17253
17254    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17255      if test yes = "$GCC"; then
17256	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17257	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'
17258	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17259      else
17260	allow_undefined_flag=' -expect_unresolved \*'
17261	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'
17262	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~
17263          $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'
17264
17265	# Both c and cxx compiler support -rpath directly
17266	hardcode_libdir_flag_spec='-rpath $libdir'
17267      fi
17268      archive_cmds_need_lc='no'
17269      hardcode_libdir_separator=:
17270      ;;
17271
17272    solaris*)
17273      no_undefined_flag=' -z defs'
17274      if test yes = "$GCC"; then
17275	wlarc='$wl'
17276	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17277	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17278          $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'
17279      else
17280	case `$CC -V 2>&1` in
17281	*"Compilers 5.0"*)
17282	  wlarc=''
17283	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17284	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17285            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17286	  ;;
17287	*)
17288	  wlarc='$wl'
17289	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17290	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17291            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17292	  ;;
17293	esac
17294      fi
17295      hardcode_libdir_flag_spec='-R$libdir'
17296      hardcode_shlibpath_var=no
17297      case $host_os in
17298      solaris2.[0-5] | solaris2.[0-5].*) ;;
17299      *)
17300	# The compiler driver will combine and reorder linker options,
17301	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17302	# but is careful enough not to reorder.
17303	# Supported since Solaris 2.6 (maybe 2.5.1?)
17304	if test yes = "$GCC"; then
17305	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17306	else
17307	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17308	fi
17309	;;
17310      esac
17311      link_all_deplibs=yes
17312      ;;
17313
17314    sunos4*)
17315      if test sequent = "$host_vendor"; then
17316	# Use $CC to link under sequent, because it throws in some extra .o
17317	# files that make .init and .fini sections work.
17318	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17319      else
17320	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17321      fi
17322      hardcode_libdir_flag_spec='-L$libdir'
17323      hardcode_direct=yes
17324      hardcode_minus_L=yes
17325      hardcode_shlibpath_var=no
17326      ;;
17327
17328    sysv4)
17329      case $host_vendor in
17330	sni)
17331	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17332	  hardcode_direct=yes # is this really true???
17333	;;
17334	siemens)
17335	  ## LD is ld it makes a PLAMLIB
17336	  ## CC just makes a GrossModule.
17337	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17338	  reload_cmds='$CC -r -o $output$reload_objs'
17339	  hardcode_direct=no
17340        ;;
17341	motorola)
17342	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17343	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17344	;;
17345      esac
17346      runpath_var='LD_RUN_PATH'
17347      hardcode_shlibpath_var=no
17348      ;;
17349
17350    sysv4.3*)
17351      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352      hardcode_shlibpath_var=no
17353      export_dynamic_flag_spec='-Bexport'
17354      ;;
17355
17356    sysv4*MP*)
17357      if test -d /usr/nec; then
17358	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17359	hardcode_shlibpath_var=no
17360	runpath_var=LD_RUN_PATH
17361	hardcode_runpath_var=yes
17362	ld_shlibs=yes
17363      fi
17364      ;;
17365
17366    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17367      no_undefined_flag='$wl-z,text'
17368      archive_cmds_need_lc=no
17369      hardcode_shlibpath_var=no
17370      runpath_var='LD_RUN_PATH'
17371
17372      if test yes = "$GCC"; then
17373	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17374	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17375      else
17376	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17377	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17378      fi
17379      ;;
17380
17381    sysv5* | sco3.2v5* | sco5v6*)
17382      # Note: We CANNOT use -z defs as we might desire, because we do not
17383      # link with -lc, and that would cause any symbols used from libc to
17384      # always be unresolved, which means just about no library would
17385      # ever link correctly.  If we're not using GNU ld we use -z text
17386      # though, which does catch some bad symbols but isn't as heavy-handed
17387      # as -z defs.
17388      no_undefined_flag='$wl-z,text'
17389      allow_undefined_flag='$wl-z,nodefs'
17390      archive_cmds_need_lc=no
17391      hardcode_shlibpath_var=no
17392      hardcode_libdir_flag_spec='$wl-R,$libdir'
17393      hardcode_libdir_separator=':'
17394      link_all_deplibs=yes
17395      export_dynamic_flag_spec='$wl-Bexport'
17396      runpath_var='LD_RUN_PATH'
17397
17398      if test yes = "$GCC"; then
17399	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17400	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17401      else
17402	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17403	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17404      fi
17405      ;;
17406
17407    uts4*)
17408      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17409      hardcode_libdir_flag_spec='-L$libdir'
17410      hardcode_shlibpath_var=no
17411      ;;
17412
17413    *)
17414      ld_shlibs=no
17415      ;;
17416    esac
17417
17418    if test sni = "$host_vendor"; then
17419      case $host in
17420      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17421	export_dynamic_flag_spec='$wl-Blargedynsym'
17422	;;
17423      esac
17424    fi
17425  fi
17426
17427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17428printf "%s\n" "$ld_shlibs" >&6; }
17429test no = "$ld_shlibs" && can_build_shared=no
17430
17431with_gnu_ld=$with_gnu_ld
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447#
17448# Do we need to explicitly link libc?
17449#
17450case "x$archive_cmds_need_lc" in
17451x|xyes)
17452  # Assume -lc should be added
17453  archive_cmds_need_lc=yes
17454
17455  if test yes,yes = "$GCC,$enable_shared"; then
17456    case $archive_cmds in
17457    *'~'*)
17458      # FIXME: we may have to deal with multi-command sequences.
17459      ;;
17460    '$CC '*)
17461      # Test whether the compiler implicitly links with -lc since on some
17462      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17463      # to ld, don't add -lc before -lgcc.
17464      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17465printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17466if test ${lt_cv_archive_cmds_need_lc+y}
17467then :
17468  printf %s "(cached) " >&6
17469else $as_nop
17470  $RM conftest*
17471	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17472
17473	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17474  (eval $ac_compile) 2>&5
17475  ac_status=$?
17476  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17477  test $ac_status = 0; } 2>conftest.err; then
17478	  soname=conftest
17479	  lib=conftest
17480	  libobjs=conftest.$ac_objext
17481	  deplibs=
17482	  wl=$lt_prog_compiler_wl
17483	  pic_flag=$lt_prog_compiler_pic
17484	  compiler_flags=-v
17485	  linker_flags=-v
17486	  verstring=
17487	  output_objdir=.
17488	  libname=conftest
17489	  lt_save_allow_undefined_flag=$allow_undefined_flag
17490	  allow_undefined_flag=
17491	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17492  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17493  ac_status=$?
17494  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17495  test $ac_status = 0; }
17496	  then
17497	    lt_cv_archive_cmds_need_lc=no
17498	  else
17499	    lt_cv_archive_cmds_need_lc=yes
17500	  fi
17501	  allow_undefined_flag=$lt_save_allow_undefined_flag
17502	else
17503	  cat conftest.err 1>&5
17504	fi
17505	$RM conftest*
17506
17507fi
17508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17509printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17510      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17511      ;;
17512    esac
17513  fi
17514  ;;
17515esac
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17669printf %s "checking dynamic linker characteristics... " >&6; }
17670
17671if test yes = "$GCC"; then
17672  case $host_os in
17673    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17674    *) lt_awk_arg='/^libraries:/' ;;
17675  esac
17676  case $host_os in
17677    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17678    *) lt_sed_strip_eq='s|=/|/|g' ;;
17679  esac
17680  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17681  case $lt_search_path_spec in
17682  *\;*)
17683    # if the path contains ";" then we assume it to be the separator
17684    # otherwise default to the standard path separator (i.e. ":") - it is
17685    # assumed that no part of a normal pathname contains ";" but that should
17686    # okay in the real world where ";" in dirpaths is itself problematic.
17687    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17688    ;;
17689  *)
17690    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17691    ;;
17692  esac
17693  # Ok, now we have the path, separated by spaces, we can step through it
17694  # and add multilib dir if necessary...
17695  lt_tmp_lt_search_path_spec=
17696  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17697  # ...but if some path component already ends with the multilib dir we assume
17698  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17699  case "$lt_multi_os_dir; $lt_search_path_spec " in
17700  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17701    lt_multi_os_dir=
17702    ;;
17703  esac
17704  for lt_sys_path in $lt_search_path_spec; do
17705    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17706      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17707    elif test -n "$lt_multi_os_dir"; then
17708      test -d "$lt_sys_path" && \
17709	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17710    fi
17711  done
17712  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17713BEGIN {RS = " "; FS = "/|\n";} {
17714  lt_foo = "";
17715  lt_count = 0;
17716  for (lt_i = NF; lt_i > 0; lt_i--) {
17717    if ($lt_i != "" && $lt_i != ".") {
17718      if ($lt_i == "..") {
17719        lt_count++;
17720      } else {
17721        if (lt_count == 0) {
17722          lt_foo = "/" $lt_i lt_foo;
17723        } else {
17724          lt_count--;
17725        }
17726      }
17727    }
17728  }
17729  if (lt_foo != "") { lt_freq[lt_foo]++; }
17730  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17731}'`
17732  # AWK program above erroneously prepends '/' to C:/dos/paths
17733  # for these hosts.
17734  case $host_os in
17735    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17736      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17737  esac
17738  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17739else
17740  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17741fi
17742library_names_spec=
17743libname_spec='lib$name'
17744soname_spec=
17745shrext_cmds=.so
17746postinstall_cmds=
17747postuninstall_cmds=
17748finish_cmds=
17749finish_eval=
17750shlibpath_var=
17751shlibpath_overrides_runpath=unknown
17752version_type=none
17753dynamic_linker="$host_os ld.so"
17754sys_lib_dlsearch_path_spec="/lib /usr/lib"
17755need_lib_prefix=unknown
17756hardcode_into_libs=no
17757
17758# when you set need_version to no, make sure it does not cause -set_version
17759# flags to be left without arguments
17760need_version=unknown
17761
17762
17763
17764case $host_os in
17765aix3*)
17766  version_type=linux # correct to gnu/linux during the next big refactor
17767  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17768  shlibpath_var=LIBPATH
17769
17770  # AIX 3 has no versioning support, so we append a major version to the name.
17771  soname_spec='$libname$release$shared_ext$major'
17772  ;;
17773
17774aix[4-9]*)
17775  version_type=linux # correct to gnu/linux during the next big refactor
17776  need_lib_prefix=no
17777  need_version=no
17778  hardcode_into_libs=yes
17779  if test ia64 = "$host_cpu"; then
17780    # AIX 5 supports IA64
17781    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17782    shlibpath_var=LD_LIBRARY_PATH
17783  else
17784    # With GCC up to 2.95.x, collect2 would create an import file
17785    # for dependence libraries.  The import file would start with
17786    # the line '#! .'.  This would cause the generated library to
17787    # depend on '.', always an invalid library.  This was fixed in
17788    # development snapshots of GCC prior to 3.0.
17789    case $host_os in
17790      aix4 | aix4.[01] | aix4.[01].*)
17791      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17792	   echo ' yes '
17793	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17794	:
17795      else
17796	can_build_shared=no
17797      fi
17798      ;;
17799    esac
17800    # Using Import Files as archive members, it is possible to support
17801    # filename-based versioning of shared library archives on AIX. While
17802    # this would work for both with and without runtime linking, it will
17803    # prevent static linking of such archives. So we do filename-based
17804    # shared library versioning with .so extension only, which is used
17805    # when both runtime linking and shared linking is enabled.
17806    # Unfortunately, runtime linking may impact performance, so we do
17807    # not want this to be the default eventually. Also, we use the
17808    # versioned .so libs for executables only if there is the -brtl
17809    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17810    # To allow for filename-based versioning support, we need to create
17811    # libNAME.so.V as an archive file, containing:
17812    # *) an Import File, referring to the versioned filename of the
17813    #    archive as well as the shared archive member, telling the
17814    #    bitwidth (32 or 64) of that shared object, and providing the
17815    #    list of exported symbols of that shared object, eventually
17816    #    decorated with the 'weak' keyword
17817    # *) the shared object with the F_LOADONLY flag set, to really avoid
17818    #    it being seen by the linker.
17819    # At run time we better use the real file rather than another symlink,
17820    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17821
17822    case $with_aix_soname,$aix_use_runtimelinking in
17823    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17824    # soname into executable. Probably we can add versioning support to
17825    # collect2, so additional links can be useful in future.
17826    aix,yes) # traditional libtool
17827      dynamic_linker='AIX unversionable lib.so'
17828      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17829      # instead of lib<name>.a to let people know that these are not
17830      # typical AIX shared libraries.
17831      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17832      ;;
17833    aix,no) # traditional AIX only
17834      dynamic_linker='AIX lib.a(lib.so.V)'
17835      # We preserve .a as extension for shared libraries through AIX4.2
17836      # and later when we are not doing run time linking.
17837      library_names_spec='$libname$release.a $libname.a'
17838      soname_spec='$libname$release$shared_ext$major'
17839      ;;
17840    svr4,*) # full svr4 only
17841      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17842      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17843      # We do not specify a path in Import Files, so LIBPATH fires.
17844      shlibpath_overrides_runpath=yes
17845      ;;
17846    *,yes) # both, prefer svr4
17847      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17848      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17849      # unpreferred sharedlib libNAME.a needs extra handling
17850      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"'
17851      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"'
17852      # We do not specify a path in Import Files, so LIBPATH fires.
17853      shlibpath_overrides_runpath=yes
17854      ;;
17855    *,no) # both, prefer aix
17856      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17857      library_names_spec='$libname$release.a $libname.a'
17858      soname_spec='$libname$release$shared_ext$major'
17859      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17860      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)'
17861      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"'
17862      ;;
17863    esac
17864    shlibpath_var=LIBPATH
17865  fi
17866  ;;
17867
17868amigaos*)
17869  case $host_cpu in
17870  powerpc)
17871    # Since July 2007 AmigaOS4 officially supports .so libraries.
17872    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17873    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17874    ;;
17875  m68k)
17876    library_names_spec='$libname.ixlibrary $libname.a'
17877    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17878    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'
17879    ;;
17880  esac
17881  ;;
17882
17883beos*)
17884  library_names_spec='$libname$shared_ext'
17885  dynamic_linker="$host_os ld.so"
17886  shlibpath_var=LIBRARY_PATH
17887  ;;
17888
17889bsdi[45]*)
17890  version_type=linux # correct to gnu/linux during the next big refactor
17891  need_version=no
17892  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17893  soname_spec='$libname$release$shared_ext$major'
17894  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17895  shlibpath_var=LD_LIBRARY_PATH
17896  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17897  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17898  # the default ld.so.conf also contains /usr/contrib/lib and
17899  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17900  # libtool to hard-code these into programs
17901  ;;
17902
17903cygwin* | mingw* | pw32* | cegcc*)
17904  version_type=windows
17905  shrext_cmds=.dll
17906  need_version=no
17907  need_lib_prefix=no
17908
17909  case $GCC,$cc_basename in
17910  yes,*)
17911    # gcc
17912    library_names_spec='$libname.dll.a'
17913    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17914    postinstall_cmds='base_file=`basename \$file`~
17915      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17916      dldir=$destdir/`dirname \$dlpath`~
17917      test -d \$dldir || mkdir -p \$dldir~
17918      $install_prog $dir/$dlname \$dldir/$dlname~
17919      chmod a+x \$dldir/$dlname~
17920      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17921        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17922      fi'
17923    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17924      dlpath=$dir/\$dldll~
17925       $RM \$dlpath'
17926    shlibpath_overrides_runpath=yes
17927
17928    case $host_os in
17929    cygwin*)
17930      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17931      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17932
17933      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17934      ;;
17935    mingw* | cegcc*)
17936      # MinGW DLLs use traditional 'lib' prefix
17937      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17938      ;;
17939    pw32*)
17940      # pw32 DLLs use 'pw' prefix rather than 'lib'
17941      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17942      ;;
17943    esac
17944    dynamic_linker='Win32 ld.exe'
17945    ;;
17946
17947  *,cl* | *,icl*)
17948    # Native MSVC or ICC
17949    libname_spec='$name'
17950    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17951    library_names_spec='$libname.dll.lib'
17952
17953    case $build_os in
17954    mingw*)
17955      sys_lib_search_path_spec=
17956      lt_save_ifs=$IFS
17957      IFS=';'
17958      for lt_path in $LIB
17959      do
17960        IFS=$lt_save_ifs
17961        # Let DOS variable expansion print the short 8.3 style file name.
17962        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17963        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17964      done
17965      IFS=$lt_save_ifs
17966      # Convert to MSYS style.
17967      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17968      ;;
17969    cygwin*)
17970      # Convert to unix form, then to dos form, then back to unix form
17971      # but this time dos style (no spaces!) so that the unix form looks
17972      # like /cygdrive/c/PROGRA~1:/cygdr...
17973      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17974      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17975      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17976      ;;
17977    *)
17978      sys_lib_search_path_spec=$LIB
17979      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17980        # It is most probably a Windows format PATH.
17981        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17982      else
17983        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17984      fi
17985      # FIXME: find the short name or the path components, as spaces are
17986      # common. (e.g. "Program Files" -> "PROGRA~1")
17987      ;;
17988    esac
17989
17990    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17991    postinstall_cmds='base_file=`basename \$file`~
17992      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17993      dldir=$destdir/`dirname \$dlpath`~
17994      test -d \$dldir || mkdir -p \$dldir~
17995      $install_prog $dir/$dlname \$dldir/$dlname'
17996    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17997      dlpath=$dir/\$dldll~
17998       $RM \$dlpath'
17999    shlibpath_overrides_runpath=yes
18000    dynamic_linker='Win32 link.exe'
18001    ;;
18002
18003  *)
18004    # Assume MSVC and ICC wrapper
18005    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18006    dynamic_linker='Win32 ld.exe'
18007    ;;
18008  esac
18009  # FIXME: first we should search . and the directory the executable is in
18010  shlibpath_var=PATH
18011  ;;
18012
18013darwin* | rhapsody*)
18014  dynamic_linker="$host_os dyld"
18015  version_type=darwin
18016  need_lib_prefix=no
18017  need_version=no
18018  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18019  soname_spec='$libname$release$major$shared_ext'
18020  shlibpath_overrides_runpath=yes
18021  shlibpath_var=DYLD_LIBRARY_PATH
18022  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18023
18024  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18025  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18026  ;;
18027
18028dgux*)
18029  version_type=linux # correct to gnu/linux during the next big refactor
18030  need_lib_prefix=no
18031  need_version=no
18032  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18033  soname_spec='$libname$release$shared_ext$major'
18034  shlibpath_var=LD_LIBRARY_PATH
18035  ;;
18036
18037freebsd* | dragonfly* | midnightbsd*)
18038  # DragonFly does not have aout.  When/if they implement a new
18039  # versioning mechanism, adjust this.
18040  if test -x /usr/bin/objformat; then
18041    objformat=`/usr/bin/objformat`
18042  else
18043    case $host_os in
18044    freebsd[23].*) objformat=aout ;;
18045    *) objformat=elf ;;
18046    esac
18047  fi
18048  version_type=freebsd-$objformat
18049  case $version_type in
18050    freebsd-elf*)
18051      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18052      soname_spec='$libname$release$shared_ext$major'
18053      need_version=no
18054      need_lib_prefix=no
18055      ;;
18056    freebsd-*)
18057      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18058      need_version=yes
18059      ;;
18060  esac
18061  shlibpath_var=LD_LIBRARY_PATH
18062  case $host_os in
18063  freebsd2.*)
18064    shlibpath_overrides_runpath=yes
18065    ;;
18066  freebsd3.[01]* | freebsdelf3.[01]*)
18067    shlibpath_overrides_runpath=yes
18068    hardcode_into_libs=yes
18069    ;;
18070  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18071  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18072    shlibpath_overrides_runpath=no
18073    hardcode_into_libs=yes
18074    ;;
18075  *) # from 4.6 on, and DragonFly
18076    shlibpath_overrides_runpath=yes
18077    hardcode_into_libs=yes
18078    ;;
18079  esac
18080  ;;
18081
18082haiku*)
18083  version_type=linux # correct to gnu/linux during the next big refactor
18084  need_lib_prefix=no
18085  need_version=no
18086  dynamic_linker="$host_os runtime_loader"
18087  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18088  soname_spec='$libname$release$shared_ext$major'
18089  shlibpath_var=LIBRARY_PATH
18090  shlibpath_overrides_runpath=no
18091  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18092  hardcode_into_libs=yes
18093  ;;
18094
18095hpux9* | hpux10* | hpux11*)
18096  # Give a soname corresponding to the major version so that dld.sl refuses to
18097  # link against other versions.
18098  version_type=sunos
18099  need_lib_prefix=no
18100  need_version=no
18101  case $host_cpu in
18102  ia64*)
18103    shrext_cmds='.so'
18104    hardcode_into_libs=yes
18105    dynamic_linker="$host_os dld.so"
18106    shlibpath_var=LD_LIBRARY_PATH
18107    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18108    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18109    soname_spec='$libname$release$shared_ext$major'
18110    if test 32 = "$HPUX_IA64_MODE"; then
18111      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18112      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18113    else
18114      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18115      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18116    fi
18117    ;;
18118  hppa*64*)
18119    shrext_cmds='.sl'
18120    hardcode_into_libs=yes
18121    dynamic_linker="$host_os dld.sl"
18122    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18123    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18124    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18125    soname_spec='$libname$release$shared_ext$major'
18126    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18127    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18128    ;;
18129  *)
18130    shrext_cmds='.sl'
18131    dynamic_linker="$host_os dld.sl"
18132    shlibpath_var=SHLIB_PATH
18133    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18134    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18135    soname_spec='$libname$release$shared_ext$major'
18136    ;;
18137  esac
18138  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18139  postinstall_cmds='chmod 555 $lib'
18140  # or fails outright, so override atomically:
18141  install_override_mode=555
18142  ;;
18143
18144interix[3-9]*)
18145  version_type=linux # correct to gnu/linux during the next big refactor
18146  need_lib_prefix=no
18147  need_version=no
18148  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18149  soname_spec='$libname$release$shared_ext$major'
18150  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18151  shlibpath_var=LD_LIBRARY_PATH
18152  shlibpath_overrides_runpath=no
18153  hardcode_into_libs=yes
18154  ;;
18155
18156irix5* | irix6* | nonstopux*)
18157  case $host_os in
18158    nonstopux*) version_type=nonstopux ;;
18159    *)
18160	if test yes = "$lt_cv_prog_gnu_ld"; then
18161		version_type=linux # correct to gnu/linux during the next big refactor
18162	else
18163		version_type=irix
18164	fi ;;
18165  esac
18166  need_lib_prefix=no
18167  need_version=no
18168  soname_spec='$libname$release$shared_ext$major'
18169  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18170  case $host_os in
18171  irix5* | nonstopux*)
18172    libsuff= shlibsuff=
18173    ;;
18174  *)
18175    case $LD in # libtool.m4 will add one of these switches to LD
18176    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18177      libsuff= shlibsuff= libmagic=32-bit;;
18178    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18179      libsuff=32 shlibsuff=N32 libmagic=N32;;
18180    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18181      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18182    *) libsuff= shlibsuff= libmagic=never-match;;
18183    esac
18184    ;;
18185  esac
18186  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18187  shlibpath_overrides_runpath=no
18188  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18189  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18190  hardcode_into_libs=yes
18191  ;;
18192
18193# No shared lib support for Linux oldld, aout, or coff.
18194linux*oldld* | linux*aout* | linux*coff*)
18195  dynamic_linker=no
18196  ;;
18197
18198linux*android*)
18199  version_type=none # Android doesn't support versioned libraries.
18200  need_lib_prefix=no
18201  need_version=no
18202  library_names_spec='$libname$release$shared_ext'
18203  soname_spec='$libname$release$shared_ext'
18204  finish_cmds=
18205  shlibpath_var=LD_LIBRARY_PATH
18206  shlibpath_overrides_runpath=yes
18207
18208  # This implies no fast_install, which is unacceptable.
18209  # Some rework will be needed to allow for fast_install
18210  # before this can be enabled.
18211  hardcode_into_libs=yes
18212
18213  dynamic_linker='Android linker'
18214  # Don't embed -rpath directories since the linker doesn't support them.
18215  hardcode_libdir_flag_spec='-L$libdir'
18216  ;;
18217
18218# This must be glibc/ELF.
18219linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18220  version_type=linux # correct to gnu/linux during the next big refactor
18221  need_lib_prefix=no
18222  need_version=no
18223  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18224  soname_spec='$libname$release$shared_ext$major'
18225  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18226  shlibpath_var=LD_LIBRARY_PATH
18227  shlibpath_overrides_runpath=no
18228
18229  # Some binutils ld are patched to set DT_RUNPATH
18230  if test ${lt_cv_shlibpath_overrides_runpath+y}
18231then :
18232  printf %s "(cached) " >&6
18233else $as_nop
18234  lt_cv_shlibpath_overrides_runpath=no
18235    save_LDFLAGS=$LDFLAGS
18236    save_libdir=$libdir
18237    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18238	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18239    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240/* end confdefs.h.  */
18241
18242int
18243main (void)
18244{
18245
18246  ;
18247  return 0;
18248}
18249_ACEOF
18250if ac_fn_c_try_link "$LINENO"
18251then :
18252  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18253then :
18254  lt_cv_shlibpath_overrides_runpath=yes
18255fi
18256fi
18257rm -f core conftest.err conftest.$ac_objext conftest.beam \
18258    conftest$ac_exeext conftest.$ac_ext
18259    LDFLAGS=$save_LDFLAGS
18260    libdir=$save_libdir
18261
18262fi
18263
18264  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18265
18266  # This implies no fast_install, which is unacceptable.
18267  # Some rework will be needed to allow for fast_install
18268  # before this can be enabled.
18269  hardcode_into_libs=yes
18270
18271  # Ideally, we could use ldconfig to report *all* directores which are
18272  # searched for libraries, however this is still not possible.  Aside from not
18273  # being certain /sbin/ldconfig is available, command
18274  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18275  # even though it is searched at run-time.  Try to do the best guess by
18276  # appending ld.so.conf contents (and includes) to the search path.
18277  if test -f /etc/ld.so.conf; then
18278    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' ' '`
18279    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18280  fi
18281
18282  # We used to test for /lib/ld.so.1 and disable shared libraries on
18283  # powerpc, because MkLinux only supported shared libraries with the
18284  # GNU dynamic linker.  Since this was broken with cross compilers,
18285  # most powerpc-linux boxes support dynamic linking these days and
18286  # people can always --disable-shared, the test was removed, and we
18287  # assume the GNU/Linux dynamic linker is in use.
18288  dynamic_linker='GNU/Linux ld.so'
18289  ;;
18290
18291netbsd*)
18292  version_type=sunos
18293  need_lib_prefix=no
18294  need_version=no
18295  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18296    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18297    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18298    dynamic_linker='NetBSD (a.out) ld.so'
18299  else
18300    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18301    soname_spec='$libname$release$shared_ext$major'
18302    dynamic_linker='NetBSD ld.elf_so'
18303  fi
18304  shlibpath_var=LD_LIBRARY_PATH
18305  shlibpath_overrides_runpath=yes
18306  hardcode_into_libs=yes
18307  ;;
18308
18309newsos6)
18310  version_type=linux # correct to gnu/linux during the next big refactor
18311  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18312  shlibpath_var=LD_LIBRARY_PATH
18313  shlibpath_overrides_runpath=yes
18314  ;;
18315
18316*nto* | *qnx*)
18317  version_type=qnx
18318  need_lib_prefix=no
18319  need_version=no
18320  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18321  soname_spec='$libname$release$shared_ext$major'
18322  shlibpath_var=LD_LIBRARY_PATH
18323  shlibpath_overrides_runpath=no
18324  hardcode_into_libs=yes
18325  dynamic_linker='ldqnx.so'
18326  ;;
18327
18328openbsd* | bitrig*)
18329  version_type=sunos
18330  sys_lib_dlsearch_path_spec=/usr/lib
18331  need_lib_prefix=no
18332  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18333    need_version=no
18334  else
18335    need_version=yes
18336  fi
18337  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18338  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18339  shlibpath_var=LD_LIBRARY_PATH
18340  shlibpath_overrides_runpath=yes
18341  ;;
18342
18343os2*)
18344  libname_spec='$name'
18345  version_type=windows
18346  shrext_cmds=.dll
18347  need_version=no
18348  need_lib_prefix=no
18349  # OS/2 can only load a DLL with a base name of 8 characters or less.
18350  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18351    v=$($ECHO $release$versuffix | tr -d .-);
18352    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18353    $ECHO $n$v`$shared_ext'
18354  library_names_spec='${libname}_dll.$libext'
18355  dynamic_linker='OS/2 ld.exe'
18356  shlibpath_var=BEGINLIBPATH
18357  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18358  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18359  postinstall_cmds='base_file=`basename \$file`~
18360    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18361    dldir=$destdir/`dirname \$dlpath`~
18362    test -d \$dldir || mkdir -p \$dldir~
18363    $install_prog $dir/$dlname \$dldir/$dlname~
18364    chmod a+x \$dldir/$dlname~
18365    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18366      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18367    fi'
18368  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18369    dlpath=$dir/\$dldll~
18370    $RM \$dlpath'
18371  ;;
18372
18373osf3* | osf4* | osf5*)
18374  version_type=osf
18375  need_lib_prefix=no
18376  need_version=no
18377  soname_spec='$libname$release$shared_ext$major'
18378  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18379  shlibpath_var=LD_LIBRARY_PATH
18380  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18381  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18382  ;;
18383
18384rdos*)
18385  dynamic_linker=no
18386  ;;
18387
18388solaris*)
18389  version_type=linux # correct to gnu/linux during the next big refactor
18390  need_lib_prefix=no
18391  need_version=no
18392  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18393  soname_spec='$libname$release$shared_ext$major'
18394  shlibpath_var=LD_LIBRARY_PATH
18395  shlibpath_overrides_runpath=yes
18396  hardcode_into_libs=yes
18397  # ldd complains unless libraries are executable
18398  postinstall_cmds='chmod +x $lib'
18399  ;;
18400
18401sunos4*)
18402  version_type=sunos
18403  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18404  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18405  shlibpath_var=LD_LIBRARY_PATH
18406  shlibpath_overrides_runpath=yes
18407  if test yes = "$with_gnu_ld"; then
18408    need_lib_prefix=no
18409  fi
18410  need_version=yes
18411  ;;
18412
18413sysv4 | sysv4.3*)
18414  version_type=linux # correct to gnu/linux during the next big refactor
18415  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18416  soname_spec='$libname$release$shared_ext$major'
18417  shlibpath_var=LD_LIBRARY_PATH
18418  case $host_vendor in
18419    sni)
18420      shlibpath_overrides_runpath=no
18421      need_lib_prefix=no
18422      runpath_var=LD_RUN_PATH
18423      ;;
18424    siemens)
18425      need_lib_prefix=no
18426      ;;
18427    motorola)
18428      need_lib_prefix=no
18429      need_version=no
18430      shlibpath_overrides_runpath=no
18431      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18432      ;;
18433  esac
18434  ;;
18435
18436sysv4*MP*)
18437  if test -d /usr/nec; then
18438    version_type=linux # correct to gnu/linux during the next big refactor
18439    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18440    soname_spec='$libname$shared_ext.$major'
18441    shlibpath_var=LD_LIBRARY_PATH
18442  fi
18443  ;;
18444
18445sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18446  version_type=sco
18447  need_lib_prefix=no
18448  need_version=no
18449  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18450  soname_spec='$libname$release$shared_ext$major'
18451  shlibpath_var=LD_LIBRARY_PATH
18452  shlibpath_overrides_runpath=yes
18453  hardcode_into_libs=yes
18454  if test yes = "$with_gnu_ld"; then
18455    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18456  else
18457    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18458    case $host_os in
18459      sco3.2v5*)
18460        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18461	;;
18462    esac
18463  fi
18464  sys_lib_dlsearch_path_spec='/usr/lib'
18465  ;;
18466
18467tpf*)
18468  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18469  version_type=linux # correct to gnu/linux during the next big refactor
18470  need_lib_prefix=no
18471  need_version=no
18472  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18473  shlibpath_var=LD_LIBRARY_PATH
18474  shlibpath_overrides_runpath=no
18475  hardcode_into_libs=yes
18476  ;;
18477
18478uts4*)
18479  version_type=linux # correct to gnu/linux during the next big refactor
18480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18481  soname_spec='$libname$release$shared_ext$major'
18482  shlibpath_var=LD_LIBRARY_PATH
18483  ;;
18484
18485*)
18486  dynamic_linker=no
18487  ;;
18488esac
18489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18490printf "%s\n" "$dynamic_linker" >&6; }
18491test no = "$dynamic_linker" && can_build_shared=no
18492
18493variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18494if test yes = "$GCC"; then
18495  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18496fi
18497
18498if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18499  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18500fi
18501
18502if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18503  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18504fi
18505
18506# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18507configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18508
18509# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18510func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18511
18512# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18513configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18612printf %s "checking how to hardcode library paths into programs... " >&6; }
18613hardcode_action=
18614if test -n "$hardcode_libdir_flag_spec" ||
18615   test -n "$runpath_var" ||
18616   test yes = "$hardcode_automatic"; then
18617
18618  # We can hardcode non-existent directories.
18619  if test no != "$hardcode_direct" &&
18620     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18621     # have to relink, otherwise we might link with an installed library
18622     # when we should be linking with a yet-to-be-installed one
18623     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18624     test no != "$hardcode_minus_L"; then
18625    # Linking always hardcodes the temporary library directory.
18626    hardcode_action=relink
18627  else
18628    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18629    hardcode_action=immediate
18630  fi
18631else
18632  # We cannot hardcode anything, or else we can only hardcode existing
18633  # directories.
18634  hardcode_action=unsupported
18635fi
18636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18637printf "%s\n" "$hardcode_action" >&6; }
18638
18639if test relink = "$hardcode_action" ||
18640   test yes = "$inherit_rpath"; then
18641  # Fast installation is not supported
18642  enable_fast_install=no
18643elif test yes = "$shlibpath_overrides_runpath" ||
18644     test no = "$enable_shared"; then
18645  # Fast installation is not necessary
18646  enable_fast_install=needless
18647fi
18648
18649
18650
18651
18652
18653
18654  if test yes != "$enable_dlopen"; then
18655  enable_dlopen=unknown
18656  enable_dlopen_self=unknown
18657  enable_dlopen_self_static=unknown
18658else
18659  lt_cv_dlopen=no
18660  lt_cv_dlopen_libs=
18661
18662  case $host_os in
18663  beos*)
18664    lt_cv_dlopen=load_add_on
18665    lt_cv_dlopen_libs=
18666    lt_cv_dlopen_self=yes
18667    ;;
18668
18669  mingw* | pw32* | cegcc*)
18670    lt_cv_dlopen=LoadLibrary
18671    lt_cv_dlopen_libs=
18672    ;;
18673
18674  cygwin*)
18675    lt_cv_dlopen=dlopen
18676    lt_cv_dlopen_libs=
18677    ;;
18678
18679  darwin*)
18680    # if libdl is installed we need to link against it
18681    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18682printf %s "checking for dlopen in -ldl... " >&6; }
18683if test ${ac_cv_lib_dl_dlopen+y}
18684then :
18685  printf %s "(cached) " >&6
18686else $as_nop
18687  ac_check_lib_save_LIBS=$LIBS
18688LIBS="-ldl  $LIBS"
18689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18690/* end confdefs.h.  */
18691
18692/* Override any GCC internal prototype to avoid an error.
18693   Use char because int might match the return type of a GCC
18694   builtin and then its argument prototype would still apply.  */
18695char dlopen ();
18696int
18697main (void)
18698{
18699return dlopen ();
18700  ;
18701  return 0;
18702}
18703_ACEOF
18704if ac_fn_c_try_link "$LINENO"
18705then :
18706  ac_cv_lib_dl_dlopen=yes
18707else $as_nop
18708  ac_cv_lib_dl_dlopen=no
18709fi
18710rm -f core conftest.err conftest.$ac_objext conftest.beam \
18711    conftest$ac_exeext conftest.$ac_ext
18712LIBS=$ac_check_lib_save_LIBS
18713fi
18714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18715printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18716if test "x$ac_cv_lib_dl_dlopen" = xyes
18717then :
18718  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18719else $as_nop
18720
18721    lt_cv_dlopen=dyld
18722    lt_cv_dlopen_libs=
18723    lt_cv_dlopen_self=yes
18724
18725fi
18726
18727    ;;
18728
18729  tpf*)
18730    # Don't try to run any link tests for TPF.  We know it's impossible
18731    # because TPF is a cross-compiler, and we know how we open DSOs.
18732    lt_cv_dlopen=dlopen
18733    lt_cv_dlopen_libs=
18734    lt_cv_dlopen_self=no
18735    ;;
18736
18737  *)
18738    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18739if test "x$ac_cv_func_shl_load" = xyes
18740then :
18741  lt_cv_dlopen=shl_load
18742else $as_nop
18743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18744printf %s "checking for shl_load in -ldld... " >&6; }
18745if test ${ac_cv_lib_dld_shl_load+y}
18746then :
18747  printf %s "(cached) " >&6
18748else $as_nop
18749  ac_check_lib_save_LIBS=$LIBS
18750LIBS="-ldld  $LIBS"
18751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752/* end confdefs.h.  */
18753
18754/* Override any GCC internal prototype to avoid an error.
18755   Use char because int might match the return type of a GCC
18756   builtin and then its argument prototype would still apply.  */
18757char shl_load ();
18758int
18759main (void)
18760{
18761return shl_load ();
18762  ;
18763  return 0;
18764}
18765_ACEOF
18766if ac_fn_c_try_link "$LINENO"
18767then :
18768  ac_cv_lib_dld_shl_load=yes
18769else $as_nop
18770  ac_cv_lib_dld_shl_load=no
18771fi
18772rm -f core conftest.err conftest.$ac_objext conftest.beam \
18773    conftest$ac_exeext conftest.$ac_ext
18774LIBS=$ac_check_lib_save_LIBS
18775fi
18776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18777printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18778if test "x$ac_cv_lib_dld_shl_load" = xyes
18779then :
18780  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18781else $as_nop
18782  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18783if test "x$ac_cv_func_dlopen" = xyes
18784then :
18785  lt_cv_dlopen=dlopen
18786else $as_nop
18787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18788printf %s "checking for dlopen in -ldl... " >&6; }
18789if test ${ac_cv_lib_dl_dlopen+y}
18790then :
18791  printf %s "(cached) " >&6
18792else $as_nop
18793  ac_check_lib_save_LIBS=$LIBS
18794LIBS="-ldl  $LIBS"
18795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796/* end confdefs.h.  */
18797
18798/* Override any GCC internal prototype to avoid an error.
18799   Use char because int might match the return type of a GCC
18800   builtin and then its argument prototype would still apply.  */
18801char dlopen ();
18802int
18803main (void)
18804{
18805return dlopen ();
18806  ;
18807  return 0;
18808}
18809_ACEOF
18810if ac_fn_c_try_link "$LINENO"
18811then :
18812  ac_cv_lib_dl_dlopen=yes
18813else $as_nop
18814  ac_cv_lib_dl_dlopen=no
18815fi
18816rm -f core conftest.err conftest.$ac_objext conftest.beam \
18817    conftest$ac_exeext conftest.$ac_ext
18818LIBS=$ac_check_lib_save_LIBS
18819fi
18820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18821printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18822if test "x$ac_cv_lib_dl_dlopen" = xyes
18823then :
18824  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18825else $as_nop
18826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18827printf %s "checking for dlopen in -lsvld... " >&6; }
18828if test ${ac_cv_lib_svld_dlopen+y}
18829then :
18830  printf %s "(cached) " >&6
18831else $as_nop
18832  ac_check_lib_save_LIBS=$LIBS
18833LIBS="-lsvld  $LIBS"
18834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835/* end confdefs.h.  */
18836
18837/* Override any GCC internal prototype to avoid an error.
18838   Use char because int might match the return type of a GCC
18839   builtin and then its argument prototype would still apply.  */
18840char dlopen ();
18841int
18842main (void)
18843{
18844return dlopen ();
18845  ;
18846  return 0;
18847}
18848_ACEOF
18849if ac_fn_c_try_link "$LINENO"
18850then :
18851  ac_cv_lib_svld_dlopen=yes
18852else $as_nop
18853  ac_cv_lib_svld_dlopen=no
18854fi
18855rm -f core conftest.err conftest.$ac_objext conftest.beam \
18856    conftest$ac_exeext conftest.$ac_ext
18857LIBS=$ac_check_lib_save_LIBS
18858fi
18859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18860printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18861if test "x$ac_cv_lib_svld_dlopen" = xyes
18862then :
18863  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18864else $as_nop
18865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18866printf %s "checking for dld_link in -ldld... " >&6; }
18867if test ${ac_cv_lib_dld_dld_link+y}
18868then :
18869  printf %s "(cached) " >&6
18870else $as_nop
18871  ac_check_lib_save_LIBS=$LIBS
18872LIBS="-ldld  $LIBS"
18873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18874/* end confdefs.h.  */
18875
18876/* Override any GCC internal prototype to avoid an error.
18877   Use char because int might match the return type of a GCC
18878   builtin and then its argument prototype would still apply.  */
18879char dld_link ();
18880int
18881main (void)
18882{
18883return dld_link ();
18884  ;
18885  return 0;
18886}
18887_ACEOF
18888if ac_fn_c_try_link "$LINENO"
18889then :
18890  ac_cv_lib_dld_dld_link=yes
18891else $as_nop
18892  ac_cv_lib_dld_dld_link=no
18893fi
18894rm -f core conftest.err conftest.$ac_objext conftest.beam \
18895    conftest$ac_exeext conftest.$ac_ext
18896LIBS=$ac_check_lib_save_LIBS
18897fi
18898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18899printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18900if test "x$ac_cv_lib_dld_dld_link" = xyes
18901then :
18902  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18903fi
18904
18905
18906fi
18907
18908
18909fi
18910
18911
18912fi
18913
18914
18915fi
18916
18917
18918fi
18919
18920    ;;
18921  esac
18922
18923  if test no = "$lt_cv_dlopen"; then
18924    enable_dlopen=no
18925  else
18926    enable_dlopen=yes
18927  fi
18928
18929  case $lt_cv_dlopen in
18930  dlopen)
18931    save_CPPFLAGS=$CPPFLAGS
18932    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18933
18934    save_LDFLAGS=$LDFLAGS
18935    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18936
18937    save_LIBS=$LIBS
18938    LIBS="$lt_cv_dlopen_libs $LIBS"
18939
18940    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18941printf %s "checking whether a program can dlopen itself... " >&6; }
18942if test ${lt_cv_dlopen_self+y}
18943then :
18944  printf %s "(cached) " >&6
18945else $as_nop
18946  	  if test yes = "$cross_compiling"; then :
18947  lt_cv_dlopen_self=cross
18948else
18949  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18950  lt_status=$lt_dlunknown
18951  cat > conftest.$ac_ext <<_LT_EOF
18952#line $LINENO "configure"
18953#include "confdefs.h"
18954
18955#if HAVE_DLFCN_H
18956#include <dlfcn.h>
18957#endif
18958
18959#include <stdio.h>
18960
18961#ifdef RTLD_GLOBAL
18962#  define LT_DLGLOBAL		RTLD_GLOBAL
18963#else
18964#  ifdef DL_GLOBAL
18965#    define LT_DLGLOBAL		DL_GLOBAL
18966#  else
18967#    define LT_DLGLOBAL		0
18968#  endif
18969#endif
18970
18971/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18972   find out it does not work in some platform. */
18973#ifndef LT_DLLAZY_OR_NOW
18974#  ifdef RTLD_LAZY
18975#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18976#  else
18977#    ifdef DL_LAZY
18978#      define LT_DLLAZY_OR_NOW		DL_LAZY
18979#    else
18980#      ifdef RTLD_NOW
18981#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18982#      else
18983#        ifdef DL_NOW
18984#          define LT_DLLAZY_OR_NOW	DL_NOW
18985#        else
18986#          define LT_DLLAZY_OR_NOW	0
18987#        endif
18988#      endif
18989#    endif
18990#  endif
18991#endif
18992
18993/* When -fvisibility=hidden is used, assume the code has been annotated
18994   correspondingly for the symbols needed.  */
18995#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18996int fnord () __attribute__((visibility("default")));
18997#endif
18998
18999int fnord () { return 42; }
19000int main ()
19001{
19002  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19003  int status = $lt_dlunknown;
19004
19005  if (self)
19006    {
19007      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19008      else
19009        {
19010	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19011          else puts (dlerror ());
19012	}
19013      /* dlclose (self); */
19014    }
19015  else
19016    puts (dlerror ());
19017
19018  return status;
19019}
19020_LT_EOF
19021  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19022  (eval $ac_link) 2>&5
19023  ac_status=$?
19024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19025  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19026    (./conftest; exit; ) >&5 2>/dev/null
19027    lt_status=$?
19028    case x$lt_status in
19029      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19030      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19031      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19032    esac
19033  else :
19034    # compilation failed
19035    lt_cv_dlopen_self=no
19036  fi
19037fi
19038rm -fr conftest*
19039
19040
19041fi
19042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19043printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19044
19045    if test yes = "$lt_cv_dlopen_self"; then
19046      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19047      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19048printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19049if test ${lt_cv_dlopen_self_static+y}
19050then :
19051  printf %s "(cached) " >&6
19052else $as_nop
19053  	  if test yes = "$cross_compiling"; then :
19054  lt_cv_dlopen_self_static=cross
19055else
19056  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19057  lt_status=$lt_dlunknown
19058  cat > conftest.$ac_ext <<_LT_EOF
19059#line $LINENO "configure"
19060#include "confdefs.h"
19061
19062#if HAVE_DLFCN_H
19063#include <dlfcn.h>
19064#endif
19065
19066#include <stdio.h>
19067
19068#ifdef RTLD_GLOBAL
19069#  define LT_DLGLOBAL		RTLD_GLOBAL
19070#else
19071#  ifdef DL_GLOBAL
19072#    define LT_DLGLOBAL		DL_GLOBAL
19073#  else
19074#    define LT_DLGLOBAL		0
19075#  endif
19076#endif
19077
19078/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19079   find out it does not work in some platform. */
19080#ifndef LT_DLLAZY_OR_NOW
19081#  ifdef RTLD_LAZY
19082#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19083#  else
19084#    ifdef DL_LAZY
19085#      define LT_DLLAZY_OR_NOW		DL_LAZY
19086#    else
19087#      ifdef RTLD_NOW
19088#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19089#      else
19090#        ifdef DL_NOW
19091#          define LT_DLLAZY_OR_NOW	DL_NOW
19092#        else
19093#          define LT_DLLAZY_OR_NOW	0
19094#        endif
19095#      endif
19096#    endif
19097#  endif
19098#endif
19099
19100/* When -fvisibility=hidden is used, assume the code has been annotated
19101   correspondingly for the symbols needed.  */
19102#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19103int fnord () __attribute__((visibility("default")));
19104#endif
19105
19106int fnord () { return 42; }
19107int main ()
19108{
19109  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19110  int status = $lt_dlunknown;
19111
19112  if (self)
19113    {
19114      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19115      else
19116        {
19117	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19118          else puts (dlerror ());
19119	}
19120      /* dlclose (self); */
19121    }
19122  else
19123    puts (dlerror ());
19124
19125  return status;
19126}
19127_LT_EOF
19128  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19129  (eval $ac_link) 2>&5
19130  ac_status=$?
19131  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19132  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19133    (./conftest; exit; ) >&5 2>/dev/null
19134    lt_status=$?
19135    case x$lt_status in
19136      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19137      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19138      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19139    esac
19140  else :
19141    # compilation failed
19142    lt_cv_dlopen_self_static=no
19143  fi
19144fi
19145rm -fr conftest*
19146
19147
19148fi
19149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19150printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19151    fi
19152
19153    CPPFLAGS=$save_CPPFLAGS
19154    LDFLAGS=$save_LDFLAGS
19155    LIBS=$save_LIBS
19156    ;;
19157  esac
19158
19159  case $lt_cv_dlopen_self in
19160  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19161  *) enable_dlopen_self=unknown ;;
19162  esac
19163
19164  case $lt_cv_dlopen_self_static in
19165  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19166  *) enable_dlopen_self_static=unknown ;;
19167  esac
19168fi
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186striplib=
19187old_striplib=
19188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19189printf %s "checking whether stripping libraries is possible... " >&6; }
19190if test -z "$STRIP"; then
19191  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192printf "%s\n" "no" >&6; }
19193else
19194  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19195    old_striplib="$STRIP --strip-debug"
19196    striplib="$STRIP --strip-unneeded"
19197    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198printf "%s\n" "yes" >&6; }
19199  else
19200    case $host_os in
19201    darwin*)
19202      # FIXME - insert some real tests, host_os isn't really good enough
19203      striplib="$STRIP -x"
19204      old_striplib="$STRIP -S"
19205      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19206printf "%s\n" "yes" >&6; }
19207      ;;
19208    freebsd*)
19209      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19210        old_striplib="$STRIP --strip-debug"
19211        striplib="$STRIP --strip-unneeded"
19212        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19213printf "%s\n" "yes" >&6; }
19214      else
19215        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19216printf "%s\n" "no" >&6; }
19217      fi
19218      ;;
19219    *)
19220      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19221printf "%s\n" "no" >&6; }
19222      ;;
19223    esac
19224  fi
19225fi
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238  # Report what library types will actually be built
19239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19240printf %s "checking if libtool supports shared libraries... " >&6; }
19241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19242printf "%s\n" "$can_build_shared" >&6; }
19243
19244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19245printf %s "checking whether to build shared libraries... " >&6; }
19246  test no = "$can_build_shared" && enable_shared=no
19247
19248  # On AIX, shared libraries and static libraries use the same namespace, and
19249  # are all built from PIC.
19250  case $host_os in
19251  aix3*)
19252    test yes = "$enable_shared" && enable_static=no
19253    if test -n "$RANLIB"; then
19254      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19255      postinstall_cmds='$RANLIB $lib'
19256    fi
19257    ;;
19258
19259  aix[4-9]*)
19260    if test ia64 != "$host_cpu"; then
19261      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19262      yes,aix,yes) ;;			# shared object as lib.so file only
19263      yes,svr4,*) ;;			# shared object as lib.so archive member only
19264      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19265      esac
19266    fi
19267    ;;
19268  esac
19269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19270printf "%s\n" "$enable_shared" >&6; }
19271
19272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19273printf %s "checking whether to build static libraries... " >&6; }
19274  # Make sure either enable_shared or enable_static is yes.
19275  test yes = "$enable_shared" || enable_static=yes
19276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19277printf "%s\n" "$enable_static" >&6; }
19278
19279
19280
19281
19282fi
19283ac_ext=c
19284ac_cpp='$CPP $CPPFLAGS'
19285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19287ac_compiler_gnu=$ac_cv_c_compiler_gnu
19288
19289CC=$lt_save_CC
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305        ac_config_commands="$ac_config_commands libtool"
19306
19307
19308
19309
19310# Only expand once:
19311
19312
19313
19314
19315
19316# Define a configure option for an alternate module directory
19317
19318# Check whether --with-xorg-module-dir was given.
19319if test ${with_xorg_module_dir+y}
19320then :
19321  withval=$with_xorg_module_dir; moduledir="$withval"
19322else $as_nop
19323  moduledir="$libdir/xorg/modules"
19324fi
19325
19326
19327# Check whether --enable-dri was given.
19328if test ${enable_dri+y}
19329then :
19330  enableval=$enable_dri; DRI="$enableval"
19331else $as_nop
19332  DRI=auto
19333fi
19334
19335
19336# Store the list of server defined optional extensions in REQUIRED_MODULES
19337
19338
19339	SAVE_CFLAGS="$CFLAGS"
19340	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19341	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19342/* end confdefs.h.  */
19343
19344#include "xorg-server.h"
19345#if !defined RANDR
19346#error RANDR not defined
19347#endif
19348
19349int
19350main (void)
19351{
19352
19353  ;
19354  return 0;
19355}
19356_ACEOF
19357if ac_fn_c_try_compile "$LINENO"
19358then :
19359  _EXT_CHECK=yes
19360else $as_nop
19361  _EXT_CHECK=no
19362fi
19363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19364	CFLAGS="$SAVE_CFLAGS"
19365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19366printf %s "checking if RANDR is defined... " >&6; }
19367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19368printf "%s\n" "$_EXT_CHECK" >&6; }
19369	if test "$_EXT_CHECK" != no; then
19370		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19371	fi
19372
19373
19374
19375	SAVE_CFLAGS="$CFLAGS"
19376	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19377	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378/* end confdefs.h.  */
19379
19380#include "xorg-server.h"
19381#if !defined RENDER
19382#error RENDER not defined
19383#endif
19384
19385int
19386main (void)
19387{
19388
19389  ;
19390  return 0;
19391}
19392_ACEOF
19393if ac_fn_c_try_compile "$LINENO"
19394then :
19395  _EXT_CHECK=yes
19396else $as_nop
19397  _EXT_CHECK=no
19398fi
19399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19400	CFLAGS="$SAVE_CFLAGS"
19401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19402printf %s "checking if RENDER is defined... " >&6; }
19403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19404printf "%s\n" "$_EXT_CHECK" >&6; }
19405	if test "$_EXT_CHECK" != no; then
19406		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19407	fi
19408
19409
19410
19411	SAVE_CFLAGS="$CFLAGS"
19412	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19413	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414/* end confdefs.h.  */
19415
19416#include "xorg-server.h"
19417#if !defined XV
19418#error XV not defined
19419#endif
19420
19421int
19422main (void)
19423{
19424
19425  ;
19426  return 0;
19427}
19428_ACEOF
19429if ac_fn_c_try_compile "$LINENO"
19430then :
19431  _EXT_CHECK=yes
19432else $as_nop
19433  _EXT_CHECK=no
19434fi
19435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19436	CFLAGS="$SAVE_CFLAGS"
19437	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19438printf %s "checking if XV is defined... " >&6; }
19439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19440printf "%s\n" "$_EXT_CHECK" >&6; }
19441	if test "$_EXT_CHECK" != no; then
19442		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19443	fi
19444
19445
19446
19447	SAVE_CFLAGS="$CFLAGS"
19448	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19449	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19450/* end confdefs.h.  */
19451
19452#include "xorg-server.h"
19453#if !defined DPMSExtension
19454#error DPMSExtension not defined
19455#endif
19456
19457int
19458main (void)
19459{
19460
19461  ;
19462  return 0;
19463}
19464_ACEOF
19465if ac_fn_c_try_compile "$LINENO"
19466then :
19467  _EXT_CHECK=yes
19468else $as_nop
19469  _EXT_CHECK=no
19470fi
19471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19472	CFLAGS="$SAVE_CFLAGS"
19473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19474printf %s "checking if DPMSExtension is defined... " >&6; }
19475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19476printf "%s\n" "$_EXT_CHECK" >&6; }
19477	if test "$_EXT_CHECK" != no; then
19478		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19479	fi
19480
19481
19482# Obtain compiler/linker options for the driver dependencies
19483
19484pkg_failed=no
19485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19486printf %s "checking for XORG... " >&6; }
19487
19488if test -n "$XORG_CFLAGS"; then
19489    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19490 elif test -n "$PKG_CONFIG"; then
19491    if test -n "$PKG_CONFIG" && \
19492    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19493  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
19494  ac_status=$?
19495  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19496  test $ac_status = 0; }; then
19497  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19498		      test "x$?" != "x0" && pkg_failed=yes
19499else
19500  pkg_failed=yes
19501fi
19502 else
19503    pkg_failed=untried
19504fi
19505if test -n "$XORG_LIBS"; then
19506    pkg_cv_XORG_LIBS="$XORG_LIBS"
19507 elif test -n "$PKG_CONFIG"; then
19508    if test -n "$PKG_CONFIG" && \
19509    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19510  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
19511  ac_status=$?
19512  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513  test $ac_status = 0; }; then
19514  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19515		      test "x$?" != "x0" && pkg_failed=yes
19516else
19517  pkg_failed=yes
19518fi
19519 else
19520    pkg_failed=untried
19521fi
19522
19523
19524
19525if test $pkg_failed = yes; then
19526   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527printf "%s\n" "no" >&6; }
19528
19529if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19530        _pkg_short_errors_supported=yes
19531else
19532        _pkg_short_errors_supported=no
19533fi
19534        if test $_pkg_short_errors_supported = yes; then
19535	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19536        else
19537	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19538        fi
19539	# Put the nasty error message in config.log where it belongs
19540	echo "$XORG_PKG_ERRORS" >&5
19541
19542	as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
19543
19544$XORG_PKG_ERRORS
19545
19546Consider adjusting the PKG_CONFIG_PATH environment variable if you
19547installed software in a non-standard prefix.
19548
19549Alternatively, you may set the environment variables XORG_CFLAGS
19550and XORG_LIBS to avoid the need to call pkg-config.
19551See the pkg-config man page for more details." "$LINENO" 5
19552elif test $pkg_failed = untried; then
19553     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554printf "%s\n" "no" >&6; }
19555	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19556printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19557as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19558is in your PATH or set the PKG_CONFIG environment variable to the full
19559path to pkg-config.
19560
19561Alternatively, you may set the environment variables XORG_CFLAGS
19562and XORG_LIBS to avoid the need to call pkg-config.
19563See the pkg-config man page for more details.
19564
19565To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19566See \`config.log' for more details" "$LINENO" 5; }
19567else
19568	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19569	XORG_LIBS=$pkg_cv_XORG_LIBS
19570        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19571printf "%s\n" "yes" >&6; }
19572
19573fi
19574
19575pkg_failed=no
19576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19577printf %s "checking for XEXT... " >&6; }
19578
19579if test -n "$XEXT_CFLAGS"; then
19580    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19581 elif test -n "$PKG_CONFIG"; then
19582    if test -n "$PKG_CONFIG" && \
19583    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19584  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19585  ac_status=$?
19586  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19587  test $ac_status = 0; }; then
19588  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19589		      test "x$?" != "x0" && pkg_failed=yes
19590else
19591  pkg_failed=yes
19592fi
19593 else
19594    pkg_failed=untried
19595fi
19596if test -n "$XEXT_LIBS"; then
19597    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19598 elif test -n "$PKG_CONFIG"; then
19599    if test -n "$PKG_CONFIG" && \
19600    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19601  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19602  ac_status=$?
19603  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19604  test $ac_status = 0; }; then
19605  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19606		      test "x$?" != "x0" && pkg_failed=yes
19607else
19608  pkg_failed=yes
19609fi
19610 else
19611    pkg_failed=untried
19612fi
19613
19614
19615
19616if test $pkg_failed = yes; then
19617   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19618printf "%s\n" "no" >&6; }
19619
19620if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19621        _pkg_short_errors_supported=yes
19622else
19623        _pkg_short_errors_supported=no
19624fi
19625        if test $_pkg_short_errors_supported = yes; then
19626	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19627        else
19628	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19629        fi
19630	# Put the nasty error message in config.log where it belongs
19631	echo "$XEXT_PKG_ERRORS" >&5
19632
19633	HAVE_XEXTPROTO_71="no"
19634elif test $pkg_failed = untried; then
19635     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19636printf "%s\n" "no" >&6; }
19637	HAVE_XEXTPROTO_71="no"
19638else
19639	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19640	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19641        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19642printf "%s\n" "yes" >&6; }
19643	HAVE_XEXTPROTO_71="yes";
19644printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19645
19646fi
19647 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
19648  HAVE_XEXTPROTO_71_TRUE=
19649  HAVE_XEXTPROTO_71_FALSE='#'
19650else
19651  HAVE_XEXTPROTO_71_TRUE='#'
19652  HAVE_XEXTPROTO_71_FALSE=
19653fi
19654
19655sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
19656
19657# Checks for libraries.
19658
19659
19660if test "$DRI" != no; then
19661        if test "$cross_compiling" = "no" ; then
19662                as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
19663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
19664printf %s "checking for ${sdkdir}/dri.h... " >&6; }
19665if eval test \${$as_ac_File+y}
19666then :
19667  printf %s "(cached) " >&6
19668else $as_nop
19669  test "$cross_compiling" = yes &&
19670  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19671if test -r "${sdkdir}/dri.h"; then
19672  eval "$as_ac_File=yes"
19673else
19674  eval "$as_ac_File=no"
19675fi
19676fi
19677eval ac_res=\$$as_ac_File
19678	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19679printf "%s\n" "$ac_res" >&6; }
19680if eval test \"x\$"$as_ac_File"\" = x"yes"
19681then :
19682  have_dri_h="yes"
19683else $as_nop
19684  have_dri_h="no"
19685fi
19686
19687                as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
19688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
19689printf %s "checking for ${sdkdir}/sarea.h... " >&6; }
19690if eval test \${$as_ac_File+y}
19691then :
19692  printf %s "(cached) " >&6
19693else $as_nop
19694  test "$cross_compiling" = yes &&
19695  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19696if test -r "${sdkdir}/sarea.h"; then
19697  eval "$as_ac_File=yes"
19698else
19699  eval "$as_ac_File=no"
19700fi
19701fi
19702eval ac_res=\$$as_ac_File
19703	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19704printf "%s\n" "$ac_res" >&6; }
19705if eval test \"x\$"$as_ac_File"\" = x"yes"
19706then :
19707  have_sarea_h="yes"
19708else $as_nop
19709  have_sarea_h="no"
19710fi
19711
19712                as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
19713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
19714printf %s "checking for ${sdkdir}/dristruct.h... " >&6; }
19715if eval test \${$as_ac_File+y}
19716then :
19717  printf %s "(cached) " >&6
19718else $as_nop
19719  test "$cross_compiling" = yes &&
19720  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19721if test -r "${sdkdir}/dristruct.h"; then
19722  eval "$as_ac_File=yes"
19723else
19724  eval "$as_ac_File=no"
19725fi
19726fi
19727eval ac_res=\$$as_ac_File
19728	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19729printf "%s\n" "$ac_res" >&6; }
19730if eval test \"x\$"$as_ac_File"\" = x"yes"
19731then :
19732  have_dristruct_h="yes"
19733else $as_nop
19734  have_dristruct_h="no"
19735fi
19736
19737        else
19738                have_dri_h="yes"
19739                have_sarea_h="yes"
19740                have_dristruct_h="yes"
19741        fi
19742fi
19743
19744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
19745printf %s "checking whether to include DRI support... " >&6; }
19746if test x$DRI = xauto; then
19747        if test "$have_dri_h" = yes -a \
19748                "$have_sarea_h" = yes -a \
19749                "$have_dristruct_h" = yes; then
19750                DRI="yes"
19751        else
19752                DRI="no"
19753        fi
19754fi
19755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
19756printf "%s\n" "$DRI" >&6; }
19757
19758 if test x$DRI = xyes; then
19759  DRI_TRUE=
19760  DRI_FALSE='#'
19761else
19762  DRI_TRUE='#'
19763  DRI_FALSE=
19764fi
19765
19766if test "$DRI" = yes; then
19767
19768pkg_failed=no
19769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
19770printf %s "checking for DRI... " >&6; }
19771
19772if test -n "$DRI_CFLAGS"; then
19773    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
19774 elif test -n "$PKG_CONFIG"; then
19775    if test -n "$PKG_CONFIG" && \
19776    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
19777  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
19778  ac_status=$?
19779  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19780  test $ac_status = 0; }; then
19781  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
19782		      test "x$?" != "x0" && pkg_failed=yes
19783else
19784  pkg_failed=yes
19785fi
19786 else
19787    pkg_failed=untried
19788fi
19789if test -n "$DRI_LIBS"; then
19790    pkg_cv_DRI_LIBS="$DRI_LIBS"
19791 elif test -n "$PKG_CONFIG"; then
19792    if test -n "$PKG_CONFIG" && \
19793    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
19794  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
19795  ac_status=$?
19796  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797  test $ac_status = 0; }; then
19798  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
19799		      test "x$?" != "x0" && pkg_failed=yes
19800else
19801  pkg_failed=yes
19802fi
19803 else
19804    pkg_failed=untried
19805fi
19806
19807
19808
19809if test $pkg_failed = yes; then
19810   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19811printf "%s\n" "no" >&6; }
19812
19813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19814        _pkg_short_errors_supported=yes
19815else
19816        _pkg_short_errors_supported=no
19817fi
19818        if test $_pkg_short_errors_supported = yes; then
19819	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
19820        else
19821	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
19822        fi
19823	# Put the nasty error message in config.log where it belongs
19824	echo "$DRI_PKG_ERRORS" >&5
19825
19826	as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
19827
19828$DRI_PKG_ERRORS
19829
19830Consider adjusting the PKG_CONFIG_PATH environment variable if you
19831installed software in a non-standard prefix.
19832
19833Alternatively, you may set the environment variables DRI_CFLAGS
19834and DRI_LIBS to avoid the need to call pkg-config.
19835See the pkg-config man page for more details." "$LINENO" 5
19836elif test $pkg_failed = untried; then
19837     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19838printf "%s\n" "no" >&6; }
19839	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19840printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19841as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19842is in your PATH or set the PKG_CONFIG environment variable to the full
19843path to pkg-config.
19844
19845Alternatively, you may set the environment variables DRI_CFLAGS
19846and DRI_LIBS to avoid the need to call pkg-config.
19847See the pkg-config man page for more details.
19848
19849To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19850See \`config.log' for more details" "$LINENO" 5; }
19851else
19852	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19853	DRI_LIBS=$pkg_cv_DRI_LIBS
19854        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19855printf "%s\n" "yes" >&6; }
19856
19857fi
19858
19859printf "%s\n" "#define SAVAGEDRI 1" >>confdefs.h
19860
19861
19862printf "%s\n" "#define SAVAGEDRI_DEVEL 1" >>confdefs.h
19863
19864fi
19865
19866# Check whether --enable-xaa was given.
19867if test ${enable_xaa+y}
19868then :
19869  enableval=$enable_xaa; XAA="$enableval"
19870else $as_nop
19871  XAA=auto
19872fi
19873
19874if test "x$XAA" != xno; then
19875        save_CFLAGS=$CFLAGS
19876        save_CPPFLAGS=$CPPFLAGS
19877        CFLAGS=$XORG_CFLAGS
19878        CPPFLAGS="$XORG_CFLAGS"
19879               for ac_header in xaa.h
19880do :
19881  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19882if test "x$ac_cv_header_xaa_h" = xyes
19883then :
19884  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19885 XAA=yes
19886else $as_nop
19887  XAA=no
19888fi
19889
19890done
19891        CFLAGS=$save_CFLAGS
19892        CPPFLAGS=$save_CPPFLAGS
19893fi
19894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19895printf %s "checking whether to include XAA support... " >&6; }
19896 if test "x$XAA" = xyes; then
19897  XAA_TRUE=
19898  XAA_FALSE='#'
19899else
19900  XAA_TRUE='#'
19901  XAA_FALSE=
19902fi
19903
19904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19905printf "%s\n" "$XAA" >&6; }
19906
19907save_CFLAGS="$CFLAGS"
19908CFLAGS="$XORG_CFLAGS"
19909ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19910" "$ac_c_undeclared_builtin_options" "CFLAGS"
19911if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19912then :
19913  XSERVER_LIBPCIACCESS=yes
19914else $as_nop
19915  XSERVER_LIBPCIACCESS=no
19916fi
19917ac_fn_check_decl "$LINENO" "xf86XVFillKeyHelperDrawable" "ac_cv_have_decl_xf86XVFillKeyHelperDrawable" "#include \"xf86xv.h\"
19918" "$ac_c_undeclared_builtin_options" "CFLAGS"
19919if test "x$ac_cv_have_decl_xf86XVFillKeyHelperDrawable" = xyes
19920then :
19921
19922printf "%s\n" "#define HAVE_XV_DRAWABLE_HELPER 1" >>confdefs.h
19923
19924fi
19925CFLAGS="$save_CFLAGS"
19926
19927if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19928
19929pkg_failed=no
19930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19931printf %s "checking for PCIACCESS... " >&6; }
19932
19933if test -n "$PCIACCESS_CFLAGS"; then
19934    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19935 elif test -n "$PKG_CONFIG"; then
19936    if test -n "$PKG_CONFIG" && \
19937    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19938  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19939  ac_status=$?
19940  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19941  test $ac_status = 0; }; then
19942  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19943		      test "x$?" != "x0" && pkg_failed=yes
19944else
19945  pkg_failed=yes
19946fi
19947 else
19948    pkg_failed=untried
19949fi
19950if test -n "$PCIACCESS_LIBS"; then
19951    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19952 elif test -n "$PKG_CONFIG"; then
19953    if test -n "$PKG_CONFIG" && \
19954    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19955  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19956  ac_status=$?
19957  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19958  test $ac_status = 0; }; then
19959  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19960		      test "x$?" != "x0" && pkg_failed=yes
19961else
19962  pkg_failed=yes
19963fi
19964 else
19965    pkg_failed=untried
19966fi
19967
19968
19969
19970if test $pkg_failed = yes; then
19971   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19972printf "%s\n" "no" >&6; }
19973
19974if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19975        _pkg_short_errors_supported=yes
19976else
19977        _pkg_short_errors_supported=no
19978fi
19979        if test $_pkg_short_errors_supported = yes; then
19980	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19981        else
19982	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19983        fi
19984	# Put the nasty error message in config.log where it belongs
19985	echo "$PCIACCESS_PKG_ERRORS" >&5
19986
19987	as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
19988
19989$PCIACCESS_PKG_ERRORS
19990
19991Consider adjusting the PKG_CONFIG_PATH environment variable if you
19992installed software in a non-standard prefix.
19993
19994Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19995and PCIACCESS_LIBS to avoid the need to call pkg-config.
19996See the pkg-config man page for more details." "$LINENO" 5
19997elif test $pkg_failed = untried; then
19998     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19999printf "%s\n" "no" >&6; }
20000	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20001printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20002as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20003is in your PATH or set the PKG_CONFIG environment variable to the full
20004path to pkg-config.
20005
20006Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20007and PCIACCESS_LIBS to avoid the need to call pkg-config.
20008See the pkg-config man page for more details.
20009
20010To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20011See \`config.log' for more details" "$LINENO" 5; }
20012else
20013	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20014	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20015        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20016printf "%s\n" "yes" >&6; }
20017
20018fi
20019fi
20020 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20021  XSERVER_LIBPCIACCESS_TRUE=
20022  XSERVER_LIBPCIACCESS_FALSE='#'
20023else
20024  XSERVER_LIBPCIACCESS_TRUE='#'
20025  XSERVER_LIBPCIACCESS_FALSE=
20026fi
20027
20028
20029
20030
20031DRIVER_NAME=savage
20032
20033
20034ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20035
20036cat >confcache <<\_ACEOF
20037# This file is a shell script that caches the results of configure
20038# tests run on this system so they can be shared between configure
20039# scripts and configure runs, see configure's option --config-cache.
20040# It is not useful on other systems.  If it contains results you don't
20041# want to keep, you may remove or edit it.
20042#
20043# config.status only pays attention to the cache file if you give it
20044# the --recheck option to rerun configure.
20045#
20046# `ac_cv_env_foo' variables (set or unset) will be overridden when
20047# loading this file, other *unset* `ac_cv_foo' will be assigned the
20048# following values.
20049
20050_ACEOF
20051
20052# The following way of writing the cache mishandles newlines in values,
20053# but we know of no workaround that is simple, portable, and efficient.
20054# So, we kill variables containing newlines.
20055# Ultrix sh set writes to stderr and can't be redirected directly,
20056# and sets the high bit in the cache file unless we assign to the vars.
20057(
20058  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20059    eval ac_val=\$$ac_var
20060    case $ac_val in #(
20061    *${as_nl}*)
20062      case $ac_var in #(
20063      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20064printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20065      esac
20066      case $ac_var in #(
20067      _ | IFS | as_nl) ;; #(
20068      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20069      *) { eval $ac_var=; unset $ac_var;} ;;
20070      esac ;;
20071    esac
20072  done
20073
20074  (set) 2>&1 |
20075    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20076    *${as_nl}ac_space=\ *)
20077      # `set' does not quote correctly, so add quotes: double-quote
20078      # substitution turns \\\\ into \\, and sed turns \\ into \.
20079      sed -n \
20080	"s/'/'\\\\''/g;
20081	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20082      ;; #(
20083    *)
20084      # `set' quotes correctly as required by POSIX, so do not add quotes.
20085      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20086      ;;
20087    esac |
20088    sort
20089) |
20090  sed '
20091     /^ac_cv_env_/b end
20092     t clear
20093     :clear
20094     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20095     t end
20096     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20097     :end' >>confcache
20098if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20099  if test -w "$cache_file"; then
20100    if test "x$cache_file" != "x/dev/null"; then
20101      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20102printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20103      if test ! -f "$cache_file" || test -h "$cache_file"; then
20104	cat confcache >"$cache_file"
20105      else
20106        case $cache_file in #(
20107        */* | ?:*)
20108	  mv -f confcache "$cache_file"$$ &&
20109	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20110        *)
20111	  mv -f confcache "$cache_file" ;;
20112	esac
20113      fi
20114    fi
20115  else
20116    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20117printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20118  fi
20119fi
20120rm -f confcache
20121
20122test "x$prefix" = xNONE && prefix=$ac_default_prefix
20123# Let make expand exec_prefix.
20124test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20125
20126DEFS=-DHAVE_CONFIG_H
20127
20128ac_libobjs=
20129ac_ltlibobjs=
20130U=
20131for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20132  # 1. Remove the extension, and $U if already installed.
20133  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20134  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20135  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20136  #    will be set to the directory where LIBOBJS objects are built.
20137  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20138  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20139done
20140LIBOBJS=$ac_libobjs
20141
20142LTLIBOBJS=$ac_ltlibobjs
20143
20144
20145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20146printf %s "checking that generated files are newer than configure... " >&6; }
20147   if test -n "$am_sleep_pid"; then
20148     # Hide warnings about reused PIDs.
20149     wait $am_sleep_pid 2>/dev/null
20150   fi
20151   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20152printf "%s\n" "done" >&6; }
20153 if test -n "$EXEEXT"; then
20154  am__EXEEXT_TRUE=
20155  am__EXEEXT_FALSE='#'
20156else
20157  am__EXEEXT_TRUE='#'
20158  am__EXEEXT_FALSE=
20159fi
20160
20161if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20162  as_fn_error $? "conditional \"AMDEP\" was never defined.
20163Usually this means the macro was only invoked conditionally." "$LINENO" 5
20164fi
20165if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20166  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20167Usually this means the macro was only invoked conditionally." "$LINENO" 5
20168fi
20169if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20170  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20171Usually this means the macro was only invoked conditionally." "$LINENO" 5
20172fi
20173if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
20174  as_fn_error $? "conditional \"DRI\" was never defined.
20175Usually this means the macro was only invoked conditionally." "$LINENO" 5
20176fi
20177if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
20178  as_fn_error $? "conditional \"XAA\" was never defined.
20179Usually this means the macro was only invoked conditionally." "$LINENO" 5
20180fi
20181if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
20182  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
20183Usually this means the macro was only invoked conditionally." "$LINENO" 5
20184fi
20185
20186: "${CONFIG_STATUS=./config.status}"
20187ac_write_fail=0
20188ac_clean_files_save=$ac_clean_files
20189ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20191printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20192as_write_fail=0
20193cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20194#! $SHELL
20195# Generated by $as_me.
20196# Run this file to recreate the current configuration.
20197# Compiler output produced by configure, useful for debugging
20198# configure, is in config.log if it exists.
20199
20200debug=false
20201ac_cs_recheck=false
20202ac_cs_silent=false
20203
20204SHELL=\${CONFIG_SHELL-$SHELL}
20205export SHELL
20206_ASEOF
20207cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20208## -------------------- ##
20209## M4sh Initialization. ##
20210## -------------------- ##
20211
20212# Be more Bourne compatible
20213DUALCASE=1; export DUALCASE # for MKS sh
20214as_nop=:
20215if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20216then :
20217  emulate sh
20218  NULLCMD=:
20219  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20220  # is contrary to our usage.  Disable this feature.
20221  alias -g '${1+"$@"}'='"$@"'
20222  setopt NO_GLOB_SUBST
20223else $as_nop
20224  case `(set -o) 2>/dev/null` in #(
20225  *posix*) :
20226    set -o posix ;; #(
20227  *) :
20228     ;;
20229esac
20230fi
20231
20232
20233
20234# Reset variables that may have inherited troublesome values from
20235# the environment.
20236
20237# IFS needs to be set, to space, tab, and newline, in precisely that order.
20238# (If _AS_PATH_WALK were called with IFS unset, it would have the
20239# side effect of setting IFS to empty, thus disabling word splitting.)
20240# Quoting is to prevent editors from complaining about space-tab.
20241as_nl='
20242'
20243export as_nl
20244IFS=" ""	$as_nl"
20245
20246PS1='$ '
20247PS2='> '
20248PS4='+ '
20249
20250# Ensure predictable behavior from utilities with locale-dependent output.
20251LC_ALL=C
20252export LC_ALL
20253LANGUAGE=C
20254export LANGUAGE
20255
20256# We cannot yet rely on "unset" to work, but we need these variables
20257# to be unset--not just set to an empty or harmless value--now, to
20258# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20259# also avoids known problems related to "unset" and subshell syntax
20260# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20261for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20262do eval test \${$as_var+y} \
20263  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20264done
20265
20266# Ensure that fds 0, 1, and 2 are open.
20267if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20268if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20269if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20270
20271# The user is always right.
20272if ${PATH_SEPARATOR+false} :; then
20273  PATH_SEPARATOR=:
20274  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20275    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20276      PATH_SEPARATOR=';'
20277  }
20278fi
20279
20280
20281# Find who we are.  Look in the path if we contain no directory separator.
20282as_myself=
20283case $0 in #((
20284  *[\\/]* ) as_myself=$0 ;;
20285  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20286for as_dir in $PATH
20287do
20288  IFS=$as_save_IFS
20289  case $as_dir in #(((
20290    '') as_dir=./ ;;
20291    */) ;;
20292    *) as_dir=$as_dir/ ;;
20293  esac
20294    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20295  done
20296IFS=$as_save_IFS
20297
20298     ;;
20299esac
20300# We did not find ourselves, most probably we were run as `sh COMMAND'
20301# in which case we are not to be found in the path.
20302if test "x$as_myself" = x; then
20303  as_myself=$0
20304fi
20305if test ! -f "$as_myself"; then
20306  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20307  exit 1
20308fi
20309
20310
20311
20312# as_fn_error STATUS ERROR [LINENO LOG_FD]
20313# ----------------------------------------
20314# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20315# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20316# script with STATUS, using 1 if that was 0.
20317as_fn_error ()
20318{
20319  as_status=$1; test $as_status -eq 0 && as_status=1
20320  if test "$4"; then
20321    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20322    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20323  fi
20324  printf "%s\n" "$as_me: error: $2" >&2
20325  as_fn_exit $as_status
20326} # as_fn_error
20327
20328
20329
20330# as_fn_set_status STATUS
20331# -----------------------
20332# Set $? to STATUS, without forking.
20333as_fn_set_status ()
20334{
20335  return $1
20336} # as_fn_set_status
20337
20338# as_fn_exit STATUS
20339# -----------------
20340# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20341as_fn_exit ()
20342{
20343  set +e
20344  as_fn_set_status $1
20345  exit $1
20346} # as_fn_exit
20347
20348# as_fn_unset VAR
20349# ---------------
20350# Portably unset VAR.
20351as_fn_unset ()
20352{
20353  { eval $1=; unset $1;}
20354}
20355as_unset=as_fn_unset
20356
20357# as_fn_append VAR VALUE
20358# ----------------------
20359# Append the text in VALUE to the end of the definition contained in VAR. Take
20360# advantage of any shell optimizations that allow amortized linear growth over
20361# repeated appends, instead of the typical quadratic growth present in naive
20362# implementations.
20363if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20364then :
20365  eval 'as_fn_append ()
20366  {
20367    eval $1+=\$2
20368  }'
20369else $as_nop
20370  as_fn_append ()
20371  {
20372    eval $1=\$$1\$2
20373  }
20374fi # as_fn_append
20375
20376# as_fn_arith ARG...
20377# ------------------
20378# Perform arithmetic evaluation on the ARGs, and store the result in the
20379# global $as_val. Take advantage of shells that can avoid forks. The arguments
20380# must be portable across $(()) and expr.
20381if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20382then :
20383  eval 'as_fn_arith ()
20384  {
20385    as_val=$(( $* ))
20386  }'
20387else $as_nop
20388  as_fn_arith ()
20389  {
20390    as_val=`expr "$@" || test $? -eq 1`
20391  }
20392fi # as_fn_arith
20393
20394
20395if expr a : '\(a\)' >/dev/null 2>&1 &&
20396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20397  as_expr=expr
20398else
20399  as_expr=false
20400fi
20401
20402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20403  as_basename=basename
20404else
20405  as_basename=false
20406fi
20407
20408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20409  as_dirname=dirname
20410else
20411  as_dirname=false
20412fi
20413
20414as_me=`$as_basename -- "$0" ||
20415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20416	 X"$0" : 'X\(//\)$' \| \
20417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20418printf "%s\n" X/"$0" |
20419    sed '/^.*\/\([^/][^/]*\)\/*$/{
20420	    s//\1/
20421	    q
20422	  }
20423	  /^X\/\(\/\/\)$/{
20424	    s//\1/
20425	    q
20426	  }
20427	  /^X\/\(\/\).*/{
20428	    s//\1/
20429	    q
20430	  }
20431	  s/.*/./; q'`
20432
20433# Avoid depending upon Character Ranges.
20434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20437as_cr_digits='0123456789'
20438as_cr_alnum=$as_cr_Letters$as_cr_digits
20439
20440
20441# Determine whether it's possible to make 'echo' print without a newline.
20442# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20443# for compatibility with existing Makefiles.
20444ECHO_C= ECHO_N= ECHO_T=
20445case `echo -n x` in #(((((
20446-n*)
20447  case `echo 'xy\c'` in
20448  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20449  xy)  ECHO_C='\c';;
20450  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20451       ECHO_T='	';;
20452  esac;;
20453*)
20454  ECHO_N='-n';;
20455esac
20456
20457# For backward compatibility with old third-party macros, we provide
20458# the shell variables $as_echo and $as_echo_n.  New code should use
20459# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20460as_echo='printf %s\n'
20461as_echo_n='printf %s'
20462
20463rm -f conf$$ conf$$.exe conf$$.file
20464if test -d conf$$.dir; then
20465  rm -f conf$$.dir/conf$$.file
20466else
20467  rm -f conf$$.dir
20468  mkdir conf$$.dir 2>/dev/null
20469fi
20470if (echo >conf$$.file) 2>/dev/null; then
20471  if ln -s conf$$.file conf$$ 2>/dev/null; then
20472    as_ln_s='ln -s'
20473    # ... but there are two gotchas:
20474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20476    # In both cases, we have to default to `cp -pR'.
20477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20478      as_ln_s='cp -pR'
20479  elif ln conf$$.file conf$$ 2>/dev/null; then
20480    as_ln_s=ln
20481  else
20482    as_ln_s='cp -pR'
20483  fi
20484else
20485  as_ln_s='cp -pR'
20486fi
20487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20488rmdir conf$$.dir 2>/dev/null
20489
20490
20491# as_fn_mkdir_p
20492# -------------
20493# Create "$as_dir" as a directory, including parents if necessary.
20494as_fn_mkdir_p ()
20495{
20496
20497  case $as_dir in #(
20498  -*) as_dir=./$as_dir;;
20499  esac
20500  test -d "$as_dir" || eval $as_mkdir_p || {
20501    as_dirs=
20502    while :; do
20503      case $as_dir in #(
20504      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20505      *) as_qdir=$as_dir;;
20506      esac
20507      as_dirs="'$as_qdir' $as_dirs"
20508      as_dir=`$as_dirname -- "$as_dir" ||
20509$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20510	 X"$as_dir" : 'X\(//\)[^/]' \| \
20511	 X"$as_dir" : 'X\(//\)$' \| \
20512	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20513printf "%s\n" X"$as_dir" |
20514    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20515	    s//\1/
20516	    q
20517	  }
20518	  /^X\(\/\/\)[^/].*/{
20519	    s//\1/
20520	    q
20521	  }
20522	  /^X\(\/\/\)$/{
20523	    s//\1/
20524	    q
20525	  }
20526	  /^X\(\/\).*/{
20527	    s//\1/
20528	    q
20529	  }
20530	  s/.*/./; q'`
20531      test -d "$as_dir" && break
20532    done
20533    test -z "$as_dirs" || eval "mkdir $as_dirs"
20534  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20535
20536
20537} # as_fn_mkdir_p
20538if mkdir -p . 2>/dev/null; then
20539  as_mkdir_p='mkdir -p "$as_dir"'
20540else
20541  test -d ./-p && rmdir ./-p
20542  as_mkdir_p=false
20543fi
20544
20545
20546# as_fn_executable_p FILE
20547# -----------------------
20548# Test if FILE is an executable regular file.
20549as_fn_executable_p ()
20550{
20551  test -f "$1" && test -x "$1"
20552} # as_fn_executable_p
20553as_test_x='test -x'
20554as_executable_p=as_fn_executable_p
20555
20556# Sed expression to map a string onto a valid CPP name.
20557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20558
20559# Sed expression to map a string onto a valid variable name.
20560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20561
20562
20563exec 6>&1
20564## ----------------------------------- ##
20565## Main body of $CONFIG_STATUS script. ##
20566## ----------------------------------- ##
20567_ASEOF
20568test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20569
20570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20571# Save the log message, to keep $0 and so on meaningful, and to
20572# report actual input values of CONFIG_FILES etc. instead of their
20573# values after options handling.
20574ac_log="
20575This file was extended by xf86-video-savage $as_me 2.4.0, which was
20576generated by GNU Autoconf 2.71.  Invocation command line was
20577
20578  CONFIG_FILES    = $CONFIG_FILES
20579  CONFIG_HEADERS  = $CONFIG_HEADERS
20580  CONFIG_LINKS    = $CONFIG_LINKS
20581  CONFIG_COMMANDS = $CONFIG_COMMANDS
20582  $ $0 $@
20583
20584on `(hostname || uname -n) 2>/dev/null | sed 1q`
20585"
20586
20587_ACEOF
20588
20589case $ac_config_files in *"
20590"*) set x $ac_config_files; shift; ac_config_files=$*;;
20591esac
20592
20593case $ac_config_headers in *"
20594"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20595esac
20596
20597
20598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20599# Files that config.status was made for.
20600config_files="$ac_config_files"
20601config_headers="$ac_config_headers"
20602config_commands="$ac_config_commands"
20603
20604_ACEOF
20605
20606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20607ac_cs_usage="\
20608\`$as_me' instantiates files and other configuration actions
20609from templates according to the current configuration.  Unless the files
20610and actions are specified as TAGs, all are instantiated by default.
20611
20612Usage: $0 [OPTION]... [TAG]...
20613
20614  -h, --help       print this help, then exit
20615  -V, --version    print version number and configuration settings, then exit
20616      --config     print configuration, then exit
20617  -q, --quiet, --silent
20618                   do not print progress messages
20619  -d, --debug      don't remove temporary files
20620      --recheck    update $as_me by reconfiguring in the same conditions
20621      --file=FILE[:TEMPLATE]
20622                   instantiate the configuration file FILE
20623      --header=FILE[:TEMPLATE]
20624                   instantiate the configuration header FILE
20625
20626Configuration files:
20627$config_files
20628
20629Configuration headers:
20630$config_headers
20631
20632Configuration commands:
20633$config_commands
20634
20635Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/issues>."
20636
20637_ACEOF
20638ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20639ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20641ac_cs_config='$ac_cs_config_escaped'
20642ac_cs_version="\\
20643xf86-video-savage config.status 2.4.0
20644configured by $0, generated by GNU Autoconf 2.71,
20645  with options \\"\$ac_cs_config\\"
20646
20647Copyright (C) 2021 Free Software Foundation, Inc.
20648This config.status script is free software; the Free Software Foundation
20649gives unlimited permission to copy, distribute and modify it."
20650
20651ac_pwd='$ac_pwd'
20652srcdir='$srcdir'
20653INSTALL='$INSTALL'
20654MKDIR_P='$MKDIR_P'
20655AWK='$AWK'
20656test -n "\$AWK" || AWK=awk
20657_ACEOF
20658
20659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20660# The default lists apply if the user does not specify any file.
20661ac_need_defaults=:
20662while test $# != 0
20663do
20664  case $1 in
20665  --*=?*)
20666    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20667    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20668    ac_shift=:
20669    ;;
20670  --*=)
20671    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20672    ac_optarg=
20673    ac_shift=:
20674    ;;
20675  *)
20676    ac_option=$1
20677    ac_optarg=$2
20678    ac_shift=shift
20679    ;;
20680  esac
20681
20682  case $ac_option in
20683  # Handling of the options.
20684  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20685    ac_cs_recheck=: ;;
20686  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20687    printf "%s\n" "$ac_cs_version"; exit ;;
20688  --config | --confi | --conf | --con | --co | --c )
20689    printf "%s\n" "$ac_cs_config"; exit ;;
20690  --debug | --debu | --deb | --de | --d | -d )
20691    debug=: ;;
20692  --file | --fil | --fi | --f )
20693    $ac_shift
20694    case $ac_optarg in
20695    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20696    '') as_fn_error $? "missing file argument" ;;
20697    esac
20698    as_fn_append CONFIG_FILES " '$ac_optarg'"
20699    ac_need_defaults=false;;
20700  --header | --heade | --head | --hea )
20701    $ac_shift
20702    case $ac_optarg in
20703    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20704    esac
20705    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20706    ac_need_defaults=false;;
20707  --he | --h)
20708    # Conflict between --help and --header
20709    as_fn_error $? "ambiguous option: \`$1'
20710Try \`$0 --help' for more information.";;
20711  --help | --hel | -h )
20712    printf "%s\n" "$ac_cs_usage"; exit ;;
20713  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20714  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20715    ac_cs_silent=: ;;
20716
20717  # This is an error.
20718  -*) as_fn_error $? "unrecognized option: \`$1'
20719Try \`$0 --help' for more information." ;;
20720
20721  *) as_fn_append ac_config_targets " $1"
20722     ac_need_defaults=false ;;
20723
20724  esac
20725  shift
20726done
20727
20728ac_configure_extra_args=
20729
20730if $ac_cs_silent; then
20731  exec 6>/dev/null
20732  ac_configure_extra_args="$ac_configure_extra_args --silent"
20733fi
20734
20735_ACEOF
20736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20737if \$ac_cs_recheck; then
20738  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20739  shift
20740  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20741  CONFIG_SHELL='$SHELL'
20742  export CONFIG_SHELL
20743  exec "\$@"
20744fi
20745
20746_ACEOF
20747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20748exec 5>>config.log
20749{
20750  echo
20751  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20752## Running $as_me. ##
20753_ASBOX
20754  printf "%s\n" "$ac_log"
20755} >&5
20756
20757_ACEOF
20758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20759#
20760# INIT-COMMANDS
20761#
20762AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20763
20764
20765# The HP-UX ksh and POSIX shell print the target directory to stdout
20766# if CDPATH is set.
20767(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20768
20769sed_quote_subst='$sed_quote_subst'
20770double_quote_subst='$double_quote_subst'
20771delay_variable_subst='$delay_variable_subst'
20772enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20773macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20774macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20775enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20776pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20777enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20778shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20779SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20780ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20781PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20782host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20783host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20784host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20785build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20786build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20787build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20788SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20789Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20790GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20791EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20792FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20793LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20794NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20795LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20796max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20797ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20798exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20799lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20800lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20801lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20802lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20803lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20804reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20805reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20806FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20807OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20808deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20809file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20810file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20811want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20812DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20813sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20814AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20815lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20816AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20817archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20818STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20819RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20820old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20821old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20822old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20823lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20824CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20825CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20826compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20827GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20828lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20829lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20830lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20831lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20832lt_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"`'
20833lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20834nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20835lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20836lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20837objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20838MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20839lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20840lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20841lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20842lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20843lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20844need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20845MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20846DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20847NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20848LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20849OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20850OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20851libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20852shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20853extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20854archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20855enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20856export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20857whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20858compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20859old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20860old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20861archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20862archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20863module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20864module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20865with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20866allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20867no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20868hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20869hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20870hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20871hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20872hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20873hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20874hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20875inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20876link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20877always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20878export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20879exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20880include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20881prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20882postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20883file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20884variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20885need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20886need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20887version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20888runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20889shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20890shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20891libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20892library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20893soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20894install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20895postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20896postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20897finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20898finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20899hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20900sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20901configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20902configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20903hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20904enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20905enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20906enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20907old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20908striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20909
20910LTCC='$LTCC'
20911LTCFLAGS='$LTCFLAGS'
20912compiler='$compiler_DEFAULT'
20913
20914# A function that is used when there is no print builtin or printf.
20915func_fallback_echo ()
20916{
20917  eval 'cat <<_LTECHO_EOF
20918\$1
20919_LTECHO_EOF'
20920}
20921
20922# Quote evaled strings.
20923for var in SHELL \
20924ECHO \
20925PATH_SEPARATOR \
20926SED \
20927GREP \
20928EGREP \
20929FGREP \
20930LD \
20931NM \
20932LN_S \
20933lt_SP2NL \
20934lt_NL2SP \
20935reload_flag \
20936FILECMD \
20937OBJDUMP \
20938deplibs_check_method \
20939file_magic_cmd \
20940file_magic_glob \
20941want_nocaseglob \
20942DLLTOOL \
20943sharedlib_from_linklib_cmd \
20944AR \
20945archiver_list_spec \
20946STRIP \
20947RANLIB \
20948CC \
20949CFLAGS \
20950compiler \
20951lt_cv_sys_global_symbol_pipe \
20952lt_cv_sys_global_symbol_to_cdecl \
20953lt_cv_sys_global_symbol_to_import \
20954lt_cv_sys_global_symbol_to_c_name_address \
20955lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20956lt_cv_nm_interface \
20957nm_file_list_spec \
20958lt_cv_truncate_bin \
20959lt_prog_compiler_no_builtin_flag \
20960lt_prog_compiler_pic \
20961lt_prog_compiler_wl \
20962lt_prog_compiler_static \
20963lt_cv_prog_compiler_c_o \
20964need_locks \
20965MANIFEST_TOOL \
20966DSYMUTIL \
20967NMEDIT \
20968LIPO \
20969OTOOL \
20970OTOOL64 \
20971shrext_cmds \
20972export_dynamic_flag_spec \
20973whole_archive_flag_spec \
20974compiler_needs_object \
20975with_gnu_ld \
20976allow_undefined_flag \
20977no_undefined_flag \
20978hardcode_libdir_flag_spec \
20979hardcode_libdir_separator \
20980exclude_expsyms \
20981include_expsyms \
20982file_list_spec \
20983variables_saved_for_relink \
20984libname_spec \
20985library_names_spec \
20986soname_spec \
20987install_override_mode \
20988finish_eval \
20989old_striplib \
20990striplib; do
20991    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20992    *[\\\\\\\`\\"\\\$]*)
20993      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20994      ;;
20995    *)
20996      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20997      ;;
20998    esac
20999done
21000
21001# Double-quote double-evaled strings.
21002for var in reload_cmds \
21003old_postinstall_cmds \
21004old_postuninstall_cmds \
21005old_archive_cmds \
21006extract_expsyms_cmds \
21007old_archive_from_new_cmds \
21008old_archive_from_expsyms_cmds \
21009archive_cmds \
21010archive_expsym_cmds \
21011module_cmds \
21012module_expsym_cmds \
21013export_symbols_cmds \
21014prelink_cmds \
21015postlink_cmds \
21016postinstall_cmds \
21017postuninstall_cmds \
21018finish_cmds \
21019sys_lib_search_path_spec \
21020configure_time_dlsearch_path \
21021configure_time_lt_sys_library_path; do
21022    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21023    *[\\\\\\\`\\"\\\$]*)
21024      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21025      ;;
21026    *)
21027      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21028      ;;
21029    esac
21030done
21031
21032ac_aux_dir='$ac_aux_dir'
21033
21034# See if we are running on zsh, and set the options that allow our
21035# commands through without removal of \ escapes INIT.
21036if test -n "\${ZSH_VERSION+set}"; then
21037   setopt NO_GLOB_SUBST
21038fi
21039
21040
21041    PACKAGE='$PACKAGE'
21042    VERSION='$VERSION'
21043    RM='$RM'
21044    ofile='$ofile'
21045
21046
21047
21048
21049_ACEOF
21050
21051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21052
21053# Handling of arguments.
21054for ac_config_target in $ac_config_targets
21055do
21056  case $ac_config_target in
21057    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21058    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21059    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21060    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21061    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21062    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21063
21064  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21065  esac
21066done
21067
21068
21069# If the user did not use the arguments to specify the items to instantiate,
21070# then the envvar interface is used.  Set only those that are not.
21071# We use the long form for the default assignment because of an extremely
21072# bizarre bug on SunOS 4.1.3.
21073if $ac_need_defaults; then
21074  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21075  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21076  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21077fi
21078
21079# Have a temporary directory for convenience.  Make it in the build tree
21080# simply because there is no reason against having it here, and in addition,
21081# creating and moving files from /tmp can sometimes cause problems.
21082# Hook for its removal unless debugging.
21083# Note that there is a small window in which the directory will not be cleaned:
21084# after its creation but before its name has been assigned to `$tmp'.
21085$debug ||
21086{
21087  tmp= ac_tmp=
21088  trap 'exit_status=$?
21089  : "${ac_tmp:=$tmp}"
21090  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21091' 0
21092  trap 'as_fn_exit 1' 1 2 13 15
21093}
21094# Create a (secure) tmp directory for tmp files.
21095
21096{
21097  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21098  test -d "$tmp"
21099}  ||
21100{
21101  tmp=./conf$$-$RANDOM
21102  (umask 077 && mkdir "$tmp")
21103} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21104ac_tmp=$tmp
21105
21106# Set up the scripts for CONFIG_FILES section.
21107# No need to generate them if there are no CONFIG_FILES.
21108# This happens for instance with `./config.status config.h'.
21109if test -n "$CONFIG_FILES"; then
21110
21111
21112ac_cr=`echo X | tr X '\015'`
21113# On cygwin, bash can eat \r inside `` if the user requested igncr.
21114# But we know of no other shell where ac_cr would be empty at this
21115# point, so we can use a bashism as a fallback.
21116if test "x$ac_cr" = x; then
21117  eval ac_cr=\$\'\\r\'
21118fi
21119ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21120if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21121  ac_cs_awk_cr='\\r'
21122else
21123  ac_cs_awk_cr=$ac_cr
21124fi
21125
21126echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21127_ACEOF
21128
21129
21130{
21131  echo "cat >conf$$subs.awk <<_ACEOF" &&
21132  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21133  echo "_ACEOF"
21134} >conf$$subs.sh ||
21135  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21136ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21137ac_delim='%!_!# '
21138for ac_last_try in false false false false false :; do
21139  . ./conf$$subs.sh ||
21140    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21141
21142  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21143  if test $ac_delim_n = $ac_delim_num; then
21144    break
21145  elif $ac_last_try; then
21146    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21147  else
21148    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21149  fi
21150done
21151rm -f conf$$subs.sh
21152
21153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21154cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21155_ACEOF
21156sed -n '
21157h
21158s/^/S["/; s/!.*/"]=/
21159p
21160g
21161s/^[^!]*!//
21162:repl
21163t repl
21164s/'"$ac_delim"'$//
21165t delim
21166:nl
21167h
21168s/\(.\{148\}\)..*/\1/
21169t more1
21170s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21171p
21172n
21173b repl
21174:more1
21175s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21176p
21177g
21178s/.\{148\}//
21179t nl
21180:delim
21181h
21182s/\(.\{148\}\)..*/\1/
21183t more2
21184s/["\\]/\\&/g; s/^/"/; s/$/"/
21185p
21186b
21187:more2
21188s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21189p
21190g
21191s/.\{148\}//
21192t delim
21193' <conf$$subs.awk | sed '
21194/^[^""]/{
21195  N
21196  s/\n//
21197}
21198' >>$CONFIG_STATUS || ac_write_fail=1
21199rm -f conf$$subs.awk
21200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21201_ACAWK
21202cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21203  for (key in S) S_is_set[key] = 1
21204  FS = ""
21205
21206}
21207{
21208  line = $ 0
21209  nfields = split(line, field, "@")
21210  substed = 0
21211  len = length(field[1])
21212  for (i = 2; i < nfields; i++) {
21213    key = field[i]
21214    keylen = length(key)
21215    if (S_is_set[key]) {
21216      value = S[key]
21217      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21218      len += length(value) + length(field[++i])
21219      substed = 1
21220    } else
21221      len += 1 + keylen
21222  }
21223
21224  print line
21225}
21226
21227_ACAWK
21228_ACEOF
21229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21230if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21231  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21232else
21233  cat
21234fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21235  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21236_ACEOF
21237
21238# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21239# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21240# trailing colons and then remove the whole line if VPATH becomes empty
21241# (actually we leave an empty line to preserve line numbers).
21242if test "x$srcdir" = x.; then
21243  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21244h
21245s///
21246s/^/:/
21247s/[	 ]*$/:/
21248s/:\$(srcdir):/:/g
21249s/:\${srcdir}:/:/g
21250s/:@srcdir@:/:/g
21251s/^:*//
21252s/:*$//
21253x
21254s/\(=[	 ]*\).*/\1/
21255G
21256s/\n//
21257s/^[^=]*=[	 ]*$//
21258}'
21259fi
21260
21261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21262fi # test -n "$CONFIG_FILES"
21263
21264# Set up the scripts for CONFIG_HEADERS section.
21265# No need to generate them if there are no CONFIG_HEADERS.
21266# This happens for instance with `./config.status Makefile'.
21267if test -n "$CONFIG_HEADERS"; then
21268cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21269BEGIN {
21270_ACEOF
21271
21272# Transform confdefs.h into an awk script `defines.awk', embedded as
21273# here-document in config.status, that substitutes the proper values into
21274# config.h.in to produce config.h.
21275
21276# Create a delimiter string that does not exist in confdefs.h, to ease
21277# handling of long lines.
21278ac_delim='%!_!# '
21279for ac_last_try in false false :; do
21280  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21281  if test -z "$ac_tt"; then
21282    break
21283  elif $ac_last_try; then
21284    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21285  else
21286    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21287  fi
21288done
21289
21290# For the awk script, D is an array of macro values keyed by name,
21291# likewise P contains macro parameters if any.  Preserve backslash
21292# newline sequences.
21293
21294ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21295sed -n '
21296s/.\{148\}/&'"$ac_delim"'/g
21297t rset
21298:rset
21299s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21300t def
21301d
21302:def
21303s/\\$//
21304t bsnl
21305s/["\\]/\\&/g
21306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21307D["\1"]=" \3"/p
21308s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21309d
21310:bsnl
21311s/["\\]/\\&/g
21312s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21313D["\1"]=" \3\\\\\\n"\\/p
21314t cont
21315s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21316t cont
21317d
21318:cont
21319n
21320s/.\{148\}/&'"$ac_delim"'/g
21321t clear
21322:clear
21323s/\\$//
21324t bsnlc
21325s/["\\]/\\&/g; s/^/"/; s/$/"/p
21326d
21327:bsnlc
21328s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21329b cont
21330' <confdefs.h | sed '
21331s/'"$ac_delim"'/"\\\
21332"/g' >>$CONFIG_STATUS || ac_write_fail=1
21333
21334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21335  for (key in D) D_is_set[key] = 1
21336  FS = ""
21337}
21338/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21339  line = \$ 0
21340  split(line, arg, " ")
21341  if (arg[1] == "#") {
21342    defundef = arg[2]
21343    mac1 = arg[3]
21344  } else {
21345    defundef = substr(arg[1], 2)
21346    mac1 = arg[2]
21347  }
21348  split(mac1, mac2, "(") #)
21349  macro = mac2[1]
21350  prefix = substr(line, 1, index(line, defundef) - 1)
21351  if (D_is_set[macro]) {
21352    # Preserve the white space surrounding the "#".
21353    print prefix "define", macro P[macro] D[macro]
21354    next
21355  } else {
21356    # Replace #undef with comments.  This is necessary, for example,
21357    # in the case of _POSIX_SOURCE, which is predefined and required
21358    # on some systems where configure will not decide to define it.
21359    if (defundef == "undef") {
21360      print "/*", prefix defundef, macro, "*/"
21361      next
21362    }
21363  }
21364}
21365{ print }
21366_ACAWK
21367_ACEOF
21368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21369  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21370fi # test -n "$CONFIG_HEADERS"
21371
21372
21373eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21374shift
21375for ac_tag
21376do
21377  case $ac_tag in
21378  :[FHLC]) ac_mode=$ac_tag; continue;;
21379  esac
21380  case $ac_mode$ac_tag in
21381  :[FHL]*:*);;
21382  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21383  :[FH]-) ac_tag=-:-;;
21384  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21385  esac
21386  ac_save_IFS=$IFS
21387  IFS=:
21388  set x $ac_tag
21389  IFS=$ac_save_IFS
21390  shift
21391  ac_file=$1
21392  shift
21393
21394  case $ac_mode in
21395  :L) ac_source=$1;;
21396  :[FH])
21397    ac_file_inputs=
21398    for ac_f
21399    do
21400      case $ac_f in
21401      -) ac_f="$ac_tmp/stdin";;
21402      *) # Look for the file first in the build tree, then in the source tree
21403	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21404	 # because $ac_f cannot contain `:'.
21405	 test -f "$ac_f" ||
21406	   case $ac_f in
21407	   [\\/$]*) false;;
21408	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21409	   esac ||
21410	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21411      esac
21412      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21413      as_fn_append ac_file_inputs " '$ac_f'"
21414    done
21415
21416    # Let's still pretend it is `configure' which instantiates (i.e., don't
21417    # use $as_me), people would be surprised to read:
21418    #    /* config.h.  Generated by config.status.  */
21419    configure_input='Generated from '`
21420	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21421	`' by configure.'
21422    if test x"$ac_file" != x-; then
21423      configure_input="$ac_file.  $configure_input"
21424      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21425printf "%s\n" "$as_me: creating $ac_file" >&6;}
21426    fi
21427    # Neutralize special characters interpreted by sed in replacement strings.
21428    case $configure_input in #(
21429    *\&* | *\|* | *\\* )
21430       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21431       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21432    *) ac_sed_conf_input=$configure_input;;
21433    esac
21434
21435    case $ac_tag in
21436    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21437      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21438    esac
21439    ;;
21440  esac
21441
21442  ac_dir=`$as_dirname -- "$ac_file" ||
21443$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21444	 X"$ac_file" : 'X\(//\)[^/]' \| \
21445	 X"$ac_file" : 'X\(//\)$' \| \
21446	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21447printf "%s\n" X"$ac_file" |
21448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21449	    s//\1/
21450	    q
21451	  }
21452	  /^X\(\/\/\)[^/].*/{
21453	    s//\1/
21454	    q
21455	  }
21456	  /^X\(\/\/\)$/{
21457	    s//\1/
21458	    q
21459	  }
21460	  /^X\(\/\).*/{
21461	    s//\1/
21462	    q
21463	  }
21464	  s/.*/./; q'`
21465  as_dir="$ac_dir"; as_fn_mkdir_p
21466  ac_builddir=.
21467
21468case "$ac_dir" in
21469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21470*)
21471  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21472  # A ".." for each directory in $ac_dir_suffix.
21473  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21474  case $ac_top_builddir_sub in
21475  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21476  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21477  esac ;;
21478esac
21479ac_abs_top_builddir=$ac_pwd
21480ac_abs_builddir=$ac_pwd$ac_dir_suffix
21481# for backward compatibility:
21482ac_top_builddir=$ac_top_build_prefix
21483
21484case $srcdir in
21485  .)  # We are building in place.
21486    ac_srcdir=.
21487    ac_top_srcdir=$ac_top_builddir_sub
21488    ac_abs_top_srcdir=$ac_pwd ;;
21489  [\\/]* | ?:[\\/]* )  # Absolute name.
21490    ac_srcdir=$srcdir$ac_dir_suffix;
21491    ac_top_srcdir=$srcdir
21492    ac_abs_top_srcdir=$srcdir ;;
21493  *) # Relative name.
21494    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21495    ac_top_srcdir=$ac_top_build_prefix$srcdir
21496    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21497esac
21498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21499
21500
21501  case $ac_mode in
21502  :F)
21503  #
21504  # CONFIG_FILE
21505  #
21506
21507  case $INSTALL in
21508  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21509  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21510  esac
21511  ac_MKDIR_P=$MKDIR_P
21512  case $MKDIR_P in
21513  [\\/$]* | ?:[\\/]* ) ;;
21514  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21515  esac
21516_ACEOF
21517
21518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21519# If the template does not know about datarootdir, expand it.
21520# FIXME: This hack should be removed a few years after 2.60.
21521ac_datarootdir_hack=; ac_datarootdir_seen=
21522ac_sed_dataroot='
21523/datarootdir/ {
21524  p
21525  q
21526}
21527/@datadir@/p
21528/@docdir@/p
21529/@infodir@/p
21530/@localedir@/p
21531/@mandir@/p'
21532case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21533*datarootdir*) ac_datarootdir_seen=yes;;
21534*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21536printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21537_ACEOF
21538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21539  ac_datarootdir_hack='
21540  s&@datadir@&$datadir&g
21541  s&@docdir@&$docdir&g
21542  s&@infodir@&$infodir&g
21543  s&@localedir@&$localedir&g
21544  s&@mandir@&$mandir&g
21545  s&\\\${datarootdir}&$datarootdir&g' ;;
21546esac
21547_ACEOF
21548
21549# Neutralize VPATH when `$srcdir' = `.'.
21550# Shell code in configure.ac might set extrasub.
21551# FIXME: do we really want to maintain this feature?
21552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21553ac_sed_extra="$ac_vpsub
21554$extrasub
21555_ACEOF
21556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21557:t
21558/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21559s|@configure_input@|$ac_sed_conf_input|;t t
21560s&@top_builddir@&$ac_top_builddir_sub&;t t
21561s&@top_build_prefix@&$ac_top_build_prefix&;t t
21562s&@srcdir@&$ac_srcdir&;t t
21563s&@abs_srcdir@&$ac_abs_srcdir&;t t
21564s&@top_srcdir@&$ac_top_srcdir&;t t
21565s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21566s&@builddir@&$ac_builddir&;t t
21567s&@abs_builddir@&$ac_abs_builddir&;t t
21568s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21569s&@INSTALL@&$ac_INSTALL&;t t
21570s&@MKDIR_P@&$ac_MKDIR_P&;t t
21571$ac_datarootdir_hack
21572"
21573eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21574  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21575
21576test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21577  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21578  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21579      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21581which seems to be undefined.  Please make sure it is defined" >&5
21582printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21583which seems to be undefined.  Please make sure it is defined" >&2;}
21584
21585  rm -f "$ac_tmp/stdin"
21586  case $ac_file in
21587  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21588  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21589  esac \
21590  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21591 ;;
21592  :H)
21593  #
21594  # CONFIG_HEADER
21595  #
21596  if test x"$ac_file" != x-; then
21597    {
21598      printf "%s\n" "/* $configure_input  */" >&1 \
21599      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21600    } >"$ac_tmp/config.h" \
21601      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21602    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21603      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21604printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21605    else
21606      rm -f "$ac_file"
21607      mv "$ac_tmp/config.h" "$ac_file" \
21608	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21609    fi
21610  else
21611    printf "%s\n" "/* $configure_input  */" >&1 \
21612      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21613      || as_fn_error $? "could not create -" "$LINENO" 5
21614  fi
21615# Compute "$ac_file"'s index in $config_headers.
21616_am_arg="$ac_file"
21617_am_stamp_count=1
21618for _am_header in $config_headers :; do
21619  case $_am_header in
21620    $_am_arg | $_am_arg:* )
21621      break ;;
21622    * )
21623      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21624  esac
21625done
21626echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21627$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21628	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21629	 X"$_am_arg" : 'X\(//\)$' \| \
21630	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21631printf "%s\n" X"$_am_arg" |
21632    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21633	    s//\1/
21634	    q
21635	  }
21636	  /^X\(\/\/\)[^/].*/{
21637	    s//\1/
21638	    q
21639	  }
21640	  /^X\(\/\/\)$/{
21641	    s//\1/
21642	    q
21643	  }
21644	  /^X\(\/\).*/{
21645	    s//\1/
21646	    q
21647	  }
21648	  s/.*/./; q'`/stamp-h$_am_stamp_count
21649 ;;
21650
21651  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21652printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21653 ;;
21654  esac
21655
21656
21657  case $ac_file$ac_mode in
21658    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21659  # Older Autoconf quotes --file arguments for eval, but not when files
21660  # are listed without --file.  Let's play safe and only enable the eval
21661  # if we detect the quoting.
21662  # TODO: see whether this extra hack can be removed once we start
21663  # requiring Autoconf 2.70 or later.
21664  case $CONFIG_FILES in #(
21665  *\'*) :
21666    eval set x "$CONFIG_FILES" ;; #(
21667  *) :
21668    set x $CONFIG_FILES ;; #(
21669  *) :
21670     ;;
21671esac
21672  shift
21673  # Used to flag and report bootstrapping failures.
21674  am_rc=0
21675  for am_mf
21676  do
21677    # Strip MF so we end up with the name of the file.
21678    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21679    # Check whether this is an Automake generated Makefile which includes
21680    # dependency-tracking related rules and includes.
21681    # Grep'ing the whole file directly is not great: AIX grep has a line
21682    # limit of 2048, but all sed's we know have understand at least 4000.
21683    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21684      || continue
21685    am_dirpart=`$as_dirname -- "$am_mf" ||
21686$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21687	 X"$am_mf" : 'X\(//\)[^/]' \| \
21688	 X"$am_mf" : 'X\(//\)$' \| \
21689	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21690printf "%s\n" X"$am_mf" |
21691    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21692	    s//\1/
21693	    q
21694	  }
21695	  /^X\(\/\/\)[^/].*/{
21696	    s//\1/
21697	    q
21698	  }
21699	  /^X\(\/\/\)$/{
21700	    s//\1/
21701	    q
21702	  }
21703	  /^X\(\/\).*/{
21704	    s//\1/
21705	    q
21706	  }
21707	  s/.*/./; q'`
21708    am_filepart=`$as_basename -- "$am_mf" ||
21709$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21710	 X"$am_mf" : 'X\(//\)$' \| \
21711	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21712printf "%s\n" X/"$am_mf" |
21713    sed '/^.*\/\([^/][^/]*\)\/*$/{
21714	    s//\1/
21715	    q
21716	  }
21717	  /^X\/\(\/\/\)$/{
21718	    s//\1/
21719	    q
21720	  }
21721	  /^X\/\(\/\).*/{
21722	    s//\1/
21723	    q
21724	  }
21725	  s/.*/./; q'`
21726    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21727      && sed -e '/# am--include-marker/d' "$am_filepart" \
21728        | $MAKE -f - am--depfiles" >&5
21729   (cd "$am_dirpart" \
21730      && sed -e '/# am--include-marker/d' "$am_filepart" \
21731        | $MAKE -f - am--depfiles) >&5 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); } || am_rc=$?
21735  done
21736  if test $am_rc -ne 0; then
21737    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21738printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21739as_fn_error $? "Something went wrong bootstrapping makefile fragments
21740    for automatic dependency tracking.  If GNU make was not used, consider
21741    re-running the configure script with MAKE=\"gmake\" (or whatever is
21742    necessary).  You can also try re-running configure with the
21743    '--disable-dependency-tracking' option to at least be able to build
21744    the package (albeit without support for automatic dependency tracking).
21745See \`config.log' for more details" "$LINENO" 5; }
21746  fi
21747  { am_dirpart=; unset am_dirpart;}
21748  { am_filepart=; unset am_filepart;}
21749  { am_mf=; unset am_mf;}
21750  { am_rc=; unset am_rc;}
21751  rm -f conftest-deps.mk
21752}
21753 ;;
21754    "libtool":C)
21755
21756    # See if we are running on zsh, and set the options that allow our
21757    # commands through without removal of \ escapes.
21758    if test -n "${ZSH_VERSION+set}"; then
21759      setopt NO_GLOB_SUBST
21760    fi
21761
21762    cfgfile=${ofile}T
21763    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21764    $RM "$cfgfile"
21765
21766    cat <<_LT_EOF >> "$cfgfile"
21767#! $SHELL
21768# Generated automatically by $as_me ($PACKAGE) $VERSION
21769# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21770# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21771
21772# Provide generalized library-building support services.
21773# Written by Gordon Matzigkeit, 1996
21774
21775# Copyright (C) 2014 Free Software Foundation, Inc.
21776# This is free software; see the source for copying conditions.  There is NO
21777# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21778
21779# GNU Libtool is free software; you can redistribute it and/or modify
21780# it under the terms of the GNU General Public License as published by
21781# the Free Software Foundation; either version 2 of of the License, or
21782# (at your option) any later version.
21783#
21784# As a special exception to the GNU General Public License, if you
21785# distribute this file as part of a program or library that is built
21786# using GNU Libtool, you may include this file under the  same
21787# distribution terms that you use for the rest of that program.
21788#
21789# GNU Libtool is distributed in the hope that it will be useful, but
21790# WITHOUT ANY WARRANTY; without even the implied warranty of
21791# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21792# GNU General Public License for more details.
21793#
21794# You should have received a copy of the GNU General Public License
21795# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21796
21797
21798# The names of the tagged configurations supported by this script.
21799available_tags=''
21800
21801# Configured defaults for sys_lib_dlsearch_path munging.
21802: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21803
21804# ### BEGIN LIBTOOL CONFIG
21805
21806# Whether or not to build static libraries.
21807build_old_libs=$enable_static
21808
21809# Which release of libtool.m4 was used?
21810macro_version=$macro_version
21811macro_revision=$macro_revision
21812
21813# Whether or not to build shared libraries.
21814build_libtool_libs=$enable_shared
21815
21816# What type of objects to build.
21817pic_mode=$pic_mode
21818
21819# Whether or not to optimize for fast installation.
21820fast_install=$enable_fast_install
21821
21822# Shared archive member basename,for filename based shared library versioning on AIX.
21823shared_archive_member_spec=$shared_archive_member_spec
21824
21825# Shell to use when invoking shell scripts.
21826SHELL=$lt_SHELL
21827
21828# An echo program that protects backslashes.
21829ECHO=$lt_ECHO
21830
21831# The PATH separator for the build system.
21832PATH_SEPARATOR=$lt_PATH_SEPARATOR
21833
21834# The host system.
21835host_alias=$host_alias
21836host=$host
21837host_os=$host_os
21838
21839# The build system.
21840build_alias=$build_alias
21841build=$build
21842build_os=$build_os
21843
21844# A sed program that does not truncate output.
21845SED=$lt_SED
21846
21847# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21848Xsed="\$SED -e 1s/^X//"
21849
21850# A grep program that handles long lines.
21851GREP=$lt_GREP
21852
21853# An ERE matcher.
21854EGREP=$lt_EGREP
21855
21856# A literal string matcher.
21857FGREP=$lt_FGREP
21858
21859# A BSD- or MS-compatible name lister.
21860NM=$lt_NM
21861
21862# Whether we need soft or hard links.
21863LN_S=$lt_LN_S
21864
21865# What is the maximum length of a command?
21866max_cmd_len=$max_cmd_len
21867
21868# Object file suffix (normally "o").
21869objext=$ac_objext
21870
21871# Executable file suffix (normally "").
21872exeext=$exeext
21873
21874# whether the shell understands "unset".
21875lt_unset=$lt_unset
21876
21877# turn spaces into newlines.
21878SP2NL=$lt_lt_SP2NL
21879
21880# turn newlines into spaces.
21881NL2SP=$lt_lt_NL2SP
21882
21883# convert \$build file names to \$host format.
21884to_host_file_cmd=$lt_cv_to_host_file_cmd
21885
21886# convert \$build files to toolchain format.
21887to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21888
21889# A file(cmd) program that detects file types.
21890FILECMD=$lt_FILECMD
21891
21892# An object symbol dumper.
21893OBJDUMP=$lt_OBJDUMP
21894
21895# Method to check whether dependent libraries are shared objects.
21896deplibs_check_method=$lt_deplibs_check_method
21897
21898# Command to use when deplibs_check_method = "file_magic".
21899file_magic_cmd=$lt_file_magic_cmd
21900
21901# How to find potential files when deplibs_check_method = "file_magic".
21902file_magic_glob=$lt_file_magic_glob
21903
21904# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21905want_nocaseglob=$lt_want_nocaseglob
21906
21907# DLL creation program.
21908DLLTOOL=$lt_DLLTOOL
21909
21910# Command to associate shared and link libraries.
21911sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21912
21913# The archiver.
21914AR=$lt_AR
21915
21916# Flags to create an archive (by configure).
21917lt_ar_flags=$lt_ar_flags
21918
21919# Flags to create an archive.
21920AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21921
21922# How to feed a file listing to the archiver.
21923archiver_list_spec=$lt_archiver_list_spec
21924
21925# A symbol stripping program.
21926STRIP=$lt_STRIP
21927
21928# Commands used to install an old-style archive.
21929RANLIB=$lt_RANLIB
21930old_postinstall_cmds=$lt_old_postinstall_cmds
21931old_postuninstall_cmds=$lt_old_postuninstall_cmds
21932
21933# Whether to use a lock for old archive extraction.
21934lock_old_archive_extraction=$lock_old_archive_extraction
21935
21936# A C compiler.
21937LTCC=$lt_CC
21938
21939# LTCC compiler flags.
21940LTCFLAGS=$lt_CFLAGS
21941
21942# Take the output of nm and produce a listing of raw symbols and C names.
21943global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21944
21945# Transform the output of nm in a proper C declaration.
21946global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21947
21948# Transform the output of nm into a list of symbols to manually relocate.
21949global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21950
21951# Transform the output of nm in a C name address pair.
21952global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21953
21954# Transform the output of nm in a C name address pair when lib prefix is needed.
21955global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21956
21957# The name lister interface.
21958nm_interface=$lt_lt_cv_nm_interface
21959
21960# Specify filename containing input files for \$NM.
21961nm_file_list_spec=$lt_nm_file_list_spec
21962
21963# The root where to search for dependent libraries,and where our libraries should be installed.
21964lt_sysroot=$lt_sysroot
21965
21966# Command to truncate a binary pipe.
21967lt_truncate_bin=$lt_lt_cv_truncate_bin
21968
21969# The name of the directory that contains temporary libtool files.
21970objdir=$objdir
21971
21972# Used to examine libraries when file_magic_cmd begins with "file".
21973MAGIC_CMD=$MAGIC_CMD
21974
21975# Must we lock files when doing compilation?
21976need_locks=$lt_need_locks
21977
21978# Manifest tool.
21979MANIFEST_TOOL=$lt_MANIFEST_TOOL
21980
21981# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21982DSYMUTIL=$lt_DSYMUTIL
21983
21984# Tool to change global to local symbols on Mac OS X.
21985NMEDIT=$lt_NMEDIT
21986
21987# Tool to manipulate fat objects and archives on Mac OS X.
21988LIPO=$lt_LIPO
21989
21990# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21991OTOOL=$lt_OTOOL
21992
21993# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21994OTOOL64=$lt_OTOOL64
21995
21996# Old archive suffix (normally "a").
21997libext=$libext
21998
21999# Shared library suffix (normally ".so").
22000shrext_cmds=$lt_shrext_cmds
22001
22002# The commands to extract the exported symbol list from a shared archive.
22003extract_expsyms_cmds=$lt_extract_expsyms_cmds
22004
22005# Variables whose values should be saved in libtool wrapper scripts and
22006# restored at link time.
22007variables_saved_for_relink=$lt_variables_saved_for_relink
22008
22009# Do we need the "lib" prefix for modules?
22010need_lib_prefix=$need_lib_prefix
22011
22012# Do we need a version for libraries?
22013need_version=$need_version
22014
22015# Library versioning type.
22016version_type=$version_type
22017
22018# Shared library runtime path variable.
22019runpath_var=$runpath_var
22020
22021# Shared library path variable.
22022shlibpath_var=$shlibpath_var
22023
22024# Is shlibpath searched before the hard-coded library search path?
22025shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22026
22027# Format of library name prefix.
22028libname_spec=$lt_libname_spec
22029
22030# List of archive names.  First name is the real one, the rest are links.
22031# The last name is the one that the linker finds with -lNAME
22032library_names_spec=$lt_library_names_spec
22033
22034# The coded name of the library, if different from the real name.
22035soname_spec=$lt_soname_spec
22036
22037# Permission mode override for installation of shared libraries.
22038install_override_mode=$lt_install_override_mode
22039
22040# Command to use after installation of a shared archive.
22041postinstall_cmds=$lt_postinstall_cmds
22042
22043# Command to use after uninstallation of a shared archive.
22044postuninstall_cmds=$lt_postuninstall_cmds
22045
22046# Commands used to finish a libtool library installation in a directory.
22047finish_cmds=$lt_finish_cmds
22048
22049# As "finish_cmds", except a single script fragment to be evaled but
22050# not shown.
22051finish_eval=$lt_finish_eval
22052
22053# Whether we should hardcode library paths into libraries.
22054hardcode_into_libs=$hardcode_into_libs
22055
22056# Compile-time system search path for libraries.
22057sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22058
22059# Detected run-time system search path for libraries.
22060sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22061
22062# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22063configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22064
22065# Whether dlopen is supported.
22066dlopen_support=$enable_dlopen
22067
22068# Whether dlopen of programs is supported.
22069dlopen_self=$enable_dlopen_self
22070
22071# Whether dlopen of statically linked programs is supported.
22072dlopen_self_static=$enable_dlopen_self_static
22073
22074# Commands to strip libraries.
22075old_striplib=$lt_old_striplib
22076striplib=$lt_striplib
22077
22078
22079# The linker used to build libraries.
22080LD=$lt_LD
22081
22082# How to create reloadable object files.
22083reload_flag=$lt_reload_flag
22084reload_cmds=$lt_reload_cmds
22085
22086# Commands used to build an old-style archive.
22087old_archive_cmds=$lt_old_archive_cmds
22088
22089# A language specific compiler.
22090CC=$lt_compiler
22091
22092# Is the compiler the GNU compiler?
22093with_gcc=$GCC
22094
22095# Compiler flag to turn off builtin functions.
22096no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22097
22098# Additional compiler flags for building library objects.
22099pic_flag=$lt_lt_prog_compiler_pic
22100
22101# How to pass a linker flag through the compiler.
22102wl=$lt_lt_prog_compiler_wl
22103
22104# Compiler flag to prevent dynamic linking.
22105link_static_flag=$lt_lt_prog_compiler_static
22106
22107# Does compiler simultaneously support -c and -o options?
22108compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22109
22110# Whether or not to add -lc for building shared libraries.
22111build_libtool_need_lc=$archive_cmds_need_lc
22112
22113# Whether or not to disallow shared libs when runtime libs are static.
22114allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22115
22116# Compiler flag to allow reflexive dlopens.
22117export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22118
22119# Compiler flag to generate shared objects directly from archives.
22120whole_archive_flag_spec=$lt_whole_archive_flag_spec
22121
22122# Whether the compiler copes with passing no objects directly.
22123compiler_needs_object=$lt_compiler_needs_object
22124
22125# Create an old-style archive from a shared archive.
22126old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22127
22128# Create a temporary old-style archive to link instead of a shared archive.
22129old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22130
22131# Commands used to build a shared archive.
22132archive_cmds=$lt_archive_cmds
22133archive_expsym_cmds=$lt_archive_expsym_cmds
22134
22135# Commands used to build a loadable module if different from building
22136# a shared archive.
22137module_cmds=$lt_module_cmds
22138module_expsym_cmds=$lt_module_expsym_cmds
22139
22140# Whether we are building with GNU ld or not.
22141with_gnu_ld=$lt_with_gnu_ld
22142
22143# Flag that allows shared libraries with undefined symbols to be built.
22144allow_undefined_flag=$lt_allow_undefined_flag
22145
22146# Flag that enforces no undefined symbols.
22147no_undefined_flag=$lt_no_undefined_flag
22148
22149# Flag to hardcode \$libdir into a binary during linking.
22150# This must work even if \$libdir does not exist
22151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22152
22153# Whether we need a single "-rpath" flag with a separated argument.
22154hardcode_libdir_separator=$lt_hardcode_libdir_separator
22155
22156# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22157# DIR into the resulting binary.
22158hardcode_direct=$hardcode_direct
22159
22160# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22161# DIR into the resulting binary and the resulting library dependency is
22162# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22163# library is relocated.
22164hardcode_direct_absolute=$hardcode_direct_absolute
22165
22166# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22167# into the resulting binary.
22168hardcode_minus_L=$hardcode_minus_L
22169
22170# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22171# into the resulting binary.
22172hardcode_shlibpath_var=$hardcode_shlibpath_var
22173
22174# Set to "yes" if building a shared library automatically hardcodes DIR
22175# into the library and all subsequent libraries and executables linked
22176# against it.
22177hardcode_automatic=$hardcode_automatic
22178
22179# Set to yes if linker adds runtime paths of dependent libraries
22180# to runtime path list.
22181inherit_rpath=$inherit_rpath
22182
22183# Whether libtool must link a program against all its dependency libraries.
22184link_all_deplibs=$link_all_deplibs
22185
22186# Set to "yes" if exported symbols are required.
22187always_export_symbols=$always_export_symbols
22188
22189# The commands to list exported symbols.
22190export_symbols_cmds=$lt_export_symbols_cmds
22191
22192# Symbols that should not be listed in the preloaded symbols.
22193exclude_expsyms=$lt_exclude_expsyms
22194
22195# Symbols that must always be exported.
22196include_expsyms=$lt_include_expsyms
22197
22198# Commands necessary for linking programs (against libraries) with templates.
22199prelink_cmds=$lt_prelink_cmds
22200
22201# Commands necessary for finishing linking programs.
22202postlink_cmds=$lt_postlink_cmds
22203
22204# Specify filename containing input files.
22205file_list_spec=$lt_file_list_spec
22206
22207# How to hardcode a shared library path into an executable.
22208hardcode_action=$hardcode_action
22209
22210# ### END LIBTOOL CONFIG
22211
22212_LT_EOF
22213
22214    cat <<'_LT_EOF' >> "$cfgfile"
22215
22216# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22217
22218# func_munge_path_list VARIABLE PATH
22219# -----------------------------------
22220# VARIABLE is name of variable containing _space_ separated list of
22221# directories to be munged by the contents of PATH, which is string
22222# having a format:
22223# "DIR[:DIR]:"
22224#       string "DIR[ DIR]" will be prepended to VARIABLE
22225# ":DIR[:DIR]"
22226#       string "DIR[ DIR]" will be appended to VARIABLE
22227# "DIRP[:DIRP]::[DIRA:]DIRA"
22228#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22229#       "DIRA[ DIRA]" will be appended to VARIABLE
22230# "DIR[:DIR]"
22231#       VARIABLE will be replaced by "DIR[ DIR]"
22232func_munge_path_list ()
22233{
22234    case x$2 in
22235    x)
22236        ;;
22237    *:)
22238        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22239        ;;
22240    x:*)
22241        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22242        ;;
22243    *::*)
22244        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22245        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22246        ;;
22247    *)
22248        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22249        ;;
22250    esac
22251}
22252
22253
22254# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22255func_cc_basename ()
22256{
22257    for cc_temp in $*""; do
22258      case $cc_temp in
22259        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22260        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22261        \-*) ;;
22262        *) break;;
22263      esac
22264    done
22265    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22266}
22267
22268
22269# ### END FUNCTIONS SHARED WITH CONFIGURE
22270
22271_LT_EOF
22272
22273  case $host_os in
22274  aix3*)
22275    cat <<\_LT_EOF >> "$cfgfile"
22276# AIX sometimes has problems with the GCC collect2 program.  For some
22277# reason, if we set the COLLECT_NAMES environment variable, the problems
22278# vanish in a puff of smoke.
22279if test set != "${COLLECT_NAMES+set}"; then
22280  COLLECT_NAMES=
22281  export COLLECT_NAMES
22282fi
22283_LT_EOF
22284    ;;
22285  esac
22286
22287
22288
22289ltmain=$ac_aux_dir/ltmain.sh
22290
22291
22292  # We use sed instead of cat because bash on DJGPP gets confused if
22293  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22294  # text mode, it properly converts lines to CR/LF.  This bash problem
22295  # is reportedly fixed, but why not run on old versions too?
22296  $SED '$q' "$ltmain" >> "$cfgfile" \
22297     || (rm -f "$cfgfile"; exit 1)
22298
22299   mv -f "$cfgfile" "$ofile" ||
22300    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22301  chmod +x "$ofile"
22302
22303 ;;
22304
22305  esac
22306done # for ac_tag
22307
22308
22309as_fn_exit 0
22310_ACEOF
22311ac_clean_files=$ac_clean_files_save
22312
22313test $ac_write_fail = 0 ||
22314  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22315
22316
22317# configure is writing to config.log, and then calls config.status.
22318# config.status does its own redirection, appending to config.log.
22319# Unfortunately, on DOS this fails, as config.log is still kept open
22320# by configure, so config.status won't be able to write to it; its
22321# output is simply discarded.  So we exec the FD to /dev/null,
22322# effectively closing config.log, so it can be properly (re)opened and
22323# appended to by config.status.  When coming back to configure, we
22324# need to make the FD available again.
22325if test "$no_create" != yes; then
22326  ac_cs_success=:
22327  ac_config_status_args=
22328  test "$silent" = yes &&
22329    ac_config_status_args="$ac_config_status_args --quiet"
22330  exec 5>/dev/null
22331  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22332  exec 5>>config.log
22333  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22334  # would make configure fail if this is the last instruction.
22335  $ac_cs_success || as_fn_exit 1
22336fi
22337if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22339printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22340fi
22341
22342
22343