configure revision 95b7a5c8
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXau 1.0.10.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='libXau'
624PACKAGE_TARNAME='libXau'
625PACKAGE_VERSION='1.0.10'
626PACKAGE_STRING='libXau 1.0.10'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667MAKE_LINT_LIB_FALSE
668MAKE_LINT_LIB_TRUE
669LINTLIB
670LINT_FALSE
671LINT_TRUE
672LINT_FLAGS
673LINT
674XAU_LIBS
675XAU_CFLAGS
676MAN_SUBSTS
677XORG_MAN_PAGE
678ADMIN_MAN_DIR
679DRIVER_MAN_DIR
680MISC_MAN_DIR
681FILE_MAN_DIR
682LIB_MAN_DIR
683APP_MAN_DIR
684ADMIN_MAN_SUFFIX
685DRIVER_MAN_SUFFIX
686MISC_MAN_SUFFIX
687FILE_MAN_SUFFIX
688LIB_MAN_SUFFIX
689APP_MAN_SUFFIX
690INSTALL_CMD
691PKG_CONFIG_LIBDIR
692PKG_CONFIG_PATH
693PKG_CONFIG
694CHANGELOG_CMD
695STRICT_CFLAGS
696CWARNFLAGS
697BASE_CFLAGS
698LT_SYS_LIBRARY_PATH
699OTOOL64
700OTOOL
701LIPO
702NMEDIT
703DSYMUTIL
704MANIFEST_TOOL
705RANLIB
706ac_ct_AR
707AR
708FILECMD
709LN_S
710NM
711ac_ct_DUMPBIN
712DUMPBIN
713LD
714FGREP
715EGREP
716GREP
717SED
718LIBTOOL
719OBJDUMP
720DLLTOOL
721AS
722host_os
723host_vendor
724host_cpu
725host
726build_os
727build_vendor
728build_cpu
729build
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
734CSCOPE
735ETAGS
736CTAGS
737am__fastdepCC_FALSE
738am__fastdepCC_TRUE
739CCDEPMODE
740am__nodep
741AMDEPBACKSLASH
742AMDEP_FALSE
743AMDEP_TRUE
744am__include
745DEPDIR
746am__untar
747am__tar
748AMTAR
749am__leading_dot
750SET_MAKE
751AWK
752mkdir_p
753MKDIR_P
754INSTALL_STRIP_PROGRAM
755STRIP
756install_sh
757MAKEINFO
758AUTOHEADER
759AUTOMAKE
760AUTOCONF
761ACLOCAL
762VERSION
763PACKAGE
764CYGPATH_W
765am__isrc
766INSTALL_DATA
767INSTALL_SCRIPT
768INSTALL_PROGRAM
769OBJEXT
770EXEEXT
771ac_ct_CC
772CPPFLAGS
773LDFLAGS
774CFLAGS
775CC
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795runstatedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL
815am__quote'
816ac_subst_files=''
817ac_user_opts='
818enable_option_checking
819enable_dependency_tracking
820enable_silent_rules
821enable_shared
822enable_static
823with_pic
824enable_fast_install
825with_aix_soname
826with_gnu_ld
827with_sysroot
828enable_libtool_lock
829enable_selective_werror
830enable_strict_compilation
831enable_xthreads
832with_lint
833enable_lint_library
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.10 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.10:";;
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-fast-install[=PKGS]
1487                          optimize for fast installation [default=yes]
1488  --disable-libtool-lock  avoid locking (might break parallel builds)
1489  --disable-selective-werror
1490                          Turn off selective compiler errors. (default:
1491                          enabled)
1492  --enable-strict-compilation
1493                          Enable all warnings from compiler and make them
1494                          errors (default: disabled)
1495  --disable-xthreads      Disable libXau support for Multithreading
1496  --enable-lint-library   Create lint library (default: disabled)
1497
1498Optional Packages:
1499  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1502                          both]
1503  --with-aix-soname=aix|svr4|both
1504                          shared library versioning (aka "SONAME") variant to
1505                          provide on AIX, [default=aix].
1506  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1507  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1508                          compiler's sysroot if not specified).
1509  --with-lint             Use a lint-style source code checker (default:
1510                          disabled)
1511
1512Some influential environment variables:
1513  CC          C compiler command
1514  CFLAGS      C compiler flags
1515  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516              nonstandard directory <lib dir>
1517  LIBS        libraries to pass to the linker, e.g. -l<library>
1518  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519              you have headers in a nonstandard directory <include dir>
1520  LT_SYS_LIBRARY_PATH
1521              User-defined run-time library search path.
1522  PKG_CONFIG  path to pkg-config utility
1523  PKG_CONFIG_PATH
1524              directories to add to pkg-config's search path
1525  PKG_CONFIG_LIBDIR
1526              path overriding pkg-config's built-in search path
1527  XAU_CFLAGS  C compiler flags for XAU, overriding pkg-config
1528  XAU_LIBS    linker flags for XAU, overriding pkg-config
1529  LINT        Path to a lint-style command
1530  LINT_FLAGS  Flags for the lint-style command
1531
1532Use these variables to override the choices made by `configure' or to help
1533it to find libraries and programs with nonstandard names/locations.
1534
1535Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>.
1536_ACEOF
1537ac_status=$?
1538fi
1539
1540if test "$ac_init_help" = "recursive"; then
1541  # If there are subdirs, report their specific --help.
1542  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543    test -d "$ac_dir" ||
1544      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545      continue
1546    ac_builddir=.
1547
1548case "$ac_dir" in
1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550*)
1551  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552  # A ".." for each directory in $ac_dir_suffix.
1553  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554  case $ac_top_builddir_sub in
1555  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557  esac ;;
1558esac
1559ac_abs_top_builddir=$ac_pwd
1560ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561# for backward compatibility:
1562ac_top_builddir=$ac_top_build_prefix
1563
1564case $srcdir in
1565  .)  # We are building in place.
1566    ac_srcdir=.
1567    ac_top_srcdir=$ac_top_builddir_sub
1568    ac_abs_top_srcdir=$ac_pwd ;;
1569  [\\/]* | ?:[\\/]* )  # Absolute name.
1570    ac_srcdir=$srcdir$ac_dir_suffix;
1571    ac_top_srcdir=$srcdir
1572    ac_abs_top_srcdir=$srcdir ;;
1573  *) # Relative name.
1574    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575    ac_top_srcdir=$ac_top_build_prefix$srcdir
1576    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577esac
1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580    cd "$ac_dir" || { ac_status=$?; continue; }
1581    # Check for configure.gnu first; this name is used for a wrapper for
1582    # Metaconfig's "Configure" on case-insensitive file systems.
1583    if test -f "$ac_srcdir/configure.gnu"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586    elif test -f "$ac_srcdir/configure"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure" --help=recursive
1589    else
1590      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591    fi || ac_status=$?
1592    cd "$ac_pwd" || { ac_status=$?; break; }
1593  done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598  cat <<\_ACEOF
1599libXau configure 1.0.10
1600generated by GNU Autoconf 2.71
1601
1602Copyright (C) 2021 Free Software Foundation, Inc.
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
1606  exit
1607fi
1608
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
1612
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_compile ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  rm -f conftest.$ac_objext conftest.beam
1620  if { { ac_try="$ac_compile"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626printf "%s\n" "$ac_try_echo"; } >&5
1627  (eval "$ac_compile") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && {
1636	 test -z "$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       } && test -s conftest.$ac_objext
1639then :
1640  ac_retval=0
1641else $as_nop
1642  printf "%s\n" "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645	ac_retval=1
1646fi
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_compile
1651
1652# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653# -------------------------------------------------------
1654# Tests whether HEADER exists and can be compiled using the include files in
1655# INCLUDES, setting the cache variable VAR accordingly.
1656ac_fn_c_check_header_compile ()
1657{
1658  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660printf %s "checking for $2... " >&6; }
1661if eval test \${$3+y}
1662then :
1663  printf %s "(cached) " >&6
1664else $as_nop
1665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666/* end confdefs.h.  */
1667$4
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_compile "$LINENO"
1671then :
1672  eval "$3=yes"
1673else $as_nop
1674  eval "$3=no"
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680printf "%s\n" "$ac_res" >&6; }
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_header_compile
1684
1685# ac_fn_c_try_link LINENO
1686# -----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_link ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698printf "%s\n" "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>conftest.err
1700  ac_status=$?
1701  if test -s conftest.err; then
1702    grep -v '^ *+' conftest.err >conftest.er1
1703    cat conftest.er1 >&5
1704    mv -f conftest.er1 conftest.err
1705  fi
1706  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && {
1708	 test -z "$ac_c_werror_flag" ||
1709	 test ! -s conftest.err
1710       } && test -s conftest$ac_exeext && {
1711	 test "$cross_compiling" = yes ||
1712	 test -x conftest$ac_exeext
1713       }
1714then :
1715  ac_retval=0
1716else $as_nop
1717  printf "%s\n" "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720	ac_retval=1
1721fi
1722  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724  # interfere with the next link command; also delete a directory that is
1725  # left behind by Apple's compiler.  We do this before executing the actions.
1726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728  as_fn_set_status $ac_retval
1729
1730} # ac_fn_c_try_link
1731
1732# ac_fn_c_check_func LINENO FUNC VAR
1733# ----------------------------------
1734# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735ac_fn_c_check_func ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739printf %s "checking for $2... " >&6; }
1740if eval test \${$3+y}
1741then :
1742  printf %s "(cached) " >&6
1743else $as_nop
1744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1748#define $2 innocuous_$2
1749
1750/* System header to define __stub macros and hopefully few prototypes,
1751   which can conflict with char $2 (); below.  */
1752
1753#include <limits.h>
1754#undef $2
1755
1756/* Override any GCC internal prototype to avoid an error.
1757   Use char because int might match the return type of a GCC
1758   builtin and then its argument prototype would still apply.  */
1759#ifdef __cplusplus
1760extern "C"
1761#endif
1762char $2 ();
1763/* The GNU C library defines this for functions which it implements
1764    to always fail with ENOSYS.  Some functions are actually named
1765    something starting with __ and the normal name is an alias.  */
1766#if defined __stub_$2 || defined __stub___$2
1767choke me
1768#endif
1769
1770int
1771main (void)
1772{
1773return $2 ();
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_link "$LINENO"
1779then :
1780  eval "$3=yes"
1781else $as_nop
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789printf "%s\n" "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1795# ------------------------------------------------------------------
1796# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1797# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1798ac_fn_check_decl ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  as_decl_name=`echo $2|sed 's/ *(.*//'`
1802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1803printf %s "checking whether $as_decl_name is declared... " >&6; }
1804if eval test \${$3+y}
1805then :
1806  printf %s "(cached) " >&6
1807else $as_nop
1808  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1809  eval ac_save_FLAGS=\$$6
1810  as_fn_append $6 " $5"
1811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813$4
1814int
1815main (void)
1816{
1817#ifndef $as_decl_name
1818#ifdef __cplusplus
1819  (void) $as_decl_use;
1820#else
1821  (void) $as_decl_name;
1822#endif
1823#endif
1824
1825  ;
1826  return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"
1830then :
1831  eval "$3=yes"
1832else $as_nop
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1836  eval $6=\$ac_save_FLAGS
1837
1838fi
1839eval ac_res=\$$3
1840	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841printf "%s\n" "$ac_res" >&6; }
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844} # ac_fn_check_decl
1845ac_configure_args_raw=
1846for ac_arg
1847do
1848  case $ac_arg in
1849  *\'*)
1850    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1851  esac
1852  as_fn_append ac_configure_args_raw " '$ac_arg'"
1853done
1854
1855case $ac_configure_args_raw in
1856  *$as_nl*)
1857    ac_safe_unquote= ;;
1858  *)
1859    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1860    ac_unsafe_a="$ac_unsafe_z#~"
1861    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1862    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1863esac
1864
1865cat >config.log <<_ACEOF
1866This file contains any messages produced by compilers while
1867running configure, to aid debugging if configure makes a mistake.
1868
1869It was created by libXau $as_me 1.0.10, which was
1870generated by GNU Autoconf 2.71.  Invocation command line was
1871
1872  $ $0$ac_configure_args_raw
1873
1874_ACEOF
1875exec 5>>config.log
1876{
1877cat <<_ASUNAME
1878## --------- ##
1879## Platform. ##
1880## --------- ##
1881
1882hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1890
1891/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1892/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1893/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1895/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1896/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1897/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1898
1899_ASUNAME
1900
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  case $as_dir in #(((
1906    '') as_dir=./ ;;
1907    */) ;;
1908    *) as_dir=$as_dir/ ;;
1909  esac
1910    printf "%s\n" "PATH: $as_dir"
1911  done
1912IFS=$as_save_IFS
1913
1914} >&5
1915
1916cat >&5 <<_ACEOF
1917
1918
1919## ----------- ##
1920## Core tests. ##
1921## ----------- ##
1922
1923_ACEOF
1924
1925
1926# Keep a trace of the command line.
1927# Strip out --no-create and --no-recursion so they do not pile up.
1928# Strip out --silent because we don't want to record it for future runs.
1929# Also quote any args containing shell meta-characters.
1930# Make two passes to allow for proper duplicate-argument suppression.
1931ac_configure_args=
1932ac_configure_args0=
1933ac_configure_args1=
1934ac_must_keep_next=false
1935for ac_pass in 1 2
1936do
1937  for ac_arg
1938  do
1939    case $ac_arg in
1940    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1941    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1942    | -silent | --silent | --silen | --sile | --sil)
1943      continue ;;
1944    *\'*)
1945      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946    esac
1947    case $ac_pass in
1948    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949    2)
1950      as_fn_append ac_configure_args1 " '$ac_arg'"
1951      if test $ac_must_keep_next = true; then
1952	ac_must_keep_next=false # Got value, back to normal.
1953      else
1954	case $ac_arg in
1955	  *=* | --config-cache | -C | -disable-* | --disable-* \
1956	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1957	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1958	  | -with-* | --with-* | -without-* | --without-* | --x)
1959	    case "$ac_configure_args0 " in
1960	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961	    esac
1962	    ;;
1963	  -* ) ac_must_keep_next=true ;;
1964	esac
1965      fi
1966      as_fn_append ac_configure_args " '$ac_arg'"
1967      ;;
1968    esac
1969  done
1970done
1971{ ac_configure_args0=; unset ac_configure_args0;}
1972{ ac_configure_args1=; unset ac_configure_args1;}
1973
1974# When interrupted or exit'd, cleanup temporary files, and complete
1975# config.log.  We remove comments because anyway the quotes in there
1976# would cause problems or look ugly.
1977# WARNING: Use '\'' to represent an apostrophe within the trap.
1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1979trap 'exit_status=$?
1980  # Sanitize IFS.
1981  IFS=" ""	$as_nl"
1982  # Save into config.log some information that might help in debugging.
1983  {
1984    echo
1985
1986    printf "%s\n" "## ---------------- ##
1987## Cache variables. ##
1988## ---------------- ##"
1989    echo
1990    # The following way of writing the cache mishandles newlines in values,
1991(
1992  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993    eval ac_val=\$$ac_var
1994    case $ac_val in #(
1995    *${as_nl}*)
1996      case $ac_var in #(
1997      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999      esac
2000      case $ac_var in #(
2001      _ | IFS | as_nl) ;; #(
2002      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003      *) { eval $ac_var=; unset $ac_var;} ;;
2004      esac ;;
2005    esac
2006  done
2007  (set) 2>&1 |
2008    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009    *${as_nl}ac_space=\ *)
2010      sed -n \
2011	"s/'\''/'\''\\\\'\'''\''/g;
2012	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013      ;; #(
2014    *)
2015      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016      ;;
2017    esac |
2018    sort
2019)
2020    echo
2021
2022    printf "%s\n" "## ----------------- ##
2023## Output variables. ##
2024## ----------------- ##"
2025    echo
2026    for ac_var in $ac_subst_vars
2027    do
2028      eval ac_val=\$$ac_var
2029      case $ac_val in
2030      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031      esac
2032      printf "%s\n" "$ac_var='\''$ac_val'\''"
2033    done | sort
2034    echo
2035
2036    if test -n "$ac_subst_files"; then
2037      printf "%s\n" "## ------------------- ##
2038## File substitutions. ##
2039## ------------------- ##"
2040      echo
2041      for ac_var in $ac_subst_files
2042      do
2043	eval ac_val=\$$ac_var
2044	case $ac_val in
2045	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046	esac
2047	printf "%s\n" "$ac_var='\''$ac_val'\''"
2048      done | sort
2049      echo
2050    fi
2051
2052    if test -s confdefs.h; then
2053      printf "%s\n" "## ----------- ##
2054## confdefs.h. ##
2055## ----------- ##"
2056      echo
2057      cat confdefs.h
2058      echo
2059    fi
2060    test "$ac_signal" != 0 &&
2061      printf "%s\n" "$as_me: caught signal $ac_signal"
2062    printf "%s\n" "$as_me: exit $exit_status"
2063  } >&5
2064  rm -f core *.core core.conftest.* &&
2065    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066    exit $exit_status
2067' 0
2068for ac_signal in 1 2 13 15; do
2069  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070done
2071ac_signal=0
2072
2073# confdefs.h avoids OS command line length limits that DEFS can exceed.
2074rm -f -r conftest* confdefs.h
2075
2076printf "%s\n" "/* confdefs.h */" > confdefs.h
2077
2078# Predefined preprocessor variables.
2079
2080printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2081
2082printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2083
2084printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2085
2086printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2087
2088printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2089
2090printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2091
2092
2093# Let the site file select an alternate cache file if it wants to.
2094# Prefer an explicitly selected file to automatically selected ones.
2095if test -n "$CONFIG_SITE"; then
2096  ac_site_files="$CONFIG_SITE"
2097elif test "x$prefix" != xNONE; then
2098  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2099else
2100  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2101fi
2102
2103for ac_site_file in $ac_site_files
2104do
2105  case $ac_site_file in #(
2106  */*) :
2107     ;; #(
2108  *) :
2109    ac_site_file=./$ac_site_file ;;
2110esac
2111  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2112    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2113printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2114    sed 's/^/| /' "$ac_site_file" >&5
2115    . "$ac_site_file" \
2116      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2117printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2118as_fn_error $? "failed to load site script $ac_site_file
2119See \`config.log' for more details" "$LINENO" 5; }
2120  fi
2121done
2122
2123if test -r "$cache_file"; then
2124  # Some versions of bash will fail to source /dev/null (special files
2125  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2126  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2127    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2128printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2129    case $cache_file in
2130      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2131      *)                      . "./$cache_file";;
2132    esac
2133  fi
2134else
2135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2136printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2137  >$cache_file
2138fi
2139
2140as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2141# Test code for whether the C compiler supports C89 (global declarations)
2142ac_c_conftest_c89_globals='
2143/* Does the compiler advertise C89 conformance?
2144   Do not test the value of __STDC__, because some compilers set it to 0
2145   while being otherwise adequately conformant. */
2146#if !defined __STDC__
2147# error "Compiler does not advertise C89 conformance"
2148#endif
2149
2150#include <stddef.h>
2151#include <stdarg.h>
2152struct stat;
2153/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2154struct buf { int x; };
2155struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2156static char *e (p, i)
2157     char **p;
2158     int i;
2159{
2160  return p[i];
2161}
2162static char *f (char * (*g) (char **, int), char **p, ...)
2163{
2164  char *s;
2165  va_list v;
2166  va_start (v,p);
2167  s = g (p, va_arg (v,int));
2168  va_end (v);
2169  return s;
2170}
2171
2172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2173   function prototypes and stuff, but not \xHH hex character constants.
2174   These do not provoke an error unfortunately, instead are silently treated
2175   as an "x".  The following induces an error, until -std is added to get
2176   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2177   array size at least.  It is necessary to write \x00 == 0 to get something
2178   that is true only with -std.  */
2179int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2180
2181/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2182   inside strings and character constants.  */
2183#define FOO(x) '\''x'\''
2184int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2185
2186int test (int i, double x);
2187struct s1 {int (*f) (int a);};
2188struct s2 {int (*f) (double a);};
2189int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2190               int, int);'
2191
2192# Test code for whether the C compiler supports C89 (body of main).
2193ac_c_conftest_c89_main='
2194ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2195'
2196
2197# Test code for whether the C compiler supports C99 (global declarations)
2198ac_c_conftest_c99_globals='
2199// Does the compiler advertise C99 conformance?
2200#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2201# error "Compiler does not advertise C99 conformance"
2202#endif
2203
2204#include <stdbool.h>
2205extern int puts (const char *);
2206extern int printf (const char *, ...);
2207extern int dprintf (int, const char *, ...);
2208extern void *malloc (size_t);
2209
2210// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2211// dprintf is used instead of fprintf to avoid needing to declare
2212// FILE and stderr.
2213#define debug(...) dprintf (2, __VA_ARGS__)
2214#define showlist(...) puts (#__VA_ARGS__)
2215#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2216static void
2217test_varargs_macros (void)
2218{
2219  int x = 1234;
2220  int y = 5678;
2221  debug ("Flag");
2222  debug ("X = %d\n", x);
2223  showlist (The first, second, and third items.);
2224  report (x>y, "x is %d but y is %d", x, y);
2225}
2226
2227// Check long long types.
2228#define BIG64 18446744073709551615ull
2229#define BIG32 4294967295ul
2230#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2231#if !BIG_OK
2232  #error "your preprocessor is broken"
2233#endif
2234#if BIG_OK
2235#else
2236  #error "your preprocessor is broken"
2237#endif
2238static long long int bignum = -9223372036854775807LL;
2239static unsigned long long int ubignum = BIG64;
2240
2241struct incomplete_array
2242{
2243  int datasize;
2244  double data[];
2245};
2246
2247struct named_init {
2248  int number;
2249  const wchar_t *name;
2250  double average;
2251};
2252
2253typedef const char *ccp;
2254
2255static inline int
2256test_restrict (ccp restrict text)
2257{
2258  // See if C++-style comments work.
2259  // Iterate through items via the restricted pointer.
2260  // Also check for declarations in for loops.
2261  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2262    continue;
2263  return 0;
2264}
2265
2266// Check varargs and va_copy.
2267static bool
2268test_varargs (const char *format, ...)
2269{
2270  va_list args;
2271  va_start (args, format);
2272  va_list args_copy;
2273  va_copy (args_copy, args);
2274
2275  const char *str = "";
2276  int number = 0;
2277  float fnumber = 0;
2278
2279  while (*format)
2280    {
2281      switch (*format++)
2282	{
2283	case '\''s'\'': // string
2284	  str = va_arg (args_copy, const char *);
2285	  break;
2286	case '\''d'\'': // int
2287	  number = va_arg (args_copy, int);
2288	  break;
2289	case '\''f'\'': // float
2290	  fnumber = va_arg (args_copy, double);
2291	  break;
2292	default:
2293	  break;
2294	}
2295    }
2296  va_end (args_copy);
2297  va_end (args);
2298
2299  return *str && number && fnumber;
2300}
2301'
2302
2303# Test code for whether the C compiler supports C99 (body of main).
2304ac_c_conftest_c99_main='
2305  // Check bool.
2306  _Bool success = false;
2307  success |= (argc != 0);
2308
2309  // Check restrict.
2310  if (test_restrict ("String literal") == 0)
2311    success = true;
2312  char *restrict newvar = "Another string";
2313
2314  // Check varargs.
2315  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2316  test_varargs_macros ();
2317
2318  // Check flexible array members.
2319  struct incomplete_array *ia =
2320    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2321  ia->datasize = 10;
2322  for (int i = 0; i < ia->datasize; ++i)
2323    ia->data[i] = i * 1.234;
2324
2325  // Check named initializers.
2326  struct named_init ni = {
2327    .number = 34,
2328    .name = L"Test wide string",
2329    .average = 543.34343,
2330  };
2331
2332  ni.number = 58;
2333
2334  int dynamic_array[ni.number];
2335  dynamic_array[0] = argv[0][0];
2336  dynamic_array[ni.number - 1] = 543;
2337
2338  // work around unused variable warnings
2339  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2340	 || dynamic_array[ni.number - 1] != 543);
2341'
2342
2343# Test code for whether the C compiler supports C11 (global declarations)
2344ac_c_conftest_c11_globals='
2345// Does the compiler advertise C11 conformance?
2346#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2347# error "Compiler does not advertise C11 conformance"
2348#endif
2349
2350// Check _Alignas.
2351char _Alignas (double) aligned_as_double;
2352char _Alignas (0) no_special_alignment;
2353extern char aligned_as_int;
2354char _Alignas (0) _Alignas (int) aligned_as_int;
2355
2356// Check _Alignof.
2357enum
2358{
2359  int_alignment = _Alignof (int),
2360  int_array_alignment = _Alignof (int[100]),
2361  char_alignment = _Alignof (char)
2362};
2363_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2364
2365// Check _Noreturn.
2366int _Noreturn does_not_return (void) { for (;;) continue; }
2367
2368// Check _Static_assert.
2369struct test_static_assert
2370{
2371  int x;
2372  _Static_assert (sizeof (int) <= sizeof (long int),
2373                  "_Static_assert does not work in struct");
2374  long int y;
2375};
2376
2377// Check UTF-8 literals.
2378#define u8 syntax error!
2379char const utf8_literal[] = u8"happens to be ASCII" "another string";
2380
2381// Check duplicate typedefs.
2382typedef long *long_ptr;
2383typedef long int *long_ptr;
2384typedef long_ptr long_ptr;
2385
2386// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2387struct anonymous
2388{
2389  union {
2390    struct { int i; int j; };
2391    struct { int k; long int l; } w;
2392  };
2393  int m;
2394} v1;
2395'
2396
2397# Test code for whether the C compiler supports C11 (body of main).
2398ac_c_conftest_c11_main='
2399  _Static_assert ((offsetof (struct anonymous, i)
2400		   == offsetof (struct anonymous, w.k)),
2401		  "Anonymous union alignment botch");
2402  v1.i = 2;
2403  v1.w.k = 5;
2404  ok |= v1.i != 5;
2405'
2406
2407# Test code for whether the C compiler supports C11 (complete).
2408ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2409${ac_c_conftest_c99_globals}
2410${ac_c_conftest_c11_globals}
2411
2412int
2413main (int argc, char **argv)
2414{
2415  int ok = 0;
2416  ${ac_c_conftest_c89_main}
2417  ${ac_c_conftest_c99_main}
2418  ${ac_c_conftest_c11_main}
2419  return ok;
2420}
2421"
2422
2423# Test code for whether the C compiler supports C99 (complete).
2424ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2425${ac_c_conftest_c99_globals}
2426
2427int
2428main (int argc, char **argv)
2429{
2430  int ok = 0;
2431  ${ac_c_conftest_c89_main}
2432  ${ac_c_conftest_c99_main}
2433  return ok;
2434}
2435"
2436
2437# Test code for whether the C compiler supports C89 (complete).
2438ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2439
2440int
2441main (int argc, char **argv)
2442{
2443  int ok = 0;
2444  ${ac_c_conftest_c89_main}
2445  return ok;
2446}
2447"
2448
2449as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2450as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2451as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2452as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2453as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2454as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2455as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2456as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2457as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2458as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2459
2460# Auxiliary files required by this configure script.
2461ac_aux_files="ltmain.sh config.guess config.sub missing install-sh compile"
2462
2463# Locations in which to look for auxiliary files.
2464ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2465
2466# Search for a directory containing all of the required auxiliary files,
2467# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2468# If we don't find one directory that contains all the files we need,
2469# we report the set of missing files from the *first* directory in
2470# $ac_aux_dir_candidates and give up.
2471ac_missing_aux_files=""
2472ac_first_candidate=:
2473printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475as_found=false
2476for as_dir in $ac_aux_dir_candidates
2477do
2478  IFS=$as_save_IFS
2479  case $as_dir in #(((
2480    '') as_dir=./ ;;
2481    */) ;;
2482    *) as_dir=$as_dir/ ;;
2483  esac
2484  as_found=:
2485
2486  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2487  ac_aux_dir_found=yes
2488  ac_install_sh=
2489  for ac_aux in $ac_aux_files
2490  do
2491    # As a special case, if "install-sh" is required, that requirement
2492    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2493    # and $ac_install_sh is set appropriately for whichever one is found.
2494    if test x"$ac_aux" = x"install-sh"
2495    then
2496      if test -f "${as_dir}install-sh"; then
2497        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2498        ac_install_sh="${as_dir}install-sh -c"
2499      elif test -f "${as_dir}install.sh"; then
2500        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2501        ac_install_sh="${as_dir}install.sh -c"
2502      elif test -f "${as_dir}shtool"; then
2503        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2504        ac_install_sh="${as_dir}shtool install -c"
2505      else
2506        ac_aux_dir_found=no
2507        if $ac_first_candidate; then
2508          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2509        else
2510          break
2511        fi
2512      fi
2513    else
2514      if test -f "${as_dir}${ac_aux}"; then
2515        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2516      else
2517        ac_aux_dir_found=no
2518        if $ac_first_candidate; then
2519          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2520        else
2521          break
2522        fi
2523      fi
2524    fi
2525  done
2526  if test "$ac_aux_dir_found" = yes; then
2527    ac_aux_dir="$as_dir"
2528    break
2529  fi
2530  ac_first_candidate=false
2531
2532  as_found=false
2533done
2534IFS=$as_save_IFS
2535if $as_found
2536then :
2537
2538else $as_nop
2539  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2540fi
2541
2542
2543# These three variables are undocumented and unsupported,
2544# and are intended to be withdrawn in a future Autoconf release.
2545# They can cause serious problems if a builder's source tree is in a directory
2546# whose full name contains unusual characters.
2547if test -f "${ac_aux_dir}config.guess"; then
2548  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2549fi
2550if test -f "${ac_aux_dir}config.sub"; then
2551  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2552fi
2553if test -f "$ac_aux_dir/configure"; then
2554  ac_configure="$SHELL ${ac_aux_dir}configure"
2555fi
2556
2557# Check that the precious variables saved in the cache have kept the same
2558# value.
2559ac_cache_corrupted=false
2560for ac_var in $ac_precious_vars; do
2561  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2562  eval ac_new_set=\$ac_env_${ac_var}_set
2563  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2564  eval ac_new_val=\$ac_env_${ac_var}_value
2565  case $ac_old_set,$ac_new_set in
2566    set,)
2567      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2568printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2569      ac_cache_corrupted=: ;;
2570    ,set)
2571      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2572printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2573      ac_cache_corrupted=: ;;
2574    ,);;
2575    *)
2576      if test "x$ac_old_val" != "x$ac_new_val"; then
2577	# differences in whitespace do not lead to failure.
2578	ac_old_val_w=`echo x $ac_old_val`
2579	ac_new_val_w=`echo x $ac_new_val`
2580	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2581	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2582printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2583	  ac_cache_corrupted=:
2584	else
2585	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2586printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2587	  eval $ac_var=\$ac_old_val
2588	fi
2589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2590printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2592printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2593      fi;;
2594  esac
2595  # Pass precious variables to config.status.
2596  if test "$ac_new_set" = set; then
2597    case $ac_new_val in
2598    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2599    *) ac_arg=$ac_var=$ac_new_val ;;
2600    esac
2601    case " $ac_configure_args " in
2602      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2603      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2604    esac
2605  fi
2606done
2607if $ac_cache_corrupted; then
2608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2611printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2612  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2613	    and start over" "$LINENO" 5
2614fi
2615## -------------------- ##
2616## Main body of script. ##
2617## -------------------- ##
2618
2619ac_ext=c
2620ac_cpp='$CPP $CPPFLAGS'
2621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624
2625
2626
2627ac_config_headers="$ac_config_headers config.h"
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640# Expand $ac_aux_dir to an absolute path.
2641am_aux_dir=`cd "$ac_aux_dir" && pwd`
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648if test -n "$ac_tool_prefix"; then
2649  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2650set dummy ${ac_tool_prefix}gcc; ac_word=$2
2651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652printf %s "checking for $ac_word... " >&6; }
2653if test ${ac_cv_prog_CC+y}
2654then :
2655  printf %s "(cached) " >&6
2656else $as_nop
2657  if test -n "$CC"; then
2658  ac_cv_prog_CC="$CC" # Let the user override the test.
2659else
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663  IFS=$as_save_IFS
2664  case $as_dir in #(((
2665    '') as_dir=./ ;;
2666    */) ;;
2667    *) as_dir=$as_dir/ ;;
2668  esac
2669    for ac_exec_ext in '' $ac_executable_extensions; do
2670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2671    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2673    break 2
2674  fi
2675done
2676  done
2677IFS=$as_save_IFS
2678
2679fi
2680fi
2681CC=$ac_cv_prog_CC
2682if test -n "$CC"; then
2683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684printf "%s\n" "$CC" >&6; }
2685else
2686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687printf "%s\n" "no" >&6; }
2688fi
2689
2690
2691fi
2692if test -z "$ac_cv_prog_CC"; then
2693  ac_ct_CC=$CC
2694  # Extract the first word of "gcc", so it can be a program name with args.
2695set dummy gcc; ac_word=$2
2696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697printf %s "checking for $ac_word... " >&6; }
2698if test ${ac_cv_prog_ac_ct_CC+y}
2699then :
2700  printf %s "(cached) " >&6
2701else $as_nop
2702  if test -n "$ac_ct_CC"; then
2703  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708  IFS=$as_save_IFS
2709  case $as_dir in #(((
2710    '') as_dir=./ ;;
2711    */) ;;
2712    *) as_dir=$as_dir/ ;;
2713  esac
2714    for ac_exec_ext in '' $ac_executable_extensions; do
2715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2716    ac_cv_prog_ac_ct_CC="gcc"
2717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721  done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726ac_ct_CC=$ac_cv_prog_ac_ct_CC
2727if test -n "$ac_ct_CC"; then
2728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2729printf "%s\n" "$ac_ct_CC" >&6; }
2730else
2731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732printf "%s\n" "no" >&6; }
2733fi
2734
2735  if test "x$ac_ct_CC" = x; then
2736    CC=""
2737  else
2738    case $cross_compiling:$ac_tool_warned in
2739yes:)
2740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742ac_tool_warned=yes ;;
2743esac
2744    CC=$ac_ct_CC
2745  fi
2746else
2747  CC="$ac_cv_prog_CC"
2748fi
2749
2750if test -z "$CC"; then
2751          if test -n "$ac_tool_prefix"; then
2752    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2753set dummy ${ac_tool_prefix}cc; ac_word=$2
2754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755printf %s "checking for $ac_word... " >&6; }
2756if test ${ac_cv_prog_CC+y}
2757then :
2758  printf %s "(cached) " >&6
2759else $as_nop
2760  if test -n "$CC"; then
2761  ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766  IFS=$as_save_IFS
2767  case $as_dir in #(((
2768    '') as_dir=./ ;;
2769    */) ;;
2770    *) as_dir=$as_dir/ ;;
2771  esac
2772    for ac_exec_ext in '' $ac_executable_extensions; do
2773  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2774    ac_cv_prog_CC="${ac_tool_prefix}cc"
2775    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2776    break 2
2777  fi
2778done
2779  done
2780IFS=$as_save_IFS
2781
2782fi
2783fi
2784CC=$ac_cv_prog_CC
2785if test -n "$CC"; then
2786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787printf "%s\n" "$CC" >&6; }
2788else
2789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790printf "%s\n" "no" >&6; }
2791fi
2792
2793
2794  fi
2795fi
2796if test -z "$CC"; then
2797  # Extract the first word of "cc", so it can be a program name with args.
2798set dummy cc; ac_word=$2
2799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800printf %s "checking for $ac_word... " >&6; }
2801if test ${ac_cv_prog_CC+y}
2802then :
2803  printf %s "(cached) " >&6
2804else $as_nop
2805  if test -n "$CC"; then
2806  ac_cv_prog_CC="$CC" # Let the user override the test.
2807else
2808  ac_prog_rejected=no
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812  IFS=$as_save_IFS
2813  case $as_dir in #(((
2814    '') as_dir=./ ;;
2815    */) ;;
2816    *) as_dir=$as_dir/ ;;
2817  esac
2818    for ac_exec_ext in '' $ac_executable_extensions; do
2819  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2820    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2821       ac_prog_rejected=yes
2822       continue
2823     fi
2824    ac_cv_prog_CC="cc"
2825    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2826    break 2
2827  fi
2828done
2829  done
2830IFS=$as_save_IFS
2831
2832if test $ac_prog_rejected = yes; then
2833  # We found a bogon in the path, so make sure we never use it.
2834  set dummy $ac_cv_prog_CC
2835  shift
2836  if test $# != 0; then
2837    # We chose a different compiler from the bogus one.
2838    # However, it has the same basename, so the bogon will be chosen
2839    # first if we set CC to just the basename; use the full file name.
2840    shift
2841    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2842  fi
2843fi
2844fi
2845fi
2846CC=$ac_cv_prog_CC
2847if test -n "$CC"; then
2848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849printf "%s\n" "$CC" >&6; }
2850else
2851  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852printf "%s\n" "no" >&6; }
2853fi
2854
2855
2856fi
2857if test -z "$CC"; then
2858  if test -n "$ac_tool_prefix"; then
2859  for ac_prog in cl.exe
2860  do
2861    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2862set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864printf %s "checking for $ac_word... " >&6; }
2865if test ${ac_cv_prog_CC+y}
2866then :
2867  printf %s "(cached) " >&6
2868else $as_nop
2869  if test -n "$CC"; then
2870  ac_cv_prog_CC="$CC" # Let the user override the test.
2871else
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875  IFS=$as_save_IFS
2876  case $as_dir in #(((
2877    '') as_dir=./ ;;
2878    */) ;;
2879    *) as_dir=$as_dir/ ;;
2880  esac
2881    for ac_exec_ext in '' $ac_executable_extensions; do
2882  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2883    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2884    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2885    break 2
2886  fi
2887done
2888  done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
2895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896printf "%s\n" "$CC" >&6; }
2897else
2898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899printf "%s\n" "no" >&6; }
2900fi
2901
2902
2903    test -n "$CC" && break
2904  done
2905fi
2906if test -z "$CC"; then
2907  ac_ct_CC=$CC
2908  for ac_prog in cl.exe
2909do
2910  # Extract the first word of "$ac_prog", so it can be a program name with args.
2911set dummy $ac_prog; ac_word=$2
2912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913printf %s "checking for $ac_word... " >&6; }
2914if test ${ac_cv_prog_ac_ct_CC+y}
2915then :
2916  printf %s "(cached) " >&6
2917else $as_nop
2918  if test -n "$ac_ct_CC"; then
2919  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924  IFS=$as_save_IFS
2925  case $as_dir in #(((
2926    '') as_dir=./ ;;
2927    */) ;;
2928    *) as_dir=$as_dir/ ;;
2929  esac
2930    for ac_exec_ext in '' $ac_executable_extensions; do
2931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2932    ac_cv_prog_ac_ct_CC="$ac_prog"
2933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937  done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943if test -n "$ac_ct_CC"; then
2944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2945printf "%s\n" "$ac_ct_CC" >&6; }
2946else
2947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948printf "%s\n" "no" >&6; }
2949fi
2950
2951
2952  test -n "$ac_ct_CC" && break
2953done
2954
2955  if test "x$ac_ct_CC" = x; then
2956    CC=""
2957  else
2958    case $cross_compiling:$ac_tool_warned in
2959yes:)
2960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962ac_tool_warned=yes ;;
2963esac
2964    CC=$ac_ct_CC
2965  fi
2966fi
2967
2968fi
2969if test -z "$CC"; then
2970  if test -n "$ac_tool_prefix"; then
2971  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2972set dummy ${ac_tool_prefix}clang; ac_word=$2
2973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974printf %s "checking for $ac_word... " >&6; }
2975if test ${ac_cv_prog_CC+y}
2976then :
2977  printf %s "(cached) " >&6
2978else $as_nop
2979  if test -n "$CC"; then
2980  ac_cv_prog_CC="$CC" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985  IFS=$as_save_IFS
2986  case $as_dir in #(((
2987    '') as_dir=./ ;;
2988    */) ;;
2989    *) as_dir=$as_dir/ ;;
2990  esac
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2993    ac_cv_prog_CC="${ac_tool_prefix}clang"
2994    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003CC=$ac_cv_prog_CC
3004if test -n "$CC"; then
3005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006printf "%s\n" "$CC" >&6; }
3007else
3008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009printf "%s\n" "no" >&6; }
3010fi
3011
3012
3013fi
3014if test -z "$ac_cv_prog_CC"; then
3015  ac_ct_CC=$CC
3016  # Extract the first word of "clang", so it can be a program name with args.
3017set dummy clang; ac_word=$2
3018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019printf %s "checking for $ac_word... " >&6; }
3020if test ${ac_cv_prog_ac_ct_CC+y}
3021then :
3022  printf %s "(cached) " >&6
3023else $as_nop
3024  if test -n "$ac_ct_CC"; then
3025  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030  IFS=$as_save_IFS
3031  case $as_dir in #(((
3032    '') as_dir=./ ;;
3033    */) ;;
3034    *) as_dir=$as_dir/ ;;
3035  esac
3036    for ac_exec_ext in '' $ac_executable_extensions; do
3037  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3038    ac_cv_prog_ac_ct_CC="clang"
3039    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049if test -n "$ac_ct_CC"; then
3050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051printf "%s\n" "$ac_ct_CC" >&6; }
3052else
3053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054printf "%s\n" "no" >&6; }
3055fi
3056
3057  if test "x$ac_ct_CC" = x; then
3058    CC=""
3059  else
3060    case $cross_compiling:$ac_tool_warned in
3061yes:)
3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064ac_tool_warned=yes ;;
3065esac
3066    CC=$ac_ct_CC
3067  fi
3068else
3069  CC="$ac_cv_prog_CC"
3070fi
3071
3072fi
3073
3074
3075test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3077as_fn_error $? "no acceptable C compiler found in \$PATH
3078See \`config.log' for more details" "$LINENO" 5; }
3079
3080# Provide some information about the compiler.
3081printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3082set X $ac_compile
3083ac_compiler=$2
3084for ac_option in --version -v -V -qversion -version; do
3085  { { ac_try="$ac_compiler $ac_option >&5"
3086case "(($ac_try" in
3087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088  *) ac_try_echo=$ac_try;;
3089esac
3090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091printf "%s\n" "$ac_try_echo"; } >&5
3092  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3093  ac_status=$?
3094  if test -s conftest.err; then
3095    sed '10a\
3096... rest of stderr output deleted ...
3097         10q' conftest.err >conftest.er1
3098    cat conftest.er1 >&5
3099  fi
3100  rm -f conftest.er1 conftest.err
3101  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102  test $ac_status = 0; }
3103done
3104
3105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h.  */
3107
3108int
3109main (void)
3110{
3111
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116ac_clean_files_save=$ac_clean_files
3117ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3118# Try to create an executable without -o first, disregard a.out.
3119# It will help us diagnose broken compilers, and finding out an intuition
3120# of exeext.
3121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3122printf %s "checking whether the C compiler works... " >&6; }
3123ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3124
3125# The possible output files:
3126ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3127
3128ac_rmfiles=
3129for ac_file in $ac_files
3130do
3131  case $ac_file in
3132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3133    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3134  esac
3135done
3136rm -f $ac_rmfiles
3137
3138if { { ac_try="$ac_link_default"
3139case "(($ac_try" in
3140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141  *) ac_try_echo=$ac_try;;
3142esac
3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144printf "%s\n" "$ac_try_echo"; } >&5
3145  (eval "$ac_link_default") 2>&5
3146  ac_status=$?
3147  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148  test $ac_status = 0; }
3149then :
3150  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3151# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3152# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3153# so that the user can short-circuit this test for compilers unknown to
3154# Autoconf.
3155for ac_file in $ac_files ''
3156do
3157  test -f "$ac_file" || continue
3158  case $ac_file in
3159    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3160	;;
3161    [ab].out )
3162	# We found the default executable, but exeext='' is most
3163	# certainly right.
3164	break;;
3165    *.* )
3166	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3167	then :; else
3168	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169	fi
3170	# We set ac_cv_exeext here because the later test for it is not
3171	# safe: cross compilers may not add the suffix if given an `-o'
3172	# argument, so we may need to know it at that point already.
3173	# Even if this section looks crufty: it has the advantage of
3174	# actually working.
3175	break;;
3176    * )
3177	break;;
3178  esac
3179done
3180test "$ac_cv_exeext" = no && ac_cv_exeext=
3181
3182else $as_nop
3183  ac_file=''
3184fi
3185if test -z "$ac_file"
3186then :
3187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188printf "%s\n" "no" >&6; }
3189printf "%s\n" "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3194as_fn_error 77 "C compiler cannot create executables
3195See \`config.log' for more details" "$LINENO" 5; }
3196else $as_nop
3197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198printf "%s\n" "yes" >&6; }
3199fi
3200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3201printf %s "checking for C compiler default output file name... " >&6; }
3202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3203printf "%s\n" "$ac_file" >&6; }
3204ac_exeext=$ac_cv_exeext
3205
3206rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3207ac_clean_files=$ac_clean_files_save
3208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3209printf %s "checking for suffix of executables... " >&6; }
3210if { { ac_try="$ac_link"
3211case "(($ac_try" in
3212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213  *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216printf "%s\n" "$ac_try_echo"; } >&5
3217  (eval "$ac_link") 2>&5
3218  ac_status=$?
3219  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220  test $ac_status = 0; }
3221then :
3222  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3224# work properly (i.e., refer to `conftest.exe'), while it won't with
3225# `rm'.
3226for ac_file in conftest.exe conftest conftest.*; do
3227  test -f "$ac_file" || continue
3228  case $ac_file in
3229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231	  break;;
3232    * ) break;;
3233  esac
3234done
3235else $as_nop
3236  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3238as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3239See \`config.log' for more details" "$LINENO" 5; }
3240fi
3241rm -f conftest conftest$ac_cv_exeext
3242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3243printf "%s\n" "$ac_cv_exeext" >&6; }
3244
3245rm -f conftest.$ac_ext
3246EXEEXT=$ac_cv_exeext
3247ac_exeext=$EXEEXT
3248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h.  */
3250#include <stdio.h>
3251int
3252main (void)
3253{
3254FILE *f = fopen ("conftest.out", "w");
3255 return ferror (f) || fclose (f) != 0;
3256
3257  ;
3258  return 0;
3259}
3260_ACEOF
3261ac_clean_files="$ac_clean_files conftest.out"
3262# Check that the compiler produces executables we can run.  If not, either
3263# the compiler is broken, or we cross compile.
3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3265printf %s "checking whether we are cross compiling... " >&6; }
3266if test "$cross_compiling" != yes; then
3267  { { ac_try="$ac_link"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273printf "%s\n" "$ac_try_echo"; } >&5
3274  (eval "$ac_link") 2>&5
3275  ac_status=$?
3276  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }
3278  if { ac_try='./conftest$ac_cv_exeext'
3279  { { case "(($ac_try" in
3280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281  *) ac_try_echo=$ac_try;;
3282esac
3283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284printf "%s\n" "$ac_try_echo"; } >&5
3285  (eval "$ac_try") 2>&5
3286  ac_status=$?
3287  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288  test $ac_status = 0; }; }; then
3289    cross_compiling=no
3290  else
3291    if test "$cross_compiling" = maybe; then
3292	cross_compiling=yes
3293    else
3294	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3296as_fn_error 77 "cannot run C compiled programs.
3297If you meant to cross compile, use \`--host'.
3298See \`config.log' for more details" "$LINENO" 5; }
3299    fi
3300  fi
3301fi
3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303printf "%s\n" "$cross_compiling" >&6; }
3304
3305rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3306ac_clean_files=$ac_clean_files_save
3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3308printf %s "checking for suffix of object files... " >&6; }
3309if test ${ac_cv_objext+y}
3310then :
3311  printf %s "(cached) " >&6
3312else $as_nop
3313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h.  */
3315
3316int
3317main (void)
3318{
3319
3320  ;
3321  return 0;
3322}
3323_ACEOF
3324rm -f conftest.o conftest.obj
3325if { { ac_try="$ac_compile"
3326case "(($ac_try" in
3327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328  *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331printf "%s\n" "$ac_try_echo"; } >&5
3332  (eval "$ac_compile") 2>&5
3333  ac_status=$?
3334  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335  test $ac_status = 0; }
3336then :
3337  for ac_file in conftest.o conftest.obj conftest.*; do
3338  test -f "$ac_file" || continue;
3339  case $ac_file in
3340    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3341    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3342       break;;
3343  esac
3344done
3345else $as_nop
3346  printf "%s\n" "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3351as_fn_error $? "cannot compute suffix of object files: cannot compile
3352See \`config.log' for more details" "$LINENO" 5; }
3353fi
3354rm -f conftest.$ac_cv_objext conftest.$ac_ext
3355fi
3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3357printf "%s\n" "$ac_cv_objext" >&6; }
3358OBJEXT=$ac_cv_objext
3359ac_objext=$OBJEXT
3360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3361printf %s "checking whether the compiler supports GNU C... " >&6; }
3362if test ${ac_cv_c_compiler_gnu+y}
3363then :
3364  printf %s "(cached) " >&6
3365else $as_nop
3366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h.  */
3368
3369int
3370main (void)
3371{
3372#ifndef __GNUC__
3373       choke me
3374#endif
3375
3376  ;
3377  return 0;
3378}
3379_ACEOF
3380if ac_fn_c_try_compile "$LINENO"
3381then :
3382  ac_compiler_gnu=yes
3383else $as_nop
3384  ac_compiler_gnu=no
3385fi
3386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3387ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388
3389fi
3390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3391printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3392ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393
3394if test $ac_compiler_gnu = yes; then
3395  GCC=yes
3396else
3397  GCC=
3398fi
3399ac_test_CFLAGS=${CFLAGS+y}
3400ac_save_CFLAGS=$CFLAGS
3401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3402printf %s "checking whether $CC accepts -g... " >&6; }
3403if test ${ac_cv_prog_cc_g+y}
3404then :
3405  printf %s "(cached) " >&6
3406else $as_nop
3407  ac_save_c_werror_flag=$ac_c_werror_flag
3408   ac_c_werror_flag=yes
3409   ac_cv_prog_cc_g=no
3410   CFLAGS="-g"
3411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412/* end confdefs.h.  */
3413
3414int
3415main (void)
3416{
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"
3423then :
3424  ac_cv_prog_cc_g=yes
3425else $as_nop
3426  CFLAGS=""
3427      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428/* end confdefs.h.  */
3429
3430int
3431main (void)
3432{
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438if ac_fn_c_try_compile "$LINENO"
3439then :
3440
3441else $as_nop
3442  ac_c_werror_flag=$ac_save_c_werror_flag
3443	 CFLAGS="-g"
3444	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main (void)
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455if ac_fn_c_try_compile "$LINENO"
3456then :
3457  ac_cv_prog_cc_g=yes
3458fi
3459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3460fi
3461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3462fi
3463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3464   ac_c_werror_flag=$ac_save_c_werror_flag
3465fi
3466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3467printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3468if test $ac_test_CFLAGS; then
3469  CFLAGS=$ac_save_CFLAGS
3470elif test $ac_cv_prog_cc_g = yes; then
3471  if test "$GCC" = yes; then
3472    CFLAGS="-g -O2"
3473  else
3474    CFLAGS="-g"
3475  fi
3476else
3477  if test "$GCC" = yes; then
3478    CFLAGS="-O2"
3479  else
3480    CFLAGS=
3481  fi
3482fi
3483ac_prog_cc_stdc=no
3484if test x$ac_prog_cc_stdc = xno
3485then :
3486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3487printf %s "checking for $CC option to enable C11 features... " >&6; }
3488if test ${ac_cv_prog_cc_c11+y}
3489then :
3490  printf %s "(cached) " >&6
3491else $as_nop
3492  ac_cv_prog_cc_c11=no
3493ac_save_CC=$CC
3494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h.  */
3496$ac_c_conftest_c11_program
3497_ACEOF
3498for ac_arg in '' -std=gnu11
3499do
3500  CC="$ac_save_CC $ac_arg"
3501  if ac_fn_c_try_compile "$LINENO"
3502then :
3503  ac_cv_prog_cc_c11=$ac_arg
3504fi
3505rm -f core conftest.err conftest.$ac_objext conftest.beam
3506  test "x$ac_cv_prog_cc_c11" != "xno" && break
3507done
3508rm -f conftest.$ac_ext
3509CC=$ac_save_CC
3510fi
3511
3512if test "x$ac_cv_prog_cc_c11" = xno
3513then :
3514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3515printf "%s\n" "unsupported" >&6; }
3516else $as_nop
3517  if test "x$ac_cv_prog_cc_c11" = x
3518then :
3519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3520printf "%s\n" "none needed" >&6; }
3521else $as_nop
3522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3523printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3524     CC="$CC $ac_cv_prog_cc_c11"
3525fi
3526  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3527  ac_prog_cc_stdc=c11
3528fi
3529fi
3530if test x$ac_prog_cc_stdc = xno
3531then :
3532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3533printf %s "checking for $CC option to enable C99 features... " >&6; }
3534if test ${ac_cv_prog_cc_c99+y}
3535then :
3536  printf %s "(cached) " >&6
3537else $as_nop
3538  ac_cv_prog_cc_c99=no
3539ac_save_CC=$CC
3540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542$ac_c_conftest_c99_program
3543_ACEOF
3544for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3545do
3546  CC="$ac_save_CC $ac_arg"
3547  if ac_fn_c_try_compile "$LINENO"
3548then :
3549  ac_cv_prog_cc_c99=$ac_arg
3550fi
3551rm -f core conftest.err conftest.$ac_objext conftest.beam
3552  test "x$ac_cv_prog_cc_c99" != "xno" && break
3553done
3554rm -f conftest.$ac_ext
3555CC=$ac_save_CC
3556fi
3557
3558if test "x$ac_cv_prog_cc_c99" = xno
3559then :
3560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3561printf "%s\n" "unsupported" >&6; }
3562else $as_nop
3563  if test "x$ac_cv_prog_cc_c99" = x
3564then :
3565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3566printf "%s\n" "none needed" >&6; }
3567else $as_nop
3568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3569printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3570     CC="$CC $ac_cv_prog_cc_c99"
3571fi
3572  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3573  ac_prog_cc_stdc=c99
3574fi
3575fi
3576if test x$ac_prog_cc_stdc = xno
3577then :
3578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3579printf %s "checking for $CC option to enable C89 features... " >&6; }
3580if test ${ac_cv_prog_cc_c89+y}
3581then :
3582  printf %s "(cached) " >&6
3583else $as_nop
3584  ac_cv_prog_cc_c89=no
3585ac_save_CC=$CC
3586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588$ac_c_conftest_c89_program
3589_ACEOF
3590for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3591do
3592  CC="$ac_save_CC $ac_arg"
3593  if ac_fn_c_try_compile "$LINENO"
3594then :
3595  ac_cv_prog_cc_c89=$ac_arg
3596fi
3597rm -f core conftest.err conftest.$ac_objext conftest.beam
3598  test "x$ac_cv_prog_cc_c89" != "xno" && break
3599done
3600rm -f conftest.$ac_ext
3601CC=$ac_save_CC
3602fi
3603
3604if test "x$ac_cv_prog_cc_c89" = xno
3605then :
3606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607printf "%s\n" "unsupported" >&6; }
3608else $as_nop
3609  if test "x$ac_cv_prog_cc_c89" = x
3610then :
3611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612printf "%s\n" "none needed" >&6; }
3613else $as_nop
3614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3615printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3616     CC="$CC $ac_cv_prog_cc_c89"
3617fi
3618  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3619  ac_prog_cc_stdc=c89
3620fi
3621fi
3622
3623ac_ext=c
3624ac_cpp='$CPP $CPPFLAGS'
3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629
3630  ac_ext=c
3631ac_cpp='$CPP $CPPFLAGS'
3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3636printf %s "checking whether $CC understands -c and -o together... " >&6; }
3637if test ${am_cv_prog_cc_c_o+y}
3638then :
3639  printf %s "(cached) " >&6
3640else $as_nop
3641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h.  */
3643
3644int
3645main (void)
3646{
3647
3648  ;
3649  return 0;
3650}
3651_ACEOF
3652  # Make sure it works both with $CC and with simple cc.
3653  # Following AC_PROG_CC_C_O, we do the test twice because some
3654  # compilers refuse to overwrite an existing .o file with -o,
3655  # though they will create one.
3656  am_cv_prog_cc_c_o=yes
3657  for am_i in 1 2; do
3658    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3659   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } \
3663         && test -f conftest2.$ac_objext; then
3664      : OK
3665    else
3666      am_cv_prog_cc_c_o=no
3667      break
3668    fi
3669  done
3670  rm -f core conftest*
3671  unset am_i
3672fi
3673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3674printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3675if test "$am_cv_prog_cc_c_o" != yes; then
3676   # Losing compiler, so override with the script.
3677   # FIXME: It is wrong to rewrite CC.
3678   # But if we don't then we get into trouble of one sort or another.
3679   # A longer-term fix would be to have automake use am__CC in this case,
3680   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3681   CC="$am_aux_dir/compile $CC"
3682fi
3683ac_ext=c
3684ac_cpp='$CPP $CPPFLAGS'
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
3689
3690
3691ac_header= ac_cache=
3692for ac_item in $ac_header_c_list
3693do
3694  if test $ac_cache; then
3695    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3696    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3697      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3698    fi
3699    ac_header= ac_cache=
3700  elif test $ac_header; then
3701    ac_cache=$ac_item
3702  else
3703    ac_header=$ac_item
3704  fi
3705done
3706
3707
3708
3709
3710
3711
3712
3713
3714if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3715then :
3716
3717printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3718
3719fi
3720
3721
3722
3723
3724
3725
3726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3727printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3728if test ${ac_cv_safe_to_define___extensions__+y}
3729then :
3730  printf %s "(cached) " >&6
3731else $as_nop
3732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h.  */
3734
3735#         define __EXTENSIONS__ 1
3736          $ac_includes_default
3737int
3738main (void)
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745if ac_fn_c_try_compile "$LINENO"
3746then :
3747  ac_cv_safe_to_define___extensions__=yes
3748else $as_nop
3749  ac_cv_safe_to_define___extensions__=no
3750fi
3751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3752fi
3753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3754printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3755
3756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3757printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3758if test ${ac_cv_should_define__xopen_source+y}
3759then :
3760  printf %s "(cached) " >&6
3761else $as_nop
3762  ac_cv_should_define__xopen_source=no
3763    if test $ac_cv_header_wchar_h = yes
3764then :
3765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767
3768          #include <wchar.h>
3769          mbstate_t x;
3770int
3771main (void)
3772{
3773
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778if ac_fn_c_try_compile "$LINENO"
3779then :
3780
3781else $as_nop
3782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783/* end confdefs.h.  */
3784
3785            #define _XOPEN_SOURCE 500
3786            #include <wchar.h>
3787            mbstate_t x;
3788int
3789main (void)
3790{
3791
3792  ;
3793  return 0;
3794}
3795_ACEOF
3796if ac_fn_c_try_compile "$LINENO"
3797then :
3798  ac_cv_should_define__xopen_source=yes
3799fi
3800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3801fi
3802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3803fi
3804fi
3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3806printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3807
3808  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3809
3810  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3811
3812  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3813
3814  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3815
3816  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3817
3818  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3819
3820  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3821
3822  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3823
3824  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3825
3826  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3827
3828  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3829
3830  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3831
3832  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3833
3834  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3835
3836  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3837
3838  if test $ac_cv_header_minix_config_h = yes
3839then :
3840  MINIX=yes
3841    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3842
3843    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3844
3845    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3846
3847else $as_nop
3848  MINIX=
3849fi
3850  if test $ac_cv_safe_to_define___extensions__ = yes
3851then :
3852  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3853
3854fi
3855  if test $ac_cv_should_define__xopen_source = yes
3856then :
3857  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3858
3859fi
3860
3861
3862# Initialize Automake
3863am__api_version='1.16'
3864
3865
3866  # Find a good install program.  We prefer a C program (faster),
3867# so one script is as good as another.  But avoid the broken or
3868# incompatible versions:
3869# SysV /etc/install, /usr/sbin/install
3870# SunOS /usr/etc/install
3871# IRIX /sbin/install
3872# AIX /bin/install
3873# AmigaOS /C/install, which installs bootblocks on floppy discs
3874# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3875# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3876# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3877# OS/2's system install, which has a completely different semantic
3878# ./install, which can be erroneously created by make from ./install.sh.
3879# Reject install programs that cannot install multiple files.
3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3881printf %s "checking for a BSD-compatible install... " >&6; }
3882if test -z "$INSTALL"; then
3883if test ${ac_cv_path_install+y}
3884then :
3885  printf %s "(cached) " >&6
3886else $as_nop
3887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890  IFS=$as_save_IFS
3891  case $as_dir in #(((
3892    '') as_dir=./ ;;
3893    */) ;;
3894    *) as_dir=$as_dir/ ;;
3895  esac
3896    # Account for fact that we put trailing slashes in our PATH walk.
3897case $as_dir in #((
3898  ./ | /[cC]/* | \
3899  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3900  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3901  /usr/ucb/* ) ;;
3902  *)
3903    # OSF1 and SCO ODT 3.0 have their own names for install.
3904    # Don't use installbsd from OSF since it installs stuff as root
3905    # by default.
3906    for ac_prog in ginstall scoinst install; do
3907      for ac_exec_ext in '' $ac_executable_extensions; do
3908	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3909	  if test $ac_prog = install &&
3910	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3911	    # AIX install.  It has an incompatible calling convention.
3912	    :
3913	  elif test $ac_prog = install &&
3914	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3915	    # program-specific install script used by HP pwplus--don't use.
3916	    :
3917	  else
3918	    rm -rf conftest.one conftest.two conftest.dir
3919	    echo one > conftest.one
3920	    echo two > conftest.two
3921	    mkdir conftest.dir
3922	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3923	      test -s conftest.one && test -s conftest.two &&
3924	      test -s conftest.dir/conftest.one &&
3925	      test -s conftest.dir/conftest.two
3926	    then
3927	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3928	      break 3
3929	    fi
3930	  fi
3931	fi
3932      done
3933    done
3934    ;;
3935esac
3936
3937  done
3938IFS=$as_save_IFS
3939
3940rm -rf conftest.one conftest.two conftest.dir
3941
3942fi
3943  if test ${ac_cv_path_install+y}; then
3944    INSTALL=$ac_cv_path_install
3945  else
3946    # As a last resort, use the slow shell script.  Don't cache a
3947    # value for INSTALL within a source directory, because that will
3948    # break other packages using the cache if that directory is
3949    # removed, or if the value is a relative name.
3950    INSTALL=$ac_install_sh
3951  fi
3952fi
3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3954printf "%s\n" "$INSTALL" >&6; }
3955
3956# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3957# It thinks the first close brace ends the variable substitution.
3958test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3959
3960test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3961
3962test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3963
3964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3965printf %s "checking whether build environment is sane... " >&6; }
3966# Reject unsafe characters in $srcdir or the absolute working directory
3967# name.  Accept space and tab only in the latter.
3968am_lf='
3969'
3970case `pwd` in
3971  *[\\\"\#\$\&\'\`$am_lf]*)
3972    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3973esac
3974case $srcdir in
3975  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3976    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3977esac
3978
3979# Do 'set' in a subshell so we don't clobber the current shell's
3980# arguments.  Must try -L first in case configure is actually a
3981# symlink; some systems play weird games with the mod time of symlinks
3982# (eg FreeBSD returns the mod time of the symlink's containing
3983# directory).
3984if (
3985   am_has_slept=no
3986   for am_try in 1 2; do
3987     echo "timestamp, slept: $am_has_slept" > conftest.file
3988     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3989     if test "$*" = "X"; then
3990	# -L didn't work.
3991	set X `ls -t "$srcdir/configure" conftest.file`
3992     fi
3993     if test "$*" != "X $srcdir/configure conftest.file" \
3994	&& test "$*" != "X conftest.file $srcdir/configure"; then
3995
3996	# If neither matched, then we have a broken ls.  This can happen
3997	# if, for instance, CONFIG_SHELL is bash and it inherits a
3998	# broken ls alias from the environment.  This has actually
3999	# happened.  Such a system could not be considered "sane".
4000	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4001  alias in your environment" "$LINENO" 5
4002     fi
4003     if test "$2" = conftest.file || test $am_try -eq 2; then
4004       break
4005     fi
4006     # Just in case.
4007     sleep 1
4008     am_has_slept=yes
4009   done
4010   test "$2" = conftest.file
4011   )
4012then
4013   # Ok.
4014   :
4015else
4016   as_fn_error $? "newly created file is older than distributed files!
4017Check your system clock" "$LINENO" 5
4018fi
4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4020printf "%s\n" "yes" >&6; }
4021# If we didn't sleep, we still need to ensure time stamps of config.status and
4022# generated files are strictly newer.
4023am_sleep_pid=
4024if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4025  ( sleep 1 ) &
4026  am_sleep_pid=$!
4027fi
4028
4029rm -f conftest.file
4030
4031test "$program_prefix" != NONE &&
4032  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4033# Use a double $ so make ignores it.
4034test "$program_suffix" != NONE &&
4035  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4036# Double any \ or $.
4037# By default was `s,x,x', remove it if useless.
4038ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4039program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4040
4041
4042  if test x"${MISSING+set}" != xset; then
4043  MISSING="\${SHELL} '$am_aux_dir/missing'"
4044fi
4045# Use eval to expand $SHELL
4046if eval "$MISSING --is-lightweight"; then
4047  am_missing_run="$MISSING "
4048else
4049  am_missing_run=
4050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4051printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4052fi
4053
4054if test x"${install_sh+set}" != xset; then
4055  case $am_aux_dir in
4056  *\ * | *\	*)
4057    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4058  *)
4059    install_sh="\${SHELL} $am_aux_dir/install-sh"
4060  esac
4061fi
4062
4063# Installed binaries are usually stripped using 'strip' when the user
4064# run "make install-strip".  However 'strip' might not be the right
4065# tool to use in cross-compilation environments, therefore Automake
4066# will honor the 'STRIP' environment variable to overrule this program.
4067if test "$cross_compiling" != no; then
4068  if test -n "$ac_tool_prefix"; then
4069  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4070set dummy ${ac_tool_prefix}strip; ac_word=$2
4071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072printf %s "checking for $ac_word... " >&6; }
4073if test ${ac_cv_prog_STRIP+y}
4074then :
4075  printf %s "(cached) " >&6
4076else $as_nop
4077  if test -n "$STRIP"; then
4078  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4079else
4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH
4082do
4083  IFS=$as_save_IFS
4084  case $as_dir in #(((
4085    '') as_dir=./ ;;
4086    */) ;;
4087    *) as_dir=$as_dir/ ;;
4088  esac
4089    for ac_exec_ext in '' $ac_executable_extensions; do
4090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4091    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4093    break 2
4094  fi
4095done
4096  done
4097IFS=$as_save_IFS
4098
4099fi
4100fi
4101STRIP=$ac_cv_prog_STRIP
4102if test -n "$STRIP"; then
4103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4104printf "%s\n" "$STRIP" >&6; }
4105else
4106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107printf "%s\n" "no" >&6; }
4108fi
4109
4110
4111fi
4112if test -z "$ac_cv_prog_STRIP"; then
4113  ac_ct_STRIP=$STRIP
4114  # Extract the first word of "strip", so it can be a program name with args.
4115set dummy strip; ac_word=$2
4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117printf %s "checking for $ac_word... " >&6; }
4118if test ${ac_cv_prog_ac_ct_STRIP+y}
4119then :
4120  printf %s "(cached) " >&6
4121else $as_nop
4122  if test -n "$ac_ct_STRIP"; then
4123  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4124else
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128  IFS=$as_save_IFS
4129  case $as_dir in #(((
4130    '') as_dir=./ ;;
4131    */) ;;
4132    *) as_dir=$as_dir/ ;;
4133  esac
4134    for ac_exec_ext in '' $ac_executable_extensions; do
4135  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4136    ac_cv_prog_ac_ct_STRIP="strip"
4137    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4138    break 2
4139  fi
4140done
4141  done
4142IFS=$as_save_IFS
4143
4144fi
4145fi
4146ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4147if test -n "$ac_ct_STRIP"; then
4148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4149printf "%s\n" "$ac_ct_STRIP" >&6; }
4150else
4151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152printf "%s\n" "no" >&6; }
4153fi
4154
4155  if test "x$ac_ct_STRIP" = x; then
4156    STRIP=":"
4157  else
4158    case $cross_compiling:$ac_tool_warned in
4159yes:)
4160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162ac_tool_warned=yes ;;
4163esac
4164    STRIP=$ac_ct_STRIP
4165  fi
4166else
4167  STRIP="$ac_cv_prog_STRIP"
4168fi
4169
4170fi
4171INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4172
4173
4174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4175printf %s "checking for a race-free mkdir -p... " >&6; }
4176if test -z "$MKDIR_P"; then
4177  if test ${ac_cv_path_mkdir+y}
4178then :
4179  printf %s "(cached) " >&6
4180else $as_nop
4181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4183do
4184  IFS=$as_save_IFS
4185  case $as_dir in #(((
4186    '') as_dir=./ ;;
4187    */) ;;
4188    *) as_dir=$as_dir/ ;;
4189  esac
4190    for ac_prog in mkdir gmkdir; do
4191	 for ac_exec_ext in '' $ac_executable_extensions; do
4192	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4193	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4194	     'mkdir ('*'coreutils) '* | \
4195	     'BusyBox '* | \
4196	     'mkdir (fileutils) '4.1*)
4197	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4198	       break 3;;
4199	   esac
4200	 done
4201       done
4202  done
4203IFS=$as_save_IFS
4204
4205fi
4206
4207  test -d ./--version && rmdir ./--version
4208  if test ${ac_cv_path_mkdir+y}; then
4209    MKDIR_P="$ac_cv_path_mkdir -p"
4210  else
4211    # As a last resort, use the slow shell script.  Don't cache a
4212    # value for MKDIR_P within a source directory, because that will
4213    # break other packages using the cache if that directory is
4214    # removed, or if the value is a relative name.
4215    MKDIR_P="$ac_install_sh -d"
4216  fi
4217fi
4218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4219printf "%s\n" "$MKDIR_P" >&6; }
4220
4221for ac_prog in gawk mawk nawk awk
4222do
4223  # Extract the first word of "$ac_prog", so it can be a program name with args.
4224set dummy $ac_prog; ac_word=$2
4225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226printf %s "checking for $ac_word... " >&6; }
4227if test ${ac_cv_prog_AWK+y}
4228then :
4229  printf %s "(cached) " >&6
4230else $as_nop
4231  if test -n "$AWK"; then
4232  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4233else
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237  IFS=$as_save_IFS
4238  case $as_dir in #(((
4239    '') as_dir=./ ;;
4240    */) ;;
4241    *) as_dir=$as_dir/ ;;
4242  esac
4243    for ac_exec_ext in '' $ac_executable_extensions; do
4244  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4245    ac_cv_prog_AWK="$ac_prog"
4246    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4247    break 2
4248  fi
4249done
4250  done
4251IFS=$as_save_IFS
4252
4253fi
4254fi
4255AWK=$ac_cv_prog_AWK
4256if test -n "$AWK"; then
4257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4258printf "%s\n" "$AWK" >&6; }
4259else
4260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261printf "%s\n" "no" >&6; }
4262fi
4263
4264
4265  test -n "$AWK" && break
4266done
4267
4268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4269printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4270set x ${MAKE-make}
4271ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4272if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4273then :
4274  printf %s "(cached) " >&6
4275else $as_nop
4276  cat >conftest.make <<\_ACEOF
4277SHELL = /bin/sh
4278all:
4279	@echo '@@@%%%=$(MAKE)=@@@%%%'
4280_ACEOF
4281# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4282case `${MAKE-make} -f conftest.make 2>/dev/null` in
4283  *@@@%%%=?*=@@@%%%*)
4284    eval ac_cv_prog_make_${ac_make}_set=yes;;
4285  *)
4286    eval ac_cv_prog_make_${ac_make}_set=no;;
4287esac
4288rm -f conftest.make
4289fi
4290if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292printf "%s\n" "yes" >&6; }
4293  SET_MAKE=
4294else
4295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296printf "%s\n" "no" >&6; }
4297  SET_MAKE="MAKE=${MAKE-make}"
4298fi
4299
4300rm -rf .tst 2>/dev/null
4301mkdir .tst 2>/dev/null
4302if test -d .tst; then
4303  am__leading_dot=.
4304else
4305  am__leading_dot=_
4306fi
4307rmdir .tst 2>/dev/null
4308
4309DEPDIR="${am__leading_dot}deps"
4310
4311ac_config_commands="$ac_config_commands depfiles"
4312
4313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4314printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4315cat > confinc.mk << 'END'
4316am__doit:
4317	@echo this is the am__doit target >confinc.out
4318.PHONY: am__doit
4319END
4320am__include="#"
4321am__quote=
4322# BSD make does it like this.
4323echo '.include "confinc.mk" # ignored' > confmf.BSD
4324# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4325echo 'include confinc.mk # ignored' > confmf.GNU
4326_am_result=no
4327for s in GNU BSD; do
4328  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4329   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }
4333  case $?:`cat confinc.out 2>/dev/null` in #(
4334  '0:this is the am__doit target') :
4335    case $s in #(
4336  BSD) :
4337    am__include='.include' am__quote='"' ;; #(
4338  *) :
4339    am__include='include' am__quote='' ;;
4340esac ;; #(
4341  *) :
4342     ;;
4343esac
4344  if test "$am__include" != "#"; then
4345    _am_result="yes ($s style)"
4346    break
4347  fi
4348done
4349rm -f confinc.* confmf.*
4350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4351printf "%s\n" "${_am_result}" >&6; }
4352
4353# Check whether --enable-dependency-tracking was given.
4354if test ${enable_dependency_tracking+y}
4355then :
4356  enableval=$enable_dependency_tracking;
4357fi
4358
4359if test "x$enable_dependency_tracking" != xno; then
4360  am_depcomp="$ac_aux_dir/depcomp"
4361  AMDEPBACKSLASH='\'
4362  am__nodep='_no'
4363fi
4364 if test "x$enable_dependency_tracking" != xno; then
4365  AMDEP_TRUE=
4366  AMDEP_FALSE='#'
4367else
4368  AMDEP_TRUE='#'
4369  AMDEP_FALSE=
4370fi
4371
4372
4373# Check whether --enable-silent-rules was given.
4374if test ${enable_silent_rules+y}
4375then :
4376  enableval=$enable_silent_rules;
4377fi
4378
4379case $enable_silent_rules in # (((
4380  yes) AM_DEFAULT_VERBOSITY=0;;
4381   no) AM_DEFAULT_VERBOSITY=1;;
4382    *) AM_DEFAULT_VERBOSITY=1;;
4383esac
4384am_make=${MAKE-make}
4385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4386printf %s "checking whether $am_make supports nested variables... " >&6; }
4387if test ${am_cv_make_support_nested_variables+y}
4388then :
4389  printf %s "(cached) " >&6
4390else $as_nop
4391  if printf "%s\n" 'TRUE=$(BAR$(V))
4392BAR0=false
4393BAR1=true
4394V=1
4395am__doit:
4396	@$(TRUE)
4397.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4398  am_cv_make_support_nested_variables=yes
4399else
4400  am_cv_make_support_nested_variables=no
4401fi
4402fi
4403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4404printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4405if test $am_cv_make_support_nested_variables = yes; then
4406    AM_V='$(V)'
4407  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4408else
4409  AM_V=$AM_DEFAULT_VERBOSITY
4410  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4411fi
4412AM_BACKSLASH='\'
4413
4414if test "`cd $srcdir && pwd`" != "`pwd`"; then
4415  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4416  # is not polluted with repeated "-I."
4417  am__isrc=' -I$(srcdir)'
4418  # test to see if srcdir already configured
4419  if test -f $srcdir/config.status; then
4420    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4421  fi
4422fi
4423
4424# test whether we have cygpath
4425if test -z "$CYGPATH_W"; then
4426  if (cygpath --version) >/dev/null 2>/dev/null; then
4427    CYGPATH_W='cygpath -w'
4428  else
4429    CYGPATH_W=echo
4430  fi
4431fi
4432
4433
4434# Define the identity of the package.
4435 PACKAGE='libXau'
4436 VERSION='1.0.10'
4437
4438
4439printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4440
4441
4442printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4443
4444# Some tools Automake needs.
4445
4446ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4447
4448
4449AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4450
4451
4452AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4453
4454
4455AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4456
4457
4458MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4459
4460# For better backward compatibility.  To be removed once Automake 1.9.x
4461# dies out for good.  For more background, see:
4462# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4463# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4464mkdir_p='$(MKDIR_P)'
4465
4466# We need awk for the "check" target (and possibly the TAP driver).  The
4467# system "awk" is bad on some platforms.
4468# Always define AMTAR for backward compatibility.  Yes, it's still used
4469# in the wild :-(  We should find a proper way to deprecate it ...
4470AMTAR='$${TAR-tar}'
4471
4472
4473# We'll loop over all known methods to create a tar archive until one works.
4474_am_tools='gnutar  pax cpio none'
4475
4476am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4477
4478
4479
4480
4481
4482depcc="$CC"   am_compiler_list=
4483
4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4485printf %s "checking dependency style of $depcc... " >&6; }
4486if test ${am_cv_CC_dependencies_compiler_type+y}
4487then :
4488  printf %s "(cached) " >&6
4489else $as_nop
4490  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4491  # We make a subdir and do the tests there.  Otherwise we can end up
4492  # making bogus files that we don't know about and never remove.  For
4493  # instance it was reported that on HP-UX the gcc test will end up
4494  # making a dummy file named 'D' -- because '-MD' means "put the output
4495  # in D".
4496  rm -rf conftest.dir
4497  mkdir conftest.dir
4498  # Copy depcomp to subdir because otherwise we won't find it if we're
4499  # using a relative directory.
4500  cp "$am_depcomp" conftest.dir
4501  cd conftest.dir
4502  # We will build objects and dependencies in a subdirectory because
4503  # it helps to detect inapplicable dependency modes.  For instance
4504  # both Tru64's cc and ICC support -MD to output dependencies as a
4505  # side effect of compilation, but ICC will put the dependencies in
4506  # the current directory while Tru64 will put them in the object
4507  # directory.
4508  mkdir sub
4509
4510  am_cv_CC_dependencies_compiler_type=none
4511  if test "$am_compiler_list" = ""; then
4512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4513  fi
4514  am__universal=false
4515  case " $depcc " in #(
4516     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4517     esac
4518
4519  for depmode in $am_compiler_list; do
4520    # Setup a source with many dependencies, because some compilers
4521    # like to wrap large dependency lists on column 80 (with \), and
4522    # we should not choose a depcomp mode which is confused by this.
4523    #
4524    # We need to recreate these files for each test, as the compiler may
4525    # overwrite some of them when testing with obscure command lines.
4526    # This happens at least with the AIX C compiler.
4527    : > sub/conftest.c
4528    for i in 1 2 3 4 5 6; do
4529      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4530      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4531      # Solaris 10 /bin/sh.
4532      echo '/* dummy */' > sub/conftst$i.h
4533    done
4534    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4535
4536    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4537    # mode.  It turns out that the SunPro C++ compiler does not properly
4538    # handle '-M -o', and we need to detect this.  Also, some Intel
4539    # versions had trouble with output in subdirs.
4540    am__obj=sub/conftest.${OBJEXT-o}
4541    am__minus_obj="-o $am__obj"
4542    case $depmode in
4543    gcc)
4544      # This depmode causes a compiler race in universal mode.
4545      test "$am__universal" = false || continue
4546      ;;
4547    nosideeffect)
4548      # After this tag, mechanisms are not by side-effect, so they'll
4549      # only be used when explicitly requested.
4550      if test "x$enable_dependency_tracking" = xyes; then
4551	continue
4552      else
4553	break
4554      fi
4555      ;;
4556    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4557      # This compiler won't grok '-c -o', but also, the minuso test has
4558      # not run yet.  These depmodes are late enough in the game, and
4559      # so weak that their functioning should not be impacted.
4560      am__obj=conftest.${OBJEXT-o}
4561      am__minus_obj=
4562      ;;
4563    none) break ;;
4564    esac
4565    if depmode=$depmode \
4566       source=sub/conftest.c object=$am__obj \
4567       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4568       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4569         >/dev/null 2>conftest.err &&
4570       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4571       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4572       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4573       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4574      # icc doesn't choke on unknown options, it will just issue warnings
4575      # or remarks (even with -Werror).  So we grep stderr for any message
4576      # that says an option was ignored or not supported.
4577      # When given -MP, icc 7.0 and 7.1 complain thusly:
4578      #   icc: Command line warning: ignoring option '-M'; no argument required
4579      # The diagnosis changed in icc 8.0:
4580      #   icc: Command line remark: option '-MP' not supported
4581      if (grep 'ignoring option' conftest.err ||
4582          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4583        am_cv_CC_dependencies_compiler_type=$depmode
4584        break
4585      fi
4586    fi
4587  done
4588
4589  cd ..
4590  rm -rf conftest.dir
4591else
4592  am_cv_CC_dependencies_compiler_type=none
4593fi
4594
4595fi
4596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4597printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4598CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4599
4600 if
4601  test "x$enable_dependency_tracking" != xno \
4602  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4603  am__fastdepCC_TRUE=
4604  am__fastdepCC_FALSE='#'
4605else
4606  am__fastdepCC_TRUE='#'
4607  am__fastdepCC_FALSE=
4608fi
4609
4610
4611# Variables for tags utilities; see am/tags.am
4612if test -z "$CTAGS"; then
4613  CTAGS=ctags
4614fi
4615
4616if test -z "$ETAGS"; then
4617  ETAGS=etags
4618fi
4619
4620if test -z "$CSCOPE"; then
4621  CSCOPE=cscope
4622fi
4623
4624
4625
4626# POSIX will say in a future version that running "rm -f" with no argument
4627# is OK; and we want to be able to make that assumption in our Makefile
4628# recipes.  So use an aggressive probe to check that the usage we want is
4629# actually supported "in the wild" to an acceptable degree.
4630# See automake bug#10828.
4631# To make any issue more visible, cause the running configure to be aborted
4632# by default if the 'rm' program in use doesn't match our expectations; the
4633# user can still override this though.
4634if rm -f && rm -fr && rm -rf; then : OK; else
4635  cat >&2 <<'END'
4636Oops!
4637
4638Your 'rm' program seems unable to run without file operands specified
4639on the command line, even when the '-f' option is present.  This is contrary
4640to the behaviour of most rm programs out there, and not conforming with
4641the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4642
4643Please tell bug-automake@gnu.org about your system, including the value
4644of your $PATH and any error possibly output before this message.  This
4645can help us improve future automake versions.
4646
4647END
4648  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4649    echo 'Configuration will proceed anyway, since you have set the' >&2
4650    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4651    echo >&2
4652  else
4653    cat >&2 <<'END'
4654Aborting the configuration process, to ensure you take notice of the issue.
4655
4656You can download and install GNU coreutils to get an 'rm' implementation
4657that behaves properly: <https://www.gnu.org/software/coreutils/>.
4658
4659If you want to complete the configuration process using your problematic
4660'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4661to "yes", and re-run configure.
4662
4663END
4664    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4665  fi
4666fi
4667
4668
4669# Initialize libtool
4670
4671
4672  # Make sure we can run config.sub.
4673$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4674  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4675
4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4677printf %s "checking build system type... " >&6; }
4678if test ${ac_cv_build+y}
4679then :
4680  printf %s "(cached) " >&6
4681else $as_nop
4682  ac_build_alias=$build_alias
4683test "x$ac_build_alias" = x &&
4684  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4685test "x$ac_build_alias" = x &&
4686  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4687ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4688  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4689
4690fi
4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4692printf "%s\n" "$ac_cv_build" >&6; }
4693case $ac_cv_build in
4694*-*-*) ;;
4695*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4696esac
4697build=$ac_cv_build
4698ac_save_IFS=$IFS; IFS='-'
4699set x $ac_cv_build
4700shift
4701build_cpu=$1
4702build_vendor=$2
4703shift; shift
4704# Remember, the first character of IFS is used to create $*,
4705# except with old shells:
4706build_os=$*
4707IFS=$ac_save_IFS
4708case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4709
4710
4711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4712printf %s "checking host system type... " >&6; }
4713if test ${ac_cv_host+y}
4714then :
4715  printf %s "(cached) " >&6
4716else $as_nop
4717  if test "x$host_alias" = x; then
4718  ac_cv_host=$ac_cv_build
4719else
4720  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4721    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4722fi
4723
4724fi
4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4726printf "%s\n" "$ac_cv_host" >&6; }
4727case $ac_cv_host in
4728*-*-*) ;;
4729*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4730esac
4731host=$ac_cv_host
4732ac_save_IFS=$IFS; IFS='-'
4733set x $ac_cv_host
4734shift
4735host_cpu=$1
4736host_vendor=$2
4737shift; shift
4738# Remember, the first character of IFS is used to create $*,
4739# except with old shells:
4740host_os=$*
4741IFS=$ac_save_IFS
4742case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4743
4744
4745enable_win32_dll=yes
4746
4747case $host in
4748*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4749  if test -n "$ac_tool_prefix"; then
4750  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4751set dummy ${ac_tool_prefix}as; ac_word=$2
4752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753printf %s "checking for $ac_word... " >&6; }
4754if test ${ac_cv_prog_AS+y}
4755then :
4756  printf %s "(cached) " >&6
4757else $as_nop
4758  if test -n "$AS"; then
4759  ac_cv_prog_AS="$AS" # Let the user override the test.
4760else
4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764  IFS=$as_save_IFS
4765  case $as_dir in #(((
4766    '') as_dir=./ ;;
4767    */) ;;
4768    *) as_dir=$as_dir/ ;;
4769  esac
4770    for ac_exec_ext in '' $ac_executable_extensions; do
4771  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4772    ac_cv_prog_AS="${ac_tool_prefix}as"
4773    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4774    break 2
4775  fi
4776done
4777  done
4778IFS=$as_save_IFS
4779
4780fi
4781fi
4782AS=$ac_cv_prog_AS
4783if test -n "$AS"; then
4784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4785printf "%s\n" "$AS" >&6; }
4786else
4787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788printf "%s\n" "no" >&6; }
4789fi
4790
4791
4792fi
4793if test -z "$ac_cv_prog_AS"; then
4794  ac_ct_AS=$AS
4795  # Extract the first word of "as", so it can be a program name with args.
4796set dummy as; ac_word=$2
4797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798printf %s "checking for $ac_word... " >&6; }
4799if test ${ac_cv_prog_ac_ct_AS+y}
4800then :
4801  printf %s "(cached) " >&6
4802else $as_nop
4803  if test -n "$ac_ct_AS"; then
4804  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4805else
4806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807for as_dir in $PATH
4808do
4809  IFS=$as_save_IFS
4810  case $as_dir in #(((
4811    '') as_dir=./ ;;
4812    */) ;;
4813    *) as_dir=$as_dir/ ;;
4814  esac
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4817    ac_cv_prog_ac_ct_AS="as"
4818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4819    break 2
4820  fi
4821done
4822  done
4823IFS=$as_save_IFS
4824
4825fi
4826fi
4827ac_ct_AS=$ac_cv_prog_ac_ct_AS
4828if test -n "$ac_ct_AS"; then
4829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4830printf "%s\n" "$ac_ct_AS" >&6; }
4831else
4832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833printf "%s\n" "no" >&6; }
4834fi
4835
4836  if test "x$ac_ct_AS" = x; then
4837    AS="false"
4838  else
4839    case $cross_compiling:$ac_tool_warned in
4840yes:)
4841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843ac_tool_warned=yes ;;
4844esac
4845    AS=$ac_ct_AS
4846  fi
4847else
4848  AS="$ac_cv_prog_AS"
4849fi
4850
4851  if test -n "$ac_tool_prefix"; then
4852  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4853set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855printf %s "checking for $ac_word... " >&6; }
4856if test ${ac_cv_prog_DLLTOOL+y}
4857then :
4858  printf %s "(cached) " >&6
4859else $as_nop
4860  if test -n "$DLLTOOL"; then
4861  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866  IFS=$as_save_IFS
4867  case $as_dir in #(((
4868    '') as_dir=./ ;;
4869    */) ;;
4870    *) as_dir=$as_dir/ ;;
4871  esac
4872    for ac_exec_ext in '' $ac_executable_extensions; do
4873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4874    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4876    break 2
4877  fi
4878done
4879  done
4880IFS=$as_save_IFS
4881
4882fi
4883fi
4884DLLTOOL=$ac_cv_prog_DLLTOOL
4885if test -n "$DLLTOOL"; then
4886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4887printf "%s\n" "$DLLTOOL" >&6; }
4888else
4889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890printf "%s\n" "no" >&6; }
4891fi
4892
4893
4894fi
4895if test -z "$ac_cv_prog_DLLTOOL"; then
4896  ac_ct_DLLTOOL=$DLLTOOL
4897  # Extract the first word of "dlltool", so it can be a program name with args.
4898set dummy dlltool; ac_word=$2
4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900printf %s "checking for $ac_word... " >&6; }
4901if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
4902then :
4903  printf %s "(cached) " >&6
4904else $as_nop
4905  if test -n "$ac_ct_DLLTOOL"; then
4906  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911  IFS=$as_save_IFS
4912  case $as_dir in #(((
4913    '') as_dir=./ ;;
4914    */) ;;
4915    *) as_dir=$as_dir/ ;;
4916  esac
4917    for ac_exec_ext in '' $ac_executable_extensions; do
4918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4919    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4921    break 2
4922  fi
4923done
4924  done
4925IFS=$as_save_IFS
4926
4927fi
4928fi
4929ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4930if test -n "$ac_ct_DLLTOOL"; then
4931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4932printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
4933else
4934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935printf "%s\n" "no" >&6; }
4936fi
4937
4938  if test "x$ac_ct_DLLTOOL" = x; then
4939    DLLTOOL="false"
4940  else
4941    case $cross_compiling:$ac_tool_warned in
4942yes:)
4943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945ac_tool_warned=yes ;;
4946esac
4947    DLLTOOL=$ac_ct_DLLTOOL
4948  fi
4949else
4950  DLLTOOL="$ac_cv_prog_DLLTOOL"
4951fi
4952
4953  if test -n "$ac_tool_prefix"; then
4954  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4955set dummy ${ac_tool_prefix}objdump; ac_word=$2
4956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957printf %s "checking for $ac_word... " >&6; }
4958if test ${ac_cv_prog_OBJDUMP+y}
4959then :
4960  printf %s "(cached) " >&6
4961else $as_nop
4962  if test -n "$OBJDUMP"; then
4963  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  case $as_dir in #(((
4970    '') as_dir=./ ;;
4971    */) ;;
4972    *) as_dir=$as_dir/ ;;
4973  esac
4974    for ac_exec_ext in '' $ac_executable_extensions; do
4975  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4976    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4977    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4978    break 2
4979  fi
4980done
4981  done
4982IFS=$as_save_IFS
4983
4984fi
4985fi
4986OBJDUMP=$ac_cv_prog_OBJDUMP
4987if test -n "$OBJDUMP"; then
4988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4989printf "%s\n" "$OBJDUMP" >&6; }
4990else
4991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992printf "%s\n" "no" >&6; }
4993fi
4994
4995
4996fi
4997if test -z "$ac_cv_prog_OBJDUMP"; then
4998  ac_ct_OBJDUMP=$OBJDUMP
4999  # Extract the first word of "objdump", so it can be a program name with args.
5000set dummy objdump; ac_word=$2
5001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002printf %s "checking for $ac_word... " >&6; }
5003if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5004then :
5005  printf %s "(cached) " >&6
5006else $as_nop
5007  if test -n "$ac_ct_OBJDUMP"; then
5008  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5009else
5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011for as_dir in $PATH
5012do
5013  IFS=$as_save_IFS
5014  case $as_dir in #(((
5015    '') as_dir=./ ;;
5016    */) ;;
5017    *) as_dir=$as_dir/ ;;
5018  esac
5019    for ac_exec_ext in '' $ac_executable_extensions; do
5020  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5021    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5022    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5023    break 2
5024  fi
5025done
5026  done
5027IFS=$as_save_IFS
5028
5029fi
5030fi
5031ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5032if test -n "$ac_ct_OBJDUMP"; then
5033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5034printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5035else
5036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037printf "%s\n" "no" >&6; }
5038fi
5039
5040  if test "x$ac_ct_OBJDUMP" = x; then
5041    OBJDUMP="false"
5042  else
5043    case $cross_compiling:$ac_tool_warned in
5044yes:)
5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047ac_tool_warned=yes ;;
5048esac
5049    OBJDUMP=$ac_ct_OBJDUMP
5050  fi
5051else
5052  OBJDUMP="$ac_cv_prog_OBJDUMP"
5053fi
5054
5055  ;;
5056esac
5057
5058test -z "$AS" && AS=as
5059
5060
5061
5062
5063
5064test -z "$DLLTOOL" && DLLTOOL=dlltool
5065
5066
5067
5068
5069
5070test -z "$OBJDUMP" && OBJDUMP=objdump
5071
5072
5073
5074
5075
5076
5077
5078case `pwd` in
5079  *\ * | *\	*)
5080    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5081printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5082esac
5083
5084
5085
5086macro_version='2.4.7'
5087macro_revision='2.4.7'
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102ltmain=$ac_aux_dir/ltmain.sh
5103
5104# Backslashify metacharacters that are still active within
5105# double-quoted strings.
5106sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5107
5108# Same as above, but do not quote variable references.
5109double_quote_subst='s/\(["`\\]\)/\\\1/g'
5110
5111# Sed substitution to delay expansion of an escaped shell variable in a
5112# double_quote_subst'ed string.
5113delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5114
5115# Sed substitution to delay expansion of an escaped single quote.
5116delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5117
5118# Sed substitution to avoid accidental globbing in evaled expressions
5119no_glob_subst='s/\*/\\\*/g'
5120
5121ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5122ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5123ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5124
5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5126printf %s "checking how to print strings... " >&6; }
5127# Test print first, because it will be a builtin if present.
5128if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5129   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5130  ECHO='print -r --'
5131elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5132  ECHO='printf %s\n'
5133else
5134  # Use this function as a fallback that always works.
5135  func_fallback_echo ()
5136  {
5137    eval 'cat <<_LTECHO_EOF
5138$1
5139_LTECHO_EOF'
5140  }
5141  ECHO='func_fallback_echo'
5142fi
5143
5144# func_echo_all arg...
5145# Invoke $ECHO with all args, space-separated.
5146func_echo_all ()
5147{
5148    $ECHO ""
5149}
5150
5151case $ECHO in
5152  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5153printf "%s\n" "printf" >&6; } ;;
5154  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5155printf "%s\n" "print -r" >&6; } ;;
5156  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5157printf "%s\n" "cat" >&6; } ;;
5158esac
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5174printf %s "checking for a sed that does not truncate output... " >&6; }
5175if test ${ac_cv_path_SED+y}
5176then :
5177  printf %s "(cached) " >&6
5178else $as_nop
5179            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5180     for ac_i in 1 2 3 4 5 6 7; do
5181       ac_script="$ac_script$as_nl$ac_script"
5182     done
5183     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5184     { ac_script=; unset ac_script;}
5185     if test -z "$SED"; then
5186  ac_path_SED_found=false
5187  # Loop through the user's path and test for each of PROGNAME-LIST
5188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  case $as_dir in #(((
5193    '') as_dir=./ ;;
5194    */) ;;
5195    *) as_dir=$as_dir/ ;;
5196  esac
5197    for ac_prog in sed gsed
5198   do
5199    for ac_exec_ext in '' $ac_executable_extensions; do
5200      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5201      as_fn_executable_p "$ac_path_SED" || continue
5202# Check for GNU ac_path_SED and select it if it is found.
5203  # Check for GNU $ac_path_SED
5204case `"$ac_path_SED" --version 2>&1` in
5205*GNU*)
5206  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5207*)
5208  ac_count=0
5209  printf %s 0123456789 >"conftest.in"
5210  while :
5211  do
5212    cat "conftest.in" "conftest.in" >"conftest.tmp"
5213    mv "conftest.tmp" "conftest.in"
5214    cp "conftest.in" "conftest.nl"
5215    printf "%s\n" '' >> "conftest.nl"
5216    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5217    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5218    as_fn_arith $ac_count + 1 && ac_count=$as_val
5219    if test $ac_count -gt ${ac_path_SED_max-0}; then
5220      # Best one so far, save it but keep looking for a better one
5221      ac_cv_path_SED="$ac_path_SED"
5222      ac_path_SED_max=$ac_count
5223    fi
5224    # 10*(2^10) chars as input seems more than enough
5225    test $ac_count -gt 10 && break
5226  done
5227  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5228esac
5229
5230      $ac_path_SED_found && break 3
5231    done
5232  done
5233  done
5234IFS=$as_save_IFS
5235  if test -z "$ac_cv_path_SED"; then
5236    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5237  fi
5238else
5239  ac_cv_path_SED=$SED
5240fi
5241
5242fi
5243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5244printf "%s\n" "$ac_cv_path_SED" >&6; }
5245 SED="$ac_cv_path_SED"
5246  rm -f conftest.sed
5247
5248test -z "$SED" && SED=sed
5249Xsed="$SED -e 1s/^X//"
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5262printf %s "checking for grep that handles long lines and -e... " >&6; }
5263if test ${ac_cv_path_GREP+y}
5264then :
5265  printf %s "(cached) " >&6
5266else $as_nop
5267  if test -z "$GREP"; then
5268  ac_path_GREP_found=false
5269  # Loop through the user's path and test for each of PROGNAME-LIST
5270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5272do
5273  IFS=$as_save_IFS
5274  case $as_dir in #(((
5275    '') as_dir=./ ;;
5276    */) ;;
5277    *) as_dir=$as_dir/ ;;
5278  esac
5279    for ac_prog in grep ggrep
5280   do
5281    for ac_exec_ext in '' $ac_executable_extensions; do
5282      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5283      as_fn_executable_p "$ac_path_GREP" || continue
5284# Check for GNU ac_path_GREP and select it if it is found.
5285  # Check for GNU $ac_path_GREP
5286case `"$ac_path_GREP" --version 2>&1` in
5287*GNU*)
5288  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5289*)
5290  ac_count=0
5291  printf %s 0123456789 >"conftest.in"
5292  while :
5293  do
5294    cat "conftest.in" "conftest.in" >"conftest.tmp"
5295    mv "conftest.tmp" "conftest.in"
5296    cp "conftest.in" "conftest.nl"
5297    printf "%s\n" 'GREP' >> "conftest.nl"
5298    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300    as_fn_arith $ac_count + 1 && ac_count=$as_val
5301    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5302      # Best one so far, save it but keep looking for a better one
5303      ac_cv_path_GREP="$ac_path_GREP"
5304      ac_path_GREP_max=$ac_count
5305    fi
5306    # 10*(2^10) chars as input seems more than enough
5307    test $ac_count -gt 10 && break
5308  done
5309  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310esac
5311
5312      $ac_path_GREP_found && break 3
5313    done
5314  done
5315  done
5316IFS=$as_save_IFS
5317  if test -z "$ac_cv_path_GREP"; then
5318    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5319  fi
5320else
5321  ac_cv_path_GREP=$GREP
5322fi
5323
5324fi
5325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5326printf "%s\n" "$ac_cv_path_GREP" >&6; }
5327 GREP="$ac_cv_path_GREP"
5328
5329
5330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5331printf %s "checking for egrep... " >&6; }
5332if test ${ac_cv_path_EGREP+y}
5333then :
5334  printf %s "(cached) " >&6
5335else $as_nop
5336  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5337   then ac_cv_path_EGREP="$GREP -E"
5338   else
5339     if test -z "$EGREP"; then
5340  ac_path_EGREP_found=false
5341  # Loop through the user's path and test for each of PROGNAME-LIST
5342  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5344do
5345  IFS=$as_save_IFS
5346  case $as_dir in #(((
5347    '') as_dir=./ ;;
5348    */) ;;
5349    *) as_dir=$as_dir/ ;;
5350  esac
5351    for ac_prog in egrep
5352   do
5353    for ac_exec_ext in '' $ac_executable_extensions; do
5354      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5355      as_fn_executable_p "$ac_path_EGREP" || continue
5356# Check for GNU ac_path_EGREP and select it if it is found.
5357  # Check for GNU $ac_path_EGREP
5358case `"$ac_path_EGREP" --version 2>&1` in
5359*GNU*)
5360  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5361*)
5362  ac_count=0
5363  printf %s 0123456789 >"conftest.in"
5364  while :
5365  do
5366    cat "conftest.in" "conftest.in" >"conftest.tmp"
5367    mv "conftest.tmp" "conftest.in"
5368    cp "conftest.in" "conftest.nl"
5369    printf "%s\n" 'EGREP' >> "conftest.nl"
5370    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372    as_fn_arith $ac_count + 1 && ac_count=$as_val
5373    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5374      # Best one so far, save it but keep looking for a better one
5375      ac_cv_path_EGREP="$ac_path_EGREP"
5376      ac_path_EGREP_max=$ac_count
5377    fi
5378    # 10*(2^10) chars as input seems more than enough
5379    test $ac_count -gt 10 && break
5380  done
5381  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382esac
5383
5384      $ac_path_EGREP_found && break 3
5385    done
5386  done
5387  done
5388IFS=$as_save_IFS
5389  if test -z "$ac_cv_path_EGREP"; then
5390    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5391  fi
5392else
5393  ac_cv_path_EGREP=$EGREP
5394fi
5395
5396   fi
5397fi
5398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5399printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5400 EGREP="$ac_cv_path_EGREP"
5401
5402
5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5404printf %s "checking for fgrep... " >&6; }
5405if test ${ac_cv_path_FGREP+y}
5406then :
5407  printf %s "(cached) " >&6
5408else $as_nop
5409  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5410   then ac_cv_path_FGREP="$GREP -F"
5411   else
5412     if test -z "$FGREP"; then
5413  ac_path_FGREP_found=false
5414  # Loop through the user's path and test for each of PROGNAME-LIST
5415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5417do
5418  IFS=$as_save_IFS
5419  case $as_dir in #(((
5420    '') as_dir=./ ;;
5421    */) ;;
5422    *) as_dir=$as_dir/ ;;
5423  esac
5424    for ac_prog in fgrep
5425   do
5426    for ac_exec_ext in '' $ac_executable_extensions; do
5427      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5428      as_fn_executable_p "$ac_path_FGREP" || continue
5429# Check for GNU ac_path_FGREP and select it if it is found.
5430  # Check for GNU $ac_path_FGREP
5431case `"$ac_path_FGREP" --version 2>&1` in
5432*GNU*)
5433  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5434*)
5435  ac_count=0
5436  printf %s 0123456789 >"conftest.in"
5437  while :
5438  do
5439    cat "conftest.in" "conftest.in" >"conftest.tmp"
5440    mv "conftest.tmp" "conftest.in"
5441    cp "conftest.in" "conftest.nl"
5442    printf "%s\n" 'FGREP' >> "conftest.nl"
5443    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5444    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5445    as_fn_arith $ac_count + 1 && ac_count=$as_val
5446    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5447      # Best one so far, save it but keep looking for a better one
5448      ac_cv_path_FGREP="$ac_path_FGREP"
5449      ac_path_FGREP_max=$ac_count
5450    fi
5451    # 10*(2^10) chars as input seems more than enough
5452    test $ac_count -gt 10 && break
5453  done
5454  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5455esac
5456
5457      $ac_path_FGREP_found && break 3
5458    done
5459  done
5460  done
5461IFS=$as_save_IFS
5462  if test -z "$ac_cv_path_FGREP"; then
5463    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5464  fi
5465else
5466  ac_cv_path_FGREP=$FGREP
5467fi
5468
5469   fi
5470fi
5471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5472printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5473 FGREP="$ac_cv_path_FGREP"
5474
5475
5476test -z "$GREP" && GREP=grep
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496# Check whether --with-gnu-ld was given.
5497if test ${with_gnu_ld+y}
5498then :
5499  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5500else $as_nop
5501  with_gnu_ld=no
5502fi
5503
5504ac_prog=ld
5505if test yes = "$GCC"; then
5506  # Check if gcc -print-prog-name=ld gives a path.
5507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5508printf %s "checking for ld used by $CC... " >&6; }
5509  case $host in
5510  *-*-mingw*)
5511    # gcc leaves a trailing carriage return, which upsets mingw
5512    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5513  *)
5514    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5515  esac
5516  case $ac_prog in
5517    # Accept absolute paths.
5518    [\\/]* | ?:[\\/]*)
5519      re_direlt='/[^/][^/]*/\.\./'
5520      # Canonicalize the pathname of ld
5521      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5522      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5523	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5524      done
5525      test -z "$LD" && LD=$ac_prog
5526      ;;
5527  "")
5528    # If it fails, then pretend we aren't using GCC.
5529    ac_prog=ld
5530    ;;
5531  *)
5532    # If it is relative, then search for the first ld in PATH.
5533    with_gnu_ld=unknown
5534    ;;
5535  esac
5536elif test yes = "$with_gnu_ld"; then
5537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5538printf %s "checking for GNU ld... " >&6; }
5539else
5540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5541printf %s "checking for non-GNU ld... " >&6; }
5542fi
5543if test ${lt_cv_path_LD+y}
5544then :
5545  printf %s "(cached) " >&6
5546else $as_nop
5547  if test -z "$LD"; then
5548  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5549  for ac_dir in $PATH; do
5550    IFS=$lt_save_ifs
5551    test -z "$ac_dir" && ac_dir=.
5552    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5553      lt_cv_path_LD=$ac_dir/$ac_prog
5554      # Check to see if the program is GNU ld.  I'd rather use --version,
5555      # but apparently some variants of GNU ld only accept -v.
5556      # Break only if it was the GNU/non-GNU ld that we prefer.
5557      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5558      *GNU* | *'with BFD'*)
5559	test no != "$with_gnu_ld" && break
5560	;;
5561      *)
5562	test yes != "$with_gnu_ld" && break
5563	;;
5564      esac
5565    fi
5566  done
5567  IFS=$lt_save_ifs
5568else
5569  lt_cv_path_LD=$LD # Let the user override the test with a path.
5570fi
5571fi
5572
5573LD=$lt_cv_path_LD
5574if test -n "$LD"; then
5575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5576printf "%s\n" "$LD" >&6; }
5577else
5578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579printf "%s\n" "no" >&6; }
5580fi
5581test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5583printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5584if test ${lt_cv_prog_gnu_ld+y}
5585then :
5586  printf %s "(cached) " >&6
5587else $as_nop
5588  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5589case `$LD -v 2>&1 </dev/null` in
5590*GNU* | *'with BFD'*)
5591  lt_cv_prog_gnu_ld=yes
5592  ;;
5593*)
5594  lt_cv_prog_gnu_ld=no
5595  ;;
5596esac
5597fi
5598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5599printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5600with_gnu_ld=$lt_cv_prog_gnu_ld
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5611printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5612if test ${lt_cv_path_NM+y}
5613then :
5614  printf %s "(cached) " >&6
5615else $as_nop
5616  if test -n "$NM"; then
5617  # Let the user override the test.
5618  lt_cv_path_NM=$NM
5619else
5620  lt_nm_to_check=${ac_tool_prefix}nm
5621  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5622    lt_nm_to_check="$lt_nm_to_check nm"
5623  fi
5624  for lt_tmp_nm in $lt_nm_to_check; do
5625    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5626    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5627      IFS=$lt_save_ifs
5628      test -z "$ac_dir" && ac_dir=.
5629      tmp_nm=$ac_dir/$lt_tmp_nm
5630      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5631	# Check to see if the nm accepts a BSD-compat flag.
5632	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5633	#   nm: unknown option "B" ignored
5634	# Tru64's nm complains that /dev/null is an invalid object file
5635	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5636	case $build_os in
5637	mingw*) lt_bad_file=conftest.nm/nofile ;;
5638	*) lt_bad_file=/dev/null ;;
5639	esac
5640	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5641	*$lt_bad_file* | *'Invalid file or object type'*)
5642	  lt_cv_path_NM="$tmp_nm -B"
5643	  break 2
5644	  ;;
5645	*)
5646	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5647	  */dev/null*)
5648	    lt_cv_path_NM="$tmp_nm -p"
5649	    break 2
5650	    ;;
5651	  *)
5652	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5653	    continue # so that we can try to find one that supports BSD flags
5654	    ;;
5655	  esac
5656	  ;;
5657	esac
5658      fi
5659    done
5660    IFS=$lt_save_ifs
5661  done
5662  : ${lt_cv_path_NM=no}
5663fi
5664fi
5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5666printf "%s\n" "$lt_cv_path_NM" >&6; }
5667if test no != "$lt_cv_path_NM"; then
5668  NM=$lt_cv_path_NM
5669else
5670  # Didn't find any BSD compatible name lister, look for dumpbin.
5671  if test -n "$DUMPBIN"; then :
5672    # Let the user override the test.
5673  else
5674    if test -n "$ac_tool_prefix"; then
5675  for ac_prog in dumpbin "link -dump"
5676  do
5677    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680printf %s "checking for $ac_word... " >&6; }
5681if test ${ac_cv_prog_DUMPBIN+y}
5682then :
5683  printf %s "(cached) " >&6
5684else $as_nop
5685  if test -n "$DUMPBIN"; then
5686  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5687else
5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689for as_dir in $PATH
5690do
5691  IFS=$as_save_IFS
5692  case $as_dir in #(((
5693    '') as_dir=./ ;;
5694    */) ;;
5695    *) as_dir=$as_dir/ ;;
5696  esac
5697    for ac_exec_ext in '' $ac_executable_extensions; do
5698  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5699    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5700    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704  done
5705IFS=$as_save_IFS
5706
5707fi
5708fi
5709DUMPBIN=$ac_cv_prog_DUMPBIN
5710if test -n "$DUMPBIN"; then
5711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5712printf "%s\n" "$DUMPBIN" >&6; }
5713else
5714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715printf "%s\n" "no" >&6; }
5716fi
5717
5718
5719    test -n "$DUMPBIN" && break
5720  done
5721fi
5722if test -z "$DUMPBIN"; then
5723  ac_ct_DUMPBIN=$DUMPBIN
5724  for ac_prog in dumpbin "link -dump"
5725do
5726  # Extract the first word of "$ac_prog", so it can be a program name with args.
5727set dummy $ac_prog; ac_word=$2
5728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729printf %s "checking for $ac_word... " >&6; }
5730if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5731then :
5732  printf %s "(cached) " >&6
5733else $as_nop
5734  if test -n "$ac_ct_DUMPBIN"; then
5735  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740  IFS=$as_save_IFS
5741  case $as_dir in #(((
5742    '') as_dir=./ ;;
5743    */) ;;
5744    *) as_dir=$as_dir/ ;;
5745  esac
5746    for ac_exec_ext in '' $ac_executable_extensions; do
5747  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5748    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5749    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5750    break 2
5751  fi
5752done
5753  done
5754IFS=$as_save_IFS
5755
5756fi
5757fi
5758ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5759if test -n "$ac_ct_DUMPBIN"; then
5760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5761printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5762else
5763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764printf "%s\n" "no" >&6; }
5765fi
5766
5767
5768  test -n "$ac_ct_DUMPBIN" && break
5769done
5770
5771  if test "x$ac_ct_DUMPBIN" = x; then
5772    DUMPBIN=":"
5773  else
5774    case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780    DUMPBIN=$ac_ct_DUMPBIN
5781  fi
5782fi
5783
5784    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5785    *COFF*)
5786      DUMPBIN="$DUMPBIN -symbols -headers"
5787      ;;
5788    *)
5789      DUMPBIN=:
5790      ;;
5791    esac
5792  fi
5793
5794  if test : != "$DUMPBIN"; then
5795    NM=$DUMPBIN
5796  fi
5797fi
5798test -z "$NM" && NM=nm
5799
5800
5801
5802
5803
5804
5805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5806printf %s "checking the name lister ($NM) interface... " >&6; }
5807if test ${lt_cv_nm_interface+y}
5808then :
5809  printf %s "(cached) " >&6
5810else $as_nop
5811  lt_cv_nm_interface="BSD nm"
5812  echo "int some_variable = 0;" > conftest.$ac_ext
5813  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5814  (eval "$ac_compile" 2>conftest.err)
5815  cat conftest.err >&5
5816  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5817  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5818  cat conftest.err >&5
5819  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5820  cat conftest.out >&5
5821  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5822    lt_cv_nm_interface="MS dumpbin"
5823  fi
5824  rm -f conftest*
5825fi
5826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5827printf "%s\n" "$lt_cv_nm_interface" >&6; }
5828
5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5830printf %s "checking whether ln -s works... " >&6; }
5831LN_S=$as_ln_s
5832if test "$LN_S" = "ln -s"; then
5833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5834printf "%s\n" "yes" >&6; }
5835else
5836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5837printf "%s\n" "no, using $LN_S" >&6; }
5838fi
5839
5840# find the maximum length of command line arguments
5841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5842printf %s "checking the maximum length of command line arguments... " >&6; }
5843if test ${lt_cv_sys_max_cmd_len+y}
5844then :
5845  printf %s "(cached) " >&6
5846else $as_nop
5847    i=0
5848  teststring=ABCD
5849
5850  case $build_os in
5851  msdosdjgpp*)
5852    # On DJGPP, this test can blow up pretty badly due to problems in libc
5853    # (any single argument exceeding 2000 bytes causes a buffer overrun
5854    # during glob expansion).  Even if it were fixed, the result of this
5855    # check would be larger than it should be.
5856    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5857    ;;
5858
5859  gnu*)
5860    # Under GNU Hurd, this test is not required because there is
5861    # no limit to the length of command line arguments.
5862    # Libtool will interpret -1 as no limit whatsoever
5863    lt_cv_sys_max_cmd_len=-1;
5864    ;;
5865
5866  cygwin* | mingw* | cegcc*)
5867    # On Win9x/ME, this test blows up -- it succeeds, but takes
5868    # about 5 minutes as the teststring grows exponentially.
5869    # Worse, since 9x/ME are not pre-emptively multitasking,
5870    # you end up with a "frozen" computer, even though with patience
5871    # the test eventually succeeds (with a max line length of 256k).
5872    # Instead, let's just punt: use the minimum linelength reported by
5873    # all of the supported platforms: 8192 (on NT/2K/XP).
5874    lt_cv_sys_max_cmd_len=8192;
5875    ;;
5876
5877  mint*)
5878    # On MiNT this can take a long time and run out of memory.
5879    lt_cv_sys_max_cmd_len=8192;
5880    ;;
5881
5882  amigaos*)
5883    # On AmigaOS with pdksh, this test takes hours, literally.
5884    # So we just punt and use a minimum line length of 8192.
5885    lt_cv_sys_max_cmd_len=8192;
5886    ;;
5887
5888  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5889    # This has been around since 386BSD, at least.  Likely further.
5890    if test -x /sbin/sysctl; then
5891      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5892    elif test -x /usr/sbin/sysctl; then
5893      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5894    else
5895      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5896    fi
5897    # And add a safety zone
5898    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5899    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5900    ;;
5901
5902  interix*)
5903    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5904    lt_cv_sys_max_cmd_len=196608
5905    ;;
5906
5907  os2*)
5908    # The test takes a long time on OS/2.
5909    lt_cv_sys_max_cmd_len=8192
5910    ;;
5911
5912  osf*)
5913    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5914    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5915    # nice to cause kernel panics so lets avoid the loop below.
5916    # First set a reasonable default.
5917    lt_cv_sys_max_cmd_len=16384
5918    #
5919    if test -x /sbin/sysconfig; then
5920      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5921        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5922      esac
5923    fi
5924    ;;
5925  sco3.2v5*)
5926    lt_cv_sys_max_cmd_len=102400
5927    ;;
5928  sysv5* | sco5v6* | sysv4.2uw2*)
5929    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5930    if test -n "$kargmax"; then
5931      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5932    else
5933      lt_cv_sys_max_cmd_len=32768
5934    fi
5935    ;;
5936  *)
5937    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5938    if test -n "$lt_cv_sys_max_cmd_len" && \
5939       test undefined != "$lt_cv_sys_max_cmd_len"; then
5940      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5941      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5942    else
5943      # Make teststring a little bigger before we do anything with it.
5944      # a 1K string should be a reasonable start.
5945      for i in 1 2 3 4 5 6 7 8; do
5946        teststring=$teststring$teststring
5947      done
5948      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5949      # If test is not a shell built-in, we'll probably end up computing a
5950      # maximum length that is only half of the actual maximum length, but
5951      # we can't tell.
5952      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5953	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5954	      test 17 != "$i" # 1/2 MB should be enough
5955      do
5956        i=`expr $i + 1`
5957        teststring=$teststring$teststring
5958      done
5959      # Only check the string length outside the loop.
5960      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5961      teststring=
5962      # Add a significant safety factor because C++ compilers can tack on
5963      # massive amounts of additional arguments before passing them to the
5964      # linker.  It appears as though 1/2 is a usable value.
5965      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5966    fi
5967    ;;
5968  esac
5969
5970fi
5971
5972if test -n "$lt_cv_sys_max_cmd_len"; then
5973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5974printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5975else
5976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5977printf "%s\n" "none" >&6; }
5978fi
5979max_cmd_len=$lt_cv_sys_max_cmd_len
5980
5981
5982
5983
5984
5985
5986: ${CP="cp -f"}
5987: ${MV="mv -f"}
5988: ${RM="rm -f"}
5989
5990if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5991  lt_unset=unset
5992else
5993  lt_unset=false
5994fi
5995
5996
5997
5998
5999
6000# test EBCDIC or ASCII
6001case `echo X|tr X '\101'` in
6002 A) # ASCII based system
6003    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6004  lt_SP2NL='tr \040 \012'
6005  lt_NL2SP='tr \015\012 \040\040'
6006  ;;
6007 *) # EBCDIC based system
6008  lt_SP2NL='tr \100 \n'
6009  lt_NL2SP='tr \r\n \100\100'
6010  ;;
6011esac
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6022printf %s "checking how to convert $build file names to $host format... " >&6; }
6023if test ${lt_cv_to_host_file_cmd+y}
6024then :
6025  printf %s "(cached) " >&6
6026else $as_nop
6027  case $host in
6028  *-*-mingw* )
6029    case $build in
6030      *-*-mingw* ) # actually msys
6031        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6032        ;;
6033      *-*-cygwin* )
6034        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6035        ;;
6036      * ) # otherwise, assume *nix
6037        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6038        ;;
6039    esac
6040    ;;
6041  *-*-cygwin* )
6042    case $build in
6043      *-*-mingw* ) # actually msys
6044        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6045        ;;
6046      *-*-cygwin* )
6047        lt_cv_to_host_file_cmd=func_convert_file_noop
6048        ;;
6049      * ) # otherwise, assume *nix
6050        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6051        ;;
6052    esac
6053    ;;
6054  * ) # unhandled hosts (and "normal" native builds)
6055    lt_cv_to_host_file_cmd=func_convert_file_noop
6056    ;;
6057esac
6058
6059fi
6060
6061to_host_file_cmd=$lt_cv_to_host_file_cmd
6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6063printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6064
6065
6066
6067
6068
6069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6070printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6071if test ${lt_cv_to_tool_file_cmd+y}
6072then :
6073  printf %s "(cached) " >&6
6074else $as_nop
6075  #assume ordinary cross tools, or native build.
6076lt_cv_to_tool_file_cmd=func_convert_file_noop
6077case $host in
6078  *-*-mingw* )
6079    case $build in
6080      *-*-mingw* ) # actually msys
6081        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6082        ;;
6083    esac
6084    ;;
6085esac
6086
6087fi
6088
6089to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6091printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6092
6093
6094
6095
6096
6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6098printf %s "checking for $LD option to reload object files... " >&6; }
6099if test ${lt_cv_ld_reload_flag+y}
6100then :
6101  printf %s "(cached) " >&6
6102else $as_nop
6103  lt_cv_ld_reload_flag='-r'
6104fi
6105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6106printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6107reload_flag=$lt_cv_ld_reload_flag
6108case $reload_flag in
6109"" | " "*) ;;
6110*) reload_flag=" $reload_flag" ;;
6111esac
6112reload_cmds='$LD$reload_flag -o $output$reload_objs'
6113case $host_os in
6114  cygwin* | mingw* | pw32* | cegcc*)
6115    if test yes != "$GCC"; then
6116      reload_cmds=false
6117    fi
6118    ;;
6119  darwin*)
6120    if test yes = "$GCC"; then
6121      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6122    else
6123      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6124    fi
6125    ;;
6126esac
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136if test -n "$ac_tool_prefix"; then
6137  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6138set dummy ${ac_tool_prefix}file; ac_word=$2
6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140printf %s "checking for $ac_word... " >&6; }
6141if test ${ac_cv_prog_FILECMD+y}
6142then :
6143  printf %s "(cached) " >&6
6144else $as_nop
6145  if test -n "$FILECMD"; then
6146  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  case $as_dir in #(((
6153    '') as_dir=./ ;;
6154    */) ;;
6155    *) as_dir=$as_dir/ ;;
6156  esac
6157    for ac_exec_ext in '' $ac_executable_extensions; do
6158  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6159    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6160    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6161    break 2
6162  fi
6163done
6164  done
6165IFS=$as_save_IFS
6166
6167fi
6168fi
6169FILECMD=$ac_cv_prog_FILECMD
6170if test -n "$FILECMD"; then
6171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6172printf "%s\n" "$FILECMD" >&6; }
6173else
6174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175printf "%s\n" "no" >&6; }
6176fi
6177
6178
6179fi
6180if test -z "$ac_cv_prog_FILECMD"; then
6181  ac_ct_FILECMD=$FILECMD
6182  # Extract the first word of "file", so it can be a program name with args.
6183set dummy file; ac_word=$2
6184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185printf %s "checking for $ac_word... " >&6; }
6186if test ${ac_cv_prog_ac_ct_FILECMD+y}
6187then :
6188  printf %s "(cached) " >&6
6189else $as_nop
6190  if test -n "$ac_ct_FILECMD"; then
6191  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196  IFS=$as_save_IFS
6197  case $as_dir in #(((
6198    '') as_dir=./ ;;
6199    */) ;;
6200    *) as_dir=$as_dir/ ;;
6201  esac
6202    for ac_exec_ext in '' $ac_executable_extensions; do
6203  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6204    ac_cv_prog_ac_ct_FILECMD="file"
6205    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6206    break 2
6207  fi
6208done
6209  done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6215if test -n "$ac_ct_FILECMD"; then
6216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6217printf "%s\n" "$ac_ct_FILECMD" >&6; }
6218else
6219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220printf "%s\n" "no" >&6; }
6221fi
6222
6223  if test "x$ac_ct_FILECMD" = x; then
6224    FILECMD=":"
6225  else
6226    case $cross_compiling:$ac_tool_warned in
6227yes:)
6228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230ac_tool_warned=yes ;;
6231esac
6232    FILECMD=$ac_ct_FILECMD
6233  fi
6234else
6235  FILECMD="$ac_cv_prog_FILECMD"
6236fi
6237
6238
6239
6240
6241
6242
6243
6244if test -n "$ac_tool_prefix"; then
6245  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6246set dummy ${ac_tool_prefix}objdump; ac_word=$2
6247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248printf %s "checking for $ac_word... " >&6; }
6249if test ${ac_cv_prog_OBJDUMP+y}
6250then :
6251  printf %s "(cached) " >&6
6252else $as_nop
6253  if test -n "$OBJDUMP"; then
6254  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259  IFS=$as_save_IFS
6260  case $as_dir in #(((
6261    '') as_dir=./ ;;
6262    */) ;;
6263    *) as_dir=$as_dir/ ;;
6264  esac
6265    for ac_exec_ext in '' $ac_executable_extensions; do
6266  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6267    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6268    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6269    break 2
6270  fi
6271done
6272  done
6273IFS=$as_save_IFS
6274
6275fi
6276fi
6277OBJDUMP=$ac_cv_prog_OBJDUMP
6278if test -n "$OBJDUMP"; then
6279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6280printf "%s\n" "$OBJDUMP" >&6; }
6281else
6282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283printf "%s\n" "no" >&6; }
6284fi
6285
6286
6287fi
6288if test -z "$ac_cv_prog_OBJDUMP"; then
6289  ac_ct_OBJDUMP=$OBJDUMP
6290  # Extract the first word of "objdump", so it can be a program name with args.
6291set dummy objdump; ac_word=$2
6292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293printf %s "checking for $ac_word... " >&6; }
6294if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6295then :
6296  printf %s "(cached) " >&6
6297else $as_nop
6298  if test -n "$ac_ct_OBJDUMP"; then
6299  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  case $as_dir in #(((
6306    '') as_dir=./ ;;
6307    */) ;;
6308    *) as_dir=$as_dir/ ;;
6309  esac
6310    for ac_exec_ext in '' $ac_executable_extensions; do
6311  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6312    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6313    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6314    break 2
6315  fi
6316done
6317  done
6318IFS=$as_save_IFS
6319
6320fi
6321fi
6322ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6323if test -n "$ac_ct_OBJDUMP"; then
6324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6325printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6326else
6327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328printf "%s\n" "no" >&6; }
6329fi
6330
6331  if test "x$ac_ct_OBJDUMP" = x; then
6332    OBJDUMP="false"
6333  else
6334    case $cross_compiling:$ac_tool_warned in
6335yes:)
6336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338ac_tool_warned=yes ;;
6339esac
6340    OBJDUMP=$ac_ct_OBJDUMP
6341  fi
6342else
6343  OBJDUMP="$ac_cv_prog_OBJDUMP"
6344fi
6345
6346test -z "$OBJDUMP" && OBJDUMP=objdump
6347
6348
6349
6350
6351
6352
6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6354printf %s "checking how to recognize dependent libraries... " >&6; }
6355if test ${lt_cv_deplibs_check_method+y}
6356then :
6357  printf %s "(cached) " >&6
6358else $as_nop
6359  lt_cv_file_magic_cmd='$MAGIC_CMD'
6360lt_cv_file_magic_test_file=
6361lt_cv_deplibs_check_method='unknown'
6362# Need to set the preceding variable on all platforms that support
6363# interlibrary dependencies.
6364# 'none' -- dependencies not supported.
6365# 'unknown' -- same as none, but documents that we really don't know.
6366# 'pass_all' -- all dependencies passed with no checks.
6367# 'test_compile' -- check by making test program.
6368# 'file_magic [[regex]]' -- check by looking for files in library path
6369# that responds to the $file_magic_cmd with a given extended regex.
6370# If you have 'file' or equivalent on your system and you're not sure
6371# whether 'pass_all' will *always* work, you probably want this one.
6372
6373case $host_os in
6374aix[4-9]*)
6375  lt_cv_deplibs_check_method=pass_all
6376  ;;
6377
6378beos*)
6379  lt_cv_deplibs_check_method=pass_all
6380  ;;
6381
6382bsdi[45]*)
6383  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6384  lt_cv_file_magic_cmd='$FILECMD -L'
6385  lt_cv_file_magic_test_file=/shlib/libc.so
6386  ;;
6387
6388cygwin*)
6389  # func_win32_libid is a shell function defined in ltmain.sh
6390  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6391  lt_cv_file_magic_cmd='func_win32_libid'
6392  ;;
6393
6394mingw* | pw32*)
6395  # Base MSYS/MinGW do not provide the 'file' command needed by
6396  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6397  # unless we find 'file', for example because we are cross-compiling.
6398  if ( file / ) >/dev/null 2>&1; then
6399    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6400    lt_cv_file_magic_cmd='func_win32_libid'
6401  else
6402    # Keep this pattern in sync with the one in func_win32_libid.
6403    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6404    lt_cv_file_magic_cmd='$OBJDUMP -f'
6405  fi
6406  ;;
6407
6408cegcc*)
6409  # use the weaker test based on 'objdump'. See mingw*.
6410  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6411  lt_cv_file_magic_cmd='$OBJDUMP -f'
6412  ;;
6413
6414darwin* | rhapsody*)
6415  lt_cv_deplibs_check_method=pass_all
6416  ;;
6417
6418freebsd* | dragonfly* | midnightbsd*)
6419  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6420    case $host_cpu in
6421    i*86 )
6422      # Not sure whether the presence of OpenBSD here was a mistake.
6423      # Let's accept both of them until this is cleared up.
6424      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6425      lt_cv_file_magic_cmd=$FILECMD
6426      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6427      ;;
6428    esac
6429  else
6430    lt_cv_deplibs_check_method=pass_all
6431  fi
6432  ;;
6433
6434haiku*)
6435  lt_cv_deplibs_check_method=pass_all
6436  ;;
6437
6438hpux10.20* | hpux11*)
6439  lt_cv_file_magic_cmd=$FILECMD
6440  case $host_cpu in
6441  ia64*)
6442    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6443    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6444    ;;
6445  hppa*64*)
6446    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]'
6447    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6448    ;;
6449  *)
6450    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6451    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6452    ;;
6453  esac
6454  ;;
6455
6456interix[3-9]*)
6457  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6458  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6459  ;;
6460
6461irix5* | irix6* | nonstopux*)
6462  case $LD in
6463  *-32|*"-32 ") libmagic=32-bit;;
6464  *-n32|*"-n32 ") libmagic=N32;;
6465  *-64|*"-64 ") libmagic=64-bit;;
6466  *) libmagic=never-match;;
6467  esac
6468  lt_cv_deplibs_check_method=pass_all
6469  ;;
6470
6471# This must be glibc/ELF.
6472linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6473  lt_cv_deplibs_check_method=pass_all
6474  ;;
6475
6476netbsd*)
6477  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6478    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6479  else
6480    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6481  fi
6482  ;;
6483
6484newos6*)
6485  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6486  lt_cv_file_magic_cmd=$FILECMD
6487  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6488  ;;
6489
6490*nto* | *qnx*)
6491  lt_cv_deplibs_check_method=pass_all
6492  ;;
6493
6494openbsd* | bitrig*)
6495  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6496    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6497  else
6498    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6499  fi
6500  ;;
6501
6502osf3* | osf4* | osf5*)
6503  lt_cv_deplibs_check_method=pass_all
6504  ;;
6505
6506rdos*)
6507  lt_cv_deplibs_check_method=pass_all
6508  ;;
6509
6510solaris*)
6511  lt_cv_deplibs_check_method=pass_all
6512  ;;
6513
6514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6515  lt_cv_deplibs_check_method=pass_all
6516  ;;
6517
6518sysv4 | sysv4.3*)
6519  case $host_vendor in
6520  motorola)
6521    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]'
6522    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6523    ;;
6524  ncr)
6525    lt_cv_deplibs_check_method=pass_all
6526    ;;
6527  sequent)
6528    lt_cv_file_magic_cmd='/bin/file'
6529    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6530    ;;
6531  sni)
6532    lt_cv_file_magic_cmd='/bin/file'
6533    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6534    lt_cv_file_magic_test_file=/lib/libc.so
6535    ;;
6536  siemens)
6537    lt_cv_deplibs_check_method=pass_all
6538    ;;
6539  pc)
6540    lt_cv_deplibs_check_method=pass_all
6541    ;;
6542  esac
6543  ;;
6544
6545tpf*)
6546  lt_cv_deplibs_check_method=pass_all
6547  ;;
6548os2*)
6549  lt_cv_deplibs_check_method=pass_all
6550  ;;
6551esac
6552
6553fi
6554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6555printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6556
6557file_magic_glob=
6558want_nocaseglob=no
6559if test "$build" = "$host"; then
6560  case $host_os in
6561  mingw* | pw32*)
6562    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6563      want_nocaseglob=yes
6564    else
6565      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6566    fi
6567    ;;
6568  esac
6569fi
6570
6571file_magic_cmd=$lt_cv_file_magic_cmd
6572deplibs_check_method=$lt_cv_deplibs_check_method
6573test -z "$deplibs_check_method" && deplibs_check_method=unknown
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596if test -n "$ac_tool_prefix"; then
6597  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6598set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600printf %s "checking for $ac_word... " >&6; }
6601if test ${ac_cv_prog_DLLTOOL+y}
6602then :
6603  printf %s "(cached) " >&6
6604else $as_nop
6605  if test -n "$DLLTOOL"; then
6606  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6607else
6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611  IFS=$as_save_IFS
6612  case $as_dir in #(((
6613    '') as_dir=./ ;;
6614    */) ;;
6615    *) as_dir=$as_dir/ ;;
6616  esac
6617    for ac_exec_ext in '' $ac_executable_extensions; do
6618  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6619    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6620    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6621    break 2
6622  fi
6623done
6624  done
6625IFS=$as_save_IFS
6626
6627fi
6628fi
6629DLLTOOL=$ac_cv_prog_DLLTOOL
6630if test -n "$DLLTOOL"; then
6631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6632printf "%s\n" "$DLLTOOL" >&6; }
6633else
6634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635printf "%s\n" "no" >&6; }
6636fi
6637
6638
6639fi
6640if test -z "$ac_cv_prog_DLLTOOL"; then
6641  ac_ct_DLLTOOL=$DLLTOOL
6642  # Extract the first word of "dlltool", so it can be a program name with args.
6643set dummy dlltool; ac_word=$2
6644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645printf %s "checking for $ac_word... " >&6; }
6646if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6647then :
6648  printf %s "(cached) " >&6
6649else $as_nop
6650  if test -n "$ac_ct_DLLTOOL"; then
6651  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6652else
6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656  IFS=$as_save_IFS
6657  case $as_dir in #(((
6658    '') as_dir=./ ;;
6659    */) ;;
6660    *) as_dir=$as_dir/ ;;
6661  esac
6662    for ac_exec_ext in '' $ac_executable_extensions; do
6663  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6664    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6665    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669  done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6675if test -n "$ac_ct_DLLTOOL"; then
6676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6677printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6678else
6679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680printf "%s\n" "no" >&6; }
6681fi
6682
6683  if test "x$ac_ct_DLLTOOL" = x; then
6684    DLLTOOL="false"
6685  else
6686    case $cross_compiling:$ac_tool_warned in
6687yes:)
6688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690ac_tool_warned=yes ;;
6691esac
6692    DLLTOOL=$ac_ct_DLLTOOL
6693  fi
6694else
6695  DLLTOOL="$ac_cv_prog_DLLTOOL"
6696fi
6697
6698test -z "$DLLTOOL" && DLLTOOL=dlltool
6699
6700
6701
6702
6703
6704
6705
6706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6707printf %s "checking how to associate runtime and link libraries... " >&6; }
6708if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6709then :
6710  printf %s "(cached) " >&6
6711else $as_nop
6712  lt_cv_sharedlib_from_linklib_cmd='unknown'
6713
6714case $host_os in
6715cygwin* | mingw* | pw32* | cegcc*)
6716  # two different shell functions defined in ltmain.sh;
6717  # decide which one to use based on capabilities of $DLLTOOL
6718  case `$DLLTOOL --help 2>&1` in
6719  *--identify-strict*)
6720    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6721    ;;
6722  *)
6723    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6724    ;;
6725  esac
6726  ;;
6727*)
6728  # fallback: assume linklib IS sharedlib
6729  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6730  ;;
6731esac
6732
6733fi
6734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6735printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6736sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6737test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6738
6739
6740
6741
6742
6743
6744
6745if test -n "$ac_tool_prefix"; then
6746  for ac_prog in ar
6747  do
6748    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751printf %s "checking for $ac_word... " >&6; }
6752if test ${ac_cv_prog_AR+y}
6753then :
6754  printf %s "(cached) " >&6
6755else $as_nop
6756  if test -n "$AR"; then
6757  ac_cv_prog_AR="$AR" # Let the user override the test.
6758else
6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762  IFS=$as_save_IFS
6763  case $as_dir in #(((
6764    '') as_dir=./ ;;
6765    */) ;;
6766    *) as_dir=$as_dir/ ;;
6767  esac
6768    for ac_exec_ext in '' $ac_executable_extensions; do
6769  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6770    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6771    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6772    break 2
6773  fi
6774done
6775  done
6776IFS=$as_save_IFS
6777
6778fi
6779fi
6780AR=$ac_cv_prog_AR
6781if test -n "$AR"; then
6782  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6783printf "%s\n" "$AR" >&6; }
6784else
6785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786printf "%s\n" "no" >&6; }
6787fi
6788
6789
6790    test -n "$AR" && break
6791  done
6792fi
6793if test -z "$AR"; then
6794  ac_ct_AR=$AR
6795  for ac_prog in ar
6796do
6797  # Extract the first word of "$ac_prog", so it can be a program name with args.
6798set dummy $ac_prog; ac_word=$2
6799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800printf %s "checking for $ac_word... " >&6; }
6801if test ${ac_cv_prog_ac_ct_AR+y}
6802then :
6803  printf %s "(cached) " >&6
6804else $as_nop
6805  if test -n "$ac_ct_AR"; then
6806  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811  IFS=$as_save_IFS
6812  case $as_dir in #(((
6813    '') as_dir=./ ;;
6814    */) ;;
6815    *) as_dir=$as_dir/ ;;
6816  esac
6817    for ac_exec_ext in '' $ac_executable_extensions; do
6818  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6819    ac_cv_prog_ac_ct_AR="$ac_prog"
6820    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6821    break 2
6822  fi
6823done
6824  done
6825IFS=$as_save_IFS
6826
6827fi
6828fi
6829ac_ct_AR=$ac_cv_prog_ac_ct_AR
6830if test -n "$ac_ct_AR"; then
6831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6832printf "%s\n" "$ac_ct_AR" >&6; }
6833else
6834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835printf "%s\n" "no" >&6; }
6836fi
6837
6838
6839  test -n "$ac_ct_AR" && break
6840done
6841
6842  if test "x$ac_ct_AR" = x; then
6843    AR="false"
6844  else
6845    case $cross_compiling:$ac_tool_warned in
6846yes:)
6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849ac_tool_warned=yes ;;
6850esac
6851    AR=$ac_ct_AR
6852  fi
6853fi
6854
6855: ${AR=ar}
6856
6857
6858
6859
6860
6861
6862# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6863# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6864# higher priority because thats what people were doing historically (setting
6865# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6866# variable obsoleted/removed.
6867
6868test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6869lt_ar_flags=$AR_FLAGS
6870
6871
6872
6873
6874
6875
6876# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6877# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6878
6879
6880
6881
6882
6883
6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6885printf %s "checking for archiver @FILE support... " >&6; }
6886if test ${lt_cv_ar_at_file+y}
6887then :
6888  printf %s "(cached) " >&6
6889else $as_nop
6890  lt_cv_ar_at_file=no
6891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892/* end confdefs.h.  */
6893
6894int
6895main (void)
6896{
6897
6898  ;
6899  return 0;
6900}
6901_ACEOF
6902if ac_fn_c_try_compile "$LINENO"
6903then :
6904  echo conftest.$ac_objext > conftest.lst
6905      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6906      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6907  (eval $lt_ar_try) 2>&5
6908  ac_status=$?
6909  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910  test $ac_status = 0; }
6911      if test 0 -eq "$ac_status"; then
6912	# Ensure the archiver fails upon bogus file names.
6913	rm -f conftest.$ac_objext libconftest.a
6914	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6915  (eval $lt_ar_try) 2>&5
6916  ac_status=$?
6917  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918  test $ac_status = 0; }
6919	if test 0 -ne "$ac_status"; then
6920          lt_cv_ar_at_file=@
6921        fi
6922      fi
6923      rm -f conftest.* libconftest.a
6924
6925fi
6926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6927
6928fi
6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6930printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6931
6932if test no = "$lt_cv_ar_at_file"; then
6933  archiver_list_spec=
6934else
6935  archiver_list_spec=$lt_cv_ar_at_file
6936fi
6937
6938
6939
6940
6941
6942
6943
6944if test -n "$ac_tool_prefix"; then
6945  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6946set dummy ${ac_tool_prefix}strip; ac_word=$2
6947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948printf %s "checking for $ac_word... " >&6; }
6949if test ${ac_cv_prog_STRIP+y}
6950then :
6951  printf %s "(cached) " >&6
6952else $as_nop
6953  if test -n "$STRIP"; then
6954  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959  IFS=$as_save_IFS
6960  case $as_dir in #(((
6961    '') as_dir=./ ;;
6962    */) ;;
6963    *) as_dir=$as_dir/ ;;
6964  esac
6965    for ac_exec_ext in '' $ac_executable_extensions; do
6966  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6967    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6968    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972  done
6973IFS=$as_save_IFS
6974
6975fi
6976fi
6977STRIP=$ac_cv_prog_STRIP
6978if test -n "$STRIP"; then
6979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6980printf "%s\n" "$STRIP" >&6; }
6981else
6982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983printf "%s\n" "no" >&6; }
6984fi
6985
6986
6987fi
6988if test -z "$ac_cv_prog_STRIP"; then
6989  ac_ct_STRIP=$STRIP
6990  # Extract the first word of "strip", so it can be a program name with args.
6991set dummy strip; ac_word=$2
6992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993printf %s "checking for $ac_word... " >&6; }
6994if test ${ac_cv_prog_ac_ct_STRIP+y}
6995then :
6996  printf %s "(cached) " >&6
6997else $as_nop
6998  if test -n "$ac_ct_STRIP"; then
6999  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7000else
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004  IFS=$as_save_IFS
7005  case $as_dir in #(((
7006    '') as_dir=./ ;;
7007    */) ;;
7008    *) as_dir=$as_dir/ ;;
7009  esac
7010    for ac_exec_ext in '' $ac_executable_extensions; do
7011  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7012    ac_cv_prog_ac_ct_STRIP="strip"
7013    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7014    break 2
7015  fi
7016done
7017  done
7018IFS=$as_save_IFS
7019
7020fi
7021fi
7022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7023if test -n "$ac_ct_STRIP"; then
7024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7025printf "%s\n" "$ac_ct_STRIP" >&6; }
7026else
7027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028printf "%s\n" "no" >&6; }
7029fi
7030
7031  if test "x$ac_ct_STRIP" = x; then
7032    STRIP=":"
7033  else
7034    case $cross_compiling:$ac_tool_warned in
7035yes:)
7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7037printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7038ac_tool_warned=yes ;;
7039esac
7040    STRIP=$ac_ct_STRIP
7041  fi
7042else
7043  STRIP="$ac_cv_prog_STRIP"
7044fi
7045
7046test -z "$STRIP" && STRIP=:
7047
7048
7049
7050
7051
7052
7053if test -n "$ac_tool_prefix"; then
7054  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7055set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057printf %s "checking for $ac_word... " >&6; }
7058if test ${ac_cv_prog_RANLIB+y}
7059then :
7060  printf %s "(cached) " >&6
7061else $as_nop
7062  if test -n "$RANLIB"; then
7063  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7064else
7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068  IFS=$as_save_IFS
7069  case $as_dir in #(((
7070    '') as_dir=./ ;;
7071    */) ;;
7072    *) as_dir=$as_dir/ ;;
7073  esac
7074    for ac_exec_ext in '' $ac_executable_extensions; do
7075  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7076    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7077    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7078    break 2
7079  fi
7080done
7081  done
7082IFS=$as_save_IFS
7083
7084fi
7085fi
7086RANLIB=$ac_cv_prog_RANLIB
7087if test -n "$RANLIB"; then
7088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7089printf "%s\n" "$RANLIB" >&6; }
7090else
7091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092printf "%s\n" "no" >&6; }
7093fi
7094
7095
7096fi
7097if test -z "$ac_cv_prog_RANLIB"; then
7098  ac_ct_RANLIB=$RANLIB
7099  # Extract the first word of "ranlib", so it can be a program name with args.
7100set dummy ranlib; ac_word=$2
7101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102printf %s "checking for $ac_word... " >&6; }
7103if test ${ac_cv_prog_ac_ct_RANLIB+y}
7104then :
7105  printf %s "(cached) " >&6
7106else $as_nop
7107  if test -n "$ac_ct_RANLIB"; then
7108  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  case $as_dir in #(((
7115    '') as_dir=./ ;;
7116    */) ;;
7117    *) as_dir=$as_dir/ ;;
7118  esac
7119    for ac_exec_ext in '' $ac_executable_extensions; do
7120  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7121    ac_cv_prog_ac_ct_RANLIB="ranlib"
7122    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126  done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7132if test -n "$ac_ct_RANLIB"; then
7133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7134printf "%s\n" "$ac_ct_RANLIB" >&6; }
7135else
7136  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137printf "%s\n" "no" >&6; }
7138fi
7139
7140  if test "x$ac_ct_RANLIB" = x; then
7141    RANLIB=":"
7142  else
7143    case $cross_compiling:$ac_tool_warned in
7144yes:)
7145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147ac_tool_warned=yes ;;
7148esac
7149    RANLIB=$ac_ct_RANLIB
7150  fi
7151else
7152  RANLIB="$ac_cv_prog_RANLIB"
7153fi
7154
7155test -z "$RANLIB" && RANLIB=:
7156
7157
7158
7159
7160
7161
7162# Determine commands to create old-style static archives.
7163old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7164old_postinstall_cmds='chmod 644 $oldlib'
7165old_postuninstall_cmds=
7166
7167if test -n "$RANLIB"; then
7168  case $host_os in
7169  bitrig* | openbsd*)
7170    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7171    ;;
7172  *)
7173    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7174    ;;
7175  esac
7176  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7177fi
7178
7179case $host_os in
7180  darwin*)
7181    lock_old_archive_extraction=yes ;;
7182  *)
7183    lock_old_archive_extraction=no ;;
7184esac
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224# If no C compiler was specified, use CC.
7225LTCC=${LTCC-"$CC"}
7226
7227# If no C compiler flags were specified, use CFLAGS.
7228LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7229
7230# Allow CC to be a program name with arguments.
7231compiler=$CC
7232
7233
7234# Check for command to grab the raw symbol name followed by C symbol from nm.
7235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7236printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7237if test ${lt_cv_sys_global_symbol_pipe+y}
7238then :
7239  printf %s "(cached) " >&6
7240else $as_nop
7241
7242# These are sane defaults that work on at least a few old systems.
7243# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7244
7245# Character class describing NM global symbol codes.
7246symcode='[BCDEGRST]'
7247
7248# Regexp to match symbols that can be accessed directly from C.
7249sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7250
7251# Define system-specific variables.
7252case $host_os in
7253aix*)
7254  symcode='[BCDT]'
7255  ;;
7256cygwin* | mingw* | pw32* | cegcc*)
7257  symcode='[ABCDGISTW]'
7258  ;;
7259hpux*)
7260  if test ia64 = "$host_cpu"; then
7261    symcode='[ABCDEGRST]'
7262  fi
7263  ;;
7264irix* | nonstopux*)
7265  symcode='[BCDEGRST]'
7266  ;;
7267osf*)
7268  symcode='[BCDEGQRST]'
7269  ;;
7270solaris*)
7271  symcode='[BDRT]'
7272  ;;
7273sco3.2v5*)
7274  symcode='[DT]'
7275  ;;
7276sysv4.2uw2*)
7277  symcode='[DT]'
7278  ;;
7279sysv5* | sco5v6* | unixware* | OpenUNIX*)
7280  symcode='[ABDT]'
7281  ;;
7282sysv4)
7283  symcode='[DFNSTU]'
7284  ;;
7285esac
7286
7287# If we're using GNU nm, then use its standard symbol codes.
7288case `$NM -V 2>&1` in
7289*GNU* | *'with BFD'*)
7290  symcode='[ABCDGIRSTW]' ;;
7291esac
7292
7293if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7294  # Gets list of data symbols to import.
7295  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7296  # Adjust the below global symbol transforms to fixup imported variables.
7297  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7298  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7299  lt_c_name_lib_hook="\
7300  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7301  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7302else
7303  # Disable hooks by default.
7304  lt_cv_sys_global_symbol_to_import=
7305  lt_cdecl_hook=
7306  lt_c_name_hook=
7307  lt_c_name_lib_hook=
7308fi
7309
7310# Transform an extracted symbol line into a proper C declaration.
7311# Some systems (esp. on ia64) link data and code symbols differently,
7312# so use this general approach.
7313lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7314$lt_cdecl_hook\
7315" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7316" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7317
7318# Transform an extracted symbol line into symbol name and symbol address
7319lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7320$lt_c_name_hook\
7321" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7322" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7323
7324# Transform an extracted symbol line into symbol name with lib prefix and
7325# symbol address.
7326lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7327$lt_c_name_lib_hook\
7328" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7329" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7330" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7331
7332# Handle CRLF in mingw tool chain
7333opt_cr=
7334case $build_os in
7335mingw*)
7336  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7337  ;;
7338esac
7339
7340# Try without a prefix underscore, then with it.
7341for ac_symprfx in "" "_"; do
7342
7343  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7344  symxfrm="\\1 $ac_symprfx\\2 \\2"
7345
7346  # Write the raw and C identifiers.
7347  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7348    # Fake it for dumpbin and say T for any non-static function,
7349    # D for any global variable and I for any imported variable.
7350    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7351    # which start with @ or ?.
7352    lt_cv_sys_global_symbol_pipe="$AWK '"\
7353"     {last_section=section; section=\$ 3};"\
7354"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7355"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7356"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7357"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7358"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7359"     \$ 0!~/External *\|/{next};"\
7360"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7361"     {if(hide[section]) next};"\
7362"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7363"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7364"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7365"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7366"     ' prfx=^$ac_symprfx"
7367  else
7368    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7369  fi
7370  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7371
7372  # Check to see that the pipe works correctly.
7373  pipe_works=no
7374
7375  rm -f conftest*
7376  cat > conftest.$ac_ext <<_LT_EOF
7377#ifdef __cplusplus
7378extern "C" {
7379#endif
7380char nm_test_var;
7381void nm_test_func(void);
7382void nm_test_func(void){}
7383#ifdef __cplusplus
7384}
7385#endif
7386int main(){nm_test_var='a';nm_test_func();return(0);}
7387_LT_EOF
7388
7389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390  (eval $ac_compile) 2>&5
7391  ac_status=$?
7392  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393  test $ac_status = 0; }; then
7394    # Now try to grab the symbols.
7395    nlist=conftest.nm
7396    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7397  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7398  ac_status=$?
7399  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400  test $ac_status = 0; } && test -s "$nlist"; then
7401      # Try sorting and uniquifying the output.
7402      if sort "$nlist" | uniq > "$nlist"T; then
7403	mv -f "$nlist"T "$nlist"
7404      else
7405	rm -f "$nlist"T
7406      fi
7407
7408      # Make sure that we snagged all the symbols we need.
7409      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7410	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7411	  cat <<_LT_EOF > conftest.$ac_ext
7412/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7413#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7414/* DATA imports from DLLs on WIN32 can't be const, because runtime
7415   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7416# define LT_DLSYM_CONST
7417#elif defined __osf__
7418/* This system does not cope well with relocations in const data.  */
7419# define LT_DLSYM_CONST
7420#else
7421# define LT_DLSYM_CONST const
7422#endif
7423
7424#ifdef __cplusplus
7425extern "C" {
7426#endif
7427
7428_LT_EOF
7429	  # Now generate the symbol file.
7430	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7431
7432	  cat <<_LT_EOF >> conftest.$ac_ext
7433
7434/* The mapping between symbol names and symbols.  */
7435LT_DLSYM_CONST struct {
7436  const char *name;
7437  void       *address;
7438}
7439lt__PROGRAM__LTX_preloaded_symbols[] =
7440{
7441  { "@PROGRAM@", (void *) 0 },
7442_LT_EOF
7443	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7444	  cat <<\_LT_EOF >> conftest.$ac_ext
7445  {0, (void *) 0}
7446};
7447
7448/* This works around a problem in FreeBSD linker */
7449#ifdef FREEBSD_WORKAROUND
7450static const void *lt_preloaded_setup() {
7451  return lt__PROGRAM__LTX_preloaded_symbols;
7452}
7453#endif
7454
7455#ifdef __cplusplus
7456}
7457#endif
7458_LT_EOF
7459	  # Now try linking the two files.
7460	  mv conftest.$ac_objext conftstm.$ac_objext
7461	  lt_globsym_save_LIBS=$LIBS
7462	  lt_globsym_save_CFLAGS=$CFLAGS
7463	  LIBS=conftstm.$ac_objext
7464	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7465	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7466  (eval $ac_link) 2>&5
7467  ac_status=$?
7468  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7470	    pipe_works=yes
7471	  fi
7472	  LIBS=$lt_globsym_save_LIBS
7473	  CFLAGS=$lt_globsym_save_CFLAGS
7474	else
7475	  echo "cannot find nm_test_func in $nlist" >&5
7476	fi
7477      else
7478	echo "cannot find nm_test_var in $nlist" >&5
7479      fi
7480    else
7481      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7482    fi
7483  else
7484    echo "$progname: failed program was:" >&5
7485    cat conftest.$ac_ext >&5
7486  fi
7487  rm -rf conftest* conftst*
7488
7489  # Do not use the global_symbol_pipe unless it works.
7490  if test yes = "$pipe_works"; then
7491    break
7492  else
7493    lt_cv_sys_global_symbol_pipe=
7494  fi
7495done
7496
7497fi
7498
7499if test -z "$lt_cv_sys_global_symbol_pipe"; then
7500  lt_cv_sys_global_symbol_to_cdecl=
7501fi
7502if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7504printf "%s\n" "failed" >&6; }
7505else
7506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7507printf "%s\n" "ok" >&6; }
7508fi
7509
7510# Response file support.
7511if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7512  nm_file_list_spec='@'
7513elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7514  nm_file_list_spec='@'
7515fi
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7554printf %s "checking for sysroot... " >&6; }
7555
7556# Check whether --with-sysroot was given.
7557if test ${with_sysroot+y}
7558then :
7559  withval=$with_sysroot;
7560else $as_nop
7561  with_sysroot=no
7562fi
7563
7564
7565lt_sysroot=
7566case $with_sysroot in #(
7567 yes)
7568   if test yes = "$GCC"; then
7569     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7570   fi
7571   ;; #(
7572 /*)
7573   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7574   ;; #(
7575 no|'')
7576   ;; #(
7577 *)
7578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7579printf "%s\n" "$with_sysroot" >&6; }
7580   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7581   ;;
7582esac
7583
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7585printf "%s\n" "${lt_sysroot:-no}" >&6; }
7586
7587
7588
7589
7590
7591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7592printf %s "checking for a working dd... " >&6; }
7593if test ${ac_cv_path_lt_DD+y}
7594then :
7595  printf %s "(cached) " >&6
7596else $as_nop
7597  printf 0123456789abcdef0123456789abcdef >conftest.i
7598cat conftest.i conftest.i >conftest2.i
7599: ${lt_DD:=$DD}
7600if test -z "$lt_DD"; then
7601  ac_path_lt_DD_found=false
7602  # Loop through the user's path and test for each of PROGNAME-LIST
7603  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606  IFS=$as_save_IFS
7607  case $as_dir in #(((
7608    '') as_dir=./ ;;
7609    */) ;;
7610    *) as_dir=$as_dir/ ;;
7611  esac
7612    for ac_prog in dd
7613   do
7614    for ac_exec_ext in '' $ac_executable_extensions; do
7615      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7616      as_fn_executable_p "$ac_path_lt_DD" || continue
7617if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7618  cmp -s conftest.i conftest.out \
7619  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7620fi
7621      $ac_path_lt_DD_found && break 3
7622    done
7623  done
7624  done
7625IFS=$as_save_IFS
7626  if test -z "$ac_cv_path_lt_DD"; then
7627    :
7628  fi
7629else
7630  ac_cv_path_lt_DD=$lt_DD
7631fi
7632
7633rm -f conftest.i conftest2.i conftest.out
7634fi
7635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7636printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7637
7638
7639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7640printf %s "checking how to truncate binary pipes... " >&6; }
7641if test ${lt_cv_truncate_bin+y}
7642then :
7643  printf %s "(cached) " >&6
7644else $as_nop
7645  printf 0123456789abcdef0123456789abcdef >conftest.i
7646cat conftest.i conftest.i >conftest2.i
7647lt_cv_truncate_bin=
7648if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7649  cmp -s conftest.i conftest.out \
7650  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7651fi
7652rm -f conftest.i conftest2.i conftest.out
7653test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7654fi
7655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7656printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7657
7658
7659
7660
7661
7662
7663
7664# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7665func_cc_basename ()
7666{
7667    for cc_temp in $*""; do
7668      case $cc_temp in
7669        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7670        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7671        \-*) ;;
7672        *) break;;
7673      esac
7674    done
7675    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7676}
7677
7678# Check whether --enable-libtool-lock was given.
7679if test ${enable_libtool_lock+y}
7680then :
7681  enableval=$enable_libtool_lock;
7682fi
7683
7684test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7685
7686# Some flags need to be propagated to the compiler or linker for good
7687# libtool support.
7688case $host in
7689ia64-*-hpux*)
7690  # Find out what ABI is being produced by ac_compile, and set mode
7691  # options accordingly.
7692  echo 'int i;' > conftest.$ac_ext
7693  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7694  (eval $ac_compile) 2>&5
7695  ac_status=$?
7696  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697  test $ac_status = 0; }; then
7698    case `$FILECMD conftest.$ac_objext` in
7699      *ELF-32*)
7700	HPUX_IA64_MODE=32
7701	;;
7702      *ELF-64*)
7703	HPUX_IA64_MODE=64
7704	;;
7705    esac
7706  fi
7707  rm -rf conftest*
7708  ;;
7709*-*-irix6*)
7710  # Find out what ABI is being produced by ac_compile, and set linker
7711  # options accordingly.
7712  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7713  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7714  (eval $ac_compile) 2>&5
7715  ac_status=$?
7716  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717  test $ac_status = 0; }; then
7718    if test yes = "$lt_cv_prog_gnu_ld"; then
7719      case `$FILECMD conftest.$ac_objext` in
7720	*32-bit*)
7721	  LD="${LD-ld} -melf32bsmip"
7722	  ;;
7723	*N32*)
7724	  LD="${LD-ld} -melf32bmipn32"
7725	  ;;
7726	*64-bit*)
7727	  LD="${LD-ld} -melf64bmip"
7728	;;
7729      esac
7730    else
7731      case `$FILECMD conftest.$ac_objext` in
7732	*32-bit*)
7733	  LD="${LD-ld} -32"
7734	  ;;
7735	*N32*)
7736	  LD="${LD-ld} -n32"
7737	  ;;
7738	*64-bit*)
7739	  LD="${LD-ld} -64"
7740	  ;;
7741      esac
7742    fi
7743  fi
7744  rm -rf conftest*
7745  ;;
7746
7747mips64*-*linux*)
7748  # Find out what ABI is being produced by ac_compile, and set linker
7749  # options accordingly.
7750  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7751  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7752  (eval $ac_compile) 2>&5
7753  ac_status=$?
7754  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7755  test $ac_status = 0; }; then
7756    emul=elf
7757    case `$FILECMD conftest.$ac_objext` in
7758      *32-bit*)
7759	emul="${emul}32"
7760	;;
7761      *64-bit*)
7762	emul="${emul}64"
7763	;;
7764    esac
7765    case `$FILECMD conftest.$ac_objext` in
7766      *MSB*)
7767	emul="${emul}btsmip"
7768	;;
7769      *LSB*)
7770	emul="${emul}ltsmip"
7771	;;
7772    esac
7773    case `$FILECMD conftest.$ac_objext` in
7774      *N32*)
7775	emul="${emul}n32"
7776	;;
7777    esac
7778    LD="${LD-ld} -m $emul"
7779  fi
7780  rm -rf conftest*
7781  ;;
7782
7783x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7784s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7785  # Find out what ABI is being produced by ac_compile, and set linker
7786  # options accordingly.  Note that the listed cases only cover the
7787  # situations where additional linker options are needed (such as when
7788  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7789  # vice versa); the common cases where no linker options are needed do
7790  # not appear in the list.
7791  echo 'int i;' > conftest.$ac_ext
7792  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7793  (eval $ac_compile) 2>&5
7794  ac_status=$?
7795  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796  test $ac_status = 0; }; then
7797    case `$FILECMD conftest.o` in
7798      *32-bit*)
7799	case $host in
7800	  x86_64-*kfreebsd*-gnu)
7801	    LD="${LD-ld} -m elf_i386_fbsd"
7802	    ;;
7803	  x86_64-*linux*)
7804	    case `$FILECMD conftest.o` in
7805	      *x86-64*)
7806		LD="${LD-ld} -m elf32_x86_64"
7807		;;
7808	      *)
7809		LD="${LD-ld} -m elf_i386"
7810		;;
7811	    esac
7812	    ;;
7813	  powerpc64le-*linux*)
7814	    LD="${LD-ld} -m elf32lppclinux"
7815	    ;;
7816	  powerpc64-*linux*)
7817	    LD="${LD-ld} -m elf32ppclinux"
7818	    ;;
7819	  s390x-*linux*)
7820	    LD="${LD-ld} -m elf_s390"
7821	    ;;
7822	  sparc64-*linux*)
7823	    LD="${LD-ld} -m elf32_sparc"
7824	    ;;
7825	esac
7826	;;
7827      *64-bit*)
7828	case $host in
7829	  x86_64-*kfreebsd*-gnu)
7830	    LD="${LD-ld} -m elf_x86_64_fbsd"
7831	    ;;
7832	  x86_64-*linux*)
7833	    LD="${LD-ld} -m elf_x86_64"
7834	    ;;
7835	  powerpcle-*linux*)
7836	    LD="${LD-ld} -m elf64lppc"
7837	    ;;
7838	  powerpc-*linux*)
7839	    LD="${LD-ld} -m elf64ppc"
7840	    ;;
7841	  s390*-*linux*|s390*-*tpf*)
7842	    LD="${LD-ld} -m elf64_s390"
7843	    ;;
7844	  sparc*-*linux*)
7845	    LD="${LD-ld} -m elf64_sparc"
7846	    ;;
7847	esac
7848	;;
7849    esac
7850  fi
7851  rm -rf conftest*
7852  ;;
7853
7854*-*-sco3.2v5*)
7855  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7856  SAVE_CFLAGS=$CFLAGS
7857  CFLAGS="$CFLAGS -belf"
7858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7859printf %s "checking whether the C compiler needs -belf... " >&6; }
7860if test ${lt_cv_cc_needs_belf+y}
7861then :
7862  printf %s "(cached) " >&6
7863else $as_nop
7864  ac_ext=c
7865ac_cpp='$CPP $CPPFLAGS'
7866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869
7870     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872
7873int
7874main (void)
7875{
7876
7877  ;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_link "$LINENO"
7882then :
7883  lt_cv_cc_needs_belf=yes
7884else $as_nop
7885  lt_cv_cc_needs_belf=no
7886fi
7887rm -f core conftest.err conftest.$ac_objext conftest.beam \
7888    conftest$ac_exeext conftest.$ac_ext
7889     ac_ext=c
7890ac_cpp='$CPP $CPPFLAGS'
7891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895fi
7896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7897printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7898  if test yes != "$lt_cv_cc_needs_belf"; then
7899    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7900    CFLAGS=$SAVE_CFLAGS
7901  fi
7902  ;;
7903*-*solaris*)
7904  # Find out what ABI is being produced by ac_compile, and set linker
7905  # options accordingly.
7906  echo 'int i;' > conftest.$ac_ext
7907  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7908  (eval $ac_compile) 2>&5
7909  ac_status=$?
7910  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911  test $ac_status = 0; }; then
7912    case `$FILECMD conftest.o` in
7913    *64-bit*)
7914      case $lt_cv_prog_gnu_ld in
7915      yes*)
7916        case $host in
7917        i?86-*-solaris*|x86_64-*-solaris*)
7918          LD="${LD-ld} -m elf_x86_64"
7919          ;;
7920        sparc*-*-solaris*)
7921          LD="${LD-ld} -m elf64_sparc"
7922          ;;
7923        esac
7924        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7925        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7926          LD=${LD-ld}_sol2
7927        fi
7928        ;;
7929      *)
7930	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7931	  LD="${LD-ld} -64"
7932	fi
7933	;;
7934      esac
7935      ;;
7936    esac
7937  fi
7938  rm -rf conftest*
7939  ;;
7940esac
7941
7942need_locks=$enable_libtool_lock
7943
7944if test -n "$ac_tool_prefix"; then
7945  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7946set dummy ${ac_tool_prefix}mt; ac_word=$2
7947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948printf %s "checking for $ac_word... " >&6; }
7949if test ${ac_cv_prog_MANIFEST_TOOL+y}
7950then :
7951  printf %s "(cached) " >&6
7952else $as_nop
7953  if test -n "$MANIFEST_TOOL"; then
7954  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959  IFS=$as_save_IFS
7960  case $as_dir in #(((
7961    '') as_dir=./ ;;
7962    */) ;;
7963    *) as_dir=$as_dir/ ;;
7964  esac
7965    for ac_exec_ext in '' $ac_executable_extensions; do
7966  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7967    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7968    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7969    break 2
7970  fi
7971done
7972  done
7973IFS=$as_save_IFS
7974
7975fi
7976fi
7977MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7978if test -n "$MANIFEST_TOOL"; then
7979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7980printf "%s\n" "$MANIFEST_TOOL" >&6; }
7981else
7982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983printf "%s\n" "no" >&6; }
7984fi
7985
7986
7987fi
7988if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7989  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7990  # Extract the first word of "mt", so it can be a program name with args.
7991set dummy mt; ac_word=$2
7992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993printf %s "checking for $ac_word... " >&6; }
7994if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7995then :
7996  printf %s "(cached) " >&6
7997else $as_nop
7998  if test -n "$ac_ct_MANIFEST_TOOL"; then
7999  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8000else
8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004  IFS=$as_save_IFS
8005  case $as_dir in #(((
8006    '') as_dir=./ ;;
8007    */) ;;
8008    *) as_dir=$as_dir/ ;;
8009  esac
8010    for ac_exec_ext in '' $ac_executable_extensions; do
8011  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8012    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8013    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8014    break 2
8015  fi
8016done
8017  done
8018IFS=$as_save_IFS
8019
8020fi
8021fi
8022ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8023if test -n "$ac_ct_MANIFEST_TOOL"; then
8024  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8025printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8026else
8027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028printf "%s\n" "no" >&6; }
8029fi
8030
8031  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8032    MANIFEST_TOOL=":"
8033  else
8034    case $cross_compiling:$ac_tool_warned in
8035yes:)
8036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038ac_tool_warned=yes ;;
8039esac
8040    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8041  fi
8042else
8043  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8044fi
8045
8046test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8048printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8049if test ${lt_cv_path_mainfest_tool+y}
8050then :
8051  printf %s "(cached) " >&6
8052else $as_nop
8053  lt_cv_path_mainfest_tool=no
8054  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8055  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8056  cat conftest.err >&5
8057  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8058    lt_cv_path_mainfest_tool=yes
8059  fi
8060  rm -f conftest*
8061fi
8062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8063printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8064if test yes != "$lt_cv_path_mainfest_tool"; then
8065  MANIFEST_TOOL=:
8066fi
8067
8068
8069
8070
8071
8072
8073  case $host_os in
8074    rhapsody* | darwin*)
8075    if test -n "$ac_tool_prefix"; then
8076  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8077set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079printf %s "checking for $ac_word... " >&6; }
8080if test ${ac_cv_prog_DSYMUTIL+y}
8081then :
8082  printf %s "(cached) " >&6
8083else $as_nop
8084  if test -n "$DSYMUTIL"; then
8085  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8086else
8087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088for as_dir in $PATH
8089do
8090  IFS=$as_save_IFS
8091  case $as_dir in #(((
8092    '') as_dir=./ ;;
8093    */) ;;
8094    *) as_dir=$as_dir/ ;;
8095  esac
8096    for ac_exec_ext in '' $ac_executable_extensions; do
8097  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8098    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8099    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8100    break 2
8101  fi
8102done
8103  done
8104IFS=$as_save_IFS
8105
8106fi
8107fi
8108DSYMUTIL=$ac_cv_prog_DSYMUTIL
8109if test -n "$DSYMUTIL"; then
8110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8111printf "%s\n" "$DSYMUTIL" >&6; }
8112else
8113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114printf "%s\n" "no" >&6; }
8115fi
8116
8117
8118fi
8119if test -z "$ac_cv_prog_DSYMUTIL"; then
8120  ac_ct_DSYMUTIL=$DSYMUTIL
8121  # Extract the first word of "dsymutil", so it can be a program name with args.
8122set dummy dsymutil; ac_word=$2
8123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124printf %s "checking for $ac_word... " >&6; }
8125if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8126then :
8127  printf %s "(cached) " >&6
8128else $as_nop
8129  if test -n "$ac_ct_DSYMUTIL"; then
8130  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8131else
8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133for as_dir in $PATH
8134do
8135  IFS=$as_save_IFS
8136  case $as_dir in #(((
8137    '') as_dir=./ ;;
8138    */) ;;
8139    *) as_dir=$as_dir/ ;;
8140  esac
8141    for ac_exec_ext in '' $ac_executable_extensions; do
8142  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8143    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8144    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8145    break 2
8146  fi
8147done
8148  done
8149IFS=$as_save_IFS
8150
8151fi
8152fi
8153ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8154if test -n "$ac_ct_DSYMUTIL"; then
8155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8156printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8157else
8158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159printf "%s\n" "no" >&6; }
8160fi
8161
8162  if test "x$ac_ct_DSYMUTIL" = x; then
8163    DSYMUTIL=":"
8164  else
8165    case $cross_compiling:$ac_tool_warned in
8166yes:)
8167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169ac_tool_warned=yes ;;
8170esac
8171    DSYMUTIL=$ac_ct_DSYMUTIL
8172  fi
8173else
8174  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8175fi
8176
8177    if test -n "$ac_tool_prefix"; then
8178  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8179set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181printf %s "checking for $ac_word... " >&6; }
8182if test ${ac_cv_prog_NMEDIT+y}
8183then :
8184  printf %s "(cached) " >&6
8185else $as_nop
8186  if test -n "$NMEDIT"; then
8187  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8188else
8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192  IFS=$as_save_IFS
8193  case $as_dir in #(((
8194    '') as_dir=./ ;;
8195    */) ;;
8196    *) as_dir=$as_dir/ ;;
8197  esac
8198    for ac_exec_ext in '' $ac_executable_extensions; do
8199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8200    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8202    break 2
8203  fi
8204done
8205  done
8206IFS=$as_save_IFS
8207
8208fi
8209fi
8210NMEDIT=$ac_cv_prog_NMEDIT
8211if test -n "$NMEDIT"; then
8212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8213printf "%s\n" "$NMEDIT" >&6; }
8214else
8215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216printf "%s\n" "no" >&6; }
8217fi
8218
8219
8220fi
8221if test -z "$ac_cv_prog_NMEDIT"; then
8222  ac_ct_NMEDIT=$NMEDIT
8223  # Extract the first word of "nmedit", so it can be a program name with args.
8224set dummy nmedit; ac_word=$2
8225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226printf %s "checking for $ac_word... " >&6; }
8227if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8228then :
8229  printf %s "(cached) " >&6
8230else $as_nop
8231  if test -n "$ac_ct_NMEDIT"; then
8232  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237  IFS=$as_save_IFS
8238  case $as_dir in #(((
8239    '') as_dir=./ ;;
8240    */) ;;
8241    *) as_dir=$as_dir/ ;;
8242  esac
8243    for ac_exec_ext in '' $ac_executable_extensions; do
8244  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8245    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8246    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8247    break 2
8248  fi
8249done
8250  done
8251IFS=$as_save_IFS
8252
8253fi
8254fi
8255ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8256if test -n "$ac_ct_NMEDIT"; then
8257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8258printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8259else
8260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261printf "%s\n" "no" >&6; }
8262fi
8263
8264  if test "x$ac_ct_NMEDIT" = x; then
8265    NMEDIT=":"
8266  else
8267    case $cross_compiling:$ac_tool_warned in
8268yes:)
8269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271ac_tool_warned=yes ;;
8272esac
8273    NMEDIT=$ac_ct_NMEDIT
8274  fi
8275else
8276  NMEDIT="$ac_cv_prog_NMEDIT"
8277fi
8278
8279    if test -n "$ac_tool_prefix"; then
8280  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8281set dummy ${ac_tool_prefix}lipo; ac_word=$2
8282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283printf %s "checking for $ac_word... " >&6; }
8284if test ${ac_cv_prog_LIPO+y}
8285then :
8286  printf %s "(cached) " >&6
8287else $as_nop
8288  if test -n "$LIPO"; then
8289  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8290else
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294  IFS=$as_save_IFS
8295  case $as_dir in #(((
8296    '') as_dir=./ ;;
8297    */) ;;
8298    *) as_dir=$as_dir/ ;;
8299  esac
8300    for ac_exec_ext in '' $ac_executable_extensions; do
8301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8302    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8304    break 2
8305  fi
8306done
8307  done
8308IFS=$as_save_IFS
8309
8310fi
8311fi
8312LIPO=$ac_cv_prog_LIPO
8313if test -n "$LIPO"; then
8314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8315printf "%s\n" "$LIPO" >&6; }
8316else
8317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318printf "%s\n" "no" >&6; }
8319fi
8320
8321
8322fi
8323if test -z "$ac_cv_prog_LIPO"; then
8324  ac_ct_LIPO=$LIPO
8325  # Extract the first word of "lipo", so it can be a program name with args.
8326set dummy lipo; ac_word=$2
8327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328printf %s "checking for $ac_word... " >&6; }
8329if test ${ac_cv_prog_ac_ct_LIPO+y}
8330then :
8331  printf %s "(cached) " >&6
8332else $as_nop
8333  if test -n "$ac_ct_LIPO"; then
8334  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8335else
8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337for as_dir in $PATH
8338do
8339  IFS=$as_save_IFS
8340  case $as_dir in #(((
8341    '') as_dir=./ ;;
8342    */) ;;
8343    *) as_dir=$as_dir/ ;;
8344  esac
8345    for ac_exec_ext in '' $ac_executable_extensions; do
8346  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8347    ac_cv_prog_ac_ct_LIPO="lipo"
8348    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8349    break 2
8350  fi
8351done
8352  done
8353IFS=$as_save_IFS
8354
8355fi
8356fi
8357ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8358if test -n "$ac_ct_LIPO"; then
8359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8360printf "%s\n" "$ac_ct_LIPO" >&6; }
8361else
8362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363printf "%s\n" "no" >&6; }
8364fi
8365
8366  if test "x$ac_ct_LIPO" = x; then
8367    LIPO=":"
8368  else
8369    case $cross_compiling:$ac_tool_warned in
8370yes:)
8371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373ac_tool_warned=yes ;;
8374esac
8375    LIPO=$ac_ct_LIPO
8376  fi
8377else
8378  LIPO="$ac_cv_prog_LIPO"
8379fi
8380
8381    if test -n "$ac_tool_prefix"; then
8382  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8383set dummy ${ac_tool_prefix}otool; ac_word=$2
8384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385printf %s "checking for $ac_word... " >&6; }
8386if test ${ac_cv_prog_OTOOL+y}
8387then :
8388  printf %s "(cached) " >&6
8389else $as_nop
8390  if test -n "$OTOOL"; then
8391  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8392else
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396  IFS=$as_save_IFS
8397  case $as_dir in #(((
8398    '') as_dir=./ ;;
8399    */) ;;
8400    *) as_dir=$as_dir/ ;;
8401  esac
8402    for ac_exec_ext in '' $ac_executable_extensions; do
8403  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8404    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8405    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8406    break 2
8407  fi
8408done
8409  done
8410IFS=$as_save_IFS
8411
8412fi
8413fi
8414OTOOL=$ac_cv_prog_OTOOL
8415if test -n "$OTOOL"; then
8416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8417printf "%s\n" "$OTOOL" >&6; }
8418else
8419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420printf "%s\n" "no" >&6; }
8421fi
8422
8423
8424fi
8425if test -z "$ac_cv_prog_OTOOL"; then
8426  ac_ct_OTOOL=$OTOOL
8427  # Extract the first word of "otool", so it can be a program name with args.
8428set dummy otool; ac_word=$2
8429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430printf %s "checking for $ac_word... " >&6; }
8431if test ${ac_cv_prog_ac_ct_OTOOL+y}
8432then :
8433  printf %s "(cached) " >&6
8434else $as_nop
8435  if test -n "$ac_ct_OTOOL"; then
8436  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8437else
8438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439for as_dir in $PATH
8440do
8441  IFS=$as_save_IFS
8442  case $as_dir in #(((
8443    '') as_dir=./ ;;
8444    */) ;;
8445    *) as_dir=$as_dir/ ;;
8446  esac
8447    for ac_exec_ext in '' $ac_executable_extensions; do
8448  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8449    ac_cv_prog_ac_ct_OTOOL="otool"
8450    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8451    break 2
8452  fi
8453done
8454  done
8455IFS=$as_save_IFS
8456
8457fi
8458fi
8459ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8460if test -n "$ac_ct_OTOOL"; then
8461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8462printf "%s\n" "$ac_ct_OTOOL" >&6; }
8463else
8464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465printf "%s\n" "no" >&6; }
8466fi
8467
8468  if test "x$ac_ct_OTOOL" = x; then
8469    OTOOL=":"
8470  else
8471    case $cross_compiling:$ac_tool_warned in
8472yes:)
8473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8474printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8475ac_tool_warned=yes ;;
8476esac
8477    OTOOL=$ac_ct_OTOOL
8478  fi
8479else
8480  OTOOL="$ac_cv_prog_OTOOL"
8481fi
8482
8483    if test -n "$ac_tool_prefix"; then
8484  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8485set dummy ${ac_tool_prefix}otool64; ac_word=$2
8486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8487printf %s "checking for $ac_word... " >&6; }
8488if test ${ac_cv_prog_OTOOL64+y}
8489then :
8490  printf %s "(cached) " >&6
8491else $as_nop
8492  if test -n "$OTOOL64"; then
8493  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8494else
8495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496for as_dir in $PATH
8497do
8498  IFS=$as_save_IFS
8499  case $as_dir in #(((
8500    '') as_dir=./ ;;
8501    */) ;;
8502    *) as_dir=$as_dir/ ;;
8503  esac
8504    for ac_exec_ext in '' $ac_executable_extensions; do
8505  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8506    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8507    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8508    break 2
8509  fi
8510done
8511  done
8512IFS=$as_save_IFS
8513
8514fi
8515fi
8516OTOOL64=$ac_cv_prog_OTOOL64
8517if test -n "$OTOOL64"; then
8518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8519printf "%s\n" "$OTOOL64" >&6; }
8520else
8521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522printf "%s\n" "no" >&6; }
8523fi
8524
8525
8526fi
8527if test -z "$ac_cv_prog_OTOOL64"; then
8528  ac_ct_OTOOL64=$OTOOL64
8529  # Extract the first word of "otool64", so it can be a program name with args.
8530set dummy otool64; ac_word=$2
8531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532printf %s "checking for $ac_word... " >&6; }
8533if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8534then :
8535  printf %s "(cached) " >&6
8536else $as_nop
8537  if test -n "$ac_ct_OTOOL64"; then
8538  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8539else
8540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541for as_dir in $PATH
8542do
8543  IFS=$as_save_IFS
8544  case $as_dir in #(((
8545    '') as_dir=./ ;;
8546    */) ;;
8547    *) as_dir=$as_dir/ ;;
8548  esac
8549    for ac_exec_ext in '' $ac_executable_extensions; do
8550  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8551    ac_cv_prog_ac_ct_OTOOL64="otool64"
8552    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8553    break 2
8554  fi
8555done
8556  done
8557IFS=$as_save_IFS
8558
8559fi
8560fi
8561ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8562if test -n "$ac_ct_OTOOL64"; then
8563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8564printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8565else
8566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567printf "%s\n" "no" >&6; }
8568fi
8569
8570  if test "x$ac_ct_OTOOL64" = x; then
8571    OTOOL64=":"
8572  else
8573    case $cross_compiling:$ac_tool_warned in
8574yes:)
8575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8576printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8577ac_tool_warned=yes ;;
8578esac
8579    OTOOL64=$ac_ct_OTOOL64
8580  fi
8581else
8582  OTOOL64="$ac_cv_prog_OTOOL64"
8583fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8612printf %s "checking for -single_module linker flag... " >&6; }
8613if test ${lt_cv_apple_cc_single_mod+y}
8614then :
8615  printf %s "(cached) " >&6
8616else $as_nop
8617  lt_cv_apple_cc_single_mod=no
8618      if test -z "$LT_MULTI_MODULE"; then
8619	# By default we will add the -single_module flag. You can override
8620	# by either setting the environment variable LT_MULTI_MODULE
8621	# non-empty at configure time, or by adding -multi_module to the
8622	# link flags.
8623	rm -rf libconftest.dylib*
8624	echo "int foo(void){return 1;}" > conftest.c
8625	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8626-dynamiclib -Wl,-single_module conftest.c" >&5
8627	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8628	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8629        _lt_result=$?
8630	# If there is a non-empty error log, and "single_module"
8631	# appears in it, assume the flag caused a linker warning
8632        if test -s conftest.err && $GREP single_module conftest.err; then
8633	  cat conftest.err >&5
8634	# Otherwise, if the output was created with a 0 exit code from
8635	# the compiler, it worked.
8636	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8637	  lt_cv_apple_cc_single_mod=yes
8638	else
8639	  cat conftest.err >&5
8640	fi
8641	rm -rf libconftest.dylib*
8642	rm -f conftest.*
8643      fi
8644fi
8645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8646printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8647
8648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8649printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8650if test ${lt_cv_ld_exported_symbols_list+y}
8651then :
8652  printf %s "(cached) " >&6
8653else $as_nop
8654  lt_cv_ld_exported_symbols_list=no
8655      save_LDFLAGS=$LDFLAGS
8656      echo "_main" > conftest.sym
8657      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8658      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h.  */
8660
8661int
8662main (void)
8663{
8664
8665  ;
8666  return 0;
8667}
8668_ACEOF
8669if ac_fn_c_try_link "$LINENO"
8670then :
8671  lt_cv_ld_exported_symbols_list=yes
8672else $as_nop
8673  lt_cv_ld_exported_symbols_list=no
8674fi
8675rm -f core conftest.err conftest.$ac_objext conftest.beam \
8676    conftest$ac_exeext conftest.$ac_ext
8677	LDFLAGS=$save_LDFLAGS
8678
8679fi
8680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8681printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8682
8683    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8684printf %s "checking for -force_load linker flag... " >&6; }
8685if test ${lt_cv_ld_force_load+y}
8686then :
8687  printf %s "(cached) " >&6
8688else $as_nop
8689  lt_cv_ld_force_load=no
8690      cat > conftest.c << _LT_EOF
8691int forced_loaded() { return 2;}
8692_LT_EOF
8693      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8694      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8695      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8696      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8697      echo "$RANLIB libconftest.a" >&5
8698      $RANLIB libconftest.a 2>&5
8699      cat > conftest.c << _LT_EOF
8700int main() { return 0;}
8701_LT_EOF
8702      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8703      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8704      _lt_result=$?
8705      if test -s conftest.err && $GREP force_load conftest.err; then
8706	cat conftest.err >&5
8707      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8708	lt_cv_ld_force_load=yes
8709      else
8710	cat conftest.err >&5
8711      fi
8712        rm -f conftest.err libconftest.a conftest conftest.c
8713        rm -rf conftest.dSYM
8714
8715fi
8716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8717printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8718    case $host_os in
8719    rhapsody* | darwin1.[012])
8720      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8721    darwin1.*)
8722      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8723    darwin*)
8724      case $MACOSX_DEPLOYMENT_TARGET,$host in
8725        10.[012],*|,*powerpc*-darwin[5-8]*)
8726          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8727        *)
8728          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8729      esac
8730    ;;
8731  esac
8732    if test yes = "$lt_cv_apple_cc_single_mod"; then
8733      _lt_dar_single_mod='$single_module'
8734    fi
8735    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8736      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8737    else
8738      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8739    fi
8740    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8741      _lt_dsymutil='~$DSYMUTIL $lib || :'
8742    else
8743      _lt_dsymutil=
8744    fi
8745    ;;
8746  esac
8747
8748# func_munge_path_list VARIABLE PATH
8749# -----------------------------------
8750# VARIABLE is name of variable containing _space_ separated list of
8751# directories to be munged by the contents of PATH, which is string
8752# having a format:
8753# "DIR[:DIR]:"
8754#       string "DIR[ DIR]" will be prepended to VARIABLE
8755# ":DIR[:DIR]"
8756#       string "DIR[ DIR]" will be appended to VARIABLE
8757# "DIRP[:DIRP]::[DIRA:]DIRA"
8758#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8759#       "DIRA[ DIRA]" will be appended to VARIABLE
8760# "DIR[:DIR]"
8761#       VARIABLE will be replaced by "DIR[ DIR]"
8762func_munge_path_list ()
8763{
8764    case x$2 in
8765    x)
8766        ;;
8767    *:)
8768        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8769        ;;
8770    x:*)
8771        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8772        ;;
8773    *::*)
8774        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8775        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8776        ;;
8777    *)
8778        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8779        ;;
8780    esac
8781}
8782
8783ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8784"
8785if test "x$ac_cv_header_dlfcn_h" = xyes
8786then :
8787  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8788
8789fi
8790
8791
8792
8793
8794
8795# Set options
8796
8797
8798
8799        enable_dlopen=no
8800
8801
8802
8803            # Check whether --enable-shared was given.
8804if test ${enable_shared+y}
8805then :
8806  enableval=$enable_shared; p=${PACKAGE-default}
8807    case $enableval in
8808    yes) enable_shared=yes ;;
8809    no) enable_shared=no ;;
8810    *)
8811      enable_shared=no
8812      # Look at the argument we got.  We use all the common list separators.
8813      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8814      for pkg in $enableval; do
8815	IFS=$lt_save_ifs
8816	if test "X$pkg" = "X$p"; then
8817	  enable_shared=yes
8818	fi
8819      done
8820      IFS=$lt_save_ifs
8821      ;;
8822    esac
8823else $as_nop
8824  enable_shared=yes
8825fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835  # Check whether --enable-static was given.
8836if test ${enable_static+y}
8837then :
8838  enableval=$enable_static; p=${PACKAGE-default}
8839    case $enableval in
8840    yes) enable_static=yes ;;
8841    no) enable_static=no ;;
8842    *)
8843     enable_static=no
8844      # Look at the argument we got.  We use all the common list separators.
8845      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8846      for pkg in $enableval; do
8847	IFS=$lt_save_ifs
8848	if test "X$pkg" = "X$p"; then
8849	  enable_static=yes
8850	fi
8851      done
8852      IFS=$lt_save_ifs
8853      ;;
8854    esac
8855else $as_nop
8856  enable_static=yes
8857fi
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868# Check whether --with-pic was given.
8869if test ${with_pic+y}
8870then :
8871  withval=$with_pic; lt_p=${PACKAGE-default}
8872    case $withval in
8873    yes|no) pic_mode=$withval ;;
8874    *)
8875      pic_mode=default
8876      # Look at the argument we got.  We use all the common list separators.
8877      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8878      for lt_pkg in $withval; do
8879	IFS=$lt_save_ifs
8880	if test "X$lt_pkg" = "X$lt_p"; then
8881	  pic_mode=yes
8882	fi
8883      done
8884      IFS=$lt_save_ifs
8885      ;;
8886    esac
8887else $as_nop
8888  pic_mode=default
8889fi
8890
8891
8892
8893
8894
8895
8896
8897
8898  # Check whether --enable-fast-install was given.
8899if test ${enable_fast_install+y}
8900then :
8901  enableval=$enable_fast_install; p=${PACKAGE-default}
8902    case $enableval in
8903    yes) enable_fast_install=yes ;;
8904    no) enable_fast_install=no ;;
8905    *)
8906      enable_fast_install=no
8907      # Look at the argument we got.  We use all the common list separators.
8908      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8909      for pkg in $enableval; do
8910	IFS=$lt_save_ifs
8911	if test "X$pkg" = "X$p"; then
8912	  enable_fast_install=yes
8913	fi
8914      done
8915      IFS=$lt_save_ifs
8916      ;;
8917    esac
8918else $as_nop
8919  enable_fast_install=yes
8920fi
8921
8922
8923
8924
8925
8926
8927
8928
8929  shared_archive_member_spec=
8930case $host,$enable_shared in
8931power*-*-aix[5-9]*,yes)
8932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8933printf %s "checking which variant of shared library versioning to provide... " >&6; }
8934
8935# Check whether --with-aix-soname was given.
8936if test ${with_aix_soname+y}
8937then :
8938  withval=$with_aix_soname; case $withval in
8939    aix|svr4|both)
8940      ;;
8941    *)
8942      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8943      ;;
8944    esac
8945    lt_cv_with_aix_soname=$with_aix_soname
8946else $as_nop
8947  if test ${lt_cv_with_aix_soname+y}
8948then :
8949  printf %s "(cached) " >&6
8950else $as_nop
8951  lt_cv_with_aix_soname=aix
8952fi
8953
8954    with_aix_soname=$lt_cv_with_aix_soname
8955fi
8956
8957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8958printf "%s\n" "$with_aix_soname" >&6; }
8959  if test aix != "$with_aix_soname"; then
8960    # For the AIX way of multilib, we name the shared archive member
8961    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8962    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8963    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8964    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8965    if test 64 = "${OBJECT_MODE-32}"; then
8966      shared_archive_member_spec=shr_64
8967    else
8968      shared_archive_member_spec=shr
8969    fi
8970  fi
8971  ;;
8972*)
8973  with_aix_soname=aix
8974  ;;
8975esac
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986# This can be used to rebuild libtool when needed
8987LIBTOOL_DEPS=$ltmain
8988
8989# Always use our own libtool.
8990LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021test -z "$LN_S" && LN_S="ln -s"
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036if test -n "${ZSH_VERSION+set}"; then
9037   setopt NO_GLOB_SUBST
9038fi
9039
9040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9041printf %s "checking for objdir... " >&6; }
9042if test ${lt_cv_objdir+y}
9043then :
9044  printf %s "(cached) " >&6
9045else $as_nop
9046  rm -f .libs 2>/dev/null
9047mkdir .libs 2>/dev/null
9048if test -d .libs; then
9049  lt_cv_objdir=.libs
9050else
9051  # MS-DOS does not allow filenames that begin with a dot.
9052  lt_cv_objdir=_libs
9053fi
9054rmdir .libs 2>/dev/null
9055fi
9056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9057printf "%s\n" "$lt_cv_objdir" >&6; }
9058objdir=$lt_cv_objdir
9059
9060
9061
9062
9063
9064printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9065
9066
9067
9068
9069case $host_os in
9070aix3*)
9071  # AIX sometimes has problems with the GCC collect2 program.  For some
9072  # reason, if we set the COLLECT_NAMES environment variable, the problems
9073  # vanish in a puff of smoke.
9074  if test set != "${COLLECT_NAMES+set}"; then
9075    COLLECT_NAMES=
9076    export COLLECT_NAMES
9077  fi
9078  ;;
9079esac
9080
9081# Global variables:
9082ofile=libtool
9083can_build_shared=yes
9084
9085# All known linkers require a '.a' archive for static linking (except MSVC and
9086# ICC, which need '.lib').
9087libext=a
9088
9089with_gnu_ld=$lt_cv_prog_gnu_ld
9090
9091old_CC=$CC
9092old_CFLAGS=$CFLAGS
9093
9094# Set sane defaults for various variables
9095test -z "$CC" && CC=cc
9096test -z "$LTCC" && LTCC=$CC
9097test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9098test -z "$LD" && LD=ld
9099test -z "$ac_objext" && ac_objext=o
9100
9101func_cc_basename $compiler
9102cc_basename=$func_cc_basename_result
9103
9104
9105# Only perform the check for file, if the check method requires it
9106test -z "$MAGIC_CMD" && MAGIC_CMD=file
9107case $deplibs_check_method in
9108file_magic*)
9109  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9110    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9111printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9112if test ${lt_cv_path_MAGIC_CMD+y}
9113then :
9114  printf %s "(cached) " >&6
9115else $as_nop
9116  case $MAGIC_CMD in
9117[\\/*] |  ?:[\\/]*)
9118  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9119  ;;
9120*)
9121  lt_save_MAGIC_CMD=$MAGIC_CMD
9122  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9123  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9124  for ac_dir in $ac_dummy; do
9125    IFS=$lt_save_ifs
9126    test -z "$ac_dir" && ac_dir=.
9127    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9128      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9129      if test -n "$file_magic_test_file"; then
9130	case $deplibs_check_method in
9131	"file_magic "*)
9132	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9133	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9134	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9135	    $EGREP "$file_magic_regex" > /dev/null; then
9136	    :
9137	  else
9138	    cat <<_LT_EOF 1>&2
9139
9140*** Warning: the command libtool uses to detect shared libraries,
9141*** $file_magic_cmd, produces output that libtool cannot recognize.
9142*** The result is that libtool may fail to recognize shared libraries
9143*** as such.  This will affect the creation of libtool libraries that
9144*** depend on shared libraries, but programs linked with such libtool
9145*** libraries will work regardless of this problem.  Nevertheless, you
9146*** may want to report the problem to your system manager and/or to
9147*** bug-libtool@gnu.org
9148
9149_LT_EOF
9150	  fi ;;
9151	esac
9152      fi
9153      break
9154    fi
9155  done
9156  IFS=$lt_save_ifs
9157  MAGIC_CMD=$lt_save_MAGIC_CMD
9158  ;;
9159esac
9160fi
9161
9162MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9163if test -n "$MAGIC_CMD"; then
9164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9165printf "%s\n" "$MAGIC_CMD" >&6; }
9166else
9167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168printf "%s\n" "no" >&6; }
9169fi
9170
9171
9172
9173
9174
9175if test -z "$lt_cv_path_MAGIC_CMD"; then
9176  if test -n "$ac_tool_prefix"; then
9177    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9178printf %s "checking for file... " >&6; }
9179if test ${lt_cv_path_MAGIC_CMD+y}
9180then :
9181  printf %s "(cached) " >&6
9182else $as_nop
9183  case $MAGIC_CMD in
9184[\\/*] |  ?:[\\/]*)
9185  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9186  ;;
9187*)
9188  lt_save_MAGIC_CMD=$MAGIC_CMD
9189  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9190  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9191  for ac_dir in $ac_dummy; do
9192    IFS=$lt_save_ifs
9193    test -z "$ac_dir" && ac_dir=.
9194    if test -f "$ac_dir/file"; then
9195      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9196      if test -n "$file_magic_test_file"; then
9197	case $deplibs_check_method in
9198	"file_magic "*)
9199	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9200	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9201	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9202	    $EGREP "$file_magic_regex" > /dev/null; then
9203	    :
9204	  else
9205	    cat <<_LT_EOF 1>&2
9206
9207*** Warning: the command libtool uses to detect shared libraries,
9208*** $file_magic_cmd, produces output that libtool cannot recognize.
9209*** The result is that libtool may fail to recognize shared libraries
9210*** as such.  This will affect the creation of libtool libraries that
9211*** depend on shared libraries, but programs linked with such libtool
9212*** libraries will work regardless of this problem.  Nevertheless, you
9213*** may want to report the problem to your system manager and/or to
9214*** bug-libtool@gnu.org
9215
9216_LT_EOF
9217	  fi ;;
9218	esac
9219      fi
9220      break
9221    fi
9222  done
9223  IFS=$lt_save_ifs
9224  MAGIC_CMD=$lt_save_MAGIC_CMD
9225  ;;
9226esac
9227fi
9228
9229MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9230if test -n "$MAGIC_CMD"; then
9231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9232printf "%s\n" "$MAGIC_CMD" >&6; }
9233else
9234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235printf "%s\n" "no" >&6; }
9236fi
9237
9238
9239  else
9240    MAGIC_CMD=:
9241  fi
9242fi
9243
9244  fi
9245  ;;
9246esac
9247
9248# Use C for the default configuration in the libtool script
9249
9250lt_save_CC=$CC
9251ac_ext=c
9252ac_cpp='$CPP $CPPFLAGS'
9253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9255ac_compiler_gnu=$ac_cv_c_compiler_gnu
9256
9257
9258# Source file extension for C test sources.
9259ac_ext=c
9260
9261# Object file extension for compiled C test sources.
9262objext=o
9263objext=$objext
9264
9265# Code to be used in simple compile tests
9266lt_simple_compile_test_code="int some_variable = 0;"
9267
9268# Code to be used in simple link tests
9269lt_simple_link_test_code='int main(){return(0);}'
9270
9271
9272
9273
9274
9275
9276
9277# If no C compiler was specified, use CC.
9278LTCC=${LTCC-"$CC"}
9279
9280# If no C compiler flags were specified, use CFLAGS.
9281LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9282
9283# Allow CC to be a program name with arguments.
9284compiler=$CC
9285
9286# Save the default compiler, since it gets overwritten when the other
9287# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9288compiler_DEFAULT=$CC
9289
9290# save warnings/boilerplate of simple test code
9291ac_outfile=conftest.$ac_objext
9292echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9293eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9294_lt_compiler_boilerplate=`cat conftest.err`
9295$RM conftest*
9296
9297ac_outfile=conftest.$ac_objext
9298echo "$lt_simple_link_test_code" >conftest.$ac_ext
9299eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9300_lt_linker_boilerplate=`cat conftest.err`
9301$RM -r conftest*
9302
9303
9304if test -n "$compiler"; then
9305
9306lt_prog_compiler_no_builtin_flag=
9307
9308if test yes = "$GCC"; then
9309  case $cc_basename in
9310  nvcc*)
9311    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9312  *)
9313    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9314  esac
9315
9316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9317printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9318if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9319then :
9320  printf %s "(cached) " >&6
9321else $as_nop
9322  lt_cv_prog_compiler_rtti_exceptions=no
9323   ac_outfile=conftest.$ac_objext
9324   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9325   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9326   # Insert the option either (1) after the last *FLAGS variable, or
9327   # (2) before a word containing "conftest.", or (3) at the end.
9328   # Note that $ac_compile itself does not contain backslashes and begins
9329   # with a dollar sign (not a hyphen), so the echo should work correctly.
9330   # The option is referenced via a variable to avoid confusing sed.
9331   lt_compile=`echo "$ac_compile" | $SED \
9332   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9333   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9334   -e 's:$: $lt_compiler_flag:'`
9335   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9336   (eval "$lt_compile" 2>conftest.err)
9337   ac_status=$?
9338   cat conftest.err >&5
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   if (exit $ac_status) && test -s "$ac_outfile"; then
9341     # The compiler can only warn and ignore the option if not recognized
9342     # So say no if there are warnings other than the usual output.
9343     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9344     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9345     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9346       lt_cv_prog_compiler_rtti_exceptions=yes
9347     fi
9348   fi
9349   $RM conftest*
9350
9351fi
9352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9353printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9354
9355if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9356    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9357else
9358    :
9359fi
9360
9361fi
9362
9363
9364
9365
9366
9367
9368  lt_prog_compiler_wl=
9369lt_prog_compiler_pic=
9370lt_prog_compiler_static=
9371
9372
9373  if test yes = "$GCC"; then
9374    lt_prog_compiler_wl='-Wl,'
9375    lt_prog_compiler_static='-static'
9376
9377    case $host_os in
9378      aix*)
9379      # All AIX code is PIC.
9380      if test ia64 = "$host_cpu"; then
9381	# AIX 5 now supports IA64 processor
9382	lt_prog_compiler_static='-Bstatic'
9383      fi
9384      lt_prog_compiler_pic='-fPIC'
9385      ;;
9386
9387    amigaos*)
9388      case $host_cpu in
9389      powerpc)
9390            # see comment about AmigaOS4 .so support
9391            lt_prog_compiler_pic='-fPIC'
9392        ;;
9393      m68k)
9394            # FIXME: we need at least 68020 code to build shared libraries, but
9395            # adding the '-m68020' flag to GCC prevents building anything better,
9396            # like '-m68040'.
9397            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9398        ;;
9399      esac
9400      ;;
9401
9402    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9403      # PIC is the default for these OSes.
9404      ;;
9405
9406    mingw* | cygwin* | pw32* | os2* | cegcc*)
9407      # This hack is so that the source file can tell whether it is being
9408      # built for inclusion in a dll (and should export symbols for example).
9409      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9410      # (--disable-auto-import) libraries
9411      lt_prog_compiler_pic='-DDLL_EXPORT'
9412      case $host_os in
9413      os2*)
9414	lt_prog_compiler_static='$wl-static'
9415	;;
9416      esac
9417      ;;
9418
9419    darwin* | rhapsody*)
9420      # PIC is the default on this platform
9421      # Common symbols not allowed in MH_DYLIB files
9422      lt_prog_compiler_pic='-fno-common'
9423      ;;
9424
9425    haiku*)
9426      # PIC is the default for Haiku.
9427      # The "-static" flag exists, but is broken.
9428      lt_prog_compiler_static=
9429      ;;
9430
9431    hpux*)
9432      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9433      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9434      # sets the default TLS model and affects inlining.
9435      case $host_cpu in
9436      hppa*64*)
9437	# +Z the default
9438	;;
9439      *)
9440	lt_prog_compiler_pic='-fPIC'
9441	;;
9442      esac
9443      ;;
9444
9445    interix[3-9]*)
9446      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9447      # Instead, we relocate shared libraries at runtime.
9448      ;;
9449
9450    msdosdjgpp*)
9451      # Just because we use GCC doesn't mean we suddenly get shared libraries
9452      # on systems that don't support them.
9453      lt_prog_compiler_can_build_shared=no
9454      enable_shared=no
9455      ;;
9456
9457    *nto* | *qnx*)
9458      # QNX uses GNU C++, but need to define -shared option too, otherwise
9459      # it will coredump.
9460      lt_prog_compiler_pic='-fPIC -shared'
9461      ;;
9462
9463    sysv4*MP*)
9464      if test -d /usr/nec; then
9465	lt_prog_compiler_pic=-Kconform_pic
9466      fi
9467      ;;
9468
9469    *)
9470      lt_prog_compiler_pic='-fPIC'
9471      ;;
9472    esac
9473
9474    case $cc_basename in
9475    nvcc*) # Cuda Compiler Driver 2.2
9476      lt_prog_compiler_wl='-Xlinker '
9477      if test -n "$lt_prog_compiler_pic"; then
9478        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9479      fi
9480      ;;
9481    esac
9482  else
9483    # PORTME Check for flag to pass linker flags through the system compiler.
9484    case $host_os in
9485    aix*)
9486      lt_prog_compiler_wl='-Wl,'
9487      if test ia64 = "$host_cpu"; then
9488	# AIX 5 now supports IA64 processor
9489	lt_prog_compiler_static='-Bstatic'
9490      else
9491	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9492      fi
9493      ;;
9494
9495    darwin* | rhapsody*)
9496      # PIC is the default on this platform
9497      # Common symbols not allowed in MH_DYLIB files
9498      lt_prog_compiler_pic='-fno-common'
9499      case $cc_basename in
9500      nagfor*)
9501        # NAG Fortran compiler
9502        lt_prog_compiler_wl='-Wl,-Wl,,'
9503        lt_prog_compiler_pic='-PIC'
9504        lt_prog_compiler_static='-Bstatic'
9505        ;;
9506      esac
9507      ;;
9508
9509    mingw* | cygwin* | pw32* | os2* | cegcc*)
9510      # This hack is so that the source file can tell whether it is being
9511      # built for inclusion in a dll (and should export symbols for example).
9512      lt_prog_compiler_pic='-DDLL_EXPORT'
9513      case $host_os in
9514      os2*)
9515	lt_prog_compiler_static='$wl-static'
9516	;;
9517      esac
9518      ;;
9519
9520    hpux9* | hpux10* | hpux11*)
9521      lt_prog_compiler_wl='-Wl,'
9522      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9523      # not for PA HP-UX.
9524      case $host_cpu in
9525      hppa*64*|ia64*)
9526	# +Z the default
9527	;;
9528      *)
9529	lt_prog_compiler_pic='+Z'
9530	;;
9531      esac
9532      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9533      lt_prog_compiler_static='$wl-a ${wl}archive'
9534      ;;
9535
9536    irix5* | irix6* | nonstopux*)
9537      lt_prog_compiler_wl='-Wl,'
9538      # PIC (with -KPIC) is the default.
9539      lt_prog_compiler_static='-non_shared'
9540      ;;
9541
9542    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9543      case $cc_basename in
9544      # old Intel for x86_64, which still supported -KPIC.
9545      ecc*)
9546	lt_prog_compiler_wl='-Wl,'
9547	lt_prog_compiler_pic='-KPIC'
9548	lt_prog_compiler_static='-static'
9549        ;;
9550      # icc used to be incompatible with GCC.
9551      # ICC 10 doesn't accept -KPIC any more.
9552      icc* | ifort*)
9553	lt_prog_compiler_wl='-Wl,'
9554	lt_prog_compiler_pic='-fPIC'
9555	lt_prog_compiler_static='-static'
9556        ;;
9557      # Lahey Fortran 8.1.
9558      lf95*)
9559	lt_prog_compiler_wl='-Wl,'
9560	lt_prog_compiler_pic='--shared'
9561	lt_prog_compiler_static='--static'
9562	;;
9563      nagfor*)
9564	# NAG Fortran compiler
9565	lt_prog_compiler_wl='-Wl,-Wl,,'
9566	lt_prog_compiler_pic='-PIC'
9567	lt_prog_compiler_static='-Bstatic'
9568	;;
9569      tcc*)
9570	# Fabrice Bellard et al's Tiny C Compiler
9571	lt_prog_compiler_wl='-Wl,'
9572	lt_prog_compiler_pic='-fPIC'
9573	lt_prog_compiler_static='-static'
9574	;;
9575      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9576        # Portland Group compilers (*not* the Pentium gcc compiler,
9577	# which looks to be a dead project)
9578	lt_prog_compiler_wl='-Wl,'
9579	lt_prog_compiler_pic='-fpic'
9580	lt_prog_compiler_static='-Bstatic'
9581        ;;
9582      ccc*)
9583        lt_prog_compiler_wl='-Wl,'
9584        # All Alpha code is PIC.
9585        lt_prog_compiler_static='-non_shared'
9586        ;;
9587      xl* | bgxl* | bgf* | mpixl*)
9588	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9589	lt_prog_compiler_wl='-Wl,'
9590	lt_prog_compiler_pic='-qpic'
9591	lt_prog_compiler_static='-qstaticlink'
9592	;;
9593      *)
9594	case `$CC -V 2>&1 | $SED 5q` in
9595	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9596	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9597	  lt_prog_compiler_pic='-KPIC'
9598	  lt_prog_compiler_static='-Bstatic'
9599	  lt_prog_compiler_wl=''
9600	  ;;
9601	*Sun\ F* | *Sun*Fortran*)
9602	  lt_prog_compiler_pic='-KPIC'
9603	  lt_prog_compiler_static='-Bstatic'
9604	  lt_prog_compiler_wl='-Qoption ld '
9605	  ;;
9606	*Sun\ C*)
9607	  # Sun C 5.9
9608	  lt_prog_compiler_pic='-KPIC'
9609	  lt_prog_compiler_static='-Bstatic'
9610	  lt_prog_compiler_wl='-Wl,'
9611	  ;;
9612        *Intel*\ [CF]*Compiler*)
9613	  lt_prog_compiler_wl='-Wl,'
9614	  lt_prog_compiler_pic='-fPIC'
9615	  lt_prog_compiler_static='-static'
9616	  ;;
9617	*Portland\ Group*)
9618	  lt_prog_compiler_wl='-Wl,'
9619	  lt_prog_compiler_pic='-fpic'
9620	  lt_prog_compiler_static='-Bstatic'
9621	  ;;
9622	esac
9623	;;
9624      esac
9625      ;;
9626
9627    newsos6)
9628      lt_prog_compiler_pic='-KPIC'
9629      lt_prog_compiler_static='-Bstatic'
9630      ;;
9631
9632    *nto* | *qnx*)
9633      # QNX uses GNU C++, but need to define -shared option too, otherwise
9634      # it will coredump.
9635      lt_prog_compiler_pic='-fPIC -shared'
9636      ;;
9637
9638    osf3* | osf4* | osf5*)
9639      lt_prog_compiler_wl='-Wl,'
9640      # All OSF/1 code is PIC.
9641      lt_prog_compiler_static='-non_shared'
9642      ;;
9643
9644    rdos*)
9645      lt_prog_compiler_static='-non_shared'
9646      ;;
9647
9648    solaris*)
9649      lt_prog_compiler_pic='-KPIC'
9650      lt_prog_compiler_static='-Bstatic'
9651      case $cc_basename in
9652      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9653	lt_prog_compiler_wl='-Qoption ld ';;
9654      *)
9655	lt_prog_compiler_wl='-Wl,';;
9656      esac
9657      ;;
9658
9659    sunos4*)
9660      lt_prog_compiler_wl='-Qoption ld '
9661      lt_prog_compiler_pic='-PIC'
9662      lt_prog_compiler_static='-Bstatic'
9663      ;;
9664
9665    sysv4 | sysv4.2uw2* | sysv4.3*)
9666      lt_prog_compiler_wl='-Wl,'
9667      lt_prog_compiler_pic='-KPIC'
9668      lt_prog_compiler_static='-Bstatic'
9669      ;;
9670
9671    sysv4*MP*)
9672      if test -d /usr/nec; then
9673	lt_prog_compiler_pic='-Kconform_pic'
9674	lt_prog_compiler_static='-Bstatic'
9675      fi
9676      ;;
9677
9678    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9679      lt_prog_compiler_wl='-Wl,'
9680      lt_prog_compiler_pic='-KPIC'
9681      lt_prog_compiler_static='-Bstatic'
9682      ;;
9683
9684    unicos*)
9685      lt_prog_compiler_wl='-Wl,'
9686      lt_prog_compiler_can_build_shared=no
9687      ;;
9688
9689    uts4*)
9690      lt_prog_compiler_pic='-pic'
9691      lt_prog_compiler_static='-Bstatic'
9692      ;;
9693
9694    *)
9695      lt_prog_compiler_can_build_shared=no
9696      ;;
9697    esac
9698  fi
9699
9700case $host_os in
9701  # For platforms that do not support PIC, -DPIC is meaningless:
9702  *djgpp*)
9703    lt_prog_compiler_pic=
9704    ;;
9705  *)
9706    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9707    ;;
9708esac
9709
9710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9711printf %s "checking for $compiler option to produce PIC... " >&6; }
9712if test ${lt_cv_prog_compiler_pic+y}
9713then :
9714  printf %s "(cached) " >&6
9715else $as_nop
9716  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9717fi
9718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9719printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9720lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9721
9722#
9723# Check to make sure the PIC flag actually works.
9724#
9725if test -n "$lt_prog_compiler_pic"; then
9726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9727printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9728if test ${lt_cv_prog_compiler_pic_works+y}
9729then :
9730  printf %s "(cached) " >&6
9731else $as_nop
9732  lt_cv_prog_compiler_pic_works=no
9733   ac_outfile=conftest.$ac_objext
9734   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9735   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9736   # Insert the option either (1) after the last *FLAGS variable, or
9737   # (2) before a word containing "conftest.", or (3) at the end.
9738   # Note that $ac_compile itself does not contain backslashes and begins
9739   # with a dollar sign (not a hyphen), so the echo should work correctly.
9740   # The option is referenced via a variable to avoid confusing sed.
9741   lt_compile=`echo "$ac_compile" | $SED \
9742   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9743   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9744   -e 's:$: $lt_compiler_flag:'`
9745   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9746   (eval "$lt_compile" 2>conftest.err)
9747   ac_status=$?
9748   cat conftest.err >&5
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   if (exit $ac_status) && test -s "$ac_outfile"; then
9751     # The compiler can only warn and ignore the option if not recognized
9752     # So say no if there are warnings other than the usual output.
9753     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9754     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9755     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9756       lt_cv_prog_compiler_pic_works=yes
9757     fi
9758   fi
9759   $RM conftest*
9760
9761fi
9762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9763printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9764
9765if test yes = "$lt_cv_prog_compiler_pic_works"; then
9766    case $lt_prog_compiler_pic in
9767     "" | " "*) ;;
9768     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9769     esac
9770else
9771    lt_prog_compiler_pic=
9772     lt_prog_compiler_can_build_shared=no
9773fi
9774
9775fi
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787#
9788# Check to make sure the static flag actually works.
9789#
9790wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9792printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9793if test ${lt_cv_prog_compiler_static_works+y}
9794then :
9795  printf %s "(cached) " >&6
9796else $as_nop
9797  lt_cv_prog_compiler_static_works=no
9798   save_LDFLAGS=$LDFLAGS
9799   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9800   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9801   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9802     # The linker can only warn and ignore the option if not recognized
9803     # So say no if there are warnings
9804     if test -s conftest.err; then
9805       # Append any errors to the config.log.
9806       cat conftest.err 1>&5
9807       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9808       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9809       if diff conftest.exp conftest.er2 >/dev/null; then
9810         lt_cv_prog_compiler_static_works=yes
9811       fi
9812     else
9813       lt_cv_prog_compiler_static_works=yes
9814     fi
9815   fi
9816   $RM -r conftest*
9817   LDFLAGS=$save_LDFLAGS
9818
9819fi
9820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9821printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9822
9823if test yes = "$lt_cv_prog_compiler_static_works"; then
9824    :
9825else
9826    lt_prog_compiler_static=
9827fi
9828
9829
9830
9831
9832
9833
9834
9835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9836printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9837if test ${lt_cv_prog_compiler_c_o+y}
9838then :
9839  printf %s "(cached) " >&6
9840else $as_nop
9841  lt_cv_prog_compiler_c_o=no
9842   $RM -r conftest 2>/dev/null
9843   mkdir conftest
9844   cd conftest
9845   mkdir out
9846   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9847
9848   lt_compiler_flag="-o out/conftest2.$ac_objext"
9849   # Insert the option either (1) after the last *FLAGS variable, or
9850   # (2) before a word containing "conftest.", or (3) at the end.
9851   # Note that $ac_compile itself does not contain backslashes and begins
9852   # with a dollar sign (not a hyphen), so the echo should work correctly.
9853   lt_compile=`echo "$ac_compile" | $SED \
9854   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9855   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9856   -e 's:$: $lt_compiler_flag:'`
9857   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9858   (eval "$lt_compile" 2>out/conftest.err)
9859   ac_status=$?
9860   cat out/conftest.err >&5
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9863   then
9864     # The compiler can only warn and ignore the option if not recognized
9865     # So say no if there are warnings
9866     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9867     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9868     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9869       lt_cv_prog_compiler_c_o=yes
9870     fi
9871   fi
9872   chmod u+w . 2>&5
9873   $RM conftest*
9874   # SGI C++ compiler will create directory out/ii_files/ for
9875   # template instantiation
9876   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9877   $RM out/* && rmdir out
9878   cd ..
9879   $RM -r conftest
9880   $RM conftest*
9881
9882fi
9883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9884printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9885
9886
9887
9888
9889
9890
9891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9892printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9893if test ${lt_cv_prog_compiler_c_o+y}
9894then :
9895  printf %s "(cached) " >&6
9896else $as_nop
9897  lt_cv_prog_compiler_c_o=no
9898   $RM -r conftest 2>/dev/null
9899   mkdir conftest
9900   cd conftest
9901   mkdir out
9902   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9903
9904   lt_compiler_flag="-o out/conftest2.$ac_objext"
9905   # Insert the option either (1) after the last *FLAGS variable, or
9906   # (2) before a word containing "conftest.", or (3) at the end.
9907   # Note that $ac_compile itself does not contain backslashes and begins
9908   # with a dollar sign (not a hyphen), so the echo should work correctly.
9909   lt_compile=`echo "$ac_compile" | $SED \
9910   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9911   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9912   -e 's:$: $lt_compiler_flag:'`
9913   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9914   (eval "$lt_compile" 2>out/conftest.err)
9915   ac_status=$?
9916   cat out/conftest.err >&5
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9919   then
9920     # The compiler can only warn and ignore the option if not recognized
9921     # So say no if there are warnings
9922     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9923     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9924     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9925       lt_cv_prog_compiler_c_o=yes
9926     fi
9927   fi
9928   chmod u+w . 2>&5
9929   $RM conftest*
9930   # SGI C++ compiler will create directory out/ii_files/ for
9931   # template instantiation
9932   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9933   $RM out/* && rmdir out
9934   cd ..
9935   $RM -r conftest
9936   $RM conftest*
9937
9938fi
9939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9940printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9941
9942
9943
9944
9945hard_links=nottested
9946if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9947  # do not overwrite the value of need_locks provided by the user
9948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9949printf %s "checking if we can lock with hard links... " >&6; }
9950  hard_links=yes
9951  $RM conftest*
9952  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9953  touch conftest.a
9954  ln conftest.a conftest.b 2>&5 || hard_links=no
9955  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9956  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9957printf "%s\n" "$hard_links" >&6; }
9958  if test no = "$hard_links"; then
9959    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9960printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9961    need_locks=warn
9962  fi
9963else
9964  need_locks=no
9965fi
9966
9967
9968
9969
9970
9971
9972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9973printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9974
9975  runpath_var=
9976  allow_undefined_flag=
9977  always_export_symbols=no
9978  archive_cmds=
9979  archive_expsym_cmds=
9980  compiler_needs_object=no
9981  enable_shared_with_static_runtimes=no
9982  export_dynamic_flag_spec=
9983  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9984  hardcode_automatic=no
9985  hardcode_direct=no
9986  hardcode_direct_absolute=no
9987  hardcode_libdir_flag_spec=
9988  hardcode_libdir_separator=
9989  hardcode_minus_L=no
9990  hardcode_shlibpath_var=unsupported
9991  inherit_rpath=no
9992  link_all_deplibs=unknown
9993  module_cmds=
9994  module_expsym_cmds=
9995  old_archive_from_new_cmds=
9996  old_archive_from_expsyms_cmds=
9997  thread_safe_flag_spec=
9998  whole_archive_flag_spec=
9999  # include_expsyms should be a list of space-separated symbols to be *always*
10000  # included in the symbol list
10001  include_expsyms=
10002  # exclude_expsyms can be an extended regexp of symbols to exclude
10003  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10004  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10005  # as well as any symbol that contains 'd'.
10006  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10007  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10008  # platforms (ab)use it in PIC code, but their linkers get confused if
10009  # the symbol is explicitly referenced.  Since portable code cannot
10010  # rely on this symbol name, it's probably fine to never include it in
10011  # preloaded symbol tables.
10012  # Exclude shared library initialization/finalization symbols.
10013  extract_expsyms_cmds=
10014
10015  case $host_os in
10016  cygwin* | mingw* | pw32* | cegcc*)
10017    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10018    # When not using gcc, we currently assume that we are using
10019    # Microsoft Visual C++ or Intel C++ Compiler.
10020    if test yes != "$GCC"; then
10021      with_gnu_ld=no
10022    fi
10023    ;;
10024  interix*)
10025    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10026    with_gnu_ld=yes
10027    ;;
10028  openbsd* | bitrig*)
10029    with_gnu_ld=no
10030    ;;
10031  esac
10032
10033  ld_shlibs=yes
10034
10035  # On some targets, GNU ld is compatible enough with the native linker
10036  # that we're better off using the native interface for both.
10037  lt_use_gnu_ld_interface=no
10038  if test yes = "$with_gnu_ld"; then
10039    case $host_os in
10040      aix*)
10041	# The AIX port of GNU ld has always aspired to compatibility
10042	# with the native linker.  However, as the warning in the GNU ld
10043	# block says, versions before 2.19.5* couldn't really create working
10044	# shared libraries, regardless of the interface used.
10045	case `$LD -v 2>&1` in
10046	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10047	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10048	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10049	  *)
10050	    lt_use_gnu_ld_interface=yes
10051	    ;;
10052	esac
10053	;;
10054      *)
10055	lt_use_gnu_ld_interface=yes
10056	;;
10057    esac
10058  fi
10059
10060  if test yes = "$lt_use_gnu_ld_interface"; then
10061    # If archive_cmds runs LD, not CC, wlarc should be empty
10062    wlarc='$wl'
10063
10064    # Set some defaults for GNU ld with shared library support. These
10065    # are reset later if shared libraries are not supported. Putting them
10066    # here allows them to be overridden if necessary.
10067    runpath_var=LD_RUN_PATH
10068    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10069    export_dynamic_flag_spec='$wl--export-dynamic'
10070    # ancient GNU ld didn't support --whole-archive et. al.
10071    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10072      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10073    else
10074      whole_archive_flag_spec=
10075    fi
10076    supports_anon_versioning=no
10077    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10078      *GNU\ gold*) supports_anon_versioning=yes ;;
10079      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10080      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10081      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10082      *\ 2.11.*) ;; # other 2.11 versions
10083      *) supports_anon_versioning=yes ;;
10084    esac
10085
10086    # See if GNU ld supports shared libraries.
10087    case $host_os in
10088    aix[3-9]*)
10089      # On AIX/PPC, the GNU linker is very broken
10090      if test ia64 != "$host_cpu"; then
10091	ld_shlibs=no
10092	cat <<_LT_EOF 1>&2
10093
10094*** Warning: the GNU linker, at least up to release 2.19, is reported
10095*** to be unable to reliably create shared libraries on AIX.
10096*** Therefore, libtool is disabling shared libraries support.  If you
10097*** really care for shared libraries, you may want to install binutils
10098*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10099*** You will then need to restart the configuration process.
10100
10101_LT_EOF
10102      fi
10103      ;;
10104
10105    amigaos*)
10106      case $host_cpu in
10107      powerpc)
10108            # see comment about AmigaOS4 .so support
10109            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10110            archive_expsym_cmds=''
10111        ;;
10112      m68k)
10113            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)'
10114            hardcode_libdir_flag_spec='-L$libdir'
10115            hardcode_minus_L=yes
10116        ;;
10117      esac
10118      ;;
10119
10120    beos*)
10121      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122	allow_undefined_flag=unsupported
10123	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10124	# support --undefined.  This deserves some investigation.  FIXME
10125	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10126      else
10127	ld_shlibs=no
10128      fi
10129      ;;
10130
10131    cygwin* | mingw* | pw32* | cegcc*)
10132      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10133      # as there is no search path for DLLs.
10134      hardcode_libdir_flag_spec='-L$libdir'
10135      export_dynamic_flag_spec='$wl--export-all-symbols'
10136      allow_undefined_flag=unsupported
10137      always_export_symbols=no
10138      enable_shared_with_static_runtimes=yes
10139      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'
10140      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10141
10142      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10143        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10144	# If the export-symbols file already is a .def file, use it as
10145	# is; otherwise, prepend EXPORTS...
10146	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10147          cp $export_symbols $output_objdir/$soname.def;
10148        else
10149          echo EXPORTS > $output_objdir/$soname.def;
10150          cat $export_symbols >> $output_objdir/$soname.def;
10151        fi~
10152        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10153      else
10154	ld_shlibs=no
10155      fi
10156      ;;
10157
10158    haiku*)
10159      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10160      link_all_deplibs=yes
10161      ;;
10162
10163    os2*)
10164      hardcode_libdir_flag_spec='-L$libdir'
10165      hardcode_minus_L=yes
10166      allow_undefined_flag=unsupported
10167      shrext_cmds=.dll
10168      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10169	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10170	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10171	$ECHO EXPORTS >> $output_objdir/$libname.def~
10172	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10173	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10174	emximp -o $lib $output_objdir/$libname.def'
10175      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10176	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10177	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10178	$ECHO EXPORTS >> $output_objdir/$libname.def~
10179	prefix_cmds="$SED"~
10180	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10181	  prefix_cmds="$prefix_cmds -e 1d";
10182	fi~
10183	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10184	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10185	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10186	emximp -o $lib $output_objdir/$libname.def'
10187      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10188      enable_shared_with_static_runtimes=yes
10189      file_list_spec='@'
10190      ;;
10191
10192    interix[3-9]*)
10193      hardcode_direct=no
10194      hardcode_shlibpath_var=no
10195      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10196      export_dynamic_flag_spec='$wl-E'
10197      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10198      # Instead, shared libraries are loaded at an image base (0x10000000 by
10199      # default) and relocated if they conflict, which is a slow very memory
10200      # consuming and fragmenting process.  To avoid this, we pick a random,
10201      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10202      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10203      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10204      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'
10205      ;;
10206
10207    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10208      tmp_diet=no
10209      if test linux-dietlibc = "$host_os"; then
10210	case $cc_basename in
10211	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10212	esac
10213      fi
10214      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10215	 && test no = "$tmp_diet"
10216      then
10217	tmp_addflag=' $pic_flag'
10218	tmp_sharedflag='-shared'
10219	case $cc_basename,$host_cpu in
10220        pgcc*)				# Portland Group C compiler
10221	  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'
10222	  tmp_addflag=' $pic_flag'
10223	  ;;
10224	pgf77* | pgf90* | pgf95* | pgfortran*)
10225					# Portland Group f77 and f90 compilers
10226	  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'
10227	  tmp_addflag=' $pic_flag -Mnomain' ;;
10228	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10229	  tmp_addflag=' -i_dynamic' ;;
10230	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10231	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10232	ifc* | ifort*)			# Intel Fortran compiler
10233	  tmp_addflag=' -nofor_main' ;;
10234	lf95*)				# Lahey Fortran 8.1
10235	  whole_archive_flag_spec=
10236	  tmp_sharedflag='--shared' ;;
10237        nagfor*)                        # NAGFOR 5.3
10238          tmp_sharedflag='-Wl,-shared' ;;
10239	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10240	  tmp_sharedflag='-qmkshrobj'
10241	  tmp_addflag= ;;
10242	nvcc*)	# Cuda Compiler Driver 2.2
10243	  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'
10244	  compiler_needs_object=yes
10245	  ;;
10246	esac
10247	case `$CC -V 2>&1 | $SED 5q` in
10248	*Sun\ C*)			# Sun C 5.9
10249	  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'
10250	  compiler_needs_object=yes
10251	  tmp_sharedflag='-G' ;;
10252	*Sun\ F*)			# Sun Fortran 8.3
10253	  tmp_sharedflag='-G' ;;
10254	esac
10255	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10256
10257        if test yes = "$supports_anon_versioning"; then
10258          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10259            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10260            echo "local: *; };" >> $output_objdir/$libname.ver~
10261            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10262        fi
10263
10264	case $cc_basename in
10265	tcc*)
10266	  export_dynamic_flag_spec='-rdynamic'
10267	  ;;
10268	xlf* | bgf* | bgxlf* | mpixlf*)
10269	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10270	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10271	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10272	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10273	  if test yes = "$supports_anon_versioning"; then
10274	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10275              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10276              echo "local: *; };" >> $output_objdir/$libname.ver~
10277              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10278	  fi
10279	  ;;
10280	esac
10281      else
10282        ld_shlibs=no
10283      fi
10284      ;;
10285
10286    netbsd*)
10287      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10288	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10289	wlarc=
10290      else
10291	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10292	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10293      fi
10294      ;;
10295
10296    solaris*)
10297      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10298	ld_shlibs=no
10299	cat <<_LT_EOF 1>&2
10300
10301*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10302*** create shared libraries on Solaris systems.  Therefore, libtool
10303*** is disabling shared libraries support.  We urge you to upgrade GNU
10304*** binutils to release 2.9.1 or newer.  Another option is to modify
10305*** your PATH or compiler configuration so that the native linker is
10306*** used, and then restart.
10307
10308_LT_EOF
10309      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10310	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10311	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10312      else
10313	ld_shlibs=no
10314      fi
10315      ;;
10316
10317    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10318      case `$LD -v 2>&1` in
10319        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10320	ld_shlibs=no
10321	cat <<_LT_EOF 1>&2
10322
10323*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10324*** reliably create shared libraries on SCO systems.  Therefore, libtool
10325*** is disabling shared libraries support.  We urge you to upgrade GNU
10326*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10327*** your PATH or compiler configuration so that the native linker is
10328*** used, and then restart.
10329
10330_LT_EOF
10331	;;
10332	*)
10333	  # For security reasons, it is highly recommended that you always
10334	  # use absolute paths for naming shared libraries, and exclude the
10335	  # DT_RUNPATH tag from executables and libraries.  But doing so
10336	  # requires that you compile everything twice, which is a pain.
10337	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10339	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10340	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10341	  else
10342	    ld_shlibs=no
10343	  fi
10344	;;
10345      esac
10346      ;;
10347
10348    sunos4*)
10349      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10350      wlarc=
10351      hardcode_direct=yes
10352      hardcode_shlibpath_var=no
10353      ;;
10354
10355    *)
10356      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10357	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10358	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10359      else
10360	ld_shlibs=no
10361      fi
10362      ;;
10363    esac
10364
10365    if test no = "$ld_shlibs"; then
10366      runpath_var=
10367      hardcode_libdir_flag_spec=
10368      export_dynamic_flag_spec=
10369      whole_archive_flag_spec=
10370    fi
10371  else
10372    # PORTME fill in a description of your system's linker (not GNU ld)
10373    case $host_os in
10374    aix3*)
10375      allow_undefined_flag=unsupported
10376      always_export_symbols=yes
10377      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'
10378      # Note: this linker hardcodes the directories in LIBPATH if there
10379      # are no directories specified by -L.
10380      hardcode_minus_L=yes
10381      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10382	# Neither direct hardcoding nor static linking is supported with a
10383	# broken collect2.
10384	hardcode_direct=unsupported
10385      fi
10386      ;;
10387
10388    aix[4-9]*)
10389      if test ia64 = "$host_cpu"; then
10390	# On IA64, the linker does run time linking by default, so we don't
10391	# have to do anything special.
10392	aix_use_runtimelinking=no
10393	exp_sym_flag='-Bexport'
10394	no_entry_flag=
10395      else
10396	# If we're using GNU nm, then we don't want the "-C" option.
10397	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10398	# Without the "-l" option, or with the "-B" option, AIX nm treats
10399	# weak defined symbols like other global defined symbols, whereas
10400	# GNU nm marks them as "W".
10401	# While the 'weak' keyword is ignored in the Export File, we need
10402	# it in the Import File for the 'aix-soname' feature, so we have
10403	# to replace the "-B" option with "-P" for AIX nm.
10404	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10405	  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'
10406	else
10407	  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'
10408	fi
10409	aix_use_runtimelinking=no
10410
10411	# Test if we are trying to use run time linking or normal
10412	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10413	# have runtime linking enabled, and use it for executables.
10414	# For shared libraries, we enable/disable runtime linking
10415	# depending on the kind of the shared library created -
10416	# when "with_aix_soname,aix_use_runtimelinking" is:
10417	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10418	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10419	#            lib.a           static archive
10420	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10421	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10422	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10423	#            lib.a(lib.so.V) shared, rtl:no
10424	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10425	#            lib.a           static archive
10426	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10427	  for ld_flag in $LDFLAGS; do
10428	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10429	    aix_use_runtimelinking=yes
10430	    break
10431	  fi
10432	  done
10433	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10434	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10435	    # so we don't have lib.a shared libs to link our executables.
10436	    # We have to force runtime linking in this case.
10437	    aix_use_runtimelinking=yes
10438	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10439	  fi
10440	  ;;
10441	esac
10442
10443	exp_sym_flag='-bexport'
10444	no_entry_flag='-bnoentry'
10445      fi
10446
10447      # When large executables or shared objects are built, AIX ld can
10448      # have problems creating the table of contents.  If linking a library
10449      # or program results in "error TOC overflow" add -mminimal-toc to
10450      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10451      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10452
10453      archive_cmds=''
10454      hardcode_direct=yes
10455      hardcode_direct_absolute=yes
10456      hardcode_libdir_separator=':'
10457      link_all_deplibs=yes
10458      file_list_spec='$wl-f,'
10459      case $with_aix_soname,$aix_use_runtimelinking in
10460      aix,*) ;; # traditional, no import file
10461      svr4,* | *,yes) # use import file
10462	# The Import File defines what to hardcode.
10463	hardcode_direct=no
10464	hardcode_direct_absolute=no
10465	;;
10466      esac
10467
10468      if test yes = "$GCC"; then
10469	case $host_os in aix4.[012]|aix4.[012].*)
10470	# We only want to do this on AIX 4.2 and lower, the check
10471	# below for broken collect2 doesn't work under 4.3+
10472	  collect2name=`$CC -print-prog-name=collect2`
10473	  if test -f "$collect2name" &&
10474	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10475	  then
10476	  # We have reworked collect2
10477	  :
10478	  else
10479	  # We have old collect2
10480	  hardcode_direct=unsupported
10481	  # It fails to find uninstalled libraries when the uninstalled
10482	  # path is not listed in the libpath.  Setting hardcode_minus_L
10483	  # to unsupported forces relinking
10484	  hardcode_minus_L=yes
10485	  hardcode_libdir_flag_spec='-L$libdir'
10486	  hardcode_libdir_separator=
10487	  fi
10488	  ;;
10489	esac
10490	shared_flag='-shared'
10491	if test yes = "$aix_use_runtimelinking"; then
10492	  shared_flag="$shared_flag "'$wl-G'
10493	fi
10494	# Need to ensure runtime linking is disabled for the traditional
10495	# shared library, or the linker may eventually find shared libraries
10496	# /with/ Import File - we do not want to mix them.
10497	shared_flag_aix='-shared'
10498	shared_flag_svr4='-shared $wl-G'
10499      else
10500	# not using gcc
10501	if test ia64 = "$host_cpu"; then
10502	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10503	# chokes on -Wl,-G. The following line is correct:
10504	  shared_flag='-G'
10505	else
10506	  if test yes = "$aix_use_runtimelinking"; then
10507	    shared_flag='$wl-G'
10508	  else
10509	    shared_flag='$wl-bM:SRE'
10510	  fi
10511	  shared_flag_aix='$wl-bM:SRE'
10512	  shared_flag_svr4='$wl-G'
10513	fi
10514      fi
10515
10516      export_dynamic_flag_spec='$wl-bexpall'
10517      # It seems that -bexpall does not export symbols beginning with
10518      # underscore (_), so it is better to generate a list of symbols to export.
10519      always_export_symbols=yes
10520      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10521	# Warning - without using the other runtime loading flags (-brtl),
10522	# -berok will link without error, but may produce a broken library.
10523	allow_undefined_flag='-berok'
10524        # Determine the default libpath from the value encoded in an
10525        # empty executable.
10526        if test set = "${lt_cv_aix_libpath+set}"; then
10527  aix_libpath=$lt_cv_aix_libpath
10528else
10529  if test ${lt_cv_aix_libpath_+y}
10530then :
10531  printf %s "(cached) " >&6
10532else $as_nop
10533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534/* end confdefs.h.  */
10535
10536int
10537main (void)
10538{
10539
10540  ;
10541  return 0;
10542}
10543_ACEOF
10544if ac_fn_c_try_link "$LINENO"
10545then :
10546
10547  lt_aix_libpath_sed='
10548      /Import File Strings/,/^$/ {
10549	  /^0/ {
10550	      s/^0  *\([^ ]*\) *$/\1/
10551	      p
10552	  }
10553      }'
10554  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10555  # Check for a 64-bit object if we didn't find anything.
10556  if test -z "$lt_cv_aix_libpath_"; then
10557    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10558  fi
10559fi
10560rm -f core conftest.err conftest.$ac_objext conftest.beam \
10561    conftest$ac_exeext conftest.$ac_ext
10562  if test -z "$lt_cv_aix_libpath_"; then
10563    lt_cv_aix_libpath_=/usr/lib:/lib
10564  fi
10565
10566fi
10567
10568  aix_libpath=$lt_cv_aix_libpath_
10569fi
10570
10571        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10572        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
10573      else
10574	if test ia64 = "$host_cpu"; then
10575	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10576	  allow_undefined_flag="-z nodefs"
10577	  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"
10578	else
10579	 # Determine the default libpath from the value encoded in an
10580	 # empty executable.
10581	 if test set = "${lt_cv_aix_libpath+set}"; then
10582  aix_libpath=$lt_cv_aix_libpath
10583else
10584  if test ${lt_cv_aix_libpath_+y}
10585then :
10586  printf %s "(cached) " >&6
10587else $as_nop
10588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h.  */
10590
10591int
10592main (void)
10593{
10594
10595  ;
10596  return 0;
10597}
10598_ACEOF
10599if ac_fn_c_try_link "$LINENO"
10600then :
10601
10602  lt_aix_libpath_sed='
10603      /Import File Strings/,/^$/ {
10604	  /^0/ {
10605	      s/^0  *\([^ ]*\) *$/\1/
10606	      p
10607	  }
10608      }'
10609  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10610  # Check for a 64-bit object if we didn't find anything.
10611  if test -z "$lt_cv_aix_libpath_"; then
10612    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10613  fi
10614fi
10615rm -f core conftest.err conftest.$ac_objext conftest.beam \
10616    conftest$ac_exeext conftest.$ac_ext
10617  if test -z "$lt_cv_aix_libpath_"; then
10618    lt_cv_aix_libpath_=/usr/lib:/lib
10619  fi
10620
10621fi
10622
10623  aix_libpath=$lt_cv_aix_libpath_
10624fi
10625
10626	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10627	  # Warning - without using the other run time loading flags,
10628	  # -berok will link without error, but may produce a broken library.
10629	  no_undefined_flag=' $wl-bernotok'
10630	  allow_undefined_flag=' $wl-berok'
10631	  if test yes = "$with_gnu_ld"; then
10632	    # We only use this code for GNU lds that support --whole-archive.
10633	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10634	  else
10635	    # Exported symbols can be pulled into shared objects from archives
10636	    whole_archive_flag_spec='$convenience'
10637	  fi
10638	  archive_cmds_need_lc=yes
10639	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10640	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10641	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10642	  if test svr4 != "$with_aix_soname"; then
10643	    # This is similar to how AIX traditionally builds its shared libraries.
10644	    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'
10645	  fi
10646	  if test aix != "$with_aix_soname"; then
10647	    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'
10648	  else
10649	    # used by -dlpreopen to get the symbols
10650	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10651	  fi
10652	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10653	fi
10654      fi
10655      ;;
10656
10657    amigaos*)
10658      case $host_cpu in
10659      powerpc)
10660            # see comment about AmigaOS4 .so support
10661            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10662            archive_expsym_cmds=''
10663        ;;
10664      m68k)
10665            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)'
10666            hardcode_libdir_flag_spec='-L$libdir'
10667            hardcode_minus_L=yes
10668        ;;
10669      esac
10670      ;;
10671
10672    bsdi[45]*)
10673      export_dynamic_flag_spec=-rdynamic
10674      ;;
10675
10676    cygwin* | mingw* | pw32* | cegcc*)
10677      # When not using gcc, we currently assume that we are using
10678      # Microsoft Visual C++ or Intel C++ Compiler.
10679      # hardcode_libdir_flag_spec is actually meaningless, as there is
10680      # no search path for DLLs.
10681      case $cc_basename in
10682      cl* | icl*)
10683	# Native MSVC or ICC
10684	hardcode_libdir_flag_spec=' '
10685	allow_undefined_flag=unsupported
10686	always_export_symbols=yes
10687	file_list_spec='@'
10688	# Tell ltmain to make .lib files, not .a files.
10689	libext=lib
10690	# Tell ltmain to make .dll files, not .so files.
10691	shrext_cmds=.dll
10692	# FIXME: Setting linknames here is a bad hack.
10693	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10694	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10695            cp "$export_symbols" "$output_objdir/$soname.def";
10696            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10697          else
10698            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10699          fi~
10700          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10701          linknames='
10702	# The linker will not automatically build a static lib if we build a DLL.
10703	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10704	enable_shared_with_static_runtimes=yes
10705	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10706	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10707	# Don't use ranlib
10708	old_postinstall_cmds='chmod 644 $oldlib'
10709	postlink_cmds='lt_outputfile="@OUTPUT@"~
10710          lt_tool_outputfile="@TOOL_OUTPUT@"~
10711          case $lt_outputfile in
10712            *.exe|*.EXE) ;;
10713            *)
10714              lt_outputfile=$lt_outputfile.exe
10715              lt_tool_outputfile=$lt_tool_outputfile.exe
10716              ;;
10717          esac~
10718          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10719            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10720            $RM "$lt_outputfile.manifest";
10721          fi'
10722	;;
10723      *)
10724	# Assume MSVC and ICC wrapper
10725	hardcode_libdir_flag_spec=' '
10726	allow_undefined_flag=unsupported
10727	# Tell ltmain to make .lib files, not .a files.
10728	libext=lib
10729	# Tell ltmain to make .dll files, not .so files.
10730	shrext_cmds=.dll
10731	# FIXME: Setting linknames here is a bad hack.
10732	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10733	# The linker will automatically build a .lib file if we build a DLL.
10734	old_archive_from_new_cmds='true'
10735	# FIXME: Should let the user specify the lib program.
10736	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10737	enable_shared_with_static_runtimes=yes
10738	;;
10739      esac
10740      ;;
10741
10742    darwin* | rhapsody*)
10743
10744
10745  archive_cmds_need_lc=no
10746  hardcode_direct=no
10747  hardcode_automatic=yes
10748  hardcode_shlibpath_var=unsupported
10749  if test yes = "$lt_cv_ld_force_load"; then
10750    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\"`'
10751
10752  else
10753    whole_archive_flag_spec=''
10754  fi
10755  link_all_deplibs=yes
10756  allow_undefined_flag=$_lt_dar_allow_undefined
10757  case $cc_basename in
10758     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10759     *) _lt_dar_can_shared=$GCC ;;
10760  esac
10761  if test yes = "$_lt_dar_can_shared"; then
10762    output_verbose_link_cmd=func_echo_all
10763    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10764    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10765    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"
10766    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"
10767
10768  else
10769  ld_shlibs=no
10770  fi
10771
10772      ;;
10773
10774    dgux*)
10775      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10776      hardcode_libdir_flag_spec='-L$libdir'
10777      hardcode_shlibpath_var=no
10778      ;;
10779
10780    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10781    # support.  Future versions do this automatically, but an explicit c++rt0.o
10782    # does not break anything, and helps significantly (at the cost of a little
10783    # extra space).
10784    freebsd2.2*)
10785      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10786      hardcode_libdir_flag_spec='-R$libdir'
10787      hardcode_direct=yes
10788      hardcode_shlibpath_var=no
10789      ;;
10790
10791    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10792    freebsd2.*)
10793      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10794      hardcode_direct=yes
10795      hardcode_minus_L=yes
10796      hardcode_shlibpath_var=no
10797      ;;
10798
10799    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10800    freebsd* | dragonfly* | midnightbsd*)
10801      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10802      hardcode_libdir_flag_spec='-R$libdir'
10803      hardcode_direct=yes
10804      hardcode_shlibpath_var=no
10805      ;;
10806
10807    hpux9*)
10808      if test yes = "$GCC"; then
10809	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'
10810      else
10811	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'
10812      fi
10813      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10814      hardcode_libdir_separator=:
10815      hardcode_direct=yes
10816
10817      # hardcode_minus_L: Not really in the search PATH,
10818      # but as the default location of the library.
10819      hardcode_minus_L=yes
10820      export_dynamic_flag_spec='$wl-E'
10821      ;;
10822
10823    hpux10*)
10824      if test yes,no = "$GCC,$with_gnu_ld"; then
10825	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10826      else
10827	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10828      fi
10829      if test no = "$with_gnu_ld"; then
10830	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10831	hardcode_libdir_separator=:
10832	hardcode_direct=yes
10833	hardcode_direct_absolute=yes
10834	export_dynamic_flag_spec='$wl-E'
10835	# hardcode_minus_L: Not really in the search PATH,
10836	# but as the default location of the library.
10837	hardcode_minus_L=yes
10838      fi
10839      ;;
10840
10841    hpux11*)
10842      if test yes,no = "$GCC,$with_gnu_ld"; then
10843	case $host_cpu in
10844	hppa*64*)
10845	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10846	  ;;
10847	ia64*)
10848	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10849	  ;;
10850	*)
10851	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10852	  ;;
10853	esac
10854      else
10855	case $host_cpu in
10856	hppa*64*)
10857	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10858	  ;;
10859	ia64*)
10860	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10861	  ;;
10862	*)
10863
10864	  # Older versions of the 11.00 compiler do not understand -b yet
10865	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10866	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10867printf %s "checking if $CC understands -b... " >&6; }
10868if test ${lt_cv_prog_compiler__b+y}
10869then :
10870  printf %s "(cached) " >&6
10871else $as_nop
10872  lt_cv_prog_compiler__b=no
10873   save_LDFLAGS=$LDFLAGS
10874   LDFLAGS="$LDFLAGS -b"
10875   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10876   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10877     # The linker can only warn and ignore the option if not recognized
10878     # So say no if there are warnings
10879     if test -s conftest.err; then
10880       # Append any errors to the config.log.
10881       cat conftest.err 1>&5
10882       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10883       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10884       if diff conftest.exp conftest.er2 >/dev/null; then
10885         lt_cv_prog_compiler__b=yes
10886       fi
10887     else
10888       lt_cv_prog_compiler__b=yes
10889     fi
10890   fi
10891   $RM -r conftest*
10892   LDFLAGS=$save_LDFLAGS
10893
10894fi
10895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10896printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10897
10898if test yes = "$lt_cv_prog_compiler__b"; then
10899    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10900else
10901    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10902fi
10903
10904	  ;;
10905	esac
10906      fi
10907      if test no = "$with_gnu_ld"; then
10908	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10909	hardcode_libdir_separator=:
10910
10911	case $host_cpu in
10912	hppa*64*|ia64*)
10913	  hardcode_direct=no
10914	  hardcode_shlibpath_var=no
10915	  ;;
10916	*)
10917	  hardcode_direct=yes
10918	  hardcode_direct_absolute=yes
10919	  export_dynamic_flag_spec='$wl-E'
10920
10921	  # hardcode_minus_L: Not really in the search PATH,
10922	  # but as the default location of the library.
10923	  hardcode_minus_L=yes
10924	  ;;
10925	esac
10926      fi
10927      ;;
10928
10929    irix5* | irix6* | nonstopux*)
10930      if test yes = "$GCC"; then
10931	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'
10932	# Try to use the -exported_symbol ld option, if it does not
10933	# work, assume that -exports_file does not work either and
10934	# implicitly export all symbols.
10935	# This should be the same for all languages, so no per-tag cache variable.
10936	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10937printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10938if test ${lt_cv_irix_exported_symbol+y}
10939then :
10940  printf %s "(cached) " >&6
10941else $as_nop
10942  save_LDFLAGS=$LDFLAGS
10943	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10944	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945/* end confdefs.h.  */
10946int foo (void) { return 0; }
10947_ACEOF
10948if ac_fn_c_try_link "$LINENO"
10949then :
10950  lt_cv_irix_exported_symbol=yes
10951else $as_nop
10952  lt_cv_irix_exported_symbol=no
10953fi
10954rm -f core conftest.err conftest.$ac_objext conftest.beam \
10955    conftest$ac_exeext conftest.$ac_ext
10956           LDFLAGS=$save_LDFLAGS
10957fi
10958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10959printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10960	if test yes = "$lt_cv_irix_exported_symbol"; then
10961          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'
10962	fi
10963      else
10964	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'
10965	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'
10966      fi
10967      archive_cmds_need_lc='no'
10968      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10969      hardcode_libdir_separator=:
10970      inherit_rpath=yes
10971      link_all_deplibs=yes
10972      ;;
10973
10974    linux*)
10975      case $cc_basename in
10976      tcc*)
10977	# Fabrice Bellard et al's Tiny C Compiler
10978	ld_shlibs=yes
10979	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10980	;;
10981      esac
10982      ;;
10983
10984    netbsd*)
10985      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10986	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10987      else
10988	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10989      fi
10990      hardcode_libdir_flag_spec='-R$libdir'
10991      hardcode_direct=yes
10992      hardcode_shlibpath_var=no
10993      ;;
10994
10995    newsos6)
10996      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10997      hardcode_direct=yes
10998      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10999      hardcode_libdir_separator=:
11000      hardcode_shlibpath_var=no
11001      ;;
11002
11003    *nto* | *qnx*)
11004      ;;
11005
11006    openbsd* | bitrig*)
11007      if test -f /usr/libexec/ld.so; then
11008	hardcode_direct=yes
11009	hardcode_shlibpath_var=no
11010	hardcode_direct_absolute=yes
11011	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11012	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11013	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11014	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11015	  export_dynamic_flag_spec='$wl-E'
11016	else
11017	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11018	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11019	fi
11020      else
11021	ld_shlibs=no
11022      fi
11023      ;;
11024
11025    os2*)
11026      hardcode_libdir_flag_spec='-L$libdir'
11027      hardcode_minus_L=yes
11028      allow_undefined_flag=unsupported
11029      shrext_cmds=.dll
11030      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11031	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11032	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11033	$ECHO EXPORTS >> $output_objdir/$libname.def~
11034	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11035	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11036	emximp -o $lib $output_objdir/$libname.def'
11037      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11038	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11039	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11040	$ECHO EXPORTS >> $output_objdir/$libname.def~
11041	prefix_cmds="$SED"~
11042	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11043	  prefix_cmds="$prefix_cmds -e 1d";
11044	fi~
11045	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11046	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11047	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11048	emximp -o $lib $output_objdir/$libname.def'
11049      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11050      enable_shared_with_static_runtimes=yes
11051      file_list_spec='@'
11052      ;;
11053
11054    osf3*)
11055      if test yes = "$GCC"; then
11056	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11057	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'
11058      else
11059	allow_undefined_flag=' -expect_unresolved \*'
11060	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'
11061      fi
11062      archive_cmds_need_lc='no'
11063      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11064      hardcode_libdir_separator=:
11065      ;;
11066
11067    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11068      if test yes = "$GCC"; then
11069	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11070	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'
11071	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11072      else
11073	allow_undefined_flag=' -expect_unresolved \*'
11074	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'
11075	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~
11076          $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'
11077
11078	# Both c and cxx compiler support -rpath directly
11079	hardcode_libdir_flag_spec='-rpath $libdir'
11080      fi
11081      archive_cmds_need_lc='no'
11082      hardcode_libdir_separator=:
11083      ;;
11084
11085    solaris*)
11086      no_undefined_flag=' -z defs'
11087      if test yes = "$GCC"; then
11088	wlarc='$wl'
11089	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11090	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11091          $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'
11092      else
11093	case `$CC -V 2>&1` in
11094	*"Compilers 5.0"*)
11095	  wlarc=''
11096	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11097	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11098            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11099	  ;;
11100	*)
11101	  wlarc='$wl'
11102	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11103	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11104            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11105	  ;;
11106	esac
11107      fi
11108      hardcode_libdir_flag_spec='-R$libdir'
11109      hardcode_shlibpath_var=no
11110      case $host_os in
11111      solaris2.[0-5] | solaris2.[0-5].*) ;;
11112      *)
11113	# The compiler driver will combine and reorder linker options,
11114	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11115	# but is careful enough not to reorder.
11116	# Supported since Solaris 2.6 (maybe 2.5.1?)
11117	if test yes = "$GCC"; then
11118	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11119	else
11120	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11121	fi
11122	;;
11123      esac
11124      link_all_deplibs=yes
11125      ;;
11126
11127    sunos4*)
11128      if test sequent = "$host_vendor"; then
11129	# Use $CC to link under sequent, because it throws in some extra .o
11130	# files that make .init and .fini sections work.
11131	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11132      else
11133	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11134      fi
11135      hardcode_libdir_flag_spec='-L$libdir'
11136      hardcode_direct=yes
11137      hardcode_minus_L=yes
11138      hardcode_shlibpath_var=no
11139      ;;
11140
11141    sysv4)
11142      case $host_vendor in
11143	sni)
11144	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11145	  hardcode_direct=yes # is this really true???
11146	;;
11147	siemens)
11148	  ## LD is ld it makes a PLAMLIB
11149	  ## CC just makes a GrossModule.
11150	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11151	  reload_cmds='$CC -r -o $output$reload_objs'
11152	  hardcode_direct=no
11153        ;;
11154	motorola)
11155	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11156	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11157	;;
11158      esac
11159      runpath_var='LD_RUN_PATH'
11160      hardcode_shlibpath_var=no
11161      ;;
11162
11163    sysv4.3*)
11164      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11165      hardcode_shlibpath_var=no
11166      export_dynamic_flag_spec='-Bexport'
11167      ;;
11168
11169    sysv4*MP*)
11170      if test -d /usr/nec; then
11171	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11172	hardcode_shlibpath_var=no
11173	runpath_var=LD_RUN_PATH
11174	hardcode_runpath_var=yes
11175	ld_shlibs=yes
11176      fi
11177      ;;
11178
11179    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11180      no_undefined_flag='$wl-z,text'
11181      archive_cmds_need_lc=no
11182      hardcode_shlibpath_var=no
11183      runpath_var='LD_RUN_PATH'
11184
11185      if test yes = "$GCC"; then
11186	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11187	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11188      else
11189	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11190	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11191      fi
11192      ;;
11193
11194    sysv5* | sco3.2v5* | sco5v6*)
11195      # Note: We CANNOT use -z defs as we might desire, because we do not
11196      # link with -lc, and that would cause any symbols used from libc to
11197      # always be unresolved, which means just about no library would
11198      # ever link correctly.  If we're not using GNU ld we use -z text
11199      # though, which does catch some bad symbols but isn't as heavy-handed
11200      # as -z defs.
11201      no_undefined_flag='$wl-z,text'
11202      allow_undefined_flag='$wl-z,nodefs'
11203      archive_cmds_need_lc=no
11204      hardcode_shlibpath_var=no
11205      hardcode_libdir_flag_spec='$wl-R,$libdir'
11206      hardcode_libdir_separator=':'
11207      link_all_deplibs=yes
11208      export_dynamic_flag_spec='$wl-Bexport'
11209      runpath_var='LD_RUN_PATH'
11210
11211      if test yes = "$GCC"; then
11212	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11213	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11214      else
11215	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11216	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11217      fi
11218      ;;
11219
11220    uts4*)
11221      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11222      hardcode_libdir_flag_spec='-L$libdir'
11223      hardcode_shlibpath_var=no
11224      ;;
11225
11226    *)
11227      ld_shlibs=no
11228      ;;
11229    esac
11230
11231    if test sni = "$host_vendor"; then
11232      case $host in
11233      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11234	export_dynamic_flag_spec='$wl-Blargedynsym'
11235	;;
11236      esac
11237    fi
11238  fi
11239
11240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11241printf "%s\n" "$ld_shlibs" >&6; }
11242test no = "$ld_shlibs" && can_build_shared=no
11243
11244with_gnu_ld=$with_gnu_ld
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260#
11261# Do we need to explicitly link libc?
11262#
11263case "x$archive_cmds_need_lc" in
11264x|xyes)
11265  # Assume -lc should be added
11266  archive_cmds_need_lc=yes
11267
11268  if test yes,yes = "$GCC,$enable_shared"; then
11269    case $archive_cmds in
11270    *'~'*)
11271      # FIXME: we may have to deal with multi-command sequences.
11272      ;;
11273    '$CC '*)
11274      # Test whether the compiler implicitly links with -lc since on some
11275      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11276      # to ld, don't add -lc before -lgcc.
11277      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11278printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11279if test ${lt_cv_archive_cmds_need_lc+y}
11280then :
11281  printf %s "(cached) " >&6
11282else $as_nop
11283  $RM conftest*
11284	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11285
11286	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11287  (eval $ac_compile) 2>&5
11288  ac_status=$?
11289  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290  test $ac_status = 0; } 2>conftest.err; then
11291	  soname=conftest
11292	  lib=conftest
11293	  libobjs=conftest.$ac_objext
11294	  deplibs=
11295	  wl=$lt_prog_compiler_wl
11296	  pic_flag=$lt_prog_compiler_pic
11297	  compiler_flags=-v
11298	  linker_flags=-v
11299	  verstring=
11300	  output_objdir=.
11301	  libname=conftest
11302	  lt_save_allow_undefined_flag=$allow_undefined_flag
11303	  allow_undefined_flag=
11304	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11305  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11306  ac_status=$?
11307  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11308  test $ac_status = 0; }
11309	  then
11310	    lt_cv_archive_cmds_need_lc=no
11311	  else
11312	    lt_cv_archive_cmds_need_lc=yes
11313	  fi
11314	  allow_undefined_flag=$lt_save_allow_undefined_flag
11315	else
11316	  cat conftest.err 1>&5
11317	fi
11318	$RM conftest*
11319
11320fi
11321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11322printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11323      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11324      ;;
11325    esac
11326  fi
11327  ;;
11328esac
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11482printf %s "checking dynamic linker characteristics... " >&6; }
11483
11484if test yes = "$GCC"; then
11485  case $host_os in
11486    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11487    *) lt_awk_arg='/^libraries:/' ;;
11488  esac
11489  case $host_os in
11490    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11491    *) lt_sed_strip_eq='s|=/|/|g' ;;
11492  esac
11493  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11494  case $lt_search_path_spec in
11495  *\;*)
11496    # if the path contains ";" then we assume it to be the separator
11497    # otherwise default to the standard path separator (i.e. ":") - it is
11498    # assumed that no part of a normal pathname contains ";" but that should
11499    # okay in the real world where ";" in dirpaths is itself problematic.
11500    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11501    ;;
11502  *)
11503    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11504    ;;
11505  esac
11506  # Ok, now we have the path, separated by spaces, we can step through it
11507  # and add multilib dir if necessary...
11508  lt_tmp_lt_search_path_spec=
11509  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11510  # ...but if some path component already ends with the multilib dir we assume
11511  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11512  case "$lt_multi_os_dir; $lt_search_path_spec " in
11513  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11514    lt_multi_os_dir=
11515    ;;
11516  esac
11517  for lt_sys_path in $lt_search_path_spec; do
11518    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11519      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11520    elif test -n "$lt_multi_os_dir"; then
11521      test -d "$lt_sys_path" && \
11522	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11523    fi
11524  done
11525  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11526BEGIN {RS = " "; FS = "/|\n";} {
11527  lt_foo = "";
11528  lt_count = 0;
11529  for (lt_i = NF; lt_i > 0; lt_i--) {
11530    if ($lt_i != "" && $lt_i != ".") {
11531      if ($lt_i == "..") {
11532        lt_count++;
11533      } else {
11534        if (lt_count == 0) {
11535          lt_foo = "/" $lt_i lt_foo;
11536        } else {
11537          lt_count--;
11538        }
11539      }
11540    }
11541  }
11542  if (lt_foo != "") { lt_freq[lt_foo]++; }
11543  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11544}'`
11545  # AWK program above erroneously prepends '/' to C:/dos/paths
11546  # for these hosts.
11547  case $host_os in
11548    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11549      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11550  esac
11551  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11552else
11553  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11554fi
11555library_names_spec=
11556libname_spec='lib$name'
11557soname_spec=
11558shrext_cmds=.so
11559postinstall_cmds=
11560postuninstall_cmds=
11561finish_cmds=
11562finish_eval=
11563shlibpath_var=
11564shlibpath_overrides_runpath=unknown
11565version_type=none
11566dynamic_linker="$host_os ld.so"
11567sys_lib_dlsearch_path_spec="/lib /usr/lib"
11568need_lib_prefix=unknown
11569hardcode_into_libs=no
11570
11571# when you set need_version to no, make sure it does not cause -set_version
11572# flags to be left without arguments
11573need_version=unknown
11574
11575
11576
11577case $host_os in
11578aix3*)
11579  version_type=linux # correct to gnu/linux during the next big refactor
11580  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11581  shlibpath_var=LIBPATH
11582
11583  # AIX 3 has no versioning support, so we append a major version to the name.
11584  soname_spec='$libname$release$shared_ext$major'
11585  ;;
11586
11587aix[4-9]*)
11588  version_type=linux # correct to gnu/linux during the next big refactor
11589  need_lib_prefix=no
11590  need_version=no
11591  hardcode_into_libs=yes
11592  if test ia64 = "$host_cpu"; then
11593    # AIX 5 supports IA64
11594    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11595    shlibpath_var=LD_LIBRARY_PATH
11596  else
11597    # With GCC up to 2.95.x, collect2 would create an import file
11598    # for dependence libraries.  The import file would start with
11599    # the line '#! .'.  This would cause the generated library to
11600    # depend on '.', always an invalid library.  This was fixed in
11601    # development snapshots of GCC prior to 3.0.
11602    case $host_os in
11603      aix4 | aix4.[01] | aix4.[01].*)
11604      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11605	   echo ' yes '
11606	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11607	:
11608      else
11609	can_build_shared=no
11610      fi
11611      ;;
11612    esac
11613    # Using Import Files as archive members, it is possible to support
11614    # filename-based versioning of shared library archives on AIX. While
11615    # this would work for both with and without runtime linking, it will
11616    # prevent static linking of such archives. So we do filename-based
11617    # shared library versioning with .so extension only, which is used
11618    # when both runtime linking and shared linking is enabled.
11619    # Unfortunately, runtime linking may impact performance, so we do
11620    # not want this to be the default eventually. Also, we use the
11621    # versioned .so libs for executables only if there is the -brtl
11622    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11623    # To allow for filename-based versioning support, we need to create
11624    # libNAME.so.V as an archive file, containing:
11625    # *) an Import File, referring to the versioned filename of the
11626    #    archive as well as the shared archive member, telling the
11627    #    bitwidth (32 or 64) of that shared object, and providing the
11628    #    list of exported symbols of that shared object, eventually
11629    #    decorated with the 'weak' keyword
11630    # *) the shared object with the F_LOADONLY flag set, to really avoid
11631    #    it being seen by the linker.
11632    # At run time we better use the real file rather than another symlink,
11633    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11634
11635    case $with_aix_soname,$aix_use_runtimelinking in
11636    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11637    # soname into executable. Probably we can add versioning support to
11638    # collect2, so additional links can be useful in future.
11639    aix,yes) # traditional libtool
11640      dynamic_linker='AIX unversionable lib.so'
11641      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11642      # instead of lib<name>.a to let people know that these are not
11643      # typical AIX shared libraries.
11644      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11645      ;;
11646    aix,no) # traditional AIX only
11647      dynamic_linker='AIX lib.a(lib.so.V)'
11648      # We preserve .a as extension for shared libraries through AIX4.2
11649      # and later when we are not doing run time linking.
11650      library_names_spec='$libname$release.a $libname.a'
11651      soname_spec='$libname$release$shared_ext$major'
11652      ;;
11653    svr4,*) # full svr4 only
11654      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11655      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11656      # We do not specify a path in Import Files, so LIBPATH fires.
11657      shlibpath_overrides_runpath=yes
11658      ;;
11659    *,yes) # both, prefer svr4
11660      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11661      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11662      # unpreferred sharedlib libNAME.a needs extra handling
11663      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"'
11664      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"'
11665      # We do not specify a path in Import Files, so LIBPATH fires.
11666      shlibpath_overrides_runpath=yes
11667      ;;
11668    *,no) # both, prefer aix
11669      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11670      library_names_spec='$libname$release.a $libname.a'
11671      soname_spec='$libname$release$shared_ext$major'
11672      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11673      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)'
11674      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"'
11675      ;;
11676    esac
11677    shlibpath_var=LIBPATH
11678  fi
11679  ;;
11680
11681amigaos*)
11682  case $host_cpu in
11683  powerpc)
11684    # Since July 2007 AmigaOS4 officially supports .so libraries.
11685    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11686    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687    ;;
11688  m68k)
11689    library_names_spec='$libname.ixlibrary $libname.a'
11690    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11691    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'
11692    ;;
11693  esac
11694  ;;
11695
11696beos*)
11697  library_names_spec='$libname$shared_ext'
11698  dynamic_linker="$host_os ld.so"
11699  shlibpath_var=LIBRARY_PATH
11700  ;;
11701
11702bsdi[45]*)
11703  version_type=linux # correct to gnu/linux during the next big refactor
11704  need_version=no
11705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706  soname_spec='$libname$release$shared_ext$major'
11707  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11708  shlibpath_var=LD_LIBRARY_PATH
11709  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11710  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11711  # the default ld.so.conf also contains /usr/contrib/lib and
11712  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11713  # libtool to hard-code these into programs
11714  ;;
11715
11716cygwin* | mingw* | pw32* | cegcc*)
11717  version_type=windows
11718  shrext_cmds=.dll
11719  need_version=no
11720  need_lib_prefix=no
11721
11722  case $GCC,$cc_basename in
11723  yes,*)
11724    # gcc
11725    library_names_spec='$libname.dll.a'
11726    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11727    postinstall_cmds='base_file=`basename \$file`~
11728      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11729      dldir=$destdir/`dirname \$dlpath`~
11730      test -d \$dldir || mkdir -p \$dldir~
11731      $install_prog $dir/$dlname \$dldir/$dlname~
11732      chmod a+x \$dldir/$dlname~
11733      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11734        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11735      fi'
11736    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11737      dlpath=$dir/\$dldll~
11738       $RM \$dlpath'
11739    shlibpath_overrides_runpath=yes
11740
11741    case $host_os in
11742    cygwin*)
11743      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11744      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11745
11746      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11747      ;;
11748    mingw* | cegcc*)
11749      # MinGW DLLs use traditional 'lib' prefix
11750      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11751      ;;
11752    pw32*)
11753      # pw32 DLLs use 'pw' prefix rather than 'lib'
11754      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11755      ;;
11756    esac
11757    dynamic_linker='Win32 ld.exe'
11758    ;;
11759
11760  *,cl* | *,icl*)
11761    # Native MSVC or ICC
11762    libname_spec='$name'
11763    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11764    library_names_spec='$libname.dll.lib'
11765
11766    case $build_os in
11767    mingw*)
11768      sys_lib_search_path_spec=
11769      lt_save_ifs=$IFS
11770      IFS=';'
11771      for lt_path in $LIB
11772      do
11773        IFS=$lt_save_ifs
11774        # Let DOS variable expansion print the short 8.3 style file name.
11775        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11776        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11777      done
11778      IFS=$lt_save_ifs
11779      # Convert to MSYS style.
11780      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11781      ;;
11782    cygwin*)
11783      # Convert to unix form, then to dos form, then back to unix form
11784      # but this time dos style (no spaces!) so that the unix form looks
11785      # like /cygdrive/c/PROGRA~1:/cygdr...
11786      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11787      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11788      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11789      ;;
11790    *)
11791      sys_lib_search_path_spec=$LIB
11792      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11793        # It is most probably a Windows format PATH.
11794        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11795      else
11796        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11797      fi
11798      # FIXME: find the short name or the path components, as spaces are
11799      # common. (e.g. "Program Files" -> "PROGRA~1")
11800      ;;
11801    esac
11802
11803    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11804    postinstall_cmds='base_file=`basename \$file`~
11805      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11806      dldir=$destdir/`dirname \$dlpath`~
11807      test -d \$dldir || mkdir -p \$dldir~
11808      $install_prog $dir/$dlname \$dldir/$dlname'
11809    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11810      dlpath=$dir/\$dldll~
11811       $RM \$dlpath'
11812    shlibpath_overrides_runpath=yes
11813    dynamic_linker='Win32 link.exe'
11814    ;;
11815
11816  *)
11817    # Assume MSVC and ICC wrapper
11818    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11819    dynamic_linker='Win32 ld.exe'
11820    ;;
11821  esac
11822  # FIXME: first we should search . and the directory the executable is in
11823  shlibpath_var=PATH
11824  ;;
11825
11826darwin* | rhapsody*)
11827  dynamic_linker="$host_os dyld"
11828  version_type=darwin
11829  need_lib_prefix=no
11830  need_version=no
11831  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11832  soname_spec='$libname$release$major$shared_ext'
11833  shlibpath_overrides_runpath=yes
11834  shlibpath_var=DYLD_LIBRARY_PATH
11835  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11836
11837  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11838  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11839  ;;
11840
11841dgux*)
11842  version_type=linux # correct to gnu/linux during the next big refactor
11843  need_lib_prefix=no
11844  need_version=no
11845  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11846  soname_spec='$libname$release$shared_ext$major'
11847  shlibpath_var=LD_LIBRARY_PATH
11848  ;;
11849
11850freebsd* | dragonfly* | midnightbsd*)
11851  # DragonFly does not have aout.  When/if they implement a new
11852  # versioning mechanism, adjust this.
11853  if test -x /usr/bin/objformat; then
11854    objformat=`/usr/bin/objformat`
11855  else
11856    case $host_os in
11857    freebsd[23].*) objformat=aout ;;
11858    *) objformat=elf ;;
11859    esac
11860  fi
11861  version_type=freebsd-$objformat
11862  case $version_type in
11863    freebsd-elf*)
11864      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11865      soname_spec='$libname$release$shared_ext$major'
11866      need_version=no
11867      need_lib_prefix=no
11868      ;;
11869    freebsd-*)
11870      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11871      need_version=yes
11872      ;;
11873  esac
11874  shlibpath_var=LD_LIBRARY_PATH
11875  case $host_os in
11876  freebsd2.*)
11877    shlibpath_overrides_runpath=yes
11878    ;;
11879  freebsd3.[01]* | freebsdelf3.[01]*)
11880    shlibpath_overrides_runpath=yes
11881    hardcode_into_libs=yes
11882    ;;
11883  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11884  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11885    shlibpath_overrides_runpath=no
11886    hardcode_into_libs=yes
11887    ;;
11888  *) # from 4.6 on, and DragonFly
11889    shlibpath_overrides_runpath=yes
11890    hardcode_into_libs=yes
11891    ;;
11892  esac
11893  ;;
11894
11895haiku*)
11896  version_type=linux # correct to gnu/linux during the next big refactor
11897  need_lib_prefix=no
11898  need_version=no
11899  dynamic_linker="$host_os runtime_loader"
11900  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901  soname_spec='$libname$release$shared_ext$major'
11902  shlibpath_var=LIBRARY_PATH
11903  shlibpath_overrides_runpath=no
11904  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11905  hardcode_into_libs=yes
11906  ;;
11907
11908hpux9* | hpux10* | hpux11*)
11909  # Give a soname corresponding to the major version so that dld.sl refuses to
11910  # link against other versions.
11911  version_type=sunos
11912  need_lib_prefix=no
11913  need_version=no
11914  case $host_cpu in
11915  ia64*)
11916    shrext_cmds='.so'
11917    hardcode_into_libs=yes
11918    dynamic_linker="$host_os dld.so"
11919    shlibpath_var=LD_LIBRARY_PATH
11920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11921    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11922    soname_spec='$libname$release$shared_ext$major'
11923    if test 32 = "$HPUX_IA64_MODE"; then
11924      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11925      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11926    else
11927      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11928      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11929    fi
11930    ;;
11931  hppa*64*)
11932    shrext_cmds='.sl'
11933    hardcode_into_libs=yes
11934    dynamic_linker="$host_os dld.sl"
11935    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11936    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11937    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11938    soname_spec='$libname$release$shared_ext$major'
11939    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11940    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11941    ;;
11942  *)
11943    shrext_cmds='.sl'
11944    dynamic_linker="$host_os dld.sl"
11945    shlibpath_var=SHLIB_PATH
11946    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11947    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11948    soname_spec='$libname$release$shared_ext$major'
11949    ;;
11950  esac
11951  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11952  postinstall_cmds='chmod 555 $lib'
11953  # or fails outright, so override atomically:
11954  install_override_mode=555
11955  ;;
11956
11957interix[3-9]*)
11958  version_type=linux # correct to gnu/linux during the next big refactor
11959  need_lib_prefix=no
11960  need_version=no
11961  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11962  soname_spec='$libname$release$shared_ext$major'
11963  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11964  shlibpath_var=LD_LIBRARY_PATH
11965  shlibpath_overrides_runpath=no
11966  hardcode_into_libs=yes
11967  ;;
11968
11969irix5* | irix6* | nonstopux*)
11970  case $host_os in
11971    nonstopux*) version_type=nonstopux ;;
11972    *)
11973	if test yes = "$lt_cv_prog_gnu_ld"; then
11974		version_type=linux # correct to gnu/linux during the next big refactor
11975	else
11976		version_type=irix
11977	fi ;;
11978  esac
11979  need_lib_prefix=no
11980  need_version=no
11981  soname_spec='$libname$release$shared_ext$major'
11982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11983  case $host_os in
11984  irix5* | nonstopux*)
11985    libsuff= shlibsuff=
11986    ;;
11987  *)
11988    case $LD in # libtool.m4 will add one of these switches to LD
11989    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11990      libsuff= shlibsuff= libmagic=32-bit;;
11991    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11992      libsuff=32 shlibsuff=N32 libmagic=N32;;
11993    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11994      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11995    *) libsuff= shlibsuff= libmagic=never-match;;
11996    esac
11997    ;;
11998  esac
11999  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12000  shlibpath_overrides_runpath=no
12001  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12002  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12003  hardcode_into_libs=yes
12004  ;;
12005
12006# No shared lib support for Linux oldld, aout, or coff.
12007linux*oldld* | linux*aout* | linux*coff*)
12008  dynamic_linker=no
12009  ;;
12010
12011linux*android*)
12012  version_type=none # Android doesn't support versioned libraries.
12013  need_lib_prefix=no
12014  need_version=no
12015  library_names_spec='$libname$release$shared_ext'
12016  soname_spec='$libname$release$shared_ext'
12017  finish_cmds=
12018  shlibpath_var=LD_LIBRARY_PATH
12019  shlibpath_overrides_runpath=yes
12020
12021  # This implies no fast_install, which is unacceptable.
12022  # Some rework will be needed to allow for fast_install
12023  # before this can be enabled.
12024  hardcode_into_libs=yes
12025
12026  dynamic_linker='Android linker'
12027  # Don't embed -rpath directories since the linker doesn't support them.
12028  hardcode_libdir_flag_spec='-L$libdir'
12029  ;;
12030
12031# This must be glibc/ELF.
12032linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12033  version_type=linux # correct to gnu/linux during the next big refactor
12034  need_lib_prefix=no
12035  need_version=no
12036  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12037  soname_spec='$libname$release$shared_ext$major'
12038  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12039  shlibpath_var=LD_LIBRARY_PATH
12040  shlibpath_overrides_runpath=no
12041
12042  # Some binutils ld are patched to set DT_RUNPATH
12043  if test ${lt_cv_shlibpath_overrides_runpath+y}
12044then :
12045  printf %s "(cached) " >&6
12046else $as_nop
12047  lt_cv_shlibpath_overrides_runpath=no
12048    save_LDFLAGS=$LDFLAGS
12049    save_libdir=$libdir
12050    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12051	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053/* end confdefs.h.  */
12054
12055int
12056main (void)
12057{
12058
12059  ;
12060  return 0;
12061}
12062_ACEOF
12063if ac_fn_c_try_link "$LINENO"
12064then :
12065  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12066then :
12067  lt_cv_shlibpath_overrides_runpath=yes
12068fi
12069fi
12070rm -f core conftest.err conftest.$ac_objext conftest.beam \
12071    conftest$ac_exeext conftest.$ac_ext
12072    LDFLAGS=$save_LDFLAGS
12073    libdir=$save_libdir
12074
12075fi
12076
12077  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12078
12079  # This implies no fast_install, which is unacceptable.
12080  # Some rework will be needed to allow for fast_install
12081  # before this can be enabled.
12082  hardcode_into_libs=yes
12083
12084  # Ideally, we could use ldconfig to report *all* directores which are
12085  # searched for libraries, however this is still not possible.  Aside from not
12086  # being certain /sbin/ldconfig is available, command
12087  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12088  # even though it is searched at run-time.  Try to do the best guess by
12089  # appending ld.so.conf contents (and includes) to the search path.
12090  if test -f /etc/ld.so.conf; then
12091    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' ' '`
12092    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12093  fi
12094
12095  # We used to test for /lib/ld.so.1 and disable shared libraries on
12096  # powerpc, because MkLinux only supported shared libraries with the
12097  # GNU dynamic linker.  Since this was broken with cross compilers,
12098  # most powerpc-linux boxes support dynamic linking these days and
12099  # people can always --disable-shared, the test was removed, and we
12100  # assume the GNU/Linux dynamic linker is in use.
12101  dynamic_linker='GNU/Linux ld.so'
12102  ;;
12103
12104netbsd*)
12105  version_type=sunos
12106  need_lib_prefix=no
12107  need_version=no
12108  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12109    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12110    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12111    dynamic_linker='NetBSD (a.out) ld.so'
12112  else
12113    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12114    soname_spec='$libname$release$shared_ext$major'
12115    dynamic_linker='NetBSD ld.elf_so'
12116  fi
12117  shlibpath_var=LD_LIBRARY_PATH
12118  shlibpath_overrides_runpath=yes
12119  hardcode_into_libs=yes
12120  ;;
12121
12122newsos6)
12123  version_type=linux # correct to gnu/linux during the next big refactor
12124  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12125  shlibpath_var=LD_LIBRARY_PATH
12126  shlibpath_overrides_runpath=yes
12127  ;;
12128
12129*nto* | *qnx*)
12130  version_type=qnx
12131  need_lib_prefix=no
12132  need_version=no
12133  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12134  soname_spec='$libname$release$shared_ext$major'
12135  shlibpath_var=LD_LIBRARY_PATH
12136  shlibpath_overrides_runpath=no
12137  hardcode_into_libs=yes
12138  dynamic_linker='ldqnx.so'
12139  ;;
12140
12141openbsd* | bitrig*)
12142  version_type=sunos
12143  sys_lib_dlsearch_path_spec=/usr/lib
12144  need_lib_prefix=no
12145  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12146    need_version=no
12147  else
12148    need_version=yes
12149  fi
12150  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12151  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12152  shlibpath_var=LD_LIBRARY_PATH
12153  shlibpath_overrides_runpath=yes
12154  ;;
12155
12156os2*)
12157  libname_spec='$name'
12158  version_type=windows
12159  shrext_cmds=.dll
12160  need_version=no
12161  need_lib_prefix=no
12162  # OS/2 can only load a DLL with a base name of 8 characters or less.
12163  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12164    v=$($ECHO $release$versuffix | tr -d .-);
12165    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12166    $ECHO $n$v`$shared_ext'
12167  library_names_spec='${libname}_dll.$libext'
12168  dynamic_linker='OS/2 ld.exe'
12169  shlibpath_var=BEGINLIBPATH
12170  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12171  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12172  postinstall_cmds='base_file=`basename \$file`~
12173    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12174    dldir=$destdir/`dirname \$dlpath`~
12175    test -d \$dldir || mkdir -p \$dldir~
12176    $install_prog $dir/$dlname \$dldir/$dlname~
12177    chmod a+x \$dldir/$dlname~
12178    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12179      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12180    fi'
12181  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12182    dlpath=$dir/\$dldll~
12183    $RM \$dlpath'
12184  ;;
12185
12186osf3* | osf4* | osf5*)
12187  version_type=osf
12188  need_lib_prefix=no
12189  need_version=no
12190  soname_spec='$libname$release$shared_ext$major'
12191  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12192  shlibpath_var=LD_LIBRARY_PATH
12193  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12194  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12195  ;;
12196
12197rdos*)
12198  dynamic_linker=no
12199  ;;
12200
12201solaris*)
12202  version_type=linux # correct to gnu/linux during the next big refactor
12203  need_lib_prefix=no
12204  need_version=no
12205  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12206  soname_spec='$libname$release$shared_ext$major'
12207  shlibpath_var=LD_LIBRARY_PATH
12208  shlibpath_overrides_runpath=yes
12209  hardcode_into_libs=yes
12210  # ldd complains unless libraries are executable
12211  postinstall_cmds='chmod +x $lib'
12212  ;;
12213
12214sunos4*)
12215  version_type=sunos
12216  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12217  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12218  shlibpath_var=LD_LIBRARY_PATH
12219  shlibpath_overrides_runpath=yes
12220  if test yes = "$with_gnu_ld"; then
12221    need_lib_prefix=no
12222  fi
12223  need_version=yes
12224  ;;
12225
12226sysv4 | sysv4.3*)
12227  version_type=linux # correct to gnu/linux during the next big refactor
12228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229  soname_spec='$libname$release$shared_ext$major'
12230  shlibpath_var=LD_LIBRARY_PATH
12231  case $host_vendor in
12232    sni)
12233      shlibpath_overrides_runpath=no
12234      need_lib_prefix=no
12235      runpath_var=LD_RUN_PATH
12236      ;;
12237    siemens)
12238      need_lib_prefix=no
12239      ;;
12240    motorola)
12241      need_lib_prefix=no
12242      need_version=no
12243      shlibpath_overrides_runpath=no
12244      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12245      ;;
12246  esac
12247  ;;
12248
12249sysv4*MP*)
12250  if test -d /usr/nec; then
12251    version_type=linux # correct to gnu/linux during the next big refactor
12252    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12253    soname_spec='$libname$shared_ext.$major'
12254    shlibpath_var=LD_LIBRARY_PATH
12255  fi
12256  ;;
12257
12258sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12259  version_type=sco
12260  need_lib_prefix=no
12261  need_version=no
12262  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12263  soname_spec='$libname$release$shared_ext$major'
12264  shlibpath_var=LD_LIBRARY_PATH
12265  shlibpath_overrides_runpath=yes
12266  hardcode_into_libs=yes
12267  if test yes = "$with_gnu_ld"; then
12268    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12269  else
12270    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12271    case $host_os in
12272      sco3.2v5*)
12273        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12274	;;
12275    esac
12276  fi
12277  sys_lib_dlsearch_path_spec='/usr/lib'
12278  ;;
12279
12280tpf*)
12281  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12282  version_type=linux # correct to gnu/linux during the next big refactor
12283  need_lib_prefix=no
12284  need_version=no
12285  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12286  shlibpath_var=LD_LIBRARY_PATH
12287  shlibpath_overrides_runpath=no
12288  hardcode_into_libs=yes
12289  ;;
12290
12291uts4*)
12292  version_type=linux # correct to gnu/linux during the next big refactor
12293  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12294  soname_spec='$libname$release$shared_ext$major'
12295  shlibpath_var=LD_LIBRARY_PATH
12296  ;;
12297
12298*)
12299  dynamic_linker=no
12300  ;;
12301esac
12302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12303printf "%s\n" "$dynamic_linker" >&6; }
12304test no = "$dynamic_linker" && can_build_shared=no
12305
12306variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12307if test yes = "$GCC"; then
12308  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12309fi
12310
12311if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12312  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12313fi
12314
12315if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12316  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12317fi
12318
12319# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12320configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12321
12322# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12323func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12324
12325# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12326configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12425printf %s "checking how to hardcode library paths into programs... " >&6; }
12426hardcode_action=
12427if test -n "$hardcode_libdir_flag_spec" ||
12428   test -n "$runpath_var" ||
12429   test yes = "$hardcode_automatic"; then
12430
12431  # We can hardcode non-existent directories.
12432  if test no != "$hardcode_direct" &&
12433     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12434     # have to relink, otherwise we might link with an installed library
12435     # when we should be linking with a yet-to-be-installed one
12436     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12437     test no != "$hardcode_minus_L"; then
12438    # Linking always hardcodes the temporary library directory.
12439    hardcode_action=relink
12440  else
12441    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12442    hardcode_action=immediate
12443  fi
12444else
12445  # We cannot hardcode anything, or else we can only hardcode existing
12446  # directories.
12447  hardcode_action=unsupported
12448fi
12449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12450printf "%s\n" "$hardcode_action" >&6; }
12451
12452if test relink = "$hardcode_action" ||
12453   test yes = "$inherit_rpath"; then
12454  # Fast installation is not supported
12455  enable_fast_install=no
12456elif test yes = "$shlibpath_overrides_runpath" ||
12457     test no = "$enable_shared"; then
12458  # Fast installation is not necessary
12459  enable_fast_install=needless
12460fi
12461
12462
12463
12464
12465
12466
12467  if test yes != "$enable_dlopen"; then
12468  enable_dlopen=unknown
12469  enable_dlopen_self=unknown
12470  enable_dlopen_self_static=unknown
12471else
12472  lt_cv_dlopen=no
12473  lt_cv_dlopen_libs=
12474
12475  case $host_os in
12476  beos*)
12477    lt_cv_dlopen=load_add_on
12478    lt_cv_dlopen_libs=
12479    lt_cv_dlopen_self=yes
12480    ;;
12481
12482  mingw* | pw32* | cegcc*)
12483    lt_cv_dlopen=LoadLibrary
12484    lt_cv_dlopen_libs=
12485    ;;
12486
12487  cygwin*)
12488    lt_cv_dlopen=dlopen
12489    lt_cv_dlopen_libs=
12490    ;;
12491
12492  darwin*)
12493    # if libdl is installed we need to link against it
12494    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12495printf %s "checking for dlopen in -ldl... " >&6; }
12496if test ${ac_cv_lib_dl_dlopen+y}
12497then :
12498  printf %s "(cached) " >&6
12499else $as_nop
12500  ac_check_lib_save_LIBS=$LIBS
12501LIBS="-ldl  $LIBS"
12502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503/* end confdefs.h.  */
12504
12505/* Override any GCC internal prototype to avoid an error.
12506   Use char because int might match the return type of a GCC
12507   builtin and then its argument prototype would still apply.  */
12508char dlopen ();
12509int
12510main (void)
12511{
12512return dlopen ();
12513  ;
12514  return 0;
12515}
12516_ACEOF
12517if ac_fn_c_try_link "$LINENO"
12518then :
12519  ac_cv_lib_dl_dlopen=yes
12520else $as_nop
12521  ac_cv_lib_dl_dlopen=no
12522fi
12523rm -f core conftest.err conftest.$ac_objext conftest.beam \
12524    conftest$ac_exeext conftest.$ac_ext
12525LIBS=$ac_check_lib_save_LIBS
12526fi
12527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12528printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12529if test "x$ac_cv_lib_dl_dlopen" = xyes
12530then :
12531  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12532else $as_nop
12533
12534    lt_cv_dlopen=dyld
12535    lt_cv_dlopen_libs=
12536    lt_cv_dlopen_self=yes
12537
12538fi
12539
12540    ;;
12541
12542  tpf*)
12543    # Don't try to run any link tests for TPF.  We know it's impossible
12544    # because TPF is a cross-compiler, and we know how we open DSOs.
12545    lt_cv_dlopen=dlopen
12546    lt_cv_dlopen_libs=
12547    lt_cv_dlopen_self=no
12548    ;;
12549
12550  *)
12551    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12552if test "x$ac_cv_func_shl_load" = xyes
12553then :
12554  lt_cv_dlopen=shl_load
12555else $as_nop
12556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12557printf %s "checking for shl_load in -ldld... " >&6; }
12558if test ${ac_cv_lib_dld_shl_load+y}
12559then :
12560  printf %s "(cached) " >&6
12561else $as_nop
12562  ac_check_lib_save_LIBS=$LIBS
12563LIBS="-ldld  $LIBS"
12564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565/* end confdefs.h.  */
12566
12567/* Override any GCC internal prototype to avoid an error.
12568   Use char because int might match the return type of a GCC
12569   builtin and then its argument prototype would still apply.  */
12570char shl_load ();
12571int
12572main (void)
12573{
12574return shl_load ();
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_c_try_link "$LINENO"
12580then :
12581  ac_cv_lib_dld_shl_load=yes
12582else $as_nop
12583  ac_cv_lib_dld_shl_load=no
12584fi
12585rm -f core conftest.err conftest.$ac_objext conftest.beam \
12586    conftest$ac_exeext conftest.$ac_ext
12587LIBS=$ac_check_lib_save_LIBS
12588fi
12589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12590printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12591if test "x$ac_cv_lib_dld_shl_load" = xyes
12592then :
12593  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12594else $as_nop
12595  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12596if test "x$ac_cv_func_dlopen" = xyes
12597then :
12598  lt_cv_dlopen=dlopen
12599else $as_nop
12600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12601printf %s "checking for dlopen in -ldl... " >&6; }
12602if test ${ac_cv_lib_dl_dlopen+y}
12603then :
12604  printf %s "(cached) " >&6
12605else $as_nop
12606  ac_check_lib_save_LIBS=$LIBS
12607LIBS="-ldl  $LIBS"
12608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609/* end confdefs.h.  */
12610
12611/* Override any GCC internal prototype to avoid an error.
12612   Use char because int might match the return type of a GCC
12613   builtin and then its argument prototype would still apply.  */
12614char dlopen ();
12615int
12616main (void)
12617{
12618return dlopen ();
12619  ;
12620  return 0;
12621}
12622_ACEOF
12623if ac_fn_c_try_link "$LINENO"
12624then :
12625  ac_cv_lib_dl_dlopen=yes
12626else $as_nop
12627  ac_cv_lib_dl_dlopen=no
12628fi
12629rm -f core conftest.err conftest.$ac_objext conftest.beam \
12630    conftest$ac_exeext conftest.$ac_ext
12631LIBS=$ac_check_lib_save_LIBS
12632fi
12633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12634printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12635if test "x$ac_cv_lib_dl_dlopen" = xyes
12636then :
12637  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12638else $as_nop
12639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12640printf %s "checking for dlopen in -lsvld... " >&6; }
12641if test ${ac_cv_lib_svld_dlopen+y}
12642then :
12643  printf %s "(cached) " >&6
12644else $as_nop
12645  ac_check_lib_save_LIBS=$LIBS
12646LIBS="-lsvld  $LIBS"
12647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648/* end confdefs.h.  */
12649
12650/* Override any GCC internal prototype to avoid an error.
12651   Use char because int might match the return type of a GCC
12652   builtin and then its argument prototype would still apply.  */
12653char dlopen ();
12654int
12655main (void)
12656{
12657return dlopen ();
12658  ;
12659  return 0;
12660}
12661_ACEOF
12662if ac_fn_c_try_link "$LINENO"
12663then :
12664  ac_cv_lib_svld_dlopen=yes
12665else $as_nop
12666  ac_cv_lib_svld_dlopen=no
12667fi
12668rm -f core conftest.err conftest.$ac_objext conftest.beam \
12669    conftest$ac_exeext conftest.$ac_ext
12670LIBS=$ac_check_lib_save_LIBS
12671fi
12672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12673printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12674if test "x$ac_cv_lib_svld_dlopen" = xyes
12675then :
12676  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12677else $as_nop
12678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12679printf %s "checking for dld_link in -ldld... " >&6; }
12680if test ${ac_cv_lib_dld_dld_link+y}
12681then :
12682  printf %s "(cached) " >&6
12683else $as_nop
12684  ac_check_lib_save_LIBS=$LIBS
12685LIBS="-ldld  $LIBS"
12686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687/* end confdefs.h.  */
12688
12689/* Override any GCC internal prototype to avoid an error.
12690   Use char because int might match the return type of a GCC
12691   builtin and then its argument prototype would still apply.  */
12692char dld_link ();
12693int
12694main (void)
12695{
12696return dld_link ();
12697  ;
12698  return 0;
12699}
12700_ACEOF
12701if ac_fn_c_try_link "$LINENO"
12702then :
12703  ac_cv_lib_dld_dld_link=yes
12704else $as_nop
12705  ac_cv_lib_dld_dld_link=no
12706fi
12707rm -f core conftest.err conftest.$ac_objext conftest.beam \
12708    conftest$ac_exeext conftest.$ac_ext
12709LIBS=$ac_check_lib_save_LIBS
12710fi
12711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12712printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12713if test "x$ac_cv_lib_dld_dld_link" = xyes
12714then :
12715  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12716fi
12717
12718
12719fi
12720
12721
12722fi
12723
12724
12725fi
12726
12727
12728fi
12729
12730
12731fi
12732
12733    ;;
12734  esac
12735
12736  if test no = "$lt_cv_dlopen"; then
12737    enable_dlopen=no
12738  else
12739    enable_dlopen=yes
12740  fi
12741
12742  case $lt_cv_dlopen in
12743  dlopen)
12744    save_CPPFLAGS=$CPPFLAGS
12745    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12746
12747    save_LDFLAGS=$LDFLAGS
12748    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12749
12750    save_LIBS=$LIBS
12751    LIBS="$lt_cv_dlopen_libs $LIBS"
12752
12753    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12754printf %s "checking whether a program can dlopen itself... " >&6; }
12755if test ${lt_cv_dlopen_self+y}
12756then :
12757  printf %s "(cached) " >&6
12758else $as_nop
12759  	  if test yes = "$cross_compiling"; then :
12760  lt_cv_dlopen_self=cross
12761else
12762  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12763  lt_status=$lt_dlunknown
12764  cat > conftest.$ac_ext <<_LT_EOF
12765#line $LINENO "configure"
12766#include "confdefs.h"
12767
12768#if HAVE_DLFCN_H
12769#include <dlfcn.h>
12770#endif
12771
12772#include <stdio.h>
12773
12774#ifdef RTLD_GLOBAL
12775#  define LT_DLGLOBAL		RTLD_GLOBAL
12776#else
12777#  ifdef DL_GLOBAL
12778#    define LT_DLGLOBAL		DL_GLOBAL
12779#  else
12780#    define LT_DLGLOBAL		0
12781#  endif
12782#endif
12783
12784/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12785   find out it does not work in some platform. */
12786#ifndef LT_DLLAZY_OR_NOW
12787#  ifdef RTLD_LAZY
12788#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12789#  else
12790#    ifdef DL_LAZY
12791#      define LT_DLLAZY_OR_NOW		DL_LAZY
12792#    else
12793#      ifdef RTLD_NOW
12794#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12795#      else
12796#        ifdef DL_NOW
12797#          define LT_DLLAZY_OR_NOW	DL_NOW
12798#        else
12799#          define LT_DLLAZY_OR_NOW	0
12800#        endif
12801#      endif
12802#    endif
12803#  endif
12804#endif
12805
12806/* When -fvisibility=hidden is used, assume the code has been annotated
12807   correspondingly for the symbols needed.  */
12808#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12809int fnord () __attribute__((visibility("default")));
12810#endif
12811
12812int fnord () { return 42; }
12813int main ()
12814{
12815  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12816  int status = $lt_dlunknown;
12817
12818  if (self)
12819    {
12820      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12821      else
12822        {
12823	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12824          else puts (dlerror ());
12825	}
12826      /* dlclose (self); */
12827    }
12828  else
12829    puts (dlerror ());
12830
12831  return status;
12832}
12833_LT_EOF
12834  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12835  (eval $ac_link) 2>&5
12836  ac_status=$?
12837  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12838  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12839    (./conftest; exit; ) >&5 2>/dev/null
12840    lt_status=$?
12841    case x$lt_status in
12842      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12843      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12844      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12845    esac
12846  else :
12847    # compilation failed
12848    lt_cv_dlopen_self=no
12849  fi
12850fi
12851rm -fr conftest*
12852
12853
12854fi
12855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12856printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12857
12858    if test yes = "$lt_cv_dlopen_self"; then
12859      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12860      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12861printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12862if test ${lt_cv_dlopen_self_static+y}
12863then :
12864  printf %s "(cached) " >&6
12865else $as_nop
12866  	  if test yes = "$cross_compiling"; then :
12867  lt_cv_dlopen_self_static=cross
12868else
12869  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12870  lt_status=$lt_dlunknown
12871  cat > conftest.$ac_ext <<_LT_EOF
12872#line $LINENO "configure"
12873#include "confdefs.h"
12874
12875#if HAVE_DLFCN_H
12876#include <dlfcn.h>
12877#endif
12878
12879#include <stdio.h>
12880
12881#ifdef RTLD_GLOBAL
12882#  define LT_DLGLOBAL		RTLD_GLOBAL
12883#else
12884#  ifdef DL_GLOBAL
12885#    define LT_DLGLOBAL		DL_GLOBAL
12886#  else
12887#    define LT_DLGLOBAL		0
12888#  endif
12889#endif
12890
12891/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12892   find out it does not work in some platform. */
12893#ifndef LT_DLLAZY_OR_NOW
12894#  ifdef RTLD_LAZY
12895#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12896#  else
12897#    ifdef DL_LAZY
12898#      define LT_DLLAZY_OR_NOW		DL_LAZY
12899#    else
12900#      ifdef RTLD_NOW
12901#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12902#      else
12903#        ifdef DL_NOW
12904#          define LT_DLLAZY_OR_NOW	DL_NOW
12905#        else
12906#          define LT_DLLAZY_OR_NOW	0
12907#        endif
12908#      endif
12909#    endif
12910#  endif
12911#endif
12912
12913/* When -fvisibility=hidden is used, assume the code has been annotated
12914   correspondingly for the symbols needed.  */
12915#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12916int fnord () __attribute__((visibility("default")));
12917#endif
12918
12919int fnord () { return 42; }
12920int main ()
12921{
12922  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12923  int status = $lt_dlunknown;
12924
12925  if (self)
12926    {
12927      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12928      else
12929        {
12930	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12931          else puts (dlerror ());
12932	}
12933      /* dlclose (self); */
12934    }
12935  else
12936    puts (dlerror ());
12937
12938  return status;
12939}
12940_LT_EOF
12941  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12942  (eval $ac_link) 2>&5
12943  ac_status=$?
12944  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12946    (./conftest; exit; ) >&5 2>/dev/null
12947    lt_status=$?
12948    case x$lt_status in
12949      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12950      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12951      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12952    esac
12953  else :
12954    # compilation failed
12955    lt_cv_dlopen_self_static=no
12956  fi
12957fi
12958rm -fr conftest*
12959
12960
12961fi
12962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12963printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12964    fi
12965
12966    CPPFLAGS=$save_CPPFLAGS
12967    LDFLAGS=$save_LDFLAGS
12968    LIBS=$save_LIBS
12969    ;;
12970  esac
12971
12972  case $lt_cv_dlopen_self in
12973  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12974  *) enable_dlopen_self=unknown ;;
12975  esac
12976
12977  case $lt_cv_dlopen_self_static in
12978  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12979  *) enable_dlopen_self_static=unknown ;;
12980  esac
12981fi
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999striplib=
13000old_striplib=
13001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13002printf %s "checking whether stripping libraries is possible... " >&6; }
13003if test -z "$STRIP"; then
13004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005printf "%s\n" "no" >&6; }
13006else
13007  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13008    old_striplib="$STRIP --strip-debug"
13009    striplib="$STRIP --strip-unneeded"
13010    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13011printf "%s\n" "yes" >&6; }
13012  else
13013    case $host_os in
13014    darwin*)
13015      # FIXME - insert some real tests, host_os isn't really good enough
13016      striplib="$STRIP -x"
13017      old_striplib="$STRIP -S"
13018      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019printf "%s\n" "yes" >&6; }
13020      ;;
13021    freebsd*)
13022      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13023        old_striplib="$STRIP --strip-debug"
13024        striplib="$STRIP --strip-unneeded"
13025        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13026printf "%s\n" "yes" >&6; }
13027      else
13028        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029printf "%s\n" "no" >&6; }
13030      fi
13031      ;;
13032    *)
13033      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034printf "%s\n" "no" >&6; }
13035      ;;
13036    esac
13037  fi
13038fi
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051  # Report what library types will actually be built
13052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13053printf %s "checking if libtool supports shared libraries... " >&6; }
13054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13055printf "%s\n" "$can_build_shared" >&6; }
13056
13057  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13058printf %s "checking whether to build shared libraries... " >&6; }
13059  test no = "$can_build_shared" && enable_shared=no
13060
13061  # On AIX, shared libraries and static libraries use the same namespace, and
13062  # are all built from PIC.
13063  case $host_os in
13064  aix3*)
13065    test yes = "$enable_shared" && enable_static=no
13066    if test -n "$RANLIB"; then
13067      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13068      postinstall_cmds='$RANLIB $lib'
13069    fi
13070    ;;
13071
13072  aix[4-9]*)
13073    if test ia64 != "$host_cpu"; then
13074      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13075      yes,aix,yes) ;;			# shared object as lib.so file only
13076      yes,svr4,*) ;;			# shared object as lib.so archive member only
13077      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13078      esac
13079    fi
13080    ;;
13081  esac
13082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13083printf "%s\n" "$enable_shared" >&6; }
13084
13085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13086printf %s "checking whether to build static libraries... " >&6; }
13087  # Make sure either enable_shared or enable_static is yes.
13088  test yes = "$enable_shared" || enable_static=yes
13089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13090printf "%s\n" "$enable_static" >&6; }
13091
13092
13093
13094
13095fi
13096ac_ext=c
13097ac_cpp='$CPP $CPPFLAGS'
13098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13100ac_compiler_gnu=$ac_cv_c_compiler_gnu
13101
13102CC=$lt_save_CC
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118        ac_config_commands="$ac_config_commands libtool"
13119
13120
13121
13122
13123# Only expand once:
13124
13125
13126
13127# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13141printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13142if test ${ac_cv_c_undeclared_builtin_options+y}
13143then :
13144  printf %s "(cached) " >&6
13145else $as_nop
13146  ac_save_CFLAGS=$CFLAGS
13147   ac_cv_c_undeclared_builtin_options='cannot detect'
13148   for ac_arg in '' -fno-builtin; do
13149     CFLAGS="$ac_save_CFLAGS $ac_arg"
13150     # This test program should *not* compile successfully.
13151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152/* end confdefs.h.  */
13153
13154int
13155main (void)
13156{
13157(void) strchr;
13158  ;
13159  return 0;
13160}
13161_ACEOF
13162if ac_fn_c_try_compile "$LINENO"
13163then :
13164
13165else $as_nop
13166  # This test program should compile successfully.
13167        # No library function is consistently available on
13168        # freestanding implementations, so test against a dummy
13169        # declaration.  Include always-available headers on the
13170        # off chance that they somehow elicit warnings.
13171        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172/* end confdefs.h.  */
13173#include <float.h>
13174#include <limits.h>
13175#include <stdarg.h>
13176#include <stddef.h>
13177extern void ac_decl (int, char *);
13178
13179int
13180main (void)
13181{
13182(void) ac_decl (0, (char *) 0);
13183  (void) ac_decl;
13184
13185  ;
13186  return 0;
13187}
13188_ACEOF
13189if ac_fn_c_try_compile "$LINENO"
13190then :
13191  if test x"$ac_arg" = x
13192then :
13193  ac_cv_c_undeclared_builtin_options='none needed'
13194else $as_nop
13195  ac_cv_c_undeclared_builtin_options=$ac_arg
13196fi
13197          break
13198fi
13199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13200fi
13201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13202    done
13203    CFLAGS=$ac_save_CFLAGS
13204
13205fi
13206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13207printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13208  case $ac_cv_c_undeclared_builtin_options in #(
13209  'cannot detect') :
13210    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13211printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13212as_fn_error $? "cannot make $CC report undeclared builtins
13213See \`config.log' for more details" "$LINENO" 5; } ;; #(
13214  'none needed') :
13215    ac_c_undeclared_builtin_options='' ;; #(
13216  *) :
13217    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13218esac
13219
13220
13221
13222
13223
13224ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13225if test "x$ac_cv_have_decl___clang__" = xyes
13226then :
13227  CLANGCC="yes"
13228else $as_nop
13229  CLANGCC="no"
13230fi
13231ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13232if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13233then :
13234  INTELCC="yes"
13235else $as_nop
13236  INTELCC="no"
13237fi
13238ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13239if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13240then :
13241  SUNCC="yes"
13242else $as_nop
13243  SUNCC="no"
13244fi
13245
13246
13247
13248
13249
13250
13251
13252
13253if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13254	if test -n "$ac_tool_prefix"; then
13255  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13256set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258printf %s "checking for $ac_word... " >&6; }
13259if test ${ac_cv_path_PKG_CONFIG+y}
13260then :
13261  printf %s "(cached) " >&6
13262else $as_nop
13263  case $PKG_CONFIG in
13264  [\\/]* | ?:[\\/]*)
13265  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13266  ;;
13267  *)
13268  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269for as_dir in $PATH
13270do
13271  IFS=$as_save_IFS
13272  case $as_dir in #(((
13273    '') as_dir=./ ;;
13274    */) ;;
13275    *) as_dir=$as_dir/ ;;
13276  esac
13277    for ac_exec_ext in '' $ac_executable_extensions; do
13278  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13279    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13280    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13281    break 2
13282  fi
13283done
13284  done
13285IFS=$as_save_IFS
13286
13287  ;;
13288esac
13289fi
13290PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13291if test -n "$PKG_CONFIG"; then
13292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13293printf "%s\n" "$PKG_CONFIG" >&6; }
13294else
13295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296printf "%s\n" "no" >&6; }
13297fi
13298
13299
13300fi
13301if test -z "$ac_cv_path_PKG_CONFIG"; then
13302  ac_pt_PKG_CONFIG=$PKG_CONFIG
13303  # Extract the first word of "pkg-config", so it can be a program name with args.
13304set dummy pkg-config; ac_word=$2
13305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306printf %s "checking for $ac_word... " >&6; }
13307if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13308then :
13309  printf %s "(cached) " >&6
13310else $as_nop
13311  case $ac_pt_PKG_CONFIG in
13312  [\\/]* | ?:[\\/]*)
13313  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13314  ;;
13315  *)
13316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317for as_dir in $PATH
13318do
13319  IFS=$as_save_IFS
13320  case $as_dir in #(((
13321    '') as_dir=./ ;;
13322    */) ;;
13323    *) as_dir=$as_dir/ ;;
13324  esac
13325    for ac_exec_ext in '' $ac_executable_extensions; do
13326  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13327    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13328    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13329    break 2
13330  fi
13331done
13332  done
13333IFS=$as_save_IFS
13334
13335  ;;
13336esac
13337fi
13338ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13339if test -n "$ac_pt_PKG_CONFIG"; then
13340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13341printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13342else
13343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344printf "%s\n" "no" >&6; }
13345fi
13346
13347  if test "x$ac_pt_PKG_CONFIG" = x; then
13348    PKG_CONFIG=""
13349  else
13350    case $cross_compiling:$ac_tool_warned in
13351yes:)
13352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13353printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13354ac_tool_warned=yes ;;
13355esac
13356    PKG_CONFIG=$ac_pt_PKG_CONFIG
13357  fi
13358else
13359  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13360fi
13361
13362fi
13363if test -n "$PKG_CONFIG"; then
13364	_pkg_min_version=0.9.0
13365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13366printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13367	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369printf "%s\n" "yes" >&6; }
13370	else
13371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372printf "%s\n" "no" >&6; }
13373		PKG_CONFIG=""
13374	fi
13375fi
13376
13377
13378
13379
13380
13381# Check whether --enable-selective-werror was given.
13382if test ${enable_selective_werror+y}
13383then :
13384  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13385else $as_nop
13386  SELECTIVE_WERROR=yes
13387fi
13388
13389
13390
13391
13392
13393# -v is too short to test reliably with XORG_TESTSET_CFLAG
13394if test "x$SUNCC" = "xyes"; then
13395    BASE_CFLAGS="-v"
13396else
13397    BASE_CFLAGS=""
13398fi
13399
13400# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414xorg_testset_save_CFLAGS="$CFLAGS"
13415
13416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13420if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13421then :
13422  printf %s "(cached) " >&6
13423else $as_nop
13424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h.  */
13426int i;
13427_ACEOF
13428if ac_fn_c_try_compile "$LINENO"
13429then :
13430  xorg_cv_cc_flag_unknown_warning_option=yes
13431else $as_nop
13432  xorg_cv_cc_flag_unknown_warning_option=no
13433fi
13434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13435fi
13436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13439	CFLAGS="$xorg_testset_save_CFLAGS"
13440fi
13441
13442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13445	fi
13446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13447	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13449if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13450then :
13451  printf %s "(cached) " >&6
13452else $as_nop
13453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454/* end confdefs.h.  */
13455int i;
13456_ACEOF
13457if ac_fn_c_try_compile "$LINENO"
13458then :
13459  xorg_cv_cc_flag_unused_command_line_argument=yes
13460else $as_nop
13461  xorg_cv_cc_flag_unused_command_line_argument=no
13462fi
13463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13464fi
13465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13468	CFLAGS="$xorg_testset_save_CFLAGS"
13469fi
13470
13471found="no"
13472
13473	if test $found = "no" ; then
13474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13476		fi
13477
13478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13480		fi
13481
13482		CFLAGS="$CFLAGS -Wall"
13483
13484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13485printf %s "checking if $CC supports -Wall... " >&6; }
13486		cacheid=xorg_cv_cc_flag__Wall
13487		if eval test \${$cacheid+y}
13488then :
13489  printf %s "(cached) " >&6
13490else $as_nop
13491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492/* end confdefs.h.  */
13493int i;
13494int
13495main (void)
13496{
13497
13498  ;
13499  return 0;
13500}
13501_ACEOF
13502if ac_fn_c_try_link "$LINENO"
13503then :
13504  eval $cacheid=yes
13505else $as_nop
13506  eval $cacheid=no
13507fi
13508rm -f core conftest.err conftest.$ac_objext conftest.beam \
13509    conftest$ac_exeext conftest.$ac_ext
13510fi
13511
13512
13513		CFLAGS="$xorg_testset_save_CFLAGS"
13514
13515		eval supported=\$$cacheid
13516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13517printf "%s\n" "$supported" >&6; }
13518		if test "$supported" = "yes" ; then
13519			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13520			found="yes"
13521		fi
13522	fi
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538xorg_testset_save_CFLAGS="$CFLAGS"
13539
13540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13544if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13545then :
13546  printf %s "(cached) " >&6
13547else $as_nop
13548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549/* end confdefs.h.  */
13550int i;
13551_ACEOF
13552if ac_fn_c_try_compile "$LINENO"
13553then :
13554  xorg_cv_cc_flag_unknown_warning_option=yes
13555else $as_nop
13556  xorg_cv_cc_flag_unknown_warning_option=no
13557fi
13558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13559fi
13560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13563	CFLAGS="$xorg_testset_save_CFLAGS"
13564fi
13565
13566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13569	fi
13570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13573if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13574then :
13575  printf %s "(cached) " >&6
13576else $as_nop
13577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578/* end confdefs.h.  */
13579int i;
13580_ACEOF
13581if ac_fn_c_try_compile "$LINENO"
13582then :
13583  xorg_cv_cc_flag_unused_command_line_argument=yes
13584else $as_nop
13585  xorg_cv_cc_flag_unused_command_line_argument=no
13586fi
13587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13588fi
13589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13592	CFLAGS="$xorg_testset_save_CFLAGS"
13593fi
13594
13595found="no"
13596
13597	if test $found = "no" ; then
13598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13600		fi
13601
13602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13604		fi
13605
13606		CFLAGS="$CFLAGS -Wpointer-arith"
13607
13608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13609printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13610		cacheid=xorg_cv_cc_flag__Wpointer_arith
13611		if eval test \${$cacheid+y}
13612then :
13613  printf %s "(cached) " >&6
13614else $as_nop
13615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h.  */
13617int i;
13618int
13619main (void)
13620{
13621
13622  ;
13623  return 0;
13624}
13625_ACEOF
13626if ac_fn_c_try_link "$LINENO"
13627then :
13628  eval $cacheid=yes
13629else $as_nop
13630  eval $cacheid=no
13631fi
13632rm -f core conftest.err conftest.$ac_objext conftest.beam \
13633    conftest$ac_exeext conftest.$ac_ext
13634fi
13635
13636
13637		CFLAGS="$xorg_testset_save_CFLAGS"
13638
13639		eval supported=\$$cacheid
13640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13641printf "%s\n" "$supported" >&6; }
13642		if test "$supported" = "yes" ; then
13643			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13644			found="yes"
13645		fi
13646	fi
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662xorg_testset_save_CFLAGS="$CFLAGS"
13663
13664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13668if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13669then :
13670  printf %s "(cached) " >&6
13671else $as_nop
13672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673/* end confdefs.h.  */
13674int i;
13675_ACEOF
13676if ac_fn_c_try_compile "$LINENO"
13677then :
13678  xorg_cv_cc_flag_unknown_warning_option=yes
13679else $as_nop
13680  xorg_cv_cc_flag_unknown_warning_option=no
13681fi
13682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13683fi
13684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13687	CFLAGS="$xorg_testset_save_CFLAGS"
13688fi
13689
13690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693	fi
13694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13698then :
13699  printf %s "(cached) " >&6
13700else $as_nop
13701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702/* end confdefs.h.  */
13703int i;
13704_ACEOF
13705if ac_fn_c_try_compile "$LINENO"
13706then :
13707  xorg_cv_cc_flag_unused_command_line_argument=yes
13708else $as_nop
13709  xorg_cv_cc_flag_unused_command_line_argument=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13712fi
13713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13716	CFLAGS="$xorg_testset_save_CFLAGS"
13717fi
13718
13719found="no"
13720
13721	if test $found = "no" ; then
13722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13724		fi
13725
13726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13728		fi
13729
13730		CFLAGS="$CFLAGS -Wmissing-declarations"
13731
13732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13733printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13734		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13735		if eval test \${$cacheid+y}
13736then :
13737  printf %s "(cached) " >&6
13738else $as_nop
13739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740/* end confdefs.h.  */
13741int i;
13742int
13743main (void)
13744{
13745
13746  ;
13747  return 0;
13748}
13749_ACEOF
13750if ac_fn_c_try_link "$LINENO"
13751then :
13752  eval $cacheid=yes
13753else $as_nop
13754  eval $cacheid=no
13755fi
13756rm -f core conftest.err conftest.$ac_objext conftest.beam \
13757    conftest$ac_exeext conftest.$ac_ext
13758fi
13759
13760
13761		CFLAGS="$xorg_testset_save_CFLAGS"
13762
13763		eval supported=\$$cacheid
13764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13765printf "%s\n" "$supported" >&6; }
13766		if test "$supported" = "yes" ; then
13767			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13768			found="yes"
13769		fi
13770	fi
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786xorg_testset_save_CFLAGS="$CFLAGS"
13787
13788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13792if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13793then :
13794  printf %s "(cached) " >&6
13795else $as_nop
13796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797/* end confdefs.h.  */
13798int i;
13799_ACEOF
13800if ac_fn_c_try_compile "$LINENO"
13801then :
13802  xorg_cv_cc_flag_unknown_warning_option=yes
13803else $as_nop
13804  xorg_cv_cc_flag_unknown_warning_option=no
13805fi
13806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13807fi
13808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13811	CFLAGS="$xorg_testset_save_CFLAGS"
13812fi
13813
13814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13817	fi
13818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13821if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13822then :
13823  printf %s "(cached) " >&6
13824else $as_nop
13825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826/* end confdefs.h.  */
13827int i;
13828_ACEOF
13829if ac_fn_c_try_compile "$LINENO"
13830then :
13831  xorg_cv_cc_flag_unused_command_line_argument=yes
13832else $as_nop
13833  xorg_cv_cc_flag_unused_command_line_argument=no
13834fi
13835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13836fi
13837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13840	CFLAGS="$xorg_testset_save_CFLAGS"
13841fi
13842
13843found="no"
13844
13845	if test $found = "no" ; then
13846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13848		fi
13849
13850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13852		fi
13853
13854		CFLAGS="$CFLAGS -Wformat=2"
13855
13856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13857printf %s "checking if $CC supports -Wformat=2... " >&6; }
13858		cacheid=xorg_cv_cc_flag__Wformat_2
13859		if eval test \${$cacheid+y}
13860then :
13861  printf %s "(cached) " >&6
13862else $as_nop
13863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864/* end confdefs.h.  */
13865int i;
13866int
13867main (void)
13868{
13869
13870  ;
13871  return 0;
13872}
13873_ACEOF
13874if ac_fn_c_try_link "$LINENO"
13875then :
13876  eval $cacheid=yes
13877else $as_nop
13878  eval $cacheid=no
13879fi
13880rm -f core conftest.err conftest.$ac_objext conftest.beam \
13881    conftest$ac_exeext conftest.$ac_ext
13882fi
13883
13884
13885		CFLAGS="$xorg_testset_save_CFLAGS"
13886
13887		eval supported=\$$cacheid
13888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13889printf "%s\n" "$supported" >&6; }
13890		if test "$supported" = "yes" ; then
13891			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13892			found="yes"
13893		fi
13894	fi
13895
13896	if test $found = "no" ; then
13897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13899		fi
13900
13901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13903		fi
13904
13905		CFLAGS="$CFLAGS -Wformat"
13906
13907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13908printf %s "checking if $CC supports -Wformat... " >&6; }
13909		cacheid=xorg_cv_cc_flag__Wformat
13910		if eval test \${$cacheid+y}
13911then :
13912  printf %s "(cached) " >&6
13913else $as_nop
13914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915/* end confdefs.h.  */
13916int i;
13917int
13918main (void)
13919{
13920
13921  ;
13922  return 0;
13923}
13924_ACEOF
13925if ac_fn_c_try_link "$LINENO"
13926then :
13927  eval $cacheid=yes
13928else $as_nop
13929  eval $cacheid=no
13930fi
13931rm -f core conftest.err conftest.$ac_objext conftest.beam \
13932    conftest$ac_exeext conftest.$ac_ext
13933fi
13934
13935
13936		CFLAGS="$xorg_testset_save_CFLAGS"
13937
13938		eval supported=\$$cacheid
13939		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13940printf "%s\n" "$supported" >&6; }
13941		if test "$supported" = "yes" ; then
13942			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13943			found="yes"
13944		fi
13945	fi
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963xorg_testset_save_CFLAGS="$CFLAGS"
13964
13965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13970then :
13971  printf %s "(cached) " >&6
13972else $as_nop
13973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974/* end confdefs.h.  */
13975int i;
13976_ACEOF
13977if ac_fn_c_try_compile "$LINENO"
13978then :
13979  xorg_cv_cc_flag_unknown_warning_option=yes
13980else $as_nop
13981  xorg_cv_cc_flag_unknown_warning_option=no
13982fi
13983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13984fi
13985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13988	CFLAGS="$xorg_testset_save_CFLAGS"
13989fi
13990
13991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13994	fi
13995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13998if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13999then :
14000  printf %s "(cached) " >&6
14001else $as_nop
14002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003/* end confdefs.h.  */
14004int i;
14005_ACEOF
14006if ac_fn_c_try_compile "$LINENO"
14007then :
14008  xorg_cv_cc_flag_unused_command_line_argument=yes
14009else $as_nop
14010  xorg_cv_cc_flag_unused_command_line_argument=no
14011fi
14012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14013fi
14014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14017	CFLAGS="$xorg_testset_save_CFLAGS"
14018fi
14019
14020found="no"
14021
14022	if test $found = "no" ; then
14023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14025		fi
14026
14027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14029		fi
14030
14031		CFLAGS="$CFLAGS -Wstrict-prototypes"
14032
14033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14034printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14035		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14036		if eval test \${$cacheid+y}
14037then :
14038  printf %s "(cached) " >&6
14039else $as_nop
14040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041/* end confdefs.h.  */
14042int i;
14043int
14044main (void)
14045{
14046
14047  ;
14048  return 0;
14049}
14050_ACEOF
14051if ac_fn_c_try_link "$LINENO"
14052then :
14053  eval $cacheid=yes
14054else $as_nop
14055  eval $cacheid=no
14056fi
14057rm -f core conftest.err conftest.$ac_objext conftest.beam \
14058    conftest$ac_exeext conftest.$ac_ext
14059fi
14060
14061
14062		CFLAGS="$xorg_testset_save_CFLAGS"
14063
14064		eval supported=\$$cacheid
14065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14066printf "%s\n" "$supported" >&6; }
14067		if test "$supported" = "yes" ; then
14068			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14069			found="yes"
14070		fi
14071	fi
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087xorg_testset_save_CFLAGS="$CFLAGS"
14088
14089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14094then :
14095  printf %s "(cached) " >&6
14096else $as_nop
14097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h.  */
14099int i;
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"
14102then :
14103  xorg_cv_cc_flag_unknown_warning_option=yes
14104else $as_nop
14105  xorg_cv_cc_flag_unknown_warning_option=no
14106fi
14107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14108fi
14109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14112	CFLAGS="$xorg_testset_save_CFLAGS"
14113fi
14114
14115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14118	fi
14119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14123then :
14124  printf %s "(cached) " >&6
14125else $as_nop
14126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127/* end confdefs.h.  */
14128int i;
14129_ACEOF
14130if ac_fn_c_try_compile "$LINENO"
14131then :
14132  xorg_cv_cc_flag_unused_command_line_argument=yes
14133else $as_nop
14134  xorg_cv_cc_flag_unused_command_line_argument=no
14135fi
14136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14137fi
14138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14141	CFLAGS="$xorg_testset_save_CFLAGS"
14142fi
14143
14144found="no"
14145
14146	if test $found = "no" ; then
14147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14149		fi
14150
14151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14153		fi
14154
14155		CFLAGS="$CFLAGS -Wmissing-prototypes"
14156
14157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14158printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14159		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14160		if eval test \${$cacheid+y}
14161then :
14162  printf %s "(cached) " >&6
14163else $as_nop
14164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165/* end confdefs.h.  */
14166int i;
14167int
14168main (void)
14169{
14170
14171  ;
14172  return 0;
14173}
14174_ACEOF
14175if ac_fn_c_try_link "$LINENO"
14176then :
14177  eval $cacheid=yes
14178else $as_nop
14179  eval $cacheid=no
14180fi
14181rm -f core conftest.err conftest.$ac_objext conftest.beam \
14182    conftest$ac_exeext conftest.$ac_ext
14183fi
14184
14185
14186		CFLAGS="$xorg_testset_save_CFLAGS"
14187
14188		eval supported=\$$cacheid
14189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14190printf "%s\n" "$supported" >&6; }
14191		if test "$supported" = "yes" ; then
14192			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14193			found="yes"
14194		fi
14195	fi
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211xorg_testset_save_CFLAGS="$CFLAGS"
14212
14213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14218then :
14219  printf %s "(cached) " >&6
14220else $as_nop
14221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222/* end confdefs.h.  */
14223int i;
14224_ACEOF
14225if ac_fn_c_try_compile "$LINENO"
14226then :
14227  xorg_cv_cc_flag_unknown_warning_option=yes
14228else $as_nop
14229  xorg_cv_cc_flag_unknown_warning_option=no
14230fi
14231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14232fi
14233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14236	CFLAGS="$xorg_testset_save_CFLAGS"
14237fi
14238
14239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14242	fi
14243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14247then :
14248  printf %s "(cached) " >&6
14249else $as_nop
14250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251/* end confdefs.h.  */
14252int i;
14253_ACEOF
14254if ac_fn_c_try_compile "$LINENO"
14255then :
14256  xorg_cv_cc_flag_unused_command_line_argument=yes
14257else $as_nop
14258  xorg_cv_cc_flag_unused_command_line_argument=no
14259fi
14260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14261fi
14262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14265	CFLAGS="$xorg_testset_save_CFLAGS"
14266fi
14267
14268found="no"
14269
14270	if test $found = "no" ; then
14271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14273		fi
14274
14275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14277		fi
14278
14279		CFLAGS="$CFLAGS -Wnested-externs"
14280
14281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14282printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14283		cacheid=xorg_cv_cc_flag__Wnested_externs
14284		if eval test \${$cacheid+y}
14285then :
14286  printf %s "(cached) " >&6
14287else $as_nop
14288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289/* end confdefs.h.  */
14290int i;
14291int
14292main (void)
14293{
14294
14295  ;
14296  return 0;
14297}
14298_ACEOF
14299if ac_fn_c_try_link "$LINENO"
14300then :
14301  eval $cacheid=yes
14302else $as_nop
14303  eval $cacheid=no
14304fi
14305rm -f core conftest.err conftest.$ac_objext conftest.beam \
14306    conftest$ac_exeext conftest.$ac_ext
14307fi
14308
14309
14310		CFLAGS="$xorg_testset_save_CFLAGS"
14311
14312		eval supported=\$$cacheid
14313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14314printf "%s\n" "$supported" >&6; }
14315		if test "$supported" = "yes" ; then
14316			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14317			found="yes"
14318		fi
14319	fi
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335xorg_testset_save_CFLAGS="$CFLAGS"
14336
14337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14342then :
14343  printf %s "(cached) " >&6
14344else $as_nop
14345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346/* end confdefs.h.  */
14347int i;
14348_ACEOF
14349if ac_fn_c_try_compile "$LINENO"
14350then :
14351  xorg_cv_cc_flag_unknown_warning_option=yes
14352else $as_nop
14353  xorg_cv_cc_flag_unknown_warning_option=no
14354fi
14355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14356fi
14357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14360	CFLAGS="$xorg_testset_save_CFLAGS"
14361fi
14362
14363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14366	fi
14367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14371then :
14372  printf %s "(cached) " >&6
14373else $as_nop
14374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375/* end confdefs.h.  */
14376int i;
14377_ACEOF
14378if ac_fn_c_try_compile "$LINENO"
14379then :
14380  xorg_cv_cc_flag_unused_command_line_argument=yes
14381else $as_nop
14382  xorg_cv_cc_flag_unused_command_line_argument=no
14383fi
14384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14385fi
14386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14389	CFLAGS="$xorg_testset_save_CFLAGS"
14390fi
14391
14392found="no"
14393
14394	if test $found = "no" ; then
14395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14397		fi
14398
14399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14401		fi
14402
14403		CFLAGS="$CFLAGS -Wbad-function-cast"
14404
14405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14406printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14407		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14408		if eval test \${$cacheid+y}
14409then :
14410  printf %s "(cached) " >&6
14411else $as_nop
14412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413/* end confdefs.h.  */
14414int i;
14415int
14416main (void)
14417{
14418
14419  ;
14420  return 0;
14421}
14422_ACEOF
14423if ac_fn_c_try_link "$LINENO"
14424then :
14425  eval $cacheid=yes
14426else $as_nop
14427  eval $cacheid=no
14428fi
14429rm -f core conftest.err conftest.$ac_objext conftest.beam \
14430    conftest$ac_exeext conftest.$ac_ext
14431fi
14432
14433
14434		CFLAGS="$xorg_testset_save_CFLAGS"
14435
14436		eval supported=\$$cacheid
14437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14438printf "%s\n" "$supported" >&6; }
14439		if test "$supported" = "yes" ; then
14440			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14441			found="yes"
14442		fi
14443	fi
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459xorg_testset_save_CFLAGS="$CFLAGS"
14460
14461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14466then :
14467  printf %s "(cached) " >&6
14468else $as_nop
14469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470/* end confdefs.h.  */
14471int i;
14472_ACEOF
14473if ac_fn_c_try_compile "$LINENO"
14474then :
14475  xorg_cv_cc_flag_unknown_warning_option=yes
14476else $as_nop
14477  xorg_cv_cc_flag_unknown_warning_option=no
14478fi
14479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14480fi
14481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14484	CFLAGS="$xorg_testset_save_CFLAGS"
14485fi
14486
14487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14490	fi
14491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14495then :
14496  printf %s "(cached) " >&6
14497else $as_nop
14498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499/* end confdefs.h.  */
14500int i;
14501_ACEOF
14502if ac_fn_c_try_compile "$LINENO"
14503then :
14504  xorg_cv_cc_flag_unused_command_line_argument=yes
14505else $as_nop
14506  xorg_cv_cc_flag_unused_command_line_argument=no
14507fi
14508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14509fi
14510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14513	CFLAGS="$xorg_testset_save_CFLAGS"
14514fi
14515
14516found="no"
14517
14518	if test $found = "no" ; then
14519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14521		fi
14522
14523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14525		fi
14526
14527		CFLAGS="$CFLAGS -Wold-style-definition"
14528
14529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14530printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14531		cacheid=xorg_cv_cc_flag__Wold_style_definition
14532		if eval test \${$cacheid+y}
14533then :
14534  printf %s "(cached) " >&6
14535else $as_nop
14536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537/* end confdefs.h.  */
14538int i;
14539int
14540main (void)
14541{
14542
14543  ;
14544  return 0;
14545}
14546_ACEOF
14547if ac_fn_c_try_link "$LINENO"
14548then :
14549  eval $cacheid=yes
14550else $as_nop
14551  eval $cacheid=no
14552fi
14553rm -f core conftest.err conftest.$ac_objext conftest.beam \
14554    conftest$ac_exeext conftest.$ac_ext
14555fi
14556
14557
14558		CFLAGS="$xorg_testset_save_CFLAGS"
14559
14560		eval supported=\$$cacheid
14561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14562printf "%s\n" "$supported" >&6; }
14563		if test "$supported" = "yes" ; then
14564			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14565			found="yes"
14566		fi
14567	fi
14568
14569	if test $found = "no" ; then
14570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14572		fi
14573
14574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14576		fi
14577
14578		CFLAGS="$CFLAGS -fd"
14579
14580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14581printf %s "checking if $CC supports -fd... " >&6; }
14582		cacheid=xorg_cv_cc_flag__fd
14583		if eval test \${$cacheid+y}
14584then :
14585  printf %s "(cached) " >&6
14586else $as_nop
14587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588/* end confdefs.h.  */
14589int i;
14590int
14591main (void)
14592{
14593
14594  ;
14595  return 0;
14596}
14597_ACEOF
14598if ac_fn_c_try_link "$LINENO"
14599then :
14600  eval $cacheid=yes
14601else $as_nop
14602  eval $cacheid=no
14603fi
14604rm -f core conftest.err conftest.$ac_objext conftest.beam \
14605    conftest$ac_exeext conftest.$ac_ext
14606fi
14607
14608
14609		CFLAGS="$xorg_testset_save_CFLAGS"
14610
14611		eval supported=\$$cacheid
14612		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14613printf "%s\n" "$supported" >&6; }
14614		if test "$supported" = "yes" ; then
14615			BASE_CFLAGS="$BASE_CFLAGS -fd"
14616			found="yes"
14617		fi
14618	fi
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634xorg_testset_save_CFLAGS="$CFLAGS"
14635
14636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14638	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14639printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14640if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14641then :
14642  printf %s "(cached) " >&6
14643else $as_nop
14644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645/* end confdefs.h.  */
14646int i;
14647_ACEOF
14648if ac_fn_c_try_compile "$LINENO"
14649then :
14650  xorg_cv_cc_flag_unknown_warning_option=yes
14651else $as_nop
14652  xorg_cv_cc_flag_unknown_warning_option=no
14653fi
14654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14655fi
14656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14657printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14658	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14659	CFLAGS="$xorg_testset_save_CFLAGS"
14660fi
14661
14662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14663	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14664		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14665	fi
14666	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14667	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14668printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14669if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14670then :
14671  printf %s "(cached) " >&6
14672else $as_nop
14673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674/* end confdefs.h.  */
14675int i;
14676_ACEOF
14677if ac_fn_c_try_compile "$LINENO"
14678then :
14679  xorg_cv_cc_flag_unused_command_line_argument=yes
14680else $as_nop
14681  xorg_cv_cc_flag_unused_command_line_argument=no
14682fi
14683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14684fi
14685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14686printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14687	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14688	CFLAGS="$xorg_testset_save_CFLAGS"
14689fi
14690
14691found="no"
14692
14693	if test $found = "no" ; then
14694		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14695			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14696		fi
14697
14698		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14699			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14700		fi
14701
14702		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14703
14704		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14705printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14706		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14707		if eval test \${$cacheid+y}
14708then :
14709  printf %s "(cached) " >&6
14710else $as_nop
14711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712/* end confdefs.h.  */
14713int i;
14714int
14715main (void)
14716{
14717
14718  ;
14719  return 0;
14720}
14721_ACEOF
14722if ac_fn_c_try_link "$LINENO"
14723then :
14724  eval $cacheid=yes
14725else $as_nop
14726  eval $cacheid=no
14727fi
14728rm -f core conftest.err conftest.$ac_objext conftest.beam \
14729    conftest$ac_exeext conftest.$ac_ext
14730fi
14731
14732
14733		CFLAGS="$xorg_testset_save_CFLAGS"
14734
14735		eval supported=\$$cacheid
14736		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14737printf "%s\n" "$supported" >&6; }
14738		if test "$supported" = "yes" ; then
14739			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14740			found="yes"
14741		fi
14742	fi
14743
14744
14745
14746
14747
14748# This chunk adds additional warnings that could catch undesired effects.
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762xorg_testset_save_CFLAGS="$CFLAGS"
14763
14764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14767printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14768if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14769then :
14770  printf %s "(cached) " >&6
14771else $as_nop
14772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h.  */
14774int i;
14775_ACEOF
14776if ac_fn_c_try_compile "$LINENO"
14777then :
14778  xorg_cv_cc_flag_unknown_warning_option=yes
14779else $as_nop
14780  xorg_cv_cc_flag_unknown_warning_option=no
14781fi
14782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14783fi
14784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14785printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14787	CFLAGS="$xorg_testset_save_CFLAGS"
14788fi
14789
14790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14793	fi
14794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14796printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14797if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14798then :
14799  printf %s "(cached) " >&6
14800else $as_nop
14801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802/* end confdefs.h.  */
14803int i;
14804_ACEOF
14805if ac_fn_c_try_compile "$LINENO"
14806then :
14807  xorg_cv_cc_flag_unused_command_line_argument=yes
14808else $as_nop
14809  xorg_cv_cc_flag_unused_command_line_argument=no
14810fi
14811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14812fi
14813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14816	CFLAGS="$xorg_testset_save_CFLAGS"
14817fi
14818
14819found="no"
14820
14821	if test $found = "no" ; then
14822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14824		fi
14825
14826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14828		fi
14829
14830		CFLAGS="$CFLAGS -Wunused"
14831
14832		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14833printf %s "checking if $CC supports -Wunused... " >&6; }
14834		cacheid=xorg_cv_cc_flag__Wunused
14835		if eval test \${$cacheid+y}
14836then :
14837  printf %s "(cached) " >&6
14838else $as_nop
14839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840/* end confdefs.h.  */
14841int i;
14842int
14843main (void)
14844{
14845
14846  ;
14847  return 0;
14848}
14849_ACEOF
14850if ac_fn_c_try_link "$LINENO"
14851then :
14852  eval $cacheid=yes
14853else $as_nop
14854  eval $cacheid=no
14855fi
14856rm -f core conftest.err conftest.$ac_objext conftest.beam \
14857    conftest$ac_exeext conftest.$ac_ext
14858fi
14859
14860
14861		CFLAGS="$xorg_testset_save_CFLAGS"
14862
14863		eval supported=\$$cacheid
14864		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14865printf "%s\n" "$supported" >&6; }
14866		if test "$supported" = "yes" ; then
14867			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14868			found="yes"
14869		fi
14870	fi
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886xorg_testset_save_CFLAGS="$CFLAGS"
14887
14888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14892if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14893then :
14894  printf %s "(cached) " >&6
14895else $as_nop
14896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897/* end confdefs.h.  */
14898int i;
14899_ACEOF
14900if ac_fn_c_try_compile "$LINENO"
14901then :
14902  xorg_cv_cc_flag_unknown_warning_option=yes
14903else $as_nop
14904  xorg_cv_cc_flag_unknown_warning_option=no
14905fi
14906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14907fi
14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14910	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14911	CFLAGS="$xorg_testset_save_CFLAGS"
14912fi
14913
14914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14915	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14916		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14917	fi
14918	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14921if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14922then :
14923  printf %s "(cached) " >&6
14924else $as_nop
14925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926/* end confdefs.h.  */
14927int i;
14928_ACEOF
14929if ac_fn_c_try_compile "$LINENO"
14930then :
14931  xorg_cv_cc_flag_unused_command_line_argument=yes
14932else $as_nop
14933  xorg_cv_cc_flag_unused_command_line_argument=no
14934fi
14935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14936fi
14937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14940	CFLAGS="$xorg_testset_save_CFLAGS"
14941fi
14942
14943found="no"
14944
14945	if test $found = "no" ; then
14946		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14948		fi
14949
14950		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14952		fi
14953
14954		CFLAGS="$CFLAGS -Wuninitialized"
14955
14956		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14957printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14958		cacheid=xorg_cv_cc_flag__Wuninitialized
14959		if eval test \${$cacheid+y}
14960then :
14961  printf %s "(cached) " >&6
14962else $as_nop
14963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964/* end confdefs.h.  */
14965int i;
14966int
14967main (void)
14968{
14969
14970  ;
14971  return 0;
14972}
14973_ACEOF
14974if ac_fn_c_try_link "$LINENO"
14975then :
14976  eval $cacheid=yes
14977else $as_nop
14978  eval $cacheid=no
14979fi
14980rm -f core conftest.err conftest.$ac_objext conftest.beam \
14981    conftest$ac_exeext conftest.$ac_ext
14982fi
14983
14984
14985		CFLAGS="$xorg_testset_save_CFLAGS"
14986
14987		eval supported=\$$cacheid
14988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14989printf "%s\n" "$supported" >&6; }
14990		if test "$supported" = "yes" ; then
14991			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14992			found="yes"
14993		fi
14994	fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010xorg_testset_save_CFLAGS="$CFLAGS"
15011
15012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15016if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15017then :
15018  printf %s "(cached) " >&6
15019else $as_nop
15020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h.  */
15022int i;
15023_ACEOF
15024if ac_fn_c_try_compile "$LINENO"
15025then :
15026  xorg_cv_cc_flag_unknown_warning_option=yes
15027else $as_nop
15028  xorg_cv_cc_flag_unknown_warning_option=no
15029fi
15030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15031fi
15032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15035	CFLAGS="$xorg_testset_save_CFLAGS"
15036fi
15037
15038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15041	fi
15042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15045if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15046then :
15047  printf %s "(cached) " >&6
15048else $as_nop
15049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050/* end confdefs.h.  */
15051int i;
15052_ACEOF
15053if ac_fn_c_try_compile "$LINENO"
15054then :
15055  xorg_cv_cc_flag_unused_command_line_argument=yes
15056else $as_nop
15057  xorg_cv_cc_flag_unused_command_line_argument=no
15058fi
15059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15060fi
15061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15063	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15064	CFLAGS="$xorg_testset_save_CFLAGS"
15065fi
15066
15067found="no"
15068
15069	if test $found = "no" ; then
15070		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15071			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15072		fi
15073
15074		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15075			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15076		fi
15077
15078		CFLAGS="$CFLAGS -Wshadow"
15079
15080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15081printf %s "checking if $CC supports -Wshadow... " >&6; }
15082		cacheid=xorg_cv_cc_flag__Wshadow
15083		if eval test \${$cacheid+y}
15084then :
15085  printf %s "(cached) " >&6
15086else $as_nop
15087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088/* end confdefs.h.  */
15089int i;
15090int
15091main (void)
15092{
15093
15094  ;
15095  return 0;
15096}
15097_ACEOF
15098if ac_fn_c_try_link "$LINENO"
15099then :
15100  eval $cacheid=yes
15101else $as_nop
15102  eval $cacheid=no
15103fi
15104rm -f core conftest.err conftest.$ac_objext conftest.beam \
15105    conftest$ac_exeext conftest.$ac_ext
15106fi
15107
15108
15109		CFLAGS="$xorg_testset_save_CFLAGS"
15110
15111		eval supported=\$$cacheid
15112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15113printf "%s\n" "$supported" >&6; }
15114		if test "$supported" = "yes" ; then
15115			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15116			found="yes"
15117		fi
15118	fi
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134xorg_testset_save_CFLAGS="$CFLAGS"
15135
15136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15140if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15141then :
15142  printf %s "(cached) " >&6
15143else $as_nop
15144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145/* end confdefs.h.  */
15146int i;
15147_ACEOF
15148if ac_fn_c_try_compile "$LINENO"
15149then :
15150  xorg_cv_cc_flag_unknown_warning_option=yes
15151else $as_nop
15152  xorg_cv_cc_flag_unknown_warning_option=no
15153fi
15154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15155fi
15156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15159	CFLAGS="$xorg_testset_save_CFLAGS"
15160fi
15161
15162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15165	fi
15166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15169if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15170then :
15171  printf %s "(cached) " >&6
15172else $as_nop
15173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174/* end confdefs.h.  */
15175int i;
15176_ACEOF
15177if ac_fn_c_try_compile "$LINENO"
15178then :
15179  xorg_cv_cc_flag_unused_command_line_argument=yes
15180else $as_nop
15181  xorg_cv_cc_flag_unused_command_line_argument=no
15182fi
15183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15184fi
15185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15187	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15188	CFLAGS="$xorg_testset_save_CFLAGS"
15189fi
15190
15191found="no"
15192
15193	if test $found = "no" ; then
15194		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15196		fi
15197
15198		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15200		fi
15201
15202		CFLAGS="$CFLAGS -Wmissing-noreturn"
15203
15204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15205printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15206		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15207		if eval test \${$cacheid+y}
15208then :
15209  printf %s "(cached) " >&6
15210else $as_nop
15211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212/* end confdefs.h.  */
15213int i;
15214int
15215main (void)
15216{
15217
15218  ;
15219  return 0;
15220}
15221_ACEOF
15222if ac_fn_c_try_link "$LINENO"
15223then :
15224  eval $cacheid=yes
15225else $as_nop
15226  eval $cacheid=no
15227fi
15228rm -f core conftest.err conftest.$ac_objext conftest.beam \
15229    conftest$ac_exeext conftest.$ac_ext
15230fi
15231
15232
15233		CFLAGS="$xorg_testset_save_CFLAGS"
15234
15235		eval supported=\$$cacheid
15236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15237printf "%s\n" "$supported" >&6; }
15238		if test "$supported" = "yes" ; then
15239			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15240			found="yes"
15241		fi
15242	fi
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258xorg_testset_save_CFLAGS="$CFLAGS"
15259
15260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15264if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15265then :
15266  printf %s "(cached) " >&6
15267else $as_nop
15268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269/* end confdefs.h.  */
15270int i;
15271_ACEOF
15272if ac_fn_c_try_compile "$LINENO"
15273then :
15274  xorg_cv_cc_flag_unknown_warning_option=yes
15275else $as_nop
15276  xorg_cv_cc_flag_unknown_warning_option=no
15277fi
15278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15279fi
15280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15283	CFLAGS="$xorg_testset_save_CFLAGS"
15284fi
15285
15286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15289	fi
15290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15293if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15294then :
15295  printf %s "(cached) " >&6
15296else $as_nop
15297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298/* end confdefs.h.  */
15299int i;
15300_ACEOF
15301if ac_fn_c_try_compile "$LINENO"
15302then :
15303  xorg_cv_cc_flag_unused_command_line_argument=yes
15304else $as_nop
15305  xorg_cv_cc_flag_unused_command_line_argument=no
15306fi
15307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15308fi
15309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15312	CFLAGS="$xorg_testset_save_CFLAGS"
15313fi
15314
15315found="no"
15316
15317	if test $found = "no" ; then
15318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15320		fi
15321
15322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15324		fi
15325
15326		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15327
15328		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15329printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15330		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15331		if eval test \${$cacheid+y}
15332then :
15333  printf %s "(cached) " >&6
15334else $as_nop
15335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h.  */
15337int i;
15338int
15339main (void)
15340{
15341
15342  ;
15343  return 0;
15344}
15345_ACEOF
15346if ac_fn_c_try_link "$LINENO"
15347then :
15348  eval $cacheid=yes
15349else $as_nop
15350  eval $cacheid=no
15351fi
15352rm -f core conftest.err conftest.$ac_objext conftest.beam \
15353    conftest$ac_exeext conftest.$ac_ext
15354fi
15355
15356
15357		CFLAGS="$xorg_testset_save_CFLAGS"
15358
15359		eval supported=\$$cacheid
15360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15361printf "%s\n" "$supported" >&6; }
15362		if test "$supported" = "yes" ; then
15363			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15364			found="yes"
15365		fi
15366	fi
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382xorg_testset_save_CFLAGS="$CFLAGS"
15383
15384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15386	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15388if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15389then :
15390  printf %s "(cached) " >&6
15391else $as_nop
15392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393/* end confdefs.h.  */
15394int i;
15395_ACEOF
15396if ac_fn_c_try_compile "$LINENO"
15397then :
15398  xorg_cv_cc_flag_unknown_warning_option=yes
15399else $as_nop
15400  xorg_cv_cc_flag_unknown_warning_option=no
15401fi
15402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15403fi
15404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15407	CFLAGS="$xorg_testset_save_CFLAGS"
15408fi
15409
15410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15413	fi
15414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15415	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15417if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15418then :
15419  printf %s "(cached) " >&6
15420else $as_nop
15421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422/* end confdefs.h.  */
15423int i;
15424_ACEOF
15425if ac_fn_c_try_compile "$LINENO"
15426then :
15427  xorg_cv_cc_flag_unused_command_line_argument=yes
15428else $as_nop
15429  xorg_cv_cc_flag_unused_command_line_argument=no
15430fi
15431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15432fi
15433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15436	CFLAGS="$xorg_testset_save_CFLAGS"
15437fi
15438
15439found="no"
15440
15441	if test $found = "no" ; then
15442		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15444		fi
15445
15446		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15448		fi
15449
15450		CFLAGS="$CFLAGS -Wredundant-decls"
15451
15452		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15453printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15454		cacheid=xorg_cv_cc_flag__Wredundant_decls
15455		if eval test \${$cacheid+y}
15456then :
15457  printf %s "(cached) " >&6
15458else $as_nop
15459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460/* end confdefs.h.  */
15461int i;
15462int
15463main (void)
15464{
15465
15466  ;
15467  return 0;
15468}
15469_ACEOF
15470if ac_fn_c_try_link "$LINENO"
15471then :
15472  eval $cacheid=yes
15473else $as_nop
15474  eval $cacheid=no
15475fi
15476rm -f core conftest.err conftest.$ac_objext conftest.beam \
15477    conftest$ac_exeext conftest.$ac_ext
15478fi
15479
15480
15481		CFLAGS="$xorg_testset_save_CFLAGS"
15482
15483		eval supported=\$$cacheid
15484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15485printf "%s\n" "$supported" >&6; }
15486		if test "$supported" = "yes" ; then
15487			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15488			found="yes"
15489		fi
15490	fi
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506xorg_testset_save_CFLAGS="$CFLAGS"
15507
15508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15513then :
15514  printf %s "(cached) " >&6
15515else $as_nop
15516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15517/* end confdefs.h.  */
15518int i;
15519_ACEOF
15520if ac_fn_c_try_compile "$LINENO"
15521then :
15522  xorg_cv_cc_flag_unknown_warning_option=yes
15523else $as_nop
15524  xorg_cv_cc_flag_unknown_warning_option=no
15525fi
15526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15527fi
15528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15529printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15530	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15531	CFLAGS="$xorg_testset_save_CFLAGS"
15532fi
15533
15534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15535	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15536		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15537	fi
15538	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15539	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15540printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15541if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15542then :
15543  printf %s "(cached) " >&6
15544else $as_nop
15545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546/* end confdefs.h.  */
15547int i;
15548_ACEOF
15549if ac_fn_c_try_compile "$LINENO"
15550then :
15551  xorg_cv_cc_flag_unused_command_line_argument=yes
15552else $as_nop
15553  xorg_cv_cc_flag_unused_command_line_argument=no
15554fi
15555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15556fi
15557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15558printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15559	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15560	CFLAGS="$xorg_testset_save_CFLAGS"
15561fi
15562
15563found="no"
15564
15565	if test $found = "no" ; then
15566		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15567			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15568		fi
15569
15570		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15571			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15572		fi
15573
15574		CFLAGS="$CFLAGS -Wlogical-op"
15575
15576		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15577printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15578		cacheid=xorg_cv_cc_flag__Wlogical_op
15579		if eval test \${$cacheid+y}
15580then :
15581  printf %s "(cached) " >&6
15582else $as_nop
15583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584/* end confdefs.h.  */
15585int i;
15586int
15587main (void)
15588{
15589
15590  ;
15591  return 0;
15592}
15593_ACEOF
15594if ac_fn_c_try_link "$LINENO"
15595then :
15596  eval $cacheid=yes
15597else $as_nop
15598  eval $cacheid=no
15599fi
15600rm -f core conftest.err conftest.$ac_objext conftest.beam \
15601    conftest$ac_exeext conftest.$ac_ext
15602fi
15603
15604
15605		CFLAGS="$xorg_testset_save_CFLAGS"
15606
15607		eval supported=\$$cacheid
15608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15609printf "%s\n" "$supported" >&6; }
15610		if test "$supported" = "yes" ; then
15611			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15612			found="yes"
15613		fi
15614	fi
15615
15616
15617
15618# These are currently disabled because they are noisy.  They will be enabled
15619# in the future once the codebase is sufficiently modernized to silence
15620# them.  For now, I don't want them to drown out the other warnings.
15621# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15622# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15623# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15624
15625# Turn some warnings into errors, so we don't accidently get successful builds
15626# when there are problems that should be fixed.
15627
15628if test "x$SELECTIVE_WERROR" = "xyes" ; then
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642xorg_testset_save_CFLAGS="$CFLAGS"
15643
15644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15649then :
15650  printf %s "(cached) " >&6
15651else $as_nop
15652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653/* end confdefs.h.  */
15654int i;
15655_ACEOF
15656if ac_fn_c_try_compile "$LINENO"
15657then :
15658  xorg_cv_cc_flag_unknown_warning_option=yes
15659else $as_nop
15660  xorg_cv_cc_flag_unknown_warning_option=no
15661fi
15662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15663fi
15664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15667	CFLAGS="$xorg_testset_save_CFLAGS"
15668fi
15669
15670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15673	fi
15674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15677if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15678then :
15679  printf %s "(cached) " >&6
15680else $as_nop
15681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682/* end confdefs.h.  */
15683int i;
15684_ACEOF
15685if ac_fn_c_try_compile "$LINENO"
15686then :
15687  xorg_cv_cc_flag_unused_command_line_argument=yes
15688else $as_nop
15689  xorg_cv_cc_flag_unused_command_line_argument=no
15690fi
15691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15692fi
15693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15696	CFLAGS="$xorg_testset_save_CFLAGS"
15697fi
15698
15699found="no"
15700
15701	if test $found = "no" ; then
15702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15704		fi
15705
15706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15708		fi
15709
15710		CFLAGS="$CFLAGS -Werror=implicit"
15711
15712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15713printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15714		cacheid=xorg_cv_cc_flag__Werror_implicit
15715		if eval test \${$cacheid+y}
15716then :
15717  printf %s "(cached) " >&6
15718else $as_nop
15719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720/* end confdefs.h.  */
15721int i;
15722int
15723main (void)
15724{
15725
15726  ;
15727  return 0;
15728}
15729_ACEOF
15730if ac_fn_c_try_link "$LINENO"
15731then :
15732  eval $cacheid=yes
15733else $as_nop
15734  eval $cacheid=no
15735fi
15736rm -f core conftest.err conftest.$ac_objext conftest.beam \
15737    conftest$ac_exeext conftest.$ac_ext
15738fi
15739
15740
15741		CFLAGS="$xorg_testset_save_CFLAGS"
15742
15743		eval supported=\$$cacheid
15744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15745printf "%s\n" "$supported" >&6; }
15746		if test "$supported" = "yes" ; then
15747			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15748			found="yes"
15749		fi
15750	fi
15751
15752	if test $found = "no" ; then
15753		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755		fi
15756
15757		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15759		fi
15760
15761		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15762
15763		{ 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
15764printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15765		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15766		if eval test \${$cacheid+y}
15767then :
15768  printf %s "(cached) " >&6
15769else $as_nop
15770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771/* end confdefs.h.  */
15772int i;
15773int
15774main (void)
15775{
15776
15777  ;
15778  return 0;
15779}
15780_ACEOF
15781if ac_fn_c_try_link "$LINENO"
15782then :
15783  eval $cacheid=yes
15784else $as_nop
15785  eval $cacheid=no
15786fi
15787rm -f core conftest.err conftest.$ac_objext conftest.beam \
15788    conftest$ac_exeext conftest.$ac_ext
15789fi
15790
15791
15792		CFLAGS="$xorg_testset_save_CFLAGS"
15793
15794		eval supported=\$$cacheid
15795		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15796printf "%s\n" "$supported" >&6; }
15797		if test "$supported" = "yes" ; then
15798			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15799			found="yes"
15800		fi
15801	fi
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817xorg_testset_save_CFLAGS="$CFLAGS"
15818
15819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15823if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15824then :
15825  printf %s "(cached) " >&6
15826else $as_nop
15827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828/* end confdefs.h.  */
15829int i;
15830_ACEOF
15831if ac_fn_c_try_compile "$LINENO"
15832then :
15833  xorg_cv_cc_flag_unknown_warning_option=yes
15834else $as_nop
15835  xorg_cv_cc_flag_unknown_warning_option=no
15836fi
15837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15838fi
15839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15840printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15841	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15842	CFLAGS="$xorg_testset_save_CFLAGS"
15843fi
15844
15845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15846	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15847		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15848	fi
15849	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15850	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15851printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15852if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15853then :
15854  printf %s "(cached) " >&6
15855else $as_nop
15856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857/* end confdefs.h.  */
15858int i;
15859_ACEOF
15860if ac_fn_c_try_compile "$LINENO"
15861then :
15862  xorg_cv_cc_flag_unused_command_line_argument=yes
15863else $as_nop
15864  xorg_cv_cc_flag_unused_command_line_argument=no
15865fi
15866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15867fi
15868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15871	CFLAGS="$xorg_testset_save_CFLAGS"
15872fi
15873
15874found="no"
15875
15876	if test $found = "no" ; then
15877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15879		fi
15880
15881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15883		fi
15884
15885		CFLAGS="$CFLAGS -Werror=nonnull"
15886
15887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15888printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15889		cacheid=xorg_cv_cc_flag__Werror_nonnull
15890		if eval test \${$cacheid+y}
15891then :
15892  printf %s "(cached) " >&6
15893else $as_nop
15894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895/* end confdefs.h.  */
15896int i;
15897int
15898main (void)
15899{
15900
15901  ;
15902  return 0;
15903}
15904_ACEOF
15905if ac_fn_c_try_link "$LINENO"
15906then :
15907  eval $cacheid=yes
15908else $as_nop
15909  eval $cacheid=no
15910fi
15911rm -f core conftest.err conftest.$ac_objext conftest.beam \
15912    conftest$ac_exeext conftest.$ac_ext
15913fi
15914
15915
15916		CFLAGS="$xorg_testset_save_CFLAGS"
15917
15918		eval supported=\$$cacheid
15919		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15920printf "%s\n" "$supported" >&6; }
15921		if test "$supported" = "yes" ; then
15922			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15923			found="yes"
15924		fi
15925	fi
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941xorg_testset_save_CFLAGS="$CFLAGS"
15942
15943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15946printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15947if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15948then :
15949  printf %s "(cached) " >&6
15950else $as_nop
15951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952/* end confdefs.h.  */
15953int i;
15954_ACEOF
15955if ac_fn_c_try_compile "$LINENO"
15956then :
15957  xorg_cv_cc_flag_unknown_warning_option=yes
15958else $as_nop
15959  xorg_cv_cc_flag_unknown_warning_option=no
15960fi
15961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15962fi
15963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15965	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15966	CFLAGS="$xorg_testset_save_CFLAGS"
15967fi
15968
15969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15970	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15972	fi
15973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15976if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15977then :
15978  printf %s "(cached) " >&6
15979else $as_nop
15980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981/* end confdefs.h.  */
15982int i;
15983_ACEOF
15984if ac_fn_c_try_compile "$LINENO"
15985then :
15986  xorg_cv_cc_flag_unused_command_line_argument=yes
15987else $as_nop
15988  xorg_cv_cc_flag_unused_command_line_argument=no
15989fi
15990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15991fi
15992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15995	CFLAGS="$xorg_testset_save_CFLAGS"
15996fi
15997
15998found="no"
15999
16000	if test $found = "no" ; then
16001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16003		fi
16004
16005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16007		fi
16008
16009		CFLAGS="$CFLAGS -Werror=init-self"
16010
16011		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16012printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16013		cacheid=xorg_cv_cc_flag__Werror_init_self
16014		if eval test \${$cacheid+y}
16015then :
16016  printf %s "(cached) " >&6
16017else $as_nop
16018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019/* end confdefs.h.  */
16020int i;
16021int
16022main (void)
16023{
16024
16025  ;
16026  return 0;
16027}
16028_ACEOF
16029if ac_fn_c_try_link "$LINENO"
16030then :
16031  eval $cacheid=yes
16032else $as_nop
16033  eval $cacheid=no
16034fi
16035rm -f core conftest.err conftest.$ac_objext conftest.beam \
16036    conftest$ac_exeext conftest.$ac_ext
16037fi
16038
16039
16040		CFLAGS="$xorg_testset_save_CFLAGS"
16041
16042		eval supported=\$$cacheid
16043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16044printf "%s\n" "$supported" >&6; }
16045		if test "$supported" = "yes" ; then
16046			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16047			found="yes"
16048		fi
16049	fi
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065xorg_testset_save_CFLAGS="$CFLAGS"
16066
16067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16069	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16071if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16072then :
16073  printf %s "(cached) " >&6
16074else $as_nop
16075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076/* end confdefs.h.  */
16077int i;
16078_ACEOF
16079if ac_fn_c_try_compile "$LINENO"
16080then :
16081  xorg_cv_cc_flag_unknown_warning_option=yes
16082else $as_nop
16083  xorg_cv_cc_flag_unknown_warning_option=no
16084fi
16085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16086fi
16087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16088printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16089	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16090	CFLAGS="$xorg_testset_save_CFLAGS"
16091fi
16092
16093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16094	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16095		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16096	fi
16097	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16099printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16100if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16101then :
16102  printf %s "(cached) " >&6
16103else $as_nop
16104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105/* end confdefs.h.  */
16106int i;
16107_ACEOF
16108if ac_fn_c_try_compile "$LINENO"
16109then :
16110  xorg_cv_cc_flag_unused_command_line_argument=yes
16111else $as_nop
16112  xorg_cv_cc_flag_unused_command_line_argument=no
16113fi
16114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16115fi
16116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16117printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16119	CFLAGS="$xorg_testset_save_CFLAGS"
16120fi
16121
16122found="no"
16123
16124	if test $found = "no" ; then
16125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16127		fi
16128
16129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16131		fi
16132
16133		CFLAGS="$CFLAGS -Werror=main"
16134
16135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16136printf %s "checking if $CC supports -Werror=main... " >&6; }
16137		cacheid=xorg_cv_cc_flag__Werror_main
16138		if eval test \${$cacheid+y}
16139then :
16140  printf %s "(cached) " >&6
16141else $as_nop
16142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143/* end confdefs.h.  */
16144int i;
16145int
16146main (void)
16147{
16148
16149  ;
16150  return 0;
16151}
16152_ACEOF
16153if ac_fn_c_try_link "$LINENO"
16154then :
16155  eval $cacheid=yes
16156else $as_nop
16157  eval $cacheid=no
16158fi
16159rm -f core conftest.err conftest.$ac_objext conftest.beam \
16160    conftest$ac_exeext conftest.$ac_ext
16161fi
16162
16163
16164		CFLAGS="$xorg_testset_save_CFLAGS"
16165
16166		eval supported=\$$cacheid
16167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16168printf "%s\n" "$supported" >&6; }
16169		if test "$supported" = "yes" ; then
16170			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16171			found="yes"
16172		fi
16173	fi
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189xorg_testset_save_CFLAGS="$CFLAGS"
16190
16191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16194printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16195if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16196then :
16197  printf %s "(cached) " >&6
16198else $as_nop
16199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200/* end confdefs.h.  */
16201int i;
16202_ACEOF
16203if ac_fn_c_try_compile "$LINENO"
16204then :
16205  xorg_cv_cc_flag_unknown_warning_option=yes
16206else $as_nop
16207  xorg_cv_cc_flag_unknown_warning_option=no
16208fi
16209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16210fi
16211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16212printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16214	CFLAGS="$xorg_testset_save_CFLAGS"
16215fi
16216
16217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16220	fi
16221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16223printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16224if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16225then :
16226  printf %s "(cached) " >&6
16227else $as_nop
16228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229/* end confdefs.h.  */
16230int i;
16231_ACEOF
16232if ac_fn_c_try_compile "$LINENO"
16233then :
16234  xorg_cv_cc_flag_unused_command_line_argument=yes
16235else $as_nop
16236  xorg_cv_cc_flag_unused_command_line_argument=no
16237fi
16238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16239fi
16240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16241printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16242	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16243	CFLAGS="$xorg_testset_save_CFLAGS"
16244fi
16245
16246found="no"
16247
16248	if test $found = "no" ; then
16249		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16251		fi
16252
16253		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16255		fi
16256
16257		CFLAGS="$CFLAGS -Werror=missing-braces"
16258
16259		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16260printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16261		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16262		if eval test \${$cacheid+y}
16263then :
16264  printf %s "(cached) " >&6
16265else $as_nop
16266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267/* end confdefs.h.  */
16268int i;
16269int
16270main (void)
16271{
16272
16273  ;
16274  return 0;
16275}
16276_ACEOF
16277if ac_fn_c_try_link "$LINENO"
16278then :
16279  eval $cacheid=yes
16280else $as_nop
16281  eval $cacheid=no
16282fi
16283rm -f core conftest.err conftest.$ac_objext conftest.beam \
16284    conftest$ac_exeext conftest.$ac_ext
16285fi
16286
16287
16288		CFLAGS="$xorg_testset_save_CFLAGS"
16289
16290		eval supported=\$$cacheid
16291		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16292printf "%s\n" "$supported" >&6; }
16293		if test "$supported" = "yes" ; then
16294			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16295			found="yes"
16296		fi
16297	fi
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313xorg_testset_save_CFLAGS="$CFLAGS"
16314
16315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16317	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16318printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16319if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16320then :
16321  printf %s "(cached) " >&6
16322else $as_nop
16323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324/* end confdefs.h.  */
16325int i;
16326_ACEOF
16327if ac_fn_c_try_compile "$LINENO"
16328then :
16329  xorg_cv_cc_flag_unknown_warning_option=yes
16330else $as_nop
16331  xorg_cv_cc_flag_unknown_warning_option=no
16332fi
16333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16334fi
16335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16338	CFLAGS="$xorg_testset_save_CFLAGS"
16339fi
16340
16341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16344	fi
16345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16348if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16349then :
16350  printf %s "(cached) " >&6
16351else $as_nop
16352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353/* end confdefs.h.  */
16354int i;
16355_ACEOF
16356if ac_fn_c_try_compile "$LINENO"
16357then :
16358  xorg_cv_cc_flag_unused_command_line_argument=yes
16359else $as_nop
16360  xorg_cv_cc_flag_unused_command_line_argument=no
16361fi
16362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16363fi
16364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16367	CFLAGS="$xorg_testset_save_CFLAGS"
16368fi
16369
16370found="no"
16371
16372	if test $found = "no" ; then
16373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16375		fi
16376
16377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16379		fi
16380
16381		CFLAGS="$CFLAGS -Werror=sequence-point"
16382
16383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16384printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16385		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16386		if eval test \${$cacheid+y}
16387then :
16388  printf %s "(cached) " >&6
16389else $as_nop
16390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391/* end confdefs.h.  */
16392int i;
16393int
16394main (void)
16395{
16396
16397  ;
16398  return 0;
16399}
16400_ACEOF
16401if ac_fn_c_try_link "$LINENO"
16402then :
16403  eval $cacheid=yes
16404else $as_nop
16405  eval $cacheid=no
16406fi
16407rm -f core conftest.err conftest.$ac_objext conftest.beam \
16408    conftest$ac_exeext conftest.$ac_ext
16409fi
16410
16411
16412		CFLAGS="$xorg_testset_save_CFLAGS"
16413
16414		eval supported=\$$cacheid
16415		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16416printf "%s\n" "$supported" >&6; }
16417		if test "$supported" = "yes" ; then
16418			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16419			found="yes"
16420		fi
16421	fi
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437xorg_testset_save_CFLAGS="$CFLAGS"
16438
16439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16441	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16443if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16444then :
16445  printf %s "(cached) " >&6
16446else $as_nop
16447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16448/* end confdefs.h.  */
16449int i;
16450_ACEOF
16451if ac_fn_c_try_compile "$LINENO"
16452then :
16453  xorg_cv_cc_flag_unknown_warning_option=yes
16454else $as_nop
16455  xorg_cv_cc_flag_unknown_warning_option=no
16456fi
16457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16458fi
16459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16462	CFLAGS="$xorg_testset_save_CFLAGS"
16463fi
16464
16465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16468	fi
16469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16472if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16473then :
16474  printf %s "(cached) " >&6
16475else $as_nop
16476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477/* end confdefs.h.  */
16478int i;
16479_ACEOF
16480if ac_fn_c_try_compile "$LINENO"
16481then :
16482  xorg_cv_cc_flag_unused_command_line_argument=yes
16483else $as_nop
16484  xorg_cv_cc_flag_unused_command_line_argument=no
16485fi
16486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16487fi
16488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16491	CFLAGS="$xorg_testset_save_CFLAGS"
16492fi
16493
16494found="no"
16495
16496	if test $found = "no" ; then
16497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16499		fi
16500
16501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16503		fi
16504
16505		CFLAGS="$CFLAGS -Werror=return-type"
16506
16507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16508printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16509		cacheid=xorg_cv_cc_flag__Werror_return_type
16510		if eval test \${$cacheid+y}
16511then :
16512  printf %s "(cached) " >&6
16513else $as_nop
16514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515/* end confdefs.h.  */
16516int i;
16517int
16518main (void)
16519{
16520
16521  ;
16522  return 0;
16523}
16524_ACEOF
16525if ac_fn_c_try_link "$LINENO"
16526then :
16527  eval $cacheid=yes
16528else $as_nop
16529  eval $cacheid=no
16530fi
16531rm -f core conftest.err conftest.$ac_objext conftest.beam \
16532    conftest$ac_exeext conftest.$ac_ext
16533fi
16534
16535
16536		CFLAGS="$xorg_testset_save_CFLAGS"
16537
16538		eval supported=\$$cacheid
16539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16540printf "%s\n" "$supported" >&6; }
16541		if test "$supported" = "yes" ; then
16542			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16543			found="yes"
16544		fi
16545	fi
16546
16547	if test $found = "no" ; then
16548		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550		fi
16551
16552		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16554		fi
16555
16556		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16557
16558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16559printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16560		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16561		if eval test \${$cacheid+y}
16562then :
16563  printf %s "(cached) " >&6
16564else $as_nop
16565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566/* end confdefs.h.  */
16567int i;
16568int
16569main (void)
16570{
16571
16572  ;
16573  return 0;
16574}
16575_ACEOF
16576if ac_fn_c_try_link "$LINENO"
16577then :
16578  eval $cacheid=yes
16579else $as_nop
16580  eval $cacheid=no
16581fi
16582rm -f core conftest.err conftest.$ac_objext conftest.beam \
16583    conftest$ac_exeext conftest.$ac_ext
16584fi
16585
16586
16587		CFLAGS="$xorg_testset_save_CFLAGS"
16588
16589		eval supported=\$$cacheid
16590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16591printf "%s\n" "$supported" >&6; }
16592		if test "$supported" = "yes" ; then
16593			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16594			found="yes"
16595		fi
16596	fi
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612xorg_testset_save_CFLAGS="$CFLAGS"
16613
16614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16618if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16619then :
16620  printf %s "(cached) " >&6
16621else $as_nop
16622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623/* end confdefs.h.  */
16624int i;
16625_ACEOF
16626if ac_fn_c_try_compile "$LINENO"
16627then :
16628  xorg_cv_cc_flag_unknown_warning_option=yes
16629else $as_nop
16630  xorg_cv_cc_flag_unknown_warning_option=no
16631fi
16632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16633fi
16634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16637	CFLAGS="$xorg_testset_save_CFLAGS"
16638fi
16639
16640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16643	fi
16644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16645	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16647if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16648then :
16649  printf %s "(cached) " >&6
16650else $as_nop
16651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652/* end confdefs.h.  */
16653int i;
16654_ACEOF
16655if ac_fn_c_try_compile "$LINENO"
16656then :
16657  xorg_cv_cc_flag_unused_command_line_argument=yes
16658else $as_nop
16659  xorg_cv_cc_flag_unused_command_line_argument=no
16660fi
16661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16662fi
16663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16666	CFLAGS="$xorg_testset_save_CFLAGS"
16667fi
16668
16669found="no"
16670
16671	if test $found = "no" ; then
16672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16674		fi
16675
16676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16678		fi
16679
16680		CFLAGS="$CFLAGS -Werror=trigraphs"
16681
16682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16683printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16684		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16685		if eval test \${$cacheid+y}
16686then :
16687  printf %s "(cached) " >&6
16688else $as_nop
16689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690/* end confdefs.h.  */
16691int i;
16692int
16693main (void)
16694{
16695
16696  ;
16697  return 0;
16698}
16699_ACEOF
16700if ac_fn_c_try_link "$LINENO"
16701then :
16702  eval $cacheid=yes
16703else $as_nop
16704  eval $cacheid=no
16705fi
16706rm -f core conftest.err conftest.$ac_objext conftest.beam \
16707    conftest$ac_exeext conftest.$ac_ext
16708fi
16709
16710
16711		CFLAGS="$xorg_testset_save_CFLAGS"
16712
16713		eval supported=\$$cacheid
16714		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16715printf "%s\n" "$supported" >&6; }
16716		if test "$supported" = "yes" ; then
16717			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16718			found="yes"
16719		fi
16720	fi
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736xorg_testset_save_CFLAGS="$CFLAGS"
16737
16738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16740	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16742if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16743then :
16744  printf %s "(cached) " >&6
16745else $as_nop
16746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748int i;
16749_ACEOF
16750if ac_fn_c_try_compile "$LINENO"
16751then :
16752  xorg_cv_cc_flag_unknown_warning_option=yes
16753else $as_nop
16754  xorg_cv_cc_flag_unknown_warning_option=no
16755fi
16756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16757fi
16758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16759printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16761	CFLAGS="$xorg_testset_save_CFLAGS"
16762fi
16763
16764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16767	fi
16768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16770printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16771if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16772then :
16773  printf %s "(cached) " >&6
16774else $as_nop
16775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776/* end confdefs.h.  */
16777int i;
16778_ACEOF
16779if ac_fn_c_try_compile "$LINENO"
16780then :
16781  xorg_cv_cc_flag_unused_command_line_argument=yes
16782else $as_nop
16783  xorg_cv_cc_flag_unused_command_line_argument=no
16784fi
16785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16786fi
16787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16788printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16790	CFLAGS="$xorg_testset_save_CFLAGS"
16791fi
16792
16793found="no"
16794
16795	if test $found = "no" ; then
16796		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16798		fi
16799
16800		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16802		fi
16803
16804		CFLAGS="$CFLAGS -Werror=array-bounds"
16805
16806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16807printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16808		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16809		if eval test \${$cacheid+y}
16810then :
16811  printf %s "(cached) " >&6
16812else $as_nop
16813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814/* end confdefs.h.  */
16815int i;
16816int
16817main (void)
16818{
16819
16820  ;
16821  return 0;
16822}
16823_ACEOF
16824if ac_fn_c_try_link "$LINENO"
16825then :
16826  eval $cacheid=yes
16827else $as_nop
16828  eval $cacheid=no
16829fi
16830rm -f core conftest.err conftest.$ac_objext conftest.beam \
16831    conftest$ac_exeext conftest.$ac_ext
16832fi
16833
16834
16835		CFLAGS="$xorg_testset_save_CFLAGS"
16836
16837		eval supported=\$$cacheid
16838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16839printf "%s\n" "$supported" >&6; }
16840		if test "$supported" = "yes" ; then
16841			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16842			found="yes"
16843		fi
16844	fi
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860xorg_testset_save_CFLAGS="$CFLAGS"
16861
16862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16864	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16866if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16867then :
16868  printf %s "(cached) " >&6
16869else $as_nop
16870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871/* end confdefs.h.  */
16872int i;
16873_ACEOF
16874if ac_fn_c_try_compile "$LINENO"
16875then :
16876  xorg_cv_cc_flag_unknown_warning_option=yes
16877else $as_nop
16878  xorg_cv_cc_flag_unknown_warning_option=no
16879fi
16880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16881fi
16882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16885	CFLAGS="$xorg_testset_save_CFLAGS"
16886fi
16887
16888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16891	fi
16892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16893	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16895if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16896then :
16897  printf %s "(cached) " >&6
16898else $as_nop
16899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900/* end confdefs.h.  */
16901int i;
16902_ACEOF
16903if ac_fn_c_try_compile "$LINENO"
16904then :
16905  xorg_cv_cc_flag_unused_command_line_argument=yes
16906else $as_nop
16907  xorg_cv_cc_flag_unused_command_line_argument=no
16908fi
16909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16910fi
16911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16913	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16914	CFLAGS="$xorg_testset_save_CFLAGS"
16915fi
16916
16917found="no"
16918
16919	if test $found = "no" ; then
16920		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16921			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16922		fi
16923
16924		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16925			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16926		fi
16927
16928		CFLAGS="$CFLAGS -Werror=write-strings"
16929
16930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16931printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16932		cacheid=xorg_cv_cc_flag__Werror_write_strings
16933		if eval test \${$cacheid+y}
16934then :
16935  printf %s "(cached) " >&6
16936else $as_nop
16937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938/* end confdefs.h.  */
16939int i;
16940int
16941main (void)
16942{
16943
16944  ;
16945  return 0;
16946}
16947_ACEOF
16948if ac_fn_c_try_link "$LINENO"
16949then :
16950  eval $cacheid=yes
16951else $as_nop
16952  eval $cacheid=no
16953fi
16954rm -f core conftest.err conftest.$ac_objext conftest.beam \
16955    conftest$ac_exeext conftest.$ac_ext
16956fi
16957
16958
16959		CFLAGS="$xorg_testset_save_CFLAGS"
16960
16961		eval supported=\$$cacheid
16962		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16963printf "%s\n" "$supported" >&6; }
16964		if test "$supported" = "yes" ; then
16965			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16966			found="yes"
16967		fi
16968	fi
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984xorg_testset_save_CFLAGS="$CFLAGS"
16985
16986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16987	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16990if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16991then :
16992  printf %s "(cached) " >&6
16993else $as_nop
16994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995/* end confdefs.h.  */
16996int i;
16997_ACEOF
16998if ac_fn_c_try_compile "$LINENO"
16999then :
17000  xorg_cv_cc_flag_unknown_warning_option=yes
17001else $as_nop
17002  xorg_cv_cc_flag_unknown_warning_option=no
17003fi
17004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17005fi
17006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17008	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17009	CFLAGS="$xorg_testset_save_CFLAGS"
17010fi
17011
17012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17013	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17014		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17015	fi
17016	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17019if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17020then :
17021  printf %s "(cached) " >&6
17022else $as_nop
17023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17024/* end confdefs.h.  */
17025int i;
17026_ACEOF
17027if ac_fn_c_try_compile "$LINENO"
17028then :
17029  xorg_cv_cc_flag_unused_command_line_argument=yes
17030else $as_nop
17031  xorg_cv_cc_flag_unused_command_line_argument=no
17032fi
17033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17034fi
17035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17036printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17037	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17038	CFLAGS="$xorg_testset_save_CFLAGS"
17039fi
17040
17041found="no"
17042
17043	if test $found = "no" ; then
17044		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17046		fi
17047
17048		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17050		fi
17051
17052		CFLAGS="$CFLAGS -Werror=address"
17053
17054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17055printf %s "checking if $CC supports -Werror=address... " >&6; }
17056		cacheid=xorg_cv_cc_flag__Werror_address
17057		if eval test \${$cacheid+y}
17058then :
17059  printf %s "(cached) " >&6
17060else $as_nop
17061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062/* end confdefs.h.  */
17063int i;
17064int
17065main (void)
17066{
17067
17068  ;
17069  return 0;
17070}
17071_ACEOF
17072if ac_fn_c_try_link "$LINENO"
17073then :
17074  eval $cacheid=yes
17075else $as_nop
17076  eval $cacheid=no
17077fi
17078rm -f core conftest.err conftest.$ac_objext conftest.beam \
17079    conftest$ac_exeext conftest.$ac_ext
17080fi
17081
17082
17083		CFLAGS="$xorg_testset_save_CFLAGS"
17084
17085		eval supported=\$$cacheid
17086		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17087printf "%s\n" "$supported" >&6; }
17088		if test "$supported" = "yes" ; then
17089			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17090			found="yes"
17091		fi
17092	fi
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108xorg_testset_save_CFLAGS="$CFLAGS"
17109
17110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17114if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17115then :
17116  printf %s "(cached) " >&6
17117else $as_nop
17118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120int i;
17121_ACEOF
17122if ac_fn_c_try_compile "$LINENO"
17123then :
17124  xorg_cv_cc_flag_unknown_warning_option=yes
17125else $as_nop
17126  xorg_cv_cc_flag_unknown_warning_option=no
17127fi
17128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17129fi
17130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17133	CFLAGS="$xorg_testset_save_CFLAGS"
17134fi
17135
17136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17139	fi
17140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17143if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17144then :
17145  printf %s "(cached) " >&6
17146else $as_nop
17147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148/* end confdefs.h.  */
17149int i;
17150_ACEOF
17151if ac_fn_c_try_compile "$LINENO"
17152then :
17153  xorg_cv_cc_flag_unused_command_line_argument=yes
17154else $as_nop
17155  xorg_cv_cc_flag_unused_command_line_argument=no
17156fi
17157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17158fi
17159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17162	CFLAGS="$xorg_testset_save_CFLAGS"
17163fi
17164
17165found="no"
17166
17167	if test $found = "no" ; then
17168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17170		fi
17171
17172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17174		fi
17175
17176		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17177
17178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17179printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17180		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17181		if eval test \${$cacheid+y}
17182then :
17183  printf %s "(cached) " >&6
17184else $as_nop
17185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186/* end confdefs.h.  */
17187int i;
17188int
17189main (void)
17190{
17191
17192  ;
17193  return 0;
17194}
17195_ACEOF
17196if ac_fn_c_try_link "$LINENO"
17197then :
17198  eval $cacheid=yes
17199else $as_nop
17200  eval $cacheid=no
17201fi
17202rm -f core conftest.err conftest.$ac_objext conftest.beam \
17203    conftest$ac_exeext conftest.$ac_ext
17204fi
17205
17206
17207		CFLAGS="$xorg_testset_save_CFLAGS"
17208
17209		eval supported=\$$cacheid
17210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17211printf "%s\n" "$supported" >&6; }
17212		if test "$supported" = "yes" ; then
17213			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17214			found="yes"
17215		fi
17216	fi
17217
17218	if test $found = "no" ; then
17219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17221		fi
17222
17223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17225		fi
17226
17227		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17228
17229		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17230printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17231		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17232		if eval test \${$cacheid+y}
17233then :
17234  printf %s "(cached) " >&6
17235else $as_nop
17236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237/* end confdefs.h.  */
17238int i;
17239int
17240main (void)
17241{
17242
17243  ;
17244  return 0;
17245}
17246_ACEOF
17247if ac_fn_c_try_link "$LINENO"
17248then :
17249  eval $cacheid=yes
17250else $as_nop
17251  eval $cacheid=no
17252fi
17253rm -f core conftest.err conftest.$ac_objext conftest.beam \
17254    conftest$ac_exeext conftest.$ac_ext
17255fi
17256
17257
17258		CFLAGS="$xorg_testset_save_CFLAGS"
17259
17260		eval supported=\$$cacheid
17261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17262printf "%s\n" "$supported" >&6; }
17263		if test "$supported" = "yes" ; then
17264			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17265			found="yes"
17266		fi
17267	fi
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283xorg_testset_save_CFLAGS="$CFLAGS"
17284
17285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17287	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17288printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17289if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17290then :
17291  printf %s "(cached) " >&6
17292else $as_nop
17293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294/* end confdefs.h.  */
17295int i;
17296_ACEOF
17297if ac_fn_c_try_compile "$LINENO"
17298then :
17299  xorg_cv_cc_flag_unknown_warning_option=yes
17300else $as_nop
17301  xorg_cv_cc_flag_unknown_warning_option=no
17302fi
17303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17304fi
17305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17306printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17308	CFLAGS="$xorg_testset_save_CFLAGS"
17309fi
17310
17311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17314	fi
17315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17316	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17317printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17318if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17319then :
17320  printf %s "(cached) " >&6
17321else $as_nop
17322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323/* end confdefs.h.  */
17324int i;
17325_ACEOF
17326if ac_fn_c_try_compile "$LINENO"
17327then :
17328  xorg_cv_cc_flag_unused_command_line_argument=yes
17329else $as_nop
17330  xorg_cv_cc_flag_unused_command_line_argument=no
17331fi
17332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17333fi
17334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17335printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17337	CFLAGS="$xorg_testset_save_CFLAGS"
17338fi
17339
17340found="no"
17341
17342	if test $found = "no" ; then
17343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17345		fi
17346
17347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17349		fi
17350
17351		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17352
17353		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17354printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17355		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17356		if eval test \${$cacheid+y}
17357then :
17358  printf %s "(cached) " >&6
17359else $as_nop
17360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361/* end confdefs.h.  */
17362int i;
17363int
17364main (void)
17365{
17366
17367  ;
17368  return 0;
17369}
17370_ACEOF
17371if ac_fn_c_try_link "$LINENO"
17372then :
17373  eval $cacheid=yes
17374else $as_nop
17375  eval $cacheid=no
17376fi
17377rm -f core conftest.err conftest.$ac_objext conftest.beam \
17378    conftest$ac_exeext conftest.$ac_ext
17379fi
17380
17381
17382		CFLAGS="$xorg_testset_save_CFLAGS"
17383
17384		eval supported=\$$cacheid
17385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17386printf "%s\n" "$supported" >&6; }
17387		if test "$supported" = "yes" ; then
17388			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17389			found="yes"
17390		fi
17391	fi
17392
17393 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17394else
17395{ 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
17396printf "%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;}
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410xorg_testset_save_CFLAGS="$CFLAGS"
17411
17412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17415printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17416if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17417then :
17418  printf %s "(cached) " >&6
17419else $as_nop
17420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17421/* end confdefs.h.  */
17422int i;
17423_ACEOF
17424if ac_fn_c_try_compile "$LINENO"
17425then :
17426  xorg_cv_cc_flag_unknown_warning_option=yes
17427else $as_nop
17428  xorg_cv_cc_flag_unknown_warning_option=no
17429fi
17430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17431fi
17432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17433printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17435	CFLAGS="$xorg_testset_save_CFLAGS"
17436fi
17437
17438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17441	fi
17442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17443	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17444printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17445if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17446then :
17447  printf %s "(cached) " >&6
17448else $as_nop
17449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450/* end confdefs.h.  */
17451int i;
17452_ACEOF
17453if ac_fn_c_try_compile "$LINENO"
17454then :
17455  xorg_cv_cc_flag_unused_command_line_argument=yes
17456else $as_nop
17457  xorg_cv_cc_flag_unused_command_line_argument=no
17458fi
17459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17460fi
17461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17462printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17463	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17464	CFLAGS="$xorg_testset_save_CFLAGS"
17465fi
17466
17467found="no"
17468
17469	if test $found = "no" ; then
17470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17472		fi
17473
17474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17476		fi
17477
17478		CFLAGS="$CFLAGS -Wimplicit"
17479
17480		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17481printf %s "checking if $CC supports -Wimplicit... " >&6; }
17482		cacheid=xorg_cv_cc_flag__Wimplicit
17483		if eval test \${$cacheid+y}
17484then :
17485  printf %s "(cached) " >&6
17486else $as_nop
17487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488/* end confdefs.h.  */
17489int i;
17490int
17491main (void)
17492{
17493
17494  ;
17495  return 0;
17496}
17497_ACEOF
17498if ac_fn_c_try_link "$LINENO"
17499then :
17500  eval $cacheid=yes
17501else $as_nop
17502  eval $cacheid=no
17503fi
17504rm -f core conftest.err conftest.$ac_objext conftest.beam \
17505    conftest$ac_exeext conftest.$ac_ext
17506fi
17507
17508
17509		CFLAGS="$xorg_testset_save_CFLAGS"
17510
17511		eval supported=\$$cacheid
17512		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17513printf "%s\n" "$supported" >&6; }
17514		if test "$supported" = "yes" ; then
17515			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17516			found="yes"
17517		fi
17518	fi
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534xorg_testset_save_CFLAGS="$CFLAGS"
17535
17536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17538	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17539printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17540if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17541then :
17542  printf %s "(cached) " >&6
17543else $as_nop
17544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545/* end confdefs.h.  */
17546int i;
17547_ACEOF
17548if ac_fn_c_try_compile "$LINENO"
17549then :
17550  xorg_cv_cc_flag_unknown_warning_option=yes
17551else $as_nop
17552  xorg_cv_cc_flag_unknown_warning_option=no
17553fi
17554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17555fi
17556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17559	CFLAGS="$xorg_testset_save_CFLAGS"
17560fi
17561
17562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17565	fi
17566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17569if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17570then :
17571  printf %s "(cached) " >&6
17572else $as_nop
17573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574/* end confdefs.h.  */
17575int i;
17576_ACEOF
17577if ac_fn_c_try_compile "$LINENO"
17578then :
17579  xorg_cv_cc_flag_unused_command_line_argument=yes
17580else $as_nop
17581  xorg_cv_cc_flag_unused_command_line_argument=no
17582fi
17583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17584fi
17585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17586printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17587	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17588	CFLAGS="$xorg_testset_save_CFLAGS"
17589fi
17590
17591found="no"
17592
17593	if test $found = "no" ; then
17594		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17595			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17596		fi
17597
17598		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17599			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17600		fi
17601
17602		CFLAGS="$CFLAGS -Wnonnull"
17603
17604		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17605printf %s "checking if $CC supports -Wnonnull... " >&6; }
17606		cacheid=xorg_cv_cc_flag__Wnonnull
17607		if eval test \${$cacheid+y}
17608then :
17609  printf %s "(cached) " >&6
17610else $as_nop
17611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612/* end confdefs.h.  */
17613int i;
17614int
17615main (void)
17616{
17617
17618  ;
17619  return 0;
17620}
17621_ACEOF
17622if ac_fn_c_try_link "$LINENO"
17623then :
17624  eval $cacheid=yes
17625else $as_nop
17626  eval $cacheid=no
17627fi
17628rm -f core conftest.err conftest.$ac_objext conftest.beam \
17629    conftest$ac_exeext conftest.$ac_ext
17630fi
17631
17632
17633		CFLAGS="$xorg_testset_save_CFLAGS"
17634
17635		eval supported=\$$cacheid
17636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17637printf "%s\n" "$supported" >&6; }
17638		if test "$supported" = "yes" ; then
17639			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17640			found="yes"
17641		fi
17642	fi
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658xorg_testset_save_CFLAGS="$CFLAGS"
17659
17660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17663printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17664if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17665then :
17666  printf %s "(cached) " >&6
17667else $as_nop
17668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669/* end confdefs.h.  */
17670int i;
17671_ACEOF
17672if ac_fn_c_try_compile "$LINENO"
17673then :
17674  xorg_cv_cc_flag_unknown_warning_option=yes
17675else $as_nop
17676  xorg_cv_cc_flag_unknown_warning_option=no
17677fi
17678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17679fi
17680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17682	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17683	CFLAGS="$xorg_testset_save_CFLAGS"
17684fi
17685
17686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17687	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17688		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17689	fi
17690	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17693if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17694then :
17695  printf %s "(cached) " >&6
17696else $as_nop
17697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698/* end confdefs.h.  */
17699int i;
17700_ACEOF
17701if ac_fn_c_try_compile "$LINENO"
17702then :
17703  xorg_cv_cc_flag_unused_command_line_argument=yes
17704else $as_nop
17705  xorg_cv_cc_flag_unused_command_line_argument=no
17706fi
17707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17708fi
17709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17710printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17711	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17712	CFLAGS="$xorg_testset_save_CFLAGS"
17713fi
17714
17715found="no"
17716
17717	if test $found = "no" ; then
17718		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17720		fi
17721
17722		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17724		fi
17725
17726		CFLAGS="$CFLAGS -Winit-self"
17727
17728		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17729printf %s "checking if $CC supports -Winit-self... " >&6; }
17730		cacheid=xorg_cv_cc_flag__Winit_self
17731		if eval test \${$cacheid+y}
17732then :
17733  printf %s "(cached) " >&6
17734else $as_nop
17735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h.  */
17737int i;
17738int
17739main (void)
17740{
17741
17742  ;
17743  return 0;
17744}
17745_ACEOF
17746if ac_fn_c_try_link "$LINENO"
17747then :
17748  eval $cacheid=yes
17749else $as_nop
17750  eval $cacheid=no
17751fi
17752rm -f core conftest.err conftest.$ac_objext conftest.beam \
17753    conftest$ac_exeext conftest.$ac_ext
17754fi
17755
17756
17757		CFLAGS="$xorg_testset_save_CFLAGS"
17758
17759		eval supported=\$$cacheid
17760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17761printf "%s\n" "$supported" >&6; }
17762		if test "$supported" = "yes" ; then
17763			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17764			found="yes"
17765		fi
17766	fi
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782xorg_testset_save_CFLAGS="$CFLAGS"
17783
17784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17787printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17788if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17789then :
17790  printf %s "(cached) " >&6
17791else $as_nop
17792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793/* end confdefs.h.  */
17794int i;
17795_ACEOF
17796if ac_fn_c_try_compile "$LINENO"
17797then :
17798  xorg_cv_cc_flag_unknown_warning_option=yes
17799else $as_nop
17800  xorg_cv_cc_flag_unknown_warning_option=no
17801fi
17802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17803fi
17804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17807	CFLAGS="$xorg_testset_save_CFLAGS"
17808fi
17809
17810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17813	fi
17814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17817if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17818then :
17819  printf %s "(cached) " >&6
17820else $as_nop
17821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822/* end confdefs.h.  */
17823int i;
17824_ACEOF
17825if ac_fn_c_try_compile "$LINENO"
17826then :
17827  xorg_cv_cc_flag_unused_command_line_argument=yes
17828else $as_nop
17829  xorg_cv_cc_flag_unused_command_line_argument=no
17830fi
17831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17832fi
17833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17834printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17836	CFLAGS="$xorg_testset_save_CFLAGS"
17837fi
17838
17839found="no"
17840
17841	if test $found = "no" ; then
17842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17844		fi
17845
17846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17848		fi
17849
17850		CFLAGS="$CFLAGS -Wmain"
17851
17852		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17853printf %s "checking if $CC supports -Wmain... " >&6; }
17854		cacheid=xorg_cv_cc_flag__Wmain
17855		if eval test \${$cacheid+y}
17856then :
17857  printf %s "(cached) " >&6
17858else $as_nop
17859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860/* end confdefs.h.  */
17861int i;
17862int
17863main (void)
17864{
17865
17866  ;
17867  return 0;
17868}
17869_ACEOF
17870if ac_fn_c_try_link "$LINENO"
17871then :
17872  eval $cacheid=yes
17873else $as_nop
17874  eval $cacheid=no
17875fi
17876rm -f core conftest.err conftest.$ac_objext conftest.beam \
17877    conftest$ac_exeext conftest.$ac_ext
17878fi
17879
17880
17881		CFLAGS="$xorg_testset_save_CFLAGS"
17882
17883		eval supported=\$$cacheid
17884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17885printf "%s\n" "$supported" >&6; }
17886		if test "$supported" = "yes" ; then
17887			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17888			found="yes"
17889		fi
17890	fi
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906xorg_testset_save_CFLAGS="$CFLAGS"
17907
17908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17911printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17912if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17913then :
17914  printf %s "(cached) " >&6
17915else $as_nop
17916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17917/* end confdefs.h.  */
17918int i;
17919_ACEOF
17920if ac_fn_c_try_compile "$LINENO"
17921then :
17922  xorg_cv_cc_flag_unknown_warning_option=yes
17923else $as_nop
17924  xorg_cv_cc_flag_unknown_warning_option=no
17925fi
17926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17927fi
17928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17929printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17931	CFLAGS="$xorg_testset_save_CFLAGS"
17932fi
17933
17934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17937	fi
17938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17939	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17940printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17941if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17942then :
17943  printf %s "(cached) " >&6
17944else $as_nop
17945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946/* end confdefs.h.  */
17947int i;
17948_ACEOF
17949if ac_fn_c_try_compile "$LINENO"
17950then :
17951  xorg_cv_cc_flag_unused_command_line_argument=yes
17952else $as_nop
17953  xorg_cv_cc_flag_unused_command_line_argument=no
17954fi
17955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17956fi
17957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17960	CFLAGS="$xorg_testset_save_CFLAGS"
17961fi
17962
17963found="no"
17964
17965	if test $found = "no" ; then
17966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17968		fi
17969
17970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17972		fi
17973
17974		CFLAGS="$CFLAGS -Wmissing-braces"
17975
17976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17977printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17978		cacheid=xorg_cv_cc_flag__Wmissing_braces
17979		if eval test \${$cacheid+y}
17980then :
17981  printf %s "(cached) " >&6
17982else $as_nop
17983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984/* end confdefs.h.  */
17985int i;
17986int
17987main (void)
17988{
17989
17990  ;
17991  return 0;
17992}
17993_ACEOF
17994if ac_fn_c_try_link "$LINENO"
17995then :
17996  eval $cacheid=yes
17997else $as_nop
17998  eval $cacheid=no
17999fi
18000rm -f core conftest.err conftest.$ac_objext conftest.beam \
18001    conftest$ac_exeext conftest.$ac_ext
18002fi
18003
18004
18005		CFLAGS="$xorg_testset_save_CFLAGS"
18006
18007		eval supported=\$$cacheid
18008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18009printf "%s\n" "$supported" >&6; }
18010		if test "$supported" = "yes" ; then
18011			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18012			found="yes"
18013		fi
18014	fi
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030xorg_testset_save_CFLAGS="$CFLAGS"
18031
18032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18036if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18037then :
18038  printf %s "(cached) " >&6
18039else $as_nop
18040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041/* end confdefs.h.  */
18042int i;
18043_ACEOF
18044if ac_fn_c_try_compile "$LINENO"
18045then :
18046  xorg_cv_cc_flag_unknown_warning_option=yes
18047else $as_nop
18048  xorg_cv_cc_flag_unknown_warning_option=no
18049fi
18050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18051fi
18052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18053printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18055	CFLAGS="$xorg_testset_save_CFLAGS"
18056fi
18057
18058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18061	fi
18062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18064printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18065if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18066then :
18067  printf %s "(cached) " >&6
18068else $as_nop
18069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070/* end confdefs.h.  */
18071int i;
18072_ACEOF
18073if ac_fn_c_try_compile "$LINENO"
18074then :
18075  xorg_cv_cc_flag_unused_command_line_argument=yes
18076else $as_nop
18077  xorg_cv_cc_flag_unused_command_line_argument=no
18078fi
18079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18080fi
18081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18084	CFLAGS="$xorg_testset_save_CFLAGS"
18085fi
18086
18087found="no"
18088
18089	if test $found = "no" ; then
18090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18092		fi
18093
18094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18096		fi
18097
18098		CFLAGS="$CFLAGS -Wsequence-point"
18099
18100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18101printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18102		cacheid=xorg_cv_cc_flag__Wsequence_point
18103		if eval test \${$cacheid+y}
18104then :
18105  printf %s "(cached) " >&6
18106else $as_nop
18107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108/* end confdefs.h.  */
18109int i;
18110int
18111main (void)
18112{
18113
18114  ;
18115  return 0;
18116}
18117_ACEOF
18118if ac_fn_c_try_link "$LINENO"
18119then :
18120  eval $cacheid=yes
18121else $as_nop
18122  eval $cacheid=no
18123fi
18124rm -f core conftest.err conftest.$ac_objext conftest.beam \
18125    conftest$ac_exeext conftest.$ac_ext
18126fi
18127
18128
18129		CFLAGS="$xorg_testset_save_CFLAGS"
18130
18131		eval supported=\$$cacheid
18132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18133printf "%s\n" "$supported" >&6; }
18134		if test "$supported" = "yes" ; then
18135			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18136			found="yes"
18137		fi
18138	fi
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154xorg_testset_save_CFLAGS="$CFLAGS"
18155
18156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18158	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18160if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18161then :
18162  printf %s "(cached) " >&6
18163else $as_nop
18164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165/* end confdefs.h.  */
18166int i;
18167_ACEOF
18168if ac_fn_c_try_compile "$LINENO"
18169then :
18170  xorg_cv_cc_flag_unknown_warning_option=yes
18171else $as_nop
18172  xorg_cv_cc_flag_unknown_warning_option=no
18173fi
18174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18175fi
18176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18177printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18178	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18179	CFLAGS="$xorg_testset_save_CFLAGS"
18180fi
18181
18182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18183	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18184		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18185	fi
18186	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18188printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18189if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18190then :
18191  printf %s "(cached) " >&6
18192else $as_nop
18193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194/* end confdefs.h.  */
18195int i;
18196_ACEOF
18197if ac_fn_c_try_compile "$LINENO"
18198then :
18199  xorg_cv_cc_flag_unused_command_line_argument=yes
18200else $as_nop
18201  xorg_cv_cc_flag_unused_command_line_argument=no
18202fi
18203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18204fi
18205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18206printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18208	CFLAGS="$xorg_testset_save_CFLAGS"
18209fi
18210
18211found="no"
18212
18213	if test $found = "no" ; then
18214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18216		fi
18217
18218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18220		fi
18221
18222		CFLAGS="$CFLAGS -Wreturn-type"
18223
18224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18225printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18226		cacheid=xorg_cv_cc_flag__Wreturn_type
18227		if eval test \${$cacheid+y}
18228then :
18229  printf %s "(cached) " >&6
18230else $as_nop
18231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232/* end confdefs.h.  */
18233int i;
18234int
18235main (void)
18236{
18237
18238  ;
18239  return 0;
18240}
18241_ACEOF
18242if ac_fn_c_try_link "$LINENO"
18243then :
18244  eval $cacheid=yes
18245else $as_nop
18246  eval $cacheid=no
18247fi
18248rm -f core conftest.err conftest.$ac_objext conftest.beam \
18249    conftest$ac_exeext conftest.$ac_ext
18250fi
18251
18252
18253		CFLAGS="$xorg_testset_save_CFLAGS"
18254
18255		eval supported=\$$cacheid
18256		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18257printf "%s\n" "$supported" >&6; }
18258		if test "$supported" = "yes" ; then
18259			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18260			found="yes"
18261		fi
18262	fi
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278xorg_testset_save_CFLAGS="$CFLAGS"
18279
18280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18283printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18284if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18285then :
18286  printf %s "(cached) " >&6
18287else $as_nop
18288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289/* end confdefs.h.  */
18290int i;
18291_ACEOF
18292if ac_fn_c_try_compile "$LINENO"
18293then :
18294  xorg_cv_cc_flag_unknown_warning_option=yes
18295else $as_nop
18296  xorg_cv_cc_flag_unknown_warning_option=no
18297fi
18298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18299fi
18300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18303	CFLAGS="$xorg_testset_save_CFLAGS"
18304fi
18305
18306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18309	fi
18310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18311	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18313if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18314then :
18315  printf %s "(cached) " >&6
18316else $as_nop
18317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318/* end confdefs.h.  */
18319int i;
18320_ACEOF
18321if ac_fn_c_try_compile "$LINENO"
18322then :
18323  xorg_cv_cc_flag_unused_command_line_argument=yes
18324else $as_nop
18325  xorg_cv_cc_flag_unused_command_line_argument=no
18326fi
18327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18328fi
18329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18330printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18332	CFLAGS="$xorg_testset_save_CFLAGS"
18333fi
18334
18335found="no"
18336
18337	if test $found = "no" ; then
18338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18340		fi
18341
18342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18344		fi
18345
18346		CFLAGS="$CFLAGS -Wtrigraphs"
18347
18348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18349printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18350		cacheid=xorg_cv_cc_flag__Wtrigraphs
18351		if eval test \${$cacheid+y}
18352then :
18353  printf %s "(cached) " >&6
18354else $as_nop
18355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356/* end confdefs.h.  */
18357int i;
18358int
18359main (void)
18360{
18361
18362  ;
18363  return 0;
18364}
18365_ACEOF
18366if ac_fn_c_try_link "$LINENO"
18367then :
18368  eval $cacheid=yes
18369else $as_nop
18370  eval $cacheid=no
18371fi
18372rm -f core conftest.err conftest.$ac_objext conftest.beam \
18373    conftest$ac_exeext conftest.$ac_ext
18374fi
18375
18376
18377		CFLAGS="$xorg_testset_save_CFLAGS"
18378
18379		eval supported=\$$cacheid
18380		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18381printf "%s\n" "$supported" >&6; }
18382		if test "$supported" = "yes" ; then
18383			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18384			found="yes"
18385		fi
18386	fi
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402xorg_testset_save_CFLAGS="$CFLAGS"
18403
18404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18405	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18408if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18409then :
18410  printf %s "(cached) " >&6
18411else $as_nop
18412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413/* end confdefs.h.  */
18414int i;
18415_ACEOF
18416if ac_fn_c_try_compile "$LINENO"
18417then :
18418  xorg_cv_cc_flag_unknown_warning_option=yes
18419else $as_nop
18420  xorg_cv_cc_flag_unknown_warning_option=no
18421fi
18422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18423fi
18424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18427	CFLAGS="$xorg_testset_save_CFLAGS"
18428fi
18429
18430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18433	fi
18434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18435	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18437if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18438then :
18439  printf %s "(cached) " >&6
18440else $as_nop
18441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442/* end confdefs.h.  */
18443int i;
18444_ACEOF
18445if ac_fn_c_try_compile "$LINENO"
18446then :
18447  xorg_cv_cc_flag_unused_command_line_argument=yes
18448else $as_nop
18449  xorg_cv_cc_flag_unused_command_line_argument=no
18450fi
18451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18452fi
18453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18456	CFLAGS="$xorg_testset_save_CFLAGS"
18457fi
18458
18459found="no"
18460
18461	if test $found = "no" ; then
18462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18464		fi
18465
18466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18468		fi
18469
18470		CFLAGS="$CFLAGS -Warray-bounds"
18471
18472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18473printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18474		cacheid=xorg_cv_cc_flag__Warray_bounds
18475		if eval test \${$cacheid+y}
18476then :
18477  printf %s "(cached) " >&6
18478else $as_nop
18479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480/* end confdefs.h.  */
18481int i;
18482int
18483main (void)
18484{
18485
18486  ;
18487  return 0;
18488}
18489_ACEOF
18490if ac_fn_c_try_link "$LINENO"
18491then :
18492  eval $cacheid=yes
18493else $as_nop
18494  eval $cacheid=no
18495fi
18496rm -f core conftest.err conftest.$ac_objext conftest.beam \
18497    conftest$ac_exeext conftest.$ac_ext
18498fi
18499
18500
18501		CFLAGS="$xorg_testset_save_CFLAGS"
18502
18503		eval supported=\$$cacheid
18504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18505printf "%s\n" "$supported" >&6; }
18506		if test "$supported" = "yes" ; then
18507			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18508			found="yes"
18509		fi
18510	fi
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526xorg_testset_save_CFLAGS="$CFLAGS"
18527
18528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18532if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18533then :
18534  printf %s "(cached) " >&6
18535else $as_nop
18536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537/* end confdefs.h.  */
18538int i;
18539_ACEOF
18540if ac_fn_c_try_compile "$LINENO"
18541then :
18542  xorg_cv_cc_flag_unknown_warning_option=yes
18543else $as_nop
18544  xorg_cv_cc_flag_unknown_warning_option=no
18545fi
18546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18547fi
18548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18551	CFLAGS="$xorg_testset_save_CFLAGS"
18552fi
18553
18554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18557	fi
18558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18559	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18561if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18562then :
18563  printf %s "(cached) " >&6
18564else $as_nop
18565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18566/* end confdefs.h.  */
18567int i;
18568_ACEOF
18569if ac_fn_c_try_compile "$LINENO"
18570then :
18571  xorg_cv_cc_flag_unused_command_line_argument=yes
18572else $as_nop
18573  xorg_cv_cc_flag_unused_command_line_argument=no
18574fi
18575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18576fi
18577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18578printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18580	CFLAGS="$xorg_testset_save_CFLAGS"
18581fi
18582
18583found="no"
18584
18585	if test $found = "no" ; then
18586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18588		fi
18589
18590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18592		fi
18593
18594		CFLAGS="$CFLAGS -Wwrite-strings"
18595
18596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18597printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18598		cacheid=xorg_cv_cc_flag__Wwrite_strings
18599		if eval test \${$cacheid+y}
18600then :
18601  printf %s "(cached) " >&6
18602else $as_nop
18603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604/* end confdefs.h.  */
18605int i;
18606int
18607main (void)
18608{
18609
18610  ;
18611  return 0;
18612}
18613_ACEOF
18614if ac_fn_c_try_link "$LINENO"
18615then :
18616  eval $cacheid=yes
18617else $as_nop
18618  eval $cacheid=no
18619fi
18620rm -f core conftest.err conftest.$ac_objext conftest.beam \
18621    conftest$ac_exeext conftest.$ac_ext
18622fi
18623
18624
18625		CFLAGS="$xorg_testset_save_CFLAGS"
18626
18627		eval supported=\$$cacheid
18628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18629printf "%s\n" "$supported" >&6; }
18630		if test "$supported" = "yes" ; then
18631			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18632			found="yes"
18633		fi
18634	fi
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650xorg_testset_save_CFLAGS="$CFLAGS"
18651
18652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18656if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18657then :
18658  printf %s "(cached) " >&6
18659else $as_nop
18660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661/* end confdefs.h.  */
18662int i;
18663_ACEOF
18664if ac_fn_c_try_compile "$LINENO"
18665then :
18666  xorg_cv_cc_flag_unknown_warning_option=yes
18667else $as_nop
18668  xorg_cv_cc_flag_unknown_warning_option=no
18669fi
18670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18671fi
18672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18674	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18675	CFLAGS="$xorg_testset_save_CFLAGS"
18676fi
18677
18678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18679	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18680		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18681	fi
18682	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18685if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18686then :
18687  printf %s "(cached) " >&6
18688else $as_nop
18689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18690/* end confdefs.h.  */
18691int i;
18692_ACEOF
18693if ac_fn_c_try_compile "$LINENO"
18694then :
18695  xorg_cv_cc_flag_unused_command_line_argument=yes
18696else $as_nop
18697  xorg_cv_cc_flag_unused_command_line_argument=no
18698fi
18699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18700fi
18701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18704	CFLAGS="$xorg_testset_save_CFLAGS"
18705fi
18706
18707found="no"
18708
18709	if test $found = "no" ; then
18710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18712		fi
18713
18714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18716		fi
18717
18718		CFLAGS="$CFLAGS -Waddress"
18719
18720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18721printf %s "checking if $CC supports -Waddress... " >&6; }
18722		cacheid=xorg_cv_cc_flag__Waddress
18723		if eval test \${$cacheid+y}
18724then :
18725  printf %s "(cached) " >&6
18726else $as_nop
18727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728/* end confdefs.h.  */
18729int i;
18730int
18731main (void)
18732{
18733
18734  ;
18735  return 0;
18736}
18737_ACEOF
18738if ac_fn_c_try_link "$LINENO"
18739then :
18740  eval $cacheid=yes
18741else $as_nop
18742  eval $cacheid=no
18743fi
18744rm -f core conftest.err conftest.$ac_objext conftest.beam \
18745    conftest$ac_exeext conftest.$ac_ext
18746fi
18747
18748
18749		CFLAGS="$xorg_testset_save_CFLAGS"
18750
18751		eval supported=\$$cacheid
18752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18753printf "%s\n" "$supported" >&6; }
18754		if test "$supported" = "yes" ; then
18755			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18756			found="yes"
18757		fi
18758	fi
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774xorg_testset_save_CFLAGS="$CFLAGS"
18775
18776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18777	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18778	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18779printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18780if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18781then :
18782  printf %s "(cached) " >&6
18783else $as_nop
18784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785/* end confdefs.h.  */
18786int i;
18787_ACEOF
18788if ac_fn_c_try_compile "$LINENO"
18789then :
18790  xorg_cv_cc_flag_unknown_warning_option=yes
18791else $as_nop
18792  xorg_cv_cc_flag_unknown_warning_option=no
18793fi
18794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18795fi
18796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18799	CFLAGS="$xorg_testset_save_CFLAGS"
18800fi
18801
18802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18805	fi
18806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18809if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18810then :
18811  printf %s "(cached) " >&6
18812else $as_nop
18813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814/* end confdefs.h.  */
18815int i;
18816_ACEOF
18817if ac_fn_c_try_compile "$LINENO"
18818then :
18819  xorg_cv_cc_flag_unused_command_line_argument=yes
18820else $as_nop
18821  xorg_cv_cc_flag_unused_command_line_argument=no
18822fi
18823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18824fi
18825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18827	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18828	CFLAGS="$xorg_testset_save_CFLAGS"
18829fi
18830
18831found="no"
18832
18833	if test $found = "no" ; then
18834		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18836		fi
18837
18838		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18840		fi
18841
18842		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18843
18844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18845printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18846		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18847		if eval test \${$cacheid+y}
18848then :
18849  printf %s "(cached) " >&6
18850else $as_nop
18851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852/* end confdefs.h.  */
18853int i;
18854int
18855main (void)
18856{
18857
18858  ;
18859  return 0;
18860}
18861_ACEOF
18862if ac_fn_c_try_link "$LINENO"
18863then :
18864  eval $cacheid=yes
18865else $as_nop
18866  eval $cacheid=no
18867fi
18868rm -f core conftest.err conftest.$ac_objext conftest.beam \
18869    conftest$ac_exeext conftest.$ac_ext
18870fi
18871
18872
18873		CFLAGS="$xorg_testset_save_CFLAGS"
18874
18875		eval supported=\$$cacheid
18876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18877printf "%s\n" "$supported" >&6; }
18878		if test "$supported" = "yes" ; then
18879			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18880			found="yes"
18881		fi
18882	fi
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898xorg_testset_save_CFLAGS="$CFLAGS"
18899
18900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18905then :
18906  printf %s "(cached) " >&6
18907else $as_nop
18908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909/* end confdefs.h.  */
18910int i;
18911_ACEOF
18912if ac_fn_c_try_compile "$LINENO"
18913then :
18914  xorg_cv_cc_flag_unknown_warning_option=yes
18915else $as_nop
18916  xorg_cv_cc_flag_unknown_warning_option=no
18917fi
18918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18919fi
18920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18923	CFLAGS="$xorg_testset_save_CFLAGS"
18924fi
18925
18926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18929	fi
18930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18934then :
18935  printf %s "(cached) " >&6
18936else $as_nop
18937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938/* end confdefs.h.  */
18939int i;
18940_ACEOF
18941if ac_fn_c_try_compile "$LINENO"
18942then :
18943  xorg_cv_cc_flag_unused_command_line_argument=yes
18944else $as_nop
18945  xorg_cv_cc_flag_unused_command_line_argument=no
18946fi
18947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18948fi
18949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18952	CFLAGS="$xorg_testset_save_CFLAGS"
18953fi
18954
18955found="no"
18956
18957	if test $found = "no" ; then
18958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18960		fi
18961
18962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18964		fi
18965
18966		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18967
18968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18969printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18970		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18971		if eval test \${$cacheid+y}
18972then :
18973  printf %s "(cached) " >&6
18974else $as_nop
18975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976/* end confdefs.h.  */
18977int i;
18978int
18979main (void)
18980{
18981
18982  ;
18983  return 0;
18984}
18985_ACEOF
18986if ac_fn_c_try_link "$LINENO"
18987then :
18988  eval $cacheid=yes
18989else $as_nop
18990  eval $cacheid=no
18991fi
18992rm -f core conftest.err conftest.$ac_objext conftest.beam \
18993    conftest$ac_exeext conftest.$ac_ext
18994fi
18995
18996
18997		CFLAGS="$xorg_testset_save_CFLAGS"
18998
18999		eval supported=\$$cacheid
19000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19001printf "%s\n" "$supported" >&6; }
19002		if test "$supported" = "yes" ; then
19003			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19004			found="yes"
19005		fi
19006	fi
19007
19008
19009fi
19010
19011
19012
19013
19014
19015
19016
19017		CWARNFLAGS="$BASE_CFLAGS"
19018		if  test "x$GCC" = xyes ; then
19019		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19020		fi
19021
19022
19023
19024
19025
19026
19027
19028
19029# Check whether --enable-strict-compilation was given.
19030if test ${enable_strict_compilation+y}
19031then :
19032  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19033else $as_nop
19034  STRICT_COMPILE=no
19035fi
19036
19037
19038
19039
19040
19041
19042STRICT_CFLAGS=""
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056xorg_testset_save_CFLAGS="$CFLAGS"
19057
19058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19059	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19061printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19062if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19063then :
19064  printf %s "(cached) " >&6
19065else $as_nop
19066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067/* end confdefs.h.  */
19068int i;
19069_ACEOF
19070if ac_fn_c_try_compile "$LINENO"
19071then :
19072  xorg_cv_cc_flag_unknown_warning_option=yes
19073else $as_nop
19074  xorg_cv_cc_flag_unknown_warning_option=no
19075fi
19076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19077fi
19078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19079printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19081	CFLAGS="$xorg_testset_save_CFLAGS"
19082fi
19083
19084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19087	fi
19088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19089	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19090printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19091if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19092then :
19093  printf %s "(cached) " >&6
19094else $as_nop
19095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096/* end confdefs.h.  */
19097int i;
19098_ACEOF
19099if ac_fn_c_try_compile "$LINENO"
19100then :
19101  xorg_cv_cc_flag_unused_command_line_argument=yes
19102else $as_nop
19103  xorg_cv_cc_flag_unused_command_line_argument=no
19104fi
19105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19106fi
19107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19109	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19110	CFLAGS="$xorg_testset_save_CFLAGS"
19111fi
19112
19113found="no"
19114
19115	if test $found = "no" ; then
19116		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19117			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19118		fi
19119
19120		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19121			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19122		fi
19123
19124		CFLAGS="$CFLAGS -pedantic"
19125
19126		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19127printf %s "checking if $CC supports -pedantic... " >&6; }
19128		cacheid=xorg_cv_cc_flag__pedantic
19129		if eval test \${$cacheid+y}
19130then :
19131  printf %s "(cached) " >&6
19132else $as_nop
19133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134/* end confdefs.h.  */
19135int i;
19136int
19137main (void)
19138{
19139
19140  ;
19141  return 0;
19142}
19143_ACEOF
19144if ac_fn_c_try_link "$LINENO"
19145then :
19146  eval $cacheid=yes
19147else $as_nop
19148  eval $cacheid=no
19149fi
19150rm -f core conftest.err conftest.$ac_objext conftest.beam \
19151    conftest$ac_exeext conftest.$ac_ext
19152fi
19153
19154
19155		CFLAGS="$xorg_testset_save_CFLAGS"
19156
19157		eval supported=\$$cacheid
19158		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19159printf "%s\n" "$supported" >&6; }
19160		if test "$supported" = "yes" ; then
19161			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19162			found="yes"
19163		fi
19164	fi
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180xorg_testset_save_CFLAGS="$CFLAGS"
19181
19182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19186if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19187then :
19188  printf %s "(cached) " >&6
19189else $as_nop
19190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191/* end confdefs.h.  */
19192int i;
19193_ACEOF
19194if ac_fn_c_try_compile "$LINENO"
19195then :
19196  xorg_cv_cc_flag_unknown_warning_option=yes
19197else $as_nop
19198  xorg_cv_cc_flag_unknown_warning_option=no
19199fi
19200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19201fi
19202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19205	CFLAGS="$xorg_testset_save_CFLAGS"
19206fi
19207
19208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19211	fi
19212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19215if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19216then :
19217  printf %s "(cached) " >&6
19218else $as_nop
19219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220/* end confdefs.h.  */
19221int i;
19222_ACEOF
19223if ac_fn_c_try_compile "$LINENO"
19224then :
19225  xorg_cv_cc_flag_unused_command_line_argument=yes
19226else $as_nop
19227  xorg_cv_cc_flag_unused_command_line_argument=no
19228fi
19229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19230fi
19231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19234	CFLAGS="$xorg_testset_save_CFLAGS"
19235fi
19236
19237found="no"
19238
19239	if test $found = "no" ; then
19240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19242		fi
19243
19244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19246		fi
19247
19248		CFLAGS="$CFLAGS -Werror"
19249
19250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19251printf %s "checking if $CC supports -Werror... " >&6; }
19252		cacheid=xorg_cv_cc_flag__Werror
19253		if eval test \${$cacheid+y}
19254then :
19255  printf %s "(cached) " >&6
19256else $as_nop
19257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258/* end confdefs.h.  */
19259int i;
19260int
19261main (void)
19262{
19263
19264  ;
19265  return 0;
19266}
19267_ACEOF
19268if ac_fn_c_try_link "$LINENO"
19269then :
19270  eval $cacheid=yes
19271else $as_nop
19272  eval $cacheid=no
19273fi
19274rm -f core conftest.err conftest.$ac_objext conftest.beam \
19275    conftest$ac_exeext conftest.$ac_ext
19276fi
19277
19278
19279		CFLAGS="$xorg_testset_save_CFLAGS"
19280
19281		eval supported=\$$cacheid
19282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19283printf "%s\n" "$supported" >&6; }
19284		if test "$supported" = "yes" ; then
19285			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19286			found="yes"
19287		fi
19288	fi
19289
19290	if test $found = "no" ; then
19291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19293		fi
19294
19295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19297		fi
19298
19299		CFLAGS="$CFLAGS -errwarn"
19300
19301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19302printf %s "checking if $CC supports -errwarn... " >&6; }
19303		cacheid=xorg_cv_cc_flag__errwarn
19304		if eval test \${$cacheid+y}
19305then :
19306  printf %s "(cached) " >&6
19307else $as_nop
19308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309/* end confdefs.h.  */
19310int i;
19311int
19312main (void)
19313{
19314
19315  ;
19316  return 0;
19317}
19318_ACEOF
19319if ac_fn_c_try_link "$LINENO"
19320then :
19321  eval $cacheid=yes
19322else $as_nop
19323  eval $cacheid=no
19324fi
19325rm -f core conftest.err conftest.$ac_objext conftest.beam \
19326    conftest$ac_exeext conftest.$ac_ext
19327fi
19328
19329
19330		CFLAGS="$xorg_testset_save_CFLAGS"
19331
19332		eval supported=\$$cacheid
19333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19334printf "%s\n" "$supported" >&6; }
19335		if test "$supported" = "yes" ; then
19336			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19337			found="yes"
19338		fi
19339	fi
19340
19341
19342
19343# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19344# activate it with -Werror, so we add it here explicitly.
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358xorg_testset_save_CFLAGS="$CFLAGS"
19359
19360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19361	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19362	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19364if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19365then :
19366  printf %s "(cached) " >&6
19367else $as_nop
19368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369/* end confdefs.h.  */
19370int i;
19371_ACEOF
19372if ac_fn_c_try_compile "$LINENO"
19373then :
19374  xorg_cv_cc_flag_unknown_warning_option=yes
19375else $as_nop
19376  xorg_cv_cc_flag_unknown_warning_option=no
19377fi
19378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19379fi
19380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19383	CFLAGS="$xorg_testset_save_CFLAGS"
19384fi
19385
19386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19389	fi
19390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19393if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19394then :
19395  printf %s "(cached) " >&6
19396else $as_nop
19397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398/* end confdefs.h.  */
19399int i;
19400_ACEOF
19401if ac_fn_c_try_compile "$LINENO"
19402then :
19403  xorg_cv_cc_flag_unused_command_line_argument=yes
19404else $as_nop
19405  xorg_cv_cc_flag_unused_command_line_argument=no
19406fi
19407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19408fi
19409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19412	CFLAGS="$xorg_testset_save_CFLAGS"
19413fi
19414
19415found="no"
19416
19417	if test $found = "no" ; then
19418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19420		fi
19421
19422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19424		fi
19425
19426		CFLAGS="$CFLAGS -Werror=attributes"
19427
19428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19429printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19430		cacheid=xorg_cv_cc_flag__Werror_attributes
19431		if eval test \${$cacheid+y}
19432then :
19433  printf %s "(cached) " >&6
19434else $as_nop
19435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436/* end confdefs.h.  */
19437int i;
19438int
19439main (void)
19440{
19441
19442  ;
19443  return 0;
19444}
19445_ACEOF
19446if ac_fn_c_try_link "$LINENO"
19447then :
19448  eval $cacheid=yes
19449else $as_nop
19450  eval $cacheid=no
19451fi
19452rm -f core conftest.err conftest.$ac_objext conftest.beam \
19453    conftest$ac_exeext conftest.$ac_ext
19454fi
19455
19456
19457		CFLAGS="$xorg_testset_save_CFLAGS"
19458
19459		eval supported=\$$cacheid
19460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19461printf "%s\n" "$supported" >&6; }
19462		if test "$supported" = "yes" ; then
19463			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19464			found="yes"
19465		fi
19466	fi
19467
19468
19469
19470if test "x$STRICT_COMPILE" = "xyes"; then
19471    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19472    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19473fi
19474
19475
19476
19477
19478
19479
19480cat >>confdefs.h <<_ACEOF
19481#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19482_ACEOF
19483
19484	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19485	if test "x$PVM" = "x"; then
19486		PVM="0"
19487	fi
19488
19489printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19490
19491	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19492	if test "x$PVP" = "x"; then
19493		PVP="0"
19494	fi
19495
19496printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19497
19498
19499
19500CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19501mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19502|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19503touch \$(top_srcdir)/ChangeLog; \
19504echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19505
19506
19507
19508
19509macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19510INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19511mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19512|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19513touch \$(top_srcdir)/INSTALL; \
19514echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19515
19516
19517
19518
19519
19520
19521case $host_os in
19522    solaris*)
19523        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19524        # check for a man page file found in later versions that use
19525        # traditional section numbers instead
19526        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19527printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19528if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19529then :
19530  printf %s "(cached) " >&6
19531else $as_nop
19532  test "$cross_compiling" = yes &&
19533  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19534if test -r "/usr/share/man/man7/attributes.7"; then
19535  ac_cv_file__usr_share_man_man7_attributes_7=yes
19536else
19537  ac_cv_file__usr_share_man_man7_attributes_7=no
19538fi
19539fi
19540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19541printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19542if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19543then :
19544  SYSV_MAN_SECTIONS=false
19545else $as_nop
19546  SYSV_MAN_SECTIONS=true
19547fi
19548
19549        ;;
19550    *) SYSV_MAN_SECTIONS=false ;;
19551esac
19552
19553if test x$APP_MAN_SUFFIX = x    ; then
19554    APP_MAN_SUFFIX=1
19555fi
19556if test x$APP_MAN_DIR = x    ; then
19557    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19558fi
19559
19560if test x$LIB_MAN_SUFFIX = x    ; then
19561    LIB_MAN_SUFFIX=3
19562fi
19563if test x$LIB_MAN_DIR = x    ; then
19564    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19565fi
19566
19567if test x$FILE_MAN_SUFFIX = x    ; then
19568    case $SYSV_MAN_SECTIONS in
19569	true)				FILE_MAN_SUFFIX=4  ;;
19570	*)				FILE_MAN_SUFFIX=5  ;;
19571    esac
19572fi
19573if test x$FILE_MAN_DIR = x    ; then
19574    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19575fi
19576
19577if test x$MISC_MAN_SUFFIX = x    ; then
19578    case $SYSV_MAN_SECTIONS in
19579	true)				MISC_MAN_SUFFIX=5  ;;
19580	*)				MISC_MAN_SUFFIX=7  ;;
19581    esac
19582fi
19583if test x$MISC_MAN_DIR = x    ; then
19584    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19585fi
19586
19587if test x$DRIVER_MAN_SUFFIX = x    ; then
19588    case $SYSV_MAN_SECTIONS in
19589	true)				DRIVER_MAN_SUFFIX=7  ;;
19590	*)				DRIVER_MAN_SUFFIX=4  ;;
19591    esac
19592fi
19593if test x$DRIVER_MAN_DIR = x    ; then
19594    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19595fi
19596
19597if test x$ADMIN_MAN_SUFFIX = x    ; then
19598    case $SYSV_MAN_SECTIONS in
19599	true)				ADMIN_MAN_SUFFIX=1m ;;
19600	*)				ADMIN_MAN_SUFFIX=8  ;;
19601    esac
19602fi
19603if test x$ADMIN_MAN_DIR = x    ; then
19604    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19605fi
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621XORG_MAN_PAGE="X Version 11"
19622
19623MAN_SUBSTS="\
19624	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19625	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19626	-e 's|__xservername__|Xorg|g' \
19627	-e 's|__xconfigfile__|xorg.conf|g' \
19628	-e 's|__projectroot__|\$(prefix)|g' \
19629	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19630	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19631	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19632	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19633	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19634	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19635	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19636
19637
19638
19639# Check whether --enable-silent-rules was given.
19640if test ${enable_silent_rules+y}
19641then :
19642  enableval=$enable_silent_rules;
19643fi
19644
19645case $enable_silent_rules in # (((
19646  yes) AM_DEFAULT_VERBOSITY=0;;
19647   no) AM_DEFAULT_VERBOSITY=1;;
19648    *) AM_DEFAULT_VERBOSITY=0;;
19649esac
19650am_make=${MAKE-make}
19651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19652printf %s "checking whether $am_make supports nested variables... " >&6; }
19653if test ${am_cv_make_support_nested_variables+y}
19654then :
19655  printf %s "(cached) " >&6
19656else $as_nop
19657  if printf "%s\n" 'TRUE=$(BAR$(V))
19658BAR0=false
19659BAR1=true
19660V=1
19661am__doit:
19662	@$(TRUE)
19663.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19664  am_cv_make_support_nested_variables=yes
19665else
19666  am_cv_make_support_nested_variables=no
19667fi
19668fi
19669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19670printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19671if test $am_cv_make_support_nested_variables = yes; then
19672    AM_V='$(V)'
19673  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19674else
19675  AM_V=$AM_DEFAULT_VERBOSITY
19676  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19677fi
19678AM_BACKSLASH='\'
19679
19680
19681
19682# Checks for programs.
19683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19684printf %s "checking whether ln -s works... " >&6; }
19685LN_S=$as_ln_s
19686if test "$LN_S" = "ln -s"; then
19687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19688printf "%s\n" "yes" >&6; }
19689else
19690  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19691printf "%s\n" "no, using $LN_S" >&6; }
19692fi
19693
19694
19695# Checks for library functions.
19696ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
19697if test "x$ac_cv_func_explicit_bzero" = xyes
19698then :
19699  printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
19700
19701fi
19702ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
19703if test "x$ac_cv_func_pathconf" = xyes
19704then :
19705  printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
19706
19707fi
19708
19709
19710# Obtain compiler/linker options for dependencies
19711
19712pkg_failed=no
19713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
19714printf %s "checking for XAU... " >&6; }
19715
19716if test -n "$XAU_CFLAGS"; then
19717    pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
19718 elif test -n "$PKG_CONFIG"; then
19719    if test -n "$PKG_CONFIG" && \
19720    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19721  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19722  ac_status=$?
19723  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19724  test $ac_status = 0; }; then
19725  pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
19726		      test "x$?" != "x0" && pkg_failed=yes
19727else
19728  pkg_failed=yes
19729fi
19730 else
19731    pkg_failed=untried
19732fi
19733if test -n "$XAU_LIBS"; then
19734    pkg_cv_XAU_LIBS="$XAU_LIBS"
19735 elif test -n "$PKG_CONFIG"; then
19736    if test -n "$PKG_CONFIG" && \
19737    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19738  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19739  ac_status=$?
19740  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19741  test $ac_status = 0; }; then
19742  pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
19743		      test "x$?" != "x0" && pkg_failed=yes
19744else
19745  pkg_failed=yes
19746fi
19747 else
19748    pkg_failed=untried
19749fi
19750
19751
19752
19753if test $pkg_failed = yes; then
19754   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19755printf "%s\n" "no" >&6; }
19756
19757if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19758        _pkg_short_errors_supported=yes
19759else
19760        _pkg_short_errors_supported=no
19761fi
19762        if test $_pkg_short_errors_supported = yes; then
19763	        XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
19764        else
19765	        XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
19766        fi
19767	# Put the nasty error message in config.log where it belongs
19768	echo "$XAU_PKG_ERRORS" >&5
19769
19770	as_fn_error $? "Package requirements (xproto) were not met:
19771
19772$XAU_PKG_ERRORS
19773
19774Consider adjusting the PKG_CONFIG_PATH environment variable if you
19775installed software in a non-standard prefix.
19776
19777Alternatively, you may set the environment variables XAU_CFLAGS
19778and XAU_LIBS to avoid the need to call pkg-config.
19779See the pkg-config man page for more details." "$LINENO" 5
19780elif test $pkg_failed = untried; then
19781     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782printf "%s\n" "no" >&6; }
19783	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19784printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19785as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19786is in your PATH or set the PKG_CONFIG environment variable to the full
19787path to pkg-config.
19788
19789Alternatively, you may set the environment variables XAU_CFLAGS
19790and XAU_LIBS to avoid the need to call pkg-config.
19791See the pkg-config man page for more details.
19792
19793To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19794See \`config.log' for more details" "$LINENO" 5; }
19795else
19796	XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
19797	XAU_LIBS=$pkg_cv_XAU_LIBS
19798        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799printf "%s\n" "yes" >&6; }
19800
19801fi
19802
19803# Check whether --enable-xthreads was given.
19804if test ${enable_xthreads+y}
19805then :
19806  enableval=$enable_xthreads; xthreads=$enableval
19807else $as_nop
19808  xthreads=yes
19809fi
19810
19811
19812if test "x$xthreads" = "xyes" ; then
19813
19814printf "%s\n" "#define XTHREADS 1" >>confdefs.h
19815
19816    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lc" >&5
19817printf %s "checking for gethostbyname_r in -lc... " >&6; }
19818if test ${ac_cv_lib_c_gethostbyname_r+y}
19819then :
19820  printf %s "(cached) " >&6
19821else $as_nop
19822  ac_check_lib_save_LIBS=$LIBS
19823LIBS="-lc  $LIBS"
19824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825/* end confdefs.h.  */
19826
19827/* Override any GCC internal prototype to avoid an error.
19828   Use char because int might match the return type of a GCC
19829   builtin and then its argument prototype would still apply.  */
19830char gethostbyname_r ();
19831int
19832main (void)
19833{
19834return gethostbyname_r ();
19835  ;
19836  return 0;
19837}
19838_ACEOF
19839if ac_fn_c_try_link "$LINENO"
19840then :
19841  ac_cv_lib_c_gethostbyname_r=yes
19842else $as_nop
19843  ac_cv_lib_c_gethostbyname_r=no
19844fi
19845rm -f core conftest.err conftest.$ac_objext conftest.beam \
19846    conftest$ac_exeext conftest.$ac_ext
19847LIBS=$ac_check_lib_save_LIBS
19848fi
19849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname_r" >&5
19850printf "%s\n" "$ac_cv_lib_c_gethostbyname_r" >&6; }
19851if test "x$ac_cv_lib_c_gethostbyname_r" = xyes
19852then :
19853  mtsafe=yes
19854fi
19855
19856    if test "x$mtsafe" = "x" ; then
19857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
19858printf %s "checking for gethostbyname_r in -lnsl... " >&6; }
19859if test ${ac_cv_lib_nsl_gethostbyname_r+y}
19860then :
19861  printf %s "(cached) " >&6
19862else $as_nop
19863  ac_check_lib_save_LIBS=$LIBS
19864LIBS="-lnsl  $LIBS"
19865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866/* end confdefs.h.  */
19867
19868/* Override any GCC internal prototype to avoid an error.
19869   Use char because int might match the return type of a GCC
19870   builtin and then its argument prototype would still apply.  */
19871char gethostbyname_r ();
19872int
19873main (void)
19874{
19875return gethostbyname_r ();
19876  ;
19877  return 0;
19878}
19879_ACEOF
19880if ac_fn_c_try_link "$LINENO"
19881then :
19882  ac_cv_lib_nsl_gethostbyname_r=yes
19883else $as_nop
19884  ac_cv_lib_nsl_gethostbyname_r=no
19885fi
19886rm -f core conftest.err conftest.$ac_objext conftest.beam \
19887    conftest$ac_exeext conftest.$ac_ext
19888LIBS=$ac_check_lib_save_LIBS
19889fi
19890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
19891printf "%s\n" "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
19892if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes
19893then :
19894  mtsafe=yes
19895fi
19896
19897    fi
19898    if test "x$mtsafe" = "xyes" ; then
19899
19900printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
19901
19902    fi
19903
19904# XXX incomplete, please fill this in
19905    case $host_os in
19906    solaris*)
19907	XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
19908    esac
19909    XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS"
19910fi
19911
19912# Allow checking code with lint, sparse, etc.
19913
19914
19915
19916
19917
19918# Check whether --with-lint was given.
19919if test ${with_lint+y}
19920then :
19921  withval=$with_lint; use_lint=$withval
19922else $as_nop
19923  use_lint=no
19924fi
19925
19926
19927# Obtain platform specific info like program name and options
19928# The lint program on FreeBSD and NetBSD is different from the one on Solaris
19929case $host_os in
19930  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19931	lint_name=splint
19932	lint_options="-badflag"
19933	;;
19934  *freebsd* | *netbsd*)
19935	lint_name=lint
19936	lint_options="-u -b"
19937	;;
19938  *solaris*)
19939	lint_name=lint
19940	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19941	;;
19942esac
19943
19944# Test for the presence of the program (either guessed by the code or spelled out by the user)
19945if test "x$use_lint" = x"yes" ; then
19946   # Extract the first word of "$lint_name", so it can be a program name with args.
19947set dummy $lint_name; ac_word=$2
19948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19949printf %s "checking for $ac_word... " >&6; }
19950if test ${ac_cv_path_LINT+y}
19951then :
19952  printf %s "(cached) " >&6
19953else $as_nop
19954  case $LINT in
19955  [\\/]* | ?:[\\/]*)
19956  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19957  ;;
19958  *)
19959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19960for as_dir in $PATH
19961do
19962  IFS=$as_save_IFS
19963  case $as_dir in #(((
19964    '') as_dir=./ ;;
19965    */) ;;
19966    *) as_dir=$as_dir/ ;;
19967  esac
19968    for ac_exec_ext in '' $ac_executable_extensions; do
19969  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19970    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
19971    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19972    break 2
19973  fi
19974done
19975  done
19976IFS=$as_save_IFS
19977
19978  ;;
19979esac
19980fi
19981LINT=$ac_cv_path_LINT
19982if test -n "$LINT"; then
19983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19984printf "%s\n" "$LINT" >&6; }
19985else
19986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19987printf "%s\n" "no" >&6; }
19988fi
19989
19990
19991   if test "x$LINT" = "x"; then
19992        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19993   fi
19994elif test "x$use_lint" = x"no" ; then
19995   if test "x$LINT" != "x"; then
19996      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19997printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19998   fi
19999else
20000   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20001fi
20002
20003# User supplied flags override default flags
20004if test "x$LINT_FLAGS" != "x"; then
20005   lint_options=$LINT_FLAGS
20006fi
20007
20008LINT_FLAGS=$lint_options
20009
20010 if test "x$LINT" != x; then
20011  LINT_TRUE=
20012  LINT_FALSE='#'
20013else
20014  LINT_TRUE='#'
20015  LINT_FALSE=
20016fi
20017
20018
20019
20020
20021
20022# Check whether --enable-lint-library was given.
20023if test ${enable_lint_library+y}
20024then :
20025  enableval=$enable_lint_library; make_lint_lib=$enableval
20026else $as_nop
20027  make_lint_lib=no
20028fi
20029
20030
20031if test "x$make_lint_lib" = x"yes" ; then
20032   LINTLIB=llib-lXau.ln
20033   if test "x$LINT" = "x"; then
20034        as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20035   fi
20036elif test "x$make_lint_lib" != x"no" ; then
20037   as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20038fi
20039
20040
20041 if test x$make_lint_lib != xno; then
20042  MAKE_LINT_LIB_TRUE=
20043  MAKE_LINT_LIB_FALSE='#'
20044else
20045  MAKE_LINT_LIB_TRUE='#'
20046  MAKE_LINT_LIB_FALSE=
20047fi
20048
20049
20050
20051LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}"
20052
20053ac_config_files="$ac_config_files Makefile man/Makefile xau.pc"
20054
20055cat >confcache <<\_ACEOF
20056# This file is a shell script that caches the results of configure
20057# tests run on this system so they can be shared between configure
20058# scripts and configure runs, see configure's option --config-cache.
20059# It is not useful on other systems.  If it contains results you don't
20060# want to keep, you may remove or edit it.
20061#
20062# config.status only pays attention to the cache file if you give it
20063# the --recheck option to rerun configure.
20064#
20065# `ac_cv_env_foo' variables (set or unset) will be overridden when
20066# loading this file, other *unset* `ac_cv_foo' will be assigned the
20067# following values.
20068
20069_ACEOF
20070
20071# The following way of writing the cache mishandles newlines in values,
20072# but we know of no workaround that is simple, portable, and efficient.
20073# So, we kill variables containing newlines.
20074# Ultrix sh set writes to stderr and can't be redirected directly,
20075# and sets the high bit in the cache file unless we assign to the vars.
20076(
20077  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20078    eval ac_val=\$$ac_var
20079    case $ac_val in #(
20080    *${as_nl}*)
20081      case $ac_var in #(
20082      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20083printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20084      esac
20085      case $ac_var in #(
20086      _ | IFS | as_nl) ;; #(
20087      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20088      *) { eval $ac_var=; unset $ac_var;} ;;
20089      esac ;;
20090    esac
20091  done
20092
20093  (set) 2>&1 |
20094    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20095    *${as_nl}ac_space=\ *)
20096      # `set' does not quote correctly, so add quotes: double-quote
20097      # substitution turns \\\\ into \\, and sed turns \\ into \.
20098      sed -n \
20099	"s/'/'\\\\''/g;
20100	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20101      ;; #(
20102    *)
20103      # `set' quotes correctly as required by POSIX, so do not add quotes.
20104      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20105      ;;
20106    esac |
20107    sort
20108) |
20109  sed '
20110     /^ac_cv_env_/b end
20111     t clear
20112     :clear
20113     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20114     t end
20115     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20116     :end' >>confcache
20117if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20118  if test -w "$cache_file"; then
20119    if test "x$cache_file" != "x/dev/null"; then
20120      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20121printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20122      if test ! -f "$cache_file" || test -h "$cache_file"; then
20123	cat confcache >"$cache_file"
20124      else
20125        case $cache_file in #(
20126        */* | ?:*)
20127	  mv -f confcache "$cache_file"$$ &&
20128	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20129        *)
20130	  mv -f confcache "$cache_file" ;;
20131	esac
20132      fi
20133    fi
20134  else
20135    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20136printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20137  fi
20138fi
20139rm -f confcache
20140
20141test "x$prefix" = xNONE && prefix=$ac_default_prefix
20142# Let make expand exec_prefix.
20143test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20144
20145DEFS=-DHAVE_CONFIG_H
20146
20147ac_libobjs=
20148ac_ltlibobjs=
20149U=
20150for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20151  # 1. Remove the extension, and $U if already installed.
20152  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20153  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20154  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20155  #    will be set to the directory where LIBOBJS objects are built.
20156  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20157  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20158done
20159LIBOBJS=$ac_libobjs
20160
20161LTLIBOBJS=$ac_ltlibobjs
20162
20163
20164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20165printf %s "checking that generated files are newer than configure... " >&6; }
20166   if test -n "$am_sleep_pid"; then
20167     # Hide warnings about reused PIDs.
20168     wait $am_sleep_pid 2>/dev/null
20169   fi
20170   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20171printf "%s\n" "done" >&6; }
20172if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20173  as_fn_error $? "conditional \"AMDEP\" was never defined.
20174Usually this means the macro was only invoked conditionally." "$LINENO" 5
20175fi
20176if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20177  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20178Usually this means the macro was only invoked conditionally." "$LINENO" 5
20179fi
20180 if test -n "$EXEEXT"; then
20181  am__EXEEXT_TRUE=
20182  am__EXEEXT_FALSE='#'
20183else
20184  am__EXEEXT_TRUE='#'
20185  am__EXEEXT_FALSE=
20186fi
20187
20188if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20189  as_fn_error $? "conditional \"LINT\" was never defined.
20190Usually this means the macro was only invoked conditionally." "$LINENO" 5
20191fi
20192if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20193  as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20194Usually this means the macro was only invoked conditionally." "$LINENO" 5
20195fi
20196
20197: "${CONFIG_STATUS=./config.status}"
20198ac_write_fail=0
20199ac_clean_files_save=$ac_clean_files
20200ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20202printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20203as_write_fail=0
20204cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20205#! $SHELL
20206# Generated by $as_me.
20207# Run this file to recreate the current configuration.
20208# Compiler output produced by configure, useful for debugging
20209# configure, is in config.log if it exists.
20210
20211debug=false
20212ac_cs_recheck=false
20213ac_cs_silent=false
20214
20215SHELL=\${CONFIG_SHELL-$SHELL}
20216export SHELL
20217_ASEOF
20218cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20219## -------------------- ##
20220## M4sh Initialization. ##
20221## -------------------- ##
20222
20223# Be more Bourne compatible
20224DUALCASE=1; export DUALCASE # for MKS sh
20225as_nop=:
20226if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20227then :
20228  emulate sh
20229  NULLCMD=:
20230  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20231  # is contrary to our usage.  Disable this feature.
20232  alias -g '${1+"$@"}'='"$@"'
20233  setopt NO_GLOB_SUBST
20234else $as_nop
20235  case `(set -o) 2>/dev/null` in #(
20236  *posix*) :
20237    set -o posix ;; #(
20238  *) :
20239     ;;
20240esac
20241fi
20242
20243
20244
20245# Reset variables that may have inherited troublesome values from
20246# the environment.
20247
20248# IFS needs to be set, to space, tab, and newline, in precisely that order.
20249# (If _AS_PATH_WALK were called with IFS unset, it would have the
20250# side effect of setting IFS to empty, thus disabling word splitting.)
20251# Quoting is to prevent editors from complaining about space-tab.
20252as_nl='
20253'
20254export as_nl
20255IFS=" ""	$as_nl"
20256
20257PS1='$ '
20258PS2='> '
20259PS4='+ '
20260
20261# Ensure predictable behavior from utilities with locale-dependent output.
20262LC_ALL=C
20263export LC_ALL
20264LANGUAGE=C
20265export LANGUAGE
20266
20267# We cannot yet rely on "unset" to work, but we need these variables
20268# to be unset--not just set to an empty or harmless value--now, to
20269# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20270# also avoids known problems related to "unset" and subshell syntax
20271# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20272for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20273do eval test \${$as_var+y} \
20274  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20275done
20276
20277# Ensure that fds 0, 1, and 2 are open.
20278if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20279if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20280if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20281
20282# The user is always right.
20283if ${PATH_SEPARATOR+false} :; then
20284  PATH_SEPARATOR=:
20285  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20286    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20287      PATH_SEPARATOR=';'
20288  }
20289fi
20290
20291
20292# Find who we are.  Look in the path if we contain no directory separator.
20293as_myself=
20294case $0 in #((
20295  *[\\/]* ) as_myself=$0 ;;
20296  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20297for as_dir in $PATH
20298do
20299  IFS=$as_save_IFS
20300  case $as_dir in #(((
20301    '') as_dir=./ ;;
20302    */) ;;
20303    *) as_dir=$as_dir/ ;;
20304  esac
20305    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20306  done
20307IFS=$as_save_IFS
20308
20309     ;;
20310esac
20311# We did not find ourselves, most probably we were run as `sh COMMAND'
20312# in which case we are not to be found in the path.
20313if test "x$as_myself" = x; then
20314  as_myself=$0
20315fi
20316if test ! -f "$as_myself"; then
20317  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20318  exit 1
20319fi
20320
20321
20322
20323# as_fn_error STATUS ERROR [LINENO LOG_FD]
20324# ----------------------------------------
20325# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20326# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20327# script with STATUS, using 1 if that was 0.
20328as_fn_error ()
20329{
20330  as_status=$1; test $as_status -eq 0 && as_status=1
20331  if test "$4"; then
20332    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20333    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20334  fi
20335  printf "%s\n" "$as_me: error: $2" >&2
20336  as_fn_exit $as_status
20337} # as_fn_error
20338
20339
20340
20341# as_fn_set_status STATUS
20342# -----------------------
20343# Set $? to STATUS, without forking.
20344as_fn_set_status ()
20345{
20346  return $1
20347} # as_fn_set_status
20348
20349# as_fn_exit STATUS
20350# -----------------
20351# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20352as_fn_exit ()
20353{
20354  set +e
20355  as_fn_set_status $1
20356  exit $1
20357} # as_fn_exit
20358
20359# as_fn_unset VAR
20360# ---------------
20361# Portably unset VAR.
20362as_fn_unset ()
20363{
20364  { eval $1=; unset $1;}
20365}
20366as_unset=as_fn_unset
20367
20368# as_fn_append VAR VALUE
20369# ----------------------
20370# Append the text in VALUE to the end of the definition contained in VAR. Take
20371# advantage of any shell optimizations that allow amortized linear growth over
20372# repeated appends, instead of the typical quadratic growth present in naive
20373# implementations.
20374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20375then :
20376  eval 'as_fn_append ()
20377  {
20378    eval $1+=\$2
20379  }'
20380else $as_nop
20381  as_fn_append ()
20382  {
20383    eval $1=\$$1\$2
20384  }
20385fi # as_fn_append
20386
20387# as_fn_arith ARG...
20388# ------------------
20389# Perform arithmetic evaluation on the ARGs, and store the result in the
20390# global $as_val. Take advantage of shells that can avoid forks. The arguments
20391# must be portable across $(()) and expr.
20392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20393then :
20394  eval 'as_fn_arith ()
20395  {
20396    as_val=$(( $* ))
20397  }'
20398else $as_nop
20399  as_fn_arith ()
20400  {
20401    as_val=`expr "$@" || test $? -eq 1`
20402  }
20403fi # as_fn_arith
20404
20405
20406if expr a : '\(a\)' >/dev/null 2>&1 &&
20407   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20408  as_expr=expr
20409else
20410  as_expr=false
20411fi
20412
20413if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20414  as_basename=basename
20415else
20416  as_basename=false
20417fi
20418
20419if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20420  as_dirname=dirname
20421else
20422  as_dirname=false
20423fi
20424
20425as_me=`$as_basename -- "$0" ||
20426$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20427	 X"$0" : 'X\(//\)$' \| \
20428	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20429printf "%s\n" X/"$0" |
20430    sed '/^.*\/\([^/][^/]*\)\/*$/{
20431	    s//\1/
20432	    q
20433	  }
20434	  /^X\/\(\/\/\)$/{
20435	    s//\1/
20436	    q
20437	  }
20438	  /^X\/\(\/\).*/{
20439	    s//\1/
20440	    q
20441	  }
20442	  s/.*/./; q'`
20443
20444# Avoid depending upon Character Ranges.
20445as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20446as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20447as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20448as_cr_digits='0123456789'
20449as_cr_alnum=$as_cr_Letters$as_cr_digits
20450
20451
20452# Determine whether it's possible to make 'echo' print without a newline.
20453# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20454# for compatibility with existing Makefiles.
20455ECHO_C= ECHO_N= ECHO_T=
20456case `echo -n x` in #(((((
20457-n*)
20458  case `echo 'xy\c'` in
20459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20460  xy)  ECHO_C='\c';;
20461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20462       ECHO_T='	';;
20463  esac;;
20464*)
20465  ECHO_N='-n';;
20466esac
20467
20468# For backward compatibility with old third-party macros, we provide
20469# the shell variables $as_echo and $as_echo_n.  New code should use
20470# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20471as_echo='printf %s\n'
20472as_echo_n='printf %s'
20473
20474rm -f conf$$ conf$$.exe conf$$.file
20475if test -d conf$$.dir; then
20476  rm -f conf$$.dir/conf$$.file
20477else
20478  rm -f conf$$.dir
20479  mkdir conf$$.dir 2>/dev/null
20480fi
20481if (echo >conf$$.file) 2>/dev/null; then
20482  if ln -s conf$$.file conf$$ 2>/dev/null; then
20483    as_ln_s='ln -s'
20484    # ... but there are two gotchas:
20485    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20486    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20487    # In both cases, we have to default to `cp -pR'.
20488    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20489      as_ln_s='cp -pR'
20490  elif ln conf$$.file conf$$ 2>/dev/null; then
20491    as_ln_s=ln
20492  else
20493    as_ln_s='cp -pR'
20494  fi
20495else
20496  as_ln_s='cp -pR'
20497fi
20498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20499rmdir conf$$.dir 2>/dev/null
20500
20501
20502# as_fn_mkdir_p
20503# -------------
20504# Create "$as_dir" as a directory, including parents if necessary.
20505as_fn_mkdir_p ()
20506{
20507
20508  case $as_dir in #(
20509  -*) as_dir=./$as_dir;;
20510  esac
20511  test -d "$as_dir" || eval $as_mkdir_p || {
20512    as_dirs=
20513    while :; do
20514      case $as_dir in #(
20515      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20516      *) as_qdir=$as_dir;;
20517      esac
20518      as_dirs="'$as_qdir' $as_dirs"
20519      as_dir=`$as_dirname -- "$as_dir" ||
20520$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20521	 X"$as_dir" : 'X\(//\)[^/]' \| \
20522	 X"$as_dir" : 'X\(//\)$' \| \
20523	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20524printf "%s\n" X"$as_dir" |
20525    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20526	    s//\1/
20527	    q
20528	  }
20529	  /^X\(\/\/\)[^/].*/{
20530	    s//\1/
20531	    q
20532	  }
20533	  /^X\(\/\/\)$/{
20534	    s//\1/
20535	    q
20536	  }
20537	  /^X\(\/\).*/{
20538	    s//\1/
20539	    q
20540	  }
20541	  s/.*/./; q'`
20542      test -d "$as_dir" && break
20543    done
20544    test -z "$as_dirs" || eval "mkdir $as_dirs"
20545  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20546
20547
20548} # as_fn_mkdir_p
20549if mkdir -p . 2>/dev/null; then
20550  as_mkdir_p='mkdir -p "$as_dir"'
20551else
20552  test -d ./-p && rmdir ./-p
20553  as_mkdir_p=false
20554fi
20555
20556
20557# as_fn_executable_p FILE
20558# -----------------------
20559# Test if FILE is an executable regular file.
20560as_fn_executable_p ()
20561{
20562  test -f "$1" && test -x "$1"
20563} # as_fn_executable_p
20564as_test_x='test -x'
20565as_executable_p=as_fn_executable_p
20566
20567# Sed expression to map a string onto a valid CPP name.
20568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20569
20570# Sed expression to map a string onto a valid variable name.
20571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20572
20573
20574exec 6>&1
20575## ----------------------------------- ##
20576## Main body of $CONFIG_STATUS script. ##
20577## ----------------------------------- ##
20578_ASEOF
20579test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20580
20581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20582# Save the log message, to keep $0 and so on meaningful, and to
20583# report actual input values of CONFIG_FILES etc. instead of their
20584# values after options handling.
20585ac_log="
20586This file was extended by libXau $as_me 1.0.10, which was
20587generated by GNU Autoconf 2.71.  Invocation command line was
20588
20589  CONFIG_FILES    = $CONFIG_FILES
20590  CONFIG_HEADERS  = $CONFIG_HEADERS
20591  CONFIG_LINKS    = $CONFIG_LINKS
20592  CONFIG_COMMANDS = $CONFIG_COMMANDS
20593  $ $0 $@
20594
20595on `(hostname || uname -n) 2>/dev/null | sed 1q`
20596"
20597
20598_ACEOF
20599
20600case $ac_config_files in *"
20601"*) set x $ac_config_files; shift; ac_config_files=$*;;
20602esac
20603
20604case $ac_config_headers in *"
20605"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20606esac
20607
20608
20609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20610# Files that config.status was made for.
20611config_files="$ac_config_files"
20612config_headers="$ac_config_headers"
20613config_commands="$ac_config_commands"
20614
20615_ACEOF
20616
20617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20618ac_cs_usage="\
20619\`$as_me' instantiates files and other configuration actions
20620from templates according to the current configuration.  Unless the files
20621and actions are specified as TAGs, all are instantiated by default.
20622
20623Usage: $0 [OPTION]... [TAG]...
20624
20625  -h, --help       print this help, then exit
20626  -V, --version    print version number and configuration settings, then exit
20627      --config     print configuration, then exit
20628  -q, --quiet, --silent
20629                   do not print progress messages
20630  -d, --debug      don't remove temporary files
20631      --recheck    update $as_me by reconfiguring in the same conditions
20632      --file=FILE[:TEMPLATE]
20633                   instantiate the configuration file FILE
20634      --header=FILE[:TEMPLATE]
20635                   instantiate the configuration header FILE
20636
20637Configuration files:
20638$config_files
20639
20640Configuration headers:
20641$config_headers
20642
20643Configuration commands:
20644$config_commands
20645
20646Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>."
20647
20648_ACEOF
20649ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20650ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20652ac_cs_config='$ac_cs_config_escaped'
20653ac_cs_version="\\
20654libXau config.status 1.0.10
20655configured by $0, generated by GNU Autoconf 2.71,
20656  with options \\"\$ac_cs_config\\"
20657
20658Copyright (C) 2021 Free Software Foundation, Inc.
20659This config.status script is free software; the Free Software Foundation
20660gives unlimited permission to copy, distribute and modify it."
20661
20662ac_pwd='$ac_pwd'
20663srcdir='$srcdir'
20664INSTALL='$INSTALL'
20665MKDIR_P='$MKDIR_P'
20666AWK='$AWK'
20667test -n "\$AWK" || AWK=awk
20668_ACEOF
20669
20670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20671# The default lists apply if the user does not specify any file.
20672ac_need_defaults=:
20673while test $# != 0
20674do
20675  case $1 in
20676  --*=?*)
20677    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20678    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20679    ac_shift=:
20680    ;;
20681  --*=)
20682    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20683    ac_optarg=
20684    ac_shift=:
20685    ;;
20686  *)
20687    ac_option=$1
20688    ac_optarg=$2
20689    ac_shift=shift
20690    ;;
20691  esac
20692
20693  case $ac_option in
20694  # Handling of the options.
20695  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20696    ac_cs_recheck=: ;;
20697  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20698    printf "%s\n" "$ac_cs_version"; exit ;;
20699  --config | --confi | --conf | --con | --co | --c )
20700    printf "%s\n" "$ac_cs_config"; exit ;;
20701  --debug | --debu | --deb | --de | --d | -d )
20702    debug=: ;;
20703  --file | --fil | --fi | --f )
20704    $ac_shift
20705    case $ac_optarg in
20706    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20707    '') as_fn_error $? "missing file argument" ;;
20708    esac
20709    as_fn_append CONFIG_FILES " '$ac_optarg'"
20710    ac_need_defaults=false;;
20711  --header | --heade | --head | --hea )
20712    $ac_shift
20713    case $ac_optarg in
20714    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20715    esac
20716    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20717    ac_need_defaults=false;;
20718  --he | --h)
20719    # Conflict between --help and --header
20720    as_fn_error $? "ambiguous option: \`$1'
20721Try \`$0 --help' for more information.";;
20722  --help | --hel | -h )
20723    printf "%s\n" "$ac_cs_usage"; exit ;;
20724  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20725  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20726    ac_cs_silent=: ;;
20727
20728  # This is an error.
20729  -*) as_fn_error $? "unrecognized option: \`$1'
20730Try \`$0 --help' for more information." ;;
20731
20732  *) as_fn_append ac_config_targets " $1"
20733     ac_need_defaults=false ;;
20734
20735  esac
20736  shift
20737done
20738
20739ac_configure_extra_args=
20740
20741if $ac_cs_silent; then
20742  exec 6>/dev/null
20743  ac_configure_extra_args="$ac_configure_extra_args --silent"
20744fi
20745
20746_ACEOF
20747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20748if \$ac_cs_recheck; then
20749  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20750  shift
20751  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20752  CONFIG_SHELL='$SHELL'
20753  export CONFIG_SHELL
20754  exec "\$@"
20755fi
20756
20757_ACEOF
20758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20759exec 5>>config.log
20760{
20761  echo
20762  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20763## Running $as_me. ##
20764_ASBOX
20765  printf "%s\n" "$ac_log"
20766} >&5
20767
20768_ACEOF
20769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20770#
20771# INIT-COMMANDS
20772#
20773AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20774
20775
20776# The HP-UX ksh and POSIX shell print the target directory to stdout
20777# if CDPATH is set.
20778(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20779
20780sed_quote_subst='$sed_quote_subst'
20781double_quote_subst='$double_quote_subst'
20782delay_variable_subst='$delay_variable_subst'
20783AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20784DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20785OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20786macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20787macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20788enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20789enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20790pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20791enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20792shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20793SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20794ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20795PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20796host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20797host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20798host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20799build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20800build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20801build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20802SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20803Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20804GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20805EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20806FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20807LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20808NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20809LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20810max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20811ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20812exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20813lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20814lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20815lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20816lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20817lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20818reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20819reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20820FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20821deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20822file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20823file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20824want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20825sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20826AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20827lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20828AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20829archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20830STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20831RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20832old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20833old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20834old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20835lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20836CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20837CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20838compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20839GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20840lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20841lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20842lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20843lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20844lt_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"`'
20845lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20846nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20847lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20848lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20849objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20850MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20851lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20852lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20853lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20854lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20855lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20856need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20857MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20858DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20859NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20860LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20861OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20862OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20863libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20864shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20865extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20866archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20867enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20868export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20869whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20870compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20871old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20872old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20873archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20874archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20875module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20876module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20877with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20878allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20879no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20880hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20881hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20882hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20883hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20884hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20885hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20886hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20887inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20888link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20889always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20890export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20891exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20892include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20893prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20894postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20895file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20896variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20897need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20898need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20899version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20900runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20901shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20902shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20903libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20904library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20905soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20906install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20907postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20908postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20909finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20910finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20911hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20912sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20913configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20914configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20915hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20916enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20917enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20918enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20919old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20920striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20921
20922LTCC='$LTCC'
20923LTCFLAGS='$LTCFLAGS'
20924compiler='$compiler_DEFAULT'
20925
20926# A function that is used when there is no print builtin or printf.
20927func_fallback_echo ()
20928{
20929  eval 'cat <<_LTECHO_EOF
20930\$1
20931_LTECHO_EOF'
20932}
20933
20934# Quote evaled strings.
20935for var in AS \
20936DLLTOOL \
20937OBJDUMP \
20938SHELL \
20939ECHO \
20940PATH_SEPARATOR \
20941SED \
20942GREP \
20943EGREP \
20944FGREP \
20945LD \
20946NM \
20947LN_S \
20948lt_SP2NL \
20949lt_NL2SP \
20950reload_flag \
20951FILECMD \
20952deplibs_check_method \
20953file_magic_cmd \
20954file_magic_glob \
20955want_nocaseglob \
20956sharedlib_from_linklib_cmd \
20957AR \
20958archiver_list_spec \
20959STRIP \
20960RANLIB \
20961CC \
20962CFLAGS \
20963compiler \
20964lt_cv_sys_global_symbol_pipe \
20965lt_cv_sys_global_symbol_to_cdecl \
20966lt_cv_sys_global_symbol_to_import \
20967lt_cv_sys_global_symbol_to_c_name_address \
20968lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20969lt_cv_nm_interface \
20970nm_file_list_spec \
20971lt_cv_truncate_bin \
20972lt_prog_compiler_no_builtin_flag \
20973lt_prog_compiler_pic \
20974lt_prog_compiler_wl \
20975lt_prog_compiler_static \
20976lt_cv_prog_compiler_c_o \
20977need_locks \
20978MANIFEST_TOOL \
20979DSYMUTIL \
20980NMEDIT \
20981LIPO \
20982OTOOL \
20983OTOOL64 \
20984shrext_cmds \
20985export_dynamic_flag_spec \
20986whole_archive_flag_spec \
20987compiler_needs_object \
20988with_gnu_ld \
20989allow_undefined_flag \
20990no_undefined_flag \
20991hardcode_libdir_flag_spec \
20992hardcode_libdir_separator \
20993exclude_expsyms \
20994include_expsyms \
20995file_list_spec \
20996variables_saved_for_relink \
20997libname_spec \
20998library_names_spec \
20999soname_spec \
21000install_override_mode \
21001finish_eval \
21002old_striplib \
21003striplib; do
21004    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21005    *[\\\\\\\`\\"\\\$]*)
21006      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21007      ;;
21008    *)
21009      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21010      ;;
21011    esac
21012done
21013
21014# Double-quote double-evaled strings.
21015for var in reload_cmds \
21016old_postinstall_cmds \
21017old_postuninstall_cmds \
21018old_archive_cmds \
21019extract_expsyms_cmds \
21020old_archive_from_new_cmds \
21021old_archive_from_expsyms_cmds \
21022archive_cmds \
21023archive_expsym_cmds \
21024module_cmds \
21025module_expsym_cmds \
21026export_symbols_cmds \
21027prelink_cmds \
21028postlink_cmds \
21029postinstall_cmds \
21030postuninstall_cmds \
21031finish_cmds \
21032sys_lib_search_path_spec \
21033configure_time_dlsearch_path \
21034configure_time_lt_sys_library_path; do
21035    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21036    *[\\\\\\\`\\"\\\$]*)
21037      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21038      ;;
21039    *)
21040      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21041      ;;
21042    esac
21043done
21044
21045ac_aux_dir='$ac_aux_dir'
21046
21047# See if we are running on zsh, and set the options that allow our
21048# commands through without removal of \ escapes INIT.
21049if test -n "\${ZSH_VERSION+set}"; then
21050   setopt NO_GLOB_SUBST
21051fi
21052
21053
21054    PACKAGE='$PACKAGE'
21055    VERSION='$VERSION'
21056    RM='$RM'
21057    ofile='$ofile'
21058
21059
21060
21061
21062_ACEOF
21063
21064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21065
21066# Handling of arguments.
21067for ac_config_target in $ac_config_targets
21068do
21069  case $ac_config_target in
21070    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21071    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21072    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21073    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21074    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21075    "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;;
21076
21077  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21078  esac
21079done
21080
21081
21082# If the user did not use the arguments to specify the items to instantiate,
21083# then the envvar interface is used.  Set only those that are not.
21084# We use the long form for the default assignment because of an extremely
21085# bizarre bug on SunOS 4.1.3.
21086if $ac_need_defaults; then
21087  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21088  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21089  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21090fi
21091
21092# Have a temporary directory for convenience.  Make it in the build tree
21093# simply because there is no reason against having it here, and in addition,
21094# creating and moving files from /tmp can sometimes cause problems.
21095# Hook for its removal unless debugging.
21096# Note that there is a small window in which the directory will not be cleaned:
21097# after its creation but before its name has been assigned to `$tmp'.
21098$debug ||
21099{
21100  tmp= ac_tmp=
21101  trap 'exit_status=$?
21102  : "${ac_tmp:=$tmp}"
21103  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21104' 0
21105  trap 'as_fn_exit 1' 1 2 13 15
21106}
21107# Create a (secure) tmp directory for tmp files.
21108
21109{
21110  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21111  test -d "$tmp"
21112}  ||
21113{
21114  tmp=./conf$$-$RANDOM
21115  (umask 077 && mkdir "$tmp")
21116} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21117ac_tmp=$tmp
21118
21119# Set up the scripts for CONFIG_FILES section.
21120# No need to generate them if there are no CONFIG_FILES.
21121# This happens for instance with `./config.status config.h'.
21122if test -n "$CONFIG_FILES"; then
21123
21124
21125ac_cr=`echo X | tr X '\015'`
21126# On cygwin, bash can eat \r inside `` if the user requested igncr.
21127# But we know of no other shell where ac_cr would be empty at this
21128# point, so we can use a bashism as a fallback.
21129if test "x$ac_cr" = x; then
21130  eval ac_cr=\$\'\\r\'
21131fi
21132ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21133if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21134  ac_cs_awk_cr='\\r'
21135else
21136  ac_cs_awk_cr=$ac_cr
21137fi
21138
21139echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21140_ACEOF
21141
21142
21143{
21144  echo "cat >conf$$subs.awk <<_ACEOF" &&
21145  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21146  echo "_ACEOF"
21147} >conf$$subs.sh ||
21148  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21149ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21150ac_delim='%!_!# '
21151for ac_last_try in false false false false false :; do
21152  . ./conf$$subs.sh ||
21153    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21154
21155  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21156  if test $ac_delim_n = $ac_delim_num; then
21157    break
21158  elif $ac_last_try; then
21159    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21160  else
21161    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21162  fi
21163done
21164rm -f conf$$subs.sh
21165
21166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21167cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21168_ACEOF
21169sed -n '
21170h
21171s/^/S["/; s/!.*/"]=/
21172p
21173g
21174s/^[^!]*!//
21175:repl
21176t repl
21177s/'"$ac_delim"'$//
21178t delim
21179:nl
21180h
21181s/\(.\{148\}\)..*/\1/
21182t more1
21183s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21184p
21185n
21186b repl
21187:more1
21188s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21189p
21190g
21191s/.\{148\}//
21192t nl
21193:delim
21194h
21195s/\(.\{148\}\)..*/\1/
21196t more2
21197s/["\\]/\\&/g; s/^/"/; s/$/"/
21198p
21199b
21200:more2
21201s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21202p
21203g
21204s/.\{148\}//
21205t delim
21206' <conf$$subs.awk | sed '
21207/^[^""]/{
21208  N
21209  s/\n//
21210}
21211' >>$CONFIG_STATUS || ac_write_fail=1
21212rm -f conf$$subs.awk
21213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21214_ACAWK
21215cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21216  for (key in S) S_is_set[key] = 1
21217  FS = ""
21218
21219}
21220{
21221  line = $ 0
21222  nfields = split(line, field, "@")
21223  substed = 0
21224  len = length(field[1])
21225  for (i = 2; i < nfields; i++) {
21226    key = field[i]
21227    keylen = length(key)
21228    if (S_is_set[key]) {
21229      value = S[key]
21230      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21231      len += length(value) + length(field[++i])
21232      substed = 1
21233    } else
21234      len += 1 + keylen
21235  }
21236
21237  print line
21238}
21239
21240_ACAWK
21241_ACEOF
21242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21243if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21244  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21245else
21246  cat
21247fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21248  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21249_ACEOF
21250
21251# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21252# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21253# trailing colons and then remove the whole line if VPATH becomes empty
21254# (actually we leave an empty line to preserve line numbers).
21255if test "x$srcdir" = x.; then
21256  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21257h
21258s///
21259s/^/:/
21260s/[	 ]*$/:/
21261s/:\$(srcdir):/:/g
21262s/:\${srcdir}:/:/g
21263s/:@srcdir@:/:/g
21264s/^:*//
21265s/:*$//
21266x
21267s/\(=[	 ]*\).*/\1/
21268G
21269s/\n//
21270s/^[^=]*=[	 ]*$//
21271}'
21272fi
21273
21274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21275fi # test -n "$CONFIG_FILES"
21276
21277# Set up the scripts for CONFIG_HEADERS section.
21278# No need to generate them if there are no CONFIG_HEADERS.
21279# This happens for instance with `./config.status Makefile'.
21280if test -n "$CONFIG_HEADERS"; then
21281cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21282BEGIN {
21283_ACEOF
21284
21285# Transform confdefs.h into an awk script `defines.awk', embedded as
21286# here-document in config.status, that substitutes the proper values into
21287# config.h.in to produce config.h.
21288
21289# Create a delimiter string that does not exist in confdefs.h, to ease
21290# handling of long lines.
21291ac_delim='%!_!# '
21292for ac_last_try in false false :; do
21293  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21294  if test -z "$ac_tt"; then
21295    break
21296  elif $ac_last_try; then
21297    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21298  else
21299    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21300  fi
21301done
21302
21303# For the awk script, D is an array of macro values keyed by name,
21304# likewise P contains macro parameters if any.  Preserve backslash
21305# newline sequences.
21306
21307ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21308sed -n '
21309s/.\{148\}/&'"$ac_delim"'/g
21310t rset
21311:rset
21312s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21313t def
21314d
21315:def
21316s/\\$//
21317t bsnl
21318s/["\\]/\\&/g
21319s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21320D["\1"]=" \3"/p
21321s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21322d
21323:bsnl
21324s/["\\]/\\&/g
21325s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21326D["\1"]=" \3\\\\\\n"\\/p
21327t cont
21328s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21329t cont
21330d
21331:cont
21332n
21333s/.\{148\}/&'"$ac_delim"'/g
21334t clear
21335:clear
21336s/\\$//
21337t bsnlc
21338s/["\\]/\\&/g; s/^/"/; s/$/"/p
21339d
21340:bsnlc
21341s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21342b cont
21343' <confdefs.h | sed '
21344s/'"$ac_delim"'/"\\\
21345"/g' >>$CONFIG_STATUS || ac_write_fail=1
21346
21347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21348  for (key in D) D_is_set[key] = 1
21349  FS = ""
21350}
21351/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21352  line = \$ 0
21353  split(line, arg, " ")
21354  if (arg[1] == "#") {
21355    defundef = arg[2]
21356    mac1 = arg[3]
21357  } else {
21358    defundef = substr(arg[1], 2)
21359    mac1 = arg[2]
21360  }
21361  split(mac1, mac2, "(") #)
21362  macro = mac2[1]
21363  prefix = substr(line, 1, index(line, defundef) - 1)
21364  if (D_is_set[macro]) {
21365    # Preserve the white space surrounding the "#".
21366    print prefix "define", macro P[macro] D[macro]
21367    next
21368  } else {
21369    # Replace #undef with comments.  This is necessary, for example,
21370    # in the case of _POSIX_SOURCE, which is predefined and required
21371    # on some systems where configure will not decide to define it.
21372    if (defundef == "undef") {
21373      print "/*", prefix defundef, macro, "*/"
21374      next
21375    }
21376  }
21377}
21378{ print }
21379_ACAWK
21380_ACEOF
21381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21383fi # test -n "$CONFIG_HEADERS"
21384
21385
21386eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21387shift
21388for ac_tag
21389do
21390  case $ac_tag in
21391  :[FHLC]) ac_mode=$ac_tag; continue;;
21392  esac
21393  case $ac_mode$ac_tag in
21394  :[FHL]*:*);;
21395  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21396  :[FH]-) ac_tag=-:-;;
21397  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21398  esac
21399  ac_save_IFS=$IFS
21400  IFS=:
21401  set x $ac_tag
21402  IFS=$ac_save_IFS
21403  shift
21404  ac_file=$1
21405  shift
21406
21407  case $ac_mode in
21408  :L) ac_source=$1;;
21409  :[FH])
21410    ac_file_inputs=
21411    for ac_f
21412    do
21413      case $ac_f in
21414      -) ac_f="$ac_tmp/stdin";;
21415      *) # Look for the file first in the build tree, then in the source tree
21416	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21417	 # because $ac_f cannot contain `:'.
21418	 test -f "$ac_f" ||
21419	   case $ac_f in
21420	   [\\/$]*) false;;
21421	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21422	   esac ||
21423	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21424      esac
21425      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21426      as_fn_append ac_file_inputs " '$ac_f'"
21427    done
21428
21429    # Let's still pretend it is `configure' which instantiates (i.e., don't
21430    # use $as_me), people would be surprised to read:
21431    #    /* config.h.  Generated by config.status.  */
21432    configure_input='Generated from '`
21433	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21434	`' by configure.'
21435    if test x"$ac_file" != x-; then
21436      configure_input="$ac_file.  $configure_input"
21437      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21438printf "%s\n" "$as_me: creating $ac_file" >&6;}
21439    fi
21440    # Neutralize special characters interpreted by sed in replacement strings.
21441    case $configure_input in #(
21442    *\&* | *\|* | *\\* )
21443       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21444       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21445    *) ac_sed_conf_input=$configure_input;;
21446    esac
21447
21448    case $ac_tag in
21449    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21450      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21451    esac
21452    ;;
21453  esac
21454
21455  ac_dir=`$as_dirname -- "$ac_file" ||
21456$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21457	 X"$ac_file" : 'X\(//\)[^/]' \| \
21458	 X"$ac_file" : 'X\(//\)$' \| \
21459	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21460printf "%s\n" X"$ac_file" |
21461    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21462	    s//\1/
21463	    q
21464	  }
21465	  /^X\(\/\/\)[^/].*/{
21466	    s//\1/
21467	    q
21468	  }
21469	  /^X\(\/\/\)$/{
21470	    s//\1/
21471	    q
21472	  }
21473	  /^X\(\/\).*/{
21474	    s//\1/
21475	    q
21476	  }
21477	  s/.*/./; q'`
21478  as_dir="$ac_dir"; as_fn_mkdir_p
21479  ac_builddir=.
21480
21481case "$ac_dir" in
21482.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21483*)
21484  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21485  # A ".." for each directory in $ac_dir_suffix.
21486  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21487  case $ac_top_builddir_sub in
21488  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21489  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21490  esac ;;
21491esac
21492ac_abs_top_builddir=$ac_pwd
21493ac_abs_builddir=$ac_pwd$ac_dir_suffix
21494# for backward compatibility:
21495ac_top_builddir=$ac_top_build_prefix
21496
21497case $srcdir in
21498  .)  # We are building in place.
21499    ac_srcdir=.
21500    ac_top_srcdir=$ac_top_builddir_sub
21501    ac_abs_top_srcdir=$ac_pwd ;;
21502  [\\/]* | ?:[\\/]* )  # Absolute name.
21503    ac_srcdir=$srcdir$ac_dir_suffix;
21504    ac_top_srcdir=$srcdir
21505    ac_abs_top_srcdir=$srcdir ;;
21506  *) # Relative name.
21507    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21508    ac_top_srcdir=$ac_top_build_prefix$srcdir
21509    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21510esac
21511ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21512
21513
21514  case $ac_mode in
21515  :F)
21516  #
21517  # CONFIG_FILE
21518  #
21519
21520  case $INSTALL in
21521  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21522  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21523  esac
21524  ac_MKDIR_P=$MKDIR_P
21525  case $MKDIR_P in
21526  [\\/$]* | ?:[\\/]* ) ;;
21527  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21528  esac
21529_ACEOF
21530
21531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21532# If the template does not know about datarootdir, expand it.
21533# FIXME: This hack should be removed a few years after 2.60.
21534ac_datarootdir_hack=; ac_datarootdir_seen=
21535ac_sed_dataroot='
21536/datarootdir/ {
21537  p
21538  q
21539}
21540/@datadir@/p
21541/@docdir@/p
21542/@infodir@/p
21543/@localedir@/p
21544/@mandir@/p'
21545case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21546*datarootdir*) ac_datarootdir_seen=yes;;
21547*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21549printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21550_ACEOF
21551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21552  ac_datarootdir_hack='
21553  s&@datadir@&$datadir&g
21554  s&@docdir@&$docdir&g
21555  s&@infodir@&$infodir&g
21556  s&@localedir@&$localedir&g
21557  s&@mandir@&$mandir&g
21558  s&\\\${datarootdir}&$datarootdir&g' ;;
21559esac
21560_ACEOF
21561
21562# Neutralize VPATH when `$srcdir' = `.'.
21563# Shell code in configure.ac might set extrasub.
21564# FIXME: do we really want to maintain this feature?
21565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21566ac_sed_extra="$ac_vpsub
21567$extrasub
21568_ACEOF
21569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21570:t
21571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21572s|@configure_input@|$ac_sed_conf_input|;t t
21573s&@top_builddir@&$ac_top_builddir_sub&;t t
21574s&@top_build_prefix@&$ac_top_build_prefix&;t t
21575s&@srcdir@&$ac_srcdir&;t t
21576s&@abs_srcdir@&$ac_abs_srcdir&;t t
21577s&@top_srcdir@&$ac_top_srcdir&;t t
21578s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21579s&@builddir@&$ac_builddir&;t t
21580s&@abs_builddir@&$ac_abs_builddir&;t t
21581s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21582s&@INSTALL@&$ac_INSTALL&;t t
21583s&@MKDIR_P@&$ac_MKDIR_P&;t t
21584$ac_datarootdir_hack
21585"
21586eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21587  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21588
21589test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21590  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21591  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21592      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21594which seems to be undefined.  Please make sure it is defined" >&5
21595printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21596which seems to be undefined.  Please make sure it is defined" >&2;}
21597
21598  rm -f "$ac_tmp/stdin"
21599  case $ac_file in
21600  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21601  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21602  esac \
21603  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21604 ;;
21605  :H)
21606  #
21607  # CONFIG_HEADER
21608  #
21609  if test x"$ac_file" != x-; then
21610    {
21611      printf "%s\n" "/* $configure_input  */" >&1 \
21612      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21613    } >"$ac_tmp/config.h" \
21614      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21615    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21616      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21617printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21618    else
21619      rm -f "$ac_file"
21620      mv "$ac_tmp/config.h" "$ac_file" \
21621	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21622    fi
21623  else
21624    printf "%s\n" "/* $configure_input  */" >&1 \
21625      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21626      || as_fn_error $? "could not create -" "$LINENO" 5
21627  fi
21628# Compute "$ac_file"'s index in $config_headers.
21629_am_arg="$ac_file"
21630_am_stamp_count=1
21631for _am_header in $config_headers :; do
21632  case $_am_header in
21633    $_am_arg | $_am_arg:* )
21634      break ;;
21635    * )
21636      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21637  esac
21638done
21639echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21640$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21641	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21642	 X"$_am_arg" : 'X\(//\)$' \| \
21643	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21644printf "%s\n" X"$_am_arg" |
21645    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21646	    s//\1/
21647	    q
21648	  }
21649	  /^X\(\/\/\)[^/].*/{
21650	    s//\1/
21651	    q
21652	  }
21653	  /^X\(\/\/\)$/{
21654	    s//\1/
21655	    q
21656	  }
21657	  /^X\(\/\).*/{
21658	    s//\1/
21659	    q
21660	  }
21661	  s/.*/./; q'`/stamp-h$_am_stamp_count
21662 ;;
21663
21664  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21665printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21666 ;;
21667  esac
21668
21669
21670  case $ac_file$ac_mode in
21671    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21672  # Older Autoconf quotes --file arguments for eval, but not when files
21673  # are listed without --file.  Let's play safe and only enable the eval
21674  # if we detect the quoting.
21675  # TODO: see whether this extra hack can be removed once we start
21676  # requiring Autoconf 2.70 or later.
21677  case $CONFIG_FILES in #(
21678  *\'*) :
21679    eval set x "$CONFIG_FILES" ;; #(
21680  *) :
21681    set x $CONFIG_FILES ;; #(
21682  *) :
21683     ;;
21684esac
21685  shift
21686  # Used to flag and report bootstrapping failures.
21687  am_rc=0
21688  for am_mf
21689  do
21690    # Strip MF so we end up with the name of the file.
21691    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21692    # Check whether this is an Automake generated Makefile which includes
21693    # dependency-tracking related rules and includes.
21694    # Grep'ing the whole file directly is not great: AIX grep has a line
21695    # limit of 2048, but all sed's we know have understand at least 4000.
21696    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21697      || continue
21698    am_dirpart=`$as_dirname -- "$am_mf" ||
21699$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21700	 X"$am_mf" : 'X\(//\)[^/]' \| \
21701	 X"$am_mf" : 'X\(//\)$' \| \
21702	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21703printf "%s\n" X"$am_mf" |
21704    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21705	    s//\1/
21706	    q
21707	  }
21708	  /^X\(\/\/\)[^/].*/{
21709	    s//\1/
21710	    q
21711	  }
21712	  /^X\(\/\/\)$/{
21713	    s//\1/
21714	    q
21715	  }
21716	  /^X\(\/\).*/{
21717	    s//\1/
21718	    q
21719	  }
21720	  s/.*/./; q'`
21721    am_filepart=`$as_basename -- "$am_mf" ||
21722$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21723	 X"$am_mf" : 'X\(//\)$' \| \
21724	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21725printf "%s\n" X/"$am_mf" |
21726    sed '/^.*\/\([^/][^/]*\)\/*$/{
21727	    s//\1/
21728	    q
21729	  }
21730	  /^X\/\(\/\/\)$/{
21731	    s//\1/
21732	    q
21733	  }
21734	  /^X\/\(\/\).*/{
21735	    s//\1/
21736	    q
21737	  }
21738	  s/.*/./; q'`
21739    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21740      && sed -e '/# am--include-marker/d' "$am_filepart" \
21741        | $MAKE -f - am--depfiles" >&5
21742   (cd "$am_dirpart" \
21743      && sed -e '/# am--include-marker/d' "$am_filepart" \
21744        | $MAKE -f - am--depfiles) >&5 2>&5
21745   ac_status=$?
21746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747   (exit $ac_status); } || am_rc=$?
21748  done
21749  if test $am_rc -ne 0; then
21750    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21751printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21752as_fn_error $? "Something went wrong bootstrapping makefile fragments
21753    for automatic dependency tracking.  If GNU make was not used, consider
21754    re-running the configure script with MAKE=\"gmake\" (or whatever is
21755    necessary).  You can also try re-running configure with the
21756    '--disable-dependency-tracking' option to at least be able to build
21757    the package (albeit without support for automatic dependency tracking).
21758See \`config.log' for more details" "$LINENO" 5; }
21759  fi
21760  { am_dirpart=; unset am_dirpart;}
21761  { am_filepart=; unset am_filepart;}
21762  { am_mf=; unset am_mf;}
21763  { am_rc=; unset am_rc;}
21764  rm -f conftest-deps.mk
21765}
21766 ;;
21767    "libtool":C)
21768
21769    # See if we are running on zsh, and set the options that allow our
21770    # commands through without removal of \ escapes.
21771    if test -n "${ZSH_VERSION+set}"; then
21772      setopt NO_GLOB_SUBST
21773    fi
21774
21775    cfgfile=${ofile}T
21776    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21777    $RM "$cfgfile"
21778
21779    cat <<_LT_EOF >> "$cfgfile"
21780#! $SHELL
21781# Generated automatically by $as_me ($PACKAGE) $VERSION
21782# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21783# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21784
21785# Provide generalized library-building support services.
21786# Written by Gordon Matzigkeit, 1996
21787
21788# Copyright (C) 2014 Free Software Foundation, Inc.
21789# This is free software; see the source for copying conditions.  There is NO
21790# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21791
21792# GNU Libtool is free software; you can redistribute it and/or modify
21793# it under the terms of the GNU General Public License as published by
21794# the Free Software Foundation; either version 2 of of the License, or
21795# (at your option) any later version.
21796#
21797# As a special exception to the GNU General Public License, if you
21798# distribute this file as part of a program or library that is built
21799# using GNU Libtool, you may include this file under the  same
21800# distribution terms that you use for the rest of that program.
21801#
21802# GNU Libtool is distributed in the hope that it will be useful, but
21803# WITHOUT ANY WARRANTY; without even the implied warranty of
21804# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21805# GNU General Public License for more details.
21806#
21807# You should have received a copy of the GNU General Public License
21808# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21809
21810
21811# The names of the tagged configurations supported by this script.
21812available_tags=''
21813
21814# Configured defaults for sys_lib_dlsearch_path munging.
21815: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21816
21817# ### BEGIN LIBTOOL CONFIG
21818
21819# Assembler program.
21820AS=$lt_AS
21821
21822# DLL creation program.
21823DLLTOOL=$lt_DLLTOOL
21824
21825# Object dumper program.
21826OBJDUMP=$lt_OBJDUMP
21827
21828# Which release of libtool.m4 was used?
21829macro_version=$macro_version
21830macro_revision=$macro_revision
21831
21832# Whether or not to build shared libraries.
21833build_libtool_libs=$enable_shared
21834
21835# Whether or not to build static libraries.
21836build_old_libs=$enable_static
21837
21838# What type of objects to build.
21839pic_mode=$pic_mode
21840
21841# Whether or not to optimize for fast installation.
21842fast_install=$enable_fast_install
21843
21844# Shared archive member basename,for filename based shared library versioning on AIX.
21845shared_archive_member_spec=$shared_archive_member_spec
21846
21847# Shell to use when invoking shell scripts.
21848SHELL=$lt_SHELL
21849
21850# An echo program that protects backslashes.
21851ECHO=$lt_ECHO
21852
21853# The PATH separator for the build system.
21854PATH_SEPARATOR=$lt_PATH_SEPARATOR
21855
21856# The host system.
21857host_alias=$host_alias
21858host=$host
21859host_os=$host_os
21860
21861# The build system.
21862build_alias=$build_alias
21863build=$build
21864build_os=$build_os
21865
21866# A sed program that does not truncate output.
21867SED=$lt_SED
21868
21869# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21870Xsed="\$SED -e 1s/^X//"
21871
21872# A grep program that handles long lines.
21873GREP=$lt_GREP
21874
21875# An ERE matcher.
21876EGREP=$lt_EGREP
21877
21878# A literal string matcher.
21879FGREP=$lt_FGREP
21880
21881# A BSD- or MS-compatible name lister.
21882NM=$lt_NM
21883
21884# Whether we need soft or hard links.
21885LN_S=$lt_LN_S
21886
21887# What is the maximum length of a command?
21888max_cmd_len=$max_cmd_len
21889
21890# Object file suffix (normally "o").
21891objext=$ac_objext
21892
21893# Executable file suffix (normally "").
21894exeext=$exeext
21895
21896# whether the shell understands "unset".
21897lt_unset=$lt_unset
21898
21899# turn spaces into newlines.
21900SP2NL=$lt_lt_SP2NL
21901
21902# turn newlines into spaces.
21903NL2SP=$lt_lt_NL2SP
21904
21905# convert \$build file names to \$host format.
21906to_host_file_cmd=$lt_cv_to_host_file_cmd
21907
21908# convert \$build files to toolchain format.
21909to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21910
21911# A file(cmd) program that detects file types.
21912FILECMD=$lt_FILECMD
21913
21914# Method to check whether dependent libraries are shared objects.
21915deplibs_check_method=$lt_deplibs_check_method
21916
21917# Command to use when deplibs_check_method = "file_magic".
21918file_magic_cmd=$lt_file_magic_cmd
21919
21920# How to find potential files when deplibs_check_method = "file_magic".
21921file_magic_glob=$lt_file_magic_glob
21922
21923# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21924want_nocaseglob=$lt_want_nocaseglob
21925
21926# Command to associate shared and link libraries.
21927sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21928
21929# The archiver.
21930AR=$lt_AR
21931
21932# Flags to create an archive (by configure).
21933lt_ar_flags=$lt_ar_flags
21934
21935# Flags to create an archive.
21936AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21937
21938# How to feed a file listing to the archiver.
21939archiver_list_spec=$lt_archiver_list_spec
21940
21941# A symbol stripping program.
21942STRIP=$lt_STRIP
21943
21944# Commands used to install an old-style archive.
21945RANLIB=$lt_RANLIB
21946old_postinstall_cmds=$lt_old_postinstall_cmds
21947old_postuninstall_cmds=$lt_old_postuninstall_cmds
21948
21949# Whether to use a lock for old archive extraction.
21950lock_old_archive_extraction=$lock_old_archive_extraction
21951
21952# A C compiler.
21953LTCC=$lt_CC
21954
21955# LTCC compiler flags.
21956LTCFLAGS=$lt_CFLAGS
21957
21958# Take the output of nm and produce a listing of raw symbols and C names.
21959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21960
21961# Transform the output of nm in a proper C declaration.
21962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21963
21964# Transform the output of nm into a list of symbols to manually relocate.
21965global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21966
21967# Transform the output of nm in a C name address pair.
21968global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21969
21970# Transform the output of nm in a C name address pair when lib prefix is needed.
21971global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21972
21973# The name lister interface.
21974nm_interface=$lt_lt_cv_nm_interface
21975
21976# Specify filename containing input files for \$NM.
21977nm_file_list_spec=$lt_nm_file_list_spec
21978
21979# The root where to search for dependent libraries,and where our libraries should be installed.
21980lt_sysroot=$lt_sysroot
21981
21982# Command to truncate a binary pipe.
21983lt_truncate_bin=$lt_lt_cv_truncate_bin
21984
21985# The name of the directory that contains temporary libtool files.
21986objdir=$objdir
21987
21988# Used to examine libraries when file_magic_cmd begins with "file".
21989MAGIC_CMD=$MAGIC_CMD
21990
21991# Must we lock files when doing compilation?
21992need_locks=$lt_need_locks
21993
21994# Manifest tool.
21995MANIFEST_TOOL=$lt_MANIFEST_TOOL
21996
21997# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21998DSYMUTIL=$lt_DSYMUTIL
21999
22000# Tool to change global to local symbols on Mac OS X.
22001NMEDIT=$lt_NMEDIT
22002
22003# Tool to manipulate fat objects and archives on Mac OS X.
22004LIPO=$lt_LIPO
22005
22006# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22007OTOOL=$lt_OTOOL
22008
22009# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22010OTOOL64=$lt_OTOOL64
22011
22012# Old archive suffix (normally "a").
22013libext=$libext
22014
22015# Shared library suffix (normally ".so").
22016shrext_cmds=$lt_shrext_cmds
22017
22018# The commands to extract the exported symbol list from a shared archive.
22019extract_expsyms_cmds=$lt_extract_expsyms_cmds
22020
22021# Variables whose values should be saved in libtool wrapper scripts and
22022# restored at link time.
22023variables_saved_for_relink=$lt_variables_saved_for_relink
22024
22025# Do we need the "lib" prefix for modules?
22026need_lib_prefix=$need_lib_prefix
22027
22028# Do we need a version for libraries?
22029need_version=$need_version
22030
22031# Library versioning type.
22032version_type=$version_type
22033
22034# Shared library runtime path variable.
22035runpath_var=$runpath_var
22036
22037# Shared library path variable.
22038shlibpath_var=$shlibpath_var
22039
22040# Is shlibpath searched before the hard-coded library search path?
22041shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22042
22043# Format of library name prefix.
22044libname_spec=$lt_libname_spec
22045
22046# List of archive names.  First name is the real one, the rest are links.
22047# The last name is the one that the linker finds with -lNAME
22048library_names_spec=$lt_library_names_spec
22049
22050# The coded name of the library, if different from the real name.
22051soname_spec=$lt_soname_spec
22052
22053# Permission mode override for installation of shared libraries.
22054install_override_mode=$lt_install_override_mode
22055
22056# Command to use after installation of a shared archive.
22057postinstall_cmds=$lt_postinstall_cmds
22058
22059# Command to use after uninstallation of a shared archive.
22060postuninstall_cmds=$lt_postuninstall_cmds
22061
22062# Commands used to finish a libtool library installation in a directory.
22063finish_cmds=$lt_finish_cmds
22064
22065# As "finish_cmds", except a single script fragment to be evaled but
22066# not shown.
22067finish_eval=$lt_finish_eval
22068
22069# Whether we should hardcode library paths into libraries.
22070hardcode_into_libs=$hardcode_into_libs
22071
22072# Compile-time system search path for libraries.
22073sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22074
22075# Detected run-time system search path for libraries.
22076sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22077
22078# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22079configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22080
22081# Whether dlopen is supported.
22082dlopen_support=$enable_dlopen
22083
22084# Whether dlopen of programs is supported.
22085dlopen_self=$enable_dlopen_self
22086
22087# Whether dlopen of statically linked programs is supported.
22088dlopen_self_static=$enable_dlopen_self_static
22089
22090# Commands to strip libraries.
22091old_striplib=$lt_old_striplib
22092striplib=$lt_striplib
22093
22094
22095# The linker used to build libraries.
22096LD=$lt_LD
22097
22098# How to create reloadable object files.
22099reload_flag=$lt_reload_flag
22100reload_cmds=$lt_reload_cmds
22101
22102# Commands used to build an old-style archive.
22103old_archive_cmds=$lt_old_archive_cmds
22104
22105# A language specific compiler.
22106CC=$lt_compiler
22107
22108# Is the compiler the GNU compiler?
22109with_gcc=$GCC
22110
22111# Compiler flag to turn off builtin functions.
22112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22113
22114# Additional compiler flags for building library objects.
22115pic_flag=$lt_lt_prog_compiler_pic
22116
22117# How to pass a linker flag through the compiler.
22118wl=$lt_lt_prog_compiler_wl
22119
22120# Compiler flag to prevent dynamic linking.
22121link_static_flag=$lt_lt_prog_compiler_static
22122
22123# Does compiler simultaneously support -c and -o options?
22124compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22125
22126# Whether or not to add -lc for building shared libraries.
22127build_libtool_need_lc=$archive_cmds_need_lc
22128
22129# Whether or not to disallow shared libs when runtime libs are static.
22130allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22131
22132# Compiler flag to allow reflexive dlopens.
22133export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22134
22135# Compiler flag to generate shared objects directly from archives.
22136whole_archive_flag_spec=$lt_whole_archive_flag_spec
22137
22138# Whether the compiler copes with passing no objects directly.
22139compiler_needs_object=$lt_compiler_needs_object
22140
22141# Create an old-style archive from a shared archive.
22142old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22143
22144# Create a temporary old-style archive to link instead of a shared archive.
22145old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22146
22147# Commands used to build a shared archive.
22148archive_cmds=$lt_archive_cmds
22149archive_expsym_cmds=$lt_archive_expsym_cmds
22150
22151# Commands used to build a loadable module if different from building
22152# a shared archive.
22153module_cmds=$lt_module_cmds
22154module_expsym_cmds=$lt_module_expsym_cmds
22155
22156# Whether we are building with GNU ld or not.
22157with_gnu_ld=$lt_with_gnu_ld
22158
22159# Flag that allows shared libraries with undefined symbols to be built.
22160allow_undefined_flag=$lt_allow_undefined_flag
22161
22162# Flag that enforces no undefined symbols.
22163no_undefined_flag=$lt_no_undefined_flag
22164
22165# Flag to hardcode \$libdir into a binary during linking.
22166# This must work even if \$libdir does not exist
22167hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22168
22169# Whether we need a single "-rpath" flag with a separated argument.
22170hardcode_libdir_separator=$lt_hardcode_libdir_separator
22171
22172# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22173# DIR into the resulting binary.
22174hardcode_direct=$hardcode_direct
22175
22176# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22177# DIR into the resulting binary and the resulting library dependency is
22178# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22179# library is relocated.
22180hardcode_direct_absolute=$hardcode_direct_absolute
22181
22182# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22183# into the resulting binary.
22184hardcode_minus_L=$hardcode_minus_L
22185
22186# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22187# into the resulting binary.
22188hardcode_shlibpath_var=$hardcode_shlibpath_var
22189
22190# Set to "yes" if building a shared library automatically hardcodes DIR
22191# into the library and all subsequent libraries and executables linked
22192# against it.
22193hardcode_automatic=$hardcode_automatic
22194
22195# Set to yes if linker adds runtime paths of dependent libraries
22196# to runtime path list.
22197inherit_rpath=$inherit_rpath
22198
22199# Whether libtool must link a program against all its dependency libraries.
22200link_all_deplibs=$link_all_deplibs
22201
22202# Set to "yes" if exported symbols are required.
22203always_export_symbols=$always_export_symbols
22204
22205# The commands to list exported symbols.
22206export_symbols_cmds=$lt_export_symbols_cmds
22207
22208# Symbols that should not be listed in the preloaded symbols.
22209exclude_expsyms=$lt_exclude_expsyms
22210
22211# Symbols that must always be exported.
22212include_expsyms=$lt_include_expsyms
22213
22214# Commands necessary for linking programs (against libraries) with templates.
22215prelink_cmds=$lt_prelink_cmds
22216
22217# Commands necessary for finishing linking programs.
22218postlink_cmds=$lt_postlink_cmds
22219
22220# Specify filename containing input files.
22221file_list_spec=$lt_file_list_spec
22222
22223# How to hardcode a shared library path into an executable.
22224hardcode_action=$hardcode_action
22225
22226# ### END LIBTOOL CONFIG
22227
22228_LT_EOF
22229
22230    cat <<'_LT_EOF' >> "$cfgfile"
22231
22232# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22233
22234# func_munge_path_list VARIABLE PATH
22235# -----------------------------------
22236# VARIABLE is name of variable containing _space_ separated list of
22237# directories to be munged by the contents of PATH, which is string
22238# having a format:
22239# "DIR[:DIR]:"
22240#       string "DIR[ DIR]" will be prepended to VARIABLE
22241# ":DIR[:DIR]"
22242#       string "DIR[ DIR]" will be appended to VARIABLE
22243# "DIRP[:DIRP]::[DIRA:]DIRA"
22244#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22245#       "DIRA[ DIRA]" will be appended to VARIABLE
22246# "DIR[:DIR]"
22247#       VARIABLE will be replaced by "DIR[ DIR]"
22248func_munge_path_list ()
22249{
22250    case x$2 in
22251    x)
22252        ;;
22253    *:)
22254        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22255        ;;
22256    x:*)
22257        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22258        ;;
22259    *::*)
22260        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22261        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22262        ;;
22263    *)
22264        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22265        ;;
22266    esac
22267}
22268
22269
22270# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22271func_cc_basename ()
22272{
22273    for cc_temp in $*""; do
22274      case $cc_temp in
22275        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22276        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22277        \-*) ;;
22278        *) break;;
22279      esac
22280    done
22281    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22282}
22283
22284
22285# ### END FUNCTIONS SHARED WITH CONFIGURE
22286
22287_LT_EOF
22288
22289  case $host_os in
22290  aix3*)
22291    cat <<\_LT_EOF >> "$cfgfile"
22292# AIX sometimes has problems with the GCC collect2 program.  For some
22293# reason, if we set the COLLECT_NAMES environment variable, the problems
22294# vanish in a puff of smoke.
22295if test set != "${COLLECT_NAMES+set}"; then
22296  COLLECT_NAMES=
22297  export COLLECT_NAMES
22298fi
22299_LT_EOF
22300    ;;
22301  esac
22302
22303
22304
22305ltmain=$ac_aux_dir/ltmain.sh
22306
22307
22308  # We use sed instead of cat because bash on DJGPP gets confused if
22309  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22310  # text mode, it properly converts lines to CR/LF.  This bash problem
22311  # is reportedly fixed, but why not run on old versions too?
22312  $SED '$q' "$ltmain" >> "$cfgfile" \
22313     || (rm -f "$cfgfile"; exit 1)
22314
22315   mv -f "$cfgfile" "$ofile" ||
22316    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22317  chmod +x "$ofile"
22318
22319 ;;
22320
22321  esac
22322done # for ac_tag
22323
22324
22325as_fn_exit 0
22326_ACEOF
22327ac_clean_files=$ac_clean_files_save
22328
22329test $ac_write_fail = 0 ||
22330  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22331
22332
22333# configure is writing to config.log, and then calls config.status.
22334# config.status does its own redirection, appending to config.log.
22335# Unfortunately, on DOS this fails, as config.log is still kept open
22336# by configure, so config.status won't be able to write to it; its
22337# output is simply discarded.  So we exec the FD to /dev/null,
22338# effectively closing config.log, so it can be properly (re)opened and
22339# appended to by config.status.  When coming back to configure, we
22340# need to make the FD available again.
22341if test "$no_create" != yes; then
22342  ac_cs_success=:
22343  ac_config_status_args=
22344  test "$silent" = yes &&
22345    ac_config_status_args="$ac_config_status_args --quiet"
22346  exec 5>/dev/null
22347  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22348  exec 5>>config.log
22349  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22350  # would make configure fail if this is the last instruction.
22351  $ac_cs_success || as_fn_exit 1
22352fi
22353if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22355printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22356fi
22357
22358
22359