1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libXau 1.0.12.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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
195test \$(( 1 + 1 )) = 2 || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595test -n "$DJDIR" || exec 7<&0 </dev/null
596exec 6>&1
597
598# Name of the host.
599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600# so uname gets run too.
601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603#
604# Initializations.
605#
606ac_default_prefix=/usr/local
607ac_clean_files=
608ac_config_libobj_dir=.
609LIBOBJS=
610cross_compiling=no
611subdirs=
612MFLAGS=
613MAKEFLAGS=
614
615# Identity of this package.
616PACKAGE_NAME='libXau'
617PACKAGE_TARNAME='libXau'
618PACKAGE_VERSION='1.0.12'
619PACKAGE_STRING='libXau 1.0.12'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues'
621PACKAGE_URL=''
622
623ac_unique_file="Makefile.am"
624# Factoring default headers for most tests.
625ac_includes_default="\
626#include <stddef.h>
627#ifdef HAVE_STDIO_H
628# include <stdio.h>
629#endif
630#ifdef HAVE_STDLIB_H
631# include <stdlib.h>
632#endif
633#ifdef HAVE_STRING_H
634# include <string.h>
635#endif
636#ifdef HAVE_INTTYPES_H
637# include <inttypes.h>
638#endif
639#ifdef HAVE_STDINT_H
640# include <stdint.h>
641#endif
642#ifdef HAVE_STRINGS_H
643# include <strings.h>
644#endif
645#ifdef HAVE_SYS_TYPES_H
646# include <sys/types.h>
647#endif
648#ifdef HAVE_SYS_STAT_H
649# include <sys/stat.h>
650#endif
651#ifdef HAVE_UNISTD_H
652# include <unistd.h>
653#endif"
654
655ac_header_c_list=
656enable_year2038=no
657ac_subst_vars='am__EXEEXT_FALSE
658am__EXEEXT_TRUE
659LTLIBOBJS
660LIBOBJS
661MAKE_LINT_LIB_FALSE
662MAKE_LINT_LIB_TRUE
663LINTLIB
664LINT_FALSE
665LINT_TRUE
666LINT_FLAGS
667LINT
668XAU_LIBS
669XAU_CFLAGS
670MAN_SUBSTS
671XORG_MAN_PAGE
672ADMIN_MAN_DIR
673DRIVER_MAN_DIR
674MISC_MAN_DIR
675FILE_MAN_DIR
676LIB_MAN_DIR
677APP_MAN_DIR
678ADMIN_MAN_SUFFIX
679DRIVER_MAN_SUFFIX
680MISC_MAN_SUFFIX
681FILE_MAN_SUFFIX
682LIB_MAN_SUFFIX
683APP_MAN_SUFFIX
684INSTALL_CMD
685PKG_CONFIG_LIBDIR
686PKG_CONFIG_PATH
687PKG_CONFIG
688CHANGELOG_CMD
689STRICT_CFLAGS
690CWARNFLAGS
691BASE_CFLAGS
692LT_SYS_LIBRARY_PATH
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698MANIFEST_TOOL
699RANLIB
700ac_ct_AR
701AR
702FILECMD
703LN_S
704NM
705ac_ct_DUMPBIN
706DUMPBIN
707LD
708FGREP
709EGREP
710GREP
711SED
712host_os
713host_vendor
714host_cpu
715host
716build_os
717build_vendor
718build_cpu
719build
720LIBTOOL
721OBJDUMP
722DLLTOOL
723AS
724am__xargs_n
725am__rm_f_notfound
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728AM_DEFAULT_V
729AM_V
730CSCOPE
731ETAGS
732CTAGS
733am__fastdepCC_FALSE
734am__fastdepCC_TRUE
735CCDEPMODE
736am__nodep
737AMDEPBACKSLASH
738AMDEP_FALSE
739AMDEP_TRUE
740am__include
741DEPDIR
742am__untar
743am__tar
744AMTAR
745am__leading_dot
746SET_MAKE
747AWK
748mkdir_p
749MKDIR_P
750INSTALL_STRIP_PROGRAM
751STRIP
752install_sh
753MAKEINFO
754AUTOHEADER
755AUTOMAKE
756AUTOCONF
757ACLOCAL
758VERSION
759PACKAGE
760CYGPATH_W
761am__isrc
762INSTALL_DATA
763INSTALL_SCRIPT
764INSTALL_PROGRAM
765OBJEXT
766EXEEXT
767ac_ct_CC
768CPPFLAGS
769LDFLAGS
770CFLAGS
771CC
772target_alias
773host_alias
774build_alias
775LIBS
776ECHO_T
777ECHO_N
778ECHO_C
779DEFS
780mandir
781localedir
782libdir
783psdir
784pdfdir
785dvidir
786htmldir
787infodir
788docdir
789oldincludedir
790includedir
791runstatedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL
811am__quote'
812ac_subst_files=''
813ac_user_opts='
814enable_option_checking
815enable_dependency_tracking
816enable_silent_rules
817enable_shared
818enable_static
819enable_pic
820with_pic
821enable_fast_install
822enable_aix_soname
823with_aix_soname
824with_gnu_ld
825with_sysroot
826enable_libtool_lock
827enable_selective_werror
828enable_strict_compilation
829enable_largefile
830enable_xthreads
831with_lint
832enable_lint_library
833enable_year2038
834'
835      ac_precious_vars='build_alias
836host_alias
837target_alias
838CC
839CFLAGS
840LDFLAGS
841LIBS
842CPPFLAGS
843LT_SYS_LIBRARY_PATH
844PKG_CONFIG
845PKG_CONFIG_PATH
846PKG_CONFIG_LIBDIR
847XAU_CFLAGS
848XAU_LIBS
849LINT
850LINT_FLAGS'
851
852
853# Initialize some variables set by options.
854ac_init_help=
855ac_init_version=false
856ac_unrecognized_opts=
857ac_unrecognized_sep=
858# The variables have the same names as the options, with
859# dashes changed to underlines.
860cache_file=/dev/null
861exec_prefix=NONE
862no_create=
863no_recursion=
864prefix=NONE
865program_prefix=NONE
866program_suffix=NONE
867program_transform_name=s,x,x,
868silent=
869site=
870srcdir=
871verbose=
872x_includes=NONE
873x_libraries=NONE
874
875# Installation directory options.
876# These are left unexpanded so users can "make install exec_prefix=/foo"
877# and all the variables that are supposed to be based on exec_prefix
878# by default will actually change.
879# Use braces instead of parens because sh, perl, etc. also accept them.
880# (The list follows the same order as the GNU Coding Standards.)
881bindir='${exec_prefix}/bin'
882sbindir='${exec_prefix}/sbin'
883libexecdir='${exec_prefix}/libexec'
884datarootdir='${prefix}/share'
885datadir='${datarootdir}'
886sysconfdir='${prefix}/etc'
887sharedstatedir='${prefix}/com'
888localstatedir='${prefix}/var'
889runstatedir='${localstatedir}/run'
890includedir='${prefix}/include'
891oldincludedir='/usr/include'
892docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
893infodir='${datarootdir}/info'
894htmldir='${docdir}'
895dvidir='${docdir}'
896pdfdir='${docdir}'
897psdir='${docdir}'
898libdir='${exec_prefix}/lib'
899localedir='${datarootdir}/locale'
900mandir='${datarootdir}/man'
901
902ac_prev=
903ac_dashdash=
904for ac_option
905do
906  # If the previous option needs an argument, assign it.
907  if test -n "$ac_prev"; then
908    eval $ac_prev=\$ac_option
909    ac_prev=
910    continue
911  fi
912
913  case $ac_option in
914  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
915  *=)   ac_optarg= ;;
916  *)    ac_optarg=yes ;;
917  esac
918
919  case $ac_dashdash$ac_option in
920  --)
921    ac_dashdash=yes ;;
922
923  -bindir | --bindir | --bindi | --bind | --bin | --bi)
924    ac_prev=bindir ;;
925  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926    bindir=$ac_optarg ;;
927
928  -build | --build | --buil | --bui | --bu)
929    ac_prev=build_alias ;;
930  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931    build_alias=$ac_optarg ;;
932
933  -cache-file | --cache-file | --cache-fil | --cache-fi \
934  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935    ac_prev=cache_file ;;
936  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938    cache_file=$ac_optarg ;;
939
940  --config-cache | -C)
941    cache_file=config.cache ;;
942
943  -datadir | --datadir | --datadi | --datad)
944    ac_prev=datadir ;;
945  -datadir=* | --datadir=* | --datadi=* | --datad=*)
946    datadir=$ac_optarg ;;
947
948  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949  | --dataroo | --dataro | --datar)
950    ac_prev=datarootdir ;;
951  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953    datarootdir=$ac_optarg ;;
954
955  -disable-* | --disable-*)
956    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957    # Reject names that are not valid shell variable names.
958    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959      as_fn_error $? "invalid feature name: '$ac_useropt'"
960    ac_useropt_orig=$ac_useropt
961    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
962    case $ac_user_opts in
963      *"
964"enable_$ac_useropt"
965"*) ;;
966      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967	 ac_unrecognized_sep=', ';;
968    esac
969    eval enable_$ac_useropt=no ;;
970
971  -docdir | --docdir | --docdi | --doc | --do)
972    ac_prev=docdir ;;
973  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974    docdir=$ac_optarg ;;
975
976  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977    ac_prev=dvidir ;;
978  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979    dvidir=$ac_optarg ;;
980
981  -enable-* | --enable-*)
982    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983    # Reject names that are not valid shell variable names.
984    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985      as_fn_error $? "invalid feature name: '$ac_useropt'"
986    ac_useropt_orig=$ac_useropt
987    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
988    case $ac_user_opts in
989      *"
990"enable_$ac_useropt"
991"*) ;;
992      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993	 ac_unrecognized_sep=', ';;
994    esac
995    eval enable_$ac_useropt=\$ac_optarg ;;
996
997  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999  | --exec | --exe | --ex)
1000    ac_prev=exec_prefix ;;
1001  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003  | --exec=* | --exe=* | --ex=*)
1004    exec_prefix=$ac_optarg ;;
1005
1006  -gas | --gas | --ga | --g)
1007    # Obsolete; use --with-gas.
1008    with_gas=yes ;;
1009
1010  -help | --help | --hel | --he | -h)
1011    ac_init_help=long ;;
1012  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013    ac_init_help=recursive ;;
1014  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015    ac_init_help=short ;;
1016
1017  -host | --host | --hos | --ho)
1018    ac_prev=host_alias ;;
1019  -host=* | --host=* | --hos=* | --ho=*)
1020    host_alias=$ac_optarg ;;
1021
1022  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023    ac_prev=htmldir ;;
1024  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025  | --ht=*)
1026    htmldir=$ac_optarg ;;
1027
1028  -includedir | --includedir | --includedi | --included | --include \
1029  | --includ | --inclu | --incl | --inc)
1030    ac_prev=includedir ;;
1031  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032  | --includ=* | --inclu=* | --incl=* | --inc=*)
1033    includedir=$ac_optarg ;;
1034
1035  -infodir | --infodir | --infodi | --infod | --info | --inf)
1036    ac_prev=infodir ;;
1037  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038    infodir=$ac_optarg ;;
1039
1040  -libdir | --libdir | --libdi | --libd)
1041    ac_prev=libdir ;;
1042  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043    libdir=$ac_optarg ;;
1044
1045  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046  | --libexe | --libex | --libe)
1047    ac_prev=libexecdir ;;
1048  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049  | --libexe=* | --libex=* | --libe=*)
1050    libexecdir=$ac_optarg ;;
1051
1052  -localedir | --localedir | --localedi | --localed | --locale)
1053    ac_prev=localedir ;;
1054  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055    localedir=$ac_optarg ;;
1056
1057  -localstatedir | --localstatedir | --localstatedi | --localstated \
1058  | --localstate | --localstat | --localsta | --localst | --locals)
1059    ac_prev=localstatedir ;;
1060  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062    localstatedir=$ac_optarg ;;
1063
1064  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065    ac_prev=mandir ;;
1066  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067    mandir=$ac_optarg ;;
1068
1069  -nfp | --nfp | --nf)
1070    # Obsolete; use --without-fp.
1071    with_fp=no ;;
1072
1073  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074  | --no-cr | --no-c | -n)
1075    no_create=yes ;;
1076
1077  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079    no_recursion=yes ;;
1080
1081  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083  | --oldin | --oldi | --old | --ol | --o)
1084    ac_prev=oldincludedir ;;
1085  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088    oldincludedir=$ac_optarg ;;
1089
1090  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091    ac_prev=prefix ;;
1092  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093    prefix=$ac_optarg ;;
1094
1095  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096  | --program-pre | --program-pr | --program-p)
1097    ac_prev=program_prefix ;;
1098  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100    program_prefix=$ac_optarg ;;
1101
1102  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103  | --program-suf | --program-su | --program-s)
1104    ac_prev=program_suffix ;;
1105  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107    program_suffix=$ac_optarg ;;
1108
1109  -program-transform-name | --program-transform-name \
1110  | --program-transform-nam | --program-transform-na \
1111  | --program-transform-n | --program-transform- \
1112  | --program-transform | --program-transfor \
1113  | --program-transfo | --program-transf \
1114  | --program-trans | --program-tran \
1115  | --progr-tra | --program-tr | --program-t)
1116    ac_prev=program_transform_name ;;
1117  -program-transform-name=* | --program-transform-name=* \
1118  | --program-transform-nam=* | --program-transform-na=* \
1119  | --program-transform-n=* | --program-transform-=* \
1120  | --program-transform=* | --program-transfor=* \
1121  | --program-transfo=* | --program-transf=* \
1122  | --program-trans=* | --program-tran=* \
1123  | --progr-tra=* | --program-tr=* | --program-t=*)
1124    program_transform_name=$ac_optarg ;;
1125
1126  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127    ac_prev=pdfdir ;;
1128  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129    pdfdir=$ac_optarg ;;
1130
1131  -psdir | --psdir | --psdi | --psd | --ps)
1132    ac_prev=psdir ;;
1133  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134    psdir=$ac_optarg ;;
1135
1136  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137  | -silent | --silent | --silen | --sile | --sil)
1138    silent=yes ;;
1139
1140  -runstatedir | --runstatedir | --runstatedi | --runstated \
1141  | --runstate | --runstat | --runsta | --runst | --runs \
1142  | --run | --ru | --r)
1143    ac_prev=runstatedir ;;
1144  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1145  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1146  | --run=* | --ru=* | --r=*)
1147    runstatedir=$ac_optarg ;;
1148
1149  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150    ac_prev=sbindir ;;
1151  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152  | --sbi=* | --sb=*)
1153    sbindir=$ac_optarg ;;
1154
1155  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157  | --sharedst | --shareds | --shared | --share | --shar \
1158  | --sha | --sh)
1159    ac_prev=sharedstatedir ;;
1160  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163  | --sha=* | --sh=*)
1164    sharedstatedir=$ac_optarg ;;
1165
1166  -site | --site | --sit)
1167    ac_prev=site ;;
1168  -site=* | --site=* | --sit=*)
1169    site=$ac_optarg ;;
1170
1171  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172    ac_prev=srcdir ;;
1173  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174    srcdir=$ac_optarg ;;
1175
1176  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177  | --syscon | --sysco | --sysc | --sys | --sy)
1178    ac_prev=sysconfdir ;;
1179  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181    sysconfdir=$ac_optarg ;;
1182
1183  -target | --target | --targe | --targ | --tar | --ta | --t)
1184    ac_prev=target_alias ;;
1185  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186    target_alias=$ac_optarg ;;
1187
1188  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189    verbose=yes ;;
1190
1191  -version | --version | --versio | --versi | --vers | -V)
1192    ac_init_version=: ;;
1193
1194  -with-* | --with-*)
1195    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196    # Reject names that are not valid shell variable names.
1197    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198      as_fn_error $? "invalid package name: '$ac_useropt'"
1199    ac_useropt_orig=$ac_useropt
1200    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201    case $ac_user_opts in
1202      *"
1203"with_$ac_useropt"
1204"*) ;;
1205      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206	 ac_unrecognized_sep=', ';;
1207    esac
1208    eval with_$ac_useropt=\$ac_optarg ;;
1209
1210  -without-* | --without-*)
1211    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212    # Reject names that are not valid shell variable names.
1213    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214      as_fn_error $? "invalid package name: '$ac_useropt'"
1215    ac_useropt_orig=$ac_useropt
1216    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217    case $ac_user_opts in
1218      *"
1219"with_$ac_useropt"
1220"*) ;;
1221      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222	 ac_unrecognized_sep=', ';;
1223    esac
1224    eval with_$ac_useropt=no ;;
1225
1226  --x)
1227    # Obsolete; use --with-x.
1228    with_x=yes ;;
1229
1230  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231  | --x-incl | --x-inc | --x-in | --x-i)
1232    ac_prev=x_includes ;;
1233  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235    x_includes=$ac_optarg ;;
1236
1237  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239    ac_prev=x_libraries ;;
1240  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242    x_libraries=$ac_optarg ;;
1243
1244  -*) as_fn_error $? "unrecognized option: '$ac_option'
1245Try '$0 --help' for more information"
1246    ;;
1247
1248  *=*)
1249    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250    # Reject names that are not valid shell variable names.
1251    case $ac_envvar in #(
1252      '' | [0-9]* | *[!_$as_cr_alnum]* )
1253      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1254    esac
1255    eval $ac_envvar=\$ac_optarg
1256    export $ac_envvar ;;
1257
1258  *)
1259    # FIXME: should be removed in autoconf 3.0.
1260    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1261    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1263    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264    ;;
1265
1266  esac
1267done
1268
1269if test -n "$ac_prev"; then
1270  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271  as_fn_error $? "missing argument to $ac_option"
1272fi
1273
1274if test -n "$ac_unrecognized_opts"; then
1275  case $enable_option_checking in
1276    no) ;;
1277    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279  esac
1280fi
1281
1282# Check all directory arguments for consistency.
1283for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284		datadir sysconfdir sharedstatedir localstatedir includedir \
1285		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286		libdir localedir mandir runstatedir
1287do
1288  eval ac_val=\$$ac_var
1289  # Remove trailing slashes.
1290  case $ac_val in
1291    */ )
1292      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293      eval $ac_var=\$ac_val;;
1294  esac
1295  # Be sure to have absolute directory names.
1296  case $ac_val in
1297    [\\/$]* | ?:[\\/]* )  continue;;
1298    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299  esac
1300  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301done
1302
1303# There might be people who depend on the old broken behavior: '$host'
1304# used to hold the argument of --host etc.
1305# FIXME: To remove some day.
1306build=$build_alias
1307host=$host_alias
1308target=$target_alias
1309
1310# FIXME: To remove some day.
1311if test "x$host_alias" != x; then
1312  if test "x$build_alias" = x; then
1313    cross_compiling=maybe
1314  elif test "x$build_alias" != "x$host_alias"; then
1315    cross_compiling=yes
1316  fi
1317fi
1318
1319ac_tool_prefix=
1320test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322test "$silent" = yes && exec 6>/dev/null
1323
1324
1325ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326ac_ls_di=`ls -di .` &&
1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328  as_fn_error $? "working directory cannot be determined"
1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330  as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333# Find the source files, if location was not specified.
1334if test -z "$srcdir"; then
1335  ac_srcdir_defaulted=yes
1336  # Try the directory containing this script, then the parent directory.
1337  ac_confdir=`$as_dirname -- "$as_myself" ||
1338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339	 X"$as_myself" : 'X\(//\)[^/]' \| \
1340	 X"$as_myself" : 'X\(//\)$' \| \
1341	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342printf "%s\n" X"$as_myself" |
1343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\/\)[^/].*/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\/\)$/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\).*/{
1356	    s//\1/
1357	    q
1358	  }
1359	  s/.*/./; q'`
1360  srcdir=$ac_confdir
1361  if test ! -r "$srcdir/$ac_unique_file"; then
1362    srcdir=..
1363  fi
1364else
1365  ac_srcdir_defaulted=no
1366fi
1367if test ! -r "$srcdir/$ac_unique_file"; then
1368  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370fi
1371ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1372ac_abs_confdir=`(
1373	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374	pwd)`
1375# When building in place, set srcdir=.
1376if test "$ac_abs_confdir" = "$ac_pwd"; then
1377  srcdir=.
1378fi
1379# Remove unnecessary trailing slashes from srcdir.
1380# Double slashes in file names in object file debugging info
1381# mess up M-x gdb in Emacs.
1382case $srcdir in
1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384esac
1385for ac_var in $ac_precious_vars; do
1386  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_env_${ac_var}_value=\$${ac_var}
1388  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390done
1391
1392#
1393# Report the --help message.
1394#
1395if test "$ac_init_help" = "long"; then
1396  # Omit some internal or obsolete options to make the list less imposing.
1397  # This message is too long to be a string in the A/UX 3.1 sh.
1398  cat <<_ACEOF
1399'configure' configures libXau 1.0.12 to adapt to many kinds of systems.
1400
1401Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404VAR=VALUE.  See below for descriptions of some of the useful variables.
1405
1406Defaults for the options are specified in brackets.
1407
1408Configuration:
1409  -h, --help              display this help and exit
1410      --help=short        display options specific to this package
1411      --help=recursive    display the short help of all the included packages
1412  -V, --version           display version information and exit
1413  -q, --quiet, --silent   do not print 'checking ...' messages
1414      --cache-file=FILE   cache test results in FILE [disabled]
1415  -C, --config-cache      alias for '--cache-file=config.cache'
1416  -n, --no-create         do not create output files
1417      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1418
1419Installation directories:
1420  --prefix=PREFIX         install architecture-independent files in PREFIX
1421                          [$ac_default_prefix]
1422  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423                          [PREFIX]
1424
1425By default, 'make install' will install all the files in
1426'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1427an installation prefix other than '$ac_default_prefix' using '--prefix',
1428for instance '--prefix=\$HOME'.
1429
1430For better control, use the options below.
1431
1432Fine tuning of the installation directories:
1433  --bindir=DIR            user executables [EPREFIX/bin]
1434  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1435  --libexecdir=DIR        program executables [EPREFIX/libexec]
1436  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1437  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1438  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1439  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1440  --libdir=DIR            object code libraries [EPREFIX/lib]
1441  --includedir=DIR        C header files [PREFIX/include]
1442  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1443  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1444  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1445  --infodir=DIR           info documentation [DATAROOTDIR/info]
1446  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1447  --mandir=DIR            man documentation [DATAROOTDIR/man]
1448  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXau]
1449  --htmldir=DIR           html documentation [DOCDIR]
1450  --dvidir=DIR            dvi documentation [DOCDIR]
1451  --pdfdir=DIR            pdf documentation [DOCDIR]
1452  --psdir=DIR             ps documentation [DOCDIR]
1453_ACEOF
1454
1455  cat <<\_ACEOF
1456
1457Program names:
1458  --program-prefix=PREFIX            prepend PREFIX to installed program names
1459  --program-suffix=SUFFIX            append SUFFIX to installed program names
1460  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462System types:
1463  --build=BUILD     configure for building on BUILD [guessed]
1464  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469  case $ac_init_help in
1470     short | recursive ) echo "Configuration of libXau 1.0.12:";;
1471   esac
1472  cat <<\_ACEOF
1473
1474Optional Features:
1475  --disable-option-checking  ignore unrecognized --enable/--with options
1476  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478  --enable-dependency-tracking
1479                          do not reject slow dependency extractors
1480  --disable-dependency-tracking
1481                          speeds up one-time build
1482  --enable-silent-rules   less verbose build output (undo: "make V=1")
1483  --disable-silent-rules  verbose build output (undo: "make V=0")
1484  --enable-shared[=PKGS]  build shared libraries [default=yes]
1485  --enable-static[=PKGS]  build static libraries [default=yes]
1486  --enable-pic[=PKGS]     try to use only PIC/non-PIC objects [default=use
1487                          both]
1488  --enable-fast-install[=PKGS]
1489                          optimize for fast installation [default=yes]
1490  --enable-aix-soname=aix|svr4|both
1491                          shared library versioning (aka "SONAME") variant to
1492                          provide on AIX, [default=aix].
1493  --disable-libtool-lock  avoid locking (might break parallel builds)
1494  --disable-selective-werror
1495                          Turn off selective compiler errors. (default:
1496                          enabled)
1497  --enable-strict-compilation
1498                          Enable all warnings from compiler and make them
1499                          errors (default: disabled)
1500  --disable-largefile     omit support for large files
1501  --disable-xthreads      Disable libXau support for Multithreading
1502  --enable-lint-library   Create lint library (default: disabled)
1503  --enable-year2038       support timestamps after 2038
1504
1505Optional Packages:
1506  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1509  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1510                          compiler's sysroot if not specified).
1511  --with-lint             Use a lint-style source code checker (default:
1512                          disabled)
1513
1514Some influential environment variables:
1515  CC          C compiler command
1516  CFLAGS      C compiler flags
1517  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1518              nonstandard directory <lib dir>
1519  LIBS        libraries to pass to the linker, e.g. -l<library>
1520  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521              you have headers in a nonstandard directory <include dir>
1522  LT_SYS_LIBRARY_PATH
1523              User-defined run-time library search path.
1524  PKG_CONFIG  path to pkg-config utility
1525  PKG_CONFIG_PATH
1526              directories to add to pkg-config's search path
1527  PKG_CONFIG_LIBDIR
1528              path overriding pkg-config's built-in search path
1529  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
1530  XAU_LIBS    linker flags for XAU, overriding pkg-config
1531  LINT        Path to a lint-style command
1532  LINT_FLAGS  Flags for the lint-style command
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/lib/libxau/-/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
1601libXau configure 1.0.12
1602generated by GNU Autoconf 2.72
1603
1604Copyright (C) 2023 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 case e in #(
1644  e) printf "%s\n" "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647	ac_retval=1 ;;
1648esac
1649fi
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_compile
1654
1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656# -------------------------------------------------------
1657# Tests whether HEADER exists and can be compiled using the include files in
1658# INCLUDES, setting the cache variable VAR accordingly.
1659ac_fn_c_check_header_compile ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663printf %s "checking for $2... " >&6; }
1664if eval test \${$3+y}
1665then :
1666  printf %s "(cached) " >&6
1667else case e in #(
1668  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h.  */
1670$4
1671#include <$2>
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"
1674then :
1675  eval "$3=yes"
1676else case e in #(
1677  e) eval "$3=no" ;;
1678esac
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1681esac
1682fi
1683eval ac_res=\$$3
1684	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685printf "%s\n" "$ac_res" >&6; }
1686  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688} # ac_fn_c_check_header_compile
1689
1690# ac_fn_c_try_link LINENO
1691# -----------------------
1692# Try to link conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_link ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1697  if { { ac_try="$ac_link"
1698case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703printf "%s\n" "$ac_try_echo"; } >&5
1704  (eval "$ac_link") 2>conftest.err
1705  ac_status=$?
1706  if test -s conftest.err; then
1707    grep -v '^ *+' conftest.err >conftest.er1
1708    cat conftest.er1 >&5
1709    mv -f conftest.er1 conftest.err
1710  fi
1711  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; } && {
1713	 test -z "$ac_c_werror_flag" ||
1714	 test ! -s conftest.err
1715       } && test -s conftest$ac_exeext && {
1716	 test "$cross_compiling" = yes ||
1717	 test -x conftest$ac_exeext
1718       }
1719then :
1720  ac_retval=0
1721else case e in #(
1722  e) printf "%s\n" "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725	ac_retval=1 ;;
1726esac
1727fi
1728  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730  # interfere with the next link command; also delete a directory that is
1731  # left behind by Apple's compiler.  We do this before executing the actions.
1732  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_link
1737
1738# ac_fn_c_check_func LINENO FUNC VAR
1739# ----------------------------------
1740# Tests whether FUNC exists, setting the cache variable VAR accordingly
1741ac_fn_c_check_func ()
1742{
1743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745printf %s "checking for $2... " >&6; }
1746if eval test \${$3+y}
1747then :
1748  printf %s "(cached) " >&6
1749else case e in #(
1750  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h.  */
1752/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1753   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1754#define $2 innocuous_$2
1755
1756/* System header to define __stub macros and hopefully few prototypes,
1757   which can conflict with char $2 (void); below.  */
1758
1759#include <limits.h>
1760#undef $2
1761
1762/* Override any GCC internal prototype to avoid an error.
1763   Use char because int might match the return type of a GCC
1764   builtin and then its argument prototype would still apply.  */
1765#ifdef __cplusplus
1766extern "C"
1767#endif
1768char $2 (void);
1769/* The GNU C library defines this for functions which it implements
1770    to always fail with ENOSYS.  Some functions are actually named
1771    something starting with __ and the normal name is an alias.  */
1772#if defined __stub_$2 || defined __stub___$2
1773choke me
1774#endif
1775
1776int
1777main (void)
1778{
1779return $2 ();
1780  ;
1781  return 0;
1782}
1783_ACEOF
1784if ac_fn_c_try_link "$LINENO"
1785then :
1786  eval "$3=yes"
1787else case e in #(
1788  e) eval "$3=no" ;;
1789esac
1790fi
1791rm -f core conftest.err conftest.$ac_objext conftest.beam \
1792    conftest$ac_exeext conftest.$ac_ext ;;
1793esac
1794fi
1795eval ac_res=\$$3
1796	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797printf "%s\n" "$ac_res" >&6; }
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800} # ac_fn_c_check_func
1801
1802# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1803# ------------------------------------------------------------------
1804# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1805# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1806ac_fn_check_decl ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  as_decl_name=`echo $2|sed 's/ *(.*//'`
1810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1811printf %s "checking whether $as_decl_name is declared... " >&6; }
1812if eval test \${$3+y}
1813then :
1814  printf %s "(cached) " >&6
1815else case e in #(
1816  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1817  eval ac_save_FLAGS=\$$6
1818  as_fn_append $6 " $5"
1819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h.  */
1821$4
1822int
1823main (void)
1824{
1825#ifndef $as_decl_name
1826#ifdef __cplusplus
1827  (void) $as_decl_use;
1828#else
1829  (void) $as_decl_name;
1830#endif
1831#endif
1832
1833  ;
1834  return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_compile "$LINENO"
1838then :
1839  eval "$3=yes"
1840else case e in #(
1841  e) eval "$3=no" ;;
1842esac
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1845  eval $6=\$ac_save_FLAGS
1846 ;;
1847esac
1848fi
1849eval ac_res=\$$3
1850	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851printf "%s\n" "$ac_res" >&6; }
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854} # ac_fn_check_decl
1855ac_configure_args_raw=
1856for ac_arg
1857do
1858  case $ac_arg in
1859  *\'*)
1860    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861  esac
1862  as_fn_append ac_configure_args_raw " '$ac_arg'"
1863done
1864
1865case $ac_configure_args_raw in
1866  *$as_nl*)
1867    ac_safe_unquote= ;;
1868  *)
1869    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1870    ac_unsafe_a="$ac_unsafe_z#~"
1871    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1872    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1873esac
1874
1875cat >config.log <<_ACEOF
1876This file contains any messages produced by compilers while
1877running configure, to aid debugging if configure makes a mistake.
1878
1879It was created by libXau $as_me 1.0.12, which was
1880generated by GNU Autoconf 2.72.  Invocation command line was
1881
1882  $ $0$ac_configure_args_raw
1883
1884_ACEOF
1885exec 5>>config.log
1886{
1887cat <<_ASUNAME
1888## --------- ##
1889## Platform. ##
1890## --------- ##
1891
1892hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897
1898/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1900
1901/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1902/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1903/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1905/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1906/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1907/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1908
1909_ASUNAME
1910
1911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912for as_dir in $PATH
1913do
1914  IFS=$as_save_IFS
1915  case $as_dir in #(((
1916    '') as_dir=./ ;;
1917    */) ;;
1918    *) as_dir=$as_dir/ ;;
1919  esac
1920    printf "%s\n" "PATH: $as_dir"
1921  done
1922IFS=$as_save_IFS
1923
1924} >&5
1925
1926cat >&5 <<_ACEOF
1927
1928
1929## ----------- ##
1930## Core tests. ##
1931## ----------- ##
1932
1933_ACEOF
1934
1935
1936# Keep a trace of the command line.
1937# Strip out --no-create and --no-recursion so they do not pile up.
1938# Strip out --silent because we don't want to record it for future runs.
1939# Also quote any args containing shell meta-characters.
1940# Make two passes to allow for proper duplicate-argument suppression.
1941ac_configure_args=
1942ac_configure_args0=
1943ac_configure_args1=
1944ac_must_keep_next=false
1945for ac_pass in 1 2
1946do
1947  for ac_arg
1948  do
1949    case $ac_arg in
1950    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952    | -silent | --silent | --silen | --sile | --sil)
1953      continue ;;
1954    *\'*)
1955      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956    esac
1957    case $ac_pass in
1958    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959    2)
1960      as_fn_append ac_configure_args1 " '$ac_arg'"
1961      if test $ac_must_keep_next = true; then
1962	ac_must_keep_next=false # Got value, back to normal.
1963      else
1964	case $ac_arg in
1965	  *=* | --config-cache | -C | -disable-* | --disable-* \
1966	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968	  | -with-* | --with-* | -without-* | --without-* | --x)
1969	    case "$ac_configure_args0 " in
1970	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971	    esac
1972	    ;;
1973	  -* ) ac_must_keep_next=true ;;
1974	esac
1975      fi
1976      as_fn_append ac_configure_args " '$ac_arg'"
1977      ;;
1978    esac
1979  done
1980done
1981{ ac_configure_args0=; unset ac_configure_args0;}
1982{ ac_configure_args1=; unset ac_configure_args1;}
1983
1984# When interrupted or exit'd, cleanup temporary files, and complete
1985# config.log.  We remove comments because anyway the quotes in there
1986# would cause problems or look ugly.
1987# WARNING: Use '\'' to represent an apostrophe within the trap.
1988# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989trap 'exit_status=$?
1990  # Sanitize IFS.
1991  IFS=" ""	$as_nl"
1992  # Save into config.log some information that might help in debugging.
1993  {
1994    echo
1995
1996    printf "%s\n" "## ---------------- ##
1997## Cache variables. ##
1998## ---------------- ##"
1999    echo
2000    # The following way of writing the cache mishandles newlines in values,
2001(
2002  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003    eval ac_val=\$$ac_var
2004    case $ac_val in #(
2005    *${as_nl}*)
2006      case $ac_var in #(
2007      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009      esac
2010      case $ac_var in #(
2011      _ | IFS | as_nl) ;; #(
2012      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013      *) { eval $ac_var=; unset $ac_var;} ;;
2014      esac ;;
2015    esac
2016  done
2017  (set) 2>&1 |
2018    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019    *${as_nl}ac_space=\ *)
2020      sed -n \
2021	"s/'\''/'\''\\\\'\'''\''/g;
2022	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023      ;; #(
2024    *)
2025      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026      ;;
2027    esac |
2028    sort
2029)
2030    echo
2031
2032    printf "%s\n" "## ----------------- ##
2033## Output variables. ##
2034## ----------------- ##"
2035    echo
2036    for ac_var in $ac_subst_vars
2037    do
2038      eval ac_val=\$$ac_var
2039      case $ac_val in
2040      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041      esac
2042      printf "%s\n" "$ac_var='\''$ac_val'\''"
2043    done | sort
2044    echo
2045
2046    if test -n "$ac_subst_files"; then
2047      printf "%s\n" "## ------------------- ##
2048## File substitutions. ##
2049## ------------------- ##"
2050      echo
2051      for ac_var in $ac_subst_files
2052      do
2053	eval ac_val=\$$ac_var
2054	case $ac_val in
2055	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056	esac
2057	printf "%s\n" "$ac_var='\''$ac_val'\''"
2058      done | sort
2059      echo
2060    fi
2061
2062    if test -s confdefs.h; then
2063      printf "%s\n" "## ----------- ##
2064## confdefs.h. ##
2065## ----------- ##"
2066      echo
2067      cat confdefs.h
2068      echo
2069    fi
2070    test "$ac_signal" != 0 &&
2071      printf "%s\n" "$as_me: caught signal $ac_signal"
2072    printf "%s\n" "$as_me: exit $exit_status"
2073  } >&5
2074  rm -f core *.core core.conftest.* &&
2075    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076    exit $exit_status
2077' 0
2078for ac_signal in 1 2 13 15; do
2079  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080done
2081ac_signal=0
2082
2083# confdefs.h avoids OS command line length limits that DEFS can exceed.
2084rm -f -r conftest* confdefs.h
2085
2086printf "%s\n" "/* confdefs.h */" > confdefs.h
2087
2088# Predefined preprocessor variables.
2089
2090printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2091
2092printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2093
2094printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2095
2096printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2097
2098printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2099
2100printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2101
2102
2103# Let the site file select an alternate cache file if it wants to.
2104# Prefer an explicitly selected file to automatically selected ones.
2105if test -n "$CONFIG_SITE"; then
2106  ac_site_files="$CONFIG_SITE"
2107elif test "x$prefix" != xNONE; then
2108  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2109else
2110  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2111fi
2112
2113for ac_site_file in $ac_site_files
2114do
2115  case $ac_site_file in #(
2116  */*) :
2117     ;; #(
2118  *) :
2119    ac_site_file=./$ac_site_file ;;
2120esac
2121  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2123printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2124    sed 's/^/| /' "$ac_site_file" >&5
2125    . "$ac_site_file" \
2126      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2127printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2128as_fn_error $? "failed to load site script $ac_site_file
2129See 'config.log' for more details" "$LINENO" 5; }
2130  fi
2131done
2132
2133if test -r "$cache_file"; then
2134  # Some versions of bash will fail to source /dev/null (special files
2135  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2136  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2137    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2138printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2139    case $cache_file in
2140      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2141      *)                      . "./$cache_file";;
2142    esac
2143  fi
2144else
2145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2146printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2147  >$cache_file
2148fi
2149
2150as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2151# Test code for whether the C compiler supports C89 (global declarations)
2152ac_c_conftest_c89_globals='
2153/* Does the compiler advertise C89 conformance?
2154   Do not test the value of __STDC__, because some compilers set it to 0
2155   while being otherwise adequately conformant. */
2156#if !defined __STDC__
2157# error "Compiler does not advertise C89 conformance"
2158#endif
2159
2160#include <stddef.h>
2161#include <stdarg.h>
2162struct stat;
2163/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2164struct buf { int x; };
2165struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2166static char *e (char **p, int i)
2167{
2168  return p[i];
2169}
2170static char *f (char * (*g) (char **, int), char **p, ...)
2171{
2172  char *s;
2173  va_list v;
2174  va_start (v,p);
2175  s = g (p, va_arg (v,int));
2176  va_end (v);
2177  return s;
2178}
2179
2180/* C89 style stringification. */
2181#define noexpand_stringify(a) #a
2182const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2183
2184/* C89 style token pasting.  Exercises some of the corner cases that
2185   e.g. old MSVC gets wrong, but not very hard. */
2186#define noexpand_concat(a,b) a##b
2187#define expand_concat(a,b) noexpand_concat(a,b)
2188extern int vA;
2189extern int vbee;
2190#define aye A
2191#define bee B
2192int *pvA = &expand_concat(v,aye);
2193int *pvbee = &noexpand_concat(v,bee);
2194
2195/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2196   function prototypes and stuff, but not \xHH hex character constants.
2197   These do not provoke an error unfortunately, instead are silently treated
2198   as an "x".  The following induces an error, until -std is added to get
2199   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2200   array size at least.  It is necessary to write \x00 == 0 to get something
2201   that is true only with -std.  */
2202int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2203
2204/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2205   inside strings and character constants.  */
2206#define FOO(x) '\''x'\''
2207int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2208
2209int test (int i, double x);
2210struct s1 {int (*f) (int a);};
2211struct s2 {int (*f) (double a);};
2212int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2213               int, int);'
2214
2215# Test code for whether the C compiler supports C89 (body of main).
2216ac_c_conftest_c89_main='
2217ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2218'
2219
2220# Test code for whether the C compiler supports C99 (global declarations)
2221ac_c_conftest_c99_globals='
2222/* Does the compiler advertise C99 conformance? */
2223#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2224# error "Compiler does not advertise C99 conformance"
2225#endif
2226
2227// See if C++-style comments work.
2228
2229#include <stdbool.h>
2230extern int puts (const char *);
2231extern int printf (const char *, ...);
2232extern int dprintf (int, const char *, ...);
2233extern void *malloc (size_t);
2234extern void free (void *);
2235
2236// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2237// dprintf is used instead of fprintf to avoid needing to declare
2238// FILE and stderr.
2239#define debug(...) dprintf (2, __VA_ARGS__)
2240#define showlist(...) puts (#__VA_ARGS__)
2241#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2242static void
2243test_varargs_macros (void)
2244{
2245  int x = 1234;
2246  int y = 5678;
2247  debug ("Flag");
2248  debug ("X = %d\n", x);
2249  showlist (The first, second, and third items.);
2250  report (x>y, "x is %d but y is %d", x, y);
2251}
2252
2253// Check long long types.
2254#define BIG64 18446744073709551615ull
2255#define BIG32 4294967295ul
2256#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2257#if !BIG_OK
2258  #error "your preprocessor is broken"
2259#endif
2260#if BIG_OK
2261#else
2262  #error "your preprocessor is broken"
2263#endif
2264static long long int bignum = -9223372036854775807LL;
2265static unsigned long long int ubignum = BIG64;
2266
2267struct incomplete_array
2268{
2269  int datasize;
2270  double data[];
2271};
2272
2273struct named_init {
2274  int number;
2275  const wchar_t *name;
2276  double average;
2277};
2278
2279typedef const char *ccp;
2280
2281static inline int
2282test_restrict (ccp restrict text)
2283{
2284  // Iterate through items via the restricted pointer.
2285  // Also check for declarations in for loops.
2286  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2287    continue;
2288  return 0;
2289}
2290
2291// Check varargs and va_copy.
2292static bool
2293test_varargs (const char *format, ...)
2294{
2295  va_list args;
2296  va_start (args, format);
2297  va_list args_copy;
2298  va_copy (args_copy, args);
2299
2300  const char *str = "";
2301  int number = 0;
2302  float fnumber = 0;
2303
2304  while (*format)
2305    {
2306      switch (*format++)
2307	{
2308	case '\''s'\'': // string
2309	  str = va_arg (args_copy, const char *);
2310	  break;
2311	case '\''d'\'': // int
2312	  number = va_arg (args_copy, int);
2313	  break;
2314	case '\''f'\'': // float
2315	  fnumber = va_arg (args_copy, double);
2316	  break;
2317	default:
2318	  break;
2319	}
2320    }
2321  va_end (args_copy);
2322  va_end (args);
2323
2324  return *str && number && fnumber;
2325}
2326'
2327
2328# Test code for whether the C compiler supports C99 (body of main).
2329ac_c_conftest_c99_main='
2330  // Check bool.
2331  _Bool success = false;
2332  success |= (argc != 0);
2333
2334  // Check restrict.
2335  if (test_restrict ("String literal") == 0)
2336    success = true;
2337  char *restrict newvar = "Another string";
2338
2339  // Check varargs.
2340  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2341  test_varargs_macros ();
2342
2343  // Check flexible array members.
2344  struct incomplete_array *ia =
2345    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2346  ia->datasize = 10;
2347  for (int i = 0; i < ia->datasize; ++i)
2348    ia->data[i] = i * 1.234;
2349  // Work around memory leak warnings.
2350  free (ia);
2351
2352  // Check named initializers.
2353  struct named_init ni = {
2354    .number = 34,
2355    .name = L"Test wide string",
2356    .average = 543.34343,
2357  };
2358
2359  ni.number = 58;
2360
2361  int dynamic_array[ni.number];
2362  dynamic_array[0] = argv[0][0];
2363  dynamic_array[ni.number - 1] = 543;
2364
2365  // work around unused variable warnings
2366  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2367	 || dynamic_array[ni.number - 1] != 543);
2368'
2369
2370# Test code for whether the C compiler supports C11 (global declarations)
2371ac_c_conftest_c11_globals='
2372/* Does the compiler advertise C11 conformance? */
2373#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2374# error "Compiler does not advertise C11 conformance"
2375#endif
2376
2377// Check _Alignas.
2378char _Alignas (double) aligned_as_double;
2379char _Alignas (0) no_special_alignment;
2380extern char aligned_as_int;
2381char _Alignas (0) _Alignas (int) aligned_as_int;
2382
2383// Check _Alignof.
2384enum
2385{
2386  int_alignment = _Alignof (int),
2387  int_array_alignment = _Alignof (int[100]),
2388  char_alignment = _Alignof (char)
2389};
2390_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2391
2392// Check _Noreturn.
2393int _Noreturn does_not_return (void) { for (;;) continue; }
2394
2395// Check _Static_assert.
2396struct test_static_assert
2397{
2398  int x;
2399  _Static_assert (sizeof (int) <= sizeof (long int),
2400                  "_Static_assert does not work in struct");
2401  long int y;
2402};
2403
2404// Check UTF-8 literals.
2405#define u8 syntax error!
2406char const utf8_literal[] = u8"happens to be ASCII" "another string";
2407
2408// Check duplicate typedefs.
2409typedef long *long_ptr;
2410typedef long int *long_ptr;
2411typedef long_ptr long_ptr;
2412
2413// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2414struct anonymous
2415{
2416  union {
2417    struct { int i; int j; };
2418    struct { int k; long int l; } w;
2419  };
2420  int m;
2421} v1;
2422'
2423
2424# Test code for whether the C compiler supports C11 (body of main).
2425ac_c_conftest_c11_main='
2426  _Static_assert ((offsetof (struct anonymous, i)
2427		   == offsetof (struct anonymous, w.k)),
2428		  "Anonymous union alignment botch");
2429  v1.i = 2;
2430  v1.w.k = 5;
2431  ok |= v1.i != 5;
2432'
2433
2434# Test code for whether the C compiler supports C11 (complete).
2435ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2436${ac_c_conftest_c99_globals}
2437${ac_c_conftest_c11_globals}
2438
2439int
2440main (int argc, char **argv)
2441{
2442  int ok = 0;
2443  ${ac_c_conftest_c89_main}
2444  ${ac_c_conftest_c99_main}
2445  ${ac_c_conftest_c11_main}
2446  return ok;
2447}
2448"
2449
2450# Test code for whether the C compiler supports C99 (complete).
2451ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2452${ac_c_conftest_c99_globals}
2453
2454int
2455main (int argc, char **argv)
2456{
2457  int ok = 0;
2458  ${ac_c_conftest_c89_main}
2459  ${ac_c_conftest_c99_main}
2460  return ok;
2461}
2462"
2463
2464# Test code for whether the C compiler supports C89 (complete).
2465ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2466
2467int
2468main (int argc, char **argv)
2469{
2470  int ok = 0;
2471  ${ac_c_conftest_c89_main}
2472  return ok;
2473}
2474"
2475
2476as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2477as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2478as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2479as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2480as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2481as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2482as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2483as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2484as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2485as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2486
2487# Auxiliary files required by this configure script.
2488ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2489
2490# Locations in which to look for auxiliary files.
2491ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2492
2493# Search for a directory containing all of the required auxiliary files,
2494# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2495# If we don't find one directory that contains all the files we need,
2496# we report the set of missing files from the *first* directory in
2497# $ac_aux_dir_candidates and give up.
2498ac_missing_aux_files=""
2499ac_first_candidate=:
2500printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502as_found=false
2503for as_dir in $ac_aux_dir_candidates
2504do
2505  IFS=$as_save_IFS
2506  case $as_dir in #(((
2507    '') as_dir=./ ;;
2508    */) ;;
2509    *) as_dir=$as_dir/ ;;
2510  esac
2511  as_found=:
2512
2513  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2514  ac_aux_dir_found=yes
2515  ac_install_sh=
2516  for ac_aux in $ac_aux_files
2517  do
2518    # As a special case, if "install-sh" is required, that requirement
2519    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2520    # and $ac_install_sh is set appropriately for whichever one is found.
2521    if test x"$ac_aux" = x"install-sh"
2522    then
2523      if test -f "${as_dir}install-sh"; then
2524        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2525        ac_install_sh="${as_dir}install-sh -c"
2526      elif test -f "${as_dir}install.sh"; then
2527        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2528        ac_install_sh="${as_dir}install.sh -c"
2529      elif test -f "${as_dir}shtool"; then
2530        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2531        ac_install_sh="${as_dir}shtool install -c"
2532      else
2533        ac_aux_dir_found=no
2534        if $ac_first_candidate; then
2535          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2536        else
2537          break
2538        fi
2539      fi
2540    else
2541      if test -f "${as_dir}${ac_aux}"; then
2542        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2543      else
2544        ac_aux_dir_found=no
2545        if $ac_first_candidate; then
2546          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2547        else
2548          break
2549        fi
2550      fi
2551    fi
2552  done
2553  if test "$ac_aux_dir_found" = yes; then
2554    ac_aux_dir="$as_dir"
2555    break
2556  fi
2557  ac_first_candidate=false
2558
2559  as_found=false
2560done
2561IFS=$as_save_IFS
2562if $as_found
2563then :
2564
2565else case e in #(
2566  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2567esac
2568fi
2569
2570
2571# These three variables are undocumented and unsupported,
2572# and are intended to be withdrawn in a future Autoconf release.
2573# They can cause serious problems if a builder's source tree is in a directory
2574# whose full name contains unusual characters.
2575if test -f "${ac_aux_dir}config.guess"; then
2576  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2577fi
2578if test -f "${ac_aux_dir}config.sub"; then
2579  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2580fi
2581if test -f "$ac_aux_dir/configure"; then
2582  ac_configure="$SHELL ${ac_aux_dir}configure"
2583fi
2584
2585# Check that the precious variables saved in the cache have kept the same
2586# value.
2587ac_cache_corrupted=false
2588for ac_var in $ac_precious_vars; do
2589  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2590  eval ac_new_set=\$ac_env_${ac_var}_set
2591  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2592  eval ac_new_val=\$ac_env_${ac_var}_value
2593  case $ac_old_set,$ac_new_set in
2594    set,)
2595      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2596printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2597      ac_cache_corrupted=: ;;
2598    ,set)
2599      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2600printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2601      ac_cache_corrupted=: ;;
2602    ,);;
2603    *)
2604      if test "x$ac_old_val" != "x$ac_new_val"; then
2605	# differences in whitespace do not lead to failure.
2606	ac_old_val_w=`echo x $ac_old_val`
2607	ac_new_val_w=`echo x $ac_new_val`
2608	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2609	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2610printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2611	  ac_cache_corrupted=:
2612	else
2613	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2614printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2615	  eval $ac_var=\$ac_old_val
2616	fi
2617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2618printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2620printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2621      fi;;
2622  esac
2623  # Pass precious variables to config.status.
2624  if test "$ac_new_set" = set; then
2625    case $ac_new_val in
2626    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2627    *) ac_arg=$ac_var=$ac_new_val ;;
2628    esac
2629    case " $ac_configure_args " in
2630      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2631      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2632    esac
2633  fi
2634done
2635if $ac_cache_corrupted; then
2636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2637printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2639printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2640  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2641	    and start over" "$LINENO" 5
2642fi
2643## -------------------- ##
2644## Main body of script. ##
2645## -------------------- ##
2646
2647ac_ext=c
2648ac_cpp='$CPP $CPPFLAGS'
2649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652
2653
2654
2655ac_config_headers="$ac_config_headers config.h"
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669# Expand $ac_aux_dir to an absolute path.
2670am_aux_dir=`cd "$ac_aux_dir" && pwd`
2671
2672ac_ext=c
2673ac_cpp='$CPP $CPPFLAGS'
2674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677if test -n "$ac_tool_prefix"; then
2678  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2679set dummy ${ac_tool_prefix}gcc; ac_word=$2
2680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681printf %s "checking for $ac_word... " >&6; }
2682if test ${ac_cv_prog_CC+y}
2683then :
2684  printf %s "(cached) " >&6
2685else case e in #(
2686  e) if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  case $as_dir in #(((
2694    '') as_dir=./ ;;
2695    */) ;;
2696    *) as_dir=$as_dir/ ;;
2697  esac
2698    for ac_exec_ext in '' $ac_executable_extensions; do
2699  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2700    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2701    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705  done
2706IFS=$as_save_IFS
2707
2708fi ;;
2709esac
2710fi
2711CC=$ac_cv_prog_CC
2712if test -n "$CC"; then
2713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714printf "%s\n" "$CC" >&6; }
2715else
2716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717printf "%s\n" "no" >&6; }
2718fi
2719
2720
2721fi
2722if test -z "$ac_cv_prog_CC"; then
2723  ac_ct_CC=$CC
2724  # Extract the first word of "gcc", so it can be a program name with args.
2725set dummy gcc; ac_word=$2
2726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727printf %s "checking for $ac_word... " >&6; }
2728if test ${ac_cv_prog_ac_ct_CC+y}
2729then :
2730  printf %s "(cached) " >&6
2731else case e in #(
2732  e) if test -n "$ac_ct_CC"; then
2733  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  case $as_dir in #(((
2740    '') as_dir=./ ;;
2741    */) ;;
2742    *) as_dir=$as_dir/ ;;
2743  esac
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2746    ac_cv_prog_ac_ct_CC="gcc"
2747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi ;;
2755esac
2756fi
2757ac_ct_CC=$ac_cv_prog_ac_ct_CC
2758if test -n "$ac_ct_CC"; then
2759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2760printf "%s\n" "$ac_ct_CC" >&6; }
2761else
2762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763printf "%s\n" "no" >&6; }
2764fi
2765
2766  if test "x$ac_ct_CC" = x; then
2767    CC=""
2768  else
2769    case $cross_compiling:$ac_tool_warned in
2770yes:)
2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773ac_tool_warned=yes ;;
2774esac
2775    CC=$ac_ct_CC
2776  fi
2777else
2778  CC="$ac_cv_prog_CC"
2779fi
2780
2781if test -z "$CC"; then
2782          if test -n "$ac_tool_prefix"; then
2783    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2784set dummy ${ac_tool_prefix}cc; ac_word=$2
2785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786printf %s "checking for $ac_word... " >&6; }
2787if test ${ac_cv_prog_CC+y}
2788then :
2789  printf %s "(cached) " >&6
2790else case e in #(
2791  e) if test -n "$CC"; then
2792  ac_cv_prog_CC="$CC" # Let the user override the test.
2793else
2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795for as_dir in $PATH
2796do
2797  IFS=$as_save_IFS
2798  case $as_dir in #(((
2799    '') as_dir=./ ;;
2800    */) ;;
2801    *) as_dir=$as_dir/ ;;
2802  esac
2803    for ac_exec_ext in '' $ac_executable_extensions; do
2804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2805    ac_cv_prog_CC="${ac_tool_prefix}cc"
2806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2807    break 2
2808  fi
2809done
2810  done
2811IFS=$as_save_IFS
2812
2813fi ;;
2814esac
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
2818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819printf "%s\n" "$CC" >&6; }
2820else
2821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822printf "%s\n" "no" >&6; }
2823fi
2824
2825
2826  fi
2827fi
2828if test -z "$CC"; then
2829  # Extract the first word of "cc", so it can be a program name with args.
2830set dummy cc; ac_word=$2
2831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832printf %s "checking for $ac_word... " >&6; }
2833if test ${ac_cv_prog_CC+y}
2834then :
2835  printf %s "(cached) " >&6
2836else case e in #(
2837  e) if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840  ac_prog_rejected=no
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  case $as_dir in #(((
2846    '') as_dir=./ ;;
2847    */) ;;
2848    *) as_dir=$as_dir/ ;;
2849  esac
2850    for ac_exec_ext in '' $ac_executable_extensions; do
2851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853       ac_prog_rejected=yes
2854       continue
2855     fi
2856    ac_cv_prog_CC="cc"
2857    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864if test $ac_prog_rejected = yes; then
2865  # We found a bogon in the path, so make sure we never use it.
2866  set dummy $ac_cv_prog_CC
2867  shift
2868  if test $# != 0; then
2869    # We chose a different compiler from the bogus one.
2870    # However, it has the same basename, so the bogon will be chosen
2871    # first if we set CC to just the basename; use the full file name.
2872    shift
2873    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2874  fi
2875fi
2876fi ;;
2877esac
2878fi
2879CC=$ac_cv_prog_CC
2880if test -n "$CC"; then
2881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882printf "%s\n" "$CC" >&6; }
2883else
2884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885printf "%s\n" "no" >&6; }
2886fi
2887
2888
2889fi
2890if test -z "$CC"; then
2891  if test -n "$ac_tool_prefix"; then
2892  for ac_prog in cl.exe
2893  do
2894    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2895set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897printf %s "checking for $ac_word... " >&6; }
2898if test ${ac_cv_prog_CC+y}
2899then :
2900  printf %s "(cached) " >&6
2901else case e in #(
2902  e) if test -n "$CC"; then
2903  ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  case $as_dir in #(((
2910    '') as_dir=./ ;;
2911    */) ;;
2912    *) as_dir=$as_dir/ ;;
2913  esac
2914    for ac_exec_ext in '' $ac_executable_extensions; do
2915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2916    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918    break 2
2919  fi
2920done
2921  done
2922IFS=$as_save_IFS
2923
2924fi ;;
2925esac
2926fi
2927CC=$ac_cv_prog_CC
2928if test -n "$CC"; then
2929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930printf "%s\n" "$CC" >&6; }
2931else
2932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933printf "%s\n" "no" >&6; }
2934fi
2935
2936
2937    test -n "$CC" && break
2938  done
2939fi
2940if test -z "$CC"; then
2941  ac_ct_CC=$CC
2942  for ac_prog in cl.exe
2943do
2944  # Extract the first word of "$ac_prog", so it can be a program name with args.
2945set dummy $ac_prog; ac_word=$2
2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947printf %s "checking for $ac_word... " >&6; }
2948if test ${ac_cv_prog_ac_ct_CC+y}
2949then :
2950  printf %s "(cached) " >&6
2951else case e in #(
2952  e) if test -n "$ac_ct_CC"; then
2953  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  case $as_dir in #(((
2960    '') as_dir=./ ;;
2961    */) ;;
2962    *) as_dir=$as_dir/ ;;
2963  esac
2964    for ac_exec_ext in '' $ac_executable_extensions; do
2965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966    ac_cv_prog_ac_ct_CC="$ac_prog"
2967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968    break 2
2969  fi
2970done
2971  done
2972IFS=$as_save_IFS
2973
2974fi ;;
2975esac
2976fi
2977ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978if test -n "$ac_ct_CC"; then
2979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980printf "%s\n" "$ac_ct_CC" >&6; }
2981else
2982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983printf "%s\n" "no" >&6; }
2984fi
2985
2986
2987  test -n "$ac_ct_CC" && break
2988done
2989
2990  if test "x$ac_ct_CC" = x; then
2991    CC=""
2992  else
2993    case $cross_compiling:$ac_tool_warned in
2994yes:)
2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997ac_tool_warned=yes ;;
2998esac
2999    CC=$ac_ct_CC
3000  fi
3001fi
3002
3003fi
3004if test -z "$CC"; then
3005  if test -n "$ac_tool_prefix"; then
3006  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3007set dummy ${ac_tool_prefix}clang; ac_word=$2
3008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009printf %s "checking for $ac_word... " >&6; }
3010if test ${ac_cv_prog_CC+y}
3011then :
3012  printf %s "(cached) " >&6
3013else case e in #(
3014  e) if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  case $as_dir in #(((
3022    '') as_dir=./ ;;
3023    */) ;;
3024    *) as_dir=$as_dir/ ;;
3025  esac
3026    for ac_exec_ext in '' $ac_executable_extensions; do
3027  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3028    ac_cv_prog_CC="${ac_tool_prefix}clang"
3029    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3030    break 2
3031  fi
3032done
3033  done
3034IFS=$as_save_IFS
3035
3036fi ;;
3037esac
3038fi
3039CC=$ac_cv_prog_CC
3040if test -n "$CC"; then
3041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042printf "%s\n" "$CC" >&6; }
3043else
3044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045printf "%s\n" "no" >&6; }
3046fi
3047
3048
3049fi
3050if test -z "$ac_cv_prog_CC"; then
3051  ac_ct_CC=$CC
3052  # Extract the first word of "clang", so it can be a program name with args.
3053set dummy clang; ac_word=$2
3054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055printf %s "checking for $ac_word... " >&6; }
3056if test ${ac_cv_prog_ac_ct_CC+y}
3057then :
3058  printf %s "(cached) " >&6
3059else case e in #(
3060  e) if test -n "$ac_ct_CC"; then
3061  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066  IFS=$as_save_IFS
3067  case $as_dir in #(((
3068    '') as_dir=./ ;;
3069    */) ;;
3070    *) as_dir=$as_dir/ ;;
3071  esac
3072    for ac_exec_ext in '' $ac_executable_extensions; do
3073  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3074    ac_cv_prog_ac_ct_CC="clang"
3075    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3076    break 2
3077  fi
3078done
3079  done
3080IFS=$as_save_IFS
3081
3082fi ;;
3083esac
3084fi
3085ac_ct_CC=$ac_cv_prog_ac_ct_CC
3086if test -n "$ac_ct_CC"; then
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3088printf "%s\n" "$ac_ct_CC" >&6; }
3089else
3090  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091printf "%s\n" "no" >&6; }
3092fi
3093
3094  if test "x$ac_ct_CC" = x; then
3095    CC=""
3096  else
3097    case $cross_compiling:$ac_tool_warned in
3098yes:)
3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101ac_tool_warned=yes ;;
3102esac
3103    CC=$ac_ct_CC
3104  fi
3105else
3106  CC="$ac_cv_prog_CC"
3107fi
3108
3109fi
3110
3111
3112test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3113printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3114as_fn_error $? "no acceptable C compiler found in \$PATH
3115See 'config.log' for more details" "$LINENO" 5; }
3116
3117# Provide some information about the compiler.
3118printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3119set X $ac_compile
3120ac_compiler=$2
3121for ac_option in --version -v -V -qversion -version; do
3122  { { ac_try="$ac_compiler $ac_option >&5"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128printf "%s\n" "$ac_try_echo"; } >&5
3129  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3130  ac_status=$?
3131  if test -s conftest.err; then
3132    sed '10a\
3133... rest of stderr output deleted ...
3134         10q' conftest.err >conftest.er1
3135    cat conftest.er1 >&5
3136  fi
3137  rm -f conftest.er1 conftest.err
3138  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139  test $ac_status = 0; }
3140done
3141
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144
3145int
3146main (void)
3147{
3148
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153ac_clean_files_save=$ac_clean_files
3154ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3155# Try to create an executable without -o first, disregard a.out.
3156# It will help us diagnose broken compilers, and finding out an intuition
3157# of exeext.
3158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3159printf %s "checking whether the C compiler works... " >&6; }
3160ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3161
3162# The possible output files:
3163ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3164
3165ac_rmfiles=
3166for ac_file in $ac_files
3167do
3168  case $ac_file in
3169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3171  esac
3172done
3173rm -f $ac_rmfiles
3174
3175if { { ac_try="$ac_link_default"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181printf "%s\n" "$ac_try_echo"; } >&5
3182  (eval "$ac_link_default") 2>&5
3183  ac_status=$?
3184  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185  test $ac_status = 0; }
3186then :
3187  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3188# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3189# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3190# so that the user can short-circuit this test for compilers unknown to
3191# Autoconf.
3192for ac_file in $ac_files ''
3193do
3194  test -f "$ac_file" || continue
3195  case $ac_file in
3196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3197	;;
3198    [ab].out )
3199	# We found the default executable, but exeext='' is most
3200	# certainly right.
3201	break;;
3202    *.* )
3203	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3204	then :; else
3205	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206	fi
3207	# We set ac_cv_exeext here because the later test for it is not
3208	# safe: cross compilers may not add the suffix if given an '-o'
3209	# argument, so we may need to know it at that point already.
3210	# Even if this section looks crufty: it has the advantage of
3211	# actually working.
3212	break;;
3213    * )
3214	break;;
3215  esac
3216done
3217test "$ac_cv_exeext" = no && ac_cv_exeext=
3218
3219else case e in #(
3220  e) ac_file='' ;;
3221esac
3222fi
3223if test -z "$ac_file"
3224then :
3225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226printf "%s\n" "no" >&6; }
3227printf "%s\n" "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3231printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3232as_fn_error 77 "C compiler cannot create executables
3233See 'config.log' for more details" "$LINENO" 5; }
3234else case e in #(
3235  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236printf "%s\n" "yes" >&6; } ;;
3237esac
3238fi
3239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3240printf %s "checking for C compiler default output file name... " >&6; }
3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3242printf "%s\n" "$ac_file" >&6; }
3243ac_exeext=$ac_cv_exeext
3244
3245rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3246ac_clean_files=$ac_clean_files_save
3247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3248printf %s "checking for suffix of executables... " >&6; }
3249if { { ac_try="$ac_link"
3250case "(($ac_try" in
3251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252  *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255printf "%s\n" "$ac_try_echo"; } >&5
3256  (eval "$ac_link") 2>&5
3257  ac_status=$?
3258  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259  test $ac_status = 0; }
3260then :
3261  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3262# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3263# work properly (i.e., refer to 'conftest.exe'), while it won't with
3264# 'rm'.
3265for ac_file in conftest.exe conftest conftest.*; do
3266  test -f "$ac_file" || continue
3267  case $ac_file in
3268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270	  break;;
3271    * ) break;;
3272  esac
3273done
3274else case e in #(
3275  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3276printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3277as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3278See 'config.log' for more details" "$LINENO" 5; } ;;
3279esac
3280fi
3281rm -f conftest conftest$ac_cv_exeext
3282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3283printf "%s\n" "$ac_cv_exeext" >&6; }
3284
3285rm -f conftest.$ac_ext
3286EXEEXT=$ac_cv_exeext
3287ac_exeext=$EXEEXT
3288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289/* end confdefs.h.  */
3290#include <stdio.h>
3291int
3292main (void)
3293{
3294FILE *f = fopen ("conftest.out", "w");
3295 if (!f)
3296  return 1;
3297 return ferror (f) || fclose (f) != 0;
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303ac_clean_files="$ac_clean_files conftest.out"
3304# Check that the compiler produces executables we can run.  If not, either
3305# the compiler is broken, or we cross compile.
3306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3307printf %s "checking whether we are cross compiling... " >&6; }
3308if test "$cross_compiling" != yes; then
3309  { { ac_try="$ac_link"
3310case "(($ac_try" in
3311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312  *) ac_try_echo=$ac_try;;
3313esac
3314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315printf "%s\n" "$ac_try_echo"; } >&5
3316  (eval "$ac_link") 2>&5
3317  ac_status=$?
3318  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319  test $ac_status = 0; }
3320  if { ac_try='./conftest$ac_cv_exeext'
3321  { { case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326printf "%s\n" "$ac_try_echo"; } >&5
3327  (eval "$ac_try") 2>&5
3328  ac_status=$?
3329  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330  test $ac_status = 0; }; }; then
3331    cross_compiling=no
3332  else
3333    if test "$cross_compiling" = maybe; then
3334	cross_compiling=yes
3335    else
3336	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3337printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3338as_fn_error 77 "cannot run C compiled programs.
3339If you meant to cross compile, use '--host'.
3340See 'config.log' for more details" "$LINENO" 5; }
3341    fi
3342  fi
3343fi
3344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3345printf "%s\n" "$cross_compiling" >&6; }
3346
3347rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3348  conftest.o conftest.obj conftest.out
3349ac_clean_files=$ac_clean_files_save
3350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3351printf %s "checking for suffix of object files... " >&6; }
3352if test ${ac_cv_objext+y}
3353then :
3354  printf %s "(cached) " >&6
3355else case e in #(
3356  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h.  */
3358
3359int
3360main (void)
3361{
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.o conftest.obj
3368if { { ac_try="$ac_compile"
3369case "(($ac_try" in
3370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371  *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374printf "%s\n" "$ac_try_echo"; } >&5
3375  (eval "$ac_compile") 2>&5
3376  ac_status=$?
3377  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }
3379then :
3380  for ac_file in conftest.o conftest.obj conftest.*; do
3381  test -f "$ac_file" || continue;
3382  case $ac_file in
3383    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3384    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385       break;;
3386  esac
3387done
3388else case e in #(
3389  e) printf "%s\n" "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3393printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3394as_fn_error $? "cannot compute suffix of object files: cannot compile
3395See 'config.log' for more details" "$LINENO" 5; } ;;
3396esac
3397fi
3398rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3399esac
3400fi
3401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3402printf "%s\n" "$ac_cv_objext" >&6; }
3403OBJEXT=$ac_cv_objext
3404ac_objext=$OBJEXT
3405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3406printf %s "checking whether the compiler supports GNU C... " >&6; }
3407if test ${ac_cv_c_compiler_gnu+y}
3408then :
3409  printf %s "(cached) " >&6
3410else case e in #(
3411  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413
3414int
3415main (void)
3416{
3417#ifndef __GNUC__
3418       choke me
3419#endif
3420
3421  ;
3422  return 0;
3423}
3424_ACEOF
3425if ac_fn_c_try_compile "$LINENO"
3426then :
3427  ac_compiler_gnu=yes
3428else case e in #(
3429  e) ac_compiler_gnu=no ;;
3430esac
3431fi
3432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3433ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434 ;;
3435esac
3436fi
3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3439ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440
3441if test $ac_compiler_gnu = yes; then
3442  GCC=yes
3443else
3444  GCC=
3445fi
3446ac_test_CFLAGS=${CFLAGS+y}
3447ac_save_CFLAGS=$CFLAGS
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449printf %s "checking whether $CC accepts -g... " >&6; }
3450if test ${ac_cv_prog_cc_g+y}
3451then :
3452  printf %s "(cached) " >&6
3453else case e in #(
3454  e) ac_save_c_werror_flag=$ac_c_werror_flag
3455   ac_c_werror_flag=yes
3456   ac_cv_prog_cc_g=no
3457   CFLAGS="-g"
3458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h.  */
3460
3461int
3462main (void)
3463{
3464
3465  ;
3466  return 0;
3467}
3468_ACEOF
3469if ac_fn_c_try_compile "$LINENO"
3470then :
3471  ac_cv_prog_cc_g=yes
3472else case e in #(
3473  e) CFLAGS=""
3474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475/* end confdefs.h.  */
3476
3477int
3478main (void)
3479{
3480
3481  ;
3482  return 0;
3483}
3484_ACEOF
3485if ac_fn_c_try_compile "$LINENO"
3486then :
3487
3488else case e in #(
3489  e) ac_c_werror_flag=$ac_save_c_werror_flag
3490	 CFLAGS="-g"
3491	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493
3494int
3495main (void)
3496{
3497
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502if ac_fn_c_try_compile "$LINENO"
3503then :
3504  ac_cv_prog_cc_g=yes
3505fi
3506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3507esac
3508fi
3509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3510esac
3511fi
3512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3513   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3514esac
3515fi
3516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3517printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3518if test $ac_test_CFLAGS; then
3519  CFLAGS=$ac_save_CFLAGS
3520elif test $ac_cv_prog_cc_g = yes; then
3521  if test "$GCC" = yes; then
3522    CFLAGS="-g -O2"
3523  else
3524    CFLAGS="-g"
3525  fi
3526else
3527  if test "$GCC" = yes; then
3528    CFLAGS="-O2"
3529  else
3530    CFLAGS=
3531  fi
3532fi
3533ac_prog_cc_stdc=no
3534if test x$ac_prog_cc_stdc = xno
3535then :
3536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3537printf %s "checking for $CC option to enable C11 features... " >&6; }
3538if test ${ac_cv_prog_cc_c11+y}
3539then :
3540  printf %s "(cached) " >&6
3541else case e in #(
3542  e) ac_cv_prog_cc_c11=no
3543ac_save_CC=$CC
3544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545/* end confdefs.h.  */
3546$ac_c_conftest_c11_program
3547_ACEOF
3548for ac_arg in '' -std=gnu11
3549do
3550  CC="$ac_save_CC $ac_arg"
3551  if ac_fn_c_try_compile "$LINENO"
3552then :
3553  ac_cv_prog_cc_c11=$ac_arg
3554fi
3555rm -f core conftest.err conftest.$ac_objext conftest.beam
3556  test "x$ac_cv_prog_cc_c11" != "xno" && break
3557done
3558rm -f conftest.$ac_ext
3559CC=$ac_save_CC ;;
3560esac
3561fi
3562
3563if test "x$ac_cv_prog_cc_c11" = xno
3564then :
3565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3566printf "%s\n" "unsupported" >&6; }
3567else case e in #(
3568  e) if test "x$ac_cv_prog_cc_c11" = x
3569then :
3570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3571printf "%s\n" "none needed" >&6; }
3572else case e in #(
3573  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3574printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3575     CC="$CC $ac_cv_prog_cc_c11" ;;
3576esac
3577fi
3578  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3579  ac_prog_cc_stdc=c11 ;;
3580esac
3581fi
3582fi
3583if test x$ac_prog_cc_stdc = xno
3584then :
3585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3586printf %s "checking for $CC option to enable C99 features... " >&6; }
3587if test ${ac_cv_prog_cc_c99+y}
3588then :
3589  printf %s "(cached) " >&6
3590else case e in #(
3591  e) ac_cv_prog_cc_c99=no
3592ac_save_CC=$CC
3593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595$ac_c_conftest_c99_program
3596_ACEOF
3597for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3598do
3599  CC="$ac_save_CC $ac_arg"
3600  if ac_fn_c_try_compile "$LINENO"
3601then :
3602  ac_cv_prog_cc_c99=$ac_arg
3603fi
3604rm -f core conftest.err conftest.$ac_objext conftest.beam
3605  test "x$ac_cv_prog_cc_c99" != "xno" && break
3606done
3607rm -f conftest.$ac_ext
3608CC=$ac_save_CC ;;
3609esac
3610fi
3611
3612if test "x$ac_cv_prog_cc_c99" = xno
3613then :
3614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615printf "%s\n" "unsupported" >&6; }
3616else case e in #(
3617  e) if test "x$ac_cv_prog_cc_c99" = x
3618then :
3619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620printf "%s\n" "none needed" >&6; }
3621else case e in #(
3622  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3623printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3624     CC="$CC $ac_cv_prog_cc_c99" ;;
3625esac
3626fi
3627  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3628  ac_prog_cc_stdc=c99 ;;
3629esac
3630fi
3631fi
3632if test x$ac_prog_cc_stdc = xno
3633then :
3634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3635printf %s "checking for $CC option to enable C89 features... " >&6; }
3636if test ${ac_cv_prog_cc_c89+y}
3637then :
3638  printf %s "(cached) " >&6
3639else case e in #(
3640  e) ac_cv_prog_cc_c89=no
3641ac_save_CC=$CC
3642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644$ac_c_conftest_c89_program
3645_ACEOF
3646for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647do
3648  CC="$ac_save_CC $ac_arg"
3649  if ac_fn_c_try_compile "$LINENO"
3650then :
3651  ac_cv_prog_cc_c89=$ac_arg
3652fi
3653rm -f core conftest.err conftest.$ac_objext conftest.beam
3654  test "x$ac_cv_prog_cc_c89" != "xno" && break
3655done
3656rm -f conftest.$ac_ext
3657CC=$ac_save_CC ;;
3658esac
3659fi
3660
3661if test "x$ac_cv_prog_cc_c89" = xno
3662then :
3663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664printf "%s\n" "unsupported" >&6; }
3665else case e in #(
3666  e) if test "x$ac_cv_prog_cc_c89" = x
3667then :
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3669printf "%s\n" "none needed" >&6; }
3670else case e in #(
3671  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3673     CC="$CC $ac_cv_prog_cc_c89" ;;
3674esac
3675fi
3676  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3677  ac_prog_cc_stdc=c89 ;;
3678esac
3679fi
3680fi
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688
3689  ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3695printf %s "checking whether $CC understands -c and -o together... " >&6; }
3696if test ${am_cv_prog_cc_c_o+y}
3697then :
3698  printf %s "(cached) " >&6
3699else case e in #(
3700  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h.  */
3702
3703int
3704main (void)
3705{
3706
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711  # Make sure it works both with $CC and with simple cc.
3712  # Following AC_PROG_CC_C_O, we do the test twice because some
3713  # compilers refuse to overwrite an existing .o file with -o,
3714  # though they will create one.
3715  am_cv_prog_cc_c_o=yes
3716  for am_i in 1 2; do
3717    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3718   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } \
3722         && test -f conftest2.$ac_objext; then
3723      : OK
3724    else
3725      am_cv_prog_cc_c_o=no
3726      break
3727    fi
3728  done
3729  rm -f core conftest*
3730  unset am_i ;;
3731esac
3732fi
3733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3734printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3735if test "$am_cv_prog_cc_c_o" != yes; then
3736   # Losing compiler, so override with the script.
3737   # FIXME: It is wrong to rewrite CC.
3738   # But if we don't then we get into trouble of one sort or another.
3739   # A longer-term fix would be to have automake use am__CC in this case,
3740   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3741   CC="$am_aux_dir/compile $CC"
3742fi
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750
3751ac_header= ac_cache=
3752for ac_item in $ac_header_c_list
3753do
3754  if test $ac_cache; then
3755    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3756    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3757      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3758    fi
3759    ac_header= ac_cache=
3760  elif test $ac_header; then
3761    ac_cache=$ac_item
3762  else
3763    ac_header=$ac_item
3764  fi
3765done
3766
3767
3768
3769
3770
3771
3772
3773
3774if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3775then :
3776
3777printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3778
3779fi
3780
3781
3782
3783
3784
3785
3786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3787printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3788if test ${ac_cv_safe_to_define___extensions__+y}
3789then :
3790  printf %s "(cached) " >&6
3791else case e in #(
3792  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794
3795#         define __EXTENSIONS__ 1
3796          $ac_includes_default
3797int
3798main (void)
3799{
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805if ac_fn_c_try_compile "$LINENO"
3806then :
3807  ac_cv_safe_to_define___extensions__=yes
3808else case e in #(
3809  e) ac_cv_safe_to_define___extensions__=no ;;
3810esac
3811fi
3812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3813esac
3814fi
3815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3816printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3817
3818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3819printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3820if test ${ac_cv_should_define__xopen_source+y}
3821then :
3822  printf %s "(cached) " >&6
3823else case e in #(
3824  e) ac_cv_should_define__xopen_source=no
3825    if test $ac_cv_header_wchar_h = yes
3826then :
3827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h.  */
3829
3830          #include <wchar.h>
3831          mbstate_t x;
3832int
3833main (void)
3834{
3835
3836  ;
3837  return 0;
3838}
3839_ACEOF
3840if ac_fn_c_try_compile "$LINENO"
3841then :
3842
3843else case e in #(
3844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846
3847            #define _XOPEN_SOURCE 500
3848            #include <wchar.h>
3849            mbstate_t x;
3850int
3851main (void)
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858if ac_fn_c_try_compile "$LINENO"
3859then :
3860  ac_cv_should_define__xopen_source=yes
3861fi
3862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3863esac
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3866fi ;;
3867esac
3868fi
3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3870printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3871
3872  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3873
3874  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3875
3876  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3877
3878  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3879
3880  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3881
3882  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3883
3884  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3885
3886  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3887
3888  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3889
3890  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3891
3892  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3893
3894  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3895
3896  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3897
3898  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3899
3900  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3901
3902  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3903
3904  if test $ac_cv_header_minix_config_h = yes
3905then :
3906  MINIX=yes
3907    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3908
3909    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3910
3911    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3912
3913else case e in #(
3914  e) MINIX= ;;
3915esac
3916fi
3917  if test $ac_cv_safe_to_define___extensions__ = yes
3918then :
3919  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3920
3921fi
3922  if test $ac_cv_should_define__xopen_source = yes
3923then :
3924  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3925
3926fi
3927
3928
3929# Initialize Automake
3930am__api_version='1.17'
3931
3932
3933  # Find a good install program.  We prefer a C program (faster),
3934# so one script is as good as another.  But avoid the broken or
3935# incompatible versions:
3936# SysV /etc/install, /usr/sbin/install
3937# SunOS /usr/etc/install
3938# IRIX /sbin/install
3939# AIX /bin/install
3940# AmigaOS /C/install, which installs bootblocks on floppy discs
3941# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3942# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3943# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3944# OS/2's system install, which has a completely different semantic
3945# ./install, which can be erroneously created by make from ./install.sh.
3946# Reject install programs that cannot install multiple files.
3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3948printf %s "checking for a BSD-compatible install... " >&6; }
3949if test -z "$INSTALL"; then
3950if test ${ac_cv_path_install+y}
3951then :
3952  printf %s "(cached) " >&6
3953else case e in #(
3954  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957  IFS=$as_save_IFS
3958  case $as_dir in #(((
3959    '') as_dir=./ ;;
3960    */) ;;
3961    *) as_dir=$as_dir/ ;;
3962  esac
3963    # Account for fact that we put trailing slashes in our PATH walk.
3964case $as_dir in #((
3965  ./ | /[cC]/* | \
3966  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3967  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3968  /usr/ucb/* ) ;;
3969  *)
3970    # OSF1 and SCO ODT 3.0 have their own names for install.
3971    # Don't use installbsd from OSF since it installs stuff as root
3972    # by default.
3973    for ac_prog in ginstall scoinst install; do
3974      for ac_exec_ext in '' $ac_executable_extensions; do
3975	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3976	  if test $ac_prog = install &&
3977	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3978	    # AIX install.  It has an incompatible calling convention.
3979	    :
3980	  elif test $ac_prog = install &&
3981	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3982	    # program-specific install script used by HP pwplus--don't use.
3983	    :
3984	  else
3985	    rm -rf conftest.one conftest.two conftest.dir
3986	    echo one > conftest.one
3987	    echo two > conftest.two
3988	    mkdir conftest.dir
3989	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3990	      test -s conftest.one && test -s conftest.two &&
3991	      test -s conftest.dir/conftest.one &&
3992	      test -s conftest.dir/conftest.two
3993	    then
3994	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3995	      break 3
3996	    fi
3997	  fi
3998	fi
3999      done
4000    done
4001    ;;
4002esac
4003
4004  done
4005IFS=$as_save_IFS
4006
4007rm -rf conftest.one conftest.two conftest.dir
4008 ;;
4009esac
4010fi
4011  if test ${ac_cv_path_install+y}; then
4012    INSTALL=$ac_cv_path_install
4013  else
4014    # As a last resort, use the slow shell script.  Don't cache a
4015    # value for INSTALL within a source directory, because that will
4016    # break other packages using the cache if that directory is
4017    # removed, or if the value is a relative name.
4018    INSTALL=$ac_install_sh
4019  fi
4020fi
4021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4022printf "%s\n" "$INSTALL" >&6; }
4023
4024# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4025# It thinks the first close brace ends the variable substitution.
4026test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4027
4028test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4029
4030test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4031
4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4033printf %s "checking whether sleep supports fractional seconds... " >&6; }
4034if test ${am_cv_sleep_fractional_seconds+y}
4035then :
4036  printf %s "(cached) " >&6
4037else case e in #(
4038  e) if sleep 0.001 2>/dev/null
4039then :
4040  am_cv_sleep_fractional_seconds=yes
4041else case e in #(
4042  e) am_cv_sleep_fractional_seconds=no ;;
4043esac
4044fi
4045 ;;
4046esac
4047fi
4048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4049printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4050
4051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4052printf %s "checking filesystem timestamp resolution... " >&6; }
4053if test ${am_cv_filesystem_timestamp_resolution+y}
4054then :
4055  printf %s "(cached) " >&6
4056else case e in #(
4057  e) # Default to the worst case.
4058am_cv_filesystem_timestamp_resolution=2
4059
4060# Only try to go finer than 1 sec if sleep can do it.
4061# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4062# - 1 sec is not much of a win compared to 2 sec, and
4063# - it takes 2 seconds to perform the test whether 1 sec works.
4064#
4065# Instead, just use the default 2s on platforms that have 1s resolution,
4066# accept the extra 1s delay when using $sleep in the Automake tests, in
4067# exchange for not incurring the 2s delay for running the test for all
4068# packages.
4069#
4070am_try_resolutions=
4071if test "$am_cv_sleep_fractional_seconds" = yes; then
4072  # Even a millisecond often causes a bunch of false positives,
4073  # so just try a hundredth of a second. The time saved between .001 and
4074  # .01 is not terribly consequential.
4075  am_try_resolutions="0.01 0.1 $am_try_resolutions"
4076fi
4077
4078# In order to catch current-generation FAT out, we must *modify* files
4079# that already exist; the *creation* timestamp is finer.  Use names
4080# that make ls -t sort them differently when they have equal
4081# timestamps than when they have distinct timestamps, keeping
4082# in mind that ls -t prints the *newest* file first.
4083rm -f conftest.ts?
4084: > conftest.ts1
4085: > conftest.ts2
4086: > conftest.ts3
4087
4088# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
4089# clobber the current shell's arguments. (Outer-level square brackets
4090# are removed by m4; they're present so that m4 does not expand
4091# <dollar><star>; be careful, easy to get confused.)
4092if (
4093     set X `ls -t conftest.ts[12]` &&
4094     {
4095       test "$*" != "X conftest.ts1 conftest.ts2" ||
4096       test "$*" != "X conftest.ts2 conftest.ts1";
4097     }
4098); then :; else
4099  # If neither matched, then we have a broken ls.  This can happen
4100  # if, for instance, CONFIG_SHELL is bash and it inherits a
4101  # broken ls alias from the environment.  This has actually
4102  # happened.  Such a system could not be considered "sane".
4103  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4104  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4105printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4106as_fn_error $? "ls -t produces unexpected output.
4107Make sure there is not a broken ls alias in your environment.
4108See 'config.log' for more details" "$LINENO" 5; }
4109fi
4110
4111for am_try_res in $am_try_resolutions; do
4112  # Any one fine-grained sleep might happen to cross the boundary
4113  # between two values of a coarser actual resolution, but if we do
4114  # two fine-grained sleeps in a row, at least one of them will fall
4115  # entirely within a coarse interval.
4116  echo alpha > conftest.ts1
4117  sleep $am_try_res
4118  echo beta > conftest.ts2
4119  sleep $am_try_res
4120  echo gamma > conftest.ts3
4121
4122  # We assume that 'ls -t' will make use of high-resolution
4123  # timestamps if the operating system supports them at all.
4124  if (set X `ls -t conftest.ts?` &&
4125      test "$2" = conftest.ts3 &&
4126      test "$3" = conftest.ts2 &&
4127      test "$4" = conftest.ts1); then
4128    #
4129    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4130    # because we don't need to test make.
4131    make_ok=true
4132    if test $am_try_res != 1; then
4133      # But if we've succeeded so far with a subsecond resolution, we
4134      # have one more thing to check: make. It can happen that
4135      # everything else supports the subsecond mtimes, but make doesn't;
4136      # notably on macOS, which ships make 3.81 from 2006 (the last one
4137      # released under GPLv2). https://bugs.gnu.org/68808
4138      #
4139      # We test $MAKE if it is defined in the environment, else "make".
4140      # It might get overridden later, but our hope is that in practice
4141      # it does not matter: it is the system "make" which is (by far)
4142      # the most likely to be broken, whereas if the user overrides it,
4143      # probably they did so with a better, or at least not worse, make.
4144      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4145      #
4146      # Create a Makefile (real tab character here):
4147      rm -f conftest.mk
4148      echo 'conftest.ts1: conftest.ts2' >conftest.mk
4149      echo '	touch conftest.ts2' >>conftest.mk
4150      #
4151      # Now, running
4152      #   touch conftest.ts1; touch conftest.ts2; make
4153      # should touch ts1 because ts2 is newer. This could happen by luck,
4154      # but most often, it will fail if make's support is insufficient. So
4155      # test for several consecutive successes.
4156      #
4157      # (We reuse conftest.ts[12] because we still want to modify existing
4158      # files, not create new ones, per above.)
4159      n=0
4160      make=${MAKE-make}
4161      until test $n -eq 3; do
4162        echo one > conftest.ts1
4163        sleep $am_try_res
4164        echo two > conftest.ts2 # ts2 should now be newer than ts1
4165        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4166          make_ok=false
4167          break # out of $n loop
4168        fi
4169        n=`expr $n + 1`
4170      done
4171    fi
4172    #
4173    if $make_ok; then
4174      # Everything we know to check worked out, so call this resolution good.
4175      am_cv_filesystem_timestamp_resolution=$am_try_res
4176      break # out of $am_try_res loop
4177    fi
4178    # Otherwise, we'll go on to check the next resolution.
4179  fi
4180done
4181rm -f conftest.ts?
4182# (end _am_filesystem_timestamp_resolution)
4183 ;;
4184esac
4185fi
4186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4187printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4188
4189# This check should not be cached, as it may vary across builds of
4190# different projects.
4191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4192printf %s "checking whether build environment is sane... " >&6; }
4193# Reject unsafe characters in $srcdir or the absolute working directory
4194# name.  Accept space and tab only in the latter.
4195am_lf='
4196'
4197case `pwd` in
4198  *[\\\"\#\$\&\'\`$am_lf]*)
4199    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4200esac
4201case $srcdir in
4202  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4203    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4204esac
4205
4206# Do 'set' in a subshell so we don't clobber the current shell's
4207# arguments.  Must try -L first in case configure is actually a
4208# symlink; some systems play weird games with the mod time of symlinks
4209# (eg FreeBSD returns the mod time of the symlink's containing
4210# directory).
4211am_build_env_is_sane=no
4212am_has_slept=no
4213rm -f conftest.file
4214for am_try in 1 2; do
4215  echo "timestamp, slept: $am_has_slept" > conftest.file
4216  if (
4217    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4218    if test "$*" = "X"; then
4219      # -L didn't work.
4220      set X `ls -t "$srcdir/configure" conftest.file`
4221    fi
4222    test "$2" = conftest.file
4223  ); then
4224    am_build_env_is_sane=yes
4225    break
4226  fi
4227  # Just in case.
4228  sleep "$am_cv_filesystem_timestamp_resolution"
4229  am_has_slept=yes
4230done
4231
4232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4233printf "%s\n" "$am_build_env_is_sane" >&6; }
4234if test "$am_build_env_is_sane" = no; then
4235  as_fn_error $? "newly created file is older than distributed files!
4236Check your system clock" "$LINENO" 5
4237fi
4238
4239# If we didn't sleep, we still need to ensure time stamps of config.status and
4240# generated files are strictly newer.
4241am_sleep_pid=
4242if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4243then :
4244
4245else case e in #(
4246  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4247  am_sleep_pid=$!
4248 ;;
4249esac
4250fi
4251
4252rm -f conftest.file
4253
4254test "$program_prefix" != NONE &&
4255  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4256# Use a double $ so make ignores it.
4257test "$program_suffix" != NONE &&
4258  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4259# Double any \ or $.
4260# By default was 's,x,x', remove it if useless.
4261ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4262program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4263
4264
4265  if test x"${MISSING+set}" != xset; then
4266  MISSING="\${SHELL} '$am_aux_dir/missing'"
4267fi
4268# Use eval to expand $SHELL
4269if eval "$MISSING --is-lightweight"; then
4270  am_missing_run="$MISSING "
4271else
4272  am_missing_run=
4273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4274printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4275fi
4276
4277if test x"${install_sh+set}" != xset; then
4278  case $am_aux_dir in
4279  *\ * | *\	*)
4280    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4281  *)
4282    install_sh="\${SHELL} $am_aux_dir/install-sh"
4283  esac
4284fi
4285
4286# Installed binaries are usually stripped using 'strip' when the user
4287# run "make install-strip".  However 'strip' might not be the right
4288# tool to use in cross-compilation environments, therefore Automake
4289# will honor the 'STRIP' environment variable to overrule this program.
4290if test "$cross_compiling" != no; then
4291  if test -n "$ac_tool_prefix"; then
4292  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4293set dummy ${ac_tool_prefix}strip; ac_word=$2
4294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295printf %s "checking for $ac_word... " >&6; }
4296if test ${ac_cv_prog_STRIP+y}
4297then :
4298  printf %s "(cached) " >&6
4299else case e in #(
4300  e) if test -n "$STRIP"; then
4301  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4302else
4303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH
4305do
4306  IFS=$as_save_IFS
4307  case $as_dir in #(((
4308    '') as_dir=./ ;;
4309    */) ;;
4310    *) as_dir=$as_dir/ ;;
4311  esac
4312    for ac_exec_ext in '' $ac_executable_extensions; do
4313  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4314    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4315    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4316    break 2
4317  fi
4318done
4319  done
4320IFS=$as_save_IFS
4321
4322fi ;;
4323esac
4324fi
4325STRIP=$ac_cv_prog_STRIP
4326if test -n "$STRIP"; then
4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4328printf "%s\n" "$STRIP" >&6; }
4329else
4330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331printf "%s\n" "no" >&6; }
4332fi
4333
4334
4335fi
4336if test -z "$ac_cv_prog_STRIP"; then
4337  ac_ct_STRIP=$STRIP
4338  # Extract the first word of "strip", so it can be a program name with args.
4339set dummy strip; ac_word=$2
4340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341printf %s "checking for $ac_word... " >&6; }
4342if test ${ac_cv_prog_ac_ct_STRIP+y}
4343then :
4344  printf %s "(cached) " >&6
4345else case e in #(
4346  e) if test -n "$ac_ct_STRIP"; then
4347  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352  IFS=$as_save_IFS
4353  case $as_dir in #(((
4354    '') as_dir=./ ;;
4355    */) ;;
4356    *) as_dir=$as_dir/ ;;
4357  esac
4358    for ac_exec_ext in '' $ac_executable_extensions; do
4359  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4360    ac_cv_prog_ac_ct_STRIP="strip"
4361    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4362    break 2
4363  fi
4364done
4365  done
4366IFS=$as_save_IFS
4367
4368fi ;;
4369esac
4370fi
4371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4372if test -n "$ac_ct_STRIP"; then
4373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4374printf "%s\n" "$ac_ct_STRIP" >&6; }
4375else
4376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377printf "%s\n" "no" >&6; }
4378fi
4379
4380  if test "x$ac_ct_STRIP" = x; then
4381    STRIP=":"
4382  else
4383    case $cross_compiling:$ac_tool_warned in
4384yes:)
4385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4386printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4387ac_tool_warned=yes ;;
4388esac
4389    STRIP=$ac_ct_STRIP
4390  fi
4391else
4392  STRIP="$ac_cv_prog_STRIP"
4393fi
4394
4395fi
4396INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4397
4398
4399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4400printf %s "checking for a race-free mkdir -p... " >&6; }
4401if test -z "$MKDIR_P"; then
4402  if test ${ac_cv_path_mkdir+y}
4403then :
4404  printf %s "(cached) " >&6
4405else case e in #(
4406  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4408do
4409  IFS=$as_save_IFS
4410  case $as_dir in #(((
4411    '') as_dir=./ ;;
4412    */) ;;
4413    *) as_dir=$as_dir/ ;;
4414  esac
4415    for ac_prog in mkdir gmkdir; do
4416	 for ac_exec_ext in '' $ac_executable_extensions; do
4417	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4418	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4419	     'mkdir ('*'coreutils) '* | \
4420	     *'BusyBox '* | \
4421	     'mkdir (fileutils) '4.1*)
4422	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4423	       break 3;;
4424	   esac
4425	 done
4426       done
4427  done
4428IFS=$as_save_IFS
4429 ;;
4430esac
4431fi
4432
4433  test -d ./--version && rmdir ./--version
4434  if test ${ac_cv_path_mkdir+y}; then
4435    MKDIR_P="$ac_cv_path_mkdir -p"
4436  else
4437    # As a last resort, use plain mkdir -p,
4438    # in the hope it doesn't have the bugs of ancient mkdir.
4439    MKDIR_P='mkdir -p'
4440  fi
4441fi
4442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4443printf "%s\n" "$MKDIR_P" >&6; }
4444
4445for ac_prog in gawk mawk nawk awk
4446do
4447  # Extract the first word of "$ac_prog", so it can be a program name with args.
4448set dummy $ac_prog; ac_word=$2
4449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450printf %s "checking for $ac_word... " >&6; }
4451if test ${ac_cv_prog_AWK+y}
4452then :
4453  printf %s "(cached) " >&6
4454else case e in #(
4455  e) if test -n "$AWK"; then
4456  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461  IFS=$as_save_IFS
4462  case $as_dir in #(((
4463    '') as_dir=./ ;;
4464    */) ;;
4465    *) as_dir=$as_dir/ ;;
4466  esac
4467    for ac_exec_ext in '' $ac_executable_extensions; do
4468  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4469    ac_cv_prog_AWK="$ac_prog"
4470    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4471    break 2
4472  fi
4473done
4474  done
4475IFS=$as_save_IFS
4476
4477fi ;;
4478esac
4479fi
4480AWK=$ac_cv_prog_AWK
4481if test -n "$AWK"; then
4482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4483printf "%s\n" "$AWK" >&6; }
4484else
4485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486printf "%s\n" "no" >&6; }
4487fi
4488
4489
4490  test -n "$AWK" && break
4491done
4492
4493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4494printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4495set x ${MAKE-make}
4496ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4497if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4498then :
4499  printf %s "(cached) " >&6
4500else case e in #(
4501  e) cat >conftest.make <<\_ACEOF
4502SHELL = /bin/sh
4503all:
4504	@echo '@@@%%%=$(MAKE)=@@@%%%'
4505_ACEOF
4506# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4507case `${MAKE-make} -f conftest.make 2>/dev/null` in
4508  *@@@%%%=?*=@@@%%%*)
4509    eval ac_cv_prog_make_${ac_make}_set=yes;;
4510  *)
4511    eval ac_cv_prog_make_${ac_make}_set=no;;
4512esac
4513rm -f conftest.make ;;
4514esac
4515fi
4516if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518printf "%s\n" "yes" >&6; }
4519  SET_MAKE=
4520else
4521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522printf "%s\n" "no" >&6; }
4523  SET_MAKE="MAKE=${MAKE-make}"
4524fi
4525
4526rm -rf .tst 2>/dev/null
4527mkdir .tst 2>/dev/null
4528if test -d .tst; then
4529  am__leading_dot=.
4530else
4531  am__leading_dot=_
4532fi
4533rmdir .tst 2>/dev/null
4534
4535DEPDIR="${am__leading_dot}deps"
4536
4537ac_config_commands="$ac_config_commands depfiles"
4538
4539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4540printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4541cat > confinc.mk << 'END'
4542am__doit:
4543	@echo this is the am__doit target >confinc.out
4544.PHONY: am__doit
4545END
4546am__include="#"
4547am__quote=
4548# BSD make does it like this.
4549echo '.include "confinc.mk" # ignored' > confmf.BSD
4550# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4551echo 'include confinc.mk # ignored' > confmf.GNU
4552_am_result=no
4553for s in GNU BSD; do
4554  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4555   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }
4559  case $?:`cat confinc.out 2>/dev/null` in #(
4560  '0:this is the am__doit target') :
4561    case $s in #(
4562  BSD) :
4563    am__include='.include' am__quote='"' ;; #(
4564  *) :
4565    am__include='include' am__quote='' ;;
4566esac ;; #(
4567  *) :
4568     ;;
4569esac
4570  if test "$am__include" != "#"; then
4571    _am_result="yes ($s style)"
4572    break
4573  fi
4574done
4575rm -f confinc.* confmf.*
4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4577printf "%s\n" "${_am_result}" >&6; }
4578
4579# Check whether --enable-dependency-tracking was given.
4580if test ${enable_dependency_tracking+y}
4581then :
4582  enableval=$enable_dependency_tracking;
4583fi
4584
4585if test "x$enable_dependency_tracking" != xno; then
4586  am_depcomp="$ac_aux_dir/depcomp"
4587  AMDEPBACKSLASH='\'
4588  am__nodep='_no'
4589fi
4590 if test "x$enable_dependency_tracking" != xno; then
4591  AMDEP_TRUE=
4592  AMDEP_FALSE='#'
4593else
4594  AMDEP_TRUE='#'
4595  AMDEP_FALSE=
4596fi
4597
4598
4599AM_DEFAULT_VERBOSITY=1
4600# Check whether --enable-silent-rules was given.
4601if test ${enable_silent_rules+y}
4602then :
4603  enableval=$enable_silent_rules;
4604fi
4605
4606am_make=${MAKE-make}
4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4608printf %s "checking whether $am_make supports nested variables... " >&6; }
4609if test ${am_cv_make_support_nested_variables+y}
4610then :
4611  printf %s "(cached) " >&6
4612else case e in #(
4613  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4614BAR0=false
4615BAR1=true
4616V=1
4617am__doit:
4618	@$(TRUE)
4619.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4620  am_cv_make_support_nested_variables=yes
4621else
4622  am_cv_make_support_nested_variables=no
4623fi ;;
4624esac
4625fi
4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4627printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4628AM_BACKSLASH='\'
4629
4630am__rm_f_notfound=
4631if (rm -f && rm -fr && rm -rf) 2>/dev/null
4632then :
4633
4634else case e in #(
4635  e) am__rm_f_notfound='""' ;;
4636esac
4637fi
4638
4639
4640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4641printf %s "checking xargs -n works... " >&6; }
4642if test ${am_cv_xargs_n_works+y}
4643then :
4644  printf %s "(cached) " >&6
4645else case e in #(
4646  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
46473"
4648then :
4649  am_cv_xargs_n_works=yes
4650else case e in #(
4651  e) am_cv_xargs_n_works=no ;;
4652esac
4653fi ;;
4654esac
4655fi
4656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4657printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4658if test "$am_cv_xargs_n_works" = yes
4659then :
4660  am__xargs_n='xargs -n'
4661else case e in #(
4662  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4663 ;;
4664esac
4665fi
4666
4667if test "`cd $srcdir && pwd`" != "`pwd`"; then
4668  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4669  # is not polluted with repeated "-I."
4670  am__isrc=' -I$(srcdir)'
4671  # test to see if srcdir already configured
4672  if test -f $srcdir/config.status; then
4673    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4674  fi
4675fi
4676
4677# test whether we have cygpath
4678if test -z "$CYGPATH_W"; then
4679  if (cygpath --version) >/dev/null 2>/dev/null; then
4680    CYGPATH_W='cygpath -w'
4681  else
4682    CYGPATH_W=echo
4683  fi
4684fi
4685
4686
4687# Define the identity of the package.
4688 PACKAGE='libXau'
4689 VERSION='1.0.12'
4690
4691
4692printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4693
4694
4695printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4696
4697# Some tools Automake needs.
4698
4699ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4700
4701
4702AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4703
4704
4705AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4706
4707
4708AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4709
4710
4711MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4712
4713# For better backward compatibility.  To be removed once Automake 1.9.x
4714# dies out for good.  For more background, see:
4715# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4716# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4717mkdir_p='$(MKDIR_P)'
4718
4719# We need awk for the "check" target (and possibly the TAP driver).  The
4720# system "awk" is bad on some platforms.
4721# Always define AMTAR for backward compatibility.  Yes, it's still used
4722# in the wild :-(  We should find a proper way to deprecate it ...
4723AMTAR='$${TAR-tar}'
4724
4725
4726# We'll loop over all known methods to create a tar archive until one works.
4727_am_tools='gnutar  pax cpio none'
4728
4729am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4730
4731
4732
4733
4734
4735depcc="$CC"   am_compiler_list=
4736
4737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4738printf %s "checking dependency style of $depcc... " >&6; }
4739if test ${am_cv_CC_dependencies_compiler_type+y}
4740then :
4741  printf %s "(cached) " >&6
4742else case e in #(
4743  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4744  # We make a subdir and do the tests there.  Otherwise we can end up
4745  # making bogus files that we don't know about and never remove.  For
4746  # instance it was reported that on HP-UX the gcc test will end up
4747  # making a dummy file named 'D' -- because '-MD' means "put the output
4748  # in D".
4749  rm -rf conftest.dir
4750  mkdir conftest.dir
4751  # Copy depcomp to subdir because otherwise we won't find it if we're
4752  # using a relative directory.
4753  cp "$am_depcomp" conftest.dir
4754  cd conftest.dir
4755  # We will build objects and dependencies in a subdirectory because
4756  # it helps to detect inapplicable dependency modes.  For instance
4757  # both Tru64's cc and ICC support -MD to output dependencies as a
4758  # side effect of compilation, but ICC will put the dependencies in
4759  # the current directory while Tru64 will put them in the object
4760  # directory.
4761  mkdir sub
4762
4763  am_cv_CC_dependencies_compiler_type=none
4764  if test "$am_compiler_list" = ""; then
4765     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4766  fi
4767  am__universal=false
4768  case " $depcc " in #(
4769     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4770     esac
4771
4772  for depmode in $am_compiler_list; do
4773    # Setup a source with many dependencies, because some compilers
4774    # like to wrap large dependency lists on column 80 (with \), and
4775    # we should not choose a depcomp mode which is confused by this.
4776    #
4777    # We need to recreate these files for each test, as the compiler may
4778    # overwrite some of them when testing with obscure command lines.
4779    # This happens at least with the AIX C compiler.
4780    : > sub/conftest.c
4781    for i in 1 2 3 4 5 6; do
4782      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4783      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4784      # Solaris 10 /bin/sh.
4785      echo '/* dummy */' > sub/conftst$i.h
4786    done
4787    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4788
4789    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4790    # mode.  It turns out that the SunPro C++ compiler does not properly
4791    # handle '-M -o', and we need to detect this.  Also, some Intel
4792    # versions had trouble with output in subdirs.
4793    am__obj=sub/conftest.${OBJEXT-o}
4794    am__minus_obj="-o $am__obj"
4795    case $depmode in
4796    gcc)
4797      # This depmode causes a compiler race in universal mode.
4798      test "$am__universal" = false || continue
4799      ;;
4800    nosideeffect)
4801      # After this tag, mechanisms are not by side-effect, so they'll
4802      # only be used when explicitly requested.
4803      if test "x$enable_dependency_tracking" = xyes; then
4804	continue
4805      else
4806	break
4807      fi
4808      ;;
4809    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4810      # This compiler won't grok '-c -o', but also, the minuso test has
4811      # not run yet.  These depmodes are late enough in the game, and
4812      # so weak that their functioning should not be impacted.
4813      am__obj=conftest.${OBJEXT-o}
4814      am__minus_obj=
4815      ;;
4816    none) break ;;
4817    esac
4818    if depmode=$depmode \
4819       source=sub/conftest.c object=$am__obj \
4820       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4821       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4822         >/dev/null 2>conftest.err &&
4823       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4824       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4825       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4826       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4827      # icc doesn't choke on unknown options, it will just issue warnings
4828      # or remarks (even with -Werror).  So we grep stderr for any message
4829      # that says an option was ignored or not supported.
4830      # When given -MP, icc 7.0 and 7.1 complain thus:
4831      #   icc: Command line warning: ignoring option '-M'; no argument required
4832      # The diagnosis changed in icc 8.0:
4833      #   icc: Command line remark: option '-MP' not supported
4834      if (grep 'ignoring option' conftest.err ||
4835          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4836        am_cv_CC_dependencies_compiler_type=$depmode
4837        break
4838      fi
4839    fi
4840  done
4841
4842  cd ..
4843  rm -rf conftest.dir
4844else
4845  am_cv_CC_dependencies_compiler_type=none
4846fi
4847 ;;
4848esac
4849fi
4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4851printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4852CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4853
4854 if
4855  test "x$enable_dependency_tracking" != xno \
4856  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4857  am__fastdepCC_TRUE=
4858  am__fastdepCC_FALSE='#'
4859else
4860  am__fastdepCC_TRUE='#'
4861  am__fastdepCC_FALSE=
4862fi
4863
4864
4865# Variables for tags utilities; see am/tags.am
4866if test -z "$CTAGS"; then
4867  CTAGS=ctags
4868fi
4869
4870if test -z "$ETAGS"; then
4871  ETAGS=etags
4872fi
4873
4874if test -z "$CSCOPE"; then
4875  CSCOPE=cscope
4876fi
4877
4878
4879
4880
4881
4882
4883
4884
4885# Initialize libtool
4886case `pwd` in
4887  *\ * | *\	*)
4888    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4889printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4890esac
4891
4892
4893
4894macro_version='2.5.4'
4895macro_revision='2.5.4'
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910ltmain=$ac_aux_dir/ltmain.sh
4911
4912
4913
4914  # Make sure we can run config.sub.
4915$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4916  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4917
4918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4919printf %s "checking build system type... " >&6; }
4920if test ${ac_cv_build+y}
4921then :
4922  printf %s "(cached) " >&6
4923else case e in #(
4924  e) ac_build_alias=$build_alias
4925test "x$ac_build_alias" = x &&
4926  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4927test "x$ac_build_alias" = x &&
4928  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4929ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4930  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4931 ;;
4932esac
4933fi
4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4935printf "%s\n" "$ac_cv_build" >&6; }
4936case $ac_cv_build in
4937*-*-*) ;;
4938*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4939esac
4940build=$ac_cv_build
4941ac_save_IFS=$IFS; IFS='-'
4942set x $ac_cv_build
4943shift
4944build_cpu=$1
4945build_vendor=$2
4946shift; shift
4947# Remember, the first character of IFS is used to create $*,
4948# except with old shells:
4949build_os=$*
4950IFS=$ac_save_IFS
4951case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4952
4953
4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4955printf %s "checking host system type... " >&6; }
4956if test ${ac_cv_host+y}
4957then :
4958  printf %s "(cached) " >&6
4959else case e in #(
4960  e) if test "x$host_alias" = x; then
4961  ac_cv_host=$ac_cv_build
4962else
4963  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4964    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4965fi
4966 ;;
4967esac
4968fi
4969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4970printf "%s\n" "$ac_cv_host" >&6; }
4971case $ac_cv_host in
4972*-*-*) ;;
4973*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4974esac
4975host=$ac_cv_host
4976ac_save_IFS=$IFS; IFS='-'
4977set x $ac_cv_host
4978shift
4979host_cpu=$1
4980host_vendor=$2
4981shift; shift
4982# Remember, the first character of IFS is used to create $*,
4983# except with old shells:
4984host_os=$*
4985IFS=$ac_save_IFS
4986case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4987
4988
4989# Backslashify metacharacters that are still active within
4990# double-quoted strings.
4991sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4992
4993# Same as above, but do not quote variable references.
4994double_quote_subst='s/\(["`\\]\)/\\\1/g'
4995
4996# Sed substitution to delay expansion of an escaped shell variable in a
4997# double_quote_subst'ed string.
4998delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4999
5000# Sed substitution to delay expansion of an escaped single quote.
5001delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5002
5003# Sed substitution to avoid accidental globbing in evaled expressions
5004no_glob_subst='s/\*/\\\*/g'
5005
5006ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5007ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5008ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5009
5010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5011printf %s "checking how to print strings... " >&6; }
5012# Test print first, because it will be a builtin if present.
5013if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5014   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5015  ECHO='print -r --'
5016elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5017  ECHO='printf %s\n'
5018else
5019  # Use this function as a fallback that always works.
5020  func_fallback_echo ()
5021  {
5022    eval 'cat <<_LTECHO_EOF
5023$1
5024_LTECHO_EOF'
5025  }
5026  ECHO='func_fallback_echo'
5027fi
5028
5029# func_echo_all arg...
5030# Invoke $ECHO with all args, space-separated.
5031func_echo_all ()
5032{
5033    $ECHO ""
5034}
5035
5036case $ECHO in
5037  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5038printf "%s\n" "printf" >&6; } ;;
5039  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5040printf "%s\n" "print -r" >&6; } ;;
5041  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5042printf "%s\n" "cat" >&6; } ;;
5043esac
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5059printf %s "checking for a sed that does not truncate output... " >&6; }
5060if test ${ac_cv_path_SED+y}
5061then :
5062  printf %s "(cached) " >&6
5063else case e in #(
5064  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5065     for ac_i in 1 2 3 4 5 6 7; do
5066       ac_script="$ac_script$as_nl$ac_script"
5067     done
5068     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5069     { ac_script=; unset ac_script;}
5070     if test -z "$SED"; then
5071  ac_path_SED_found=false
5072  # Loop through the user's path and test for each of PROGNAME-LIST
5073  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  case $as_dir in #(((
5078    '') as_dir=./ ;;
5079    */) ;;
5080    *) as_dir=$as_dir/ ;;
5081  esac
5082    for ac_prog in sed gsed
5083   do
5084    for ac_exec_ext in '' $ac_executable_extensions; do
5085      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5086      as_fn_executable_p "$ac_path_SED" || continue
5087# Check for GNU ac_path_SED and select it if it is found.
5088  # Check for GNU $ac_path_SED
5089case `"$ac_path_SED" --version 2>&1` in #(
5090*GNU*)
5091  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5092#(
5093*)
5094  ac_count=0
5095  printf %s 0123456789 >"conftest.in"
5096  while :
5097  do
5098    cat "conftest.in" "conftest.in" >"conftest.tmp"
5099    mv "conftest.tmp" "conftest.in"
5100    cp "conftest.in" "conftest.nl"
5101    printf "%s\n" '' >> "conftest.nl"
5102    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5103    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5104    as_fn_arith $ac_count + 1 && ac_count=$as_val
5105    if test $ac_count -gt ${ac_path_SED_max-0}; then
5106      # Best one so far, save it but keep looking for a better one
5107      ac_cv_path_SED="$ac_path_SED"
5108      ac_path_SED_max=$ac_count
5109    fi
5110    # 10*(2^10) chars as input seems more than enough
5111    test $ac_count -gt 10 && break
5112  done
5113  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5114esac
5115
5116      $ac_path_SED_found && break 3
5117    done
5118  done
5119  done
5120IFS=$as_save_IFS
5121  if test -z "$ac_cv_path_SED"; then
5122    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5123  fi
5124else
5125  ac_cv_path_SED=$SED
5126fi
5127 ;;
5128esac
5129fi
5130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5131printf "%s\n" "$ac_cv_path_SED" >&6; }
5132 SED="$ac_cv_path_SED"
5133  rm -f conftest.sed
5134
5135test -z "$SED" && SED=sed
5136Xsed="$SED -e 1s/^X//"
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5149printf %s "checking for grep that handles long lines and -e... " >&6; }
5150if test ${ac_cv_path_GREP+y}
5151then :
5152  printf %s "(cached) " >&6
5153else case e in #(
5154  e) if test -z "$GREP"; then
5155  ac_path_GREP_found=false
5156  # Loop through the user's path and test for each of PROGNAME-LIST
5157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5159do
5160  IFS=$as_save_IFS
5161  case $as_dir in #(((
5162    '') as_dir=./ ;;
5163    */) ;;
5164    *) as_dir=$as_dir/ ;;
5165  esac
5166    for ac_prog in grep ggrep
5167   do
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5170      as_fn_executable_p "$ac_path_GREP" || continue
5171# Check for GNU ac_path_GREP and select it if it is found.
5172  # Check for GNU $ac_path_GREP
5173case `"$ac_path_GREP" --version 2>&1` in #(
5174*GNU*)
5175  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5176#(
5177*)
5178  ac_count=0
5179  printf %s 0123456789 >"conftest.in"
5180  while :
5181  do
5182    cat "conftest.in" "conftest.in" >"conftest.tmp"
5183    mv "conftest.tmp" "conftest.in"
5184    cp "conftest.in" "conftest.nl"
5185    printf "%s\n" 'GREP' >> "conftest.nl"
5186    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188    as_fn_arith $ac_count + 1 && ac_count=$as_val
5189    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5190      # Best one so far, save it but keep looking for a better one
5191      ac_cv_path_GREP="$ac_path_GREP"
5192      ac_path_GREP_max=$ac_count
5193    fi
5194    # 10*(2^10) chars as input seems more than enough
5195    test $ac_count -gt 10 && break
5196  done
5197  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198esac
5199
5200      $ac_path_GREP_found && break 3
5201    done
5202  done
5203  done
5204IFS=$as_save_IFS
5205  if test -z "$ac_cv_path_GREP"; then
5206    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207  fi
5208else
5209  ac_cv_path_GREP=$GREP
5210fi
5211 ;;
5212esac
5213fi
5214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5215printf "%s\n" "$ac_cv_path_GREP" >&6; }
5216 GREP="$ac_cv_path_GREP"
5217
5218
5219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5220printf %s "checking for egrep... " >&6; }
5221if test ${ac_cv_path_EGREP+y}
5222then :
5223  printf %s "(cached) " >&6
5224else case e in #(
5225  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5226   then ac_cv_path_EGREP="$GREP -E"
5227   else
5228     if test -z "$EGREP"; then
5229  ac_path_EGREP_found=false
5230  # Loop through the user's path and test for each of PROGNAME-LIST
5231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5233do
5234  IFS=$as_save_IFS
5235  case $as_dir in #(((
5236    '') as_dir=./ ;;
5237    */) ;;
5238    *) as_dir=$as_dir/ ;;
5239  esac
5240    for ac_prog in egrep
5241   do
5242    for ac_exec_ext in '' $ac_executable_extensions; do
5243      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5244      as_fn_executable_p "$ac_path_EGREP" || continue
5245# Check for GNU ac_path_EGREP and select it if it is found.
5246  # Check for GNU $ac_path_EGREP
5247case `"$ac_path_EGREP" --version 2>&1` in #(
5248*GNU*)
5249  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5250#(
5251*)
5252  ac_count=0
5253  printf %s 0123456789 >"conftest.in"
5254  while :
5255  do
5256    cat "conftest.in" "conftest.in" >"conftest.tmp"
5257    mv "conftest.tmp" "conftest.in"
5258    cp "conftest.in" "conftest.nl"
5259    printf "%s\n" 'EGREP' >> "conftest.nl"
5260    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5261    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5262    as_fn_arith $ac_count + 1 && ac_count=$as_val
5263    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5264      # Best one so far, save it but keep looking for a better one
5265      ac_cv_path_EGREP="$ac_path_EGREP"
5266      ac_path_EGREP_max=$ac_count
5267    fi
5268    # 10*(2^10) chars as input seems more than enough
5269    test $ac_count -gt 10 && break
5270  done
5271  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5272esac
5273
5274      $ac_path_EGREP_found && break 3
5275    done
5276  done
5277  done
5278IFS=$as_save_IFS
5279  if test -z "$ac_cv_path_EGREP"; then
5280    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5281  fi
5282else
5283  ac_cv_path_EGREP=$EGREP
5284fi
5285
5286   fi ;;
5287esac
5288fi
5289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5290printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5291 EGREP="$ac_cv_path_EGREP"
5292
5293         EGREP_TRADITIONAL=$EGREP
5294 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5295
5296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5297printf %s "checking for fgrep... " >&6; }
5298if test ${ac_cv_path_FGREP+y}
5299then :
5300  printf %s "(cached) " >&6
5301else case e in #(
5302  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5303   then ac_cv_path_FGREP="$GREP -F"
5304   else
5305     if test -z "$FGREP"; then
5306  ac_path_FGREP_found=false
5307  # Loop through the user's path and test for each of PROGNAME-LIST
5308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5310do
5311  IFS=$as_save_IFS
5312  case $as_dir in #(((
5313    '') as_dir=./ ;;
5314    */) ;;
5315    *) as_dir=$as_dir/ ;;
5316  esac
5317    for ac_prog in fgrep
5318   do
5319    for ac_exec_ext in '' $ac_executable_extensions; do
5320      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5321      as_fn_executable_p "$ac_path_FGREP" || continue
5322# Check for GNU ac_path_FGREP and select it if it is found.
5323  # Check for GNU $ac_path_FGREP
5324case `"$ac_path_FGREP" --version 2>&1` in #(
5325*GNU*)
5326  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5327#(
5328*)
5329  ac_count=0
5330  printf %s 0123456789 >"conftest.in"
5331  while :
5332  do
5333    cat "conftest.in" "conftest.in" >"conftest.tmp"
5334    mv "conftest.tmp" "conftest.in"
5335    cp "conftest.in" "conftest.nl"
5336    printf "%s\n" 'FGREP' >> "conftest.nl"
5337    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5338    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5339    as_fn_arith $ac_count + 1 && ac_count=$as_val
5340    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5341      # Best one so far, save it but keep looking for a better one
5342      ac_cv_path_FGREP="$ac_path_FGREP"
5343      ac_path_FGREP_max=$ac_count
5344    fi
5345    # 10*(2^10) chars as input seems more than enough
5346    test $ac_count -gt 10 && break
5347  done
5348  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5349esac
5350
5351      $ac_path_FGREP_found && break 3
5352    done
5353  done
5354  done
5355IFS=$as_save_IFS
5356  if test -z "$ac_cv_path_FGREP"; then
5357    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5358  fi
5359else
5360  ac_cv_path_FGREP=$FGREP
5361fi
5362
5363   fi ;;
5364esac
5365fi
5366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5367printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5368 FGREP="$ac_cv_path_FGREP"
5369
5370
5371test -z "$GREP" && GREP=grep
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391# Check whether --with-gnu-ld was given.
5392if test ${with_gnu_ld+y}
5393then :
5394  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5395else case e in #(
5396  e) with_gnu_ld=no ;;
5397esac
5398fi
5399
5400ac_prog=ld
5401if test yes = "$GCC"; then
5402  # Check if gcc -print-prog-name=ld gives a path.
5403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5404printf %s "checking for ld used by $CC... " >&6; }
5405  case $host in
5406  *-*-mingw* | *-*-windows*)
5407    # gcc leaves a trailing carriage return, which upsets mingw
5408    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5409  *)
5410    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5411  esac
5412  case $ac_prog in
5413    # Accept absolute paths.
5414    [\\/]* | ?:[\\/]*)
5415      re_direlt='/[^/][^/]*/\.\./'
5416      # Canonicalize the pathname of ld
5417      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5418      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5419	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5420      done
5421      test -z "$LD" && LD=$ac_prog
5422      ;;
5423  "")
5424    # If it fails, then pretend we aren't using GCC.
5425    ac_prog=ld
5426    ;;
5427  *)
5428    # If it is relative, then search for the first ld in PATH.
5429    with_gnu_ld=unknown
5430    ;;
5431  esac
5432elif test yes = "$with_gnu_ld"; then
5433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5434printf %s "checking for GNU ld... " >&6; }
5435else
5436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5437printf %s "checking for non-GNU ld... " >&6; }
5438fi
5439if test ${lt_cv_path_LD+y}
5440then :
5441  printf %s "(cached) " >&6
5442else case e in #(
5443  e) if test -z "$LD"; then
5444  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5445  for ac_dir in $PATH; do
5446    IFS=$lt_save_ifs
5447    test -z "$ac_dir" && ac_dir=.
5448    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5449      lt_cv_path_LD=$ac_dir/$ac_prog
5450      # Check to see if the program is GNU ld.  I'd rather use --version,
5451      # but apparently some variants of GNU ld only accept -v.
5452      # Break only if it was the GNU/non-GNU ld that we prefer.
5453      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5454      *GNU* | *'with BFD'*)
5455	test no != "$with_gnu_ld" && break
5456	;;
5457      *)
5458	test yes != "$with_gnu_ld" && break
5459	;;
5460      esac
5461    fi
5462  done
5463  IFS=$lt_save_ifs
5464else
5465  lt_cv_path_LD=$LD # Let the user override the test with a path.
5466fi ;;
5467esac
5468fi
5469
5470LD=$lt_cv_path_LD
5471if test -n "$LD"; then
5472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5473printf "%s\n" "$LD" >&6; }
5474else
5475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476printf "%s\n" "no" >&6; }
5477fi
5478test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5480printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5481if test ${lt_cv_prog_gnu_ld+y}
5482then :
5483  printf %s "(cached) " >&6
5484else case e in #(
5485  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5486case `$LD -v 2>&1 </dev/null` in
5487*GNU* | *'with BFD'*)
5488  lt_cv_prog_gnu_ld=yes
5489  ;;
5490*)
5491  lt_cv_prog_gnu_ld=no
5492  ;;
5493esac ;;
5494esac
5495fi
5496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5497printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5498with_gnu_ld=$lt_cv_prog_gnu_ld
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5509printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5510if test ${lt_cv_path_NM+y}
5511then :
5512  printf %s "(cached) " >&6
5513else case e in #(
5514  e) if test -n "$NM"; then
5515  # Let the user override the test.
5516  lt_cv_path_NM=$NM
5517else
5518  lt_nm_to_check=${ac_tool_prefix}nm
5519  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5520    lt_nm_to_check="$lt_nm_to_check nm"
5521  fi
5522  for lt_tmp_nm in $lt_nm_to_check; do
5523    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5524    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5525      IFS=$lt_save_ifs
5526      test -z "$ac_dir" && ac_dir=.
5527      tmp_nm=$ac_dir/$lt_tmp_nm
5528      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5529	# Check to see if the nm accepts a BSD-compat flag.
5530	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5531	#   nm: unknown option "B" ignored
5532	# Tru64's nm complains that /dev/null is an invalid object file
5533	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5534	case $build_os in
5535	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5536	*) lt_bad_file=/dev/null ;;
5537	esac
5538	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5539	*$lt_bad_file* | *'Invalid file or object type'*)
5540	  lt_cv_path_NM="$tmp_nm -B"
5541	  break 2
5542	  ;;
5543	*)
5544	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5545	  */dev/null*)
5546	    lt_cv_path_NM="$tmp_nm -p"
5547	    break 2
5548	    ;;
5549	  *)
5550	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5551	    continue # so that we can try to find one that supports BSD flags
5552	    ;;
5553	  esac
5554	  ;;
5555	esac
5556      fi
5557    done
5558    IFS=$lt_save_ifs
5559  done
5560  : ${lt_cv_path_NM=no}
5561fi ;;
5562esac
5563fi
5564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5565printf "%s\n" "$lt_cv_path_NM" >&6; }
5566if test no != "$lt_cv_path_NM"; then
5567  NM=$lt_cv_path_NM
5568else
5569  # Didn't find any BSD compatible name lister, look for dumpbin.
5570  if test -n "$DUMPBIN"; then :
5571    # Let the user override the test.
5572  else
5573    if test -n "$ac_tool_prefix"; then
5574  for ac_prog in dumpbin "link -dump"
5575  do
5576    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579printf %s "checking for $ac_word... " >&6; }
5580if test ${ac_cv_prog_DUMPBIN+y}
5581then :
5582  printf %s "(cached) " >&6
5583else case e in #(
5584  e) if test -n "$DUMPBIN"; then
5585  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5586else
5587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590  IFS=$as_save_IFS
5591  case $as_dir in #(((
5592    '') as_dir=./ ;;
5593    */) ;;
5594    *) as_dir=$as_dir/ ;;
5595  esac
5596    for ac_exec_ext in '' $ac_executable_extensions; do
5597  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5598    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5599    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5600    break 2
5601  fi
5602done
5603  done
5604IFS=$as_save_IFS
5605
5606fi ;;
5607esac
5608fi
5609DUMPBIN=$ac_cv_prog_DUMPBIN
5610if test -n "$DUMPBIN"; then
5611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5612printf "%s\n" "$DUMPBIN" >&6; }
5613else
5614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615printf "%s\n" "no" >&6; }
5616fi
5617
5618
5619    test -n "$DUMPBIN" && break
5620  done
5621fi
5622if test -z "$DUMPBIN"; then
5623  ac_ct_DUMPBIN=$DUMPBIN
5624  for ac_prog in dumpbin "link -dump"
5625do
5626  # Extract the first word of "$ac_prog", so it can be a program name with args.
5627set dummy $ac_prog; ac_word=$2
5628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629printf %s "checking for $ac_word... " >&6; }
5630if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5631then :
5632  printf %s "(cached) " >&6
5633else case e in #(
5634  e) if test -n "$ac_ct_DUMPBIN"; then
5635  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640  IFS=$as_save_IFS
5641  case $as_dir in #(((
5642    '') as_dir=./ ;;
5643    */) ;;
5644    *) as_dir=$as_dir/ ;;
5645  esac
5646    for ac_exec_ext in '' $ac_executable_extensions; do
5647  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5648    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5649    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5650    break 2
5651  fi
5652done
5653  done
5654IFS=$as_save_IFS
5655
5656fi ;;
5657esac
5658fi
5659ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5660if test -n "$ac_ct_DUMPBIN"; then
5661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5662printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5663else
5664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665printf "%s\n" "no" >&6; }
5666fi
5667
5668
5669  test -n "$ac_ct_DUMPBIN" && break
5670done
5671
5672  if test "x$ac_ct_DUMPBIN" = x; then
5673    DUMPBIN=":"
5674  else
5675    case $cross_compiling:$ac_tool_warned in
5676yes:)
5677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5678printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679ac_tool_warned=yes ;;
5680esac
5681    DUMPBIN=$ac_ct_DUMPBIN
5682  fi
5683fi
5684
5685    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5686    *COFF*)
5687      DUMPBIN="$DUMPBIN -symbols -headers"
5688      ;;
5689    *)
5690      DUMPBIN=:
5691      ;;
5692    esac
5693  fi
5694
5695  if test : != "$DUMPBIN"; then
5696    NM=$DUMPBIN
5697  fi
5698fi
5699test -z "$NM" && NM=nm
5700
5701
5702
5703
5704
5705
5706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5707printf %s "checking the name lister ($NM) interface... " >&6; }
5708if test ${lt_cv_nm_interface+y}
5709then :
5710  printf %s "(cached) " >&6
5711else case e in #(
5712  e) lt_cv_nm_interface="BSD nm"
5713  echo "int some_variable = 0;" > conftest.$ac_ext
5714  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5715  (eval "$ac_compile" 2>conftest.err)
5716  cat conftest.err >&5
5717  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5718  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5719  cat conftest.err >&5
5720  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5721  cat conftest.out >&5
5722  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5723    lt_cv_nm_interface="MS dumpbin"
5724  fi
5725  rm -f conftest* ;;
5726esac
5727fi
5728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5729printf "%s\n" "$lt_cv_nm_interface" >&6; }
5730
5731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5732printf %s "checking whether ln -s works... " >&6; }
5733LN_S=$as_ln_s
5734if test "$LN_S" = "ln -s"; then
5735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736printf "%s\n" "yes" >&6; }
5737else
5738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5739printf "%s\n" "no, using $LN_S" >&6; }
5740fi
5741
5742# find the maximum length of command line arguments
5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5744printf %s "checking the maximum length of command line arguments... " >&6; }
5745if test ${lt_cv_sys_max_cmd_len+y}
5746then :
5747  printf %s "(cached) " >&6
5748else case e in #(
5749  e)   i=0
5750  teststring=ABCD
5751
5752  case $build_os in
5753  msdosdjgpp*)
5754    # On DJGPP, this test can blow up pretty badly due to problems in libc
5755    # (any single argument exceeding 2000 bytes causes a buffer overrun
5756    # during glob expansion).  Even if it were fixed, the result of this
5757    # check would be larger than it should be.
5758    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5759    ;;
5760
5761  gnu* | ironclad*)
5762    # Under GNU Hurd and Ironclad, this test is not required because there
5763    # is no limit to the length of command line arguments.
5764    # Libtool will interpret -1 as no limit whatsoever
5765    lt_cv_sys_max_cmd_len=-1;
5766    ;;
5767
5768  cygwin* | mingw* | windows* | cegcc*)
5769    # On Win9x/ME, this test blows up -- it succeeds, but takes
5770    # about 5 minutes as the teststring grows exponentially.
5771    # Worse, since 9x/ME are not pre-emptively multitasking,
5772    # you end up with a "frozen" computer, even though with patience
5773    # the test eventually succeeds (with a max line length of 256k).
5774    # Instead, let's just punt: use the minimum linelength reported by
5775    # all of the supported platforms: 8192 (on NT/2K/XP).
5776    lt_cv_sys_max_cmd_len=8192;
5777    ;;
5778
5779  mint*)
5780    # On MiNT this can take a long time and run out of memory.
5781    lt_cv_sys_max_cmd_len=8192;
5782    ;;
5783
5784  amigaos*)
5785    # On AmigaOS with pdksh, this test takes hours, literally.
5786    # So we just punt and use a minimum line length of 8192.
5787    lt_cv_sys_max_cmd_len=8192;
5788    ;;
5789
5790  darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5791    # This has been around since 386BSD, at least.  Likely further.
5792    if test -x /sbin/sysctl; then
5793      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5794    elif test -x /usr/sbin/sysctl; then
5795      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5796    else
5797      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5798    fi
5799    # And add a safety zone
5800    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5802    ;;
5803
5804  interix*)
5805    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5806    lt_cv_sys_max_cmd_len=196608
5807    ;;
5808
5809  os2*)
5810    # The test takes a long time on OS/2.
5811    lt_cv_sys_max_cmd_len=8192
5812    ;;
5813
5814  osf*)
5815    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5816    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5817    # nice to cause kernel panics so lets avoid the loop below.
5818    # First set a reasonable default.
5819    lt_cv_sys_max_cmd_len=16384
5820    #
5821    if test -x /sbin/sysconfig; then
5822      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5823        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5824      esac
5825    fi
5826    ;;
5827  sco3.2v5*)
5828    lt_cv_sys_max_cmd_len=102400
5829    ;;
5830  sysv5* | sco5v6* | sysv4.2uw2*)
5831    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5832    if test -n "$kargmax"; then
5833      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5834    else
5835      lt_cv_sys_max_cmd_len=32768
5836    fi
5837    ;;
5838  *)
5839    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5840    if test -n "$lt_cv_sys_max_cmd_len" && \
5841       test undefined != "$lt_cv_sys_max_cmd_len"; then
5842      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5843      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5844    else
5845      # Make teststring a little bigger before we do anything with it.
5846      # a 1K string should be a reasonable start.
5847      for i in 1 2 3 4 5 6 7 8; do
5848        teststring=$teststring$teststring
5849      done
5850      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5851      # If test is not a shell built-in, we'll probably end up computing a
5852      # maximum length that is only half of the actual maximum length, but
5853      # we can't tell.
5854      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5855	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5856	      test 17 != "$i" # 1/2 MB should be enough
5857      do
5858        i=`expr $i + 1`
5859        teststring=$teststring$teststring
5860      done
5861      # Only check the string length outside the loop.
5862      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5863      teststring=
5864      # Add a significant safety factor because C++ compilers can tack on
5865      # massive amounts of additional arguments before passing them to the
5866      # linker.  It appears as though 1/2 is a usable value.
5867      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5868    fi
5869    ;;
5870  esac
5871 ;;
5872esac
5873fi
5874
5875if test -n "$lt_cv_sys_max_cmd_len"; then
5876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5877printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5878else
5879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5880printf "%s\n" "none" >&6; }
5881fi
5882max_cmd_len=$lt_cv_sys_max_cmd_len
5883
5884
5885
5886
5887
5888
5889: ${CP="cp -f"}
5890: ${MV="mv -f"}
5891: ${RM="rm -f"}
5892
5893if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5894  lt_unset=unset
5895else
5896  lt_unset=false
5897fi
5898
5899
5900
5901
5902
5903# test EBCDIC or ASCII
5904case `echo X|tr X '\101'` in
5905 A) # ASCII based system
5906    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5907  lt_SP2NL='tr \040 \012'
5908  lt_NL2SP='tr \015\012 \040\040'
5909  ;;
5910 *) # EBCDIC based system
5911  lt_SP2NL='tr \100 \n'
5912  lt_NL2SP='tr \r\n \100\100'
5913  ;;
5914esac
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5925printf %s "checking how to convert $build file names to $host format... " >&6; }
5926if test ${lt_cv_to_host_file_cmd+y}
5927then :
5928  printf %s "(cached) " >&6
5929else case e in #(
5930  e) case $host in
5931  *-*-mingw* )
5932    case $build in
5933      *-*-mingw* | *-*-windows* ) # actually msys
5934        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5935        ;;
5936      *-*-cygwin* )
5937        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5938        ;;
5939      * ) # otherwise, assume *nix
5940        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5941        ;;
5942    esac
5943    ;;
5944  *-*-cygwin* )
5945    case $build in
5946      *-*-mingw* | *-*-windows* ) # actually msys
5947        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5948        ;;
5949      *-*-cygwin* )
5950        lt_cv_to_host_file_cmd=func_convert_file_noop
5951        ;;
5952      * ) # otherwise, assume *nix
5953        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5954        ;;
5955    esac
5956    ;;
5957  * ) # unhandled hosts (and "normal" native builds)
5958    lt_cv_to_host_file_cmd=func_convert_file_noop
5959    ;;
5960esac
5961 ;;
5962esac
5963fi
5964
5965to_host_file_cmd=$lt_cv_to_host_file_cmd
5966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5967printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5968
5969
5970
5971
5972
5973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5974printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5975if test ${lt_cv_to_tool_file_cmd+y}
5976then :
5977  printf %s "(cached) " >&6
5978else case e in #(
5979  e) #assume ordinary cross tools, or native build.
5980lt_cv_to_tool_file_cmd=func_convert_file_noop
5981case $host in
5982  *-*-mingw* | *-*-windows* )
5983    case $build in
5984      *-*-mingw* | *-*-windows* ) # actually msys
5985        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5986        ;;
5987    esac
5988    ;;
5989esac
5990 ;;
5991esac
5992fi
5993
5994to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5996printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5997
5998
5999
6000
6001
6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6003printf %s "checking for $LD option to reload object files... " >&6; }
6004if test ${lt_cv_ld_reload_flag+y}
6005then :
6006  printf %s "(cached) " >&6
6007else case e in #(
6008  e) lt_cv_ld_reload_flag='-r' ;;
6009esac
6010fi
6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6012printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6013reload_flag=$lt_cv_ld_reload_flag
6014case $reload_flag in
6015"" | " "*) ;;
6016*) reload_flag=" $reload_flag" ;;
6017esac
6018reload_cmds='$LD$reload_flag -o $output$reload_objs'
6019case $host_os in
6020  cygwin* | mingw* | windows* | pw32* | cegcc*)
6021    if test yes != "$GCC"; then
6022      reload_cmds=false
6023    fi
6024    ;;
6025  darwin*)
6026    if test yes = "$GCC"; then
6027      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6028    else
6029      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030    fi
6031    ;;
6032esac
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042# Extract the first word of "file", so it can be a program name with args.
6043set dummy file; ac_word=$2
6044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045printf %s "checking for $ac_word... " >&6; }
6046if test ${ac_cv_prog_FILECMD+y}
6047then :
6048  printf %s "(cached) " >&6
6049else case e in #(
6050  e) if test -n "$FILECMD"; then
6051  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6052else
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056  IFS=$as_save_IFS
6057  case $as_dir in #(((
6058    '') as_dir=./ ;;
6059    */) ;;
6060    *) as_dir=$as_dir/ ;;
6061  esac
6062    for ac_exec_ext in '' $ac_executable_extensions; do
6063  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6064    ac_cv_prog_FILECMD="file"
6065    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6066    break 2
6067  fi
6068done
6069  done
6070IFS=$as_save_IFS
6071
6072  test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6073fi ;;
6074esac
6075fi
6076FILECMD=$ac_cv_prog_FILECMD
6077if test -n "$FILECMD"; then
6078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6079printf "%s\n" "$FILECMD" >&6; }
6080else
6081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082printf "%s\n" "no" >&6; }
6083fi
6084
6085
6086
6087
6088
6089
6090
6091
6092if test -n "$ac_tool_prefix"; then
6093  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6094set dummy ${ac_tool_prefix}objdump; ac_word=$2
6095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096printf %s "checking for $ac_word... " >&6; }
6097if test ${ac_cv_prog_OBJDUMP+y}
6098then :
6099  printf %s "(cached) " >&6
6100else case e in #(
6101  e) if test -n "$OBJDUMP"; then
6102  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107  IFS=$as_save_IFS
6108  case $as_dir in #(((
6109    '') as_dir=./ ;;
6110    */) ;;
6111    *) as_dir=$as_dir/ ;;
6112  esac
6113    for ac_exec_ext in '' $ac_executable_extensions; do
6114  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6115    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6116    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6117    break 2
6118  fi
6119done
6120  done
6121IFS=$as_save_IFS
6122
6123fi ;;
6124esac
6125fi
6126OBJDUMP=$ac_cv_prog_OBJDUMP
6127if test -n "$OBJDUMP"; then
6128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6129printf "%s\n" "$OBJDUMP" >&6; }
6130else
6131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132printf "%s\n" "no" >&6; }
6133fi
6134
6135
6136fi
6137if test -z "$ac_cv_prog_OBJDUMP"; then
6138  ac_ct_OBJDUMP=$OBJDUMP
6139  # Extract the first word of "objdump", so it can be a program name with args.
6140set dummy objdump; ac_word=$2
6141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142printf %s "checking for $ac_word... " >&6; }
6143if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6144then :
6145  printf %s "(cached) " >&6
6146else case e in #(
6147  e) if test -n "$ac_ct_OBJDUMP"; then
6148  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6149else
6150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153  IFS=$as_save_IFS
6154  case $as_dir in #(((
6155    '') as_dir=./ ;;
6156    */) ;;
6157    *) as_dir=$as_dir/ ;;
6158  esac
6159    for ac_exec_ext in '' $ac_executable_extensions; do
6160  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6161    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6162    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6163    break 2
6164  fi
6165done
6166  done
6167IFS=$as_save_IFS
6168
6169fi ;;
6170esac
6171fi
6172ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6173if test -n "$ac_ct_OBJDUMP"; then
6174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6175printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6176else
6177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178printf "%s\n" "no" >&6; }
6179fi
6180
6181  if test "x$ac_ct_OBJDUMP" = x; then
6182    OBJDUMP="false"
6183  else
6184    case $cross_compiling:$ac_tool_warned in
6185yes:)
6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188ac_tool_warned=yes ;;
6189esac
6190    OBJDUMP=$ac_ct_OBJDUMP
6191  fi
6192else
6193  OBJDUMP="$ac_cv_prog_OBJDUMP"
6194fi
6195
6196test -z "$OBJDUMP" && OBJDUMP=objdump
6197
6198
6199
6200
6201
6202
6203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6204printf %s "checking how to recognize dependent libraries... " >&6; }
6205if test ${lt_cv_deplibs_check_method+y}
6206then :
6207  printf %s "(cached) " >&6
6208else case e in #(
6209  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6210lt_cv_file_magic_test_file=
6211lt_cv_deplibs_check_method='unknown'
6212# Need to set the preceding variable on all platforms that support
6213# interlibrary dependencies.
6214# 'none' -- dependencies not supported.
6215# 'unknown' -- same as none, but documents that we really don't know.
6216# 'pass_all' -- all dependencies passed with no checks.
6217# 'file_magic [[regex]]' -- check by looking for files in library path
6218# that responds to the $file_magic_cmd with a given extended regex.
6219# If you have 'file' or equivalent on your system and you're not sure
6220# whether 'pass_all' will *always* work, you probably want this one.
6221
6222case $host_os in
6223aix[4-9]*)
6224  lt_cv_deplibs_check_method=pass_all
6225  ;;
6226
6227beos*)
6228  lt_cv_deplibs_check_method=pass_all
6229  ;;
6230
6231bsdi[45]*)
6232  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6233  lt_cv_file_magic_cmd='$FILECMD -L'
6234  lt_cv_file_magic_test_file=/shlib/libc.so
6235  ;;
6236
6237cygwin*)
6238  # func_win32_libid is a shell function defined in ltmain.sh
6239  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6240  lt_cv_file_magic_cmd='func_win32_libid'
6241  ;;
6242
6243mingw* | windows* | pw32*)
6244  # Base MSYS/MinGW do not provide the 'file' command needed by
6245  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6246  # unless we find 'file', for example because we are cross-compiling.
6247  if ( file / ) >/dev/null 2>&1; then
6248    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6249    lt_cv_file_magic_cmd='func_win32_libid'
6250  else
6251    # Keep this pattern in sync with the one in func_win32_libid.
6252    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6253    lt_cv_file_magic_cmd='$OBJDUMP -f'
6254  fi
6255  ;;
6256
6257cegcc*)
6258  # use the weaker test based on 'objdump'. See mingw*.
6259  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6260  lt_cv_file_magic_cmd='$OBJDUMP -f'
6261  ;;
6262
6263darwin* | rhapsody*)
6264  lt_cv_deplibs_check_method=pass_all
6265  ;;
6266
6267freebsd* | dragonfly* | midnightbsd*)
6268  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6269    case $host_cpu in
6270    i*86 )
6271      # Not sure whether the presence of OpenBSD here was a mistake.
6272      # Let's accept both of them until this is cleared up.
6273      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6274      lt_cv_file_magic_cmd=$FILECMD
6275      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6276      ;;
6277    esac
6278  else
6279    lt_cv_deplibs_check_method=pass_all
6280  fi
6281  ;;
6282
6283haiku*)
6284  lt_cv_deplibs_check_method=pass_all
6285  ;;
6286
6287hpux10.20* | hpux11*)
6288  lt_cv_file_magic_cmd=$FILECMD
6289  case $host_cpu in
6290  ia64*)
6291    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6292    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6293    ;;
6294  hppa*64*)
6295    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]'
6296    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6297    ;;
6298  *)
6299    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6300    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6301    ;;
6302  esac
6303  ;;
6304
6305interix[3-9]*)
6306  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6307  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6308  ;;
6309
6310irix5* | irix6* | nonstopux*)
6311  case $LD in
6312  *-32|*"-32 ") libmagic=32-bit;;
6313  *-n32|*"-n32 ") libmagic=N32;;
6314  *-64|*"-64 ") libmagic=64-bit;;
6315  *) libmagic=never-match;;
6316  esac
6317  lt_cv_deplibs_check_method=pass_all
6318  ;;
6319
6320# This must be glibc/ELF.
6321linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6322  lt_cv_deplibs_check_method=pass_all
6323  ;;
6324
6325*-mlibc)
6326  lt_cv_deplibs_check_method=pass_all
6327  ;;
6328
6329netbsd* | netbsdelf*-gnu)
6330  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6331    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6332  else
6333    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6334  fi
6335  ;;
6336
6337newos6*)
6338  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6339  lt_cv_file_magic_cmd=$FILECMD
6340  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6341  ;;
6342
6343*nto* | *qnx*)
6344  lt_cv_deplibs_check_method=pass_all
6345  ;;
6346
6347openbsd*)
6348  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6350  else
6351    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6352  fi
6353  ;;
6354
6355osf3* | osf4* | osf5*)
6356  lt_cv_deplibs_check_method=pass_all
6357  ;;
6358
6359rdos*)
6360  lt_cv_deplibs_check_method=pass_all
6361  ;;
6362
6363serenity*)
6364  lt_cv_deplibs_check_method=pass_all
6365  ;;
6366
6367solaris*)
6368  lt_cv_deplibs_check_method=pass_all
6369  ;;
6370
6371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6372  lt_cv_deplibs_check_method=pass_all
6373  ;;
6374
6375sysv4 | sysv4.3*)
6376  case $host_vendor in
6377  motorola)
6378    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]'
6379    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6380    ;;
6381  ncr)
6382    lt_cv_deplibs_check_method=pass_all
6383    ;;
6384  sequent)
6385    lt_cv_file_magic_cmd='/bin/file'
6386    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6387    ;;
6388  sni)
6389    lt_cv_file_magic_cmd='/bin/file'
6390    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6391    lt_cv_file_magic_test_file=/lib/libc.so
6392    ;;
6393  siemens)
6394    lt_cv_deplibs_check_method=pass_all
6395    ;;
6396  pc)
6397    lt_cv_deplibs_check_method=pass_all
6398    ;;
6399  esac
6400  ;;
6401
6402tpf*)
6403  lt_cv_deplibs_check_method=pass_all
6404  ;;
6405os2*)
6406  lt_cv_deplibs_check_method=pass_all
6407  ;;
6408esac
6409 ;;
6410esac
6411fi
6412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6413printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6414
6415file_magic_glob=
6416want_nocaseglob=no
6417if test "$build" = "$host"; then
6418  case $host_os in
6419  mingw* | windows* | pw32*)
6420    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6421      want_nocaseglob=yes
6422    else
6423      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6424    fi
6425    ;;
6426  esac
6427fi
6428
6429file_magic_cmd=$lt_cv_file_magic_cmd
6430deplibs_check_method=$lt_cv_deplibs_check_method
6431test -z "$deplibs_check_method" && deplibs_check_method=unknown
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454if test -n "$ac_tool_prefix"; then
6455  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6456set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458printf %s "checking for $ac_word... " >&6; }
6459if test ${ac_cv_prog_DLLTOOL+y}
6460then :
6461  printf %s "(cached) " >&6
6462else case e in #(
6463  e) if test -n "$DLLTOOL"; then
6464  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6465else
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469  IFS=$as_save_IFS
6470  case $as_dir in #(((
6471    '') as_dir=./ ;;
6472    */) ;;
6473    *) as_dir=$as_dir/ ;;
6474  esac
6475    for ac_exec_ext in '' $ac_executable_extensions; do
6476  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6477    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6478    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6479    break 2
6480  fi
6481done
6482  done
6483IFS=$as_save_IFS
6484
6485fi ;;
6486esac
6487fi
6488DLLTOOL=$ac_cv_prog_DLLTOOL
6489if test -n "$DLLTOOL"; then
6490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6491printf "%s\n" "$DLLTOOL" >&6; }
6492else
6493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494printf "%s\n" "no" >&6; }
6495fi
6496
6497
6498fi
6499if test -z "$ac_cv_prog_DLLTOOL"; then
6500  ac_ct_DLLTOOL=$DLLTOOL
6501  # Extract the first word of "dlltool", so it can be a program name with args.
6502set dummy dlltool; ac_word=$2
6503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504printf %s "checking for $ac_word... " >&6; }
6505if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6506then :
6507  printf %s "(cached) " >&6
6508else case e in #(
6509  e) if test -n "$ac_ct_DLLTOOL"; then
6510  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515  IFS=$as_save_IFS
6516  case $as_dir in #(((
6517    '') as_dir=./ ;;
6518    */) ;;
6519    *) as_dir=$as_dir/ ;;
6520  esac
6521    for ac_exec_ext in '' $ac_executable_extensions; do
6522  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6523    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6524    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6525    break 2
6526  fi
6527done
6528  done
6529IFS=$as_save_IFS
6530
6531fi ;;
6532esac
6533fi
6534ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6535if test -n "$ac_ct_DLLTOOL"; then
6536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6537printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6538else
6539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540printf "%s\n" "no" >&6; }
6541fi
6542
6543  if test "x$ac_ct_DLLTOOL" = x; then
6544    DLLTOOL="false"
6545  else
6546    case $cross_compiling:$ac_tool_warned in
6547yes:)
6548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550ac_tool_warned=yes ;;
6551esac
6552    DLLTOOL=$ac_ct_DLLTOOL
6553  fi
6554else
6555  DLLTOOL="$ac_cv_prog_DLLTOOL"
6556fi
6557
6558test -z "$DLLTOOL" && DLLTOOL=dlltool
6559
6560
6561
6562
6563
6564
6565
6566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6567printf %s "checking how to associate runtime and link libraries... " >&6; }
6568if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6569then :
6570  printf %s "(cached) " >&6
6571else case e in #(
6572  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6573
6574case $host_os in
6575cygwin* | mingw* | windows* | pw32* | cegcc*)
6576  # two different shell functions defined in ltmain.sh;
6577  # decide which one to use based on capabilities of $DLLTOOL
6578  case `$DLLTOOL --help 2>&1` in
6579  *--identify-strict*)
6580    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6581    ;;
6582  *)
6583    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6584    ;;
6585  esac
6586  ;;
6587*)
6588  # fallback: assume linklib IS sharedlib
6589  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6590  ;;
6591esac
6592 ;;
6593esac
6594fi
6595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6596printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6597sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6598test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6599
6600
6601
6602
6603
6604
6605
6606if test -n "$ac_tool_prefix"; then
6607  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6608set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610printf %s "checking for $ac_word... " >&6; }
6611if test ${ac_cv_prog_RANLIB+y}
6612then :
6613  printf %s "(cached) " >&6
6614else case e in #(
6615  e) if test -n "$RANLIB"; then
6616  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621  IFS=$as_save_IFS
6622  case $as_dir in #(((
6623    '') as_dir=./ ;;
6624    */) ;;
6625    *) as_dir=$as_dir/ ;;
6626  esac
6627    for ac_exec_ext in '' $ac_executable_extensions; do
6628  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6629    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6631    break 2
6632  fi
6633done
6634  done
6635IFS=$as_save_IFS
6636
6637fi ;;
6638esac
6639fi
6640RANLIB=$ac_cv_prog_RANLIB
6641if test -n "$RANLIB"; then
6642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6643printf "%s\n" "$RANLIB" >&6; }
6644else
6645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646printf "%s\n" "no" >&6; }
6647fi
6648
6649
6650fi
6651if test -z "$ac_cv_prog_RANLIB"; then
6652  ac_ct_RANLIB=$RANLIB
6653  # Extract the first word of "ranlib", so it can be a program name with args.
6654set dummy ranlib; ac_word=$2
6655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656printf %s "checking for $ac_word... " >&6; }
6657if test ${ac_cv_prog_ac_ct_RANLIB+y}
6658then :
6659  printf %s "(cached) " >&6
6660else case e in #(
6661  e) if test -n "$ac_ct_RANLIB"; then
6662  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667  IFS=$as_save_IFS
6668  case $as_dir in #(((
6669    '') as_dir=./ ;;
6670    */) ;;
6671    *) as_dir=$as_dir/ ;;
6672  esac
6673    for ac_exec_ext in '' $ac_executable_extensions; do
6674  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6675    ac_cv_prog_ac_ct_RANLIB="ranlib"
6676    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6677    break 2
6678  fi
6679done
6680  done
6681IFS=$as_save_IFS
6682
6683fi ;;
6684esac
6685fi
6686ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6687if test -n "$ac_ct_RANLIB"; then
6688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6689printf "%s\n" "$ac_ct_RANLIB" >&6; }
6690else
6691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692printf "%s\n" "no" >&6; }
6693fi
6694
6695  if test "x$ac_ct_RANLIB" = x; then
6696    RANLIB=":"
6697  else
6698    case $cross_compiling:$ac_tool_warned in
6699yes:)
6700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6701printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6702ac_tool_warned=yes ;;
6703esac
6704    RANLIB=$ac_ct_RANLIB
6705  fi
6706else
6707  RANLIB="$ac_cv_prog_RANLIB"
6708fi
6709
6710if test -n "$ac_tool_prefix"; then
6711  for ac_prog in ar
6712  do
6713    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716printf %s "checking for $ac_word... " >&6; }
6717if test ${ac_cv_prog_AR+y}
6718then :
6719  printf %s "(cached) " >&6
6720else case e in #(
6721  e) if test -n "$AR"; then
6722  ac_cv_prog_AR="$AR" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727  IFS=$as_save_IFS
6728  case $as_dir in #(((
6729    '') as_dir=./ ;;
6730    */) ;;
6731    *) as_dir=$as_dir/ ;;
6732  esac
6733    for ac_exec_ext in '' $ac_executable_extensions; do
6734  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6735    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6736    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6737    break 2
6738  fi
6739done
6740  done
6741IFS=$as_save_IFS
6742
6743fi ;;
6744esac
6745fi
6746AR=$ac_cv_prog_AR
6747if test -n "$AR"; then
6748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6749printf "%s\n" "$AR" >&6; }
6750else
6751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752printf "%s\n" "no" >&6; }
6753fi
6754
6755
6756    test -n "$AR" && break
6757  done
6758fi
6759if test -z "$AR"; then
6760  ac_ct_AR=$AR
6761  for ac_prog in ar
6762do
6763  # Extract the first word of "$ac_prog", so it can be a program name with args.
6764set dummy $ac_prog; ac_word=$2
6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766printf %s "checking for $ac_word... " >&6; }
6767if test ${ac_cv_prog_ac_ct_AR+y}
6768then :
6769  printf %s "(cached) " >&6
6770else case e in #(
6771  e) if test -n "$ac_ct_AR"; then
6772  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777  IFS=$as_save_IFS
6778  case $as_dir in #(((
6779    '') as_dir=./ ;;
6780    */) ;;
6781    *) as_dir=$as_dir/ ;;
6782  esac
6783    for ac_exec_ext in '' $ac_executable_extensions; do
6784  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6785    ac_cv_prog_ac_ct_AR="$ac_prog"
6786    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6787    break 2
6788  fi
6789done
6790  done
6791IFS=$as_save_IFS
6792
6793fi ;;
6794esac
6795fi
6796ac_ct_AR=$ac_cv_prog_ac_ct_AR
6797if test -n "$ac_ct_AR"; then
6798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6799printf "%s\n" "$ac_ct_AR" >&6; }
6800else
6801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802printf "%s\n" "no" >&6; }
6803fi
6804
6805
6806  test -n "$ac_ct_AR" && break
6807done
6808
6809  if test "x$ac_ct_AR" = x; then
6810    AR="false"
6811  else
6812    case $cross_compiling:$ac_tool_warned in
6813yes:)
6814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816ac_tool_warned=yes ;;
6817esac
6818    AR=$ac_ct_AR
6819  fi
6820fi
6821
6822: ${AR=ar}
6823
6824
6825
6826
6827
6828
6829# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6830# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6831# higher priority because that's what people were doing historically (setting
6832# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6833# variable obsoleted/removed.
6834
6835test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6836lt_ar_flags=$AR_FLAGS
6837
6838
6839
6840
6841
6842
6843# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6844# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6845
6846
6847
6848
6849
6850
6851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6852printf %s "checking for archiver @FILE support... " >&6; }
6853if test ${lt_cv_ar_at_file+y}
6854then :
6855  printf %s "(cached) " >&6
6856else case e in #(
6857  e) lt_cv_ar_at_file=no
6858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h.  */
6860
6861int
6862main (void)
6863{
6864
6865  ;
6866  return 0;
6867}
6868_ACEOF
6869if ac_fn_c_try_compile "$LINENO"
6870then :
6871  echo conftest.$ac_objext > conftest.lst
6872      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6873      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6874  (eval $lt_ar_try) 2>&5
6875  ac_status=$?
6876  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877  test $ac_status = 0; }
6878      if test 0 -eq "$ac_status"; then
6879	# Ensure the archiver fails upon bogus file names.
6880	rm -f conftest.$ac_objext libconftest.a
6881	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6882  (eval $lt_ar_try) 2>&5
6883  ac_status=$?
6884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885  test $ac_status = 0; }
6886	if test 0 -ne "$ac_status"; then
6887          lt_cv_ar_at_file=@
6888        fi
6889      fi
6890      rm -f conftest.* libconftest.a
6891
6892fi
6893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6894   ;;
6895esac
6896fi
6897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6898printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6899
6900if test no = "$lt_cv_ar_at_file"; then
6901  archiver_list_spec=
6902else
6903  archiver_list_spec=$lt_cv_ar_at_file
6904fi
6905
6906
6907
6908
6909
6910
6911
6912if test -n "$ac_tool_prefix"; then
6913  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6914set dummy ${ac_tool_prefix}strip; ac_word=$2
6915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916printf %s "checking for $ac_word... " >&6; }
6917if test ${ac_cv_prog_STRIP+y}
6918then :
6919  printf %s "(cached) " >&6
6920else case e in #(
6921  e) if test -n "$STRIP"; then
6922  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927  IFS=$as_save_IFS
6928  case $as_dir in #(((
6929    '') as_dir=./ ;;
6930    */) ;;
6931    *) as_dir=$as_dir/ ;;
6932  esac
6933    for ac_exec_ext in '' $ac_executable_extensions; do
6934  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6935    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6936    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6937    break 2
6938  fi
6939done
6940  done
6941IFS=$as_save_IFS
6942
6943fi ;;
6944esac
6945fi
6946STRIP=$ac_cv_prog_STRIP
6947if test -n "$STRIP"; then
6948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6949printf "%s\n" "$STRIP" >&6; }
6950else
6951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952printf "%s\n" "no" >&6; }
6953fi
6954
6955
6956fi
6957if test -z "$ac_cv_prog_STRIP"; then
6958  ac_ct_STRIP=$STRIP
6959  # Extract the first word of "strip", so it can be a program name with args.
6960set dummy strip; ac_word=$2
6961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962printf %s "checking for $ac_word... " >&6; }
6963if test ${ac_cv_prog_ac_ct_STRIP+y}
6964then :
6965  printf %s "(cached) " >&6
6966else case e in #(
6967  e) if test -n "$ac_ct_STRIP"; then
6968  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6969else
6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971for as_dir in $PATH
6972do
6973  IFS=$as_save_IFS
6974  case $as_dir in #(((
6975    '') as_dir=./ ;;
6976    */) ;;
6977    *) as_dir=$as_dir/ ;;
6978  esac
6979    for ac_exec_ext in '' $ac_executable_extensions; do
6980  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6981    ac_cv_prog_ac_ct_STRIP="strip"
6982    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6983    break 2
6984  fi
6985done
6986  done
6987IFS=$as_save_IFS
6988
6989fi ;;
6990esac
6991fi
6992ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6993if test -n "$ac_ct_STRIP"; then
6994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6995printf "%s\n" "$ac_ct_STRIP" >&6; }
6996else
6997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998printf "%s\n" "no" >&6; }
6999fi
7000
7001  if test "x$ac_ct_STRIP" = x; then
7002    STRIP=":"
7003  else
7004    case $cross_compiling:$ac_tool_warned in
7005yes:)
7006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008ac_tool_warned=yes ;;
7009esac
7010    STRIP=$ac_ct_STRIP
7011  fi
7012else
7013  STRIP="$ac_cv_prog_STRIP"
7014fi
7015
7016test -z "$STRIP" && STRIP=:
7017
7018
7019
7020
7021
7022
7023
7024test -z "$RANLIB" && RANLIB=:
7025
7026
7027
7028
7029
7030
7031# Determine commands to create old-style static archives.
7032old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7033old_postinstall_cmds='chmod 644 $oldlib'
7034old_postuninstall_cmds=
7035
7036if test -n "$RANLIB"; then
7037  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7038  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7039fi
7040
7041case $host_os in
7042  darwin*)
7043    lock_old_archive_extraction=yes ;;
7044  *)
7045    lock_old_archive_extraction=no ;;
7046esac
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086# If no C compiler was specified, use CC.
7087LTCC=${LTCC-"$CC"}
7088
7089# If no C compiler flags were specified, use CFLAGS.
7090LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7091
7092# Allow CC to be a program name with arguments.
7093compiler=$CC
7094
7095
7096# Check for command to grab the raw symbol name followed by C symbol from nm.
7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7098printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7099if test ${lt_cv_sys_global_symbol_pipe+y}
7100then :
7101  printf %s "(cached) " >&6
7102else case e in #(
7103  e)
7104# These are sane defaults that work on at least a few old systems.
7105# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7106
7107# Character class describing NM global symbol codes.
7108symcode='[BCDEGRST]'
7109
7110# Regexp to match symbols that can be accessed directly from C.
7111sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7112
7113# Define system-specific variables.
7114case $host_os in
7115aix*)
7116  symcode='[BCDT]'
7117  ;;
7118cygwin* | mingw* | windows* | pw32* | cegcc*)
7119  symcode='[ABCDGISTW]'
7120  ;;
7121hpux*)
7122  if test ia64 = "$host_cpu"; then
7123    symcode='[ABCDEGRST]'
7124  fi
7125  ;;
7126irix* | nonstopux*)
7127  symcode='[BCDEGRST]'
7128  ;;
7129osf*)
7130  symcode='[BCDEGQRST]'
7131  ;;
7132solaris*)
7133  symcode='[BCDRT]'
7134  ;;
7135sco3.2v5*)
7136  symcode='[DT]'
7137  ;;
7138sysv4.2uw2*)
7139  symcode='[DT]'
7140  ;;
7141sysv5* | sco5v6* | unixware* | OpenUNIX*)
7142  symcode='[ABDT]'
7143  ;;
7144sysv4)
7145  symcode='[DFNSTU]'
7146  ;;
7147esac
7148
7149# If we're using GNU nm, then use its standard symbol codes.
7150case `$NM -V 2>&1` in
7151*GNU* | *'with BFD'*)
7152  symcode='[ABCDGIRSTW]' ;;
7153esac
7154
7155if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7156  # Gets list of data symbols to import.
7157  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7158  # Adjust the below global symbol transforms to fixup imported variables.
7159  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7160  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7161  lt_c_name_lib_hook="\
7162  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7163  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7164else
7165  # Disable hooks by default.
7166  lt_cv_sys_global_symbol_to_import=
7167  lt_cdecl_hook=
7168  lt_c_name_hook=
7169  lt_c_name_lib_hook=
7170fi
7171
7172# Transform an extracted symbol line into a proper C declaration.
7173# Some systems (esp. on ia64) link data and code symbols differently,
7174# so use this general approach.
7175lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7176$lt_cdecl_hook\
7177" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7178" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7179
7180# Transform an extracted symbol line into symbol name and symbol address
7181lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7182$lt_c_name_hook\
7183" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7184" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7185
7186# Transform an extracted symbol line into symbol name with lib prefix and
7187# symbol address.
7188lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7189$lt_c_name_lib_hook\
7190" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7191" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7192" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7193
7194# Handle CRLF in mingw tool chain
7195opt_cr=
7196case $build_os in
7197mingw* | windows*)
7198  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7199  ;;
7200esac
7201
7202# Try without a prefix underscore, then with it.
7203for ac_symprfx in "" "_"; do
7204
7205  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7206  symxfrm="\\1 $ac_symprfx\\2 \\2"
7207
7208  # Write the raw and C identifiers.
7209  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7210    # Fake it for dumpbin and say T for any non-static function,
7211    # D for any global variable and I for any imported variable.
7212    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7213    # which start with @ or ?.
7214    lt_cv_sys_global_symbol_pipe="$AWK '"\
7215"     {last_section=section; section=\$ 3};"\
7216"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7217"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7218"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7219"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7220"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7221"     \$ 0!~/External *\|/{next};"\
7222"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7223"     {if(hide[section]) next};"\
7224"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7225"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7226"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7227"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7228"     ' prfx=^$ac_symprfx"
7229  else
7230    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7231  fi
7232  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7233
7234  # Check to see that the pipe works correctly.
7235  pipe_works=no
7236
7237  rm -f conftest*
7238  cat > conftest.$ac_ext <<_LT_EOF
7239#ifdef __cplusplus
7240extern "C" {
7241#endif
7242char nm_test_var;
7243void nm_test_func(void);
7244void nm_test_func(void){}
7245#ifdef __cplusplus
7246}
7247#endif
7248int main(void){nm_test_var='a';nm_test_func();return(0);}
7249_LT_EOF
7250
7251  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252  (eval $ac_compile) 2>&5
7253  ac_status=$?
7254  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255  test $ac_status = 0; }; then
7256    # Now try to grab the symbols.
7257    nlist=conftest.nm
7258    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7259    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7260      # Try sorting and uniquifying the output.
7261      if sort "$nlist" | uniq > "$nlist"T; then
7262	mv -f "$nlist"T "$nlist"
7263      else
7264	rm -f "$nlist"T
7265      fi
7266
7267      # Make sure that we snagged all the symbols we need.
7268      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7269	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7270	  cat <<_LT_EOF > conftest.$ac_ext
7271/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7272#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7273/* DATA imports from DLLs on WIN32 can't be const, because runtime
7274   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7275# define LT_DLSYM_CONST
7276#elif defined __osf__
7277/* This system does not cope well with relocations in const data.  */
7278# define LT_DLSYM_CONST
7279#else
7280# define LT_DLSYM_CONST const
7281#endif
7282
7283#ifdef __cplusplus
7284extern "C" {
7285#endif
7286
7287_LT_EOF
7288	  # Now generate the symbol file.
7289	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7290
7291	  cat <<_LT_EOF >> conftest.$ac_ext
7292
7293/* The mapping between symbol names and symbols.  */
7294LT_DLSYM_CONST struct {
7295  const char *name;
7296  void       *address;
7297}
7298lt__PROGRAM__LTX_preloaded_symbols[] =
7299{
7300  { "@PROGRAM@", (void *) 0 },
7301_LT_EOF
7302	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7303	  cat <<\_LT_EOF >> conftest.$ac_ext
7304  {0, (void *) 0}
7305};
7306
7307/* This works around a problem in FreeBSD linker */
7308#ifdef FREEBSD_WORKAROUND
7309static const void *lt_preloaded_setup() {
7310  return lt__PROGRAM__LTX_preloaded_symbols;
7311}
7312#endif
7313
7314#ifdef __cplusplus
7315}
7316#endif
7317_LT_EOF
7318	  # Now try linking the two files.
7319	  mv conftest.$ac_objext conftstm.$ac_objext
7320	  lt_globsym_save_LIBS=$LIBS
7321	  lt_globsym_save_CFLAGS=$CFLAGS
7322	  LIBS=conftstm.$ac_objext
7323	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7324	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7325  (eval $ac_link) 2>&5
7326  ac_status=$?
7327  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7329	    pipe_works=yes
7330	  fi
7331	  LIBS=$lt_globsym_save_LIBS
7332	  CFLAGS=$lt_globsym_save_CFLAGS
7333	else
7334	  echo "cannot find nm_test_func in $nlist" >&5
7335	fi
7336      else
7337	echo "cannot find nm_test_var in $nlist" >&5
7338      fi
7339    else
7340      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7341    fi
7342  else
7343    echo "$progname: failed program was:" >&5
7344    cat conftest.$ac_ext >&5
7345  fi
7346  rm -rf conftest* conftst*
7347
7348  # Do not use the global_symbol_pipe unless it works.
7349  if test yes = "$pipe_works"; then
7350    break
7351  else
7352    lt_cv_sys_global_symbol_pipe=
7353  fi
7354done
7355 ;;
7356esac
7357fi
7358
7359if test -z "$lt_cv_sys_global_symbol_pipe"; then
7360  lt_cv_sys_global_symbol_to_cdecl=
7361fi
7362if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7364printf "%s\n" "failed" >&6; }
7365else
7366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7367printf "%s\n" "ok" >&6; }
7368fi
7369
7370# Response file support.
7371if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7372  nm_file_list_spec='@'
7373elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7374  nm_file_list_spec='@'
7375fi
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7414printf %s "checking for sysroot... " >&6; }
7415
7416# Check whether --with-sysroot was given.
7417if test ${with_sysroot+y}
7418then :
7419  withval=$with_sysroot;
7420else case e in #(
7421  e) with_sysroot=no ;;
7422esac
7423fi
7424
7425
7426lt_sysroot=
7427case $with_sysroot in #(
7428 yes)
7429   if test yes = "$GCC"; then
7430     # Trim trailing / since we'll always append absolute paths and we want
7431     # to avoid //, if only for less confusing output for the user.
7432     lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7433   fi
7434   ;; #(
7435 /*)
7436   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7437   ;; #(
7438 no|'')
7439   ;; #(
7440 *)
7441   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7442printf "%s\n" "$with_sysroot" >&6; }
7443   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7444   ;;
7445esac
7446
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7448printf "%s\n" "${lt_sysroot:-no}" >&6; }
7449
7450
7451
7452
7453
7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7455printf %s "checking for a working dd... " >&6; }
7456if test ${ac_cv_path_lt_DD+y}
7457then :
7458  printf %s "(cached) " >&6
7459else case e in #(
7460  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7461cat conftest.i conftest.i >conftest2.i
7462: ${lt_DD:=$DD}
7463if test -z "$lt_DD"; then
7464  ac_path_lt_DD_found=false
7465  # Loop through the user's path and test for each of PROGNAME-LIST
7466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467for as_dir in $PATH
7468do
7469  IFS=$as_save_IFS
7470  case $as_dir in #(((
7471    '') as_dir=./ ;;
7472    */) ;;
7473    *) as_dir=$as_dir/ ;;
7474  esac
7475    for ac_prog in dd
7476   do
7477    for ac_exec_ext in '' $ac_executable_extensions; do
7478      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7479      as_fn_executable_p "$ac_path_lt_DD" || continue
7480if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7481  cmp -s conftest.i conftest.out \
7482  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7483fi
7484      $ac_path_lt_DD_found && break 3
7485    done
7486  done
7487  done
7488IFS=$as_save_IFS
7489  if test -z "$ac_cv_path_lt_DD"; then
7490    :
7491  fi
7492else
7493  ac_cv_path_lt_DD=$lt_DD
7494fi
7495
7496rm -f conftest.i conftest2.i conftest.out ;;
7497esac
7498fi
7499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7500printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7501
7502
7503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7504printf %s "checking how to truncate binary pipes... " >&6; }
7505if test ${lt_cv_truncate_bin+y}
7506then :
7507  printf %s "(cached) " >&6
7508else case e in #(
7509  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7510cat conftest.i conftest.i >conftest2.i
7511lt_cv_truncate_bin=
7512if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7513  cmp -s conftest.i conftest.out \
7514  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7515fi
7516rm -f conftest.i conftest2.i conftest.out
7517test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7518esac
7519fi
7520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7521printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7522
7523
7524
7525
7526
7527
7528
7529# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7530func_cc_basename ()
7531{
7532    for cc_temp in $*""; do
7533      case $cc_temp in
7534        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7535        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7536        \-*) ;;
7537        *) break;;
7538      esac
7539    done
7540    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7541}
7542
7543# Check whether --enable-libtool-lock was given.
7544if test ${enable_libtool_lock+y}
7545then :
7546  enableval=$enable_libtool_lock;
7547fi
7548
7549test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7550
7551# Some flags need to be propagated to the compiler or linker for good
7552# libtool support.
7553case $host in
7554ia64-*-hpux*)
7555  # Find out what ABI is being produced by ac_compile, and set mode
7556  # options accordingly.
7557  echo 'int i;' > conftest.$ac_ext
7558  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7559  (eval $ac_compile) 2>&5
7560  ac_status=$?
7561  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7562  test $ac_status = 0; }; then
7563    case `$FILECMD conftest.$ac_objext` in
7564      *ELF-32*)
7565	HPUX_IA64_MODE=32
7566	;;
7567      *ELF-64*)
7568	HPUX_IA64_MODE=64
7569	;;
7570    esac
7571  fi
7572  rm -rf conftest*
7573  ;;
7574*-*-irix6*)
7575  # Find out what ABI is being produced by ac_compile, and set linker
7576  # options accordingly.
7577  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7578  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7579  (eval $ac_compile) 2>&5
7580  ac_status=$?
7581  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582  test $ac_status = 0; }; then
7583    if test yes = "$lt_cv_prog_gnu_ld"; then
7584      case `$FILECMD conftest.$ac_objext` in
7585	*32-bit*)
7586	  LD="${LD-ld} -melf32bsmip"
7587	  ;;
7588	*N32*)
7589	  LD="${LD-ld} -melf32bmipn32"
7590	  ;;
7591	*64-bit*)
7592	  LD="${LD-ld} -melf64bmip"
7593	;;
7594      esac
7595    else
7596      case `$FILECMD conftest.$ac_objext` in
7597	*32-bit*)
7598	  LD="${LD-ld} -32"
7599	  ;;
7600	*N32*)
7601	  LD="${LD-ld} -n32"
7602	  ;;
7603	*64-bit*)
7604	  LD="${LD-ld} -64"
7605	  ;;
7606      esac
7607    fi
7608  fi
7609  rm -rf conftest*
7610  ;;
7611
7612mips64*-*linux*)
7613  # Find out what ABI is being produced by ac_compile, and set linker
7614  # options accordingly.
7615  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7616  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7617  (eval $ac_compile) 2>&5
7618  ac_status=$?
7619  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620  test $ac_status = 0; }; then
7621    emul=elf
7622    case `$FILECMD conftest.$ac_objext` in
7623      *32-bit*)
7624	emul="${emul}32"
7625	;;
7626      *64-bit*)
7627	emul="${emul}64"
7628	;;
7629    esac
7630    case `$FILECMD conftest.$ac_objext` in
7631      *MSB*)
7632	emul="${emul}btsmip"
7633	;;
7634      *LSB*)
7635	emul="${emul}ltsmip"
7636	;;
7637    esac
7638    case `$FILECMD conftest.$ac_objext` in
7639      *N32*)
7640	emul="${emul}n32"
7641	;;
7642    esac
7643    LD="${LD-ld} -m $emul"
7644  fi
7645  rm -rf conftest*
7646  ;;
7647
7648x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7649s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7650  # Find out what ABI is being produced by ac_compile, and set linker
7651  # options accordingly.  Note that the listed cases only cover the
7652  # situations where additional linker options are needed (such as when
7653  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7654  # vice versa); the common cases where no linker options are needed do
7655  # not appear in the list.
7656  echo 'int i;' > conftest.$ac_ext
7657  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7658  (eval $ac_compile) 2>&5
7659  ac_status=$?
7660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661  test $ac_status = 0; }; then
7662    case `$FILECMD conftest.o` in
7663      *32-bit*)
7664	case $host in
7665	  x86_64-*kfreebsd*-gnu)
7666	    LD="${LD-ld} -m elf_i386_fbsd"
7667	    ;;
7668	  x86_64-*linux*|x86_64-gnu*)
7669	    case `$FILECMD conftest.o` in
7670	      *x86-64*)
7671		LD="${LD-ld} -m elf32_x86_64"
7672		;;
7673	      *)
7674		LD="${LD-ld} -m elf_i386"
7675		;;
7676	    esac
7677	    ;;
7678	  powerpc64le-*linux*)
7679	    LD="${LD-ld} -m elf32lppclinux"
7680	    ;;
7681	  powerpc64-*linux*)
7682	    LD="${LD-ld} -m elf32ppclinux"
7683	    ;;
7684	  s390x-*linux*)
7685	    LD="${LD-ld} -m elf_s390"
7686	    ;;
7687	  sparc64-*linux*)
7688	    LD="${LD-ld} -m elf32_sparc"
7689	    ;;
7690	esac
7691	;;
7692      *64-bit*)
7693	case $host in
7694	  x86_64-*kfreebsd*-gnu)
7695	    LD="${LD-ld} -m elf_x86_64_fbsd"
7696	    ;;
7697	  x86_64-*linux*|x86_64-gnu*)
7698	    LD="${LD-ld} -m elf_x86_64"
7699	    ;;
7700	  powerpcle-*linux*)
7701	    LD="${LD-ld} -m elf64lppc"
7702	    ;;
7703	  powerpc-*linux*)
7704	    LD="${LD-ld} -m elf64ppc"
7705	    ;;
7706	  s390*-*linux*|s390*-*tpf*)
7707	    LD="${LD-ld} -m elf64_s390"
7708	    ;;
7709	  sparc*-*linux*)
7710	    LD="${LD-ld} -m elf64_sparc"
7711	    ;;
7712	esac
7713	;;
7714    esac
7715  fi
7716  rm -rf conftest*
7717  ;;
7718
7719*-*-sco3.2v5*)
7720  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7721  SAVE_CFLAGS=$CFLAGS
7722  CFLAGS="$CFLAGS -belf"
7723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7724printf %s "checking whether the C compiler needs -belf... " >&6; }
7725if test ${lt_cv_cc_needs_belf+y}
7726then :
7727  printf %s "(cached) " >&6
7728else case e in #(
7729  e) ac_ext=c
7730ac_cpp='$CPP $CPPFLAGS'
7731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733ac_compiler_gnu=$ac_cv_c_compiler_gnu
7734
7735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737
7738int
7739main (void)
7740{
7741
7742  ;
7743  return 0;
7744}
7745_ACEOF
7746if ac_fn_c_try_link "$LINENO"
7747then :
7748  lt_cv_cc_needs_belf=yes
7749else case e in #(
7750  e) lt_cv_cc_needs_belf=no ;;
7751esac
7752fi
7753rm -f core conftest.err conftest.$ac_objext conftest.beam \
7754    conftest$ac_exeext conftest.$ac_ext
7755     ac_ext=c
7756ac_cpp='$CPP $CPPFLAGS'
7757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760 ;;
7761esac
7762fi
7763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7764printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7765  if test yes != "$lt_cv_cc_needs_belf"; then
7766    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7767    CFLAGS=$SAVE_CFLAGS
7768  fi
7769  ;;
7770*-*solaris*)
7771  # Find out what ABI is being produced by ac_compile, and set linker
7772  # options accordingly.
7773  echo 'int i;' > conftest.$ac_ext
7774  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7775  (eval $ac_compile) 2>&5
7776  ac_status=$?
7777  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7778  test $ac_status = 0; }; then
7779    case `$FILECMD conftest.o` in
7780    *64-bit*)
7781      case $lt_cv_prog_gnu_ld in
7782      yes*)
7783        case $host in
7784        i?86-*-solaris*|x86_64-*-solaris*)
7785          LD="${LD-ld} -m elf_x86_64"
7786          ;;
7787        sparc*-*-solaris*)
7788          LD="${LD-ld} -m elf64_sparc"
7789          ;;
7790        esac
7791        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7792        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7793          LD=${LD-ld}_sol2
7794        fi
7795        ;;
7796      *)
7797	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7798	  LD="${LD-ld} -64"
7799	fi
7800	;;
7801      esac
7802      ;;
7803    esac
7804  fi
7805  rm -rf conftest*
7806  ;;
7807esac
7808
7809need_locks=$enable_libtool_lock
7810
7811if test -n "$ac_tool_prefix"; then
7812  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7813set dummy ${ac_tool_prefix}mt; ac_word=$2
7814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815printf %s "checking for $ac_word... " >&6; }
7816if test ${ac_cv_prog_MANIFEST_TOOL+y}
7817then :
7818  printf %s "(cached) " >&6
7819else case e in #(
7820  e) if test -n "$MANIFEST_TOOL"; then
7821  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7822else
7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824for as_dir in $PATH
7825do
7826  IFS=$as_save_IFS
7827  case $as_dir in #(((
7828    '') as_dir=./ ;;
7829    */) ;;
7830    *) as_dir=$as_dir/ ;;
7831  esac
7832    for ac_exec_ext in '' $ac_executable_extensions; do
7833  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7834    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7835    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7836    break 2
7837  fi
7838done
7839  done
7840IFS=$as_save_IFS
7841
7842fi ;;
7843esac
7844fi
7845MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7846if test -n "$MANIFEST_TOOL"; then
7847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7848printf "%s\n" "$MANIFEST_TOOL" >&6; }
7849else
7850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851printf "%s\n" "no" >&6; }
7852fi
7853
7854
7855fi
7856if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7857  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7858  # Extract the first word of "mt", so it can be a program name with args.
7859set dummy mt; ac_word=$2
7860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861printf %s "checking for $ac_word... " >&6; }
7862if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7863then :
7864  printf %s "(cached) " >&6
7865else case e in #(
7866  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7867  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872  IFS=$as_save_IFS
7873  case $as_dir in #(((
7874    '') as_dir=./ ;;
7875    */) ;;
7876    *) as_dir=$as_dir/ ;;
7877  esac
7878    for ac_exec_ext in '' $ac_executable_extensions; do
7879  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7880    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7882    break 2
7883  fi
7884done
7885  done
7886IFS=$as_save_IFS
7887
7888fi ;;
7889esac
7890fi
7891ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7892if test -n "$ac_ct_MANIFEST_TOOL"; then
7893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7894printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7895else
7896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897printf "%s\n" "no" >&6; }
7898fi
7899
7900  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7901    MANIFEST_TOOL=":"
7902  else
7903    case $cross_compiling:$ac_tool_warned in
7904yes:)
7905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7907ac_tool_warned=yes ;;
7908esac
7909    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7910  fi
7911else
7912  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7913fi
7914
7915test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7917printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7918if test ${lt_cv_path_manifest_tool+y}
7919then :
7920  printf %s "(cached) " >&6
7921else case e in #(
7922  e) lt_cv_path_manifest_tool=no
7923  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7924  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7925  cat conftest.err >&5
7926  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7927    lt_cv_path_manifest_tool=yes
7928  fi
7929  rm -f conftest* ;;
7930esac
7931fi
7932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7933printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7934if test yes != "$lt_cv_path_manifest_tool"; then
7935  MANIFEST_TOOL=:
7936fi
7937
7938
7939
7940
7941
7942
7943  case $host_os in
7944    rhapsody* | darwin*)
7945    if test -n "$ac_tool_prefix"; then
7946  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7947set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949printf %s "checking for $ac_word... " >&6; }
7950if test ${ac_cv_prog_DSYMUTIL+y}
7951then :
7952  printf %s "(cached) " >&6
7953else case e in #(
7954  e) if test -n "$DSYMUTIL"; then
7955  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960  IFS=$as_save_IFS
7961  case $as_dir in #(((
7962    '') as_dir=./ ;;
7963    */) ;;
7964    *) as_dir=$as_dir/ ;;
7965  esac
7966    for ac_exec_ext in '' $ac_executable_extensions; do
7967  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7968    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7969    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7970    break 2
7971  fi
7972done
7973  done
7974IFS=$as_save_IFS
7975
7976fi ;;
7977esac
7978fi
7979DSYMUTIL=$ac_cv_prog_DSYMUTIL
7980if test -n "$DSYMUTIL"; then
7981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7982printf "%s\n" "$DSYMUTIL" >&6; }
7983else
7984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985printf "%s\n" "no" >&6; }
7986fi
7987
7988
7989fi
7990if test -z "$ac_cv_prog_DSYMUTIL"; then
7991  ac_ct_DSYMUTIL=$DSYMUTIL
7992  # Extract the first word of "dsymutil", so it can be a program name with args.
7993set dummy dsymutil; ac_word=$2
7994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995printf %s "checking for $ac_word... " >&6; }
7996if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7997then :
7998  printf %s "(cached) " >&6
7999else case e in #(
8000  e) if test -n "$ac_ct_DSYMUTIL"; then
8001  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8002else
8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006  IFS=$as_save_IFS
8007  case $as_dir in #(((
8008    '') as_dir=./ ;;
8009    */) ;;
8010    *) as_dir=$as_dir/ ;;
8011  esac
8012    for ac_exec_ext in '' $ac_executable_extensions; do
8013  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8014    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8015    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8016    break 2
8017  fi
8018done
8019  done
8020IFS=$as_save_IFS
8021
8022fi ;;
8023esac
8024fi
8025ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8026if test -n "$ac_ct_DSYMUTIL"; then
8027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8028printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8029else
8030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031printf "%s\n" "no" >&6; }
8032fi
8033
8034  if test "x$ac_ct_DSYMUTIL" = x; then
8035    DSYMUTIL=":"
8036  else
8037    case $cross_compiling:$ac_tool_warned in
8038yes:)
8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041ac_tool_warned=yes ;;
8042esac
8043    DSYMUTIL=$ac_ct_DSYMUTIL
8044  fi
8045else
8046  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8047fi
8048
8049    if test -n "$ac_tool_prefix"; then
8050  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8051set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053printf %s "checking for $ac_word... " >&6; }
8054if test ${ac_cv_prog_NMEDIT+y}
8055then :
8056  printf %s "(cached) " >&6
8057else case e in #(
8058  e) if test -n "$NMEDIT"; then
8059  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8060else
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064  IFS=$as_save_IFS
8065  case $as_dir in #(((
8066    '') as_dir=./ ;;
8067    */) ;;
8068    *) as_dir=$as_dir/ ;;
8069  esac
8070    for ac_exec_ext in '' $ac_executable_extensions; do
8071  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8072    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8073    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8074    break 2
8075  fi
8076done
8077  done
8078IFS=$as_save_IFS
8079
8080fi ;;
8081esac
8082fi
8083NMEDIT=$ac_cv_prog_NMEDIT
8084if test -n "$NMEDIT"; then
8085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8086printf "%s\n" "$NMEDIT" >&6; }
8087else
8088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089printf "%s\n" "no" >&6; }
8090fi
8091
8092
8093fi
8094if test -z "$ac_cv_prog_NMEDIT"; then
8095  ac_ct_NMEDIT=$NMEDIT
8096  # Extract the first word of "nmedit", so it can be a program name with args.
8097set dummy nmedit; ac_word=$2
8098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099printf %s "checking for $ac_word... " >&6; }
8100if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8101then :
8102  printf %s "(cached) " >&6
8103else case e in #(
8104  e) if test -n "$ac_ct_NMEDIT"; then
8105  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8106else
8107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108for as_dir in $PATH
8109do
8110  IFS=$as_save_IFS
8111  case $as_dir in #(((
8112    '') as_dir=./ ;;
8113    */) ;;
8114    *) as_dir=$as_dir/ ;;
8115  esac
8116    for ac_exec_ext in '' $ac_executable_extensions; do
8117  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8118    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8119    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8120    break 2
8121  fi
8122done
8123  done
8124IFS=$as_save_IFS
8125
8126fi ;;
8127esac
8128fi
8129ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8130if test -n "$ac_ct_NMEDIT"; then
8131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8132printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8133else
8134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135printf "%s\n" "no" >&6; }
8136fi
8137
8138  if test "x$ac_ct_NMEDIT" = x; then
8139    NMEDIT=":"
8140  else
8141    case $cross_compiling:$ac_tool_warned in
8142yes:)
8143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8144printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8145ac_tool_warned=yes ;;
8146esac
8147    NMEDIT=$ac_ct_NMEDIT
8148  fi
8149else
8150  NMEDIT="$ac_cv_prog_NMEDIT"
8151fi
8152
8153    if test -n "$ac_tool_prefix"; then
8154  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8155set dummy ${ac_tool_prefix}lipo; ac_word=$2
8156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157printf %s "checking for $ac_word... " >&6; }
8158if test ${ac_cv_prog_LIPO+y}
8159then :
8160  printf %s "(cached) " >&6
8161else case e in #(
8162  e) if test -n "$LIPO"; then
8163  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8164else
8165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166for as_dir in $PATH
8167do
8168  IFS=$as_save_IFS
8169  case $as_dir in #(((
8170    '') as_dir=./ ;;
8171    */) ;;
8172    *) as_dir=$as_dir/ ;;
8173  esac
8174    for ac_exec_ext in '' $ac_executable_extensions; do
8175  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8176    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8177    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8178    break 2
8179  fi
8180done
8181  done
8182IFS=$as_save_IFS
8183
8184fi ;;
8185esac
8186fi
8187LIPO=$ac_cv_prog_LIPO
8188if test -n "$LIPO"; then
8189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8190printf "%s\n" "$LIPO" >&6; }
8191else
8192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193printf "%s\n" "no" >&6; }
8194fi
8195
8196
8197fi
8198if test -z "$ac_cv_prog_LIPO"; then
8199  ac_ct_LIPO=$LIPO
8200  # Extract the first word of "lipo", so it can be a program name with args.
8201set dummy lipo; ac_word=$2
8202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203printf %s "checking for $ac_word... " >&6; }
8204if test ${ac_cv_prog_ac_ct_LIPO+y}
8205then :
8206  printf %s "(cached) " >&6
8207else case e in #(
8208  e) if test -n "$ac_ct_LIPO"; then
8209  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8210else
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214  IFS=$as_save_IFS
8215  case $as_dir in #(((
8216    '') as_dir=./ ;;
8217    */) ;;
8218    *) as_dir=$as_dir/ ;;
8219  esac
8220    for ac_exec_ext in '' $ac_executable_extensions; do
8221  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8222    ac_cv_prog_ac_ct_LIPO="lipo"
8223    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8224    break 2
8225  fi
8226done
8227  done
8228IFS=$as_save_IFS
8229
8230fi ;;
8231esac
8232fi
8233ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8234if test -n "$ac_ct_LIPO"; then
8235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8236printf "%s\n" "$ac_ct_LIPO" >&6; }
8237else
8238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239printf "%s\n" "no" >&6; }
8240fi
8241
8242  if test "x$ac_ct_LIPO" = x; then
8243    LIPO=":"
8244  else
8245    case $cross_compiling:$ac_tool_warned in
8246yes:)
8247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8248printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8249ac_tool_warned=yes ;;
8250esac
8251    LIPO=$ac_ct_LIPO
8252  fi
8253else
8254  LIPO="$ac_cv_prog_LIPO"
8255fi
8256
8257    if test -n "$ac_tool_prefix"; then
8258  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8259set dummy ${ac_tool_prefix}otool; ac_word=$2
8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261printf %s "checking for $ac_word... " >&6; }
8262if test ${ac_cv_prog_OTOOL+y}
8263then :
8264  printf %s "(cached) " >&6
8265else case e in #(
8266  e) if test -n "$OTOOL"; then
8267  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8268else
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272  IFS=$as_save_IFS
8273  case $as_dir in #(((
8274    '') as_dir=./ ;;
8275    */) ;;
8276    *) as_dir=$as_dir/ ;;
8277  esac
8278    for ac_exec_ext in '' $ac_executable_extensions; do
8279  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8281    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282    break 2
8283  fi
8284done
8285  done
8286IFS=$as_save_IFS
8287
8288fi ;;
8289esac
8290fi
8291OTOOL=$ac_cv_prog_OTOOL
8292if test -n "$OTOOL"; then
8293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8294printf "%s\n" "$OTOOL" >&6; }
8295else
8296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297printf "%s\n" "no" >&6; }
8298fi
8299
8300
8301fi
8302if test -z "$ac_cv_prog_OTOOL"; then
8303  ac_ct_OTOOL=$OTOOL
8304  # Extract the first word of "otool", so it can be a program name with args.
8305set dummy otool; ac_word=$2
8306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307printf %s "checking for $ac_word... " >&6; }
8308if test ${ac_cv_prog_ac_ct_OTOOL+y}
8309then :
8310  printf %s "(cached) " >&6
8311else case e in #(
8312  e) if test -n "$ac_ct_OTOOL"; then
8313  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8314else
8315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318  IFS=$as_save_IFS
8319  case $as_dir in #(((
8320    '') as_dir=./ ;;
8321    */) ;;
8322    *) as_dir=$as_dir/ ;;
8323  esac
8324    for ac_exec_ext in '' $ac_executable_extensions; do
8325  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8326    ac_cv_prog_ac_ct_OTOOL="otool"
8327    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8328    break 2
8329  fi
8330done
8331  done
8332IFS=$as_save_IFS
8333
8334fi ;;
8335esac
8336fi
8337ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8338if test -n "$ac_ct_OTOOL"; then
8339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8340printf "%s\n" "$ac_ct_OTOOL" >&6; }
8341else
8342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343printf "%s\n" "no" >&6; }
8344fi
8345
8346  if test "x$ac_ct_OTOOL" = x; then
8347    OTOOL=":"
8348  else
8349    case $cross_compiling:$ac_tool_warned in
8350yes:)
8351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8352printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8353ac_tool_warned=yes ;;
8354esac
8355    OTOOL=$ac_ct_OTOOL
8356  fi
8357else
8358  OTOOL="$ac_cv_prog_OTOOL"
8359fi
8360
8361    if test -n "$ac_tool_prefix"; then
8362  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8363set dummy ${ac_tool_prefix}otool64; ac_word=$2
8364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365printf %s "checking for $ac_word... " >&6; }
8366if test ${ac_cv_prog_OTOOL64+y}
8367then :
8368  printf %s "(cached) " >&6
8369else case e in #(
8370  e) if test -n "$OTOOL64"; then
8371  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8372else
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376  IFS=$as_save_IFS
8377  case $as_dir in #(((
8378    '') as_dir=./ ;;
8379    */) ;;
8380    *) as_dir=$as_dir/ ;;
8381  esac
8382    for ac_exec_ext in '' $ac_executable_extensions; do
8383  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8384    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8385    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8386    break 2
8387  fi
8388done
8389  done
8390IFS=$as_save_IFS
8391
8392fi ;;
8393esac
8394fi
8395OTOOL64=$ac_cv_prog_OTOOL64
8396if test -n "$OTOOL64"; then
8397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8398printf "%s\n" "$OTOOL64" >&6; }
8399else
8400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401printf "%s\n" "no" >&6; }
8402fi
8403
8404
8405fi
8406if test -z "$ac_cv_prog_OTOOL64"; then
8407  ac_ct_OTOOL64=$OTOOL64
8408  # Extract the first word of "otool64", so it can be a program name with args.
8409set dummy otool64; ac_word=$2
8410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411printf %s "checking for $ac_word... " >&6; }
8412if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8413then :
8414  printf %s "(cached) " >&6
8415else case e in #(
8416  e) if test -n "$ac_ct_OTOOL64"; then
8417  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8418else
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422  IFS=$as_save_IFS
8423  case $as_dir in #(((
8424    '') as_dir=./ ;;
8425    */) ;;
8426    *) as_dir=$as_dir/ ;;
8427  esac
8428    for ac_exec_ext in '' $ac_executable_extensions; do
8429  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8430    ac_cv_prog_ac_ct_OTOOL64="otool64"
8431    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8432    break 2
8433  fi
8434done
8435  done
8436IFS=$as_save_IFS
8437
8438fi ;;
8439esac
8440fi
8441ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8442if test -n "$ac_ct_OTOOL64"; then
8443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8444printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8445else
8446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447printf "%s\n" "no" >&6; }
8448fi
8449
8450  if test "x$ac_ct_OTOOL64" = x; then
8451    OTOOL64=":"
8452  else
8453    case $cross_compiling:$ac_tool_warned in
8454yes:)
8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8456printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8457ac_tool_warned=yes ;;
8458esac
8459    OTOOL64=$ac_ct_OTOOL64
8460  fi
8461else
8462  OTOOL64="$ac_cv_prog_OTOOL64"
8463fi
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8492printf %s "checking for -single_module linker flag... " >&6; }
8493if test ${lt_cv_apple_cc_single_mod+y}
8494then :
8495  printf %s "(cached) " >&6
8496else case e in #(
8497  e) lt_cv_apple_cc_single_mod=no
8498      if test -z "$LT_MULTI_MODULE"; then
8499	# By default we will add the -single_module flag. You can override
8500	# by either setting the environment variable LT_MULTI_MODULE
8501	# non-empty at configure time, or by adding -multi_module to the
8502	# link flags.
8503	rm -rf libconftest.dylib*
8504	echo "int foo(void){return 1;}" > conftest.c
8505	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8506-dynamiclib -Wl,-single_module conftest.c" >&5
8507	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8508	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8509        _lt_result=$?
8510	# If there is a non-empty error log, and "single_module"
8511	# appears in it, assume the flag caused a linker warning
8512        if test -s conftest.err && $GREP single_module conftest.err; then
8513	  cat conftest.err >&5
8514	# Otherwise, if the output was created with a 0 exit code from
8515	# the compiler, it worked.
8516	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8517	  lt_cv_apple_cc_single_mod=yes
8518	else
8519	  cat conftest.err >&5
8520	fi
8521	rm -rf libconftest.dylib*
8522	rm -f conftest.*
8523      fi ;;
8524esac
8525fi
8526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8527printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8528
8529    # Feature test to disable chained fixups since it is not
8530    # compatible with '-undefined dynamic_lookup'
8531    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8532printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8533if test ${lt_cv_support_no_fixup_chains+y}
8534then :
8535  printf %s "(cached) " >&6
8536else case e in #(
8537  e)  save_LDFLAGS=$LDFLAGS
8538        LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8539        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540/* end confdefs.h.  */
8541
8542int
8543main (void)
8544{
8545
8546  ;
8547  return 0;
8548}
8549_ACEOF
8550if ac_fn_c_try_link "$LINENO"
8551then :
8552  lt_cv_support_no_fixup_chains=yes
8553else case e in #(
8554  e) lt_cv_support_no_fixup_chains=no
8555         ;;
8556esac
8557fi
8558rm -f core conftest.err conftest.$ac_objext conftest.beam \
8559    conftest$ac_exeext conftest.$ac_ext
8560        LDFLAGS=$save_LDFLAGS
8561
8562     ;;
8563esac
8564fi
8565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8566printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8567
8568    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8569printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8570if test ${lt_cv_ld_exported_symbols_list+y}
8571then :
8572  printf %s "(cached) " >&6
8573else case e in #(
8574  e) lt_cv_ld_exported_symbols_list=no
8575      save_LDFLAGS=$LDFLAGS
8576      echo "_main" > conftest.sym
8577      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8578      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579/* end confdefs.h.  */
8580
8581int
8582main (void)
8583{
8584
8585  ;
8586  return 0;
8587}
8588_ACEOF
8589if ac_fn_c_try_link "$LINENO"
8590then :
8591  lt_cv_ld_exported_symbols_list=yes
8592else case e in #(
8593  e) lt_cv_ld_exported_symbols_list=no ;;
8594esac
8595fi
8596rm -f core conftest.err conftest.$ac_objext conftest.beam \
8597    conftest$ac_exeext conftest.$ac_ext
8598	LDFLAGS=$save_LDFLAGS
8599     ;;
8600esac
8601fi
8602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8603printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8604
8605    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8606printf %s "checking for -force_load linker flag... " >&6; }
8607if test ${lt_cv_ld_force_load+y}
8608then :
8609  printf %s "(cached) " >&6
8610else case e in #(
8611  e) lt_cv_ld_force_load=no
8612      cat > conftest.c << _LT_EOF
8613int forced_loaded() { return 2;}
8614_LT_EOF
8615      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8616      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8617      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8618      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8619      echo "$RANLIB libconftest.a" >&5
8620      $RANLIB libconftest.a 2>&5
8621      cat > conftest.c << _LT_EOF
8622int main(void) { return 0;}
8623_LT_EOF
8624      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8625      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8626      _lt_result=$?
8627      if test -s conftest.err && $GREP force_load conftest.err; then
8628	cat conftest.err >&5
8629      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8630	lt_cv_ld_force_load=yes
8631      else
8632	cat conftest.err >&5
8633      fi
8634        rm -f conftest.err libconftest.a conftest conftest.c
8635        rm -rf conftest.dSYM
8636     ;;
8637esac
8638fi
8639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8640printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8641    case $host_os in
8642    rhapsody* | darwin1.[012])
8643      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8644    darwin1.*)
8645      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8646    darwin*)
8647      case $MACOSX_DEPLOYMENT_TARGET,$host in
8648        10.[012],*|,*powerpc*-darwin[5-8]*)
8649          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8650        *)
8651          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8652          if test yes = "$lt_cv_support_no_fixup_chains"; then
8653            as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8654          fi
8655        ;;
8656      esac
8657    ;;
8658  esac
8659    if test yes = "$lt_cv_apple_cc_single_mod"; then
8660      _lt_dar_single_mod='$single_module'
8661    fi
8662    _lt_dar_needs_single_mod=no
8663    case $host_os in
8664    rhapsody* | darwin1.*)
8665      _lt_dar_needs_single_mod=yes ;;
8666    darwin*)
8667      # When targeting Mac OS X 10.4 (darwin 8) or later,
8668      # -single_module is the default and -multi_module is unsupported.
8669      # The toolchain on macOS 10.14 (darwin 18) and later cannot
8670      # target any OS version that needs -single_module.
8671      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8672      10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8673        _lt_dar_needs_single_mod=yes ;;
8674      esac
8675    ;;
8676    esac
8677    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8678      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8679    else
8680      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8681    fi
8682    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8683      _lt_dsymutil='~$DSYMUTIL $lib || :'
8684    else
8685      _lt_dsymutil=
8686    fi
8687    ;;
8688  esac
8689
8690# func_munge_path_list VARIABLE PATH
8691# -----------------------------------
8692# VARIABLE is name of variable containing _space_ separated list of
8693# directories to be munged by the contents of PATH, which is string
8694# having a format:
8695# "DIR[:DIR]:"
8696#       string "DIR[ DIR]" will be prepended to VARIABLE
8697# ":DIR[:DIR]"
8698#       string "DIR[ DIR]" will be appended to VARIABLE
8699# "DIRP[:DIRP]::[DIRA:]DIRA"
8700#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8701#       "DIRA[ DIRA]" will be appended to VARIABLE
8702# "DIR[:DIR]"
8703#       VARIABLE will be replaced by "DIR[ DIR]"
8704func_munge_path_list ()
8705{
8706    case x$2 in
8707    x)
8708        ;;
8709    *:)
8710        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8711        ;;
8712    x:*)
8713        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8714        ;;
8715    *::*)
8716        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8717        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8718        ;;
8719    *)
8720        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8721        ;;
8722    esac
8723}
8724
8725ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8726"
8727if test "x$ac_cv_header_dlfcn_h" = xyes
8728then :
8729  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8730
8731fi
8732
8733
8734
8735
8736
8737# Set options
8738enable_win32_dll=yes
8739
8740case $host in
8741*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
8742  if test -n "$ac_tool_prefix"; then
8743  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8744set dummy ${ac_tool_prefix}as; ac_word=$2
8745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746printf %s "checking for $ac_word... " >&6; }
8747if test ${ac_cv_prog_AS+y}
8748then :
8749  printf %s "(cached) " >&6
8750else case e in #(
8751  e) if test -n "$AS"; then
8752  ac_cv_prog_AS="$AS" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757  IFS=$as_save_IFS
8758  case $as_dir in #(((
8759    '') as_dir=./ ;;
8760    */) ;;
8761    *) as_dir=$as_dir/ ;;
8762  esac
8763    for ac_exec_ext in '' $ac_executable_extensions; do
8764  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8765    ac_cv_prog_AS="${ac_tool_prefix}as"
8766    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8767    break 2
8768  fi
8769done
8770  done
8771IFS=$as_save_IFS
8772
8773fi ;;
8774esac
8775fi
8776AS=$ac_cv_prog_AS
8777if test -n "$AS"; then
8778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8779printf "%s\n" "$AS" >&6; }
8780else
8781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8782printf "%s\n" "no" >&6; }
8783fi
8784
8785
8786fi
8787if test -z "$ac_cv_prog_AS"; then
8788  ac_ct_AS=$AS
8789  # Extract the first word of "as", so it can be a program name with args.
8790set dummy as; ac_word=$2
8791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792printf %s "checking for $ac_word... " >&6; }
8793if test ${ac_cv_prog_ac_ct_AS+y}
8794then :
8795  printf %s "(cached) " >&6
8796else case e in #(
8797  e) if test -n "$ac_ct_AS"; then
8798  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8799else
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803  IFS=$as_save_IFS
8804  case $as_dir in #(((
8805    '') as_dir=./ ;;
8806    */) ;;
8807    *) as_dir=$as_dir/ ;;
8808  esac
8809    for ac_exec_ext in '' $ac_executable_extensions; do
8810  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8811    ac_cv_prog_ac_ct_AS="as"
8812    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8813    break 2
8814  fi
8815done
8816  done
8817IFS=$as_save_IFS
8818
8819fi ;;
8820esac
8821fi
8822ac_ct_AS=$ac_cv_prog_ac_ct_AS
8823if test -n "$ac_ct_AS"; then
8824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8825printf "%s\n" "$ac_ct_AS" >&6; }
8826else
8827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828printf "%s\n" "no" >&6; }
8829fi
8830
8831  if test "x$ac_ct_AS" = x; then
8832    AS="false"
8833  else
8834    case $cross_compiling:$ac_tool_warned in
8835yes:)
8836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8837printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8838ac_tool_warned=yes ;;
8839esac
8840    AS=$ac_ct_AS
8841  fi
8842else
8843  AS="$ac_cv_prog_AS"
8844fi
8845
8846  if test -n "$ac_tool_prefix"; then
8847  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8848set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850printf %s "checking for $ac_word... " >&6; }
8851if test ${ac_cv_prog_DLLTOOL+y}
8852then :
8853  printf %s "(cached) " >&6
8854else case e in #(
8855  e) if test -n "$DLLTOOL"; then
8856  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8857else
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861  IFS=$as_save_IFS
8862  case $as_dir in #(((
8863    '') as_dir=./ ;;
8864    */) ;;
8865    *) as_dir=$as_dir/ ;;
8866  esac
8867    for ac_exec_ext in '' $ac_executable_extensions; do
8868  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8869    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8870    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8871    break 2
8872  fi
8873done
8874  done
8875IFS=$as_save_IFS
8876
8877fi ;;
8878esac
8879fi
8880DLLTOOL=$ac_cv_prog_DLLTOOL
8881if test -n "$DLLTOOL"; then
8882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8883printf "%s\n" "$DLLTOOL" >&6; }
8884else
8885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886printf "%s\n" "no" >&6; }
8887fi
8888
8889
8890fi
8891if test -z "$ac_cv_prog_DLLTOOL"; then
8892  ac_ct_DLLTOOL=$DLLTOOL
8893  # Extract the first word of "dlltool", so it can be a program name with args.
8894set dummy dlltool; ac_word=$2
8895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896printf %s "checking for $ac_word... " >&6; }
8897if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8898then :
8899  printf %s "(cached) " >&6
8900else case e in #(
8901  e) if test -n "$ac_ct_DLLTOOL"; then
8902  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8903else
8904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905for as_dir in $PATH
8906do
8907  IFS=$as_save_IFS
8908  case $as_dir in #(((
8909    '') as_dir=./ ;;
8910    */) ;;
8911    *) as_dir=$as_dir/ ;;
8912  esac
8913    for ac_exec_ext in '' $ac_executable_extensions; do
8914  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8915    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8916    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8917    break 2
8918  fi
8919done
8920  done
8921IFS=$as_save_IFS
8922
8923fi ;;
8924esac
8925fi
8926ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8927if test -n "$ac_ct_DLLTOOL"; then
8928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8929printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8930else
8931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932printf "%s\n" "no" >&6; }
8933fi
8934
8935  if test "x$ac_ct_DLLTOOL" = x; then
8936    DLLTOOL="false"
8937  else
8938    case $cross_compiling:$ac_tool_warned in
8939yes:)
8940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8941printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8942ac_tool_warned=yes ;;
8943esac
8944    DLLTOOL=$ac_ct_DLLTOOL
8945  fi
8946else
8947  DLLTOOL="$ac_cv_prog_DLLTOOL"
8948fi
8949
8950  if test -n "$ac_tool_prefix"; then
8951  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8952set dummy ${ac_tool_prefix}objdump; ac_word=$2
8953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954printf %s "checking for $ac_word... " >&6; }
8955if test ${ac_cv_prog_OBJDUMP+y}
8956then :
8957  printf %s "(cached) " >&6
8958else case e in #(
8959  e) if test -n "$OBJDUMP"; then
8960  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8961else
8962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963for as_dir in $PATH
8964do
8965  IFS=$as_save_IFS
8966  case $as_dir in #(((
8967    '') as_dir=./ ;;
8968    */) ;;
8969    *) as_dir=$as_dir/ ;;
8970  esac
8971    for ac_exec_ext in '' $ac_executable_extensions; do
8972  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8973    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8974    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8975    break 2
8976  fi
8977done
8978  done
8979IFS=$as_save_IFS
8980
8981fi ;;
8982esac
8983fi
8984OBJDUMP=$ac_cv_prog_OBJDUMP
8985if test -n "$OBJDUMP"; then
8986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8987printf "%s\n" "$OBJDUMP" >&6; }
8988else
8989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990printf "%s\n" "no" >&6; }
8991fi
8992
8993
8994fi
8995if test -z "$ac_cv_prog_OBJDUMP"; then
8996  ac_ct_OBJDUMP=$OBJDUMP
8997  # Extract the first word of "objdump", so it can be a program name with args.
8998set dummy objdump; ac_word=$2
8999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000printf %s "checking for $ac_word... " >&6; }
9001if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9002then :
9003  printf %s "(cached) " >&6
9004else case e in #(
9005  e) if test -n "$ac_ct_OBJDUMP"; then
9006  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9007else
9008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009for as_dir in $PATH
9010do
9011  IFS=$as_save_IFS
9012  case $as_dir in #(((
9013    '') as_dir=./ ;;
9014    */) ;;
9015    *) as_dir=$as_dir/ ;;
9016  esac
9017    for ac_exec_ext in '' $ac_executable_extensions; do
9018  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9019    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9020    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9021    break 2
9022  fi
9023done
9024  done
9025IFS=$as_save_IFS
9026
9027fi ;;
9028esac
9029fi
9030ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9031if test -n "$ac_ct_OBJDUMP"; then
9032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9033printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9034else
9035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036printf "%s\n" "no" >&6; }
9037fi
9038
9039  if test "x$ac_ct_OBJDUMP" = x; then
9040    OBJDUMP="false"
9041  else
9042    case $cross_compiling:$ac_tool_warned in
9043yes:)
9044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046ac_tool_warned=yes ;;
9047esac
9048    OBJDUMP=$ac_ct_OBJDUMP
9049  fi
9050else
9051  OBJDUMP="$ac_cv_prog_OBJDUMP"
9052fi
9053
9054  ;;
9055esac
9056
9057test -z "$AS" && AS=as
9058
9059
9060
9061
9062
9063test -z "$DLLTOOL" && DLLTOOL=dlltool
9064
9065
9066
9067
9068
9069test -z "$OBJDUMP" && OBJDUMP=objdump
9070
9071
9072
9073
9074
9075
9076
9077        enable_dlopen=no
9078
9079
9080
9081            # Check whether --enable-shared was given.
9082if test ${enable_shared+y}
9083then :
9084  enableval=$enable_shared; p=${PACKAGE-default}
9085    case $enableval in
9086    yes) enable_shared=yes ;;
9087    no) enable_shared=no ;;
9088    *)
9089      enable_shared=no
9090      # Look at the argument we got.  We use all the common list separators.
9091      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9092      for pkg in $enableval; do
9093	IFS=$lt_save_ifs
9094	if test "X$pkg" = "X$p"; then
9095	  enable_shared=yes
9096	fi
9097      done
9098      IFS=$lt_save_ifs
9099      ;;
9100    esac
9101else case e in #(
9102  e) enable_shared=yes ;;
9103esac
9104fi
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114  # Check whether --enable-static was given.
9115if test ${enable_static+y}
9116then :
9117  enableval=$enable_static; p=${PACKAGE-default}
9118    case $enableval in
9119    yes) enable_static=yes ;;
9120    no) enable_static=no ;;
9121    *)
9122     enable_static=no
9123      # Look at the argument we got.  We use all the common list separators.
9124      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9125      for pkg in $enableval; do
9126	IFS=$lt_save_ifs
9127	if test "X$pkg" = "X$p"; then
9128	  enable_static=yes
9129	fi
9130      done
9131      IFS=$lt_save_ifs
9132      ;;
9133    esac
9134else case e in #(
9135  e) enable_static=yes ;;
9136esac
9137fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147  # Check whether --enable-pic was given.
9148if test ${enable_pic+y}
9149then :
9150  enableval=$enable_pic; lt_p=${PACKAGE-default}
9151     case $enableval in
9152     yes|no) pic_mode=$enableval ;;
9153     *)
9154       pic_mode=default
9155       # Look at the argument we got.  We use all the common list separators.
9156       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9157       for lt_pkg in $enableval; do
9158	 IFS=$lt_save_ifs
9159	 if test "X$lt_pkg" = "X$lt_p"; then
9160	   pic_mode=yes
9161	 fi
9162       done
9163       IFS=$lt_save_ifs
9164       ;;
9165     esac
9166else case e in #(
9167  e)           # Check whether --with-pic was given.
9168if test ${with_pic+y}
9169then :
9170  withval=$with_pic; lt_p=${PACKAGE-default}
9171	 case $withval in
9172	 yes|no) pic_mode=$withval ;;
9173	 *)
9174	   pic_mode=default
9175	   # Look at the argument we got.  We use all the common list separators.
9176	   lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9177	   for lt_pkg in $withval; do
9178	     IFS=$lt_save_ifs
9179	     if test "X$lt_pkg" = "X$lt_p"; then
9180	       pic_mode=yes
9181	     fi
9182	   done
9183	   IFS=$lt_save_ifs
9184	   ;;
9185	 esac
9186else case e in #(
9187  e) pic_mode=default ;;
9188esac
9189fi
9190
9191     ;;
9192esac
9193fi
9194
9195
9196
9197
9198
9199
9200
9201
9202  # Check whether --enable-fast-install was given.
9203if test ${enable_fast_install+y}
9204then :
9205  enableval=$enable_fast_install; p=${PACKAGE-default}
9206    case $enableval in
9207    yes) enable_fast_install=yes ;;
9208    no) enable_fast_install=no ;;
9209    *)
9210      enable_fast_install=no
9211      # Look at the argument we got.  We use all the common list separators.
9212      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9213      for pkg in $enableval; do
9214	IFS=$lt_save_ifs
9215	if test "X$pkg" = "X$p"; then
9216	  enable_fast_install=yes
9217	fi
9218      done
9219      IFS=$lt_save_ifs
9220      ;;
9221    esac
9222else case e in #(
9223  e) enable_fast_install=yes ;;
9224esac
9225fi
9226
9227
9228
9229
9230
9231
9232
9233
9234  shared_archive_member_spec=
9235case $host,$enable_shared in
9236power*-*-aix[5-9]*,yes)
9237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9238printf %s "checking which variant of shared library versioning to provide... " >&6; }
9239  # Check whether --enable-aix-soname was given.
9240if test ${enable_aix_soname+y}
9241then :
9242  enableval=$enable_aix_soname; case $enableval in
9243     aix|svr4|both)
9244       ;;
9245     *)
9246       as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9247       ;;
9248     esac
9249     lt_cv_with_aix_soname=$enable_aix_soname
9250else case e in #(
9251  e) # Check whether --with-aix-soname was given.
9252if test ${with_aix_soname+y}
9253then :
9254  withval=$with_aix_soname; case $withval in
9255         aix|svr4|both)
9256           ;;
9257         *)
9258           as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9259           ;;
9260         esac
9261         lt_cv_with_aix_soname=$with_aix_soname
9262else case e in #(
9263  e) if test ${lt_cv_with_aix_soname+y}
9264then :
9265  printf %s "(cached) " >&6
9266else case e in #(
9267  e) lt_cv_with_aix_soname=aix ;;
9268esac
9269fi
9270 ;;
9271esac
9272fi
9273
9274     enable_aix_soname=$lt_cv_with_aix_soname ;;
9275esac
9276fi
9277
9278  with_aix_soname=$enable_aix_soname
9279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9280printf "%s\n" "$with_aix_soname" >&6; }
9281  if test aix != "$with_aix_soname"; then
9282    # For the AIX way of multilib, we name the shared archive member
9283    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9284    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9285    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9286    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9287    if test 64 = "${OBJECT_MODE-32}"; then
9288      shared_archive_member_spec=shr_64
9289    else
9290      shared_archive_member_spec=shr
9291    fi
9292  fi
9293  ;;
9294*)
9295  with_aix_soname=aix
9296  ;;
9297esac
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308# This can be used to rebuild libtool when needed
9309LIBTOOL_DEPS=$ltmain
9310
9311# Always use our own libtool.
9312LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343test -z "$LN_S" && LN_S="ln -s"
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358if test -n "${ZSH_VERSION+set}"; then
9359   setopt NO_GLOB_SUBST
9360fi
9361
9362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9363printf %s "checking for objdir... " >&6; }
9364if test ${lt_cv_objdir+y}
9365then :
9366  printf %s "(cached) " >&6
9367else case e in #(
9368  e) rm -f .libs 2>/dev/null
9369mkdir .libs 2>/dev/null
9370if test -d .libs; then
9371  lt_cv_objdir=.libs
9372else
9373  # MS-DOS does not allow filenames that begin with a dot.
9374  lt_cv_objdir=_libs
9375fi
9376rmdir .libs 2>/dev/null ;;
9377esac
9378fi
9379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9380printf "%s\n" "$lt_cv_objdir" >&6; }
9381objdir=$lt_cv_objdir
9382
9383
9384
9385
9386
9387printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9388
9389
9390
9391
9392case $host_os in
9393aix3*)
9394  # AIX sometimes has problems with the GCC collect2 program.  For some
9395  # reason, if we set the COLLECT_NAMES environment variable, the problems
9396  # vanish in a puff of smoke.
9397  if test set != "${COLLECT_NAMES+set}"; then
9398    COLLECT_NAMES=
9399    export COLLECT_NAMES
9400  fi
9401  ;;
9402esac
9403
9404# Global variables:
9405ofile=libtool
9406can_build_shared=yes
9407
9408# All known linkers require a '.a' archive for static linking (except MSVC and
9409# ICC, which need '.lib').
9410libext=a
9411
9412with_gnu_ld=$lt_cv_prog_gnu_ld
9413
9414old_CC=$CC
9415old_CFLAGS=$CFLAGS
9416
9417# Set sane defaults for various variables
9418test -z "$CC" && CC=cc
9419test -z "$LTCC" && LTCC=$CC
9420test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9421test -z "$LD" && LD=ld
9422test -z "$ac_objext" && ac_objext=o
9423
9424func_cc_basename $compiler
9425cc_basename=$func_cc_basename_result
9426
9427
9428# Only perform the check for file, if the check method requires it
9429test -z "$MAGIC_CMD" && MAGIC_CMD=file
9430case $deplibs_check_method in
9431file_magic*)
9432  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9433    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9434printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9435if test ${lt_cv_path_MAGIC_CMD+y}
9436then :
9437  printf %s "(cached) " >&6
9438else case e in #(
9439  e) case $MAGIC_CMD in
9440[\\/*] |  ?:[\\/]*)
9441  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9442  ;;
9443*)
9444  lt_save_MAGIC_CMD=$MAGIC_CMD
9445  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9446  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9447  for ac_dir in $ac_dummy; do
9448    IFS=$lt_save_ifs
9449    test -z "$ac_dir" && ac_dir=.
9450    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9451      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9452      if test -n "$file_magic_test_file"; then
9453	case $deplibs_check_method in
9454	"file_magic "*)
9455	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9456	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9457	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9458	    $EGREP "$file_magic_regex" > /dev/null; then
9459	    :
9460	  else
9461	    cat <<_LT_EOF 1>&2
9462
9463*** Warning: the command libtool uses to detect shared libraries,
9464*** $file_magic_cmd, produces output that libtool cannot recognize.
9465*** The result is that libtool may fail to recognize shared libraries
9466*** as such.  This will affect the creation of libtool libraries that
9467*** depend on shared libraries, but programs linked with such libtool
9468*** libraries will work regardless of this problem.  Nevertheless, you
9469*** may want to report the problem to your system manager and/or to
9470*** bug-libtool@gnu.org
9471
9472_LT_EOF
9473	  fi ;;
9474	esac
9475      fi
9476      break
9477    fi
9478  done
9479  IFS=$lt_save_ifs
9480  MAGIC_CMD=$lt_save_MAGIC_CMD
9481  ;;
9482esac ;;
9483esac
9484fi
9485
9486MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9487if test -n "$MAGIC_CMD"; then
9488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9489printf "%s\n" "$MAGIC_CMD" >&6; }
9490else
9491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492printf "%s\n" "no" >&6; }
9493fi
9494
9495
9496
9497
9498
9499if test -z "$lt_cv_path_MAGIC_CMD"; then
9500  if test -n "$ac_tool_prefix"; then
9501    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9502printf %s "checking for file... " >&6; }
9503if test ${lt_cv_path_MAGIC_CMD+y}
9504then :
9505  printf %s "(cached) " >&6
9506else case e in #(
9507  e) case $MAGIC_CMD in
9508[\\/*] |  ?:[\\/]*)
9509  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9510  ;;
9511*)
9512  lt_save_MAGIC_CMD=$MAGIC_CMD
9513  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9514  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9515  for ac_dir in $ac_dummy; do
9516    IFS=$lt_save_ifs
9517    test -z "$ac_dir" && ac_dir=.
9518    if test -f "$ac_dir/file"; then
9519      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9520      if test -n "$file_magic_test_file"; then
9521	case $deplibs_check_method in
9522	"file_magic "*)
9523	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9524	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9525	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9526	    $EGREP "$file_magic_regex" > /dev/null; then
9527	    :
9528	  else
9529	    cat <<_LT_EOF 1>&2
9530
9531*** Warning: the command libtool uses to detect shared libraries,
9532*** $file_magic_cmd, produces output that libtool cannot recognize.
9533*** The result is that libtool may fail to recognize shared libraries
9534*** as such.  This will affect the creation of libtool libraries that
9535*** depend on shared libraries, but programs linked with such libtool
9536*** libraries will work regardless of this problem.  Nevertheless, you
9537*** may want to report the problem to your system manager and/or to
9538*** bug-libtool@gnu.org
9539
9540_LT_EOF
9541	  fi ;;
9542	esac
9543      fi
9544      break
9545    fi
9546  done
9547  IFS=$lt_save_ifs
9548  MAGIC_CMD=$lt_save_MAGIC_CMD
9549  ;;
9550esac ;;
9551esac
9552fi
9553
9554MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9555if test -n "$MAGIC_CMD"; then
9556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9557printf "%s\n" "$MAGIC_CMD" >&6; }
9558else
9559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560printf "%s\n" "no" >&6; }
9561fi
9562
9563
9564  else
9565    MAGIC_CMD=:
9566  fi
9567fi
9568
9569  fi
9570  ;;
9571esac
9572
9573# Use C for the default configuration in the libtool script
9574
9575lt_save_CC=$CC
9576ac_ext=c
9577ac_cpp='$CPP $CPPFLAGS'
9578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9580ac_compiler_gnu=$ac_cv_c_compiler_gnu
9581
9582
9583# Source file extension for C test sources.
9584ac_ext=c
9585
9586# Object file extension for compiled C test sources.
9587objext=o
9588objext=$objext
9589
9590# Code to be used in simple compile tests
9591lt_simple_compile_test_code="int some_variable = 0;"
9592
9593# Code to be used in simple link tests
9594lt_simple_link_test_code='int main(void){return(0);}'
9595
9596
9597
9598
9599
9600
9601
9602# If no C compiler was specified, use CC.
9603LTCC=${LTCC-"$CC"}
9604
9605# If no C compiler flags were specified, use CFLAGS.
9606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9607
9608# Allow CC to be a program name with arguments.
9609compiler=$CC
9610
9611# Save the default compiler, since it gets overwritten when the other
9612# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9613compiler_DEFAULT=$CC
9614
9615# save warnings/boilerplate of simple test code
9616ac_outfile=conftest.$ac_objext
9617echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9618eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9619_lt_compiler_boilerplate=`cat conftest.err`
9620$RM conftest*
9621
9622ac_outfile=conftest.$ac_objext
9623echo "$lt_simple_link_test_code" >conftest.$ac_ext
9624eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9625_lt_linker_boilerplate=`cat conftest.err`
9626$RM -r conftest*
9627
9628
9629## CAVEAT EMPTOR:
9630## There is no encapsulation within the following macros, do not change
9631## the running order or otherwise move them around unless you know exactly
9632## what you are doing...
9633if test -n "$compiler"; then
9634
9635lt_prog_compiler_no_builtin_flag=
9636
9637if test yes = "$GCC"; then
9638  case $cc_basename in
9639  nvcc*)
9640    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9641  *)
9642    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9643  esac
9644
9645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9646printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9647if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9648then :
9649  printf %s "(cached) " >&6
9650else case e in #(
9651  e) lt_cv_prog_compiler_rtti_exceptions=no
9652   ac_outfile=conftest.$ac_objext
9653   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9654   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9655   # Insert the option either (1) after the last *FLAGS variable, or
9656   # (2) before a word containing "conftest.", or (3) at the end.
9657   # Note that $ac_compile itself does not contain backslashes and begins
9658   # with a dollar sign (not a hyphen), so the echo should work correctly.
9659   # The option is referenced via a variable to avoid confusing sed.
9660   lt_compile=`echo "$ac_compile" | $SED \
9661   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9662   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9663   -e 's:$: $lt_compiler_flag:'`
9664   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9665   (eval "$lt_compile" 2>conftest.err)
9666   ac_status=$?
9667   cat conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   if (exit $ac_status) && test -s "$ac_outfile"; then
9670     # The compiler can only warn and ignore the option if not recognized
9671     # So say no if there are warnings other than the usual output.
9672     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9673     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9674     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9675       lt_cv_prog_compiler_rtti_exceptions=yes
9676     fi
9677   fi
9678   $RM conftest*
9679 ;;
9680esac
9681fi
9682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9683printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9684
9685if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9686    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9687else
9688    :
9689fi
9690
9691fi
9692
9693
9694
9695
9696
9697
9698  lt_prog_compiler_wl=
9699lt_prog_compiler_pic=
9700lt_prog_compiler_static=
9701
9702
9703  if test yes = "$GCC"; then
9704    lt_prog_compiler_wl='-Wl,'
9705    lt_prog_compiler_static='-static'
9706
9707    case $host_os in
9708      aix*)
9709      # All AIX code is PIC.
9710      if test ia64 = "$host_cpu"; then
9711	# AIX 5 now supports IA64 processor
9712	lt_prog_compiler_static='-Bstatic'
9713      fi
9714      lt_prog_compiler_pic='-fPIC'
9715      ;;
9716
9717    amigaos*)
9718      case $host_cpu in
9719      powerpc)
9720            # see comment about AmigaOS4 .so support
9721            lt_prog_compiler_pic='-fPIC'
9722        ;;
9723      m68k)
9724            # FIXME: we need at least 68020 code to build shared libraries, but
9725            # adding the '-m68020' flag to GCC prevents building anything better,
9726            # like '-m68040'.
9727            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9728        ;;
9729      esac
9730      ;;
9731
9732    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9733      # PIC is the default for these OSes.
9734      ;;
9735
9736    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9737      # This hack is so that the source file can tell whether it is being
9738      # built for inclusion in a dll (and should export symbols for example).
9739      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9740      # (--disable-auto-import) libraries
9741      lt_prog_compiler_pic='-DDLL_EXPORT'
9742      case $host_os in
9743      os2*)
9744	lt_prog_compiler_static='$wl-static'
9745	;;
9746      esac
9747      ;;
9748
9749    darwin* | rhapsody*)
9750      # PIC is the default on this platform
9751      # Common symbols not allowed in MH_DYLIB files
9752      lt_prog_compiler_pic='-fno-common'
9753      ;;
9754
9755    haiku*)
9756      # PIC is the default for Haiku.
9757      # The "-static" flag exists, but is broken.
9758      lt_prog_compiler_static=
9759      ;;
9760
9761    hpux*)
9762      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9763      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9764      # sets the default TLS model and affects inlining.
9765      case $host_cpu in
9766      hppa*64*)
9767	# +Z the default
9768	;;
9769      *)
9770	lt_prog_compiler_pic='-fPIC'
9771	;;
9772      esac
9773      ;;
9774
9775    interix[3-9]*)
9776      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9777      # Instead, we relocate shared libraries at runtime.
9778      ;;
9779
9780    msdosdjgpp*)
9781      # Just because we use GCC doesn't mean we suddenly get shared libraries
9782      # on systems that don't support them.
9783      lt_prog_compiler_can_build_shared=no
9784      enable_shared=no
9785      ;;
9786
9787    *nto* | *qnx*)
9788      # QNX uses GNU C++, but need to define -shared option too, otherwise
9789      # it will coredump.
9790      lt_prog_compiler_pic='-fPIC -shared'
9791      ;;
9792
9793    sysv4*MP*)
9794      if test -d /usr/nec; then
9795	lt_prog_compiler_pic=-Kconform_pic
9796      fi
9797      ;;
9798
9799    *)
9800      lt_prog_compiler_pic='-fPIC'
9801      ;;
9802    esac
9803
9804    case $cc_basename in
9805    nvcc*) # Cuda Compiler Driver 2.2
9806      lt_prog_compiler_wl='-Xlinker '
9807      if test -n "$lt_prog_compiler_pic"; then
9808        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9809      fi
9810      ;;
9811    esac
9812  else
9813    # PORTME Check for flag to pass linker flags through the system compiler.
9814    case $host_os in
9815    aix*)
9816      lt_prog_compiler_wl='-Wl,'
9817      if test ia64 = "$host_cpu"; then
9818	# AIX 5 now supports IA64 processor
9819	lt_prog_compiler_static='-Bstatic'
9820      else
9821	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9822      fi
9823      ;;
9824
9825    darwin* | rhapsody*)
9826      # PIC is the default on this platform
9827      # Common symbols not allowed in MH_DYLIB files
9828      lt_prog_compiler_pic='-fno-common'
9829      case $cc_basename in
9830      nagfor*)
9831        # NAG Fortran compiler
9832        lt_prog_compiler_wl='-Wl,-Wl,,'
9833        lt_prog_compiler_pic='-PIC'
9834        lt_prog_compiler_static='-Bstatic'
9835        ;;
9836      esac
9837      ;;
9838
9839    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9840      # This hack is so that the source file can tell whether it is being
9841      # built for inclusion in a dll (and should export symbols for example).
9842      lt_prog_compiler_pic='-DDLL_EXPORT'
9843      case $host_os in
9844      os2*)
9845	lt_prog_compiler_static='$wl-static'
9846	;;
9847      esac
9848      ;;
9849
9850    hpux9* | hpux10* | hpux11*)
9851      lt_prog_compiler_wl='-Wl,'
9852      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9853      # not for PA HP-UX.
9854      case $host_cpu in
9855      hppa*64*|ia64*)
9856	# +Z the default
9857	;;
9858      *)
9859	lt_prog_compiler_pic='+Z'
9860	;;
9861      esac
9862      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9863      lt_prog_compiler_static='$wl-a ${wl}archive'
9864      ;;
9865
9866    irix5* | irix6* | nonstopux*)
9867      lt_prog_compiler_wl='-Wl,'
9868      # PIC (with -KPIC) is the default.
9869      lt_prog_compiler_static='-non_shared'
9870      ;;
9871
9872    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9873      case $cc_basename in
9874      # old Intel for x86_64, which still supported -KPIC.
9875      ecc*)
9876	lt_prog_compiler_wl='-Wl,'
9877	lt_prog_compiler_pic='-KPIC'
9878	lt_prog_compiler_static='-static'
9879        ;;
9880      *flang* | ftn | f18* | f95*)
9881        # Flang compiler.
9882	lt_prog_compiler_wl='-Wl,'
9883	lt_prog_compiler_pic='-fPIC'
9884	lt_prog_compiler_static='-static'
9885        ;;
9886      # icc used to be incompatible with GCC.
9887      # ICC 10 doesn't accept -KPIC any more.
9888      icc* | ifort*)
9889	lt_prog_compiler_wl='-Wl,'
9890	lt_prog_compiler_pic='-fPIC'
9891	lt_prog_compiler_static='-static'
9892        ;;
9893      # Lahey Fortran 8.1.
9894      lf95*)
9895	lt_prog_compiler_wl='-Wl,'
9896	lt_prog_compiler_pic='--shared'
9897	lt_prog_compiler_static='--static'
9898	;;
9899      nagfor*)
9900	# NAG Fortran compiler
9901	lt_prog_compiler_wl='-Wl,-Wl,,'
9902	lt_prog_compiler_pic='-PIC'
9903	lt_prog_compiler_static='-Bstatic'
9904	;;
9905      tcc*)
9906	# Fabrice Bellard et al's Tiny C Compiler
9907	lt_prog_compiler_wl='-Wl,'
9908	lt_prog_compiler_pic='-fPIC'
9909	lt_prog_compiler_static='-static'
9910	;;
9911      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9912        # Portland Group compilers (*not* the Pentium gcc compiler,
9913	# which looks to be a dead project)
9914	lt_prog_compiler_wl='-Wl,'
9915	lt_prog_compiler_pic='-fpic'
9916	lt_prog_compiler_static='-Bstatic'
9917        ;;
9918      ccc*)
9919        lt_prog_compiler_wl='-Wl,'
9920        # All Alpha code is PIC.
9921        lt_prog_compiler_static='-non_shared'
9922        ;;
9923      xl* | bgxl* | bgf* | mpixl*)
9924	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9925	lt_prog_compiler_wl='-Wl,'
9926	lt_prog_compiler_pic='-qpic'
9927	lt_prog_compiler_static='-qstaticlink'
9928	;;
9929      *)
9930	case `$CC -V 2>&1 | $SED 5q` in
9931	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9932	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9933	  lt_prog_compiler_pic='-KPIC'
9934	  lt_prog_compiler_static='-Bstatic'
9935	  lt_prog_compiler_wl=''
9936	  ;;
9937	*Sun\ F* | *Sun*Fortran*)
9938	  lt_prog_compiler_pic='-KPIC'
9939	  lt_prog_compiler_static='-Bstatic'
9940	  lt_prog_compiler_wl='-Qoption ld '
9941	  ;;
9942	*Sun\ C*)
9943	  # Sun C 5.9
9944	  lt_prog_compiler_pic='-KPIC'
9945	  lt_prog_compiler_static='-Bstatic'
9946	  lt_prog_compiler_wl='-Wl,'
9947	  ;;
9948        *Intel*\ [CF]*Compiler*)
9949	  lt_prog_compiler_wl='-Wl,'
9950	  lt_prog_compiler_pic='-fPIC'
9951	  lt_prog_compiler_static='-static'
9952	  ;;
9953	*Portland\ Group*)
9954	  lt_prog_compiler_wl='-Wl,'
9955	  lt_prog_compiler_pic='-fpic'
9956	  lt_prog_compiler_static='-Bstatic'
9957	  ;;
9958	esac
9959	;;
9960      esac
9961      ;;
9962
9963    newsos6)
9964      lt_prog_compiler_pic='-KPIC'
9965      lt_prog_compiler_static='-Bstatic'
9966      ;;
9967
9968    *-mlibc)
9969      lt_prog_compiler_wl='-Wl,'
9970      lt_prog_compiler_pic='-fPIC'
9971      lt_prog_compiler_static='-static'
9972      ;;
9973
9974    *nto* | *qnx*)
9975      # QNX uses GNU C++, but need to define -shared option too, otherwise
9976      # it will coredump.
9977      lt_prog_compiler_pic='-fPIC -shared'
9978      ;;
9979
9980    osf3* | osf4* | osf5*)
9981      lt_prog_compiler_wl='-Wl,'
9982      # All OSF/1 code is PIC.
9983      lt_prog_compiler_static='-non_shared'
9984      ;;
9985
9986    rdos*)
9987      lt_prog_compiler_static='-non_shared'
9988      ;;
9989
9990    serenity*)
9991      ;;
9992
9993    solaris*)
9994      lt_prog_compiler_pic='-KPIC'
9995      lt_prog_compiler_static='-Bstatic'
9996      case $cc_basename in
9997      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9998	lt_prog_compiler_wl='-Qoption ld ';;
9999      *)
10000	lt_prog_compiler_wl='-Wl,';;
10001      esac
10002      ;;
10003
10004    sunos4*)
10005      lt_prog_compiler_wl='-Qoption ld '
10006      lt_prog_compiler_pic='-PIC'
10007      lt_prog_compiler_static='-Bstatic'
10008      ;;
10009
10010    sysv4 | sysv4.2uw2* | sysv4.3*)
10011      lt_prog_compiler_wl='-Wl,'
10012      lt_prog_compiler_pic='-KPIC'
10013      lt_prog_compiler_static='-Bstatic'
10014      ;;
10015
10016    sysv4*MP*)
10017      if test -d /usr/nec; then
10018	lt_prog_compiler_pic='-Kconform_pic'
10019	lt_prog_compiler_static='-Bstatic'
10020      fi
10021      ;;
10022
10023    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10024      lt_prog_compiler_wl='-Wl,'
10025      lt_prog_compiler_pic='-KPIC'
10026      lt_prog_compiler_static='-Bstatic'
10027      ;;
10028
10029    unicos*)
10030      lt_prog_compiler_wl='-Wl,'
10031      lt_prog_compiler_can_build_shared=no
10032      ;;
10033
10034    uts4*)
10035      lt_prog_compiler_pic='-pic'
10036      lt_prog_compiler_static='-Bstatic'
10037      ;;
10038
10039    *)
10040      lt_prog_compiler_can_build_shared=no
10041      ;;
10042    esac
10043  fi
10044
10045case $host_os in
10046  # For platforms that do not support PIC, -DPIC is meaningless:
10047  *djgpp*)
10048    lt_prog_compiler_pic=
10049    ;;
10050  *)
10051    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10052    ;;
10053esac
10054
10055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10056printf %s "checking for $compiler option to produce PIC... " >&6; }
10057if test ${lt_cv_prog_compiler_pic+y}
10058then :
10059  printf %s "(cached) " >&6
10060else case e in #(
10061  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10062esac
10063fi
10064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10065printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10066lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10067
10068#
10069# Check to make sure the PIC flag actually works.
10070#
10071if test -n "$lt_prog_compiler_pic"; then
10072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10073printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10074if test ${lt_cv_prog_compiler_pic_works+y}
10075then :
10076  printf %s "(cached) " >&6
10077else case e in #(
10078  e) lt_cv_prog_compiler_pic_works=no
10079   ac_outfile=conftest.$ac_objext
10080   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10081   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10082   # Insert the option either (1) after the last *FLAGS variable, or
10083   # (2) before a word containing "conftest.", or (3) at the end.
10084   # Note that $ac_compile itself does not contain backslashes and begins
10085   # with a dollar sign (not a hyphen), so the echo should work correctly.
10086   # The option is referenced via a variable to avoid confusing sed.
10087   lt_compile=`echo "$ac_compile" | $SED \
10088   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10090   -e 's:$: $lt_compiler_flag:'`
10091   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10092   (eval "$lt_compile" 2>conftest.err)
10093   ac_status=$?
10094   cat conftest.err >&5
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   if (exit $ac_status) && test -s "$ac_outfile"; then
10097     # The compiler can only warn and ignore the option if not recognized
10098     # So say no if there are warnings other than the usual output.
10099     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10100     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10101     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10102       lt_cv_prog_compiler_pic_works=yes
10103     fi
10104   fi
10105   $RM conftest*
10106 ;;
10107esac
10108fi
10109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10110printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10111
10112if test yes = "$lt_cv_prog_compiler_pic_works"; then
10113    case $lt_prog_compiler_pic in
10114     "" | " "*) ;;
10115     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10116     esac
10117else
10118    lt_prog_compiler_pic=
10119     lt_prog_compiler_can_build_shared=no
10120fi
10121
10122fi
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134#
10135# Check to make sure the static flag actually works.
10136#
10137wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10139printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10140if test ${lt_cv_prog_compiler_static_works+y}
10141then :
10142  printf %s "(cached) " >&6
10143else case e in #(
10144  e) lt_cv_prog_compiler_static_works=no
10145   save_LDFLAGS=$LDFLAGS
10146   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10147   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10148   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10149     # The linker can only warn and ignore the option if not recognized
10150     # So say no if there are warnings
10151     if test -s conftest.err; then
10152       # Append any errors to the config.log.
10153       cat conftest.err 1>&5
10154       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10155       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10156       if diff conftest.exp conftest.er2 >/dev/null; then
10157         lt_cv_prog_compiler_static_works=yes
10158       fi
10159     else
10160       lt_cv_prog_compiler_static_works=yes
10161     fi
10162   fi
10163   $RM -r conftest*
10164   LDFLAGS=$save_LDFLAGS
10165 ;;
10166esac
10167fi
10168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10169printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10170
10171if test yes = "$lt_cv_prog_compiler_static_works"; then
10172    :
10173else
10174    lt_prog_compiler_static=
10175fi
10176
10177
10178
10179
10180
10181
10182
10183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10184printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10185if test ${lt_cv_prog_compiler_c_o+y}
10186then :
10187  printf %s "(cached) " >&6
10188else case e in #(
10189  e) lt_cv_prog_compiler_c_o=no
10190   $RM -r conftest 2>/dev/null
10191   mkdir conftest
10192   cd conftest
10193   mkdir out
10194   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10195
10196   lt_compiler_flag="-o out/conftest2.$ac_objext"
10197   # Insert the option either (1) after the last *FLAGS variable, or
10198   # (2) before a word containing "conftest.", or (3) at the end.
10199   # Note that $ac_compile itself does not contain backslashes and begins
10200   # with a dollar sign (not a hyphen), so the echo should work correctly.
10201   lt_compile=`echo "$ac_compile" | $SED \
10202   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10203   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10204   -e 's:$: $lt_compiler_flag:'`
10205   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10206   (eval "$lt_compile" 2>out/conftest.err)
10207   ac_status=$?
10208   cat out/conftest.err >&5
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10211   then
10212     # The compiler can only warn and ignore the option if not recognized
10213     # So say no if there are warnings
10214     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10215     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10216     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10217       lt_cv_prog_compiler_c_o=yes
10218     fi
10219   fi
10220   chmod u+w . 2>&5
10221   $RM conftest*
10222   # SGI C++ compiler will create directory out/ii_files/ for
10223   # template instantiation
10224   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10225   $RM out/* && rmdir out
10226   cd ..
10227   $RM -r conftest
10228   $RM conftest*
10229 ;;
10230esac
10231fi
10232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10233printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10234
10235
10236
10237
10238
10239
10240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10241printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10242if test ${lt_cv_prog_compiler_c_o+y}
10243then :
10244  printf %s "(cached) " >&6
10245else case e in #(
10246  e) lt_cv_prog_compiler_c_o=no
10247   $RM -r conftest 2>/dev/null
10248   mkdir conftest
10249   cd conftest
10250   mkdir out
10251   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10252
10253   lt_compiler_flag="-o out/conftest2.$ac_objext"
10254   # Insert the option either (1) after the last *FLAGS variable, or
10255   # (2) before a word containing "conftest.", or (3) at the end.
10256   # Note that $ac_compile itself does not contain backslashes and begins
10257   # with a dollar sign (not a hyphen), so the echo should work correctly.
10258   lt_compile=`echo "$ac_compile" | $SED \
10259   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10260   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10261   -e 's:$: $lt_compiler_flag:'`
10262   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10263   (eval "$lt_compile" 2>out/conftest.err)
10264   ac_status=$?
10265   cat out/conftest.err >&5
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10268   then
10269     # The compiler can only warn and ignore the option if not recognized
10270     # So say no if there are warnings
10271     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10272     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10273     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10274       lt_cv_prog_compiler_c_o=yes
10275     fi
10276   fi
10277   chmod u+w . 2>&5
10278   $RM conftest*
10279   # SGI C++ compiler will create directory out/ii_files/ for
10280   # template instantiation
10281   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10282   $RM out/* && rmdir out
10283   cd ..
10284   $RM -r conftest
10285   $RM conftest*
10286 ;;
10287esac
10288fi
10289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10290printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10291
10292
10293
10294
10295hard_links=nottested
10296if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10297  # do not overwrite the value of need_locks provided by the user
10298  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10299printf %s "checking if we can lock with hard links... " >&6; }
10300  hard_links=yes
10301  $RM conftest*
10302  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10303  touch conftest.a
10304  ln conftest.a conftest.b 2>&5 || hard_links=no
10305  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10307printf "%s\n" "$hard_links" >&6; }
10308  if test no = "$hard_links"; then
10309    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10310printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10311    need_locks=warn
10312  fi
10313else
10314  need_locks=no
10315fi
10316
10317
10318
10319
10320
10321
10322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10323printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10324
10325  runpath_var=
10326  allow_undefined_flag=
10327  always_export_symbols=no
10328  archive_cmds=
10329  archive_expsym_cmds=
10330  compiler_needs_object=no
10331  enable_shared_with_static_runtimes=no
10332  export_dynamic_flag_spec=
10333  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10334  hardcode_automatic=no
10335  hardcode_direct=no
10336  hardcode_direct_absolute=no
10337  hardcode_libdir_flag_spec=
10338  hardcode_libdir_separator=
10339  hardcode_minus_L=no
10340  hardcode_shlibpath_var=unsupported
10341  inherit_rpath=no
10342  link_all_deplibs=unknown
10343  module_cmds=
10344  module_expsym_cmds=
10345  old_archive_from_new_cmds=
10346  old_archive_from_expsyms_cmds=
10347  thread_safe_flag_spec=
10348  whole_archive_flag_spec=
10349  # include_expsyms should be a list of space-separated symbols to be *always*
10350  # included in the symbol list
10351  include_expsyms=
10352  # exclude_expsyms can be an extended regexp of symbols to exclude
10353  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10354  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10355  # as well as any symbol that contains 'd'.
10356  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10357  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10358  # platforms (ab)use it in PIC code, but their linkers get confused if
10359  # the symbol is explicitly referenced.  Since portable code cannot
10360  # rely on this symbol name, it's probably fine to never include it in
10361  # preloaded symbol tables.
10362  # Exclude shared library initialization/finalization symbols.
10363  extract_expsyms_cmds=
10364
10365  case $host_os in
10366  cygwin* | mingw* | windows* | pw32* | cegcc*)
10367    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10368    # When not using gcc, we currently assume that we are using
10369    # Microsoft Visual C++ or Intel C++ Compiler.
10370    if test yes != "$GCC"; then
10371      with_gnu_ld=no
10372    fi
10373    ;;
10374  interix*)
10375    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10376    with_gnu_ld=yes
10377    ;;
10378  esac
10379
10380  ld_shlibs=yes
10381
10382  # On some targets, GNU ld is compatible enough with the native linker
10383  # that we're better off using the native interface for both.
10384  lt_use_gnu_ld_interface=no
10385  if test yes = "$with_gnu_ld"; then
10386    case $host_os in
10387      aix*)
10388	# The AIX port of GNU ld has always aspired to compatibility
10389	# with the native linker.  However, as the warning in the GNU ld
10390	# block says, versions before 2.19.5* couldn't really create working
10391	# shared libraries, regardless of the interface used.
10392	case `$LD -v 2>&1` in
10393	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10394	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10395	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10396	  *)
10397	    lt_use_gnu_ld_interface=yes
10398	    ;;
10399	esac
10400	;;
10401      *)
10402	lt_use_gnu_ld_interface=yes
10403	;;
10404    esac
10405  fi
10406
10407  if test yes = "$lt_use_gnu_ld_interface"; then
10408    # If archive_cmds runs LD, not CC, wlarc should be empty
10409    wlarc='$wl'
10410
10411    # Set some defaults for GNU ld with shared library support. These
10412    # are reset later if shared libraries are not supported. Putting them
10413    # here allows them to be overridden if necessary.
10414    runpath_var=LD_RUN_PATH
10415    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10416    export_dynamic_flag_spec='$wl--export-dynamic'
10417    # ancient GNU ld didn't support --whole-archive et. al.
10418    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10419      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10420    else
10421      whole_archive_flag_spec=
10422    fi
10423    supports_anon_versioning=no
10424    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10425      *GNU\ gold*) supports_anon_versioning=yes ;;
10426      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10427      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10428      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10429      *\ 2.11.*) ;; # other 2.11 versions
10430      *) supports_anon_versioning=yes ;;
10431    esac
10432
10433    # See if GNU ld supports shared libraries.
10434    case $host_os in
10435    aix[3-9]*)
10436      # On AIX/PPC, the GNU linker is very broken
10437      if test ia64 != "$host_cpu"; then
10438	ld_shlibs=no
10439	cat <<_LT_EOF 1>&2
10440
10441*** Warning: the GNU linker, at least up to release 2.19, is reported
10442*** to be unable to reliably create shared libraries on AIX.
10443*** Therefore, libtool is disabling shared libraries support.  If you
10444*** really care for shared libraries, you may want to install binutils
10445*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10446*** You will then need to restart the configuration process.
10447
10448_LT_EOF
10449      fi
10450      ;;
10451
10452    amigaos*)
10453      case $host_cpu in
10454      powerpc)
10455            # see comment about AmigaOS4 .so support
10456            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10457            archive_expsym_cmds=''
10458        ;;
10459      m68k)
10460            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)'
10461            hardcode_libdir_flag_spec='-L$libdir'
10462            hardcode_minus_L=yes
10463        ;;
10464      esac
10465      ;;
10466
10467    beos*)
10468      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10469	allow_undefined_flag=unsupported
10470	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10471	# support --undefined.  This deserves some investigation.  FIXME
10472	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10473      else
10474	ld_shlibs=no
10475      fi
10476      ;;
10477
10478    cygwin* | mingw* | windows* | pw32* | cegcc*)
10479      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10480      # as there is no search path for DLLs.
10481      hardcode_libdir_flag_spec='-L$libdir'
10482      export_dynamic_flag_spec='$wl--export-all-symbols'
10483      allow_undefined_flag=unsupported
10484      always_export_symbols=no
10485      enable_shared_with_static_runtimes=yes
10486      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'
10487      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10488      file_list_spec='@'
10489
10490      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10491        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10492	# If the export-symbols file already is a .def file, use it as
10493	# is; otherwise, prepend EXPORTS...
10494	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10495          cp $export_symbols $output_objdir/$soname.def;
10496        else
10497          echo EXPORTS > $output_objdir/$soname.def;
10498          cat $export_symbols >> $output_objdir/$soname.def;
10499        fi~
10500        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10501      else
10502	ld_shlibs=no
10503      fi
10504      ;;
10505
10506    haiku*)
10507      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10508      link_all_deplibs=no
10509      ;;
10510
10511    os2*)
10512      hardcode_libdir_flag_spec='-L$libdir'
10513      hardcode_minus_L=yes
10514      allow_undefined_flag=unsupported
10515      shrext_cmds=.dll
10516      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10517	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10518	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10519	$ECHO EXPORTS >> $output_objdir/$libname.def~
10520	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10521	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10522	emximp -o $lib $output_objdir/$libname.def'
10523      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10524	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10525	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10526	$ECHO EXPORTS >> $output_objdir/$libname.def~
10527	prefix_cmds="$SED"~
10528	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10529	  prefix_cmds="$prefix_cmds -e 1d";
10530	fi~
10531	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10532	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10533	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10534	emximp -o $lib $output_objdir/$libname.def'
10535      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10536      enable_shared_with_static_runtimes=yes
10537      file_list_spec='@'
10538      ;;
10539
10540    interix[3-9]*)
10541      hardcode_direct=no
10542      hardcode_shlibpath_var=no
10543      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10544      export_dynamic_flag_spec='$wl-E'
10545      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10546      # Instead, shared libraries are loaded at an image base (0x10000000 by
10547      # default) and relocated if they conflict, which is a slow very memory
10548      # consuming and fragmenting process.  To avoid this, we pick a random,
10549      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10550      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10551      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10552      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'
10553      ;;
10554
10555    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10556      tmp_diet=no
10557      if test linux-dietlibc = "$host_os"; then
10558	case $cc_basename in
10559	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10560	esac
10561      fi
10562      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10563	 && test no = "$tmp_diet"
10564      then
10565	tmp_addflag=' $pic_flag'
10566	tmp_sharedflag='-shared'
10567	case $cc_basename,$host_cpu in
10568        pgcc*)				# Portland Group C compiler
10569	  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'
10570	  tmp_addflag=' $pic_flag'
10571	  ;;
10572	pgf77* | pgf90* | pgf95* | pgfortran*)
10573					# Portland Group f77 and f90 compilers
10574	  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'
10575	  tmp_addflag=' $pic_flag -Mnomain' ;;
10576	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10577	  tmp_addflag=' -i_dynamic' ;;
10578	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10579	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10580	ifc* | ifort*)			# Intel Fortran compiler
10581	  tmp_addflag=' -nofor_main' ;;
10582	lf95*)				# Lahey Fortran 8.1
10583	  whole_archive_flag_spec=
10584	  tmp_sharedflag='--shared' ;;
10585        nagfor*)                        # NAGFOR 5.3
10586          tmp_sharedflag='-Wl,-shared' ;;
10587	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10588	  tmp_sharedflag='-qmkshrobj'
10589	  tmp_addflag= ;;
10590	nvcc*)	# Cuda Compiler Driver 2.2
10591	  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'
10592	  compiler_needs_object=yes
10593	  ;;
10594	esac
10595	case `$CC -V 2>&1 | $SED 5q` in
10596	*Sun\ C*)			# Sun C 5.9
10597	  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'
10598	  compiler_needs_object=yes
10599	  tmp_sharedflag='-G' ;;
10600	*Sun\ F*)			# Sun Fortran 8.3
10601	  tmp_sharedflag='-G' ;;
10602	esac
10603	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10604
10605        if test yes = "$supports_anon_versioning"; then
10606          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10607            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10608            echo "local: *; };" >> $output_objdir/$libname.ver~
10609            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10610        fi
10611
10612	case $cc_basename in
10613	tcc*)
10614	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10615	  export_dynamic_flag_spec='-rdynamic'
10616	  ;;
10617	xlf* | bgf* | bgxlf* | mpixlf*)
10618	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10619	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10620	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10621	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10622	  if test yes = "$supports_anon_versioning"; then
10623	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10624              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10625              echo "local: *; };" >> $output_objdir/$libname.ver~
10626              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10627	  fi
10628	  ;;
10629	esac
10630      else
10631        ld_shlibs=no
10632      fi
10633      ;;
10634
10635    *-mlibc)
10636	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10637	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10638      ;;
10639
10640    netbsd* | netbsdelf*-gnu)
10641      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10642	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10643	wlarc=
10644      else
10645	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10646	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10647      fi
10648      ;;
10649
10650    solaris*)
10651      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10652	ld_shlibs=no
10653	cat <<_LT_EOF 1>&2
10654
10655*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10656*** create shared libraries on Solaris systems.  Therefore, libtool
10657*** is disabling shared libraries support.  We urge you to upgrade GNU
10658*** binutils to release 2.9.1 or newer.  Another option is to modify
10659*** your PATH or compiler configuration so that the native linker is
10660*** used, and then restart.
10661
10662_LT_EOF
10663      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10664	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10665	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10666      else
10667	ld_shlibs=no
10668      fi
10669      ;;
10670
10671    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10672      case `$LD -v 2>&1` in
10673        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10674	ld_shlibs=no
10675	cat <<_LT_EOF 1>&2
10676
10677*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10678*** reliably create shared libraries on SCO systems.  Therefore, libtool
10679*** is disabling shared libraries support.  We urge you to upgrade GNU
10680*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10681*** your PATH or compiler configuration so that the native linker is
10682*** used, and then restart.
10683
10684_LT_EOF
10685	;;
10686	*)
10687	  # For security reasons, it is highly recommended that you always
10688	  # use absolute paths for naming shared libraries, and exclude the
10689	  # DT_RUNPATH tag from executables and libraries.  But doing so
10690	  # requires that you compile everything twice, which is a pain.
10691	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10692	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10693	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10694	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10695	  else
10696	    ld_shlibs=no
10697	  fi
10698	;;
10699      esac
10700      ;;
10701
10702    sunos4*)
10703      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10704      wlarc=
10705      hardcode_direct=yes
10706      hardcode_shlibpath_var=no
10707      ;;
10708
10709    *)
10710      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10711	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10712	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10713      else
10714	ld_shlibs=no
10715      fi
10716      ;;
10717    esac
10718
10719    if test no = "$ld_shlibs"; then
10720      runpath_var=
10721      hardcode_libdir_flag_spec=
10722      export_dynamic_flag_spec=
10723      whole_archive_flag_spec=
10724    fi
10725  else
10726    # PORTME fill in a description of your system's linker (not GNU ld)
10727    case $host_os in
10728    aix3*)
10729      allow_undefined_flag=unsupported
10730      always_export_symbols=yes
10731      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'
10732      # Note: this linker hardcodes the directories in LIBPATH if there
10733      # are no directories specified by -L.
10734      hardcode_minus_L=yes
10735      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10736	# Neither direct hardcoding nor static linking is supported with a
10737	# broken collect2.
10738	hardcode_direct=unsupported
10739      fi
10740      ;;
10741
10742    aix[4-9]*)
10743      if test ia64 = "$host_cpu"; then
10744	# On IA64, the linker does run time linking by default, so we don't
10745	# have to do anything special.
10746	aix_use_runtimelinking=no
10747	exp_sym_flag='-Bexport'
10748	no_entry_flag=
10749      else
10750	# If we're using GNU nm, then we don't want the "-C" option.
10751	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10752	# Without the "-l" option, or with the "-B" option, AIX nm treats
10753	# weak defined symbols like other global defined symbols, whereas
10754	# GNU nm marks them as "W".
10755	# While the 'weak' keyword is ignored in the Export File, we need
10756	# it in the Import File for the 'aix-soname' feature, so we have
10757	# to replace the "-B" option with "-P" for AIX nm.
10758	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10759	  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'
10760	else
10761	  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'
10762	fi
10763	aix_use_runtimelinking=no
10764
10765	# Test if we are trying to use run time linking or normal
10766	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10767	# have runtime linking enabled, and use it for executables.
10768	# For shared libraries, we enable/disable runtime linking
10769	# depending on the kind of the shared library created -
10770	# when "with_aix_soname,aix_use_runtimelinking" is:
10771	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10772	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10773	#            lib.a           static archive
10774	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10775	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10776	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10777	#            lib.a(lib.so.V) shared, rtl:no
10778	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10779	#            lib.a           static archive
10780	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10781	  for ld_flag in $LDFLAGS; do
10782	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10783	    aix_use_runtimelinking=yes
10784	    break
10785	  fi
10786	  done
10787	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10788	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10789	    # so we don't have lib.a shared libs to link our executables.
10790	    # We have to force runtime linking in this case.
10791	    aix_use_runtimelinking=yes
10792	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10793	  fi
10794	  ;;
10795	esac
10796
10797	exp_sym_flag='-bexport'
10798	no_entry_flag='-bnoentry'
10799      fi
10800
10801      # When large executables or shared objects are built, AIX ld can
10802      # have problems creating the table of contents.  If linking a library
10803      # or program results in "error TOC overflow" add -mminimal-toc to
10804      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10805      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10806
10807      archive_cmds=''
10808      hardcode_direct=yes
10809      hardcode_direct_absolute=yes
10810      hardcode_libdir_separator=':'
10811      link_all_deplibs=yes
10812      file_list_spec='$wl-f,'
10813      case $with_aix_soname,$aix_use_runtimelinking in
10814      aix,*) ;; # traditional, no import file
10815      svr4,* | *,yes) # use import file
10816	# The Import File defines what to hardcode.
10817	hardcode_direct=no
10818	hardcode_direct_absolute=no
10819	;;
10820      esac
10821
10822      if test yes = "$GCC"; then
10823	case $host_os in aix4.[012]|aix4.[012].*)
10824	# We only want to do this on AIX 4.2 and lower, the check
10825	# below for broken collect2 doesn't work under 4.3+
10826	  collect2name=`$CC -print-prog-name=collect2`
10827	  if test -f "$collect2name" &&
10828	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10829	  then
10830	  # We have reworked collect2
10831	  :
10832	  else
10833	  # We have old collect2
10834	  hardcode_direct=unsupported
10835	  # It fails to find uninstalled libraries when the uninstalled
10836	  # path is not listed in the libpath.  Setting hardcode_minus_L
10837	  # to unsupported forces relinking
10838	  hardcode_minus_L=yes
10839	  hardcode_libdir_flag_spec='-L$libdir'
10840	  hardcode_libdir_separator=
10841	  fi
10842	  ;;
10843	esac
10844	shared_flag='-shared'
10845	if test yes = "$aix_use_runtimelinking"; then
10846	  shared_flag="$shared_flag "'$wl-G'
10847	fi
10848	# Need to ensure runtime linking is disabled for the traditional
10849	# shared library, or the linker may eventually find shared libraries
10850	# /with/ Import File - we do not want to mix them.
10851	shared_flag_aix='-shared'
10852	shared_flag_svr4='-shared $wl-G'
10853      else
10854	# not using gcc
10855	if test ia64 = "$host_cpu"; then
10856	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10857	# chokes on -Wl,-G. The following line is correct:
10858	  shared_flag='-G'
10859	else
10860	  if test yes = "$aix_use_runtimelinking"; then
10861	    shared_flag='$wl-G'
10862	  else
10863	    shared_flag='$wl-bM:SRE'
10864	  fi
10865	  shared_flag_aix='$wl-bM:SRE'
10866	  shared_flag_svr4='$wl-G'
10867	fi
10868      fi
10869
10870      export_dynamic_flag_spec='$wl-bexpall'
10871      # It seems that -bexpall does not export symbols beginning with
10872      # underscore (_), so it is better to generate a list of symbols to export.
10873      always_export_symbols=yes
10874      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10875	# Warning - without using the other runtime loading flags (-brtl),
10876	# -berok will link without error, but may produce a broken library.
10877	allow_undefined_flag='-berok'
10878        # Determine the default libpath from the value encoded in an
10879        # empty executable.
10880        if test set = "${lt_cv_aix_libpath+set}"; then
10881  aix_libpath=$lt_cv_aix_libpath
10882else
10883  if test ${lt_cv_aix_libpath_+y}
10884then :
10885  printf %s "(cached) " >&6
10886else case e in #(
10887  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h.  */
10889
10890int
10891main (void)
10892{
10893
10894  ;
10895  return 0;
10896}
10897_ACEOF
10898if ac_fn_c_try_link "$LINENO"
10899then :
10900
10901  lt_aix_libpath_sed='
10902      /Import File Strings/,/^$/ {
10903	  /^0/ {
10904	      s/^0  *\([^ ]*\) *$/\1/
10905	      p
10906	  }
10907      }'
10908  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10909  # Check for a 64-bit object if we didn't find anything.
10910  if test -z "$lt_cv_aix_libpath_"; then
10911    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10912  fi
10913fi
10914rm -f core conftest.err conftest.$ac_objext conftest.beam \
10915    conftest$ac_exeext conftest.$ac_ext
10916  if test -z "$lt_cv_aix_libpath_"; then
10917    lt_cv_aix_libpath_=/usr/lib:/lib
10918  fi
10919   ;;
10920esac
10921fi
10922
10923  aix_libpath=$lt_cv_aix_libpath_
10924fi
10925
10926        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10927        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
10928      else
10929	if test ia64 = "$host_cpu"; then
10930	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10931	  allow_undefined_flag="-z nodefs"
10932	  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"
10933	else
10934	 # Determine the default libpath from the value encoded in an
10935	 # empty executable.
10936	 if test set = "${lt_cv_aix_libpath+set}"; then
10937  aix_libpath=$lt_cv_aix_libpath
10938else
10939  if test ${lt_cv_aix_libpath_+y}
10940then :
10941  printf %s "(cached) " >&6
10942else case e in #(
10943  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h.  */
10945
10946int
10947main (void)
10948{
10949
10950  ;
10951  return 0;
10952}
10953_ACEOF
10954if ac_fn_c_try_link "$LINENO"
10955then :
10956
10957  lt_aix_libpath_sed='
10958      /Import File Strings/,/^$/ {
10959	  /^0/ {
10960	      s/^0  *\([^ ]*\) *$/\1/
10961	      p
10962	  }
10963      }'
10964  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10965  # Check for a 64-bit object if we didn't find anything.
10966  if test -z "$lt_cv_aix_libpath_"; then
10967    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10968  fi
10969fi
10970rm -f core conftest.err conftest.$ac_objext conftest.beam \
10971    conftest$ac_exeext conftest.$ac_ext
10972  if test -z "$lt_cv_aix_libpath_"; then
10973    lt_cv_aix_libpath_=/usr/lib:/lib
10974  fi
10975   ;;
10976esac
10977fi
10978
10979  aix_libpath=$lt_cv_aix_libpath_
10980fi
10981
10982	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10983	  # Warning - without using the other run time loading flags,
10984	  # -berok will link without error, but may produce a broken library.
10985	  no_undefined_flag=' $wl-bernotok'
10986	  allow_undefined_flag=' $wl-berok'
10987	  if test yes = "$with_gnu_ld"; then
10988	    # We only use this code for GNU lds that support --whole-archive.
10989	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10990	  else
10991	    # Exported symbols can be pulled into shared objects from archives
10992	    whole_archive_flag_spec='$convenience'
10993	  fi
10994	  archive_cmds_need_lc=yes
10995	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10996	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10997	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10998	  if test svr4 != "$with_aix_soname"; then
10999	    # This is similar to how AIX traditionally builds its shared libraries.
11000	    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'
11001	  fi
11002	  if test aix != "$with_aix_soname"; then
11003	    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'
11004	  else
11005	    # used by -dlpreopen to get the symbols
11006	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11007	  fi
11008	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11009	fi
11010      fi
11011      ;;
11012
11013    amigaos*)
11014      case $host_cpu in
11015      powerpc)
11016            # see comment about AmigaOS4 .so support
11017            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11018            archive_expsym_cmds=''
11019        ;;
11020      m68k)
11021            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)'
11022            hardcode_libdir_flag_spec='-L$libdir'
11023            hardcode_minus_L=yes
11024        ;;
11025      esac
11026      ;;
11027
11028    bsdi[45]*)
11029      export_dynamic_flag_spec=-rdynamic
11030      ;;
11031
11032    cygwin* | mingw* | windows* | pw32* | cegcc*)
11033      # When not using gcc, we currently assume that we are using
11034      # Microsoft Visual C++ or Intel C++ Compiler.
11035      # hardcode_libdir_flag_spec is actually meaningless, as there is
11036      # no search path for DLLs.
11037      case $cc_basename in
11038      cl* | icl*)
11039	# Native MSVC or ICC
11040	hardcode_libdir_flag_spec=' '
11041	allow_undefined_flag=unsupported
11042	always_export_symbols=yes
11043	file_list_spec='@'
11044	# Tell ltmain to make .lib files, not .a files.
11045	libext=lib
11046	# Tell ltmain to make .dll files, not .so files.
11047	shrext_cmds=.dll
11048	# FIXME: Setting linknames here is a bad hack.
11049	archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11050	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11051            cp "$export_symbols" "$output_objdir/$soname.def";
11052            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11053          else
11054            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11055          fi~
11056          $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11057          linknames='
11058	# The linker will not automatically build a static lib if we build a DLL.
11059	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11060	enable_shared_with_static_runtimes=yes
11061	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11062	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11063	# Don't use ranlib
11064	old_postinstall_cmds='chmod 644 $oldlib'
11065	postlink_cmds='lt_outputfile="@OUTPUT@"~
11066          lt_tool_outputfile="@TOOL_OUTPUT@"~
11067          case $lt_outputfile in
11068            *.exe|*.EXE) ;;
11069            *)
11070              lt_outputfile=$lt_outputfile.exe
11071              lt_tool_outputfile=$lt_tool_outputfile.exe
11072              ;;
11073          esac~
11074          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11075            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11076            $RM "$lt_outputfile.manifest";
11077          fi'
11078	;;
11079      *)
11080	# Assume MSVC and ICC wrapper
11081	hardcode_libdir_flag_spec=' '
11082	allow_undefined_flag=unsupported
11083	# Tell ltmain to make .lib files, not .a files.
11084	libext=lib
11085	# Tell ltmain to make .dll files, not .so files.
11086	shrext_cmds=.dll
11087	# FIXME: Setting linknames here is a bad hack.
11088	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11089	# The linker will automatically build a .lib file if we build a DLL.
11090	old_archive_from_new_cmds='true'
11091	# FIXME: Should let the user specify the lib program.
11092	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11093	enable_shared_with_static_runtimes=yes
11094	;;
11095      esac
11096      ;;
11097
11098    darwin* | rhapsody*)
11099
11100
11101  archive_cmds_need_lc=no
11102  hardcode_direct=no
11103  hardcode_automatic=yes
11104  hardcode_shlibpath_var=unsupported
11105  if test yes = "$lt_cv_ld_force_load"; then
11106    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\"`'
11107
11108  else
11109    whole_archive_flag_spec=''
11110  fi
11111  link_all_deplibs=yes
11112  allow_undefined_flag=$_lt_dar_allow_undefined
11113  case $cc_basename in
11114     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11115     *) _lt_dar_can_shared=$GCC ;;
11116  esac
11117  if test yes = "$_lt_dar_can_shared"; then
11118    output_verbose_link_cmd=func_echo_all
11119    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11120    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11121    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"
11122    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"
11123
11124  else
11125  ld_shlibs=no
11126  fi
11127
11128      ;;
11129
11130    dgux*)
11131      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11132      hardcode_libdir_flag_spec='-L$libdir'
11133      hardcode_shlibpath_var=no
11134      ;;
11135
11136    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11137    # support.  Future versions do this automatically, but an explicit c++rt0.o
11138    # does not break anything, and helps significantly (at the cost of a little
11139    # extra space).
11140    freebsd2.2*)
11141      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11142      hardcode_libdir_flag_spec='-R$libdir'
11143      hardcode_direct=yes
11144      hardcode_shlibpath_var=no
11145      ;;
11146
11147    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11148    freebsd2.*)
11149      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11150      hardcode_direct=yes
11151      hardcode_minus_L=yes
11152      hardcode_shlibpath_var=no
11153      ;;
11154
11155    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11156    freebsd* | dragonfly* | midnightbsd*)
11157      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11158      hardcode_libdir_flag_spec='-R$libdir'
11159      hardcode_direct=yes
11160      hardcode_shlibpath_var=no
11161      ;;
11162
11163    hpux9*)
11164      if test yes = "$GCC"; then
11165	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'
11166      else
11167	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'
11168      fi
11169      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11170      hardcode_libdir_separator=:
11171      hardcode_direct=yes
11172
11173      # hardcode_minus_L: Not really in the search PATH,
11174      # but as the default location of the library.
11175      hardcode_minus_L=yes
11176      export_dynamic_flag_spec='$wl-E'
11177      ;;
11178
11179    hpux10*)
11180      if test yes,no = "$GCC,$with_gnu_ld"; then
11181	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11182      else
11183	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11184      fi
11185      if test no = "$with_gnu_ld"; then
11186	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11187	hardcode_libdir_separator=:
11188	hardcode_direct=yes
11189	hardcode_direct_absolute=yes
11190	export_dynamic_flag_spec='$wl-E'
11191	# hardcode_minus_L: Not really in the search PATH,
11192	# but as the default location of the library.
11193	hardcode_minus_L=yes
11194      fi
11195      ;;
11196
11197    hpux11*)
11198      if test yes,no = "$GCC,$with_gnu_ld"; then
11199	case $host_cpu in
11200	hppa*64*)
11201	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11202	  ;;
11203	ia64*)
11204	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11205	  ;;
11206	*)
11207	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11208	  ;;
11209	esac
11210      else
11211	case $host_cpu in
11212	hppa*64*)
11213	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11214	  ;;
11215	ia64*)
11216	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11217	  ;;
11218	*)
11219
11220	  # Older versions of the 11.00 compiler do not understand -b yet
11221	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11222	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11223printf %s "checking if $CC understands -b... " >&6; }
11224if test ${lt_cv_prog_compiler__b+y}
11225then :
11226  printf %s "(cached) " >&6
11227else case e in #(
11228  e) lt_cv_prog_compiler__b=no
11229   save_LDFLAGS=$LDFLAGS
11230   LDFLAGS="$LDFLAGS -b"
11231   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11232   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11233     # The linker can only warn and ignore the option if not recognized
11234     # So say no if there are warnings
11235     if test -s conftest.err; then
11236       # Append any errors to the config.log.
11237       cat conftest.err 1>&5
11238       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11239       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11240       if diff conftest.exp conftest.er2 >/dev/null; then
11241         lt_cv_prog_compiler__b=yes
11242       fi
11243     else
11244       lt_cv_prog_compiler__b=yes
11245     fi
11246   fi
11247   $RM -r conftest*
11248   LDFLAGS=$save_LDFLAGS
11249 ;;
11250esac
11251fi
11252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11253printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11254
11255if test yes = "$lt_cv_prog_compiler__b"; then
11256    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11257else
11258    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11259fi
11260
11261	  ;;
11262	esac
11263      fi
11264      if test no = "$with_gnu_ld"; then
11265	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11266	hardcode_libdir_separator=:
11267
11268	case $host_cpu in
11269	hppa*64*|ia64*)
11270	  hardcode_direct=no
11271	  hardcode_shlibpath_var=no
11272	  ;;
11273	*)
11274	  hardcode_direct=yes
11275	  hardcode_direct_absolute=yes
11276	  export_dynamic_flag_spec='$wl-E'
11277
11278	  # hardcode_minus_L: Not really in the search PATH,
11279	  # but as the default location of the library.
11280	  hardcode_minus_L=yes
11281	  ;;
11282	esac
11283      fi
11284      ;;
11285
11286    irix5* | irix6* | nonstopux*)
11287      if test yes = "$GCC"; then
11288	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'
11289	# Try to use the -exported_symbol ld option, if it does not
11290	# work, assume that -exports_file does not work either and
11291	# implicitly export all symbols.
11292	# This should be the same for all languages, so no per-tag cache variable.
11293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11294printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11295if test ${lt_cv_irix_exported_symbol+y}
11296then :
11297  printf %s "(cached) " >&6
11298else case e in #(
11299  e) save_LDFLAGS=$LDFLAGS
11300	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11301	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302/* end confdefs.h.  */
11303int foo (void) { return 0; }
11304_ACEOF
11305if ac_fn_c_try_link "$LINENO"
11306then :
11307  lt_cv_irix_exported_symbol=yes
11308else case e in #(
11309  e) lt_cv_irix_exported_symbol=no ;;
11310esac
11311fi
11312rm -f core conftest.err conftest.$ac_objext conftest.beam \
11313    conftest$ac_exeext conftest.$ac_ext
11314           LDFLAGS=$save_LDFLAGS ;;
11315esac
11316fi
11317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11318printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11319	if test yes = "$lt_cv_irix_exported_symbol"; then
11320          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'
11321	fi
11322      else
11323	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'
11324	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'
11325      fi
11326      archive_cmds_need_lc='no'
11327      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11328      hardcode_libdir_separator=:
11329      inherit_rpath=yes
11330      link_all_deplibs=yes
11331      ;;
11332
11333    linux*)
11334      case $cc_basename in
11335      tcc*)
11336	# Fabrice Bellard et al's Tiny C Compiler
11337	ld_shlibs=yes
11338	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11339	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11340	;;
11341      esac
11342      ;;
11343
11344    *-mlibc)
11345      ;;
11346
11347    netbsd* | netbsdelf*-gnu)
11348      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11349	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11350      else
11351	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11352      fi
11353      hardcode_libdir_flag_spec='-R$libdir'
11354      hardcode_direct=yes
11355      hardcode_shlibpath_var=no
11356      ;;
11357
11358    newsos6)
11359      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11360      hardcode_direct=yes
11361      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11362      hardcode_libdir_separator=:
11363      hardcode_shlibpath_var=no
11364      ;;
11365
11366    *nto* | *qnx*)
11367      ;;
11368
11369    openbsd*)
11370      if test -f /usr/libexec/ld.so; then
11371	hardcode_direct=yes
11372	hardcode_shlibpath_var=no
11373	hardcode_direct_absolute=yes
11374	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11375	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11376	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11377	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11378	  export_dynamic_flag_spec='$wl-E'
11379	else
11380	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11381	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11382	fi
11383      else
11384	ld_shlibs=no
11385      fi
11386      ;;
11387
11388    os2*)
11389      hardcode_libdir_flag_spec='-L$libdir'
11390      hardcode_minus_L=yes
11391      allow_undefined_flag=unsupported
11392      shrext_cmds=.dll
11393      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11394	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11395	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11396	$ECHO EXPORTS >> $output_objdir/$libname.def~
11397	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11398	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11399	emximp -o $lib $output_objdir/$libname.def'
11400      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11401	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11402	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11403	$ECHO EXPORTS >> $output_objdir/$libname.def~
11404	prefix_cmds="$SED"~
11405	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11406	  prefix_cmds="$prefix_cmds -e 1d";
11407	fi~
11408	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11409	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11410	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11411	emximp -o $lib $output_objdir/$libname.def'
11412      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11413      enable_shared_with_static_runtimes=yes
11414      file_list_spec='@'
11415      ;;
11416
11417    osf3*)
11418      if test yes = "$GCC"; then
11419	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11420	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'
11421      else
11422	allow_undefined_flag=' -expect_unresolved \*'
11423	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'
11424      fi
11425      archive_cmds_need_lc='no'
11426      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11427      hardcode_libdir_separator=:
11428      ;;
11429
11430    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11431      if test yes = "$GCC"; then
11432	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11433	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'
11434	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11435      else
11436	allow_undefined_flag=' -expect_unresolved \*'
11437	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'
11438	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~
11439          $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'
11440
11441	# Both c and cxx compiler support -rpath directly
11442	hardcode_libdir_flag_spec='-rpath $libdir'
11443      fi
11444      archive_cmds_need_lc='no'
11445      hardcode_libdir_separator=:
11446      ;;
11447
11448    serenity*)
11449      ;;
11450
11451    solaris*)
11452      no_undefined_flag=' -z defs'
11453      if test yes = "$GCC"; then
11454	wlarc='$wl'
11455	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11456	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11457          $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'
11458      else
11459	case `$CC -V 2>&1` in
11460	*"Compilers 5.0"*)
11461	  wlarc=''
11462	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11463	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11464            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11465	  ;;
11466	*)
11467	  wlarc='$wl'
11468	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11469	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11470            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11471	  ;;
11472	esac
11473      fi
11474      hardcode_libdir_flag_spec='-R$libdir'
11475      hardcode_shlibpath_var=no
11476      case $host_os in
11477      solaris2.[0-5] | solaris2.[0-5].*) ;;
11478      *)
11479	# The compiler driver will combine and reorder linker options,
11480	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11481	# but is careful enough not to reorder.
11482	# Supported since Solaris 2.6 (maybe 2.5.1?)
11483	if test yes = "$GCC"; then
11484	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11485	else
11486	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11487	fi
11488	;;
11489      esac
11490      link_all_deplibs=yes
11491      ;;
11492
11493    sunos4*)
11494      if test sequent = "$host_vendor"; then
11495	# Use $CC to link under sequent, because it throws in some extra .o
11496	# files that make .init and .fini sections work.
11497	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11498      else
11499	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11500      fi
11501      hardcode_libdir_flag_spec='-L$libdir'
11502      hardcode_direct=yes
11503      hardcode_minus_L=yes
11504      hardcode_shlibpath_var=no
11505      ;;
11506
11507    sysv4)
11508      case $host_vendor in
11509	sni)
11510	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511	  hardcode_direct=yes # is this really true???
11512	;;
11513	siemens)
11514	  ## LD is ld it makes a PLAMLIB
11515	  ## CC just makes a GrossModule.
11516	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11517	  reload_cmds='$CC -r -o $output$reload_objs'
11518	  hardcode_direct=no
11519        ;;
11520	motorola)
11521	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11522	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11523	;;
11524      esac
11525      runpath_var='LD_RUN_PATH'
11526      hardcode_shlibpath_var=no
11527      ;;
11528
11529    sysv4.3*)
11530      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531      hardcode_shlibpath_var=no
11532      export_dynamic_flag_spec='-Bexport'
11533      ;;
11534
11535    sysv4*MP*)
11536      if test -d /usr/nec; then
11537	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538	hardcode_shlibpath_var=no
11539	runpath_var=LD_RUN_PATH
11540	hardcode_runpath_var=yes
11541	ld_shlibs=yes
11542      fi
11543      ;;
11544
11545    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11546      no_undefined_flag='$wl-z,text'
11547      archive_cmds_need_lc=no
11548      hardcode_shlibpath_var=no
11549      runpath_var='LD_RUN_PATH'
11550
11551      if test yes = "$GCC"; then
11552	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11553	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11554      else
11555	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11556	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11557      fi
11558      ;;
11559
11560    sysv5* | sco3.2v5* | sco5v6*)
11561      # Note: We CANNOT use -z defs as we might desire, because we do not
11562      # link with -lc, and that would cause any symbols used from libc to
11563      # always be unresolved, which means just about no library would
11564      # ever link correctly.  If we're not using GNU ld we use -z text
11565      # though, which does catch some bad symbols but isn't as heavy-handed
11566      # as -z defs.
11567      no_undefined_flag='$wl-z,text'
11568      allow_undefined_flag='$wl-z,nodefs'
11569      archive_cmds_need_lc=no
11570      hardcode_shlibpath_var=no
11571      hardcode_libdir_flag_spec='$wl-R,$libdir'
11572      hardcode_libdir_separator=':'
11573      link_all_deplibs=yes
11574      export_dynamic_flag_spec='$wl-Bexport'
11575      runpath_var='LD_RUN_PATH'
11576
11577      if test yes = "$GCC"; then
11578	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11579	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11580      else
11581	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11582	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11583      fi
11584      ;;
11585
11586    uts4*)
11587      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11588      hardcode_libdir_flag_spec='-L$libdir'
11589      hardcode_shlibpath_var=no
11590      ;;
11591
11592    *)
11593      ld_shlibs=no
11594      ;;
11595    esac
11596
11597    if test sni = "$host_vendor"; then
11598      case $host in
11599      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11600	export_dynamic_flag_spec='$wl-Blargedynsym'
11601	;;
11602      esac
11603    fi
11604  fi
11605
11606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11607printf "%s\n" "$ld_shlibs" >&6; }
11608test no = "$ld_shlibs" && can_build_shared=no
11609
11610with_gnu_ld=$with_gnu_ld
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626#
11627# Do we need to explicitly link libc?
11628#
11629case "x$archive_cmds_need_lc" in
11630x|xyes)
11631  # Assume -lc should be added
11632  archive_cmds_need_lc=yes
11633
11634  if test yes,yes = "$GCC,$enable_shared"; then
11635    case $archive_cmds in
11636    *'~'*)
11637      # FIXME: we may have to deal with multi-command sequences.
11638      ;;
11639    '$CC '*)
11640      # Test whether the compiler implicitly links with -lc since on some
11641      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11642      # to ld, don't add -lc before -lgcc.
11643      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11644printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11645if test ${lt_cv_archive_cmds_need_lc+y}
11646then :
11647  printf %s "(cached) " >&6
11648else case e in #(
11649  e) $RM conftest*
11650	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11651
11652	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11653  (eval $ac_compile) 2>&5
11654  ac_status=$?
11655  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11656  test $ac_status = 0; } 2>conftest.err; then
11657	  soname=conftest
11658	  lib=conftest
11659	  libobjs=conftest.$ac_objext
11660	  deplibs=
11661	  wl=$lt_prog_compiler_wl
11662	  pic_flag=$lt_prog_compiler_pic
11663	  compiler_flags=-v
11664	  linker_flags=-v
11665	  verstring=
11666	  output_objdir=.
11667	  libname=conftest
11668	  lt_save_allow_undefined_flag=$allow_undefined_flag
11669	  allow_undefined_flag=
11670	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11671  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11672  ac_status=$?
11673  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11674  test $ac_status = 0; }
11675	  then
11676	    lt_cv_archive_cmds_need_lc=no
11677	  else
11678	    lt_cv_archive_cmds_need_lc=yes
11679	  fi
11680	  allow_undefined_flag=$lt_save_allow_undefined_flag
11681	else
11682	  cat conftest.err 1>&5
11683	fi
11684	$RM conftest*
11685	 ;;
11686esac
11687fi
11688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11689printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11690      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11691      ;;
11692    esac
11693  fi
11694  ;;
11695esac
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11849printf %s "checking dynamic linker characteristics... " >&6; }
11850
11851if test yes = "$GCC"; then
11852  case $host_os in
11853    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11854    *) lt_awk_arg='/^libraries:/' ;;
11855  esac
11856  case $host_os in
11857    mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11858    *) lt_sed_strip_eq='s|=/|/|g' ;;
11859  esac
11860  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11861  case $lt_search_path_spec in
11862  *\;*)
11863    # if the path contains ";" then we assume it to be the separator
11864    # otherwise default to the standard path separator (i.e. ":") - it is
11865    # assumed that no part of a normal pathname contains ";" but that should
11866    # okay in the real world where ";" in dirpaths is itself problematic.
11867    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11868    ;;
11869  *)
11870    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11871    ;;
11872  esac
11873  # Ok, now we have the path, separated by spaces, we can step through it
11874  # and add multilib dir if necessary...
11875  lt_tmp_lt_search_path_spec=
11876  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11877  # ...but if some path component already ends with the multilib dir we assume
11878  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11879  case "$lt_multi_os_dir; $lt_search_path_spec " in
11880  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11881    lt_multi_os_dir=
11882    ;;
11883  esac
11884  for lt_sys_path in $lt_search_path_spec; do
11885    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11886      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11887    elif test -n "$lt_multi_os_dir"; then
11888      test -d "$lt_sys_path" && \
11889	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11890    fi
11891  done
11892  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11893BEGIN {RS = " "; FS = "/|\n";} {
11894  lt_foo = "";
11895  lt_count = 0;
11896  for (lt_i = NF; lt_i > 0; lt_i--) {
11897    if ($lt_i != "" && $lt_i != ".") {
11898      if ($lt_i == "..") {
11899        lt_count++;
11900      } else {
11901        if (lt_count == 0) {
11902          lt_foo = "/" $lt_i lt_foo;
11903        } else {
11904          lt_count--;
11905        }
11906      }
11907    }
11908  }
11909  if (lt_foo != "") { lt_freq[lt_foo]++; }
11910  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11911}'`
11912  # AWK program above erroneously prepends '/' to C:/dos/paths
11913  # for these hosts.
11914  case $host_os in
11915    mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11916      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11917  esac
11918  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11919else
11920  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11921fi
11922library_names_spec=
11923libname_spec='lib$name'
11924soname_spec=
11925shrext_cmds=.so
11926postinstall_cmds=
11927postuninstall_cmds=
11928finish_cmds=
11929finish_eval=
11930shlibpath_var=
11931shlibpath_overrides_runpath=unknown
11932version_type=none
11933dynamic_linker="$host_os ld.so"
11934sys_lib_dlsearch_path_spec="/lib /usr/lib"
11935need_lib_prefix=unknown
11936hardcode_into_libs=no
11937
11938# when you set need_version to no, make sure it does not cause -set_version
11939# flags to be left without arguments
11940need_version=unknown
11941
11942
11943
11944case $host_os in
11945aix3*)
11946  version_type=linux # correct to gnu/linux during the next big refactor
11947  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11948  shlibpath_var=LIBPATH
11949
11950  # AIX 3 has no versioning support, so we append a major version to the name.
11951  soname_spec='$libname$release$shared_ext$major'
11952  ;;
11953
11954aix[4-9]*)
11955  version_type=linux # correct to gnu/linux during the next big refactor
11956  need_lib_prefix=no
11957  need_version=no
11958  hardcode_into_libs=yes
11959  if test ia64 = "$host_cpu"; then
11960    # AIX 5 supports IA64
11961    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11962    shlibpath_var=LD_LIBRARY_PATH
11963  else
11964    # With GCC up to 2.95.x, collect2 would create an import file
11965    # for dependence libraries.  The import file would start with
11966    # the line '#! .'.  This would cause the generated library to
11967    # depend on '.', always an invalid library.  This was fixed in
11968    # development snapshots of GCC prior to 3.0.
11969    case $host_os in
11970      aix4 | aix4.[01] | aix4.[01].*)
11971      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11972	   echo ' yes '
11973	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11974	:
11975      else
11976	can_build_shared=no
11977      fi
11978      ;;
11979    esac
11980    # Using Import Files as archive members, it is possible to support
11981    # filename-based versioning of shared library archives on AIX. While
11982    # this would work for both with and without runtime linking, it will
11983    # prevent static linking of such archives. So we do filename-based
11984    # shared library versioning with .so extension only, which is used
11985    # when both runtime linking and shared linking is enabled.
11986    # Unfortunately, runtime linking may impact performance, so we do
11987    # not want this to be the default eventually. Also, we use the
11988    # versioned .so libs for executables only if there is the -brtl
11989    # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11990    # To allow for filename-based versioning support, we need to create
11991    # libNAME.so.V as an archive file, containing:
11992    # *) an Import File, referring to the versioned filename of the
11993    #    archive as well as the shared archive member, telling the
11994    #    bitwidth (32 or 64) of that shared object, and providing the
11995    #    list of exported symbols of that shared object, eventually
11996    #    decorated with the 'weak' keyword
11997    # *) the shared object with the F_LOADONLY flag set, to really avoid
11998    #    it being seen by the linker.
11999    # At run time we better use the real file rather than another symlink,
12000    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12001
12002    case $with_aix_soname,$aix_use_runtimelinking in
12003    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12004    # soname into executable. Probably we can add versioning support to
12005    # collect2, so additional links can be useful in future.
12006    aix,yes) # traditional libtool
12007      dynamic_linker='AIX unversionable lib.so'
12008      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12009      # instead of lib<name>.a to let people know that these are not
12010      # typical AIX shared libraries.
12011      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012      ;;
12013    aix,no) # traditional AIX only
12014      dynamic_linker='AIX lib.a(lib.so.V)'
12015      # We preserve .a as extension for shared libraries through AIX4.2
12016      # and later when we are not doing run time linking.
12017      library_names_spec='$libname$release.a $libname.a'
12018      soname_spec='$libname$release$shared_ext$major'
12019      ;;
12020    svr4,*) # full svr4 only
12021      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12022      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12023      # We do not specify a path in Import Files, so LIBPATH fires.
12024      shlibpath_overrides_runpath=yes
12025      ;;
12026    *,yes) # both, prefer svr4
12027      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12028      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12029      # unpreferred sharedlib libNAME.a needs extra handling
12030      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"'
12031      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"'
12032      # We do not specify a path in Import Files, so LIBPATH fires.
12033      shlibpath_overrides_runpath=yes
12034      ;;
12035    *,no) # both, prefer aix
12036      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12037      library_names_spec='$libname$release.a $libname.a'
12038      soname_spec='$libname$release$shared_ext$major'
12039      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12040      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)'
12041      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"'
12042      ;;
12043    esac
12044    shlibpath_var=LIBPATH
12045  fi
12046  ;;
12047
12048amigaos*)
12049  case $host_cpu in
12050  powerpc)
12051    # Since July 2007 AmigaOS4 officially supports .so libraries.
12052    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12053    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054    ;;
12055  m68k)
12056    library_names_spec='$libname.ixlibrary $libname.a'
12057    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12058    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'
12059    ;;
12060  esac
12061  ;;
12062
12063beos*)
12064  library_names_spec='$libname$shared_ext'
12065  dynamic_linker="$host_os ld.so"
12066  shlibpath_var=LIBRARY_PATH
12067  ;;
12068
12069bsdi[45]*)
12070  version_type=linux # correct to gnu/linux during the next big refactor
12071  need_version=no
12072  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12073  soname_spec='$libname$release$shared_ext$major'
12074  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12075  shlibpath_var=LD_LIBRARY_PATH
12076  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12077  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12078  # the default ld.so.conf also contains /usr/contrib/lib and
12079  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12080  # libtool to hard-code these into programs
12081  ;;
12082
12083cygwin* | mingw* | windows* | pw32* | cegcc*)
12084  version_type=windows
12085  shrext_cmds=.dll
12086  need_version=no
12087  need_lib_prefix=no
12088
12089  case $GCC,$cc_basename in
12090  yes,*)
12091    # gcc
12092    library_names_spec='$libname.dll.a'
12093    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12094    # If user builds GCC with multilib enabled,
12095    # it should just install on $(libdir)
12096    # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12097    if test xyes = x"$multilib"; then
12098      postinstall_cmds='base_file=`basename \$file`~
12099        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12100        dldir=$destdir/`dirname \$dlpath`~
12101        $install_prog $dir/$dlname $destdir/$dlname~
12102        chmod a+x $destdir/$dlname~
12103        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12104          eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12105        fi'
12106    else
12107      postinstall_cmds='base_file=`basename \$file`~
12108        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12109        dldir=$destdir/`dirname \$dlpath`~
12110        test -d \$dldir || mkdir -p \$dldir~
12111        $install_prog $dir/$dlname \$dldir/$dlname~
12112        chmod a+x \$dldir/$dlname~
12113        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12114          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12115        fi'
12116    fi
12117    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12118      dlpath=$dir/\$dldll~
12119       $RM \$dlpath'
12120    shlibpath_overrides_runpath=yes
12121
12122    case $host_os in
12123    cygwin*)
12124      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12125      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12126
12127      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12128      ;;
12129    mingw* | windows* | cegcc*)
12130      # MinGW DLLs use traditional 'lib' prefix
12131      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12132      ;;
12133    pw32*)
12134      # pw32 DLLs use 'pw' prefix rather than 'lib'
12135      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12136      ;;
12137    esac
12138    dynamic_linker='Win32 ld.exe'
12139    ;;
12140
12141  *,cl* | *,icl*)
12142    # Native MSVC or ICC
12143    libname_spec='$name'
12144    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12145    library_names_spec='$libname.dll.lib'
12146
12147    case $build_os in
12148    mingw* | windows*)
12149      sys_lib_search_path_spec=
12150      lt_save_ifs=$IFS
12151      IFS=';'
12152      for lt_path in $LIB
12153      do
12154        IFS=$lt_save_ifs
12155        # Let DOS variable expansion print the short 8.3 style file name.
12156        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12157        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12158      done
12159      IFS=$lt_save_ifs
12160      # Convert to MSYS style.
12161      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12162      ;;
12163    cygwin*)
12164      # Convert to unix form, then to dos form, then back to unix form
12165      # but this time dos style (no spaces!) so that the unix form looks
12166      # like /cygdrive/c/PROGRA~1:/cygdr...
12167      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12168      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12169      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12170      ;;
12171    *)
12172      sys_lib_search_path_spec=$LIB
12173      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12174        # It is most probably a Windows format PATH.
12175        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12176      else
12177        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12178      fi
12179      # FIXME: find the short name or the path components, as spaces are
12180      # common. (e.g. "Program Files" -> "PROGRA~1")
12181      ;;
12182    esac
12183
12184    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12185    postinstall_cmds='base_file=`basename \$file`~
12186      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12187      dldir=$destdir/`dirname \$dlpath`~
12188      test -d \$dldir || mkdir -p \$dldir~
12189      $install_prog $dir/$dlname \$dldir/$dlname'
12190    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12191      dlpath=$dir/\$dldll~
12192       $RM \$dlpath'
12193    shlibpath_overrides_runpath=yes
12194    dynamic_linker='Win32 link.exe'
12195    ;;
12196
12197  *)
12198    # Assume MSVC and ICC wrapper
12199    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12200    dynamic_linker='Win32 ld.exe'
12201    ;;
12202  esac
12203  # FIXME: first we should search . and the directory the executable is in
12204  shlibpath_var=PATH
12205  ;;
12206
12207darwin* | rhapsody*)
12208  dynamic_linker="$host_os dyld"
12209  version_type=darwin
12210  need_lib_prefix=no
12211  need_version=no
12212  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12213  soname_spec='$libname$release$major$shared_ext'
12214  shlibpath_overrides_runpath=yes
12215  shlibpath_var=DYLD_LIBRARY_PATH
12216  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12217
12218  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12219  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12220  ;;
12221
12222dgux*)
12223  version_type=linux # correct to gnu/linux during the next big refactor
12224  need_lib_prefix=no
12225  need_version=no
12226  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227  soname_spec='$libname$release$shared_ext$major'
12228  shlibpath_var=LD_LIBRARY_PATH
12229  ;;
12230
12231freebsd* | dragonfly* | midnightbsd*)
12232  # DragonFly does not have aout.  When/if they implement a new
12233  # versioning mechanism, adjust this.
12234  if test -x /usr/bin/objformat; then
12235    objformat=`/usr/bin/objformat`
12236  else
12237    case $host_os in
12238    freebsd[23].*) objformat=aout ;;
12239    *) objformat=elf ;;
12240    esac
12241  fi
12242  version_type=freebsd-$objformat
12243  case $version_type in
12244    freebsd-elf*)
12245      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246      soname_spec='$libname$release$shared_ext$major'
12247      need_version=no
12248      need_lib_prefix=no
12249      ;;
12250    freebsd-*)
12251      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12252      need_version=yes
12253      ;;
12254  esac
12255  case $host_cpu in
12256    powerpc64)
12257      # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12258      # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12259      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260/* end confdefs.h.  */
12261int test_pointer_size[sizeof (void *) - 5];
12262
12263_ACEOF
12264if ac_fn_c_try_compile "$LINENO"
12265then :
12266  shlibpath_var=LD_LIBRARY_PATH
12267else case e in #(
12268  e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12269esac
12270fi
12271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12272      ;;
12273    *)
12274      shlibpath_var=LD_LIBRARY_PATH
12275      ;;
12276  esac
12277  case $host_os in
12278  freebsd2.*)
12279    shlibpath_overrides_runpath=yes
12280    ;;
12281  freebsd3.[01]* | freebsdelf3.[01]*)
12282    shlibpath_overrides_runpath=yes
12283    hardcode_into_libs=yes
12284    ;;
12285  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12286  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12287    shlibpath_overrides_runpath=no
12288    hardcode_into_libs=yes
12289    ;;
12290  *) # from 4.6 on, and DragonFly
12291    shlibpath_overrides_runpath=yes
12292    hardcode_into_libs=yes
12293    ;;
12294  esac
12295  ;;
12296
12297haiku*)
12298  version_type=linux # correct to gnu/linux during the next big refactor
12299  need_lib_prefix=no
12300  need_version=no
12301  dynamic_linker="$host_os runtime_loader"
12302  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12303  soname_spec='$libname$release$shared_ext$major'
12304  shlibpath_var=LIBRARY_PATH
12305  shlibpath_overrides_runpath=no
12306  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12307  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12308  hardcode_into_libs=no
12309  ;;
12310
12311hpux9* | hpux10* | hpux11*)
12312  # Give a soname corresponding to the major version so that dld.sl refuses to
12313  # link against other versions.
12314  version_type=sunos
12315  need_lib_prefix=no
12316  need_version=no
12317  case $host_cpu in
12318  ia64*)
12319    shrext_cmds='.so'
12320    hardcode_into_libs=yes
12321    dynamic_linker="$host_os dld.so"
12322    shlibpath_var=LD_LIBRARY_PATH
12323    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12324    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12325    soname_spec='$libname$release$shared_ext$major'
12326    if test 32 = "$HPUX_IA64_MODE"; then
12327      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12328      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12329    else
12330      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12331      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12332    fi
12333    ;;
12334  hppa*64*)
12335    shrext_cmds='.sl'
12336    hardcode_into_libs=yes
12337    dynamic_linker="$host_os dld.sl"
12338    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12339    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12340    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341    soname_spec='$libname$release$shared_ext$major'
12342    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12343    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12344    ;;
12345  *)
12346    shrext_cmds='.sl'
12347    dynamic_linker="$host_os dld.sl"
12348    shlibpath_var=SHLIB_PATH
12349    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12350    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12351    soname_spec='$libname$release$shared_ext$major'
12352    ;;
12353  esac
12354  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12355  postinstall_cmds='chmod 555 $lib'
12356  # or fails outright, so override atomically:
12357  install_override_mode=555
12358  ;;
12359
12360interix[3-9]*)
12361  version_type=linux # correct to gnu/linux during the next big refactor
12362  need_lib_prefix=no
12363  need_version=no
12364  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12365  soname_spec='$libname$release$shared_ext$major'
12366  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12367  shlibpath_var=LD_LIBRARY_PATH
12368  shlibpath_overrides_runpath=no
12369  hardcode_into_libs=yes
12370  ;;
12371
12372irix5* | irix6* | nonstopux*)
12373  case $host_os in
12374    nonstopux*) version_type=nonstopux ;;
12375    *)
12376	if test yes = "$lt_cv_prog_gnu_ld"; then
12377		version_type=linux # correct to gnu/linux during the next big refactor
12378	else
12379		version_type=irix
12380	fi ;;
12381  esac
12382  need_lib_prefix=no
12383  need_version=no
12384  soname_spec='$libname$release$shared_ext$major'
12385  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12386  case $host_os in
12387  irix5* | nonstopux*)
12388    libsuff= shlibsuff=
12389    ;;
12390  *)
12391    case $LD in # libtool.m4 will add one of these switches to LD
12392    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12393      libsuff= shlibsuff= libmagic=32-bit;;
12394    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12395      libsuff=32 shlibsuff=N32 libmagic=N32;;
12396    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12397      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12398    *) libsuff= shlibsuff= libmagic=never-match;;
12399    esac
12400    ;;
12401  esac
12402  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12403  shlibpath_overrides_runpath=no
12404  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12405  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12406  hardcode_into_libs=yes
12407  ;;
12408
12409# No shared lib support for Linux oldld, aout, or coff.
12410linux*oldld* | linux*aout* | linux*coff*)
12411  dynamic_linker=no
12412  ;;
12413
12414linux*android*)
12415  version_type=none # Android doesn't support versioned libraries.
12416  need_lib_prefix=no
12417  need_version=no
12418  library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12419  soname_spec='$libname$release$shared_ext'
12420  finish_cmds=
12421  shlibpath_var=LD_LIBRARY_PATH
12422  shlibpath_overrides_runpath=yes
12423
12424  # This implies no fast_install, which is unacceptable.
12425  # Some rework will be needed to allow for fast_install
12426  # before this can be enabled.
12427  hardcode_into_libs=yes
12428
12429  dynamic_linker='Android linker'
12430  # -rpath works at least for libraries that are not overridden by
12431  # libraries installed in system locations.
12432  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12433  ;;
12434
12435# This must be glibc/ELF.
12436linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12437  version_type=linux # correct to gnu/linux during the next big refactor
12438  need_lib_prefix=no
12439  need_version=no
12440  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12441  soname_spec='$libname$release$shared_ext$major'
12442  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12443  shlibpath_var=LD_LIBRARY_PATH
12444  shlibpath_overrides_runpath=no
12445
12446  # Some binutils ld are patched to set DT_RUNPATH
12447  if test ${lt_cv_shlibpath_overrides_runpath+y}
12448then :
12449  printf %s "(cached) " >&6
12450else case e in #(
12451  e) lt_cv_shlibpath_overrides_runpath=no
12452    save_LDFLAGS=$LDFLAGS
12453    save_libdir=$libdir
12454    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12455	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457/* end confdefs.h.  */
12458
12459int
12460main (void)
12461{
12462
12463  ;
12464  return 0;
12465}
12466_ACEOF
12467if ac_fn_c_try_link "$LINENO"
12468then :
12469  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12470then :
12471  lt_cv_shlibpath_overrides_runpath=yes
12472fi
12473fi
12474rm -f core conftest.err conftest.$ac_objext conftest.beam \
12475    conftest$ac_exeext conftest.$ac_ext
12476    LDFLAGS=$save_LDFLAGS
12477    libdir=$save_libdir
12478     ;;
12479esac
12480fi
12481
12482  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12483
12484  # This implies no fast_install, which is unacceptable.
12485  # Some rework will be needed to allow for fast_install
12486  # before this can be enabled.
12487  hardcode_into_libs=yes
12488
12489  # Ideally, we could use ldconfig to report *all* directories which are
12490  # searched for libraries, however this is still not possible.  Aside from not
12491  # being certain /sbin/ldconfig is available, command
12492  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12493  # even though it is searched at run-time.  Try to do the best guess by
12494  # appending ld.so.conf contents (and includes) to the search path.
12495  if test -f /etc/ld.so.conf; then
12496    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' ' '`
12497    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12498  fi
12499
12500  # We used to test for /lib/ld.so.1 and disable shared libraries on
12501  # powerpc, because MkLinux only supported shared libraries with the
12502  # GNU dynamic linker.  Since this was broken with cross compilers,
12503  # most powerpc-linux boxes support dynamic linking these days and
12504  # people can always --disable-shared, the test was removed, and we
12505  # assume the GNU/Linux dynamic linker is in use.
12506  dynamic_linker='GNU/Linux ld.so'
12507  ;;
12508
12509netbsdelf*-gnu)
12510  version_type=linux
12511  need_lib_prefix=no
12512  need_version=no
12513  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12514  soname_spec='$libname$release$shared_ext$major'
12515  shlibpath_var=LD_LIBRARY_PATH
12516  shlibpath_overrides_runpath=no
12517  hardcode_into_libs=yes
12518  dynamic_linker='NetBSD ld.elf_so'
12519  ;;
12520
12521netbsd*)
12522  version_type=sunos
12523  need_lib_prefix=no
12524  need_version=no
12525  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12526    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12527    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12528    dynamic_linker='NetBSD (a.out) ld.so'
12529  else
12530    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12531    soname_spec='$libname$release$shared_ext$major'
12532    dynamic_linker='NetBSD ld.elf_so'
12533  fi
12534  shlibpath_var=LD_LIBRARY_PATH
12535  shlibpath_overrides_runpath=yes
12536  hardcode_into_libs=yes
12537  ;;
12538
12539*-mlibc)
12540  version_type=linux # correct to gnu/linux during the next big refactor
12541  need_lib_prefix=no
12542  need_version=no
12543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12544  soname_spec='$libname$release$shared_ext$major'
12545  dynamic_linker='mlibc ld.so'
12546  shlibpath_var=LD_LIBRARY_PATH
12547  shlibpath_overrides_runpath=no
12548  hardcode_into_libs=yes
12549  ;;
12550
12551newsos6)
12552  version_type=linux # correct to gnu/linux during the next big refactor
12553  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12554  shlibpath_var=LD_LIBRARY_PATH
12555  shlibpath_overrides_runpath=yes
12556  ;;
12557
12558*nto* | *qnx*)
12559  version_type=qnx
12560  need_lib_prefix=no
12561  need_version=no
12562  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12563  soname_spec='$libname$release$shared_ext$major'
12564  shlibpath_var=LD_LIBRARY_PATH
12565  shlibpath_overrides_runpath=no
12566  hardcode_into_libs=yes
12567  dynamic_linker='ldqnx.so'
12568  ;;
12569
12570openbsd*)
12571  version_type=sunos
12572  sys_lib_dlsearch_path_spec=/usr/lib
12573  need_lib_prefix=no
12574  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12575    need_version=no
12576  else
12577    need_version=yes
12578  fi
12579  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12580  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12581  shlibpath_var=LD_LIBRARY_PATH
12582  shlibpath_overrides_runpath=yes
12583  ;;
12584
12585os2*)
12586  libname_spec='$name'
12587  version_type=windows
12588  shrext_cmds=.dll
12589  need_version=no
12590  need_lib_prefix=no
12591  # OS/2 can only load a DLL with a base name of 8 characters or less.
12592  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12593    v=$($ECHO $release$versuffix | tr -d .-);
12594    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12595    $ECHO $n$v`$shared_ext'
12596  library_names_spec='${libname}_dll.$libext'
12597  dynamic_linker='OS/2 ld.exe'
12598  shlibpath_var=BEGINLIBPATH
12599  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12600  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12601  postinstall_cmds='base_file=`basename \$file`~
12602    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12603    dldir=$destdir/`dirname \$dlpath`~
12604    test -d \$dldir || mkdir -p \$dldir~
12605    $install_prog $dir/$dlname \$dldir/$dlname~
12606    chmod a+x \$dldir/$dlname~
12607    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12608      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12609    fi'
12610  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12611    dlpath=$dir/\$dldll~
12612    $RM \$dlpath'
12613  ;;
12614
12615osf3* | osf4* | osf5*)
12616  version_type=osf
12617  need_lib_prefix=no
12618  need_version=no
12619  soname_spec='$libname$release$shared_ext$major'
12620  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12621  shlibpath_var=LD_LIBRARY_PATH
12622  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12623  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12624  ;;
12625
12626rdos*)
12627  dynamic_linker=no
12628  ;;
12629
12630serenity*)
12631  version_type=linux # correct to gnu/linux during the next big refactor
12632  need_lib_prefix=no
12633  need_version=no
12634  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12635  soname_spec='$libname$release$shared_ext$major'
12636  shlibpath_var=LD_LIBRARY_PATH
12637  shlibpath_overrides_runpath=no
12638  dynamic_linker='SerenityOS LibELF'
12639  ;;
12640
12641solaris*)
12642  version_type=linux # correct to gnu/linux during the next big refactor
12643  need_lib_prefix=no
12644  need_version=no
12645  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12646  soname_spec='$libname$release$shared_ext$major'
12647  shlibpath_var=LD_LIBRARY_PATH
12648  shlibpath_overrides_runpath=yes
12649  hardcode_into_libs=yes
12650  # ldd complains unless libraries are executable
12651  postinstall_cmds='chmod +x $lib'
12652  ;;
12653
12654sunos4*)
12655  version_type=sunos
12656  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12657  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12658  shlibpath_var=LD_LIBRARY_PATH
12659  shlibpath_overrides_runpath=yes
12660  if test yes = "$with_gnu_ld"; then
12661    need_lib_prefix=no
12662  fi
12663  need_version=yes
12664  ;;
12665
12666sysv4 | sysv4.3*)
12667  version_type=linux # correct to gnu/linux during the next big refactor
12668  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12669  soname_spec='$libname$release$shared_ext$major'
12670  shlibpath_var=LD_LIBRARY_PATH
12671  case $host_vendor in
12672    sni)
12673      shlibpath_overrides_runpath=no
12674      need_lib_prefix=no
12675      runpath_var=LD_RUN_PATH
12676      ;;
12677    siemens)
12678      need_lib_prefix=no
12679      ;;
12680    motorola)
12681      need_lib_prefix=no
12682      need_version=no
12683      shlibpath_overrides_runpath=no
12684      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12685      ;;
12686  esac
12687  ;;
12688
12689sysv4*MP*)
12690  if test -d /usr/nec; then
12691    version_type=linux # correct to gnu/linux during the next big refactor
12692    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12693    soname_spec='$libname$shared_ext.$major'
12694    shlibpath_var=LD_LIBRARY_PATH
12695  fi
12696  ;;
12697
12698sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12699  version_type=sco
12700  need_lib_prefix=no
12701  need_version=no
12702  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12703  soname_spec='$libname$release$shared_ext$major'
12704  shlibpath_var=LD_LIBRARY_PATH
12705  shlibpath_overrides_runpath=yes
12706  hardcode_into_libs=yes
12707  if test yes = "$with_gnu_ld"; then
12708    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12709  else
12710    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12711    case $host_os in
12712      sco3.2v5*)
12713        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12714	;;
12715    esac
12716  fi
12717  sys_lib_dlsearch_path_spec='/usr/lib'
12718  ;;
12719
12720tpf*)
12721  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12722  version_type=linux # correct to gnu/linux during the next big refactor
12723  need_lib_prefix=no
12724  need_version=no
12725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12726  shlibpath_var=LD_LIBRARY_PATH
12727  shlibpath_overrides_runpath=no
12728  hardcode_into_libs=yes
12729  ;;
12730
12731uts4*)
12732  version_type=linux # correct to gnu/linux during the next big refactor
12733  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12734  soname_spec='$libname$release$shared_ext$major'
12735  shlibpath_var=LD_LIBRARY_PATH
12736  ;;
12737
12738emscripten*)
12739  version_type=none
12740  need_lib_prefix=no
12741  need_version=no
12742  library_names_spec='$libname$release$shared_ext'
12743  soname_spec='$libname$release$shared_ext'
12744  finish_cmds=
12745  dynamic_linker="Emscripten linker"
12746  lt_prog_compiler_wl=
12747lt_prog_compiler_pic=
12748lt_prog_compiler_static=
12749
12750
12751  if test yes = "$GCC"; then
12752    lt_prog_compiler_wl='-Wl,'
12753    lt_prog_compiler_static='-static'
12754
12755    case $host_os in
12756      aix*)
12757      # All AIX code is PIC.
12758      if test ia64 = "$host_cpu"; then
12759	# AIX 5 now supports IA64 processor
12760	lt_prog_compiler_static='-Bstatic'
12761      fi
12762      lt_prog_compiler_pic='-fPIC'
12763      ;;
12764
12765    amigaos*)
12766      case $host_cpu in
12767      powerpc)
12768            # see comment about AmigaOS4 .so support
12769            lt_prog_compiler_pic='-fPIC'
12770        ;;
12771      m68k)
12772            # FIXME: we need at least 68020 code to build shared libraries, but
12773            # adding the '-m68020' flag to GCC prevents building anything better,
12774            # like '-m68040'.
12775            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12776        ;;
12777      esac
12778      ;;
12779
12780    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12781      # PIC is the default for these OSes.
12782      ;;
12783
12784    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12785      # This hack is so that the source file can tell whether it is being
12786      # built for inclusion in a dll (and should export symbols for example).
12787      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12788      # (--disable-auto-import) libraries
12789      lt_prog_compiler_pic='-DDLL_EXPORT'
12790      case $host_os in
12791      os2*)
12792	lt_prog_compiler_static='$wl-static'
12793	;;
12794      esac
12795      ;;
12796
12797    darwin* | rhapsody*)
12798      # PIC is the default on this platform
12799      # Common symbols not allowed in MH_DYLIB files
12800      lt_prog_compiler_pic='-fno-common'
12801      ;;
12802
12803    haiku*)
12804      # PIC is the default for Haiku.
12805      # The "-static" flag exists, but is broken.
12806      lt_prog_compiler_static=
12807      ;;
12808
12809    hpux*)
12810      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12811      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12812      # sets the default TLS model and affects inlining.
12813      case $host_cpu in
12814      hppa*64*)
12815	# +Z the default
12816	;;
12817      *)
12818	lt_prog_compiler_pic='-fPIC'
12819	;;
12820      esac
12821      ;;
12822
12823    interix[3-9]*)
12824      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12825      # Instead, we relocate shared libraries at runtime.
12826      ;;
12827
12828    msdosdjgpp*)
12829      # Just because we use GCC doesn't mean we suddenly get shared libraries
12830      # on systems that don't support them.
12831      lt_prog_compiler_can_build_shared=no
12832      enable_shared=no
12833      ;;
12834
12835    *nto* | *qnx*)
12836      # QNX uses GNU C++, but need to define -shared option too, otherwise
12837      # it will coredump.
12838      lt_prog_compiler_pic='-fPIC -shared'
12839      ;;
12840
12841    sysv4*MP*)
12842      if test -d /usr/nec; then
12843	lt_prog_compiler_pic=-Kconform_pic
12844      fi
12845      ;;
12846
12847    *)
12848      lt_prog_compiler_pic='-fPIC'
12849      ;;
12850    esac
12851
12852    case $cc_basename in
12853    nvcc*) # Cuda Compiler Driver 2.2
12854      lt_prog_compiler_wl='-Xlinker '
12855      if test -n "$lt_prog_compiler_pic"; then
12856        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12857      fi
12858      ;;
12859    esac
12860  else
12861    # PORTME Check for flag to pass linker flags through the system compiler.
12862    case $host_os in
12863    aix*)
12864      lt_prog_compiler_wl='-Wl,'
12865      if test ia64 = "$host_cpu"; then
12866	# AIX 5 now supports IA64 processor
12867	lt_prog_compiler_static='-Bstatic'
12868      else
12869	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12870      fi
12871      ;;
12872
12873    darwin* | rhapsody*)
12874      # PIC is the default on this platform
12875      # Common symbols not allowed in MH_DYLIB files
12876      lt_prog_compiler_pic='-fno-common'
12877      case $cc_basename in
12878      nagfor*)
12879        # NAG Fortran compiler
12880        lt_prog_compiler_wl='-Wl,-Wl,,'
12881        lt_prog_compiler_pic='-PIC'
12882        lt_prog_compiler_static='-Bstatic'
12883        ;;
12884      esac
12885      ;;
12886
12887    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12888      # This hack is so that the source file can tell whether it is being
12889      # built for inclusion in a dll (and should export symbols for example).
12890      lt_prog_compiler_pic='-DDLL_EXPORT'
12891      case $host_os in
12892      os2*)
12893	lt_prog_compiler_static='$wl-static'
12894	;;
12895      esac
12896      ;;
12897
12898    hpux9* | hpux10* | hpux11*)
12899      lt_prog_compiler_wl='-Wl,'
12900      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12901      # not for PA HP-UX.
12902      case $host_cpu in
12903      hppa*64*|ia64*)
12904	# +Z the default
12905	;;
12906      *)
12907	lt_prog_compiler_pic='+Z'
12908	;;
12909      esac
12910      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12911      lt_prog_compiler_static='$wl-a ${wl}archive'
12912      ;;
12913
12914    irix5* | irix6* | nonstopux*)
12915      lt_prog_compiler_wl='-Wl,'
12916      # PIC (with -KPIC) is the default.
12917      lt_prog_compiler_static='-non_shared'
12918      ;;
12919
12920    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12921      case $cc_basename in
12922      # old Intel for x86_64, which still supported -KPIC.
12923      ecc*)
12924	lt_prog_compiler_wl='-Wl,'
12925	lt_prog_compiler_pic='-KPIC'
12926	lt_prog_compiler_static='-static'
12927        ;;
12928      *flang* | ftn | f18* | f95*)
12929        # Flang compiler.
12930	lt_prog_compiler_wl='-Wl,'
12931	lt_prog_compiler_pic='-fPIC'
12932	lt_prog_compiler_static='-static'
12933        ;;
12934      # icc used to be incompatible with GCC.
12935      # ICC 10 doesn't accept -KPIC any more.
12936      icc* | ifort*)
12937	lt_prog_compiler_wl='-Wl,'
12938	lt_prog_compiler_pic='-fPIC'
12939	lt_prog_compiler_static='-static'
12940        ;;
12941      # Lahey Fortran 8.1.
12942      lf95*)
12943	lt_prog_compiler_wl='-Wl,'
12944	lt_prog_compiler_pic='--shared'
12945	lt_prog_compiler_static='--static'
12946	;;
12947      nagfor*)
12948	# NAG Fortran compiler
12949	lt_prog_compiler_wl='-Wl,-Wl,,'
12950	lt_prog_compiler_pic='-PIC'
12951	lt_prog_compiler_static='-Bstatic'
12952	;;
12953      tcc*)
12954	# Fabrice Bellard et al's Tiny C Compiler
12955	lt_prog_compiler_wl='-Wl,'
12956	lt_prog_compiler_pic='-fPIC'
12957	lt_prog_compiler_static='-static'
12958	;;
12959      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12960        # Portland Group compilers (*not* the Pentium gcc compiler,
12961	# which looks to be a dead project)
12962	lt_prog_compiler_wl='-Wl,'
12963	lt_prog_compiler_pic='-fpic'
12964	lt_prog_compiler_static='-Bstatic'
12965        ;;
12966      ccc*)
12967        lt_prog_compiler_wl='-Wl,'
12968        # All Alpha code is PIC.
12969        lt_prog_compiler_static='-non_shared'
12970        ;;
12971      xl* | bgxl* | bgf* | mpixl*)
12972	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12973	lt_prog_compiler_wl='-Wl,'
12974	lt_prog_compiler_pic='-qpic'
12975	lt_prog_compiler_static='-qstaticlink'
12976	;;
12977      *)
12978	case `$CC -V 2>&1 | $SED 5q` in
12979	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12980	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12981	  lt_prog_compiler_pic='-KPIC'
12982	  lt_prog_compiler_static='-Bstatic'
12983	  lt_prog_compiler_wl=''
12984	  ;;
12985	*Sun\ F* | *Sun*Fortran*)
12986	  lt_prog_compiler_pic='-KPIC'
12987	  lt_prog_compiler_static='-Bstatic'
12988	  lt_prog_compiler_wl='-Qoption ld '
12989	  ;;
12990	*Sun\ C*)
12991	  # Sun C 5.9
12992	  lt_prog_compiler_pic='-KPIC'
12993	  lt_prog_compiler_static='-Bstatic'
12994	  lt_prog_compiler_wl='-Wl,'
12995	  ;;
12996        *Intel*\ [CF]*Compiler*)
12997	  lt_prog_compiler_wl='-Wl,'
12998	  lt_prog_compiler_pic='-fPIC'
12999	  lt_prog_compiler_static='-static'
13000	  ;;
13001	*Portland\ Group*)
13002	  lt_prog_compiler_wl='-Wl,'
13003	  lt_prog_compiler_pic='-fpic'
13004	  lt_prog_compiler_static='-Bstatic'
13005	  ;;
13006	esac
13007	;;
13008      esac
13009      ;;
13010
13011    newsos6)
13012      lt_prog_compiler_pic='-KPIC'
13013      lt_prog_compiler_static='-Bstatic'
13014      ;;
13015
13016    *-mlibc)
13017      lt_prog_compiler_wl='-Wl,'
13018      lt_prog_compiler_pic='-fPIC'
13019      lt_prog_compiler_static='-static'
13020      ;;
13021
13022    *nto* | *qnx*)
13023      # QNX uses GNU C++, but need to define -shared option too, otherwise
13024      # it will coredump.
13025      lt_prog_compiler_pic='-fPIC -shared'
13026      ;;
13027
13028    osf3* | osf4* | osf5*)
13029      lt_prog_compiler_wl='-Wl,'
13030      # All OSF/1 code is PIC.
13031      lt_prog_compiler_static='-non_shared'
13032      ;;
13033
13034    rdos*)
13035      lt_prog_compiler_static='-non_shared'
13036      ;;
13037
13038    serenity*)
13039      ;;
13040
13041    solaris*)
13042      lt_prog_compiler_pic='-KPIC'
13043      lt_prog_compiler_static='-Bstatic'
13044      case $cc_basename in
13045      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13046	lt_prog_compiler_wl='-Qoption ld ';;
13047      *)
13048	lt_prog_compiler_wl='-Wl,';;
13049      esac
13050      ;;
13051
13052    sunos4*)
13053      lt_prog_compiler_wl='-Qoption ld '
13054      lt_prog_compiler_pic='-PIC'
13055      lt_prog_compiler_static='-Bstatic'
13056      ;;
13057
13058    sysv4 | sysv4.2uw2* | sysv4.3*)
13059      lt_prog_compiler_wl='-Wl,'
13060      lt_prog_compiler_pic='-KPIC'
13061      lt_prog_compiler_static='-Bstatic'
13062      ;;
13063
13064    sysv4*MP*)
13065      if test -d /usr/nec; then
13066	lt_prog_compiler_pic='-Kconform_pic'
13067	lt_prog_compiler_static='-Bstatic'
13068      fi
13069      ;;
13070
13071    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13072      lt_prog_compiler_wl='-Wl,'
13073      lt_prog_compiler_pic='-KPIC'
13074      lt_prog_compiler_static='-Bstatic'
13075      ;;
13076
13077    unicos*)
13078      lt_prog_compiler_wl='-Wl,'
13079      lt_prog_compiler_can_build_shared=no
13080      ;;
13081
13082    uts4*)
13083      lt_prog_compiler_pic='-pic'
13084      lt_prog_compiler_static='-Bstatic'
13085      ;;
13086
13087    *)
13088      lt_prog_compiler_can_build_shared=no
13089      ;;
13090    esac
13091  fi
13092
13093case $host_os in
13094  # For platforms that do not support PIC, -DPIC is meaningless:
13095  *djgpp*)
13096    lt_prog_compiler_pic=
13097    ;;
13098  *)
13099    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13100    ;;
13101esac
13102
13103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13104printf %s "checking for $compiler option to produce PIC... " >&6; }
13105if test ${lt_cv_prog_compiler_pic+y}
13106then :
13107  printf %s "(cached) " >&6
13108else case e in #(
13109  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13110esac
13111fi
13112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13113printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13114lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13115
13116#
13117# Check to make sure the PIC flag actually works.
13118#
13119if test -n "$lt_prog_compiler_pic"; then
13120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13121printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13122if test ${lt_cv_prog_compiler_pic_works+y}
13123then :
13124  printf %s "(cached) " >&6
13125else case e in #(
13126  e) lt_cv_prog_compiler_pic_works=no
13127   ac_outfile=conftest.$ac_objext
13128   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13129   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13130   # Insert the option either (1) after the last *FLAGS variable, or
13131   # (2) before a word containing "conftest.", or (3) at the end.
13132   # Note that $ac_compile itself does not contain backslashes and begins
13133   # with a dollar sign (not a hyphen), so the echo should work correctly.
13134   # The option is referenced via a variable to avoid confusing sed.
13135   lt_compile=`echo "$ac_compile" | $SED \
13136   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13138   -e 's:$: $lt_compiler_flag:'`
13139   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13140   (eval "$lt_compile" 2>conftest.err)
13141   ac_status=$?
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   if (exit $ac_status) && test -s "$ac_outfile"; then
13145     # The compiler can only warn and ignore the option if not recognized
13146     # So say no if there are warnings other than the usual output.
13147     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13148     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13149     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13150       lt_cv_prog_compiler_pic_works=yes
13151     fi
13152   fi
13153   $RM conftest*
13154 ;;
13155esac
13156fi
13157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13158printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13159
13160if test yes = "$lt_cv_prog_compiler_pic_works"; then
13161    case $lt_prog_compiler_pic in
13162     "" | " "*) ;;
13163     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13164     esac
13165else
13166    lt_prog_compiler_pic=
13167     lt_prog_compiler_can_build_shared=no
13168fi
13169
13170fi
13171
13172
13173
13174
13175
13176#
13177# Check to make sure the static flag actually works.
13178#
13179wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13181printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13182if test ${lt_cv_prog_compiler_static_works+y}
13183then :
13184  printf %s "(cached) " >&6
13185else case e in #(
13186  e) lt_cv_prog_compiler_static_works=no
13187   save_LDFLAGS=$LDFLAGS
13188   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13189   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13190   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13191     # The linker can only warn and ignore the option if not recognized
13192     # So say no if there are warnings
13193     if test -s conftest.err; then
13194       # Append any errors to the config.log.
13195       cat conftest.err 1>&5
13196       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13197       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13198       if diff conftest.exp conftest.er2 >/dev/null; then
13199         lt_cv_prog_compiler_static_works=yes
13200       fi
13201     else
13202       lt_cv_prog_compiler_static_works=yes
13203     fi
13204   fi
13205   $RM -r conftest*
13206   LDFLAGS=$save_LDFLAGS
13207 ;;
13208esac
13209fi
13210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13211printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13212
13213if test yes = "$lt_cv_prog_compiler_static_works"; then
13214    :
13215else
13216    lt_prog_compiler_static=
13217fi
13218
13219
13220
13221='-fPIC'
13222  archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13223  archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13224  archive_cmds_need_lc=no
13225  no_undefined_flag=
13226  ;;
13227
13228*)
13229  dynamic_linker=no
13230  ;;
13231esac
13232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13233printf "%s\n" "$dynamic_linker" >&6; }
13234test no = "$dynamic_linker" && can_build_shared=no
13235
13236variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13237if test yes = "$GCC"; then
13238  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13239fi
13240
13241if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13242  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13243fi
13244
13245if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13246  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13247fi
13248
13249# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13250configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13251
13252# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13253func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13254
13255# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13256configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13355printf %s "checking how to hardcode library paths into programs... " >&6; }
13356hardcode_action=
13357if test -n "$hardcode_libdir_flag_spec" ||
13358   test -n "$runpath_var" ||
13359   test yes = "$hardcode_automatic"; then
13360
13361  # We can hardcode non-existent directories.
13362  if test no != "$hardcode_direct" &&
13363     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13364     # have to relink, otherwise we might link with an installed library
13365     # when we should be linking with a yet-to-be-installed one
13366     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13367     test no != "$hardcode_minus_L"; then
13368    # Linking always hardcodes the temporary library directory.
13369    hardcode_action=relink
13370  else
13371    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13372    hardcode_action=immediate
13373  fi
13374else
13375  # We cannot hardcode anything, or else we can only hardcode existing
13376  # directories.
13377  hardcode_action=unsupported
13378fi
13379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13380printf "%s\n" "$hardcode_action" >&6; }
13381
13382if test relink = "$hardcode_action" ||
13383   test yes = "$inherit_rpath"; then
13384  # Fast installation is not supported
13385  enable_fast_install=no
13386elif test yes = "$shlibpath_overrides_runpath" ||
13387     test no = "$enable_shared"; then
13388  # Fast installation is not necessary
13389  enable_fast_install=needless
13390fi
13391
13392
13393
13394
13395
13396
13397  if test yes != "$enable_dlopen"; then
13398  enable_dlopen=unknown
13399  enable_dlopen_self=unknown
13400  enable_dlopen_self_static=unknown
13401else
13402  lt_cv_dlopen=no
13403  lt_cv_dlopen_libs=
13404
13405  case $host_os in
13406  beos*)
13407    lt_cv_dlopen=load_add_on
13408    lt_cv_dlopen_libs=
13409    lt_cv_dlopen_self=yes
13410    ;;
13411
13412  mingw* | windows* | pw32* | cegcc*)
13413    lt_cv_dlopen=LoadLibrary
13414    lt_cv_dlopen_libs=
13415    ;;
13416
13417  cygwin*)
13418    lt_cv_dlopen=dlopen
13419    lt_cv_dlopen_libs=
13420    ;;
13421
13422  darwin*)
13423    # if libdl is installed we need to link against it
13424    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13425printf %s "checking for dlopen in -ldl... " >&6; }
13426if test ${ac_cv_lib_dl_dlopen+y}
13427then :
13428  printf %s "(cached) " >&6
13429else case e in #(
13430  e) ac_check_lib_save_LIBS=$LIBS
13431LIBS="-ldl  $LIBS"
13432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433/* end confdefs.h.  */
13434
13435/* Override any GCC internal prototype to avoid an error.
13436   Use char because int might match the return type of a GCC
13437   builtin and then its argument prototype would still apply.
13438   The 'extern "C"' is for builds by C++ compilers;
13439   although this is not generally supported in C code supporting it here
13440   has little cost and some practical benefit (sr 110532).  */
13441#ifdef __cplusplus
13442extern "C"
13443#endif
13444char dlopen (void);
13445int
13446main (void)
13447{
13448return dlopen ();
13449  ;
13450  return 0;
13451}
13452_ACEOF
13453if ac_fn_c_try_link "$LINENO"
13454then :
13455  ac_cv_lib_dl_dlopen=yes
13456else case e in #(
13457  e) ac_cv_lib_dl_dlopen=no ;;
13458esac
13459fi
13460rm -f core conftest.err conftest.$ac_objext conftest.beam \
13461    conftest$ac_exeext conftest.$ac_ext
13462LIBS=$ac_check_lib_save_LIBS ;;
13463esac
13464fi
13465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13466printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13467if test "x$ac_cv_lib_dl_dlopen" = xyes
13468then :
13469  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13470else case e in #(
13471  e)
13472    lt_cv_dlopen=dyld
13473    lt_cv_dlopen_libs=
13474    lt_cv_dlopen_self=yes
13475     ;;
13476esac
13477fi
13478
13479    ;;
13480
13481  tpf*)
13482    # Don't try to run any link tests for TPF.  We know it's impossible
13483    # because TPF is a cross-compiler, and we know how we open DSOs.
13484    lt_cv_dlopen=dlopen
13485    lt_cv_dlopen_libs=
13486    lt_cv_dlopen_self=no
13487    ;;
13488
13489  *)
13490    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13491if test "x$ac_cv_func_shl_load" = xyes
13492then :
13493  lt_cv_dlopen=shl_load
13494else case e in #(
13495  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13496printf %s "checking for shl_load in -ldld... " >&6; }
13497if test ${ac_cv_lib_dld_shl_load+y}
13498then :
13499  printf %s "(cached) " >&6
13500else case e in #(
13501  e) ac_check_lib_save_LIBS=$LIBS
13502LIBS="-ldld  $LIBS"
13503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h.  */
13505
13506/* Override any GCC internal prototype to avoid an error.
13507   Use char because int might match the return type of a GCC
13508   builtin and then its argument prototype would still apply.
13509   The 'extern "C"' is for builds by C++ compilers;
13510   although this is not generally supported in C code supporting it here
13511   has little cost and some practical benefit (sr 110532).  */
13512#ifdef __cplusplus
13513extern "C"
13514#endif
13515char shl_load (void);
13516int
13517main (void)
13518{
13519return shl_load ();
13520  ;
13521  return 0;
13522}
13523_ACEOF
13524if ac_fn_c_try_link "$LINENO"
13525then :
13526  ac_cv_lib_dld_shl_load=yes
13527else case e in #(
13528  e) ac_cv_lib_dld_shl_load=no ;;
13529esac
13530fi
13531rm -f core conftest.err conftest.$ac_objext conftest.beam \
13532    conftest$ac_exeext conftest.$ac_ext
13533LIBS=$ac_check_lib_save_LIBS ;;
13534esac
13535fi
13536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13537printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13538if test "x$ac_cv_lib_dld_shl_load" = xyes
13539then :
13540  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13541else case e in #(
13542  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13543if test "x$ac_cv_func_dlopen" = xyes
13544then :
13545  lt_cv_dlopen=dlopen
13546else case e in #(
13547  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13548printf %s "checking for dlopen in -ldl... " >&6; }
13549if test ${ac_cv_lib_dl_dlopen+y}
13550then :
13551  printf %s "(cached) " >&6
13552else case e in #(
13553  e) ac_check_lib_save_LIBS=$LIBS
13554LIBS="-ldl  $LIBS"
13555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h.  */
13557
13558/* Override any GCC internal prototype to avoid an error.
13559   Use char because int might match the return type of a GCC
13560   builtin and then its argument prototype would still apply.
13561   The 'extern "C"' is for builds by C++ compilers;
13562   although this is not generally supported in C code supporting it here
13563   has little cost and some practical benefit (sr 110532).  */
13564#ifdef __cplusplus
13565extern "C"
13566#endif
13567char dlopen (void);
13568int
13569main (void)
13570{
13571return dlopen ();
13572  ;
13573  return 0;
13574}
13575_ACEOF
13576if ac_fn_c_try_link "$LINENO"
13577then :
13578  ac_cv_lib_dl_dlopen=yes
13579else case e in #(
13580  e) ac_cv_lib_dl_dlopen=no ;;
13581esac
13582fi
13583rm -f core conftest.err conftest.$ac_objext conftest.beam \
13584    conftest$ac_exeext conftest.$ac_ext
13585LIBS=$ac_check_lib_save_LIBS ;;
13586esac
13587fi
13588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13589printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13590if test "x$ac_cv_lib_dl_dlopen" = xyes
13591then :
13592  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13593else case e in #(
13594  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13595printf %s "checking for dlopen in -lsvld... " >&6; }
13596if test ${ac_cv_lib_svld_dlopen+y}
13597then :
13598  printf %s "(cached) " >&6
13599else case e in #(
13600  e) ac_check_lib_save_LIBS=$LIBS
13601LIBS="-lsvld  $LIBS"
13602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603/* end confdefs.h.  */
13604
13605/* Override any GCC internal prototype to avoid an error.
13606   Use char because int might match the return type of a GCC
13607   builtin and then its argument prototype would still apply.
13608   The 'extern "C"' is for builds by C++ compilers;
13609   although this is not generally supported in C code supporting it here
13610   has little cost and some practical benefit (sr 110532).  */
13611#ifdef __cplusplus
13612extern "C"
13613#endif
13614char dlopen (void);
13615int
13616main (void)
13617{
13618return dlopen ();
13619  ;
13620  return 0;
13621}
13622_ACEOF
13623if ac_fn_c_try_link "$LINENO"
13624then :
13625  ac_cv_lib_svld_dlopen=yes
13626else case e in #(
13627  e) ac_cv_lib_svld_dlopen=no ;;
13628esac
13629fi
13630rm -f core conftest.err conftest.$ac_objext conftest.beam \
13631    conftest$ac_exeext conftest.$ac_ext
13632LIBS=$ac_check_lib_save_LIBS ;;
13633esac
13634fi
13635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13636printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13637if test "x$ac_cv_lib_svld_dlopen" = xyes
13638then :
13639  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13640else case e in #(
13641  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13642printf %s "checking for dld_link in -ldld... " >&6; }
13643if test ${ac_cv_lib_dld_dld_link+y}
13644then :
13645  printf %s "(cached) " >&6
13646else case e in #(
13647  e) ac_check_lib_save_LIBS=$LIBS
13648LIBS="-ldld  $LIBS"
13649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650/* end confdefs.h.  */
13651
13652/* Override any GCC internal prototype to avoid an error.
13653   Use char because int might match the return type of a GCC
13654   builtin and then its argument prototype would still apply.
13655   The 'extern "C"' is for builds by C++ compilers;
13656   although this is not generally supported in C code supporting it here
13657   has little cost and some practical benefit (sr 110532).  */
13658#ifdef __cplusplus
13659extern "C"
13660#endif
13661char dld_link (void);
13662int
13663main (void)
13664{
13665return dld_link ();
13666  ;
13667  return 0;
13668}
13669_ACEOF
13670if ac_fn_c_try_link "$LINENO"
13671then :
13672  ac_cv_lib_dld_dld_link=yes
13673else case e in #(
13674  e) ac_cv_lib_dld_dld_link=no ;;
13675esac
13676fi
13677rm -f core conftest.err conftest.$ac_objext conftest.beam \
13678    conftest$ac_exeext conftest.$ac_ext
13679LIBS=$ac_check_lib_save_LIBS ;;
13680esac
13681fi
13682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13683printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13684if test "x$ac_cv_lib_dld_dld_link" = xyes
13685then :
13686  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13687fi
13688
13689	       ;;
13690esac
13691fi
13692
13693	     ;;
13694esac
13695fi
13696
13697	   ;;
13698esac
13699fi
13700
13701	 ;;
13702esac
13703fi
13704
13705       ;;
13706esac
13707fi
13708
13709    ;;
13710  esac
13711
13712  if test no = "$lt_cv_dlopen"; then
13713    enable_dlopen=no
13714  else
13715    enable_dlopen=yes
13716  fi
13717
13718  case $lt_cv_dlopen in
13719  dlopen)
13720    save_CPPFLAGS=$CPPFLAGS
13721    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13722
13723    save_LDFLAGS=$LDFLAGS
13724    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13725
13726    save_LIBS=$LIBS
13727    LIBS="$lt_cv_dlopen_libs $LIBS"
13728
13729    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13730printf %s "checking whether a program can dlopen itself... " >&6; }
13731if test ${lt_cv_dlopen_self+y}
13732then :
13733  printf %s "(cached) " >&6
13734else case e in #(
13735  e) 	  if test yes = "$cross_compiling"; then :
13736  lt_cv_dlopen_self=cross
13737else
13738  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13739  lt_status=$lt_dlunknown
13740  cat > conftest.$ac_ext <<_LT_EOF
13741#line $LINENO "configure"
13742#include "confdefs.h"
13743
13744#if HAVE_DLFCN_H
13745#include <dlfcn.h>
13746#endif
13747
13748#include <stdio.h>
13749
13750#ifdef RTLD_GLOBAL
13751#  define LT_DLGLOBAL		RTLD_GLOBAL
13752#else
13753#  ifdef DL_GLOBAL
13754#    define LT_DLGLOBAL		DL_GLOBAL
13755#  else
13756#    define LT_DLGLOBAL		0
13757#  endif
13758#endif
13759
13760/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13761   find out it does not work in some platform. */
13762#ifndef LT_DLLAZY_OR_NOW
13763#  ifdef RTLD_LAZY
13764#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13765#  else
13766#    ifdef DL_LAZY
13767#      define LT_DLLAZY_OR_NOW		DL_LAZY
13768#    else
13769#      ifdef RTLD_NOW
13770#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13771#      else
13772#        ifdef DL_NOW
13773#          define LT_DLLAZY_OR_NOW	DL_NOW
13774#        else
13775#          define LT_DLLAZY_OR_NOW	0
13776#        endif
13777#      endif
13778#    endif
13779#  endif
13780#endif
13781
13782/* When -fvisibility=hidden is used, assume the code has been annotated
13783   correspondingly for the symbols needed.  */
13784#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13785int fnord (void) __attribute__((visibility("default")));
13786#endif
13787
13788int fnord (void) { return 42; }
13789int main (void)
13790{
13791  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13792  int status = $lt_dlunknown;
13793
13794  if (self)
13795    {
13796      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13797      else
13798        {
13799	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13800          else puts (dlerror ());
13801	}
13802      /* dlclose (self); */
13803    }
13804  else
13805    puts (dlerror ());
13806
13807  return status;
13808}
13809_LT_EOF
13810  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13811  (eval $ac_link) 2>&5
13812  ac_status=$?
13813  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13814  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13815    (./conftest; exit; ) >&5 2>/dev/null
13816    lt_status=$?
13817    case x$lt_status in
13818      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13819      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13820      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13821    esac
13822  else :
13823    # compilation failed
13824    lt_cv_dlopen_self=no
13825  fi
13826fi
13827rm -fr conftest*
13828
13829     ;;
13830esac
13831fi
13832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13833printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13834
13835    if test yes = "$lt_cv_dlopen_self"; then
13836      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13837      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13838printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13839if test ${lt_cv_dlopen_self_static+y}
13840then :
13841  printf %s "(cached) " >&6
13842else case e in #(
13843  e) 	  if test yes = "$cross_compiling"; then :
13844  lt_cv_dlopen_self_static=cross
13845else
13846  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13847  lt_status=$lt_dlunknown
13848  cat > conftest.$ac_ext <<_LT_EOF
13849#line $LINENO "configure"
13850#include "confdefs.h"
13851
13852#if HAVE_DLFCN_H
13853#include <dlfcn.h>
13854#endif
13855
13856#include <stdio.h>
13857
13858#ifdef RTLD_GLOBAL
13859#  define LT_DLGLOBAL		RTLD_GLOBAL
13860#else
13861#  ifdef DL_GLOBAL
13862#    define LT_DLGLOBAL		DL_GLOBAL
13863#  else
13864#    define LT_DLGLOBAL		0
13865#  endif
13866#endif
13867
13868/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13869   find out it does not work in some platform. */
13870#ifndef LT_DLLAZY_OR_NOW
13871#  ifdef RTLD_LAZY
13872#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13873#  else
13874#    ifdef DL_LAZY
13875#      define LT_DLLAZY_OR_NOW		DL_LAZY
13876#    else
13877#      ifdef RTLD_NOW
13878#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13879#      else
13880#        ifdef DL_NOW
13881#          define LT_DLLAZY_OR_NOW	DL_NOW
13882#        else
13883#          define LT_DLLAZY_OR_NOW	0
13884#        endif
13885#      endif
13886#    endif
13887#  endif
13888#endif
13889
13890/* When -fvisibility=hidden is used, assume the code has been annotated
13891   correspondingly for the symbols needed.  */
13892#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13893int fnord (void) __attribute__((visibility("default")));
13894#endif
13895
13896int fnord (void) { return 42; }
13897int main (void)
13898{
13899  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13900  int status = $lt_dlunknown;
13901
13902  if (self)
13903    {
13904      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13905      else
13906        {
13907	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13908          else puts (dlerror ());
13909	}
13910      /* dlclose (self); */
13911    }
13912  else
13913    puts (dlerror ());
13914
13915  return status;
13916}
13917_LT_EOF
13918  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13919  (eval $ac_link) 2>&5
13920  ac_status=$?
13921  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13922  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13923    (./conftest; exit; ) >&5 2>/dev/null
13924    lt_status=$?
13925    case x$lt_status in
13926      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13927      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13928      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13929    esac
13930  else :
13931    # compilation failed
13932    lt_cv_dlopen_self_static=no
13933  fi
13934fi
13935rm -fr conftest*
13936
13937       ;;
13938esac
13939fi
13940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13941printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13942    fi
13943
13944    CPPFLAGS=$save_CPPFLAGS
13945    LDFLAGS=$save_LDFLAGS
13946    LIBS=$save_LIBS
13947    ;;
13948  esac
13949
13950  case $lt_cv_dlopen_self in
13951  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13952  *) enable_dlopen_self=unknown ;;
13953  esac
13954
13955  case $lt_cv_dlopen_self_static in
13956  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13957  *) enable_dlopen_self_static=unknown ;;
13958  esac
13959fi
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977striplib=
13978old_striplib=
13979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13980printf %s "checking whether stripping libraries is possible... " >&6; }
13981if test -z "$STRIP"; then
13982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13983printf "%s\n" "no" >&6; }
13984else
13985  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13986    old_striplib="$STRIP --strip-debug"
13987    striplib="$STRIP --strip-unneeded"
13988    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13989printf "%s\n" "yes" >&6; }
13990  else
13991    case $host_os in
13992    darwin*)
13993      # FIXME - insert some real tests, host_os isn't really good enough
13994      striplib="$STRIP -x"
13995      old_striplib="$STRIP -S"
13996      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13997printf "%s\n" "yes" >&6; }
13998      ;;
13999    freebsd*)
14000      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14001        old_striplib="$STRIP --strip-debug"
14002        striplib="$STRIP --strip-unneeded"
14003        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14004printf "%s\n" "yes" >&6; }
14005      else
14006        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007printf "%s\n" "no" >&6; }
14008      fi
14009      ;;
14010    *)
14011      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012printf "%s\n" "no" >&6; }
14013      ;;
14014    esac
14015  fi
14016fi
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029  # Report what library types will actually be built
14030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14031printf %s "checking if libtool supports shared libraries... " >&6; }
14032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14033printf "%s\n" "$can_build_shared" >&6; }
14034
14035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14036printf %s "checking whether to build shared libraries... " >&6; }
14037  test no = "$can_build_shared" && enable_shared=no
14038
14039  # On AIX, shared libraries and static libraries use the same namespace, and
14040  # are all built from PIC.
14041  case $host_os in
14042  aix3*)
14043    test yes = "$enable_shared" && enable_static=no
14044    if test -n "$RANLIB"; then
14045      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14046      postinstall_cmds='$RANLIB $lib'
14047    fi
14048    ;;
14049
14050  aix[4-9]*)
14051    if test ia64 != "$host_cpu"; then
14052      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14053      yes,aix,yes) ;;			# shared object as lib.so file only
14054      yes,svr4,*) ;;			# shared object as lib.so archive member only
14055      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14056      esac
14057    fi
14058    ;;
14059  esac
14060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14061printf "%s\n" "$enable_shared" >&6; }
14062
14063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14064printf %s "checking whether to build static libraries... " >&6; }
14065  # Make sure either enable_shared or enable_static is yes.
14066  test yes = "$enable_shared" || enable_static=yes
14067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14068printf "%s\n" "$enable_static" >&6; }
14069
14070
14071
14072
14073fi
14074ac_ext=c
14075ac_cpp='$CPP $CPPFLAGS'
14076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14078ac_compiler_gnu=$ac_cv_c_compiler_gnu
14079
14080CC=$lt_save_CC
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096        ac_config_commands="$ac_config_commands libtool"
14097
14098
14099
14100
14101# Only expand once:
14102
14103
14104
14105# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14118printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14119if test ${ac_cv_c_undeclared_builtin_options+y}
14120then :
14121  printf %s "(cached) " >&6
14122else case e in #(
14123  e) ac_save_CFLAGS=$CFLAGS
14124   ac_cv_c_undeclared_builtin_options='cannot detect'
14125   for ac_arg in '' -fno-builtin; do
14126     CFLAGS="$ac_save_CFLAGS $ac_arg"
14127     # This test program should *not* compile successfully.
14128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129/* end confdefs.h.  */
14130
14131int
14132main (void)
14133{
14134(void) strchr;
14135  ;
14136  return 0;
14137}
14138_ACEOF
14139if ac_fn_c_try_compile "$LINENO"
14140then :
14141
14142else case e in #(
14143  e) # This test program should compile successfully.
14144        # No library function is consistently available on
14145        # freestanding implementations, so test against a dummy
14146        # declaration.  Include always-available headers on the
14147        # off chance that they somehow elicit warnings.
14148        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149/* end confdefs.h.  */
14150#include <float.h>
14151#include <limits.h>
14152#include <stdarg.h>
14153#include <stddef.h>
14154extern void ac_decl (int, char *);
14155
14156int
14157main (void)
14158{
14159(void) ac_decl (0, (char *) 0);
14160  (void) ac_decl;
14161
14162  ;
14163  return 0;
14164}
14165_ACEOF
14166if ac_fn_c_try_compile "$LINENO"
14167then :
14168  if test x"$ac_arg" = x
14169then :
14170  ac_cv_c_undeclared_builtin_options='none needed'
14171else case e in #(
14172  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
14173esac
14174fi
14175          break
14176fi
14177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14178esac
14179fi
14180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14181    done
14182    CFLAGS=$ac_save_CFLAGS
14183   ;;
14184esac
14185fi
14186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14187printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14188  case $ac_cv_c_undeclared_builtin_options in #(
14189  'cannot detect') :
14190    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14191printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14192as_fn_error $? "cannot make $CC report undeclared builtins
14193See 'config.log' for more details" "$LINENO" 5; } ;; #(
14194  'none needed') :
14195    ac_c_undeclared_builtin_options='' ;; #(
14196  *) :
14197    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14198esac
14199
14200
14201
14202
14203
14204ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14205if test "x$ac_cv_have_decl___clang__" = xyes
14206then :
14207  CLANGCC="yes"
14208else case e in #(
14209  e) CLANGCC="no" ;;
14210esac
14211fi
14212ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14213if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
14214then :
14215  INTELCC="yes"
14216else case e in #(
14217  e) INTELCC="no" ;;
14218esac
14219fi
14220ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14221if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
14222then :
14223  SUNCC="yes"
14224else case e in #(
14225  e) SUNCC="no" ;;
14226esac
14227fi
14228
14229
14230
14231
14232
14233
14234
14235
14236if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14237	if test -n "$ac_tool_prefix"; then
14238  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14239set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14241printf %s "checking for $ac_word... " >&6; }
14242if test ${ac_cv_path_PKG_CONFIG+y}
14243then :
14244  printf %s "(cached) " >&6
14245else case e in #(
14246  e) case $PKG_CONFIG in
14247  [\\/]* | ?:[\\/]*)
14248  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14249  ;;
14250  *)
14251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252for as_dir in $PATH
14253do
14254  IFS=$as_save_IFS
14255  case $as_dir in #(((
14256    '') as_dir=./ ;;
14257    */) ;;
14258    *) as_dir=$as_dir/ ;;
14259  esac
14260    for ac_exec_ext in '' $ac_executable_extensions; do
14261  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14262    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14263    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14264    break 2
14265  fi
14266done
14267  done
14268IFS=$as_save_IFS
14269
14270  ;;
14271esac ;;
14272esac
14273fi
14274PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14275if test -n "$PKG_CONFIG"; then
14276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14277printf "%s\n" "$PKG_CONFIG" >&6; }
14278else
14279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14280printf "%s\n" "no" >&6; }
14281fi
14282
14283
14284fi
14285if test -z "$ac_cv_path_PKG_CONFIG"; then
14286  ac_pt_PKG_CONFIG=$PKG_CONFIG
14287  # Extract the first word of "pkg-config", so it can be a program name with args.
14288set dummy pkg-config; ac_word=$2
14289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290printf %s "checking for $ac_word... " >&6; }
14291if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14292then :
14293  printf %s "(cached) " >&6
14294else case e in #(
14295  e) case $ac_pt_PKG_CONFIG in
14296  [\\/]* | ?:[\\/]*)
14297  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14298  ;;
14299  *)
14300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14301for as_dir in $PATH
14302do
14303  IFS=$as_save_IFS
14304  case $as_dir in #(((
14305    '') as_dir=./ ;;
14306    */) ;;
14307    *) as_dir=$as_dir/ ;;
14308  esac
14309    for ac_exec_ext in '' $ac_executable_extensions; do
14310  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14311    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14312    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14313    break 2
14314  fi
14315done
14316  done
14317IFS=$as_save_IFS
14318
14319  ;;
14320esac ;;
14321esac
14322fi
14323ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14324if test -n "$ac_pt_PKG_CONFIG"; then
14325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14326printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14327else
14328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329printf "%s\n" "no" >&6; }
14330fi
14331
14332  if test "x$ac_pt_PKG_CONFIG" = x; then
14333    PKG_CONFIG=""
14334  else
14335    case $cross_compiling:$ac_tool_warned in
14336yes:)
14337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14338printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14339ac_tool_warned=yes ;;
14340esac
14341    PKG_CONFIG=$ac_pt_PKG_CONFIG
14342  fi
14343else
14344  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14345fi
14346
14347fi
14348if test -n "$PKG_CONFIG"; then
14349	_pkg_min_version=0.9.0
14350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14351printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14352	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14354printf "%s\n" "yes" >&6; }
14355	else
14356		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357printf "%s\n" "no" >&6; }
14358		PKG_CONFIG=""
14359	fi
14360fi
14361
14362
14363
14364
14365
14366# Check whether --enable-selective-werror was given.
14367if test ${enable_selective_werror+y}
14368then :
14369  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14370else case e in #(
14371  e) SELECTIVE_WERROR=yes ;;
14372esac
14373fi
14374
14375
14376
14377
14378
14379# -v is too short to test reliably with XORG_TESTSET_CFLAG
14380if test "x$SUNCC" = "xyes"; then
14381    BASE_CFLAGS="-v"
14382else
14383    BASE_CFLAGS=""
14384fi
14385
14386# This chunk of warnings were those that existed in the legacy CWARNFLAGS
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400xorg_testset_save_CFLAGS="$CFLAGS"
14401
14402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14404	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14406if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14407then :
14408  printf %s "(cached) " >&6
14409else case e in #(
14410  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411/* end confdefs.h.  */
14412int i;
14413_ACEOF
14414if ac_fn_c_try_compile "$LINENO"
14415then :
14416  xorg_cv_cc_flag_unknown_warning_option=yes
14417else case e in #(
14418  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14419esac
14420fi
14421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14422esac
14423fi
14424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14427	CFLAGS="$xorg_testset_save_CFLAGS"
14428fi
14429
14430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14433	fi
14434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14437if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14438then :
14439  printf %s "(cached) " >&6
14440else case e in #(
14441  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442/* end confdefs.h.  */
14443int i;
14444_ACEOF
14445if ac_fn_c_try_compile "$LINENO"
14446then :
14447  xorg_cv_cc_flag_unused_command_line_argument=yes
14448else case e in #(
14449  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14450esac
14451fi
14452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14453esac
14454fi
14455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14458	CFLAGS="$xorg_testset_save_CFLAGS"
14459fi
14460
14461found="no"
14462
14463	if test $found = "no" ; then
14464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14466		fi
14467
14468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14470		fi
14471
14472		CFLAGS="$CFLAGS -Wall"
14473
14474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14475printf %s "checking if $CC supports -Wall... " >&6; }
14476		cacheid=xorg_cv_cc_flag__Wall
14477		if eval test \${$cacheid+y}
14478then :
14479  printf %s "(cached) " >&6
14480else case e in #(
14481  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482/* end confdefs.h.  */
14483int i;
14484int
14485main (void)
14486{
14487
14488  ;
14489  return 0;
14490}
14491_ACEOF
14492if ac_fn_c_try_link "$LINENO"
14493then :
14494  eval $cacheid=yes
14495else case e in #(
14496  e) eval $cacheid=no ;;
14497esac
14498fi
14499rm -f core conftest.err conftest.$ac_objext conftest.beam \
14500    conftest$ac_exeext conftest.$ac_ext ;;
14501esac
14502fi
14503
14504
14505		CFLAGS="$xorg_testset_save_CFLAGS"
14506
14507		eval supported=\$$cacheid
14508		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14509printf "%s\n" "$supported" >&6; }
14510		if test "$supported" = "yes" ; then
14511			BASE_CFLAGS="$BASE_CFLAGS -Wall"
14512			found="yes"
14513		fi
14514	fi
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530xorg_testset_save_CFLAGS="$CFLAGS"
14531
14532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14536if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14537then :
14538  printf %s "(cached) " >&6
14539else case e in #(
14540  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541/* end confdefs.h.  */
14542int i;
14543_ACEOF
14544if ac_fn_c_try_compile "$LINENO"
14545then :
14546  xorg_cv_cc_flag_unknown_warning_option=yes
14547else case e in #(
14548  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14549esac
14550fi
14551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14552esac
14553fi
14554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14557	CFLAGS="$xorg_testset_save_CFLAGS"
14558fi
14559
14560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14563	fi
14564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14567if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14568then :
14569  printf %s "(cached) " >&6
14570else case e in #(
14571  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572/* end confdefs.h.  */
14573int i;
14574_ACEOF
14575if ac_fn_c_try_compile "$LINENO"
14576then :
14577  xorg_cv_cc_flag_unused_command_line_argument=yes
14578else case e in #(
14579  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14580esac
14581fi
14582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14583esac
14584fi
14585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14586printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14587	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14588	CFLAGS="$xorg_testset_save_CFLAGS"
14589fi
14590
14591found="no"
14592
14593	if test $found = "no" ; then
14594		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14595			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14596		fi
14597
14598		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14599			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14600		fi
14601
14602		CFLAGS="$CFLAGS -Wpointer-arith"
14603
14604		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14605printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14606		cacheid=xorg_cv_cc_flag__Wpointer_arith
14607		if eval test \${$cacheid+y}
14608then :
14609  printf %s "(cached) " >&6
14610else case e in #(
14611  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h.  */
14613int i;
14614int
14615main (void)
14616{
14617
14618  ;
14619  return 0;
14620}
14621_ACEOF
14622if ac_fn_c_try_link "$LINENO"
14623then :
14624  eval $cacheid=yes
14625else case e in #(
14626  e) eval $cacheid=no ;;
14627esac
14628fi
14629rm -f core conftest.err conftest.$ac_objext conftest.beam \
14630    conftest$ac_exeext conftest.$ac_ext ;;
14631esac
14632fi
14633
14634
14635		CFLAGS="$xorg_testset_save_CFLAGS"
14636
14637		eval supported=\$$cacheid
14638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14639printf "%s\n" "$supported" >&6; }
14640		if test "$supported" = "yes" ; then
14641			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14642			found="yes"
14643		fi
14644	fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660xorg_testset_save_CFLAGS="$CFLAGS"
14661
14662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14666if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14667then :
14668  printf %s "(cached) " >&6
14669else case e in #(
14670  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h.  */
14672int i;
14673_ACEOF
14674if ac_fn_c_try_compile "$LINENO"
14675then :
14676  xorg_cv_cc_flag_unknown_warning_option=yes
14677else case e in #(
14678  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14679esac
14680fi
14681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14682esac
14683fi
14684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14687	CFLAGS="$xorg_testset_save_CFLAGS"
14688fi
14689
14690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14693	fi
14694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14698then :
14699  printf %s "(cached) " >&6
14700else case e in #(
14701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702/* end confdefs.h.  */
14703int i;
14704_ACEOF
14705if ac_fn_c_try_compile "$LINENO"
14706then :
14707  xorg_cv_cc_flag_unused_command_line_argument=yes
14708else case e in #(
14709  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14710esac
14711fi
14712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14713esac
14714fi
14715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14718	CFLAGS="$xorg_testset_save_CFLAGS"
14719fi
14720
14721found="no"
14722
14723	if test $found = "no" ; then
14724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14726		fi
14727
14728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14730		fi
14731
14732		CFLAGS="$CFLAGS -Wmissing-declarations"
14733
14734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14735printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14736		cacheid=xorg_cv_cc_flag__Wmissing_declarations
14737		if eval test \${$cacheid+y}
14738then :
14739  printf %s "(cached) " >&6
14740else case e in #(
14741  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742/* end confdefs.h.  */
14743int i;
14744int
14745main (void)
14746{
14747
14748  ;
14749  return 0;
14750}
14751_ACEOF
14752if ac_fn_c_try_link "$LINENO"
14753then :
14754  eval $cacheid=yes
14755else case e in #(
14756  e) eval $cacheid=no ;;
14757esac
14758fi
14759rm -f core conftest.err conftest.$ac_objext conftest.beam \
14760    conftest$ac_exeext conftest.$ac_ext ;;
14761esac
14762fi
14763
14764
14765		CFLAGS="$xorg_testset_save_CFLAGS"
14766
14767		eval supported=\$$cacheid
14768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14769printf "%s\n" "$supported" >&6; }
14770		if test "$supported" = "yes" ; then
14771			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14772			found="yes"
14773		fi
14774	fi
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790xorg_testset_save_CFLAGS="$CFLAGS"
14791
14792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14794	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14796if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14797then :
14798  printf %s "(cached) " >&6
14799else case e in #(
14800  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801/* end confdefs.h.  */
14802int i;
14803_ACEOF
14804if ac_fn_c_try_compile "$LINENO"
14805then :
14806  xorg_cv_cc_flag_unknown_warning_option=yes
14807else case e in #(
14808  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14809esac
14810fi
14811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14812esac
14813fi
14814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14817	CFLAGS="$xorg_testset_save_CFLAGS"
14818fi
14819
14820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14823	fi
14824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14827if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14828then :
14829  printf %s "(cached) " >&6
14830else case e in #(
14831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832/* end confdefs.h.  */
14833int i;
14834_ACEOF
14835if ac_fn_c_try_compile "$LINENO"
14836then :
14837  xorg_cv_cc_flag_unused_command_line_argument=yes
14838else case e in #(
14839  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14840esac
14841fi
14842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14843esac
14844fi
14845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14848	CFLAGS="$xorg_testset_save_CFLAGS"
14849fi
14850
14851found="no"
14852
14853	if test $found = "no" ; then
14854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14856		fi
14857
14858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14860		fi
14861
14862		CFLAGS="$CFLAGS -Wformat=2"
14863
14864		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14865printf %s "checking if $CC supports -Wformat=2... " >&6; }
14866		cacheid=xorg_cv_cc_flag__Wformat_2
14867		if eval test \${$cacheid+y}
14868then :
14869  printf %s "(cached) " >&6
14870else case e in #(
14871  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872/* end confdefs.h.  */
14873int i;
14874int
14875main (void)
14876{
14877
14878  ;
14879  return 0;
14880}
14881_ACEOF
14882if ac_fn_c_try_link "$LINENO"
14883then :
14884  eval $cacheid=yes
14885else case e in #(
14886  e) eval $cacheid=no ;;
14887esac
14888fi
14889rm -f core conftest.err conftest.$ac_objext conftest.beam \
14890    conftest$ac_exeext conftest.$ac_ext ;;
14891esac
14892fi
14893
14894
14895		CFLAGS="$xorg_testset_save_CFLAGS"
14896
14897		eval supported=\$$cacheid
14898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14899printf "%s\n" "$supported" >&6; }
14900		if test "$supported" = "yes" ; then
14901			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14902			found="yes"
14903		fi
14904	fi
14905
14906	if test $found = "no" ; then
14907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14909		fi
14910
14911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14913		fi
14914
14915		CFLAGS="$CFLAGS -Wformat"
14916
14917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14918printf %s "checking if $CC supports -Wformat... " >&6; }
14919		cacheid=xorg_cv_cc_flag__Wformat
14920		if eval test \${$cacheid+y}
14921then :
14922  printf %s "(cached) " >&6
14923else case e in #(
14924  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925/* end confdefs.h.  */
14926int i;
14927int
14928main (void)
14929{
14930
14931  ;
14932  return 0;
14933}
14934_ACEOF
14935if ac_fn_c_try_link "$LINENO"
14936then :
14937  eval $cacheid=yes
14938else case e in #(
14939  e) eval $cacheid=no ;;
14940esac
14941fi
14942rm -f core conftest.err conftest.$ac_objext conftest.beam \
14943    conftest$ac_exeext conftest.$ac_ext ;;
14944esac
14945fi
14946
14947
14948		CFLAGS="$xorg_testset_save_CFLAGS"
14949
14950		eval supported=\$$cacheid
14951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14952printf "%s\n" "$supported" >&6; }
14953		if test "$supported" = "yes" ; then
14954			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14955			found="yes"
14956		fi
14957	fi
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975xorg_testset_save_CFLAGS="$CFLAGS"
14976
14977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14981if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14982then :
14983  printf %s "(cached) " >&6
14984else case e in #(
14985  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986/* end confdefs.h.  */
14987int i;
14988_ACEOF
14989if ac_fn_c_try_compile "$LINENO"
14990then :
14991  xorg_cv_cc_flag_unknown_warning_option=yes
14992else case e in #(
14993  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14994esac
14995fi
14996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14997esac
14998fi
14999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15000printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15002	CFLAGS="$xorg_testset_save_CFLAGS"
15003fi
15004
15005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15008	fi
15009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15011printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15012if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15013then :
15014  printf %s "(cached) " >&6
15015else case e in #(
15016  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017/* end confdefs.h.  */
15018int i;
15019_ACEOF
15020if ac_fn_c_try_compile "$LINENO"
15021then :
15022  xorg_cv_cc_flag_unused_command_line_argument=yes
15023else case e in #(
15024  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15025esac
15026fi
15027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15028esac
15029fi
15030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15031printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15033	CFLAGS="$xorg_testset_save_CFLAGS"
15034fi
15035
15036found="no"
15037
15038	if test $found = "no" ; then
15039		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15041		fi
15042
15043		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15045		fi
15046
15047		CFLAGS="$CFLAGS -Wstrict-prototypes"
15048
15049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
15050printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
15051		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
15052		if eval test \${$cacheid+y}
15053then :
15054  printf %s "(cached) " >&6
15055else case e in #(
15056  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057/* end confdefs.h.  */
15058int i;
15059int
15060main (void)
15061{
15062
15063  ;
15064  return 0;
15065}
15066_ACEOF
15067if ac_fn_c_try_link "$LINENO"
15068then :
15069  eval $cacheid=yes
15070else case e in #(
15071  e) eval $cacheid=no ;;
15072esac
15073fi
15074rm -f core conftest.err conftest.$ac_objext conftest.beam \
15075    conftest$ac_exeext conftest.$ac_ext ;;
15076esac
15077fi
15078
15079
15080		CFLAGS="$xorg_testset_save_CFLAGS"
15081
15082		eval supported=\$$cacheid
15083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15084printf "%s\n" "$supported" >&6; }
15085		if test "$supported" = "yes" ; then
15086			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
15087			found="yes"
15088		fi
15089	fi
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105xorg_testset_save_CFLAGS="$CFLAGS"
15106
15107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15111if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15112then :
15113  printf %s "(cached) " >&6
15114else case e in #(
15115  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116/* end confdefs.h.  */
15117int i;
15118_ACEOF
15119if ac_fn_c_try_compile "$LINENO"
15120then :
15121  xorg_cv_cc_flag_unknown_warning_option=yes
15122else case e in #(
15123  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15124esac
15125fi
15126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15127esac
15128fi
15129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15130printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15132	CFLAGS="$xorg_testset_save_CFLAGS"
15133fi
15134
15135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15138	fi
15139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15140	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15141printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15142if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15143then :
15144  printf %s "(cached) " >&6
15145else case e in #(
15146  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147/* end confdefs.h.  */
15148int i;
15149_ACEOF
15150if ac_fn_c_try_compile "$LINENO"
15151then :
15152  xorg_cv_cc_flag_unused_command_line_argument=yes
15153else case e in #(
15154  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15155esac
15156fi
15157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15158esac
15159fi
15160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15163	CFLAGS="$xorg_testset_save_CFLAGS"
15164fi
15165
15166found="no"
15167
15168	if test $found = "no" ; then
15169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15171		fi
15172
15173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15175		fi
15176
15177		CFLAGS="$CFLAGS -Wmissing-prototypes"
15178
15179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
15180printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
15181		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
15182		if eval test \${$cacheid+y}
15183then :
15184  printf %s "(cached) " >&6
15185else case e in #(
15186  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187/* end confdefs.h.  */
15188int i;
15189int
15190main (void)
15191{
15192
15193  ;
15194  return 0;
15195}
15196_ACEOF
15197if ac_fn_c_try_link "$LINENO"
15198then :
15199  eval $cacheid=yes
15200else case e in #(
15201  e) eval $cacheid=no ;;
15202esac
15203fi
15204rm -f core conftest.err conftest.$ac_objext conftest.beam \
15205    conftest$ac_exeext conftest.$ac_ext ;;
15206esac
15207fi
15208
15209
15210		CFLAGS="$xorg_testset_save_CFLAGS"
15211
15212		eval supported=\$$cacheid
15213		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15214printf "%s\n" "$supported" >&6; }
15215		if test "$supported" = "yes" ; then
15216			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
15217			found="yes"
15218		fi
15219	fi
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235xorg_testset_save_CFLAGS="$CFLAGS"
15236
15237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15238	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15241if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15242then :
15243  printf %s "(cached) " >&6
15244else case e in #(
15245  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246/* end confdefs.h.  */
15247int i;
15248_ACEOF
15249if ac_fn_c_try_compile "$LINENO"
15250then :
15251  xorg_cv_cc_flag_unknown_warning_option=yes
15252else case e in #(
15253  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15254esac
15255fi
15256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15257esac
15258fi
15259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15260printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15261	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15262	CFLAGS="$xorg_testset_save_CFLAGS"
15263fi
15264
15265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15266	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15267		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15268	fi
15269	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15270	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15271printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15272if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15273then :
15274  printf %s "(cached) " >&6
15275else case e in #(
15276  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277/* end confdefs.h.  */
15278int i;
15279_ACEOF
15280if ac_fn_c_try_compile "$LINENO"
15281then :
15282  xorg_cv_cc_flag_unused_command_line_argument=yes
15283else case e in #(
15284  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15285esac
15286fi
15287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15288esac
15289fi
15290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15291printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15293	CFLAGS="$xorg_testset_save_CFLAGS"
15294fi
15295
15296found="no"
15297
15298	if test $found = "no" ; then
15299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15301		fi
15302
15303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15305		fi
15306
15307		CFLAGS="$CFLAGS -Wnested-externs"
15308
15309		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
15310printf %s "checking if $CC supports -Wnested-externs... " >&6; }
15311		cacheid=xorg_cv_cc_flag__Wnested_externs
15312		if eval test \${$cacheid+y}
15313then :
15314  printf %s "(cached) " >&6
15315else case e in #(
15316  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317/* end confdefs.h.  */
15318int i;
15319int
15320main (void)
15321{
15322
15323  ;
15324  return 0;
15325}
15326_ACEOF
15327if ac_fn_c_try_link "$LINENO"
15328then :
15329  eval $cacheid=yes
15330else case e in #(
15331  e) eval $cacheid=no ;;
15332esac
15333fi
15334rm -f core conftest.err conftest.$ac_objext conftest.beam \
15335    conftest$ac_exeext conftest.$ac_ext ;;
15336esac
15337fi
15338
15339
15340		CFLAGS="$xorg_testset_save_CFLAGS"
15341
15342		eval supported=\$$cacheid
15343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15344printf "%s\n" "$supported" >&6; }
15345		if test "$supported" = "yes" ; then
15346			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15347			found="yes"
15348		fi
15349	fi
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365xorg_testset_save_CFLAGS="$CFLAGS"
15366
15367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15371if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15372then :
15373  printf %s "(cached) " >&6
15374else case e in #(
15375  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376/* end confdefs.h.  */
15377int i;
15378_ACEOF
15379if ac_fn_c_try_compile "$LINENO"
15380then :
15381  xorg_cv_cc_flag_unknown_warning_option=yes
15382else case e in #(
15383  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15384esac
15385fi
15386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15387esac
15388fi
15389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15391	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15392	CFLAGS="$xorg_testset_save_CFLAGS"
15393fi
15394
15395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15396	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15397		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15398	fi
15399	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15402if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15403then :
15404  printf %s "(cached) " >&6
15405else case e in #(
15406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407/* end confdefs.h.  */
15408int i;
15409_ACEOF
15410if ac_fn_c_try_compile "$LINENO"
15411then :
15412  xorg_cv_cc_flag_unused_command_line_argument=yes
15413else case e in #(
15414  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15415esac
15416fi
15417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15418esac
15419fi
15420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15423	CFLAGS="$xorg_testset_save_CFLAGS"
15424fi
15425
15426found="no"
15427
15428	if test $found = "no" ; then
15429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431		fi
15432
15433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15435		fi
15436
15437		CFLAGS="$CFLAGS -Wbad-function-cast"
15438
15439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15440printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15441		cacheid=xorg_cv_cc_flag__Wbad_function_cast
15442		if eval test \${$cacheid+y}
15443then :
15444  printf %s "(cached) " >&6
15445else case e in #(
15446  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447/* end confdefs.h.  */
15448int i;
15449int
15450main (void)
15451{
15452
15453  ;
15454  return 0;
15455}
15456_ACEOF
15457if ac_fn_c_try_link "$LINENO"
15458then :
15459  eval $cacheid=yes
15460else case e in #(
15461  e) eval $cacheid=no ;;
15462esac
15463fi
15464rm -f core conftest.err conftest.$ac_objext conftest.beam \
15465    conftest$ac_exeext conftest.$ac_ext ;;
15466esac
15467fi
15468
15469
15470		CFLAGS="$xorg_testset_save_CFLAGS"
15471
15472		eval supported=\$$cacheid
15473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15474printf "%s\n" "$supported" >&6; }
15475		if test "$supported" = "yes" ; then
15476			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15477			found="yes"
15478		fi
15479	fi
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495xorg_testset_save_CFLAGS="$CFLAGS"
15496
15497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15501if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15502then :
15503  printf %s "(cached) " >&6
15504else case e in #(
15505  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506/* end confdefs.h.  */
15507int i;
15508_ACEOF
15509if ac_fn_c_try_compile "$LINENO"
15510then :
15511  xorg_cv_cc_flag_unknown_warning_option=yes
15512else case e in #(
15513  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15514esac
15515fi
15516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15517esac
15518fi
15519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15522	CFLAGS="$xorg_testset_save_CFLAGS"
15523fi
15524
15525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528	fi
15529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15532if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15533then :
15534  printf %s "(cached) " >&6
15535else case e in #(
15536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537/* end confdefs.h.  */
15538int i;
15539_ACEOF
15540if ac_fn_c_try_compile "$LINENO"
15541then :
15542  xorg_cv_cc_flag_unused_command_line_argument=yes
15543else case e in #(
15544  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15545esac
15546fi
15547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15548esac
15549fi
15550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15553	CFLAGS="$xorg_testset_save_CFLAGS"
15554fi
15555
15556found="no"
15557
15558	if test $found = "no" ; then
15559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15561		fi
15562
15563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15565		fi
15566
15567		CFLAGS="$CFLAGS -Wold-style-definition"
15568
15569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15570printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15571		cacheid=xorg_cv_cc_flag__Wold_style_definition
15572		if eval test \${$cacheid+y}
15573then :
15574  printf %s "(cached) " >&6
15575else case e in #(
15576  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577/* end confdefs.h.  */
15578int i;
15579int
15580main (void)
15581{
15582
15583  ;
15584  return 0;
15585}
15586_ACEOF
15587if ac_fn_c_try_link "$LINENO"
15588then :
15589  eval $cacheid=yes
15590else case e in #(
15591  e) eval $cacheid=no ;;
15592esac
15593fi
15594rm -f core conftest.err conftest.$ac_objext conftest.beam \
15595    conftest$ac_exeext conftest.$ac_ext ;;
15596esac
15597fi
15598
15599
15600		CFLAGS="$xorg_testset_save_CFLAGS"
15601
15602		eval supported=\$$cacheid
15603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15604printf "%s\n" "$supported" >&6; }
15605		if test "$supported" = "yes" ; then
15606			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15607			found="yes"
15608		fi
15609	fi
15610
15611	if test $found = "no" ; then
15612		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15614		fi
15615
15616		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15618		fi
15619
15620		CFLAGS="$CFLAGS -fd"
15621
15622		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15623printf %s "checking if $CC supports -fd... " >&6; }
15624		cacheid=xorg_cv_cc_flag__fd
15625		if eval test \${$cacheid+y}
15626then :
15627  printf %s "(cached) " >&6
15628else case e in #(
15629  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630/* end confdefs.h.  */
15631int i;
15632int
15633main (void)
15634{
15635
15636  ;
15637  return 0;
15638}
15639_ACEOF
15640if ac_fn_c_try_link "$LINENO"
15641then :
15642  eval $cacheid=yes
15643else case e in #(
15644  e) eval $cacheid=no ;;
15645esac
15646fi
15647rm -f core conftest.err conftest.$ac_objext conftest.beam \
15648    conftest$ac_exeext conftest.$ac_ext ;;
15649esac
15650fi
15651
15652
15653		CFLAGS="$xorg_testset_save_CFLAGS"
15654
15655		eval supported=\$$cacheid
15656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15657printf "%s\n" "$supported" >&6; }
15658		if test "$supported" = "yes" ; then
15659			BASE_CFLAGS="$BASE_CFLAGS -fd"
15660			found="yes"
15661		fi
15662	fi
15663
15664
15665
15666
15667
15668# This chunk adds additional warnings that could catch undesired effects.
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682xorg_testset_save_CFLAGS="$CFLAGS"
15683
15684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15688if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15689then :
15690  printf %s "(cached) " >&6
15691else case e in #(
15692  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693/* end confdefs.h.  */
15694int i;
15695_ACEOF
15696if ac_fn_c_try_compile "$LINENO"
15697then :
15698  xorg_cv_cc_flag_unknown_warning_option=yes
15699else case e in #(
15700  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15701esac
15702fi
15703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15704esac
15705fi
15706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15709	CFLAGS="$xorg_testset_save_CFLAGS"
15710fi
15711
15712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15715	fi
15716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15719if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15720then :
15721  printf %s "(cached) " >&6
15722else case e in #(
15723  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724/* end confdefs.h.  */
15725int i;
15726_ACEOF
15727if ac_fn_c_try_compile "$LINENO"
15728then :
15729  xorg_cv_cc_flag_unused_command_line_argument=yes
15730else case e in #(
15731  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15732esac
15733fi
15734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15735esac
15736fi
15737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15740	CFLAGS="$xorg_testset_save_CFLAGS"
15741fi
15742
15743found="no"
15744
15745	if test $found = "no" ; then
15746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15748		fi
15749
15750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15752		fi
15753
15754		CFLAGS="$CFLAGS -Wunused"
15755
15756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15757printf %s "checking if $CC supports -Wunused... " >&6; }
15758		cacheid=xorg_cv_cc_flag__Wunused
15759		if eval test \${$cacheid+y}
15760then :
15761  printf %s "(cached) " >&6
15762else case e in #(
15763  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764/* end confdefs.h.  */
15765int i;
15766int
15767main (void)
15768{
15769
15770  ;
15771  return 0;
15772}
15773_ACEOF
15774if ac_fn_c_try_link "$LINENO"
15775then :
15776  eval $cacheid=yes
15777else case e in #(
15778  e) eval $cacheid=no ;;
15779esac
15780fi
15781rm -f core conftest.err conftest.$ac_objext conftest.beam \
15782    conftest$ac_exeext conftest.$ac_ext ;;
15783esac
15784fi
15785
15786
15787		CFLAGS="$xorg_testset_save_CFLAGS"
15788
15789		eval supported=\$$cacheid
15790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15791printf "%s\n" "$supported" >&6; }
15792		if test "$supported" = "yes" ; then
15793			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15794			found="yes"
15795		fi
15796	fi
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812xorg_testset_save_CFLAGS="$CFLAGS"
15813
15814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15819then :
15820  printf %s "(cached) " >&6
15821else case e in #(
15822  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823/* end confdefs.h.  */
15824int i;
15825_ACEOF
15826if ac_fn_c_try_compile "$LINENO"
15827then :
15828  xorg_cv_cc_flag_unknown_warning_option=yes
15829else case e in #(
15830  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15831esac
15832fi
15833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15834esac
15835fi
15836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15839	CFLAGS="$xorg_testset_save_CFLAGS"
15840fi
15841
15842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845	fi
15846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15849if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15850then :
15851  printf %s "(cached) " >&6
15852else case e in #(
15853  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854/* end confdefs.h.  */
15855int i;
15856_ACEOF
15857if ac_fn_c_try_compile "$LINENO"
15858then :
15859  xorg_cv_cc_flag_unused_command_line_argument=yes
15860else case e in #(
15861  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15862esac
15863fi
15864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15865esac
15866fi
15867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15869	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15870	CFLAGS="$xorg_testset_save_CFLAGS"
15871fi
15872
15873found="no"
15874
15875	if test $found = "no" ; then
15876		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15878		fi
15879
15880		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15882		fi
15883
15884		CFLAGS="$CFLAGS -Wuninitialized"
15885
15886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15887printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15888		cacheid=xorg_cv_cc_flag__Wuninitialized
15889		if eval test \${$cacheid+y}
15890then :
15891  printf %s "(cached) " >&6
15892else case e in #(
15893  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894/* end confdefs.h.  */
15895int i;
15896int
15897main (void)
15898{
15899
15900  ;
15901  return 0;
15902}
15903_ACEOF
15904if ac_fn_c_try_link "$LINENO"
15905then :
15906  eval $cacheid=yes
15907else case e in #(
15908  e) eval $cacheid=no ;;
15909esac
15910fi
15911rm -f core conftest.err conftest.$ac_objext conftest.beam \
15912    conftest$ac_exeext conftest.$ac_ext ;;
15913esac
15914fi
15915
15916
15917		CFLAGS="$xorg_testset_save_CFLAGS"
15918
15919		eval supported=\$$cacheid
15920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15921printf "%s\n" "$supported" >&6; }
15922		if test "$supported" = "yes" ; then
15923			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15924			found="yes"
15925		fi
15926	fi
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942xorg_testset_save_CFLAGS="$CFLAGS"
15943
15944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15949then :
15950  printf %s "(cached) " >&6
15951else case e in #(
15952  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953/* end confdefs.h.  */
15954int i;
15955_ACEOF
15956if ac_fn_c_try_compile "$LINENO"
15957then :
15958  xorg_cv_cc_flag_unknown_warning_option=yes
15959else case e in #(
15960  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15961esac
15962fi
15963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15964esac
15965fi
15966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15969	CFLAGS="$xorg_testset_save_CFLAGS"
15970fi
15971
15972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15975	fi
15976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15979if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15980then :
15981  printf %s "(cached) " >&6
15982else case e in #(
15983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984/* end confdefs.h.  */
15985int i;
15986_ACEOF
15987if ac_fn_c_try_compile "$LINENO"
15988then :
15989  xorg_cv_cc_flag_unused_command_line_argument=yes
15990else case e in #(
15991  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15992esac
15993fi
15994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15995esac
15996fi
15997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15999	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16000	CFLAGS="$xorg_testset_save_CFLAGS"
16001fi
16002
16003found="no"
16004
16005	if test $found = "no" ; then
16006		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16007			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16008		fi
16009
16010		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16011			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16012		fi
16013
16014		CFLAGS="$CFLAGS -Wshadow"
16015
16016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
16017printf %s "checking if $CC supports -Wshadow... " >&6; }
16018		cacheid=xorg_cv_cc_flag__Wshadow
16019		if eval test \${$cacheid+y}
16020then :
16021  printf %s "(cached) " >&6
16022else case e in #(
16023  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024/* end confdefs.h.  */
16025int i;
16026int
16027main (void)
16028{
16029
16030  ;
16031  return 0;
16032}
16033_ACEOF
16034if ac_fn_c_try_link "$LINENO"
16035then :
16036  eval $cacheid=yes
16037else case e in #(
16038  e) eval $cacheid=no ;;
16039esac
16040fi
16041rm -f core conftest.err conftest.$ac_objext conftest.beam \
16042    conftest$ac_exeext conftest.$ac_ext ;;
16043esac
16044fi
16045
16046
16047		CFLAGS="$xorg_testset_save_CFLAGS"
16048
16049		eval supported=\$$cacheid
16050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16051printf "%s\n" "$supported" >&6; }
16052		if test "$supported" = "yes" ; then
16053			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
16054			found="yes"
16055		fi
16056	fi
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072xorg_testset_save_CFLAGS="$CFLAGS"
16073
16074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16078if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16079then :
16080  printf %s "(cached) " >&6
16081else case e in #(
16082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083/* end confdefs.h.  */
16084int i;
16085_ACEOF
16086if ac_fn_c_try_compile "$LINENO"
16087then :
16088  xorg_cv_cc_flag_unknown_warning_option=yes
16089else case e in #(
16090  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16091esac
16092fi
16093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16094esac
16095fi
16096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16099	CFLAGS="$xorg_testset_save_CFLAGS"
16100fi
16101
16102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105	fi
16106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16109if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16110then :
16111  printf %s "(cached) " >&6
16112else case e in #(
16113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114/* end confdefs.h.  */
16115int i;
16116_ACEOF
16117if ac_fn_c_try_compile "$LINENO"
16118then :
16119  xorg_cv_cc_flag_unused_command_line_argument=yes
16120else case e in #(
16121  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16122esac
16123fi
16124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16125esac
16126fi
16127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16130	CFLAGS="$xorg_testset_save_CFLAGS"
16131fi
16132
16133found="no"
16134
16135	if test $found = "no" ; then
16136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16138		fi
16139
16140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16142		fi
16143
16144		CFLAGS="$CFLAGS -Wmissing-noreturn"
16145
16146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
16147printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
16148		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
16149		if eval test \${$cacheid+y}
16150then :
16151  printf %s "(cached) " >&6
16152else case e in #(
16153  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154/* end confdefs.h.  */
16155int i;
16156int
16157main (void)
16158{
16159
16160  ;
16161  return 0;
16162}
16163_ACEOF
16164if ac_fn_c_try_link "$LINENO"
16165then :
16166  eval $cacheid=yes
16167else case e in #(
16168  e) eval $cacheid=no ;;
16169esac
16170fi
16171rm -f core conftest.err conftest.$ac_objext conftest.beam \
16172    conftest$ac_exeext conftest.$ac_ext ;;
16173esac
16174fi
16175
16176
16177		CFLAGS="$xorg_testset_save_CFLAGS"
16178
16179		eval supported=\$$cacheid
16180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16181printf "%s\n" "$supported" >&6; }
16182		if test "$supported" = "yes" ; then
16183			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
16184			found="yes"
16185		fi
16186	fi
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202xorg_testset_save_CFLAGS="$CFLAGS"
16203
16204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16208if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16209then :
16210  printf %s "(cached) " >&6
16211else case e in #(
16212  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213/* end confdefs.h.  */
16214int i;
16215_ACEOF
16216if ac_fn_c_try_compile "$LINENO"
16217then :
16218  xorg_cv_cc_flag_unknown_warning_option=yes
16219else case e in #(
16220  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16221esac
16222fi
16223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16224esac
16225fi
16226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16227printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16229	CFLAGS="$xorg_testset_save_CFLAGS"
16230fi
16231
16232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16235	fi
16236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16238printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16239if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16240then :
16241  printf %s "(cached) " >&6
16242else case e in #(
16243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h.  */
16245int i;
16246_ACEOF
16247if ac_fn_c_try_compile "$LINENO"
16248then :
16249  xorg_cv_cc_flag_unused_command_line_argument=yes
16250else case e in #(
16251  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16252esac
16253fi
16254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16255esac
16256fi
16257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16260	CFLAGS="$xorg_testset_save_CFLAGS"
16261fi
16262
16263found="no"
16264
16265	if test $found = "no" ; then
16266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16268		fi
16269
16270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16272		fi
16273
16274		CFLAGS="$CFLAGS -Wmissing-format-attribute"
16275
16276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
16277printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
16278		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
16279		if eval test \${$cacheid+y}
16280then :
16281  printf %s "(cached) " >&6
16282else case e in #(
16283  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284/* end confdefs.h.  */
16285int i;
16286int
16287main (void)
16288{
16289
16290  ;
16291  return 0;
16292}
16293_ACEOF
16294if ac_fn_c_try_link "$LINENO"
16295then :
16296  eval $cacheid=yes
16297else case e in #(
16298  e) eval $cacheid=no ;;
16299esac
16300fi
16301rm -f core conftest.err conftest.$ac_objext conftest.beam \
16302    conftest$ac_exeext conftest.$ac_ext ;;
16303esac
16304fi
16305
16306
16307		CFLAGS="$xorg_testset_save_CFLAGS"
16308
16309		eval supported=\$$cacheid
16310		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16311printf "%s\n" "$supported" >&6; }
16312		if test "$supported" = "yes" ; then
16313			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
16314			found="yes"
16315		fi
16316	fi
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332xorg_testset_save_CFLAGS="$CFLAGS"
16333
16334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16338if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16339then :
16340  printf %s "(cached) " >&6
16341else case e in #(
16342  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343/* end confdefs.h.  */
16344int i;
16345_ACEOF
16346if ac_fn_c_try_compile "$LINENO"
16347then :
16348  xorg_cv_cc_flag_unknown_warning_option=yes
16349else case e in #(
16350  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16351esac
16352fi
16353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16354esac
16355fi
16356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16359	CFLAGS="$xorg_testset_save_CFLAGS"
16360fi
16361
16362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16365	fi
16366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16369if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16370then :
16371  printf %s "(cached) " >&6
16372else case e in #(
16373  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374/* end confdefs.h.  */
16375int i;
16376_ACEOF
16377if ac_fn_c_try_compile "$LINENO"
16378then :
16379  xorg_cv_cc_flag_unused_command_line_argument=yes
16380else case e in #(
16381  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16382esac
16383fi
16384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16385esac
16386fi
16387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16388printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16390	CFLAGS="$xorg_testset_save_CFLAGS"
16391fi
16392
16393found="no"
16394
16395	if test $found = "no" ; then
16396		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16398		fi
16399
16400		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16402		fi
16403
16404		CFLAGS="$CFLAGS -Wredundant-decls"
16405
16406		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16407printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16408		cacheid=xorg_cv_cc_flag__Wredundant_decls
16409		if eval test \${$cacheid+y}
16410then :
16411  printf %s "(cached) " >&6
16412else case e in #(
16413  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414/* end confdefs.h.  */
16415int i;
16416int
16417main (void)
16418{
16419
16420  ;
16421  return 0;
16422}
16423_ACEOF
16424if ac_fn_c_try_link "$LINENO"
16425then :
16426  eval $cacheid=yes
16427else case e in #(
16428  e) eval $cacheid=no ;;
16429esac
16430fi
16431rm -f core conftest.err conftest.$ac_objext conftest.beam \
16432    conftest$ac_exeext conftest.$ac_ext ;;
16433esac
16434fi
16435
16436
16437		CFLAGS="$xorg_testset_save_CFLAGS"
16438
16439		eval supported=\$$cacheid
16440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16441printf "%s\n" "$supported" >&6; }
16442		if test "$supported" = "yes" ; then
16443			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16444			found="yes"
16445		fi
16446	fi
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462xorg_testset_save_CFLAGS="$CFLAGS"
16463
16464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16465	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16468if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16469then :
16470  printf %s "(cached) " >&6
16471else case e in #(
16472  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473/* end confdefs.h.  */
16474int i;
16475_ACEOF
16476if ac_fn_c_try_compile "$LINENO"
16477then :
16478  xorg_cv_cc_flag_unknown_warning_option=yes
16479else case e in #(
16480  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16481esac
16482fi
16483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16484esac
16485fi
16486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16488	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16489	CFLAGS="$xorg_testset_save_CFLAGS"
16490fi
16491
16492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16493	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16495	fi
16496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16499if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16500then :
16501  printf %s "(cached) " >&6
16502else case e in #(
16503  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504/* end confdefs.h.  */
16505int i;
16506_ACEOF
16507if ac_fn_c_try_compile "$LINENO"
16508then :
16509  xorg_cv_cc_flag_unused_command_line_argument=yes
16510else case e in #(
16511  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16512esac
16513fi
16514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16515esac
16516fi
16517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16520	CFLAGS="$xorg_testset_save_CFLAGS"
16521fi
16522
16523found="no"
16524
16525	if test $found = "no" ; then
16526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16528		fi
16529
16530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532		fi
16533
16534		CFLAGS="$CFLAGS -Wlogical-op"
16535
16536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16537printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16538		cacheid=xorg_cv_cc_flag__Wlogical_op
16539		if eval test \${$cacheid+y}
16540then :
16541  printf %s "(cached) " >&6
16542else case e in #(
16543  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544/* end confdefs.h.  */
16545int i;
16546int
16547main (void)
16548{
16549
16550  ;
16551  return 0;
16552}
16553_ACEOF
16554if ac_fn_c_try_link "$LINENO"
16555then :
16556  eval $cacheid=yes
16557else case e in #(
16558  e) eval $cacheid=no ;;
16559esac
16560fi
16561rm -f core conftest.err conftest.$ac_objext conftest.beam \
16562    conftest$ac_exeext conftest.$ac_ext ;;
16563esac
16564fi
16565
16566
16567		CFLAGS="$xorg_testset_save_CFLAGS"
16568
16569		eval supported=\$$cacheid
16570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16571printf "%s\n" "$supported" >&6; }
16572		if test "$supported" = "yes" ; then
16573			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16574			found="yes"
16575		fi
16576	fi
16577
16578
16579
16580# These are currently disabled because they are noisy.  They will be enabled
16581# in the future once the codebase is sufficiently modernized to silence
16582# them.  For now, I don't want them to drown out the other warnings.
16583# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16584# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16585# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16586
16587# Turn some warnings into errors, so we don't accidentally get successful builds
16588# when there are problems that should be fixed.
16589
16590if test "x$SELECTIVE_WERROR" = "xyes" ; then
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604xorg_testset_save_CFLAGS="$CFLAGS"
16605
16606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16609printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16610if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16611then :
16612  printf %s "(cached) " >&6
16613else case e in #(
16614  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615/* end confdefs.h.  */
16616int i;
16617_ACEOF
16618if ac_fn_c_try_compile "$LINENO"
16619then :
16620  xorg_cv_cc_flag_unknown_warning_option=yes
16621else case e in #(
16622  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16623esac
16624fi
16625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16626esac
16627fi
16628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16629printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16631	CFLAGS="$xorg_testset_save_CFLAGS"
16632fi
16633
16634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637	fi
16638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16640printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16641if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16642then :
16643  printf %s "(cached) " >&6
16644else case e in #(
16645  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646/* end confdefs.h.  */
16647int i;
16648_ACEOF
16649if ac_fn_c_try_compile "$LINENO"
16650then :
16651  xorg_cv_cc_flag_unused_command_line_argument=yes
16652else case e in #(
16653  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16654esac
16655fi
16656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16657esac
16658fi
16659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16662	CFLAGS="$xorg_testset_save_CFLAGS"
16663fi
16664
16665found="no"
16666
16667	if test $found = "no" ; then
16668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16670		fi
16671
16672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16674		fi
16675
16676		CFLAGS="$CFLAGS -Werror=implicit"
16677
16678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16679printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16680		cacheid=xorg_cv_cc_flag__Werror_implicit
16681		if eval test \${$cacheid+y}
16682then :
16683  printf %s "(cached) " >&6
16684else case e in #(
16685  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686/* end confdefs.h.  */
16687int i;
16688int
16689main (void)
16690{
16691
16692  ;
16693  return 0;
16694}
16695_ACEOF
16696if ac_fn_c_try_link "$LINENO"
16697then :
16698  eval $cacheid=yes
16699else case e in #(
16700  e) eval $cacheid=no ;;
16701esac
16702fi
16703rm -f core conftest.err conftest.$ac_objext conftest.beam \
16704    conftest$ac_exeext conftest.$ac_ext ;;
16705esac
16706fi
16707
16708
16709		CFLAGS="$xorg_testset_save_CFLAGS"
16710
16711		eval supported=\$$cacheid
16712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16713printf "%s\n" "$supported" >&6; }
16714		if test "$supported" = "yes" ; then
16715			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16716			found="yes"
16717		fi
16718	fi
16719
16720	if test $found = "no" ; then
16721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723		fi
16724
16725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16727		fi
16728
16729		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16730
16731		{ 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
16732printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16733		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16734		if eval test \${$cacheid+y}
16735then :
16736  printf %s "(cached) " >&6
16737else case e in #(
16738  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739/* end confdefs.h.  */
16740int i;
16741int
16742main (void)
16743{
16744
16745  ;
16746  return 0;
16747}
16748_ACEOF
16749if ac_fn_c_try_link "$LINENO"
16750then :
16751  eval $cacheid=yes
16752else case e in #(
16753  e) eval $cacheid=no ;;
16754esac
16755fi
16756rm -f core conftest.err conftest.$ac_objext conftest.beam \
16757    conftest$ac_exeext conftest.$ac_ext ;;
16758esac
16759fi
16760
16761
16762		CFLAGS="$xorg_testset_save_CFLAGS"
16763
16764		eval supported=\$$cacheid
16765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16766printf "%s\n" "$supported" >&6; }
16767		if test "$supported" = "yes" ; then
16768			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16769			found="yes"
16770		fi
16771	fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787xorg_testset_save_CFLAGS="$CFLAGS"
16788
16789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16792printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16793if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16794then :
16795  printf %s "(cached) " >&6
16796else case e in #(
16797  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h.  */
16799int i;
16800_ACEOF
16801if ac_fn_c_try_compile "$LINENO"
16802then :
16803  xorg_cv_cc_flag_unknown_warning_option=yes
16804else case e in #(
16805  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16806esac
16807fi
16808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16809esac
16810fi
16811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16812printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16813	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16814	CFLAGS="$xorg_testset_save_CFLAGS"
16815fi
16816
16817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16818	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16820	fi
16821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16823printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16824if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16825then :
16826  printf %s "(cached) " >&6
16827else case e in #(
16828  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829/* end confdefs.h.  */
16830int i;
16831_ACEOF
16832if ac_fn_c_try_compile "$LINENO"
16833then :
16834  xorg_cv_cc_flag_unused_command_line_argument=yes
16835else case e in #(
16836  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16837esac
16838fi
16839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16840esac
16841fi
16842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16845	CFLAGS="$xorg_testset_save_CFLAGS"
16846fi
16847
16848found="no"
16849
16850	if test $found = "no" ; then
16851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16853		fi
16854
16855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16857		fi
16858
16859		CFLAGS="$CFLAGS -Werror=nonnull"
16860
16861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16862printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16863		cacheid=xorg_cv_cc_flag__Werror_nonnull
16864		if eval test \${$cacheid+y}
16865then :
16866  printf %s "(cached) " >&6
16867else case e in #(
16868  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h.  */
16870int i;
16871int
16872main (void)
16873{
16874
16875  ;
16876  return 0;
16877}
16878_ACEOF
16879if ac_fn_c_try_link "$LINENO"
16880then :
16881  eval $cacheid=yes
16882else case e in #(
16883  e) eval $cacheid=no ;;
16884esac
16885fi
16886rm -f core conftest.err conftest.$ac_objext conftest.beam \
16887    conftest$ac_exeext conftest.$ac_ext ;;
16888esac
16889fi
16890
16891
16892		CFLAGS="$xorg_testset_save_CFLAGS"
16893
16894		eval supported=\$$cacheid
16895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16896printf "%s\n" "$supported" >&6; }
16897		if test "$supported" = "yes" ; then
16898			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16899			found="yes"
16900		fi
16901	fi
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917xorg_testset_save_CFLAGS="$CFLAGS"
16918
16919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16923if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16924then :
16925  printf %s "(cached) " >&6
16926else case e in #(
16927  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928/* end confdefs.h.  */
16929int i;
16930_ACEOF
16931if ac_fn_c_try_compile "$LINENO"
16932then :
16933  xorg_cv_cc_flag_unknown_warning_option=yes
16934else case e in #(
16935  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16936esac
16937fi
16938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16939esac
16940fi
16941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16944	CFLAGS="$xorg_testset_save_CFLAGS"
16945fi
16946
16947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950	fi
16951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16954if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16955then :
16956  printf %s "(cached) " >&6
16957else case e in #(
16958  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h.  */
16960int i;
16961_ACEOF
16962if ac_fn_c_try_compile "$LINENO"
16963then :
16964  xorg_cv_cc_flag_unused_command_line_argument=yes
16965else case e in #(
16966  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16967esac
16968fi
16969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16970esac
16971fi
16972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16973printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16974	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16975	CFLAGS="$xorg_testset_save_CFLAGS"
16976fi
16977
16978found="no"
16979
16980	if test $found = "no" ; then
16981		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16982			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16983		fi
16984
16985		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16986			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16987		fi
16988
16989		CFLAGS="$CFLAGS -Werror=init-self"
16990
16991		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16992printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16993		cacheid=xorg_cv_cc_flag__Werror_init_self
16994		if eval test \${$cacheid+y}
16995then :
16996  printf %s "(cached) " >&6
16997else case e in #(
16998  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999/* end confdefs.h.  */
17000int i;
17001int
17002main (void)
17003{
17004
17005  ;
17006  return 0;
17007}
17008_ACEOF
17009if ac_fn_c_try_link "$LINENO"
17010then :
17011  eval $cacheid=yes
17012else case e in #(
17013  e) eval $cacheid=no ;;
17014esac
17015fi
17016rm -f core conftest.err conftest.$ac_objext conftest.beam \
17017    conftest$ac_exeext conftest.$ac_ext ;;
17018esac
17019fi
17020
17021
17022		CFLAGS="$xorg_testset_save_CFLAGS"
17023
17024		eval supported=\$$cacheid
17025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17026printf "%s\n" "$supported" >&6; }
17027		if test "$supported" = "yes" ; then
17028			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
17029			found="yes"
17030		fi
17031	fi
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047xorg_testset_save_CFLAGS="$CFLAGS"
17048
17049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17050	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17051	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17052printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17053if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17054then :
17055  printf %s "(cached) " >&6
17056else case e in #(
17057  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058/* end confdefs.h.  */
17059int i;
17060_ACEOF
17061if ac_fn_c_try_compile "$LINENO"
17062then :
17063  xorg_cv_cc_flag_unknown_warning_option=yes
17064else case e in #(
17065  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17066esac
17067fi
17068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17069esac
17070fi
17071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17074	CFLAGS="$xorg_testset_save_CFLAGS"
17075fi
17076
17077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080	fi
17081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17084if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17085then :
17086  printf %s "(cached) " >&6
17087else case e in #(
17088  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089/* end confdefs.h.  */
17090int i;
17091_ACEOF
17092if ac_fn_c_try_compile "$LINENO"
17093then :
17094  xorg_cv_cc_flag_unused_command_line_argument=yes
17095else case e in #(
17096  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17097esac
17098fi
17099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17100esac
17101fi
17102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17103printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17104	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17105	CFLAGS="$xorg_testset_save_CFLAGS"
17106fi
17107
17108found="no"
17109
17110	if test $found = "no" ; then
17111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17113		fi
17114
17115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17117		fi
17118
17119		CFLAGS="$CFLAGS -Werror=main"
17120
17121		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
17122printf %s "checking if $CC supports -Werror=main... " >&6; }
17123		cacheid=xorg_cv_cc_flag__Werror_main
17124		if eval test \${$cacheid+y}
17125then :
17126  printf %s "(cached) " >&6
17127else case e in #(
17128  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129/* end confdefs.h.  */
17130int i;
17131int
17132main (void)
17133{
17134
17135  ;
17136  return 0;
17137}
17138_ACEOF
17139if ac_fn_c_try_link "$LINENO"
17140then :
17141  eval $cacheid=yes
17142else case e in #(
17143  e) eval $cacheid=no ;;
17144esac
17145fi
17146rm -f core conftest.err conftest.$ac_objext conftest.beam \
17147    conftest$ac_exeext conftest.$ac_ext ;;
17148esac
17149fi
17150
17151
17152		CFLAGS="$xorg_testset_save_CFLAGS"
17153
17154		eval supported=\$$cacheid
17155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17156printf "%s\n" "$supported" >&6; }
17157		if test "$supported" = "yes" ; then
17158			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
17159			found="yes"
17160		fi
17161	fi
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177xorg_testset_save_CFLAGS="$CFLAGS"
17178
17179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17181	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17183if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17184then :
17185  printf %s "(cached) " >&6
17186else case e in #(
17187  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188/* end confdefs.h.  */
17189int i;
17190_ACEOF
17191if ac_fn_c_try_compile "$LINENO"
17192then :
17193  xorg_cv_cc_flag_unknown_warning_option=yes
17194else case e in #(
17195  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17196esac
17197fi
17198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17199esac
17200fi
17201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17202printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17204	CFLAGS="$xorg_testset_save_CFLAGS"
17205fi
17206
17207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17210	fi
17211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17212	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17213printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17214if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17215then :
17216  printf %s "(cached) " >&6
17217else case e in #(
17218  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219/* end confdefs.h.  */
17220int i;
17221_ACEOF
17222if ac_fn_c_try_compile "$LINENO"
17223then :
17224  xorg_cv_cc_flag_unused_command_line_argument=yes
17225else case e in #(
17226  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17227esac
17228fi
17229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17230esac
17231fi
17232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17235	CFLAGS="$xorg_testset_save_CFLAGS"
17236fi
17237
17238found="no"
17239
17240	if test $found = "no" ; then
17241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243		fi
17244
17245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247		fi
17248
17249		CFLAGS="$CFLAGS -Werror=missing-braces"
17250
17251		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
17252printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
17253		cacheid=xorg_cv_cc_flag__Werror_missing_braces
17254		if eval test \${$cacheid+y}
17255then :
17256  printf %s "(cached) " >&6
17257else case e in #(
17258  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259/* end confdefs.h.  */
17260int i;
17261int
17262main (void)
17263{
17264
17265  ;
17266  return 0;
17267}
17268_ACEOF
17269if ac_fn_c_try_link "$LINENO"
17270then :
17271  eval $cacheid=yes
17272else case e in #(
17273  e) eval $cacheid=no ;;
17274esac
17275fi
17276rm -f core conftest.err conftest.$ac_objext conftest.beam \
17277    conftest$ac_exeext conftest.$ac_ext ;;
17278esac
17279fi
17280
17281
17282		CFLAGS="$xorg_testset_save_CFLAGS"
17283
17284		eval supported=\$$cacheid
17285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17286printf "%s\n" "$supported" >&6; }
17287		if test "$supported" = "yes" ; then
17288			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
17289			found="yes"
17290		fi
17291	fi
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307xorg_testset_save_CFLAGS="$CFLAGS"
17308
17309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17313if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17314then :
17315  printf %s "(cached) " >&6
17316else case e in #(
17317  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318/* end confdefs.h.  */
17319int i;
17320_ACEOF
17321if ac_fn_c_try_compile "$LINENO"
17322then :
17323  xorg_cv_cc_flag_unknown_warning_option=yes
17324else case e in #(
17325  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17326esac
17327fi
17328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17329esac
17330fi
17331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17332printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17334	CFLAGS="$xorg_testset_save_CFLAGS"
17335fi
17336
17337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17340	fi
17341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17343printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17344if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17345then :
17346  printf %s "(cached) " >&6
17347else case e in #(
17348  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349/* end confdefs.h.  */
17350int i;
17351_ACEOF
17352if ac_fn_c_try_compile "$LINENO"
17353then :
17354  xorg_cv_cc_flag_unused_command_line_argument=yes
17355else case e in #(
17356  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17357esac
17358fi
17359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17360esac
17361fi
17362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17365	CFLAGS="$xorg_testset_save_CFLAGS"
17366fi
17367
17368found="no"
17369
17370	if test $found = "no" ; then
17371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373		fi
17374
17375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377		fi
17378
17379		CFLAGS="$CFLAGS -Werror=sequence-point"
17380
17381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17382printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17383		cacheid=xorg_cv_cc_flag__Werror_sequence_point
17384		if eval test \${$cacheid+y}
17385then :
17386  printf %s "(cached) " >&6
17387else case e in #(
17388  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h.  */
17390int i;
17391int
17392main (void)
17393{
17394
17395  ;
17396  return 0;
17397}
17398_ACEOF
17399if ac_fn_c_try_link "$LINENO"
17400then :
17401  eval $cacheid=yes
17402else case e in #(
17403  e) eval $cacheid=no ;;
17404esac
17405fi
17406rm -f core conftest.err conftest.$ac_objext conftest.beam \
17407    conftest$ac_exeext conftest.$ac_ext ;;
17408esac
17409fi
17410
17411
17412		CFLAGS="$xorg_testset_save_CFLAGS"
17413
17414		eval supported=\$$cacheid
17415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17416printf "%s\n" "$supported" >&6; }
17417		if test "$supported" = "yes" ; then
17418			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17419			found="yes"
17420		fi
17421	fi
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437xorg_testset_save_CFLAGS="$CFLAGS"
17438
17439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17443if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17444then :
17445  printf %s "(cached) " >&6
17446else case e in #(
17447  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448/* end confdefs.h.  */
17449int i;
17450_ACEOF
17451if ac_fn_c_try_compile "$LINENO"
17452then :
17453  xorg_cv_cc_flag_unknown_warning_option=yes
17454else case e in #(
17455  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17456esac
17457fi
17458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17459esac
17460fi
17461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17464	CFLAGS="$xorg_testset_save_CFLAGS"
17465fi
17466
17467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17470	fi
17471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17472	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17474if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17475then :
17476  printf %s "(cached) " >&6
17477else case e in #(
17478  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479/* end confdefs.h.  */
17480int i;
17481_ACEOF
17482if ac_fn_c_try_compile "$LINENO"
17483then :
17484  xorg_cv_cc_flag_unused_command_line_argument=yes
17485else case e in #(
17486  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17487esac
17488fi
17489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17490esac
17491fi
17492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17495	CFLAGS="$xorg_testset_save_CFLAGS"
17496fi
17497
17498found="no"
17499
17500	if test $found = "no" ; then
17501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17503		fi
17504
17505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17507		fi
17508
17509		CFLAGS="$CFLAGS -Werror=return-type"
17510
17511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17512printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17513		cacheid=xorg_cv_cc_flag__Werror_return_type
17514		if eval test \${$cacheid+y}
17515then :
17516  printf %s "(cached) " >&6
17517else case e in #(
17518  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519/* end confdefs.h.  */
17520int i;
17521int
17522main (void)
17523{
17524
17525  ;
17526  return 0;
17527}
17528_ACEOF
17529if ac_fn_c_try_link "$LINENO"
17530then :
17531  eval $cacheid=yes
17532else case e in #(
17533  e) eval $cacheid=no ;;
17534esac
17535fi
17536rm -f core conftest.err conftest.$ac_objext conftest.beam \
17537    conftest$ac_exeext conftest.$ac_ext ;;
17538esac
17539fi
17540
17541
17542		CFLAGS="$xorg_testset_save_CFLAGS"
17543
17544		eval supported=\$$cacheid
17545		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17546printf "%s\n" "$supported" >&6; }
17547		if test "$supported" = "yes" ; then
17548			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17549			found="yes"
17550		fi
17551	fi
17552
17553	if test $found = "no" ; then
17554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17556		fi
17557
17558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17560		fi
17561
17562		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17563
17564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17565printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17566		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17567		if eval test \${$cacheid+y}
17568then :
17569  printf %s "(cached) " >&6
17570else case e in #(
17571  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h.  */
17573int i;
17574int
17575main (void)
17576{
17577
17578  ;
17579  return 0;
17580}
17581_ACEOF
17582if ac_fn_c_try_link "$LINENO"
17583then :
17584  eval $cacheid=yes
17585else case e in #(
17586  e) eval $cacheid=no ;;
17587esac
17588fi
17589rm -f core conftest.err conftest.$ac_objext conftest.beam \
17590    conftest$ac_exeext conftest.$ac_ext ;;
17591esac
17592fi
17593
17594
17595		CFLAGS="$xorg_testset_save_CFLAGS"
17596
17597		eval supported=\$$cacheid
17598		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17599printf "%s\n" "$supported" >&6; }
17600		if test "$supported" = "yes" ; then
17601			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17602			found="yes"
17603		fi
17604	fi
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620xorg_testset_save_CFLAGS="$CFLAGS"
17621
17622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17625printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17626if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17627then :
17628  printf %s "(cached) " >&6
17629else case e in #(
17630  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631/* end confdefs.h.  */
17632int i;
17633_ACEOF
17634if ac_fn_c_try_compile "$LINENO"
17635then :
17636  xorg_cv_cc_flag_unknown_warning_option=yes
17637else case e in #(
17638  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17639esac
17640fi
17641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17642esac
17643fi
17644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17647	CFLAGS="$xorg_testset_save_CFLAGS"
17648fi
17649
17650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17653	fi
17654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17657if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17658then :
17659  printf %s "(cached) " >&6
17660else case e in #(
17661  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662/* end confdefs.h.  */
17663int i;
17664_ACEOF
17665if ac_fn_c_try_compile "$LINENO"
17666then :
17667  xorg_cv_cc_flag_unused_command_line_argument=yes
17668else case e in #(
17669  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17670esac
17671fi
17672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17673esac
17674fi
17675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17677	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17678	CFLAGS="$xorg_testset_save_CFLAGS"
17679fi
17680
17681found="no"
17682
17683	if test $found = "no" ; then
17684		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17685			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17686		fi
17687
17688		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17689			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17690		fi
17691
17692		CFLAGS="$CFLAGS -Werror=trigraphs"
17693
17694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17695printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17696		cacheid=xorg_cv_cc_flag__Werror_trigraphs
17697		if eval test \${$cacheid+y}
17698then :
17699  printf %s "(cached) " >&6
17700else case e in #(
17701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702/* end confdefs.h.  */
17703int i;
17704int
17705main (void)
17706{
17707
17708  ;
17709  return 0;
17710}
17711_ACEOF
17712if ac_fn_c_try_link "$LINENO"
17713then :
17714  eval $cacheid=yes
17715else case e in #(
17716  e) eval $cacheid=no ;;
17717esac
17718fi
17719rm -f core conftest.err conftest.$ac_objext conftest.beam \
17720    conftest$ac_exeext conftest.$ac_ext ;;
17721esac
17722fi
17723
17724
17725		CFLAGS="$xorg_testset_save_CFLAGS"
17726
17727		eval supported=\$$cacheid
17728		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17729printf "%s\n" "$supported" >&6; }
17730		if test "$supported" = "yes" ; then
17731			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17732			found="yes"
17733		fi
17734	fi
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750xorg_testset_save_CFLAGS="$CFLAGS"
17751
17752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17754	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17755printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17756if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17757then :
17758  printf %s "(cached) " >&6
17759else case e in #(
17760  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h.  */
17762int i;
17763_ACEOF
17764if ac_fn_c_try_compile "$LINENO"
17765then :
17766  xorg_cv_cc_flag_unknown_warning_option=yes
17767else case e in #(
17768  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17769esac
17770fi
17771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17772esac
17773fi
17774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17775printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17777	CFLAGS="$xorg_testset_save_CFLAGS"
17778fi
17779
17780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17783	fi
17784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17786printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17787if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17788then :
17789  printf %s "(cached) " >&6
17790else case e in #(
17791  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792/* end confdefs.h.  */
17793int i;
17794_ACEOF
17795if ac_fn_c_try_compile "$LINENO"
17796then :
17797  xorg_cv_cc_flag_unused_command_line_argument=yes
17798else case e in #(
17799  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17800esac
17801fi
17802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17803esac
17804fi
17805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17806printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17808	CFLAGS="$xorg_testset_save_CFLAGS"
17809fi
17810
17811found="no"
17812
17813	if test $found = "no" ; then
17814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17816		fi
17817
17818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17820		fi
17821
17822		CFLAGS="$CFLAGS -Werror=array-bounds"
17823
17824		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17825printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17826		cacheid=xorg_cv_cc_flag__Werror_array_bounds
17827		if eval test \${$cacheid+y}
17828then :
17829  printf %s "(cached) " >&6
17830else case e in #(
17831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832/* end confdefs.h.  */
17833int i;
17834int
17835main (void)
17836{
17837
17838  ;
17839  return 0;
17840}
17841_ACEOF
17842if ac_fn_c_try_link "$LINENO"
17843then :
17844  eval $cacheid=yes
17845else case e in #(
17846  e) eval $cacheid=no ;;
17847esac
17848fi
17849rm -f core conftest.err conftest.$ac_objext conftest.beam \
17850    conftest$ac_exeext conftest.$ac_ext ;;
17851esac
17852fi
17853
17854
17855		CFLAGS="$xorg_testset_save_CFLAGS"
17856
17857		eval supported=\$$cacheid
17858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17859printf "%s\n" "$supported" >&6; }
17860		if test "$supported" = "yes" ; then
17861			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17862			found="yes"
17863		fi
17864	fi
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880xorg_testset_save_CFLAGS="$CFLAGS"
17881
17882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17885printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17886if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17887then :
17888  printf %s "(cached) " >&6
17889else case e in #(
17890  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891/* end confdefs.h.  */
17892int i;
17893_ACEOF
17894if ac_fn_c_try_compile "$LINENO"
17895then :
17896  xorg_cv_cc_flag_unknown_warning_option=yes
17897else case e in #(
17898  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17899esac
17900fi
17901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17902esac
17903fi
17904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17907	CFLAGS="$xorg_testset_save_CFLAGS"
17908fi
17909
17910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17913	fi
17914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17917if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17918then :
17919  printf %s "(cached) " >&6
17920else case e in #(
17921  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922/* end confdefs.h.  */
17923int i;
17924_ACEOF
17925if ac_fn_c_try_compile "$LINENO"
17926then :
17927  xorg_cv_cc_flag_unused_command_line_argument=yes
17928else case e in #(
17929  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17930esac
17931fi
17932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17933esac
17934fi
17935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17936printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17938	CFLAGS="$xorg_testset_save_CFLAGS"
17939fi
17940
17941found="no"
17942
17943	if test $found = "no" ; then
17944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17946		fi
17947
17948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17950		fi
17951
17952		CFLAGS="$CFLAGS -Werror=write-strings"
17953
17954		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17955printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17956		cacheid=xorg_cv_cc_flag__Werror_write_strings
17957		if eval test \${$cacheid+y}
17958then :
17959  printf %s "(cached) " >&6
17960else case e in #(
17961  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962/* end confdefs.h.  */
17963int i;
17964int
17965main (void)
17966{
17967
17968  ;
17969  return 0;
17970}
17971_ACEOF
17972if ac_fn_c_try_link "$LINENO"
17973then :
17974  eval $cacheid=yes
17975else case e in #(
17976  e) eval $cacheid=no ;;
17977esac
17978fi
17979rm -f core conftest.err conftest.$ac_objext conftest.beam \
17980    conftest$ac_exeext conftest.$ac_ext ;;
17981esac
17982fi
17983
17984
17985		CFLAGS="$xorg_testset_save_CFLAGS"
17986
17987		eval supported=\$$cacheid
17988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17989printf "%s\n" "$supported" >&6; }
17990		if test "$supported" = "yes" ; then
17991			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17992			found="yes"
17993		fi
17994	fi
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010xorg_testset_save_CFLAGS="$CFLAGS"
18011
18012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18016if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18017then :
18018  printf %s "(cached) " >&6
18019else case e in #(
18020  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021/* end confdefs.h.  */
18022int i;
18023_ACEOF
18024if ac_fn_c_try_compile "$LINENO"
18025then :
18026  xorg_cv_cc_flag_unknown_warning_option=yes
18027else case e in #(
18028  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18029esac
18030fi
18031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18032esac
18033fi
18034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18036	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18037	CFLAGS="$xorg_testset_save_CFLAGS"
18038fi
18039
18040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18041	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18042		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18043	fi
18044	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18047if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18048then :
18049  printf %s "(cached) " >&6
18050else case e in #(
18051  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052/* end confdefs.h.  */
18053int i;
18054_ACEOF
18055if ac_fn_c_try_compile "$LINENO"
18056then :
18057  xorg_cv_cc_flag_unused_command_line_argument=yes
18058else case e in #(
18059  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18060esac
18061fi
18062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18063esac
18064fi
18065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18068	CFLAGS="$xorg_testset_save_CFLAGS"
18069fi
18070
18071found="no"
18072
18073	if test $found = "no" ; then
18074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18076		fi
18077
18078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18080		fi
18081
18082		CFLAGS="$CFLAGS -Werror=address"
18083
18084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
18085printf %s "checking if $CC supports -Werror=address... " >&6; }
18086		cacheid=xorg_cv_cc_flag__Werror_address
18087		if eval test \${$cacheid+y}
18088then :
18089  printf %s "(cached) " >&6
18090else case e in #(
18091  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092/* end confdefs.h.  */
18093int i;
18094int
18095main (void)
18096{
18097
18098  ;
18099  return 0;
18100}
18101_ACEOF
18102if ac_fn_c_try_link "$LINENO"
18103then :
18104  eval $cacheid=yes
18105else case e in #(
18106  e) eval $cacheid=no ;;
18107esac
18108fi
18109rm -f core conftest.err conftest.$ac_objext conftest.beam \
18110    conftest$ac_exeext conftest.$ac_ext ;;
18111esac
18112fi
18113
18114
18115		CFLAGS="$xorg_testset_save_CFLAGS"
18116
18117		eval supported=\$$cacheid
18118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18119printf "%s\n" "$supported" >&6; }
18120		if test "$supported" = "yes" ; then
18121			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
18122			found="yes"
18123		fi
18124	fi
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140xorg_testset_save_CFLAGS="$CFLAGS"
18141
18142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18144	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18146if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18147then :
18148  printf %s "(cached) " >&6
18149else case e in #(
18150  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151/* end confdefs.h.  */
18152int i;
18153_ACEOF
18154if ac_fn_c_try_compile "$LINENO"
18155then :
18156  xorg_cv_cc_flag_unknown_warning_option=yes
18157else case e in #(
18158  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18159esac
18160fi
18161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18162esac
18163fi
18164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18167	CFLAGS="$xorg_testset_save_CFLAGS"
18168fi
18169
18170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18173	fi
18174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18177if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18178then :
18179  printf %s "(cached) " >&6
18180else case e in #(
18181  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182/* end confdefs.h.  */
18183int i;
18184_ACEOF
18185if ac_fn_c_try_compile "$LINENO"
18186then :
18187  xorg_cv_cc_flag_unused_command_line_argument=yes
18188else case e in #(
18189  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18190esac
18191fi
18192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18193esac
18194fi
18195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18198	CFLAGS="$xorg_testset_save_CFLAGS"
18199fi
18200
18201found="no"
18202
18203	if test $found = "no" ; then
18204		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18206		fi
18207
18208		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18210		fi
18211
18212		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
18213
18214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
18215printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
18216		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
18217		if eval test \${$cacheid+y}
18218then :
18219  printf %s "(cached) " >&6
18220else case e in #(
18221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222/* end confdefs.h.  */
18223int i;
18224int
18225main (void)
18226{
18227
18228  ;
18229  return 0;
18230}
18231_ACEOF
18232if ac_fn_c_try_link "$LINENO"
18233then :
18234  eval $cacheid=yes
18235else case e in #(
18236  e) eval $cacheid=no ;;
18237esac
18238fi
18239rm -f core conftest.err conftest.$ac_objext conftest.beam \
18240    conftest$ac_exeext conftest.$ac_ext ;;
18241esac
18242fi
18243
18244
18245		CFLAGS="$xorg_testset_save_CFLAGS"
18246
18247		eval supported=\$$cacheid
18248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18249printf "%s\n" "$supported" >&6; }
18250		if test "$supported" = "yes" ; then
18251			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
18252			found="yes"
18253		fi
18254	fi
18255
18256	if test $found = "no" ; then
18257		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18259		fi
18260
18261		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18263		fi
18264
18265		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18266
18267		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
18268printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
18269		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
18270		if eval test \${$cacheid+y}
18271then :
18272  printf %s "(cached) " >&6
18273else case e in #(
18274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275/* end confdefs.h.  */
18276int i;
18277int
18278main (void)
18279{
18280
18281  ;
18282  return 0;
18283}
18284_ACEOF
18285if ac_fn_c_try_link "$LINENO"
18286then :
18287  eval $cacheid=yes
18288else case e in #(
18289  e) eval $cacheid=no ;;
18290esac
18291fi
18292rm -f core conftest.err conftest.$ac_objext conftest.beam \
18293    conftest$ac_exeext conftest.$ac_ext ;;
18294esac
18295fi
18296
18297
18298		CFLAGS="$xorg_testset_save_CFLAGS"
18299
18300		eval supported=\$$cacheid
18301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18302printf "%s\n" "$supported" >&6; }
18303		if test "$supported" = "yes" ; then
18304			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18305			found="yes"
18306		fi
18307	fi
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323xorg_testset_save_CFLAGS="$CFLAGS"
18324
18325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18328printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18329if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18330then :
18331  printf %s "(cached) " >&6
18332else case e in #(
18333  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334/* end confdefs.h.  */
18335int i;
18336_ACEOF
18337if ac_fn_c_try_compile "$LINENO"
18338then :
18339  xorg_cv_cc_flag_unknown_warning_option=yes
18340else case e in #(
18341  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18342esac
18343fi
18344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18345esac
18346fi
18347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18348printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18350	CFLAGS="$xorg_testset_save_CFLAGS"
18351fi
18352
18353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18356	fi
18357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18359printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18360if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18361then :
18362  printf %s "(cached) " >&6
18363else case e in #(
18364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365/* end confdefs.h.  */
18366int i;
18367_ACEOF
18368if ac_fn_c_try_compile "$LINENO"
18369then :
18370  xorg_cv_cc_flag_unused_command_line_argument=yes
18371else case e in #(
18372  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18373esac
18374fi
18375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18376esac
18377fi
18378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18381	CFLAGS="$xorg_testset_save_CFLAGS"
18382fi
18383
18384found="no"
18385
18386	if test $found = "no" ; then
18387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18389		fi
18390
18391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18393		fi
18394
18395		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18396
18397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18398printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18399		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18400		if eval test \${$cacheid+y}
18401then :
18402  printf %s "(cached) " >&6
18403else case e in #(
18404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405/* end confdefs.h.  */
18406int i;
18407int
18408main (void)
18409{
18410
18411  ;
18412  return 0;
18413}
18414_ACEOF
18415if ac_fn_c_try_link "$LINENO"
18416then :
18417  eval $cacheid=yes
18418else case e in #(
18419  e) eval $cacheid=no ;;
18420esac
18421fi
18422rm -f core conftest.err conftest.$ac_objext conftest.beam \
18423    conftest$ac_exeext conftest.$ac_ext ;;
18424esac
18425fi
18426
18427
18428		CFLAGS="$xorg_testset_save_CFLAGS"
18429
18430		eval supported=\$$cacheid
18431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18432printf "%s\n" "$supported" >&6; }
18433		if test "$supported" = "yes" ; then
18434			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18435			found="yes"
18436		fi
18437	fi
18438
18439 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18440else
18441{ 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
18442printf "%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;}
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456xorg_testset_save_CFLAGS="$CFLAGS"
18457
18458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18462if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18463then :
18464  printf %s "(cached) " >&6
18465else case e in #(
18466  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467/* end confdefs.h.  */
18468int i;
18469_ACEOF
18470if ac_fn_c_try_compile "$LINENO"
18471then :
18472  xorg_cv_cc_flag_unknown_warning_option=yes
18473else case e in #(
18474  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18475esac
18476fi
18477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18478esac
18479fi
18480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18483	CFLAGS="$xorg_testset_save_CFLAGS"
18484fi
18485
18486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18489	fi
18490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18493if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18494then :
18495  printf %s "(cached) " >&6
18496else case e in #(
18497  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498/* end confdefs.h.  */
18499int i;
18500_ACEOF
18501if ac_fn_c_try_compile "$LINENO"
18502then :
18503  xorg_cv_cc_flag_unused_command_line_argument=yes
18504else case e in #(
18505  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18506esac
18507fi
18508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18509esac
18510fi
18511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18512printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18513	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18514	CFLAGS="$xorg_testset_save_CFLAGS"
18515fi
18516
18517found="no"
18518
18519	if test $found = "no" ; then
18520		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18521			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18522		fi
18523
18524		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18525			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18526		fi
18527
18528		CFLAGS="$CFLAGS -Wimplicit"
18529
18530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18531printf %s "checking if $CC supports -Wimplicit... " >&6; }
18532		cacheid=xorg_cv_cc_flag__Wimplicit
18533		if eval test \${$cacheid+y}
18534then :
18535  printf %s "(cached) " >&6
18536else case e in #(
18537  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538/* end confdefs.h.  */
18539int i;
18540int
18541main (void)
18542{
18543
18544  ;
18545  return 0;
18546}
18547_ACEOF
18548if ac_fn_c_try_link "$LINENO"
18549then :
18550  eval $cacheid=yes
18551else case e in #(
18552  e) eval $cacheid=no ;;
18553esac
18554fi
18555rm -f core conftest.err conftest.$ac_objext conftest.beam \
18556    conftest$ac_exeext conftest.$ac_ext ;;
18557esac
18558fi
18559
18560
18561		CFLAGS="$xorg_testset_save_CFLAGS"
18562
18563		eval supported=\$$cacheid
18564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18565printf "%s\n" "$supported" >&6; }
18566		if test "$supported" = "yes" ; then
18567			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18568			found="yes"
18569		fi
18570	fi
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586xorg_testset_save_CFLAGS="$CFLAGS"
18587
18588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18590	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18592if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18593then :
18594  printf %s "(cached) " >&6
18595else case e in #(
18596  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597/* end confdefs.h.  */
18598int i;
18599_ACEOF
18600if ac_fn_c_try_compile "$LINENO"
18601then :
18602  xorg_cv_cc_flag_unknown_warning_option=yes
18603else case e in #(
18604  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18605esac
18606fi
18607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18608esac
18609fi
18610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18613	CFLAGS="$xorg_testset_save_CFLAGS"
18614fi
18615
18616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18619	fi
18620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18623if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18624then :
18625  printf %s "(cached) " >&6
18626else case e in #(
18627  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628/* end confdefs.h.  */
18629int i;
18630_ACEOF
18631if ac_fn_c_try_compile "$LINENO"
18632then :
18633  xorg_cv_cc_flag_unused_command_line_argument=yes
18634else case e in #(
18635  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18636esac
18637fi
18638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18639esac
18640fi
18641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18644	CFLAGS="$xorg_testset_save_CFLAGS"
18645fi
18646
18647found="no"
18648
18649	if test $found = "no" ; then
18650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18652		fi
18653
18654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18656		fi
18657
18658		CFLAGS="$CFLAGS -Wnonnull"
18659
18660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18661printf %s "checking if $CC supports -Wnonnull... " >&6; }
18662		cacheid=xorg_cv_cc_flag__Wnonnull
18663		if eval test \${$cacheid+y}
18664then :
18665  printf %s "(cached) " >&6
18666else case e in #(
18667  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668/* end confdefs.h.  */
18669int i;
18670int
18671main (void)
18672{
18673
18674  ;
18675  return 0;
18676}
18677_ACEOF
18678if ac_fn_c_try_link "$LINENO"
18679then :
18680  eval $cacheid=yes
18681else case e in #(
18682  e) eval $cacheid=no ;;
18683esac
18684fi
18685rm -f core conftest.err conftest.$ac_objext conftest.beam \
18686    conftest$ac_exeext conftest.$ac_ext ;;
18687esac
18688fi
18689
18690
18691		CFLAGS="$xorg_testset_save_CFLAGS"
18692
18693		eval supported=\$$cacheid
18694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18695printf "%s\n" "$supported" >&6; }
18696		if test "$supported" = "yes" ; then
18697			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18698			found="yes"
18699		fi
18700	fi
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716xorg_testset_save_CFLAGS="$CFLAGS"
18717
18718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18719	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18722if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18723then :
18724  printf %s "(cached) " >&6
18725else case e in #(
18726  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727/* end confdefs.h.  */
18728int i;
18729_ACEOF
18730if ac_fn_c_try_compile "$LINENO"
18731then :
18732  xorg_cv_cc_flag_unknown_warning_option=yes
18733else case e in #(
18734  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18735esac
18736fi
18737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18738esac
18739fi
18740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18743	CFLAGS="$xorg_testset_save_CFLAGS"
18744fi
18745
18746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18749	fi
18750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18754then :
18755  printf %s "(cached) " >&6
18756else case e in #(
18757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758/* end confdefs.h.  */
18759int i;
18760_ACEOF
18761if ac_fn_c_try_compile "$LINENO"
18762then :
18763  xorg_cv_cc_flag_unused_command_line_argument=yes
18764else case e in #(
18765  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18766esac
18767fi
18768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18769esac
18770fi
18771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18772printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18774	CFLAGS="$xorg_testset_save_CFLAGS"
18775fi
18776
18777found="no"
18778
18779	if test $found = "no" ; then
18780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18782		fi
18783
18784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18786		fi
18787
18788		CFLAGS="$CFLAGS -Winit-self"
18789
18790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18791printf %s "checking if $CC supports -Winit-self... " >&6; }
18792		cacheid=xorg_cv_cc_flag__Winit_self
18793		if eval test \${$cacheid+y}
18794then :
18795  printf %s "(cached) " >&6
18796else case e in #(
18797  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798/* end confdefs.h.  */
18799int i;
18800int
18801main (void)
18802{
18803
18804  ;
18805  return 0;
18806}
18807_ACEOF
18808if ac_fn_c_try_link "$LINENO"
18809then :
18810  eval $cacheid=yes
18811else case e in #(
18812  e) eval $cacheid=no ;;
18813esac
18814fi
18815rm -f core conftest.err conftest.$ac_objext conftest.beam \
18816    conftest$ac_exeext conftest.$ac_ext ;;
18817esac
18818fi
18819
18820
18821		CFLAGS="$xorg_testset_save_CFLAGS"
18822
18823		eval supported=\$$cacheid
18824		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18825printf "%s\n" "$supported" >&6; }
18826		if test "$supported" = "yes" ; then
18827			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18828			found="yes"
18829		fi
18830	fi
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846xorg_testset_save_CFLAGS="$CFLAGS"
18847
18848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18850	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18852if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18853then :
18854  printf %s "(cached) " >&6
18855else case e in #(
18856  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857/* end confdefs.h.  */
18858int i;
18859_ACEOF
18860if ac_fn_c_try_compile "$LINENO"
18861then :
18862  xorg_cv_cc_flag_unknown_warning_option=yes
18863else case e in #(
18864  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18865esac
18866fi
18867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18868esac
18869fi
18870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18871printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18872	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18873	CFLAGS="$xorg_testset_save_CFLAGS"
18874fi
18875
18876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18877	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18878		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18879	fi
18880	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18882printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18883if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18884then :
18885  printf %s "(cached) " >&6
18886else case e in #(
18887  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888/* end confdefs.h.  */
18889int i;
18890_ACEOF
18891if ac_fn_c_try_compile "$LINENO"
18892then :
18893  xorg_cv_cc_flag_unused_command_line_argument=yes
18894else case e in #(
18895  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18896esac
18897fi
18898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18899esac
18900fi
18901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18902printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18904	CFLAGS="$xorg_testset_save_CFLAGS"
18905fi
18906
18907found="no"
18908
18909	if test $found = "no" ; then
18910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18912		fi
18913
18914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18916		fi
18917
18918		CFLAGS="$CFLAGS -Wmain"
18919
18920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18921printf %s "checking if $CC supports -Wmain... " >&6; }
18922		cacheid=xorg_cv_cc_flag__Wmain
18923		if eval test \${$cacheid+y}
18924then :
18925  printf %s "(cached) " >&6
18926else case e in #(
18927  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928/* end confdefs.h.  */
18929int i;
18930int
18931main (void)
18932{
18933
18934  ;
18935  return 0;
18936}
18937_ACEOF
18938if ac_fn_c_try_link "$LINENO"
18939then :
18940  eval $cacheid=yes
18941else case e in #(
18942  e) eval $cacheid=no ;;
18943esac
18944fi
18945rm -f core conftest.err conftest.$ac_objext conftest.beam \
18946    conftest$ac_exeext conftest.$ac_ext ;;
18947esac
18948fi
18949
18950
18951		CFLAGS="$xorg_testset_save_CFLAGS"
18952
18953		eval supported=\$$cacheid
18954		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18955printf "%s\n" "$supported" >&6; }
18956		if test "$supported" = "yes" ; then
18957			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18958			found="yes"
18959		fi
18960	fi
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976xorg_testset_save_CFLAGS="$CFLAGS"
18977
18978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18979	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18980	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18981printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18982if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18983then :
18984  printf %s "(cached) " >&6
18985else case e in #(
18986  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987/* end confdefs.h.  */
18988int i;
18989_ACEOF
18990if ac_fn_c_try_compile "$LINENO"
18991then :
18992  xorg_cv_cc_flag_unknown_warning_option=yes
18993else case e in #(
18994  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18995esac
18996fi
18997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18998esac
18999fi
19000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19001printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19002	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19003	CFLAGS="$xorg_testset_save_CFLAGS"
19004fi
19005
19006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19007	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19008		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19009	fi
19010	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19011	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19012printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19013if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19014then :
19015  printf %s "(cached) " >&6
19016else case e in #(
19017  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018/* end confdefs.h.  */
19019int i;
19020_ACEOF
19021if ac_fn_c_try_compile "$LINENO"
19022then :
19023  xorg_cv_cc_flag_unused_command_line_argument=yes
19024else case e in #(
19025  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19026esac
19027fi
19028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19029esac
19030fi
19031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19032printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19033	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19034	CFLAGS="$xorg_testset_save_CFLAGS"
19035fi
19036
19037found="no"
19038
19039	if test $found = "no" ; then
19040		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19041			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19042		fi
19043
19044		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19045			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19046		fi
19047
19048		CFLAGS="$CFLAGS -Wmissing-braces"
19049
19050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
19051printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
19052		cacheid=xorg_cv_cc_flag__Wmissing_braces
19053		if eval test \${$cacheid+y}
19054then :
19055  printf %s "(cached) " >&6
19056else case e in #(
19057  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058/* end confdefs.h.  */
19059int i;
19060int
19061main (void)
19062{
19063
19064  ;
19065  return 0;
19066}
19067_ACEOF
19068if ac_fn_c_try_link "$LINENO"
19069then :
19070  eval $cacheid=yes
19071else case e in #(
19072  e) eval $cacheid=no ;;
19073esac
19074fi
19075rm -f core conftest.err conftest.$ac_objext conftest.beam \
19076    conftest$ac_exeext conftest.$ac_ext ;;
19077esac
19078fi
19079
19080
19081		CFLAGS="$xorg_testset_save_CFLAGS"
19082
19083		eval supported=\$$cacheid
19084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19085printf "%s\n" "$supported" >&6; }
19086		if test "$supported" = "yes" ; then
19087			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
19088			found="yes"
19089		fi
19090	fi
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106xorg_testset_save_CFLAGS="$CFLAGS"
19107
19108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19112if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19113then :
19114  printf %s "(cached) " >&6
19115else case e in #(
19116  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117/* end confdefs.h.  */
19118int i;
19119_ACEOF
19120if ac_fn_c_try_compile "$LINENO"
19121then :
19122  xorg_cv_cc_flag_unknown_warning_option=yes
19123else case e in #(
19124  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19125esac
19126fi
19127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19128esac
19129fi
19130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19133	CFLAGS="$xorg_testset_save_CFLAGS"
19134fi
19135
19136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19139	fi
19140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19143if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19144then :
19145  printf %s "(cached) " >&6
19146else case e in #(
19147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148/* end confdefs.h.  */
19149int i;
19150_ACEOF
19151if ac_fn_c_try_compile "$LINENO"
19152then :
19153  xorg_cv_cc_flag_unused_command_line_argument=yes
19154else case e in #(
19155  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19156esac
19157fi
19158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19159esac
19160fi
19161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19163	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19164	CFLAGS="$xorg_testset_save_CFLAGS"
19165fi
19166
19167found="no"
19168
19169	if test $found = "no" ; then
19170		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19171			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19172		fi
19173
19174		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19175			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19176		fi
19177
19178		CFLAGS="$CFLAGS -Wsequence-point"
19179
19180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
19181printf %s "checking if $CC supports -Wsequence-point... " >&6; }
19182		cacheid=xorg_cv_cc_flag__Wsequence_point
19183		if eval test \${$cacheid+y}
19184then :
19185  printf %s "(cached) " >&6
19186else case e in #(
19187  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188/* end confdefs.h.  */
19189int i;
19190int
19191main (void)
19192{
19193
19194  ;
19195  return 0;
19196}
19197_ACEOF
19198if ac_fn_c_try_link "$LINENO"
19199then :
19200  eval $cacheid=yes
19201else case e in #(
19202  e) eval $cacheid=no ;;
19203esac
19204fi
19205rm -f core conftest.err conftest.$ac_objext conftest.beam \
19206    conftest$ac_exeext conftest.$ac_ext ;;
19207esac
19208fi
19209
19210
19211		CFLAGS="$xorg_testset_save_CFLAGS"
19212
19213		eval supported=\$$cacheid
19214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19215printf "%s\n" "$supported" >&6; }
19216		if test "$supported" = "yes" ; then
19217			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
19218			found="yes"
19219		fi
19220	fi
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236xorg_testset_save_CFLAGS="$CFLAGS"
19237
19238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19242if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19243then :
19244  printf %s "(cached) " >&6
19245else case e in #(
19246  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247/* end confdefs.h.  */
19248int i;
19249_ACEOF
19250if ac_fn_c_try_compile "$LINENO"
19251then :
19252  xorg_cv_cc_flag_unknown_warning_option=yes
19253else case e in #(
19254  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19255esac
19256fi
19257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19258esac
19259fi
19260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19263	CFLAGS="$xorg_testset_save_CFLAGS"
19264fi
19265
19266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19269	fi
19270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19273if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19274then :
19275  printf %s "(cached) " >&6
19276else case e in #(
19277  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278/* end confdefs.h.  */
19279int i;
19280_ACEOF
19281if ac_fn_c_try_compile "$LINENO"
19282then :
19283  xorg_cv_cc_flag_unused_command_line_argument=yes
19284else case e in #(
19285  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19286esac
19287fi
19288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19289esac
19290fi
19291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19292printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19294	CFLAGS="$xorg_testset_save_CFLAGS"
19295fi
19296
19297found="no"
19298
19299	if test $found = "no" ; then
19300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19302		fi
19303
19304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19306		fi
19307
19308		CFLAGS="$CFLAGS -Wreturn-type"
19309
19310		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
19311printf %s "checking if $CC supports -Wreturn-type... " >&6; }
19312		cacheid=xorg_cv_cc_flag__Wreturn_type
19313		if eval test \${$cacheid+y}
19314then :
19315  printf %s "(cached) " >&6
19316else case e in #(
19317  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19318/* end confdefs.h.  */
19319int i;
19320int
19321main (void)
19322{
19323
19324  ;
19325  return 0;
19326}
19327_ACEOF
19328if ac_fn_c_try_link "$LINENO"
19329then :
19330  eval $cacheid=yes
19331else case e in #(
19332  e) eval $cacheid=no ;;
19333esac
19334fi
19335rm -f core conftest.err conftest.$ac_objext conftest.beam \
19336    conftest$ac_exeext conftest.$ac_ext ;;
19337esac
19338fi
19339
19340
19341		CFLAGS="$xorg_testset_save_CFLAGS"
19342
19343		eval supported=\$$cacheid
19344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19345printf "%s\n" "$supported" >&6; }
19346		if test "$supported" = "yes" ; then
19347			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19348			found="yes"
19349		fi
19350	fi
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366xorg_testset_save_CFLAGS="$CFLAGS"
19367
19368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19372if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19373then :
19374  printf %s "(cached) " >&6
19375else case e in #(
19376  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377/* end confdefs.h.  */
19378int i;
19379_ACEOF
19380if ac_fn_c_try_compile "$LINENO"
19381then :
19382  xorg_cv_cc_flag_unknown_warning_option=yes
19383else case e in #(
19384  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19385esac
19386fi
19387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19388esac
19389fi
19390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19393	CFLAGS="$xorg_testset_save_CFLAGS"
19394fi
19395
19396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19399	fi
19400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19403if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19404then :
19405  printf %s "(cached) " >&6
19406else case e in #(
19407  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408/* end confdefs.h.  */
19409int i;
19410_ACEOF
19411if ac_fn_c_try_compile "$LINENO"
19412then :
19413  xorg_cv_cc_flag_unused_command_line_argument=yes
19414else case e in #(
19415  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19416esac
19417fi
19418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19419esac
19420fi
19421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19424	CFLAGS="$xorg_testset_save_CFLAGS"
19425fi
19426
19427found="no"
19428
19429	if test $found = "no" ; then
19430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19432		fi
19433
19434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19436		fi
19437
19438		CFLAGS="$CFLAGS -Wtrigraphs"
19439
19440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19441printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19442		cacheid=xorg_cv_cc_flag__Wtrigraphs
19443		if eval test \${$cacheid+y}
19444then :
19445  printf %s "(cached) " >&6
19446else case e in #(
19447  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448/* end confdefs.h.  */
19449int i;
19450int
19451main (void)
19452{
19453
19454  ;
19455  return 0;
19456}
19457_ACEOF
19458if ac_fn_c_try_link "$LINENO"
19459then :
19460  eval $cacheid=yes
19461else case e in #(
19462  e) eval $cacheid=no ;;
19463esac
19464fi
19465rm -f core conftest.err conftest.$ac_objext conftest.beam \
19466    conftest$ac_exeext conftest.$ac_ext ;;
19467esac
19468fi
19469
19470
19471		CFLAGS="$xorg_testset_save_CFLAGS"
19472
19473		eval supported=\$$cacheid
19474		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19475printf "%s\n" "$supported" >&6; }
19476		if test "$supported" = "yes" ; then
19477			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19478			found="yes"
19479		fi
19480	fi
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496xorg_testset_save_CFLAGS="$CFLAGS"
19497
19498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19501printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19502if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19503then :
19504  printf %s "(cached) " >&6
19505else case e in #(
19506  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507/* end confdefs.h.  */
19508int i;
19509_ACEOF
19510if ac_fn_c_try_compile "$LINENO"
19511then :
19512  xorg_cv_cc_flag_unknown_warning_option=yes
19513else case e in #(
19514  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19515esac
19516fi
19517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19518esac
19519fi
19520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19523	CFLAGS="$xorg_testset_save_CFLAGS"
19524fi
19525
19526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19529	fi
19530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19533if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19534then :
19535  printf %s "(cached) " >&6
19536else case e in #(
19537  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538/* end confdefs.h.  */
19539int i;
19540_ACEOF
19541if ac_fn_c_try_compile "$LINENO"
19542then :
19543  xorg_cv_cc_flag_unused_command_line_argument=yes
19544else case e in #(
19545  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19546esac
19547fi
19548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19549esac
19550fi
19551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19552printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19554	CFLAGS="$xorg_testset_save_CFLAGS"
19555fi
19556
19557found="no"
19558
19559	if test $found = "no" ; then
19560		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19562		fi
19563
19564		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19566		fi
19567
19568		CFLAGS="$CFLAGS -Warray-bounds"
19569
19570		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19571printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19572		cacheid=xorg_cv_cc_flag__Warray_bounds
19573		if eval test \${$cacheid+y}
19574then :
19575  printf %s "(cached) " >&6
19576else case e in #(
19577  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578/* end confdefs.h.  */
19579int i;
19580int
19581main (void)
19582{
19583
19584  ;
19585  return 0;
19586}
19587_ACEOF
19588if ac_fn_c_try_link "$LINENO"
19589then :
19590  eval $cacheid=yes
19591else case e in #(
19592  e) eval $cacheid=no ;;
19593esac
19594fi
19595rm -f core conftest.err conftest.$ac_objext conftest.beam \
19596    conftest$ac_exeext conftest.$ac_ext ;;
19597esac
19598fi
19599
19600
19601		CFLAGS="$xorg_testset_save_CFLAGS"
19602
19603		eval supported=\$$cacheid
19604		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19605printf "%s\n" "$supported" >&6; }
19606		if test "$supported" = "yes" ; then
19607			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19608			found="yes"
19609		fi
19610	fi
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626xorg_testset_save_CFLAGS="$CFLAGS"
19627
19628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19629	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19631printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19632if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19633then :
19634  printf %s "(cached) " >&6
19635else case e in #(
19636  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637/* end confdefs.h.  */
19638int i;
19639_ACEOF
19640if ac_fn_c_try_compile "$LINENO"
19641then :
19642  xorg_cv_cc_flag_unknown_warning_option=yes
19643else case e in #(
19644  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19645esac
19646fi
19647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19648esac
19649fi
19650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19651printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19652	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19653	CFLAGS="$xorg_testset_save_CFLAGS"
19654fi
19655
19656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19657	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19658		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19659	fi
19660	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19662printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19663if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19664then :
19665  printf %s "(cached) " >&6
19666else case e in #(
19667  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19668/* end confdefs.h.  */
19669int i;
19670_ACEOF
19671if ac_fn_c_try_compile "$LINENO"
19672then :
19673  xorg_cv_cc_flag_unused_command_line_argument=yes
19674else case e in #(
19675  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19676esac
19677fi
19678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19679esac
19680fi
19681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19683	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19684	CFLAGS="$xorg_testset_save_CFLAGS"
19685fi
19686
19687found="no"
19688
19689	if test $found = "no" ; then
19690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19692		fi
19693
19694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19696		fi
19697
19698		CFLAGS="$CFLAGS -Wwrite-strings"
19699
19700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19701printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19702		cacheid=xorg_cv_cc_flag__Wwrite_strings
19703		if eval test \${$cacheid+y}
19704then :
19705  printf %s "(cached) " >&6
19706else case e in #(
19707  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708/* end confdefs.h.  */
19709int i;
19710int
19711main (void)
19712{
19713
19714  ;
19715  return 0;
19716}
19717_ACEOF
19718if ac_fn_c_try_link "$LINENO"
19719then :
19720  eval $cacheid=yes
19721else case e in #(
19722  e) eval $cacheid=no ;;
19723esac
19724fi
19725rm -f core conftest.err conftest.$ac_objext conftest.beam \
19726    conftest$ac_exeext conftest.$ac_ext ;;
19727esac
19728fi
19729
19730
19731		CFLAGS="$xorg_testset_save_CFLAGS"
19732
19733		eval supported=\$$cacheid
19734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19735printf "%s\n" "$supported" >&6; }
19736		if test "$supported" = "yes" ; then
19737			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19738			found="yes"
19739		fi
19740	fi
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756xorg_testset_save_CFLAGS="$CFLAGS"
19757
19758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19759	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19761printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19762if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19763then :
19764  printf %s "(cached) " >&6
19765else case e in #(
19766  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767/* end confdefs.h.  */
19768int i;
19769_ACEOF
19770if ac_fn_c_try_compile "$LINENO"
19771then :
19772  xorg_cv_cc_flag_unknown_warning_option=yes
19773else case e in #(
19774  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19775esac
19776fi
19777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19778esac
19779fi
19780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19783	CFLAGS="$xorg_testset_save_CFLAGS"
19784fi
19785
19786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19789	fi
19790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19791	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19793if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19794then :
19795  printf %s "(cached) " >&6
19796else case e in #(
19797  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798/* end confdefs.h.  */
19799int i;
19800_ACEOF
19801if ac_fn_c_try_compile "$LINENO"
19802then :
19803  xorg_cv_cc_flag_unused_command_line_argument=yes
19804else case e in #(
19805  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19806esac
19807fi
19808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19809esac
19810fi
19811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19814	CFLAGS="$xorg_testset_save_CFLAGS"
19815fi
19816
19817found="no"
19818
19819	if test $found = "no" ; then
19820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19822		fi
19823
19824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19826		fi
19827
19828		CFLAGS="$CFLAGS -Waddress"
19829
19830		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19831printf %s "checking if $CC supports -Waddress... " >&6; }
19832		cacheid=xorg_cv_cc_flag__Waddress
19833		if eval test \${$cacheid+y}
19834then :
19835  printf %s "(cached) " >&6
19836else case e in #(
19837  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838/* end confdefs.h.  */
19839int i;
19840int
19841main (void)
19842{
19843
19844  ;
19845  return 0;
19846}
19847_ACEOF
19848if ac_fn_c_try_link "$LINENO"
19849then :
19850  eval $cacheid=yes
19851else case e in #(
19852  e) eval $cacheid=no ;;
19853esac
19854fi
19855rm -f core conftest.err conftest.$ac_objext conftest.beam \
19856    conftest$ac_exeext conftest.$ac_ext ;;
19857esac
19858fi
19859
19860
19861		CFLAGS="$xorg_testset_save_CFLAGS"
19862
19863		eval supported=\$$cacheid
19864		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19865printf "%s\n" "$supported" >&6; }
19866		if test "$supported" = "yes" ; then
19867			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19868			found="yes"
19869		fi
19870	fi
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886xorg_testset_save_CFLAGS="$CFLAGS"
19887
19888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19892if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19893then :
19894  printf %s "(cached) " >&6
19895else case e in #(
19896  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897/* end confdefs.h.  */
19898int i;
19899_ACEOF
19900if ac_fn_c_try_compile "$LINENO"
19901then :
19902  xorg_cv_cc_flag_unknown_warning_option=yes
19903else case e in #(
19904  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19905esac
19906fi
19907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19908esac
19909fi
19910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19911printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19913	CFLAGS="$xorg_testset_save_CFLAGS"
19914fi
19915
19916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19919	fi
19920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19922printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19923if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19924then :
19925  printf %s "(cached) " >&6
19926else case e in #(
19927  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928/* end confdefs.h.  */
19929int i;
19930_ACEOF
19931if ac_fn_c_try_compile "$LINENO"
19932then :
19933  xorg_cv_cc_flag_unused_command_line_argument=yes
19934else case e in #(
19935  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19936esac
19937fi
19938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19939esac
19940fi
19941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19944	CFLAGS="$xorg_testset_save_CFLAGS"
19945fi
19946
19947found="no"
19948
19949	if test $found = "no" ; then
19950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19952		fi
19953
19954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19956		fi
19957
19958		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19959
19960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19961printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19962		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19963		if eval test \${$cacheid+y}
19964then :
19965  printf %s "(cached) " >&6
19966else case e in #(
19967  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968/* end confdefs.h.  */
19969int i;
19970int
19971main (void)
19972{
19973
19974  ;
19975  return 0;
19976}
19977_ACEOF
19978if ac_fn_c_try_link "$LINENO"
19979then :
19980  eval $cacheid=yes
19981else case e in #(
19982  e) eval $cacheid=no ;;
19983esac
19984fi
19985rm -f core conftest.err conftest.$ac_objext conftest.beam \
19986    conftest$ac_exeext conftest.$ac_ext ;;
19987esac
19988fi
19989
19990
19991		CFLAGS="$xorg_testset_save_CFLAGS"
19992
19993		eval supported=\$$cacheid
19994		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19995printf "%s\n" "$supported" >&6; }
19996		if test "$supported" = "yes" ; then
19997			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19998			found="yes"
19999		fi
20000	fi
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016xorg_testset_save_CFLAGS="$CFLAGS"
20017
20018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20020	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20022if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20023then :
20024  printf %s "(cached) " >&6
20025else case e in #(
20026  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027/* end confdefs.h.  */
20028int i;
20029_ACEOF
20030if ac_fn_c_try_compile "$LINENO"
20031then :
20032  xorg_cv_cc_flag_unknown_warning_option=yes
20033else case e in #(
20034  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20035esac
20036fi
20037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20038esac
20039fi
20040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20041printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20043	CFLAGS="$xorg_testset_save_CFLAGS"
20044fi
20045
20046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20049	fi
20050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20051	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20052printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20053if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20054then :
20055  printf %s "(cached) " >&6
20056else case e in #(
20057  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058/* end confdefs.h.  */
20059int i;
20060_ACEOF
20061if ac_fn_c_try_compile "$LINENO"
20062then :
20063  xorg_cv_cc_flag_unused_command_line_argument=yes
20064else case e in #(
20065  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20066esac
20067fi
20068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20069esac
20070fi
20071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20074	CFLAGS="$xorg_testset_save_CFLAGS"
20075fi
20076
20077found="no"
20078
20079	if test $found = "no" ; then
20080		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20082		fi
20083
20084		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20086		fi
20087
20088		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
20089
20090		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
20091printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
20092		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
20093		if eval test \${$cacheid+y}
20094then :
20095  printf %s "(cached) " >&6
20096else case e in #(
20097  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098/* end confdefs.h.  */
20099int i;
20100int
20101main (void)
20102{
20103
20104  ;
20105  return 0;
20106}
20107_ACEOF
20108if ac_fn_c_try_link "$LINENO"
20109then :
20110  eval $cacheid=yes
20111else case e in #(
20112  e) eval $cacheid=no ;;
20113esac
20114fi
20115rm -f core conftest.err conftest.$ac_objext conftest.beam \
20116    conftest$ac_exeext conftest.$ac_ext ;;
20117esac
20118fi
20119
20120
20121		CFLAGS="$xorg_testset_save_CFLAGS"
20122
20123		eval supported=\$$cacheid
20124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20125printf "%s\n" "$supported" >&6; }
20126		if test "$supported" = "yes" ; then
20127			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
20128			found="yes"
20129		fi
20130	fi
20131
20132
20133fi
20134
20135
20136
20137
20138
20139
20140
20141		CWARNFLAGS="$BASE_CFLAGS"
20142		if  test "x$GCC" = xyes ; then
20143		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
20144		fi
20145
20146
20147
20148
20149
20150
20151
20152
20153# Check whether --enable-strict-compilation was given.
20154if test ${enable_strict_compilation+y}
20155then :
20156  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20157else case e in #(
20158  e) STRICT_COMPILE=no ;;
20159esac
20160fi
20161
20162
20163
20164
20165
20166
20167STRICT_CFLAGS=""
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181xorg_testset_save_CFLAGS="$CFLAGS"
20182
20183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20187if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20188then :
20189  printf %s "(cached) " >&6
20190else case e in #(
20191  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20192/* end confdefs.h.  */
20193int i;
20194_ACEOF
20195if ac_fn_c_try_compile "$LINENO"
20196then :
20197  xorg_cv_cc_flag_unknown_warning_option=yes
20198else case e in #(
20199  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20200esac
20201fi
20202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20203esac
20204fi
20205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20208	CFLAGS="$xorg_testset_save_CFLAGS"
20209fi
20210
20211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20214	fi
20215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20218if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20219then :
20220  printf %s "(cached) " >&6
20221else case e in #(
20222  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20223/* end confdefs.h.  */
20224int i;
20225_ACEOF
20226if ac_fn_c_try_compile "$LINENO"
20227then :
20228  xorg_cv_cc_flag_unused_command_line_argument=yes
20229else case e in #(
20230  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20231esac
20232fi
20233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20234esac
20235fi
20236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20239	CFLAGS="$xorg_testset_save_CFLAGS"
20240fi
20241
20242found="no"
20243
20244	if test $found = "no" ; then
20245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20247		fi
20248
20249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20251		fi
20252
20253		CFLAGS="$CFLAGS -pedantic"
20254
20255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
20256printf %s "checking if $CC supports -pedantic... " >&6; }
20257		cacheid=xorg_cv_cc_flag__pedantic
20258		if eval test \${$cacheid+y}
20259then :
20260  printf %s "(cached) " >&6
20261else case e in #(
20262  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263/* end confdefs.h.  */
20264int i;
20265int
20266main (void)
20267{
20268
20269  ;
20270  return 0;
20271}
20272_ACEOF
20273if ac_fn_c_try_link "$LINENO"
20274then :
20275  eval $cacheid=yes
20276else case e in #(
20277  e) eval $cacheid=no ;;
20278esac
20279fi
20280rm -f core conftest.err conftest.$ac_objext conftest.beam \
20281    conftest$ac_exeext conftest.$ac_ext ;;
20282esac
20283fi
20284
20285
20286		CFLAGS="$xorg_testset_save_CFLAGS"
20287
20288		eval supported=\$$cacheid
20289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20290printf "%s\n" "$supported" >&6; }
20291		if test "$supported" = "yes" ; then
20292			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
20293			found="yes"
20294		fi
20295	fi
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311xorg_testset_save_CFLAGS="$CFLAGS"
20312
20313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20318then :
20319  printf %s "(cached) " >&6
20320else case e in #(
20321  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322/* end confdefs.h.  */
20323int i;
20324_ACEOF
20325if ac_fn_c_try_compile "$LINENO"
20326then :
20327  xorg_cv_cc_flag_unknown_warning_option=yes
20328else case e in #(
20329  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20330esac
20331fi
20332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20333esac
20334fi
20335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20338	CFLAGS="$xorg_testset_save_CFLAGS"
20339fi
20340
20341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20344	fi
20345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20348if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20349then :
20350  printf %s "(cached) " >&6
20351else case e in #(
20352  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353/* end confdefs.h.  */
20354int i;
20355_ACEOF
20356if ac_fn_c_try_compile "$LINENO"
20357then :
20358  xorg_cv_cc_flag_unused_command_line_argument=yes
20359else case e in #(
20360  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20361esac
20362fi
20363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20364esac
20365fi
20366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20369	CFLAGS="$xorg_testset_save_CFLAGS"
20370fi
20371
20372found="no"
20373
20374	if test $found = "no" ; then
20375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20377		fi
20378
20379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20381		fi
20382
20383		CFLAGS="$CFLAGS -Werror"
20384
20385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20386printf %s "checking if $CC supports -Werror... " >&6; }
20387		cacheid=xorg_cv_cc_flag__Werror
20388		if eval test \${$cacheid+y}
20389then :
20390  printf %s "(cached) " >&6
20391else case e in #(
20392  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393/* end confdefs.h.  */
20394int i;
20395int
20396main (void)
20397{
20398
20399  ;
20400  return 0;
20401}
20402_ACEOF
20403if ac_fn_c_try_link "$LINENO"
20404then :
20405  eval $cacheid=yes
20406else case e in #(
20407  e) eval $cacheid=no ;;
20408esac
20409fi
20410rm -f core conftest.err conftest.$ac_objext conftest.beam \
20411    conftest$ac_exeext conftest.$ac_ext ;;
20412esac
20413fi
20414
20415
20416		CFLAGS="$xorg_testset_save_CFLAGS"
20417
20418		eval supported=\$$cacheid
20419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20420printf "%s\n" "$supported" >&6; }
20421		if test "$supported" = "yes" ; then
20422			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20423			found="yes"
20424		fi
20425	fi
20426
20427	if test $found = "no" ; then
20428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20430		fi
20431
20432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20434		fi
20435
20436		CFLAGS="$CFLAGS -errwarn"
20437
20438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20439printf %s "checking if $CC supports -errwarn... " >&6; }
20440		cacheid=xorg_cv_cc_flag__errwarn
20441		if eval test \${$cacheid+y}
20442then :
20443  printf %s "(cached) " >&6
20444else case e in #(
20445  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446/* end confdefs.h.  */
20447int i;
20448int
20449main (void)
20450{
20451
20452  ;
20453  return 0;
20454}
20455_ACEOF
20456if ac_fn_c_try_link "$LINENO"
20457then :
20458  eval $cacheid=yes
20459else case e in #(
20460  e) eval $cacheid=no ;;
20461esac
20462fi
20463rm -f core conftest.err conftest.$ac_objext conftest.beam \
20464    conftest$ac_exeext conftest.$ac_ext ;;
20465esac
20466fi
20467
20468
20469		CFLAGS="$xorg_testset_save_CFLAGS"
20470
20471		eval supported=\$$cacheid
20472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20473printf "%s\n" "$supported" >&6; }
20474		if test "$supported" = "yes" ; then
20475			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20476			found="yes"
20477		fi
20478	fi
20479
20480
20481
20482# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20483# activate it with -Werror, so we add it here explicitly.
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497xorg_testset_save_CFLAGS="$CFLAGS"
20498
20499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20503if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20504then :
20505  printf %s "(cached) " >&6
20506else case e in #(
20507  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508/* end confdefs.h.  */
20509int i;
20510_ACEOF
20511if ac_fn_c_try_compile "$LINENO"
20512then :
20513  xorg_cv_cc_flag_unknown_warning_option=yes
20514else case e in #(
20515  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20516esac
20517fi
20518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20519esac
20520fi
20521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20524	CFLAGS="$xorg_testset_save_CFLAGS"
20525fi
20526
20527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20530	fi
20531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20534if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20535then :
20536  printf %s "(cached) " >&6
20537else case e in #(
20538  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539/* end confdefs.h.  */
20540int i;
20541_ACEOF
20542if ac_fn_c_try_compile "$LINENO"
20543then :
20544  xorg_cv_cc_flag_unused_command_line_argument=yes
20545else case e in #(
20546  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20547esac
20548fi
20549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20550esac
20551fi
20552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20555	CFLAGS="$xorg_testset_save_CFLAGS"
20556fi
20557
20558found="no"
20559
20560	if test $found = "no" ; then
20561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20563		fi
20564
20565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20567		fi
20568
20569		CFLAGS="$CFLAGS -Werror=attributes"
20570
20571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20572printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20573		cacheid=xorg_cv_cc_flag__Werror_attributes
20574		if eval test \${$cacheid+y}
20575then :
20576  printf %s "(cached) " >&6
20577else case e in #(
20578  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579/* end confdefs.h.  */
20580int i;
20581int
20582main (void)
20583{
20584
20585  ;
20586  return 0;
20587}
20588_ACEOF
20589if ac_fn_c_try_link "$LINENO"
20590then :
20591  eval $cacheid=yes
20592else case e in #(
20593  e) eval $cacheid=no ;;
20594esac
20595fi
20596rm -f core conftest.err conftest.$ac_objext conftest.beam \
20597    conftest$ac_exeext conftest.$ac_ext ;;
20598esac
20599fi
20600
20601
20602		CFLAGS="$xorg_testset_save_CFLAGS"
20603
20604		eval supported=\$$cacheid
20605		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20606printf "%s\n" "$supported" >&6; }
20607		if test "$supported" = "yes" ; then
20608			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20609			found="yes"
20610		fi
20611	fi
20612
20613
20614
20615if test "x$STRICT_COMPILE" = "xyes"; then
20616    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20617    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20618fi
20619
20620
20621
20622
20623
20624
20625
20626
20627cat >>confdefs.h <<_ACEOF
20628#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20629_ACEOF
20630
20631	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20632	if test "x$PVM" = "x"; then
20633		PVM="0"
20634	fi
20635
20636printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20637
20638	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20639	if test "x$PVP" = "x"; then
20640		PVP="0"
20641	fi
20642
20643printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20644
20645
20646
20647CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20648mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20649|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20650touch \$(top_srcdir)/ChangeLog; \
20651echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20652
20653
20654
20655
20656macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20657INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20658mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20659|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20660touch \$(top_srcdir)/INSTALL; \
20661echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20662
20663
20664
20665
20666
20667
20668case $host_os in
20669    solaris*)
20670        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20671        # check for a man page file found in later versions that use
20672        # traditional section numbers instead
20673        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20674printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20675if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20676then :
20677  printf %s "(cached) " >&6
20678else case e in #(
20679  e) test "$cross_compiling" = yes &&
20680  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20681if test -r "/usr/share/man/man7/attributes.7"; then
20682  ac_cv_file__usr_share_man_man7_attributes_7=yes
20683else
20684  ac_cv_file__usr_share_man_man7_attributes_7=no
20685fi ;;
20686esac
20687fi
20688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20689printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20690if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20691then :
20692  SYSV_MAN_SECTIONS=false
20693else case e in #(
20694  e) SYSV_MAN_SECTIONS=true ;;
20695esac
20696fi
20697
20698        ;;
20699    *) SYSV_MAN_SECTIONS=false ;;
20700esac
20701
20702if test x$APP_MAN_SUFFIX = x    ; then
20703    APP_MAN_SUFFIX=1
20704fi
20705if test x$APP_MAN_DIR = x    ; then
20706    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20707fi
20708
20709if test x$LIB_MAN_SUFFIX = x    ; then
20710    LIB_MAN_SUFFIX=3
20711fi
20712if test x$LIB_MAN_DIR = x    ; then
20713    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20714fi
20715
20716if test x$FILE_MAN_SUFFIX = x    ; then
20717    case $SYSV_MAN_SECTIONS in
20718	true)				FILE_MAN_SUFFIX=4  ;;
20719	*)				FILE_MAN_SUFFIX=5  ;;
20720    esac
20721fi
20722if test x$FILE_MAN_DIR = x    ; then
20723    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20724fi
20725
20726if test x$MISC_MAN_SUFFIX = x    ; then
20727    case $SYSV_MAN_SECTIONS in
20728	true)				MISC_MAN_SUFFIX=5  ;;
20729	*)				MISC_MAN_SUFFIX=7  ;;
20730    esac
20731fi
20732if test x$MISC_MAN_DIR = x    ; then
20733    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20734fi
20735
20736if test x$DRIVER_MAN_SUFFIX = x    ; then
20737    case $SYSV_MAN_SECTIONS in
20738	true)				DRIVER_MAN_SUFFIX=7  ;;
20739	*)				DRIVER_MAN_SUFFIX=4  ;;
20740    esac
20741fi
20742if test x$DRIVER_MAN_DIR = x    ; then
20743    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20744fi
20745
20746if test x$ADMIN_MAN_SUFFIX = x    ; then
20747    case $SYSV_MAN_SECTIONS in
20748	true)				ADMIN_MAN_SUFFIX=1m ;;
20749	*)				ADMIN_MAN_SUFFIX=8  ;;
20750    esac
20751fi
20752if test x$ADMIN_MAN_DIR = x    ; then
20753    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20754fi
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770XORG_MAN_PAGE="X Version 11"
20771
20772MAN_SUBSTS="\
20773	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20774	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20775	-e 's|__xservername__|Xorg|g' \
20776	-e 's|__xconfigfile__|xorg.conf|g' \
20777	-e 's|__projectroot__|\$(prefix)|g' \
20778	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
20779	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20780	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20781	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20782	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20783	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20784	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20785
20786
20787
20788
20789AM_DEFAULT_VERBOSITY=0
20790
20791
20792
20793# Checks for programs.
20794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20795printf %s "checking whether ln -s works... " >&6; }
20796LN_S=$as_ln_s
20797if test "$LN_S" = "ln -s"; then
20798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20799printf "%s\n" "yes" >&6; }
20800else
20801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20802printf "%s\n" "no, using $LN_S" >&6; }
20803fi
20804
20805
20806# Checks for library functions.
20807ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
20808if test "x$ac_cv_func_explicit_bzero" = xyes
20809then :
20810  printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
20811
20812fi
20813ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
20814if test "x$ac_cv_func_explicit_memset" = xyes
20815then :
20816  printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
20817
20818fi
20819ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
20820if test "x$ac_cv_func_pathconf" = xyes
20821then :
20822  printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
20823
20824fi
20825
20826
20827# Obtain compiler/linker options for dependencies
20828
20829pkg_failed=no
20830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
20831printf %s "checking for XAU... " >&6; }
20832
20833if test -n "$XAU_CFLAGS"; then
20834    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
20835 elif test -n "$PKG_CONFIG"; then
20836    if test -n "$PKG_CONFIG" && \
20837    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20838  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20839  ac_status=$?
20840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20841  test $ac_status = 0; }; then
20842  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20843		      test "x$?" != "x0" && pkg_failed=yes
20844else
20845  pkg_failed=yes
20846fi
20847 else
20848    pkg_failed=untried
20849fi
20850if test -n "$XAU_LIBS"; then
20851    pkg_cv_XAU_LIBS="$XAU_LIBS"
20852 elif test -n "$PKG_CONFIG"; then
20853    if test -n "$PKG_CONFIG" && \
20854    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20855  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20856  ac_status=$?
20857  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20858  test $ac_status = 0; }; then
20859  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20860		      test "x$?" != "x0" && pkg_failed=yes
20861else
20862  pkg_failed=yes
20863fi
20864 else
20865    pkg_failed=untried
20866fi
20867
20868
20869
20870if test $pkg_failed = yes; then
20871   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20872printf "%s\n" "no" >&6; }
20873
20874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20875        _pkg_short_errors_supported=yes
20876else
20877        _pkg_short_errors_supported=no
20878fi
20879        if test $_pkg_short_errors_supported = yes; then
20880	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
20881        else
20882	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
20883        fi
20884	# Put the nasty error message in config.log where it belongs
20885	echo "$XAU_PKG_ERRORS" >&5
20886
20887	as_fn_error $? "Package requirements (xproto) were not met:
20888
20889$XAU_PKG_ERRORS
20890
20891Consider adjusting the PKG_CONFIG_PATH environment variable if you
20892installed software in a non-standard prefix.
20893
20894Alternatively, you may set the environment variables XAU_CFLAGS
20895and XAU_LIBS to avoid the need to call pkg-config.
20896See the pkg-config man page for more details." "$LINENO" 5
20897elif test $pkg_failed = untried; then
20898     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20899printf "%s\n" "no" >&6; }
20900	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20901printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20902as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20903is in your PATH or set the PKG_CONFIG environment variable to the full
20904path to pkg-config.
20905
20906Alternatively, you may set the environment variables XAU_CFLAGS
20907and XAU_LIBS to avoid the need to call pkg-config.
20908See the pkg-config man page for more details.
20909
20910To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20911See 'config.log' for more details" "$LINENO" 5; }
20912else
20913	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
20914	XAU_LIBS=$pkg_cv_XAU_LIBS
20915        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20916printf "%s\n" "yes" >&6; }
20917
20918fi
20919
20920# Checks for typedefs, structures, and compiler characteristics.
20921# Check whether --enable-largefile was given.
20922if test ${enable_largefile+y}
20923then :
20924  enableval=$enable_largefile;
20925fi
20926if test "$enable_largefile,$enable_year2038" != no,no
20927then :
20928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
20929printf %s "checking for $CC option to enable large file support... " >&6; }
20930if test ${ac_cv_sys_largefile_opts+y}
20931then :
20932  printf %s "(cached) " >&6
20933else case e in #(
20934  e) ac_save_CC="$CC"
20935  ac_opt_found=no
20936  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
20937    if test x"$ac_opt" != x"none needed"
20938then :
20939  CC="$ac_save_CC $ac_opt"
20940fi
20941    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942/* end confdefs.h.  */
20943#include <sys/types.h>
20944#ifndef FTYPE
20945# define FTYPE off_t
20946#endif
20947 /* Check that FTYPE can represent 2**63 - 1 correctly.
20948    We can't simply define LARGE_FTYPE to be 9223372036854775807,
20949    since some C++ compilers masquerading as C compilers
20950    incorrectly reject 9223372036854775807.  */
20951#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
20952  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
20953		       && LARGE_FTYPE % 2147483647 == 1)
20954		      ? 1 : -1];
20955int
20956main (void)
20957{
20958
20959  ;
20960  return 0;
20961}
20962_ACEOF
20963if ac_fn_c_try_compile "$LINENO"
20964then :
20965  if test x"$ac_opt" = x"none needed"
20966then :
20967  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
20968	 CC="$CC -DFTYPE=ino_t"
20969	 if ac_fn_c_try_compile "$LINENO"
20970then :
20971
20972else case e in #(
20973  e) CC="$CC -D_FILE_OFFSET_BITS=64"
20974	    if ac_fn_c_try_compile "$LINENO"
20975then :
20976  ac_opt='-D_FILE_OFFSET_BITS=64'
20977fi
20978rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
20979esac
20980fi
20981rm -f core conftest.err conftest.$ac_objext conftest.beam
20982fi
20983      ac_cv_sys_largefile_opts=$ac_opt
20984      ac_opt_found=yes
20985fi
20986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20987    test $ac_opt_found = no || break
20988  done
20989  CC="$ac_save_CC"
20990
20991  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
20992esac
20993fi
20994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
20995printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
20996
20997ac_have_largefile=yes
20998case $ac_cv_sys_largefile_opts in #(
20999  "none needed") :
21000     ;; #(
21001  "supported through gnulib") :
21002     ;; #(
21003  "support not detected") :
21004    ac_have_largefile=no ;; #(
21005  "-D_FILE_OFFSET_BITS=64") :
21006
21007printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
21008 ;; #(
21009  "-D_LARGE_FILES=1") :
21010
21011printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
21012 ;; #(
21013  "-n32") :
21014    CC="$CC -n32" ;; #(
21015  *) :
21016    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
21017esac
21018
21019if test "$enable_year2038" != no
21020then :
21021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
21022printf %s "checking for $CC option for timestamps after 2038... " >&6; }
21023if test ${ac_cv_sys_year2038_opts+y}
21024then :
21025  printf %s "(cached) " >&6
21026else case e in #(
21027  e) ac_save_CPPFLAGS="$CPPFLAGS"
21028  ac_opt_found=no
21029  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
21030    if test x"$ac_opt" != x"none needed"
21031then :
21032  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
21033fi
21034    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035/* end confdefs.h.  */
21036
21037  #include <time.h>
21038  /* Check that time_t can represent 2**32 - 1 correctly.  */
21039  #define LARGE_TIME_T \\
21040    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
21041  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
21042                           && LARGE_TIME_T % 65537 == 0)
21043                          ? 1 : -1];
21044
21045int
21046main (void)
21047{
21048
21049  ;
21050  return 0;
21051}
21052_ACEOF
21053if ac_fn_c_try_compile "$LINENO"
21054then :
21055  ac_cv_sys_year2038_opts="$ac_opt"
21056      ac_opt_found=yes
21057fi
21058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21059    test $ac_opt_found = no || break
21060  done
21061  CPPFLAGS="$ac_save_CPPFLAGS"
21062  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
21063esac
21064fi
21065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
21066printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
21067
21068ac_have_year2038=yes
21069case $ac_cv_sys_year2038_opts in #(
21070  "none needed") :
21071     ;; #(
21072  "support not detected") :
21073    ac_have_year2038=no ;; #(
21074  "-D_TIME_BITS=64") :
21075
21076printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
21077 ;; #(
21078  "-D__MINGW_USE_VC2005_COMPAT") :
21079
21080printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
21081 ;; #(
21082  "-U_USE_32_BIT_TIME_T"*) :
21083    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21084printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21085as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
21086will stop working after mid-January 2038. Remove
21087_USE_32BIT_TIME_T from the compiler flags.
21088See 'config.log' for more details" "$LINENO" 5; } ;; #(
21089  *) :
21090    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
21091esac
21092
21093fi
21094
21095fi
21096
21097# Check whether --enable-xthreads was given.
21098if test ${enable_xthreads+y}
21099then :
21100  enableval=$enable_xthreads; xthreads=$enableval
21101else case e in #(
21102  e) xthreads=yes ;;
21103esac
21104fi
21105
21106
21107if test "x$xthreads" = "xyes" ; then
21108
21109printf "%s\n" "#define XTHREADS 1" >>confdefs.h
21110
21111    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lc" >&5
21112printf %s "checking for gethostbyname_r in -lc... " >&6; }
21113if test ${ac_cv_lib_c_gethostbyname_r+y}
21114then :
21115  printf %s "(cached) " >&6
21116else case e in #(
21117  e) ac_check_lib_save_LIBS=$LIBS
21118LIBS="-lc  $LIBS"
21119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120/* end confdefs.h.  */
21121
21122/* Override any GCC internal prototype to avoid an error.
21123   Use char because int might match the return type of a GCC
21124   builtin and then its argument prototype would still apply.
21125   The 'extern "C"' is for builds by C++ compilers;
21126   although this is not generally supported in C code supporting it here
21127   has little cost and some practical benefit (sr 110532).  */
21128#ifdef __cplusplus
21129extern "C"
21130#endif
21131char gethostbyname_r (void);
21132int
21133main (void)
21134{
21135return gethostbyname_r ();
21136  ;
21137  return 0;
21138}
21139_ACEOF
21140if ac_fn_c_try_link "$LINENO"
21141then :
21142  ac_cv_lib_c_gethostbyname_r=yes
21143else case e in #(
21144  e) ac_cv_lib_c_gethostbyname_r=no ;;
21145esac
21146fi
21147rm -f core conftest.err conftest.$ac_objext conftest.beam \
21148    conftest$ac_exeext conftest.$ac_ext
21149LIBS=$ac_check_lib_save_LIBS ;;
21150esac
21151fi
21152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname_r" >&5
21153printf "%s\n" "$ac_cv_lib_c_gethostbyname_r" >&6; }
21154if test "x$ac_cv_lib_c_gethostbyname_r" = xyes
21155then :
21156  mtsafe=yes
21157fi
21158
21159    if test "x$mtsafe" = "x" ; then
21160	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
21161printf %s "checking for gethostbyname_r in -lnsl... " >&6; }
21162if test ${ac_cv_lib_nsl_gethostbyname_r+y}
21163then :
21164  printf %s "(cached) " >&6
21165else case e in #(
21166  e) ac_check_lib_save_LIBS=$LIBS
21167LIBS="-lnsl  $LIBS"
21168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169/* end confdefs.h.  */
21170
21171/* Override any GCC internal prototype to avoid an error.
21172   Use char because int might match the return type of a GCC
21173   builtin and then its argument prototype would still apply.
21174   The 'extern "C"' is for builds by C++ compilers;
21175   although this is not generally supported in C code supporting it here
21176   has little cost and some practical benefit (sr 110532).  */
21177#ifdef __cplusplus
21178extern "C"
21179#endif
21180char gethostbyname_r (void);
21181int
21182main (void)
21183{
21184return gethostbyname_r ();
21185  ;
21186  return 0;
21187}
21188_ACEOF
21189if ac_fn_c_try_link "$LINENO"
21190then :
21191  ac_cv_lib_nsl_gethostbyname_r=yes
21192else case e in #(
21193  e) ac_cv_lib_nsl_gethostbyname_r=no ;;
21194esac
21195fi
21196rm -f core conftest.err conftest.$ac_objext conftest.beam \
21197    conftest$ac_exeext conftest.$ac_ext
21198LIBS=$ac_check_lib_save_LIBS ;;
21199esac
21200fi
21201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
21202printf "%s\n" "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
21203if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes
21204then :
21205  mtsafe=yes
21206fi
21207
21208    fi
21209    if test "x$mtsafe" = "xyes" ; then
21210
21211printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
21212
21213    fi
21214
21215# XXX incomplete, please fill this in
21216    case $host_os in
21217    solaris*)
21218	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
21219    esac
21220    XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS"
21221fi
21222
21223# Allow checking code with lint, sparse, etc.
21224
21225
21226
21227
21228
21229# Check whether --with-lint was given.
21230if test ${with_lint+y}
21231then :
21232  withval=$with_lint; use_lint=$withval
21233else case e in #(
21234  e) use_lint=no ;;
21235esac
21236fi
21237
21238
21239# Obtain platform specific info like program name and options
21240# The lint program on FreeBSD and NetBSD is different from the one on Solaris
21241case $host_os in
21242  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21243	lint_name=splint
21244	lint_options="-badflag"
21245	;;
21246  *freebsd* | *netbsd*)
21247	lint_name=lint
21248	lint_options="-u -b"
21249	;;
21250  *solaris*)
21251	lint_name=lint
21252	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21253	;;
21254esac
21255
21256# Test for the presence of the program (either guessed by the code or spelled out by the user)
21257if test "x$use_lint" = x"yes" ; then
21258   # Extract the first word of "$lint_name", so it can be a program name with args.
21259set dummy $lint_name; ac_word=$2
21260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21261printf %s "checking for $ac_word... " >&6; }
21262if test ${ac_cv_path_LINT+y}
21263then :
21264  printf %s "(cached) " >&6
21265else case e in #(
21266  e) case $LINT in
21267  [\\/]* | ?:[\\/]*)
21268  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21269  ;;
21270  *)
21271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21272for as_dir in $PATH
21273do
21274  IFS=$as_save_IFS
21275  case $as_dir in #(((
21276    '') as_dir=./ ;;
21277    */) ;;
21278    *) as_dir=$as_dir/ ;;
21279  esac
21280    for ac_exec_ext in '' $ac_executable_extensions; do
21281  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21282    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
21283    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21284    break 2
21285  fi
21286done
21287  done
21288IFS=$as_save_IFS
21289
21290  ;;
21291esac ;;
21292esac
21293fi
21294LINT=$ac_cv_path_LINT
21295if test -n "$LINT"; then
21296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21297printf "%s\n" "$LINT" >&6; }
21298else
21299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21300printf "%s\n" "no" >&6; }
21301fi
21302
21303
21304   if test "x$LINT" = "x"; then
21305        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21306   fi
21307elif test "x$use_lint" = x"no" ; then
21308   if test "x$LINT" != "x"; then
21309      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21310printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21311   fi
21312else
21313   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21314fi
21315
21316# User supplied flags override default flags
21317if test "x$LINT_FLAGS" != "x"; then
21318   lint_options=$LINT_FLAGS
21319fi
21320
21321LINT_FLAGS=$lint_options
21322
21323 if test "x$LINT" != x; then
21324  LINT_TRUE=
21325  LINT_FALSE='#'
21326else
21327  LINT_TRUE='#'
21328  LINT_FALSE=
21329fi
21330
21331
21332
21333
21334
21335# Check whether --enable-lint-library was given.
21336if test ${enable_lint_library+y}
21337then :
21338  enableval=$enable_lint_library; make_lint_lib=$enableval
21339else case e in #(
21340  e) make_lint_lib=no ;;
21341esac
21342fi
21343
21344
21345if test "x$make_lint_lib" = x"yes" ; then
21346   LINTLIB=llib-lXau.ln
21347   if test "x$LINT" = "x"; then
21348        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21349   fi
21350elif test "x$make_lint_lib" != x"no" ; then
21351   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21352fi
21353
21354
21355 if test x$make_lint_lib != xno; then
21356  MAKE_LINT_LIB_TRUE=
21357  MAKE_LINT_LIB_FALSE='#'
21358else
21359  MAKE_LINT_LIB_TRUE='#'
21360  MAKE_LINT_LIB_FALSE=
21361fi
21362
21363
21364
21365LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}"
21366
21367ac_config_files="$ac_config_files Makefile man/Makefile xau.pc"
21368
21369cat >confcache <<\_ACEOF
21370# This file is a shell script that caches the results of configure
21371# tests run on this system so they can be shared between configure
21372# scripts and configure runs, see configure's option --config-cache.
21373# It is not useful on other systems.  If it contains results you don't
21374# want to keep, you may remove or edit it.
21375#
21376# config.status only pays attention to the cache file if you give it
21377# the --recheck option to rerun configure.
21378#
21379# 'ac_cv_env_foo' variables (set or unset) will be overridden when
21380# loading this file, other *unset* 'ac_cv_foo' will be assigned the
21381# following values.
21382
21383_ACEOF
21384
21385# The following way of writing the cache mishandles newlines in values,
21386# but we know of no workaround that is simple, portable, and efficient.
21387# So, we kill variables containing newlines.
21388# Ultrix sh set writes to stderr and can't be redirected directly,
21389# and sets the high bit in the cache file unless we assign to the vars.
21390(
21391  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21392    eval ac_val=\$$ac_var
21393    case $ac_val in #(
21394    *${as_nl}*)
21395      case $ac_var in #(
21396      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21397printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21398      esac
21399      case $ac_var in #(
21400      _ | IFS | as_nl) ;; #(
21401      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21402      *) { eval $ac_var=; unset $ac_var;} ;;
21403      esac ;;
21404    esac
21405  done
21406
21407  (set) 2>&1 |
21408    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21409    *${as_nl}ac_space=\ *)
21410      # 'set' does not quote correctly, so add quotes: double-quote
21411      # substitution turns \\\\ into \\, and sed turns \\ into \.
21412      sed -n \
21413	"s/'/'\\\\''/g;
21414	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21415      ;; #(
21416    *)
21417      # 'set' quotes correctly as required by POSIX, so do not add quotes.
21418      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21419      ;;
21420    esac |
21421    sort
21422) |
21423  sed '
21424     /^ac_cv_env_/b end
21425     t clear
21426     :clear
21427     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21428     t end
21429     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21430     :end' >>confcache
21431if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21432  if test -w "$cache_file"; then
21433    if test "x$cache_file" != "x/dev/null"; then
21434      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21435printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21436      if test ! -f "$cache_file" || test -h "$cache_file"; then
21437	cat confcache >"$cache_file"
21438      else
21439        case $cache_file in #(
21440        */* | ?:*)
21441	  mv -f confcache "$cache_file"$$ &&
21442	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21443        *)
21444	  mv -f confcache "$cache_file" ;;
21445	esac
21446      fi
21447    fi
21448  else
21449    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21450printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21451  fi
21452fi
21453rm -f confcache
21454
21455test "x$prefix" = xNONE && prefix=$ac_default_prefix
21456# Let make expand exec_prefix.
21457test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21458
21459DEFS=-DHAVE_CONFIG_H
21460
21461ac_libobjs=
21462ac_ltlibobjs=
21463U=
21464for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21465  # 1. Remove the extension, and $U if already installed.
21466  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21467  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21468  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21469  #    will be set to the directory where LIBOBJS objects are built.
21470  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21471  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21472done
21473LIBOBJS=$ac_libobjs
21474
21475LTLIBOBJS=$ac_ltlibobjs
21476
21477
21478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21479printf %s "checking that generated files are newer than configure... " >&6; }
21480   if test -n "$am_sleep_pid"; then
21481     # Hide warnings about reused PIDs.
21482     wait $am_sleep_pid 2>/dev/null
21483   fi
21484   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21485printf "%s\n" "done" >&6; }
21486if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21487  as_fn_error $? "conditional \"AMDEP\" was never defined.
21488Usually this means the macro was only invoked conditionally." "$LINENO" 5
21489fi
21490if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21491  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21492Usually this means the macro was only invoked conditionally." "$LINENO" 5
21493fi
21494case $enable_silent_rules in # (((
21495  yes) AM_DEFAULT_VERBOSITY=0;;
21496   no) AM_DEFAULT_VERBOSITY=1;;
21497esac
21498if test $am_cv_make_support_nested_variables = yes; then
21499    AM_V='$(V)'
21500  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21501else
21502  AM_V=$AM_DEFAULT_VERBOSITY
21503  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21504fi
21505
21506 if test -n "$EXEEXT"; then
21507  am__EXEEXT_TRUE=
21508  am__EXEEXT_FALSE='#'
21509else
21510  am__EXEEXT_TRUE='#'
21511  am__EXEEXT_FALSE=
21512fi
21513
21514# Check whether --enable-year2038 was given.
21515if test ${enable_year2038+y}
21516then :
21517  enableval=$enable_year2038;
21518fi
21519
21520if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21521  as_fn_error $? "conditional \"LINT\" was never defined.
21522Usually this means the macro was only invoked conditionally." "$LINENO" 5
21523fi
21524if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21525  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21526Usually this means the macro was only invoked conditionally." "$LINENO" 5
21527fi
21528
21529: "${CONFIG_STATUS=./config.status}"
21530ac_write_fail=0
21531ac_clean_files_save=$ac_clean_files
21532ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21534printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21535as_write_fail=0
21536cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21537#! $SHELL
21538# Generated by $as_me.
21539# Run this file to recreate the current configuration.
21540# Compiler output produced by configure, useful for debugging
21541# configure, is in config.log if it exists.
21542
21543debug=false
21544ac_cs_recheck=false
21545ac_cs_silent=false
21546
21547SHELL=\${CONFIG_SHELL-$SHELL}
21548export SHELL
21549_ASEOF
21550cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21551## -------------------- ##
21552## M4sh Initialization. ##
21553## -------------------- ##
21554
21555# Be more Bourne compatible
21556DUALCASE=1; export DUALCASE # for MKS sh
21557if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21558then :
21559  emulate sh
21560  NULLCMD=:
21561  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21562  # is contrary to our usage.  Disable this feature.
21563  alias -g '${1+"$@"}'='"$@"'
21564  setopt NO_GLOB_SUBST
21565else case e in #(
21566  e) case `(set -o) 2>/dev/null` in #(
21567  *posix*) :
21568    set -o posix ;; #(
21569  *) :
21570     ;;
21571esac ;;
21572esac
21573fi
21574
21575
21576
21577# Reset variables that may have inherited troublesome values from
21578# the environment.
21579
21580# IFS needs to be set, to space, tab, and newline, in precisely that order.
21581# (If _AS_PATH_WALK were called with IFS unset, it would have the
21582# side effect of setting IFS to empty, thus disabling word splitting.)
21583# Quoting is to prevent editors from complaining about space-tab.
21584as_nl='
21585'
21586export as_nl
21587IFS=" ""	$as_nl"
21588
21589PS1='$ '
21590PS2='> '
21591PS4='+ '
21592
21593# Ensure predictable behavior from utilities with locale-dependent output.
21594LC_ALL=C
21595export LC_ALL
21596LANGUAGE=C
21597export LANGUAGE
21598
21599# We cannot yet rely on "unset" to work, but we need these variables
21600# to be unset--not just set to an empty or harmless value--now, to
21601# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21602# also avoids known problems related to "unset" and subshell syntax
21603# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21604for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21605do eval test \${$as_var+y} \
21606  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21607done
21608
21609# Ensure that fds 0, 1, and 2 are open.
21610if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21611if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21612if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21613
21614# The user is always right.
21615if ${PATH_SEPARATOR+false} :; then
21616  PATH_SEPARATOR=:
21617  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21618    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21619      PATH_SEPARATOR=';'
21620  }
21621fi
21622
21623
21624# Find who we are.  Look in the path if we contain no directory separator.
21625as_myself=
21626case $0 in #((
21627  *[\\/]* ) as_myself=$0 ;;
21628  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629for as_dir in $PATH
21630do
21631  IFS=$as_save_IFS
21632  case $as_dir in #(((
21633    '') as_dir=./ ;;
21634    */) ;;
21635    *) as_dir=$as_dir/ ;;
21636  esac
21637    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21638  done
21639IFS=$as_save_IFS
21640
21641     ;;
21642esac
21643# We did not find ourselves, most probably we were run as 'sh COMMAND'
21644# in which case we are not to be found in the path.
21645if test "x$as_myself" = x; then
21646  as_myself=$0
21647fi
21648if test ! -f "$as_myself"; then
21649  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21650  exit 1
21651fi
21652
21653
21654
21655# as_fn_error STATUS ERROR [LINENO LOG_FD]
21656# ----------------------------------------
21657# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21658# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21659# script with STATUS, using 1 if that was 0.
21660as_fn_error ()
21661{
21662  as_status=$1; test $as_status -eq 0 && as_status=1
21663  if test "$4"; then
21664    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21665    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21666  fi
21667  printf "%s\n" "$as_me: error: $2" >&2
21668  as_fn_exit $as_status
21669} # as_fn_error
21670
21671
21672# as_fn_set_status STATUS
21673# -----------------------
21674# Set $? to STATUS, without forking.
21675as_fn_set_status ()
21676{
21677  return $1
21678} # as_fn_set_status
21679
21680# as_fn_exit STATUS
21681# -----------------
21682# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21683as_fn_exit ()
21684{
21685  set +e
21686  as_fn_set_status $1
21687  exit $1
21688} # as_fn_exit
21689
21690# as_fn_unset VAR
21691# ---------------
21692# Portably unset VAR.
21693as_fn_unset ()
21694{
21695  { eval $1=; unset $1;}
21696}
21697as_unset=as_fn_unset
21698
21699# as_fn_append VAR VALUE
21700# ----------------------
21701# Append the text in VALUE to the end of the definition contained in VAR. Take
21702# advantage of any shell optimizations that allow amortized linear growth over
21703# repeated appends, instead of the typical quadratic growth present in naive
21704# implementations.
21705if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21706then :
21707  eval 'as_fn_append ()
21708  {
21709    eval $1+=\$2
21710  }'
21711else case e in #(
21712  e) as_fn_append ()
21713  {
21714    eval $1=\$$1\$2
21715  } ;;
21716esac
21717fi # as_fn_append
21718
21719# as_fn_arith ARG...
21720# ------------------
21721# Perform arithmetic evaluation on the ARGs, and store the result in the
21722# global $as_val. Take advantage of shells that can avoid forks. The arguments
21723# must be portable across $(()) and expr.
21724if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21725then :
21726  eval 'as_fn_arith ()
21727  {
21728    as_val=$(( $* ))
21729  }'
21730else case e in #(
21731  e) as_fn_arith ()
21732  {
21733    as_val=`expr "$@" || test $? -eq 1`
21734  } ;;
21735esac
21736fi # as_fn_arith
21737
21738
21739if expr a : '\(a\)' >/dev/null 2>&1 &&
21740   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21741  as_expr=expr
21742else
21743  as_expr=false
21744fi
21745
21746if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21747  as_basename=basename
21748else
21749  as_basename=false
21750fi
21751
21752if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21753  as_dirname=dirname
21754else
21755  as_dirname=false
21756fi
21757
21758as_me=`$as_basename -- "$0" ||
21759$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21760	 X"$0" : 'X\(//\)$' \| \
21761	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21762printf "%s\n" X/"$0" |
21763    sed '/^.*\/\([^/][^/]*\)\/*$/{
21764	    s//\1/
21765	    q
21766	  }
21767	  /^X\/\(\/\/\)$/{
21768	    s//\1/
21769	    q
21770	  }
21771	  /^X\/\(\/\).*/{
21772	    s//\1/
21773	    q
21774	  }
21775	  s/.*/./; q'`
21776
21777# Avoid depending upon Character Ranges.
21778as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21779as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21780as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21781as_cr_digits='0123456789'
21782as_cr_alnum=$as_cr_Letters$as_cr_digits
21783
21784
21785# Determine whether it's possible to make 'echo' print without a newline.
21786# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21787# for compatibility with existing Makefiles.
21788ECHO_C= ECHO_N= ECHO_T=
21789case `echo -n x` in #(((((
21790-n*)
21791  case `echo 'xy\c'` in
21792  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21793  xy)  ECHO_C='\c';;
21794  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21795       ECHO_T='	';;
21796  esac;;
21797*)
21798  ECHO_N='-n';;
21799esac
21800
21801# For backward compatibility with old third-party macros, we provide
21802# the shell variables $as_echo and $as_echo_n.  New code should use
21803# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21804as_echo='printf %s\n'
21805as_echo_n='printf %s'
21806
21807rm -f conf$$ conf$$.exe conf$$.file
21808if test -d conf$$.dir; then
21809  rm -f conf$$.dir/conf$$.file
21810else
21811  rm -f conf$$.dir
21812  mkdir conf$$.dir 2>/dev/null
21813fi
21814if (echo >conf$$.file) 2>/dev/null; then
21815  if ln -s conf$$.file conf$$ 2>/dev/null; then
21816    as_ln_s='ln -s'
21817    # ... but there are two gotchas:
21818    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21819    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21820    # In both cases, we have to default to 'cp -pR'.
21821    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21822      as_ln_s='cp -pR'
21823  elif ln conf$$.file conf$$ 2>/dev/null; then
21824    as_ln_s=ln
21825  else
21826    as_ln_s='cp -pR'
21827  fi
21828else
21829  as_ln_s='cp -pR'
21830fi
21831rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21832rmdir conf$$.dir 2>/dev/null
21833
21834
21835# as_fn_mkdir_p
21836# -------------
21837# Create "$as_dir" as a directory, including parents if necessary.
21838as_fn_mkdir_p ()
21839{
21840
21841  case $as_dir in #(
21842  -*) as_dir=./$as_dir;;
21843  esac
21844  test -d "$as_dir" || eval $as_mkdir_p || {
21845    as_dirs=
21846    while :; do
21847      case $as_dir in #(
21848      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21849      *) as_qdir=$as_dir;;
21850      esac
21851      as_dirs="'$as_qdir' $as_dirs"
21852      as_dir=`$as_dirname -- "$as_dir" ||
21853$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21854	 X"$as_dir" : 'X\(//\)[^/]' \| \
21855	 X"$as_dir" : 'X\(//\)$' \| \
21856	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21857printf "%s\n" X"$as_dir" |
21858    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21859	    s//\1/
21860	    q
21861	  }
21862	  /^X\(\/\/\)[^/].*/{
21863	    s//\1/
21864	    q
21865	  }
21866	  /^X\(\/\/\)$/{
21867	    s//\1/
21868	    q
21869	  }
21870	  /^X\(\/\).*/{
21871	    s//\1/
21872	    q
21873	  }
21874	  s/.*/./; q'`
21875      test -d "$as_dir" && break
21876    done
21877    test -z "$as_dirs" || eval "mkdir $as_dirs"
21878  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21879
21880
21881} # as_fn_mkdir_p
21882if mkdir -p . 2>/dev/null; then
21883  as_mkdir_p='mkdir -p "$as_dir"'
21884else
21885  test -d ./-p && rmdir ./-p
21886  as_mkdir_p=false
21887fi
21888
21889
21890# as_fn_executable_p FILE
21891# -----------------------
21892# Test if FILE is an executable regular file.
21893as_fn_executable_p ()
21894{
21895  test -f "$1" && test -x "$1"
21896} # as_fn_executable_p
21897as_test_x='test -x'
21898as_executable_p=as_fn_executable_p
21899
21900# Sed expression to map a string onto a valid CPP name.
21901as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21902as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21903
21904# Sed expression to map a string onto a valid variable name.
21905as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21906as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21907
21908
21909exec 6>&1
21910## ----------------------------------- ##
21911## Main body of $CONFIG_STATUS script. ##
21912## ----------------------------------- ##
21913_ASEOF
21914test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21915
21916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21917# Save the log message, to keep $0 and so on meaningful, and to
21918# report actual input values of CONFIG_FILES etc. instead of their
21919# values after options handling.
21920ac_log="
21921This file was extended by libXau $as_me 1.0.12, which was
21922generated by GNU Autoconf 2.72.  Invocation command line was
21923
21924  CONFIG_FILES    = $CONFIG_FILES
21925  CONFIG_HEADERS  = $CONFIG_HEADERS
21926  CONFIG_LINKS    = $CONFIG_LINKS
21927  CONFIG_COMMANDS = $CONFIG_COMMANDS
21928  $ $0 $@
21929
21930on `(hostname || uname -n) 2>/dev/null | sed 1q`
21931"
21932
21933_ACEOF
21934
21935case $ac_config_files in *"
21936"*) set x $ac_config_files; shift; ac_config_files=$*;;
21937esac
21938
21939case $ac_config_headers in *"
21940"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21941esac
21942
21943
21944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21945# Files that config.status was made for.
21946config_files="$ac_config_files"
21947config_headers="$ac_config_headers"
21948config_commands="$ac_config_commands"
21949
21950_ACEOF
21951
21952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21953ac_cs_usage="\
21954'$as_me' instantiates files and other configuration actions
21955from templates according to the current configuration.  Unless the files
21956and actions are specified as TAGs, all are instantiated by default.
21957
21958Usage: $0 [OPTION]... [TAG]...
21959
21960  -h, --help       print this help, then exit
21961  -V, --version    print version number and configuration settings, then exit
21962      --config     print configuration, then exit
21963  -q, --quiet, --silent
21964                   do not print progress messages
21965  -d, --debug      don't remove temporary files
21966      --recheck    update $as_me by reconfiguring in the same conditions
21967      --file=FILE[:TEMPLATE]
21968                   instantiate the configuration file FILE
21969      --header=FILE[:TEMPLATE]
21970                   instantiate the configuration header FILE
21971
21972Configuration files:
21973$config_files
21974
21975Configuration headers:
21976$config_headers
21977
21978Configuration commands:
21979$config_commands
21980
21981Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>."
21982
21983_ACEOF
21984ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21985ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21987ac_cs_config='$ac_cs_config_escaped'
21988ac_cs_version="\\
21989libXau config.status 1.0.12
21990configured by $0, generated by GNU Autoconf 2.72,
21991  with options \\"\$ac_cs_config\\"
21992
21993Copyright (C) 2023 Free Software Foundation, Inc.
21994This config.status script is free software; the Free Software Foundation
21995gives unlimited permission to copy, distribute and modify it."
21996
21997ac_pwd='$ac_pwd'
21998srcdir='$srcdir'
21999INSTALL='$INSTALL'
22000MKDIR_P='$MKDIR_P'
22001AWK='$AWK'
22002test -n "\$AWK" || AWK=awk
22003_ACEOF
22004
22005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22006# The default lists apply if the user does not specify any file.
22007ac_need_defaults=:
22008while test $# != 0
22009do
22010  case $1 in
22011  --*=?*)
22012    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22013    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22014    ac_shift=:
22015    ;;
22016  --*=)
22017    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22018    ac_optarg=
22019    ac_shift=:
22020    ;;
22021  *)
22022    ac_option=$1
22023    ac_optarg=$2
22024    ac_shift=shift
22025    ;;
22026  esac
22027
22028  case $ac_option in
22029  # Handling of the options.
22030  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22031    ac_cs_recheck=: ;;
22032  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22033    printf "%s\n" "$ac_cs_version"; exit ;;
22034  --config | --confi | --conf | --con | --co | --c )
22035    printf "%s\n" "$ac_cs_config"; exit ;;
22036  --debug | --debu | --deb | --de | --d | -d )
22037    debug=: ;;
22038  --file | --fil | --fi | --f )
22039    $ac_shift
22040    case $ac_optarg in
22041    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22042    '') as_fn_error $? "missing file argument" ;;
22043    esac
22044    as_fn_append CONFIG_FILES " '$ac_optarg'"
22045    ac_need_defaults=false;;
22046  --header | --heade | --head | --hea )
22047    $ac_shift
22048    case $ac_optarg in
22049    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22050    esac
22051    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22052    ac_need_defaults=false;;
22053  --he | --h)
22054    # Conflict between --help and --header
22055    as_fn_error $? "ambiguous option: '$1'
22056Try '$0 --help' for more information.";;
22057  --help | --hel | -h )
22058    printf "%s\n" "$ac_cs_usage"; exit ;;
22059  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22060  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22061    ac_cs_silent=: ;;
22062
22063  # This is an error.
22064  -*) as_fn_error $? "unrecognized option: '$1'
22065Try '$0 --help' for more information." ;;
22066
22067  *) as_fn_append ac_config_targets " $1"
22068     ac_need_defaults=false ;;
22069
22070  esac
22071  shift
22072done
22073
22074ac_configure_extra_args=
22075
22076if $ac_cs_silent; then
22077  exec 6>/dev/null
22078  ac_configure_extra_args="$ac_configure_extra_args --silent"
22079fi
22080
22081_ACEOF
22082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22083if \$ac_cs_recheck; then
22084  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22085  shift
22086  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22087  CONFIG_SHELL='$SHELL'
22088  export CONFIG_SHELL
22089  exec "\$@"
22090fi
22091
22092_ACEOF
22093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22094exec 5>>config.log
22095{
22096  echo
22097  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22098## Running $as_me. ##
22099_ASBOX
22100  printf "%s\n" "$ac_log"
22101} >&5
22102
22103_ACEOF
22104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22105#
22106# INIT-COMMANDS
22107#
22108AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22109
22110
22111# The HP-UX ksh and POSIX shell print the target directory to stdout
22112# if CDPATH is set.
22113(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22114
22115sed_quote_subst='$sed_quote_subst'
22116double_quote_subst='$double_quote_subst'
22117delay_variable_subst='$delay_variable_subst'
22118macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22119macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22120AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22121DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22122OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22123enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22124enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22125pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22126enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22127shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22128SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22129ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22130PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22131host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22132host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22133host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22134build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22135build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22136build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22137SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22138Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22139GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22140EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22141FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22142LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22143NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22144LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22145max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22146ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22147exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22148lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22149lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22150lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22151lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22152lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22153reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22154reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22155FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22156deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22157file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22158file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22159want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22160sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22161AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22162lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22163AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22164archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22165STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22166RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22167old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22168old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22169old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22170lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22171CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22172CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22173compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22174GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22175lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22176lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22177lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22178lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22179lt_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"`'
22180lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22181nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22182lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22183lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22184objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22185MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22186lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22187lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22188lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22189lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22190lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22191need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22192MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22193DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22194NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22195LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22196OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22197OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22198libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22199shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22200extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22201archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22202enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22203export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22204whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22205compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22206old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22207old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22208archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22209archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22210module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22211module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22212with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22213allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22214no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22215hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22216hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22217hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22218hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22219hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22220hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22221hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22222inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22223link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22224always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22225export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22226exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22227include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22228prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22229postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22230file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22231variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22232need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22233need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22234version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22235runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22236shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22237shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22238libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22239library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22240soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22241install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22242postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22243postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22244finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22245finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22246hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22247sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22248configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22249configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22250hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22251enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22252enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22253enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22254old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22255striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22256
22257LTCC='$LTCC'
22258LTCFLAGS='$LTCFLAGS'
22259compiler='$compiler_DEFAULT'
22260
22261# A function that is used when there is no print builtin or printf.
22262func_fallback_echo ()
22263{
22264  eval 'cat <<_LTECHO_EOF
22265\$1
22266_LTECHO_EOF'
22267}
22268
22269# Quote evaled strings.
22270for var in AS \
22271DLLTOOL \
22272OBJDUMP \
22273SHELL \
22274ECHO \
22275PATH_SEPARATOR \
22276SED \
22277GREP \
22278EGREP \
22279FGREP \
22280LD \
22281NM \
22282LN_S \
22283lt_SP2NL \
22284lt_NL2SP \
22285reload_flag \
22286FILECMD \
22287deplibs_check_method \
22288file_magic_cmd \
22289file_magic_glob \
22290want_nocaseglob \
22291sharedlib_from_linklib_cmd \
22292AR \
22293archiver_list_spec \
22294STRIP \
22295RANLIB \
22296CC \
22297CFLAGS \
22298compiler \
22299lt_cv_sys_global_symbol_pipe \
22300lt_cv_sys_global_symbol_to_cdecl \
22301lt_cv_sys_global_symbol_to_import \
22302lt_cv_sys_global_symbol_to_c_name_address \
22303lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22304lt_cv_nm_interface \
22305nm_file_list_spec \
22306lt_cv_truncate_bin \
22307lt_prog_compiler_no_builtin_flag \
22308lt_prog_compiler_pic \
22309lt_prog_compiler_wl \
22310lt_prog_compiler_static \
22311lt_cv_prog_compiler_c_o \
22312need_locks \
22313MANIFEST_TOOL \
22314DSYMUTIL \
22315NMEDIT \
22316LIPO \
22317OTOOL \
22318OTOOL64 \
22319shrext_cmds \
22320export_dynamic_flag_spec \
22321whole_archive_flag_spec \
22322compiler_needs_object \
22323with_gnu_ld \
22324allow_undefined_flag \
22325no_undefined_flag \
22326hardcode_libdir_flag_spec \
22327hardcode_libdir_separator \
22328exclude_expsyms \
22329include_expsyms \
22330file_list_spec \
22331variables_saved_for_relink \
22332libname_spec \
22333library_names_spec \
22334soname_spec \
22335install_override_mode \
22336finish_eval \
22337old_striplib \
22338striplib; do
22339    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22340    *[\\\\\\\`\\"\\\$]*)
22341      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22342      ;;
22343    *)
22344      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22345      ;;
22346    esac
22347done
22348
22349# Double-quote double-evaled strings.
22350for var in reload_cmds \
22351old_postinstall_cmds \
22352old_postuninstall_cmds \
22353old_archive_cmds \
22354extract_expsyms_cmds \
22355old_archive_from_new_cmds \
22356old_archive_from_expsyms_cmds \
22357archive_cmds \
22358archive_expsym_cmds \
22359module_cmds \
22360module_expsym_cmds \
22361export_symbols_cmds \
22362prelink_cmds \
22363postlink_cmds \
22364postinstall_cmds \
22365postuninstall_cmds \
22366finish_cmds \
22367sys_lib_search_path_spec \
22368configure_time_dlsearch_path \
22369configure_time_lt_sys_library_path; do
22370    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22371    *[\\\\\\\`\\"\\\$]*)
22372      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22373      ;;
22374    *)
22375      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22376      ;;
22377    esac
22378done
22379
22380ac_aux_dir='$ac_aux_dir'
22381
22382# See if we are running on zsh, and set the options that allow our
22383# commands through without removal of \ escapes INIT.
22384if test -n "\${ZSH_VERSION+set}"; then
22385   setopt NO_GLOB_SUBST
22386fi
22387
22388
22389    PACKAGE='$PACKAGE'
22390    VERSION='$VERSION'
22391    RM='$RM'
22392    ofile='$ofile'
22393
22394
22395
22396
22397_ACEOF
22398
22399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22400
22401# Handling of arguments.
22402for ac_config_target in $ac_config_targets
22403do
22404  case $ac_config_target in
22405    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22406    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22407    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22408    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22409    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22410    "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;;
22411
22412  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22413  esac
22414done
22415
22416
22417# If the user did not use the arguments to specify the items to instantiate,
22418# then the envvar interface is used.  Set only those that are not.
22419# We use the long form for the default assignment because of an extremely
22420# bizarre bug on SunOS 4.1.3.
22421if $ac_need_defaults; then
22422  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22423  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22424  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22425fi
22426
22427# Have a temporary directory for convenience.  Make it in the build tree
22428# simply because there is no reason against having it here, and in addition,
22429# creating and moving files from /tmp can sometimes cause problems.
22430# Hook for its removal unless debugging.
22431# Note that there is a small window in which the directory will not be cleaned:
22432# after its creation but before its name has been assigned to '$tmp'.
22433$debug ||
22434{
22435  tmp= ac_tmp=
22436  trap 'exit_status=$?
22437  : "${ac_tmp:=$tmp}"
22438  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22439' 0
22440  trap 'as_fn_exit 1' 1 2 13 15
22441}
22442# Create a (secure) tmp directory for tmp files.
22443
22444{
22445  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22446  test -d "$tmp"
22447}  ||
22448{
22449  tmp=./conf$$-$RANDOM
22450  (umask 077 && mkdir "$tmp")
22451} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22452ac_tmp=$tmp
22453
22454# Set up the scripts for CONFIG_FILES section.
22455# No need to generate them if there are no CONFIG_FILES.
22456# This happens for instance with './config.status config.h'.
22457if test -n "$CONFIG_FILES"; then
22458
22459
22460ac_cr=`echo X | tr X '\015'`
22461# On cygwin, bash can eat \r inside `` if the user requested igncr.
22462# But we know of no other shell where ac_cr would be empty at this
22463# point, so we can use a bashism as a fallback.
22464if test "x$ac_cr" = x; then
22465  eval ac_cr=\$\'\\r\'
22466fi
22467ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22468if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22469  ac_cs_awk_cr='\\r'
22470else
22471  ac_cs_awk_cr=$ac_cr
22472fi
22473
22474echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22475_ACEOF
22476
22477
22478{
22479  echo "cat >conf$$subs.awk <<_ACEOF" &&
22480  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22481  echo "_ACEOF"
22482} >conf$$subs.sh ||
22483  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22484ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22485ac_delim='%!_!# '
22486for ac_last_try in false false false false false :; do
22487  . ./conf$$subs.sh ||
22488    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22489
22490  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22491  if test $ac_delim_n = $ac_delim_num; then
22492    break
22493  elif $ac_last_try; then
22494    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22495  else
22496    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22497  fi
22498done
22499rm -f conf$$subs.sh
22500
22501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22502cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22503_ACEOF
22504sed -n '
22505h
22506s/^/S["/; s/!.*/"]=/
22507p
22508g
22509s/^[^!]*!//
22510:repl
22511t repl
22512s/'"$ac_delim"'$//
22513t delim
22514:nl
22515h
22516s/\(.\{148\}\)..*/\1/
22517t more1
22518s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22519p
22520n
22521b repl
22522:more1
22523s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22524p
22525g
22526s/.\{148\}//
22527t nl
22528:delim
22529h
22530s/\(.\{148\}\)..*/\1/
22531t more2
22532s/["\\]/\\&/g; s/^/"/; s/$/"/
22533p
22534b
22535:more2
22536s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22537p
22538g
22539s/.\{148\}//
22540t delim
22541' <conf$$subs.awk | sed '
22542/^[^""]/{
22543  N
22544  s/\n//
22545}
22546' >>$CONFIG_STATUS || ac_write_fail=1
22547rm -f conf$$subs.awk
22548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22549_ACAWK
22550cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22551  for (key in S) S_is_set[key] = 1
22552  FS = ""
22553
22554}
22555{
22556  line = $ 0
22557  nfields = split(line, field, "@")
22558  substed = 0
22559  len = length(field[1])
22560  for (i = 2; i < nfields; i++) {
22561    key = field[i]
22562    keylen = length(key)
22563    if (S_is_set[key]) {
22564      value = S[key]
22565      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22566      len += length(value) + length(field[++i])
22567      substed = 1
22568    } else
22569      len += 1 + keylen
22570  }
22571
22572  print line
22573}
22574
22575_ACAWK
22576_ACEOF
22577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22578if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22579  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22580else
22581  cat
22582fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22583  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22584_ACEOF
22585
22586# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22587# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22588# trailing colons and then remove the whole line if VPATH becomes empty
22589# (actually we leave an empty line to preserve line numbers).
22590if test "x$srcdir" = x.; then
22591  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22592h
22593s///
22594s/^/:/
22595s/[	 ]*$/:/
22596s/:\$(srcdir):/:/g
22597s/:\${srcdir}:/:/g
22598s/:@srcdir@:/:/g
22599s/^:*//
22600s/:*$//
22601x
22602s/\(=[	 ]*\).*/\1/
22603G
22604s/\n//
22605s/^[^=]*=[	 ]*$//
22606}'
22607fi
22608
22609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22610fi # test -n "$CONFIG_FILES"
22611
22612# Set up the scripts for CONFIG_HEADERS section.
22613# No need to generate them if there are no CONFIG_HEADERS.
22614# This happens for instance with './config.status Makefile'.
22615if test -n "$CONFIG_HEADERS"; then
22616cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22617BEGIN {
22618_ACEOF
22619
22620# Transform confdefs.h into an awk script 'defines.awk', embedded as
22621# here-document in config.status, that substitutes the proper values into
22622# config.h.in to produce config.h.
22623
22624# Create a delimiter string that does not exist in confdefs.h, to ease
22625# handling of long lines.
22626ac_delim='%!_!# '
22627for ac_last_try in false false :; do
22628  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22629  if test -z "$ac_tt"; then
22630    break
22631  elif $ac_last_try; then
22632    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22633  else
22634    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22635  fi
22636done
22637
22638# For the awk script, D is an array of macro values keyed by name,
22639# likewise P contains macro parameters if any.  Preserve backslash
22640# newline sequences.
22641
22642ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22643sed -n '
22644s/.\{148\}/&'"$ac_delim"'/g
22645t rset
22646:rset
22647s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22648t def
22649d
22650:def
22651s/\\$//
22652t bsnl
22653s/["\\]/\\&/g
22654s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22655D["\1"]=" \3"/p
22656s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22657d
22658:bsnl
22659s/["\\]/\\&/g
22660s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22661D["\1"]=" \3\\\\\\n"\\/p
22662t cont
22663s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22664t cont
22665d
22666:cont
22667n
22668s/.\{148\}/&'"$ac_delim"'/g
22669t clear
22670:clear
22671s/\\$//
22672t bsnlc
22673s/["\\]/\\&/g; s/^/"/; s/$/"/p
22674d
22675:bsnlc
22676s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22677b cont
22678' <confdefs.h | sed '
22679s/'"$ac_delim"'/"\\\
22680"/g' >>$CONFIG_STATUS || ac_write_fail=1
22681
22682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22683  for (key in D) D_is_set[key] = 1
22684  FS = ""
22685}
22686/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22687  line = \$ 0
22688  split(line, arg, " ")
22689  if (arg[1] == "#") {
22690    defundef = arg[2]
22691    mac1 = arg[3]
22692  } else {
22693    defundef = substr(arg[1], 2)
22694    mac1 = arg[2]
22695  }
22696  split(mac1, mac2, "(") #)
22697  macro = mac2[1]
22698  prefix = substr(line, 1, index(line, defundef) - 1)
22699  if (D_is_set[macro]) {
22700    # Preserve the white space surrounding the "#".
22701    print prefix "define", macro P[macro] D[macro]
22702    next
22703  } else {
22704    # Replace #undef with comments.  This is necessary, for example,
22705    # in the case of _POSIX_SOURCE, which is predefined and required
22706    # on some systems where configure will not decide to define it.
22707    if (defundef == "undef") {
22708      print "/*", prefix defundef, macro, "*/"
22709      next
22710    }
22711  }
22712}
22713{ print }
22714_ACAWK
22715_ACEOF
22716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22717  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22718fi # test -n "$CONFIG_HEADERS"
22719
22720
22721eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22722shift
22723for ac_tag
22724do
22725  case $ac_tag in
22726  :[FHLC]) ac_mode=$ac_tag; continue;;
22727  esac
22728  case $ac_mode$ac_tag in
22729  :[FHL]*:*);;
22730  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22731  :[FH]-) ac_tag=-:-;;
22732  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22733  esac
22734  ac_save_IFS=$IFS
22735  IFS=:
22736  set x $ac_tag
22737  IFS=$ac_save_IFS
22738  shift
22739  ac_file=$1
22740  shift
22741
22742  case $ac_mode in
22743  :L) ac_source=$1;;
22744  :[FH])
22745    ac_file_inputs=
22746    for ac_f
22747    do
22748      case $ac_f in
22749      -) ac_f="$ac_tmp/stdin";;
22750      *) # Look for the file first in the build tree, then in the source tree
22751	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22752	 # because $ac_f cannot contain ':'.
22753	 test -f "$ac_f" ||
22754	   case $ac_f in
22755	   [\\/$]*) false;;
22756	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22757	   esac ||
22758	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22759      esac
22760      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22761      as_fn_append ac_file_inputs " '$ac_f'"
22762    done
22763
22764    # Let's still pretend it is 'configure' which instantiates (i.e., don't
22765    # use $as_me), people would be surprised to read:
22766    #    /* config.h.  Generated by config.status.  */
22767    configure_input='Generated from '`
22768	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22769	`' by configure.'
22770    if test x"$ac_file" != x-; then
22771      configure_input="$ac_file.  $configure_input"
22772      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22773printf "%s\n" "$as_me: creating $ac_file" >&6;}
22774    fi
22775    # Neutralize special characters interpreted by sed in replacement strings.
22776    case $configure_input in #(
22777    *\&* | *\|* | *\\* )
22778       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22779       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22780    *) ac_sed_conf_input=$configure_input;;
22781    esac
22782
22783    case $ac_tag in
22784    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22785      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22786    esac
22787    ;;
22788  esac
22789
22790  ac_dir=`$as_dirname -- "$ac_file" ||
22791$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22792	 X"$ac_file" : 'X\(//\)[^/]' \| \
22793	 X"$ac_file" : 'X\(//\)$' \| \
22794	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22795printf "%s\n" X"$ac_file" |
22796    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22797	    s//\1/
22798	    q
22799	  }
22800	  /^X\(\/\/\)[^/].*/{
22801	    s//\1/
22802	    q
22803	  }
22804	  /^X\(\/\/\)$/{
22805	    s//\1/
22806	    q
22807	  }
22808	  /^X\(\/\).*/{
22809	    s//\1/
22810	    q
22811	  }
22812	  s/.*/./; q'`
22813  as_dir="$ac_dir"; as_fn_mkdir_p
22814  ac_builddir=.
22815
22816case "$ac_dir" in
22817.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22818*)
22819  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22820  # A ".." for each directory in $ac_dir_suffix.
22821  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22822  case $ac_top_builddir_sub in
22823  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22824  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22825  esac ;;
22826esac
22827ac_abs_top_builddir=$ac_pwd
22828ac_abs_builddir=$ac_pwd$ac_dir_suffix
22829# for backward compatibility:
22830ac_top_builddir=$ac_top_build_prefix
22831
22832case $srcdir in
22833  .)  # We are building in place.
22834    ac_srcdir=.
22835    ac_top_srcdir=$ac_top_builddir_sub
22836    ac_abs_top_srcdir=$ac_pwd ;;
22837  [\\/]* | ?:[\\/]* )  # Absolute name.
22838    ac_srcdir=$srcdir$ac_dir_suffix;
22839    ac_top_srcdir=$srcdir
22840    ac_abs_top_srcdir=$srcdir ;;
22841  *) # Relative name.
22842    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22843    ac_top_srcdir=$ac_top_build_prefix$srcdir
22844    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22845esac
22846ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22847
22848
22849  case $ac_mode in
22850  :F)
22851  #
22852  # CONFIG_FILE
22853  #
22854
22855  case $INSTALL in
22856  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22857  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22858  esac
22859  ac_MKDIR_P=$MKDIR_P
22860  case $MKDIR_P in
22861  [\\/$]* | ?:[\\/]* ) ;;
22862  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22863  esac
22864_ACEOF
22865
22866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22867# If the template does not know about datarootdir, expand it.
22868# FIXME: This hack should be removed a few years after 2.60.
22869ac_datarootdir_hack=; ac_datarootdir_seen=
22870ac_sed_dataroot='
22871/datarootdir/ {
22872  p
22873  q
22874}
22875/@datadir@/p
22876/@docdir@/p
22877/@infodir@/p
22878/@localedir@/p
22879/@mandir@/p'
22880case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22881*datarootdir*) ac_datarootdir_seen=yes;;
22882*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22884printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22885_ACEOF
22886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22887  ac_datarootdir_hack='
22888  s&@datadir@&$datadir&g
22889  s&@docdir@&$docdir&g
22890  s&@infodir@&$infodir&g
22891  s&@localedir@&$localedir&g
22892  s&@mandir@&$mandir&g
22893  s&\\\${datarootdir}&$datarootdir&g' ;;
22894esac
22895_ACEOF
22896
22897# Neutralize VPATH when '$srcdir' = '.'.
22898# Shell code in configure.ac might set extrasub.
22899# FIXME: do we really want to maintain this feature?
22900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22901ac_sed_extra="$ac_vpsub
22902$extrasub
22903_ACEOF
22904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22905:t
22906/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22907s|@configure_input@|$ac_sed_conf_input|;t t
22908s&@top_builddir@&$ac_top_builddir_sub&;t t
22909s&@top_build_prefix@&$ac_top_build_prefix&;t t
22910s&@srcdir@&$ac_srcdir&;t t
22911s&@abs_srcdir@&$ac_abs_srcdir&;t t
22912s&@top_srcdir@&$ac_top_srcdir&;t t
22913s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22914s&@builddir@&$ac_builddir&;t t
22915s&@abs_builddir@&$ac_abs_builddir&;t t
22916s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22917s&@INSTALL@&$ac_INSTALL&;t t
22918s&@MKDIR_P@&$ac_MKDIR_P&;t t
22919$ac_datarootdir_hack
22920"
22921eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22922  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22923
22924test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22925  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22926  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22927      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22929which seems to be undefined.  Please make sure it is defined" >&5
22930printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22931which seems to be undefined.  Please make sure it is defined" >&2;}
22932
22933  rm -f "$ac_tmp/stdin"
22934  case $ac_file in
22935  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22936  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22937  esac \
22938  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22939 ;;
22940  :H)
22941  #
22942  # CONFIG_HEADER
22943  #
22944  if test x"$ac_file" != x-; then
22945    {
22946      printf "%s\n" "/* $configure_input  */" >&1 \
22947      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22948    } >"$ac_tmp/config.h" \
22949      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22950    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22951      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22952printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22953    else
22954      rm -f "$ac_file"
22955      mv "$ac_tmp/config.h" "$ac_file" \
22956	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22957    fi
22958  else
22959    printf "%s\n" "/* $configure_input  */" >&1 \
22960      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22961      || as_fn_error $? "could not create -" "$LINENO" 5
22962  fi
22963# Compute "$ac_file"'s index in $config_headers.
22964_am_arg="$ac_file"
22965_am_stamp_count=1
22966for _am_header in $config_headers :; do
22967  case $_am_header in
22968    $_am_arg | $_am_arg:* )
22969      break ;;
22970    * )
22971      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22972  esac
22973done
22974echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22975$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22976	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22977	 X"$_am_arg" : 'X\(//\)$' \| \
22978	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22979printf "%s\n" X"$_am_arg" |
22980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22981	    s//\1/
22982	    q
22983	  }
22984	  /^X\(\/\/\)[^/].*/{
22985	    s//\1/
22986	    q
22987	  }
22988	  /^X\(\/\/\)$/{
22989	    s//\1/
22990	    q
22991	  }
22992	  /^X\(\/\).*/{
22993	    s//\1/
22994	    q
22995	  }
22996	  s/.*/./; q'`/stamp-h$_am_stamp_count
22997 ;;
22998
22999  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23000printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23001 ;;
23002  esac
23003
23004
23005  case $ac_file$ac_mode in
23006    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23007  # Older Autoconf quotes --file arguments for eval, but not when files
23008  # are listed without --file.  Let's play safe and only enable the eval
23009  # if we detect the quoting.
23010  # TODO: see whether this extra hack can be removed once we start
23011  # requiring Autoconf 2.70 or later.
23012  case $CONFIG_FILES in #(
23013  *\'*) :
23014    eval set x "$CONFIG_FILES" ;; #(
23015  *) :
23016    set x $CONFIG_FILES ;; #(
23017  *) :
23018     ;;
23019esac
23020  shift
23021  # Used to flag and report bootstrapping failures.
23022  am_rc=0
23023  for am_mf
23024  do
23025    # Strip MF so we end up with the name of the file.
23026    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23027    # Check whether this is an Automake generated Makefile which includes
23028    # dependency-tracking related rules and includes.
23029    # Grep'ing the whole file directly is not great: AIX grep has a line
23030    # limit of 2048, but all sed's we know have understand at least 4000.
23031    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23032      || continue
23033    am_dirpart=`$as_dirname -- "$am_mf" ||
23034$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23035	 X"$am_mf" : 'X\(//\)[^/]' \| \
23036	 X"$am_mf" : 'X\(//\)$' \| \
23037	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23038printf "%s\n" X"$am_mf" |
23039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23040	    s//\1/
23041	    q
23042	  }
23043	  /^X\(\/\/\)[^/].*/{
23044	    s//\1/
23045	    q
23046	  }
23047	  /^X\(\/\/\)$/{
23048	    s//\1/
23049	    q
23050	  }
23051	  /^X\(\/\).*/{
23052	    s//\1/
23053	    q
23054	  }
23055	  s/.*/./; q'`
23056    am_filepart=`$as_basename -- "$am_mf" ||
23057$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23058	 X"$am_mf" : 'X\(//\)$' \| \
23059	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23060printf "%s\n" X/"$am_mf" |
23061    sed '/^.*\/\([^/][^/]*\)\/*$/{
23062	    s//\1/
23063	    q
23064	  }
23065	  /^X\/\(\/\/\)$/{
23066	    s//\1/
23067	    q
23068	  }
23069	  /^X\/\(\/\).*/{
23070	    s//\1/
23071	    q
23072	  }
23073	  s/.*/./; q'`
23074    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23075      && sed -e '/# am--include-marker/d' "$am_filepart" \
23076        | $MAKE -f - am--depfiles" >&5
23077   (cd "$am_dirpart" \
23078      && sed -e '/# am--include-marker/d' "$am_filepart" \
23079        | $MAKE -f - am--depfiles) >&5 2>&5
23080   ac_status=$?
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); } || am_rc=$?
23083  done
23084  if test $am_rc -ne 0; then
23085    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23086printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23087as_fn_error $? "Something went wrong bootstrapping makefile fragments
23088    for automatic dependency tracking.  If GNU make was not used, consider
23089    re-running the configure script with MAKE=\"gmake\" (or whatever is
23090    necessary).  You can also try re-running configure with the
23091    '--disable-dependency-tracking' option to at least be able to build
23092    the package (albeit without support for automatic dependency tracking).
23093See 'config.log' for more details" "$LINENO" 5; }
23094  fi
23095  { am_dirpart=; unset am_dirpart;}
23096  { am_filepart=; unset am_filepart;}
23097  { am_mf=; unset am_mf;}
23098  { am_rc=; unset am_rc;}
23099  rm -f conftest-deps.mk
23100}
23101 ;;
23102    "libtool":C)
23103
23104    # See if we are running on zsh, and set the options that allow our
23105    # commands through without removal of \ escapes.
23106    if test -n "${ZSH_VERSION+set}"; then
23107      setopt NO_GLOB_SUBST
23108    fi
23109
23110    cfgfile=${ofile}T
23111    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23112    $RM "$cfgfile"
23113
23114    cat <<_LT_EOF >> "$cfgfile"
23115#! $SHELL
23116# Generated automatically by $as_me ($PACKAGE) $VERSION
23117# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23118
23119# Provide generalized library-building support services.
23120# Written by Gordon Matzigkeit, 1996
23121
23122# Copyright (C) 2024 Free Software Foundation, Inc.
23123# This is free software; see the source for copying conditions.  There is NO
23124# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23125
23126# GNU Libtool is free software; you can redistribute it and/or modify
23127# it under the terms of the GNU General Public License as published by
23128# the Free Software Foundation; either version 2 of the License, or
23129# (at your option) any later version.
23130#
23131# As a special exception to the GNU General Public License, if you
23132# distribute this file as part of a program or library that is built
23133# using GNU Libtool, you may include this file under the  same
23134# distribution terms that you use for the rest of that program.
23135#
23136# GNU Libtool is distributed in the hope that it will be useful, but
23137# WITHOUT ANY WARRANTY; without even the implied warranty of
23138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23139# GNU General Public License for more details.
23140#
23141# You should have received a copy of the GNU General Public License
23142# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23143
23144
23145# The names of the tagged configurations supported by this script.
23146available_tags=''
23147
23148# Configured defaults for sys_lib_dlsearch_path munging.
23149: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23150
23151# ### BEGIN LIBTOOL CONFIG
23152
23153# Which release of libtool.m4 was used?
23154macro_version=$macro_version
23155macro_revision=$macro_revision
23156
23157# Assembler program.
23158AS=$lt_AS
23159
23160# DLL creation program.
23161DLLTOOL=$lt_DLLTOOL
23162
23163# Object dumper program.
23164OBJDUMP=$lt_OBJDUMP
23165
23166# Whether or not to build shared libraries.
23167build_libtool_libs=$enable_shared
23168
23169# Whether or not to build static libraries.
23170build_old_libs=$enable_static
23171
23172# What type of objects to build.
23173pic_mode=$pic_mode
23174
23175# Whether or not to optimize for fast installation.
23176fast_install=$enable_fast_install
23177
23178# Shared archive member basename,for filename based shared library versioning on AIX.
23179shared_archive_member_spec=$shared_archive_member_spec
23180
23181# Shell to use when invoking shell scripts.
23182SHELL=$lt_SHELL
23183
23184# An echo program that protects backslashes.
23185ECHO=$lt_ECHO
23186
23187# The PATH separator for the build system.
23188PATH_SEPARATOR=$lt_PATH_SEPARATOR
23189
23190# The host system.
23191host_alias=$host_alias
23192host=$host
23193host_os=$host_os
23194
23195# The build system.
23196build_alias=$build_alias
23197build=$build
23198build_os=$build_os
23199
23200# A sed program that does not truncate output.
23201SED=$lt_SED
23202
23203# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23204Xsed="\$SED -e 1s/^X//"
23205
23206# A grep program that handles long lines.
23207GREP=$lt_GREP
23208
23209# An ERE matcher.
23210EGREP=$lt_EGREP
23211
23212# A literal string matcher.
23213FGREP=$lt_FGREP
23214
23215# A BSD- or MS-compatible name lister.
23216NM=$lt_NM
23217
23218# Whether we need soft or hard links.
23219LN_S=$lt_LN_S
23220
23221# What is the maximum length of a command?
23222max_cmd_len=$max_cmd_len
23223
23224# Object file suffix (normally "o").
23225objext=$ac_objext
23226
23227# Executable file suffix (normally "").
23228exeext=$exeext
23229
23230# whether the shell understands "unset".
23231lt_unset=$lt_unset
23232
23233# turn spaces into newlines.
23234SP2NL=$lt_lt_SP2NL
23235
23236# turn newlines into spaces.
23237NL2SP=$lt_lt_NL2SP
23238
23239# convert \$build file names to \$host format.
23240to_host_file_cmd=$lt_cv_to_host_file_cmd
23241
23242# convert \$build files to toolchain format.
23243to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23244
23245# A file(cmd) program that detects file types.
23246FILECMD=$lt_FILECMD
23247
23248# Method to check whether dependent libraries are shared objects.
23249deplibs_check_method=$lt_deplibs_check_method
23250
23251# Command to use when deplibs_check_method = "file_magic".
23252file_magic_cmd=$lt_file_magic_cmd
23253
23254# How to find potential files when deplibs_check_method = "file_magic".
23255file_magic_glob=$lt_file_magic_glob
23256
23257# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23258want_nocaseglob=$lt_want_nocaseglob
23259
23260# Command to associate shared and link libraries.
23261sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23262
23263# The archiver.
23264AR=$lt_AR
23265
23266# Flags to create an archive (by configure).
23267lt_ar_flags=$lt_ar_flags
23268
23269# Flags to create an archive.
23270AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23271
23272# How to feed a file listing to the archiver.
23273archiver_list_spec=$lt_archiver_list_spec
23274
23275# A symbol stripping program.
23276STRIP=$lt_STRIP
23277
23278# Commands used to install an old-style archive.
23279RANLIB=$lt_RANLIB
23280old_postinstall_cmds=$lt_old_postinstall_cmds
23281old_postuninstall_cmds=$lt_old_postuninstall_cmds
23282
23283# Whether to use a lock for old archive extraction.
23284lock_old_archive_extraction=$lock_old_archive_extraction
23285
23286# A C compiler.
23287LTCC=$lt_CC
23288
23289# LTCC compiler flags.
23290LTCFLAGS=$lt_CFLAGS
23291
23292# Take the output of nm and produce a listing of raw symbols and C names.
23293global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23294
23295# Transform the output of nm in a proper C declaration.
23296global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23297
23298# Transform the output of nm into a list of symbols to manually relocate.
23299global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23300
23301# Transform the output of nm in a C name address pair.
23302global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23303
23304# Transform the output of nm in a C name address pair when lib prefix is needed.
23305global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23306
23307# The name lister interface.
23308nm_interface=$lt_lt_cv_nm_interface
23309
23310# Specify filename containing input files for \$NM.
23311nm_file_list_spec=$lt_nm_file_list_spec
23312
23313# The root where to search for dependent libraries,and where our libraries should be installed.
23314lt_sysroot=$lt_sysroot
23315
23316# Command to truncate a binary pipe.
23317lt_truncate_bin=$lt_lt_cv_truncate_bin
23318
23319# The name of the directory that contains temporary libtool files.
23320objdir=$objdir
23321
23322# Used to examine libraries when file_magic_cmd begins with "file".
23323MAGIC_CMD=$MAGIC_CMD
23324
23325# Must we lock files when doing compilation?
23326need_locks=$lt_need_locks
23327
23328# Manifest tool.
23329MANIFEST_TOOL=$lt_MANIFEST_TOOL
23330
23331# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23332DSYMUTIL=$lt_DSYMUTIL
23333
23334# Tool to change global to local symbols on Mac OS X.
23335NMEDIT=$lt_NMEDIT
23336
23337# Tool to manipulate fat objects and archives on Mac OS X.
23338LIPO=$lt_LIPO
23339
23340# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23341OTOOL=$lt_OTOOL
23342
23343# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23344OTOOL64=$lt_OTOOL64
23345
23346# Old archive suffix (normally "a").
23347libext=$libext
23348
23349# Shared library suffix (normally ".so").
23350shrext_cmds=$lt_shrext_cmds
23351
23352# The commands to extract the exported symbol list from a shared archive.
23353extract_expsyms_cmds=$lt_extract_expsyms_cmds
23354
23355# Variables whose values should be saved in libtool wrapper scripts and
23356# restored at link time.
23357variables_saved_for_relink=$lt_variables_saved_for_relink
23358
23359# Do we need the "lib" prefix for modules?
23360need_lib_prefix=$need_lib_prefix
23361
23362# Do we need a version for libraries?
23363need_version=$need_version
23364
23365# Library versioning type.
23366version_type=$version_type
23367
23368# Shared library runtime path variable.
23369runpath_var=$runpath_var
23370
23371# Shared library path variable.
23372shlibpath_var=$shlibpath_var
23373
23374# Is shlibpath searched before the hard-coded library search path?
23375shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23376
23377# Format of library name prefix.
23378libname_spec=$lt_libname_spec
23379
23380# List of archive names.  First name is the real one, the rest are links.
23381# The last name is the one that the linker finds with -lNAME
23382library_names_spec=$lt_library_names_spec
23383
23384# The coded name of the library, if different from the real name.
23385soname_spec=$lt_soname_spec
23386
23387# Permission mode override for installation of shared libraries.
23388install_override_mode=$lt_install_override_mode
23389
23390# Command to use after installation of a shared archive.
23391postinstall_cmds=$lt_postinstall_cmds
23392
23393# Command to use after uninstallation of a shared archive.
23394postuninstall_cmds=$lt_postuninstall_cmds
23395
23396# Commands used to finish a libtool library installation in a directory.
23397finish_cmds=$lt_finish_cmds
23398
23399# As "finish_cmds", except a single script fragment to be evaled but
23400# not shown.
23401finish_eval=$lt_finish_eval
23402
23403# Whether we should hardcode library paths into libraries.
23404hardcode_into_libs=$hardcode_into_libs
23405
23406# Compile-time system search path for libraries.
23407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23408
23409# Detected run-time system search path for libraries.
23410sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23411
23412# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23413configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23414
23415# Whether dlopen is supported.
23416dlopen_support=$enable_dlopen
23417
23418# Whether dlopen of programs is supported.
23419dlopen_self=$enable_dlopen_self
23420
23421# Whether dlopen of statically linked programs is supported.
23422dlopen_self_static=$enable_dlopen_self_static
23423
23424# Commands to strip libraries.
23425old_striplib=$lt_old_striplib
23426striplib=$lt_striplib
23427
23428
23429# The linker used to build libraries.
23430LD=$lt_LD
23431
23432# How to create reloadable object files.
23433reload_flag=$lt_reload_flag
23434reload_cmds=$lt_reload_cmds
23435
23436# Commands used to build an old-style archive.
23437old_archive_cmds=$lt_old_archive_cmds
23438
23439# A language specific compiler.
23440CC=$lt_compiler
23441
23442# Is the compiler the GNU compiler?
23443with_gcc=$GCC
23444
23445# Compiler flag to turn off builtin functions.
23446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23447
23448# Additional compiler flags for building library objects.
23449pic_flag=$lt_lt_prog_compiler_pic
23450
23451# How to pass a linker flag through the compiler.
23452wl=$lt_lt_prog_compiler_wl
23453
23454# Compiler flag to prevent dynamic linking.
23455link_static_flag=$lt_lt_prog_compiler_static
23456
23457# Does compiler simultaneously support -c and -o options?
23458compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23459
23460# Whether or not to add -lc for building shared libraries.
23461build_libtool_need_lc=$archive_cmds_need_lc
23462
23463# Whether or not to disallow shared libs when runtime libs are static.
23464allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23465
23466# Compiler flag to allow reflexive dlopens.
23467export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23468
23469# Compiler flag to generate shared objects directly from archives.
23470whole_archive_flag_spec=$lt_whole_archive_flag_spec
23471
23472# Whether the compiler copes with passing no objects directly.
23473compiler_needs_object=$lt_compiler_needs_object
23474
23475# Create an old-style archive from a shared archive.
23476old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23477
23478# Create a temporary old-style archive to link instead of a shared archive.
23479old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23480
23481# Commands used to build a shared archive.
23482archive_cmds=$lt_archive_cmds
23483archive_expsym_cmds=$lt_archive_expsym_cmds
23484
23485# Commands used to build a loadable module if different from building
23486# a shared archive.
23487module_cmds=$lt_module_cmds
23488module_expsym_cmds=$lt_module_expsym_cmds
23489
23490# Whether we are building with GNU ld or not.
23491with_gnu_ld=$lt_with_gnu_ld
23492
23493# Flag that allows shared libraries with undefined symbols to be built.
23494allow_undefined_flag=$lt_allow_undefined_flag
23495
23496# Flag that enforces no undefined symbols.
23497no_undefined_flag=$lt_no_undefined_flag
23498
23499# Flag to hardcode \$libdir into a binary during linking.
23500# This must work even if \$libdir does not exist
23501hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23502
23503# Whether we need a single "-rpath" flag with a separated argument.
23504hardcode_libdir_separator=$lt_hardcode_libdir_separator
23505
23506# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23507# DIR into the resulting binary.
23508hardcode_direct=$hardcode_direct
23509
23510# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23511# DIR into the resulting binary and the resulting library dependency is
23512# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23513# library is relocated.
23514hardcode_direct_absolute=$hardcode_direct_absolute
23515
23516# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23517# into the resulting binary.
23518hardcode_minus_L=$hardcode_minus_L
23519
23520# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23521# into the resulting binary.
23522hardcode_shlibpath_var=$hardcode_shlibpath_var
23523
23524# Set to "yes" if building a shared library automatically hardcodes DIR
23525# into the library and all subsequent libraries and executables linked
23526# against it.
23527hardcode_automatic=$hardcode_automatic
23528
23529# Set to yes if linker adds runtime paths of dependent libraries
23530# to runtime path list.
23531inherit_rpath=$inherit_rpath
23532
23533# Whether libtool must link a program against all its dependency libraries.
23534link_all_deplibs=$link_all_deplibs
23535
23536# Set to "yes" if exported symbols are required.
23537always_export_symbols=$always_export_symbols
23538
23539# The commands to list exported symbols.
23540export_symbols_cmds=$lt_export_symbols_cmds
23541
23542# Symbols that should not be listed in the preloaded symbols.
23543exclude_expsyms=$lt_exclude_expsyms
23544
23545# Symbols that must always be exported.
23546include_expsyms=$lt_include_expsyms
23547
23548# Commands necessary for linking programs (against libraries) with templates.
23549prelink_cmds=$lt_prelink_cmds
23550
23551# Commands necessary for finishing linking programs.
23552postlink_cmds=$lt_postlink_cmds
23553
23554# Specify filename containing input files.
23555file_list_spec=$lt_file_list_spec
23556
23557# How to hardcode a shared library path into an executable.
23558hardcode_action=$hardcode_action
23559
23560# ### END LIBTOOL CONFIG
23561
23562_LT_EOF
23563
23564    cat <<'_LT_EOF' >> "$cfgfile"
23565
23566# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23567
23568# func_munge_path_list VARIABLE PATH
23569# -----------------------------------
23570# VARIABLE is name of variable containing _space_ separated list of
23571# directories to be munged by the contents of PATH, which is string
23572# having a format:
23573# "DIR[:DIR]:"
23574#       string "DIR[ DIR]" will be prepended to VARIABLE
23575# ":DIR[:DIR]"
23576#       string "DIR[ DIR]" will be appended to VARIABLE
23577# "DIRP[:DIRP]::[DIRA:]DIRA"
23578#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23579#       "DIRA[ DIRA]" will be appended to VARIABLE
23580# "DIR[:DIR]"
23581#       VARIABLE will be replaced by "DIR[ DIR]"
23582func_munge_path_list ()
23583{
23584    case x$2 in
23585    x)
23586        ;;
23587    *:)
23588        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23589        ;;
23590    x:*)
23591        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23592        ;;
23593    *::*)
23594        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23595        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23596        ;;
23597    *)
23598        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23599        ;;
23600    esac
23601}
23602
23603
23604# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23605func_cc_basename ()
23606{
23607    for cc_temp in $*""; do
23608      case $cc_temp in
23609        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23610        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23611        \-*) ;;
23612        *) break;;
23613      esac
23614    done
23615    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23616}
23617
23618
23619# ### END FUNCTIONS SHARED WITH CONFIGURE
23620
23621_LT_EOF
23622
23623  case $host_os in
23624  aix3*)
23625    cat <<\_LT_EOF >> "$cfgfile"
23626# AIX sometimes has problems with the GCC collect2 program.  For some
23627# reason, if we set the COLLECT_NAMES environment variable, the problems
23628# vanish in a puff of smoke.
23629if test set != "${COLLECT_NAMES+set}"; then
23630  COLLECT_NAMES=
23631  export COLLECT_NAMES
23632fi
23633_LT_EOF
23634    ;;
23635  esac
23636
23637
23638
23639ltmain=$ac_aux_dir/ltmain.sh
23640
23641
23642  # We use sed instead of cat because bash on DJGPP gets confused if
23643  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23644  # text mode, it properly converts lines to CR/LF.  This bash problem
23645  # is reportedly fixed, but why not run on old versions too?
23646  $SED '$q' "$ltmain" >> "$cfgfile" \
23647     || (rm -f "$cfgfile"; exit 1)
23648
23649   mv -f "$cfgfile" "$ofile" ||
23650    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23651  chmod +x "$ofile"
23652
23653 ;;
23654
23655  esac
23656done # for ac_tag
23657
23658
23659as_fn_exit 0
23660_ACEOF
23661ac_clean_files=$ac_clean_files_save
23662
23663test $ac_write_fail = 0 ||
23664  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23665
23666
23667# configure is writing to config.log, and then calls config.status.
23668# config.status does its own redirection, appending to config.log.
23669# Unfortunately, on DOS this fails, as config.log is still kept open
23670# by configure, so config.status won't be able to write to it; its
23671# output is simply discarded.  So we exec the FD to /dev/null,
23672# effectively closing config.log, so it can be properly (re)opened and
23673# appended to by config.status.  When coming back to configure, we
23674# need to make the FD available again.
23675if test "$no_create" != yes; then
23676  ac_cs_success=:
23677  ac_config_status_args=
23678  test "$silent" = yes &&
23679    ac_config_status_args="$ac_config_status_args --quiet"
23680  exec 5>/dev/null
23681  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23682  exec 5>>config.log
23683  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23684  # would make configure fail if this is the last instruction.
23685  $ac_cs_success || as_fn_exit 1
23686fi
23687if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23689printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23690fi
23691
23692
23693