configure revision f010a93d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-ast 1.1.6.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/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-ast/-/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-ast'
624PACKAGE_TARNAME='xf86-video-ast'
625PACKAGE_VERSION='1.1.6'
626PACKAGE_STRING='xf86-video-ast 1.1.6'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/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
669XAA_FALSE
670XAA_TRUE
671XSERVER_LIBPCIACCESS_FALSE
672XSERVER_LIBPCIACCESS_TRUE
673PCIACCESS_LIBS
674PCIACCESS_CFLAGS
675XORG_LIBS
676XORG_CFLAGS
677LT_SYS_LIBRARY_PATH
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687DLLTOOL
688OBJDUMP
689FILECMD
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696EGREP
697GREP
698LIBTOOL
699MAN_SUBSTS
700XORG_MAN_PAGE
701ADMIN_MAN_DIR
702DRIVER_MAN_DIR
703MISC_MAN_DIR
704FILE_MAN_DIR
705LIB_MAN_DIR
706APP_MAN_DIR
707ADMIN_MAN_SUFFIX
708DRIVER_MAN_SUFFIX
709MISC_MAN_SUFFIX
710FILE_MAN_SUFFIX
711LIB_MAN_SUFFIX
712APP_MAN_SUFFIX
713SED
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722INSTALL_CMD
723PKG_CONFIG_LIBDIR
724PKG_CONFIG_PATH
725PKG_CONFIG
726CHANGELOG_CMD
727STRICT_CFLAGS
728CWARNFLAGS
729BASE_CFLAGS
730am__fastdepCC_FALSE
731am__fastdepCC_TRUE
732CCDEPMODE
733am__nodep
734AMDEPBACKSLASH
735AMDEP_FALSE
736AMDEP_TRUE
737am__include
738DEPDIR
739OBJEXT
740EXEEXT
741ac_ct_CC
742CPPFLAGS
743LDFLAGS
744CFLAGS
745CC
746AM_BACKSLASH
747AM_DEFAULT_VERBOSITY
748AM_DEFAULT_V
749AM_V
750CSCOPE
751ETAGS
752CTAGS
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795runstatedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL
815am__quote'
816ac_subst_files=''
817ac_user_opts='
818enable_option_checking
819enable_silent_rules
820enable_dependency_tracking
821enable_selective_werror
822enable_strict_compilation
823enable_static
824enable_shared
825with_pic
826enable_fast_install
827with_aix_soname
828with_gnu_ld
829with_sysroot
830enable_libtool_lock
831with_xorg_module_dir
832enable_xaa
833'
834      ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS
842PKG_CONFIG
843PKG_CONFIG_PATH
844PKG_CONFIG_LIBDIR
845LT_SYS_LIBRARY_PATH
846XORG_CFLAGS
847XORG_LIBS
848PCIACCESS_CFLAGS
849PCIACCESS_LIBS'
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888runstatedir='${localstatedir}/run'
889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905  # If the previous option needs an argument, assign it.
906  if test -n "$ac_prev"; then
907    eval $ac_prev=\$ac_option
908    ac_prev=
909    continue
910  fi
911
912  case $ac_option in
913  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914  *=)   ac_optarg= ;;
915  *)    ac_optarg=yes ;;
916  esac
917
918  case $ac_dashdash$ac_option in
919  --)
920    ac_dashdash=yes ;;
921
922  -bindir | --bindir | --bindi | --bind | --bin | --bi)
923    ac_prev=bindir ;;
924  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925    bindir=$ac_optarg ;;
926
927  -build | --build | --buil | --bui | --bu)
928    ac_prev=build_alias ;;
929  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930    build_alias=$ac_optarg ;;
931
932  -cache-file | --cache-file | --cache-fil | --cache-fi \
933  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934    ac_prev=cache_file ;;
935  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937    cache_file=$ac_optarg ;;
938
939  --config-cache | -C)
940    cache_file=config.cache ;;
941
942  -datadir | --datadir | --datadi | --datad)
943    ac_prev=datadir ;;
944  -datadir=* | --datadir=* | --datadi=* | --datad=*)
945    datadir=$ac_optarg ;;
946
947  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948  | --dataroo | --dataro | --datar)
949    ac_prev=datarootdir ;;
950  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952    datarootdir=$ac_optarg ;;
953
954  -disable-* | --disable-*)
955    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956    # Reject names that are not valid shell variable names.
957    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958      as_fn_error $? "invalid feature name: \`$ac_useropt'"
959    ac_useropt_orig=$ac_useropt
960    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961    case $ac_user_opts in
962      *"
963"enable_$ac_useropt"
964"*) ;;
965      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966	 ac_unrecognized_sep=', ';;
967    esac
968    eval enable_$ac_useropt=no ;;
969
970  -docdir | --docdir | --docdi | --doc | --do)
971    ac_prev=docdir ;;
972  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973    docdir=$ac_optarg ;;
974
975  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976    ac_prev=dvidir ;;
977  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978    dvidir=$ac_optarg ;;
979
980  -enable-* | --enable-*)
981    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982    # Reject names that are not valid shell variable names.
983    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984      as_fn_error $? "invalid feature name: \`$ac_useropt'"
985    ac_useropt_orig=$ac_useropt
986    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987    case $ac_user_opts in
988      *"
989"enable_$ac_useropt"
990"*) ;;
991      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992	 ac_unrecognized_sep=', ';;
993    esac
994    eval enable_$ac_useropt=\$ac_optarg ;;
995
996  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998  | --exec | --exe | --ex)
999    ac_prev=exec_prefix ;;
1000  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002  | --exec=* | --exe=* | --ex=*)
1003    exec_prefix=$ac_optarg ;;
1004
1005  -gas | --gas | --ga | --g)
1006    # Obsolete; use --with-gas.
1007    with_gas=yes ;;
1008
1009  -help | --help | --hel | --he | -h)
1010    ac_init_help=long ;;
1011  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012    ac_init_help=recursive ;;
1013  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014    ac_init_help=short ;;
1015
1016  -host | --host | --hos | --ho)
1017    ac_prev=host_alias ;;
1018  -host=* | --host=* | --hos=* | --ho=*)
1019    host_alias=$ac_optarg ;;
1020
1021  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022    ac_prev=htmldir ;;
1023  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024  | --ht=*)
1025    htmldir=$ac_optarg ;;
1026
1027  -includedir | --includedir | --includedi | --included | --include \
1028  | --includ | --inclu | --incl | --inc)
1029    ac_prev=includedir ;;
1030  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031  | --includ=* | --inclu=* | --incl=* | --inc=*)
1032    includedir=$ac_optarg ;;
1033
1034  -infodir | --infodir | --infodi | --infod | --info | --inf)
1035    ac_prev=infodir ;;
1036  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037    infodir=$ac_optarg ;;
1038
1039  -libdir | --libdir | --libdi | --libd)
1040    ac_prev=libdir ;;
1041  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042    libdir=$ac_optarg ;;
1043
1044  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045  | --libexe | --libex | --libe)
1046    ac_prev=libexecdir ;;
1047  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048  | --libexe=* | --libex=* | --libe=*)
1049    libexecdir=$ac_optarg ;;
1050
1051  -localedir | --localedir | --localedi | --localed | --locale)
1052    ac_prev=localedir ;;
1053  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054    localedir=$ac_optarg ;;
1055
1056  -localstatedir | --localstatedir | --localstatedi | --localstated \
1057  | --localstate | --localstat | --localsta | --localst | --locals)
1058    ac_prev=localstatedir ;;
1059  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061    localstatedir=$ac_optarg ;;
1062
1063  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064    ac_prev=mandir ;;
1065  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066    mandir=$ac_optarg ;;
1067
1068  -nfp | --nfp | --nf)
1069    # Obsolete; use --without-fp.
1070    with_fp=no ;;
1071
1072  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073  | --no-cr | --no-c | -n)
1074    no_create=yes ;;
1075
1076  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078    no_recursion=yes ;;
1079
1080  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082  | --oldin | --oldi | --old | --ol | --o)
1083    ac_prev=oldincludedir ;;
1084  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087    oldincludedir=$ac_optarg ;;
1088
1089  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090    ac_prev=prefix ;;
1091  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092    prefix=$ac_optarg ;;
1093
1094  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095  | --program-pre | --program-pr | --program-p)
1096    ac_prev=program_prefix ;;
1097  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099    program_prefix=$ac_optarg ;;
1100
1101  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102  | --program-suf | --program-su | --program-s)
1103    ac_prev=program_suffix ;;
1104  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106    program_suffix=$ac_optarg ;;
1107
1108  -program-transform-name | --program-transform-name \
1109  | --program-transform-nam | --program-transform-na \
1110  | --program-transform-n | --program-transform- \
1111  | --program-transform | --program-transfor \
1112  | --program-transfo | --program-transf \
1113  | --program-trans | --program-tran \
1114  | --progr-tra | --program-tr | --program-t)
1115    ac_prev=program_transform_name ;;
1116  -program-transform-name=* | --program-transform-name=* \
1117  | --program-transform-nam=* | --program-transform-na=* \
1118  | --program-transform-n=* | --program-transform-=* \
1119  | --program-transform=* | --program-transfor=* \
1120  | --program-transfo=* | --program-transf=* \
1121  | --program-trans=* | --program-tran=* \
1122  | --progr-tra=* | --program-tr=* | --program-t=*)
1123    program_transform_name=$ac_optarg ;;
1124
1125  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126    ac_prev=pdfdir ;;
1127  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128    pdfdir=$ac_optarg ;;
1129
1130  -psdir | --psdir | --psdi | --psd | --ps)
1131    ac_prev=psdir ;;
1132  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133    psdir=$ac_optarg ;;
1134
1135  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136  | -silent | --silent | --silen | --sile | --sil)
1137    silent=yes ;;
1138
1139  -runstatedir | --runstatedir | --runstatedi | --runstated \
1140  | --runstate | --runstat | --runsta | --runst | --runs \
1141  | --run | --ru | --r)
1142    ac_prev=runstatedir ;;
1143  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145  | --run=* | --ru=* | --r=*)
1146    runstatedir=$ac_optarg ;;
1147
1148  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149    ac_prev=sbindir ;;
1150  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151  | --sbi=* | --sb=*)
1152    sbindir=$ac_optarg ;;
1153
1154  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156  | --sharedst | --shareds | --shared | --share | --shar \
1157  | --sha | --sh)
1158    ac_prev=sharedstatedir ;;
1159  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162  | --sha=* | --sh=*)
1163    sharedstatedir=$ac_optarg ;;
1164
1165  -site | --site | --sit)
1166    ac_prev=site ;;
1167  -site=* | --site=* | --sit=*)
1168    site=$ac_optarg ;;
1169
1170  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171    ac_prev=srcdir ;;
1172  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173    srcdir=$ac_optarg ;;
1174
1175  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176  | --syscon | --sysco | --sysc | --sys | --sy)
1177    ac_prev=sysconfdir ;;
1178  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180    sysconfdir=$ac_optarg ;;
1181
1182  -target | --target | --targe | --targ | --tar | --ta | --t)
1183    ac_prev=target_alias ;;
1184  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185    target_alias=$ac_optarg ;;
1186
1187  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188    verbose=yes ;;
1189
1190  -version | --version | --versio | --versi | --vers | -V)
1191    ac_init_version=: ;;
1192
1193  -with-* | --with-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: \`$ac_useropt'"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: \`$ac_useropt'"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=no ;;
1224
1225  --x)
1226    # Obsolete; use --with-x.
1227    with_x=yes ;;
1228
1229  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230  | --x-incl | --x-inc | --x-in | --x-i)
1231    ac_prev=x_includes ;;
1232  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234    x_includes=$ac_optarg ;;
1235
1236  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238    ac_prev=x_libraries ;;
1239  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241    x_libraries=$ac_optarg ;;
1242
1243  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245    ;;
1246
1247  *=*)
1248    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249    # Reject names that are not valid shell variable names.
1250    case $ac_envvar in #(
1251      '' | [0-9]* | *[!_$as_cr_alnum]* )
1252      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253    esac
1254    eval $ac_envvar=\$ac_optarg
1255    export $ac_envvar ;;
1256
1257  *)
1258    # FIXME: should be removed in autoconf 3.0.
1259    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263    ;;
1264
1265  esac
1266done
1267
1268if test -n "$ac_prev"; then
1269  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270  as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274  case $enable_option_checking in
1275    no) ;;
1276    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278  esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283		datadir sysconfdir sharedstatedir localstatedir includedir \
1284		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285		libdir localedir mandir runstatedir
1286do
1287  eval ac_val=\$$ac_var
1288  # Remove trailing slashes.
1289  case $ac_val in
1290    */ )
1291      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292      eval $ac_var=\$ac_val;;
1293  esac
1294  # Be sure to have absolute directory names.
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311  if test "x$build_alias" = x; then
1312    cross_compiling=maybe
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329  as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334  ac_srcdir_defaulted=yes
1335  # Try the directory containing this script, then the parent directory.
1336  ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338	 X"$as_myself" : 'X\(//\)[^/]' \| \
1339	 X"$as_myself" : 'X\(//\)$' \| \
1340	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341printf "%s\n" X"$as_myself" |
1342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)[^/].*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\).*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  s/.*/./; q'`
1359  srcdir=$ac_confdir
1360  if test ! -r "$srcdir/$ac_unique_file"; then
1361    srcdir=..
1362  fi
1363else
1364  ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373	pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376  srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_env_${ac_var}_value=\$${ac_var}
1387  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395  # Omit some internal or obsolete options to make the list less imposing.
1396  # This message is too long to be a string in the A/UX 3.1 sh.
1397  cat <<_ACEOF
1398\`configure' configures xf86-video-ast 1.1.6 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408  -h, --help              display this help and exit
1409      --help=short        display options specific to this package
1410      --help=recursive    display the short help of all the included packages
1411  -V, --version           display version information and exit
1412  -q, --quiet, --silent   do not print \`checking ...' messages
1413      --cache-file=FILE   cache test results in FILE [disabled]
1414  -C, --config-cache      alias for \`--cache-file=config.cache'
1415  -n, --no-create         do not create output files
1416      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419  --prefix=PREFIX         install architecture-independent files in PREFIX
1420                          [$ac_default_prefix]
1421  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                          [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432  --bindir=DIR            user executables [EPREFIX/bin]
1433  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434  --libexecdir=DIR        program executables [EPREFIX/libexec]
1435  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1439  --libdir=DIR            object code libraries [EPREFIX/lib]
1440  --includedir=DIR        C header files [PREFIX/include]
1441  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444  --infodir=DIR           info documentation [DATAROOTDIR/info]
1445  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446  --mandir=DIR            man documentation [DATAROOTDIR/man]
1447  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ast]
1448  --htmldir=DIR           html documentation [DOCDIR]
1449  --dvidir=DIR            dvi documentation [DOCDIR]
1450  --pdfdir=DIR            pdf documentation [DOCDIR]
1451  --psdir=DIR             ps documentation [DOCDIR]
1452_ACEOF
1453
1454  cat <<\_ACEOF
1455
1456Program names:
1457  --program-prefix=PREFIX            prepend PREFIX to installed program names
1458  --program-suffix=SUFFIX            append SUFFIX to installed program names
1459  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461System types:
1462  --build=BUILD     configure for building on BUILD [guessed]
1463  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464_ACEOF
1465fi
1466
1467if test -n "$ac_init_help"; then
1468  case $ac_init_help in
1469     short | recursive ) echo "Configuration of xf86-video-ast 1.1.6:";;
1470   esac
1471  cat <<\_ACEOF
1472
1473Optional Features:
1474  --disable-option-checking  ignore unrecognized --enable/--with options
1475  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477  --enable-silent-rules   less verbose build output (undo: "make V=1")
1478  --disable-silent-rules  verbose build output (undo: "make V=0")
1479  --enable-dependency-tracking
1480                          do not reject slow dependency extractors
1481  --disable-dependency-tracking
1482                          speeds up one-time build
1483  --disable-selective-werror
1484                          Turn off selective compiler errors. (default:
1485                          enabled)
1486  --enable-strict-compilation
1487                          Enable all warnings from compiler and make them
1488                          errors (default: disabled)
1489  --enable-static[=PKGS]  build static libraries [default=no]
1490  --enable-shared[=PKGS]  build shared libraries [default=yes]
1491  --enable-fast-install[=PKGS]
1492                          optimize for fast installation [default=yes]
1493  --disable-libtool-lock  avoid locking (might break parallel builds)
1494  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1495                          [default=auto]
1496
1497Optional Packages:
1498  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1499  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1500  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1501                          both]
1502  --with-aix-soname=aix|svr4|both
1503                          shared library versioning (aka "SONAME") variant to
1504                          provide on AIX, [default=aix].
1505  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1506  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1507                          compiler's sysroot if not specified).
1508  --with-xorg-module-dir=DIR
1509                          Default xorg module directory
1510                          [[default=$libdir/xorg/modules]]
1511
1512Some influential environment variables:
1513  CC          C compiler command
1514  CFLAGS      C compiler flags
1515  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516              nonstandard directory <lib dir>
1517  LIBS        libraries to pass to the linker, e.g. -l<library>
1518  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519              you have headers in a nonstandard directory <include dir>
1520  PKG_CONFIG  path to pkg-config utility
1521  PKG_CONFIG_PATH
1522              directories to add to pkg-config's search path
1523  PKG_CONFIG_LIBDIR
1524              path overriding pkg-config's built-in search path
1525  LT_SYS_LIBRARY_PATH
1526              User-defined run-time library search path.
1527  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1528  XORG_LIBS   linker flags for XORG, overriding pkg-config
1529  PCIACCESS_CFLAGS
1530              C compiler flags for PCIACCESS, overriding pkg-config
1531  PCIACCESS_LIBS
1532              linker flags for PCIACCESS, overriding pkg-config
1533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
1537Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/issues>.
1538_ACEOF
1539ac_status=$?
1540fi
1541
1542if test "$ac_init_help" = "recursive"; then
1543  # If there are subdirs, report their specific --help.
1544  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545    test -d "$ac_dir" ||
1546      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547      continue
1548    ac_builddir=.
1549
1550case "$ac_dir" in
1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552*)
1553  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1554  # A ".." for each directory in $ac_dir_suffix.
1555  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556  case $ac_top_builddir_sub in
1557  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559  esac ;;
1560esac
1561ac_abs_top_builddir=$ac_pwd
1562ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563# for backward compatibility:
1564ac_top_builddir=$ac_top_build_prefix
1565
1566case $srcdir in
1567  .)  # We are building in place.
1568    ac_srcdir=.
1569    ac_top_srcdir=$ac_top_builddir_sub
1570    ac_abs_top_srcdir=$ac_pwd ;;
1571  [\\/]* | ?:[\\/]* )  # Absolute name.
1572    ac_srcdir=$srcdir$ac_dir_suffix;
1573    ac_top_srcdir=$srcdir
1574    ac_abs_top_srcdir=$srcdir ;;
1575  *) # Relative name.
1576    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577    ac_top_srcdir=$ac_top_build_prefix$srcdir
1578    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579esac
1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582    cd "$ac_dir" || { ac_status=$?; continue; }
1583    # Check for configure.gnu first; this name is used for a wrapper for
1584    # Metaconfig's "Configure" on case-insensitive file systems.
1585    if test -f "$ac_srcdir/configure.gnu"; then
1586      echo &&
1587      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588    elif test -f "$ac_srcdir/configure"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure" --help=recursive
1591    else
1592      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593    fi || ac_status=$?
1594    cd "$ac_pwd" || { ac_status=$?; break; }
1595  done
1596fi
1597
1598test -n "$ac_init_help" && exit $ac_status
1599if $ac_init_version; then
1600  cat <<\_ACEOF
1601xf86-video-ast configure 1.1.6
1602generated by GNU Autoconf 2.71
1603
1604Copyright (C) 2021 Free Software Foundation, Inc.
1605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
1607_ACEOF
1608  exit
1609fi
1610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
1614
1615# ac_fn_c_try_compile LINENO
1616# --------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  rm -f conftest.$ac_objext conftest.beam
1622  if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628printf "%s\n" "$ac_try_echo"; } >&5
1629  (eval "$ac_compile") 2>conftest.err
1630  ac_status=$?
1631  if test -s conftest.err; then
1632    grep -v '^ *+' conftest.err >conftest.er1
1633    cat conftest.er1 >&5
1634    mv -f conftest.er1 conftest.err
1635  fi
1636  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637  test $ac_status = 0; } && {
1638	 test -z "$ac_c_werror_flag" ||
1639	 test ! -s conftest.err
1640       } && test -s conftest.$ac_objext
1641then :
1642  ac_retval=0
1643else $as_nop
1644  printf "%s\n" "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647	ac_retval=1
1648fi
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_compile
1653
1654# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1655# ------------------------------------------------------------------
1656# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1657# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1658ac_fn_check_decl ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  as_decl_name=`echo $2|sed 's/ *(.*//'`
1662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1663printf %s "checking whether $as_decl_name is declared... " >&6; }
1664if eval test \${$3+y}
1665then :
1666  printf %s "(cached) " >&6
1667else $as_nop
1668  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1669  eval ac_save_FLAGS=\$$6
1670  as_fn_append $6 " $5"
1671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673$4
1674int
1675main (void)
1676{
1677#ifndef $as_decl_name
1678#ifdef __cplusplus
1679  (void) $as_decl_use;
1680#else
1681  (void) $as_decl_name;
1682#endif
1683#endif
1684
1685  ;
1686  return 0;
1687}
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"
1690then :
1691  eval "$3=yes"
1692else $as_nop
1693  eval "$3=no"
1694fi
1695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1696  eval $6=\$ac_save_FLAGS
1697
1698fi
1699eval ac_res=\$$3
1700	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701printf "%s\n" "$ac_res" >&6; }
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704} # ac_fn_check_decl
1705
1706# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1707# -------------------------------------------------------
1708# Tests whether HEADER exists and can be compiled using the include files in
1709# INCLUDES, setting the cache variable VAR accordingly.
1710ac_fn_c_check_header_compile ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714printf %s "checking for $2... " >&6; }
1715if eval test \${$3+y}
1716then :
1717  printf %s "(cached) " >&6
1718else $as_nop
1719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720/* end confdefs.h.  */
1721$4
1722#include <$2>
1723_ACEOF
1724if ac_fn_c_try_compile "$LINENO"
1725then :
1726  eval "$3=yes"
1727else $as_nop
1728  eval "$3=no"
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1731fi
1732eval ac_res=\$$3
1733	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734printf "%s\n" "$ac_res" >&6; }
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737} # ac_fn_c_check_header_compile
1738
1739# ac_fn_c_try_link LINENO
1740# -----------------------
1741# Try to link conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_c_try_link ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1746  if { { ac_try="$ac_link"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752printf "%s\n" "$ac_try_echo"; } >&5
1753  (eval "$ac_link") 2>conftest.err
1754  ac_status=$?
1755  if test -s conftest.err; then
1756    grep -v '^ *+' conftest.err >conftest.er1
1757    cat conftest.er1 >&5
1758    mv -f conftest.er1 conftest.err
1759  fi
1760  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761  test $ac_status = 0; } && {
1762	 test -z "$ac_c_werror_flag" ||
1763	 test ! -s conftest.err
1764       } && test -s conftest$ac_exeext && {
1765	 test "$cross_compiling" = yes ||
1766	 test -x conftest$ac_exeext
1767       }
1768then :
1769  ac_retval=0
1770else $as_nop
1771  printf "%s\n" "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774	ac_retval=1
1775fi
1776  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778  # interfere with the next link command; also delete a directory that is
1779  # left behind by Apple's compiler.  We do this before executing the actions.
1780  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782  as_fn_set_status $ac_retval
1783
1784} # ac_fn_c_try_link
1785
1786# ac_fn_c_check_func LINENO FUNC VAR
1787# ----------------------------------
1788# Tests whether FUNC exists, setting the cache variable VAR accordingly
1789ac_fn_c_check_func ()
1790{
1791  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793printf %s "checking for $2... " >&6; }
1794if eval test \${$3+y}
1795then :
1796  printf %s "(cached) " >&6
1797else $as_nop
1798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h.  */
1800/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1801   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1802#define $2 innocuous_$2
1803
1804/* System header to define __stub macros and hopefully few prototypes,
1805   which can conflict with char $2 (); below.  */
1806
1807#include <limits.h>
1808#undef $2
1809
1810/* Override any GCC internal prototype to avoid an error.
1811   Use char because int might match the return type of a GCC
1812   builtin and then its argument prototype would still apply.  */
1813#ifdef __cplusplus
1814extern "C"
1815#endif
1816char $2 ();
1817/* The GNU C library defines this for functions which it implements
1818    to always fail with ENOSYS.  Some functions are actually named
1819    something starting with __ and the normal name is an alias.  */
1820#if defined __stub_$2 || defined __stub___$2
1821choke me
1822#endif
1823
1824int
1825main (void)
1826{
1827return $2 ();
1828  ;
1829  return 0;
1830}
1831_ACEOF
1832if ac_fn_c_try_link "$LINENO"
1833then :
1834  eval "$3=yes"
1835else $as_nop
1836  eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.beam \
1839    conftest$ac_exeext conftest.$ac_ext
1840fi
1841eval ac_res=\$$3
1842	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843printf "%s\n" "$ac_res" >&6; }
1844  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_func
1847ac_configure_args_raw=
1848for ac_arg
1849do
1850  case $ac_arg in
1851  *\'*)
1852    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853  esac
1854  as_fn_append ac_configure_args_raw " '$ac_arg'"
1855done
1856
1857case $ac_configure_args_raw in
1858  *$as_nl*)
1859    ac_safe_unquote= ;;
1860  *)
1861    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1862    ac_unsafe_a="$ac_unsafe_z#~"
1863    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1864    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1865esac
1866
1867cat >config.log <<_ACEOF
1868This file contains any messages produced by compilers while
1869running configure, to aid debugging if configure makes a mistake.
1870
1871It was created by xf86-video-ast $as_me 1.1.6, which was
1872generated by GNU Autoconf 2.71.  Invocation command line was
1873
1874  $ $0$ac_configure_args_raw
1875
1876_ACEOF
1877exec 5>>config.log
1878{
1879cat <<_ASUNAME
1880## --------- ##
1881## Platform. ##
1882## --------- ##
1883
1884hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1892
1893/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1894/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1897/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1898/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1899/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1900
1901_ASUNAME
1902
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906  IFS=$as_save_IFS
1907  case $as_dir in #(((
1908    '') as_dir=./ ;;
1909    */) ;;
1910    *) as_dir=$as_dir/ ;;
1911  esac
1912    printf "%s\n" "PATH: $as_dir"
1913  done
1914IFS=$as_save_IFS
1915
1916} >&5
1917
1918cat >&5 <<_ACEOF
1919
1920
1921## ----------- ##
1922## Core tests. ##
1923## ----------- ##
1924
1925_ACEOF
1926
1927
1928# Keep a trace of the command line.
1929# Strip out --no-create and --no-recursion so they do not pile up.
1930# Strip out --silent because we don't want to record it for future runs.
1931# Also quote any args containing shell meta-characters.
1932# Make two passes to allow for proper duplicate-argument suppression.
1933ac_configure_args=
1934ac_configure_args0=
1935ac_configure_args1=
1936ac_must_keep_next=false
1937for ac_pass in 1 2
1938do
1939  for ac_arg
1940  do
1941    case $ac_arg in
1942    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944    | -silent | --silent | --silen | --sile | --sil)
1945      continue ;;
1946    *\'*)
1947      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948    esac
1949    case $ac_pass in
1950    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951    2)
1952      as_fn_append ac_configure_args1 " '$ac_arg'"
1953      if test $ac_must_keep_next = true; then
1954	ac_must_keep_next=false # Got value, back to normal.
1955      else
1956	case $ac_arg in
1957	  *=* | --config-cache | -C | -disable-* | --disable-* \
1958	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960	  | -with-* | --with-* | -without-* | --without-* | --x)
1961	    case "$ac_configure_args0 " in
1962	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963	    esac
1964	    ;;
1965	  -* ) ac_must_keep_next=true ;;
1966	esac
1967      fi
1968      as_fn_append ac_configure_args " '$ac_arg'"
1969      ;;
1970    esac
1971  done
1972done
1973{ ac_configure_args0=; unset ac_configure_args0;}
1974{ ac_configure_args1=; unset ac_configure_args1;}
1975
1976# When interrupted or exit'd, cleanup temporary files, and complete
1977# config.log.  We remove comments because anyway the quotes in there
1978# would cause problems or look ugly.
1979# WARNING: Use '\'' to represent an apostrophe within the trap.
1980# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981trap 'exit_status=$?
1982  # Sanitize IFS.
1983  IFS=" ""	$as_nl"
1984  # Save into config.log some information that might help in debugging.
1985  {
1986    echo
1987
1988    printf "%s\n" "## ---------------- ##
1989## Cache variables. ##
1990## ---------------- ##"
1991    echo
1992    # The following way of writing the cache mishandles newlines in values,
1993(
1994  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995    eval ac_val=\$$ac_var
1996    case $ac_val in #(
1997    *${as_nl}*)
1998      case $ac_var in #(
1999      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2000printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2001      esac
2002      case $ac_var in #(
2003      _ | IFS | as_nl) ;; #(
2004      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005      *) { eval $ac_var=; unset $ac_var;} ;;
2006      esac ;;
2007    esac
2008  done
2009  (set) 2>&1 |
2010    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011    *${as_nl}ac_space=\ *)
2012      sed -n \
2013	"s/'\''/'\''\\\\'\'''\''/g;
2014	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015      ;; #(
2016    *)
2017      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018      ;;
2019    esac |
2020    sort
2021)
2022    echo
2023
2024    printf "%s\n" "## ----------------- ##
2025## Output variables. ##
2026## ----------------- ##"
2027    echo
2028    for ac_var in $ac_subst_vars
2029    do
2030      eval ac_val=\$$ac_var
2031      case $ac_val in
2032      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033      esac
2034      printf "%s\n" "$ac_var='\''$ac_val'\''"
2035    done | sort
2036    echo
2037
2038    if test -n "$ac_subst_files"; then
2039      printf "%s\n" "## ------------------- ##
2040## File substitutions. ##
2041## ------------------- ##"
2042      echo
2043      for ac_var in $ac_subst_files
2044      do
2045	eval ac_val=\$$ac_var
2046	case $ac_val in
2047	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048	esac
2049	printf "%s\n" "$ac_var='\''$ac_val'\''"
2050      done | sort
2051      echo
2052    fi
2053
2054    if test -s confdefs.h; then
2055      printf "%s\n" "## ----------- ##
2056## confdefs.h. ##
2057## ----------- ##"
2058      echo
2059      cat confdefs.h
2060      echo
2061    fi
2062    test "$ac_signal" != 0 &&
2063      printf "%s\n" "$as_me: caught signal $ac_signal"
2064    printf "%s\n" "$as_me: exit $exit_status"
2065  } >&5
2066  rm -f core *.core core.conftest.* &&
2067    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068    exit $exit_status
2069' 0
2070for ac_signal in 1 2 13 15; do
2071  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072done
2073ac_signal=0
2074
2075# confdefs.h avoids OS command line length limits that DEFS can exceed.
2076rm -f -r conftest* confdefs.h
2077
2078printf "%s\n" "/* confdefs.h */" > confdefs.h
2079
2080# Predefined preprocessor variables.
2081
2082printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2083
2084printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2085
2086printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2087
2088printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2089
2090printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2091
2092printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2093
2094
2095# Let the site file select an alternate cache file if it wants to.
2096# Prefer an explicitly selected file to automatically selected ones.
2097if test -n "$CONFIG_SITE"; then
2098  ac_site_files="$CONFIG_SITE"
2099elif test "x$prefix" != xNONE; then
2100  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2101else
2102  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2103fi
2104
2105for ac_site_file in $ac_site_files
2106do
2107  case $ac_site_file in #(
2108  */*) :
2109     ;; #(
2110  *) :
2111    ac_site_file=./$ac_site_file ;;
2112esac
2113  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2114    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2116    sed 's/^/| /' "$ac_site_file" >&5
2117    . "$ac_site_file" \
2118      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2120as_fn_error $? "failed to load site script $ac_site_file
2121See \`config.log' for more details" "$LINENO" 5; }
2122  fi
2123done
2124
2125if test -r "$cache_file"; then
2126  # Some versions of bash will fail to source /dev/null (special files
2127  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2128  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2129    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2131    case $cache_file in
2132      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133      *)                      . "./$cache_file";;
2134    esac
2135  fi
2136else
2137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2139  >$cache_file
2140fi
2141
2142# Test code for whether the C compiler supports C89 (global declarations)
2143ac_c_conftest_c89_globals='
2144/* Does the compiler advertise C89 conformance?
2145   Do not test the value of __STDC__, because some compilers set it to 0
2146   while being otherwise adequately conformant. */
2147#if !defined __STDC__
2148# error "Compiler does not advertise C89 conformance"
2149#endif
2150
2151#include <stddef.h>
2152#include <stdarg.h>
2153struct stat;
2154/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2155struct buf { int x; };
2156struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2157static char *e (p, i)
2158     char **p;
2159     int i;
2160{
2161  return p[i];
2162}
2163static char *f (char * (*g) (char **, int), char **p, ...)
2164{
2165  char *s;
2166  va_list v;
2167  va_start (v,p);
2168  s = g (p, va_arg (v,int));
2169  va_end (v);
2170  return s;
2171}
2172
2173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2174   function prototypes and stuff, but not \xHH hex character constants.
2175   These do not provoke an error unfortunately, instead are silently treated
2176   as an "x".  The following induces an error, until -std is added to get
2177   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2178   array size at least.  It is necessary to write \x00 == 0 to get something
2179   that is true only with -std.  */
2180int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2181
2182/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2183   inside strings and character constants.  */
2184#define FOO(x) '\''x'\''
2185int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2186
2187int test (int i, double x);
2188struct s1 {int (*f) (int a);};
2189struct s2 {int (*f) (double a);};
2190int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2191               int, int);'
2192
2193# Test code for whether the C compiler supports C89 (body of main).
2194ac_c_conftest_c89_main='
2195ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2196'
2197
2198# Test code for whether the C compiler supports C99 (global declarations)
2199ac_c_conftest_c99_globals='
2200// Does the compiler advertise C99 conformance?
2201#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2202# error "Compiler does not advertise C99 conformance"
2203#endif
2204
2205#include <stdbool.h>
2206extern int puts (const char *);
2207extern int printf (const char *, ...);
2208extern int dprintf (int, const char *, ...);
2209extern void *malloc (size_t);
2210
2211// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2212// dprintf is used instead of fprintf to avoid needing to declare
2213// FILE and stderr.
2214#define debug(...) dprintf (2, __VA_ARGS__)
2215#define showlist(...) puts (#__VA_ARGS__)
2216#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2217static void
2218test_varargs_macros (void)
2219{
2220  int x = 1234;
2221  int y = 5678;
2222  debug ("Flag");
2223  debug ("X = %d\n", x);
2224  showlist (The first, second, and third items.);
2225  report (x>y, "x is %d but y is %d", x, y);
2226}
2227
2228// Check long long types.
2229#define BIG64 18446744073709551615ull
2230#define BIG32 4294967295ul
2231#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2232#if !BIG_OK
2233  #error "your preprocessor is broken"
2234#endif
2235#if BIG_OK
2236#else
2237  #error "your preprocessor is broken"
2238#endif
2239static long long int bignum = -9223372036854775807LL;
2240static unsigned long long int ubignum = BIG64;
2241
2242struct incomplete_array
2243{
2244  int datasize;
2245  double data[];
2246};
2247
2248struct named_init {
2249  int number;
2250  const wchar_t *name;
2251  double average;
2252};
2253
2254typedef const char *ccp;
2255
2256static inline int
2257test_restrict (ccp restrict text)
2258{
2259  // See if C++-style comments work.
2260  // Iterate through items via the restricted pointer.
2261  // Also check for declarations in for loops.
2262  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2263    continue;
2264  return 0;
2265}
2266
2267// Check varargs and va_copy.
2268static bool
2269test_varargs (const char *format, ...)
2270{
2271  va_list args;
2272  va_start (args, format);
2273  va_list args_copy;
2274  va_copy (args_copy, args);
2275
2276  const char *str = "";
2277  int number = 0;
2278  float fnumber = 0;
2279
2280  while (*format)
2281    {
2282      switch (*format++)
2283	{
2284	case '\''s'\'': // string
2285	  str = va_arg (args_copy, const char *);
2286	  break;
2287	case '\''d'\'': // int
2288	  number = va_arg (args_copy, int);
2289	  break;
2290	case '\''f'\'': // float
2291	  fnumber = va_arg (args_copy, double);
2292	  break;
2293	default:
2294	  break;
2295	}
2296    }
2297  va_end (args_copy);
2298  va_end (args);
2299
2300  return *str && number && fnumber;
2301}
2302'
2303
2304# Test code for whether the C compiler supports C99 (body of main).
2305ac_c_conftest_c99_main='
2306  // Check bool.
2307  _Bool success = false;
2308  success |= (argc != 0);
2309
2310  // Check restrict.
2311  if (test_restrict ("String literal") == 0)
2312    success = true;
2313  char *restrict newvar = "Another string";
2314
2315  // Check varargs.
2316  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2317  test_varargs_macros ();
2318
2319  // Check flexible array members.
2320  struct incomplete_array *ia =
2321    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2322  ia->datasize = 10;
2323  for (int i = 0; i < ia->datasize; ++i)
2324    ia->data[i] = i * 1.234;
2325
2326  // Check named initializers.
2327  struct named_init ni = {
2328    .number = 34,
2329    .name = L"Test wide string",
2330    .average = 543.34343,
2331  };
2332
2333  ni.number = 58;
2334
2335  int dynamic_array[ni.number];
2336  dynamic_array[0] = argv[0][0];
2337  dynamic_array[ni.number - 1] = 543;
2338
2339  // work around unused variable warnings
2340  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2341	 || dynamic_array[ni.number - 1] != 543);
2342'
2343
2344# Test code for whether the C compiler supports C11 (global declarations)
2345ac_c_conftest_c11_globals='
2346// Does the compiler advertise C11 conformance?
2347#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2348# error "Compiler does not advertise C11 conformance"
2349#endif
2350
2351// Check _Alignas.
2352char _Alignas (double) aligned_as_double;
2353char _Alignas (0) no_special_alignment;
2354extern char aligned_as_int;
2355char _Alignas (0) _Alignas (int) aligned_as_int;
2356
2357// Check _Alignof.
2358enum
2359{
2360  int_alignment = _Alignof (int),
2361  int_array_alignment = _Alignof (int[100]),
2362  char_alignment = _Alignof (char)
2363};
2364_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2365
2366// Check _Noreturn.
2367int _Noreturn does_not_return (void) { for (;;) continue; }
2368
2369// Check _Static_assert.
2370struct test_static_assert
2371{
2372  int x;
2373  _Static_assert (sizeof (int) <= sizeof (long int),
2374                  "_Static_assert does not work in struct");
2375  long int y;
2376};
2377
2378// Check UTF-8 literals.
2379#define u8 syntax error!
2380char const utf8_literal[] = u8"happens to be ASCII" "another string";
2381
2382// Check duplicate typedefs.
2383typedef long *long_ptr;
2384typedef long int *long_ptr;
2385typedef long_ptr long_ptr;
2386
2387// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2388struct anonymous
2389{
2390  union {
2391    struct { int i; int j; };
2392    struct { int k; long int l; } w;
2393  };
2394  int m;
2395} v1;
2396'
2397
2398# Test code for whether the C compiler supports C11 (body of main).
2399ac_c_conftest_c11_main='
2400  _Static_assert ((offsetof (struct anonymous, i)
2401		   == offsetof (struct anonymous, w.k)),
2402		  "Anonymous union alignment botch");
2403  v1.i = 2;
2404  v1.w.k = 5;
2405  ok |= v1.i != 5;
2406'
2407
2408# Test code for whether the C compiler supports C11 (complete).
2409ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2410${ac_c_conftest_c99_globals}
2411${ac_c_conftest_c11_globals}
2412
2413int
2414main (int argc, char **argv)
2415{
2416  int ok = 0;
2417  ${ac_c_conftest_c89_main}
2418  ${ac_c_conftest_c99_main}
2419  ${ac_c_conftest_c11_main}
2420  return ok;
2421}
2422"
2423
2424# Test code for whether the C compiler supports C99 (complete).
2425ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2426${ac_c_conftest_c99_globals}
2427
2428int
2429main (int argc, char **argv)
2430{
2431  int ok = 0;
2432  ${ac_c_conftest_c89_main}
2433  ${ac_c_conftest_c99_main}
2434  return ok;
2435}
2436"
2437
2438# Test code for whether the C compiler supports C89 (complete).
2439ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2440
2441int
2442main (int argc, char **argv)
2443{
2444  int ok = 0;
2445  ${ac_c_conftest_c89_main}
2446  return ok;
2447}
2448"
2449
2450as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2451as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2452as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2453as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2454as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2455as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2456as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2457as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2458as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2459
2460# Auxiliary files required by this configure script.
2461ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2462
2463# Locations in which to look for auxiliary files.
2464ac_aux_dir_candidates="${srcdir}/."
2465
2466# Search for a directory containing all of the required auxiliary files,
2467# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2468# If we don't find one directory that contains all the files we need,
2469# we report the set of missing files from the *first* directory in
2470# $ac_aux_dir_candidates and give up.
2471ac_missing_aux_files=""
2472ac_first_candidate=:
2473printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475as_found=false
2476for as_dir in $ac_aux_dir_candidates
2477do
2478  IFS=$as_save_IFS
2479  case $as_dir in #(((
2480    '') as_dir=./ ;;
2481    */) ;;
2482    *) as_dir=$as_dir/ ;;
2483  esac
2484  as_found=:
2485
2486  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2487  ac_aux_dir_found=yes
2488  ac_install_sh=
2489  for ac_aux in $ac_aux_files
2490  do
2491    # As a special case, if "install-sh" is required, that requirement
2492    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2493    # and $ac_install_sh is set appropriately for whichever one is found.
2494    if test x"$ac_aux" = x"install-sh"
2495    then
2496      if test -f "${as_dir}install-sh"; then
2497        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2498        ac_install_sh="${as_dir}install-sh -c"
2499      elif test -f "${as_dir}install.sh"; then
2500        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2501        ac_install_sh="${as_dir}install.sh -c"
2502      elif test -f "${as_dir}shtool"; then
2503        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2504        ac_install_sh="${as_dir}shtool install -c"
2505      else
2506        ac_aux_dir_found=no
2507        if $ac_first_candidate; then
2508          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2509        else
2510          break
2511        fi
2512      fi
2513    else
2514      if test -f "${as_dir}${ac_aux}"; then
2515        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2516      else
2517        ac_aux_dir_found=no
2518        if $ac_first_candidate; then
2519          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2520        else
2521          break
2522        fi
2523      fi
2524    fi
2525  done
2526  if test "$ac_aux_dir_found" = yes; then
2527    ac_aux_dir="$as_dir"
2528    break
2529  fi
2530  ac_first_candidate=false
2531
2532  as_found=false
2533done
2534IFS=$as_save_IFS
2535if $as_found
2536then :
2537
2538else $as_nop
2539  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2540fi
2541
2542
2543# These three variables are undocumented and unsupported,
2544# and are intended to be withdrawn in a future Autoconf release.
2545# They can cause serious problems if a builder's source tree is in a directory
2546# whose full name contains unusual characters.
2547if test -f "${ac_aux_dir}config.guess"; then
2548  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2549fi
2550if test -f "${ac_aux_dir}config.sub"; then
2551  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2552fi
2553if test -f "$ac_aux_dir/configure"; then
2554  ac_configure="$SHELL ${ac_aux_dir}configure"
2555fi
2556
2557# Check that the precious variables saved in the cache have kept the same
2558# value.
2559ac_cache_corrupted=false
2560for ac_var in $ac_precious_vars; do
2561  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2562  eval ac_new_set=\$ac_env_${ac_var}_set
2563  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2564  eval ac_new_val=\$ac_env_${ac_var}_value
2565  case $ac_old_set,$ac_new_set in
2566    set,)
2567      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2568printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2569      ac_cache_corrupted=: ;;
2570    ,set)
2571      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2572printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2573      ac_cache_corrupted=: ;;
2574    ,);;
2575    *)
2576      if test "x$ac_old_val" != "x$ac_new_val"; then
2577	# differences in whitespace do not lead to failure.
2578	ac_old_val_w=`echo x $ac_old_val`
2579	ac_new_val_w=`echo x $ac_new_val`
2580	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2581	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2582printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2583	  ac_cache_corrupted=:
2584	else
2585	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2586printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2587	  eval $ac_var=\$ac_old_val
2588	fi
2589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2590printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2592printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2593      fi;;
2594  esac
2595  # Pass precious variables to config.status.
2596  if test "$ac_new_set" = set; then
2597    case $ac_new_val in
2598    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2599    *) ac_arg=$ac_var=$ac_new_val ;;
2600    esac
2601    case " $ac_configure_args " in
2602      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2603      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2604    esac
2605  fi
2606done
2607if $ac_cache_corrupted; then
2608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2611printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2612  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2613	    and start over" "$LINENO" 5
2614fi
2615## -------------------- ##
2616## Main body of script. ##
2617## -------------------- ##
2618
2619ac_ext=c
2620ac_cpp='$CPP $CPPFLAGS'
2621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624
2625
2626
2627ac_config_headers="$ac_config_headers config.h"
2628
2629
2630
2631# Initialize Automake
2632am__api_version='1.16'
2633
2634
2635
2636  # Find a good install program.  We prefer a C program (faster),
2637# so one script is as good as another.  But avoid the broken or
2638# incompatible versions:
2639# SysV /etc/install, /usr/sbin/install
2640# SunOS /usr/etc/install
2641# IRIX /sbin/install
2642# AIX /bin/install
2643# AmigaOS /C/install, which installs bootblocks on floppy discs
2644# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2645# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2646# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2647# OS/2's system install, which has a completely different semantic
2648# ./install, which can be erroneously created by make from ./install.sh.
2649# Reject install programs that cannot install multiple files.
2650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2651printf %s "checking for a BSD-compatible install... " >&6; }
2652if test -z "$INSTALL"; then
2653if test ${ac_cv_path_install+y}
2654then :
2655  printf %s "(cached) " >&6
2656else $as_nop
2657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660  IFS=$as_save_IFS
2661  case $as_dir in #(((
2662    '') as_dir=./ ;;
2663    */) ;;
2664    *) as_dir=$as_dir/ ;;
2665  esac
2666    # Account for fact that we put trailing slashes in our PATH walk.
2667case $as_dir in #((
2668  ./ | /[cC]/* | \
2669  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2670  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2671  /usr/ucb/* ) ;;
2672  *)
2673    # OSF1 and SCO ODT 3.0 have their own names for install.
2674    # Don't use installbsd from OSF since it installs stuff as root
2675    # by default.
2676    for ac_prog in ginstall scoinst install; do
2677      for ac_exec_ext in '' $ac_executable_extensions; do
2678	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2679	  if test $ac_prog = install &&
2680	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681	    # AIX install.  It has an incompatible calling convention.
2682	    :
2683	  elif test $ac_prog = install &&
2684	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685	    # program-specific install script used by HP pwplus--don't use.
2686	    :
2687	  else
2688	    rm -rf conftest.one conftest.two conftest.dir
2689	    echo one > conftest.one
2690	    echo two > conftest.two
2691	    mkdir conftest.dir
2692	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2693	      test -s conftest.one && test -s conftest.two &&
2694	      test -s conftest.dir/conftest.one &&
2695	      test -s conftest.dir/conftest.two
2696	    then
2697	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2698	      break 3
2699	    fi
2700	  fi
2701	fi
2702      done
2703    done
2704    ;;
2705esac
2706
2707  done
2708IFS=$as_save_IFS
2709
2710rm -rf conftest.one conftest.two conftest.dir
2711
2712fi
2713  if test ${ac_cv_path_install+y}; then
2714    INSTALL=$ac_cv_path_install
2715  else
2716    # As a last resort, use the slow shell script.  Don't cache a
2717    # value for INSTALL within a source directory, because that will
2718    # break other packages using the cache if that directory is
2719    # removed, or if the value is a relative name.
2720    INSTALL=$ac_install_sh
2721  fi
2722fi
2723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2724printf "%s\n" "$INSTALL" >&6; }
2725
2726# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2727# It thinks the first close brace ends the variable substitution.
2728test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2729
2730test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2731
2732test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2733
2734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2735printf %s "checking whether build environment is sane... " >&6; }
2736# Reject unsafe characters in $srcdir or the absolute working directory
2737# name.  Accept space and tab only in the latter.
2738am_lf='
2739'
2740case `pwd` in
2741  *[\\\"\#\$\&\'\`$am_lf]*)
2742    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2743esac
2744case $srcdir in
2745  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2746    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2747esac
2748
2749# Do 'set' in a subshell so we don't clobber the current shell's
2750# arguments.  Must try -L first in case configure is actually a
2751# symlink; some systems play weird games with the mod time of symlinks
2752# (eg FreeBSD returns the mod time of the symlink's containing
2753# directory).
2754if (
2755   am_has_slept=no
2756   for am_try in 1 2; do
2757     echo "timestamp, slept: $am_has_slept" > conftest.file
2758     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2759     if test "$*" = "X"; then
2760	# -L didn't work.
2761	set X `ls -t "$srcdir/configure" conftest.file`
2762     fi
2763     if test "$*" != "X $srcdir/configure conftest.file" \
2764	&& test "$*" != "X conftest.file $srcdir/configure"; then
2765
2766	# If neither matched, then we have a broken ls.  This can happen
2767	# if, for instance, CONFIG_SHELL is bash and it inherits a
2768	# broken ls alias from the environment.  This has actually
2769	# happened.  Such a system could not be considered "sane".
2770	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2771  alias in your environment" "$LINENO" 5
2772     fi
2773     if test "$2" = conftest.file || test $am_try -eq 2; then
2774       break
2775     fi
2776     # Just in case.
2777     sleep 1
2778     am_has_slept=yes
2779   done
2780   test "$2" = conftest.file
2781   )
2782then
2783   # Ok.
2784   :
2785else
2786   as_fn_error $? "newly created file is older than distributed files!
2787Check your system clock" "$LINENO" 5
2788fi
2789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790printf "%s\n" "yes" >&6; }
2791# If we didn't sleep, we still need to ensure time stamps of config.status and
2792# generated files are strictly newer.
2793am_sleep_pid=
2794if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2795  ( sleep 1 ) &
2796  am_sleep_pid=$!
2797fi
2798
2799rm -f conftest.file
2800
2801test "$program_prefix" != NONE &&
2802  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2803# Use a double $ so make ignores it.
2804test "$program_suffix" != NONE &&
2805  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2806# Double any \ or $.
2807# By default was `s,x,x', remove it if useless.
2808ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2809program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2810
2811
2812# Expand $ac_aux_dir to an absolute path.
2813am_aux_dir=`cd "$ac_aux_dir" && pwd`
2814
2815
2816  if test x"${MISSING+set}" != xset; then
2817  MISSING="\${SHELL} '$am_aux_dir/missing'"
2818fi
2819# Use eval to expand $SHELL
2820if eval "$MISSING --is-lightweight"; then
2821  am_missing_run="$MISSING "
2822else
2823  am_missing_run=
2824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2825printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2826fi
2827
2828if test x"${install_sh+set}" != xset; then
2829  case $am_aux_dir in
2830  *\ * | *\	*)
2831    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2832  *)
2833    install_sh="\${SHELL} $am_aux_dir/install-sh"
2834  esac
2835fi
2836
2837# Installed binaries are usually stripped using 'strip' when the user
2838# run "make install-strip".  However 'strip' might not be the right
2839# tool to use in cross-compilation environments, therefore Automake
2840# will honor the 'STRIP' environment variable to overrule this program.
2841if test "$cross_compiling" != no; then
2842  if test -n "$ac_tool_prefix"; then
2843  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2844set dummy ${ac_tool_prefix}strip; ac_word=$2
2845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846printf %s "checking for $ac_word... " >&6; }
2847if test ${ac_cv_prog_STRIP+y}
2848then :
2849  printf %s "(cached) " >&6
2850else $as_nop
2851  if test -n "$STRIP"; then
2852  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2853else
2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857  IFS=$as_save_IFS
2858  case $as_dir in #(((
2859    '') as_dir=./ ;;
2860    */) ;;
2861    *) as_dir=$as_dir/ ;;
2862  esac
2863    for ac_exec_ext in '' $ac_executable_extensions; do
2864  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2865    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2866    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2867    break 2
2868  fi
2869done
2870  done
2871IFS=$as_save_IFS
2872
2873fi
2874fi
2875STRIP=$ac_cv_prog_STRIP
2876if test -n "$STRIP"; then
2877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2878printf "%s\n" "$STRIP" >&6; }
2879else
2880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881printf "%s\n" "no" >&6; }
2882fi
2883
2884
2885fi
2886if test -z "$ac_cv_prog_STRIP"; then
2887  ac_ct_STRIP=$STRIP
2888  # Extract the first word of "strip", so it can be a program name with args.
2889set dummy strip; ac_word=$2
2890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891printf %s "checking for $ac_word... " >&6; }
2892if test ${ac_cv_prog_ac_ct_STRIP+y}
2893then :
2894  printf %s "(cached) " >&6
2895else $as_nop
2896  if test -n "$ac_ct_STRIP"; then
2897  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  case $as_dir in #(((
2904    '') as_dir=./ ;;
2905    */) ;;
2906    *) as_dir=$as_dir/ ;;
2907  esac
2908    for ac_exec_ext in '' $ac_executable_extensions; do
2909  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2910    ac_cv_prog_ac_ct_STRIP="strip"
2911    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2912    break 2
2913  fi
2914done
2915  done
2916IFS=$as_save_IFS
2917
2918fi
2919fi
2920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2921if test -n "$ac_ct_STRIP"; then
2922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2923printf "%s\n" "$ac_ct_STRIP" >&6; }
2924else
2925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926printf "%s\n" "no" >&6; }
2927fi
2928
2929  if test "x$ac_ct_STRIP" = x; then
2930    STRIP=":"
2931  else
2932    case $cross_compiling:$ac_tool_warned in
2933yes:)
2934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936ac_tool_warned=yes ;;
2937esac
2938    STRIP=$ac_ct_STRIP
2939  fi
2940else
2941  STRIP="$ac_cv_prog_STRIP"
2942fi
2943
2944fi
2945INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2946
2947
2948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2949printf %s "checking for a race-free mkdir -p... " >&6; }
2950if test -z "$MKDIR_P"; then
2951  if test ${ac_cv_path_mkdir+y}
2952then :
2953  printf %s "(cached) " >&6
2954else $as_nop
2955  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2957do
2958  IFS=$as_save_IFS
2959  case $as_dir in #(((
2960    '') as_dir=./ ;;
2961    */) ;;
2962    *) as_dir=$as_dir/ ;;
2963  esac
2964    for ac_prog in mkdir gmkdir; do
2965	 for ac_exec_ext in '' $ac_executable_extensions; do
2966	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2967	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2968	     'mkdir ('*'coreutils) '* | \
2969	     'BusyBox '* | \
2970	     'mkdir (fileutils) '4.1*)
2971	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2972	       break 3;;
2973	   esac
2974	 done
2975       done
2976  done
2977IFS=$as_save_IFS
2978
2979fi
2980
2981  test -d ./--version && rmdir ./--version
2982  if test ${ac_cv_path_mkdir+y}; then
2983    MKDIR_P="$ac_cv_path_mkdir -p"
2984  else
2985    # As a last resort, use the slow shell script.  Don't cache a
2986    # value for MKDIR_P within a source directory, because that will
2987    # break other packages using the cache if that directory is
2988    # removed, or if the value is a relative name.
2989    MKDIR_P="$ac_install_sh -d"
2990  fi
2991fi
2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2993printf "%s\n" "$MKDIR_P" >&6; }
2994
2995for ac_prog in gawk mawk nawk awk
2996do
2997  # Extract the first word of "$ac_prog", so it can be a program name with args.
2998set dummy $ac_prog; ac_word=$2
2999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000printf %s "checking for $ac_word... " >&6; }
3001if test ${ac_cv_prog_AWK+y}
3002then :
3003  printf %s "(cached) " >&6
3004else $as_nop
3005  if test -n "$AWK"; then
3006  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011  IFS=$as_save_IFS
3012  case $as_dir in #(((
3013    '') as_dir=./ ;;
3014    */) ;;
3015    *) as_dir=$as_dir/ ;;
3016  esac
3017    for ac_exec_ext in '' $ac_executable_extensions; do
3018  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_AWK="$ac_prog"
3020    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024  done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029AWK=$ac_cv_prog_AWK
3030if test -n "$AWK"; then
3031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3032printf "%s\n" "$AWK" >&6; }
3033else
3034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035printf "%s\n" "no" >&6; }
3036fi
3037
3038
3039  test -n "$AWK" && break
3040done
3041
3042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3043printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3044set x ${MAKE-make}
3045ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3046if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3047then :
3048  printf %s "(cached) " >&6
3049else $as_nop
3050  cat >conftest.make <<\_ACEOF
3051SHELL = /bin/sh
3052all:
3053	@echo '@@@%%%=$(MAKE)=@@@%%%'
3054_ACEOF
3055# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3056case `${MAKE-make} -f conftest.make 2>/dev/null` in
3057  *@@@%%%=?*=@@@%%%*)
3058    eval ac_cv_prog_make_${ac_make}_set=yes;;
3059  *)
3060    eval ac_cv_prog_make_${ac_make}_set=no;;
3061esac
3062rm -f conftest.make
3063fi
3064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066printf "%s\n" "yes" >&6; }
3067  SET_MAKE=
3068else
3069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070printf "%s\n" "no" >&6; }
3071  SET_MAKE="MAKE=${MAKE-make}"
3072fi
3073
3074rm -rf .tst 2>/dev/null
3075mkdir .tst 2>/dev/null
3076if test -d .tst; then
3077  am__leading_dot=.
3078else
3079  am__leading_dot=_
3080fi
3081rmdir .tst 2>/dev/null
3082
3083# Check whether --enable-silent-rules was given.
3084if test ${enable_silent_rules+y}
3085then :
3086  enableval=$enable_silent_rules;
3087fi
3088
3089case $enable_silent_rules in # (((
3090  yes) AM_DEFAULT_VERBOSITY=0;;
3091   no) AM_DEFAULT_VERBOSITY=1;;
3092    *) AM_DEFAULT_VERBOSITY=1;;
3093esac
3094am_make=${MAKE-make}
3095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3096printf %s "checking whether $am_make supports nested variables... " >&6; }
3097if test ${am_cv_make_support_nested_variables+y}
3098then :
3099  printf %s "(cached) " >&6
3100else $as_nop
3101  if printf "%s\n" 'TRUE=$(BAR$(V))
3102BAR0=false
3103BAR1=true
3104V=1
3105am__doit:
3106	@$(TRUE)
3107.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3108  am_cv_make_support_nested_variables=yes
3109else
3110  am_cv_make_support_nested_variables=no
3111fi
3112fi
3113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3114printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3115if test $am_cv_make_support_nested_variables = yes; then
3116    AM_V='$(V)'
3117  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3118else
3119  AM_V=$AM_DEFAULT_VERBOSITY
3120  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3121fi
3122AM_BACKSLASH='\'
3123
3124if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126  # is not polluted with repeated "-I."
3127  am__isrc=' -I$(srcdir)'
3128  # test to see if srcdir already configured
3129  if test -f $srcdir/config.status; then
3130    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131  fi
3132fi
3133
3134# test whether we have cygpath
3135if test -z "$CYGPATH_W"; then
3136  if (cygpath --version) >/dev/null 2>/dev/null; then
3137    CYGPATH_W='cygpath -w'
3138  else
3139    CYGPATH_W=echo
3140  fi
3141fi
3142
3143
3144# Define the identity of the package.
3145 PACKAGE='xf86-video-ast'
3146 VERSION='1.1.6'
3147
3148
3149printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3150
3151
3152printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3153
3154# Some tools Automake needs.
3155
3156ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3157
3158
3159AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3160
3161
3162AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3163
3164
3165AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3166
3167
3168MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3169
3170# For better backward compatibility.  To be removed once Automake 1.9.x
3171# dies out for good.  For more background, see:
3172# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3173# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3174mkdir_p='$(MKDIR_P)'
3175
3176# We need awk for the "check" target (and possibly the TAP driver).  The
3177# system "awk" is bad on some platforms.
3178# Always define AMTAR for backward compatibility.  Yes, it's still used
3179# in the wild :-(  We should find a proper way to deprecate it ...
3180AMTAR='$${TAR-tar}'
3181
3182
3183# We'll loop over all known methods to create a tar archive until one works.
3184_am_tools='gnutar  pax cpio none'
3185
3186am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3187
3188
3189
3190
3191
3192# Variables for tags utilities; see am/tags.am
3193if test -z "$CTAGS"; then
3194  CTAGS=ctags
3195fi
3196
3197if test -z "$ETAGS"; then
3198  ETAGS=etags
3199fi
3200
3201if test -z "$CSCOPE"; then
3202  CSCOPE=cscope
3203fi
3204
3205
3206
3207# POSIX will say in a future version that running "rm -f" with no argument
3208# is OK; and we want to be able to make that assumption in our Makefile
3209# recipes.  So use an aggressive probe to check that the usage we want is
3210# actually supported "in the wild" to an acceptable degree.
3211# See automake bug#10828.
3212# To make any issue more visible, cause the running configure to be aborted
3213# by default if the 'rm' program in use doesn't match our expectations; the
3214# user can still override this though.
3215if rm -f && rm -fr && rm -rf; then : OK; else
3216  cat >&2 <<'END'
3217Oops!
3218
3219Your 'rm' program seems unable to run without file operands specified
3220on the command line, even when the '-f' option is present.  This is contrary
3221to the behaviour of most rm programs out there, and not conforming with
3222the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3223
3224Please tell bug-automake@gnu.org about your system, including the value
3225of your $PATH and any error possibly output before this message.  This
3226can help us improve future automake versions.
3227
3228END
3229  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3230    echo 'Configuration will proceed anyway, since you have set the' >&2
3231    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3232    echo >&2
3233  else
3234    cat >&2 <<'END'
3235Aborting the configuration process, to ensure you take notice of the issue.
3236
3237You can download and install GNU coreutils to get an 'rm' implementation
3238that behaves properly: <https://www.gnu.org/software/coreutils/>.
3239
3240If you want to complete the configuration process using your problematic
3241'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3242to "yes", and re-run configure.
3243
3244END
3245    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3246  fi
3247fi
3248
3249
3250# Require xorg-macros: XORG_DEFAULT_OPTIONS
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271DEPDIR="${am__leading_dot}deps"
3272
3273ac_config_commands="$ac_config_commands depfiles"
3274
3275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3276printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3277cat > confinc.mk << 'END'
3278am__doit:
3279	@echo this is the am__doit target >confinc.out
3280.PHONY: am__doit
3281END
3282am__include="#"
3283am__quote=
3284# BSD make does it like this.
3285echo '.include "confinc.mk" # ignored' > confmf.BSD
3286# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3287echo 'include confinc.mk # ignored' > confmf.GNU
3288_am_result=no
3289for s in GNU BSD; do
3290  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3291   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }
3295  case $?:`cat confinc.out 2>/dev/null` in #(
3296  '0:this is the am__doit target') :
3297    case $s in #(
3298  BSD) :
3299    am__include='.include' am__quote='"' ;; #(
3300  *) :
3301    am__include='include' am__quote='' ;;
3302esac ;; #(
3303  *) :
3304     ;;
3305esac
3306  if test "$am__include" != "#"; then
3307    _am_result="yes ($s style)"
3308    break
3309  fi
3310done
3311rm -f confinc.* confmf.*
3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3313printf "%s\n" "${_am_result}" >&6; }
3314
3315# Check whether --enable-dependency-tracking was given.
3316if test ${enable_dependency_tracking+y}
3317then :
3318  enableval=$enable_dependency_tracking;
3319fi
3320
3321if test "x$enable_dependency_tracking" != xno; then
3322  am_depcomp="$ac_aux_dir/depcomp"
3323  AMDEPBACKSLASH='\'
3324  am__nodep='_no'
3325fi
3326 if test "x$enable_dependency_tracking" != xno; then
3327  AMDEP_TRUE=
3328  AMDEP_FALSE='#'
3329else
3330  AMDEP_TRUE='#'
3331  AMDEP_FALSE=
3332fi
3333
3334
3335ac_ext=c
3336ac_cpp='$CPP $CPPFLAGS'
3337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340if test -n "$ac_tool_prefix"; then
3341  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3342set dummy ${ac_tool_prefix}gcc; ac_word=$2
3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344printf %s "checking for $ac_word... " >&6; }
3345if test ${ac_cv_prog_CC+y}
3346then :
3347  printf %s "(cached) " >&6
3348else $as_nop
3349  if test -n "$CC"; then
3350  ac_cv_prog_CC="$CC" # Let the user override the test.
3351else
3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH
3354do
3355  IFS=$as_save_IFS
3356  case $as_dir in #(((
3357    '') as_dir=./ ;;
3358    */) ;;
3359    *) as_dir=$as_dir/ ;;
3360  esac
3361    for ac_exec_ext in '' $ac_executable_extensions; do
3362  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3363    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3364    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3365    break 2
3366  fi
3367done
3368  done
3369IFS=$as_save_IFS
3370
3371fi
3372fi
3373CC=$ac_cv_prog_CC
3374if test -n "$CC"; then
3375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376printf "%s\n" "$CC" >&6; }
3377else
3378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379printf "%s\n" "no" >&6; }
3380fi
3381
3382
3383fi
3384if test -z "$ac_cv_prog_CC"; then
3385  ac_ct_CC=$CC
3386  # Extract the first word of "gcc", so it can be a program name with args.
3387set dummy gcc; ac_word=$2
3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389printf %s "checking for $ac_word... " >&6; }
3390if test ${ac_cv_prog_ac_ct_CC+y}
3391then :
3392  printf %s "(cached) " >&6
3393else $as_nop
3394  if test -n "$ac_ct_CC"; then
3395  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400  IFS=$as_save_IFS
3401  case $as_dir in #(((
3402    '') as_dir=./ ;;
3403    */) ;;
3404    *) as_dir=$as_dir/ ;;
3405  esac
3406    for ac_exec_ext in '' $ac_executable_extensions; do
3407  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3408    ac_cv_prog_ac_ct_CC="gcc"
3409    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3410    break 2
3411  fi
3412done
3413  done
3414IFS=$as_save_IFS
3415
3416fi
3417fi
3418ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419if test -n "$ac_ct_CC"; then
3420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3421printf "%s\n" "$ac_ct_CC" >&6; }
3422else
3423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424printf "%s\n" "no" >&6; }
3425fi
3426
3427  if test "x$ac_ct_CC" = x; then
3428    CC=""
3429  else
3430    case $cross_compiling:$ac_tool_warned in
3431yes:)
3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3433printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3434ac_tool_warned=yes ;;
3435esac
3436    CC=$ac_ct_CC
3437  fi
3438else
3439  CC="$ac_cv_prog_CC"
3440fi
3441
3442if test -z "$CC"; then
3443          if test -n "$ac_tool_prefix"; then
3444    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3445set dummy ${ac_tool_prefix}cc; ac_word=$2
3446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447printf %s "checking for $ac_word... " >&6; }
3448if test ${ac_cv_prog_CC+y}
3449then :
3450  printf %s "(cached) " >&6
3451else $as_nop
3452  if test -n "$CC"; then
3453  ac_cv_prog_CC="$CC" # Let the user override the test.
3454else
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458  IFS=$as_save_IFS
3459  case $as_dir in #(((
3460    '') as_dir=./ ;;
3461    */) ;;
3462    *) as_dir=$as_dir/ ;;
3463  esac
3464    for ac_exec_ext in '' $ac_executable_extensions; do
3465  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3466    ac_cv_prog_CC="${ac_tool_prefix}cc"
3467    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3468    break 2
3469  fi
3470done
3471  done
3472IFS=$as_save_IFS
3473
3474fi
3475fi
3476CC=$ac_cv_prog_CC
3477if test -n "$CC"; then
3478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479printf "%s\n" "$CC" >&6; }
3480else
3481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482printf "%s\n" "no" >&6; }
3483fi
3484
3485
3486  fi
3487fi
3488if test -z "$CC"; then
3489  # Extract the first word of "cc", so it can be a program name with args.
3490set dummy cc; ac_word=$2
3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492printf %s "checking for $ac_word... " >&6; }
3493if test ${ac_cv_prog_CC+y}
3494then :
3495  printf %s "(cached) " >&6
3496else $as_nop
3497  if test -n "$CC"; then
3498  ac_cv_prog_CC="$CC" # Let the user override the test.
3499else
3500  ac_prog_rejected=no
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504  IFS=$as_save_IFS
3505  case $as_dir in #(((
3506    '') as_dir=./ ;;
3507    */) ;;
3508    *) as_dir=$as_dir/ ;;
3509  esac
3510    for ac_exec_ext in '' $ac_executable_extensions; do
3511  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3512    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3513       ac_prog_rejected=yes
3514       continue
3515     fi
3516    ac_cv_prog_CC="cc"
3517    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518    break 2
3519  fi
3520done
3521  done
3522IFS=$as_save_IFS
3523
3524if test $ac_prog_rejected = yes; then
3525  # We found a bogon in the path, so make sure we never use it.
3526  set dummy $ac_cv_prog_CC
3527  shift
3528  if test $# != 0; then
3529    # We chose a different compiler from the bogus one.
3530    # However, it has the same basename, so the bogon will be chosen
3531    # first if we set CC to just the basename; use the full file name.
3532    shift
3533    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3534  fi
3535fi
3536fi
3537fi
3538CC=$ac_cv_prog_CC
3539if test -n "$CC"; then
3540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541printf "%s\n" "$CC" >&6; }
3542else
3543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544printf "%s\n" "no" >&6; }
3545fi
3546
3547
3548fi
3549if test -z "$CC"; then
3550  if test -n "$ac_tool_prefix"; then
3551  for ac_prog in cl.exe
3552  do
3553    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556printf %s "checking for $ac_word... " >&6; }
3557if test ${ac_cv_prog_CC+y}
3558then :
3559  printf %s "(cached) " >&6
3560else $as_nop
3561  if test -n "$CC"; then
3562  ac_cv_prog_CC="$CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567  IFS=$as_save_IFS
3568  case $as_dir in #(((
3569    '') as_dir=./ ;;
3570    */) ;;
3571    *) as_dir=$as_dir/ ;;
3572  esac
3573    for ac_exec_ext in '' $ac_executable_extensions; do
3574  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3575    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3577    break 2
3578  fi
3579done
3580  done
3581IFS=$as_save_IFS
3582
3583fi
3584fi
3585CC=$ac_cv_prog_CC
3586if test -n "$CC"; then
3587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588printf "%s\n" "$CC" >&6; }
3589else
3590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591printf "%s\n" "no" >&6; }
3592fi
3593
3594
3595    test -n "$CC" && break
3596  done
3597fi
3598if test -z "$CC"; then
3599  ac_ct_CC=$CC
3600  for ac_prog in cl.exe
3601do
3602  # Extract the first word of "$ac_prog", so it can be a program name with args.
3603set dummy $ac_prog; ac_word=$2
3604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605printf %s "checking for $ac_word... " >&6; }
3606if test ${ac_cv_prog_ac_ct_CC+y}
3607then :
3608  printf %s "(cached) " >&6
3609else $as_nop
3610  if test -n "$ac_ct_CC"; then
3611  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3612else
3613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614for as_dir in $PATH
3615do
3616  IFS=$as_save_IFS
3617  case $as_dir in #(((
3618    '') as_dir=./ ;;
3619    */) ;;
3620    *) as_dir=$as_dir/ ;;
3621  esac
3622    for ac_exec_ext in '' $ac_executable_extensions; do
3623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3624    ac_cv_prog_ac_ct_CC="$ac_prog"
3625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3626    break 2
3627  fi
3628done
3629  done
3630IFS=$as_save_IFS
3631
3632fi
3633fi
3634ac_ct_CC=$ac_cv_prog_ac_ct_CC
3635if test -n "$ac_ct_CC"; then
3636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3637printf "%s\n" "$ac_ct_CC" >&6; }
3638else
3639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640printf "%s\n" "no" >&6; }
3641fi
3642
3643
3644  test -n "$ac_ct_CC" && break
3645done
3646
3647  if test "x$ac_ct_CC" = x; then
3648    CC=""
3649  else
3650    case $cross_compiling:$ac_tool_warned in
3651yes:)
3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3653printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3654ac_tool_warned=yes ;;
3655esac
3656    CC=$ac_ct_CC
3657  fi
3658fi
3659
3660fi
3661if test -z "$CC"; then
3662  if test -n "$ac_tool_prefix"; then
3663  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3664set dummy ${ac_tool_prefix}clang; ac_word=$2
3665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666printf %s "checking for $ac_word... " >&6; }
3667if test ${ac_cv_prog_CC+y}
3668then :
3669  printf %s "(cached) " >&6
3670else $as_nop
3671  if test -n "$CC"; then
3672  ac_cv_prog_CC="$CC" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677  IFS=$as_save_IFS
3678  case $as_dir in #(((
3679    '') as_dir=./ ;;
3680    */) ;;
3681    *) as_dir=$as_dir/ ;;
3682  esac
3683    for ac_exec_ext in '' $ac_executable_extensions; do
3684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3685    ac_cv_prog_CC="${ac_tool_prefix}clang"
3686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3687    break 2
3688  fi
3689done
3690  done
3691IFS=$as_save_IFS
3692
3693fi
3694fi
3695CC=$ac_cv_prog_CC
3696if test -n "$CC"; then
3697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698printf "%s\n" "$CC" >&6; }
3699else
3700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701printf "%s\n" "no" >&6; }
3702fi
3703
3704
3705fi
3706if test -z "$ac_cv_prog_CC"; then
3707  ac_ct_CC=$CC
3708  # Extract the first word of "clang", so it can be a program name with args.
3709set dummy clang; ac_word=$2
3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711printf %s "checking for $ac_word... " >&6; }
3712if test ${ac_cv_prog_ac_ct_CC+y}
3713then :
3714  printf %s "(cached) " >&6
3715else $as_nop
3716  if test -n "$ac_ct_CC"; then
3717  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3718else
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722  IFS=$as_save_IFS
3723  case $as_dir in #(((
3724    '') as_dir=./ ;;
3725    */) ;;
3726    *) as_dir=$as_dir/ ;;
3727  esac
3728    for ac_exec_ext in '' $ac_executable_extensions; do
3729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3730    ac_cv_prog_ac_ct_CC="clang"
3731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3732    break 2
3733  fi
3734done
3735  done
3736IFS=$as_save_IFS
3737
3738fi
3739fi
3740ac_ct_CC=$ac_cv_prog_ac_ct_CC
3741if test -n "$ac_ct_CC"; then
3742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3743printf "%s\n" "$ac_ct_CC" >&6; }
3744else
3745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746printf "%s\n" "no" >&6; }
3747fi
3748
3749  if test "x$ac_ct_CC" = x; then
3750    CC=""
3751  else
3752    case $cross_compiling:$ac_tool_warned in
3753yes:)
3754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3755printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3756ac_tool_warned=yes ;;
3757esac
3758    CC=$ac_ct_CC
3759  fi
3760else
3761  CC="$ac_cv_prog_CC"
3762fi
3763
3764fi
3765
3766
3767test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3769as_fn_error $? "no acceptable C compiler found in \$PATH
3770See \`config.log' for more details" "$LINENO" 5; }
3771
3772# Provide some information about the compiler.
3773printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3774set X $ac_compile
3775ac_compiler=$2
3776for ac_option in --version -v -V -qversion -version; do
3777  { { ac_try="$ac_compiler $ac_option >&5"
3778case "(($ac_try" in
3779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780  *) ac_try_echo=$ac_try;;
3781esac
3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783printf "%s\n" "$ac_try_echo"; } >&5
3784  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3785  ac_status=$?
3786  if test -s conftest.err; then
3787    sed '10a\
3788... rest of stderr output deleted ...
3789         10q' conftest.err >conftest.er1
3790    cat conftest.er1 >&5
3791  fi
3792  rm -f conftest.er1 conftest.err
3793  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794  test $ac_status = 0; }
3795done
3796
3797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799
3800int
3801main (void)
3802{
3803
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808ac_clean_files_save=$ac_clean_files
3809ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3810# Try to create an executable without -o first, disregard a.out.
3811# It will help us diagnose broken compilers, and finding out an intuition
3812# of exeext.
3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3814printf %s "checking whether the C compiler works... " >&6; }
3815ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3816
3817# The possible output files:
3818ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3819
3820ac_rmfiles=
3821for ac_file in $ac_files
3822do
3823  case $ac_file in
3824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3825    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3826  esac
3827done
3828rm -f $ac_rmfiles
3829
3830if { { ac_try="$ac_link_default"
3831case "(($ac_try" in
3832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833  *) ac_try_echo=$ac_try;;
3834esac
3835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836printf "%s\n" "$ac_try_echo"; } >&5
3837  (eval "$ac_link_default") 2>&5
3838  ac_status=$?
3839  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840  test $ac_status = 0; }
3841then :
3842  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3843# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3844# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3845# so that the user can short-circuit this test for compilers unknown to
3846# Autoconf.
3847for ac_file in $ac_files ''
3848do
3849  test -f "$ac_file" || continue
3850  case $ac_file in
3851    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3852	;;
3853    [ab].out )
3854	# We found the default executable, but exeext='' is most
3855	# certainly right.
3856	break;;
3857    *.* )
3858	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3859	then :; else
3860	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3861	fi
3862	# We set ac_cv_exeext here because the later test for it is not
3863	# safe: cross compilers may not add the suffix if given an `-o'
3864	# argument, so we may need to know it at that point already.
3865	# Even if this section looks crufty: it has the advantage of
3866	# actually working.
3867	break;;
3868    * )
3869	break;;
3870  esac
3871done
3872test "$ac_cv_exeext" = no && ac_cv_exeext=
3873
3874else $as_nop
3875  ac_file=''
3876fi
3877if test -z "$ac_file"
3878then :
3879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880printf "%s\n" "no" >&6; }
3881printf "%s\n" "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3886as_fn_error 77 "C compiler cannot create executables
3887See \`config.log' for more details" "$LINENO" 5; }
3888else $as_nop
3889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3890printf "%s\n" "yes" >&6; }
3891fi
3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3893printf %s "checking for C compiler default output file name... " >&6; }
3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3895printf "%s\n" "$ac_file" >&6; }
3896ac_exeext=$ac_cv_exeext
3897
3898rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3899ac_clean_files=$ac_clean_files_save
3900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3901printf %s "checking for suffix of executables... " >&6; }
3902if { { ac_try="$ac_link"
3903case "(($ac_try" in
3904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905  *) ac_try_echo=$ac_try;;
3906esac
3907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908printf "%s\n" "$ac_try_echo"; } >&5
3909  (eval "$ac_link") 2>&5
3910  ac_status=$?
3911  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912  test $ac_status = 0; }
3913then :
3914  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3915# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3916# work properly (i.e., refer to `conftest.exe'), while it won't with
3917# `rm'.
3918for ac_file in conftest.exe conftest conftest.*; do
3919  test -f "$ac_file" || continue
3920  case $ac_file in
3921    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3922    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3923	  break;;
3924    * ) break;;
3925  esac
3926done
3927else $as_nop
3928  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3930as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3931See \`config.log' for more details" "$LINENO" 5; }
3932fi
3933rm -f conftest conftest$ac_cv_exeext
3934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3935printf "%s\n" "$ac_cv_exeext" >&6; }
3936
3937rm -f conftest.$ac_ext
3938EXEEXT=$ac_cv_exeext
3939ac_exeext=$EXEEXT
3940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941/* end confdefs.h.  */
3942#include <stdio.h>
3943int
3944main (void)
3945{
3946FILE *f = fopen ("conftest.out", "w");
3947 return ferror (f) || fclose (f) != 0;
3948
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953ac_clean_files="$ac_clean_files conftest.out"
3954# Check that the compiler produces executables we can run.  If not, either
3955# the compiler is broken, or we cross compile.
3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3957printf %s "checking whether we are cross compiling... " >&6; }
3958if test "$cross_compiling" != yes; then
3959  { { ac_try="$ac_link"
3960case "(($ac_try" in
3961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962  *) ac_try_echo=$ac_try;;
3963esac
3964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965printf "%s\n" "$ac_try_echo"; } >&5
3966  (eval "$ac_link") 2>&5
3967  ac_status=$?
3968  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969  test $ac_status = 0; }
3970  if { ac_try='./conftest$ac_cv_exeext'
3971  { { case "(($ac_try" in
3972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973  *) ac_try_echo=$ac_try;;
3974esac
3975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976printf "%s\n" "$ac_try_echo"; } >&5
3977  (eval "$ac_try") 2>&5
3978  ac_status=$?
3979  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980  test $ac_status = 0; }; }; then
3981    cross_compiling=no
3982  else
3983    if test "$cross_compiling" = maybe; then
3984	cross_compiling=yes
3985    else
3986	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3988as_fn_error 77 "cannot run C compiled programs.
3989If you meant to cross compile, use \`--host'.
3990See \`config.log' for more details" "$LINENO" 5; }
3991    fi
3992  fi
3993fi
3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3995printf "%s\n" "$cross_compiling" >&6; }
3996
3997rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3998ac_clean_files=$ac_clean_files_save
3999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000printf %s "checking for suffix of object files... " >&6; }
4001if test ${ac_cv_objext+y}
4002then :
4003  printf %s "(cached) " >&6
4004else $as_nop
4005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h.  */
4007
4008int
4009main (void)
4010{
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016rm -f conftest.o conftest.obj
4017if { { ac_try="$ac_compile"
4018case "(($ac_try" in
4019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020  *) ac_try_echo=$ac_try;;
4021esac
4022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023printf "%s\n" "$ac_try_echo"; } >&5
4024  (eval "$ac_compile") 2>&5
4025  ac_status=$?
4026  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027  test $ac_status = 0; }
4028then :
4029  for ac_file in conftest.o conftest.obj conftest.*; do
4030  test -f "$ac_file" || continue;
4031  case $ac_file in
4032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4033    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4034       break;;
4035  esac
4036done
4037else $as_nop
4038  printf "%s\n" "$as_me: failed program was:" >&5
4039sed 's/^/| /' conftest.$ac_ext >&5
4040
4041{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4043as_fn_error $? "cannot compute suffix of object files: cannot compile
4044See \`config.log' for more details" "$LINENO" 5; }
4045fi
4046rm -f conftest.$ac_cv_objext conftest.$ac_ext
4047fi
4048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4049printf "%s\n" "$ac_cv_objext" >&6; }
4050OBJEXT=$ac_cv_objext
4051ac_objext=$OBJEXT
4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4053printf %s "checking whether the compiler supports GNU C... " >&6; }
4054if test ${ac_cv_c_compiler_gnu+y}
4055then :
4056  printf %s "(cached) " >&6
4057else $as_nop
4058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059/* end confdefs.h.  */
4060
4061int
4062main (void)
4063{
4064#ifndef __GNUC__
4065       choke me
4066#endif
4067
4068  ;
4069  return 0;
4070}
4071_ACEOF
4072if ac_fn_c_try_compile "$LINENO"
4073then :
4074  ac_compiler_gnu=yes
4075else $as_nop
4076  ac_compiler_gnu=no
4077fi
4078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4079ac_cv_c_compiler_gnu=$ac_compiler_gnu
4080
4081fi
4082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4083printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086if test $ac_compiler_gnu = yes; then
4087  GCC=yes
4088else
4089  GCC=
4090fi
4091ac_test_CFLAGS=${CFLAGS+y}
4092ac_save_CFLAGS=$CFLAGS
4093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4094printf %s "checking whether $CC accepts -g... " >&6; }
4095if test ${ac_cv_prog_cc_g+y}
4096then :
4097  printf %s "(cached) " >&6
4098else $as_nop
4099  ac_save_c_werror_flag=$ac_c_werror_flag
4100   ac_c_werror_flag=yes
4101   ac_cv_prog_cc_g=no
4102   CFLAGS="-g"
4103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h.  */
4105
4106int
4107main (void)
4108{
4109
4110  ;
4111  return 0;
4112}
4113_ACEOF
4114if ac_fn_c_try_compile "$LINENO"
4115then :
4116  ac_cv_prog_cc_g=yes
4117else $as_nop
4118  CFLAGS=""
4119      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120/* end confdefs.h.  */
4121
4122int
4123main (void)
4124{
4125
4126  ;
4127  return 0;
4128}
4129_ACEOF
4130if ac_fn_c_try_compile "$LINENO"
4131then :
4132
4133else $as_nop
4134  ac_c_werror_flag=$ac_save_c_werror_flag
4135	 CFLAGS="-g"
4136	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h.  */
4138
4139int
4140main (void)
4141{
4142
4143  ;
4144  return 0;
4145}
4146_ACEOF
4147if ac_fn_c_try_compile "$LINENO"
4148then :
4149  ac_cv_prog_cc_g=yes
4150fi
4151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4152fi
4153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4154fi
4155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4156   ac_c_werror_flag=$ac_save_c_werror_flag
4157fi
4158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4159printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4160if test $ac_test_CFLAGS; then
4161  CFLAGS=$ac_save_CFLAGS
4162elif test $ac_cv_prog_cc_g = yes; then
4163  if test "$GCC" = yes; then
4164    CFLAGS="-g -O2"
4165  else
4166    CFLAGS="-g"
4167  fi
4168else
4169  if test "$GCC" = yes; then
4170    CFLAGS="-O2"
4171  else
4172    CFLAGS=
4173  fi
4174fi
4175ac_prog_cc_stdc=no
4176if test x$ac_prog_cc_stdc = xno
4177then :
4178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4179printf %s "checking for $CC option to enable C11 features... " >&6; }
4180if test ${ac_cv_prog_cc_c11+y}
4181then :
4182  printf %s "(cached) " >&6
4183else $as_nop
4184  ac_cv_prog_cc_c11=no
4185ac_save_CC=$CC
4186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188$ac_c_conftest_c11_program
4189_ACEOF
4190for ac_arg in '' -std=gnu11
4191do
4192  CC="$ac_save_CC $ac_arg"
4193  if ac_fn_c_try_compile "$LINENO"
4194then :
4195  ac_cv_prog_cc_c11=$ac_arg
4196fi
4197rm -f core conftest.err conftest.$ac_objext conftest.beam
4198  test "x$ac_cv_prog_cc_c11" != "xno" && break
4199done
4200rm -f conftest.$ac_ext
4201CC=$ac_save_CC
4202fi
4203
4204if test "x$ac_cv_prog_cc_c11" = xno
4205then :
4206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207printf "%s\n" "unsupported" >&6; }
4208else $as_nop
4209  if test "x$ac_cv_prog_cc_c11" = x
4210then :
4211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4212printf "%s\n" "none needed" >&6; }
4213else $as_nop
4214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4215printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4216     CC="$CC $ac_cv_prog_cc_c11"
4217fi
4218  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4219  ac_prog_cc_stdc=c11
4220fi
4221fi
4222if test x$ac_prog_cc_stdc = xno
4223then :
4224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4225printf %s "checking for $CC option to enable C99 features... " >&6; }
4226if test ${ac_cv_prog_cc_c99+y}
4227then :
4228  printf %s "(cached) " >&6
4229else $as_nop
4230  ac_cv_prog_cc_c99=no
4231ac_save_CC=$CC
4232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234$ac_c_conftest_c99_program
4235_ACEOF
4236for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4237do
4238  CC="$ac_save_CC $ac_arg"
4239  if ac_fn_c_try_compile "$LINENO"
4240then :
4241  ac_cv_prog_cc_c99=$ac_arg
4242fi
4243rm -f core conftest.err conftest.$ac_objext conftest.beam
4244  test "x$ac_cv_prog_cc_c99" != "xno" && break
4245done
4246rm -f conftest.$ac_ext
4247CC=$ac_save_CC
4248fi
4249
4250if test "x$ac_cv_prog_cc_c99" = xno
4251then :
4252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4253printf "%s\n" "unsupported" >&6; }
4254else $as_nop
4255  if test "x$ac_cv_prog_cc_c99" = x
4256then :
4257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258printf "%s\n" "none needed" >&6; }
4259else $as_nop
4260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4261printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4262     CC="$CC $ac_cv_prog_cc_c99"
4263fi
4264  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4265  ac_prog_cc_stdc=c99
4266fi
4267fi
4268if test x$ac_prog_cc_stdc = xno
4269then :
4270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4271printf %s "checking for $CC option to enable C89 features... " >&6; }
4272if test ${ac_cv_prog_cc_c89+y}
4273then :
4274  printf %s "(cached) " >&6
4275else $as_nop
4276  ac_cv_prog_cc_c89=no
4277ac_save_CC=$CC
4278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h.  */
4280$ac_c_conftest_c89_program
4281_ACEOF
4282for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283do
4284  CC="$ac_save_CC $ac_arg"
4285  if ac_fn_c_try_compile "$LINENO"
4286then :
4287  ac_cv_prog_cc_c89=$ac_arg
4288fi
4289rm -f core conftest.err conftest.$ac_objext conftest.beam
4290  test "x$ac_cv_prog_cc_c89" != "xno" && break
4291done
4292rm -f conftest.$ac_ext
4293CC=$ac_save_CC
4294fi
4295
4296if test "x$ac_cv_prog_cc_c89" = xno
4297then :
4298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4299printf "%s\n" "unsupported" >&6; }
4300else $as_nop
4301  if test "x$ac_cv_prog_cc_c89" = x
4302then :
4303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304printf "%s\n" "none needed" >&6; }
4305else $as_nop
4306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4308     CC="$CC $ac_cv_prog_cc_c89"
4309fi
4310  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4311  ac_prog_cc_stdc=c89
4312fi
4313fi
4314
4315ac_ext=c
4316ac_cpp='$CPP $CPPFLAGS'
4317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321
4322  ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4328printf %s "checking whether $CC understands -c and -o together... " >&6; }
4329if test ${am_cv_prog_cc_c_o+y}
4330then :
4331  printf %s "(cached) " >&6
4332else $as_nop
4333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335
4336int
4337main (void)
4338{
4339
4340  ;
4341  return 0;
4342}
4343_ACEOF
4344  # Make sure it works both with $CC and with simple cc.
4345  # Following AC_PROG_CC_C_O, we do the test twice because some
4346  # compilers refuse to overwrite an existing .o file with -o,
4347  # though they will create one.
4348  am_cv_prog_cc_c_o=yes
4349  for am_i in 1 2; do
4350    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4351   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4352   ac_status=$?
4353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } \
4355         && test -f conftest2.$ac_objext; then
4356      : OK
4357    else
4358      am_cv_prog_cc_c_o=no
4359      break
4360    fi
4361  done
4362  rm -f core conftest*
4363  unset am_i
4364fi
4365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4366printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4367if test "$am_cv_prog_cc_c_o" != yes; then
4368   # Losing compiler, so override with the script.
4369   # FIXME: It is wrong to rewrite CC.
4370   # But if we don't then we get into trouble of one sort or another.
4371   # A longer-term fix would be to have automake use am__CC in this case,
4372   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4373   CC="$am_aux_dir/compile $CC"
4374fi
4375ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381
4382depcc="$CC"   am_compiler_list=
4383
4384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4385printf %s "checking dependency style of $depcc... " >&6; }
4386if test ${am_cv_CC_dependencies_compiler_type+y}
4387then :
4388  printf %s "(cached) " >&6
4389else $as_nop
4390  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391  # We make a subdir and do the tests there.  Otherwise we can end up
4392  # making bogus files that we don't know about and never remove.  For
4393  # instance it was reported that on HP-UX the gcc test will end up
4394  # making a dummy file named 'D' -- because '-MD' means "put the output
4395  # in D".
4396  rm -rf conftest.dir
4397  mkdir conftest.dir
4398  # Copy depcomp to subdir because otherwise we won't find it if we're
4399  # using a relative directory.
4400  cp "$am_depcomp" conftest.dir
4401  cd conftest.dir
4402  # We will build objects and dependencies in a subdirectory because
4403  # it helps to detect inapplicable dependency modes.  For instance
4404  # both Tru64's cc and ICC support -MD to output dependencies as a
4405  # side effect of compilation, but ICC will put the dependencies in
4406  # the current directory while Tru64 will put them in the object
4407  # directory.
4408  mkdir sub
4409
4410  am_cv_CC_dependencies_compiler_type=none
4411  if test "$am_compiler_list" = ""; then
4412     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4413  fi
4414  am__universal=false
4415  case " $depcc " in #(
4416     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4417     esac
4418
4419  for depmode in $am_compiler_list; do
4420    # Setup a source with many dependencies, because some compilers
4421    # like to wrap large dependency lists on column 80 (with \), and
4422    # we should not choose a depcomp mode which is confused by this.
4423    #
4424    # We need to recreate these files for each test, as the compiler may
4425    # overwrite some of them when testing with obscure command lines.
4426    # This happens at least with the AIX C compiler.
4427    : > sub/conftest.c
4428    for i in 1 2 3 4 5 6; do
4429      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4430      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4431      # Solaris 10 /bin/sh.
4432      echo '/* dummy */' > sub/conftst$i.h
4433    done
4434    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4435
4436    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4437    # mode.  It turns out that the SunPro C++ compiler does not properly
4438    # handle '-M -o', and we need to detect this.  Also, some Intel
4439    # versions had trouble with output in subdirs.
4440    am__obj=sub/conftest.${OBJEXT-o}
4441    am__minus_obj="-o $am__obj"
4442    case $depmode in
4443    gcc)
4444      # This depmode causes a compiler race in universal mode.
4445      test "$am__universal" = false || continue
4446      ;;
4447    nosideeffect)
4448      # After this tag, mechanisms are not by side-effect, so they'll
4449      # only be used when explicitly requested.
4450      if test "x$enable_dependency_tracking" = xyes; then
4451	continue
4452      else
4453	break
4454      fi
4455      ;;
4456    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4457      # This compiler won't grok '-c -o', but also, the minuso test has
4458      # not run yet.  These depmodes are late enough in the game, and
4459      # so weak that their functioning should not be impacted.
4460      am__obj=conftest.${OBJEXT-o}
4461      am__minus_obj=
4462      ;;
4463    none) break ;;
4464    esac
4465    if depmode=$depmode \
4466       source=sub/conftest.c object=$am__obj \
4467       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4468       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4469         >/dev/null 2>conftest.err &&
4470       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4471       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4472       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4473       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4474      # icc doesn't choke on unknown options, it will just issue warnings
4475      # or remarks (even with -Werror).  So we grep stderr for any message
4476      # that says an option was ignored or not supported.
4477      # When given -MP, icc 7.0 and 7.1 complain thusly:
4478      #   icc: Command line warning: ignoring option '-M'; no argument required
4479      # The diagnosis changed in icc 8.0:
4480      #   icc: Command line remark: option '-MP' not supported
4481      if (grep 'ignoring option' conftest.err ||
4482          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4483        am_cv_CC_dependencies_compiler_type=$depmode
4484        break
4485      fi
4486    fi
4487  done
4488
4489  cd ..
4490  rm -rf conftest.dir
4491else
4492  am_cv_CC_dependencies_compiler_type=none
4493fi
4494
4495fi
4496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4497printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4498CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4499
4500 if
4501  test "x$enable_dependency_tracking" != xno \
4502  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4503  am__fastdepCC_TRUE=
4504  am__fastdepCC_FALSE='#'
4505else
4506  am__fastdepCC_TRUE='#'
4507  am__fastdepCC_FALSE=
4508fi
4509
4510
4511
4512
4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4514printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4515if test ${ac_cv_c_undeclared_builtin_options+y}
4516then :
4517  printf %s "(cached) " >&6
4518else $as_nop
4519  ac_save_CFLAGS=$CFLAGS
4520   ac_cv_c_undeclared_builtin_options='cannot detect'
4521   for ac_arg in '' -fno-builtin; do
4522     CFLAGS="$ac_save_CFLAGS $ac_arg"
4523     # This test program should *not* compile successfully.
4524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h.  */
4526
4527int
4528main (void)
4529{
4530(void) strchr;
4531  ;
4532  return 0;
4533}
4534_ACEOF
4535if ac_fn_c_try_compile "$LINENO"
4536then :
4537
4538else $as_nop
4539  # This test program should compile successfully.
4540        # No library function is consistently available on
4541        # freestanding implementations, so test against a dummy
4542        # declaration.  Include always-available headers on the
4543        # off chance that they somehow elicit warnings.
4544        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546#include <float.h>
4547#include <limits.h>
4548#include <stdarg.h>
4549#include <stddef.h>
4550extern void ac_decl (int, char *);
4551
4552int
4553main (void)
4554{
4555(void) ac_decl (0, (char *) 0);
4556  (void) ac_decl;
4557
4558  ;
4559  return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_compile "$LINENO"
4563then :
4564  if test x"$ac_arg" = x
4565then :
4566  ac_cv_c_undeclared_builtin_options='none needed'
4567else $as_nop
4568  ac_cv_c_undeclared_builtin_options=$ac_arg
4569fi
4570          break
4571fi
4572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4573fi
4574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4575    done
4576    CFLAGS=$ac_save_CFLAGS
4577
4578fi
4579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4580printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4581  case $ac_cv_c_undeclared_builtin_options in #(
4582  'cannot detect') :
4583    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4585as_fn_error $? "cannot make $CC report undeclared builtins
4586See \`config.log' for more details" "$LINENO" 5; } ;; #(
4587  'none needed') :
4588    ac_c_undeclared_builtin_options='' ;; #(
4589  *) :
4590    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4591esac
4592
4593ac_header= ac_cache=
4594for ac_item in $ac_header_c_list
4595do
4596  if test $ac_cache; then
4597    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4598    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4599      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4600    fi
4601    ac_header= ac_cache=
4602  elif test $ac_header; then
4603    ac_cache=$ac_item
4604  else
4605    ac_header=$ac_item
4606  fi
4607done
4608
4609
4610
4611
4612
4613
4614
4615
4616if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4617then :
4618
4619printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4620
4621fi
4622
4623
4624
4625
4626ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4627if test "x$ac_cv_have_decl___clang__" = xyes
4628then :
4629  CLANGCC="yes"
4630else $as_nop
4631  CLANGCC="no"
4632fi
4633ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4634if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4635then :
4636  INTELCC="yes"
4637else $as_nop
4638  INTELCC="no"
4639fi
4640ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4641if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4642then :
4643  SUNCC="yes"
4644else $as_nop
4645  SUNCC="no"
4646fi
4647
4648
4649
4650
4651
4652
4653
4654
4655if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4656	if test -n "$ac_tool_prefix"; then
4657  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4658set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660printf %s "checking for $ac_word... " >&6; }
4661if test ${ac_cv_path_PKG_CONFIG+y}
4662then :
4663  printf %s "(cached) " >&6
4664else $as_nop
4665  case $PKG_CONFIG in
4666  [\\/]* | ?:[\\/]*)
4667  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4668  ;;
4669  *)
4670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673  IFS=$as_save_IFS
4674  case $as_dir in #(((
4675    '') as_dir=./ ;;
4676    */) ;;
4677    *) as_dir=$as_dir/ ;;
4678  esac
4679    for ac_exec_ext in '' $ac_executable_extensions; do
4680  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4681    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4682    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4683    break 2
4684  fi
4685done
4686  done
4687IFS=$as_save_IFS
4688
4689  ;;
4690esac
4691fi
4692PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4693if test -n "$PKG_CONFIG"; then
4694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4695printf "%s\n" "$PKG_CONFIG" >&6; }
4696else
4697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698printf "%s\n" "no" >&6; }
4699fi
4700
4701
4702fi
4703if test -z "$ac_cv_path_PKG_CONFIG"; then
4704  ac_pt_PKG_CONFIG=$PKG_CONFIG
4705  # Extract the first word of "pkg-config", so it can be a program name with args.
4706set dummy pkg-config; ac_word=$2
4707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708printf %s "checking for $ac_word... " >&6; }
4709if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4710then :
4711  printf %s "(cached) " >&6
4712else $as_nop
4713  case $ac_pt_PKG_CONFIG in
4714  [\\/]* | ?:[\\/]*)
4715  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4716  ;;
4717  *)
4718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721  IFS=$as_save_IFS
4722  case $as_dir in #(((
4723    '') as_dir=./ ;;
4724    */) ;;
4725    *) as_dir=$as_dir/ ;;
4726  esac
4727    for ac_exec_ext in '' $ac_executable_extensions; do
4728  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4729    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4730    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4731    break 2
4732  fi
4733done
4734  done
4735IFS=$as_save_IFS
4736
4737  ;;
4738esac
4739fi
4740ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4741if test -n "$ac_pt_PKG_CONFIG"; then
4742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4743printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4744else
4745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746printf "%s\n" "no" >&6; }
4747fi
4748
4749  if test "x$ac_pt_PKG_CONFIG" = x; then
4750    PKG_CONFIG=""
4751  else
4752    case $cross_compiling:$ac_tool_warned in
4753yes:)
4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756ac_tool_warned=yes ;;
4757esac
4758    PKG_CONFIG=$ac_pt_PKG_CONFIG
4759  fi
4760else
4761  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4762fi
4763
4764fi
4765if test -n "$PKG_CONFIG"; then
4766	_pkg_min_version=0.9.0
4767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4768printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4769	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4771printf "%s\n" "yes" >&6; }
4772	else
4773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774printf "%s\n" "no" >&6; }
4775		PKG_CONFIG=""
4776	fi
4777fi
4778
4779
4780  # Make sure we can run config.sub.
4781$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4782  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4783
4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4785printf %s "checking build system type... " >&6; }
4786if test ${ac_cv_build+y}
4787then :
4788  printf %s "(cached) " >&6
4789else $as_nop
4790  ac_build_alias=$build_alias
4791test "x$ac_build_alias" = x &&
4792  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4793test "x$ac_build_alias" = x &&
4794  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4795ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4796  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4797
4798fi
4799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4800printf "%s\n" "$ac_cv_build" >&6; }
4801case $ac_cv_build in
4802*-*-*) ;;
4803*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4804esac
4805build=$ac_cv_build
4806ac_save_IFS=$IFS; IFS='-'
4807set x $ac_cv_build
4808shift
4809build_cpu=$1
4810build_vendor=$2
4811shift; shift
4812# Remember, the first character of IFS is used to create $*,
4813# except with old shells:
4814build_os=$*
4815IFS=$ac_save_IFS
4816case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4817
4818
4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4820printf %s "checking host system type... " >&6; }
4821if test ${ac_cv_host+y}
4822then :
4823  printf %s "(cached) " >&6
4824else $as_nop
4825  if test "x$host_alias" = x; then
4826  ac_cv_host=$ac_cv_build
4827else
4828  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4829    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4830fi
4831
4832fi
4833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4834printf "%s\n" "$ac_cv_host" >&6; }
4835case $ac_cv_host in
4836*-*-*) ;;
4837*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4838esac
4839host=$ac_cv_host
4840ac_save_IFS=$IFS; IFS='-'
4841set x $ac_cv_host
4842shift
4843host_cpu=$1
4844host_vendor=$2
4845shift; shift
4846# Remember, the first character of IFS is used to create $*,
4847# except with old shells:
4848host_os=$*
4849IFS=$ac_save_IFS
4850case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4851
4852
4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4854printf %s "checking for a sed that does not truncate output... " >&6; }
4855if test ${ac_cv_path_SED+y}
4856then :
4857  printf %s "(cached) " >&6
4858else $as_nop
4859            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4860     for ac_i in 1 2 3 4 5 6 7; do
4861       ac_script="$ac_script$as_nl$ac_script"
4862     done
4863     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4864     { ac_script=; unset ac_script;}
4865     if test -z "$SED"; then
4866  ac_path_SED_found=false
4867  # Loop through the user's path and test for each of PROGNAME-LIST
4868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871  IFS=$as_save_IFS
4872  case $as_dir in #(((
4873    '') as_dir=./ ;;
4874    */) ;;
4875    *) as_dir=$as_dir/ ;;
4876  esac
4877    for ac_prog in sed gsed
4878   do
4879    for ac_exec_ext in '' $ac_executable_extensions; do
4880      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4881      as_fn_executable_p "$ac_path_SED" || continue
4882# Check for GNU ac_path_SED and select it if it is found.
4883  # Check for GNU $ac_path_SED
4884case `"$ac_path_SED" --version 2>&1` in
4885*GNU*)
4886  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4887*)
4888  ac_count=0
4889  printf %s 0123456789 >"conftest.in"
4890  while :
4891  do
4892    cat "conftest.in" "conftest.in" >"conftest.tmp"
4893    mv "conftest.tmp" "conftest.in"
4894    cp "conftest.in" "conftest.nl"
4895    printf "%s\n" '' >> "conftest.nl"
4896    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898    as_fn_arith $ac_count + 1 && ac_count=$as_val
4899    if test $ac_count -gt ${ac_path_SED_max-0}; then
4900      # Best one so far, save it but keep looking for a better one
4901      ac_cv_path_SED="$ac_path_SED"
4902      ac_path_SED_max=$ac_count
4903    fi
4904    # 10*(2^10) chars as input seems more than enough
4905    test $ac_count -gt 10 && break
4906  done
4907  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908esac
4909
4910      $ac_path_SED_found && break 3
4911    done
4912  done
4913  done
4914IFS=$as_save_IFS
4915  if test -z "$ac_cv_path_SED"; then
4916    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4917  fi
4918else
4919  ac_cv_path_SED=$SED
4920fi
4921
4922fi
4923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4924printf "%s\n" "$ac_cv_path_SED" >&6; }
4925 SED="$ac_cv_path_SED"
4926  rm -f conftest.sed
4927
4928
4929
4930
4931
4932
4933# Check whether --enable-selective-werror was given.
4934if test ${enable_selective_werror+y}
4935then :
4936  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4937else $as_nop
4938  SELECTIVE_WERROR=yes
4939fi
4940
4941
4942
4943
4944
4945# -v is too short to test reliably with XORG_TESTSET_CFLAG
4946if test "x$SUNCC" = "xyes"; then
4947    BASE_CFLAGS="-v"
4948else
4949    BASE_CFLAGS=""
4950fi
4951
4952# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966xorg_testset_save_CFLAGS="$CFLAGS"
4967
4968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4973then :
4974  printf %s "(cached) " >&6
4975else $as_nop
4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977/* end confdefs.h.  */
4978int i;
4979_ACEOF
4980if ac_fn_c_try_compile "$LINENO"
4981then :
4982  xorg_cv_cc_flag_unknown_warning_option=yes
4983else $as_nop
4984  xorg_cv_cc_flag_unknown_warning_option=no
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4987fi
4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4991	CFLAGS="$xorg_testset_save_CFLAGS"
4992fi
4993
4994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4997	fi
4998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5002then :
5003  printf %s "(cached) " >&6
5004else $as_nop
5005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006/* end confdefs.h.  */
5007int i;
5008_ACEOF
5009if ac_fn_c_try_compile "$LINENO"
5010then :
5011  xorg_cv_cc_flag_unused_command_line_argument=yes
5012else $as_nop
5013  xorg_cv_cc_flag_unused_command_line_argument=no
5014fi
5015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5016fi
5017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5020	CFLAGS="$xorg_testset_save_CFLAGS"
5021fi
5022
5023found="no"
5024
5025	if test $found = "no" ; then
5026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5028		fi
5029
5030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5032		fi
5033
5034		CFLAGS="$CFLAGS -Wall"
5035
5036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5037printf %s "checking if $CC supports -Wall... " >&6; }
5038		cacheid=xorg_cv_cc_flag__Wall
5039		if eval test \${$cacheid+y}
5040then :
5041  printf %s "(cached) " >&6
5042else $as_nop
5043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044/* end confdefs.h.  */
5045int i;
5046int
5047main (void)
5048{
5049
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054if ac_fn_c_try_link "$LINENO"
5055then :
5056  eval $cacheid=yes
5057else $as_nop
5058  eval $cacheid=no
5059fi
5060rm -f core conftest.err conftest.$ac_objext conftest.beam \
5061    conftest$ac_exeext conftest.$ac_ext
5062fi
5063
5064
5065		CFLAGS="$xorg_testset_save_CFLAGS"
5066
5067		eval supported=\$$cacheid
5068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5069printf "%s\n" "$supported" >&6; }
5070		if test "$supported" = "yes" ; then
5071			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5072			found="yes"
5073		fi
5074	fi
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090xorg_testset_save_CFLAGS="$CFLAGS"
5091
5092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5096if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5097then :
5098  printf %s "(cached) " >&6
5099else $as_nop
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102int i;
5103_ACEOF
5104if ac_fn_c_try_compile "$LINENO"
5105then :
5106  xorg_cv_cc_flag_unknown_warning_option=yes
5107else $as_nop
5108  xorg_cv_cc_flag_unknown_warning_option=no
5109fi
5110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5111fi
5112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5115	CFLAGS="$xorg_testset_save_CFLAGS"
5116fi
5117
5118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121	fi
5122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5125if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5126then :
5127  printf %s "(cached) " >&6
5128else $as_nop
5129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h.  */
5131int i;
5132_ACEOF
5133if ac_fn_c_try_compile "$LINENO"
5134then :
5135  xorg_cv_cc_flag_unused_command_line_argument=yes
5136else $as_nop
5137  xorg_cv_cc_flag_unused_command_line_argument=no
5138fi
5139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5140fi
5141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5144	CFLAGS="$xorg_testset_save_CFLAGS"
5145fi
5146
5147found="no"
5148
5149	if test $found = "no" ; then
5150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152		fi
5153
5154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5156		fi
5157
5158		CFLAGS="$CFLAGS -Wpointer-arith"
5159
5160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5161printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5162		cacheid=xorg_cv_cc_flag__Wpointer_arith
5163		if eval test \${$cacheid+y}
5164then :
5165  printf %s "(cached) " >&6
5166else $as_nop
5167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h.  */
5169int i;
5170int
5171main (void)
5172{
5173
5174  ;
5175  return 0;
5176}
5177_ACEOF
5178if ac_fn_c_try_link "$LINENO"
5179then :
5180  eval $cacheid=yes
5181else $as_nop
5182  eval $cacheid=no
5183fi
5184rm -f core conftest.err conftest.$ac_objext conftest.beam \
5185    conftest$ac_exeext conftest.$ac_ext
5186fi
5187
5188
5189		CFLAGS="$xorg_testset_save_CFLAGS"
5190
5191		eval supported=\$$cacheid
5192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5193printf "%s\n" "$supported" >&6; }
5194		if test "$supported" = "yes" ; then
5195			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5196			found="yes"
5197		fi
5198	fi
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214xorg_testset_save_CFLAGS="$CFLAGS"
5215
5216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5220if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5221then :
5222  printf %s "(cached) " >&6
5223else $as_nop
5224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225/* end confdefs.h.  */
5226int i;
5227_ACEOF
5228if ac_fn_c_try_compile "$LINENO"
5229then :
5230  xorg_cv_cc_flag_unknown_warning_option=yes
5231else $as_nop
5232  xorg_cv_cc_flag_unknown_warning_option=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5235fi
5236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5239	CFLAGS="$xorg_testset_save_CFLAGS"
5240fi
5241
5242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5245	fi
5246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5250then :
5251  printf %s "(cached) " >&6
5252else $as_nop
5253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255int i;
5256_ACEOF
5257if ac_fn_c_try_compile "$LINENO"
5258then :
5259  xorg_cv_cc_flag_unused_command_line_argument=yes
5260else $as_nop
5261  xorg_cv_cc_flag_unused_command_line_argument=no
5262fi
5263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5264fi
5265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5268	CFLAGS="$xorg_testset_save_CFLAGS"
5269fi
5270
5271found="no"
5272
5273	if test $found = "no" ; then
5274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5276		fi
5277
5278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5280		fi
5281
5282		CFLAGS="$CFLAGS -Wmissing-declarations"
5283
5284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5285printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5286		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5287		if eval test \${$cacheid+y}
5288then :
5289  printf %s "(cached) " >&6
5290else $as_nop
5291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h.  */
5293int i;
5294int
5295main (void)
5296{
5297
5298  ;
5299  return 0;
5300}
5301_ACEOF
5302if ac_fn_c_try_link "$LINENO"
5303then :
5304  eval $cacheid=yes
5305else $as_nop
5306  eval $cacheid=no
5307fi
5308rm -f core conftest.err conftest.$ac_objext conftest.beam \
5309    conftest$ac_exeext conftest.$ac_ext
5310fi
5311
5312
5313		CFLAGS="$xorg_testset_save_CFLAGS"
5314
5315		eval supported=\$$cacheid
5316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5317printf "%s\n" "$supported" >&6; }
5318		if test "$supported" = "yes" ; then
5319			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5320			found="yes"
5321		fi
5322	fi
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338xorg_testset_save_CFLAGS="$CFLAGS"
5339
5340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5341	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5344if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5345then :
5346  printf %s "(cached) " >&6
5347else $as_nop
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350int i;
5351_ACEOF
5352if ac_fn_c_try_compile "$LINENO"
5353then :
5354  xorg_cv_cc_flag_unknown_warning_option=yes
5355else $as_nop
5356  xorg_cv_cc_flag_unknown_warning_option=no
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5359fi
5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5363	CFLAGS="$xorg_testset_save_CFLAGS"
5364fi
5365
5366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369	fi
5370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5373if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5374then :
5375  printf %s "(cached) " >&6
5376else $as_nop
5377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379int i;
5380_ACEOF
5381if ac_fn_c_try_compile "$LINENO"
5382then :
5383  xorg_cv_cc_flag_unused_command_line_argument=yes
5384else $as_nop
5385  xorg_cv_cc_flag_unused_command_line_argument=no
5386fi
5387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5388fi
5389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5391	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5392	CFLAGS="$xorg_testset_save_CFLAGS"
5393fi
5394
5395found="no"
5396
5397	if test $found = "no" ; then
5398		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400		fi
5401
5402		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5404		fi
5405
5406		CFLAGS="$CFLAGS -Wformat=2"
5407
5408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5409printf %s "checking if $CC supports -Wformat=2... " >&6; }
5410		cacheid=xorg_cv_cc_flag__Wformat_2
5411		if eval test \${$cacheid+y}
5412then :
5413  printf %s "(cached) " >&6
5414else $as_nop
5415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h.  */
5417int i;
5418int
5419main (void)
5420{
5421
5422  ;
5423  return 0;
5424}
5425_ACEOF
5426if ac_fn_c_try_link "$LINENO"
5427then :
5428  eval $cacheid=yes
5429else $as_nop
5430  eval $cacheid=no
5431fi
5432rm -f core conftest.err conftest.$ac_objext conftest.beam \
5433    conftest$ac_exeext conftest.$ac_ext
5434fi
5435
5436
5437		CFLAGS="$xorg_testset_save_CFLAGS"
5438
5439		eval supported=\$$cacheid
5440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5441printf "%s\n" "$supported" >&6; }
5442		if test "$supported" = "yes" ; then
5443			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5444			found="yes"
5445		fi
5446	fi
5447
5448	if test $found = "no" ; then
5449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451		fi
5452
5453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5455		fi
5456
5457		CFLAGS="$CFLAGS -Wformat"
5458
5459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5460printf %s "checking if $CC supports -Wformat... " >&6; }
5461		cacheid=xorg_cv_cc_flag__Wformat
5462		if eval test \${$cacheid+y}
5463then :
5464  printf %s "(cached) " >&6
5465else $as_nop
5466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467/* end confdefs.h.  */
5468int i;
5469int
5470main (void)
5471{
5472
5473  ;
5474  return 0;
5475}
5476_ACEOF
5477if ac_fn_c_try_link "$LINENO"
5478then :
5479  eval $cacheid=yes
5480else $as_nop
5481  eval $cacheid=no
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.beam \
5484    conftest$ac_exeext conftest.$ac_ext
5485fi
5486
5487
5488		CFLAGS="$xorg_testset_save_CFLAGS"
5489
5490		eval supported=\$$cacheid
5491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5492printf "%s\n" "$supported" >&6; }
5493		if test "$supported" = "yes" ; then
5494			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5495			found="yes"
5496		fi
5497	fi
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515xorg_testset_save_CFLAGS="$CFLAGS"
5516
5517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5518	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5520printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5521if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5522then :
5523  printf %s "(cached) " >&6
5524else $as_nop
5525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527int i;
5528_ACEOF
5529if ac_fn_c_try_compile "$LINENO"
5530then :
5531  xorg_cv_cc_flag_unknown_warning_option=yes
5532else $as_nop
5533  xorg_cv_cc_flag_unknown_warning_option=no
5534fi
5535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5536fi
5537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5539	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5540	CFLAGS="$xorg_testset_save_CFLAGS"
5541fi
5542
5543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5544	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5545		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546	fi
5547	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5550if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5551then :
5552  printf %s "(cached) " >&6
5553else $as_nop
5554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h.  */
5556int i;
5557_ACEOF
5558if ac_fn_c_try_compile "$LINENO"
5559then :
5560  xorg_cv_cc_flag_unused_command_line_argument=yes
5561else $as_nop
5562  xorg_cv_cc_flag_unused_command_line_argument=no
5563fi
5564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5565fi
5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5567printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5568	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5569	CFLAGS="$xorg_testset_save_CFLAGS"
5570fi
5571
5572found="no"
5573
5574	if test $found = "no" ; then
5575		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5576			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5577		fi
5578
5579		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5580			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5581		fi
5582
5583		CFLAGS="$CFLAGS -Wstrict-prototypes"
5584
5585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5586printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5587		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5588		if eval test \${$cacheid+y}
5589then :
5590  printf %s "(cached) " >&6
5591else $as_nop
5592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h.  */
5594int i;
5595int
5596main (void)
5597{
5598
5599  ;
5600  return 0;
5601}
5602_ACEOF
5603if ac_fn_c_try_link "$LINENO"
5604then :
5605  eval $cacheid=yes
5606else $as_nop
5607  eval $cacheid=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext conftest.beam \
5610    conftest$ac_exeext conftest.$ac_ext
5611fi
5612
5613
5614		CFLAGS="$xorg_testset_save_CFLAGS"
5615
5616		eval supported=\$$cacheid
5617		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5618printf "%s\n" "$supported" >&6; }
5619		if test "$supported" = "yes" ; then
5620			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5621			found="yes"
5622		fi
5623	fi
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639xorg_testset_save_CFLAGS="$CFLAGS"
5640
5641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5642	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5644printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5645if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5646then :
5647  printf %s "(cached) " >&6
5648else $as_nop
5649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h.  */
5651int i;
5652_ACEOF
5653if ac_fn_c_try_compile "$LINENO"
5654then :
5655  xorg_cv_cc_flag_unknown_warning_option=yes
5656else $as_nop
5657  xorg_cv_cc_flag_unknown_warning_option=no
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5660fi
5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5662printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5664	CFLAGS="$xorg_testset_save_CFLAGS"
5665fi
5666
5667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670	fi
5671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5674if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5675then :
5676  printf %s "(cached) " >&6
5677else $as_nop
5678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679/* end confdefs.h.  */
5680int i;
5681_ACEOF
5682if ac_fn_c_try_compile "$LINENO"
5683then :
5684  xorg_cv_cc_flag_unused_command_line_argument=yes
5685else $as_nop
5686  xorg_cv_cc_flag_unused_command_line_argument=no
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5689fi
5690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5693	CFLAGS="$xorg_testset_save_CFLAGS"
5694fi
5695
5696found="no"
5697
5698	if test $found = "no" ; then
5699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5701		fi
5702
5703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5705		fi
5706
5707		CFLAGS="$CFLAGS -Wmissing-prototypes"
5708
5709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5710printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5711		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5712		if eval test \${$cacheid+y}
5713then :
5714  printf %s "(cached) " >&6
5715else $as_nop
5716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h.  */
5718int i;
5719int
5720main (void)
5721{
5722
5723  ;
5724  return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_link "$LINENO"
5728then :
5729  eval $cacheid=yes
5730else $as_nop
5731  eval $cacheid=no
5732fi
5733rm -f core conftest.err conftest.$ac_objext conftest.beam \
5734    conftest$ac_exeext conftest.$ac_ext
5735fi
5736
5737
5738		CFLAGS="$xorg_testset_save_CFLAGS"
5739
5740		eval supported=\$$cacheid
5741		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5742printf "%s\n" "$supported" >&6; }
5743		if test "$supported" = "yes" ; then
5744			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5745			found="yes"
5746		fi
5747	fi
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763xorg_testset_save_CFLAGS="$CFLAGS"
5764
5765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5766	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5768printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5769if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5770then :
5771  printf %s "(cached) " >&6
5772else $as_nop
5773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h.  */
5775int i;
5776_ACEOF
5777if ac_fn_c_try_compile "$LINENO"
5778then :
5779  xorg_cv_cc_flag_unknown_warning_option=yes
5780else $as_nop
5781  xorg_cv_cc_flag_unknown_warning_option=no
5782fi
5783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5784fi
5785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5786printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5788	CFLAGS="$xorg_testset_save_CFLAGS"
5789fi
5790
5791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5794	fi
5795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5796	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5797printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5798if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5799then :
5800  printf %s "(cached) " >&6
5801else $as_nop
5802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804int i;
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"
5807then :
5808  xorg_cv_cc_flag_unused_command_line_argument=yes
5809else $as_nop
5810  xorg_cv_cc_flag_unused_command_line_argument=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5813fi
5814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5817	CFLAGS="$xorg_testset_save_CFLAGS"
5818fi
5819
5820found="no"
5821
5822	if test $found = "no" ; then
5823		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825		fi
5826
5827		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5829		fi
5830
5831		CFLAGS="$CFLAGS -Wnested-externs"
5832
5833		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5834printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5835		cacheid=xorg_cv_cc_flag__Wnested_externs
5836		if eval test \${$cacheid+y}
5837then :
5838  printf %s "(cached) " >&6
5839else $as_nop
5840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h.  */
5842int i;
5843int
5844main (void)
5845{
5846
5847  ;
5848  return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_link "$LINENO"
5852then :
5853  eval $cacheid=yes
5854else $as_nop
5855  eval $cacheid=no
5856fi
5857rm -f core conftest.err conftest.$ac_objext conftest.beam \
5858    conftest$ac_exeext conftest.$ac_ext
5859fi
5860
5861
5862		CFLAGS="$xorg_testset_save_CFLAGS"
5863
5864		eval supported=\$$cacheid
5865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5866printf "%s\n" "$supported" >&6; }
5867		if test "$supported" = "yes" ; then
5868			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5869			found="yes"
5870		fi
5871	fi
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887xorg_testset_save_CFLAGS="$CFLAGS"
5888
5889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5893if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5894then :
5895  printf %s "(cached) " >&6
5896else $as_nop
5897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h.  */
5899int i;
5900_ACEOF
5901if ac_fn_c_try_compile "$LINENO"
5902then :
5903  xorg_cv_cc_flag_unknown_warning_option=yes
5904else $as_nop
5905  xorg_cv_cc_flag_unknown_warning_option=no
5906fi
5907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5908fi
5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5912	CFLAGS="$xorg_testset_save_CFLAGS"
5913fi
5914
5915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918	fi
5919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5922if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5923then :
5924  printf %s "(cached) " >&6
5925else $as_nop
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928int i;
5929_ACEOF
5930if ac_fn_c_try_compile "$LINENO"
5931then :
5932  xorg_cv_cc_flag_unused_command_line_argument=yes
5933else $as_nop
5934  xorg_cv_cc_flag_unused_command_line_argument=no
5935fi
5936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5937fi
5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5941	CFLAGS="$xorg_testset_save_CFLAGS"
5942fi
5943
5944found="no"
5945
5946	if test $found = "no" ; then
5947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949		fi
5950
5951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5953		fi
5954
5955		CFLAGS="$CFLAGS -Wbad-function-cast"
5956
5957		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5958printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5959		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5960		if eval test \${$cacheid+y}
5961then :
5962  printf %s "(cached) " >&6
5963else $as_nop
5964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h.  */
5966int i;
5967int
5968main (void)
5969{
5970
5971  ;
5972  return 0;
5973}
5974_ACEOF
5975if ac_fn_c_try_link "$LINENO"
5976then :
5977  eval $cacheid=yes
5978else $as_nop
5979  eval $cacheid=no
5980fi
5981rm -f core conftest.err conftest.$ac_objext conftest.beam \
5982    conftest$ac_exeext conftest.$ac_ext
5983fi
5984
5985
5986		CFLAGS="$xorg_testset_save_CFLAGS"
5987
5988		eval supported=\$$cacheid
5989		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5990printf "%s\n" "$supported" >&6; }
5991		if test "$supported" = "yes" ; then
5992			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5993			found="yes"
5994		fi
5995	fi
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011xorg_testset_save_CFLAGS="$CFLAGS"
6012
6013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6017if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6018then :
6019  printf %s "(cached) " >&6
6020else $as_nop
6021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023int i;
6024_ACEOF
6025if ac_fn_c_try_compile "$LINENO"
6026then :
6027  xorg_cv_cc_flag_unknown_warning_option=yes
6028else $as_nop
6029  xorg_cv_cc_flag_unknown_warning_option=no
6030fi
6031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6032fi
6033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6036	CFLAGS="$xorg_testset_save_CFLAGS"
6037fi
6038
6039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6042	fi
6043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6046if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6047then :
6048  printf %s "(cached) " >&6
6049else $as_nop
6050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h.  */
6052int i;
6053_ACEOF
6054if ac_fn_c_try_compile "$LINENO"
6055then :
6056  xorg_cv_cc_flag_unused_command_line_argument=yes
6057else $as_nop
6058  xorg_cv_cc_flag_unused_command_line_argument=no
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6061fi
6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6065	CFLAGS="$xorg_testset_save_CFLAGS"
6066fi
6067
6068found="no"
6069
6070	if test $found = "no" ; then
6071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073		fi
6074
6075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6077		fi
6078
6079		CFLAGS="$CFLAGS -Wold-style-definition"
6080
6081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6082printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6083		cacheid=xorg_cv_cc_flag__Wold_style_definition
6084		if eval test \${$cacheid+y}
6085then :
6086  printf %s "(cached) " >&6
6087else $as_nop
6088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090int i;
6091int
6092main (void)
6093{
6094
6095  ;
6096  return 0;
6097}
6098_ACEOF
6099if ac_fn_c_try_link "$LINENO"
6100then :
6101  eval $cacheid=yes
6102else $as_nop
6103  eval $cacheid=no
6104fi
6105rm -f core conftest.err conftest.$ac_objext conftest.beam \
6106    conftest$ac_exeext conftest.$ac_ext
6107fi
6108
6109
6110		CFLAGS="$xorg_testset_save_CFLAGS"
6111
6112		eval supported=\$$cacheid
6113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6114printf "%s\n" "$supported" >&6; }
6115		if test "$supported" = "yes" ; then
6116			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6117			found="yes"
6118		fi
6119	fi
6120
6121	if test $found = "no" ; then
6122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124		fi
6125
6126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128		fi
6129
6130		CFLAGS="$CFLAGS -fd"
6131
6132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6133printf %s "checking if $CC supports -fd... " >&6; }
6134		cacheid=xorg_cv_cc_flag__fd
6135		if eval test \${$cacheid+y}
6136then :
6137  printf %s "(cached) " >&6
6138else $as_nop
6139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140/* end confdefs.h.  */
6141int i;
6142int
6143main (void)
6144{
6145
6146  ;
6147  return 0;
6148}
6149_ACEOF
6150if ac_fn_c_try_link "$LINENO"
6151then :
6152  eval $cacheid=yes
6153else $as_nop
6154  eval $cacheid=no
6155fi
6156rm -f core conftest.err conftest.$ac_objext conftest.beam \
6157    conftest$ac_exeext conftest.$ac_ext
6158fi
6159
6160
6161		CFLAGS="$xorg_testset_save_CFLAGS"
6162
6163		eval supported=\$$cacheid
6164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6165printf "%s\n" "$supported" >&6; }
6166		if test "$supported" = "yes" ; then
6167			BASE_CFLAGS="$BASE_CFLAGS -fd"
6168			found="yes"
6169		fi
6170	fi
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186xorg_testset_save_CFLAGS="$CFLAGS"
6187
6188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6189	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6192if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6193then :
6194  printf %s "(cached) " >&6
6195else $as_nop
6196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h.  */
6198int i;
6199_ACEOF
6200if ac_fn_c_try_compile "$LINENO"
6201then :
6202  xorg_cv_cc_flag_unknown_warning_option=yes
6203else $as_nop
6204  xorg_cv_cc_flag_unknown_warning_option=no
6205fi
6206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6207fi
6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6211	CFLAGS="$xorg_testset_save_CFLAGS"
6212fi
6213
6214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217	fi
6218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6221if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6222then :
6223  printf %s "(cached) " >&6
6224else $as_nop
6225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h.  */
6227int i;
6228_ACEOF
6229if ac_fn_c_try_compile "$LINENO"
6230then :
6231  xorg_cv_cc_flag_unused_command_line_argument=yes
6232else $as_nop
6233  xorg_cv_cc_flag_unused_command_line_argument=no
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6236fi
6237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6240	CFLAGS="$xorg_testset_save_CFLAGS"
6241fi
6242
6243found="no"
6244
6245	if test $found = "no" ; then
6246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248		fi
6249
6250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252		fi
6253
6254		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6255
6256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6257printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6258		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6259		if eval test \${$cacheid+y}
6260then :
6261  printf %s "(cached) " >&6
6262else $as_nop
6263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h.  */
6265int i;
6266int
6267main (void)
6268{
6269
6270  ;
6271  return 0;
6272}
6273_ACEOF
6274if ac_fn_c_try_link "$LINENO"
6275then :
6276  eval $cacheid=yes
6277else $as_nop
6278  eval $cacheid=no
6279fi
6280rm -f core conftest.err conftest.$ac_objext conftest.beam \
6281    conftest$ac_exeext conftest.$ac_ext
6282fi
6283
6284
6285		CFLAGS="$xorg_testset_save_CFLAGS"
6286
6287		eval supported=\$$cacheid
6288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6289printf "%s\n" "$supported" >&6; }
6290		if test "$supported" = "yes" ; then
6291			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6292			found="yes"
6293		fi
6294	fi
6295
6296
6297
6298
6299
6300# This chunk adds additional warnings that could catch undesired effects.
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314xorg_testset_save_CFLAGS="$CFLAGS"
6315
6316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6321then :
6322  printf %s "(cached) " >&6
6323else $as_nop
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326int i;
6327_ACEOF
6328if ac_fn_c_try_compile "$LINENO"
6329then :
6330  xorg_cv_cc_flag_unknown_warning_option=yes
6331else $as_nop
6332  xorg_cv_cc_flag_unknown_warning_option=no
6333fi
6334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6335fi
6336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6339	CFLAGS="$xorg_testset_save_CFLAGS"
6340fi
6341
6342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345	fi
6346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6349if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6350then :
6351  printf %s "(cached) " >&6
6352else $as_nop
6353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h.  */
6355int i;
6356_ACEOF
6357if ac_fn_c_try_compile "$LINENO"
6358then :
6359  xorg_cv_cc_flag_unused_command_line_argument=yes
6360else $as_nop
6361  xorg_cv_cc_flag_unused_command_line_argument=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6364fi
6365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6368	CFLAGS="$xorg_testset_save_CFLAGS"
6369fi
6370
6371found="no"
6372
6373	if test $found = "no" ; then
6374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6376		fi
6377
6378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380		fi
6381
6382		CFLAGS="$CFLAGS -Wunused"
6383
6384		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6385printf %s "checking if $CC supports -Wunused... " >&6; }
6386		cacheid=xorg_cv_cc_flag__Wunused
6387		if eval test \${$cacheid+y}
6388then :
6389  printf %s "(cached) " >&6
6390else $as_nop
6391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h.  */
6393int i;
6394int
6395main (void)
6396{
6397
6398  ;
6399  return 0;
6400}
6401_ACEOF
6402if ac_fn_c_try_link "$LINENO"
6403then :
6404  eval $cacheid=yes
6405else $as_nop
6406  eval $cacheid=no
6407fi
6408rm -f core conftest.err conftest.$ac_objext conftest.beam \
6409    conftest$ac_exeext conftest.$ac_ext
6410fi
6411
6412
6413		CFLAGS="$xorg_testset_save_CFLAGS"
6414
6415		eval supported=\$$cacheid
6416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6417printf "%s\n" "$supported" >&6; }
6418		if test "$supported" = "yes" ; then
6419			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6420			found="yes"
6421		fi
6422	fi
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438xorg_testset_save_CFLAGS="$CFLAGS"
6439
6440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6443printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6444if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6445then :
6446  printf %s "(cached) " >&6
6447else $as_nop
6448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449/* end confdefs.h.  */
6450int i;
6451_ACEOF
6452if ac_fn_c_try_compile "$LINENO"
6453then :
6454  xorg_cv_cc_flag_unknown_warning_option=yes
6455else $as_nop
6456  xorg_cv_cc_flag_unknown_warning_option=no
6457fi
6458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6459fi
6460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6462	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6463	CFLAGS="$xorg_testset_save_CFLAGS"
6464fi
6465
6466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6467	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6468		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469	fi
6470	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6473if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6474then :
6475  printf %s "(cached) " >&6
6476else $as_nop
6477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478/* end confdefs.h.  */
6479int i;
6480_ACEOF
6481if ac_fn_c_try_compile "$LINENO"
6482then :
6483  xorg_cv_cc_flag_unused_command_line_argument=yes
6484else $as_nop
6485  xorg_cv_cc_flag_unused_command_line_argument=no
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6488fi
6489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6490printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6492	CFLAGS="$xorg_testset_save_CFLAGS"
6493fi
6494
6495found="no"
6496
6497	if test $found = "no" ; then
6498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6500		fi
6501
6502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6504		fi
6505
6506		CFLAGS="$CFLAGS -Wuninitialized"
6507
6508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6509printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6510		cacheid=xorg_cv_cc_flag__Wuninitialized
6511		if eval test \${$cacheid+y}
6512then :
6513  printf %s "(cached) " >&6
6514else $as_nop
6515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h.  */
6517int i;
6518int
6519main (void)
6520{
6521
6522  ;
6523  return 0;
6524}
6525_ACEOF
6526if ac_fn_c_try_link "$LINENO"
6527then :
6528  eval $cacheid=yes
6529else $as_nop
6530  eval $cacheid=no
6531fi
6532rm -f core conftest.err conftest.$ac_objext conftest.beam \
6533    conftest$ac_exeext conftest.$ac_ext
6534fi
6535
6536
6537		CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539		eval supported=\$$cacheid
6540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541printf "%s\n" "$supported" >&6; }
6542		if test "$supported" = "yes" ; then
6543			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6544			found="yes"
6545		fi
6546	fi
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6569then :
6570  printf %s "(cached) " >&6
6571else $as_nop
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"
6577then :
6578  xorg_cv_cc_flag_unknown_warning_option=yes
6579else $as_nop
6580  xorg_cv_cc_flag_unknown_warning_option=no
6581fi
6582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6583fi
6584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6585printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6587	CFLAGS="$xorg_testset_save_CFLAGS"
6588fi
6589
6590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6593	fi
6594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6595	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6596printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6597if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6598then :
6599  printf %s "(cached) " >&6
6600else $as_nop
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604_ACEOF
6605if ac_fn_c_try_compile "$LINENO"
6606then :
6607  xorg_cv_cc_flag_unused_command_line_argument=yes
6608else $as_nop
6609  xorg_cv_cc_flag_unused_command_line_argument=no
6610fi
6611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6612fi
6613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6614printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6616	CFLAGS="$xorg_testset_save_CFLAGS"
6617fi
6618
6619found="no"
6620
6621	if test $found = "no" ; then
6622		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6624		fi
6625
6626		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6628		fi
6629
6630		CFLAGS="$CFLAGS -Wshadow"
6631
6632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6633printf %s "checking if $CC supports -Wshadow... " >&6; }
6634		cacheid=xorg_cv_cc_flag__Wshadow
6635		if eval test \${$cacheid+y}
6636then :
6637  printf %s "(cached) " >&6
6638else $as_nop
6639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640/* end confdefs.h.  */
6641int i;
6642int
6643main (void)
6644{
6645
6646  ;
6647  return 0;
6648}
6649_ACEOF
6650if ac_fn_c_try_link "$LINENO"
6651then :
6652  eval $cacheid=yes
6653else $as_nop
6654  eval $cacheid=no
6655fi
6656rm -f core conftest.err conftest.$ac_objext conftest.beam \
6657    conftest$ac_exeext conftest.$ac_ext
6658fi
6659
6660
6661		CFLAGS="$xorg_testset_save_CFLAGS"
6662
6663		eval supported=\$$cacheid
6664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6665printf "%s\n" "$supported" >&6; }
6666		if test "$supported" = "yes" ; then
6667			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6668			found="yes"
6669		fi
6670	fi
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686xorg_testset_save_CFLAGS="$CFLAGS"
6687
6688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6691printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6692if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6693then :
6694  printf %s "(cached) " >&6
6695else $as_nop
6696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h.  */
6698int i;
6699_ACEOF
6700if ac_fn_c_try_compile "$LINENO"
6701then :
6702  xorg_cv_cc_flag_unknown_warning_option=yes
6703else $as_nop
6704  xorg_cv_cc_flag_unknown_warning_option=no
6705fi
6706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6707fi
6708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6709printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6711	CFLAGS="$xorg_testset_save_CFLAGS"
6712fi
6713
6714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6717	fi
6718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6720printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6721if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6722then :
6723  printf %s "(cached) " >&6
6724else $as_nop
6725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727int i;
6728_ACEOF
6729if ac_fn_c_try_compile "$LINENO"
6730then :
6731  xorg_cv_cc_flag_unused_command_line_argument=yes
6732else $as_nop
6733  xorg_cv_cc_flag_unused_command_line_argument=no
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6736fi
6737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6740	CFLAGS="$xorg_testset_save_CFLAGS"
6741fi
6742
6743found="no"
6744
6745	if test $found = "no" ; then
6746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748		fi
6749
6750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6752		fi
6753
6754		CFLAGS="$CFLAGS -Wmissing-noreturn"
6755
6756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6757printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6758		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6759		if eval test \${$cacheid+y}
6760then :
6761  printf %s "(cached) " >&6
6762else $as_nop
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765int i;
6766int
6767main (void)
6768{
6769
6770  ;
6771  return 0;
6772}
6773_ACEOF
6774if ac_fn_c_try_link "$LINENO"
6775then :
6776  eval $cacheid=yes
6777else $as_nop
6778  eval $cacheid=no
6779fi
6780rm -f core conftest.err conftest.$ac_objext conftest.beam \
6781    conftest$ac_exeext conftest.$ac_ext
6782fi
6783
6784
6785		CFLAGS="$xorg_testset_save_CFLAGS"
6786
6787		eval supported=\$$cacheid
6788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6789printf "%s\n" "$supported" >&6; }
6790		if test "$supported" = "yes" ; then
6791			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6792			found="yes"
6793		fi
6794	fi
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810xorg_testset_save_CFLAGS="$CFLAGS"
6811
6812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6815printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6816if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6817then :
6818  printf %s "(cached) " >&6
6819else $as_nop
6820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h.  */
6822int i;
6823_ACEOF
6824if ac_fn_c_try_compile "$LINENO"
6825then :
6826  xorg_cv_cc_flag_unknown_warning_option=yes
6827else $as_nop
6828  xorg_cv_cc_flag_unknown_warning_option=no
6829fi
6830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6831fi
6832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6833printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6834	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6835	CFLAGS="$xorg_testset_save_CFLAGS"
6836fi
6837
6838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6839	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6840		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841	fi
6842	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6843	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6844printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6845if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6846then :
6847  printf %s "(cached) " >&6
6848else $as_nop
6849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851int i;
6852_ACEOF
6853if ac_fn_c_try_compile "$LINENO"
6854then :
6855  xorg_cv_cc_flag_unused_command_line_argument=yes
6856else $as_nop
6857  xorg_cv_cc_flag_unused_command_line_argument=no
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6860fi
6861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6862printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6864	CFLAGS="$xorg_testset_save_CFLAGS"
6865fi
6866
6867found="no"
6868
6869	if test $found = "no" ; then
6870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6872		fi
6873
6874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6876		fi
6877
6878		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6879
6880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6881printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6882		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6883		if eval test \${$cacheid+y}
6884then :
6885  printf %s "(cached) " >&6
6886else $as_nop
6887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h.  */
6889int i;
6890int
6891main (void)
6892{
6893
6894  ;
6895  return 0;
6896}
6897_ACEOF
6898if ac_fn_c_try_link "$LINENO"
6899then :
6900  eval $cacheid=yes
6901else $as_nop
6902  eval $cacheid=no
6903fi
6904rm -f core conftest.err conftest.$ac_objext conftest.beam \
6905    conftest$ac_exeext conftest.$ac_ext
6906fi
6907
6908
6909		CFLAGS="$xorg_testset_save_CFLAGS"
6910
6911		eval supported=\$$cacheid
6912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6913printf "%s\n" "$supported" >&6; }
6914		if test "$supported" = "yes" ; then
6915			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6916			found="yes"
6917		fi
6918	fi
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934xorg_testset_save_CFLAGS="$CFLAGS"
6935
6936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6938	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6939printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6940if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6941then :
6942  printf %s "(cached) " >&6
6943else $as_nop
6944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h.  */
6946int i;
6947_ACEOF
6948if ac_fn_c_try_compile "$LINENO"
6949then :
6950  xorg_cv_cc_flag_unknown_warning_option=yes
6951else $as_nop
6952  xorg_cv_cc_flag_unknown_warning_option=no
6953fi
6954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6955fi
6956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6957printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6959	CFLAGS="$xorg_testset_save_CFLAGS"
6960fi
6961
6962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6965	fi
6966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6968printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6969if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6970then :
6971  printf %s "(cached) " >&6
6972else $as_nop
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975int i;
6976_ACEOF
6977if ac_fn_c_try_compile "$LINENO"
6978then :
6979  xorg_cv_cc_flag_unused_command_line_argument=yes
6980else $as_nop
6981  xorg_cv_cc_flag_unused_command_line_argument=no
6982fi
6983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6984fi
6985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6988	CFLAGS="$xorg_testset_save_CFLAGS"
6989fi
6990
6991found="no"
6992
6993	if test $found = "no" ; then
6994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996		fi
6997
6998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7000		fi
7001
7002		CFLAGS="$CFLAGS -Wredundant-decls"
7003
7004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7005printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7006		cacheid=xorg_cv_cc_flag__Wredundant_decls
7007		if eval test \${$cacheid+y}
7008then :
7009  printf %s "(cached) " >&6
7010else $as_nop
7011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012/* end confdefs.h.  */
7013int i;
7014int
7015main (void)
7016{
7017
7018  ;
7019  return 0;
7020}
7021_ACEOF
7022if ac_fn_c_try_link "$LINENO"
7023then :
7024  eval $cacheid=yes
7025else $as_nop
7026  eval $cacheid=no
7027fi
7028rm -f core conftest.err conftest.$ac_objext conftest.beam \
7029    conftest$ac_exeext conftest.$ac_ext
7030fi
7031
7032
7033		CFLAGS="$xorg_testset_save_CFLAGS"
7034
7035		eval supported=\$$cacheid
7036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7037printf "%s\n" "$supported" >&6; }
7038		if test "$supported" = "yes" ; then
7039			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7040			found="yes"
7041		fi
7042	fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058xorg_testset_save_CFLAGS="$CFLAGS"
7059
7060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7064if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7065then :
7066  printf %s "(cached) " >&6
7067else $as_nop
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070int i;
7071_ACEOF
7072if ac_fn_c_try_compile "$LINENO"
7073then :
7074  xorg_cv_cc_flag_unknown_warning_option=yes
7075else $as_nop
7076  xorg_cv_cc_flag_unknown_warning_option=no
7077fi
7078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7079fi
7080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7081printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7083	CFLAGS="$xorg_testset_save_CFLAGS"
7084fi
7085
7086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089	fi
7090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7092printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7093if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7094then :
7095  printf %s "(cached) " >&6
7096else $as_nop
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099int i;
7100_ACEOF
7101if ac_fn_c_try_compile "$LINENO"
7102then :
7103  xorg_cv_cc_flag_unused_command_line_argument=yes
7104else $as_nop
7105  xorg_cv_cc_flag_unused_command_line_argument=no
7106fi
7107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7108fi
7109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7110printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7112	CFLAGS="$xorg_testset_save_CFLAGS"
7113fi
7114
7115found="no"
7116
7117	if test $found = "no" ; then
7118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7120		fi
7121
7122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124		fi
7125
7126		CFLAGS="$CFLAGS -Wlogical-op"
7127
7128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7129printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7130		cacheid=xorg_cv_cc_flag__Wlogical_op
7131		if eval test \${$cacheid+y}
7132then :
7133  printf %s "(cached) " >&6
7134else $as_nop
7135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138int
7139main (void)
7140{
7141
7142  ;
7143  return 0;
7144}
7145_ACEOF
7146if ac_fn_c_try_link "$LINENO"
7147then :
7148  eval $cacheid=yes
7149else $as_nop
7150  eval $cacheid=no
7151fi
7152rm -f core conftest.err conftest.$ac_objext conftest.beam \
7153    conftest$ac_exeext conftest.$ac_ext
7154fi
7155
7156
7157		CFLAGS="$xorg_testset_save_CFLAGS"
7158
7159		eval supported=\$$cacheid
7160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7161printf "%s\n" "$supported" >&6; }
7162		if test "$supported" = "yes" ; then
7163			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7164			found="yes"
7165		fi
7166	fi
7167
7168
7169
7170# These are currently disabled because they are noisy.  They will be enabled
7171# in the future once the codebase is sufficiently modernized to silence
7172# them.  For now, I don't want them to drown out the other warnings.
7173# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7174# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7175# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7176
7177# Turn some warnings into errors, so we don't accidently get successful builds
7178# when there are problems that should be fixed.
7179
7180if test "x$SELECTIVE_WERROR" = "xyes" ; then
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194xorg_testset_save_CFLAGS="$CFLAGS"
7195
7196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7200if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7201then :
7202  printf %s "(cached) " >&6
7203else $as_nop
7204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205/* end confdefs.h.  */
7206int i;
7207_ACEOF
7208if ac_fn_c_try_compile "$LINENO"
7209then :
7210  xorg_cv_cc_flag_unknown_warning_option=yes
7211else $as_nop
7212  xorg_cv_cc_flag_unknown_warning_option=no
7213fi
7214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7215fi
7216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7219	CFLAGS="$xorg_testset_save_CFLAGS"
7220fi
7221
7222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225	fi
7226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7229if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7230then :
7231  printf %s "(cached) " >&6
7232else $as_nop
7233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235int i;
7236_ACEOF
7237if ac_fn_c_try_compile "$LINENO"
7238then :
7239  xorg_cv_cc_flag_unused_command_line_argument=yes
7240else $as_nop
7241  xorg_cv_cc_flag_unused_command_line_argument=no
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7244fi
7245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7248	CFLAGS="$xorg_testset_save_CFLAGS"
7249fi
7250
7251found="no"
7252
7253	if test $found = "no" ; then
7254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256		fi
7257
7258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7260		fi
7261
7262		CFLAGS="$CFLAGS -Werror=implicit"
7263
7264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7265printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7266		cacheid=xorg_cv_cc_flag__Werror_implicit
7267		if eval test \${$cacheid+y}
7268then :
7269  printf %s "(cached) " >&6
7270else $as_nop
7271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h.  */
7273int i;
7274int
7275main (void)
7276{
7277
7278  ;
7279  return 0;
7280}
7281_ACEOF
7282if ac_fn_c_try_link "$LINENO"
7283then :
7284  eval $cacheid=yes
7285else $as_nop
7286  eval $cacheid=no
7287fi
7288rm -f core conftest.err conftest.$ac_objext conftest.beam \
7289    conftest$ac_exeext conftest.$ac_ext
7290fi
7291
7292
7293		CFLAGS="$xorg_testset_save_CFLAGS"
7294
7295		eval supported=\$$cacheid
7296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7297printf "%s\n" "$supported" >&6; }
7298		if test "$supported" = "yes" ; then
7299			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7300			found="yes"
7301		fi
7302	fi
7303
7304	if test $found = "no" ; then
7305		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307		fi
7308
7309		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7311		fi
7312
7313		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7314
7315		{ 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
7316printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7317		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7318		if eval test \${$cacheid+y}
7319then :
7320  printf %s "(cached) " >&6
7321else $as_nop
7322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323/* end confdefs.h.  */
7324int i;
7325int
7326main (void)
7327{
7328
7329  ;
7330  return 0;
7331}
7332_ACEOF
7333if ac_fn_c_try_link "$LINENO"
7334then :
7335  eval $cacheid=yes
7336else $as_nop
7337  eval $cacheid=no
7338fi
7339rm -f core conftest.err conftest.$ac_objext conftest.beam \
7340    conftest$ac_exeext conftest.$ac_ext
7341fi
7342
7343
7344		CFLAGS="$xorg_testset_save_CFLAGS"
7345
7346		eval supported=\$$cacheid
7347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7348printf "%s\n" "$supported" >&6; }
7349		if test "$supported" = "yes" ; then
7350			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7351			found="yes"
7352		fi
7353	fi
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369xorg_testset_save_CFLAGS="$CFLAGS"
7370
7371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7375if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7376then :
7377  printf %s "(cached) " >&6
7378else $as_nop
7379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380/* end confdefs.h.  */
7381int i;
7382_ACEOF
7383if ac_fn_c_try_compile "$LINENO"
7384then :
7385  xorg_cv_cc_flag_unknown_warning_option=yes
7386else $as_nop
7387  xorg_cv_cc_flag_unknown_warning_option=no
7388fi
7389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7390fi
7391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7394	CFLAGS="$xorg_testset_save_CFLAGS"
7395fi
7396
7397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7400	fi
7401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7404if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7405then :
7406  printf %s "(cached) " >&6
7407else $as_nop
7408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h.  */
7410int i;
7411_ACEOF
7412if ac_fn_c_try_compile "$LINENO"
7413then :
7414  xorg_cv_cc_flag_unused_command_line_argument=yes
7415else $as_nop
7416  xorg_cv_cc_flag_unused_command_line_argument=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7419fi
7420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7423	CFLAGS="$xorg_testset_save_CFLAGS"
7424fi
7425
7426found="no"
7427
7428	if test $found = "no" ; then
7429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431		fi
7432
7433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7435		fi
7436
7437		CFLAGS="$CFLAGS -Werror=nonnull"
7438
7439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7440printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7441		cacheid=xorg_cv_cc_flag__Werror_nonnull
7442		if eval test \${$cacheid+y}
7443then :
7444  printf %s "(cached) " >&6
7445else $as_nop
7446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h.  */
7448int i;
7449int
7450main (void)
7451{
7452
7453  ;
7454  return 0;
7455}
7456_ACEOF
7457if ac_fn_c_try_link "$LINENO"
7458then :
7459  eval $cacheid=yes
7460else $as_nop
7461  eval $cacheid=no
7462fi
7463rm -f core conftest.err conftest.$ac_objext conftest.beam \
7464    conftest$ac_exeext conftest.$ac_ext
7465fi
7466
7467
7468		CFLAGS="$xorg_testset_save_CFLAGS"
7469
7470		eval supported=\$$cacheid
7471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7472printf "%s\n" "$supported" >&6; }
7473		if test "$supported" = "yes" ; then
7474			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7475			found="yes"
7476		fi
7477	fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493xorg_testset_save_CFLAGS="$CFLAGS"
7494
7495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7499if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7500then :
7501  printf %s "(cached) " >&6
7502else $as_nop
7503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h.  */
7505int i;
7506_ACEOF
7507if ac_fn_c_try_compile "$LINENO"
7508then :
7509  xorg_cv_cc_flag_unknown_warning_option=yes
7510else $as_nop
7511  xorg_cv_cc_flag_unknown_warning_option=no
7512fi
7513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7514fi
7515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7518	CFLAGS="$xorg_testset_save_CFLAGS"
7519fi
7520
7521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524	fi
7525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7528if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7529then :
7530  printf %s "(cached) " >&6
7531else $as_nop
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534int i;
7535_ACEOF
7536if ac_fn_c_try_compile "$LINENO"
7537then :
7538  xorg_cv_cc_flag_unused_command_line_argument=yes
7539else $as_nop
7540  xorg_cv_cc_flag_unused_command_line_argument=no
7541fi
7542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7543fi
7544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7547	CFLAGS="$xorg_testset_save_CFLAGS"
7548fi
7549
7550found="no"
7551
7552	if test $found = "no" ; then
7553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7555		fi
7556
7557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7559		fi
7560
7561		CFLAGS="$CFLAGS -Werror=init-self"
7562
7563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7564printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7565		cacheid=xorg_cv_cc_flag__Werror_init_self
7566		if eval test \${$cacheid+y}
7567then :
7568  printf %s "(cached) " >&6
7569else $as_nop
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573int
7574main (void)
7575{
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_link "$LINENO"
7582then :
7583  eval $cacheid=yes
7584else $as_nop
7585  eval $cacheid=no
7586fi
7587rm -f core conftest.err conftest.$ac_objext conftest.beam \
7588    conftest$ac_exeext conftest.$ac_ext
7589fi
7590
7591
7592		CFLAGS="$xorg_testset_save_CFLAGS"
7593
7594		eval supported=\$$cacheid
7595		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7596printf "%s\n" "$supported" >&6; }
7597		if test "$supported" = "yes" ; then
7598			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7599			found="yes"
7600		fi
7601	fi
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617xorg_testset_save_CFLAGS="$CFLAGS"
7618
7619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7620	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7623if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7624then :
7625  printf %s "(cached) " >&6
7626else $as_nop
7627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h.  */
7629int i;
7630_ACEOF
7631if ac_fn_c_try_compile "$LINENO"
7632then :
7633  xorg_cv_cc_flag_unknown_warning_option=yes
7634else $as_nop
7635  xorg_cv_cc_flag_unknown_warning_option=no
7636fi
7637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7638fi
7639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7642	CFLAGS="$xorg_testset_save_CFLAGS"
7643fi
7644
7645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648	fi
7649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7652if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7653then :
7654  printf %s "(cached) " >&6
7655else $as_nop
7656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h.  */
7658int i;
7659_ACEOF
7660if ac_fn_c_try_compile "$LINENO"
7661then :
7662  xorg_cv_cc_flag_unused_command_line_argument=yes
7663else $as_nop
7664  xorg_cv_cc_flag_unused_command_line_argument=no
7665fi
7666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7667fi
7668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7671	CFLAGS="$xorg_testset_save_CFLAGS"
7672fi
7673
7674found="no"
7675
7676	if test $found = "no" ; then
7677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7679		fi
7680
7681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7683		fi
7684
7685		CFLAGS="$CFLAGS -Werror=main"
7686
7687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7688printf %s "checking if $CC supports -Werror=main... " >&6; }
7689		cacheid=xorg_cv_cc_flag__Werror_main
7690		if eval test \${$cacheid+y}
7691then :
7692  printf %s "(cached) " >&6
7693else $as_nop
7694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695/* end confdefs.h.  */
7696int i;
7697int
7698main (void)
7699{
7700
7701  ;
7702  return 0;
7703}
7704_ACEOF
7705if ac_fn_c_try_link "$LINENO"
7706then :
7707  eval $cacheid=yes
7708else $as_nop
7709  eval $cacheid=no
7710fi
7711rm -f core conftest.err conftest.$ac_objext conftest.beam \
7712    conftest$ac_exeext conftest.$ac_ext
7713fi
7714
7715
7716		CFLAGS="$xorg_testset_save_CFLAGS"
7717
7718		eval supported=\$$cacheid
7719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7720printf "%s\n" "$supported" >&6; }
7721		if test "$supported" = "yes" ; then
7722			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7723			found="yes"
7724		fi
7725	fi
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741xorg_testset_save_CFLAGS="$CFLAGS"
7742
7743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7747if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7748then :
7749  printf %s "(cached) " >&6
7750else $as_nop
7751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h.  */
7753int i;
7754_ACEOF
7755if ac_fn_c_try_compile "$LINENO"
7756then :
7757  xorg_cv_cc_flag_unknown_warning_option=yes
7758else $as_nop
7759  xorg_cv_cc_flag_unknown_warning_option=no
7760fi
7761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7762fi
7763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7764printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7765	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7766	CFLAGS="$xorg_testset_save_CFLAGS"
7767fi
7768
7769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7770	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7771		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7772	fi
7773	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7774	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7775printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7776if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7777then :
7778  printf %s "(cached) " >&6
7779else $as_nop
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782int i;
7783_ACEOF
7784if ac_fn_c_try_compile "$LINENO"
7785then :
7786  xorg_cv_cc_flag_unused_command_line_argument=yes
7787else $as_nop
7788  xorg_cv_cc_flag_unused_command_line_argument=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7791fi
7792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7795	CFLAGS="$xorg_testset_save_CFLAGS"
7796fi
7797
7798found="no"
7799
7800	if test $found = "no" ; then
7801		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7803		fi
7804
7805		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7807		fi
7808
7809		CFLAGS="$CFLAGS -Werror=missing-braces"
7810
7811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7812printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7813		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7814		if eval test \${$cacheid+y}
7815then :
7816  printf %s "(cached) " >&6
7817else $as_nop
7818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819/* end confdefs.h.  */
7820int i;
7821int
7822main (void)
7823{
7824
7825  ;
7826  return 0;
7827}
7828_ACEOF
7829if ac_fn_c_try_link "$LINENO"
7830then :
7831  eval $cacheid=yes
7832else $as_nop
7833  eval $cacheid=no
7834fi
7835rm -f core conftest.err conftest.$ac_objext conftest.beam \
7836    conftest$ac_exeext conftest.$ac_ext
7837fi
7838
7839
7840		CFLAGS="$xorg_testset_save_CFLAGS"
7841
7842		eval supported=\$$cacheid
7843		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7844printf "%s\n" "$supported" >&6; }
7845		if test "$supported" = "yes" ; then
7846			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7847			found="yes"
7848		fi
7849	fi
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865xorg_testset_save_CFLAGS="$CFLAGS"
7866
7867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7870printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7871if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7872then :
7873  printf %s "(cached) " >&6
7874else $as_nop
7875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876/* end confdefs.h.  */
7877int i;
7878_ACEOF
7879if ac_fn_c_try_compile "$LINENO"
7880then :
7881  xorg_cv_cc_flag_unknown_warning_option=yes
7882else $as_nop
7883  xorg_cv_cc_flag_unknown_warning_option=no
7884fi
7885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7886fi
7887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7888printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7889	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7890	CFLAGS="$xorg_testset_save_CFLAGS"
7891fi
7892
7893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7894	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7895		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7896	fi
7897	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7898	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7899printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7900if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7901then :
7902  printf %s "(cached) " >&6
7903else $as_nop
7904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906int i;
7907_ACEOF
7908if ac_fn_c_try_compile "$LINENO"
7909then :
7910  xorg_cv_cc_flag_unused_command_line_argument=yes
7911else $as_nop
7912  xorg_cv_cc_flag_unused_command_line_argument=no
7913fi
7914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7915fi
7916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7917printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7919	CFLAGS="$xorg_testset_save_CFLAGS"
7920fi
7921
7922found="no"
7923
7924	if test $found = "no" ; then
7925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927		fi
7928
7929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7931		fi
7932
7933		CFLAGS="$CFLAGS -Werror=sequence-point"
7934
7935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7936printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7937		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7938		if eval test \${$cacheid+y}
7939then :
7940  printf %s "(cached) " >&6
7941else $as_nop
7942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h.  */
7944int i;
7945int
7946main (void)
7947{
7948
7949  ;
7950  return 0;
7951}
7952_ACEOF
7953if ac_fn_c_try_link "$LINENO"
7954then :
7955  eval $cacheid=yes
7956else $as_nop
7957  eval $cacheid=no
7958fi
7959rm -f core conftest.err conftest.$ac_objext conftest.beam \
7960    conftest$ac_exeext conftest.$ac_ext
7961fi
7962
7963
7964		CFLAGS="$xorg_testset_save_CFLAGS"
7965
7966		eval supported=\$$cacheid
7967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7968printf "%s\n" "$supported" >&6; }
7969		if test "$supported" = "yes" ; then
7970			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7971			found="yes"
7972		fi
7973	fi
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989xorg_testset_save_CFLAGS="$CFLAGS"
7990
7991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7994printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7995if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7996then :
7997  printf %s "(cached) " >&6
7998else $as_nop
7999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h.  */
8001int i;
8002_ACEOF
8003if ac_fn_c_try_compile "$LINENO"
8004then :
8005  xorg_cv_cc_flag_unknown_warning_option=yes
8006else $as_nop
8007  xorg_cv_cc_flag_unknown_warning_option=no
8008fi
8009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8010fi
8011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8012printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8014	CFLAGS="$xorg_testset_save_CFLAGS"
8015fi
8016
8017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8020	fi
8021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8023printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8024if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8025then :
8026  printf %s "(cached) " >&6
8027else $as_nop
8028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030int i;
8031_ACEOF
8032if ac_fn_c_try_compile "$LINENO"
8033then :
8034  xorg_cv_cc_flag_unused_command_line_argument=yes
8035else $as_nop
8036  xorg_cv_cc_flag_unused_command_line_argument=no
8037fi
8038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8039fi
8040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8043	CFLAGS="$xorg_testset_save_CFLAGS"
8044fi
8045
8046found="no"
8047
8048	if test $found = "no" ; then
8049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8051		fi
8052
8053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8055		fi
8056
8057		CFLAGS="$CFLAGS -Werror=return-type"
8058
8059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8060printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8061		cacheid=xorg_cv_cc_flag__Werror_return_type
8062		if eval test \${$cacheid+y}
8063then :
8064  printf %s "(cached) " >&6
8065else $as_nop
8066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067/* end confdefs.h.  */
8068int i;
8069int
8070main (void)
8071{
8072
8073  ;
8074  return 0;
8075}
8076_ACEOF
8077if ac_fn_c_try_link "$LINENO"
8078then :
8079  eval $cacheid=yes
8080else $as_nop
8081  eval $cacheid=no
8082fi
8083rm -f core conftest.err conftest.$ac_objext conftest.beam \
8084    conftest$ac_exeext conftest.$ac_ext
8085fi
8086
8087
8088		CFLAGS="$xorg_testset_save_CFLAGS"
8089
8090		eval supported=\$$cacheid
8091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8092printf "%s\n" "$supported" >&6; }
8093		if test "$supported" = "yes" ; then
8094			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8095			found="yes"
8096		fi
8097	fi
8098
8099	if test $found = "no" ; then
8100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102		fi
8103
8104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106		fi
8107
8108		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8109
8110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8111printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8112		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8113		if eval test \${$cacheid+y}
8114then :
8115  printf %s "(cached) " >&6
8116else $as_nop
8117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119int i;
8120int
8121main (void)
8122{
8123
8124  ;
8125  return 0;
8126}
8127_ACEOF
8128if ac_fn_c_try_link "$LINENO"
8129then :
8130  eval $cacheid=yes
8131else $as_nop
8132  eval $cacheid=no
8133fi
8134rm -f core conftest.err conftest.$ac_objext conftest.beam \
8135    conftest$ac_exeext conftest.$ac_ext
8136fi
8137
8138
8139		CFLAGS="$xorg_testset_save_CFLAGS"
8140
8141		eval supported=\$$cacheid
8142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8143printf "%s\n" "$supported" >&6; }
8144		if test "$supported" = "yes" ; then
8145			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8146			found="yes"
8147		fi
8148	fi
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164xorg_testset_save_CFLAGS="$CFLAGS"
8165
8166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8170if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8171then :
8172  printf %s "(cached) " >&6
8173else $as_nop
8174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h.  */
8176int i;
8177_ACEOF
8178if ac_fn_c_try_compile "$LINENO"
8179then :
8180  xorg_cv_cc_flag_unknown_warning_option=yes
8181else $as_nop
8182  xorg_cv_cc_flag_unknown_warning_option=no
8183fi
8184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8185fi
8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8189	CFLAGS="$xorg_testset_save_CFLAGS"
8190fi
8191
8192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195	fi
8196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8199if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8200then :
8201  printf %s "(cached) " >&6
8202else $as_nop
8203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204/* end confdefs.h.  */
8205int i;
8206_ACEOF
8207if ac_fn_c_try_compile "$LINENO"
8208then :
8209  xorg_cv_cc_flag_unused_command_line_argument=yes
8210else $as_nop
8211  xorg_cv_cc_flag_unused_command_line_argument=no
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8214fi
8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8218	CFLAGS="$xorg_testset_save_CFLAGS"
8219fi
8220
8221found="no"
8222
8223	if test $found = "no" ; then
8224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226		fi
8227
8228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230		fi
8231
8232		CFLAGS="$CFLAGS -Werror=trigraphs"
8233
8234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8235printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8236		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8237		if eval test \${$cacheid+y}
8238then :
8239  printf %s "(cached) " >&6
8240else $as_nop
8241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242/* end confdefs.h.  */
8243int i;
8244int
8245main (void)
8246{
8247
8248  ;
8249  return 0;
8250}
8251_ACEOF
8252if ac_fn_c_try_link "$LINENO"
8253then :
8254  eval $cacheid=yes
8255else $as_nop
8256  eval $cacheid=no
8257fi
8258rm -f core conftest.err conftest.$ac_objext conftest.beam \
8259    conftest$ac_exeext conftest.$ac_ext
8260fi
8261
8262
8263		CFLAGS="$xorg_testset_save_CFLAGS"
8264
8265		eval supported=\$$cacheid
8266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8267printf "%s\n" "$supported" >&6; }
8268		if test "$supported" = "yes" ; then
8269			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8270			found="yes"
8271		fi
8272	fi
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288xorg_testset_save_CFLAGS="$CFLAGS"
8289
8290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8294if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8295then :
8296  printf %s "(cached) " >&6
8297else $as_nop
8298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h.  */
8300int i;
8301_ACEOF
8302if ac_fn_c_try_compile "$LINENO"
8303then :
8304  xorg_cv_cc_flag_unknown_warning_option=yes
8305else $as_nop
8306  xorg_cv_cc_flag_unknown_warning_option=no
8307fi
8308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8309fi
8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8313	CFLAGS="$xorg_testset_save_CFLAGS"
8314fi
8315
8316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319	fi
8320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8323if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8324then :
8325  printf %s "(cached) " >&6
8326else $as_nop
8327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329int i;
8330_ACEOF
8331if ac_fn_c_try_compile "$LINENO"
8332then :
8333  xorg_cv_cc_flag_unused_command_line_argument=yes
8334else $as_nop
8335  xorg_cv_cc_flag_unused_command_line_argument=no
8336fi
8337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8338fi
8339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8342	CFLAGS="$xorg_testset_save_CFLAGS"
8343fi
8344
8345found="no"
8346
8347	if test $found = "no" ; then
8348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350		fi
8351
8352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8354		fi
8355
8356		CFLAGS="$CFLAGS -Werror=array-bounds"
8357
8358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8359printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8360		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8361		if eval test \${$cacheid+y}
8362then :
8363  printf %s "(cached) " >&6
8364else $as_nop
8365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366/* end confdefs.h.  */
8367int i;
8368int
8369main (void)
8370{
8371
8372  ;
8373  return 0;
8374}
8375_ACEOF
8376if ac_fn_c_try_link "$LINENO"
8377then :
8378  eval $cacheid=yes
8379else $as_nop
8380  eval $cacheid=no
8381fi
8382rm -f core conftest.err conftest.$ac_objext conftest.beam \
8383    conftest$ac_exeext conftest.$ac_ext
8384fi
8385
8386
8387		CFLAGS="$xorg_testset_save_CFLAGS"
8388
8389		eval supported=\$$cacheid
8390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8391printf "%s\n" "$supported" >&6; }
8392		if test "$supported" = "yes" ; then
8393			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8394			found="yes"
8395		fi
8396	fi
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412xorg_testset_save_CFLAGS="$CFLAGS"
8413
8414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8417printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8418if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8419then :
8420  printf %s "(cached) " >&6
8421else $as_nop
8422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423/* end confdefs.h.  */
8424int i;
8425_ACEOF
8426if ac_fn_c_try_compile "$LINENO"
8427then :
8428  xorg_cv_cc_flag_unknown_warning_option=yes
8429else $as_nop
8430  xorg_cv_cc_flag_unknown_warning_option=no
8431fi
8432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8433fi
8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8437	CFLAGS="$xorg_testset_save_CFLAGS"
8438fi
8439
8440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443	fi
8444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8448then :
8449  printf %s "(cached) " >&6
8450else $as_nop
8451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454_ACEOF
8455if ac_fn_c_try_compile "$LINENO"
8456then :
8457  xorg_cv_cc_flag_unused_command_line_argument=yes
8458else $as_nop
8459  xorg_cv_cc_flag_unused_command_line_argument=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8462fi
8463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8464printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8466	CFLAGS="$xorg_testset_save_CFLAGS"
8467fi
8468
8469found="no"
8470
8471	if test $found = "no" ; then
8472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8474		fi
8475
8476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8478		fi
8479
8480		CFLAGS="$CFLAGS -Werror=write-strings"
8481
8482		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8483printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8484		cacheid=xorg_cv_cc_flag__Werror_write_strings
8485		if eval test \${$cacheid+y}
8486then :
8487  printf %s "(cached) " >&6
8488else $as_nop
8489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h.  */
8491int i;
8492int
8493main (void)
8494{
8495
8496  ;
8497  return 0;
8498}
8499_ACEOF
8500if ac_fn_c_try_link "$LINENO"
8501then :
8502  eval $cacheid=yes
8503else $as_nop
8504  eval $cacheid=no
8505fi
8506rm -f core conftest.err conftest.$ac_objext conftest.beam \
8507    conftest$ac_exeext conftest.$ac_ext
8508fi
8509
8510
8511		CFLAGS="$xorg_testset_save_CFLAGS"
8512
8513		eval supported=\$$cacheid
8514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8515printf "%s\n" "$supported" >&6; }
8516		if test "$supported" = "yes" ; then
8517			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8518			found="yes"
8519		fi
8520	fi
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536xorg_testset_save_CFLAGS="$CFLAGS"
8537
8538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8542if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8543then :
8544  printf %s "(cached) " >&6
8545else $as_nop
8546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547/* end confdefs.h.  */
8548int i;
8549_ACEOF
8550if ac_fn_c_try_compile "$LINENO"
8551then :
8552  xorg_cv_cc_flag_unknown_warning_option=yes
8553else $as_nop
8554  xorg_cv_cc_flag_unknown_warning_option=no
8555fi
8556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8557fi
8558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8559printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8560	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8561	CFLAGS="$xorg_testset_save_CFLAGS"
8562fi
8563
8564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8565	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8566		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8567	fi
8568	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8570printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8571if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8572then :
8573  printf %s "(cached) " >&6
8574else $as_nop
8575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577int i;
8578_ACEOF
8579if ac_fn_c_try_compile "$LINENO"
8580then :
8581  xorg_cv_cc_flag_unused_command_line_argument=yes
8582else $as_nop
8583  xorg_cv_cc_flag_unused_command_line_argument=no
8584fi
8585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8586fi
8587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8590	CFLAGS="$xorg_testset_save_CFLAGS"
8591fi
8592
8593found="no"
8594
8595	if test $found = "no" ; then
8596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8598		fi
8599
8600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8602		fi
8603
8604		CFLAGS="$CFLAGS -Werror=address"
8605
8606		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8607printf %s "checking if $CC supports -Werror=address... " >&6; }
8608		cacheid=xorg_cv_cc_flag__Werror_address
8609		if eval test \${$cacheid+y}
8610then :
8611  printf %s "(cached) " >&6
8612else $as_nop
8613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615int i;
8616int
8617main (void)
8618{
8619
8620  ;
8621  return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_link "$LINENO"
8625then :
8626  eval $cacheid=yes
8627else $as_nop
8628  eval $cacheid=no
8629fi
8630rm -f core conftest.err conftest.$ac_objext conftest.beam \
8631    conftest$ac_exeext conftest.$ac_ext
8632fi
8633
8634
8635		CFLAGS="$xorg_testset_save_CFLAGS"
8636
8637		eval supported=\$$cacheid
8638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8639printf "%s\n" "$supported" >&6; }
8640		if test "$supported" = "yes" ; then
8641			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8642			found="yes"
8643		fi
8644	fi
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660xorg_testset_save_CFLAGS="$CFLAGS"
8661
8662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8666if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8667then :
8668  printf %s "(cached) " >&6
8669else $as_nop
8670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671/* end confdefs.h.  */
8672int i;
8673_ACEOF
8674if ac_fn_c_try_compile "$LINENO"
8675then :
8676  xorg_cv_cc_flag_unknown_warning_option=yes
8677else $as_nop
8678  xorg_cv_cc_flag_unknown_warning_option=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8681fi
8682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8685	CFLAGS="$xorg_testset_save_CFLAGS"
8686fi
8687
8688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8691	fi
8692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8695if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8696then :
8697  printf %s "(cached) " >&6
8698else $as_nop
8699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700/* end confdefs.h.  */
8701int i;
8702_ACEOF
8703if ac_fn_c_try_compile "$LINENO"
8704then :
8705  xorg_cv_cc_flag_unused_command_line_argument=yes
8706else $as_nop
8707  xorg_cv_cc_flag_unused_command_line_argument=no
8708fi
8709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8710fi
8711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8714	CFLAGS="$xorg_testset_save_CFLAGS"
8715fi
8716
8717found="no"
8718
8719	if test $found = "no" ; then
8720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722		fi
8723
8724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8726		fi
8727
8728		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8729
8730		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8731printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8732		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8733		if eval test \${$cacheid+y}
8734then :
8735  printf %s "(cached) " >&6
8736else $as_nop
8737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738/* end confdefs.h.  */
8739int i;
8740int
8741main (void)
8742{
8743
8744  ;
8745  return 0;
8746}
8747_ACEOF
8748if ac_fn_c_try_link "$LINENO"
8749then :
8750  eval $cacheid=yes
8751else $as_nop
8752  eval $cacheid=no
8753fi
8754rm -f core conftest.err conftest.$ac_objext conftest.beam \
8755    conftest$ac_exeext conftest.$ac_ext
8756fi
8757
8758
8759		CFLAGS="$xorg_testset_save_CFLAGS"
8760
8761		eval supported=\$$cacheid
8762		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8763printf "%s\n" "$supported" >&6; }
8764		if test "$supported" = "yes" ; then
8765			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8766			found="yes"
8767		fi
8768	fi
8769
8770	if test $found = "no" ; then
8771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8773		fi
8774
8775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8777		fi
8778
8779		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8780
8781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8782printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8783		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8784		if eval test \${$cacheid+y}
8785then :
8786  printf %s "(cached) " >&6
8787else $as_nop
8788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789/* end confdefs.h.  */
8790int i;
8791int
8792main (void)
8793{
8794
8795  ;
8796  return 0;
8797}
8798_ACEOF
8799if ac_fn_c_try_link "$LINENO"
8800then :
8801  eval $cacheid=yes
8802else $as_nop
8803  eval $cacheid=no
8804fi
8805rm -f core conftest.err conftest.$ac_objext conftest.beam \
8806    conftest$ac_exeext conftest.$ac_ext
8807fi
8808
8809
8810		CFLAGS="$xorg_testset_save_CFLAGS"
8811
8812		eval supported=\$$cacheid
8813		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8814printf "%s\n" "$supported" >&6; }
8815		if test "$supported" = "yes" ; then
8816			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8817			found="yes"
8818		fi
8819	fi
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835xorg_testset_save_CFLAGS="$CFLAGS"
8836
8837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8838	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8839	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8841if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8842then :
8843  printf %s "(cached) " >&6
8844else $as_nop
8845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846/* end confdefs.h.  */
8847int i;
8848_ACEOF
8849if ac_fn_c_try_compile "$LINENO"
8850then :
8851  xorg_cv_cc_flag_unknown_warning_option=yes
8852else $as_nop
8853  xorg_cv_cc_flag_unknown_warning_option=no
8854fi
8855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8856fi
8857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8860	CFLAGS="$xorg_testset_save_CFLAGS"
8861fi
8862
8863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866	fi
8867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8870if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8871then :
8872  printf %s "(cached) " >&6
8873else $as_nop
8874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h.  */
8876int i;
8877_ACEOF
8878if ac_fn_c_try_compile "$LINENO"
8879then :
8880  xorg_cv_cc_flag_unused_command_line_argument=yes
8881else $as_nop
8882  xorg_cv_cc_flag_unused_command_line_argument=no
8883fi
8884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8885fi
8886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8888	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8889	CFLAGS="$xorg_testset_save_CFLAGS"
8890fi
8891
8892found="no"
8893
8894	if test $found = "no" ; then
8895		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8897		fi
8898
8899		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8901		fi
8902
8903		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8904
8905		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8906printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8907		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8908		if eval test \${$cacheid+y}
8909then :
8910  printf %s "(cached) " >&6
8911else $as_nop
8912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915int
8916main (void)
8917{
8918
8919  ;
8920  return 0;
8921}
8922_ACEOF
8923if ac_fn_c_try_link "$LINENO"
8924then :
8925  eval $cacheid=yes
8926else $as_nop
8927  eval $cacheid=no
8928fi
8929rm -f core conftest.err conftest.$ac_objext conftest.beam \
8930    conftest$ac_exeext conftest.$ac_ext
8931fi
8932
8933
8934		CFLAGS="$xorg_testset_save_CFLAGS"
8935
8936		eval supported=\$$cacheid
8937		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8938printf "%s\n" "$supported" >&6; }
8939		if test "$supported" = "yes" ; then
8940			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8941			found="yes"
8942		fi
8943	fi
8944
8945 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8946else
8947{ 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
8948printf "%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;}
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962xorg_testset_save_CFLAGS="$CFLAGS"
8963
8964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8969then :
8970  printf %s "(cached) " >&6
8971else $as_nop
8972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973/* end confdefs.h.  */
8974int i;
8975_ACEOF
8976if ac_fn_c_try_compile "$LINENO"
8977then :
8978  xorg_cv_cc_flag_unknown_warning_option=yes
8979else $as_nop
8980  xorg_cv_cc_flag_unknown_warning_option=no
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8983fi
8984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8987	CFLAGS="$xorg_testset_save_CFLAGS"
8988fi
8989
8990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993	fi
8994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8998then :
8999  printf %s "(cached) " >&6
9000else $as_nop
9001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002/* end confdefs.h.  */
9003int i;
9004_ACEOF
9005if ac_fn_c_try_compile "$LINENO"
9006then :
9007  xorg_cv_cc_flag_unused_command_line_argument=yes
9008else $as_nop
9009  xorg_cv_cc_flag_unused_command_line_argument=no
9010fi
9011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9012fi
9013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9016	CFLAGS="$xorg_testset_save_CFLAGS"
9017fi
9018
9019found="no"
9020
9021	if test $found = "no" ; then
9022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024		fi
9025
9026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028		fi
9029
9030		CFLAGS="$CFLAGS -Wimplicit"
9031
9032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9033printf %s "checking if $CC supports -Wimplicit... " >&6; }
9034		cacheid=xorg_cv_cc_flag__Wimplicit
9035		if eval test \${$cacheid+y}
9036then :
9037  printf %s "(cached) " >&6
9038else $as_nop
9039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041int i;
9042int
9043main (void)
9044{
9045
9046  ;
9047  return 0;
9048}
9049_ACEOF
9050if ac_fn_c_try_link "$LINENO"
9051then :
9052  eval $cacheid=yes
9053else $as_nop
9054  eval $cacheid=no
9055fi
9056rm -f core conftest.err conftest.$ac_objext conftest.beam \
9057    conftest$ac_exeext conftest.$ac_ext
9058fi
9059
9060
9061		CFLAGS="$xorg_testset_save_CFLAGS"
9062
9063		eval supported=\$$cacheid
9064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9065printf "%s\n" "$supported" >&6; }
9066		if test "$supported" = "yes" ; then
9067			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9068			found="yes"
9069		fi
9070	fi
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086xorg_testset_save_CFLAGS="$CFLAGS"
9087
9088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9093then :
9094  printf %s "(cached) " >&6
9095else $as_nop
9096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097/* end confdefs.h.  */
9098int i;
9099_ACEOF
9100if ac_fn_c_try_compile "$LINENO"
9101then :
9102  xorg_cv_cc_flag_unknown_warning_option=yes
9103else $as_nop
9104  xorg_cv_cc_flag_unknown_warning_option=no
9105fi
9106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9107fi
9108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9111	CFLAGS="$xorg_testset_save_CFLAGS"
9112fi
9113
9114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117	fi
9118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9122then :
9123  printf %s "(cached) " >&6
9124else $as_nop
9125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126/* end confdefs.h.  */
9127int i;
9128_ACEOF
9129if ac_fn_c_try_compile "$LINENO"
9130then :
9131  xorg_cv_cc_flag_unused_command_line_argument=yes
9132else $as_nop
9133  xorg_cv_cc_flag_unused_command_line_argument=no
9134fi
9135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9136fi
9137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9140	CFLAGS="$xorg_testset_save_CFLAGS"
9141fi
9142
9143found="no"
9144
9145	if test $found = "no" ; then
9146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148		fi
9149
9150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9152		fi
9153
9154		CFLAGS="$CFLAGS -Wnonnull"
9155
9156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9157printf %s "checking if $CC supports -Wnonnull... " >&6; }
9158		cacheid=xorg_cv_cc_flag__Wnonnull
9159		if eval test \${$cacheid+y}
9160then :
9161  printf %s "(cached) " >&6
9162else $as_nop
9163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164/* end confdefs.h.  */
9165int i;
9166int
9167main (void)
9168{
9169
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174if ac_fn_c_try_link "$LINENO"
9175then :
9176  eval $cacheid=yes
9177else $as_nop
9178  eval $cacheid=no
9179fi
9180rm -f core conftest.err conftest.$ac_objext conftest.beam \
9181    conftest$ac_exeext conftest.$ac_ext
9182fi
9183
9184
9185		CFLAGS="$xorg_testset_save_CFLAGS"
9186
9187		eval supported=\$$cacheid
9188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9189printf "%s\n" "$supported" >&6; }
9190		if test "$supported" = "yes" ; then
9191			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9192			found="yes"
9193		fi
9194	fi
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210xorg_testset_save_CFLAGS="$CFLAGS"
9211
9212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9216if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9217then :
9218  printf %s "(cached) " >&6
9219else $as_nop
9220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221/* end confdefs.h.  */
9222int i;
9223_ACEOF
9224if ac_fn_c_try_compile "$LINENO"
9225then :
9226  xorg_cv_cc_flag_unknown_warning_option=yes
9227else $as_nop
9228  xorg_cv_cc_flag_unknown_warning_option=no
9229fi
9230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9231fi
9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9235	CFLAGS="$xorg_testset_save_CFLAGS"
9236fi
9237
9238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241	fi
9242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9245if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9246then :
9247  printf %s "(cached) " >&6
9248else $as_nop
9249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252_ACEOF
9253if ac_fn_c_try_compile "$LINENO"
9254then :
9255  xorg_cv_cc_flag_unused_command_line_argument=yes
9256else $as_nop
9257  xorg_cv_cc_flag_unused_command_line_argument=no
9258fi
9259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9260fi
9261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9264	CFLAGS="$xorg_testset_save_CFLAGS"
9265fi
9266
9267found="no"
9268
9269	if test $found = "no" ; then
9270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272		fi
9273
9274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9276		fi
9277
9278		CFLAGS="$CFLAGS -Winit-self"
9279
9280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9281printf %s "checking if $CC supports -Winit-self... " >&6; }
9282		cacheid=xorg_cv_cc_flag__Winit_self
9283		if eval test \${$cacheid+y}
9284then :
9285  printf %s "(cached) " >&6
9286else $as_nop
9287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288/* end confdefs.h.  */
9289int i;
9290int
9291main (void)
9292{
9293
9294  ;
9295  return 0;
9296}
9297_ACEOF
9298if ac_fn_c_try_link "$LINENO"
9299then :
9300  eval $cacheid=yes
9301else $as_nop
9302  eval $cacheid=no
9303fi
9304rm -f core conftest.err conftest.$ac_objext conftest.beam \
9305    conftest$ac_exeext conftest.$ac_ext
9306fi
9307
9308
9309		CFLAGS="$xorg_testset_save_CFLAGS"
9310
9311		eval supported=\$$cacheid
9312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9313printf "%s\n" "$supported" >&6; }
9314		if test "$supported" = "yes" ; then
9315			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9316			found="yes"
9317		fi
9318	fi
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334xorg_testset_save_CFLAGS="$CFLAGS"
9335
9336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9340if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9341then :
9342  printf %s "(cached) " >&6
9343else $as_nop
9344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345/* end confdefs.h.  */
9346int i;
9347_ACEOF
9348if ac_fn_c_try_compile "$LINENO"
9349then :
9350  xorg_cv_cc_flag_unknown_warning_option=yes
9351else $as_nop
9352  xorg_cv_cc_flag_unknown_warning_option=no
9353fi
9354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9355fi
9356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9359	CFLAGS="$xorg_testset_save_CFLAGS"
9360fi
9361
9362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9365	fi
9366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9369if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9370then :
9371  printf %s "(cached) " >&6
9372else $as_nop
9373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h.  */
9375int i;
9376_ACEOF
9377if ac_fn_c_try_compile "$LINENO"
9378then :
9379  xorg_cv_cc_flag_unused_command_line_argument=yes
9380else $as_nop
9381  xorg_cv_cc_flag_unused_command_line_argument=no
9382fi
9383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9384fi
9385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9386printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9388	CFLAGS="$xorg_testset_save_CFLAGS"
9389fi
9390
9391found="no"
9392
9393	if test $found = "no" ; then
9394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9396		fi
9397
9398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9400		fi
9401
9402		CFLAGS="$CFLAGS -Wmain"
9403
9404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9405printf %s "checking if $CC supports -Wmain... " >&6; }
9406		cacheid=xorg_cv_cc_flag__Wmain
9407		if eval test \${$cacheid+y}
9408then :
9409  printf %s "(cached) " >&6
9410else $as_nop
9411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h.  */
9413int i;
9414int
9415main (void)
9416{
9417
9418  ;
9419  return 0;
9420}
9421_ACEOF
9422if ac_fn_c_try_link "$LINENO"
9423then :
9424  eval $cacheid=yes
9425else $as_nop
9426  eval $cacheid=no
9427fi
9428rm -f core conftest.err conftest.$ac_objext conftest.beam \
9429    conftest$ac_exeext conftest.$ac_ext
9430fi
9431
9432
9433		CFLAGS="$xorg_testset_save_CFLAGS"
9434
9435		eval supported=\$$cacheid
9436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9437printf "%s\n" "$supported" >&6; }
9438		if test "$supported" = "yes" ; then
9439			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9440			found="yes"
9441		fi
9442	fi
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9464if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9465then :
9466  printf %s "(cached) " >&6
9467else $as_nop
9468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469/* end confdefs.h.  */
9470int i;
9471_ACEOF
9472if ac_fn_c_try_compile "$LINENO"
9473then :
9474  xorg_cv_cc_flag_unknown_warning_option=yes
9475else $as_nop
9476  xorg_cv_cc_flag_unknown_warning_option=no
9477fi
9478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9479fi
9480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9483	CFLAGS="$xorg_testset_save_CFLAGS"
9484fi
9485
9486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489	fi
9490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9493if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9494then :
9495  printf %s "(cached) " >&6
9496else $as_nop
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499int i;
9500_ACEOF
9501if ac_fn_c_try_compile "$LINENO"
9502then :
9503  xorg_cv_cc_flag_unused_command_line_argument=yes
9504else $as_nop
9505  xorg_cv_cc_flag_unused_command_line_argument=no
9506fi
9507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9508fi
9509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9511	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9512	CFLAGS="$xorg_testset_save_CFLAGS"
9513fi
9514
9515found="no"
9516
9517	if test $found = "no" ; then
9518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9520		fi
9521
9522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9524		fi
9525
9526		CFLAGS="$CFLAGS -Wmissing-braces"
9527
9528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9529printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9530		cacheid=xorg_cv_cc_flag__Wmissing_braces
9531		if eval test \${$cacheid+y}
9532then :
9533  printf %s "(cached) " >&6
9534else $as_nop
9535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537int i;
9538int
9539main (void)
9540{
9541
9542  ;
9543  return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_link "$LINENO"
9547then :
9548  eval $cacheid=yes
9549else $as_nop
9550  eval $cacheid=no
9551fi
9552rm -f core conftest.err conftest.$ac_objext conftest.beam \
9553    conftest$ac_exeext conftest.$ac_ext
9554fi
9555
9556
9557		CFLAGS="$xorg_testset_save_CFLAGS"
9558
9559		eval supported=\$$cacheid
9560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9561printf "%s\n" "$supported" >&6; }
9562		if test "$supported" = "yes" ; then
9563			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9564			found="yes"
9565		fi
9566	fi
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582xorg_testset_save_CFLAGS="$CFLAGS"
9583
9584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9587printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9588if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9589then :
9590  printf %s "(cached) " >&6
9591else $as_nop
9592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h.  */
9594int i;
9595_ACEOF
9596if ac_fn_c_try_compile "$LINENO"
9597then :
9598  xorg_cv_cc_flag_unknown_warning_option=yes
9599else $as_nop
9600  xorg_cv_cc_flag_unknown_warning_option=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9603fi
9604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9605printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9607	CFLAGS="$xorg_testset_save_CFLAGS"
9608fi
9609
9610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613	fi
9614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9616printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9617if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9618then :
9619  printf %s "(cached) " >&6
9620else $as_nop
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624_ACEOF
9625if ac_fn_c_try_compile "$LINENO"
9626then :
9627  xorg_cv_cc_flag_unused_command_line_argument=yes
9628else $as_nop
9629  xorg_cv_cc_flag_unused_command_line_argument=no
9630fi
9631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9632fi
9633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9634printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9635	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9636	CFLAGS="$xorg_testset_save_CFLAGS"
9637fi
9638
9639found="no"
9640
9641	if test $found = "no" ; then
9642		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9643			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644		fi
9645
9646		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9647			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9648		fi
9649
9650		CFLAGS="$CFLAGS -Wsequence-point"
9651
9652		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9653printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9654		cacheid=xorg_cv_cc_flag__Wsequence_point
9655		if eval test \${$cacheid+y}
9656then :
9657  printf %s "(cached) " >&6
9658else $as_nop
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661int i;
9662int
9663main (void)
9664{
9665
9666  ;
9667  return 0;
9668}
9669_ACEOF
9670if ac_fn_c_try_link "$LINENO"
9671then :
9672  eval $cacheid=yes
9673else $as_nop
9674  eval $cacheid=no
9675fi
9676rm -f core conftest.err conftest.$ac_objext conftest.beam \
9677    conftest$ac_exeext conftest.$ac_ext
9678fi
9679
9680
9681		CFLAGS="$xorg_testset_save_CFLAGS"
9682
9683		eval supported=\$$cacheid
9684		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9685printf "%s\n" "$supported" >&6; }
9686		if test "$supported" = "yes" ; then
9687			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9688			found="yes"
9689		fi
9690	fi
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706xorg_testset_save_CFLAGS="$CFLAGS"
9707
9708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9711printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9712if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9713then :
9714  printf %s "(cached) " >&6
9715else $as_nop
9716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717/* end confdefs.h.  */
9718int i;
9719_ACEOF
9720if ac_fn_c_try_compile "$LINENO"
9721then :
9722  xorg_cv_cc_flag_unknown_warning_option=yes
9723else $as_nop
9724  xorg_cv_cc_flag_unknown_warning_option=no
9725fi
9726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9727fi
9728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9730	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9731	CFLAGS="$xorg_testset_save_CFLAGS"
9732fi
9733
9734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9735	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9736		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9737	fi
9738	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9741if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9742then :
9743  printf %s "(cached) " >&6
9744else $as_nop
9745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746/* end confdefs.h.  */
9747int i;
9748_ACEOF
9749if ac_fn_c_try_compile "$LINENO"
9750then :
9751  xorg_cv_cc_flag_unused_command_line_argument=yes
9752else $as_nop
9753  xorg_cv_cc_flag_unused_command_line_argument=no
9754fi
9755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9756fi
9757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9758printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9759	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9760	CFLAGS="$xorg_testset_save_CFLAGS"
9761fi
9762
9763found="no"
9764
9765	if test $found = "no" ; then
9766		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9768		fi
9769
9770		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772		fi
9773
9774		CFLAGS="$CFLAGS -Wreturn-type"
9775
9776		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9777printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9778		cacheid=xorg_cv_cc_flag__Wreturn_type
9779		if eval test \${$cacheid+y}
9780then :
9781  printf %s "(cached) " >&6
9782else $as_nop
9783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784/* end confdefs.h.  */
9785int i;
9786int
9787main (void)
9788{
9789
9790  ;
9791  return 0;
9792}
9793_ACEOF
9794if ac_fn_c_try_link "$LINENO"
9795then :
9796  eval $cacheid=yes
9797else $as_nop
9798  eval $cacheid=no
9799fi
9800rm -f core conftest.err conftest.$ac_objext conftest.beam \
9801    conftest$ac_exeext conftest.$ac_ext
9802fi
9803
9804
9805		CFLAGS="$xorg_testset_save_CFLAGS"
9806
9807		eval supported=\$$cacheid
9808		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9809printf "%s\n" "$supported" >&6; }
9810		if test "$supported" = "yes" ; then
9811			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9812			found="yes"
9813		fi
9814	fi
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830xorg_testset_save_CFLAGS="$CFLAGS"
9831
9832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9833	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9836if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9837then :
9838  printf %s "(cached) " >&6
9839else $as_nop
9840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841/* end confdefs.h.  */
9842int i;
9843_ACEOF
9844if ac_fn_c_try_compile "$LINENO"
9845then :
9846  xorg_cv_cc_flag_unknown_warning_option=yes
9847else $as_nop
9848  xorg_cv_cc_flag_unknown_warning_option=no
9849fi
9850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9851fi
9852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9853printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9854	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9855	CFLAGS="$xorg_testset_save_CFLAGS"
9856fi
9857
9858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9859	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9860		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9861	fi
9862	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9863	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9864printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9865if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9866then :
9867  printf %s "(cached) " >&6
9868else $as_nop
9869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h.  */
9871int i;
9872_ACEOF
9873if ac_fn_c_try_compile "$LINENO"
9874then :
9875  xorg_cv_cc_flag_unused_command_line_argument=yes
9876else $as_nop
9877  xorg_cv_cc_flag_unused_command_line_argument=no
9878fi
9879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9880fi
9881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9883	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9884	CFLAGS="$xorg_testset_save_CFLAGS"
9885fi
9886
9887found="no"
9888
9889	if test $found = "no" ; then
9890		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892		fi
9893
9894		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9896		fi
9897
9898		CFLAGS="$CFLAGS -Wtrigraphs"
9899
9900		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9901printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9902		cacheid=xorg_cv_cc_flag__Wtrigraphs
9903		if eval test \${$cacheid+y}
9904then :
9905  printf %s "(cached) " >&6
9906else $as_nop
9907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908/* end confdefs.h.  */
9909int i;
9910int
9911main (void)
9912{
9913
9914  ;
9915  return 0;
9916}
9917_ACEOF
9918if ac_fn_c_try_link "$LINENO"
9919then :
9920  eval $cacheid=yes
9921else $as_nop
9922  eval $cacheid=no
9923fi
9924rm -f core conftest.err conftest.$ac_objext conftest.beam \
9925    conftest$ac_exeext conftest.$ac_ext
9926fi
9927
9928
9929		CFLAGS="$xorg_testset_save_CFLAGS"
9930
9931		eval supported=\$$cacheid
9932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9933printf "%s\n" "$supported" >&6; }
9934		if test "$supported" = "yes" ; then
9935			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9936			found="yes"
9937		fi
9938	fi
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954xorg_testset_save_CFLAGS="$CFLAGS"
9955
9956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9957	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9960if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9961then :
9962  printf %s "(cached) " >&6
9963else $as_nop
9964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965/* end confdefs.h.  */
9966int i;
9967_ACEOF
9968if ac_fn_c_try_compile "$LINENO"
9969then :
9970  xorg_cv_cc_flag_unknown_warning_option=yes
9971else $as_nop
9972  xorg_cv_cc_flag_unknown_warning_option=no
9973fi
9974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9975fi
9976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9979	CFLAGS="$xorg_testset_save_CFLAGS"
9980fi
9981
9982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985	fi
9986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9989if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9990then :
9991  printf %s "(cached) " >&6
9992else $as_nop
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996_ACEOF
9997if ac_fn_c_try_compile "$LINENO"
9998then :
9999  xorg_cv_cc_flag_unused_command_line_argument=yes
10000else $as_nop
10001  xorg_cv_cc_flag_unused_command_line_argument=no
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10004fi
10005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10008	CFLAGS="$xorg_testset_save_CFLAGS"
10009fi
10010
10011found="no"
10012
10013	if test $found = "no" ; then
10014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10016		fi
10017
10018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10020		fi
10021
10022		CFLAGS="$CFLAGS -Warray-bounds"
10023
10024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10025printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10026		cacheid=xorg_cv_cc_flag__Warray_bounds
10027		if eval test \${$cacheid+y}
10028then :
10029  printf %s "(cached) " >&6
10030else $as_nop
10031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032/* end confdefs.h.  */
10033int i;
10034int
10035main (void)
10036{
10037
10038  ;
10039  return 0;
10040}
10041_ACEOF
10042if ac_fn_c_try_link "$LINENO"
10043then :
10044  eval $cacheid=yes
10045else $as_nop
10046  eval $cacheid=no
10047fi
10048rm -f core conftest.err conftest.$ac_objext conftest.beam \
10049    conftest$ac_exeext conftest.$ac_ext
10050fi
10051
10052
10053		CFLAGS="$xorg_testset_save_CFLAGS"
10054
10055		eval supported=\$$cacheid
10056		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10057printf "%s\n" "$supported" >&6; }
10058		if test "$supported" = "yes" ; then
10059			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10060			found="yes"
10061		fi
10062	fi
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078xorg_testset_save_CFLAGS="$CFLAGS"
10079
10080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10084if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10085then :
10086  printf %s "(cached) " >&6
10087else $as_nop
10088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089/* end confdefs.h.  */
10090int i;
10091_ACEOF
10092if ac_fn_c_try_compile "$LINENO"
10093then :
10094  xorg_cv_cc_flag_unknown_warning_option=yes
10095else $as_nop
10096  xorg_cv_cc_flag_unknown_warning_option=no
10097fi
10098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10099fi
10100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10103	CFLAGS="$xorg_testset_save_CFLAGS"
10104fi
10105
10106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109	fi
10110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10113if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10114then :
10115  printf %s "(cached) " >&6
10116else $as_nop
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119int i;
10120_ACEOF
10121if ac_fn_c_try_compile "$LINENO"
10122then :
10123  xorg_cv_cc_flag_unused_command_line_argument=yes
10124else $as_nop
10125  xorg_cv_cc_flag_unused_command_line_argument=no
10126fi
10127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10128fi
10129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10132	CFLAGS="$xorg_testset_save_CFLAGS"
10133fi
10134
10135found="no"
10136
10137	if test $found = "no" ; then
10138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140		fi
10141
10142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10144		fi
10145
10146		CFLAGS="$CFLAGS -Wwrite-strings"
10147
10148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10149printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10150		cacheid=xorg_cv_cc_flag__Wwrite_strings
10151		if eval test \${$cacheid+y}
10152then :
10153  printf %s "(cached) " >&6
10154else $as_nop
10155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156/* end confdefs.h.  */
10157int i;
10158int
10159main (void)
10160{
10161
10162  ;
10163  return 0;
10164}
10165_ACEOF
10166if ac_fn_c_try_link "$LINENO"
10167then :
10168  eval $cacheid=yes
10169else $as_nop
10170  eval $cacheid=no
10171fi
10172rm -f core conftest.err conftest.$ac_objext conftest.beam \
10173    conftest$ac_exeext conftest.$ac_ext
10174fi
10175
10176
10177		CFLAGS="$xorg_testset_save_CFLAGS"
10178
10179		eval supported=\$$cacheid
10180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10181printf "%s\n" "$supported" >&6; }
10182		if test "$supported" = "yes" ; then
10183			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10184			found="yes"
10185		fi
10186	fi
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202xorg_testset_save_CFLAGS="$CFLAGS"
10203
10204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10208if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10209then :
10210  printf %s "(cached) " >&6
10211else $as_nop
10212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213/* end confdefs.h.  */
10214int i;
10215_ACEOF
10216if ac_fn_c_try_compile "$LINENO"
10217then :
10218  xorg_cv_cc_flag_unknown_warning_option=yes
10219else $as_nop
10220  xorg_cv_cc_flag_unknown_warning_option=no
10221fi
10222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10223fi
10224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10227	CFLAGS="$xorg_testset_save_CFLAGS"
10228fi
10229
10230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10233	fi
10234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10237if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10238then :
10239  printf %s "(cached) " >&6
10240else $as_nop
10241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243int i;
10244_ACEOF
10245if ac_fn_c_try_compile "$LINENO"
10246then :
10247  xorg_cv_cc_flag_unused_command_line_argument=yes
10248else $as_nop
10249  xorg_cv_cc_flag_unused_command_line_argument=no
10250fi
10251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10252fi
10253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10256	CFLAGS="$xorg_testset_save_CFLAGS"
10257fi
10258
10259found="no"
10260
10261	if test $found = "no" ; then
10262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10264		fi
10265
10266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10268		fi
10269
10270		CFLAGS="$CFLAGS -Waddress"
10271
10272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10273printf %s "checking if $CC supports -Waddress... " >&6; }
10274		cacheid=xorg_cv_cc_flag__Waddress
10275		if eval test \${$cacheid+y}
10276then :
10277  printf %s "(cached) " >&6
10278else $as_nop
10279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280/* end confdefs.h.  */
10281int i;
10282int
10283main (void)
10284{
10285
10286  ;
10287  return 0;
10288}
10289_ACEOF
10290if ac_fn_c_try_link "$LINENO"
10291then :
10292  eval $cacheid=yes
10293else $as_nop
10294  eval $cacheid=no
10295fi
10296rm -f core conftest.err conftest.$ac_objext conftest.beam \
10297    conftest$ac_exeext conftest.$ac_ext
10298fi
10299
10300
10301		CFLAGS="$xorg_testset_save_CFLAGS"
10302
10303		eval supported=\$$cacheid
10304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10305printf "%s\n" "$supported" >&6; }
10306		if test "$supported" = "yes" ; then
10307			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10308			found="yes"
10309		fi
10310	fi
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326xorg_testset_save_CFLAGS="$CFLAGS"
10327
10328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10332if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10333then :
10334  printf %s "(cached) " >&6
10335else $as_nop
10336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338int i;
10339_ACEOF
10340if ac_fn_c_try_compile "$LINENO"
10341then :
10342  xorg_cv_cc_flag_unknown_warning_option=yes
10343else $as_nop
10344  xorg_cv_cc_flag_unknown_warning_option=no
10345fi
10346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10347fi
10348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10351	CFLAGS="$xorg_testset_save_CFLAGS"
10352fi
10353
10354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10357	fi
10358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10361if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10362then :
10363  printf %s "(cached) " >&6
10364else $as_nop
10365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h.  */
10367int i;
10368_ACEOF
10369if ac_fn_c_try_compile "$LINENO"
10370then :
10371  xorg_cv_cc_flag_unused_command_line_argument=yes
10372else $as_nop
10373  xorg_cv_cc_flag_unused_command_line_argument=no
10374fi
10375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10376fi
10377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10380	CFLAGS="$xorg_testset_save_CFLAGS"
10381fi
10382
10383found="no"
10384
10385	if test $found = "no" ; then
10386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10388		fi
10389
10390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10392		fi
10393
10394		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10395
10396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10397printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10398		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10399		if eval test \${$cacheid+y}
10400then :
10401  printf %s "(cached) " >&6
10402else $as_nop
10403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404/* end confdefs.h.  */
10405int i;
10406int
10407main (void)
10408{
10409
10410  ;
10411  return 0;
10412}
10413_ACEOF
10414if ac_fn_c_try_link "$LINENO"
10415then :
10416  eval $cacheid=yes
10417else $as_nop
10418  eval $cacheid=no
10419fi
10420rm -f core conftest.err conftest.$ac_objext conftest.beam \
10421    conftest$ac_exeext conftest.$ac_ext
10422fi
10423
10424
10425		CFLAGS="$xorg_testset_save_CFLAGS"
10426
10427		eval supported=\$$cacheid
10428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10429printf "%s\n" "$supported" >&6; }
10430		if test "$supported" = "yes" ; then
10431			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10432			found="yes"
10433		fi
10434	fi
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450xorg_testset_save_CFLAGS="$CFLAGS"
10451
10452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10456if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10457then :
10458  printf %s "(cached) " >&6
10459else $as_nop
10460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461/* end confdefs.h.  */
10462int i;
10463_ACEOF
10464if ac_fn_c_try_compile "$LINENO"
10465then :
10466  xorg_cv_cc_flag_unknown_warning_option=yes
10467else $as_nop
10468  xorg_cv_cc_flag_unknown_warning_option=no
10469fi
10470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10471fi
10472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10475	CFLAGS="$xorg_testset_save_CFLAGS"
10476fi
10477
10478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10481	fi
10482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10485if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10486then :
10487  printf %s "(cached) " >&6
10488else $as_nop
10489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490/* end confdefs.h.  */
10491int i;
10492_ACEOF
10493if ac_fn_c_try_compile "$LINENO"
10494then :
10495  xorg_cv_cc_flag_unused_command_line_argument=yes
10496else $as_nop
10497  xorg_cv_cc_flag_unused_command_line_argument=no
10498fi
10499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10500fi
10501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10502printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10504	CFLAGS="$xorg_testset_save_CFLAGS"
10505fi
10506
10507found="no"
10508
10509	if test $found = "no" ; then
10510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10512		fi
10513
10514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10516		fi
10517
10518		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10519
10520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10521printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10522		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10523		if eval test \${$cacheid+y}
10524then :
10525  printf %s "(cached) " >&6
10526else $as_nop
10527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528/* end confdefs.h.  */
10529int i;
10530int
10531main (void)
10532{
10533
10534  ;
10535  return 0;
10536}
10537_ACEOF
10538if ac_fn_c_try_link "$LINENO"
10539then :
10540  eval $cacheid=yes
10541else $as_nop
10542  eval $cacheid=no
10543fi
10544rm -f core conftest.err conftest.$ac_objext conftest.beam \
10545    conftest$ac_exeext conftest.$ac_ext
10546fi
10547
10548
10549		CFLAGS="$xorg_testset_save_CFLAGS"
10550
10551		eval supported=\$$cacheid
10552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10553printf "%s\n" "$supported" >&6; }
10554		if test "$supported" = "yes" ; then
10555			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10556			found="yes"
10557		fi
10558	fi
10559
10560
10561fi
10562
10563
10564
10565
10566
10567
10568
10569		CWARNFLAGS="$BASE_CFLAGS"
10570		if  test "x$GCC" = xyes ; then
10571		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10572		fi
10573
10574
10575
10576
10577
10578
10579
10580
10581# Check whether --enable-strict-compilation was given.
10582if test ${enable_strict_compilation+y}
10583then :
10584  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10585else $as_nop
10586  STRICT_COMPILE=no
10587fi
10588
10589
10590
10591
10592
10593
10594STRICT_CFLAGS=""
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608xorg_testset_save_CFLAGS="$CFLAGS"
10609
10610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10614if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10615then :
10616  printf %s "(cached) " >&6
10617else $as_nop
10618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619/* end confdefs.h.  */
10620int i;
10621_ACEOF
10622if ac_fn_c_try_compile "$LINENO"
10623then :
10624  xorg_cv_cc_flag_unknown_warning_option=yes
10625else $as_nop
10626  xorg_cv_cc_flag_unknown_warning_option=no
10627fi
10628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10629fi
10630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10633	CFLAGS="$xorg_testset_save_CFLAGS"
10634fi
10635
10636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10639	fi
10640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10641	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10643if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10644then :
10645  printf %s "(cached) " >&6
10646else $as_nop
10647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648/* end confdefs.h.  */
10649int i;
10650_ACEOF
10651if ac_fn_c_try_compile "$LINENO"
10652then :
10653  xorg_cv_cc_flag_unused_command_line_argument=yes
10654else $as_nop
10655  xorg_cv_cc_flag_unused_command_line_argument=no
10656fi
10657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10658fi
10659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10662	CFLAGS="$xorg_testset_save_CFLAGS"
10663fi
10664
10665found="no"
10666
10667	if test $found = "no" ; then
10668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10670		fi
10671
10672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10674		fi
10675
10676		CFLAGS="$CFLAGS -pedantic"
10677
10678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10679printf %s "checking if $CC supports -pedantic... " >&6; }
10680		cacheid=xorg_cv_cc_flag__pedantic
10681		if eval test \${$cacheid+y}
10682then :
10683  printf %s "(cached) " >&6
10684else $as_nop
10685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686/* end confdefs.h.  */
10687int i;
10688int
10689main (void)
10690{
10691
10692  ;
10693  return 0;
10694}
10695_ACEOF
10696if ac_fn_c_try_link "$LINENO"
10697then :
10698  eval $cacheid=yes
10699else $as_nop
10700  eval $cacheid=no
10701fi
10702rm -f core conftest.err conftest.$ac_objext conftest.beam \
10703    conftest$ac_exeext conftest.$ac_ext
10704fi
10705
10706
10707		CFLAGS="$xorg_testset_save_CFLAGS"
10708
10709		eval supported=\$$cacheid
10710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10711printf "%s\n" "$supported" >&6; }
10712		if test "$supported" = "yes" ; then
10713			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10714			found="yes"
10715		fi
10716	fi
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732xorg_testset_save_CFLAGS="$CFLAGS"
10733
10734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10737printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10738if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10739then :
10740  printf %s "(cached) " >&6
10741else $as_nop
10742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743/* end confdefs.h.  */
10744int i;
10745_ACEOF
10746if ac_fn_c_try_compile "$LINENO"
10747then :
10748  xorg_cv_cc_flag_unknown_warning_option=yes
10749else $as_nop
10750  xorg_cv_cc_flag_unknown_warning_option=no
10751fi
10752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10753fi
10754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10757	CFLAGS="$xorg_testset_save_CFLAGS"
10758fi
10759
10760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10763	fi
10764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10765	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10767if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10768then :
10769  printf %s "(cached) " >&6
10770else $as_nop
10771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772/* end confdefs.h.  */
10773int i;
10774_ACEOF
10775if ac_fn_c_try_compile "$LINENO"
10776then :
10777  xorg_cv_cc_flag_unused_command_line_argument=yes
10778else $as_nop
10779  xorg_cv_cc_flag_unused_command_line_argument=no
10780fi
10781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10782fi
10783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10784printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10786	CFLAGS="$xorg_testset_save_CFLAGS"
10787fi
10788
10789found="no"
10790
10791	if test $found = "no" ; then
10792		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10794		fi
10795
10796		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10798		fi
10799
10800		CFLAGS="$CFLAGS -Werror"
10801
10802		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10803printf %s "checking if $CC supports -Werror... " >&6; }
10804		cacheid=xorg_cv_cc_flag__Werror
10805		if eval test \${$cacheid+y}
10806then :
10807  printf %s "(cached) " >&6
10808else $as_nop
10809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810/* end confdefs.h.  */
10811int i;
10812int
10813main (void)
10814{
10815
10816  ;
10817  return 0;
10818}
10819_ACEOF
10820if ac_fn_c_try_link "$LINENO"
10821then :
10822  eval $cacheid=yes
10823else $as_nop
10824  eval $cacheid=no
10825fi
10826rm -f core conftest.err conftest.$ac_objext conftest.beam \
10827    conftest$ac_exeext conftest.$ac_ext
10828fi
10829
10830
10831		CFLAGS="$xorg_testset_save_CFLAGS"
10832
10833		eval supported=\$$cacheid
10834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10835printf "%s\n" "$supported" >&6; }
10836		if test "$supported" = "yes" ; then
10837			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10838			found="yes"
10839		fi
10840	fi
10841
10842	if test $found = "no" ; then
10843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10845		fi
10846
10847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10849		fi
10850
10851		CFLAGS="$CFLAGS -errwarn"
10852
10853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10854printf %s "checking if $CC supports -errwarn... " >&6; }
10855		cacheid=xorg_cv_cc_flag__errwarn
10856		if eval test \${$cacheid+y}
10857then :
10858  printf %s "(cached) " >&6
10859else $as_nop
10860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861/* end confdefs.h.  */
10862int i;
10863int
10864main (void)
10865{
10866
10867  ;
10868  return 0;
10869}
10870_ACEOF
10871if ac_fn_c_try_link "$LINENO"
10872then :
10873  eval $cacheid=yes
10874else $as_nop
10875  eval $cacheid=no
10876fi
10877rm -f core conftest.err conftest.$ac_objext conftest.beam \
10878    conftest$ac_exeext conftest.$ac_ext
10879fi
10880
10881
10882		CFLAGS="$xorg_testset_save_CFLAGS"
10883
10884		eval supported=\$$cacheid
10885		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10886printf "%s\n" "$supported" >&6; }
10887		if test "$supported" = "yes" ; then
10888			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10889			found="yes"
10890		fi
10891	fi
10892
10893
10894
10895# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10896# activate it with -Werror, so we add it here explicitly.
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910xorg_testset_save_CFLAGS="$CFLAGS"
10911
10912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10916if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10917then :
10918  printf %s "(cached) " >&6
10919else $as_nop
10920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h.  */
10922int i;
10923_ACEOF
10924if ac_fn_c_try_compile "$LINENO"
10925then :
10926  xorg_cv_cc_flag_unknown_warning_option=yes
10927else $as_nop
10928  xorg_cv_cc_flag_unknown_warning_option=no
10929fi
10930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10931fi
10932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10935	CFLAGS="$xorg_testset_save_CFLAGS"
10936fi
10937
10938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10941	fi
10942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10945if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10946then :
10947  printf %s "(cached) " >&6
10948else $as_nop
10949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h.  */
10951int i;
10952_ACEOF
10953if ac_fn_c_try_compile "$LINENO"
10954then :
10955  xorg_cv_cc_flag_unused_command_line_argument=yes
10956else $as_nop
10957  xorg_cv_cc_flag_unused_command_line_argument=no
10958fi
10959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10960fi
10961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10964	CFLAGS="$xorg_testset_save_CFLAGS"
10965fi
10966
10967found="no"
10968
10969	if test $found = "no" ; then
10970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10972		fi
10973
10974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10976		fi
10977
10978		CFLAGS="$CFLAGS -Werror=attributes"
10979
10980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10981printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10982		cacheid=xorg_cv_cc_flag__Werror_attributes
10983		if eval test \${$cacheid+y}
10984then :
10985  printf %s "(cached) " >&6
10986else $as_nop
10987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988/* end confdefs.h.  */
10989int i;
10990int
10991main (void)
10992{
10993
10994  ;
10995  return 0;
10996}
10997_ACEOF
10998if ac_fn_c_try_link "$LINENO"
10999then :
11000  eval $cacheid=yes
11001else $as_nop
11002  eval $cacheid=no
11003fi
11004rm -f core conftest.err conftest.$ac_objext conftest.beam \
11005    conftest$ac_exeext conftest.$ac_ext
11006fi
11007
11008
11009		CFLAGS="$xorg_testset_save_CFLAGS"
11010
11011		eval supported=\$$cacheid
11012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11013printf "%s\n" "$supported" >&6; }
11014		if test "$supported" = "yes" ; then
11015			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11016			found="yes"
11017		fi
11018	fi
11019
11020
11021
11022if test "x$STRICT_COMPILE" = "xyes"; then
11023    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11024    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11025fi
11026
11027
11028
11029
11030
11031
11032cat >>confdefs.h <<_ACEOF
11033#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11034_ACEOF
11035
11036	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11037	if test "x$PVM" = "x"; then
11038		PVM="0"
11039	fi
11040
11041printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11042
11043	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11044	if test "x$PVP" = "x"; then
11045		PVP="0"
11046	fi
11047
11048printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11049
11050
11051
11052CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11053mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11054|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11055touch \$(top_srcdir)/ChangeLog; \
11056echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11057
11058
11059
11060
11061macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11062INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11063mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11064|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11065touch \$(top_srcdir)/INSTALL; \
11066echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11067
11068
11069
11070
11071
11072
11073case $host_os in
11074    solaris*)
11075        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11076        # check for a man page file found in later versions that use
11077        # traditional section numbers instead
11078        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11079printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11080if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11081then :
11082  printf %s "(cached) " >&6
11083else $as_nop
11084  test "$cross_compiling" = yes &&
11085  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11086if test -r "/usr/share/man/man7/attributes.7"; then
11087  ac_cv_file__usr_share_man_man7_attributes_7=yes
11088else
11089  ac_cv_file__usr_share_man_man7_attributes_7=no
11090fi
11091fi
11092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11093printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11094if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11095then :
11096  SYSV_MAN_SECTIONS=false
11097else $as_nop
11098  SYSV_MAN_SECTIONS=true
11099fi
11100
11101        ;;
11102    *) SYSV_MAN_SECTIONS=false ;;
11103esac
11104
11105if test x$APP_MAN_SUFFIX = x    ; then
11106    APP_MAN_SUFFIX=1
11107fi
11108if test x$APP_MAN_DIR = x    ; then
11109    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11110fi
11111
11112if test x$LIB_MAN_SUFFIX = x    ; then
11113    LIB_MAN_SUFFIX=3
11114fi
11115if test x$LIB_MAN_DIR = x    ; then
11116    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11117fi
11118
11119if test x$FILE_MAN_SUFFIX = x    ; then
11120    case $SYSV_MAN_SECTIONS in
11121	true)				FILE_MAN_SUFFIX=4  ;;
11122	*)				FILE_MAN_SUFFIX=5  ;;
11123    esac
11124fi
11125if test x$FILE_MAN_DIR = x    ; then
11126    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11127fi
11128
11129if test x$MISC_MAN_SUFFIX = x    ; then
11130    case $SYSV_MAN_SECTIONS in
11131	true)				MISC_MAN_SUFFIX=5  ;;
11132	*)				MISC_MAN_SUFFIX=7  ;;
11133    esac
11134fi
11135if test x$MISC_MAN_DIR = x    ; then
11136    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11137fi
11138
11139if test x$DRIVER_MAN_SUFFIX = x    ; then
11140    case $SYSV_MAN_SECTIONS in
11141	true)				DRIVER_MAN_SUFFIX=7  ;;
11142	*)				DRIVER_MAN_SUFFIX=4  ;;
11143    esac
11144fi
11145if test x$DRIVER_MAN_DIR = x    ; then
11146    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11147fi
11148
11149if test x$ADMIN_MAN_SUFFIX = x    ; then
11150    case $SYSV_MAN_SECTIONS in
11151	true)				ADMIN_MAN_SUFFIX=1m ;;
11152	*)				ADMIN_MAN_SUFFIX=8  ;;
11153    esac
11154fi
11155if test x$ADMIN_MAN_DIR = x    ; then
11156    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11157fi
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173XORG_MAN_PAGE="X Version 11"
11174
11175MAN_SUBSTS="\
11176	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11177	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11178	-e 's|__xservername__|Xorg|g' \
11179	-e 's|__xconfigfile__|xorg.conf|g' \
11180	-e 's|__projectroot__|\$(prefix)|g' \
11181	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11182	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11183	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11184	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11185	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11186	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11187	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11188
11189
11190
11191# Check whether --enable-silent-rules was given.
11192if test ${enable_silent_rules+y}
11193then :
11194  enableval=$enable_silent_rules;
11195fi
11196
11197case $enable_silent_rules in # (((
11198  yes) AM_DEFAULT_VERBOSITY=0;;
11199   no) AM_DEFAULT_VERBOSITY=1;;
11200    *) AM_DEFAULT_VERBOSITY=0;;
11201esac
11202am_make=${MAKE-make}
11203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11204printf %s "checking whether $am_make supports nested variables... " >&6; }
11205if test ${am_cv_make_support_nested_variables+y}
11206then :
11207  printf %s "(cached) " >&6
11208else $as_nop
11209  if printf "%s\n" 'TRUE=$(BAR$(V))
11210BAR0=false
11211BAR1=true
11212V=1
11213am__doit:
11214	@$(TRUE)
11215.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11216  am_cv_make_support_nested_variables=yes
11217else
11218  am_cv_make_support_nested_variables=no
11219fi
11220fi
11221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11222printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11223if test $am_cv_make_support_nested_variables = yes; then
11224    AM_V='$(V)'
11225  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11226else
11227  AM_V=$AM_DEFAULT_VERBOSITY
11228  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11229fi
11230AM_BACKSLASH='\'
11231
11232
11233
11234# Initialize libtool
11235# Check whether --enable-static was given.
11236if test ${enable_static+y}
11237then :
11238  enableval=$enable_static; p=${PACKAGE-default}
11239    case $enableval in
11240    yes) enable_static=yes ;;
11241    no) enable_static=no ;;
11242    *)
11243     enable_static=no
11244      # Look at the argument we got.  We use all the common list separators.
11245      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11246      for pkg in $enableval; do
11247	IFS=$lt_save_ifs
11248	if test "X$pkg" = "X$p"; then
11249	  enable_static=yes
11250	fi
11251      done
11252      IFS=$lt_save_ifs
11253      ;;
11254    esac
11255else $as_nop
11256  enable_static=no
11257fi
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267case `pwd` in
11268  *\ * | *\	*)
11269    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11270printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11271esac
11272
11273
11274
11275macro_version='2.4.7'
11276macro_revision='2.4.7'
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291ltmain=$ac_aux_dir/ltmain.sh
11292
11293# Backslashify metacharacters that are still active within
11294# double-quoted strings.
11295sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11296
11297# Same as above, but do not quote variable references.
11298double_quote_subst='s/\(["`\\]\)/\\\1/g'
11299
11300# Sed substitution to delay expansion of an escaped shell variable in a
11301# double_quote_subst'ed string.
11302delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11303
11304# Sed substitution to delay expansion of an escaped single quote.
11305delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11306
11307# Sed substitution to avoid accidental globbing in evaled expressions
11308no_glob_subst='s/\*/\\\*/g'
11309
11310ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11311ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11312ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11313
11314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11315printf %s "checking how to print strings... " >&6; }
11316# Test print first, because it will be a builtin if present.
11317if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11318   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11319  ECHO='print -r --'
11320elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11321  ECHO='printf %s\n'
11322else
11323  # Use this function as a fallback that always works.
11324  func_fallback_echo ()
11325  {
11326    eval 'cat <<_LTECHO_EOF
11327$1
11328_LTECHO_EOF'
11329  }
11330  ECHO='func_fallback_echo'
11331fi
11332
11333# func_echo_all arg...
11334# Invoke $ECHO with all args, space-separated.
11335func_echo_all ()
11336{
11337    $ECHO ""
11338}
11339
11340case $ECHO in
11341  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11342printf "%s\n" "printf" >&6; } ;;
11343  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11344printf "%s\n" "print -r" >&6; } ;;
11345  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11346printf "%s\n" "cat" >&6; } ;;
11347esac
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11363printf %s "checking for a sed that does not truncate output... " >&6; }
11364if test ${ac_cv_path_SED+y}
11365then :
11366  printf %s "(cached) " >&6
11367else $as_nop
11368            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11369     for ac_i in 1 2 3 4 5 6 7; do
11370       ac_script="$ac_script$as_nl$ac_script"
11371     done
11372     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11373     { ac_script=; unset ac_script;}
11374     if test -z "$SED"; then
11375  ac_path_SED_found=false
11376  # Loop through the user's path and test for each of PROGNAME-LIST
11377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378for as_dir in $PATH
11379do
11380  IFS=$as_save_IFS
11381  case $as_dir in #(((
11382    '') as_dir=./ ;;
11383    */) ;;
11384    *) as_dir=$as_dir/ ;;
11385  esac
11386    for ac_prog in sed gsed
11387   do
11388    for ac_exec_ext in '' $ac_executable_extensions; do
11389      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11390      as_fn_executable_p "$ac_path_SED" || continue
11391# Check for GNU ac_path_SED and select it if it is found.
11392  # Check for GNU $ac_path_SED
11393case `"$ac_path_SED" --version 2>&1` in
11394*GNU*)
11395  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11396*)
11397  ac_count=0
11398  printf %s 0123456789 >"conftest.in"
11399  while :
11400  do
11401    cat "conftest.in" "conftest.in" >"conftest.tmp"
11402    mv "conftest.tmp" "conftest.in"
11403    cp "conftest.in" "conftest.nl"
11404    printf "%s\n" '' >> "conftest.nl"
11405    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11406    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11407    as_fn_arith $ac_count + 1 && ac_count=$as_val
11408    if test $ac_count -gt ${ac_path_SED_max-0}; then
11409      # Best one so far, save it but keep looking for a better one
11410      ac_cv_path_SED="$ac_path_SED"
11411      ac_path_SED_max=$ac_count
11412    fi
11413    # 10*(2^10) chars as input seems more than enough
11414    test $ac_count -gt 10 && break
11415  done
11416  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11417esac
11418
11419      $ac_path_SED_found && break 3
11420    done
11421  done
11422  done
11423IFS=$as_save_IFS
11424  if test -z "$ac_cv_path_SED"; then
11425    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11426  fi
11427else
11428  ac_cv_path_SED=$SED
11429fi
11430
11431fi
11432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11433printf "%s\n" "$ac_cv_path_SED" >&6; }
11434 SED="$ac_cv_path_SED"
11435  rm -f conftest.sed
11436
11437test -z "$SED" && SED=sed
11438Xsed="$SED -e 1s/^X//"
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11451printf %s "checking for grep that handles long lines and -e... " >&6; }
11452if test ${ac_cv_path_GREP+y}
11453then :
11454  printf %s "(cached) " >&6
11455else $as_nop
11456  if test -z "$GREP"; then
11457  ac_path_GREP_found=false
11458  # Loop through the user's path and test for each of PROGNAME-LIST
11459  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11461do
11462  IFS=$as_save_IFS
11463  case $as_dir in #(((
11464    '') as_dir=./ ;;
11465    */) ;;
11466    *) as_dir=$as_dir/ ;;
11467  esac
11468    for ac_prog in grep ggrep
11469   do
11470    for ac_exec_ext in '' $ac_executable_extensions; do
11471      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11472      as_fn_executable_p "$ac_path_GREP" || continue
11473# Check for GNU ac_path_GREP and select it if it is found.
11474  # Check for GNU $ac_path_GREP
11475case `"$ac_path_GREP" --version 2>&1` in
11476*GNU*)
11477  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11478*)
11479  ac_count=0
11480  printf %s 0123456789 >"conftest.in"
11481  while :
11482  do
11483    cat "conftest.in" "conftest.in" >"conftest.tmp"
11484    mv "conftest.tmp" "conftest.in"
11485    cp "conftest.in" "conftest.nl"
11486    printf "%s\n" 'GREP' >> "conftest.nl"
11487    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11488    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11489    as_fn_arith $ac_count + 1 && ac_count=$as_val
11490    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11491      # Best one so far, save it but keep looking for a better one
11492      ac_cv_path_GREP="$ac_path_GREP"
11493      ac_path_GREP_max=$ac_count
11494    fi
11495    # 10*(2^10) chars as input seems more than enough
11496    test $ac_count -gt 10 && break
11497  done
11498  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11499esac
11500
11501      $ac_path_GREP_found && break 3
11502    done
11503  done
11504  done
11505IFS=$as_save_IFS
11506  if test -z "$ac_cv_path_GREP"; then
11507    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11508  fi
11509else
11510  ac_cv_path_GREP=$GREP
11511fi
11512
11513fi
11514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11515printf "%s\n" "$ac_cv_path_GREP" >&6; }
11516 GREP="$ac_cv_path_GREP"
11517
11518
11519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11520printf %s "checking for egrep... " >&6; }
11521if test ${ac_cv_path_EGREP+y}
11522then :
11523  printf %s "(cached) " >&6
11524else $as_nop
11525  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11526   then ac_cv_path_EGREP="$GREP -E"
11527   else
11528     if test -z "$EGREP"; then
11529  ac_path_EGREP_found=false
11530  # Loop through the user's path and test for each of PROGNAME-LIST
11531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11533do
11534  IFS=$as_save_IFS
11535  case $as_dir in #(((
11536    '') as_dir=./ ;;
11537    */) ;;
11538    *) as_dir=$as_dir/ ;;
11539  esac
11540    for ac_prog in egrep
11541   do
11542    for ac_exec_ext in '' $ac_executable_extensions; do
11543      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11544      as_fn_executable_p "$ac_path_EGREP" || continue
11545# Check for GNU ac_path_EGREP and select it if it is found.
11546  # Check for GNU $ac_path_EGREP
11547case `"$ac_path_EGREP" --version 2>&1` in
11548*GNU*)
11549  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11550*)
11551  ac_count=0
11552  printf %s 0123456789 >"conftest.in"
11553  while :
11554  do
11555    cat "conftest.in" "conftest.in" >"conftest.tmp"
11556    mv "conftest.tmp" "conftest.in"
11557    cp "conftest.in" "conftest.nl"
11558    printf "%s\n" 'EGREP' >> "conftest.nl"
11559    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11560    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11561    as_fn_arith $ac_count + 1 && ac_count=$as_val
11562    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11563      # Best one so far, save it but keep looking for a better one
11564      ac_cv_path_EGREP="$ac_path_EGREP"
11565      ac_path_EGREP_max=$ac_count
11566    fi
11567    # 10*(2^10) chars as input seems more than enough
11568    test $ac_count -gt 10 && break
11569  done
11570  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11571esac
11572
11573      $ac_path_EGREP_found && break 3
11574    done
11575  done
11576  done
11577IFS=$as_save_IFS
11578  if test -z "$ac_cv_path_EGREP"; then
11579    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11580  fi
11581else
11582  ac_cv_path_EGREP=$EGREP
11583fi
11584
11585   fi
11586fi
11587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11588printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11589 EGREP="$ac_cv_path_EGREP"
11590
11591
11592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11593printf %s "checking for fgrep... " >&6; }
11594if test ${ac_cv_path_FGREP+y}
11595then :
11596  printf %s "(cached) " >&6
11597else $as_nop
11598  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11599   then ac_cv_path_FGREP="$GREP -F"
11600   else
11601     if test -z "$FGREP"; then
11602  ac_path_FGREP_found=false
11603  # Loop through the user's path and test for each of PROGNAME-LIST
11604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11606do
11607  IFS=$as_save_IFS
11608  case $as_dir in #(((
11609    '') as_dir=./ ;;
11610    */) ;;
11611    *) as_dir=$as_dir/ ;;
11612  esac
11613    for ac_prog in fgrep
11614   do
11615    for ac_exec_ext in '' $ac_executable_extensions; do
11616      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11617      as_fn_executable_p "$ac_path_FGREP" || continue
11618# Check for GNU ac_path_FGREP and select it if it is found.
11619  # Check for GNU $ac_path_FGREP
11620case `"$ac_path_FGREP" --version 2>&1` in
11621*GNU*)
11622  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11623*)
11624  ac_count=0
11625  printf %s 0123456789 >"conftest.in"
11626  while :
11627  do
11628    cat "conftest.in" "conftest.in" >"conftest.tmp"
11629    mv "conftest.tmp" "conftest.in"
11630    cp "conftest.in" "conftest.nl"
11631    printf "%s\n" 'FGREP' >> "conftest.nl"
11632    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11633    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11634    as_fn_arith $ac_count + 1 && ac_count=$as_val
11635    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11636      # Best one so far, save it but keep looking for a better one
11637      ac_cv_path_FGREP="$ac_path_FGREP"
11638      ac_path_FGREP_max=$ac_count
11639    fi
11640    # 10*(2^10) chars as input seems more than enough
11641    test $ac_count -gt 10 && break
11642  done
11643  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11644esac
11645
11646      $ac_path_FGREP_found && break 3
11647    done
11648  done
11649  done
11650IFS=$as_save_IFS
11651  if test -z "$ac_cv_path_FGREP"; then
11652    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11653  fi
11654else
11655  ac_cv_path_FGREP=$FGREP
11656fi
11657
11658   fi
11659fi
11660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11661printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11662 FGREP="$ac_cv_path_FGREP"
11663
11664
11665test -z "$GREP" && GREP=grep
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685# Check whether --with-gnu-ld was given.
11686if test ${with_gnu_ld+y}
11687then :
11688  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11689else $as_nop
11690  with_gnu_ld=no
11691fi
11692
11693ac_prog=ld
11694if test yes = "$GCC"; then
11695  # Check if gcc -print-prog-name=ld gives a path.
11696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11697printf %s "checking for ld used by $CC... " >&6; }
11698  case $host in
11699  *-*-mingw*)
11700    # gcc leaves a trailing carriage return, which upsets mingw
11701    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11702  *)
11703    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11704  esac
11705  case $ac_prog in
11706    # Accept absolute paths.
11707    [\\/]* | ?:[\\/]*)
11708      re_direlt='/[^/][^/]*/\.\./'
11709      # Canonicalize the pathname of ld
11710      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11711      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11712	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11713      done
11714      test -z "$LD" && LD=$ac_prog
11715      ;;
11716  "")
11717    # If it fails, then pretend we aren't using GCC.
11718    ac_prog=ld
11719    ;;
11720  *)
11721    # If it is relative, then search for the first ld in PATH.
11722    with_gnu_ld=unknown
11723    ;;
11724  esac
11725elif test yes = "$with_gnu_ld"; then
11726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11727printf %s "checking for GNU ld... " >&6; }
11728else
11729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11730printf %s "checking for non-GNU ld... " >&6; }
11731fi
11732if test ${lt_cv_path_LD+y}
11733then :
11734  printf %s "(cached) " >&6
11735else $as_nop
11736  if test -z "$LD"; then
11737  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11738  for ac_dir in $PATH; do
11739    IFS=$lt_save_ifs
11740    test -z "$ac_dir" && ac_dir=.
11741    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11742      lt_cv_path_LD=$ac_dir/$ac_prog
11743      # Check to see if the program is GNU ld.  I'd rather use --version,
11744      # but apparently some variants of GNU ld only accept -v.
11745      # Break only if it was the GNU/non-GNU ld that we prefer.
11746      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11747      *GNU* | *'with BFD'*)
11748	test no != "$with_gnu_ld" && break
11749	;;
11750      *)
11751	test yes != "$with_gnu_ld" && break
11752	;;
11753      esac
11754    fi
11755  done
11756  IFS=$lt_save_ifs
11757else
11758  lt_cv_path_LD=$LD # Let the user override the test with a path.
11759fi
11760fi
11761
11762LD=$lt_cv_path_LD
11763if test -n "$LD"; then
11764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11765printf "%s\n" "$LD" >&6; }
11766else
11767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768printf "%s\n" "no" >&6; }
11769fi
11770test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11772printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11773if test ${lt_cv_prog_gnu_ld+y}
11774then :
11775  printf %s "(cached) " >&6
11776else $as_nop
11777  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11778case `$LD -v 2>&1 </dev/null` in
11779*GNU* | *'with BFD'*)
11780  lt_cv_prog_gnu_ld=yes
11781  ;;
11782*)
11783  lt_cv_prog_gnu_ld=no
11784  ;;
11785esac
11786fi
11787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11788printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11789with_gnu_ld=$lt_cv_prog_gnu_ld
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11800printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11801if test ${lt_cv_path_NM+y}
11802then :
11803  printf %s "(cached) " >&6
11804else $as_nop
11805  if test -n "$NM"; then
11806  # Let the user override the test.
11807  lt_cv_path_NM=$NM
11808else
11809  lt_nm_to_check=${ac_tool_prefix}nm
11810  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11811    lt_nm_to_check="$lt_nm_to_check nm"
11812  fi
11813  for lt_tmp_nm in $lt_nm_to_check; do
11814    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11815    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11816      IFS=$lt_save_ifs
11817      test -z "$ac_dir" && ac_dir=.
11818      tmp_nm=$ac_dir/$lt_tmp_nm
11819      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11820	# Check to see if the nm accepts a BSD-compat flag.
11821	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11822	#   nm: unknown option "B" ignored
11823	# Tru64's nm complains that /dev/null is an invalid object file
11824	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11825	case $build_os in
11826	mingw*) lt_bad_file=conftest.nm/nofile ;;
11827	*) lt_bad_file=/dev/null ;;
11828	esac
11829	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11830	*$lt_bad_file* | *'Invalid file or object type'*)
11831	  lt_cv_path_NM="$tmp_nm -B"
11832	  break 2
11833	  ;;
11834	*)
11835	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11836	  */dev/null*)
11837	    lt_cv_path_NM="$tmp_nm -p"
11838	    break 2
11839	    ;;
11840	  *)
11841	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11842	    continue # so that we can try to find one that supports BSD flags
11843	    ;;
11844	  esac
11845	  ;;
11846	esac
11847      fi
11848    done
11849    IFS=$lt_save_ifs
11850  done
11851  : ${lt_cv_path_NM=no}
11852fi
11853fi
11854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11855printf "%s\n" "$lt_cv_path_NM" >&6; }
11856if test no != "$lt_cv_path_NM"; then
11857  NM=$lt_cv_path_NM
11858else
11859  # Didn't find any BSD compatible name lister, look for dumpbin.
11860  if test -n "$DUMPBIN"; then :
11861    # Let the user override the test.
11862  else
11863    if test -n "$ac_tool_prefix"; then
11864  for ac_prog in dumpbin "link -dump"
11865  do
11866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869printf %s "checking for $ac_word... " >&6; }
11870if test ${ac_cv_prog_DUMPBIN+y}
11871then :
11872  printf %s "(cached) " >&6
11873else $as_nop
11874  if test -n "$DUMPBIN"; then
11875  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11876else
11877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH
11879do
11880  IFS=$as_save_IFS
11881  case $as_dir in #(((
11882    '') as_dir=./ ;;
11883    */) ;;
11884    *) as_dir=$as_dir/ ;;
11885  esac
11886    for ac_exec_ext in '' $ac_executable_extensions; do
11887  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11888    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11890    break 2
11891  fi
11892done
11893  done
11894IFS=$as_save_IFS
11895
11896fi
11897fi
11898DUMPBIN=$ac_cv_prog_DUMPBIN
11899if test -n "$DUMPBIN"; then
11900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11901printf "%s\n" "$DUMPBIN" >&6; }
11902else
11903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904printf "%s\n" "no" >&6; }
11905fi
11906
11907
11908    test -n "$DUMPBIN" && break
11909  done
11910fi
11911if test -z "$DUMPBIN"; then
11912  ac_ct_DUMPBIN=$DUMPBIN
11913  for ac_prog in dumpbin "link -dump"
11914do
11915  # Extract the first word of "$ac_prog", so it can be a program name with args.
11916set dummy $ac_prog; ac_word=$2
11917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918printf %s "checking for $ac_word... " >&6; }
11919if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11920then :
11921  printf %s "(cached) " >&6
11922else $as_nop
11923  if test -n "$ac_ct_DUMPBIN"; then
11924  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11925else
11926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927for as_dir in $PATH
11928do
11929  IFS=$as_save_IFS
11930  case $as_dir in #(((
11931    '') as_dir=./ ;;
11932    */) ;;
11933    *) as_dir=$as_dir/ ;;
11934  esac
11935    for ac_exec_ext in '' $ac_executable_extensions; do
11936  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11937    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11938    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11939    break 2
11940  fi
11941done
11942  done
11943IFS=$as_save_IFS
11944
11945fi
11946fi
11947ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11948if test -n "$ac_ct_DUMPBIN"; then
11949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11950printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11951else
11952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953printf "%s\n" "no" >&6; }
11954fi
11955
11956
11957  test -n "$ac_ct_DUMPBIN" && break
11958done
11959
11960  if test "x$ac_ct_DUMPBIN" = x; then
11961    DUMPBIN=":"
11962  else
11963    case $cross_compiling:$ac_tool_warned in
11964yes:)
11965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11966printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11967ac_tool_warned=yes ;;
11968esac
11969    DUMPBIN=$ac_ct_DUMPBIN
11970  fi
11971fi
11972
11973    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11974    *COFF*)
11975      DUMPBIN="$DUMPBIN -symbols -headers"
11976      ;;
11977    *)
11978      DUMPBIN=:
11979      ;;
11980    esac
11981  fi
11982
11983  if test : != "$DUMPBIN"; then
11984    NM=$DUMPBIN
11985  fi
11986fi
11987test -z "$NM" && NM=nm
11988
11989
11990
11991
11992
11993
11994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11995printf %s "checking the name lister ($NM) interface... " >&6; }
11996if test ${lt_cv_nm_interface+y}
11997then :
11998  printf %s "(cached) " >&6
11999else $as_nop
12000  lt_cv_nm_interface="BSD nm"
12001  echo "int some_variable = 0;" > conftest.$ac_ext
12002  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12003  (eval "$ac_compile" 2>conftest.err)
12004  cat conftest.err >&5
12005  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12006  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12007  cat conftest.err >&5
12008  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12009  cat conftest.out >&5
12010  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12011    lt_cv_nm_interface="MS dumpbin"
12012  fi
12013  rm -f conftest*
12014fi
12015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12016printf "%s\n" "$lt_cv_nm_interface" >&6; }
12017
12018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12019printf %s "checking whether ln -s works... " >&6; }
12020LN_S=$as_ln_s
12021if test "$LN_S" = "ln -s"; then
12022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12023printf "%s\n" "yes" >&6; }
12024else
12025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12026printf "%s\n" "no, using $LN_S" >&6; }
12027fi
12028
12029# find the maximum length of command line arguments
12030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12031printf %s "checking the maximum length of command line arguments... " >&6; }
12032if test ${lt_cv_sys_max_cmd_len+y}
12033then :
12034  printf %s "(cached) " >&6
12035else $as_nop
12036    i=0
12037  teststring=ABCD
12038
12039  case $build_os in
12040  msdosdjgpp*)
12041    # On DJGPP, this test can blow up pretty badly due to problems in libc
12042    # (any single argument exceeding 2000 bytes causes a buffer overrun
12043    # during glob expansion).  Even if it were fixed, the result of this
12044    # check would be larger than it should be.
12045    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12046    ;;
12047
12048  gnu*)
12049    # Under GNU Hurd, this test is not required because there is
12050    # no limit to the length of command line arguments.
12051    # Libtool will interpret -1 as no limit whatsoever
12052    lt_cv_sys_max_cmd_len=-1;
12053    ;;
12054
12055  cygwin* | mingw* | cegcc*)
12056    # On Win9x/ME, this test blows up -- it succeeds, but takes
12057    # about 5 minutes as the teststring grows exponentially.
12058    # Worse, since 9x/ME are not pre-emptively multitasking,
12059    # you end up with a "frozen" computer, even though with patience
12060    # the test eventually succeeds (with a max line length of 256k).
12061    # Instead, let's just punt: use the minimum linelength reported by
12062    # all of the supported platforms: 8192 (on NT/2K/XP).
12063    lt_cv_sys_max_cmd_len=8192;
12064    ;;
12065
12066  mint*)
12067    # On MiNT this can take a long time and run out of memory.
12068    lt_cv_sys_max_cmd_len=8192;
12069    ;;
12070
12071  amigaos*)
12072    # On AmigaOS with pdksh, this test takes hours, literally.
12073    # So we just punt and use a minimum line length of 8192.
12074    lt_cv_sys_max_cmd_len=8192;
12075    ;;
12076
12077  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12078    # This has been around since 386BSD, at least.  Likely further.
12079    if test -x /sbin/sysctl; then
12080      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12081    elif test -x /usr/sbin/sysctl; then
12082      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12083    else
12084      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12085    fi
12086    # And add a safety zone
12087    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12088    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12089    ;;
12090
12091  interix*)
12092    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12093    lt_cv_sys_max_cmd_len=196608
12094    ;;
12095
12096  os2*)
12097    # The test takes a long time on OS/2.
12098    lt_cv_sys_max_cmd_len=8192
12099    ;;
12100
12101  osf*)
12102    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12103    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12104    # nice to cause kernel panics so lets avoid the loop below.
12105    # First set a reasonable default.
12106    lt_cv_sys_max_cmd_len=16384
12107    #
12108    if test -x /sbin/sysconfig; then
12109      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12110        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12111      esac
12112    fi
12113    ;;
12114  sco3.2v5*)
12115    lt_cv_sys_max_cmd_len=102400
12116    ;;
12117  sysv5* | sco5v6* | sysv4.2uw2*)
12118    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12119    if test -n "$kargmax"; then
12120      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12121    else
12122      lt_cv_sys_max_cmd_len=32768
12123    fi
12124    ;;
12125  *)
12126    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12127    if test -n "$lt_cv_sys_max_cmd_len" && \
12128       test undefined != "$lt_cv_sys_max_cmd_len"; then
12129      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12130      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12131    else
12132      # Make teststring a little bigger before we do anything with it.
12133      # a 1K string should be a reasonable start.
12134      for i in 1 2 3 4 5 6 7 8; do
12135        teststring=$teststring$teststring
12136      done
12137      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12138      # If test is not a shell built-in, we'll probably end up computing a
12139      # maximum length that is only half of the actual maximum length, but
12140      # we can't tell.
12141      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12142	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12143	      test 17 != "$i" # 1/2 MB should be enough
12144      do
12145        i=`expr $i + 1`
12146        teststring=$teststring$teststring
12147      done
12148      # Only check the string length outside the loop.
12149      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12150      teststring=
12151      # Add a significant safety factor because C++ compilers can tack on
12152      # massive amounts of additional arguments before passing them to the
12153      # linker.  It appears as though 1/2 is a usable value.
12154      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12155    fi
12156    ;;
12157  esac
12158
12159fi
12160
12161if test -n "$lt_cv_sys_max_cmd_len"; then
12162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12163printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12164else
12165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12166printf "%s\n" "none" >&6; }
12167fi
12168max_cmd_len=$lt_cv_sys_max_cmd_len
12169
12170
12171
12172
12173
12174
12175: ${CP="cp -f"}
12176: ${MV="mv -f"}
12177: ${RM="rm -f"}
12178
12179if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12180  lt_unset=unset
12181else
12182  lt_unset=false
12183fi
12184
12185
12186
12187
12188
12189# test EBCDIC or ASCII
12190case `echo X|tr X '\101'` in
12191 A) # ASCII based system
12192    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12193  lt_SP2NL='tr \040 \012'
12194  lt_NL2SP='tr \015\012 \040\040'
12195  ;;
12196 *) # EBCDIC based system
12197  lt_SP2NL='tr \100 \n'
12198  lt_NL2SP='tr \r\n \100\100'
12199  ;;
12200esac
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12211printf %s "checking how to convert $build file names to $host format... " >&6; }
12212if test ${lt_cv_to_host_file_cmd+y}
12213then :
12214  printf %s "(cached) " >&6
12215else $as_nop
12216  case $host in
12217  *-*-mingw* )
12218    case $build in
12219      *-*-mingw* ) # actually msys
12220        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12221        ;;
12222      *-*-cygwin* )
12223        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12224        ;;
12225      * ) # otherwise, assume *nix
12226        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12227        ;;
12228    esac
12229    ;;
12230  *-*-cygwin* )
12231    case $build in
12232      *-*-mingw* ) # actually msys
12233        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12234        ;;
12235      *-*-cygwin* )
12236        lt_cv_to_host_file_cmd=func_convert_file_noop
12237        ;;
12238      * ) # otherwise, assume *nix
12239        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12240        ;;
12241    esac
12242    ;;
12243  * ) # unhandled hosts (and "normal" native builds)
12244    lt_cv_to_host_file_cmd=func_convert_file_noop
12245    ;;
12246esac
12247
12248fi
12249
12250to_host_file_cmd=$lt_cv_to_host_file_cmd
12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12252printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12253
12254
12255
12256
12257
12258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12259printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12260if test ${lt_cv_to_tool_file_cmd+y}
12261then :
12262  printf %s "(cached) " >&6
12263else $as_nop
12264  #assume ordinary cross tools, or native build.
12265lt_cv_to_tool_file_cmd=func_convert_file_noop
12266case $host in
12267  *-*-mingw* )
12268    case $build in
12269      *-*-mingw* ) # actually msys
12270        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12271        ;;
12272    esac
12273    ;;
12274esac
12275
12276fi
12277
12278to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12280printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12281
12282
12283
12284
12285
12286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12287printf %s "checking for $LD option to reload object files... " >&6; }
12288if test ${lt_cv_ld_reload_flag+y}
12289then :
12290  printf %s "(cached) " >&6
12291else $as_nop
12292  lt_cv_ld_reload_flag='-r'
12293fi
12294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12295printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12296reload_flag=$lt_cv_ld_reload_flag
12297case $reload_flag in
12298"" | " "*) ;;
12299*) reload_flag=" $reload_flag" ;;
12300esac
12301reload_cmds='$LD$reload_flag -o $output$reload_objs'
12302case $host_os in
12303  cygwin* | mingw* | pw32* | cegcc*)
12304    if test yes != "$GCC"; then
12305      reload_cmds=false
12306    fi
12307    ;;
12308  darwin*)
12309    if test yes = "$GCC"; then
12310      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12311    else
12312      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12313    fi
12314    ;;
12315esac
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325if test -n "$ac_tool_prefix"; then
12326  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12327set dummy ${ac_tool_prefix}file; ac_word=$2
12328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329printf %s "checking for $ac_word... " >&6; }
12330if test ${ac_cv_prog_FILECMD+y}
12331then :
12332  printf %s "(cached) " >&6
12333else $as_nop
12334  if test -n "$FILECMD"; then
12335  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12336else
12337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338for as_dir in $PATH
12339do
12340  IFS=$as_save_IFS
12341  case $as_dir in #(((
12342    '') as_dir=./ ;;
12343    */) ;;
12344    *) as_dir=$as_dir/ ;;
12345  esac
12346    for ac_exec_ext in '' $ac_executable_extensions; do
12347  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12348    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12349    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12350    break 2
12351  fi
12352done
12353  done
12354IFS=$as_save_IFS
12355
12356fi
12357fi
12358FILECMD=$ac_cv_prog_FILECMD
12359if test -n "$FILECMD"; then
12360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12361printf "%s\n" "$FILECMD" >&6; }
12362else
12363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364printf "%s\n" "no" >&6; }
12365fi
12366
12367
12368fi
12369if test -z "$ac_cv_prog_FILECMD"; then
12370  ac_ct_FILECMD=$FILECMD
12371  # Extract the first word of "file", so it can be a program name with args.
12372set dummy file; ac_word=$2
12373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374printf %s "checking for $ac_word... " >&6; }
12375if test ${ac_cv_prog_ac_ct_FILECMD+y}
12376then :
12377  printf %s "(cached) " >&6
12378else $as_nop
12379  if test -n "$ac_ct_FILECMD"; then
12380  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12381else
12382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383for as_dir in $PATH
12384do
12385  IFS=$as_save_IFS
12386  case $as_dir in #(((
12387    '') as_dir=./ ;;
12388    */) ;;
12389    *) as_dir=$as_dir/ ;;
12390  esac
12391    for ac_exec_ext in '' $ac_executable_extensions; do
12392  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12393    ac_cv_prog_ac_ct_FILECMD="file"
12394    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12395    break 2
12396  fi
12397done
12398  done
12399IFS=$as_save_IFS
12400
12401fi
12402fi
12403ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12404if test -n "$ac_ct_FILECMD"; then
12405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12406printf "%s\n" "$ac_ct_FILECMD" >&6; }
12407else
12408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409printf "%s\n" "no" >&6; }
12410fi
12411
12412  if test "x$ac_ct_FILECMD" = x; then
12413    FILECMD=":"
12414  else
12415    case $cross_compiling:$ac_tool_warned in
12416yes:)
12417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12418printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12419ac_tool_warned=yes ;;
12420esac
12421    FILECMD=$ac_ct_FILECMD
12422  fi
12423else
12424  FILECMD="$ac_cv_prog_FILECMD"
12425fi
12426
12427
12428
12429
12430
12431
12432
12433if test -n "$ac_tool_prefix"; then
12434  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12435set dummy ${ac_tool_prefix}objdump; ac_word=$2
12436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437printf %s "checking for $ac_word... " >&6; }
12438if test ${ac_cv_prog_OBJDUMP+y}
12439then :
12440  printf %s "(cached) " >&6
12441else $as_nop
12442  if test -n "$OBJDUMP"; then
12443  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12444else
12445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446for as_dir in $PATH
12447do
12448  IFS=$as_save_IFS
12449  case $as_dir in #(((
12450    '') as_dir=./ ;;
12451    */) ;;
12452    *) as_dir=$as_dir/ ;;
12453  esac
12454    for ac_exec_ext in '' $ac_executable_extensions; do
12455  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12456    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12457    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12458    break 2
12459  fi
12460done
12461  done
12462IFS=$as_save_IFS
12463
12464fi
12465fi
12466OBJDUMP=$ac_cv_prog_OBJDUMP
12467if test -n "$OBJDUMP"; then
12468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12469printf "%s\n" "$OBJDUMP" >&6; }
12470else
12471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472printf "%s\n" "no" >&6; }
12473fi
12474
12475
12476fi
12477if test -z "$ac_cv_prog_OBJDUMP"; then
12478  ac_ct_OBJDUMP=$OBJDUMP
12479  # Extract the first word of "objdump", so it can be a program name with args.
12480set dummy objdump; ac_word=$2
12481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482printf %s "checking for $ac_word... " >&6; }
12483if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12484then :
12485  printf %s "(cached) " >&6
12486else $as_nop
12487  if test -n "$ac_ct_OBJDUMP"; then
12488  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12489else
12490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491for as_dir in $PATH
12492do
12493  IFS=$as_save_IFS
12494  case $as_dir in #(((
12495    '') as_dir=./ ;;
12496    */) ;;
12497    *) as_dir=$as_dir/ ;;
12498  esac
12499    for ac_exec_ext in '' $ac_executable_extensions; do
12500  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12501    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12502    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12503    break 2
12504  fi
12505done
12506  done
12507IFS=$as_save_IFS
12508
12509fi
12510fi
12511ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12512if test -n "$ac_ct_OBJDUMP"; then
12513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12514printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12515else
12516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517printf "%s\n" "no" >&6; }
12518fi
12519
12520  if test "x$ac_ct_OBJDUMP" = x; then
12521    OBJDUMP="false"
12522  else
12523    case $cross_compiling:$ac_tool_warned in
12524yes:)
12525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12526printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12527ac_tool_warned=yes ;;
12528esac
12529    OBJDUMP=$ac_ct_OBJDUMP
12530  fi
12531else
12532  OBJDUMP="$ac_cv_prog_OBJDUMP"
12533fi
12534
12535test -z "$OBJDUMP" && OBJDUMP=objdump
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12546printf %s "checking how to recognize dependent libraries... " >&6; }
12547if test ${lt_cv_deplibs_check_method+y}
12548then :
12549  printf %s "(cached) " >&6
12550else $as_nop
12551  lt_cv_file_magic_cmd='$MAGIC_CMD'
12552lt_cv_file_magic_test_file=
12553lt_cv_deplibs_check_method='unknown'
12554# Need to set the preceding variable on all platforms that support
12555# interlibrary dependencies.
12556# 'none' -- dependencies not supported.
12557# 'unknown' -- same as none, but documents that we really don't know.
12558# 'pass_all' -- all dependencies passed with no checks.
12559# 'test_compile' -- check by making test program.
12560# 'file_magic [[regex]]' -- check by looking for files in library path
12561# that responds to the $file_magic_cmd with a given extended regex.
12562# If you have 'file' or equivalent on your system and you're not sure
12563# whether 'pass_all' will *always* work, you probably want this one.
12564
12565case $host_os in
12566aix[4-9]*)
12567  lt_cv_deplibs_check_method=pass_all
12568  ;;
12569
12570beos*)
12571  lt_cv_deplibs_check_method=pass_all
12572  ;;
12573
12574bsdi[45]*)
12575  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12576  lt_cv_file_magic_cmd='$FILECMD -L'
12577  lt_cv_file_magic_test_file=/shlib/libc.so
12578  ;;
12579
12580cygwin*)
12581  # func_win32_libid is a shell function defined in ltmain.sh
12582  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12583  lt_cv_file_magic_cmd='func_win32_libid'
12584  ;;
12585
12586mingw* | pw32*)
12587  # Base MSYS/MinGW do not provide the 'file' command needed by
12588  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12589  # unless we find 'file', for example because we are cross-compiling.
12590  if ( file / ) >/dev/null 2>&1; then
12591    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12592    lt_cv_file_magic_cmd='func_win32_libid'
12593  else
12594    # Keep this pattern in sync with the one in func_win32_libid.
12595    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12596    lt_cv_file_magic_cmd='$OBJDUMP -f'
12597  fi
12598  ;;
12599
12600cegcc*)
12601  # use the weaker test based on 'objdump'. See mingw*.
12602  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12603  lt_cv_file_magic_cmd='$OBJDUMP -f'
12604  ;;
12605
12606darwin* | rhapsody*)
12607  lt_cv_deplibs_check_method=pass_all
12608  ;;
12609
12610freebsd* | dragonfly* | midnightbsd*)
12611  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12612    case $host_cpu in
12613    i*86 )
12614      # Not sure whether the presence of OpenBSD here was a mistake.
12615      # Let's accept both of them until this is cleared up.
12616      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12617      lt_cv_file_magic_cmd=$FILECMD
12618      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12619      ;;
12620    esac
12621  else
12622    lt_cv_deplibs_check_method=pass_all
12623  fi
12624  ;;
12625
12626haiku*)
12627  lt_cv_deplibs_check_method=pass_all
12628  ;;
12629
12630hpux10.20* | hpux11*)
12631  lt_cv_file_magic_cmd=$FILECMD
12632  case $host_cpu in
12633  ia64*)
12634    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12635    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12636    ;;
12637  hppa*64*)
12638    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]'
12639    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12640    ;;
12641  *)
12642    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12643    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12644    ;;
12645  esac
12646  ;;
12647
12648interix[3-9]*)
12649  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12650  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12651  ;;
12652
12653irix5* | irix6* | nonstopux*)
12654  case $LD in
12655  *-32|*"-32 ") libmagic=32-bit;;
12656  *-n32|*"-n32 ") libmagic=N32;;
12657  *-64|*"-64 ") libmagic=64-bit;;
12658  *) libmagic=never-match;;
12659  esac
12660  lt_cv_deplibs_check_method=pass_all
12661  ;;
12662
12663# This must be glibc/ELF.
12664linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12665  lt_cv_deplibs_check_method=pass_all
12666  ;;
12667
12668netbsd*)
12669  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12670    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12671  else
12672    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12673  fi
12674  ;;
12675
12676newos6*)
12677  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12678  lt_cv_file_magic_cmd=$FILECMD
12679  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12680  ;;
12681
12682*nto* | *qnx*)
12683  lt_cv_deplibs_check_method=pass_all
12684  ;;
12685
12686openbsd* | bitrig*)
12687  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12688    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12689  else
12690    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12691  fi
12692  ;;
12693
12694osf3* | osf4* | osf5*)
12695  lt_cv_deplibs_check_method=pass_all
12696  ;;
12697
12698rdos*)
12699  lt_cv_deplibs_check_method=pass_all
12700  ;;
12701
12702solaris*)
12703  lt_cv_deplibs_check_method=pass_all
12704  ;;
12705
12706sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12707  lt_cv_deplibs_check_method=pass_all
12708  ;;
12709
12710sysv4 | sysv4.3*)
12711  case $host_vendor in
12712  motorola)
12713    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]'
12714    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12715    ;;
12716  ncr)
12717    lt_cv_deplibs_check_method=pass_all
12718    ;;
12719  sequent)
12720    lt_cv_file_magic_cmd='/bin/file'
12721    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12722    ;;
12723  sni)
12724    lt_cv_file_magic_cmd='/bin/file'
12725    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12726    lt_cv_file_magic_test_file=/lib/libc.so
12727    ;;
12728  siemens)
12729    lt_cv_deplibs_check_method=pass_all
12730    ;;
12731  pc)
12732    lt_cv_deplibs_check_method=pass_all
12733    ;;
12734  esac
12735  ;;
12736
12737tpf*)
12738  lt_cv_deplibs_check_method=pass_all
12739  ;;
12740os2*)
12741  lt_cv_deplibs_check_method=pass_all
12742  ;;
12743esac
12744
12745fi
12746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12747printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12748
12749file_magic_glob=
12750want_nocaseglob=no
12751if test "$build" = "$host"; then
12752  case $host_os in
12753  mingw* | pw32*)
12754    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12755      want_nocaseglob=yes
12756    else
12757      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12758    fi
12759    ;;
12760  esac
12761fi
12762
12763file_magic_cmd=$lt_cv_file_magic_cmd
12764deplibs_check_method=$lt_cv_deplibs_check_method
12765test -z "$deplibs_check_method" && deplibs_check_method=unknown
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788if test -n "$ac_tool_prefix"; then
12789  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12790set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792printf %s "checking for $ac_word... " >&6; }
12793if test ${ac_cv_prog_DLLTOOL+y}
12794then :
12795  printf %s "(cached) " >&6
12796else $as_nop
12797  if test -n "$DLLTOOL"; then
12798  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12799else
12800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801for as_dir in $PATH
12802do
12803  IFS=$as_save_IFS
12804  case $as_dir in #(((
12805    '') as_dir=./ ;;
12806    */) ;;
12807    *) as_dir=$as_dir/ ;;
12808  esac
12809    for ac_exec_ext in '' $ac_executable_extensions; do
12810  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12811    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12812    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12813    break 2
12814  fi
12815done
12816  done
12817IFS=$as_save_IFS
12818
12819fi
12820fi
12821DLLTOOL=$ac_cv_prog_DLLTOOL
12822if test -n "$DLLTOOL"; then
12823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12824printf "%s\n" "$DLLTOOL" >&6; }
12825else
12826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827printf "%s\n" "no" >&6; }
12828fi
12829
12830
12831fi
12832if test -z "$ac_cv_prog_DLLTOOL"; then
12833  ac_ct_DLLTOOL=$DLLTOOL
12834  # Extract the first word of "dlltool", so it can be a program name with args.
12835set dummy dlltool; ac_word=$2
12836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837printf %s "checking for $ac_word... " >&6; }
12838if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12839then :
12840  printf %s "(cached) " >&6
12841else $as_nop
12842  if test -n "$ac_ct_DLLTOOL"; then
12843  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12844else
12845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846for as_dir in $PATH
12847do
12848  IFS=$as_save_IFS
12849  case $as_dir in #(((
12850    '') as_dir=./ ;;
12851    */) ;;
12852    *) as_dir=$as_dir/ ;;
12853  esac
12854    for ac_exec_ext in '' $ac_executable_extensions; do
12855  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12856    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12857    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12858    break 2
12859  fi
12860done
12861  done
12862IFS=$as_save_IFS
12863
12864fi
12865fi
12866ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12867if test -n "$ac_ct_DLLTOOL"; then
12868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12869printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12870else
12871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872printf "%s\n" "no" >&6; }
12873fi
12874
12875  if test "x$ac_ct_DLLTOOL" = x; then
12876    DLLTOOL="false"
12877  else
12878    case $cross_compiling:$ac_tool_warned in
12879yes:)
12880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12881printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12882ac_tool_warned=yes ;;
12883esac
12884    DLLTOOL=$ac_ct_DLLTOOL
12885  fi
12886else
12887  DLLTOOL="$ac_cv_prog_DLLTOOL"
12888fi
12889
12890test -z "$DLLTOOL" && DLLTOOL=dlltool
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12902printf %s "checking how to associate runtime and link libraries... " >&6; }
12903if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12904then :
12905  printf %s "(cached) " >&6
12906else $as_nop
12907  lt_cv_sharedlib_from_linklib_cmd='unknown'
12908
12909case $host_os in
12910cygwin* | mingw* | pw32* | cegcc*)
12911  # two different shell functions defined in ltmain.sh;
12912  # decide which one to use based on capabilities of $DLLTOOL
12913  case `$DLLTOOL --help 2>&1` in
12914  *--identify-strict*)
12915    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12916    ;;
12917  *)
12918    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12919    ;;
12920  esac
12921  ;;
12922*)
12923  # fallback: assume linklib IS sharedlib
12924  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12925  ;;
12926esac
12927
12928fi
12929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12930printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12931sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12932test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12933
12934
12935
12936
12937
12938
12939
12940if test -n "$ac_tool_prefix"; then
12941  for ac_prog in ar
12942  do
12943    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946printf %s "checking for $ac_word... " >&6; }
12947if test ${ac_cv_prog_AR+y}
12948then :
12949  printf %s "(cached) " >&6
12950else $as_nop
12951  if test -n "$AR"; then
12952  ac_cv_prog_AR="$AR" # Let the user override the test.
12953else
12954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955for as_dir in $PATH
12956do
12957  IFS=$as_save_IFS
12958  case $as_dir in #(((
12959    '') as_dir=./ ;;
12960    */) ;;
12961    *) as_dir=$as_dir/ ;;
12962  esac
12963    for ac_exec_ext in '' $ac_executable_extensions; do
12964  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12965    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12967    break 2
12968  fi
12969done
12970  done
12971IFS=$as_save_IFS
12972
12973fi
12974fi
12975AR=$ac_cv_prog_AR
12976if test -n "$AR"; then
12977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12978printf "%s\n" "$AR" >&6; }
12979else
12980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981printf "%s\n" "no" >&6; }
12982fi
12983
12984
12985    test -n "$AR" && break
12986  done
12987fi
12988if test -z "$AR"; then
12989  ac_ct_AR=$AR
12990  for ac_prog in ar
12991do
12992  # Extract the first word of "$ac_prog", so it can be a program name with args.
12993set dummy $ac_prog; ac_word=$2
12994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995printf %s "checking for $ac_word... " >&6; }
12996if test ${ac_cv_prog_ac_ct_AR+y}
12997then :
12998  printf %s "(cached) " >&6
12999else $as_nop
13000  if test -n "$ac_ct_AR"; then
13001  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13002else
13003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004for as_dir in $PATH
13005do
13006  IFS=$as_save_IFS
13007  case $as_dir in #(((
13008    '') as_dir=./ ;;
13009    */) ;;
13010    *) as_dir=$as_dir/ ;;
13011  esac
13012    for ac_exec_ext in '' $ac_executable_extensions; do
13013  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13014    ac_cv_prog_ac_ct_AR="$ac_prog"
13015    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13016    break 2
13017  fi
13018done
13019  done
13020IFS=$as_save_IFS
13021
13022fi
13023fi
13024ac_ct_AR=$ac_cv_prog_ac_ct_AR
13025if test -n "$ac_ct_AR"; then
13026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13027printf "%s\n" "$ac_ct_AR" >&6; }
13028else
13029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030printf "%s\n" "no" >&6; }
13031fi
13032
13033
13034  test -n "$ac_ct_AR" && break
13035done
13036
13037  if test "x$ac_ct_AR" = x; then
13038    AR="false"
13039  else
13040    case $cross_compiling:$ac_tool_warned in
13041yes:)
13042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13043printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13044ac_tool_warned=yes ;;
13045esac
13046    AR=$ac_ct_AR
13047  fi
13048fi
13049
13050: ${AR=ar}
13051
13052
13053
13054
13055
13056
13057# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13058# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13059# higher priority because thats what people were doing historically (setting
13060# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13061# variable obsoleted/removed.
13062
13063test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13064lt_ar_flags=$AR_FLAGS
13065
13066
13067
13068
13069
13070
13071# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13072# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13073
13074
13075
13076
13077
13078
13079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13080printf %s "checking for archiver @FILE support... " >&6; }
13081if test ${lt_cv_ar_at_file+y}
13082then :
13083  printf %s "(cached) " >&6
13084else $as_nop
13085  lt_cv_ar_at_file=no
13086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087/* end confdefs.h.  */
13088
13089int
13090main (void)
13091{
13092
13093  ;
13094  return 0;
13095}
13096_ACEOF
13097if ac_fn_c_try_compile "$LINENO"
13098then :
13099  echo conftest.$ac_objext > conftest.lst
13100      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13101      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13102  (eval $lt_ar_try) 2>&5
13103  ac_status=$?
13104  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13105  test $ac_status = 0; }
13106      if test 0 -eq "$ac_status"; then
13107	# Ensure the archiver fails upon bogus file names.
13108	rm -f conftest.$ac_objext libconftest.a
13109	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13110  (eval $lt_ar_try) 2>&5
13111  ac_status=$?
13112  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113  test $ac_status = 0; }
13114	if test 0 -ne "$ac_status"; then
13115          lt_cv_ar_at_file=@
13116        fi
13117      fi
13118      rm -f conftest.* libconftest.a
13119
13120fi
13121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13122
13123fi
13124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13125printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13126
13127if test no = "$lt_cv_ar_at_file"; then
13128  archiver_list_spec=
13129else
13130  archiver_list_spec=$lt_cv_ar_at_file
13131fi
13132
13133
13134
13135
13136
13137
13138
13139if test -n "$ac_tool_prefix"; then
13140  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13141set dummy ${ac_tool_prefix}strip; ac_word=$2
13142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143printf %s "checking for $ac_word... " >&6; }
13144if test ${ac_cv_prog_STRIP+y}
13145then :
13146  printf %s "(cached) " >&6
13147else $as_nop
13148  if test -n "$STRIP"; then
13149  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13150else
13151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152for as_dir in $PATH
13153do
13154  IFS=$as_save_IFS
13155  case $as_dir in #(((
13156    '') as_dir=./ ;;
13157    */) ;;
13158    *) as_dir=$as_dir/ ;;
13159  esac
13160    for ac_exec_ext in '' $ac_executable_extensions; do
13161  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13162    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13163    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13164    break 2
13165  fi
13166done
13167  done
13168IFS=$as_save_IFS
13169
13170fi
13171fi
13172STRIP=$ac_cv_prog_STRIP
13173if test -n "$STRIP"; then
13174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13175printf "%s\n" "$STRIP" >&6; }
13176else
13177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178printf "%s\n" "no" >&6; }
13179fi
13180
13181
13182fi
13183if test -z "$ac_cv_prog_STRIP"; then
13184  ac_ct_STRIP=$STRIP
13185  # Extract the first word of "strip", so it can be a program name with args.
13186set dummy strip; ac_word=$2
13187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188printf %s "checking for $ac_word... " >&6; }
13189if test ${ac_cv_prog_ac_ct_STRIP+y}
13190then :
13191  printf %s "(cached) " >&6
13192else $as_nop
13193  if test -n "$ac_ct_STRIP"; then
13194  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13195else
13196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199  IFS=$as_save_IFS
13200  case $as_dir in #(((
13201    '') as_dir=./ ;;
13202    */) ;;
13203    *) as_dir=$as_dir/ ;;
13204  esac
13205    for ac_exec_ext in '' $ac_executable_extensions; do
13206  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13207    ac_cv_prog_ac_ct_STRIP="strip"
13208    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13209    break 2
13210  fi
13211done
13212  done
13213IFS=$as_save_IFS
13214
13215fi
13216fi
13217ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13218if test -n "$ac_ct_STRIP"; then
13219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13220printf "%s\n" "$ac_ct_STRIP" >&6; }
13221else
13222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223printf "%s\n" "no" >&6; }
13224fi
13225
13226  if test "x$ac_ct_STRIP" = x; then
13227    STRIP=":"
13228  else
13229    case $cross_compiling:$ac_tool_warned in
13230yes:)
13231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13232printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13233ac_tool_warned=yes ;;
13234esac
13235    STRIP=$ac_ct_STRIP
13236  fi
13237else
13238  STRIP="$ac_cv_prog_STRIP"
13239fi
13240
13241test -z "$STRIP" && STRIP=:
13242
13243
13244
13245
13246
13247
13248if test -n "$ac_tool_prefix"; then
13249  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13250set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252printf %s "checking for $ac_word... " >&6; }
13253if test ${ac_cv_prog_RANLIB+y}
13254then :
13255  printf %s "(cached) " >&6
13256else $as_nop
13257  if test -n "$RANLIB"; then
13258  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13259else
13260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263  IFS=$as_save_IFS
13264  case $as_dir in #(((
13265    '') as_dir=./ ;;
13266    */) ;;
13267    *) as_dir=$as_dir/ ;;
13268  esac
13269    for ac_exec_ext in '' $ac_executable_extensions; do
13270  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13271    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13272    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13273    break 2
13274  fi
13275done
13276  done
13277IFS=$as_save_IFS
13278
13279fi
13280fi
13281RANLIB=$ac_cv_prog_RANLIB
13282if test -n "$RANLIB"; then
13283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13284printf "%s\n" "$RANLIB" >&6; }
13285else
13286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287printf "%s\n" "no" >&6; }
13288fi
13289
13290
13291fi
13292if test -z "$ac_cv_prog_RANLIB"; then
13293  ac_ct_RANLIB=$RANLIB
13294  # Extract the first word of "ranlib", so it can be a program name with args.
13295set dummy ranlib; ac_word=$2
13296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13297printf %s "checking for $ac_word... " >&6; }
13298if test ${ac_cv_prog_ac_ct_RANLIB+y}
13299then :
13300  printf %s "(cached) " >&6
13301else $as_nop
13302  if test -n "$ac_ct_RANLIB"; then
13303  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13304else
13305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306for as_dir in $PATH
13307do
13308  IFS=$as_save_IFS
13309  case $as_dir in #(((
13310    '') as_dir=./ ;;
13311    */) ;;
13312    *) as_dir=$as_dir/ ;;
13313  esac
13314    for ac_exec_ext in '' $ac_executable_extensions; do
13315  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13316    ac_cv_prog_ac_ct_RANLIB="ranlib"
13317    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13318    break 2
13319  fi
13320done
13321  done
13322IFS=$as_save_IFS
13323
13324fi
13325fi
13326ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13327if test -n "$ac_ct_RANLIB"; then
13328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13329printf "%s\n" "$ac_ct_RANLIB" >&6; }
13330else
13331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332printf "%s\n" "no" >&6; }
13333fi
13334
13335  if test "x$ac_ct_RANLIB" = x; then
13336    RANLIB=":"
13337  else
13338    case $cross_compiling:$ac_tool_warned in
13339yes:)
13340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13341printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13342ac_tool_warned=yes ;;
13343esac
13344    RANLIB=$ac_ct_RANLIB
13345  fi
13346else
13347  RANLIB="$ac_cv_prog_RANLIB"
13348fi
13349
13350test -z "$RANLIB" && RANLIB=:
13351
13352
13353
13354
13355
13356
13357# Determine commands to create old-style static archives.
13358old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13359old_postinstall_cmds='chmod 644 $oldlib'
13360old_postuninstall_cmds=
13361
13362if test -n "$RANLIB"; then
13363  case $host_os in
13364  bitrig* | openbsd*)
13365    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13366    ;;
13367  *)
13368    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13369    ;;
13370  esac
13371  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13372fi
13373
13374case $host_os in
13375  darwin*)
13376    lock_old_archive_extraction=yes ;;
13377  *)
13378    lock_old_archive_extraction=no ;;
13379esac
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419# If no C compiler was specified, use CC.
13420LTCC=${LTCC-"$CC"}
13421
13422# If no C compiler flags were specified, use CFLAGS.
13423LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13424
13425# Allow CC to be a program name with arguments.
13426compiler=$CC
13427
13428
13429# Check for command to grab the raw symbol name followed by C symbol from nm.
13430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13431printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13432if test ${lt_cv_sys_global_symbol_pipe+y}
13433then :
13434  printf %s "(cached) " >&6
13435else $as_nop
13436
13437# These are sane defaults that work on at least a few old systems.
13438# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13439
13440# Character class describing NM global symbol codes.
13441symcode='[BCDEGRST]'
13442
13443# Regexp to match symbols that can be accessed directly from C.
13444sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13445
13446# Define system-specific variables.
13447case $host_os in
13448aix*)
13449  symcode='[BCDT]'
13450  ;;
13451cygwin* | mingw* | pw32* | cegcc*)
13452  symcode='[ABCDGISTW]'
13453  ;;
13454hpux*)
13455  if test ia64 = "$host_cpu"; then
13456    symcode='[ABCDEGRST]'
13457  fi
13458  ;;
13459irix* | nonstopux*)
13460  symcode='[BCDEGRST]'
13461  ;;
13462osf*)
13463  symcode='[BCDEGQRST]'
13464  ;;
13465solaris*)
13466  symcode='[BDRT]'
13467  ;;
13468sco3.2v5*)
13469  symcode='[DT]'
13470  ;;
13471sysv4.2uw2*)
13472  symcode='[DT]'
13473  ;;
13474sysv5* | sco5v6* | unixware* | OpenUNIX*)
13475  symcode='[ABDT]'
13476  ;;
13477sysv4)
13478  symcode='[DFNSTU]'
13479  ;;
13480esac
13481
13482# If we're using GNU nm, then use its standard symbol codes.
13483case `$NM -V 2>&1` in
13484*GNU* | *'with BFD'*)
13485  symcode='[ABCDGIRSTW]' ;;
13486esac
13487
13488if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13489  # Gets list of data symbols to import.
13490  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13491  # Adjust the below global symbol transforms to fixup imported variables.
13492  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13493  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13494  lt_c_name_lib_hook="\
13495  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13496  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13497else
13498  # Disable hooks by default.
13499  lt_cv_sys_global_symbol_to_import=
13500  lt_cdecl_hook=
13501  lt_c_name_hook=
13502  lt_c_name_lib_hook=
13503fi
13504
13505# Transform an extracted symbol line into a proper C declaration.
13506# Some systems (esp. on ia64) link data and code symbols differently,
13507# so use this general approach.
13508lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13509$lt_cdecl_hook\
13510" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13511" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13512
13513# Transform an extracted symbol line into symbol name and symbol address
13514lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13515$lt_c_name_hook\
13516" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13517" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13518
13519# Transform an extracted symbol line into symbol name with lib prefix and
13520# symbol address.
13521lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13522$lt_c_name_lib_hook\
13523" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13524" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13525" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13526
13527# Handle CRLF in mingw tool chain
13528opt_cr=
13529case $build_os in
13530mingw*)
13531  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13532  ;;
13533esac
13534
13535# Try without a prefix underscore, then with it.
13536for ac_symprfx in "" "_"; do
13537
13538  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13539  symxfrm="\\1 $ac_symprfx\\2 \\2"
13540
13541  # Write the raw and C identifiers.
13542  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13543    # Fake it for dumpbin and say T for any non-static function,
13544    # D for any global variable and I for any imported variable.
13545    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13546    # which start with @ or ?.
13547    lt_cv_sys_global_symbol_pipe="$AWK '"\
13548"     {last_section=section; section=\$ 3};"\
13549"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13550"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13551"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13552"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13553"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13554"     \$ 0!~/External *\|/{next};"\
13555"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13556"     {if(hide[section]) next};"\
13557"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13558"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13559"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13560"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13561"     ' prfx=^$ac_symprfx"
13562  else
13563    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13564  fi
13565  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13566
13567  # Check to see that the pipe works correctly.
13568  pipe_works=no
13569
13570  rm -f conftest*
13571  cat > conftest.$ac_ext <<_LT_EOF
13572#ifdef __cplusplus
13573extern "C" {
13574#endif
13575char nm_test_var;
13576void nm_test_func(void);
13577void nm_test_func(void){}
13578#ifdef __cplusplus
13579}
13580#endif
13581int main(){nm_test_var='a';nm_test_func();return(0);}
13582_LT_EOF
13583
13584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13585  (eval $ac_compile) 2>&5
13586  ac_status=$?
13587  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13588  test $ac_status = 0; }; then
13589    # Now try to grab the symbols.
13590    nlist=conftest.nm
13591    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13592  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13593  ac_status=$?
13594  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13595  test $ac_status = 0; } && test -s "$nlist"; then
13596      # Try sorting and uniquifying the output.
13597      if sort "$nlist" | uniq > "$nlist"T; then
13598	mv -f "$nlist"T "$nlist"
13599      else
13600	rm -f "$nlist"T
13601      fi
13602
13603      # Make sure that we snagged all the symbols we need.
13604      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13605	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13606	  cat <<_LT_EOF > conftest.$ac_ext
13607/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13608#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13609/* DATA imports from DLLs on WIN32 can't be const, because runtime
13610   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13611# define LT_DLSYM_CONST
13612#elif defined __osf__
13613/* This system does not cope well with relocations in const data.  */
13614# define LT_DLSYM_CONST
13615#else
13616# define LT_DLSYM_CONST const
13617#endif
13618
13619#ifdef __cplusplus
13620extern "C" {
13621#endif
13622
13623_LT_EOF
13624	  # Now generate the symbol file.
13625	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13626
13627	  cat <<_LT_EOF >> conftest.$ac_ext
13628
13629/* The mapping between symbol names and symbols.  */
13630LT_DLSYM_CONST struct {
13631  const char *name;
13632  void       *address;
13633}
13634lt__PROGRAM__LTX_preloaded_symbols[] =
13635{
13636  { "@PROGRAM@", (void *) 0 },
13637_LT_EOF
13638	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13639	  cat <<\_LT_EOF >> conftest.$ac_ext
13640  {0, (void *) 0}
13641};
13642
13643/* This works around a problem in FreeBSD linker */
13644#ifdef FREEBSD_WORKAROUND
13645static const void *lt_preloaded_setup() {
13646  return lt__PROGRAM__LTX_preloaded_symbols;
13647}
13648#endif
13649
13650#ifdef __cplusplus
13651}
13652#endif
13653_LT_EOF
13654	  # Now try linking the two files.
13655	  mv conftest.$ac_objext conftstm.$ac_objext
13656	  lt_globsym_save_LIBS=$LIBS
13657	  lt_globsym_save_CFLAGS=$CFLAGS
13658	  LIBS=conftstm.$ac_objext
13659	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13660	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13661  (eval $ac_link) 2>&5
13662  ac_status=$?
13663  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13665	    pipe_works=yes
13666	  fi
13667	  LIBS=$lt_globsym_save_LIBS
13668	  CFLAGS=$lt_globsym_save_CFLAGS
13669	else
13670	  echo "cannot find nm_test_func in $nlist" >&5
13671	fi
13672      else
13673	echo "cannot find nm_test_var in $nlist" >&5
13674      fi
13675    else
13676      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13677    fi
13678  else
13679    echo "$progname: failed program was:" >&5
13680    cat conftest.$ac_ext >&5
13681  fi
13682  rm -rf conftest* conftst*
13683
13684  # Do not use the global_symbol_pipe unless it works.
13685  if test yes = "$pipe_works"; then
13686    break
13687  else
13688    lt_cv_sys_global_symbol_pipe=
13689  fi
13690done
13691
13692fi
13693
13694if test -z "$lt_cv_sys_global_symbol_pipe"; then
13695  lt_cv_sys_global_symbol_to_cdecl=
13696fi
13697if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13699printf "%s\n" "failed" >&6; }
13700else
13701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13702printf "%s\n" "ok" >&6; }
13703fi
13704
13705# Response file support.
13706if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13707  nm_file_list_spec='@'
13708elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13709  nm_file_list_spec='@'
13710fi
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13749printf %s "checking for sysroot... " >&6; }
13750
13751# Check whether --with-sysroot was given.
13752if test ${with_sysroot+y}
13753then :
13754  withval=$with_sysroot;
13755else $as_nop
13756  with_sysroot=no
13757fi
13758
13759
13760lt_sysroot=
13761case $with_sysroot in #(
13762 yes)
13763   if test yes = "$GCC"; then
13764     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13765   fi
13766   ;; #(
13767 /*)
13768   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13769   ;; #(
13770 no|'')
13771   ;; #(
13772 *)
13773   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13774printf "%s\n" "$with_sysroot" >&6; }
13775   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13776   ;;
13777esac
13778
13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13780printf "%s\n" "${lt_sysroot:-no}" >&6; }
13781
13782
13783
13784
13785
13786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13787printf %s "checking for a working dd... " >&6; }
13788if test ${ac_cv_path_lt_DD+y}
13789then :
13790  printf %s "(cached) " >&6
13791else $as_nop
13792  printf 0123456789abcdef0123456789abcdef >conftest.i
13793cat conftest.i conftest.i >conftest2.i
13794: ${lt_DD:=$DD}
13795if test -z "$lt_DD"; then
13796  ac_path_lt_DD_found=false
13797  # Loop through the user's path and test for each of PROGNAME-LIST
13798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799for as_dir in $PATH
13800do
13801  IFS=$as_save_IFS
13802  case $as_dir in #(((
13803    '') as_dir=./ ;;
13804    */) ;;
13805    *) as_dir=$as_dir/ ;;
13806  esac
13807    for ac_prog in dd
13808   do
13809    for ac_exec_ext in '' $ac_executable_extensions; do
13810      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13811      as_fn_executable_p "$ac_path_lt_DD" || continue
13812if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13813  cmp -s conftest.i conftest.out \
13814  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13815fi
13816      $ac_path_lt_DD_found && break 3
13817    done
13818  done
13819  done
13820IFS=$as_save_IFS
13821  if test -z "$ac_cv_path_lt_DD"; then
13822    :
13823  fi
13824else
13825  ac_cv_path_lt_DD=$lt_DD
13826fi
13827
13828rm -f conftest.i conftest2.i conftest.out
13829fi
13830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13831printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13832
13833
13834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13835printf %s "checking how to truncate binary pipes... " >&6; }
13836if test ${lt_cv_truncate_bin+y}
13837then :
13838  printf %s "(cached) " >&6
13839else $as_nop
13840  printf 0123456789abcdef0123456789abcdef >conftest.i
13841cat conftest.i conftest.i >conftest2.i
13842lt_cv_truncate_bin=
13843if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13844  cmp -s conftest.i conftest.out \
13845  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13846fi
13847rm -f conftest.i conftest2.i conftest.out
13848test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13849fi
13850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13851printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13852
13853
13854
13855
13856
13857
13858
13859# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13860func_cc_basename ()
13861{
13862    for cc_temp in $*""; do
13863      case $cc_temp in
13864        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13865        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13866        \-*) ;;
13867        *) break;;
13868      esac
13869    done
13870    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13871}
13872
13873# Check whether --enable-libtool-lock was given.
13874if test ${enable_libtool_lock+y}
13875then :
13876  enableval=$enable_libtool_lock;
13877fi
13878
13879test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13880
13881# Some flags need to be propagated to the compiler or linker for good
13882# libtool support.
13883case $host in
13884ia64-*-hpux*)
13885  # Find out what ABI is being produced by ac_compile, and set mode
13886  # options accordingly.
13887  echo 'int i;' > conftest.$ac_ext
13888  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13889  (eval $ac_compile) 2>&5
13890  ac_status=$?
13891  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13892  test $ac_status = 0; }; then
13893    case `$FILECMD conftest.$ac_objext` in
13894      *ELF-32*)
13895	HPUX_IA64_MODE=32
13896	;;
13897      *ELF-64*)
13898	HPUX_IA64_MODE=64
13899	;;
13900    esac
13901  fi
13902  rm -rf conftest*
13903  ;;
13904*-*-irix6*)
13905  # Find out what ABI is being produced by ac_compile, and set linker
13906  # options accordingly.
13907  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13908  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13909  (eval $ac_compile) 2>&5
13910  ac_status=$?
13911  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13912  test $ac_status = 0; }; then
13913    if test yes = "$lt_cv_prog_gnu_ld"; then
13914      case `$FILECMD conftest.$ac_objext` in
13915	*32-bit*)
13916	  LD="${LD-ld} -melf32bsmip"
13917	  ;;
13918	*N32*)
13919	  LD="${LD-ld} -melf32bmipn32"
13920	  ;;
13921	*64-bit*)
13922	  LD="${LD-ld} -melf64bmip"
13923	;;
13924      esac
13925    else
13926      case `$FILECMD conftest.$ac_objext` in
13927	*32-bit*)
13928	  LD="${LD-ld} -32"
13929	  ;;
13930	*N32*)
13931	  LD="${LD-ld} -n32"
13932	  ;;
13933	*64-bit*)
13934	  LD="${LD-ld} -64"
13935	  ;;
13936      esac
13937    fi
13938  fi
13939  rm -rf conftest*
13940  ;;
13941
13942mips64*-*linux*)
13943  # Find out what ABI is being produced by ac_compile, and set linker
13944  # options accordingly.
13945  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13946  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13947  (eval $ac_compile) 2>&5
13948  ac_status=$?
13949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13950  test $ac_status = 0; }; then
13951    emul=elf
13952    case `$FILECMD conftest.$ac_objext` in
13953      *32-bit*)
13954	emul="${emul}32"
13955	;;
13956      *64-bit*)
13957	emul="${emul}64"
13958	;;
13959    esac
13960    case `$FILECMD conftest.$ac_objext` in
13961      *MSB*)
13962	emul="${emul}btsmip"
13963	;;
13964      *LSB*)
13965	emul="${emul}ltsmip"
13966	;;
13967    esac
13968    case `$FILECMD conftest.$ac_objext` in
13969      *N32*)
13970	emul="${emul}n32"
13971	;;
13972    esac
13973    LD="${LD-ld} -m $emul"
13974  fi
13975  rm -rf conftest*
13976  ;;
13977
13978x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13979s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13980  # Find out what ABI is being produced by ac_compile, and set linker
13981  # options accordingly.  Note that the listed cases only cover the
13982  # situations where additional linker options are needed (such as when
13983  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13984  # vice versa); the common cases where no linker options are needed do
13985  # not appear in the list.
13986  echo 'int i;' > conftest.$ac_ext
13987  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13988  (eval $ac_compile) 2>&5
13989  ac_status=$?
13990  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13991  test $ac_status = 0; }; then
13992    case `$FILECMD conftest.o` in
13993      *32-bit*)
13994	case $host in
13995	  x86_64-*kfreebsd*-gnu)
13996	    LD="${LD-ld} -m elf_i386_fbsd"
13997	    ;;
13998	  x86_64-*linux*)
13999	    case `$FILECMD conftest.o` in
14000	      *x86-64*)
14001		LD="${LD-ld} -m elf32_x86_64"
14002		;;
14003	      *)
14004		LD="${LD-ld} -m elf_i386"
14005		;;
14006	    esac
14007	    ;;
14008	  powerpc64le-*linux*)
14009	    LD="${LD-ld} -m elf32lppclinux"
14010	    ;;
14011	  powerpc64-*linux*)
14012	    LD="${LD-ld} -m elf32ppclinux"
14013	    ;;
14014	  s390x-*linux*)
14015	    LD="${LD-ld} -m elf_s390"
14016	    ;;
14017	  sparc64-*linux*)
14018	    LD="${LD-ld} -m elf32_sparc"
14019	    ;;
14020	esac
14021	;;
14022      *64-bit*)
14023	case $host in
14024	  x86_64-*kfreebsd*-gnu)
14025	    LD="${LD-ld} -m elf_x86_64_fbsd"
14026	    ;;
14027	  x86_64-*linux*)
14028	    LD="${LD-ld} -m elf_x86_64"
14029	    ;;
14030	  powerpcle-*linux*)
14031	    LD="${LD-ld} -m elf64lppc"
14032	    ;;
14033	  powerpc-*linux*)
14034	    LD="${LD-ld} -m elf64ppc"
14035	    ;;
14036	  s390*-*linux*|s390*-*tpf*)
14037	    LD="${LD-ld} -m elf64_s390"
14038	    ;;
14039	  sparc*-*linux*)
14040	    LD="${LD-ld} -m elf64_sparc"
14041	    ;;
14042	esac
14043	;;
14044    esac
14045  fi
14046  rm -rf conftest*
14047  ;;
14048
14049*-*-sco3.2v5*)
14050  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14051  SAVE_CFLAGS=$CFLAGS
14052  CFLAGS="$CFLAGS -belf"
14053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14054printf %s "checking whether the C compiler needs -belf... " >&6; }
14055if test ${lt_cv_cc_needs_belf+y}
14056then :
14057  printf %s "(cached) " >&6
14058else $as_nop
14059  ac_ext=c
14060ac_cpp='$CPP $CPPFLAGS'
14061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14063ac_compiler_gnu=$ac_cv_c_compiler_gnu
14064
14065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h.  */
14067
14068int
14069main (void)
14070{
14071
14072  ;
14073  return 0;
14074}
14075_ACEOF
14076if ac_fn_c_try_link "$LINENO"
14077then :
14078  lt_cv_cc_needs_belf=yes
14079else $as_nop
14080  lt_cv_cc_needs_belf=no
14081fi
14082rm -f core conftest.err conftest.$ac_objext conftest.beam \
14083    conftest$ac_exeext conftest.$ac_ext
14084     ac_ext=c
14085ac_cpp='$CPP $CPPFLAGS'
14086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088ac_compiler_gnu=$ac_cv_c_compiler_gnu
14089
14090fi
14091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14092printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14093  if test yes != "$lt_cv_cc_needs_belf"; then
14094    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14095    CFLAGS=$SAVE_CFLAGS
14096  fi
14097  ;;
14098*-*solaris*)
14099  # Find out what ABI is being produced by ac_compile, and set linker
14100  # options accordingly.
14101  echo 'int i;' > conftest.$ac_ext
14102  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14103  (eval $ac_compile) 2>&5
14104  ac_status=$?
14105  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14106  test $ac_status = 0; }; then
14107    case `$FILECMD conftest.o` in
14108    *64-bit*)
14109      case $lt_cv_prog_gnu_ld in
14110      yes*)
14111        case $host in
14112        i?86-*-solaris*|x86_64-*-solaris*)
14113          LD="${LD-ld} -m elf_x86_64"
14114          ;;
14115        sparc*-*-solaris*)
14116          LD="${LD-ld} -m elf64_sparc"
14117          ;;
14118        esac
14119        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14120        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14121          LD=${LD-ld}_sol2
14122        fi
14123        ;;
14124      *)
14125	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14126	  LD="${LD-ld} -64"
14127	fi
14128	;;
14129      esac
14130      ;;
14131    esac
14132  fi
14133  rm -rf conftest*
14134  ;;
14135esac
14136
14137need_locks=$enable_libtool_lock
14138
14139if test -n "$ac_tool_prefix"; then
14140  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14141set dummy ${ac_tool_prefix}mt; ac_word=$2
14142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14143printf %s "checking for $ac_word... " >&6; }
14144if test ${ac_cv_prog_MANIFEST_TOOL+y}
14145then :
14146  printf %s "(cached) " >&6
14147else $as_nop
14148  if test -n "$MANIFEST_TOOL"; then
14149  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14150else
14151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152for as_dir in $PATH
14153do
14154  IFS=$as_save_IFS
14155  case $as_dir in #(((
14156    '') as_dir=./ ;;
14157    */) ;;
14158    *) as_dir=$as_dir/ ;;
14159  esac
14160    for ac_exec_ext in '' $ac_executable_extensions; do
14161  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14162    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14163    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14164    break 2
14165  fi
14166done
14167  done
14168IFS=$as_save_IFS
14169
14170fi
14171fi
14172MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14173if test -n "$MANIFEST_TOOL"; then
14174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14175printf "%s\n" "$MANIFEST_TOOL" >&6; }
14176else
14177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178printf "%s\n" "no" >&6; }
14179fi
14180
14181
14182fi
14183if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14184  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14185  # Extract the first word of "mt", so it can be a program name with args.
14186set dummy mt; ac_word=$2
14187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188printf %s "checking for $ac_word... " >&6; }
14189if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14190then :
14191  printf %s "(cached) " >&6
14192else $as_nop
14193  if test -n "$ac_ct_MANIFEST_TOOL"; then
14194  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14195else
14196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197for as_dir in $PATH
14198do
14199  IFS=$as_save_IFS
14200  case $as_dir in #(((
14201    '') as_dir=./ ;;
14202    */) ;;
14203    *) as_dir=$as_dir/ ;;
14204  esac
14205    for ac_exec_ext in '' $ac_executable_extensions; do
14206  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14207    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14208    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14209    break 2
14210  fi
14211done
14212  done
14213IFS=$as_save_IFS
14214
14215fi
14216fi
14217ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14218if test -n "$ac_ct_MANIFEST_TOOL"; then
14219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14220printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14221else
14222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223printf "%s\n" "no" >&6; }
14224fi
14225
14226  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14227    MANIFEST_TOOL=":"
14228  else
14229    case $cross_compiling:$ac_tool_warned in
14230yes:)
14231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14232printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14233ac_tool_warned=yes ;;
14234esac
14235    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14236  fi
14237else
14238  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14239fi
14240
14241test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14243printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14244if test ${lt_cv_path_mainfest_tool+y}
14245then :
14246  printf %s "(cached) " >&6
14247else $as_nop
14248  lt_cv_path_mainfest_tool=no
14249  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14250  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14251  cat conftest.err >&5
14252  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14253    lt_cv_path_mainfest_tool=yes
14254  fi
14255  rm -f conftest*
14256fi
14257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14258printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14259if test yes != "$lt_cv_path_mainfest_tool"; then
14260  MANIFEST_TOOL=:
14261fi
14262
14263
14264
14265
14266
14267
14268  case $host_os in
14269    rhapsody* | darwin*)
14270    if test -n "$ac_tool_prefix"; then
14271  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14272set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14274printf %s "checking for $ac_word... " >&6; }
14275if test ${ac_cv_prog_DSYMUTIL+y}
14276then :
14277  printf %s "(cached) " >&6
14278else $as_nop
14279  if test -n "$DSYMUTIL"; then
14280  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14281else
14282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283for as_dir in $PATH
14284do
14285  IFS=$as_save_IFS
14286  case $as_dir in #(((
14287    '') as_dir=./ ;;
14288    */) ;;
14289    *) as_dir=$as_dir/ ;;
14290  esac
14291    for ac_exec_ext in '' $ac_executable_extensions; do
14292  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14293    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14294    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14295    break 2
14296  fi
14297done
14298  done
14299IFS=$as_save_IFS
14300
14301fi
14302fi
14303DSYMUTIL=$ac_cv_prog_DSYMUTIL
14304if test -n "$DSYMUTIL"; then
14305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14306printf "%s\n" "$DSYMUTIL" >&6; }
14307else
14308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309printf "%s\n" "no" >&6; }
14310fi
14311
14312
14313fi
14314if test -z "$ac_cv_prog_DSYMUTIL"; then
14315  ac_ct_DSYMUTIL=$DSYMUTIL
14316  # Extract the first word of "dsymutil", so it can be a program name with args.
14317set dummy dsymutil; ac_word=$2
14318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319printf %s "checking for $ac_word... " >&6; }
14320if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14321then :
14322  printf %s "(cached) " >&6
14323else $as_nop
14324  if test -n "$ac_ct_DSYMUTIL"; then
14325  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14326else
14327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328for as_dir in $PATH
14329do
14330  IFS=$as_save_IFS
14331  case $as_dir in #(((
14332    '') as_dir=./ ;;
14333    */) ;;
14334    *) as_dir=$as_dir/ ;;
14335  esac
14336    for ac_exec_ext in '' $ac_executable_extensions; do
14337  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14338    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14339    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14340    break 2
14341  fi
14342done
14343  done
14344IFS=$as_save_IFS
14345
14346fi
14347fi
14348ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14349if test -n "$ac_ct_DSYMUTIL"; then
14350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14351printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14352else
14353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14354printf "%s\n" "no" >&6; }
14355fi
14356
14357  if test "x$ac_ct_DSYMUTIL" = x; then
14358    DSYMUTIL=":"
14359  else
14360    case $cross_compiling:$ac_tool_warned in
14361yes:)
14362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14363printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14364ac_tool_warned=yes ;;
14365esac
14366    DSYMUTIL=$ac_ct_DSYMUTIL
14367  fi
14368else
14369  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14370fi
14371
14372    if test -n "$ac_tool_prefix"; then
14373  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14374set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14376printf %s "checking for $ac_word... " >&6; }
14377if test ${ac_cv_prog_NMEDIT+y}
14378then :
14379  printf %s "(cached) " >&6
14380else $as_nop
14381  if test -n "$NMEDIT"; then
14382  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14383else
14384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385for as_dir in $PATH
14386do
14387  IFS=$as_save_IFS
14388  case $as_dir in #(((
14389    '') as_dir=./ ;;
14390    */) ;;
14391    *) as_dir=$as_dir/ ;;
14392  esac
14393    for ac_exec_ext in '' $ac_executable_extensions; do
14394  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14395    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14396    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14397    break 2
14398  fi
14399done
14400  done
14401IFS=$as_save_IFS
14402
14403fi
14404fi
14405NMEDIT=$ac_cv_prog_NMEDIT
14406if test -n "$NMEDIT"; then
14407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14408printf "%s\n" "$NMEDIT" >&6; }
14409else
14410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411printf "%s\n" "no" >&6; }
14412fi
14413
14414
14415fi
14416if test -z "$ac_cv_prog_NMEDIT"; then
14417  ac_ct_NMEDIT=$NMEDIT
14418  # Extract the first word of "nmedit", so it can be a program name with args.
14419set dummy nmedit; ac_word=$2
14420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14421printf %s "checking for $ac_word... " >&6; }
14422if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14423then :
14424  printf %s "(cached) " >&6
14425else $as_nop
14426  if test -n "$ac_ct_NMEDIT"; then
14427  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14428else
14429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430for as_dir in $PATH
14431do
14432  IFS=$as_save_IFS
14433  case $as_dir in #(((
14434    '') as_dir=./ ;;
14435    */) ;;
14436    *) as_dir=$as_dir/ ;;
14437  esac
14438    for ac_exec_ext in '' $ac_executable_extensions; do
14439  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14440    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14442    break 2
14443  fi
14444done
14445  done
14446IFS=$as_save_IFS
14447
14448fi
14449fi
14450ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14451if test -n "$ac_ct_NMEDIT"; then
14452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14453printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14454else
14455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456printf "%s\n" "no" >&6; }
14457fi
14458
14459  if test "x$ac_ct_NMEDIT" = x; then
14460    NMEDIT=":"
14461  else
14462    case $cross_compiling:$ac_tool_warned in
14463yes:)
14464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14465printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14466ac_tool_warned=yes ;;
14467esac
14468    NMEDIT=$ac_ct_NMEDIT
14469  fi
14470else
14471  NMEDIT="$ac_cv_prog_NMEDIT"
14472fi
14473
14474    if test -n "$ac_tool_prefix"; then
14475  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14476set dummy ${ac_tool_prefix}lipo; ac_word=$2
14477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14478printf %s "checking for $ac_word... " >&6; }
14479if test ${ac_cv_prog_LIPO+y}
14480then :
14481  printf %s "(cached) " >&6
14482else $as_nop
14483  if test -n "$LIPO"; then
14484  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14485else
14486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487for as_dir in $PATH
14488do
14489  IFS=$as_save_IFS
14490  case $as_dir in #(((
14491    '') as_dir=./ ;;
14492    */) ;;
14493    *) as_dir=$as_dir/ ;;
14494  esac
14495    for ac_exec_ext in '' $ac_executable_extensions; do
14496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14497    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14499    break 2
14500  fi
14501done
14502  done
14503IFS=$as_save_IFS
14504
14505fi
14506fi
14507LIPO=$ac_cv_prog_LIPO
14508if test -n "$LIPO"; then
14509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14510printf "%s\n" "$LIPO" >&6; }
14511else
14512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14513printf "%s\n" "no" >&6; }
14514fi
14515
14516
14517fi
14518if test -z "$ac_cv_prog_LIPO"; then
14519  ac_ct_LIPO=$LIPO
14520  # Extract the first word of "lipo", so it can be a program name with args.
14521set dummy lipo; ac_word=$2
14522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14523printf %s "checking for $ac_word... " >&6; }
14524if test ${ac_cv_prog_ac_ct_LIPO+y}
14525then :
14526  printf %s "(cached) " >&6
14527else $as_nop
14528  if test -n "$ac_ct_LIPO"; then
14529  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14530else
14531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14532for as_dir in $PATH
14533do
14534  IFS=$as_save_IFS
14535  case $as_dir in #(((
14536    '') as_dir=./ ;;
14537    */) ;;
14538    *) as_dir=$as_dir/ ;;
14539  esac
14540    for ac_exec_ext in '' $ac_executable_extensions; do
14541  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14542    ac_cv_prog_ac_ct_LIPO="lipo"
14543    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14544    break 2
14545  fi
14546done
14547  done
14548IFS=$as_save_IFS
14549
14550fi
14551fi
14552ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14553if test -n "$ac_ct_LIPO"; then
14554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14555printf "%s\n" "$ac_ct_LIPO" >&6; }
14556else
14557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14558printf "%s\n" "no" >&6; }
14559fi
14560
14561  if test "x$ac_ct_LIPO" = x; then
14562    LIPO=":"
14563  else
14564    case $cross_compiling:$ac_tool_warned in
14565yes:)
14566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14567printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14568ac_tool_warned=yes ;;
14569esac
14570    LIPO=$ac_ct_LIPO
14571  fi
14572else
14573  LIPO="$ac_cv_prog_LIPO"
14574fi
14575
14576    if test -n "$ac_tool_prefix"; then
14577  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14578set dummy ${ac_tool_prefix}otool; ac_word=$2
14579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14580printf %s "checking for $ac_word... " >&6; }
14581if test ${ac_cv_prog_OTOOL+y}
14582then :
14583  printf %s "(cached) " >&6
14584else $as_nop
14585  if test -n "$OTOOL"; then
14586  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14587else
14588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589for as_dir in $PATH
14590do
14591  IFS=$as_save_IFS
14592  case $as_dir in #(((
14593    '') as_dir=./ ;;
14594    */) ;;
14595    *) as_dir=$as_dir/ ;;
14596  esac
14597    for ac_exec_ext in '' $ac_executable_extensions; do
14598  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14599    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14600    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14601    break 2
14602  fi
14603done
14604  done
14605IFS=$as_save_IFS
14606
14607fi
14608fi
14609OTOOL=$ac_cv_prog_OTOOL
14610if test -n "$OTOOL"; then
14611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14612printf "%s\n" "$OTOOL" >&6; }
14613else
14614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615printf "%s\n" "no" >&6; }
14616fi
14617
14618
14619fi
14620if test -z "$ac_cv_prog_OTOOL"; then
14621  ac_ct_OTOOL=$OTOOL
14622  # Extract the first word of "otool", so it can be a program name with args.
14623set dummy otool; ac_word=$2
14624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14625printf %s "checking for $ac_word... " >&6; }
14626if test ${ac_cv_prog_ac_ct_OTOOL+y}
14627then :
14628  printf %s "(cached) " >&6
14629else $as_nop
14630  if test -n "$ac_ct_OTOOL"; then
14631  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14632else
14633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634for as_dir in $PATH
14635do
14636  IFS=$as_save_IFS
14637  case $as_dir in #(((
14638    '') as_dir=./ ;;
14639    */) ;;
14640    *) as_dir=$as_dir/ ;;
14641  esac
14642    for ac_exec_ext in '' $ac_executable_extensions; do
14643  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14644    ac_cv_prog_ac_ct_OTOOL="otool"
14645    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14646    break 2
14647  fi
14648done
14649  done
14650IFS=$as_save_IFS
14651
14652fi
14653fi
14654ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14655if test -n "$ac_ct_OTOOL"; then
14656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14657printf "%s\n" "$ac_ct_OTOOL" >&6; }
14658else
14659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660printf "%s\n" "no" >&6; }
14661fi
14662
14663  if test "x$ac_ct_OTOOL" = x; then
14664    OTOOL=":"
14665  else
14666    case $cross_compiling:$ac_tool_warned in
14667yes:)
14668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14669printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14670ac_tool_warned=yes ;;
14671esac
14672    OTOOL=$ac_ct_OTOOL
14673  fi
14674else
14675  OTOOL="$ac_cv_prog_OTOOL"
14676fi
14677
14678    if test -n "$ac_tool_prefix"; then
14679  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14680set dummy ${ac_tool_prefix}otool64; ac_word=$2
14681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14682printf %s "checking for $ac_word... " >&6; }
14683if test ${ac_cv_prog_OTOOL64+y}
14684then :
14685  printf %s "(cached) " >&6
14686else $as_nop
14687  if test -n "$OTOOL64"; then
14688  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14689else
14690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691for as_dir in $PATH
14692do
14693  IFS=$as_save_IFS
14694  case $as_dir in #(((
14695    '') as_dir=./ ;;
14696    */) ;;
14697    *) as_dir=$as_dir/ ;;
14698  esac
14699    for ac_exec_ext in '' $ac_executable_extensions; do
14700  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14701    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14702    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14703    break 2
14704  fi
14705done
14706  done
14707IFS=$as_save_IFS
14708
14709fi
14710fi
14711OTOOL64=$ac_cv_prog_OTOOL64
14712if test -n "$OTOOL64"; then
14713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14714printf "%s\n" "$OTOOL64" >&6; }
14715else
14716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14717printf "%s\n" "no" >&6; }
14718fi
14719
14720
14721fi
14722if test -z "$ac_cv_prog_OTOOL64"; then
14723  ac_ct_OTOOL64=$OTOOL64
14724  # Extract the first word of "otool64", so it can be a program name with args.
14725set dummy otool64; ac_word=$2
14726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14727printf %s "checking for $ac_word... " >&6; }
14728if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14729then :
14730  printf %s "(cached) " >&6
14731else $as_nop
14732  if test -n "$ac_ct_OTOOL64"; then
14733  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14734else
14735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14736for as_dir in $PATH
14737do
14738  IFS=$as_save_IFS
14739  case $as_dir in #(((
14740    '') as_dir=./ ;;
14741    */) ;;
14742    *) as_dir=$as_dir/ ;;
14743  esac
14744    for ac_exec_ext in '' $ac_executable_extensions; do
14745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14746    ac_cv_prog_ac_ct_OTOOL64="otool64"
14747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14748    break 2
14749  fi
14750done
14751  done
14752IFS=$as_save_IFS
14753
14754fi
14755fi
14756ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14757if test -n "$ac_ct_OTOOL64"; then
14758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14759printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14760else
14761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762printf "%s\n" "no" >&6; }
14763fi
14764
14765  if test "x$ac_ct_OTOOL64" = x; then
14766    OTOOL64=":"
14767  else
14768    case $cross_compiling:$ac_tool_warned in
14769yes:)
14770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14771printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14772ac_tool_warned=yes ;;
14773esac
14774    OTOOL64=$ac_ct_OTOOL64
14775  fi
14776else
14777  OTOOL64="$ac_cv_prog_OTOOL64"
14778fi
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14807printf %s "checking for -single_module linker flag... " >&6; }
14808if test ${lt_cv_apple_cc_single_mod+y}
14809then :
14810  printf %s "(cached) " >&6
14811else $as_nop
14812  lt_cv_apple_cc_single_mod=no
14813      if test -z "$LT_MULTI_MODULE"; then
14814	# By default we will add the -single_module flag. You can override
14815	# by either setting the environment variable LT_MULTI_MODULE
14816	# non-empty at configure time, or by adding -multi_module to the
14817	# link flags.
14818	rm -rf libconftest.dylib*
14819	echo "int foo(void){return 1;}" > conftest.c
14820	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14821-dynamiclib -Wl,-single_module conftest.c" >&5
14822	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14823	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14824        _lt_result=$?
14825	# If there is a non-empty error log, and "single_module"
14826	# appears in it, assume the flag caused a linker warning
14827        if test -s conftest.err && $GREP single_module conftest.err; then
14828	  cat conftest.err >&5
14829	# Otherwise, if the output was created with a 0 exit code from
14830	# the compiler, it worked.
14831	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14832	  lt_cv_apple_cc_single_mod=yes
14833	else
14834	  cat conftest.err >&5
14835	fi
14836	rm -rf libconftest.dylib*
14837	rm -f conftest.*
14838      fi
14839fi
14840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14841printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14842
14843    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14844printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14845if test ${lt_cv_ld_exported_symbols_list+y}
14846then :
14847  printf %s "(cached) " >&6
14848else $as_nop
14849  lt_cv_ld_exported_symbols_list=no
14850      save_LDFLAGS=$LDFLAGS
14851      echo "_main" > conftest.sym
14852      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14853      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854/* end confdefs.h.  */
14855
14856int
14857main (void)
14858{
14859
14860  ;
14861  return 0;
14862}
14863_ACEOF
14864if ac_fn_c_try_link "$LINENO"
14865then :
14866  lt_cv_ld_exported_symbols_list=yes
14867else $as_nop
14868  lt_cv_ld_exported_symbols_list=no
14869fi
14870rm -f core conftest.err conftest.$ac_objext conftest.beam \
14871    conftest$ac_exeext conftest.$ac_ext
14872	LDFLAGS=$save_LDFLAGS
14873
14874fi
14875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14876printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14877
14878    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14879printf %s "checking for -force_load linker flag... " >&6; }
14880if test ${lt_cv_ld_force_load+y}
14881then :
14882  printf %s "(cached) " >&6
14883else $as_nop
14884  lt_cv_ld_force_load=no
14885      cat > conftest.c << _LT_EOF
14886int forced_loaded() { return 2;}
14887_LT_EOF
14888      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14889      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14890      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14891      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14892      echo "$RANLIB libconftest.a" >&5
14893      $RANLIB libconftest.a 2>&5
14894      cat > conftest.c << _LT_EOF
14895int main() { return 0;}
14896_LT_EOF
14897      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14898      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14899      _lt_result=$?
14900      if test -s conftest.err && $GREP force_load conftest.err; then
14901	cat conftest.err >&5
14902      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14903	lt_cv_ld_force_load=yes
14904      else
14905	cat conftest.err >&5
14906      fi
14907        rm -f conftest.err libconftest.a conftest conftest.c
14908        rm -rf conftest.dSYM
14909
14910fi
14911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14912printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14913    case $host_os in
14914    rhapsody* | darwin1.[012])
14915      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14916    darwin1.*)
14917      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14918    darwin*)
14919      case $MACOSX_DEPLOYMENT_TARGET,$host in
14920        10.[012],*|,*powerpc*-darwin[5-8]*)
14921          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14922        *)
14923          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14924      esac
14925    ;;
14926  esac
14927    if test yes = "$lt_cv_apple_cc_single_mod"; then
14928      _lt_dar_single_mod='$single_module'
14929    fi
14930    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14931      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14932    else
14933      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14934    fi
14935    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14936      _lt_dsymutil='~$DSYMUTIL $lib || :'
14937    else
14938      _lt_dsymutil=
14939    fi
14940    ;;
14941  esac
14942
14943# func_munge_path_list VARIABLE PATH
14944# -----------------------------------
14945# VARIABLE is name of variable containing _space_ separated list of
14946# directories to be munged by the contents of PATH, which is string
14947# having a format:
14948# "DIR[:DIR]:"
14949#       string "DIR[ DIR]" will be prepended to VARIABLE
14950# ":DIR[:DIR]"
14951#       string "DIR[ DIR]" will be appended to VARIABLE
14952# "DIRP[:DIRP]::[DIRA:]DIRA"
14953#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14954#       "DIRA[ DIRA]" will be appended to VARIABLE
14955# "DIR[:DIR]"
14956#       VARIABLE will be replaced by "DIR[ DIR]"
14957func_munge_path_list ()
14958{
14959    case x$2 in
14960    x)
14961        ;;
14962    *:)
14963        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14964        ;;
14965    x:*)
14966        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14967        ;;
14968    *::*)
14969        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14970        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14971        ;;
14972    *)
14973        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14974        ;;
14975    esac
14976}
14977
14978ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14979"
14980if test "x$ac_cv_header_dlfcn_h" = xyes
14981then :
14982  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14983
14984fi
14985
14986
14987
14988
14989
14990# Set options
14991
14992
14993
14994        enable_dlopen=no
14995
14996
14997  enable_win32_dll=no
14998
14999
15000            # Check whether --enable-shared was given.
15001if test ${enable_shared+y}
15002then :
15003  enableval=$enable_shared; p=${PACKAGE-default}
15004    case $enableval in
15005    yes) enable_shared=yes ;;
15006    no) enable_shared=no ;;
15007    *)
15008      enable_shared=no
15009      # Look at the argument we got.  We use all the common list separators.
15010      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15011      for pkg in $enableval; do
15012	IFS=$lt_save_ifs
15013	if test "X$pkg" = "X$p"; then
15014	  enable_shared=yes
15015	fi
15016      done
15017      IFS=$lt_save_ifs
15018      ;;
15019    esac
15020else $as_nop
15021  enable_shared=yes
15022fi
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034# Check whether --with-pic was given.
15035if test ${with_pic+y}
15036then :
15037  withval=$with_pic; lt_p=${PACKAGE-default}
15038    case $withval in
15039    yes|no) pic_mode=$withval ;;
15040    *)
15041      pic_mode=default
15042      # Look at the argument we got.  We use all the common list separators.
15043      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15044      for lt_pkg in $withval; do
15045	IFS=$lt_save_ifs
15046	if test "X$lt_pkg" = "X$lt_p"; then
15047	  pic_mode=yes
15048	fi
15049      done
15050      IFS=$lt_save_ifs
15051      ;;
15052    esac
15053else $as_nop
15054  pic_mode=default
15055fi
15056
15057
15058
15059
15060
15061
15062
15063
15064  # Check whether --enable-fast-install was given.
15065if test ${enable_fast_install+y}
15066then :
15067  enableval=$enable_fast_install; p=${PACKAGE-default}
15068    case $enableval in
15069    yes) enable_fast_install=yes ;;
15070    no) enable_fast_install=no ;;
15071    *)
15072      enable_fast_install=no
15073      # Look at the argument we got.  We use all the common list separators.
15074      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15075      for pkg in $enableval; do
15076	IFS=$lt_save_ifs
15077	if test "X$pkg" = "X$p"; then
15078	  enable_fast_install=yes
15079	fi
15080      done
15081      IFS=$lt_save_ifs
15082      ;;
15083    esac
15084else $as_nop
15085  enable_fast_install=yes
15086fi
15087
15088
15089
15090
15091
15092
15093
15094
15095  shared_archive_member_spec=
15096case $host,$enable_shared in
15097power*-*-aix[5-9]*,yes)
15098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15099printf %s "checking which variant of shared library versioning to provide... " >&6; }
15100
15101# Check whether --with-aix-soname was given.
15102if test ${with_aix_soname+y}
15103then :
15104  withval=$with_aix_soname; case $withval in
15105    aix|svr4|both)
15106      ;;
15107    *)
15108      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15109      ;;
15110    esac
15111    lt_cv_with_aix_soname=$with_aix_soname
15112else $as_nop
15113  if test ${lt_cv_with_aix_soname+y}
15114then :
15115  printf %s "(cached) " >&6
15116else $as_nop
15117  lt_cv_with_aix_soname=aix
15118fi
15119
15120    with_aix_soname=$lt_cv_with_aix_soname
15121fi
15122
15123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15124printf "%s\n" "$with_aix_soname" >&6; }
15125  if test aix != "$with_aix_soname"; then
15126    # For the AIX way of multilib, we name the shared archive member
15127    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15128    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15129    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15130    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15131    if test 64 = "${OBJECT_MODE-32}"; then
15132      shared_archive_member_spec=shr_64
15133    else
15134      shared_archive_member_spec=shr
15135    fi
15136  fi
15137  ;;
15138*)
15139  with_aix_soname=aix
15140  ;;
15141esac
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152# This can be used to rebuild libtool when needed
15153LIBTOOL_DEPS=$ltmain
15154
15155# Always use our own libtool.
15156LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187test -z "$LN_S" && LN_S="ln -s"
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202if test -n "${ZSH_VERSION+set}"; then
15203   setopt NO_GLOB_SUBST
15204fi
15205
15206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15207printf %s "checking for objdir... " >&6; }
15208if test ${lt_cv_objdir+y}
15209then :
15210  printf %s "(cached) " >&6
15211else $as_nop
15212  rm -f .libs 2>/dev/null
15213mkdir .libs 2>/dev/null
15214if test -d .libs; then
15215  lt_cv_objdir=.libs
15216else
15217  # MS-DOS does not allow filenames that begin with a dot.
15218  lt_cv_objdir=_libs
15219fi
15220rmdir .libs 2>/dev/null
15221fi
15222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15223printf "%s\n" "$lt_cv_objdir" >&6; }
15224objdir=$lt_cv_objdir
15225
15226
15227
15228
15229
15230printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15231
15232
15233
15234
15235case $host_os in
15236aix3*)
15237  # AIX sometimes has problems with the GCC collect2 program.  For some
15238  # reason, if we set the COLLECT_NAMES environment variable, the problems
15239  # vanish in a puff of smoke.
15240  if test set != "${COLLECT_NAMES+set}"; then
15241    COLLECT_NAMES=
15242    export COLLECT_NAMES
15243  fi
15244  ;;
15245esac
15246
15247# Global variables:
15248ofile=libtool
15249can_build_shared=yes
15250
15251# All known linkers require a '.a' archive for static linking (except MSVC and
15252# ICC, which need '.lib').
15253libext=a
15254
15255with_gnu_ld=$lt_cv_prog_gnu_ld
15256
15257old_CC=$CC
15258old_CFLAGS=$CFLAGS
15259
15260# Set sane defaults for various variables
15261test -z "$CC" && CC=cc
15262test -z "$LTCC" && LTCC=$CC
15263test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15264test -z "$LD" && LD=ld
15265test -z "$ac_objext" && ac_objext=o
15266
15267func_cc_basename $compiler
15268cc_basename=$func_cc_basename_result
15269
15270
15271# Only perform the check for file, if the check method requires it
15272test -z "$MAGIC_CMD" && MAGIC_CMD=file
15273case $deplibs_check_method in
15274file_magic*)
15275  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15276    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15277printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15278if test ${lt_cv_path_MAGIC_CMD+y}
15279then :
15280  printf %s "(cached) " >&6
15281else $as_nop
15282  case $MAGIC_CMD in
15283[\\/*] |  ?:[\\/]*)
15284  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15285  ;;
15286*)
15287  lt_save_MAGIC_CMD=$MAGIC_CMD
15288  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15289  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15290  for ac_dir in $ac_dummy; do
15291    IFS=$lt_save_ifs
15292    test -z "$ac_dir" && ac_dir=.
15293    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15294      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15295      if test -n "$file_magic_test_file"; then
15296	case $deplibs_check_method in
15297	"file_magic "*)
15298	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15299	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15300	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15301	    $EGREP "$file_magic_regex" > /dev/null; then
15302	    :
15303	  else
15304	    cat <<_LT_EOF 1>&2
15305
15306*** Warning: the command libtool uses to detect shared libraries,
15307*** $file_magic_cmd, produces output that libtool cannot recognize.
15308*** The result is that libtool may fail to recognize shared libraries
15309*** as such.  This will affect the creation of libtool libraries that
15310*** depend on shared libraries, but programs linked with such libtool
15311*** libraries will work regardless of this problem.  Nevertheless, you
15312*** may want to report the problem to your system manager and/or to
15313*** bug-libtool@gnu.org
15314
15315_LT_EOF
15316	  fi ;;
15317	esac
15318      fi
15319      break
15320    fi
15321  done
15322  IFS=$lt_save_ifs
15323  MAGIC_CMD=$lt_save_MAGIC_CMD
15324  ;;
15325esac
15326fi
15327
15328MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15329if test -n "$MAGIC_CMD"; then
15330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15331printf "%s\n" "$MAGIC_CMD" >&6; }
15332else
15333  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334printf "%s\n" "no" >&6; }
15335fi
15336
15337
15338
15339
15340
15341if test -z "$lt_cv_path_MAGIC_CMD"; then
15342  if test -n "$ac_tool_prefix"; then
15343    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15344printf %s "checking for file... " >&6; }
15345if test ${lt_cv_path_MAGIC_CMD+y}
15346then :
15347  printf %s "(cached) " >&6
15348else $as_nop
15349  case $MAGIC_CMD in
15350[\\/*] |  ?:[\\/]*)
15351  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15352  ;;
15353*)
15354  lt_save_MAGIC_CMD=$MAGIC_CMD
15355  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15356  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15357  for ac_dir in $ac_dummy; do
15358    IFS=$lt_save_ifs
15359    test -z "$ac_dir" && ac_dir=.
15360    if test -f "$ac_dir/file"; then
15361      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15362      if test -n "$file_magic_test_file"; then
15363	case $deplibs_check_method in
15364	"file_magic "*)
15365	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15366	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15367	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15368	    $EGREP "$file_magic_regex" > /dev/null; then
15369	    :
15370	  else
15371	    cat <<_LT_EOF 1>&2
15372
15373*** Warning: the command libtool uses to detect shared libraries,
15374*** $file_magic_cmd, produces output that libtool cannot recognize.
15375*** The result is that libtool may fail to recognize shared libraries
15376*** as such.  This will affect the creation of libtool libraries that
15377*** depend on shared libraries, but programs linked with such libtool
15378*** libraries will work regardless of this problem.  Nevertheless, you
15379*** may want to report the problem to your system manager and/or to
15380*** bug-libtool@gnu.org
15381
15382_LT_EOF
15383	  fi ;;
15384	esac
15385      fi
15386      break
15387    fi
15388  done
15389  IFS=$lt_save_ifs
15390  MAGIC_CMD=$lt_save_MAGIC_CMD
15391  ;;
15392esac
15393fi
15394
15395MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15396if test -n "$MAGIC_CMD"; then
15397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15398printf "%s\n" "$MAGIC_CMD" >&6; }
15399else
15400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15401printf "%s\n" "no" >&6; }
15402fi
15403
15404
15405  else
15406    MAGIC_CMD=:
15407  fi
15408fi
15409
15410  fi
15411  ;;
15412esac
15413
15414# Use C for the default configuration in the libtool script
15415
15416lt_save_CC=$CC
15417ac_ext=c
15418ac_cpp='$CPP $CPPFLAGS'
15419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15421ac_compiler_gnu=$ac_cv_c_compiler_gnu
15422
15423
15424# Source file extension for C test sources.
15425ac_ext=c
15426
15427# Object file extension for compiled C test sources.
15428objext=o
15429objext=$objext
15430
15431# Code to be used in simple compile tests
15432lt_simple_compile_test_code="int some_variable = 0;"
15433
15434# Code to be used in simple link tests
15435lt_simple_link_test_code='int main(){return(0);}'
15436
15437
15438
15439
15440
15441
15442
15443# If no C compiler was specified, use CC.
15444LTCC=${LTCC-"$CC"}
15445
15446# If no C compiler flags were specified, use CFLAGS.
15447LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15448
15449# Allow CC to be a program name with arguments.
15450compiler=$CC
15451
15452# Save the default compiler, since it gets overwritten when the other
15453# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15454compiler_DEFAULT=$CC
15455
15456# save warnings/boilerplate of simple test code
15457ac_outfile=conftest.$ac_objext
15458echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15459eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15460_lt_compiler_boilerplate=`cat conftest.err`
15461$RM conftest*
15462
15463ac_outfile=conftest.$ac_objext
15464echo "$lt_simple_link_test_code" >conftest.$ac_ext
15465eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15466_lt_linker_boilerplate=`cat conftest.err`
15467$RM -r conftest*
15468
15469
15470if test -n "$compiler"; then
15471
15472lt_prog_compiler_no_builtin_flag=
15473
15474if test yes = "$GCC"; then
15475  case $cc_basename in
15476  nvcc*)
15477    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15478  *)
15479    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15480  esac
15481
15482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15483printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15484if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15485then :
15486  printf %s "(cached) " >&6
15487else $as_nop
15488  lt_cv_prog_compiler_rtti_exceptions=no
15489   ac_outfile=conftest.$ac_objext
15490   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15491   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15492   # Insert the option either (1) after the last *FLAGS variable, or
15493   # (2) before a word containing "conftest.", or (3) at the end.
15494   # Note that $ac_compile itself does not contain backslashes and begins
15495   # with a dollar sign (not a hyphen), so the echo should work correctly.
15496   # The option is referenced via a variable to avoid confusing sed.
15497   lt_compile=`echo "$ac_compile" | $SED \
15498   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15500   -e 's:$: $lt_compiler_flag:'`
15501   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15502   (eval "$lt_compile" 2>conftest.err)
15503   ac_status=$?
15504   cat conftest.err >&5
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   if (exit $ac_status) && test -s "$ac_outfile"; then
15507     # The compiler can only warn and ignore the option if not recognized
15508     # So say no if there are warnings other than the usual output.
15509     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15510     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15511     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15512       lt_cv_prog_compiler_rtti_exceptions=yes
15513     fi
15514   fi
15515   $RM conftest*
15516
15517fi
15518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15519printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15520
15521if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15522    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15523else
15524    :
15525fi
15526
15527fi
15528
15529
15530
15531
15532
15533
15534  lt_prog_compiler_wl=
15535lt_prog_compiler_pic=
15536lt_prog_compiler_static=
15537
15538
15539  if test yes = "$GCC"; then
15540    lt_prog_compiler_wl='-Wl,'
15541    lt_prog_compiler_static='-static'
15542
15543    case $host_os in
15544      aix*)
15545      # All AIX code is PIC.
15546      if test ia64 = "$host_cpu"; then
15547	# AIX 5 now supports IA64 processor
15548	lt_prog_compiler_static='-Bstatic'
15549      fi
15550      lt_prog_compiler_pic='-fPIC'
15551      ;;
15552
15553    amigaos*)
15554      case $host_cpu in
15555      powerpc)
15556            # see comment about AmigaOS4 .so support
15557            lt_prog_compiler_pic='-fPIC'
15558        ;;
15559      m68k)
15560            # FIXME: we need at least 68020 code to build shared libraries, but
15561            # adding the '-m68020' flag to GCC prevents building anything better,
15562            # like '-m68040'.
15563            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15564        ;;
15565      esac
15566      ;;
15567
15568    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15569      # PIC is the default for these OSes.
15570      ;;
15571
15572    mingw* | cygwin* | pw32* | os2* | cegcc*)
15573      # This hack is so that the source file can tell whether it is being
15574      # built for inclusion in a dll (and should export symbols for example).
15575      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15576      # (--disable-auto-import) libraries
15577      lt_prog_compiler_pic='-DDLL_EXPORT'
15578      case $host_os in
15579      os2*)
15580	lt_prog_compiler_static='$wl-static'
15581	;;
15582      esac
15583      ;;
15584
15585    darwin* | rhapsody*)
15586      # PIC is the default on this platform
15587      # Common symbols not allowed in MH_DYLIB files
15588      lt_prog_compiler_pic='-fno-common'
15589      ;;
15590
15591    haiku*)
15592      # PIC is the default for Haiku.
15593      # The "-static" flag exists, but is broken.
15594      lt_prog_compiler_static=
15595      ;;
15596
15597    hpux*)
15598      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15599      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15600      # sets the default TLS model and affects inlining.
15601      case $host_cpu in
15602      hppa*64*)
15603	# +Z the default
15604	;;
15605      *)
15606	lt_prog_compiler_pic='-fPIC'
15607	;;
15608      esac
15609      ;;
15610
15611    interix[3-9]*)
15612      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15613      # Instead, we relocate shared libraries at runtime.
15614      ;;
15615
15616    msdosdjgpp*)
15617      # Just because we use GCC doesn't mean we suddenly get shared libraries
15618      # on systems that don't support them.
15619      lt_prog_compiler_can_build_shared=no
15620      enable_shared=no
15621      ;;
15622
15623    *nto* | *qnx*)
15624      # QNX uses GNU C++, but need to define -shared option too, otherwise
15625      # it will coredump.
15626      lt_prog_compiler_pic='-fPIC -shared'
15627      ;;
15628
15629    sysv4*MP*)
15630      if test -d /usr/nec; then
15631	lt_prog_compiler_pic=-Kconform_pic
15632      fi
15633      ;;
15634
15635    *)
15636      lt_prog_compiler_pic='-fPIC'
15637      ;;
15638    esac
15639
15640    case $cc_basename in
15641    nvcc*) # Cuda Compiler Driver 2.2
15642      lt_prog_compiler_wl='-Xlinker '
15643      if test -n "$lt_prog_compiler_pic"; then
15644        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15645      fi
15646      ;;
15647    esac
15648  else
15649    # PORTME Check for flag to pass linker flags through the system compiler.
15650    case $host_os in
15651    aix*)
15652      lt_prog_compiler_wl='-Wl,'
15653      if test ia64 = "$host_cpu"; then
15654	# AIX 5 now supports IA64 processor
15655	lt_prog_compiler_static='-Bstatic'
15656      else
15657	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15658      fi
15659      ;;
15660
15661    darwin* | rhapsody*)
15662      # PIC is the default on this platform
15663      # Common symbols not allowed in MH_DYLIB files
15664      lt_prog_compiler_pic='-fno-common'
15665      case $cc_basename in
15666      nagfor*)
15667        # NAG Fortran compiler
15668        lt_prog_compiler_wl='-Wl,-Wl,,'
15669        lt_prog_compiler_pic='-PIC'
15670        lt_prog_compiler_static='-Bstatic'
15671        ;;
15672      esac
15673      ;;
15674
15675    mingw* | cygwin* | pw32* | os2* | cegcc*)
15676      # This hack is so that the source file can tell whether it is being
15677      # built for inclusion in a dll (and should export symbols for example).
15678      lt_prog_compiler_pic='-DDLL_EXPORT'
15679      case $host_os in
15680      os2*)
15681	lt_prog_compiler_static='$wl-static'
15682	;;
15683      esac
15684      ;;
15685
15686    hpux9* | hpux10* | hpux11*)
15687      lt_prog_compiler_wl='-Wl,'
15688      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15689      # not for PA HP-UX.
15690      case $host_cpu in
15691      hppa*64*|ia64*)
15692	# +Z the default
15693	;;
15694      *)
15695	lt_prog_compiler_pic='+Z'
15696	;;
15697      esac
15698      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15699      lt_prog_compiler_static='$wl-a ${wl}archive'
15700      ;;
15701
15702    irix5* | irix6* | nonstopux*)
15703      lt_prog_compiler_wl='-Wl,'
15704      # PIC (with -KPIC) is the default.
15705      lt_prog_compiler_static='-non_shared'
15706      ;;
15707
15708    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15709      case $cc_basename in
15710      # old Intel for x86_64, which still supported -KPIC.
15711      ecc*)
15712	lt_prog_compiler_wl='-Wl,'
15713	lt_prog_compiler_pic='-KPIC'
15714	lt_prog_compiler_static='-static'
15715        ;;
15716      # icc used to be incompatible with GCC.
15717      # ICC 10 doesn't accept -KPIC any more.
15718      icc* | ifort*)
15719	lt_prog_compiler_wl='-Wl,'
15720	lt_prog_compiler_pic='-fPIC'
15721	lt_prog_compiler_static='-static'
15722        ;;
15723      # Lahey Fortran 8.1.
15724      lf95*)
15725	lt_prog_compiler_wl='-Wl,'
15726	lt_prog_compiler_pic='--shared'
15727	lt_prog_compiler_static='--static'
15728	;;
15729      nagfor*)
15730	# NAG Fortran compiler
15731	lt_prog_compiler_wl='-Wl,-Wl,,'
15732	lt_prog_compiler_pic='-PIC'
15733	lt_prog_compiler_static='-Bstatic'
15734	;;
15735      tcc*)
15736	# Fabrice Bellard et al's Tiny C Compiler
15737	lt_prog_compiler_wl='-Wl,'
15738	lt_prog_compiler_pic='-fPIC'
15739	lt_prog_compiler_static='-static'
15740	;;
15741      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15742        # Portland Group compilers (*not* the Pentium gcc compiler,
15743	# which looks to be a dead project)
15744	lt_prog_compiler_wl='-Wl,'
15745	lt_prog_compiler_pic='-fpic'
15746	lt_prog_compiler_static='-Bstatic'
15747        ;;
15748      ccc*)
15749        lt_prog_compiler_wl='-Wl,'
15750        # All Alpha code is PIC.
15751        lt_prog_compiler_static='-non_shared'
15752        ;;
15753      xl* | bgxl* | bgf* | mpixl*)
15754	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15755	lt_prog_compiler_wl='-Wl,'
15756	lt_prog_compiler_pic='-qpic'
15757	lt_prog_compiler_static='-qstaticlink'
15758	;;
15759      *)
15760	case `$CC -V 2>&1 | $SED 5q` in
15761	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15762	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15763	  lt_prog_compiler_pic='-KPIC'
15764	  lt_prog_compiler_static='-Bstatic'
15765	  lt_prog_compiler_wl=''
15766	  ;;
15767	*Sun\ F* | *Sun*Fortran*)
15768	  lt_prog_compiler_pic='-KPIC'
15769	  lt_prog_compiler_static='-Bstatic'
15770	  lt_prog_compiler_wl='-Qoption ld '
15771	  ;;
15772	*Sun\ C*)
15773	  # Sun C 5.9
15774	  lt_prog_compiler_pic='-KPIC'
15775	  lt_prog_compiler_static='-Bstatic'
15776	  lt_prog_compiler_wl='-Wl,'
15777	  ;;
15778        *Intel*\ [CF]*Compiler*)
15779	  lt_prog_compiler_wl='-Wl,'
15780	  lt_prog_compiler_pic='-fPIC'
15781	  lt_prog_compiler_static='-static'
15782	  ;;
15783	*Portland\ Group*)
15784	  lt_prog_compiler_wl='-Wl,'
15785	  lt_prog_compiler_pic='-fpic'
15786	  lt_prog_compiler_static='-Bstatic'
15787	  ;;
15788	esac
15789	;;
15790      esac
15791      ;;
15792
15793    newsos6)
15794      lt_prog_compiler_pic='-KPIC'
15795      lt_prog_compiler_static='-Bstatic'
15796      ;;
15797
15798    *nto* | *qnx*)
15799      # QNX uses GNU C++, but need to define -shared option too, otherwise
15800      # it will coredump.
15801      lt_prog_compiler_pic='-fPIC -shared'
15802      ;;
15803
15804    osf3* | osf4* | osf5*)
15805      lt_prog_compiler_wl='-Wl,'
15806      # All OSF/1 code is PIC.
15807      lt_prog_compiler_static='-non_shared'
15808      ;;
15809
15810    rdos*)
15811      lt_prog_compiler_static='-non_shared'
15812      ;;
15813
15814    solaris*)
15815      lt_prog_compiler_pic='-KPIC'
15816      lt_prog_compiler_static='-Bstatic'
15817      case $cc_basename in
15818      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15819	lt_prog_compiler_wl='-Qoption ld ';;
15820      *)
15821	lt_prog_compiler_wl='-Wl,';;
15822      esac
15823      ;;
15824
15825    sunos4*)
15826      lt_prog_compiler_wl='-Qoption ld '
15827      lt_prog_compiler_pic='-PIC'
15828      lt_prog_compiler_static='-Bstatic'
15829      ;;
15830
15831    sysv4 | sysv4.2uw2* | sysv4.3*)
15832      lt_prog_compiler_wl='-Wl,'
15833      lt_prog_compiler_pic='-KPIC'
15834      lt_prog_compiler_static='-Bstatic'
15835      ;;
15836
15837    sysv4*MP*)
15838      if test -d /usr/nec; then
15839	lt_prog_compiler_pic='-Kconform_pic'
15840	lt_prog_compiler_static='-Bstatic'
15841      fi
15842      ;;
15843
15844    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15845      lt_prog_compiler_wl='-Wl,'
15846      lt_prog_compiler_pic='-KPIC'
15847      lt_prog_compiler_static='-Bstatic'
15848      ;;
15849
15850    unicos*)
15851      lt_prog_compiler_wl='-Wl,'
15852      lt_prog_compiler_can_build_shared=no
15853      ;;
15854
15855    uts4*)
15856      lt_prog_compiler_pic='-pic'
15857      lt_prog_compiler_static='-Bstatic'
15858      ;;
15859
15860    *)
15861      lt_prog_compiler_can_build_shared=no
15862      ;;
15863    esac
15864  fi
15865
15866case $host_os in
15867  # For platforms that do not support PIC, -DPIC is meaningless:
15868  *djgpp*)
15869    lt_prog_compiler_pic=
15870    ;;
15871  *)
15872    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15873    ;;
15874esac
15875
15876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15877printf %s "checking for $compiler option to produce PIC... " >&6; }
15878if test ${lt_cv_prog_compiler_pic+y}
15879then :
15880  printf %s "(cached) " >&6
15881else $as_nop
15882  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15883fi
15884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15885printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15886lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15887
15888#
15889# Check to make sure the PIC flag actually works.
15890#
15891if test -n "$lt_prog_compiler_pic"; then
15892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15893printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15894if test ${lt_cv_prog_compiler_pic_works+y}
15895then :
15896  printf %s "(cached) " >&6
15897else $as_nop
15898  lt_cv_prog_compiler_pic_works=no
15899   ac_outfile=conftest.$ac_objext
15900   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15901   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15902   # Insert the option either (1) after the last *FLAGS variable, or
15903   # (2) before a word containing "conftest.", or (3) at the end.
15904   # Note that $ac_compile itself does not contain backslashes and begins
15905   # with a dollar sign (not a hyphen), so the echo should work correctly.
15906   # The option is referenced via a variable to avoid confusing sed.
15907   lt_compile=`echo "$ac_compile" | $SED \
15908   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15909   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15910   -e 's:$: $lt_compiler_flag:'`
15911   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15912   (eval "$lt_compile" 2>conftest.err)
15913   ac_status=$?
15914   cat conftest.err >&5
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   if (exit $ac_status) && test -s "$ac_outfile"; then
15917     # The compiler can only warn and ignore the option if not recognized
15918     # So say no if there are warnings other than the usual output.
15919     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15920     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15921     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15922       lt_cv_prog_compiler_pic_works=yes
15923     fi
15924   fi
15925   $RM conftest*
15926
15927fi
15928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15929printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15930
15931if test yes = "$lt_cv_prog_compiler_pic_works"; then
15932    case $lt_prog_compiler_pic in
15933     "" | " "*) ;;
15934     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15935     esac
15936else
15937    lt_prog_compiler_pic=
15938     lt_prog_compiler_can_build_shared=no
15939fi
15940
15941fi
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953#
15954# Check to make sure the static flag actually works.
15955#
15956wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15958printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15959if test ${lt_cv_prog_compiler_static_works+y}
15960then :
15961  printf %s "(cached) " >&6
15962else $as_nop
15963  lt_cv_prog_compiler_static_works=no
15964   save_LDFLAGS=$LDFLAGS
15965   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15966   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15967   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15968     # The linker can only warn and ignore the option if not recognized
15969     # So say no if there are warnings
15970     if test -s conftest.err; then
15971       # Append any errors to the config.log.
15972       cat conftest.err 1>&5
15973       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15974       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15975       if diff conftest.exp conftest.er2 >/dev/null; then
15976         lt_cv_prog_compiler_static_works=yes
15977       fi
15978     else
15979       lt_cv_prog_compiler_static_works=yes
15980     fi
15981   fi
15982   $RM -r conftest*
15983   LDFLAGS=$save_LDFLAGS
15984
15985fi
15986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15987printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15988
15989if test yes = "$lt_cv_prog_compiler_static_works"; then
15990    :
15991else
15992    lt_prog_compiler_static=
15993fi
15994
15995
15996
15997
15998
15999
16000
16001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16002printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16003if test ${lt_cv_prog_compiler_c_o+y}
16004then :
16005  printf %s "(cached) " >&6
16006else $as_nop
16007  lt_cv_prog_compiler_c_o=no
16008   $RM -r conftest 2>/dev/null
16009   mkdir conftest
16010   cd conftest
16011   mkdir out
16012   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16013
16014   lt_compiler_flag="-o out/conftest2.$ac_objext"
16015   # Insert the option either (1) after the last *FLAGS variable, or
16016   # (2) before a word containing "conftest.", or (3) at the end.
16017   # Note that $ac_compile itself does not contain backslashes and begins
16018   # with a dollar sign (not a hyphen), so the echo should work correctly.
16019   lt_compile=`echo "$ac_compile" | $SED \
16020   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16021   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16022   -e 's:$: $lt_compiler_flag:'`
16023   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16024   (eval "$lt_compile" 2>out/conftest.err)
16025   ac_status=$?
16026   cat out/conftest.err >&5
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16029   then
16030     # The compiler can only warn and ignore the option if not recognized
16031     # So say no if there are warnings
16032     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16033     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16034     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16035       lt_cv_prog_compiler_c_o=yes
16036     fi
16037   fi
16038   chmod u+w . 2>&5
16039   $RM conftest*
16040   # SGI C++ compiler will create directory out/ii_files/ for
16041   # template instantiation
16042   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16043   $RM out/* && rmdir out
16044   cd ..
16045   $RM -r conftest
16046   $RM conftest*
16047
16048fi
16049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16050printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16051
16052
16053
16054
16055
16056
16057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16058printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16059if test ${lt_cv_prog_compiler_c_o+y}
16060then :
16061  printf %s "(cached) " >&6
16062else $as_nop
16063  lt_cv_prog_compiler_c_o=no
16064   $RM -r conftest 2>/dev/null
16065   mkdir conftest
16066   cd conftest
16067   mkdir out
16068   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16069
16070   lt_compiler_flag="-o out/conftest2.$ac_objext"
16071   # Insert the option either (1) after the last *FLAGS variable, or
16072   # (2) before a word containing "conftest.", or (3) at the end.
16073   # Note that $ac_compile itself does not contain backslashes and begins
16074   # with a dollar sign (not a hyphen), so the echo should work correctly.
16075   lt_compile=`echo "$ac_compile" | $SED \
16076   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16078   -e 's:$: $lt_compiler_flag:'`
16079   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16080   (eval "$lt_compile" 2>out/conftest.err)
16081   ac_status=$?
16082   cat out/conftest.err >&5
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16085   then
16086     # The compiler can only warn and ignore the option if not recognized
16087     # So say no if there are warnings
16088     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16089     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16090     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16091       lt_cv_prog_compiler_c_o=yes
16092     fi
16093   fi
16094   chmod u+w . 2>&5
16095   $RM conftest*
16096   # SGI C++ compiler will create directory out/ii_files/ for
16097   # template instantiation
16098   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16099   $RM out/* && rmdir out
16100   cd ..
16101   $RM -r conftest
16102   $RM conftest*
16103
16104fi
16105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16106printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16107
16108
16109
16110
16111hard_links=nottested
16112if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16113  # do not overwrite the value of need_locks provided by the user
16114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16115printf %s "checking if we can lock with hard links... " >&6; }
16116  hard_links=yes
16117  $RM conftest*
16118  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16119  touch conftest.a
16120  ln conftest.a conftest.b 2>&5 || hard_links=no
16121  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16122  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16123printf "%s\n" "$hard_links" >&6; }
16124  if test no = "$hard_links"; then
16125    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16126printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16127    need_locks=warn
16128  fi
16129else
16130  need_locks=no
16131fi
16132
16133
16134
16135
16136
16137
16138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16139printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16140
16141  runpath_var=
16142  allow_undefined_flag=
16143  always_export_symbols=no
16144  archive_cmds=
16145  archive_expsym_cmds=
16146  compiler_needs_object=no
16147  enable_shared_with_static_runtimes=no
16148  export_dynamic_flag_spec=
16149  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16150  hardcode_automatic=no
16151  hardcode_direct=no
16152  hardcode_direct_absolute=no
16153  hardcode_libdir_flag_spec=
16154  hardcode_libdir_separator=
16155  hardcode_minus_L=no
16156  hardcode_shlibpath_var=unsupported
16157  inherit_rpath=no
16158  link_all_deplibs=unknown
16159  module_cmds=
16160  module_expsym_cmds=
16161  old_archive_from_new_cmds=
16162  old_archive_from_expsyms_cmds=
16163  thread_safe_flag_spec=
16164  whole_archive_flag_spec=
16165  # include_expsyms should be a list of space-separated symbols to be *always*
16166  # included in the symbol list
16167  include_expsyms=
16168  # exclude_expsyms can be an extended regexp of symbols to exclude
16169  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16170  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16171  # as well as any symbol that contains 'd'.
16172  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16173  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16174  # platforms (ab)use it in PIC code, but their linkers get confused if
16175  # the symbol is explicitly referenced.  Since portable code cannot
16176  # rely on this symbol name, it's probably fine to never include it in
16177  # preloaded symbol tables.
16178  # Exclude shared library initialization/finalization symbols.
16179  extract_expsyms_cmds=
16180
16181  case $host_os in
16182  cygwin* | mingw* | pw32* | cegcc*)
16183    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16184    # When not using gcc, we currently assume that we are using
16185    # Microsoft Visual C++ or Intel C++ Compiler.
16186    if test yes != "$GCC"; then
16187      with_gnu_ld=no
16188    fi
16189    ;;
16190  interix*)
16191    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16192    with_gnu_ld=yes
16193    ;;
16194  openbsd* | bitrig*)
16195    with_gnu_ld=no
16196    ;;
16197  esac
16198
16199  ld_shlibs=yes
16200
16201  # On some targets, GNU ld is compatible enough with the native linker
16202  # that we're better off using the native interface for both.
16203  lt_use_gnu_ld_interface=no
16204  if test yes = "$with_gnu_ld"; then
16205    case $host_os in
16206      aix*)
16207	# The AIX port of GNU ld has always aspired to compatibility
16208	# with the native linker.  However, as the warning in the GNU ld
16209	# block says, versions before 2.19.5* couldn't really create working
16210	# shared libraries, regardless of the interface used.
16211	case `$LD -v 2>&1` in
16212	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16213	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16214	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16215	  *)
16216	    lt_use_gnu_ld_interface=yes
16217	    ;;
16218	esac
16219	;;
16220      *)
16221	lt_use_gnu_ld_interface=yes
16222	;;
16223    esac
16224  fi
16225
16226  if test yes = "$lt_use_gnu_ld_interface"; then
16227    # If archive_cmds runs LD, not CC, wlarc should be empty
16228    wlarc='$wl'
16229
16230    # Set some defaults for GNU ld with shared library support. These
16231    # are reset later if shared libraries are not supported. Putting them
16232    # here allows them to be overridden if necessary.
16233    runpath_var=LD_RUN_PATH
16234    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16235    export_dynamic_flag_spec='$wl--export-dynamic'
16236    # ancient GNU ld didn't support --whole-archive et. al.
16237    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16238      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16239    else
16240      whole_archive_flag_spec=
16241    fi
16242    supports_anon_versioning=no
16243    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16244      *GNU\ gold*) supports_anon_versioning=yes ;;
16245      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16246      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16247      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16248      *\ 2.11.*) ;; # other 2.11 versions
16249      *) supports_anon_versioning=yes ;;
16250    esac
16251
16252    # See if GNU ld supports shared libraries.
16253    case $host_os in
16254    aix[3-9]*)
16255      # On AIX/PPC, the GNU linker is very broken
16256      if test ia64 != "$host_cpu"; then
16257	ld_shlibs=no
16258	cat <<_LT_EOF 1>&2
16259
16260*** Warning: the GNU linker, at least up to release 2.19, is reported
16261*** to be unable to reliably create shared libraries on AIX.
16262*** Therefore, libtool is disabling shared libraries support.  If you
16263*** really care for shared libraries, you may want to install binutils
16264*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16265*** You will then need to restart the configuration process.
16266
16267_LT_EOF
16268      fi
16269      ;;
16270
16271    amigaos*)
16272      case $host_cpu in
16273      powerpc)
16274            # see comment about AmigaOS4 .so support
16275            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16276            archive_expsym_cmds=''
16277        ;;
16278      m68k)
16279            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)'
16280            hardcode_libdir_flag_spec='-L$libdir'
16281            hardcode_minus_L=yes
16282        ;;
16283      esac
16284      ;;
16285
16286    beos*)
16287      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16288	allow_undefined_flag=unsupported
16289	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16290	# support --undefined.  This deserves some investigation.  FIXME
16291	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16292      else
16293	ld_shlibs=no
16294      fi
16295      ;;
16296
16297    cygwin* | mingw* | pw32* | cegcc*)
16298      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16299      # as there is no search path for DLLs.
16300      hardcode_libdir_flag_spec='-L$libdir'
16301      export_dynamic_flag_spec='$wl--export-all-symbols'
16302      allow_undefined_flag=unsupported
16303      always_export_symbols=no
16304      enable_shared_with_static_runtimes=yes
16305      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'
16306      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16307
16308      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16309        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16310	# If the export-symbols file already is a .def file, use it as
16311	# is; otherwise, prepend EXPORTS...
16312	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16313          cp $export_symbols $output_objdir/$soname.def;
16314        else
16315          echo EXPORTS > $output_objdir/$soname.def;
16316          cat $export_symbols >> $output_objdir/$soname.def;
16317        fi~
16318        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16319      else
16320	ld_shlibs=no
16321      fi
16322      ;;
16323
16324    haiku*)
16325      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16326      link_all_deplibs=yes
16327      ;;
16328
16329    os2*)
16330      hardcode_libdir_flag_spec='-L$libdir'
16331      hardcode_minus_L=yes
16332      allow_undefined_flag=unsupported
16333      shrext_cmds=.dll
16334      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16335	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16336	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16337	$ECHO EXPORTS >> $output_objdir/$libname.def~
16338	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16339	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16340	emximp -o $lib $output_objdir/$libname.def'
16341      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16342	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16343	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16344	$ECHO EXPORTS >> $output_objdir/$libname.def~
16345	prefix_cmds="$SED"~
16346	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16347	  prefix_cmds="$prefix_cmds -e 1d";
16348	fi~
16349	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16350	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16351	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16352	emximp -o $lib $output_objdir/$libname.def'
16353      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16354      enable_shared_with_static_runtimes=yes
16355      file_list_spec='@'
16356      ;;
16357
16358    interix[3-9]*)
16359      hardcode_direct=no
16360      hardcode_shlibpath_var=no
16361      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16362      export_dynamic_flag_spec='$wl-E'
16363      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16364      # Instead, shared libraries are loaded at an image base (0x10000000 by
16365      # default) and relocated if they conflict, which is a slow very memory
16366      # consuming and fragmenting process.  To avoid this, we pick a random,
16367      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16368      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16369      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16370      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'
16371      ;;
16372
16373    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16374      tmp_diet=no
16375      if test linux-dietlibc = "$host_os"; then
16376	case $cc_basename in
16377	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16378	esac
16379      fi
16380      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16381	 && test no = "$tmp_diet"
16382      then
16383	tmp_addflag=' $pic_flag'
16384	tmp_sharedflag='-shared'
16385	case $cc_basename,$host_cpu in
16386        pgcc*)				# Portland Group C compiler
16387	  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'
16388	  tmp_addflag=' $pic_flag'
16389	  ;;
16390	pgf77* | pgf90* | pgf95* | pgfortran*)
16391					# Portland Group f77 and f90 compilers
16392	  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'
16393	  tmp_addflag=' $pic_flag -Mnomain' ;;
16394	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16395	  tmp_addflag=' -i_dynamic' ;;
16396	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16397	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16398	ifc* | ifort*)			# Intel Fortran compiler
16399	  tmp_addflag=' -nofor_main' ;;
16400	lf95*)				# Lahey Fortran 8.1
16401	  whole_archive_flag_spec=
16402	  tmp_sharedflag='--shared' ;;
16403        nagfor*)                        # NAGFOR 5.3
16404          tmp_sharedflag='-Wl,-shared' ;;
16405	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16406	  tmp_sharedflag='-qmkshrobj'
16407	  tmp_addflag= ;;
16408	nvcc*)	# Cuda Compiler Driver 2.2
16409	  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'
16410	  compiler_needs_object=yes
16411	  ;;
16412	esac
16413	case `$CC -V 2>&1 | $SED 5q` in
16414	*Sun\ C*)			# Sun C 5.9
16415	  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'
16416	  compiler_needs_object=yes
16417	  tmp_sharedflag='-G' ;;
16418	*Sun\ F*)			# Sun Fortran 8.3
16419	  tmp_sharedflag='-G' ;;
16420	esac
16421	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16422
16423        if test yes = "$supports_anon_versioning"; then
16424          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16425            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16426            echo "local: *; };" >> $output_objdir/$libname.ver~
16427            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16428        fi
16429
16430	case $cc_basename in
16431	tcc*)
16432	  export_dynamic_flag_spec='-rdynamic'
16433	  ;;
16434	xlf* | bgf* | bgxlf* | mpixlf*)
16435	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16436	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16437	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16438	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16439	  if test yes = "$supports_anon_versioning"; then
16440	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16441              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16442              echo "local: *; };" >> $output_objdir/$libname.ver~
16443              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16444	  fi
16445	  ;;
16446	esac
16447      else
16448        ld_shlibs=no
16449      fi
16450      ;;
16451
16452    netbsd*)
16453      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16454	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16455	wlarc=
16456      else
16457	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16458	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16459      fi
16460      ;;
16461
16462    solaris*)
16463      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16464	ld_shlibs=no
16465	cat <<_LT_EOF 1>&2
16466
16467*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16468*** create shared libraries on Solaris systems.  Therefore, libtool
16469*** is disabling shared libraries support.  We urge you to upgrade GNU
16470*** binutils to release 2.9.1 or newer.  Another option is to modify
16471*** your PATH or compiler configuration so that the native linker is
16472*** used, and then restart.
16473
16474_LT_EOF
16475      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16476	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16477	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16478      else
16479	ld_shlibs=no
16480      fi
16481      ;;
16482
16483    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16484      case `$LD -v 2>&1` in
16485        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16486	ld_shlibs=no
16487	cat <<_LT_EOF 1>&2
16488
16489*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16490*** reliably create shared libraries on SCO systems.  Therefore, libtool
16491*** is disabling shared libraries support.  We urge you to upgrade GNU
16492*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16493*** your PATH or compiler configuration so that the native linker is
16494*** used, and then restart.
16495
16496_LT_EOF
16497	;;
16498	*)
16499	  # For security reasons, it is highly recommended that you always
16500	  # use absolute paths for naming shared libraries, and exclude the
16501	  # DT_RUNPATH tag from executables and libraries.  But doing so
16502	  # requires that you compile everything twice, which is a pain.
16503	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16504	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16505	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16506	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16507	  else
16508	    ld_shlibs=no
16509	  fi
16510	;;
16511      esac
16512      ;;
16513
16514    sunos4*)
16515      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16516      wlarc=
16517      hardcode_direct=yes
16518      hardcode_shlibpath_var=no
16519      ;;
16520
16521    *)
16522      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16523	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16524	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16525      else
16526	ld_shlibs=no
16527      fi
16528      ;;
16529    esac
16530
16531    if test no = "$ld_shlibs"; then
16532      runpath_var=
16533      hardcode_libdir_flag_spec=
16534      export_dynamic_flag_spec=
16535      whole_archive_flag_spec=
16536    fi
16537  else
16538    # PORTME fill in a description of your system's linker (not GNU ld)
16539    case $host_os in
16540    aix3*)
16541      allow_undefined_flag=unsupported
16542      always_export_symbols=yes
16543      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'
16544      # Note: this linker hardcodes the directories in LIBPATH if there
16545      # are no directories specified by -L.
16546      hardcode_minus_L=yes
16547      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16548	# Neither direct hardcoding nor static linking is supported with a
16549	# broken collect2.
16550	hardcode_direct=unsupported
16551      fi
16552      ;;
16553
16554    aix[4-9]*)
16555      if test ia64 = "$host_cpu"; then
16556	# On IA64, the linker does run time linking by default, so we don't
16557	# have to do anything special.
16558	aix_use_runtimelinking=no
16559	exp_sym_flag='-Bexport'
16560	no_entry_flag=
16561      else
16562	# If we're using GNU nm, then we don't want the "-C" option.
16563	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16564	# Without the "-l" option, or with the "-B" option, AIX nm treats
16565	# weak defined symbols like other global defined symbols, whereas
16566	# GNU nm marks them as "W".
16567	# While the 'weak' keyword is ignored in the Export File, we need
16568	# it in the Import File for the 'aix-soname' feature, so we have
16569	# to replace the "-B" option with "-P" for AIX nm.
16570	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16571	  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'
16572	else
16573	  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'
16574	fi
16575	aix_use_runtimelinking=no
16576
16577	# Test if we are trying to use run time linking or normal
16578	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16579	# have runtime linking enabled, and use it for executables.
16580	# For shared libraries, we enable/disable runtime linking
16581	# depending on the kind of the shared library created -
16582	# when "with_aix_soname,aix_use_runtimelinking" is:
16583	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16584	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16585	#            lib.a           static archive
16586	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16587	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16588	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16589	#            lib.a(lib.so.V) shared, rtl:no
16590	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16591	#            lib.a           static archive
16592	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16593	  for ld_flag in $LDFLAGS; do
16594	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16595	    aix_use_runtimelinking=yes
16596	    break
16597	  fi
16598	  done
16599	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16600	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16601	    # so we don't have lib.a shared libs to link our executables.
16602	    # We have to force runtime linking in this case.
16603	    aix_use_runtimelinking=yes
16604	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16605	  fi
16606	  ;;
16607	esac
16608
16609	exp_sym_flag='-bexport'
16610	no_entry_flag='-bnoentry'
16611      fi
16612
16613      # When large executables or shared objects are built, AIX ld can
16614      # have problems creating the table of contents.  If linking a library
16615      # or program results in "error TOC overflow" add -mminimal-toc to
16616      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16617      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16618
16619      archive_cmds=''
16620      hardcode_direct=yes
16621      hardcode_direct_absolute=yes
16622      hardcode_libdir_separator=':'
16623      link_all_deplibs=yes
16624      file_list_spec='$wl-f,'
16625      case $with_aix_soname,$aix_use_runtimelinking in
16626      aix,*) ;; # traditional, no import file
16627      svr4,* | *,yes) # use import file
16628	# The Import File defines what to hardcode.
16629	hardcode_direct=no
16630	hardcode_direct_absolute=no
16631	;;
16632      esac
16633
16634      if test yes = "$GCC"; then
16635	case $host_os in aix4.[012]|aix4.[012].*)
16636	# We only want to do this on AIX 4.2 and lower, the check
16637	# below for broken collect2 doesn't work under 4.3+
16638	  collect2name=`$CC -print-prog-name=collect2`
16639	  if test -f "$collect2name" &&
16640	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16641	  then
16642	  # We have reworked collect2
16643	  :
16644	  else
16645	  # We have old collect2
16646	  hardcode_direct=unsupported
16647	  # It fails to find uninstalled libraries when the uninstalled
16648	  # path is not listed in the libpath.  Setting hardcode_minus_L
16649	  # to unsupported forces relinking
16650	  hardcode_minus_L=yes
16651	  hardcode_libdir_flag_spec='-L$libdir'
16652	  hardcode_libdir_separator=
16653	  fi
16654	  ;;
16655	esac
16656	shared_flag='-shared'
16657	if test yes = "$aix_use_runtimelinking"; then
16658	  shared_flag="$shared_flag "'$wl-G'
16659	fi
16660	# Need to ensure runtime linking is disabled for the traditional
16661	# shared library, or the linker may eventually find shared libraries
16662	# /with/ Import File - we do not want to mix them.
16663	shared_flag_aix='-shared'
16664	shared_flag_svr4='-shared $wl-G'
16665      else
16666	# not using gcc
16667	if test ia64 = "$host_cpu"; then
16668	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16669	# chokes on -Wl,-G. The following line is correct:
16670	  shared_flag='-G'
16671	else
16672	  if test yes = "$aix_use_runtimelinking"; then
16673	    shared_flag='$wl-G'
16674	  else
16675	    shared_flag='$wl-bM:SRE'
16676	  fi
16677	  shared_flag_aix='$wl-bM:SRE'
16678	  shared_flag_svr4='$wl-G'
16679	fi
16680      fi
16681
16682      export_dynamic_flag_spec='$wl-bexpall'
16683      # It seems that -bexpall does not export symbols beginning with
16684      # underscore (_), so it is better to generate a list of symbols to export.
16685      always_export_symbols=yes
16686      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16687	# Warning - without using the other runtime loading flags (-brtl),
16688	# -berok will link without error, but may produce a broken library.
16689	allow_undefined_flag='-berok'
16690        # Determine the default libpath from the value encoded in an
16691        # empty executable.
16692        if test set = "${lt_cv_aix_libpath+set}"; then
16693  aix_libpath=$lt_cv_aix_libpath
16694else
16695  if test ${lt_cv_aix_libpath_+y}
16696then :
16697  printf %s "(cached) " >&6
16698else $as_nop
16699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700/* end confdefs.h.  */
16701
16702int
16703main (void)
16704{
16705
16706  ;
16707  return 0;
16708}
16709_ACEOF
16710if ac_fn_c_try_link "$LINENO"
16711then :
16712
16713  lt_aix_libpath_sed='
16714      /Import File Strings/,/^$/ {
16715	  /^0/ {
16716	      s/^0  *\([^ ]*\) *$/\1/
16717	      p
16718	  }
16719      }'
16720  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16721  # Check for a 64-bit object if we didn't find anything.
16722  if test -z "$lt_cv_aix_libpath_"; then
16723    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16724  fi
16725fi
16726rm -f core conftest.err conftest.$ac_objext conftest.beam \
16727    conftest$ac_exeext conftest.$ac_ext
16728  if test -z "$lt_cv_aix_libpath_"; then
16729    lt_cv_aix_libpath_=/usr/lib:/lib
16730  fi
16731
16732fi
16733
16734  aix_libpath=$lt_cv_aix_libpath_
16735fi
16736
16737        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16738        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
16739      else
16740	if test ia64 = "$host_cpu"; then
16741	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16742	  allow_undefined_flag="-z nodefs"
16743	  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"
16744	else
16745	 # Determine the default libpath from the value encoded in an
16746	 # empty executable.
16747	 if test set = "${lt_cv_aix_libpath+set}"; then
16748  aix_libpath=$lt_cv_aix_libpath
16749else
16750  if test ${lt_cv_aix_libpath_+y}
16751then :
16752  printf %s "(cached) " >&6
16753else $as_nop
16754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755/* end confdefs.h.  */
16756
16757int
16758main (void)
16759{
16760
16761  ;
16762  return 0;
16763}
16764_ACEOF
16765if ac_fn_c_try_link "$LINENO"
16766then :
16767
16768  lt_aix_libpath_sed='
16769      /Import File Strings/,/^$/ {
16770	  /^0/ {
16771	      s/^0  *\([^ ]*\) *$/\1/
16772	      p
16773	  }
16774      }'
16775  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16776  # Check for a 64-bit object if we didn't find anything.
16777  if test -z "$lt_cv_aix_libpath_"; then
16778    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16779  fi
16780fi
16781rm -f core conftest.err conftest.$ac_objext conftest.beam \
16782    conftest$ac_exeext conftest.$ac_ext
16783  if test -z "$lt_cv_aix_libpath_"; then
16784    lt_cv_aix_libpath_=/usr/lib:/lib
16785  fi
16786
16787fi
16788
16789  aix_libpath=$lt_cv_aix_libpath_
16790fi
16791
16792	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16793	  # Warning - without using the other run time loading flags,
16794	  # -berok will link without error, but may produce a broken library.
16795	  no_undefined_flag=' $wl-bernotok'
16796	  allow_undefined_flag=' $wl-berok'
16797	  if test yes = "$with_gnu_ld"; then
16798	    # We only use this code for GNU lds that support --whole-archive.
16799	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16800	  else
16801	    # Exported symbols can be pulled into shared objects from archives
16802	    whole_archive_flag_spec='$convenience'
16803	  fi
16804	  archive_cmds_need_lc=yes
16805	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16806	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16807	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16808	  if test svr4 != "$with_aix_soname"; then
16809	    # This is similar to how AIX traditionally builds its shared libraries.
16810	    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'
16811	  fi
16812	  if test aix != "$with_aix_soname"; then
16813	    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'
16814	  else
16815	    # used by -dlpreopen to get the symbols
16816	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16817	  fi
16818	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16819	fi
16820      fi
16821      ;;
16822
16823    amigaos*)
16824      case $host_cpu in
16825      powerpc)
16826            # see comment about AmigaOS4 .so support
16827            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16828            archive_expsym_cmds=''
16829        ;;
16830      m68k)
16831            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)'
16832            hardcode_libdir_flag_spec='-L$libdir'
16833            hardcode_minus_L=yes
16834        ;;
16835      esac
16836      ;;
16837
16838    bsdi[45]*)
16839      export_dynamic_flag_spec=-rdynamic
16840      ;;
16841
16842    cygwin* | mingw* | pw32* | cegcc*)
16843      # When not using gcc, we currently assume that we are using
16844      # Microsoft Visual C++ or Intel C++ Compiler.
16845      # hardcode_libdir_flag_spec is actually meaningless, as there is
16846      # no search path for DLLs.
16847      case $cc_basename in
16848      cl* | icl*)
16849	# Native MSVC or ICC
16850	hardcode_libdir_flag_spec=' '
16851	allow_undefined_flag=unsupported
16852	always_export_symbols=yes
16853	file_list_spec='@'
16854	# Tell ltmain to make .lib files, not .a files.
16855	libext=lib
16856	# Tell ltmain to make .dll files, not .so files.
16857	shrext_cmds=.dll
16858	# FIXME: Setting linknames here is a bad hack.
16859	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16860	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16861            cp "$export_symbols" "$output_objdir/$soname.def";
16862            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16863          else
16864            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16865          fi~
16866          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16867          linknames='
16868	# The linker will not automatically build a static lib if we build a DLL.
16869	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16870	enable_shared_with_static_runtimes=yes
16871	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16872	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16873	# Don't use ranlib
16874	old_postinstall_cmds='chmod 644 $oldlib'
16875	postlink_cmds='lt_outputfile="@OUTPUT@"~
16876          lt_tool_outputfile="@TOOL_OUTPUT@"~
16877          case $lt_outputfile in
16878            *.exe|*.EXE) ;;
16879            *)
16880              lt_outputfile=$lt_outputfile.exe
16881              lt_tool_outputfile=$lt_tool_outputfile.exe
16882              ;;
16883          esac~
16884          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16885            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16886            $RM "$lt_outputfile.manifest";
16887          fi'
16888	;;
16889      *)
16890	# Assume MSVC and ICC wrapper
16891	hardcode_libdir_flag_spec=' '
16892	allow_undefined_flag=unsupported
16893	# Tell ltmain to make .lib files, not .a files.
16894	libext=lib
16895	# Tell ltmain to make .dll files, not .so files.
16896	shrext_cmds=.dll
16897	# FIXME: Setting linknames here is a bad hack.
16898	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16899	# The linker will automatically build a .lib file if we build a DLL.
16900	old_archive_from_new_cmds='true'
16901	# FIXME: Should let the user specify the lib program.
16902	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16903	enable_shared_with_static_runtimes=yes
16904	;;
16905      esac
16906      ;;
16907
16908    darwin* | rhapsody*)
16909
16910
16911  archive_cmds_need_lc=no
16912  hardcode_direct=no
16913  hardcode_automatic=yes
16914  hardcode_shlibpath_var=unsupported
16915  if test yes = "$lt_cv_ld_force_load"; then
16916    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\"`'
16917
16918  else
16919    whole_archive_flag_spec=''
16920  fi
16921  link_all_deplibs=yes
16922  allow_undefined_flag=$_lt_dar_allow_undefined
16923  case $cc_basename in
16924     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16925     *) _lt_dar_can_shared=$GCC ;;
16926  esac
16927  if test yes = "$_lt_dar_can_shared"; then
16928    output_verbose_link_cmd=func_echo_all
16929    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16930    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16931    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"
16932    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"
16933
16934  else
16935  ld_shlibs=no
16936  fi
16937
16938      ;;
16939
16940    dgux*)
16941      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16942      hardcode_libdir_flag_spec='-L$libdir'
16943      hardcode_shlibpath_var=no
16944      ;;
16945
16946    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16947    # support.  Future versions do this automatically, but an explicit c++rt0.o
16948    # does not break anything, and helps significantly (at the cost of a little
16949    # extra space).
16950    freebsd2.2*)
16951      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16952      hardcode_libdir_flag_spec='-R$libdir'
16953      hardcode_direct=yes
16954      hardcode_shlibpath_var=no
16955      ;;
16956
16957    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16958    freebsd2.*)
16959      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16960      hardcode_direct=yes
16961      hardcode_minus_L=yes
16962      hardcode_shlibpath_var=no
16963      ;;
16964
16965    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16966    freebsd* | dragonfly* | midnightbsd*)
16967      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16968      hardcode_libdir_flag_spec='-R$libdir'
16969      hardcode_direct=yes
16970      hardcode_shlibpath_var=no
16971      ;;
16972
16973    hpux9*)
16974      if test yes = "$GCC"; then
16975	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'
16976      else
16977	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'
16978      fi
16979      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16980      hardcode_libdir_separator=:
16981      hardcode_direct=yes
16982
16983      # hardcode_minus_L: Not really in the search PATH,
16984      # but as the default location of the library.
16985      hardcode_minus_L=yes
16986      export_dynamic_flag_spec='$wl-E'
16987      ;;
16988
16989    hpux10*)
16990      if test yes,no = "$GCC,$with_gnu_ld"; then
16991	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16992      else
16993	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16994      fi
16995      if test no = "$with_gnu_ld"; then
16996	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16997	hardcode_libdir_separator=:
16998	hardcode_direct=yes
16999	hardcode_direct_absolute=yes
17000	export_dynamic_flag_spec='$wl-E'
17001	# hardcode_minus_L: Not really in the search PATH,
17002	# but as the default location of the library.
17003	hardcode_minus_L=yes
17004      fi
17005      ;;
17006
17007    hpux11*)
17008      if test yes,no = "$GCC,$with_gnu_ld"; then
17009	case $host_cpu in
17010	hppa*64*)
17011	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17012	  ;;
17013	ia64*)
17014	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17015	  ;;
17016	*)
17017	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17018	  ;;
17019	esac
17020      else
17021	case $host_cpu in
17022	hppa*64*)
17023	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17024	  ;;
17025	ia64*)
17026	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17027	  ;;
17028	*)
17029
17030	  # Older versions of the 11.00 compiler do not understand -b yet
17031	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17032	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17033printf %s "checking if $CC understands -b... " >&6; }
17034if test ${lt_cv_prog_compiler__b+y}
17035then :
17036  printf %s "(cached) " >&6
17037else $as_nop
17038  lt_cv_prog_compiler__b=no
17039   save_LDFLAGS=$LDFLAGS
17040   LDFLAGS="$LDFLAGS -b"
17041   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17042   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17043     # The linker can only warn and ignore the option if not recognized
17044     # So say no if there are warnings
17045     if test -s conftest.err; then
17046       # Append any errors to the config.log.
17047       cat conftest.err 1>&5
17048       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17049       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17050       if diff conftest.exp conftest.er2 >/dev/null; then
17051         lt_cv_prog_compiler__b=yes
17052       fi
17053     else
17054       lt_cv_prog_compiler__b=yes
17055     fi
17056   fi
17057   $RM -r conftest*
17058   LDFLAGS=$save_LDFLAGS
17059
17060fi
17061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17062printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17063
17064if test yes = "$lt_cv_prog_compiler__b"; then
17065    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17066else
17067    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17068fi
17069
17070	  ;;
17071	esac
17072      fi
17073      if test no = "$with_gnu_ld"; then
17074	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17075	hardcode_libdir_separator=:
17076
17077	case $host_cpu in
17078	hppa*64*|ia64*)
17079	  hardcode_direct=no
17080	  hardcode_shlibpath_var=no
17081	  ;;
17082	*)
17083	  hardcode_direct=yes
17084	  hardcode_direct_absolute=yes
17085	  export_dynamic_flag_spec='$wl-E'
17086
17087	  # hardcode_minus_L: Not really in the search PATH,
17088	  # but as the default location of the library.
17089	  hardcode_minus_L=yes
17090	  ;;
17091	esac
17092      fi
17093      ;;
17094
17095    irix5* | irix6* | nonstopux*)
17096      if test yes = "$GCC"; then
17097	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'
17098	# Try to use the -exported_symbol ld option, if it does not
17099	# work, assume that -exports_file does not work either and
17100	# implicitly export all symbols.
17101	# This should be the same for all languages, so no per-tag cache variable.
17102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17103printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17104if test ${lt_cv_irix_exported_symbol+y}
17105then :
17106  printf %s "(cached) " >&6
17107else $as_nop
17108  save_LDFLAGS=$LDFLAGS
17109	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17110	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111/* end confdefs.h.  */
17112int foo (void) { return 0; }
17113_ACEOF
17114if ac_fn_c_try_link "$LINENO"
17115then :
17116  lt_cv_irix_exported_symbol=yes
17117else $as_nop
17118  lt_cv_irix_exported_symbol=no
17119fi
17120rm -f core conftest.err conftest.$ac_objext conftest.beam \
17121    conftest$ac_exeext conftest.$ac_ext
17122           LDFLAGS=$save_LDFLAGS
17123fi
17124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17125printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17126	if test yes = "$lt_cv_irix_exported_symbol"; then
17127          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'
17128	fi
17129      else
17130	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'
17131	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'
17132      fi
17133      archive_cmds_need_lc='no'
17134      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17135      hardcode_libdir_separator=:
17136      inherit_rpath=yes
17137      link_all_deplibs=yes
17138      ;;
17139
17140    linux*)
17141      case $cc_basename in
17142      tcc*)
17143	# Fabrice Bellard et al's Tiny C Compiler
17144	ld_shlibs=yes
17145	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17146	;;
17147      esac
17148      ;;
17149
17150    netbsd*)
17151      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17152	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17153      else
17154	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17155      fi
17156      hardcode_libdir_flag_spec='-R$libdir'
17157      hardcode_direct=yes
17158      hardcode_shlibpath_var=no
17159      ;;
17160
17161    newsos6)
17162      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17163      hardcode_direct=yes
17164      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17165      hardcode_libdir_separator=:
17166      hardcode_shlibpath_var=no
17167      ;;
17168
17169    *nto* | *qnx*)
17170      ;;
17171
17172    openbsd* | bitrig*)
17173      if test -f /usr/libexec/ld.so; then
17174	hardcode_direct=yes
17175	hardcode_shlibpath_var=no
17176	hardcode_direct_absolute=yes
17177	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17178	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17179	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17180	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17181	  export_dynamic_flag_spec='$wl-E'
17182	else
17183	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17184	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17185	fi
17186      else
17187	ld_shlibs=no
17188      fi
17189      ;;
17190
17191    os2*)
17192      hardcode_libdir_flag_spec='-L$libdir'
17193      hardcode_minus_L=yes
17194      allow_undefined_flag=unsupported
17195      shrext_cmds=.dll
17196      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17197	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17198	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17199	$ECHO EXPORTS >> $output_objdir/$libname.def~
17200	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17201	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17202	emximp -o $lib $output_objdir/$libname.def'
17203      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17204	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17205	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17206	$ECHO EXPORTS >> $output_objdir/$libname.def~
17207	prefix_cmds="$SED"~
17208	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17209	  prefix_cmds="$prefix_cmds -e 1d";
17210	fi~
17211	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17212	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17213	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17214	emximp -o $lib $output_objdir/$libname.def'
17215      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17216      enable_shared_with_static_runtimes=yes
17217      file_list_spec='@'
17218      ;;
17219
17220    osf3*)
17221      if test yes = "$GCC"; then
17222	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17223	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'
17224      else
17225	allow_undefined_flag=' -expect_unresolved \*'
17226	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'
17227      fi
17228      archive_cmds_need_lc='no'
17229      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17230      hardcode_libdir_separator=:
17231      ;;
17232
17233    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17234      if test yes = "$GCC"; then
17235	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17236	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'
17237	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17238      else
17239	allow_undefined_flag=' -expect_unresolved \*'
17240	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'
17241	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~
17242          $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'
17243
17244	# Both c and cxx compiler support -rpath directly
17245	hardcode_libdir_flag_spec='-rpath $libdir'
17246      fi
17247      archive_cmds_need_lc='no'
17248      hardcode_libdir_separator=:
17249      ;;
17250
17251    solaris*)
17252      no_undefined_flag=' -z defs'
17253      if test yes = "$GCC"; then
17254	wlarc='$wl'
17255	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17256	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17257          $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'
17258      else
17259	case `$CC -V 2>&1` in
17260	*"Compilers 5.0"*)
17261	  wlarc=''
17262	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17263	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17264            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17265	  ;;
17266	*)
17267	  wlarc='$wl'
17268	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17269	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17270            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17271	  ;;
17272	esac
17273      fi
17274      hardcode_libdir_flag_spec='-R$libdir'
17275      hardcode_shlibpath_var=no
17276      case $host_os in
17277      solaris2.[0-5] | solaris2.[0-5].*) ;;
17278      *)
17279	# The compiler driver will combine and reorder linker options,
17280	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17281	# but is careful enough not to reorder.
17282	# Supported since Solaris 2.6 (maybe 2.5.1?)
17283	if test yes = "$GCC"; then
17284	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17285	else
17286	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17287	fi
17288	;;
17289      esac
17290      link_all_deplibs=yes
17291      ;;
17292
17293    sunos4*)
17294      if test sequent = "$host_vendor"; then
17295	# Use $CC to link under sequent, because it throws in some extra .o
17296	# files that make .init and .fini sections work.
17297	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17298      else
17299	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17300      fi
17301      hardcode_libdir_flag_spec='-L$libdir'
17302      hardcode_direct=yes
17303      hardcode_minus_L=yes
17304      hardcode_shlibpath_var=no
17305      ;;
17306
17307    sysv4)
17308      case $host_vendor in
17309	sni)
17310	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17311	  hardcode_direct=yes # is this really true???
17312	;;
17313	siemens)
17314	  ## LD is ld it makes a PLAMLIB
17315	  ## CC just makes a GrossModule.
17316	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17317	  reload_cmds='$CC -r -o $output$reload_objs'
17318	  hardcode_direct=no
17319        ;;
17320	motorola)
17321	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17322	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17323	;;
17324      esac
17325      runpath_var='LD_RUN_PATH'
17326      hardcode_shlibpath_var=no
17327      ;;
17328
17329    sysv4.3*)
17330      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17331      hardcode_shlibpath_var=no
17332      export_dynamic_flag_spec='-Bexport'
17333      ;;
17334
17335    sysv4*MP*)
17336      if test -d /usr/nec; then
17337	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17338	hardcode_shlibpath_var=no
17339	runpath_var=LD_RUN_PATH
17340	hardcode_runpath_var=yes
17341	ld_shlibs=yes
17342      fi
17343      ;;
17344
17345    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17346      no_undefined_flag='$wl-z,text'
17347      archive_cmds_need_lc=no
17348      hardcode_shlibpath_var=no
17349      runpath_var='LD_RUN_PATH'
17350
17351      if test yes = "$GCC"; then
17352	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17353	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17354      else
17355	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17356	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17357      fi
17358      ;;
17359
17360    sysv5* | sco3.2v5* | sco5v6*)
17361      # Note: We CANNOT use -z defs as we might desire, because we do not
17362      # link with -lc, and that would cause any symbols used from libc to
17363      # always be unresolved, which means just about no library would
17364      # ever link correctly.  If we're not using GNU ld we use -z text
17365      # though, which does catch some bad symbols but isn't as heavy-handed
17366      # as -z defs.
17367      no_undefined_flag='$wl-z,text'
17368      allow_undefined_flag='$wl-z,nodefs'
17369      archive_cmds_need_lc=no
17370      hardcode_shlibpath_var=no
17371      hardcode_libdir_flag_spec='$wl-R,$libdir'
17372      hardcode_libdir_separator=':'
17373      link_all_deplibs=yes
17374      export_dynamic_flag_spec='$wl-Bexport'
17375      runpath_var='LD_RUN_PATH'
17376
17377      if test yes = "$GCC"; then
17378	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17379	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380      else
17381	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17382	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17383      fi
17384      ;;
17385
17386    uts4*)
17387      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17388      hardcode_libdir_flag_spec='-L$libdir'
17389      hardcode_shlibpath_var=no
17390      ;;
17391
17392    *)
17393      ld_shlibs=no
17394      ;;
17395    esac
17396
17397    if test sni = "$host_vendor"; then
17398      case $host in
17399      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17400	export_dynamic_flag_spec='$wl-Blargedynsym'
17401	;;
17402      esac
17403    fi
17404  fi
17405
17406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17407printf "%s\n" "$ld_shlibs" >&6; }
17408test no = "$ld_shlibs" && can_build_shared=no
17409
17410with_gnu_ld=$with_gnu_ld
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426#
17427# Do we need to explicitly link libc?
17428#
17429case "x$archive_cmds_need_lc" in
17430x|xyes)
17431  # Assume -lc should be added
17432  archive_cmds_need_lc=yes
17433
17434  if test yes,yes = "$GCC,$enable_shared"; then
17435    case $archive_cmds in
17436    *'~'*)
17437      # FIXME: we may have to deal with multi-command sequences.
17438      ;;
17439    '$CC '*)
17440      # Test whether the compiler implicitly links with -lc since on some
17441      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17442      # to ld, don't add -lc before -lgcc.
17443      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17444printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17445if test ${lt_cv_archive_cmds_need_lc+y}
17446then :
17447  printf %s "(cached) " >&6
17448else $as_nop
17449  $RM conftest*
17450	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17451
17452	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17453  (eval $ac_compile) 2>&5
17454  ac_status=$?
17455  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17456  test $ac_status = 0; } 2>conftest.err; then
17457	  soname=conftest
17458	  lib=conftest
17459	  libobjs=conftest.$ac_objext
17460	  deplibs=
17461	  wl=$lt_prog_compiler_wl
17462	  pic_flag=$lt_prog_compiler_pic
17463	  compiler_flags=-v
17464	  linker_flags=-v
17465	  verstring=
17466	  output_objdir=.
17467	  libname=conftest
17468	  lt_save_allow_undefined_flag=$allow_undefined_flag
17469	  allow_undefined_flag=
17470	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17471  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17472  ac_status=$?
17473  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17474  test $ac_status = 0; }
17475	  then
17476	    lt_cv_archive_cmds_need_lc=no
17477	  else
17478	    lt_cv_archive_cmds_need_lc=yes
17479	  fi
17480	  allow_undefined_flag=$lt_save_allow_undefined_flag
17481	else
17482	  cat conftest.err 1>&5
17483	fi
17484	$RM conftest*
17485
17486fi
17487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17488printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17489      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17490      ;;
17491    esac
17492  fi
17493  ;;
17494esac
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17648printf %s "checking dynamic linker characteristics... " >&6; }
17649
17650if test yes = "$GCC"; then
17651  case $host_os in
17652    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17653    *) lt_awk_arg='/^libraries:/' ;;
17654  esac
17655  case $host_os in
17656    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17657    *) lt_sed_strip_eq='s|=/|/|g' ;;
17658  esac
17659  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17660  case $lt_search_path_spec in
17661  *\;*)
17662    # if the path contains ";" then we assume it to be the separator
17663    # otherwise default to the standard path separator (i.e. ":") - it is
17664    # assumed that no part of a normal pathname contains ";" but that should
17665    # okay in the real world where ";" in dirpaths is itself problematic.
17666    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17667    ;;
17668  *)
17669    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17670    ;;
17671  esac
17672  # Ok, now we have the path, separated by spaces, we can step through it
17673  # and add multilib dir if necessary...
17674  lt_tmp_lt_search_path_spec=
17675  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17676  # ...but if some path component already ends with the multilib dir we assume
17677  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17678  case "$lt_multi_os_dir; $lt_search_path_spec " in
17679  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17680    lt_multi_os_dir=
17681    ;;
17682  esac
17683  for lt_sys_path in $lt_search_path_spec; do
17684    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17685      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17686    elif test -n "$lt_multi_os_dir"; then
17687      test -d "$lt_sys_path" && \
17688	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17689    fi
17690  done
17691  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17692BEGIN {RS = " "; FS = "/|\n";} {
17693  lt_foo = "";
17694  lt_count = 0;
17695  for (lt_i = NF; lt_i > 0; lt_i--) {
17696    if ($lt_i != "" && $lt_i != ".") {
17697      if ($lt_i == "..") {
17698        lt_count++;
17699      } else {
17700        if (lt_count == 0) {
17701          lt_foo = "/" $lt_i lt_foo;
17702        } else {
17703          lt_count--;
17704        }
17705      }
17706    }
17707  }
17708  if (lt_foo != "") { lt_freq[lt_foo]++; }
17709  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17710}'`
17711  # AWK program above erroneously prepends '/' to C:/dos/paths
17712  # for these hosts.
17713  case $host_os in
17714    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17715      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17716  esac
17717  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17718else
17719  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17720fi
17721library_names_spec=
17722libname_spec='lib$name'
17723soname_spec=
17724shrext_cmds=.so
17725postinstall_cmds=
17726postuninstall_cmds=
17727finish_cmds=
17728finish_eval=
17729shlibpath_var=
17730shlibpath_overrides_runpath=unknown
17731version_type=none
17732dynamic_linker="$host_os ld.so"
17733sys_lib_dlsearch_path_spec="/lib /usr/lib"
17734need_lib_prefix=unknown
17735hardcode_into_libs=no
17736
17737# when you set need_version to no, make sure it does not cause -set_version
17738# flags to be left without arguments
17739need_version=unknown
17740
17741
17742
17743case $host_os in
17744aix3*)
17745  version_type=linux # correct to gnu/linux during the next big refactor
17746  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17747  shlibpath_var=LIBPATH
17748
17749  # AIX 3 has no versioning support, so we append a major version to the name.
17750  soname_spec='$libname$release$shared_ext$major'
17751  ;;
17752
17753aix[4-9]*)
17754  version_type=linux # correct to gnu/linux during the next big refactor
17755  need_lib_prefix=no
17756  need_version=no
17757  hardcode_into_libs=yes
17758  if test ia64 = "$host_cpu"; then
17759    # AIX 5 supports IA64
17760    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17761    shlibpath_var=LD_LIBRARY_PATH
17762  else
17763    # With GCC up to 2.95.x, collect2 would create an import file
17764    # for dependence libraries.  The import file would start with
17765    # the line '#! .'.  This would cause the generated library to
17766    # depend on '.', always an invalid library.  This was fixed in
17767    # development snapshots of GCC prior to 3.0.
17768    case $host_os in
17769      aix4 | aix4.[01] | aix4.[01].*)
17770      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17771	   echo ' yes '
17772	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17773	:
17774      else
17775	can_build_shared=no
17776      fi
17777      ;;
17778    esac
17779    # Using Import Files as archive members, it is possible to support
17780    # filename-based versioning of shared library archives on AIX. While
17781    # this would work for both with and without runtime linking, it will
17782    # prevent static linking of such archives. So we do filename-based
17783    # shared library versioning with .so extension only, which is used
17784    # when both runtime linking and shared linking is enabled.
17785    # Unfortunately, runtime linking may impact performance, so we do
17786    # not want this to be the default eventually. Also, we use the
17787    # versioned .so libs for executables only if there is the -brtl
17788    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17789    # To allow for filename-based versioning support, we need to create
17790    # libNAME.so.V as an archive file, containing:
17791    # *) an Import File, referring to the versioned filename of the
17792    #    archive as well as the shared archive member, telling the
17793    #    bitwidth (32 or 64) of that shared object, and providing the
17794    #    list of exported symbols of that shared object, eventually
17795    #    decorated with the 'weak' keyword
17796    # *) the shared object with the F_LOADONLY flag set, to really avoid
17797    #    it being seen by the linker.
17798    # At run time we better use the real file rather than another symlink,
17799    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17800
17801    case $with_aix_soname,$aix_use_runtimelinking in
17802    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17803    # soname into executable. Probably we can add versioning support to
17804    # collect2, so additional links can be useful in future.
17805    aix,yes) # traditional libtool
17806      dynamic_linker='AIX unversionable lib.so'
17807      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17808      # instead of lib<name>.a to let people know that these are not
17809      # typical AIX shared libraries.
17810      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17811      ;;
17812    aix,no) # traditional AIX only
17813      dynamic_linker='AIX lib.a(lib.so.V)'
17814      # We preserve .a as extension for shared libraries through AIX4.2
17815      # and later when we are not doing run time linking.
17816      library_names_spec='$libname$release.a $libname.a'
17817      soname_spec='$libname$release$shared_ext$major'
17818      ;;
17819    svr4,*) # full svr4 only
17820      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17821      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17822      # We do not specify a path in Import Files, so LIBPATH fires.
17823      shlibpath_overrides_runpath=yes
17824      ;;
17825    *,yes) # both, prefer svr4
17826      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17827      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17828      # unpreferred sharedlib libNAME.a needs extra handling
17829      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"'
17830      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"'
17831      # We do not specify a path in Import Files, so LIBPATH fires.
17832      shlibpath_overrides_runpath=yes
17833      ;;
17834    *,no) # both, prefer aix
17835      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17836      library_names_spec='$libname$release.a $libname.a'
17837      soname_spec='$libname$release$shared_ext$major'
17838      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17839      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)'
17840      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"'
17841      ;;
17842    esac
17843    shlibpath_var=LIBPATH
17844  fi
17845  ;;
17846
17847amigaos*)
17848  case $host_cpu in
17849  powerpc)
17850    # Since July 2007 AmigaOS4 officially supports .so libraries.
17851    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17852    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17853    ;;
17854  m68k)
17855    library_names_spec='$libname.ixlibrary $libname.a'
17856    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17857    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'
17858    ;;
17859  esac
17860  ;;
17861
17862beos*)
17863  library_names_spec='$libname$shared_ext'
17864  dynamic_linker="$host_os ld.so"
17865  shlibpath_var=LIBRARY_PATH
17866  ;;
17867
17868bsdi[45]*)
17869  version_type=linux # correct to gnu/linux during the next big refactor
17870  need_version=no
17871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17872  soname_spec='$libname$release$shared_ext$major'
17873  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17874  shlibpath_var=LD_LIBRARY_PATH
17875  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17876  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17877  # the default ld.so.conf also contains /usr/contrib/lib and
17878  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17879  # libtool to hard-code these into programs
17880  ;;
17881
17882cygwin* | mingw* | pw32* | cegcc*)
17883  version_type=windows
17884  shrext_cmds=.dll
17885  need_version=no
17886  need_lib_prefix=no
17887
17888  case $GCC,$cc_basename in
17889  yes,*)
17890    # gcc
17891    library_names_spec='$libname.dll.a'
17892    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17893    postinstall_cmds='base_file=`basename \$file`~
17894      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17895      dldir=$destdir/`dirname \$dlpath`~
17896      test -d \$dldir || mkdir -p \$dldir~
17897      $install_prog $dir/$dlname \$dldir/$dlname~
17898      chmod a+x \$dldir/$dlname~
17899      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17900        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17901      fi'
17902    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17903      dlpath=$dir/\$dldll~
17904       $RM \$dlpath'
17905    shlibpath_overrides_runpath=yes
17906
17907    case $host_os in
17908    cygwin*)
17909      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17910      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17911
17912      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17913      ;;
17914    mingw* | cegcc*)
17915      # MinGW DLLs use traditional 'lib' prefix
17916      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17917      ;;
17918    pw32*)
17919      # pw32 DLLs use 'pw' prefix rather than 'lib'
17920      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17921      ;;
17922    esac
17923    dynamic_linker='Win32 ld.exe'
17924    ;;
17925
17926  *,cl* | *,icl*)
17927    # Native MSVC or ICC
17928    libname_spec='$name'
17929    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17930    library_names_spec='$libname.dll.lib'
17931
17932    case $build_os in
17933    mingw*)
17934      sys_lib_search_path_spec=
17935      lt_save_ifs=$IFS
17936      IFS=';'
17937      for lt_path in $LIB
17938      do
17939        IFS=$lt_save_ifs
17940        # Let DOS variable expansion print the short 8.3 style file name.
17941        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17942        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17943      done
17944      IFS=$lt_save_ifs
17945      # Convert to MSYS style.
17946      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17947      ;;
17948    cygwin*)
17949      # Convert to unix form, then to dos form, then back to unix form
17950      # but this time dos style (no spaces!) so that the unix form looks
17951      # like /cygdrive/c/PROGRA~1:/cygdr...
17952      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17953      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17954      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17955      ;;
17956    *)
17957      sys_lib_search_path_spec=$LIB
17958      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17959        # It is most probably a Windows format PATH.
17960        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17961      else
17962        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17963      fi
17964      # FIXME: find the short name or the path components, as spaces are
17965      # common. (e.g. "Program Files" -> "PROGRA~1")
17966      ;;
17967    esac
17968
17969    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17970    postinstall_cmds='base_file=`basename \$file`~
17971      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17972      dldir=$destdir/`dirname \$dlpath`~
17973      test -d \$dldir || mkdir -p \$dldir~
17974      $install_prog $dir/$dlname \$dldir/$dlname'
17975    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17976      dlpath=$dir/\$dldll~
17977       $RM \$dlpath'
17978    shlibpath_overrides_runpath=yes
17979    dynamic_linker='Win32 link.exe'
17980    ;;
17981
17982  *)
17983    # Assume MSVC and ICC wrapper
17984    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17985    dynamic_linker='Win32 ld.exe'
17986    ;;
17987  esac
17988  # FIXME: first we should search . and the directory the executable is in
17989  shlibpath_var=PATH
17990  ;;
17991
17992darwin* | rhapsody*)
17993  dynamic_linker="$host_os dyld"
17994  version_type=darwin
17995  need_lib_prefix=no
17996  need_version=no
17997  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17998  soname_spec='$libname$release$major$shared_ext'
17999  shlibpath_overrides_runpath=yes
18000  shlibpath_var=DYLD_LIBRARY_PATH
18001  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18002
18003  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18004  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18005  ;;
18006
18007dgux*)
18008  version_type=linux # correct to gnu/linux during the next big refactor
18009  need_lib_prefix=no
18010  need_version=no
18011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18012  soname_spec='$libname$release$shared_ext$major'
18013  shlibpath_var=LD_LIBRARY_PATH
18014  ;;
18015
18016freebsd* | dragonfly* | midnightbsd*)
18017  # DragonFly does not have aout.  When/if they implement a new
18018  # versioning mechanism, adjust this.
18019  if test -x /usr/bin/objformat; then
18020    objformat=`/usr/bin/objformat`
18021  else
18022    case $host_os in
18023    freebsd[23].*) objformat=aout ;;
18024    *) objformat=elf ;;
18025    esac
18026  fi
18027  version_type=freebsd-$objformat
18028  case $version_type in
18029    freebsd-elf*)
18030      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18031      soname_spec='$libname$release$shared_ext$major'
18032      need_version=no
18033      need_lib_prefix=no
18034      ;;
18035    freebsd-*)
18036      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18037      need_version=yes
18038      ;;
18039  esac
18040  shlibpath_var=LD_LIBRARY_PATH
18041  case $host_os in
18042  freebsd2.*)
18043    shlibpath_overrides_runpath=yes
18044    ;;
18045  freebsd3.[01]* | freebsdelf3.[01]*)
18046    shlibpath_overrides_runpath=yes
18047    hardcode_into_libs=yes
18048    ;;
18049  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18050  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18051    shlibpath_overrides_runpath=no
18052    hardcode_into_libs=yes
18053    ;;
18054  *) # from 4.6 on, and DragonFly
18055    shlibpath_overrides_runpath=yes
18056    hardcode_into_libs=yes
18057    ;;
18058  esac
18059  ;;
18060
18061haiku*)
18062  version_type=linux # correct to gnu/linux during the next big refactor
18063  need_lib_prefix=no
18064  need_version=no
18065  dynamic_linker="$host_os runtime_loader"
18066  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18067  soname_spec='$libname$release$shared_ext$major'
18068  shlibpath_var=LIBRARY_PATH
18069  shlibpath_overrides_runpath=no
18070  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18071  hardcode_into_libs=yes
18072  ;;
18073
18074hpux9* | hpux10* | hpux11*)
18075  # Give a soname corresponding to the major version so that dld.sl refuses to
18076  # link against other versions.
18077  version_type=sunos
18078  need_lib_prefix=no
18079  need_version=no
18080  case $host_cpu in
18081  ia64*)
18082    shrext_cmds='.so'
18083    hardcode_into_libs=yes
18084    dynamic_linker="$host_os dld.so"
18085    shlibpath_var=LD_LIBRARY_PATH
18086    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test 32 = "$HPUX_IA64_MODE"; then
18090      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18091      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18092    else
18093      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18094      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18095    fi
18096    ;;
18097  hppa*64*)
18098    shrext_cmds='.sl'
18099    hardcode_into_libs=yes
18100    dynamic_linker="$host_os dld.sl"
18101    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18102    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18103    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18104    soname_spec='$libname$release$shared_ext$major'
18105    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18106    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18107    ;;
18108  *)
18109    shrext_cmds='.sl'
18110    dynamic_linker="$host_os dld.sl"
18111    shlibpath_var=SHLIB_PATH
18112    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18113    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18114    soname_spec='$libname$release$shared_ext$major'
18115    ;;
18116  esac
18117  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18118  postinstall_cmds='chmod 555 $lib'
18119  # or fails outright, so override atomically:
18120  install_override_mode=555
18121  ;;
18122
18123interix[3-9]*)
18124  version_type=linux # correct to gnu/linux during the next big refactor
18125  need_lib_prefix=no
18126  need_version=no
18127  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18128  soname_spec='$libname$release$shared_ext$major'
18129  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18130  shlibpath_var=LD_LIBRARY_PATH
18131  shlibpath_overrides_runpath=no
18132  hardcode_into_libs=yes
18133  ;;
18134
18135irix5* | irix6* | nonstopux*)
18136  case $host_os in
18137    nonstopux*) version_type=nonstopux ;;
18138    *)
18139	if test yes = "$lt_cv_prog_gnu_ld"; then
18140		version_type=linux # correct to gnu/linux during the next big refactor
18141	else
18142		version_type=irix
18143	fi ;;
18144  esac
18145  need_lib_prefix=no
18146  need_version=no
18147  soname_spec='$libname$release$shared_ext$major'
18148  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18149  case $host_os in
18150  irix5* | nonstopux*)
18151    libsuff= shlibsuff=
18152    ;;
18153  *)
18154    case $LD in # libtool.m4 will add one of these switches to LD
18155    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18156      libsuff= shlibsuff= libmagic=32-bit;;
18157    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18158      libsuff=32 shlibsuff=N32 libmagic=N32;;
18159    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18160      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18161    *) libsuff= shlibsuff= libmagic=never-match;;
18162    esac
18163    ;;
18164  esac
18165  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18166  shlibpath_overrides_runpath=no
18167  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18168  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18169  hardcode_into_libs=yes
18170  ;;
18171
18172# No shared lib support for Linux oldld, aout, or coff.
18173linux*oldld* | linux*aout* | linux*coff*)
18174  dynamic_linker=no
18175  ;;
18176
18177linux*android*)
18178  version_type=none # Android doesn't support versioned libraries.
18179  need_lib_prefix=no
18180  need_version=no
18181  library_names_spec='$libname$release$shared_ext'
18182  soname_spec='$libname$release$shared_ext'
18183  finish_cmds=
18184  shlibpath_var=LD_LIBRARY_PATH
18185  shlibpath_overrides_runpath=yes
18186
18187  # This implies no fast_install, which is unacceptable.
18188  # Some rework will be needed to allow for fast_install
18189  # before this can be enabled.
18190  hardcode_into_libs=yes
18191
18192  dynamic_linker='Android linker'
18193  # Don't embed -rpath directories since the linker doesn't support them.
18194  hardcode_libdir_flag_spec='-L$libdir'
18195  ;;
18196
18197# This must be glibc/ELF.
18198linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18199  version_type=linux # correct to gnu/linux during the next big refactor
18200  need_lib_prefix=no
18201  need_version=no
18202  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18203  soname_spec='$libname$release$shared_ext$major'
18204  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18205  shlibpath_var=LD_LIBRARY_PATH
18206  shlibpath_overrides_runpath=no
18207
18208  # Some binutils ld are patched to set DT_RUNPATH
18209  if test ${lt_cv_shlibpath_overrides_runpath+y}
18210then :
18211  printf %s "(cached) " >&6
18212else $as_nop
18213  lt_cv_shlibpath_overrides_runpath=no
18214    save_LDFLAGS=$LDFLAGS
18215    save_libdir=$libdir
18216    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18217	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18218    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219/* end confdefs.h.  */
18220
18221int
18222main (void)
18223{
18224
18225  ;
18226  return 0;
18227}
18228_ACEOF
18229if ac_fn_c_try_link "$LINENO"
18230then :
18231  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18232then :
18233  lt_cv_shlibpath_overrides_runpath=yes
18234fi
18235fi
18236rm -f core conftest.err conftest.$ac_objext conftest.beam \
18237    conftest$ac_exeext conftest.$ac_ext
18238    LDFLAGS=$save_LDFLAGS
18239    libdir=$save_libdir
18240
18241fi
18242
18243  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18244
18245  # This implies no fast_install, which is unacceptable.
18246  # Some rework will be needed to allow for fast_install
18247  # before this can be enabled.
18248  hardcode_into_libs=yes
18249
18250  # Ideally, we could use ldconfig to report *all* directores which are
18251  # searched for libraries, however this is still not possible.  Aside from not
18252  # being certain /sbin/ldconfig is available, command
18253  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18254  # even though it is searched at run-time.  Try to do the best guess by
18255  # appending ld.so.conf contents (and includes) to the search path.
18256  if test -f /etc/ld.so.conf; then
18257    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' ' '`
18258    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18259  fi
18260
18261  # We used to test for /lib/ld.so.1 and disable shared libraries on
18262  # powerpc, because MkLinux only supported shared libraries with the
18263  # GNU dynamic linker.  Since this was broken with cross compilers,
18264  # most powerpc-linux boxes support dynamic linking these days and
18265  # people can always --disable-shared, the test was removed, and we
18266  # assume the GNU/Linux dynamic linker is in use.
18267  dynamic_linker='GNU/Linux ld.so'
18268  ;;
18269
18270netbsd*)
18271  version_type=sunos
18272  need_lib_prefix=no
18273  need_version=no
18274  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18275    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18276    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18277    dynamic_linker='NetBSD (a.out) ld.so'
18278  else
18279    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18280    soname_spec='$libname$release$shared_ext$major'
18281    dynamic_linker='NetBSD ld.elf_so'
18282  fi
18283  shlibpath_var=LD_LIBRARY_PATH
18284  shlibpath_overrides_runpath=yes
18285  hardcode_into_libs=yes
18286  ;;
18287
18288newsos6)
18289  version_type=linux # correct to gnu/linux during the next big refactor
18290  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18291  shlibpath_var=LD_LIBRARY_PATH
18292  shlibpath_overrides_runpath=yes
18293  ;;
18294
18295*nto* | *qnx*)
18296  version_type=qnx
18297  need_lib_prefix=no
18298  need_version=no
18299  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18300  soname_spec='$libname$release$shared_ext$major'
18301  shlibpath_var=LD_LIBRARY_PATH
18302  shlibpath_overrides_runpath=no
18303  hardcode_into_libs=yes
18304  dynamic_linker='ldqnx.so'
18305  ;;
18306
18307openbsd* | bitrig*)
18308  version_type=sunos
18309  sys_lib_dlsearch_path_spec=/usr/lib
18310  need_lib_prefix=no
18311  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18312    need_version=no
18313  else
18314    need_version=yes
18315  fi
18316  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18317  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18318  shlibpath_var=LD_LIBRARY_PATH
18319  shlibpath_overrides_runpath=yes
18320  ;;
18321
18322os2*)
18323  libname_spec='$name'
18324  version_type=windows
18325  shrext_cmds=.dll
18326  need_version=no
18327  need_lib_prefix=no
18328  # OS/2 can only load a DLL with a base name of 8 characters or less.
18329  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18330    v=$($ECHO $release$versuffix | tr -d .-);
18331    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18332    $ECHO $n$v`$shared_ext'
18333  library_names_spec='${libname}_dll.$libext'
18334  dynamic_linker='OS/2 ld.exe'
18335  shlibpath_var=BEGINLIBPATH
18336  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18337  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18338  postinstall_cmds='base_file=`basename \$file`~
18339    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18340    dldir=$destdir/`dirname \$dlpath`~
18341    test -d \$dldir || mkdir -p \$dldir~
18342    $install_prog $dir/$dlname \$dldir/$dlname~
18343    chmod a+x \$dldir/$dlname~
18344    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18345      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18346    fi'
18347  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18348    dlpath=$dir/\$dldll~
18349    $RM \$dlpath'
18350  ;;
18351
18352osf3* | osf4* | osf5*)
18353  version_type=osf
18354  need_lib_prefix=no
18355  need_version=no
18356  soname_spec='$libname$release$shared_ext$major'
18357  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18358  shlibpath_var=LD_LIBRARY_PATH
18359  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18360  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18361  ;;
18362
18363rdos*)
18364  dynamic_linker=no
18365  ;;
18366
18367solaris*)
18368  version_type=linux # correct to gnu/linux during the next big refactor
18369  need_lib_prefix=no
18370  need_version=no
18371  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18372  soname_spec='$libname$release$shared_ext$major'
18373  shlibpath_var=LD_LIBRARY_PATH
18374  shlibpath_overrides_runpath=yes
18375  hardcode_into_libs=yes
18376  # ldd complains unless libraries are executable
18377  postinstall_cmds='chmod +x $lib'
18378  ;;
18379
18380sunos4*)
18381  version_type=sunos
18382  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18383  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18384  shlibpath_var=LD_LIBRARY_PATH
18385  shlibpath_overrides_runpath=yes
18386  if test yes = "$with_gnu_ld"; then
18387    need_lib_prefix=no
18388  fi
18389  need_version=yes
18390  ;;
18391
18392sysv4 | sysv4.3*)
18393  version_type=linux # correct to gnu/linux during the next big refactor
18394  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18395  soname_spec='$libname$release$shared_ext$major'
18396  shlibpath_var=LD_LIBRARY_PATH
18397  case $host_vendor in
18398    sni)
18399      shlibpath_overrides_runpath=no
18400      need_lib_prefix=no
18401      runpath_var=LD_RUN_PATH
18402      ;;
18403    siemens)
18404      need_lib_prefix=no
18405      ;;
18406    motorola)
18407      need_lib_prefix=no
18408      need_version=no
18409      shlibpath_overrides_runpath=no
18410      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18411      ;;
18412  esac
18413  ;;
18414
18415sysv4*MP*)
18416  if test -d /usr/nec; then
18417    version_type=linux # correct to gnu/linux during the next big refactor
18418    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18419    soname_spec='$libname$shared_ext.$major'
18420    shlibpath_var=LD_LIBRARY_PATH
18421  fi
18422  ;;
18423
18424sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18425  version_type=sco
18426  need_lib_prefix=no
18427  need_version=no
18428  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18429  soname_spec='$libname$release$shared_ext$major'
18430  shlibpath_var=LD_LIBRARY_PATH
18431  shlibpath_overrides_runpath=yes
18432  hardcode_into_libs=yes
18433  if test yes = "$with_gnu_ld"; then
18434    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18435  else
18436    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18437    case $host_os in
18438      sco3.2v5*)
18439        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18440	;;
18441    esac
18442  fi
18443  sys_lib_dlsearch_path_spec='/usr/lib'
18444  ;;
18445
18446tpf*)
18447  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18448  version_type=linux # correct to gnu/linux during the next big refactor
18449  need_lib_prefix=no
18450  need_version=no
18451  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18452  shlibpath_var=LD_LIBRARY_PATH
18453  shlibpath_overrides_runpath=no
18454  hardcode_into_libs=yes
18455  ;;
18456
18457uts4*)
18458  version_type=linux # correct to gnu/linux during the next big refactor
18459  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18460  soname_spec='$libname$release$shared_ext$major'
18461  shlibpath_var=LD_LIBRARY_PATH
18462  ;;
18463
18464*)
18465  dynamic_linker=no
18466  ;;
18467esac
18468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18469printf "%s\n" "$dynamic_linker" >&6; }
18470test no = "$dynamic_linker" && can_build_shared=no
18471
18472variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18473if test yes = "$GCC"; then
18474  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18475fi
18476
18477if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18478  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18479fi
18480
18481if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18482  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18483fi
18484
18485# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18486configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18487
18488# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18489func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18490
18491# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18492configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18591printf %s "checking how to hardcode library paths into programs... " >&6; }
18592hardcode_action=
18593if test -n "$hardcode_libdir_flag_spec" ||
18594   test -n "$runpath_var" ||
18595   test yes = "$hardcode_automatic"; then
18596
18597  # We can hardcode non-existent directories.
18598  if test no != "$hardcode_direct" &&
18599     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18600     # have to relink, otherwise we might link with an installed library
18601     # when we should be linking with a yet-to-be-installed one
18602     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18603     test no != "$hardcode_minus_L"; then
18604    # Linking always hardcodes the temporary library directory.
18605    hardcode_action=relink
18606  else
18607    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18608    hardcode_action=immediate
18609  fi
18610else
18611  # We cannot hardcode anything, or else we can only hardcode existing
18612  # directories.
18613  hardcode_action=unsupported
18614fi
18615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18616printf "%s\n" "$hardcode_action" >&6; }
18617
18618if test relink = "$hardcode_action" ||
18619   test yes = "$inherit_rpath"; then
18620  # Fast installation is not supported
18621  enable_fast_install=no
18622elif test yes = "$shlibpath_overrides_runpath" ||
18623     test no = "$enable_shared"; then
18624  # Fast installation is not necessary
18625  enable_fast_install=needless
18626fi
18627
18628
18629
18630
18631
18632
18633  if test yes != "$enable_dlopen"; then
18634  enable_dlopen=unknown
18635  enable_dlopen_self=unknown
18636  enable_dlopen_self_static=unknown
18637else
18638  lt_cv_dlopen=no
18639  lt_cv_dlopen_libs=
18640
18641  case $host_os in
18642  beos*)
18643    lt_cv_dlopen=load_add_on
18644    lt_cv_dlopen_libs=
18645    lt_cv_dlopen_self=yes
18646    ;;
18647
18648  mingw* | pw32* | cegcc*)
18649    lt_cv_dlopen=LoadLibrary
18650    lt_cv_dlopen_libs=
18651    ;;
18652
18653  cygwin*)
18654    lt_cv_dlopen=dlopen
18655    lt_cv_dlopen_libs=
18656    ;;
18657
18658  darwin*)
18659    # if libdl is installed we need to link against it
18660    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18661printf %s "checking for dlopen in -ldl... " >&6; }
18662if test ${ac_cv_lib_dl_dlopen+y}
18663then :
18664  printf %s "(cached) " >&6
18665else $as_nop
18666  ac_check_lib_save_LIBS=$LIBS
18667LIBS="-ldl  $LIBS"
18668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669/* end confdefs.h.  */
18670
18671/* Override any GCC internal prototype to avoid an error.
18672   Use char because int might match the return type of a GCC
18673   builtin and then its argument prototype would still apply.  */
18674char dlopen ();
18675int
18676main (void)
18677{
18678return dlopen ();
18679  ;
18680  return 0;
18681}
18682_ACEOF
18683if ac_fn_c_try_link "$LINENO"
18684then :
18685  ac_cv_lib_dl_dlopen=yes
18686else $as_nop
18687  ac_cv_lib_dl_dlopen=no
18688fi
18689rm -f core conftest.err conftest.$ac_objext conftest.beam \
18690    conftest$ac_exeext conftest.$ac_ext
18691LIBS=$ac_check_lib_save_LIBS
18692fi
18693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18694printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18695if test "x$ac_cv_lib_dl_dlopen" = xyes
18696then :
18697  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18698else $as_nop
18699
18700    lt_cv_dlopen=dyld
18701    lt_cv_dlopen_libs=
18702    lt_cv_dlopen_self=yes
18703
18704fi
18705
18706    ;;
18707
18708  tpf*)
18709    # Don't try to run any link tests for TPF.  We know it's impossible
18710    # because TPF is a cross-compiler, and we know how we open DSOs.
18711    lt_cv_dlopen=dlopen
18712    lt_cv_dlopen_libs=
18713    lt_cv_dlopen_self=no
18714    ;;
18715
18716  *)
18717    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18718if test "x$ac_cv_func_shl_load" = xyes
18719then :
18720  lt_cv_dlopen=shl_load
18721else $as_nop
18722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18723printf %s "checking for shl_load in -ldld... " >&6; }
18724if test ${ac_cv_lib_dld_shl_load+y}
18725then :
18726  printf %s "(cached) " >&6
18727else $as_nop
18728  ac_check_lib_save_LIBS=$LIBS
18729LIBS="-ldld  $LIBS"
18730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731/* end confdefs.h.  */
18732
18733/* Override any GCC internal prototype to avoid an error.
18734   Use char because int might match the return type of a GCC
18735   builtin and then its argument prototype would still apply.  */
18736char shl_load ();
18737int
18738main (void)
18739{
18740return shl_load ();
18741  ;
18742  return 0;
18743}
18744_ACEOF
18745if ac_fn_c_try_link "$LINENO"
18746then :
18747  ac_cv_lib_dld_shl_load=yes
18748else $as_nop
18749  ac_cv_lib_dld_shl_load=no
18750fi
18751rm -f core conftest.err conftest.$ac_objext conftest.beam \
18752    conftest$ac_exeext conftest.$ac_ext
18753LIBS=$ac_check_lib_save_LIBS
18754fi
18755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18756printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18757if test "x$ac_cv_lib_dld_shl_load" = xyes
18758then :
18759  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18760else $as_nop
18761  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18762if test "x$ac_cv_func_dlopen" = xyes
18763then :
18764  lt_cv_dlopen=dlopen
18765else $as_nop
18766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18767printf %s "checking for dlopen in -ldl... " >&6; }
18768if test ${ac_cv_lib_dl_dlopen+y}
18769then :
18770  printf %s "(cached) " >&6
18771else $as_nop
18772  ac_check_lib_save_LIBS=$LIBS
18773LIBS="-ldl  $LIBS"
18774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18775/* end confdefs.h.  */
18776
18777/* Override any GCC internal prototype to avoid an error.
18778   Use char because int might match the return type of a GCC
18779   builtin and then its argument prototype would still apply.  */
18780char dlopen ();
18781int
18782main (void)
18783{
18784return dlopen ();
18785  ;
18786  return 0;
18787}
18788_ACEOF
18789if ac_fn_c_try_link "$LINENO"
18790then :
18791  ac_cv_lib_dl_dlopen=yes
18792else $as_nop
18793  ac_cv_lib_dl_dlopen=no
18794fi
18795rm -f core conftest.err conftest.$ac_objext conftest.beam \
18796    conftest$ac_exeext conftest.$ac_ext
18797LIBS=$ac_check_lib_save_LIBS
18798fi
18799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18800printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18801if test "x$ac_cv_lib_dl_dlopen" = xyes
18802then :
18803  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18804else $as_nop
18805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18806printf %s "checking for dlopen in -lsvld... " >&6; }
18807if test ${ac_cv_lib_svld_dlopen+y}
18808then :
18809  printf %s "(cached) " >&6
18810else $as_nop
18811  ac_check_lib_save_LIBS=$LIBS
18812LIBS="-lsvld  $LIBS"
18813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814/* end confdefs.h.  */
18815
18816/* Override any GCC internal prototype to avoid an error.
18817   Use char because int might match the return type of a GCC
18818   builtin and then its argument prototype would still apply.  */
18819char dlopen ();
18820int
18821main (void)
18822{
18823return dlopen ();
18824  ;
18825  return 0;
18826}
18827_ACEOF
18828if ac_fn_c_try_link "$LINENO"
18829then :
18830  ac_cv_lib_svld_dlopen=yes
18831else $as_nop
18832  ac_cv_lib_svld_dlopen=no
18833fi
18834rm -f core conftest.err conftest.$ac_objext conftest.beam \
18835    conftest$ac_exeext conftest.$ac_ext
18836LIBS=$ac_check_lib_save_LIBS
18837fi
18838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18839printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18840if test "x$ac_cv_lib_svld_dlopen" = xyes
18841then :
18842  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18843else $as_nop
18844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18845printf %s "checking for dld_link in -ldld... " >&6; }
18846if test ${ac_cv_lib_dld_dld_link+y}
18847then :
18848  printf %s "(cached) " >&6
18849else $as_nop
18850  ac_check_lib_save_LIBS=$LIBS
18851LIBS="-ldld  $LIBS"
18852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853/* end confdefs.h.  */
18854
18855/* Override any GCC internal prototype to avoid an error.
18856   Use char because int might match the return type of a GCC
18857   builtin and then its argument prototype would still apply.  */
18858char dld_link ();
18859int
18860main (void)
18861{
18862return dld_link ();
18863  ;
18864  return 0;
18865}
18866_ACEOF
18867if ac_fn_c_try_link "$LINENO"
18868then :
18869  ac_cv_lib_dld_dld_link=yes
18870else $as_nop
18871  ac_cv_lib_dld_dld_link=no
18872fi
18873rm -f core conftest.err conftest.$ac_objext conftest.beam \
18874    conftest$ac_exeext conftest.$ac_ext
18875LIBS=$ac_check_lib_save_LIBS
18876fi
18877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18878printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18879if test "x$ac_cv_lib_dld_dld_link" = xyes
18880then :
18881  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18882fi
18883
18884
18885fi
18886
18887
18888fi
18889
18890
18891fi
18892
18893
18894fi
18895
18896
18897fi
18898
18899    ;;
18900  esac
18901
18902  if test no = "$lt_cv_dlopen"; then
18903    enable_dlopen=no
18904  else
18905    enable_dlopen=yes
18906  fi
18907
18908  case $lt_cv_dlopen in
18909  dlopen)
18910    save_CPPFLAGS=$CPPFLAGS
18911    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18912
18913    save_LDFLAGS=$LDFLAGS
18914    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18915
18916    save_LIBS=$LIBS
18917    LIBS="$lt_cv_dlopen_libs $LIBS"
18918
18919    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18920printf %s "checking whether a program can dlopen itself... " >&6; }
18921if test ${lt_cv_dlopen_self+y}
18922then :
18923  printf %s "(cached) " >&6
18924else $as_nop
18925  	  if test yes = "$cross_compiling"; then :
18926  lt_cv_dlopen_self=cross
18927else
18928  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18929  lt_status=$lt_dlunknown
18930  cat > conftest.$ac_ext <<_LT_EOF
18931#line $LINENO "configure"
18932#include "confdefs.h"
18933
18934#if HAVE_DLFCN_H
18935#include <dlfcn.h>
18936#endif
18937
18938#include <stdio.h>
18939
18940#ifdef RTLD_GLOBAL
18941#  define LT_DLGLOBAL		RTLD_GLOBAL
18942#else
18943#  ifdef DL_GLOBAL
18944#    define LT_DLGLOBAL		DL_GLOBAL
18945#  else
18946#    define LT_DLGLOBAL		0
18947#  endif
18948#endif
18949
18950/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18951   find out it does not work in some platform. */
18952#ifndef LT_DLLAZY_OR_NOW
18953#  ifdef RTLD_LAZY
18954#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18955#  else
18956#    ifdef DL_LAZY
18957#      define LT_DLLAZY_OR_NOW		DL_LAZY
18958#    else
18959#      ifdef RTLD_NOW
18960#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18961#      else
18962#        ifdef DL_NOW
18963#          define LT_DLLAZY_OR_NOW	DL_NOW
18964#        else
18965#          define LT_DLLAZY_OR_NOW	0
18966#        endif
18967#      endif
18968#    endif
18969#  endif
18970#endif
18971
18972/* When -fvisibility=hidden is used, assume the code has been annotated
18973   correspondingly for the symbols needed.  */
18974#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18975int fnord () __attribute__((visibility("default")));
18976#endif
18977
18978int fnord () { return 42; }
18979int main ()
18980{
18981  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18982  int status = $lt_dlunknown;
18983
18984  if (self)
18985    {
18986      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18987      else
18988        {
18989	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18990          else puts (dlerror ());
18991	}
18992      /* dlclose (self); */
18993    }
18994  else
18995    puts (dlerror ());
18996
18997  return status;
18998}
18999_LT_EOF
19000  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19001  (eval $ac_link) 2>&5
19002  ac_status=$?
19003  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19004  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19005    (./conftest; exit; ) >&5 2>/dev/null
19006    lt_status=$?
19007    case x$lt_status in
19008      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19009      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19010      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19011    esac
19012  else :
19013    # compilation failed
19014    lt_cv_dlopen_self=no
19015  fi
19016fi
19017rm -fr conftest*
19018
19019
19020fi
19021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19022printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19023
19024    if test yes = "$lt_cv_dlopen_self"; then
19025      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19026      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19027printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19028if test ${lt_cv_dlopen_self_static+y}
19029then :
19030  printf %s "(cached) " >&6
19031else $as_nop
19032  	  if test yes = "$cross_compiling"; then :
19033  lt_cv_dlopen_self_static=cross
19034else
19035  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19036  lt_status=$lt_dlunknown
19037  cat > conftest.$ac_ext <<_LT_EOF
19038#line $LINENO "configure"
19039#include "confdefs.h"
19040
19041#if HAVE_DLFCN_H
19042#include <dlfcn.h>
19043#endif
19044
19045#include <stdio.h>
19046
19047#ifdef RTLD_GLOBAL
19048#  define LT_DLGLOBAL		RTLD_GLOBAL
19049#else
19050#  ifdef DL_GLOBAL
19051#    define LT_DLGLOBAL		DL_GLOBAL
19052#  else
19053#    define LT_DLGLOBAL		0
19054#  endif
19055#endif
19056
19057/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19058   find out it does not work in some platform. */
19059#ifndef LT_DLLAZY_OR_NOW
19060#  ifdef RTLD_LAZY
19061#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19062#  else
19063#    ifdef DL_LAZY
19064#      define LT_DLLAZY_OR_NOW		DL_LAZY
19065#    else
19066#      ifdef RTLD_NOW
19067#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19068#      else
19069#        ifdef DL_NOW
19070#          define LT_DLLAZY_OR_NOW	DL_NOW
19071#        else
19072#          define LT_DLLAZY_OR_NOW	0
19073#        endif
19074#      endif
19075#    endif
19076#  endif
19077#endif
19078
19079/* When -fvisibility=hidden is used, assume the code has been annotated
19080   correspondingly for the symbols needed.  */
19081#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19082int fnord () __attribute__((visibility("default")));
19083#endif
19084
19085int fnord () { return 42; }
19086int main ()
19087{
19088  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19089  int status = $lt_dlunknown;
19090
19091  if (self)
19092    {
19093      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19094      else
19095        {
19096	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19097          else puts (dlerror ());
19098	}
19099      /* dlclose (self); */
19100    }
19101  else
19102    puts (dlerror ());
19103
19104  return status;
19105}
19106_LT_EOF
19107  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19108  (eval $ac_link) 2>&5
19109  ac_status=$?
19110  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19111  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19112    (./conftest; exit; ) >&5 2>/dev/null
19113    lt_status=$?
19114    case x$lt_status in
19115      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19116      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19117      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19118    esac
19119  else :
19120    # compilation failed
19121    lt_cv_dlopen_self_static=no
19122  fi
19123fi
19124rm -fr conftest*
19125
19126
19127fi
19128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19129printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19130    fi
19131
19132    CPPFLAGS=$save_CPPFLAGS
19133    LDFLAGS=$save_LDFLAGS
19134    LIBS=$save_LIBS
19135    ;;
19136  esac
19137
19138  case $lt_cv_dlopen_self in
19139  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19140  *) enable_dlopen_self=unknown ;;
19141  esac
19142
19143  case $lt_cv_dlopen_self_static in
19144  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19145  *) enable_dlopen_self_static=unknown ;;
19146  esac
19147fi
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165striplib=
19166old_striplib=
19167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19168printf %s "checking whether stripping libraries is possible... " >&6; }
19169if test -z "$STRIP"; then
19170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19171printf "%s\n" "no" >&6; }
19172else
19173  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19174    old_striplib="$STRIP --strip-debug"
19175    striplib="$STRIP --strip-unneeded"
19176    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19177printf "%s\n" "yes" >&6; }
19178  else
19179    case $host_os in
19180    darwin*)
19181      # FIXME - insert some real tests, host_os isn't really good enough
19182      striplib="$STRIP -x"
19183      old_striplib="$STRIP -S"
19184      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19185printf "%s\n" "yes" >&6; }
19186      ;;
19187    freebsd*)
19188      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19189        old_striplib="$STRIP --strip-debug"
19190        striplib="$STRIP --strip-unneeded"
19191        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19192printf "%s\n" "yes" >&6; }
19193      else
19194        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19195printf "%s\n" "no" >&6; }
19196      fi
19197      ;;
19198    *)
19199      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19200printf "%s\n" "no" >&6; }
19201      ;;
19202    esac
19203  fi
19204fi
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217  # Report what library types will actually be built
19218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19219printf %s "checking if libtool supports shared libraries... " >&6; }
19220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19221printf "%s\n" "$can_build_shared" >&6; }
19222
19223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19224printf %s "checking whether to build shared libraries... " >&6; }
19225  test no = "$can_build_shared" && enable_shared=no
19226
19227  # On AIX, shared libraries and static libraries use the same namespace, and
19228  # are all built from PIC.
19229  case $host_os in
19230  aix3*)
19231    test yes = "$enable_shared" && enable_static=no
19232    if test -n "$RANLIB"; then
19233      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19234      postinstall_cmds='$RANLIB $lib'
19235    fi
19236    ;;
19237
19238  aix[4-9]*)
19239    if test ia64 != "$host_cpu"; then
19240      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19241      yes,aix,yes) ;;			# shared object as lib.so file only
19242      yes,svr4,*) ;;			# shared object as lib.so archive member only
19243      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19244      esac
19245    fi
19246    ;;
19247  esac
19248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19249printf "%s\n" "$enable_shared" >&6; }
19250
19251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19252printf %s "checking whether to build static libraries... " >&6; }
19253  # Make sure either enable_shared or enable_static is yes.
19254  test yes = "$enable_shared" || enable_static=yes
19255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19256printf "%s\n" "$enable_static" >&6; }
19257
19258
19259
19260
19261fi
19262ac_ext=c
19263ac_cpp='$CPP $CPPFLAGS'
19264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267
19268CC=$lt_save_CC
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284        ac_config_commands="$ac_config_commands libtool"
19285
19286
19287
19288
19289# Only expand once:
19290
19291
19292
19293
19294
19295# Define a configure option for an alternate module directory
19296
19297# Check whether --with-xorg-module-dir was given.
19298if test ${with_xorg_module_dir+y}
19299then :
19300  withval=$with_xorg_module_dir; moduledir="$withval"
19301else $as_nop
19302  moduledir="$libdir/xorg/modules"
19303fi
19304
19305
19306# Store the list of server defined optional extensions in REQUIRED_MODULES
19307
19308
19309	SAVE_CFLAGS="$CFLAGS"
19310	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19311	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312/* end confdefs.h.  */
19313
19314#include "xorg-server.h"
19315#if !defined RANDR
19316#error RANDR not defined
19317#endif
19318
19319int
19320main (void)
19321{
19322
19323  ;
19324  return 0;
19325}
19326_ACEOF
19327if ac_fn_c_try_compile "$LINENO"
19328then :
19329  _EXT_CHECK=yes
19330else $as_nop
19331  _EXT_CHECK=no
19332fi
19333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19334	CFLAGS="$SAVE_CFLAGS"
19335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19336printf %s "checking if RANDR is defined... " >&6; }
19337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19338printf "%s\n" "$_EXT_CHECK" >&6; }
19339	if test "$_EXT_CHECK" != no; then
19340		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19341	fi
19342
19343
19344
19345	SAVE_CFLAGS="$CFLAGS"
19346	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19347	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348/* end confdefs.h.  */
19349
19350#include "xorg-server.h"
19351#if !defined RENDER
19352#error RENDER not defined
19353#endif
19354
19355int
19356main (void)
19357{
19358
19359  ;
19360  return 0;
19361}
19362_ACEOF
19363if ac_fn_c_try_compile "$LINENO"
19364then :
19365  _EXT_CHECK=yes
19366else $as_nop
19367  _EXT_CHECK=no
19368fi
19369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19370	CFLAGS="$SAVE_CFLAGS"
19371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19372printf %s "checking if RENDER is defined... " >&6; }
19373	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19374printf "%s\n" "$_EXT_CHECK" >&6; }
19375	if test "$_EXT_CHECK" != no; then
19376		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19377	fi
19378
19379
19380
19381	SAVE_CFLAGS="$CFLAGS"
19382	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19383	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384/* end confdefs.h.  */
19385
19386#include "xorg-server.h"
19387#if !defined XV
19388#error XV not defined
19389#endif
19390
19391int
19392main (void)
19393{
19394
19395  ;
19396  return 0;
19397}
19398_ACEOF
19399if ac_fn_c_try_compile "$LINENO"
19400then :
19401  _EXT_CHECK=yes
19402else $as_nop
19403  _EXT_CHECK=no
19404fi
19405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19406	CFLAGS="$SAVE_CFLAGS"
19407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19408printf %s "checking if XV is defined... " >&6; }
19409	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19410printf "%s\n" "$_EXT_CHECK" >&6; }
19411	if test "$_EXT_CHECK" != no; then
19412		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19413	fi
19414
19415
19416
19417	SAVE_CFLAGS="$CFLAGS"
19418	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19419	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420/* end confdefs.h.  */
19421
19422#include "xorg-server.h"
19423#if !defined DPMSExtension
19424#error DPMSExtension not defined
19425#endif
19426
19427int
19428main (void)
19429{
19430
19431  ;
19432  return 0;
19433}
19434_ACEOF
19435if ac_fn_c_try_compile "$LINENO"
19436then :
19437  _EXT_CHECK=yes
19438else $as_nop
19439  _EXT_CHECK=no
19440fi
19441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19442	CFLAGS="$SAVE_CFLAGS"
19443	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19444printf %s "checking if DPMSExtension is defined... " >&6; }
19445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19446printf "%s\n" "$_EXT_CHECK" >&6; }
19447	if test "$_EXT_CHECK" != no; then
19448		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19449	fi
19450
19451
19452# Obtain compiler/linker options for the driver dependencies
19453
19454pkg_failed=no
19455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19456printf %s "checking for XORG... " >&6; }
19457
19458if test -n "$XORG_CFLAGS"; then
19459    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19460 elif test -n "$PKG_CONFIG"; then
19461    if test -n "$PKG_CONFIG" && \
19462    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto \$REQUIRED_MODULES\""; } >&5
19463  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES") 2>&5
19464  ac_status=$?
19465  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19466  test $ac_status = 0; }; then
19467  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES" 2>/dev/null`
19468		      test "x$?" != "x0" && pkg_failed=yes
19469else
19470  pkg_failed=yes
19471fi
19472 else
19473    pkg_failed=untried
19474fi
19475if test -n "$XORG_LIBS"; then
19476    pkg_cv_XORG_LIBS="$XORG_LIBS"
19477 elif test -n "$PKG_CONFIG"; then
19478    if test -n "$PKG_CONFIG" && \
19479    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto \$REQUIRED_MODULES\""; } >&5
19480  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES") 2>&5
19481  ac_status=$?
19482  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19483  test $ac_status = 0; }; then
19484  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES" 2>/dev/null`
19485		      test "x$?" != "x0" && pkg_failed=yes
19486else
19487  pkg_failed=yes
19488fi
19489 else
19490    pkg_failed=untried
19491fi
19492
19493
19494
19495if test $pkg_failed = yes; then
19496   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19497printf "%s\n" "no" >&6; }
19498
19499if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19500        _pkg_short_errors_supported=yes
19501else
19502        _pkg_short_errors_supported=no
19503fi
19504        if test $_pkg_short_errors_supported = yes; then
19505	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES" 2>&1`
19506        else
19507	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES" 2>&1`
19508        fi
19509	# Put the nasty error message in config.log where it belongs
19510	echo "$XORG_PKG_ERRORS" >&5
19511
19512	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES) were not met:
19513
19514$XORG_PKG_ERRORS
19515
19516Consider adjusting the PKG_CONFIG_PATH environment variable if you
19517installed software in a non-standard prefix.
19518
19519Alternatively, you may set the environment variables XORG_CFLAGS
19520and XORG_LIBS to avoid the need to call pkg-config.
19521See the pkg-config man page for more details." "$LINENO" 5
19522elif test $pkg_failed = untried; then
19523     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524printf "%s\n" "no" >&6; }
19525	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19526printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19527as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19528is in your PATH or set the PKG_CONFIG environment variable to the full
19529path to pkg-config.
19530
19531Alternatively, you may set the environment variables XORG_CFLAGS
19532and XORG_LIBS to avoid the need to call pkg-config.
19533See the pkg-config man page for more details.
19534
19535To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19536See \`config.log' for more details" "$LINENO" 5; }
19537else
19538	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19539	XORG_LIBS=$pkg_cv_XORG_LIBS
19540        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541printf "%s\n" "yes" >&6; }
19542
19543fi
19544
19545# Checks for libraries.
19546SAVE_CPPFLAGS="$CPPFLAGS"
19547CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19548ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19549" "$ac_c_undeclared_builtin_options" "CFLAGS"
19550if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19551then :
19552  XSERVER_LIBPCIACCESS=yes
19553else $as_nop
19554  XSERVER_LIBPCIACCESS=no
19555fi
19556CPPFLAGS="$SAVE_CPPFLAGS"
19557
19558if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19559
19560pkg_failed=no
19561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19562printf %s "checking for PCIACCESS... " >&6; }
19563
19564if test -n "$PCIACCESS_CFLAGS"; then
19565    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19566 elif test -n "$PKG_CONFIG"; then
19567    if test -n "$PKG_CONFIG" && \
19568    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19569  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19570  ac_status=$?
19571  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19572  test $ac_status = 0; }; then
19573  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19574		      test "x$?" != "x0" && pkg_failed=yes
19575else
19576  pkg_failed=yes
19577fi
19578 else
19579    pkg_failed=untried
19580fi
19581if test -n "$PCIACCESS_LIBS"; then
19582    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19583 elif test -n "$PKG_CONFIG"; then
19584    if test -n "$PKG_CONFIG" && \
19585    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19586  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19587  ac_status=$?
19588  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19589  test $ac_status = 0; }; then
19590  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19591		      test "x$?" != "x0" && pkg_failed=yes
19592else
19593  pkg_failed=yes
19594fi
19595 else
19596    pkg_failed=untried
19597fi
19598
19599
19600
19601if test $pkg_failed = yes; then
19602   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19603printf "%s\n" "no" >&6; }
19604
19605if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19606        _pkg_short_errors_supported=yes
19607else
19608        _pkg_short_errors_supported=no
19609fi
19610        if test $_pkg_short_errors_supported = yes; then
19611	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19612        else
19613	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19614        fi
19615	# Put the nasty error message in config.log where it belongs
19616	echo "$PCIACCESS_PKG_ERRORS" >&5
19617
19618	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19619
19620$PCIACCESS_PKG_ERRORS
19621
19622Consider adjusting the PKG_CONFIG_PATH environment variable if you
19623installed software in a non-standard prefix.
19624
19625Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19626and PCIACCESS_LIBS to avoid the need to call pkg-config.
19627See the pkg-config man page for more details." "$LINENO" 5
19628elif test $pkg_failed = untried; then
19629     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19630printf "%s\n" "no" >&6; }
19631	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19632printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19633as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19634is in your PATH or set the PKG_CONFIG environment variable to the full
19635path to pkg-config.
19636
19637Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19638and PCIACCESS_LIBS to avoid the need to call pkg-config.
19639See the pkg-config man page for more details.
19640
19641To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19642See \`config.log' for more details" "$LINENO" 5; }
19643else
19644	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19645	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19646        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19647printf "%s\n" "yes" >&6; }
19648
19649fi
19650    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19651fi
19652 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19653  XSERVER_LIBPCIACCESS_TRUE=
19654  XSERVER_LIBPCIACCESS_FALSE='#'
19655else
19656  XSERVER_LIBPCIACCESS_TRUE='#'
19657  XSERVER_LIBPCIACCESS_FALSE=
19658fi
19659
19660
19661# Check whether --enable-xaa was given.
19662if test ${enable_xaa+y}
19663then :
19664  enableval=$enable_xaa; XAA="$enableval"
19665else $as_nop
19666  XAA=auto
19667fi
19668
19669if test "x$XAA" != xno; then
19670        save_CFLAGS=$CFLAGS
19671        save_CPPFLAGS=$CPPFLAGS
19672        CFLAGS=$XORG_CFLAGS
19673        CPPFLAGS="$XORG_CFLAGS"
19674               for ac_header in xaa.h
19675do :
19676  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19677if test "x$ac_cv_header_xaa_h" = xyes
19678then :
19679  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19680 XAA=yes
19681else $as_nop
19682  XAA=no
19683fi
19684
19685done
19686        CFLAGS=$save_CFLAGS
19687        CPPFLAGS=$save_CPPFLAGS
19688fi
19689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19690printf %s "checking whether to include XAA support... " >&6; }
19691 if test "x$XAA" = xyes; then
19692  XAA_TRUE=
19693  XAA_FALSE='#'
19694else
19695  XAA_TRUE='#'
19696  XAA_FALSE=
19697fi
19698
19699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19700printf "%s\n" "$XAA" >&6; }
19701
19702
19703
19704
19705DRIVER_NAME=nv
19706
19707
19708ac_config_files="$ac_config_files Makefile src/Makefile"
19709
19710cat >confcache <<\_ACEOF
19711# This file is a shell script that caches the results of configure
19712# tests run on this system so they can be shared between configure
19713# scripts and configure runs, see configure's option --config-cache.
19714# It is not useful on other systems.  If it contains results you don't
19715# want to keep, you may remove or edit it.
19716#
19717# config.status only pays attention to the cache file if you give it
19718# the --recheck option to rerun configure.
19719#
19720# `ac_cv_env_foo' variables (set or unset) will be overridden when
19721# loading this file, other *unset* `ac_cv_foo' will be assigned the
19722# following values.
19723
19724_ACEOF
19725
19726# The following way of writing the cache mishandles newlines in values,
19727# but we know of no workaround that is simple, portable, and efficient.
19728# So, we kill variables containing newlines.
19729# Ultrix sh set writes to stderr and can't be redirected directly,
19730# and sets the high bit in the cache file unless we assign to the vars.
19731(
19732  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19733    eval ac_val=\$$ac_var
19734    case $ac_val in #(
19735    *${as_nl}*)
19736      case $ac_var in #(
19737      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19738printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19739      esac
19740      case $ac_var in #(
19741      _ | IFS | as_nl) ;; #(
19742      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19743      *) { eval $ac_var=; unset $ac_var;} ;;
19744      esac ;;
19745    esac
19746  done
19747
19748  (set) 2>&1 |
19749    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19750    *${as_nl}ac_space=\ *)
19751      # `set' does not quote correctly, so add quotes: double-quote
19752      # substitution turns \\\\ into \\, and sed turns \\ into \.
19753      sed -n \
19754	"s/'/'\\\\''/g;
19755	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19756      ;; #(
19757    *)
19758      # `set' quotes correctly as required by POSIX, so do not add quotes.
19759      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19760      ;;
19761    esac |
19762    sort
19763) |
19764  sed '
19765     /^ac_cv_env_/b end
19766     t clear
19767     :clear
19768     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19769     t end
19770     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19771     :end' >>confcache
19772if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19773  if test -w "$cache_file"; then
19774    if test "x$cache_file" != "x/dev/null"; then
19775      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19776printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19777      if test ! -f "$cache_file" || test -h "$cache_file"; then
19778	cat confcache >"$cache_file"
19779      else
19780        case $cache_file in #(
19781        */* | ?:*)
19782	  mv -f confcache "$cache_file"$$ &&
19783	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19784        *)
19785	  mv -f confcache "$cache_file" ;;
19786	esac
19787      fi
19788    fi
19789  else
19790    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19791printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19792  fi
19793fi
19794rm -f confcache
19795
19796test "x$prefix" = xNONE && prefix=$ac_default_prefix
19797# Let make expand exec_prefix.
19798test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19799
19800DEFS=-DHAVE_CONFIG_H
19801
19802ac_libobjs=
19803ac_ltlibobjs=
19804U=
19805for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19806  # 1. Remove the extension, and $U if already installed.
19807  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19808  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19809  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19810  #    will be set to the directory where LIBOBJS objects are built.
19811  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19812  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19813done
19814LIBOBJS=$ac_libobjs
19815
19816LTLIBOBJS=$ac_ltlibobjs
19817
19818
19819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19820printf %s "checking that generated files are newer than configure... " >&6; }
19821   if test -n "$am_sleep_pid"; then
19822     # Hide warnings about reused PIDs.
19823     wait $am_sleep_pid 2>/dev/null
19824   fi
19825   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19826printf "%s\n" "done" >&6; }
19827 if test -n "$EXEEXT"; then
19828  am__EXEEXT_TRUE=
19829  am__EXEEXT_FALSE='#'
19830else
19831  am__EXEEXT_TRUE='#'
19832  am__EXEEXT_FALSE=
19833fi
19834
19835if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19836  as_fn_error $? "conditional \"AMDEP\" was never defined.
19837Usually this means the macro was only invoked conditionally." "$LINENO" 5
19838fi
19839if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19840  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19841Usually this means the macro was only invoked conditionally." "$LINENO" 5
19842fi
19843if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19844  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19845Usually this means the macro was only invoked conditionally." "$LINENO" 5
19846fi
19847if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19848  as_fn_error $? "conditional \"XAA\" was never defined.
19849Usually this means the macro was only invoked conditionally." "$LINENO" 5
19850fi
19851
19852: "${CONFIG_STATUS=./config.status}"
19853ac_write_fail=0
19854ac_clean_files_save=$ac_clean_files
19855ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19857printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19858as_write_fail=0
19859cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19860#! $SHELL
19861# Generated by $as_me.
19862# Run this file to recreate the current configuration.
19863# Compiler output produced by configure, useful for debugging
19864# configure, is in config.log if it exists.
19865
19866debug=false
19867ac_cs_recheck=false
19868ac_cs_silent=false
19869
19870SHELL=\${CONFIG_SHELL-$SHELL}
19871export SHELL
19872_ASEOF
19873cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19874## -------------------- ##
19875## M4sh Initialization. ##
19876## -------------------- ##
19877
19878# Be more Bourne compatible
19879DUALCASE=1; export DUALCASE # for MKS sh
19880as_nop=:
19881if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19882then :
19883  emulate sh
19884  NULLCMD=:
19885  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19886  # is contrary to our usage.  Disable this feature.
19887  alias -g '${1+"$@"}'='"$@"'
19888  setopt NO_GLOB_SUBST
19889else $as_nop
19890  case `(set -o) 2>/dev/null` in #(
19891  *posix*) :
19892    set -o posix ;; #(
19893  *) :
19894     ;;
19895esac
19896fi
19897
19898
19899
19900# Reset variables that may have inherited troublesome values from
19901# the environment.
19902
19903# IFS needs to be set, to space, tab, and newline, in precisely that order.
19904# (If _AS_PATH_WALK were called with IFS unset, it would have the
19905# side effect of setting IFS to empty, thus disabling word splitting.)
19906# Quoting is to prevent editors from complaining about space-tab.
19907as_nl='
19908'
19909export as_nl
19910IFS=" ""	$as_nl"
19911
19912PS1='$ '
19913PS2='> '
19914PS4='+ '
19915
19916# Ensure predictable behavior from utilities with locale-dependent output.
19917LC_ALL=C
19918export LC_ALL
19919LANGUAGE=C
19920export LANGUAGE
19921
19922# We cannot yet rely on "unset" to work, but we need these variables
19923# to be unset--not just set to an empty or harmless value--now, to
19924# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19925# also avoids known problems related to "unset" and subshell syntax
19926# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19927for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19928do eval test \${$as_var+y} \
19929  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19930done
19931
19932# Ensure that fds 0, 1, and 2 are open.
19933if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19934if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19935if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19936
19937# The user is always right.
19938if ${PATH_SEPARATOR+false} :; then
19939  PATH_SEPARATOR=:
19940  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19941    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19942      PATH_SEPARATOR=';'
19943  }
19944fi
19945
19946
19947# Find who we are.  Look in the path if we contain no directory separator.
19948as_myself=
19949case $0 in #((
19950  *[\\/]* ) as_myself=$0 ;;
19951  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19952for as_dir in $PATH
19953do
19954  IFS=$as_save_IFS
19955  case $as_dir in #(((
19956    '') as_dir=./ ;;
19957    */) ;;
19958    *) as_dir=$as_dir/ ;;
19959  esac
19960    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19961  done
19962IFS=$as_save_IFS
19963
19964     ;;
19965esac
19966# We did not find ourselves, most probably we were run as `sh COMMAND'
19967# in which case we are not to be found in the path.
19968if test "x$as_myself" = x; then
19969  as_myself=$0
19970fi
19971if test ! -f "$as_myself"; then
19972  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19973  exit 1
19974fi
19975
19976
19977
19978# as_fn_error STATUS ERROR [LINENO LOG_FD]
19979# ----------------------------------------
19980# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19981# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19982# script with STATUS, using 1 if that was 0.
19983as_fn_error ()
19984{
19985  as_status=$1; test $as_status -eq 0 && as_status=1
19986  if test "$4"; then
19987    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19988    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19989  fi
19990  printf "%s\n" "$as_me: error: $2" >&2
19991  as_fn_exit $as_status
19992} # as_fn_error
19993
19994
19995
19996# as_fn_set_status STATUS
19997# -----------------------
19998# Set $? to STATUS, without forking.
19999as_fn_set_status ()
20000{
20001  return $1
20002} # as_fn_set_status
20003
20004# as_fn_exit STATUS
20005# -----------------
20006# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20007as_fn_exit ()
20008{
20009  set +e
20010  as_fn_set_status $1
20011  exit $1
20012} # as_fn_exit
20013
20014# as_fn_unset VAR
20015# ---------------
20016# Portably unset VAR.
20017as_fn_unset ()
20018{
20019  { eval $1=; unset $1;}
20020}
20021as_unset=as_fn_unset
20022
20023# as_fn_append VAR VALUE
20024# ----------------------
20025# Append the text in VALUE to the end of the definition contained in VAR. Take
20026# advantage of any shell optimizations that allow amortized linear growth over
20027# repeated appends, instead of the typical quadratic growth present in naive
20028# implementations.
20029if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20030then :
20031  eval 'as_fn_append ()
20032  {
20033    eval $1+=\$2
20034  }'
20035else $as_nop
20036  as_fn_append ()
20037  {
20038    eval $1=\$$1\$2
20039  }
20040fi # as_fn_append
20041
20042# as_fn_arith ARG...
20043# ------------------
20044# Perform arithmetic evaluation on the ARGs, and store the result in the
20045# global $as_val. Take advantage of shells that can avoid forks. The arguments
20046# must be portable across $(()) and expr.
20047if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20048then :
20049  eval 'as_fn_arith ()
20050  {
20051    as_val=$(( $* ))
20052  }'
20053else $as_nop
20054  as_fn_arith ()
20055  {
20056    as_val=`expr "$@" || test $? -eq 1`
20057  }
20058fi # as_fn_arith
20059
20060
20061if expr a : '\(a\)' >/dev/null 2>&1 &&
20062   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20063  as_expr=expr
20064else
20065  as_expr=false
20066fi
20067
20068if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20069  as_basename=basename
20070else
20071  as_basename=false
20072fi
20073
20074if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20075  as_dirname=dirname
20076else
20077  as_dirname=false
20078fi
20079
20080as_me=`$as_basename -- "$0" ||
20081$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20082	 X"$0" : 'X\(//\)$' \| \
20083	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20084printf "%s\n" X/"$0" |
20085    sed '/^.*\/\([^/][^/]*\)\/*$/{
20086	    s//\1/
20087	    q
20088	  }
20089	  /^X\/\(\/\/\)$/{
20090	    s//\1/
20091	    q
20092	  }
20093	  /^X\/\(\/\).*/{
20094	    s//\1/
20095	    q
20096	  }
20097	  s/.*/./; q'`
20098
20099# Avoid depending upon Character Ranges.
20100as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20101as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20102as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20103as_cr_digits='0123456789'
20104as_cr_alnum=$as_cr_Letters$as_cr_digits
20105
20106
20107# Determine whether it's possible to make 'echo' print without a newline.
20108# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20109# for compatibility with existing Makefiles.
20110ECHO_C= ECHO_N= ECHO_T=
20111case `echo -n x` in #(((((
20112-n*)
20113  case `echo 'xy\c'` in
20114  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20115  xy)  ECHO_C='\c';;
20116  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20117       ECHO_T='	';;
20118  esac;;
20119*)
20120  ECHO_N='-n';;
20121esac
20122
20123# For backward compatibility with old third-party macros, we provide
20124# the shell variables $as_echo and $as_echo_n.  New code should use
20125# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20126as_echo='printf %s\n'
20127as_echo_n='printf %s'
20128
20129rm -f conf$$ conf$$.exe conf$$.file
20130if test -d conf$$.dir; then
20131  rm -f conf$$.dir/conf$$.file
20132else
20133  rm -f conf$$.dir
20134  mkdir conf$$.dir 2>/dev/null
20135fi
20136if (echo >conf$$.file) 2>/dev/null; then
20137  if ln -s conf$$.file conf$$ 2>/dev/null; then
20138    as_ln_s='ln -s'
20139    # ... but there are two gotchas:
20140    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20141    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20142    # In both cases, we have to default to `cp -pR'.
20143    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20144      as_ln_s='cp -pR'
20145  elif ln conf$$.file conf$$ 2>/dev/null; then
20146    as_ln_s=ln
20147  else
20148    as_ln_s='cp -pR'
20149  fi
20150else
20151  as_ln_s='cp -pR'
20152fi
20153rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20154rmdir conf$$.dir 2>/dev/null
20155
20156
20157# as_fn_mkdir_p
20158# -------------
20159# Create "$as_dir" as a directory, including parents if necessary.
20160as_fn_mkdir_p ()
20161{
20162
20163  case $as_dir in #(
20164  -*) as_dir=./$as_dir;;
20165  esac
20166  test -d "$as_dir" || eval $as_mkdir_p || {
20167    as_dirs=
20168    while :; do
20169      case $as_dir in #(
20170      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20171      *) as_qdir=$as_dir;;
20172      esac
20173      as_dirs="'$as_qdir' $as_dirs"
20174      as_dir=`$as_dirname -- "$as_dir" ||
20175$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20176	 X"$as_dir" : 'X\(//\)[^/]' \| \
20177	 X"$as_dir" : 'X\(//\)$' \| \
20178	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20179printf "%s\n" X"$as_dir" |
20180    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20181	    s//\1/
20182	    q
20183	  }
20184	  /^X\(\/\/\)[^/].*/{
20185	    s//\1/
20186	    q
20187	  }
20188	  /^X\(\/\/\)$/{
20189	    s//\1/
20190	    q
20191	  }
20192	  /^X\(\/\).*/{
20193	    s//\1/
20194	    q
20195	  }
20196	  s/.*/./; q'`
20197      test -d "$as_dir" && break
20198    done
20199    test -z "$as_dirs" || eval "mkdir $as_dirs"
20200  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20201
20202
20203} # as_fn_mkdir_p
20204if mkdir -p . 2>/dev/null; then
20205  as_mkdir_p='mkdir -p "$as_dir"'
20206else
20207  test -d ./-p && rmdir ./-p
20208  as_mkdir_p=false
20209fi
20210
20211
20212# as_fn_executable_p FILE
20213# -----------------------
20214# Test if FILE is an executable regular file.
20215as_fn_executable_p ()
20216{
20217  test -f "$1" && test -x "$1"
20218} # as_fn_executable_p
20219as_test_x='test -x'
20220as_executable_p=as_fn_executable_p
20221
20222# Sed expression to map a string onto a valid CPP name.
20223as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20224
20225# Sed expression to map a string onto a valid variable name.
20226as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20227
20228
20229exec 6>&1
20230## ----------------------------------- ##
20231## Main body of $CONFIG_STATUS script. ##
20232## ----------------------------------- ##
20233_ASEOF
20234test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20235
20236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20237# Save the log message, to keep $0 and so on meaningful, and to
20238# report actual input values of CONFIG_FILES etc. instead of their
20239# values after options handling.
20240ac_log="
20241This file was extended by xf86-video-ast $as_me 1.1.6, which was
20242generated by GNU Autoconf 2.71.  Invocation command line was
20243
20244  CONFIG_FILES    = $CONFIG_FILES
20245  CONFIG_HEADERS  = $CONFIG_HEADERS
20246  CONFIG_LINKS    = $CONFIG_LINKS
20247  CONFIG_COMMANDS = $CONFIG_COMMANDS
20248  $ $0 $@
20249
20250on `(hostname || uname -n) 2>/dev/null | sed 1q`
20251"
20252
20253_ACEOF
20254
20255case $ac_config_files in *"
20256"*) set x $ac_config_files; shift; ac_config_files=$*;;
20257esac
20258
20259case $ac_config_headers in *"
20260"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20261esac
20262
20263
20264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20265# Files that config.status was made for.
20266config_files="$ac_config_files"
20267config_headers="$ac_config_headers"
20268config_commands="$ac_config_commands"
20269
20270_ACEOF
20271
20272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20273ac_cs_usage="\
20274\`$as_me' instantiates files and other configuration actions
20275from templates according to the current configuration.  Unless the files
20276and actions are specified as TAGs, all are instantiated by default.
20277
20278Usage: $0 [OPTION]... [TAG]...
20279
20280  -h, --help       print this help, then exit
20281  -V, --version    print version number and configuration settings, then exit
20282      --config     print configuration, then exit
20283  -q, --quiet, --silent
20284                   do not print progress messages
20285  -d, --debug      don't remove temporary files
20286      --recheck    update $as_me by reconfiguring in the same conditions
20287      --file=FILE[:TEMPLATE]
20288                   instantiate the configuration file FILE
20289      --header=FILE[:TEMPLATE]
20290                   instantiate the configuration header FILE
20291
20292Configuration files:
20293$config_files
20294
20295Configuration headers:
20296$config_headers
20297
20298Configuration commands:
20299$config_commands
20300
20301Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/issues>."
20302
20303_ACEOF
20304ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20305ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20307ac_cs_config='$ac_cs_config_escaped'
20308ac_cs_version="\\
20309xf86-video-ast config.status 1.1.6
20310configured by $0, generated by GNU Autoconf 2.71,
20311  with options \\"\$ac_cs_config\\"
20312
20313Copyright (C) 2021 Free Software Foundation, Inc.
20314This config.status script is free software; the Free Software Foundation
20315gives unlimited permission to copy, distribute and modify it."
20316
20317ac_pwd='$ac_pwd'
20318srcdir='$srcdir'
20319INSTALL='$INSTALL'
20320MKDIR_P='$MKDIR_P'
20321AWK='$AWK'
20322test -n "\$AWK" || AWK=awk
20323_ACEOF
20324
20325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20326# The default lists apply if the user does not specify any file.
20327ac_need_defaults=:
20328while test $# != 0
20329do
20330  case $1 in
20331  --*=?*)
20332    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20333    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20334    ac_shift=:
20335    ;;
20336  --*=)
20337    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20338    ac_optarg=
20339    ac_shift=:
20340    ;;
20341  *)
20342    ac_option=$1
20343    ac_optarg=$2
20344    ac_shift=shift
20345    ;;
20346  esac
20347
20348  case $ac_option in
20349  # Handling of the options.
20350  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20351    ac_cs_recheck=: ;;
20352  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20353    printf "%s\n" "$ac_cs_version"; exit ;;
20354  --config | --confi | --conf | --con | --co | --c )
20355    printf "%s\n" "$ac_cs_config"; exit ;;
20356  --debug | --debu | --deb | --de | --d | -d )
20357    debug=: ;;
20358  --file | --fil | --fi | --f )
20359    $ac_shift
20360    case $ac_optarg in
20361    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20362    '') as_fn_error $? "missing file argument" ;;
20363    esac
20364    as_fn_append CONFIG_FILES " '$ac_optarg'"
20365    ac_need_defaults=false;;
20366  --header | --heade | --head | --hea )
20367    $ac_shift
20368    case $ac_optarg in
20369    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20370    esac
20371    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20372    ac_need_defaults=false;;
20373  --he | --h)
20374    # Conflict between --help and --header
20375    as_fn_error $? "ambiguous option: \`$1'
20376Try \`$0 --help' for more information.";;
20377  --help | --hel | -h )
20378    printf "%s\n" "$ac_cs_usage"; exit ;;
20379  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20380  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20381    ac_cs_silent=: ;;
20382
20383  # This is an error.
20384  -*) as_fn_error $? "unrecognized option: \`$1'
20385Try \`$0 --help' for more information." ;;
20386
20387  *) as_fn_append ac_config_targets " $1"
20388     ac_need_defaults=false ;;
20389
20390  esac
20391  shift
20392done
20393
20394ac_configure_extra_args=
20395
20396if $ac_cs_silent; then
20397  exec 6>/dev/null
20398  ac_configure_extra_args="$ac_configure_extra_args --silent"
20399fi
20400
20401_ACEOF
20402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20403if \$ac_cs_recheck; then
20404  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20405  shift
20406  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20407  CONFIG_SHELL='$SHELL'
20408  export CONFIG_SHELL
20409  exec "\$@"
20410fi
20411
20412_ACEOF
20413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20414exec 5>>config.log
20415{
20416  echo
20417  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20418## Running $as_me. ##
20419_ASBOX
20420  printf "%s\n" "$ac_log"
20421} >&5
20422
20423_ACEOF
20424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20425#
20426# INIT-COMMANDS
20427#
20428AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20429
20430
20431# The HP-UX ksh and POSIX shell print the target directory to stdout
20432# if CDPATH is set.
20433(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20434
20435sed_quote_subst='$sed_quote_subst'
20436double_quote_subst='$double_quote_subst'
20437delay_variable_subst='$delay_variable_subst'
20438enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20439macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20440macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20441enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20442pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20443enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20444shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20445SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20446ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20447PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20448host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20449host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20450host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20451build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20452build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20453build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20454SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20455Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20456GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20457EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20458FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20459LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20460NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20461LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20462max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20463ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20464exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20465lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20466lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20467lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20468lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20469lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20470reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20471reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20472FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20473OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20474deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20475file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20476file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20477want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20478DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20479sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20480AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20481lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20482AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20483archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20484STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20485RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20486old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20487old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20488old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20489lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20490CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20491CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20492compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20493GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20494lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20495lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20496lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20497lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20498lt_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"`'
20499lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20500nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20501lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20502lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20503objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20504MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20505lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20506lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20507lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20508lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20509lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20510need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20511MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20512DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20513NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20514LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20515OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20516OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20517libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20518shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20519extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20520archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20521enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20522export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20523whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20524compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20525old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20526old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20527archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20528archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20529module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20530module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20531with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20532allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20533no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20534hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20535hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20536hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20537hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20538hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20539hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20540hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20541inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20542link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20543always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20544export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20545exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20546include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20547prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20548postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20549file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20550variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20551need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20552need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20553version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20554runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20555shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20556shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20557libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20558library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20559soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20560install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20561postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20562postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20563finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20564finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20565hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20566sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20567configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20568configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20569hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20570enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20571enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20572enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20573old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20574striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20575
20576LTCC='$LTCC'
20577LTCFLAGS='$LTCFLAGS'
20578compiler='$compiler_DEFAULT'
20579
20580# A function that is used when there is no print builtin or printf.
20581func_fallback_echo ()
20582{
20583  eval 'cat <<_LTECHO_EOF
20584\$1
20585_LTECHO_EOF'
20586}
20587
20588# Quote evaled strings.
20589for var in SHELL \
20590ECHO \
20591PATH_SEPARATOR \
20592SED \
20593GREP \
20594EGREP \
20595FGREP \
20596LD \
20597NM \
20598LN_S \
20599lt_SP2NL \
20600lt_NL2SP \
20601reload_flag \
20602FILECMD \
20603OBJDUMP \
20604deplibs_check_method \
20605file_magic_cmd \
20606file_magic_glob \
20607want_nocaseglob \
20608DLLTOOL \
20609sharedlib_from_linklib_cmd \
20610AR \
20611archiver_list_spec \
20612STRIP \
20613RANLIB \
20614CC \
20615CFLAGS \
20616compiler \
20617lt_cv_sys_global_symbol_pipe \
20618lt_cv_sys_global_symbol_to_cdecl \
20619lt_cv_sys_global_symbol_to_import \
20620lt_cv_sys_global_symbol_to_c_name_address \
20621lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20622lt_cv_nm_interface \
20623nm_file_list_spec \
20624lt_cv_truncate_bin \
20625lt_prog_compiler_no_builtin_flag \
20626lt_prog_compiler_pic \
20627lt_prog_compiler_wl \
20628lt_prog_compiler_static \
20629lt_cv_prog_compiler_c_o \
20630need_locks \
20631MANIFEST_TOOL \
20632DSYMUTIL \
20633NMEDIT \
20634LIPO \
20635OTOOL \
20636OTOOL64 \
20637shrext_cmds \
20638export_dynamic_flag_spec \
20639whole_archive_flag_spec \
20640compiler_needs_object \
20641with_gnu_ld \
20642allow_undefined_flag \
20643no_undefined_flag \
20644hardcode_libdir_flag_spec \
20645hardcode_libdir_separator \
20646exclude_expsyms \
20647include_expsyms \
20648file_list_spec \
20649variables_saved_for_relink \
20650libname_spec \
20651library_names_spec \
20652soname_spec \
20653install_override_mode \
20654finish_eval \
20655old_striplib \
20656striplib; do
20657    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20658    *[\\\\\\\`\\"\\\$]*)
20659      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20660      ;;
20661    *)
20662      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20663      ;;
20664    esac
20665done
20666
20667# Double-quote double-evaled strings.
20668for var in reload_cmds \
20669old_postinstall_cmds \
20670old_postuninstall_cmds \
20671old_archive_cmds \
20672extract_expsyms_cmds \
20673old_archive_from_new_cmds \
20674old_archive_from_expsyms_cmds \
20675archive_cmds \
20676archive_expsym_cmds \
20677module_cmds \
20678module_expsym_cmds \
20679export_symbols_cmds \
20680prelink_cmds \
20681postlink_cmds \
20682postinstall_cmds \
20683postuninstall_cmds \
20684finish_cmds \
20685sys_lib_search_path_spec \
20686configure_time_dlsearch_path \
20687configure_time_lt_sys_library_path; do
20688    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20689    *[\\\\\\\`\\"\\\$]*)
20690      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20691      ;;
20692    *)
20693      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20694      ;;
20695    esac
20696done
20697
20698ac_aux_dir='$ac_aux_dir'
20699
20700# See if we are running on zsh, and set the options that allow our
20701# commands through without removal of \ escapes INIT.
20702if test -n "\${ZSH_VERSION+set}"; then
20703   setopt NO_GLOB_SUBST
20704fi
20705
20706
20707    PACKAGE='$PACKAGE'
20708    VERSION='$VERSION'
20709    RM='$RM'
20710    ofile='$ofile'
20711
20712
20713
20714
20715_ACEOF
20716
20717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20718
20719# Handling of arguments.
20720for ac_config_target in $ac_config_targets
20721do
20722  case $ac_config_target in
20723    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20724    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20725    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20726    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20727    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20728
20729  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20730  esac
20731done
20732
20733
20734# If the user did not use the arguments to specify the items to instantiate,
20735# then the envvar interface is used.  Set only those that are not.
20736# We use the long form for the default assignment because of an extremely
20737# bizarre bug on SunOS 4.1.3.
20738if $ac_need_defaults; then
20739  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20740  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20741  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20742fi
20743
20744# Have a temporary directory for convenience.  Make it in the build tree
20745# simply because there is no reason against having it here, and in addition,
20746# creating and moving files from /tmp can sometimes cause problems.
20747# Hook for its removal unless debugging.
20748# Note that there is a small window in which the directory will not be cleaned:
20749# after its creation but before its name has been assigned to `$tmp'.
20750$debug ||
20751{
20752  tmp= ac_tmp=
20753  trap 'exit_status=$?
20754  : "${ac_tmp:=$tmp}"
20755  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20756' 0
20757  trap 'as_fn_exit 1' 1 2 13 15
20758}
20759# Create a (secure) tmp directory for tmp files.
20760
20761{
20762  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20763  test -d "$tmp"
20764}  ||
20765{
20766  tmp=./conf$$-$RANDOM
20767  (umask 077 && mkdir "$tmp")
20768} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20769ac_tmp=$tmp
20770
20771# Set up the scripts for CONFIG_FILES section.
20772# No need to generate them if there are no CONFIG_FILES.
20773# This happens for instance with `./config.status config.h'.
20774if test -n "$CONFIG_FILES"; then
20775
20776
20777ac_cr=`echo X | tr X '\015'`
20778# On cygwin, bash can eat \r inside `` if the user requested igncr.
20779# But we know of no other shell where ac_cr would be empty at this
20780# point, so we can use a bashism as a fallback.
20781if test "x$ac_cr" = x; then
20782  eval ac_cr=\$\'\\r\'
20783fi
20784ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20785if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20786  ac_cs_awk_cr='\\r'
20787else
20788  ac_cs_awk_cr=$ac_cr
20789fi
20790
20791echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20792_ACEOF
20793
20794
20795{
20796  echo "cat >conf$$subs.awk <<_ACEOF" &&
20797  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20798  echo "_ACEOF"
20799} >conf$$subs.sh ||
20800  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20801ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20802ac_delim='%!_!# '
20803for ac_last_try in false false false false false :; do
20804  . ./conf$$subs.sh ||
20805    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20806
20807  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20808  if test $ac_delim_n = $ac_delim_num; then
20809    break
20810  elif $ac_last_try; then
20811    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20812  else
20813    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20814  fi
20815done
20816rm -f conf$$subs.sh
20817
20818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20819cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20820_ACEOF
20821sed -n '
20822h
20823s/^/S["/; s/!.*/"]=/
20824p
20825g
20826s/^[^!]*!//
20827:repl
20828t repl
20829s/'"$ac_delim"'$//
20830t delim
20831:nl
20832h
20833s/\(.\{148\}\)..*/\1/
20834t more1
20835s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20836p
20837n
20838b repl
20839:more1
20840s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20841p
20842g
20843s/.\{148\}//
20844t nl
20845:delim
20846h
20847s/\(.\{148\}\)..*/\1/
20848t more2
20849s/["\\]/\\&/g; s/^/"/; s/$/"/
20850p
20851b
20852:more2
20853s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20854p
20855g
20856s/.\{148\}//
20857t delim
20858' <conf$$subs.awk | sed '
20859/^[^""]/{
20860  N
20861  s/\n//
20862}
20863' >>$CONFIG_STATUS || ac_write_fail=1
20864rm -f conf$$subs.awk
20865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20866_ACAWK
20867cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20868  for (key in S) S_is_set[key] = 1
20869  FS = ""
20870
20871}
20872{
20873  line = $ 0
20874  nfields = split(line, field, "@")
20875  substed = 0
20876  len = length(field[1])
20877  for (i = 2; i < nfields; i++) {
20878    key = field[i]
20879    keylen = length(key)
20880    if (S_is_set[key]) {
20881      value = S[key]
20882      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20883      len += length(value) + length(field[++i])
20884      substed = 1
20885    } else
20886      len += 1 + keylen
20887  }
20888
20889  print line
20890}
20891
20892_ACAWK
20893_ACEOF
20894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20895if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20896  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20897else
20898  cat
20899fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20900  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20901_ACEOF
20902
20903# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20904# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20905# trailing colons and then remove the whole line if VPATH becomes empty
20906# (actually we leave an empty line to preserve line numbers).
20907if test "x$srcdir" = x.; then
20908  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20909h
20910s///
20911s/^/:/
20912s/[	 ]*$/:/
20913s/:\$(srcdir):/:/g
20914s/:\${srcdir}:/:/g
20915s/:@srcdir@:/:/g
20916s/^:*//
20917s/:*$//
20918x
20919s/\(=[	 ]*\).*/\1/
20920G
20921s/\n//
20922s/^[^=]*=[	 ]*$//
20923}'
20924fi
20925
20926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20927fi # test -n "$CONFIG_FILES"
20928
20929# Set up the scripts for CONFIG_HEADERS section.
20930# No need to generate them if there are no CONFIG_HEADERS.
20931# This happens for instance with `./config.status Makefile'.
20932if test -n "$CONFIG_HEADERS"; then
20933cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20934BEGIN {
20935_ACEOF
20936
20937# Transform confdefs.h into an awk script `defines.awk', embedded as
20938# here-document in config.status, that substitutes the proper values into
20939# config.h.in to produce config.h.
20940
20941# Create a delimiter string that does not exist in confdefs.h, to ease
20942# handling of long lines.
20943ac_delim='%!_!# '
20944for ac_last_try in false false :; do
20945  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20946  if test -z "$ac_tt"; then
20947    break
20948  elif $ac_last_try; then
20949    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20950  else
20951    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20952  fi
20953done
20954
20955# For the awk script, D is an array of macro values keyed by name,
20956# likewise P contains macro parameters if any.  Preserve backslash
20957# newline sequences.
20958
20959ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20960sed -n '
20961s/.\{148\}/&'"$ac_delim"'/g
20962t rset
20963:rset
20964s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20965t def
20966d
20967:def
20968s/\\$//
20969t bsnl
20970s/["\\]/\\&/g
20971s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20972D["\1"]=" \3"/p
20973s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20974d
20975:bsnl
20976s/["\\]/\\&/g
20977s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20978D["\1"]=" \3\\\\\\n"\\/p
20979t cont
20980s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20981t cont
20982d
20983:cont
20984n
20985s/.\{148\}/&'"$ac_delim"'/g
20986t clear
20987:clear
20988s/\\$//
20989t bsnlc
20990s/["\\]/\\&/g; s/^/"/; s/$/"/p
20991d
20992:bsnlc
20993s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20994b cont
20995' <confdefs.h | sed '
20996s/'"$ac_delim"'/"\\\
20997"/g' >>$CONFIG_STATUS || ac_write_fail=1
20998
20999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21000  for (key in D) D_is_set[key] = 1
21001  FS = ""
21002}
21003/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21004  line = \$ 0
21005  split(line, arg, " ")
21006  if (arg[1] == "#") {
21007    defundef = arg[2]
21008    mac1 = arg[3]
21009  } else {
21010    defundef = substr(arg[1], 2)
21011    mac1 = arg[2]
21012  }
21013  split(mac1, mac2, "(") #)
21014  macro = mac2[1]
21015  prefix = substr(line, 1, index(line, defundef) - 1)
21016  if (D_is_set[macro]) {
21017    # Preserve the white space surrounding the "#".
21018    print prefix "define", macro P[macro] D[macro]
21019    next
21020  } else {
21021    # Replace #undef with comments.  This is necessary, for example,
21022    # in the case of _POSIX_SOURCE, which is predefined and required
21023    # on some systems where configure will not decide to define it.
21024    if (defundef == "undef") {
21025      print "/*", prefix defundef, macro, "*/"
21026      next
21027    }
21028  }
21029}
21030{ print }
21031_ACAWK
21032_ACEOF
21033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21034  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21035fi # test -n "$CONFIG_HEADERS"
21036
21037
21038eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21039shift
21040for ac_tag
21041do
21042  case $ac_tag in
21043  :[FHLC]) ac_mode=$ac_tag; continue;;
21044  esac
21045  case $ac_mode$ac_tag in
21046  :[FHL]*:*);;
21047  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21048  :[FH]-) ac_tag=-:-;;
21049  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21050  esac
21051  ac_save_IFS=$IFS
21052  IFS=:
21053  set x $ac_tag
21054  IFS=$ac_save_IFS
21055  shift
21056  ac_file=$1
21057  shift
21058
21059  case $ac_mode in
21060  :L) ac_source=$1;;
21061  :[FH])
21062    ac_file_inputs=
21063    for ac_f
21064    do
21065      case $ac_f in
21066      -) ac_f="$ac_tmp/stdin";;
21067      *) # Look for the file first in the build tree, then in the source tree
21068	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21069	 # because $ac_f cannot contain `:'.
21070	 test -f "$ac_f" ||
21071	   case $ac_f in
21072	   [\\/$]*) false;;
21073	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21074	   esac ||
21075	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21076      esac
21077      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21078      as_fn_append ac_file_inputs " '$ac_f'"
21079    done
21080
21081    # Let's still pretend it is `configure' which instantiates (i.e., don't
21082    # use $as_me), people would be surprised to read:
21083    #    /* config.h.  Generated by config.status.  */
21084    configure_input='Generated from '`
21085	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21086	`' by configure.'
21087    if test x"$ac_file" != x-; then
21088      configure_input="$ac_file.  $configure_input"
21089      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21090printf "%s\n" "$as_me: creating $ac_file" >&6;}
21091    fi
21092    # Neutralize special characters interpreted by sed in replacement strings.
21093    case $configure_input in #(
21094    *\&* | *\|* | *\\* )
21095       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21096       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21097    *) ac_sed_conf_input=$configure_input;;
21098    esac
21099
21100    case $ac_tag in
21101    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21102      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21103    esac
21104    ;;
21105  esac
21106
21107  ac_dir=`$as_dirname -- "$ac_file" ||
21108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21109	 X"$ac_file" : 'X\(//\)[^/]' \| \
21110	 X"$ac_file" : 'X\(//\)$' \| \
21111	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21112printf "%s\n" X"$ac_file" |
21113    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21114	    s//\1/
21115	    q
21116	  }
21117	  /^X\(\/\/\)[^/].*/{
21118	    s//\1/
21119	    q
21120	  }
21121	  /^X\(\/\/\)$/{
21122	    s//\1/
21123	    q
21124	  }
21125	  /^X\(\/\).*/{
21126	    s//\1/
21127	    q
21128	  }
21129	  s/.*/./; q'`
21130  as_dir="$ac_dir"; as_fn_mkdir_p
21131  ac_builddir=.
21132
21133case "$ac_dir" in
21134.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21135*)
21136  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21137  # A ".." for each directory in $ac_dir_suffix.
21138  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21139  case $ac_top_builddir_sub in
21140  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21141  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21142  esac ;;
21143esac
21144ac_abs_top_builddir=$ac_pwd
21145ac_abs_builddir=$ac_pwd$ac_dir_suffix
21146# for backward compatibility:
21147ac_top_builddir=$ac_top_build_prefix
21148
21149case $srcdir in
21150  .)  # We are building in place.
21151    ac_srcdir=.
21152    ac_top_srcdir=$ac_top_builddir_sub
21153    ac_abs_top_srcdir=$ac_pwd ;;
21154  [\\/]* | ?:[\\/]* )  # Absolute name.
21155    ac_srcdir=$srcdir$ac_dir_suffix;
21156    ac_top_srcdir=$srcdir
21157    ac_abs_top_srcdir=$srcdir ;;
21158  *) # Relative name.
21159    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21160    ac_top_srcdir=$ac_top_build_prefix$srcdir
21161    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21162esac
21163ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21164
21165
21166  case $ac_mode in
21167  :F)
21168  #
21169  # CONFIG_FILE
21170  #
21171
21172  case $INSTALL in
21173  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21174  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21175  esac
21176  ac_MKDIR_P=$MKDIR_P
21177  case $MKDIR_P in
21178  [\\/$]* | ?:[\\/]* ) ;;
21179  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21180  esac
21181_ACEOF
21182
21183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21184# If the template does not know about datarootdir, expand it.
21185# FIXME: This hack should be removed a few years after 2.60.
21186ac_datarootdir_hack=; ac_datarootdir_seen=
21187ac_sed_dataroot='
21188/datarootdir/ {
21189  p
21190  q
21191}
21192/@datadir@/p
21193/@docdir@/p
21194/@infodir@/p
21195/@localedir@/p
21196/@mandir@/p'
21197case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21198*datarootdir*) ac_datarootdir_seen=yes;;
21199*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21201printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21202_ACEOF
21203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21204  ac_datarootdir_hack='
21205  s&@datadir@&$datadir&g
21206  s&@docdir@&$docdir&g
21207  s&@infodir@&$infodir&g
21208  s&@localedir@&$localedir&g
21209  s&@mandir@&$mandir&g
21210  s&\\\${datarootdir}&$datarootdir&g' ;;
21211esac
21212_ACEOF
21213
21214# Neutralize VPATH when `$srcdir' = `.'.
21215# Shell code in configure.ac might set extrasub.
21216# FIXME: do we really want to maintain this feature?
21217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21218ac_sed_extra="$ac_vpsub
21219$extrasub
21220_ACEOF
21221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21222:t
21223/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21224s|@configure_input@|$ac_sed_conf_input|;t t
21225s&@top_builddir@&$ac_top_builddir_sub&;t t
21226s&@top_build_prefix@&$ac_top_build_prefix&;t t
21227s&@srcdir@&$ac_srcdir&;t t
21228s&@abs_srcdir@&$ac_abs_srcdir&;t t
21229s&@top_srcdir@&$ac_top_srcdir&;t t
21230s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21231s&@builddir@&$ac_builddir&;t t
21232s&@abs_builddir@&$ac_abs_builddir&;t t
21233s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21234s&@INSTALL@&$ac_INSTALL&;t t
21235s&@MKDIR_P@&$ac_MKDIR_P&;t t
21236$ac_datarootdir_hack
21237"
21238eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21239  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21240
21241test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21242  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21243  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21244      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21246which seems to be undefined.  Please make sure it is defined" >&5
21247printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21248which seems to be undefined.  Please make sure it is defined" >&2;}
21249
21250  rm -f "$ac_tmp/stdin"
21251  case $ac_file in
21252  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21253  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21254  esac \
21255  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21256 ;;
21257  :H)
21258  #
21259  # CONFIG_HEADER
21260  #
21261  if test x"$ac_file" != x-; then
21262    {
21263      printf "%s\n" "/* $configure_input  */" >&1 \
21264      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21265    } >"$ac_tmp/config.h" \
21266      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21267    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21268      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21269printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21270    else
21271      rm -f "$ac_file"
21272      mv "$ac_tmp/config.h" "$ac_file" \
21273	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21274    fi
21275  else
21276    printf "%s\n" "/* $configure_input  */" >&1 \
21277      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21278      || as_fn_error $? "could not create -" "$LINENO" 5
21279  fi
21280# Compute "$ac_file"'s index in $config_headers.
21281_am_arg="$ac_file"
21282_am_stamp_count=1
21283for _am_header in $config_headers :; do
21284  case $_am_header in
21285    $_am_arg | $_am_arg:* )
21286      break ;;
21287    * )
21288      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21289  esac
21290done
21291echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21292$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21293	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21294	 X"$_am_arg" : 'X\(//\)$' \| \
21295	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21296printf "%s\n" X"$_am_arg" |
21297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21298	    s//\1/
21299	    q
21300	  }
21301	  /^X\(\/\/\)[^/].*/{
21302	    s//\1/
21303	    q
21304	  }
21305	  /^X\(\/\/\)$/{
21306	    s//\1/
21307	    q
21308	  }
21309	  /^X\(\/\).*/{
21310	    s//\1/
21311	    q
21312	  }
21313	  s/.*/./; q'`/stamp-h$_am_stamp_count
21314 ;;
21315
21316  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21317printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21318 ;;
21319  esac
21320
21321
21322  case $ac_file$ac_mode in
21323    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21324  # Older Autoconf quotes --file arguments for eval, but not when files
21325  # are listed without --file.  Let's play safe and only enable the eval
21326  # if we detect the quoting.
21327  # TODO: see whether this extra hack can be removed once we start
21328  # requiring Autoconf 2.70 or later.
21329  case $CONFIG_FILES in #(
21330  *\'*) :
21331    eval set x "$CONFIG_FILES" ;; #(
21332  *) :
21333    set x $CONFIG_FILES ;; #(
21334  *) :
21335     ;;
21336esac
21337  shift
21338  # Used to flag and report bootstrapping failures.
21339  am_rc=0
21340  for am_mf
21341  do
21342    # Strip MF so we end up with the name of the file.
21343    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21344    # Check whether this is an Automake generated Makefile which includes
21345    # dependency-tracking related rules and includes.
21346    # Grep'ing the whole file directly is not great: AIX grep has a line
21347    # limit of 2048, but all sed's we know have understand at least 4000.
21348    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21349      || continue
21350    am_dirpart=`$as_dirname -- "$am_mf" ||
21351$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21352	 X"$am_mf" : 'X\(//\)[^/]' \| \
21353	 X"$am_mf" : 'X\(//\)$' \| \
21354	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21355printf "%s\n" X"$am_mf" |
21356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21357	    s//\1/
21358	    q
21359	  }
21360	  /^X\(\/\/\)[^/].*/{
21361	    s//\1/
21362	    q
21363	  }
21364	  /^X\(\/\/\)$/{
21365	    s//\1/
21366	    q
21367	  }
21368	  /^X\(\/\).*/{
21369	    s//\1/
21370	    q
21371	  }
21372	  s/.*/./; q'`
21373    am_filepart=`$as_basename -- "$am_mf" ||
21374$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21375	 X"$am_mf" : 'X\(//\)$' \| \
21376	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21377printf "%s\n" X/"$am_mf" |
21378    sed '/^.*\/\([^/][^/]*\)\/*$/{
21379	    s//\1/
21380	    q
21381	  }
21382	  /^X\/\(\/\/\)$/{
21383	    s//\1/
21384	    q
21385	  }
21386	  /^X\/\(\/\).*/{
21387	    s//\1/
21388	    q
21389	  }
21390	  s/.*/./; q'`
21391    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21392      && sed -e '/# am--include-marker/d' "$am_filepart" \
21393        | $MAKE -f - am--depfiles" >&5
21394   (cd "$am_dirpart" \
21395      && sed -e '/# am--include-marker/d' "$am_filepart" \
21396        | $MAKE -f - am--depfiles) >&5 2>&5
21397   ac_status=$?
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } || am_rc=$?
21400  done
21401  if test $am_rc -ne 0; then
21402    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21403printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21404as_fn_error $? "Something went wrong bootstrapping makefile fragments
21405    for automatic dependency tracking.  If GNU make was not used, consider
21406    re-running the configure script with MAKE=\"gmake\" (or whatever is
21407    necessary).  You can also try re-running configure with the
21408    '--disable-dependency-tracking' option to at least be able to build
21409    the package (albeit without support for automatic dependency tracking).
21410See \`config.log' for more details" "$LINENO" 5; }
21411  fi
21412  { am_dirpart=; unset am_dirpart;}
21413  { am_filepart=; unset am_filepart;}
21414  { am_mf=; unset am_mf;}
21415  { am_rc=; unset am_rc;}
21416  rm -f conftest-deps.mk
21417}
21418 ;;
21419    "libtool":C)
21420
21421    # See if we are running on zsh, and set the options that allow our
21422    # commands through without removal of \ escapes.
21423    if test -n "${ZSH_VERSION+set}"; then
21424      setopt NO_GLOB_SUBST
21425    fi
21426
21427    cfgfile=${ofile}T
21428    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21429    $RM "$cfgfile"
21430
21431    cat <<_LT_EOF >> "$cfgfile"
21432#! $SHELL
21433# Generated automatically by $as_me ($PACKAGE) $VERSION
21434# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21435# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21436
21437# Provide generalized library-building support services.
21438# Written by Gordon Matzigkeit, 1996
21439
21440# Copyright (C) 2014 Free Software Foundation, Inc.
21441# This is free software; see the source for copying conditions.  There is NO
21442# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21443
21444# GNU Libtool is free software; you can redistribute it and/or modify
21445# it under the terms of the GNU General Public License as published by
21446# the Free Software Foundation; either version 2 of of the License, or
21447# (at your option) any later version.
21448#
21449# As a special exception to the GNU General Public License, if you
21450# distribute this file as part of a program or library that is built
21451# using GNU Libtool, you may include this file under the  same
21452# distribution terms that you use for the rest of that program.
21453#
21454# GNU Libtool is distributed in the hope that it will be useful, but
21455# WITHOUT ANY WARRANTY; without even the implied warranty of
21456# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21457# GNU General Public License for more details.
21458#
21459# You should have received a copy of the GNU General Public License
21460# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21461
21462
21463# The names of the tagged configurations supported by this script.
21464available_tags=''
21465
21466# Configured defaults for sys_lib_dlsearch_path munging.
21467: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21468
21469# ### BEGIN LIBTOOL CONFIG
21470
21471# Whether or not to build static libraries.
21472build_old_libs=$enable_static
21473
21474# Which release of libtool.m4 was used?
21475macro_version=$macro_version
21476macro_revision=$macro_revision
21477
21478# Whether or not to build shared libraries.
21479build_libtool_libs=$enable_shared
21480
21481# What type of objects to build.
21482pic_mode=$pic_mode
21483
21484# Whether or not to optimize for fast installation.
21485fast_install=$enable_fast_install
21486
21487# Shared archive member basename,for filename based shared library versioning on AIX.
21488shared_archive_member_spec=$shared_archive_member_spec
21489
21490# Shell to use when invoking shell scripts.
21491SHELL=$lt_SHELL
21492
21493# An echo program that protects backslashes.
21494ECHO=$lt_ECHO
21495
21496# The PATH separator for the build system.
21497PATH_SEPARATOR=$lt_PATH_SEPARATOR
21498
21499# The host system.
21500host_alias=$host_alias
21501host=$host
21502host_os=$host_os
21503
21504# The build system.
21505build_alias=$build_alias
21506build=$build
21507build_os=$build_os
21508
21509# A sed program that does not truncate output.
21510SED=$lt_SED
21511
21512# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21513Xsed="\$SED -e 1s/^X//"
21514
21515# A grep program that handles long lines.
21516GREP=$lt_GREP
21517
21518# An ERE matcher.
21519EGREP=$lt_EGREP
21520
21521# A literal string matcher.
21522FGREP=$lt_FGREP
21523
21524# A BSD- or MS-compatible name lister.
21525NM=$lt_NM
21526
21527# Whether we need soft or hard links.
21528LN_S=$lt_LN_S
21529
21530# What is the maximum length of a command?
21531max_cmd_len=$max_cmd_len
21532
21533# Object file suffix (normally "o").
21534objext=$ac_objext
21535
21536# Executable file suffix (normally "").
21537exeext=$exeext
21538
21539# whether the shell understands "unset".
21540lt_unset=$lt_unset
21541
21542# turn spaces into newlines.
21543SP2NL=$lt_lt_SP2NL
21544
21545# turn newlines into spaces.
21546NL2SP=$lt_lt_NL2SP
21547
21548# convert \$build file names to \$host format.
21549to_host_file_cmd=$lt_cv_to_host_file_cmd
21550
21551# convert \$build files to toolchain format.
21552to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21553
21554# A file(cmd) program that detects file types.
21555FILECMD=$lt_FILECMD
21556
21557# An object symbol dumper.
21558OBJDUMP=$lt_OBJDUMP
21559
21560# Method to check whether dependent libraries are shared objects.
21561deplibs_check_method=$lt_deplibs_check_method
21562
21563# Command to use when deplibs_check_method = "file_magic".
21564file_magic_cmd=$lt_file_magic_cmd
21565
21566# How to find potential files when deplibs_check_method = "file_magic".
21567file_magic_glob=$lt_file_magic_glob
21568
21569# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21570want_nocaseglob=$lt_want_nocaseglob
21571
21572# DLL creation program.
21573DLLTOOL=$lt_DLLTOOL
21574
21575# Command to associate shared and link libraries.
21576sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21577
21578# The archiver.
21579AR=$lt_AR
21580
21581# Flags to create an archive (by configure).
21582lt_ar_flags=$lt_ar_flags
21583
21584# Flags to create an archive.
21585AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21586
21587# How to feed a file listing to the archiver.
21588archiver_list_spec=$lt_archiver_list_spec
21589
21590# A symbol stripping program.
21591STRIP=$lt_STRIP
21592
21593# Commands used to install an old-style archive.
21594RANLIB=$lt_RANLIB
21595old_postinstall_cmds=$lt_old_postinstall_cmds
21596old_postuninstall_cmds=$lt_old_postuninstall_cmds
21597
21598# Whether to use a lock for old archive extraction.
21599lock_old_archive_extraction=$lock_old_archive_extraction
21600
21601# A C compiler.
21602LTCC=$lt_CC
21603
21604# LTCC compiler flags.
21605LTCFLAGS=$lt_CFLAGS
21606
21607# Take the output of nm and produce a listing of raw symbols and C names.
21608global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21609
21610# Transform the output of nm in a proper C declaration.
21611global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21612
21613# Transform the output of nm into a list of symbols to manually relocate.
21614global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21615
21616# Transform the output of nm in a C name address pair.
21617global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21618
21619# Transform the output of nm in a C name address pair when lib prefix is needed.
21620global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21621
21622# The name lister interface.
21623nm_interface=$lt_lt_cv_nm_interface
21624
21625# Specify filename containing input files for \$NM.
21626nm_file_list_spec=$lt_nm_file_list_spec
21627
21628# The root where to search for dependent libraries,and where our libraries should be installed.
21629lt_sysroot=$lt_sysroot
21630
21631# Command to truncate a binary pipe.
21632lt_truncate_bin=$lt_lt_cv_truncate_bin
21633
21634# The name of the directory that contains temporary libtool files.
21635objdir=$objdir
21636
21637# Used to examine libraries when file_magic_cmd begins with "file".
21638MAGIC_CMD=$MAGIC_CMD
21639
21640# Must we lock files when doing compilation?
21641need_locks=$lt_need_locks
21642
21643# Manifest tool.
21644MANIFEST_TOOL=$lt_MANIFEST_TOOL
21645
21646# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21647DSYMUTIL=$lt_DSYMUTIL
21648
21649# Tool to change global to local symbols on Mac OS X.
21650NMEDIT=$lt_NMEDIT
21651
21652# Tool to manipulate fat objects and archives on Mac OS X.
21653LIPO=$lt_LIPO
21654
21655# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21656OTOOL=$lt_OTOOL
21657
21658# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21659OTOOL64=$lt_OTOOL64
21660
21661# Old archive suffix (normally "a").
21662libext=$libext
21663
21664# Shared library suffix (normally ".so").
21665shrext_cmds=$lt_shrext_cmds
21666
21667# The commands to extract the exported symbol list from a shared archive.
21668extract_expsyms_cmds=$lt_extract_expsyms_cmds
21669
21670# Variables whose values should be saved in libtool wrapper scripts and
21671# restored at link time.
21672variables_saved_for_relink=$lt_variables_saved_for_relink
21673
21674# Do we need the "lib" prefix for modules?
21675need_lib_prefix=$need_lib_prefix
21676
21677# Do we need a version for libraries?
21678need_version=$need_version
21679
21680# Library versioning type.
21681version_type=$version_type
21682
21683# Shared library runtime path variable.
21684runpath_var=$runpath_var
21685
21686# Shared library path variable.
21687shlibpath_var=$shlibpath_var
21688
21689# Is shlibpath searched before the hard-coded library search path?
21690shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21691
21692# Format of library name prefix.
21693libname_spec=$lt_libname_spec
21694
21695# List of archive names.  First name is the real one, the rest are links.
21696# The last name is the one that the linker finds with -lNAME
21697library_names_spec=$lt_library_names_spec
21698
21699# The coded name of the library, if different from the real name.
21700soname_spec=$lt_soname_spec
21701
21702# Permission mode override for installation of shared libraries.
21703install_override_mode=$lt_install_override_mode
21704
21705# Command to use after installation of a shared archive.
21706postinstall_cmds=$lt_postinstall_cmds
21707
21708# Command to use after uninstallation of a shared archive.
21709postuninstall_cmds=$lt_postuninstall_cmds
21710
21711# Commands used to finish a libtool library installation in a directory.
21712finish_cmds=$lt_finish_cmds
21713
21714# As "finish_cmds", except a single script fragment to be evaled but
21715# not shown.
21716finish_eval=$lt_finish_eval
21717
21718# Whether we should hardcode library paths into libraries.
21719hardcode_into_libs=$hardcode_into_libs
21720
21721# Compile-time system search path for libraries.
21722sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21723
21724# Detected run-time system search path for libraries.
21725sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21726
21727# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21728configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21729
21730# Whether dlopen is supported.
21731dlopen_support=$enable_dlopen
21732
21733# Whether dlopen of programs is supported.
21734dlopen_self=$enable_dlopen_self
21735
21736# Whether dlopen of statically linked programs is supported.
21737dlopen_self_static=$enable_dlopen_self_static
21738
21739# Commands to strip libraries.
21740old_striplib=$lt_old_striplib
21741striplib=$lt_striplib
21742
21743
21744# The linker used to build libraries.
21745LD=$lt_LD
21746
21747# How to create reloadable object files.
21748reload_flag=$lt_reload_flag
21749reload_cmds=$lt_reload_cmds
21750
21751# Commands used to build an old-style archive.
21752old_archive_cmds=$lt_old_archive_cmds
21753
21754# A language specific compiler.
21755CC=$lt_compiler
21756
21757# Is the compiler the GNU compiler?
21758with_gcc=$GCC
21759
21760# Compiler flag to turn off builtin functions.
21761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21762
21763# Additional compiler flags for building library objects.
21764pic_flag=$lt_lt_prog_compiler_pic
21765
21766# How to pass a linker flag through the compiler.
21767wl=$lt_lt_prog_compiler_wl
21768
21769# Compiler flag to prevent dynamic linking.
21770link_static_flag=$lt_lt_prog_compiler_static
21771
21772# Does compiler simultaneously support -c and -o options?
21773compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21774
21775# Whether or not to add -lc for building shared libraries.
21776build_libtool_need_lc=$archive_cmds_need_lc
21777
21778# Whether or not to disallow shared libs when runtime libs are static.
21779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21780
21781# Compiler flag to allow reflexive dlopens.
21782export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21783
21784# Compiler flag to generate shared objects directly from archives.
21785whole_archive_flag_spec=$lt_whole_archive_flag_spec
21786
21787# Whether the compiler copes with passing no objects directly.
21788compiler_needs_object=$lt_compiler_needs_object
21789
21790# Create an old-style archive from a shared archive.
21791old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21792
21793# Create a temporary old-style archive to link instead of a shared archive.
21794old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21795
21796# Commands used to build a shared archive.
21797archive_cmds=$lt_archive_cmds
21798archive_expsym_cmds=$lt_archive_expsym_cmds
21799
21800# Commands used to build a loadable module if different from building
21801# a shared archive.
21802module_cmds=$lt_module_cmds
21803module_expsym_cmds=$lt_module_expsym_cmds
21804
21805# Whether we are building with GNU ld or not.
21806with_gnu_ld=$lt_with_gnu_ld
21807
21808# Flag that allows shared libraries with undefined symbols to be built.
21809allow_undefined_flag=$lt_allow_undefined_flag
21810
21811# Flag that enforces no undefined symbols.
21812no_undefined_flag=$lt_no_undefined_flag
21813
21814# Flag to hardcode \$libdir into a binary during linking.
21815# This must work even if \$libdir does not exist
21816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21817
21818# Whether we need a single "-rpath" flag with a separated argument.
21819hardcode_libdir_separator=$lt_hardcode_libdir_separator
21820
21821# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21822# DIR into the resulting binary.
21823hardcode_direct=$hardcode_direct
21824
21825# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21826# DIR into the resulting binary and the resulting library dependency is
21827# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21828# library is relocated.
21829hardcode_direct_absolute=$hardcode_direct_absolute
21830
21831# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21832# into the resulting binary.
21833hardcode_minus_L=$hardcode_minus_L
21834
21835# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21836# into the resulting binary.
21837hardcode_shlibpath_var=$hardcode_shlibpath_var
21838
21839# Set to "yes" if building a shared library automatically hardcodes DIR
21840# into the library and all subsequent libraries and executables linked
21841# against it.
21842hardcode_automatic=$hardcode_automatic
21843
21844# Set to yes if linker adds runtime paths of dependent libraries
21845# to runtime path list.
21846inherit_rpath=$inherit_rpath
21847
21848# Whether libtool must link a program against all its dependency libraries.
21849link_all_deplibs=$link_all_deplibs
21850
21851# Set to "yes" if exported symbols are required.
21852always_export_symbols=$always_export_symbols
21853
21854# The commands to list exported symbols.
21855export_symbols_cmds=$lt_export_symbols_cmds
21856
21857# Symbols that should not be listed in the preloaded symbols.
21858exclude_expsyms=$lt_exclude_expsyms
21859
21860# Symbols that must always be exported.
21861include_expsyms=$lt_include_expsyms
21862
21863# Commands necessary for linking programs (against libraries) with templates.
21864prelink_cmds=$lt_prelink_cmds
21865
21866# Commands necessary for finishing linking programs.
21867postlink_cmds=$lt_postlink_cmds
21868
21869# Specify filename containing input files.
21870file_list_spec=$lt_file_list_spec
21871
21872# How to hardcode a shared library path into an executable.
21873hardcode_action=$hardcode_action
21874
21875# ### END LIBTOOL CONFIG
21876
21877_LT_EOF
21878
21879    cat <<'_LT_EOF' >> "$cfgfile"
21880
21881# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21882
21883# func_munge_path_list VARIABLE PATH
21884# -----------------------------------
21885# VARIABLE is name of variable containing _space_ separated list of
21886# directories to be munged by the contents of PATH, which is string
21887# having a format:
21888# "DIR[:DIR]:"
21889#       string "DIR[ DIR]" will be prepended to VARIABLE
21890# ":DIR[:DIR]"
21891#       string "DIR[ DIR]" will be appended to VARIABLE
21892# "DIRP[:DIRP]::[DIRA:]DIRA"
21893#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21894#       "DIRA[ DIRA]" will be appended to VARIABLE
21895# "DIR[:DIR]"
21896#       VARIABLE will be replaced by "DIR[ DIR]"
21897func_munge_path_list ()
21898{
21899    case x$2 in
21900    x)
21901        ;;
21902    *:)
21903        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21904        ;;
21905    x:*)
21906        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21907        ;;
21908    *::*)
21909        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21910        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21911        ;;
21912    *)
21913        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21914        ;;
21915    esac
21916}
21917
21918
21919# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21920func_cc_basename ()
21921{
21922    for cc_temp in $*""; do
21923      case $cc_temp in
21924        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21925        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21926        \-*) ;;
21927        *) break;;
21928      esac
21929    done
21930    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21931}
21932
21933
21934# ### END FUNCTIONS SHARED WITH CONFIGURE
21935
21936_LT_EOF
21937
21938  case $host_os in
21939  aix3*)
21940    cat <<\_LT_EOF >> "$cfgfile"
21941# AIX sometimes has problems with the GCC collect2 program.  For some
21942# reason, if we set the COLLECT_NAMES environment variable, the problems
21943# vanish in a puff of smoke.
21944if test set != "${COLLECT_NAMES+set}"; then
21945  COLLECT_NAMES=
21946  export COLLECT_NAMES
21947fi
21948_LT_EOF
21949    ;;
21950  esac
21951
21952
21953
21954ltmain=$ac_aux_dir/ltmain.sh
21955
21956
21957  # We use sed instead of cat because bash on DJGPP gets confused if
21958  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21959  # text mode, it properly converts lines to CR/LF.  This bash problem
21960  # is reportedly fixed, but why not run on old versions too?
21961  $SED '$q' "$ltmain" >> "$cfgfile" \
21962     || (rm -f "$cfgfile"; exit 1)
21963
21964   mv -f "$cfgfile" "$ofile" ||
21965    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21966  chmod +x "$ofile"
21967
21968 ;;
21969
21970  esac
21971done # for ac_tag
21972
21973
21974as_fn_exit 0
21975_ACEOF
21976ac_clean_files=$ac_clean_files_save
21977
21978test $ac_write_fail = 0 ||
21979  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21980
21981
21982# configure is writing to config.log, and then calls config.status.
21983# config.status does its own redirection, appending to config.log.
21984# Unfortunately, on DOS this fails, as config.log is still kept open
21985# by configure, so config.status won't be able to write to it; its
21986# output is simply discarded.  So we exec the FD to /dev/null,
21987# effectively closing config.log, so it can be properly (re)opened and
21988# appended to by config.status.  When coming back to configure, we
21989# need to make the FD available again.
21990if test "$no_create" != yes; then
21991  ac_cs_success=:
21992  ac_config_status_args=
21993  test "$silent" = yes &&
21994    ac_config_status_args="$ac_config_status_args --quiet"
21995  exec 5>/dev/null
21996  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21997  exec 5>>config.log
21998  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21999  # would make configure fail if this is the last instruction.
22000  $ac_cs_success || as_fn_exit 1
22001fi
22002if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22004printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22005fi
22006
22007
22008